HelenOS sources
bus 175 kernel/arch/amd64/src/smp/mps.c static void ct_bus_entry(struct __bus_entry *bus __attribute__((unused)))
bus 180 kernel/arch/amd64/src/smp/mps.c memcpy((void *) buf, (void *) bus->bus_type, 6);
bus 183 kernel/arch/amd64/src/smp/mps.c log(LF_ARCH, LVL_DEBUG, "MPS: bus=%" PRIu8 " (%s)", bus->bus_id, buf);
bus 175 kernel/arch/ia32/src/smp/mps.c static void ct_bus_entry(struct __bus_entry *bus __attribute__((unused)))
bus 180 kernel/arch/ia32/src/smp/mps.c memcpy((void *) buf, (void *) bus->bus_type, 6);
bus 183 kernel/arch/ia32/src/smp/mps.c log(LF_ARCH, LVL_DEBUG, "MPS: bus=%" PRIu8 " (%s)", bus->bus_id, buf);
bus 85 kernel/genarch/include/genarch/acpi/madt.h uint8_t bus;
bus 95 uspace/drv/bus/isa/isa.c isa_bus_t *bus;
bus 214 uspace/drv/bus/isa/isa.c if (fun->bus->pci_isa_bridge)
bus 283 uspace/drv/bus/isa/isa.c fun->bus = isa;
bus 55 uspace/drv/bus/pci/pciintel/ctl.c pci_bus_t *bus;
bus 62 uspace/drv/bus/pci/pciintel/ctl.c bus = pci_bus(ddf_fun_get_dev((ddf_fun_t *) arg));
bus 72 uspace/drv/bus/pci/pciintel/ctl.c pci_ctl_get_devices_srv(bus, &call);
bus 75 uspace/drv/bus/pci/pciintel/ctl.c pci_ctl_dev_get_info_srv(bus, &call);
bus 89 uspace/drv/bus/pci/pciintel/ctl.c static void pci_ctl_get_devices_srv(pci_bus_t *bus, ipc_call_t *icall)
bus 116 uspace/drv/bus/pci/pciintel/ctl.c rc = pci_ctl_get_devices(bus, buf, size, &act_size);
bus 135 uspace/drv/bus/pci/pciintel/ctl.c static void pci_ctl_dev_get_info_srv(pci_bus_t *bus, ipc_call_t *icall)
bus 145 uspace/drv/bus/pci/pciintel/ctl.c fun = pci_fun_first(bus);
bus 198 uspace/drv/bus/pci/pciintel/ctl.c static errno_t pci_ctl_get_devices(pci_bus_t *bus, devman_handle_t *id_buf,
bus 205 uspace/drv/bus/pci/pciintel/ctl.c bus, id_buf, size, act_size);
bus 207 uspace/drv/bus/pci/pciintel/ctl.c fun = pci_fun_first(bus);
bus 230 uspace/drv/bus/pci/pciintel/ctl.c info->bus_num = fun->bus;
bus 67 uspace/drv/bus/pci/pciintel/pci.c #define CONF_ADDR(bus, dev, fn, reg) \
bus 68 uspace/drv/bus/pci/pciintel/pci.c ((bus << 16) | (dev << 11) | (fn << 8) | (reg & ~3))
bus 253 uspace/drv/bus/pci/pciintel/pci.c const uint32_t conf_addr = CONF_ADDR(fun->bus, fun->dev, fun->fn, reg);
bus 254 uspace/drv/bus/pci/pciintel/pci.c pci_bus_t *bus = pci_bus_from_fun(fun);
bus 257 uspace/drv/bus/pci/pciintel/pci.c fibril_mutex_lock(&bus->conf_mutex);
bus 259 uspace/drv/bus/pci/pciintel/pci.c if (bus->conf_addr_reg) {
bus 260 uspace/drv/bus/pci/pciintel/pci.c pio_write_32(bus->conf_addr_reg,
bus 268 uspace/drv/bus/pci/pciintel/pci.c val = uint32_t_le2host(pio_read_32(bus->conf_data_reg));
bus 271 uspace/drv/bus/pci/pciintel/pci.c &bus->conf_space[conf_addr / sizeof(ioport32_t)]));
bus 286 uspace/drv/bus/pci/pciintel/pci.c fibril_mutex_unlock(&bus->conf_mutex);
bus 291 uspace/drv/bus/pci/pciintel/pci.c const uint32_t conf_addr = CONF_ADDR(fun->bus, fun->dev, fun->fn, reg);
bus 292 uspace/drv/bus/pci/pciintel/pci.c pci_bus_t *bus = pci_bus_from_fun(fun);
bus 295 uspace/drv/bus/pci/pciintel/pci.c fibril_mutex_lock(&bus->conf_mutex);
bus 308 uspace/drv/bus/pci/pciintel/pci.c if (bus->conf_addr_reg) {
bus 309 uspace/drv/bus/pci/pciintel/pci.c pio_write_32(bus->conf_addr_reg,
bus 311 uspace/drv/bus/pci/pciintel/pci.c val = uint32_t_le2host(pio_read_32(bus->conf_data_reg));
bus 314 uspace/drv/bus/pci/pciintel/pci.c &bus->conf_space[conf_addr / sizeof(ioport32_t)]));
bus 332 uspace/drv/bus/pci/pciintel/pci.c if (bus->conf_addr_reg) {
bus 333 uspace/drv/bus/pci/pciintel/pci.c pio_write_32(bus->conf_addr_reg,
bus 335 uspace/drv/bus/pci/pciintel/pci.c pio_write_32(bus->conf_data_reg, host2uint32_t_le(val));
bus 337 uspace/drv/bus/pci/pciintel/pci.c pio_write_32(&bus->conf_space[conf_addr / sizeof(ioport32_t)],
bus 341 uspace/drv/bus/pci/pciintel/pci.c fibril_mutex_unlock(&bus->conf_mutex);
bus 457 uspace/drv/bus/pci/pciintel/pci.c pci_fun_t *pci_fun_first(pci_bus_t *bus)
bus 461 uspace/drv/bus/pci/pciintel/pci.c link = list_first(&bus->funs);
bus 634 uspace/drv/bus/pci/pciintel/pci.c errno_t pci_bus_scan(pci_bus_t *bus, int bus_num)
bus 650 uspace/drv/bus/pci/pciintel/pci.c fun = pci_fun_new(bus);
bus 695 uspace/drv/bus/pci/pciintel/pci.c fun->pio_window = bus->pio_win;
bus 712 uspace/drv/bus/pci/pciintel/pci.c rc = pci_bus_scan(bus, child_bus);
bus 726 uspace/drv/bus/pci/pciintel/pci.c list_append(&fun->lfuns, &bus->funs);
bus 740 uspace/drv/bus/pci/pciintel/pci.c pci_bus_t *bus = NULL;
bus 748 uspace/drv/bus/pci/pciintel/pci.c bus = ddf_dev_data_alloc(dnode, sizeof(pci_bus_t));
bus 749 uspace/drv/bus/pci/pciintel/pci.c if (bus == NULL) {
bus 755 uspace/drv/bus/pci/pciintel/pci.c list_initialize(&bus->funs);
bus 756 uspace/drv/bus/pci/pciintel/pci.c fibril_mutex_initialize(&bus->conf_mutex);
bus 758 uspace/drv/bus/pci/pciintel/pci.c bus->dnode = dnode;
bus 768 uspace/drv/bus/pci/pciintel/pci.c rc = pio_window_get(sess, &bus->pio_win);
bus 791 uspace/drv/bus/pci/pciintel/pci.c if (pio_enable_resource(&bus->pio_win,
bus 792 uspace/drv/bus/pci/pciintel/pci.c &hw_resources.resources[0], (void **) &bus->conf_space,
bus 812 uspace/drv/bus/pci/pciintel/pci.c if (pio_enable_resource(&bus->pio_win,
bus 813 uspace/drv/bus/pci/pciintel/pci.c &hw_resources.resources[0], (void **) &bus->conf_addr_reg,
bus 820 uspace/drv/bus/pci/pciintel/pci.c if (pio_enable_resource(&bus->pio_win,
bus 821 uspace/drv/bus/pci/pciintel/pci.c &hw_resources.resources[1], (void **) &bus->conf_data_reg,
bus 833 uspace/drv/bus/pci/pciintel/pci.c ctl = ddf_fun_create(bus->dnode, fun_exposed, "ctl");
bus 844 uspace/drv/bus/pci/pciintel/pci.c rc = pci_bus_scan(bus, 0);
bus 894 uspace/drv/bus/pci/pciintel/pci.c pci_fun_t *pci_fun_new(pci_bus_t *bus)
bus 899 uspace/drv/bus/pci/pciintel/pci.c fnode = ddf_fun_create(bus->dnode, fun_inner, NULL);
bus 907 uspace/drv/bus/pci/pciintel/pci.c fun->busptr = bus;
bus 912 uspace/drv/bus/pci/pciintel/pci.c void pci_fun_init(pci_fun_t *fun, int bus, int dev, int fn)
bus 914 uspace/drv/bus/pci/pciintel/pci.c fun->bus = bus;
bus 942 uspace/drv/bus/pci/pciintel/pci.c asprintf(&name, "%02x:%02x.%01x", fun->bus, fun->dev,
bus 64 uspace/drv/bus/pci/pciintel/pci.h int bus;
bus 63 uspace/drv/bus/usb/ehci/ehci_bus.c ehci_bus_t *bus = (ehci_bus_t *) dev->bus;
bus 64 uspace/drv/bus/usb/ehci/ehci_bus.c return usb2_bus_device_enumerate(&bus->helper, dev);
bus 69 uspace/drv/bus/usb/ehci/ehci_bus.c ehci_bus_t *bus = (ehci_bus_t *) dev->bus;
bus 70 uspace/drv/bus/usb/ehci/ehci_bus.c usb2_bus_device_gone(&bus->helper, dev);
bus 113 uspace/drv/bus/usb/ehci/ehci_bus.c ehci_bus_t *bus = (ehci_bus_t *) bus_base;
bus 116 uspace/drv/bus/usb/ehci/ehci_bus.c const int err = usb2_bus_endpoint_register(&bus->helper, ep);
bus 121 uspace/drv/bus/usb/ehci/ehci_bus.c hc_enqueue_endpoint(bus->hc, ep);
bus 122 uspace/drv/bus/usb/ehci/ehci_bus.c endpoint_set_online(ep, &bus->hc->guard);
bus 129 uspace/drv/bus/usb/ehci/ehci_bus.c ehci_bus_t *bus = (ehci_bus_t *) bus_base;
bus 130 uspace/drv/bus/usb/ehci/ehci_bus.c hc_t *hc = bus->hc;
bus 131 uspace/drv/bus/usb/ehci/ehci_bus.c assert(bus);
bus 134 uspace/drv/bus/usb/ehci/ehci_bus.c usb2_bus_endpoint_unregister(&bus->helper, ep);
bus 185 uspace/drv/bus/usb/ehci/ehci_bus.c int ehci_bus_init(ehci_bus_t *bus, hc_t *hc)
bus 188 uspace/drv/bus/usb/ehci/ehci_bus.c assert(bus);
bus 190 uspace/drv/bus/usb/ehci/ehci_bus.c bus_t *bus_base = (bus_t *) bus;
bus 194 uspace/drv/bus/usb/ehci/ehci_bus.c usb2_bus_helper_init(&bus->helper, &bandwidth_accounting_usb2);
bus 196 uspace/drv/bus/usb/ehci/ehci_bus.c bus->hc = hc;
bus 196 uspace/drv/bus/usb/ehci/hc.c ehci_bus_init(&instance->bus, instance);
bus 197 uspace/drv/bus/usb/ehci/hc.c hc_device_setup(hcd, (bus_t *) &instance->bus);
bus 271 uspace/drv/bus/usb/ehci/hc.c ehci_bus_t *bus = (ehci_bus_t *) bus_base;
bus 272 uspace/drv/bus/usb/ehci/hc.c hc_t *hc = bus->hc;
bus 294 uspace/drv/bus/usb/ehci/hc.c ehci_bus_t *bus = (ehci_bus_t *) endpoint_get_bus(batch->ep);
bus 295 uspace/drv/bus/usb/ehci/hc.c hc_t *hc = bus->hc;
bus 341 uspace/drv/bus/usb/ehci/hc.c ehci_bus_t *bus = (ehci_bus_t *) bus_base;
bus 342 uspace/drv/bus/usb/ehci/hc.c hc_t *hc = bus->hc;
bus 90 uspace/drv/bus/usb/ehci/hc.h ehci_bus_t bus;
bus 271 uspace/drv/bus/usb/ohci/hc.c ohci_bus_t *bus = (ohci_bus_t *) bus_base;
bus 272 uspace/drv/bus/usb/ohci/hc.c hc_t *hc = bus->hc;
bus 292 uspace/drv/bus/usb/ohci/hc.c ohci_bus_t *bus = (ohci_bus_t *) endpoint_get_bus(batch->ep);
bus 293 uspace/drv/bus/usb/ohci/hc.c hc_t *hc = bus->hc;
bus 344 uspace/drv/bus/usb/ohci/hc.c ohci_bus_t *bus = (ohci_bus_t *) bus_base;
bus 345 uspace/drv/bus/usb/ohci/hc.c hc_t *hc = bus->hc;
bus 611 uspace/drv/bus/usb/ohci/hc.c if ((ret = ohci_bus_init(&instance->bus, instance))) {
bus 617 uspace/drv/bus/usb/ohci/hc.c hc_device_setup(&instance->base, (bus_t *) &instance->bus);
bus 83 uspace/drv/bus/usb/ohci/hc.h ohci_bus_t bus;
bus 62 uspace/drv/bus/usb/ohci/ohci_bus.c ohci_bus_t *bus = (ohci_bus_t *) dev->bus;
bus 63 uspace/drv/bus/usb/ohci/ohci_bus.c return usb2_bus_device_enumerate(&bus->helper, dev);
bus 68 uspace/drv/bus/usb/ohci/ohci_bus.c ohci_bus_t *bus = (ohci_bus_t *) dev->bus;
bus 69 uspace/drv/bus/usb/ohci/ohci_bus.c usb2_bus_device_gone(&bus->helper, dev);
bus 119 uspace/drv/bus/usb/ohci/ohci_bus.c ohci_bus_t *bus = (ohci_bus_t *) bus_base;
bus 122 uspace/drv/bus/usb/ohci/ohci_bus.c const int err = usb2_bus_endpoint_register(&bus->helper, ep);
bus 127 uspace/drv/bus/usb/ohci/ohci_bus.c hc_enqueue_endpoint(bus->hc, ep);
bus 128 uspace/drv/bus/usb/ohci/ohci_bus.c endpoint_set_online(ep, &bus->hc->guard);
bus 135 uspace/drv/bus/usb/ohci/ohci_bus.c ohci_bus_t *const bus = (ohci_bus_t *) endpoint_get_bus(ep);
bus 136 uspace/drv/bus/usb/ohci/ohci_bus.c hc_t *const hc = bus->hc;
bus 139 uspace/drv/bus/usb/ohci/ohci_bus.c usb2_bus_endpoint_unregister(&bus->helper, ep);
bus 140 uspace/drv/bus/usb/ohci/ohci_bus.c hc_dequeue_endpoint(bus->hc, ep);
bus 191 uspace/drv/bus/usb/ohci/ohci_bus.c int ohci_bus_init(ohci_bus_t *bus, hc_t *hc)
bus 194 uspace/drv/bus/usb/ohci/ohci_bus.c assert(bus);
bus 196 uspace/drv/bus/usb/ohci/ohci_bus.c bus_t *bus_base = (bus_t *) bus;
bus 200 uspace/drv/bus/usb/ohci/ohci_bus.c usb2_bus_helper_init(&bus->helper, &bandwidth_accounting_usb11);
bus 202 uspace/drv/bus/usb/ohci/ohci_bus.c bus->hc = hc;
bus 163 uspace/drv/bus/usb/uhci/hc.c static void hc_interrupt(bus_t *bus, uint32_t status)
bus 165 uspace/drv/bus/usb/uhci/hc.c hc_t *instance = bus_to_hc(bus);
bus 414 uspace/drv/bus/usb/uhci/hc.c hc_t *const hc = bus_to_hc(dev->bus);
bus 420 uspace/drv/bus/usb/uhci/hc.c hc_t *const hc = bus_to_hc(dev->bus);
bus 459 uspace/drv/bus/usb/uhci/hc.c bus_init(&instance->bus, sizeof(device_t));
bus 460 uspace/drv/bus/usb/uhci/hc.c instance->bus.ops = &uhci_bus_ops;
bus 462 uspace/drv/bus/usb/uhci/hc.c hc_device_setup(&instance->base, &instance->bus);
bus 555 uspace/drv/bus/usb/uhci/hc.c static errno_t hc_status(bus_t *bus, uint32_t *status)
bus 557 uspace/drv/bus/usb/uhci/hc.c hc_t *instance = bus_to_hc(bus);
bus 108 uspace/drv/bus/usb/uhci/hc.h bus_t bus;
bus 153 uspace/drv/bus/usb/uhci/hc.h static inline hc_t *bus_to_hc(bus_t *bus)
bus 155 uspace/drv/bus/usb/uhci/hc.h assert(bus);
bus 156 uspace/drv/bus/usb/uhci/hc.h return member_to_inst(bus, hc_t, bus);
bus 88 uspace/drv/bus/usb/vhc/main.c hc_device_setup(&vhc->base, (bus_t *) &vhc->bus);
bus 169 uspace/drv/bus/usb/vhc/transfer.c vhc_data_t *vhc = bus_to_vhc(device->bus);
bus 175 uspace/drv/bus/usb/vhc/transfer.c vhc_data_t *vhc = bus_to_vhc(endpoint->device->bus);
bus 181 uspace/drv/bus/usb/vhc/transfer.c vhc_data_t *vhc = bus_to_vhc(endpoint->device->bus);
bus 201 uspace/drv/bus/usb/vhc/transfer.c bus_init(&instance->bus, sizeof(device_t));
bus 203 uspace/drv/bus/usb/vhc/transfer.c instance->bus.ops = &vhc_bus_ops;
bus 64 uspace/drv/bus/usb/vhc/vhcd.h bus_t bus;
bus 84 uspace/drv/bus/usb/vhc/vhcd.h static inline vhc_data_t *bus_to_vhc(bus_t *bus)
bus 86 uspace/drv/bus/usb/vhc/vhcd.h assert(bus);
bus 87 uspace/drv/bus/usb/vhc/vhcd.h return member_to_inst(bus, vhc_data_t, bus);
bus 69 uspace/drv/bus/usb/xhci/bus.c errno_t xhci_bus_init(xhci_bus_t *bus, xhci_hc_t *hc)
bus 71 uspace/drv/bus/usb/xhci/bus.c assert(bus);
bus 73 uspace/drv/bus/usb/xhci/bus.c bus_init(&bus->base, sizeof(xhci_device_t));
bus 75 uspace/drv/bus/usb/xhci/bus.c bus->devices_by_slot = calloc(hc->max_slots, sizeof(xhci_device_t *));
bus 76 uspace/drv/bus/usb/xhci/bus.c if (!bus->devices_by_slot)
bus 79 uspace/drv/bus/usb/xhci/bus.c bus->hc = hc;
bus 80 uspace/drv/bus/usb/xhci/bus.c bus->base.ops = &xhci_bus_ops;
bus 87 uspace/drv/bus/usb/xhci/bus.c void xhci_bus_fini(xhci_bus_t *bus)
bus 90 uspace/drv/bus/usb/xhci/bus.c free(bus->devices_by_slot);
bus 182 uspace/drv/bus/usb/xhci/device.c xhci_bus_t *bus = bus_to_xhci_bus(dev->bus);
bus 209 uspace/drv/bus/usb/xhci/device.c fibril_mutex_lock(&bus->base.guard);
bus 210 uspace/drv/bus/usb/xhci/device.c assert(bus->devices_by_slot[xhci_dev->slot_id] == NULL);
bus 211 uspace/drv/bus/usb/xhci/device.c bus->devices_by_slot[xhci_dev->slot_id] = xhci_dev;
bus 212 uspace/drv/bus/usb/xhci/device.c fibril_mutex_unlock(&bus->base.guard);
bus 214 uspace/drv/bus/usb/xhci/device.c if ((err = setup_ep0_packet_size(bus->hc, xhci_dev))) {
bus 243 uspace/drv/bus/usb/xhci/device.c bus->devices_by_slot[xhci_dev->slot_id] = NULL;
bus 261 uspace/drv/bus/usb/xhci/device.c xhci_bus_t *bus = bus_to_xhci_bus(dev->bus);
bus 271 uspace/drv/bus/usb/xhci/device.c bus->devices_by_slot[slot_id] = NULL;
bus 283 uspace/drv/bus/usb/xhci/device.c xhci_bus_t *bus = bus_to_xhci_bus(dev_base->bus);
bus 284 uspace/drv/bus/usb/xhci/device.c assert(bus);
bus 309 uspace/drv/bus/usb/xhci/device.c xhci_bus_t *bus = bus_to_xhci_bus(dev_base->bus);
bus 310 uspace/drv/bus/usb/xhci/device.c assert(bus);
bus 128 uspace/drv/bus/usb/xhci/endpoint.c xhci_bus_t *bus = bus_to_xhci_bus(ep->device->bus);
bus 129 uspace/drv/bus/usb/xhci/endpoint.c if (bus->hc->ac64)
bus 280 uspace/drv/bus/usb/xhci/hc.c if ((err = xhci_bus_init(&hc->bus, hc)))
bus 570 uspace/drv/bus/usb/xhci/hc.c errno_t hc_status(bus_t *bus, uint32_t *status)
bus 572 uspace/drv/bus/usb/xhci/hc.c xhci_hc_t *hc = bus_to_hc(bus);
bus 692 uspace/drv/bus/usb/xhci/hc.c void hc_interrupt(bus_t *bus, uint32_t status)
bus 694 uspace/drv/bus/usb/xhci/hc.c xhci_hc_t *hc = bus_to_hc(bus);
bus 738 uspace/drv/bus/usb/xhci/hc.c xhci_bus_fini(&hc->bus);
bus 778 uspace/drv/bus/usb/xhci/hc.c xhci_hc_t *const hc = bus_to_hc(dev->base.bus);
bus 791 uspace/drv/bus/usb/xhci/hc.c xhci_hc_t *const hc = bus_to_hc(dev->base.bus);
bus 826 uspace/drv/bus/usb/xhci/hc.c xhci_hc_t *const hc = bus_to_hc(dev->base.bus);
bus 851 uspace/drv/bus/usb/xhci/hc.c const xhci_hc_t *hc = bus_to_hc(dev->base.bus);
bus 875 uspace/drv/bus/usb/xhci/hc.c xhci_hc_t *const hc = bus_to_hc(dev->base.bus);
bus 927 uspace/drv/bus/usb/xhci/hc.c xhci_hc_t *const hc = bus_to_hc(dev->base.bus);
bus 952 uspace/drv/bus/usb/xhci/hc.c xhci_hc_t *const hc = bus_to_hc(dev->base.bus);
bus 991 uspace/drv/bus/usb/xhci/hc.c xhci_hc_t *const hc = bus_to_hc(dev->base.bus);
bus 1015 uspace/drv/bus/usb/xhci/hc.c xhci_hc_t *const hc = bus_to_hc(dev->base.bus);
bus 1055 uspace/drv/bus/usb/xhci/hc.c xhci_hc_t *const hc = bus_to_hc(dev->base.bus);
bus 1087 uspace/drv/bus/usb/xhci/hc.c xhci_hc_t *const hc = bus_to_hc(dev->base.bus);
bus 1113 uspace/drv/bus/usb/xhci/hc.c xhci_hc_t *const hc = bus_to_hc(dev->base.bus);
bus 89 uspace/drv/bus/usb/xhci/hc.h xhci_bus_t bus;
bus 106 uspace/drv/bus/usb/xhci/hc.h static inline xhci_hc_t *bus_to_hc(bus_t *bus)
bus 108 uspace/drv/bus/usb/xhci/hc.h assert(bus);
bus 109 uspace/drv/bus/usb/xhci/hc.h return member_to_inst(bus, xhci_hc_t, bus);
bus 56 uspace/drv/bus/usb/xhci/isoch.c const xhci_hc_t *hc = bus_to_xhci_bus(ep->base.device->bus)->hc;
bus 237 uspace/drv/bus/usb/xhci/isoch.c const xhci_bus_t *bus = bus_to_xhci_bus(ep->base.device->bus);
bus 238 uspace/drv/bus/usb/xhci/isoch.c const xhci_hc_t *hc = bus->hc;
bus 309 uspace/drv/bus/usb/xhci/isoch.c xhci_bus_t *bus = bus_to_xhci_bus(ep->base.device->bus);
bus 310 uspace/drv/bus/usb/xhci/isoch.c xhci_hc_t *hc = bus->hc;
bus 395 uspace/drv/bus/usb/xhci/isoch.c xhci_bus_t *bus = bus_to_xhci_bus(ep->base.device->bus);
bus 396 uspace/drv/bus/usb/xhci/isoch.c xhci_hc_t *hc = bus->hc;
bus 59 uspace/drv/bus/usb/xhci/main.c hc_device_setup(hcd, (bus_t *) &hc->bus);
bus 92 uspace/drv/bus/usb/xhci/rh.c const errno_t err = bus_device_init(&rh->device.base, &rh->hc->bus.base);
bus 299 uspace/drv/bus/usb/xhci/transfers.c xhci_device_t *dev = hc->bus.devices_by_slot[slot_id];
bus 55 uspace/lib/usbhost/include/usb/host/bus.h typedef struct bus bus_t;
bus 89 uspace/lib/usbhost/include/usb/host/bus.h bus_t *bus;
bus 52 uspace/lib/usbhost/include/usb/host/endpoint.h typedef struct bus bus_t;
bus 136 uspace/lib/usbhost/include/usb/host/endpoint.h return device ? device->bus : NULL;
bus 45 uspace/lib/usbhost/include/usb/host/hcd.h typedef struct bus bus_t;
bus 54 uspace/lib/usbhost/include/usb/host/hcd.h bus_t *bus;
bus 106 uspace/lib/usbhost/include/usb/host/hcd.h static inline void hc_device_setup(hc_device_t *hcd, bus_t *bus)
bus 108 uspace/lib/usbhost/include/usb/host/hcd.h hcd->bus = bus;
bus 54 uspace/lib/usbhost/include/usb/host/usb_transfer_batch.h typedef struct bus bus_t;
bus 56 uspace/lib/usbhost/src/bus.c void bus_init(bus_t *bus, size_t device_size)
bus 58 uspace/lib/usbhost/src/bus.c assert(bus);
bus 60 uspace/lib/usbhost/src/bus.c memset(bus, 0, sizeof(bus_t));
bus 62 uspace/lib/usbhost/src/bus.c fibril_mutex_initialize(&bus->guard);
bus 63 uspace/lib/usbhost/src/bus.c bus->device_size = device_size;
bus 69 uspace/lib/usbhost/src/bus.c int bus_device_init(device_t *dev, bus_t *bus)
bus 71 uspace/lib/usbhost/src/bus.c assert(bus);
bus 75 uspace/lib/usbhost/src/bus.c dev->bus = bus;
bus 131 uspace/lib/usbhost/src/bus.c if (!dev->bus->ops->device_enumerate)
bus 139 uspace/lib/usbhost/src/bus.c const int r = dev->bus->ops->device_enumerate(dev);
bus 221 uspace/lib/usbhost/src/bus.c const bus_ops_t *ops = dev->bus->ops;
bus 283 uspace/lib/usbhost/src/bus.c const bus_ops_t *ops = dev->bus->ops;
bus 341 uspace/lib/usbhost/src/bus.c const bus_ops_t *ops = dev->bus->ops;
bus 375 uspace/lib/usbhost/src/bus.c bus_t *bus = device->bus;
bus 377 uspace/lib/usbhost/src/bus.c if (!bus->ops->endpoint_register)
bus 381 uspace/lib/usbhost/src/bus.c if (bus->ops->endpoint_create) {
bus 382 uspace/lib/usbhost/src/bus.c ep = bus->ops->endpoint_create(device, desc);
bus 419 uspace/lib/usbhost/src/bus.c err = bus->ops->endpoint_register(ep);
bus 484 uspace/lib/usbhost/src/bus.c bus_t *bus = device->bus;
bus 486 uspace/lib/usbhost/src/bus.c if (!bus->ops->endpoint_unregister)
bus 508 uspace/lib/usbhost/src/bus.c bus->ops->endpoint_unregister(ep);
bus 521 uspace/lib/usbhost/src/bus.c int bus_reserve_default_address(bus_t *bus, device_t *dev)
bus 523 uspace/lib/usbhost/src/bus.c assert(bus);
bus 526 uspace/lib/usbhost/src/bus.c fibril_mutex_lock(&bus->guard);
bus 527 uspace/lib/usbhost/src/bus.c if (bus->default_address_owner != NULL) {
bus 528 uspace/lib/usbhost/src/bus.c err = (bus->default_address_owner == dev) ? EINVAL : EAGAIN;
bus 530 uspace/lib/usbhost/src/bus.c bus->default_address_owner = dev;
bus 533 uspace/lib/usbhost/src/bus.c fibril_mutex_unlock(&bus->guard);
bus 540 uspace/lib/usbhost/src/bus.c void bus_release_default_address(bus_t *bus, device_t *dev)
bus 542 uspace/lib/usbhost/src/bus.c assert(bus);
bus 544 uspace/lib/usbhost/src/bus.c fibril_mutex_lock(&bus->guard);
bus 545 uspace/lib/usbhost/src/bus.c if (bus->default_address_owner != dev) {
bus 549 uspace/lib/usbhost/src/bus.c bus->default_address_owner = NULL;
bus 551 uspace/lib/usbhost/src/bus.c fibril_mutex_unlock(&bus->guard);
bus 74 uspace/lib/usbhost/src/ddf_helpers.c assert(hcd->bus);
bus 108 uspace/lib/usbhost/src/ddf_helpers.c assert(hcd->bus);
bus 132 uspace/lib/usbhost/src/ddf_helpers.c assert(hcd->bus);
bus 137 uspace/lib/usbhost/src/ddf_helpers.c return bus_reserve_default_address(hcd->bus, dev);
bus 139 uspace/lib/usbhost/src/ddf_helpers.c bus_release_default_address(hcd->bus, dev);
bus 403 uspace/lib/usbhost/src/ddf_helpers.c device_t *dev = ddf_fun_data_alloc(fun, hc->bus->device_size);
bus 409 uspace/lib/usbhost/src/ddf_helpers.c bus_device_init(dev, hc->bus);
bus 84 uspace/lib/usbhost/src/endpoint.c return ep->device->bus->ops;
bus 231 uspace/lib/usbhost/src/endpoint.c const bus_ops_t *ops = device->bus->ops;
bus 106 uspace/lib/usbhost/src/hcd.c hcd->bus->ops->interrupt(hcd->bus, status);
bus 114 uspace/lib/usbhost/src/hcd.c bus_t *bus = arg;
bus 115 uspace/lib/usbhost/src/hcd.c assert(bus);
bus 117 uspace/lib/usbhost/src/hcd.c if (!bus->ops->interrupt || !bus->ops->status)
bus 121 uspace/lib/usbhost/src/hcd.c while (bus->ops->status(bus, &status) == EOK) {
bus 122 uspace/lib/usbhost/src/hcd.c bus->ops->interrupt(bus, status);
bus 250 uspace/lib/usbhost/src/hcd.c assert(hcd->bus);
bus 277 uspace/lib/usbhost/src/hcd.c const bus_ops_t *ops = hcd->bus->ops;
bus 281 uspace/lib/usbhost/src/hcd.c hcd->polling_fibril = fibril_create(interrupt_polling, hcd->bus);
bus 56 uspace/lib/usbhost/src/usb_transfer_batch.c bus_t *bus = endpoint_get_bus(ep);
bus 58 uspace/lib/usbhost/src/usb_transfer_batch.c if (!bus->ops->batch_create) {
bus 66 uspace/lib/usbhost/src/usb_transfer_batch.c return bus->ops->batch_create(ep);
bus 88 uspace/lib/usbhost/src/usb_transfer_batch.c bus_t *bus = endpoint_get_bus(batch->ep);
bus 91 uspace/lib/usbhost/src/usb_transfer_batch.c if (bus->ops) {
bus 94 uspace/lib/usbhost/src/usb_transfer_batch.c bus->ops->batch_destroy(batch);
HelenOS homepage, sources at GitHub