Lines Matching defs:c67x00
3 * c67x00-hcd.c: Cypress C67X00 USB Host Controller Driver
14 #include "c67x00.h"
15 #include "c67x00-hcd.h"
35 struct c67x00_hcd *c67x00 = sie->private_data;
40 spin_lock_irqsave(&c67x00->lock, flags);
42 spin_unlock_irqrestore(&c67x00->lock, flags);
49 struct c67x00_hcd *c67x00 = hcd_to_c67x00_hcd(hcd);
50 struct c67x00_sie *sie = c67x00->sie;
69 struct c67x00_hcd *c67x00 = hcd_to_c67x00_hcd(hcd);
70 struct c67x00_sie *sie = c67x00->sie;
99 c67x00->low_speed_ports |= (1 << port);
101 c67x00->low_speed_ports &= ~(1 << port);
130 dev_dbg(c67x00_hcd_dev(c67x00),
146 dev_dbg(c67x00_hcd_dev(c67x00),
159 /* Reset the port so that the c67x00 also notices the
166 dev_dbg(c67x00_hcd_dev(c67x00),
172 dev_dbg(c67x00_hcd_dev(c67x00),
178 dev_dbg(c67x00_hcd_dev(c67x00),
184 dev_dbg(c67x00_hcd_dev(c67x00),
195 dev_dbg(c67x00_hcd_dev(c67x00),
201 dev_dbg(c67x00_hcd_dev(c67x00),
207 dev_dbg(c67x00_hcd_dev(c67x00),
220 dev_dbg(c67x00_hcd_dev(c67x00), "%s: unknown\n", __func__);
234 * This function is called from the interrupt handler in c67x00-drv.c
238 struct c67x00_hcd *c67x00 = sie->private_data;
239 struct usb_hcd *hcd = c67x00_hcd_to_hcd(c67x00);
244 c67x00_sched_kick(c67x00);
246 dev_warn(c67x00_hcd_dev(c67x00),
259 c67x00_sched_kick(c67x00);
285 struct c67x00_hcd *c67x00 = hcd_to_c67x00_hcd(hcd);
288 dev_dbg(c67x00_hcd_dev(c67x00), "%s\n", __func__);
289 temp_val = c67x00_ll_husb_get_frame(c67x00->sie);
295 .description = "c67x00-hcd",
331 struct c67x00_hcd *c67x00;
344 c67x00 = hcd_to_c67x00_hcd(hcd);
346 spin_lock_init(&c67x00->lock);
347 c67x00->sie = sie;
349 INIT_LIST_HEAD(&c67x00->list[PIPE_ISOCHRONOUS]);
350 INIT_LIST_HEAD(&c67x00->list[PIPE_INTERRUPT]);
351 INIT_LIST_HEAD(&c67x00->list[PIPE_CONTROL]);
352 INIT_LIST_HEAD(&c67x00->list[PIPE_BULK]);
353 c67x00->urb_count = 0;
354 INIT_LIST_HEAD(&c67x00->td_list);
355 c67x00->td_base_addr = CY_HCD_BUF_ADDR + SIE_TD_OFFSET(sie->sie_num);
356 c67x00->buf_base_addr = CY_HCD_BUF_ADDR + SIE_BUF_OFFSET(sie->sie_num);
357 c67x00->max_frame_bw = MAX_FRAME_BW_STD;
361 init_completion(&c67x00->endpoint_disable);
362 retval = c67x00_sched_start_scheduler(c67x00);
376 sie->private_data = c67x00;
383 c67x00_sched_stop_scheduler(c67x00);
393 struct c67x00_hcd *c67x00 = sie->private_data;
394 struct usb_hcd *hcd = c67x00_hcd_to_hcd(c67x00);
396 c67x00_sched_stop_scheduler(c67x00);