HelenOS sources
device 48 boot/arch/riscv64/include/arch/ucb.h extern void htif_cmd(uint8_t device, uint8_t cmd, uint64_t payload);
device 45 boot/arch/riscv64/src/ucb.c void htif_cmd(uint8_t device, uint8_t cmd, uint64_t payload)
device 47 boot/arch/riscv64/src/ucb.c uint64_t val = (((uint64_t) device) << 56) |
device 55 boot/genarch/include/genarch/ofw_tree.h void *device; /**< Member used solely by the kernel. */
device 138 boot/genarch/src/ofw.c ofw_arg_t ofw_get_property(const phandle device, const char *name, void *buf,
device 141 boot/genarch/src/ofw.c return ofw_call("getprop", 4, 1, NULL, device, name, buf, buflen);
device 144 boot/genarch/src/ofw.c ofw_arg_t ofw_get_proplen(const phandle device, const char *name)
device 146 boot/genarch/src/ofw.c return ofw_call("getproplen", 2, 1, NULL, device, name);
device 149 boot/genarch/src/ofw.c ofw_arg_t ofw_next_property(const phandle device, char *previous, char *buf)
device 151 boot/genarch/src/ofw.c return ofw_call("nextprop", 3, 1, NULL, device, previous, buf);
device 154 boot/genarch/src/ofw.c ofw_arg_t ofw_package_to_path(const phandle device, char *buf,
device 157 boot/genarch/src/ofw.c return ofw_call("package-to-path", 3, 1, NULL, device, buf, buflen);
device 160 boot/genarch/src/ofw.c size_t ofw_get_address_cells(const phandle device)
device 164 boot/genarch/src/ofw.c if ((ofw_ret_t) ofw_get_property(device, "#address-cells", &ret,
device 173 boot/genarch/src/ofw.c size_t ofw_get_size_cells(const phandle device)
device 177 boot/genarch/src/ofw.c if ((ofw_ret_t) ofw_get_property(device, "#size-cells", &ret,
device 99 boot/genarch/src/ofw_tree.c current_node->device = NULL;
device 75 kernel/arch/riscv64/src/drivers/ucb.c static void htif_cmd(uint8_t device, uint8_t cmd, uint64_t payload)
device 77 kernel/arch/riscv64/src/drivers/ucb.c uint64_t val = (((uint64_t) device) << 56) |
device 63 kernel/genarch/include/genarch/ofw/ofw_tree.h void *device;
device 133 kernel/genarch/src/ofw/pci.c pci_t *pci = node->device;
device 138 kernel/genarch/src/ofw/pci.c node->device = pci;
device 50 uspace/app/usbinfo/info.c usb_device_descriptors(usb_dev)->device.product_id,
device 51 uspace/app/usbinfo/info.c usb_device_descriptors(usb_dev)->device.vendor_id);
device 85 uspace/app/usbinfo/info.c &usb_device_descriptors(usb_dev)->device, iface, &matches);
device 95 uspace/app/usbinfo/info.c &usb_device_descriptors(usb_dev)->device, &matches);
device 97 uspace/app/usbinfo/info.c usb_device_descriptors(usb_dev)->device.product_id,
device 98 uspace/app/usbinfo/info.c usb_device_descriptors(usb_dev)->device.vendor_id,
device 99 uspace/app/usbinfo/info.c usb_str_class(usb_device_descriptors(usb_dev)->device.device_class));
device 239 uspace/app/usbinfo/info.c (const uint8_t *) &usb_device_descriptors(usb_dev)->device,
device 252 uspace/app/usbinfo/info.c (const uint8_t *) &usb_device_descriptors(usb_dev)->device,
device 303 uspace/app/usbinfo/info.c (const uint8_t *) &usb_device_descriptors(usb_dev)->device, 0,
device 118 uspace/app/vuhid/main.c .device = &std_device_descriptor,
device 42 uspace/app/vuhid/stdreq.c #define VUHID_DATA(vuhid, device) \
device 43 uspace/app/vuhid/stdreq.c vuhid_data_t *vuhid = device->device_data
device 45 uspace/app/vuhid/stdreq.c errno_t req_get_descriptor(usbvirt_device_t *device,
device 49 uspace/app/vuhid/stdreq.c VUHID_DATA(vuhid, device);
device 72 uspace/app/vuhid/stdreq.c errno_t req_set_protocol(usbvirt_device_t *device,
device 76 uspace/app/vuhid/stdreq.c VUHID_DATA(vuhid, device);
device 91 uspace/app/vuhid/stdreq.c errno_t req_set_report(usbvirt_device_t *device,
device 95 uspace/app/vuhid/stdreq.c VUHID_DATA(vuhid, device);
device 40 uspace/app/vuhid/stdreq.h errno_t req_get_descriptor(usbvirt_device_t *device,
device 44 uspace/app/vuhid/stdreq.h errno_t req_set_protocol(usbvirt_device_t *device,
device 48 uspace/app/vuhid/stdreq.h errno_t req_set_report(usbvirt_device_t *device,
device 67 uspace/app/wavplay/dplay.c audio_pcm_sess_t *device;
device 85 uspace/app/wavplay/dplay.c pb->device = sess;
device 130 uspace/app/wavplay/dplay.c audio_pcm_last_playback_fragment(pb->device);
device 148 uspace/app/wavplay/dplay.c assert(pb->device);
device 151 uspace/app/wavplay/dplay.c errno_t ret = audio_pcm_register_event_callback(pb->device,
device 170 uspace/app/wavplay/dplay.c ret = audio_pcm_start_playback_fragment(pb->device, frames,
device 175 uspace/app/wavplay/dplay.c audio_pcm_unregister_event_callback(pb->device);
device 185 uspace/app/wavplay/dplay.c audio_pcm_unregister_event_callback(pb->device);
device 253 uspace/app/wavplay/dplay.c assert(pb->device);
device 289 uspace/app/wavplay/dplay.c errno_t ret = audio_pcm_start_playback(pb->device,
device 298 uspace/app/wavplay/dplay.c ret = audio_pcm_get_buffer_pos(pb->device, &pos);
device 315 uspace/app/wavplay/dplay.c const errno_t ret = audio_pcm_get_buffer_pos(pb->device, &pos);
device 330 uspace/app/wavplay/dplay.c audio_pcm_stop_playback_immediate(pb->device);
device 339 uspace/app/wavplay/dplay.c int dplay(const char *device, const char *file)
device 343 uspace/app/wavplay/dplay.c if (str_cmp(device, "default") == 0) {
device 346 uspace/app/wavplay/dplay.c session = audio_pcm_open(device);
device 349 uspace/app/wavplay/dplay.c printf("Failed to connect to device %s.\n", device);
device 352 uspace/app/wavplay/dplay.c printf("Playing on device: %s.\n", device);
device 356 uspace/app/wavplay/dplay.c printf("Device %s does not support playback\n", device);
device 373 uspace/app/wavplay/dplay.c ret = audio_pcm_get_buffer(pb.device, &pb.buffer.base, &pb.buffer.size);
device 396 uspace/app/wavplay/dplay.c ret = audio_pcm_query_cap(pb.device, AUDIO_CAP_BUFFER_POS, &val);
device 400 uspace/app/wavplay/dplay.c ret = audio_pcm_query_cap(pb.device, AUDIO_CAP_INTERRUPT, &val);
device 410 uspace/app/wavplay/dplay.c audio_pcm_release_buffer(pb.device);
device 37 uspace/app/wavplay/dplay.h int dplay(const char *device, const char *file);
device 68 uspace/app/wavplay/drec.c audio_pcm_sess_t *device;
device 84 uspace/app/wavplay/drec.c rec->device = sess;
device 144 uspace/app/wavplay/drec.c assert(rec->device);
device 145 uspace/app/wavplay/drec.c errno_t ret = audio_pcm_register_event_callback(rec->device,
device 156 uspace/app/wavplay/drec.c ret = audio_pcm_start_capture_fragment(rec->device,
device 165 uspace/app/wavplay/drec.c audio_pcm_stop_capture(rec->device);
device 178 uspace/app/wavplay/drec.c int drecord(const char *device, const char *file)
device 183 uspace/app/wavplay/drec.c if (str_cmp(device, "default") == 0) {
device 186 uspace/app/wavplay/drec.c session = audio_pcm_open(device);
device 189 uspace/app/wavplay/drec.c printf("Failed to connect to device %s.\n", device);
device 192 uspace/app/wavplay/drec.c printf("Recording on device: %s.\n", device);
device 195 uspace/app/wavplay/drec.c printf("Device %s does not support recording\n", device);
device 212 uspace/app/wavplay/drec.c ret = audio_pcm_get_buffer(rec.device, &rec.buffer.base,
device 233 uspace/app/wavplay/drec.c ret = audio_pcm_query_cap(rec.device, AUDIO_CAP_INTERRUPT, &val);
device 247 uspace/app/wavplay/drec.c audio_pcm_release_buffer(rec.device);
device 37 uspace/app/wavplay/drec.h int drecord(const char *device, const char *file);
device 252 uspace/app/wavplay/main.c const char *device = "default";
device 265 uspace/app/wavplay/main.c device = optarg;
device 325 uspace/app/wavplay/main.c drecord(device, file);
device 335 uspace/app/wavplay/main.c dplay(device, file);
device 49 uspace/drv/audio/sb16/main.c static errno_t sb_add_device(ddf_dev_t *device);
device 50 uspace/drv/audio/sb16/main.c static errno_t sb_get_res(ddf_dev_t *device, addr_range_t **pp_sb_regs,
device 52 uspace/drv/audio/sb16/main.c static errno_t sb_enable_interrupt(ddf_dev_t *device, int irq);
device 94 uspace/drv/audio/sb16/main.c static errno_t sb_add_device(ddf_dev_t *device)
device 102 uspace/drv/audio/sb16/main.c sb16_t *soft_state = ddf_dev_data_alloc(device, sizeof(sb16_t));
device 115 uspace/drv/audio/sb16/main.c rc = sb_get_res(device, &p_sb_regs, &p_mpu_regs, &irq, &dma8, &dma16);
device 130 uspace/drv/audio/sb16/main.c rc = register_interrupt_handler(device, irq, irq_handler,
device 140 uspace/drv/audio/sb16/main.c rc = sb_enable_interrupt(device, irq);
device 147 uspace/drv/audio/sb16/main.c rc = sb16_init_sb16(soft_state, p_sb_regs, device, dma8, dma16);
device 157 uspace/drv/audio/sb16/main.c ddf_fun_create(device, fun_exposed, "midi");
device 176 uspace/drv/audio/sb16/main.c unregister_interrupt_handler(device, irq_cap);
device 180 uspace/drv/audio/sb16/main.c static errno_t sb_get_res(ddf_dev_t *device, addr_range_t **pp_sb_regs,
device 183 uspace/drv/audio/sb16/main.c assert(device);
device 185 uspace/drv/audio/sb16/main.c async_sess_t *parent_sess = ddf_dev_parent_sess_get(device);
device 248 uspace/drv/audio/sb16/main.c static errno_t sb_enable_interrupt(ddf_dev_t *device, int irq)
device 250 uspace/drv/audio/sb16/main.c async_sess_t *parent_sess = ddf_dev_parent_sess_get(device);
device 339 uspace/drv/block/ahci/ahci.c cmd->device = 0;
device 384 uspace/drv/block/ahci/ahci.c cmd->device = 0;
device 565 uspace/drv/block/ahci/ahci.c cmd->device = 0;
device 74 uspace/drv/block/ahci/ahci_sata.h unsigned int device : 8;
device 221 uspace/drv/bus/usb/ehci/ehci_rh.c hub = virthub_get_data(device); \
device 238 uspace/drv/bus/usb/ehci/ehci_rh.c static errno_t req_get_status(usbvirt_device_t *device,
device 242 uspace/drv/bus/usb/ehci/ehci_rh.c ehci_rh_t *hub = virthub_get_data(device);
device 261 uspace/drv/bus/usb/ehci/ehci_rh.c static errno_t req_clear_hub_feature(usbvirt_device_t *device,
device 265 uspace/drv/bus/usb/ehci/ehci_rh.c ehci_rh_t *hub = virthub_get_data(device);
device 289 uspace/drv/bus/usb/ehci/ehci_rh.c static errno_t req_get_port_status(usbvirt_device_t *device,
device 402 uspace/drv/bus/usb/ehci/ehci_rh.c static errno_t req_clear_port_feature(usbvirt_device_t *device,
device 480 uspace/drv/bus/usb/ehci/ehci_rh.c static errno_t req_set_port_feature(usbvirt_device_t *device,
device 529 uspace/drv/bus/usb/ehci/ehci_rh.c static errno_t req_status_change_handler(usbvirt_device_t *device,
device 533 uspace/drv/bus/usb/ehci/ehci_rh.c ehci_rh_t *hub = virthub_get_data(device);
device 220 uspace/drv/bus/usb/ehci/hc.c ep->device->address, ep->endpoint,
device 243 uspace/drv/bus/usb/ehci/hc.c ep->device->address, ep->endpoint,
device 71 uspace/drv/bus/usb/ehci/hw_struct/queue_head.c assert(ep->device->speed < ARRAY_SIZE(speed));
device 73 uspace/drv/bus/usb/ehci/hw_struct/queue_head.c QH_EP_CHAR_ADDR_SET(ep->device->address) |
device 75 uspace/drv/bus/usb/ehci/hw_struct/queue_head.c speed[ep->device->speed] |
device 78 uspace/drv/bus/usb/ehci/hw_struct/queue_head.c if (ep->device->speed != USB_SPEED_HIGH)
device 88 uspace/drv/bus/usb/ehci/hw_struct/queue_head.c if (usb_speed_is_11(ep->device->speed)) {
device 89 uspace/drv/bus/usb/ehci/hw_struct/queue_head.c assert(ep->device->tt.dev != NULL);
device 91 uspace/drv/bus/usb/ehci/hw_struct/queue_head.c QH_EP_CAP_TT_PORT_SET(ep->device->tt.port) |
device 92 uspace/drv/bus/usb/ehci/hw_struct/queue_head.c QH_EP_CAP_TT_ADDR_SET(ep->device->tt.dev->address);
device 85 uspace/drv/bus/usb/ohci/hw_struct/endpoint_descriptor.c ((ep->device->address & ED_STATUS_FA_MASK) << ED_STATUS_FA_SHIFT) |
device 91 uspace/drv/bus/usb/ohci/hw_struct/endpoint_descriptor.c if (ep->device->speed == USB_SPEED_LOW)
device 245 uspace/drv/bus/usb/ohci/ohci_rh.c hub = virthub_get_data(device); \
device 262 uspace/drv/bus/usb/ohci/ohci_rh.c static errno_t req_get_status(usbvirt_device_t *device,
device 266 uspace/drv/bus/usb/ohci/ohci_rh.c ohci_rh_t *hub = virthub_get_data(device);
device 285 uspace/drv/bus/usb/ohci/ohci_rh.c static errno_t req_clear_hub_feature(usbvirt_device_t *device,
device 289 uspace/drv/bus/usb/ohci/ohci_rh.c ohci_rh_t *hub = virthub_get_data(device);
device 315 uspace/drv/bus/usb/ohci/ohci_rh.c static errno_t req_get_port_status(usbvirt_device_t *device,
device 339 uspace/drv/bus/usb/ohci/ohci_rh.c static errno_t req_clear_port_feature(usbvirt_device_t *device,
device 399 uspace/drv/bus/usb/ohci/ohci_rh.c static errno_t req_set_port_feature(usbvirt_device_t *device,
device 449 uspace/drv/bus/usb/ohci/ohci_rh.c static errno_t req_status_change_handler(usbvirt_device_t *device,
device 453 uspace/drv/bus/usb/ohci/ohci_rh.c ohci_rh_t *hub = virthub_get_data(device);
device 323 uspace/drv/bus/usb/uhci/hc.c static endpoint_t *endpoint_create(device_t *device, const usb_endpoint_descriptors_t *desc)
device 327 uspace/drv/bus/usb/uhci/hc.c endpoint_init(ep, device, desc);
device 339 uspace/drv/bus/usb/uhci/hc.c transfer_list_t *list = hc->transfers[ep->device->speed][ep->transfer_type];
device 359 uspace/drv/bus/usb/uhci/hc.c if (ep->device->address == uhci_rh_get_address(&hc->rh)) {
device 366 uspace/drv/bus/usb/uhci/hc.c transfer_list_t *list = hc->transfers[ep->device->speed][ep->transfer_type];
device 586 uspace/drv/bus/usb/uhci/hc.c hc->transfers[ep->device->speed][ep->transfer_type];
device 95 uspace/drv/bus/usb/uhci/hw_struct/transfer_descriptor.c instance->device = 0 |
device 107 uspace/drv/bus/usb/uhci/hw_struct/transfer_descriptor.c instance, instance->next, instance->status, instance->device,
device 77 uspace/drv/bus/usb/uhci/hw_struct/transfer_descriptor.h volatile uint32_t device;
device 131 uspace/drv/bus/usb/uhci/hw_struct/transfer_descriptor.h ((instance->device >> TD_DEVICE_MAXLEN_POS) + 1) &
device 145 uspace/drv/bus/usb/uhci/hw_struct/transfer_descriptor.h return (instance->device & TD_DEVICE_DATA_TOGGLE_ONE_FLAG) ? 1 : 0;
device 222 uspace/drv/bus/usb/uhci/uhci_batch.c uhci_batch->base.ep->device->speed == USB_SPEED_LOW;
device 286 uspace/drv/bus/usb/uhci/uhci_batch.c uhci_batch->base.ep->device->speed == USB_SPEED_LOW;
device 174 uspace/drv/bus/usb/uhci/uhci_rh.c hub = virthub_get_data(device); \
device 197 uspace/drv/bus/usb/uhci/uhci_rh.c static errno_t req_get_port_state(usbvirt_device_t *device,
device 232 uspace/drv/bus/usb/uhci/uhci_rh.c static errno_t req_get_port_status(usbvirt_device_t *device,
device 272 uspace/drv/bus/usb/uhci/uhci_rh.c static errno_t req_clear_port_feature(usbvirt_device_t *device,
device 345 uspace/drv/bus/usb/uhci/uhci_rh.c static errno_t req_set_port_feature(usbvirt_device_t *device,
device 409 uspace/drv/bus/usb/uhci/uhci_rh.c static errno_t req_status_change_handler(usbvirt_device_t *device,
device 413 uspace/drv/bus/usb/uhci/uhci_rh.c uhci_rh_t *hub = virthub_get_data(device);
device 282 uspace/drv/bus/usb/usbhub/usbhub.c polling->device = hub_dev->usb_device;
device 422 uspace/drv/bus/usb/usbhub/usbhub.c const uint8_t protocol = usb_device_descriptors(hub_dev->usb_device)->device.device_protocol;
device 443 uspace/drv/bus/usb/usbhub/usbhub.c usb_device_descriptors(usb_device)->device.configuration_count;
device 116 uspace/drv/bus/usb/usbmid/explore.c &usb_device_descriptors(usb_dev)->device, interface);
device 142 uspace/drv/bus/usb/usbmid/explore.c usb_device_descriptors(dev)->device.device_class;
device 129 uspace/drv/bus/usb/vhc/hub/hub.c size_t hub_connect_device(hub_t *hub, void *device)
device 139 uspace/drv/bus/usb/vhc/hub/hub.c port->connected_device = device;
device 165 uspace/drv/bus/usb/vhc/hub/hub.c errno_t hub_disconnect_device(hub_t *hub, void *device)
device 167 uspace/drv/bus/usb/vhc/hub/hub.c size_t index = hub_find_device(hub, device);
device 188 uspace/drv/bus/usb/vhc/hub/hub.c size_t hub_find_device(hub_t *hub, void *device)
device 194 uspace/drv/bus/usb/vhc/hub/hub.c if (port->connected_device == device) {
device 138 uspace/drv/bus/usb/vhc/hub/virthub.c .device = &std_device_descriptor,
device 167 uspace/drv/bus/usb/vhc/transfer.c static int device_enumerate(device_t *device)
device 169 uspace/drv/bus/usb/vhc/transfer.c vhc_data_t *vhc = bus_to_vhc(device->bus);
device 170 uspace/drv/bus/usb/vhc/transfer.c return usb2_bus_device_enumerate(&vhc->bus_helper, device);
device 175 uspace/drv/bus/usb/vhc/transfer.c vhc_data_t *vhc = bus_to_vhc(endpoint->device->bus);
device 181 uspace/drv/bus/usb/vhc/transfer.c vhc_data_t *vhc = bus_to_vhc(endpoint->device->bus);
device 128 uspace/drv/bus/usb/xhci/endpoint.c xhci_bus_t *bus = bus_to_xhci_bus(ep->device->bus);
device 215 uspace/drv/bus/usb/xhci/endpoint.c xhci_device_t *dev = xhci_device_get(ep->device);
device 265 uspace/drv/bus/usb/xhci/endpoint.c xhci_device_t *dev = xhci_device_get(ep_base->device);
device 122 uspace/drv/bus/usb/xhci/endpoint.h ((ep).base.device ? (ep).base.device->address : -1), \
device 149 uspace/drv/bus/usb/xhci/endpoint.h return xhci_device_get(ep->base.device);
device 259 uspace/drv/bus/usb/xhci/hc.c errno_t hc_init_memory(xhci_hc_t *hc, ddf_dev_t *device)
device 187 uspace/drv/bus/usb/xhci/hw_struct/context.h ((xhci_ep_ctx_t *) XHCI_GET_CTX_FIELD(device, (dev_ctx), (hc), (dci)))
device 189 uspace/drv/bus/usb/xhci/hw_struct/context.h ((xhci_slot_ctx_t *) XHCI_GET_CTX_FIELD(device, (dev_ctx), (hc), 0))
device 56 uspace/drv/bus/usb/xhci/isoch.c const xhci_hc_t *hc = bus_to_xhci_bus(ep->base.device->bus)->hc;
device 237 uspace/drv/bus/usb/xhci/isoch.c const xhci_bus_t *bus = bus_to_xhci_bus(ep->base.device->bus);
device 309 uspace/drv/bus/usb/xhci/isoch.c xhci_bus_t *bus = bus_to_xhci_bus(ep->base.device->bus);
device 395 uspace/drv/bus/usb/xhci/isoch.c xhci_bus_t *bus = bus_to_xhci_bus(ep->base.device->bus);
device 73 uspace/drv/bus/usb/xhci/rh.c xhci_device_t *device;
device 92 uspace/drv/bus/usb/xhci/rh.c const errno_t err = bus_device_init(&rh->device.base, &rh->hc->bus.base);
device 111 uspace/drv/bus/usb/xhci/rh.c rh->device.route_str = 0;
device 179 uspace/drv/bus/usb/xhci/rh.c dev->hub = &port->rh->device.base;
device 183 uspace/drv/bus/usb/xhci/rh.c port->device = xhci_device_get(dev);
device 184 uspace/drv/bus/usb/xhci/rh.c port->device->rh_port = dev->port;
device 200 uspace/drv/bus/usb/xhci/rh.c XHCI_DEV_ARGS(*port->device), str_error(err));
device 208 uspace/drv/bus/usb/xhci/rh.c port->device = NULL;
device 219 uspace/drv/bus/usb/xhci/rh.c assert(port->device);
device 221 uspace/drv/bus/usb/xhci/rh.c XHCI_DEV_ARGS(*port->device), port - port->rh->ports + 1);
device 224 uspace/drv/bus/usb/xhci/rh.c bus_device_gone(&port->device->base);
device 227 uspace/drv/bus/usb/xhci/rh.c port->device = NULL;
device 69 uspace/drv/bus/usb/xhci/rh.h xhci_device_t device;
device 98 uspace/drv/char/i8042/main.c static errno_t i8042_dev_add(ddf_dev_t *device)
device 105 uspace/drv/char/i8042/main.c if (!device)
device 108 uspace/drv/char/i8042/main.c rc = get_my_registers(device, &io_regs, &kbd, &mouse);
device 119 uspace/drv/char/i8042/main.c i8042_t *i8042 = ddf_dev_data_alloc(device, sizeof(i8042_t));
device 125 uspace/drv/char/i8042/main.c rc = i8042_init(i8042, &io_regs, kbd, mouse, device);
device 133 uspace/drv/char/i8042/main.c ddf_dev_get_name(device), ddf_dev_get_handle(device));
device 48 uspace/drv/hid/atkbd/main.c static errno_t at_kbd_add(ddf_dev_t *device);
device 85 uspace/drv/hid/atkbd/main.c static errno_t at_kbd_add(ddf_dev_t *device)
device 89 uspace/drv/hid/atkbd/main.c if (!device)
device 92 uspace/drv/hid/atkbd/main.c at_kbd_t *kbd = ddf_dev_data_alloc(device, sizeof(at_kbd_t));
device 98 uspace/drv/hid/atkbd/main.c rc = at_kbd_init(kbd, device);
device 106 uspace/drv/hid/atkbd/main.c ddf_dev_get_name(device), ddf_dev_get_handle(device));
device 48 uspace/drv/hid/ps2mouse/main.c static errno_t mouse_add(ddf_dev_t *device);
device 81 uspace/drv/hid/ps2mouse/main.c static errno_t mouse_add(ddf_dev_t *device)
device 85 uspace/drv/hid/ps2mouse/main.c if (!device)
device 88 uspace/drv/hid/ps2mouse/main.c ps2_mouse_t *mouse = ddf_dev_data_alloc(device, sizeof(ps2_mouse_t));
device 94 uspace/drv/hid/ps2mouse/main.c rc = ps2_mouse_init(mouse, device);
device 102 uspace/drv/hid/ps2mouse/main.c ddf_dev_get_name(device), ddf_dev_get_handle(device));
device 123 uspace/drv/hid/usbhid/usbhid.c &usb_device_descriptors(hid_dev->usb_dev)->device;
device 529 uspace/drv/hid/usbhid/usbhid.c polling->device = hid_dev->usb_dev;
device 48 uspace/drv/hid/xtkbd/main.c static errno_t xt_kbd_add(ddf_dev_t *device);
device 85 uspace/drv/hid/xtkbd/main.c static errno_t xt_kbd_add(ddf_dev_t *device)
device 89 uspace/drv/hid/xtkbd/main.c if (!device)
device 92 uspace/drv/hid/xtkbd/main.c xt_kbd_t *kbd = ddf_dev_data_alloc(device, sizeof(xt_kbd_t));
device 98 uspace/drv/hid/xtkbd/main.c rc = xt_kbd_init(kbd, device);
device 106 uspace/drv/hid/xtkbd/main.c ddf_dev_get_name(device), ddf_dev_get_handle(device));
device 64 uspace/drv/nic/ne2k/ne2k.c #define NE2K(device) ((ne2k_t *) nic_get_specific(DRIVER_DATA(device)))
device 53 uspace/drv/platform/amdm37x/amdm37x.c errno_t amdm37x_init(amdm37x_t *device, bool trace)
device 55 uspace/drv/platform/amdm37x/amdm37x.c assert(device);
device 59 uspace/drv/platform/amdm37x/amdm37x.c (void **)&device->cm.usbhost);
device 64 uspace/drv/platform/amdm37x/amdm37x.c (void **)&device->cm.core);
device 69 uspace/drv/platform/amdm37x/amdm37x.c CLOCK_CONTROL_CM_SIZE, (void **)&device->cm.clocks);
device 74 uspace/drv/platform/amdm37x/amdm37x.c MPU_CM_SIZE, (void **)&device->cm.mpu);
device 79 uspace/drv/platform/amdm37x/amdm37x.c IVA2_CM_SIZE, (void **)&device->cm.iva2);
device 84 uspace/drv/platform/amdm37x/amdm37x.c CLOCK_CONTROL_PRM_SIZE, (void **)&device->prm.clocks);
device 89 uspace/drv/platform/amdm37x/amdm37x.c GLOBAL_REG_PRM_SIZE, (void **)&device->prm.global);
device 94 uspace/drv/platform/amdm37x/amdm37x.c AMDM37x_USBTLL_SIZE, (void **)&device->tll);
device 99 uspace/drv/platform/amdm37x/amdm37x.c AMDM37x_UHH_SIZE, (void **)&device->uhh);
device 104 uspace/drv/platform/amdm37x/amdm37x.c pio_trace_enable(device->tll, AMDM37x_USBTLL_SIZE, log_message, (void *)AMDM37x_USBTLL_BASE_ADDRESS);
device 105 uspace/drv/platform/amdm37x/amdm37x.c pio_trace_enable(device->cm.clocks, CLOCK_CONTROL_CM_SIZE, log_message, (void *)CLOCK_CONTROL_CM_BASE_ADDRESS);
device 106 uspace/drv/platform/amdm37x/amdm37x.c pio_trace_enable(device->cm.core, CORE_CM_SIZE, log_message, (void *)CORE_CM_BASE_ADDRESS);
device 107 uspace/drv/platform/amdm37x/amdm37x.c pio_trace_enable(device->cm.mpu, MPU_CM_SIZE, log_message, (void *)MPU_CM_BASE_ADDRESS);
device 108 uspace/drv/platform/amdm37x/amdm37x.c pio_trace_enable(device->cm.iva2, IVA2_CM_SIZE, log_message, (void *)IVA2_CM_BASE_ADDRESS);
device 109 uspace/drv/platform/amdm37x/amdm37x.c pio_trace_enable(device->cm.usbhost, USBHOST_CM_SIZE, log_message, (void *)USBHOST_CM_BASE_ADDRESS);
device 110 uspace/drv/platform/amdm37x/amdm37x.c pio_trace_enable(device->uhh, AMDM37x_UHH_SIZE, log_message, (void *)AMDM37x_UHH_BASE_ADDRESS);
device 111 uspace/drv/platform/amdm37x/amdm37x.c pio_trace_enable(device->prm.clocks, CLOCK_CONTROL_PRM_SIZE, log_message, (void *)CLOCK_CONTROL_PRM_BASE_ADDRESS);
device 112 uspace/drv/platform/amdm37x/amdm37x.c pio_trace_enable(device->prm.global, GLOBAL_REG_PRM_SIZE, log_message, (void *)GLOBAL_REG_PRM_BASE_ADDRESS);
device 123 uspace/drv/platform/amdm37x/amdm37x.c void amdm37x_setup_dpll_on_autoidle(amdm37x_t *device)
device 125 uspace/drv/platform/amdm37x/amdm37x.c assert(device);
device 130 uspace/drv/platform/amdm37x/amdm37x.c const unsigned osc_clk = pio_read_32(&device->prm.clocks->clksel) &
device 132 uspace/drv/platform/amdm37x/amdm37x.c const unsigned clk_reg = pio_read_32(&device->prm.global->clksrc_ctrl);
device 144 uspace/drv/platform/amdm37x/amdm37x.c mpu_cm_regs_t *mpu = device->cm.mpu;
device 206 uspace/drv/platform/amdm37x/amdm37x.c pio_set_32(&device->cm.iva2->clken_pll, MPU_CM_CLKEN_PLL_EN_MPU_DPLL_LP_MODE_FLAG, 5);
device 208 uspace/drv/platform/amdm37x/amdm37x.c pio_change_32(&device->cm.iva2->autoidle_pll, MPU_CM_AUTOIDLE_PLL_AUTO_MPU_DPLL_ENABLED, MPU_CM_AUTOIDLE_PLL_AUTO_MPU_DPLL_MASK, 5);
device 217 uspace/drv/platform/amdm37x/amdm37x.c if (pio_read_32(&device->cm.clocks->idlest_ckgen) & CLOCK_CONTROL_CM_IDLEST_CKGEN_ST_CORE_CLK_FLAG) {
device 220 uspace/drv/platform/amdm37x/amdm37x.c pio_read_32(&device->cm.clocks->clksel1_pll);
device 234 uspace/drv/platform/amdm37x/amdm37x.c pio_read_32(&device->cm.core->clksel) &
device 256 uspace/drv/platform/amdm37x/amdm37x.c pio_change_32(&device->cm.clocks->autoidle_pll,
device 268 uspace/drv/platform/amdm37x/amdm37x.c pio_change_32(&device->cm.clocks->autoidle_pll,
device 278 uspace/drv/platform/amdm37x/amdm37x.c if ((pio_read_32(&device->cm.clocks->clken2_pll) &
device 298 uspace/drv/platform/amdm37x/amdm37x.c pio_change_32(&device->cm.clocks->clksel4_pll,
device 303 uspace/drv/platform/amdm37x/amdm37x.c pio_change_32(&device->cm.clocks->clksel4_pll,
device 308 uspace/drv/platform/amdm37x/amdm37x.c pio_change_32(&device->cm.clocks->clksel5_pll,
device 313 uspace/drv/platform/amdm37x/amdm37x.c pio_change_32(&device->cm.clocks->clken2_pll,
device 319 uspace/drv/platform/amdm37x/amdm37x.c pio_change_32(&device->cm.clocks->autoidle2_pll,
device 328 uspace/drv/platform/amdm37x/amdm37x.c void amdm37x_usb_clocks_set(amdm37x_t *device, bool enabled)
device 332 uspace/drv/platform/amdm37x/amdm37x.c pio_set_32(&device->cm.core->fclken3,
device 334 uspace/drv/platform/amdm37x/amdm37x.c pio_set_32(&device->cm.core->iclken3,
device 338 uspace/drv/platform/amdm37x/amdm37x.c pio_set_32(&device->cm.usbhost->fclken,
device 341 uspace/drv/platform/amdm37x/amdm37x.c pio_set_32(&device->cm.usbhost->iclken,
device 346 uspace/drv/platform/amdm37x/amdm37x.c pio_read_32(&device->cm.clocks->idlest_ckgen),
device 347 uspace/drv/platform/amdm37x/amdm37x.c pio_read_32(&device->cm.clocks->idlest2_ckgen));
device 351 uspace/drv/platform/amdm37x/amdm37x.c pio_clear_32(&device->cm.usbhost->iclken,
device 353 uspace/drv/platform/amdm37x/amdm37x.c pio_clear_32(&device->cm.usbhost->fclken,
device 358 uspace/drv/platform/amdm37x/amdm37x.c pio_clear_32(&device->cm.core->iclken3,
device 360 uspace/drv/platform/amdm37x/amdm37x.c pio_clear_32(&device->cm.core->fclken3,
device 370 uspace/drv/platform/amdm37x/amdm37x.c errno_t amdm37x_usb_tll_init(amdm37x_t *device)
device 373 uspace/drv/platform/amdm37x/amdm37x.c if (pio_read_32(&device->cm.core->idlest3) & CORE_CM_IDLEST3_ST_USBTLL_FLAG) {
device 379 uspace/drv/platform/amdm37x/amdm37x.c pio_set_32(&device->tll->sysconfig, TLL_SYSCONFIG_SOFTRESET_FLAG, 5);
device 381 uspace/drv/platform/amdm37x/amdm37x.c while (!(pio_read_32(&device->tll->sysstatus) & TLL_SYSSTATUS_RESET_DONE_FLAG))
device 386 uspace/drv/platform/amdm37x/amdm37x.c pio_change_32(&device->tll->sysconfig,
device 391 uspace/drv/platform/amdm37x/amdm37x.c pio_change_32(&device->uhh->sysconfig,
device 399 uspace/drv/platform/amdm37x/amdm37x.c pio_set_32(&device->uhh->hostconfig,
device 405 uspace/drv/platform/amdm37x/amdm37x.c pio_set_32(&device->tll->shared_conf, TLL_SHARED_CONF_FCLK_IS_ON_FLAG, 5);
device 414 uspace/drv/platform/amdm37x/amdm37x.c pio_change_32(&device->tll->channel_conf[i],
device 68 uspace/drv/platform/amdm37x/amdm37x.h errno_t amdm37x_init(amdm37x_t *device, bool trace_io);
device 69 uspace/drv/platform/amdm37x/amdm37x.h errno_t amdm37x_usb_tll_init(amdm37x_t *device);
device 70 uspace/drv/platform/amdm37x/amdm37x.h void amdm37x_setup_dpll_on_autoidle(amdm37x_t *device);
device 71 uspace/drv/platform/amdm37x/amdm37x.h void amdm37x_usb_clocks_set(amdm37x_t *device, bool enabled);
device 217 uspace/drv/platform/amdm37x/main.c amdm37x_t *device = ddf_dev_data_alloc(dev, sizeof(amdm37x_t));
device 218 uspace/drv/platform/amdm37x/main.c if (!device)
device 220 uspace/drv/platform/amdm37x/main.c errno_t ret = amdm37x_init(device, DEBUG_CM);
device 227 uspace/drv/platform/amdm37x/main.c amdm37x_setup_dpll_on_autoidle(device);
device 230 uspace/drv/platform/amdm37x/main.c amdm37x_usb_clocks_set(device, true);
device 233 uspace/drv/platform/amdm37x/main.c ret = amdm37x_usb_tll_init(device);
device 236 uspace/drv/platform/amdm37x/main.c amdm37x_usb_clocks_set(device, false);
device 186 uspace/lib/ata/include/ata/ata.h ata_device_t device[MAX_DEVICES];
device 139 uspace/lib/ata/src/ata.c static int disk_dev_idx(ata_device_t *device)
device 141 uspace/lib/ata/src/ata.c return (device->device_id & 1);
device 167 uspace/lib/ata/src/ata.c chan->device[i].chan = chan;
device 201 uspace/lib/ata/src/ata.c rc = ata_device_init(chan, &chan->device[i], i);
device 204 uspace/lib/ata/src/ata.c disk_print_summary(&chan->device[i]);
device 214 uspace/lib/ata/src/ata.c if (chan->device[i].present == false)
device 217 uspace/lib/ata/src/ata.c rc = ata_device_add(&chan->device[i]);
device 236 uspace/lib/ata/src/ata.c rc = ata_device_remove(&chan->device[i]);
device 259 uspace/lib/ata/src/ata.c rc = ata_device_remove(&chan->device[i]);
device 651 uspace/lib/ata/src/ata.c ata_device_t *device = bd_srv_device(bd);
device 656 uspace/lib/ata/src/ata.c if (size < cnt * device->block_size) {
device 662 uspace/lib/ata/src/ata.c maxnb = ata_disk_maxnb(device);
device 665 uspace/lib/ata/src/ata.c if (device->dev_type == ata_reg_dev) {
device 666 uspace/lib/ata/src/ata.c rc = ata_rcmd_read(device, ba, nb, buf);
device 668 uspace/lib/ata/src/ata.c rc = ata_pcmd_read_12(device, ba, nb, buf,
device 669 uspace/lib/ata/src/ata.c device->block_size);
device 677 uspace/lib/ata/src/ata.c buf += device->block_size * nb;
device 682 uspace/lib/ata/src/ata.c ata_msg_debug(device->chan, "ata_bd_read_blocks: rc=%d", rc);
device 689 uspace/lib/ata/src/ata.c ata_device_t *device = bd_srv_device(bd);
device 691 uspace/lib/ata/src/ata.c return ata_pcmd_read_toc(device, session, buf, size);
device 698 uspace/lib/ata/src/ata.c ata_device_t *device = bd_srv_device(bd);
device 703 uspace/lib/ata/src/ata.c if (device->dev_type != ata_reg_dev)
device 706 uspace/lib/ata/src/ata.c if (size < cnt * device->block_size)
device 710 uspace/lib/ata/src/ata.c maxnb = ata_disk_maxnb(device);
device 713 uspace/lib/ata/src/ata.c rc = ata_rcmd_write(device, ba, nb, buf);
device 719 uspace/lib/ata/src/ata.c buf += device->block_size * nb;
device 728 uspace/lib/ata/src/ata.c ata_device_t *device = bd_srv_device(bd);
device 730 uspace/lib/ata/src/ata.c *rbsize = device->block_size;
device 737 uspace/lib/ata/src/ata.c ata_device_t *device = bd_srv_device(bd);
device 739 uspace/lib/ata/src/ata.c *rnb = device->blocks;
device 746 uspace/lib/ata/src/ata.c ata_device_t *device = bd_srv_device(bd);
device 752 uspace/lib/ata/src/ata.c return ata_rcmd_flush_cache(device);
device 756 uspace/lib/ata/src/ata.c static errno_t ata_pio_data_in(ata_device_t *device, void *obuf, size_t obuf_size,
device 759 uspace/lib/ata/src/ata.c ata_channel_t *chan = device->chan;
device 802 uspace/lib/ata/src/ata.c static errno_t ata_pio_data_out(ata_device_t *device, const void *buf, size_t buf_size,
device 805 uspace/lib/ata/src/ata.c ata_channel_t *chan = device->chan;
device 845 uspace/lib/ata/src/ata.c static errno_t ata_pio_nondata(ata_device_t *device)
device 847 uspace/lib/ata/src/ata.c ata_channel_t *chan = device->chan;
device 875 uspace/lib/ata/src/ata.c static errno_t ata_dma_proto(ata_device_t *device, uint8_t cmd, void *buf,
device 878 uspace/lib/ata/src/ata.c ata_channel_t *chan = device->chan;
device 883 uspace/lib/ata/src/ata.c ata_dma_chan_setup(device, buf, buf_size, dir);
device 893 uspace/lib/ata/src/ata.c ata_dma_chan_teardown(device);
device 919 uspace/lib/ata/src/ata.c static errno_t ata_identify_dev(ata_device_t *device, void *buf)
device 921 uspace/lib/ata/src/ata.c ata_channel_t *chan = device->chan;
device 925 uspace/lib/ata/src/ata.c drv_head = ((disk_dev_idx(device) != 0) ? DHR_DRV : 0);
device 953 uspace/lib/ata/src/ata.c return ata_pio_data_in(device, buf, identify_data_size,
device 965 uspace/lib/ata/src/ata.c static errno_t ata_identify_pkt_dev(ata_device_t *device, void *buf)
device 967 uspace/lib/ata/src/ata.c ata_channel_t *chan = device->chan;
device 970 uspace/lib/ata/src/ata.c drv_head = ((disk_dev_idx(device) != 0) ? DHR_DRV : 0);
device 983 uspace/lib/ata/src/ata.c return ata_pio_data_in(device, buf, identify_data_size,
device 995 uspace/lib/ata/src/ata.c static errno_t ata_packet_pio_data_in(ata_device_t *device, void *obuf,
device 998 uspace/lib/ata/src/ata.c ata_channel_t *chan = device->chan;
device 1060 uspace/lib/ata/src/ata.c static errno_t ata_packet_dma(ata_device_t *device, void *buf, size_t buf_size,
device 1063 uspace/lib/ata/src/ata.c ata_channel_t *chan = device->chan;
device 1096 uspace/lib/ata/src/ata.c static errno_t ata_cmd_packet(ata_device_t *device, const void *cpkt, size_t cpkt_size,
device 1099 uspace/lib/ata/src/ata.c ata_channel_t *chan = device->chan;
device 1108 uspace/lib/ata/src/ata.c ((disk_dev_idx(device) != 0) ? DHR_DRV : 0);
device 1124 uspace/lib/ata/src/ata.c ata_dma_chan_setup(device, obuf, obuf_size, ata_dma_read);
device 1139 uspace/lib/ata/src/ata.c ata_dma_chan_teardown(device);
device 1149 uspace/lib/ata/src/ata.c rc = ata_packet_dma(device, obuf, obuf_size, ata_dma_read);
device 1152 uspace/lib/ata/src/ata.c ata_dma_chan_teardown(device);
device 1155 uspace/lib/ata/src/ata.c rc = ata_packet_pio_data_in(device, obuf, obuf_size, rcvd_size);
device 1174 uspace/lib/ata/src/ata.c static errno_t ata_pcmd_inquiry(ata_device_t *device, void *obuf, size_t obuf_size,
device 1192 uspace/lib/ata/src/ata.c rc = ata_cmd_packet(device, cpb, sizeof(cpb), obuf, obuf_size, rcvd_size);
device 1207 uspace/lib/ata/src/ata.c static errno_t ata_pcmd_read_capacity(ata_device_t *device, uint64_t *nblocks,
device 1218 uspace/lib/ata/src/ata.c rc = ata_cmd_packet(device, &cdb, sizeof(cdb), &data, sizeof(data), &rsize);
device 1244 uspace/lib/ata/src/ata.c static errno_t ata_pcmd_read_12(ata_device_t *device, uint64_t ba, size_t cnt,
device 1259 uspace/lib/ata/src/ata.c rc = ata_cmd_packet(device, &cp, sizeof(cp), obuf, obuf_size, NULL);
device 1283 uspace/lib/ata/src/ata.c static errno_t ata_pcmd_read_toc(ata_device_t *device, uint8_t session,
device 1299 uspace/lib/ata/src/ata.c rc = ata_cmd_packet(device, cpb, sizeof(cpb), obuf, obuf_size, NULL);
device 1315 uspace/lib/ata/src/ata.c static errno_t ata_rcmd_read(ata_device_t *device, uint64_t ba, size_t blk_cnt,
device 1318 uspace/lib/ata/src/ata.c ata_channel_t *chan = device->chan;
device 1328 uspace/lib/ata/src/ata.c if (coord_calc(device, ba, &bc) != EOK) {
device 1335 uspace/lib/ata/src/ata.c ((disk_dev_idx(device) != 0) ? DHR_DRV : 0) |
device 1336 uspace/lib/ata/src/ata.c ((device->amode != am_chs) ? DHR_LBA : 0) |
device 1361 uspace/lib/ata/src/ata.c cmd = (device->amode == am_lba48) ? CMD_READ_DMA_EXT :
device 1364 uspace/lib/ata/src/ata.c rc = ata_dma_proto(device, cmd, buf,
device 1365 uspace/lib/ata/src/ata.c blk_cnt * device->block_size, ata_dma_read);
device 1371 uspace/lib/ata/src/ata.c ata_write_cmd_8(chan, REG_COMMAND, device->amode == am_lba48 ?
device 1374 uspace/lib/ata/src/ata.c rc = ata_pio_data_in(device, buf, blk_cnt * device->block_size,
device 1375 uspace/lib/ata/src/ata.c device->block_size, blk_cnt);
device 1396 uspace/lib/ata/src/ata.c static errno_t ata_rcmd_write(ata_device_t *device, uint64_t ba, size_t cnt,
device 1399 uspace/lib/ata/src/ata.c ata_channel_t *chan = device->chan;
device 1409 uspace/lib/ata/src/ata.c if (coord_calc(device, ba, &bc) != EOK)
device 1414 uspace/lib/ata/src/ata.c ((disk_dev_idx(device) != 0) ? DHR_DRV : 0) |
device 1415 uspace/lib/ata/src/ata.c ((device->amode != am_chs) ? DHR_LBA : 0) |
device 1438 uspace/lib/ata/src/ata.c cmd = (device->amode == am_lba48) ? CMD_WRITE_DMA_EXT :
device 1441 uspace/lib/ata/src/ata.c rc = ata_dma_proto(device, cmd, (void *)buf,
device 1442 uspace/lib/ata/src/ata.c cnt * device->block_size, ata_dma_write);
device 1448 uspace/lib/ata/src/ata.c ata_write_cmd_8(chan, REG_COMMAND, device->amode == am_lba48 ?
device 1451 uspace/lib/ata/src/ata.c rc = ata_pio_data_out(device, buf, cnt * device->block_size,
device 1452 uspace/lib/ata/src/ata.c device->block_size, cnt);
device 1469 uspace/lib/ata/src/ata.c static errno_t ata_rcmd_flush_cache(ata_device_t *device)
device 1471 uspace/lib/ata/src/ata.c ata_channel_t *chan = device->chan;
device 1477 uspace/lib/ata/src/ata.c (disk_dev_idx(device) != 0) ? DHR_DRV : 0;
device 1497 uspace/lib/ata/src/ata.c rc = ata_pio_nondata(device);
device 1703 uspace/lib/ata/src/ata.c static void ata_dma_chan_setup(ata_device_t *device, void *buf,
device 1706 uspace/lib/ata/src/ata.c device->chan->params.dma_chan_setup(device->chan->params.arg,
device 1714 uspace/lib/ata/src/ata.c static void ata_dma_chan_teardown(ata_device_t *device)
device 1716 uspace/lib/ata/src/ata.c device->chan->params.dma_chan_teardown(device->chan->params.arg);
device 1734 uspace/lib/ata/src/ata.c void ata_connection(ipc_call_t *icall, ata_device_t *device)
device 1736 uspace/lib/ata/src/ata.c bd_conn(icall, &device->bds);
device 231 uspace/lib/ext4/include/ext4/types.h service_id_t device;
device 77 uspace/lib/ext4/src/balloc.c rc = block_get(&bitmap_block, fs->device, bitmap_block_addr, 0);
device 150 uspace/lib/ext4/src/balloc.c rc = block_get(&bitmap_block, fs->device, bitmap_block_addr, 0);
device 397 uspace/lib/ext4/src/balloc.c rc = block_get(&bitmap_block, inode_ref->fs->device,
device 514 uspace/lib/ext4/src/balloc.c rc = block_get(&bitmap_block, inode_ref->fs->device,
device 649 uspace/lib/ext4/src/balloc.c rc = block_get(&bitmap_block, fs->device, bitmap_block_addr, 0);
device 270 uspace/lib/ext4/src/directory.c rc = block_get(&it->current_block, it->inode_ref->fs->device,
device 430 uspace/lib/ext4/src/directory.c rc = block_get(&block, fs->device, fblock, BLOCK_FLAGS_NONE);
device 458 uspace/lib/ext4/src/directory.c rc = block_get(&new_block, fs->device, fblock, BLOCK_FLAGS_NOREAD);
device 529 uspace/lib/ext4/src/directory.c rc = block_get(&block, parent->fs->device, fblock, BLOCK_FLAGS_NONE);
device 248 uspace/lib/ext4/src/directory_index.c rc = block_get(&block, dir->fs->device, fblock, BLOCK_FLAGS_NONE);
device 286 uspace/lib/ext4/src/directory_index.c rc = block_get(&new_block, dir->fs->device, fblock, BLOCK_FLAGS_NOREAD);
device 450 uspace/lib/ext4/src/directory_index.c rc = block_get(&tmp_block, inode_ref->fs->device, fblock,
device 528 uspace/lib/ext4/src/directory_index.c rc = block_get(&block, inode_ref->fs->device, block_addr, BLOCK_FLAGS_NONE);
device 572 uspace/lib/ext4/src/directory_index.c rc = block_get(&root_block, fs->device, root_block_addr,
device 613 uspace/lib/ext4/src/directory_index.c rc = block_get(&leaf_block, fs->device, leaf_block_addr,
device 809 uspace/lib/ext4/src/directory_index.c rc = block_get(&new_data_block_tmp, inode_ref->fs->device,
device 946 uspace/lib/ext4/src/directory_index.c rc = block_get(&new_block, inode_ref->fs->device,
device 1062 uspace/lib/ext4/src/directory_index.c rc = block_get(&root_block, fs->device, root_block_addr,
device 1102 uspace/lib/ext4/src/directory_index.c rc = block_get(&target_block, fs->device, leaf_block_addr,
device 413 uspace/lib/ext4/src/extent.c rc = block_get(&block, inode_ref->fs->device, child,
device 493 uspace/lib/ext4/src/extent.c rc = block_get(&block, inode_ref->fs->device, fblock,
device 572 uspace/lib/ext4/src/extent.c errno_t rc = block_get(&block, inode_ref->fs->device, fblock, BLOCK_FLAGS_NONE);
device 790 uspace/lib/ext4/src/extent.c rc = block_get(&block, inode_ref->fs->device, fblock,
device 868 uspace/lib/ext4/src/extent.c rc = block_get(&block, inode_ref->fs->device, new_fblock,
device 82 uspace/lib/ext4/src/filesystem.c fs->device = service_id;
device 85 uspace/lib/ext4/src/filesystem.c rc = block_init(fs->device);
device 90 uspace/lib/ext4/src/filesystem.c rc = ext4_superblock_read_direct(fs->device, &temp_superblock);
device 142 uspace/lib/ext4/src/filesystem.c block_cache_fini(fs->device);
device 144 uspace/lib/ext4/src/filesystem.c block_fini(fs->device);
device 162 uspace/lib/ext4/src/filesystem.c block_cache_fini(fs->device);
device 163 uspace/lib/ext4/src/filesystem.c block_fini(fs->device);
device 450 uspace/lib/ext4/src/filesystem.c rc = ext4_superblock_write_direct(fs->device, fs->superblock);
device 486 uspace/lib/ext4/src/filesystem.c errno_t rc = ext4_superblock_write_direct(fs->device, fs->superblock);
device 644 uspace/lib/ext4/src/filesystem.c rc = block_get(&block, fs->device, b, BLOCK_FLAGS_NOREAD);
device 754 uspace/lib/ext4/src/filesystem.c errno_t rc = block_get(&bitmap_block, bg_ref->fs->device,
device 823 uspace/lib/ext4/src/filesystem.c errno_t rc = block_get(&bitmap_block, bg_ref->fs->device,
device 883 uspace/lib/ext4/src/filesystem.c errno_t rc = block_get(&block, bg_ref->fs->device, fblock,
device 932 uspace/lib/ext4/src/filesystem.c errno_t rc = block_get(&newref->block, fs->device, block_id, 0);
device 1167 uspace/lib/ext4/src/filesystem.c rc = block_get(&newref->block, fs->device, block_id, 0);
device 1400 uspace/lib/ext4/src/filesystem.c errno_t rc = block_get(&block, fs->device, fblock, BLOCK_FLAGS_NONE);
device 1432 uspace/lib/ext4/src/filesystem.c errno_t rc = block_get(&block, fs->device, fblock, BLOCK_FLAGS_NONE);
device 1441 uspace/lib/ext4/src/filesystem.c rc = block_get(&subblock, fs->device, ind_block,
device 1655 uspace/lib/ext4/src/filesystem.c errno_t rc = block_get(&block, fs->device, current_block, 0);
device 1761 uspace/lib/ext4/src/filesystem.c rc = block_get(&new_block, fs->device, new_block_addr,
device 1785 uspace/lib/ext4/src/filesystem.c errno_t rc = block_get(&block, fs->device, current_block, 0);
device 1801 uspace/lib/ext4/src/filesystem.c rc = block_get(&new_block, fs->device, new_block_addr,
device 1919 uspace/lib/ext4/src/filesystem.c errno_t rc = block_get(&block, fs->device, current_block, 0);
device 114 uspace/lib/ext4/src/ialloc.c rc = block_get(&bitmap_block, fs->device, bitmap_block_addr,
device 225 uspace/lib/ext4/src/ialloc.c rc = block_get(&bitmap_block, fs->device, bitmap_block_addr,
device 358 uspace/lib/ext4/src/ialloc.c rc = block_get(&bitmap_block, fs->device, bitmap_block_addr,
device 642 uspace/lib/nic/src/nic_driver.c nic_t *nic_create_and_bind(ddf_dev_t *device)
device 644 uspace/lib/nic/src/nic_driver.c nic_t *nic_data = nic_create(device);
device 648 uspace/lib/nic/src/nic_driver.c nic_data->dev = device;
device 671 uspace/lib/nic/src/nic_driver.c void nic_unbind_and_destroy(ddf_dev_t *device)
device 673 uspace/lib/nic/src/nic_driver.c nic_destroy(nic_get_from_ddf_dev(device));
device 52 uspace/lib/usbdev/include/usb/dev/device.h usb_standard_device_descriptor_t device;
device 53 uspace/lib/usbdev/include/usb/dev/poll.h usb_device_t *device;
device 186 uspace/lib/usbdev/src/devdrv.c &usb_dev->descriptors.device);
device 118 uspace/lib/usbdev/src/devpoll.c polling, usb_device_get_name(polling->device),
device 154 uspace/lib/usbdev/src/devpoll.c usb_device_get_default_pipe(polling->device), pipe);
device 160 uspace/lib/usbdev/src/devpoll.c polling->on_error(polling->device, rc, polling->arg);
device 172 uspace/lib/usbdev/src/devpoll.c const bool carry_on = polling->on_data(polling->device,
device 195 uspace/lib/usbdev/src/devpoll.c polling->on_polling_end(polling->device, failed, polling->arg);
device 201 uspace/lib/usbdev/src/devpoll.c usb_device_get_name(polling->device));
device 205 uspace/lib/usbdev/src/devpoll.c usb_device_get_name(polling->device));
device 233 uspace/lib/usbdev/src/devpoll.c if (!polling || !polling->device || !polling->ep_mapping || !polling->on_data)
device 72 uspace/lib/usbhost/include/usb/host/bus.h struct device *hub;
device 53 uspace/lib/usbhost/include/usb/host/endpoint.h typedef struct device device_t;
device 78 uspace/lib/usbhost/include/usb/host/endpoint.h device_t *device;
device 135 uspace/lib/usbhost/include/usb/host/endpoint.h device_t *const device = ep->device;
device 136 uspace/lib/usbhost/include/usb/host/endpoint.h return device ? device->bus : NULL;
device 46 uspace/lib/usbhost/include/usb/host/hcd.h typedef struct device device_t;
device 106 uspace/lib/usbhost/include/usb/host/usb_transfer_batch.h ((batch).ep->device->address), ((batch).ep->endpoint), \
device 107 uspace/lib/usbhost/include/usb/host/usb_transfer_batch.h usb_str_speed((batch).ep->device->speed), \
device 59 uspace/lib/usbhost/src/bandwidth.c assert(ep->device);
device 77 uspace/lib/usbhost/src/bandwidth.c switch (ep->device->speed) {
device 132 uspace/lib/usbhost/src/bandwidth.c assert(ep->device);
device 149 uspace/lib/usbhost/src/bandwidth.c switch (ep->device->speed) {
device 370 uspace/lib/usbhost/src/bus.c int bus_endpoint_add(device_t *device, const usb_endpoint_descriptors_t *desc, endpoint_t **out_ep)
device 373 uspace/lib/usbhost/src/bus.c assert(device);
device 375 uspace/lib/usbhost/src/bus.c bus_t *bus = device->bus;
device 382 uspace/lib/usbhost/src/bus.c ep = bus->ops->endpoint_create(device, desc);
device 389 uspace/lib/usbhost/src/bus.c endpoint_init(ep, device, desc);
device 395 uspace/lib/usbhost/src/bus.c if (idx >= ARRAY_SIZE(device->endpoints)) {
device 408 uspace/lib/usbhost/src/bus.c device->address, ep->endpoint,
device 413 uspace/lib/usbhost/src/bus.c fibril_mutex_lock(&device->guard);
device 414 uspace/lib/usbhost/src/bus.c if (!device->online && ep->endpoint != 0) {
device 416 uspace/lib/usbhost/src/bus.c } else if (device->endpoints[idx] != NULL) {
device 421 uspace/lib/usbhost/src/bus.c device->endpoints[idx] = ep;
device 423 uspace/lib/usbhost/src/bus.c fibril_mutex_unlock(&device->guard);
device 442 uspace/lib/usbhost/src/bus.c endpoint_t *bus_find_endpoint(device_t *device, usb_endpoint_t endpoint,
device 445 uspace/lib/usbhost/src/bus.c assert(device);
device 452 uspace/lib/usbhost/src/bus.c fibril_mutex_lock(&device->guard);
device 453 uspace/lib/usbhost/src/bus.c if (idx < ARRAY_SIZE(device->endpoints))
device 454 uspace/lib/usbhost/src/bus.c ep = device->endpoints[idx];
device 459 uspace/lib/usbhost/src/bus.c if (!ep && ctrl_idx < ARRAY_SIZE(device->endpoints)) {
device 460 uspace/lib/usbhost/src/bus.c ep = device->endpoints[ctrl_idx];
device 468 uspace/lib/usbhost/src/bus.c fibril_mutex_unlock(&device->guard);
device 478 uspace/lib/usbhost/src/bus.c assert(ep->device);
device 480 uspace/lib/usbhost/src/bus.c device_t *device = ep->device;
device 481 uspace/lib/usbhost/src/bus.c if (!device)
device 484 uspace/lib/usbhost/src/bus.c bus_t *bus = device->bus;
device 490 uspace/lib/usbhost/src/bus.c device->address, ep->endpoint,
device 497 uspace/lib/usbhost/src/bus.c if (idx >= ARRAY_SIZE(device->endpoints))
device 500 uspace/lib/usbhost/src/bus.c fibril_mutex_lock(&device->guard);
device 503 uspace/lib/usbhost/src/bus.c if (device->endpoints[idx] != ep) {
device 504 uspace/lib/usbhost/src/bus.c fibril_mutex_unlock(&device->guard);
device 509 uspace/lib/usbhost/src/bus.c device->endpoints[idx] = NULL;
device 510 uspace/lib/usbhost/src/bus.c fibril_mutex_unlock(&device->guard);
device 577 uspace/lib/usbhost/src/bus.c int bus_issue_transfer(device_t *device, const transfer_request_t *request)
device 579 uspace/lib/usbhost/src/bus.c assert(device);
device 583 uspace/lib/usbhost/src/bus.c assert(device->address == request->target.address);
device 586 uspace/lib/usbhost/src/bus.c endpoint_t *ep = bus_find_endpoint(device, request->target.endpoint, request->dir);
device 589 uspace/lib/usbhost/src/bus.c device->address, request->target.endpoint, request->name);
device 593 uspace/lib/usbhost/src/bus.c assert(ep->device == device);
device 642 uspace/lib/usbhost/src/bus.c errno_t bus_device_send_batch_sync(device_t *device, usb_target_t target,
device 666 uspace/lib/usbhost/src/bus.c if ((err = bus_issue_transfer(device, &request))) {
device 422 uspace/lib/usbhost/src/ddf_helpers.c errno_t hcd_ddf_setup_match_ids(device_t *device, usb_standard_device_descriptor_t *desc)
device 430 uspace/lib/usbhost/src/ddf_helpers.c usb_log_debug("Device(%d): Creating match IDs.", device->address);
device 436 uspace/lib/usbhost/src/ddf_helpers.c ddf_fun_add_match_id(device->fun, mid->id, mid->score);
device 452 uspace/lib/usbhost/src/ddf_helpers.c errno_t hcd_ddf_setup_hc(ddf_dev_t *device, size_t size)
device 454 uspace/lib/usbhost/src/ddf_helpers.c assert(device);
device 456 uspace/lib/usbhost/src/ddf_helpers.c hc_device_t *instance = ddf_dev_data_alloc(device, size);
device 461 uspace/lib/usbhost/src/ddf_helpers.c instance->ddf_dev = device;
device 464 uspace/lib/usbhost/src/ddf_helpers.c instance->ctl_fun = ddf_fun_create(device, fun_exposed, "ctl");
device 59 uspace/lib/usbhost/src/endpoint.c ep->device = dev;
device 84 uspace/lib/usbhost/src/endpoint.c return ep->device->bus->ops;
device 225 uspace/lib/usbhost/src/endpoint.c device_t *const device = ep->device;
device 226 uspace/lib/usbhost/src/endpoint.c if (!device) {
device 231 uspace/lib/usbhost/src/endpoint.c const bus_ops_t *ops = device->bus->ops;
device 252 uspace/lib/usbhost/src/endpoint.c if (!device->online && ep->endpoint > 0)
device 216 uspace/lib/usbhost/src/hcd.c errno_t hc_dev_add(ddf_dev_t *device)
device 219 uspace/lib/usbhost/src/hcd.c assert(device);
device 227 uspace/lib/usbhost/src/hcd.c ret = hcd_ddf_setup_hc(device, hc_driver->hc_device_size);
device 233 uspace/lib/usbhost/src/hcd.c hc_device_t *hcd = dev_to_hcd(device);
device 239 uspace/lib/usbhost/src/hcd.c "for `%s': %s.", ddf_dev_get_name(device),
device 265 uspace/lib/usbhost/src/hcd.c ddf_dev_get_name(device), hc_driver->name, str_error(ret));
device 305 uspace/lib/usbhost/src/hcd.c hc_driver->name, ddf_dev_get_name(device));
device 315 uspace/lib/usbhost/src/hcd.c unregister_interrupt_handler(device, hcd->irq_handle);
device 218 uspace/lib/usbhost/src/usb2_bus.c assert(fibril_mutex_is_locked(&ep->device->guard));
device 125 uspace/lib/usbhost/src/utility.c int hc_get_device_desc(device_t *device, usb_standard_device_descriptor_t *desc)
device 129 uspace/lib/usbhost/src/utility.c .address = device->address,
device 139 uspace/lib/usbhost/src/utility.c device->address);
device 141 uspace/lib/usbhost/src/utility.c errno_t err = bus_device_send_batch_sync(device, control_ep,
device 151 uspace/lib/usbhost/src/utility.c int hc_get_hub_desc(device_t *device, usb_hub_descriptor_header_t *desc)
device 155 uspace/lib/usbhost/src/utility.c .address = device->address,
device 160 uspace/lib/usbhost/src/utility.c const usb_descriptor_type_t type = device->speed >= USB_SPEED_SUPER ?
device 173 uspace/lib/usbhost/src/utility.c device->address);
device 176 uspace/lib/usbhost/src/utility.c errno_t err = bus_device_send_batch_sync(device, control_ep,
device 186 uspace/lib/usbhost/src/utility.c int hc_device_explore(device_t *device)
device 191 uspace/lib/usbhost/src/utility.c if ((err = hc_get_device_desc(device, &desc))) {
device 193 uspace/lib/usbhost/src/utility.c device->address, str_error(err));
device 197 uspace/lib/usbhost/src/utility.c if ((err = hcd_ddf_setup_match_ids(device, &desc))) {
device 198 uspace/lib/usbhost/src/utility.c usb_log_error("Device(%d): Failed to setup match ids: %s", device->address, str_error(err));
device 257 uspace/lib/usbhost/src/utility.c device_t *const dev = batch->ep->device;
device 166 uspace/lib/usbvirt/include/usbvirt/device.h const usb_standard_device_descriptor_t *device;
device 241 uspace/lib/usbvirt/include/usbvirt/device.h extern errno_t req_nop(usbvirt_device_t *device,
device 52 uspace/lib/usbvirt/include/usbvirt/virthub_base.h usbvirt_device_t device;
device 68 uspace/lib/usbvirt/src/stdreq.c errno_t req_nop(usbvirt_device_t *device,
device 76 uspace/lib/usbvirt/src/stdreq.c static errno_t req_get_descriptor(usbvirt_device_t *device,
device 86 uspace/lib/usbvirt/src/stdreq.c if (device->descriptors && device->descriptors->device) {
device 88 uspace/lib/usbvirt/src/stdreq.c device->descriptors->device,
device 89 uspace/lib/usbvirt/src/stdreq.c device->descriptors->device->length);
device 101 uspace/lib/usbvirt/src/stdreq.c if (!device->descriptors) {
device 104 uspace/lib/usbvirt/src/stdreq.c if (index >= device->descriptors->configuration_count) {
device 109 uspace/lib/usbvirt/src/stdreq.c &device->descriptors->configuration[index];
device 137 uspace/lib/usbvirt/src/stdreq.c static errno_t req_set_address(usbvirt_device_t *device,
device 152 uspace/lib/usbvirt/src/stdreq.c device->address = new_address;
device 157 uspace/lib/usbvirt/src/stdreq.c static errno_t req_set_configuration(usbvirt_device_t *device,
device 179 uspace/lib/usbvirt/src/stdreq.c if (device->state == USBVIRT_STATE_DEFAULT) {
device 191 uspace/lib/usbvirt/src/stdreq.c if (device->ops && device->ops->state_changed) {
device 192 uspace/lib/usbvirt/src/stdreq.c device->ops->state_changed(device, device->state, new_state);
device 194 uspace/lib/usbvirt/src/stdreq.c device->state = new_state;
device 199 uspace/lib/usbvirt/src/stdreq.c static errno_t req_get_dev_status(usbvirt_device_t *device,
device 204 uspace/lib/usbvirt/src/stdreq.c data[0] = (device->self_powered ? 1 : 0) | (device->remote_wakeup ? 2 : 0);
device 209 uspace/lib/usbvirt/src/stdreq.c static errno_t req_get_iface_ep_status(usbvirt_device_t *device,
device 77 uspace/lib/usbvirt/src/virthub_base.c instance->descriptors.device =
device 92 uspace/lib/usbvirt/src/virthub_base.c instance->device.ops = ops;
device 93 uspace/lib/usbvirt/src/virthub_base.c instance->device.descriptors = &instance->descriptors;
device 94 uspace/lib/usbvirt/src/virthub_base.c instance->device.device_data = instance;
device 95 uspace/lib/usbvirt/src/virthub_base.c instance->device.address = 0;
device 97 uspace/lib/usbvirt/src/virthub_base.c instance->device.name = str_dup(name);
device 99 uspace/lib/usbvirt/src/virthub_base.c if (!instance->device.name)
device 108 uspace/lib/usbvirt/src/virthub_base.c return instance->device.address;
device 125 uspace/lib/usbvirt/src/virthub_base.c return usbvirt_control_read(&instance->device,
device 129 uspace/lib/usbvirt/src/virthub_base.c return usbvirt_data_in(&instance->device,
device 135 uspace/lib/usbvirt/src/virthub_base.c return usbvirt_control_write(&instance->device,
device 52 uspace/srv/devman/match.c static int compute_match_score(match_id_t *driver, match_id_t *device)
device 54 uspace/srv/devman/match.c if (str_cmp(driver->id, device->id) == 0) {
device 58 uspace/srv/devman/match.c return driver->score * device->score;
HelenOS homepage, sources at GitHub