HelenOS sources
usb_mid 170 uspace/drv/bus/usb/usbmid/explore.c usb_mid_t *usb_mid = usb_device_data_alloc(dev, sizeof(usb_mid_t));
usb_mid 171 uspace/drv/bus/usb/usbmid/explore.c if (!usb_mid) {
usb_mid 177 uspace/drv/bus/usb/usbmid/explore.c usb_mid->ctl_fun = usb_device_ddf_fun_create(dev, fun_exposed, "ctl");
usb_mid 178 uspace/drv/bus/usb/usbmid/explore.c if (usb_mid->ctl_fun == NULL) {
usb_mid 184 uspace/drv/bus/usb/usbmid/explore.c rc = ddf_fun_bind(usb_mid->ctl_fun);
usb_mid 188 uspace/drv/bus/usb/usbmid/explore.c ddf_fun_destroy(usb_mid->ctl_fun);
usb_mid 193 uspace/drv/bus/usb/usbmid/explore.c list_initialize(&usb_mid->interface_list);
usb_mid 195 uspace/drv/bus/usb/usbmid/explore.c &usb_mid->interface_list, dev);
usb_mid 59 uspace/drv/bus/usb/usbmid/main.c static errno_t destroy_interfaces(usb_mid_t *usb_mid)
usb_mid 63 uspace/drv/bus/usb/usbmid/main.c while (!list_empty(&usb_mid->interface_list)) {
usb_mid 64 uspace/drv/bus/usb/usbmid/main.c link_t *item = list_first(&usb_mid->interface_list);
usb_mid 88 uspace/drv/bus/usb/usbmid/main.c usb_mid_t *usb_mid = usb_device_data_get(dev);
usb_mid 89 uspace/drv/bus/usb/usbmid/main.c assert(usb_mid);
usb_mid 92 uspace/drv/bus/usb/usbmid/main.c errno_t ret = ddf_fun_unbind(usb_mid->ctl_fun);
usb_mid 98 uspace/drv/bus/usb/usbmid/main.c ddf_fun_destroy(usb_mid->ctl_fun);
usb_mid 101 uspace/drv/bus/usb/usbmid/main.c list_foreach(usb_mid->interface_list, link, usbmid_interface_t, iface) {
usb_mid 113 uspace/drv/bus/usb/usbmid/main.c return destroy_interfaces(usb_mid);
usb_mid 124 uspace/drv/bus/usb/usbmid/main.c usb_mid_t *usb_mid = usb_device_data_get(dev);
usb_mid 125 uspace/drv/bus/usb/usbmid/main.c assert(usb_mid);
usb_mid 130 uspace/drv/bus/usb/usbmid/main.c errno_t ret = ddf_fun_unbind(usb_mid->ctl_fun);
usb_mid 136 uspace/drv/bus/usb/usbmid/main.c ddf_fun_destroy(usb_mid->ctl_fun);
usb_mid 139 uspace/drv/bus/usb/usbmid/main.c return destroy_interfaces(usb_mid);
usb_mid 145 uspace/drv/bus/usb/usbmid/main.c usb_mid_t *usb_mid = usb_device_data_get(usb_dev);
usb_mid 146 uspace/drv/bus/usb/usbmid/main.c if (fun == usb_mid->ctl_fun)
usb_mid 155 uspace/drv/bus/usb/usbmid/main.c usb_mid_t *usb_mid = usb_device_data_get(usb_dev);
usb_mid 156 uspace/drv/bus/usb/usbmid/main.c if (fun == usb_mid->ctl_fun)
HelenOS homepage, sources at GitHub