Lines Matching refs:c67x00
2 * c67x00-hcd.c: Cypress C67X00 USB Host Controller Driver
28 #include "c67x00.h"
29 #include "c67x00-hcd.h"
49 struct c67x00_hcd *c67x00 = sie->private_data;
54 spin_lock_irqsave(&c67x00->lock, flags);
56 spin_unlock_irqrestore(&c67x00->lock, flags);
63 struct c67x00_hcd *c67x00 = hcd_to_c67x00_hcd(hcd);
64 struct c67x00_sie *sie = c67x00->sie;
83 struct c67x00_hcd *c67x00 = hcd_to_c67x00_hcd(hcd);
84 struct c67x00_sie *sie = c67x00->sie;
113 c67x00->low_speed_ports |= (1 << port);
115 c67x00->low_speed_ports &= ~(1 << port);
144 dev_dbg(c67x00_hcd_dev(c67x00),
160 dev_dbg(c67x00_hcd_dev(c67x00),
173 /* Reset the port so that the c67x00 also notices the
180 dev_dbg(c67x00_hcd_dev(c67x00),
186 dev_dbg(c67x00_hcd_dev(c67x00),
192 dev_dbg(c67x00_hcd_dev(c67x00),
198 dev_dbg(c67x00_hcd_dev(c67x00),
209 dev_dbg(c67x00_hcd_dev(c67x00),
215 dev_dbg(c67x00_hcd_dev(c67x00),
221 dev_dbg(c67x00_hcd_dev(c67x00),
234 dev_dbg(c67x00_hcd_dev(c67x00), "%s: unknown\n", __func__);
248 * This function is called from the interrupt handler in c67x00-drv.c
252 struct c67x00_hcd *c67x00 = sie->private_data;
253 struct usb_hcd *hcd = c67x00_hcd_to_hcd(c67x00);
258 c67x00_sched_kick(c67x00);
260 dev_warn(c67x00_hcd_dev(c67x00),
273 c67x00_sched_kick(c67x00);
300 struct c67x00_hcd *c67x00 = hcd_to_c67x00_hcd(hcd);
303 dev_dbg(c67x00_hcd_dev(c67x00), "%s\n", __func__);
304 temp_val = c67x00_ll_husb_get_frame(c67x00->sie);
310 .description = "c67x00-hcd",
346 struct c67x00_hcd *c67x00;
359 c67x00 = hcd_to_c67x00_hcd(hcd);
361 spin_lock_init(&c67x00->lock);
362 c67x00->sie = sie;
364 INIT_LIST_HEAD(&c67x00->list[PIPE_ISOCHRONOUS]);
365 INIT_LIST_HEAD(&c67x00->list[PIPE_INTERRUPT]);
366 INIT_LIST_HEAD(&c67x00->list[PIPE_CONTROL]);
367 INIT_LIST_HEAD(&c67x00->list[PIPE_BULK]);
368 c67x00->urb_count = 0;
369 INIT_LIST_HEAD(&c67x00->td_list);
370 c67x00->td_base_addr = CY_HCD_BUF_ADDR + SIE_TD_OFFSET(sie->sie_num);
371 c67x00->buf_base_addr = CY_HCD_BUF_ADDR + SIE_BUF_OFFSET(sie->sie_num);
372 c67x00->max_frame_bw = MAX_FRAME_BW_STD;
376 init_completion(&c67x00->endpoint_disable);
377 retval = c67x00_sched_start_scheduler(c67x00);
389 sie->private_data = c67x00;
396 c67x00_sched_stop_scheduler(c67x00);
406 struct c67x00_hcd *c67x00 = sie->private_data;
407 struct usb_hcd *hcd = c67x00_hcd_to_hcd(c67x00);
409 c67x00_sched_stop_scheduler(c67x00);