/fuchsia/zircon/third_party/ulib/musl/src/termios/ |
H A D | cfsetospeed.c | 6 int cfsetospeed(struct termios* tio, speed_t speed) { argument 7 if (speed & ~CBAUD) { 12 tio->c_cflag |= speed; 16 int cfsetispeed(struct termios* tio, speed_t speed) { argument 17 return speed ? cfsetospeed(tio, speed) : 0;
|
/fuchsia/zircon/system/ulib/ddk/include/ddk/protocol/ |
H A D | usb-bus.h | 19 zx_status_t (*configure_hub)(void* ctx, zx_device_t* hub_device, usb_speed_t speed, 22 usb_speed_t speed); 33 usb_speed_t speed, 35 return bus->ops->configure_hub(bus->ctx, hub_device, speed, descriptor); 39 int port, usb_speed_t speed) { 40 return bus->ops->hub_device_added(bus->ctx, hub_device, port, speed); 55 zx_status_t (*add_device)(void* ctx, uint32_t device_id, uint32_t hub_id, usb_speed_t speed); 66 uint32_t hub_id, usb_speed_t speed) { 67 return bus->ops->add_device(bus->ctx, device_id, hub_id, speed); 32 usb_bus_configure_hub(usb_bus_protocol_t* bus, zx_device_t* hub_device, usb_speed_t speed, usb_hub_descriptor_t* descriptor) argument 38 usb_bus_hub_device_added(usb_bus_protocol_t* bus, zx_device_t* hub_device, int port, usb_speed_t speed) argument 65 usb_bus_add_device(usb_bus_interface_t* bus, uint32_t device_id, uint32_t hub_id, usb_speed_t speed) argument
|
H A D | usb-hci.h | 32 zx_status_t (*configure_hub)(void* ctx, uint32_t device_id, usb_speed_t speed, 34 zx_status_t (*hub_device_added)(void* ctx, uint32_t device_id, int port, usb_speed_t speed); 73 usb_speed_t speed, 75 return hci->ops->configure_hub(hci->ctx, device_id, speed, descriptor); 79 int port, usb_speed_t speed) { 80 return hci->ops->hub_device_added(hci->ctx, device_id, port, speed); 72 usb_hci_configure_hub(usb_hci_protocol_t* hci, uint32_t device_id, usb_speed_t speed, usb_hub_descriptor_t* descriptor) argument 78 usb_hci_hub_device_added(usb_hci_protocol_t* hci, uint32_t device_id, int port, usb_speed_t speed) argument
|
H A D | usb-dci.h | 23 void (*set_speed)(void* ctx, usb_speed_t speed); 40 static inline void usb_dci_set_speed(usb_dci_interface_t* intf, usb_speed_t speed) { argument 41 intf->ops->set_speed(intf->ctx, speed);
|
H A D | usb-function.h | 21 // depending on whether we are in low/full, high or super speed mode. 35 zx_status_t (*set_configured)(void* ctx, bool configured, usb_speed_t speed); 60 bool configured, usb_speed_t speed) { 61 return intf->ops->set_configured(intf->ctx, configured, speed); 59 usb_function_set_configured(usb_function_interface_t* intf, bool configured, usb_speed_t speed) argument
|
/fuchsia/zircon/system/dev/usb/xhci/ |
H A D | xhci-device-manager.h | 14 usb_speed_t speed); 21 zx_status_t xhci_configure_hub(xhci_t* xhci, uint32_t slot_id, usb_speed_t speed,
|
H A D | xhci-root-hub.h | 27 usb_speed_t speed; member in struct:__anon545
|
H A D | xhci-device-manager.c | 31 usb_speed_t speed; member in struct:__anon528 55 uint32_t port, usb_speed_t speed) { 56 zxlogf(TRACE, "xhci_address_device slot_id: %d port: %d hub_address: %d speed: %d\n", 57 slot_id, port, hub_address, speed); 73 slot->speed = speed; 117 XHCI_SET_BITS32(&sc->sc0, SLOT_CTX_SPEED_START, SLOT_CTX_SPEED_BITS, speed); 125 if (hub_address != 0 && (speed == USB_SPEED_LOW || speed == USB_SPEED_FULL)) { 133 } else if (hub_slot->speed 54 xhci_address_device(xhci_t* xhci, uint32_t slot_id, uint32_t hub_address, uint32_t port, usb_speed_t speed) argument 236 compute_interval(usb_endpoint_descriptor_t* ep, usb_speed_t speed) argument 293 xhci_handle_enumerate_device(xhci_t* xhci, uint32_t hub_address, uint32_t port, usb_speed_t speed) argument 530 xhci_queue_command(xhci_t* xhci, int command, uint32_t hub_address, uint32_t port, usb_speed_t speed) argument 558 xhci_enumerate_device(xhci_t* xhci, uint32_t hub_address, uint32_t port, usb_speed_t speed) argument 600 usb_speed_t speed = slot->speed; local 716 xhci_configure_hub(xhci_t* xhci, uint32_t slot_id, usb_speed_t speed, usb_hub_descriptor_t* descriptor) argument [all...] |
H A D | xhci-root-hub.c | 176 uint32_t speed = (portsc >> PORTSC_SPEED_START) & ((1 << PORTSC_SPEED_BITS) - 1); local 177 switch (speed) { 214 if (rh->speed == USB_SPEED_SUPER) { 282 rh->speed = xhci_rh_speeds[rh_index]; 285 return xhci_add_device(xhci, xhci->max_slots + rh_index + 1, 0, rh->speed); 510 uint32_t speed = (portsc & XHCI_MASK(PORTSC_SPEED_START, PORTSC_SPEED_BITS)) >> PORTSC_SPEED_START; local 554 if (speed == USB_SPEED_LOW) { 556 } else if (speed == USB_SPEED_HIGH) {
|
H A D | usb-xhci.c | 38 zx_status_t xhci_add_device(xhci_t* xhci, int slot_id, int hub_address, int speed) { argument 46 return usb_bus_add_device(&xhci->bus, slot_id, hub_address, speed); 94 static zx_status_t xhci_config_hub(void* ctx, uint32_t device_id, usb_speed_t speed, argument 97 return xhci_configure_hub(xhci, device_id, speed, descriptor); 101 usb_speed_t speed) { 103 return xhci_enumerate_device(xhci, hub_address, port, speed); 100 xhci_hub_device_added(void* ctx, uint32_t hub_address, int port, usb_speed_t speed) argument
|
H A D | xhci.h | 79 usb_speed_t speed; member in struct:xhci_slot 236 zx_status_t xhci_add_device(xhci_t* xhci, int slot_id, int hub_address, int speed);
|
/fuchsia/zircon/system/dev/usb/usb-bus/ |
H A D | usb-device.h | 31 usb_speed_t speed; member in struct:usb_device 61 usb_speed_t speed, usb_device_t** out_device);
|
H A D | usb-bus.c | 16 usb_speed_t speed) { 23 return usb_device_add(bus, device_id, hub_id, speed, &bus->devices[device_id]); 72 static zx_status_t bus_configure_hub(void* ctx, zx_device_t* hub_device, usb_speed_t speed, argument 79 return usb_hci_configure_hub(&bus->hci, hub_id, speed, descriptor); 82 static zx_status_t bus_device_added(void* ctx, zx_device_t* hub_device, int port, usb_speed_t speed) { argument 88 return usb_hci_hub_device_added(&bus->hci, hub_id, port, speed); 15 bus_add_device(void* ctx, uint32_t device_id, uint32_t hub_id, usb_speed_t speed) argument
|
H A D | usb-device.c | 140 *reply = dev->speed; 441 return dev->speed; 590 usb_speed_t speed, usb_device_t** out_device) { 683 dev->speed = speed; 589 usb_device_add(usb_bus_t* bus, uint32_t device_id, uint32_t hub_id, usb_speed_t speed, usb_device_t** out_device) argument
|
/fuchsia/zircon/system/uapp/lsusb/ |
H A D | lsusb.c | 76 int speed; local 77 ret = ioctl_usb_get_device_speed(fd, &speed); 78 if (ret != sizeof(speed) || speed < 0 || (size_t)speed >= countof(usb_speeds)) { 89 le16toh(device_desc.idVendor), le16toh(device_desc.idProduct), usb_speeds[speed],
|
/fuchsia/zircon/system/dev/usb/dwc3/ |
H A D | dwc3.c | 225 uint32_t speed = DSTS_CONNECTSPD(status); local 228 switch (speed) { 230 dwc->speed = USB_SPEED_HIGH; 234 dwc->speed = USB_SPEED_FULL; 239 dwc->speed = USB_SPEED_SUPER; 243 zxlogf(ERROR, "dwc3_connection_done: unsupported speed %u\n", speed); 244 dwc->speed = USB_SPEED_UNDEFINED; 257 usb_dci_set_speed(&dwc->dci_intf, dwc->speed);
|
H A D | dwc3.h | 100 usb_speed_t speed; member in struct:__anon506
|
/fuchsia/zircon/system/dev/usb/dwc2/ |
H A D | dwc2.c | 111 usb_speed_t speed; member in struct:dwc_usb_device 629 zx_status_t dwc_config_hub(void* ctx, uint32_t device_id, usb_speed_t speed, argument 640 usb_speed_t speed) { 643 zxlogf(INFO, "dwc_usb: hub device added, hub = %u, port = %d, speed = %d\n", 644 hub_address, port, speed); 655 new_device->speed = speed; 730 dwc->usb_devices[dwc->next_device_address].speed = speed; 763 usb_bus_add_device(&dwc->bus, dwc->next_device_address, hub_address, speed); 639 dwc_hub_device_added(void* _ctx, uint32_t hub_address, int port, usb_speed_t speed) argument [all...] |
/fuchsia/zircon/system/dev/usb/usb-hub/ |
H A D | usb-hub.c | 186 usb_speed_t speed; local 188 speed = USB_SPEED_SUPER; 190 speed = USB_SPEED_LOW; 192 speed = USB_SPEED_HIGH; 194 speed = USB_SPEED_FULL; 198 usb_bus_hub_device_added(&hub->bus, hub->usb_device, port, speed);
|
/fuchsia/zircon/system/dev/block/sdmmc/ |
H A D | sdio.c | 247 //speed 435 uint8_t speed = 0; local 438 zxlogf(ERROR, "sdio: High speed not supported, retcode = %d\n", st); 441 st = sdio_io_rw_direct(dev, false, 0, SDIO_CIA_CCCR_BUS_SPEED_SEL_ADDR, 0, &speed); 446 update_bits_u8(&speed, SDIO_CIA_CCCR_BUS_SPEED_BSS_MASK, SDIO_CIA_CCCR_BUS_SPEED_BSS_LOC, 448 st = sdio_io_rw_direct(dev, true, 0, SDIO_CIA_CCCR_BUS_SPEED_SEL_ADDR, speed, NULL); 468 uint8_t speed = 0; local 475 st = sdio_io_rw_direct(dev, false, 0, SDIO_CIA_CCCR_BUS_SPEED_SEL_ADDR, 0, &speed); 497 update_bits_u8(&speed, SDIO_CIA_CCCR_BUS_SPEED_BSS_MASK, SDIO_CIA_CCCR_BUS_SPEED_BSS_LOC, 500 st = sdio_io_rw_direct(dev, true, 0, SDIO_CIA_CCCR_BUS_SPEED_SEL_ADDR, speed, NUL [all...] |
/fuchsia/zircon/third_party/ulib/usb-dwc-regs/include/dwc2/ |
H A D | usb_dwc_regs.h | 418 * 00: high speed; 01: full speed; 10: low speed 422 uint32_t speed : 2; /* Bits 17-18 */ member in struct:dwc_regs::dwc_host_port_ctrlstatus::__anon1931 479 * speed; 0 otherwise. Must be programmed by software before 494 * high-speed interrupt and isochronous endpoints. Must be 537 * with low or full-speed devices attached to a high-speed hub. When 550 * 0-based index of the port on the high-speed hub on which the 551 * low or full-speed devic [all...] |
/fuchsia/zircon/system/dev/usb/usb-peripheral/ |
H A D | usb-peripheral.c | 130 // USB connection speed 131 usb_speed_t speed; member in struct:usb_device 554 status = usb_function_set_configured(&function->interface, configured, dev->speed); 659 static void usb_dev_set_speed(void* ctx, usb_speed_t speed) { argument 661 dev->speed = speed;
|
/fuchsia/zircon/system/dev/ethernet/asix-88179/ |
H A D | asix-88179.c | 190 uint8_t speed = plsr & AX88179_PLSR_EPHY_MASK; local 191 if (speed & (speed-1)) { 192 zxlogf(ERROR, "ax88179: invalid eth speed: %#x\n", speed); 196 ax88179_bulk_in_config[usb_mode][speed >> 4]); 754 // Switch clock to normal speed
|
/fuchsia/zircon/system/dev/block/ums-function/ |
H A D | ums-function.c | 431 static zx_status_t ums_set_configured(void* ctx, bool configured, usb_speed_t speed) { argument 432 zxlogf(TRACE, "ums_set_configured %d %d\n", configured, speed);
|
/fuchsia/zircon/system/dev/i2c/intel-i2c/ |
H A D | intel-i2c-controller.c | 682 unsigned int speed = CTL_SPEED_STANDARD; local 686 speed = CTL_SPEED_FAST; 691 (speed << CTL_SPEED) | 872 // Run the bus at standard speed by default.
|