Searched refs:portno (Results 1 – 2 of 2) sorted by relevance
/third_party/FreeBSD/sys/dev/usb/ |
D | usb_hub.c | 555 uhub_read_port_status(struct uhub_softc *sc, uint8_t portno) in uhub_read_port_status() argument 561 DPRINTFN(4, "port %d, HUB looks dead, too many errors\n", portno); in uhub_read_port_status() 568 sc->sc_udev, NULL, &ps, portno); in uhub_read_port_status() 584 portno, sc->sc_st.port_status, in uhub_read_port_status() 602 uhub_port_debounce(struct uhub_softc *sc, uint8_t portno) in uhub_port_debounce() argument 613 ret = uhub_read_port_status(sc, portno); in uhub_port_debounce() 632 portno, UHF_C_PORT_CONNECTION); in uhub_port_debounce() 655 uhub_reattach_port(struct uhub_softc *sc, uint8_t portno) in uhub_reattach_port() argument 666 DPRINTF("reattaching port %d\n", portno); in uhub_reattach_port() 671 udev->hub->ports + portno - 1); in uhub_reattach_port() [all …]
|
D | usb_request.c | 38 #define PORTNO_TO_NBIT(portno, i) (1U << (portno - (i << 5))) argument 41 usb_reset_port_flag_set(uint8_t portno) in usb_reset_port_flag_set() argument 43 uint32_t i = portno >> 5; in usb_reset_port_flag_set() 45 usb_reset_port_flag[i] |= PORTNO_TO_NBIT(portno, i); in usb_reset_port_flag_set() 49 usb_reset_port_flag_clear(uint8_t portno) in usb_reset_port_flag_clear() argument 51 uint32_t i = portno >> 5; in usb_reset_port_flag_clear() 53 usb_reset_port_flag[i] &= ~PORTNO_TO_NBIT(portno, i); in usb_reset_port_flag_clear() 57 usb_reset_port_flag_is_set(uint8_t portno) in usb_reset_port_flag_is_set() argument 59 uint32_t i = portno >> 5; in usb_reset_port_flag_is_set() 61 if (usb_reset_port_flag[i] & PORTNO_TO_NBIT(portno, i)) { in usb_reset_port_flag_is_set()
|