Lines Matching refs:hci
27 static __u32 getPortStatusAndChange (hci_t * hci);
28 static void setPortStatus (hci_t * hci, __u16 bitPos);
29 static void setPortChange (hci_t * hci, __u16 bitPos);
30 static void clrPortStatus (hci_t * hci, __u16 bitPos);
31 static void clrPortChange (hci_t * hci, __u16 bitPos);
32 static int USBReset (hci_t * hci);
125 static int rh_send_irq (hci_t * hci, void *rh_data, int rh_len) in rh_send_irq() argument
161 …(((getPortStatusAndChange (hci) >> 16) & (PORT_CONNECT_STAT | PORT_ENABLE_STAT)) ? 1 : 0) << ((i +… in rh_send_irq()
194 hci_t *hci = urb->dev->bus->hcpriv; in rh_int_timer_do() local
198 if (hci->rh.send) { in rh_int_timer_do()
199 len = rh_send_irq (hci, urb->transfer_buffer, in rh_int_timer_do()
232 hci_t *hci = urb->dev->bus->hcpriv; in rh_init_int_timer() local
233 hci->rh.interval = urb->interval; in rh_init_int_timer()
235 init_timer (&hci->rh.rh_int_timer); in rh_init_int_timer()
236 hci->rh.rh_int_timer.function = rh_int_timer_do; in rh_init_int_timer()
237 hci->rh.rh_int_timer.data = (unsigned long) urb; in rh_init_int_timer()
238 hci->rh.rh_int_timer.expires = jiffies + (HZ * (urb->interval < 30 ? 30 : urb->interval)) / 1000; in rh_init_int_timer()
239 add_timer (&hci->rh.rh_int_timer); in rh_init_int_timer()
261 hci_t *hci = usb_dev->bus->hcpriv; in rh_submit_urb() local
278 hci->rh.urb = urb; in rh_submit_urb()
279 hci->rh.send = 1; in rh_submit_urb()
280 hci->rh.interval = urb->interval; in rh_submit_urb()
322 cpu_to_le32 (getPortStatusAndChange (hci)); in rh_submit_urb()
346 clrPortStatus (hci, PORT_ENABLE_STAT); in rh_submit_urb()
350 clrPortStatus (hci, PORT_SUSPEND_STAT); in rh_submit_urb()
354 clrPortStatus (hci, PORT_POWER_STAT); in rh_submit_urb()
358 clrPortChange (hci, PORT_CONNECT_STAT); in rh_submit_urb()
362 clrPortChange (hci, PORT_ENABLE_STAT); in rh_submit_urb()
366 clrPortChange (hci, PORT_SUSPEND_STAT); in rh_submit_urb()
370 clrPortChange (hci, PORT_OVER_CURRENT_STAT); in rh_submit_urb()
374 clrPortChange (hci, PORT_RESET_STAT); in rh_submit_urb()
382 setPortStatus (hci, PORT_SUSPEND_STAT); in rh_submit_urb()
386 setPortStatus (hci, PORT_RESET_STAT); in rh_submit_urb()
388 clrPortChange (hci, in rh_submit_urb()
392 setPortChange (hci, PORT_RESET_CHANGE); in rh_submit_urb()
393 clrPortStatus (hci, PORT_RESET_STAT); in rh_submit_urb()
394 setPortStatus (hci, PORT_ENABLE_STAT); in rh_submit_urb()
399 setPortStatus (hci, PORT_POWER_STAT); in rh_submit_urb()
403 setPortStatus (hci, PORT_ENABLE_STAT); in rh_submit_urb()
409 hci->rh.devnum = wValue; in rh_submit_urb()
482 hci_t *hci = urb->dev->bus->hcpriv; in rh_unlink_urb() local
485 if (hci->rh.urb == urb) { in rh_unlink_urb()
486 hci->rh.send = 0; in rh_unlink_urb()
487 del_timer (&hci->rh.rh_int_timer); in rh_unlink_urb()
488 hci->rh.urb = NULL; in rh_unlink_urb()
519 static int rh_connect_rh (hci_t * hci) in rh_connect_rh() argument
523 hci->rh.devnum = 0; in rh_connect_rh()
524 usb_dev = usb_alloc_dev (NULL, hci->bus); in rh_connect_rh()
528 hci->bus->root_hub = usb_dev; in rh_connect_rh()