Home
last modified time | relevance | path

Searched refs:fhci (Results 1 – 9 of 9) sorted by relevance

/drivers/usb/host/
Dfhci-hub.c43 static void fhci_gpio_set_value(struct fhci_hcd *fhci, int gpio_nr, bool on) in fhci_gpio_set_value() argument
45 int gpio = fhci->gpios[gpio_nr]; in fhci_gpio_set_value()
46 bool alow = fhci->alow_gpios[gpio_nr]; in fhci_gpio_set_value()
55 void fhci_config_transceiver(struct fhci_hcd *fhci, in fhci_config_transceiver() argument
58 fhci_dbg(fhci, "-> %s: %d\n", __func__, status); in fhci_config_transceiver()
62 fhci_gpio_set_value(fhci, GPIO_POWER, false); in fhci_config_transceiver()
66 fhci_gpio_set_value(fhci, GPIO_POWER, true); in fhci_config_transceiver()
69 fhci_gpio_set_value(fhci, GPIO_SPEED, false); in fhci_config_transceiver()
72 fhci_gpio_set_value(fhci, GPIO_SPEED, true); in fhci_config_transceiver()
79 fhci_dbg(fhci, "<- %s: %d\n", __func__, status); in fhci_config_transceiver()
[all …]
Dfhci-hcd.c35 void fhci_start_sof_timer(struct fhci_hcd *fhci) in fhci_start_sof_timer() argument
37 fhci_dbg(fhci, "-> %s\n", __func__); in fhci_start_sof_timer()
40 out_be16(&fhci->pram->frame_num, 0); in fhci_start_sof_timer()
42 out_be16(&fhci->regs->usb_sof_tmr, 0); in fhci_start_sof_timer()
43 setbits8(&fhci->regs->usb_mod, USB_MODE_SFTE); in fhci_start_sof_timer()
45 fhci_dbg(fhci, "<- %s\n", __func__); in fhci_start_sof_timer()
48 void fhci_stop_sof_timer(struct fhci_hcd *fhci) in fhci_stop_sof_timer() argument
50 fhci_dbg(fhci, "-> %s\n", __func__); in fhci_stop_sof_timer()
52 clrbits8(&fhci->regs->usb_mod, USB_MODE_SFTE); in fhci_stop_sof_timer()
53 gtm_stop_timer16(fhci->timer); in fhci_stop_sof_timer()
[all …]
Dfhci-dbg.c26 void fhci_dbg_isr(struct fhci_hcd *fhci, int usb_er) in fhci_dbg_isr() argument
31 fhci->usb_irq_stat[12]++; in fhci_dbg_isr()
37 fhci->usb_irq_stat[i]++; in fhci_dbg_isr()
43 struct fhci_hcd *fhci = s->private; in fhci_dfs_regs_show() local
44 struct fhci_regs __iomem *regs = fhci->regs; in fhci_dfs_regs_show()
58 fhci_ioports_check_bus_state(fhci)); in fhci_dfs_regs_show()
65 struct fhci_hcd *fhci = s->private; in fhci_dfs_irq_stat_show() local
66 int *usb_irq_stat = fhci->usb_irq_stat; in fhci_dfs_irq_stat_show()
107 void fhci_dfs_create(struct fhci_hcd *fhci) in fhci_dfs_create() argument
109 struct device *dev = fhci_to_hcd(fhci)->self.controller; in fhci_dfs_create()
[all …]
Dfhci-sched.c91 fhci_dbg(usb->fhci, "td err fu\n"); in fhci_transaction_confirm()
95 fhci_dbg(usb->fhci, "td err f!u\n"); in fhci_transaction_confirm()
98 fhci_dbg(usb->fhci, "td err !f\n"); in fhci_transaction_confirm()
106 fhci_vdbg(usb->fhci, "td nack\n"); in fhci_transaction_confirm()
135 mode = in_8(&usb->fhci->regs->usb_mod); in fhci_flush_all_transmissions()
136 clrbits8(&usb->fhci->regs->usb_mod, USB_MODE_EN); in fhci_flush_all_transmissions()
150 out_be16(&usb->fhci->regs->usb_event, 0xffff); in fhci_flush_all_transmissions()
152 out_8(&usb->fhci->regs->usb_mod, mode | USB_MODE_EN); in fhci_flush_all_transmissions()
200 fhci_vdbg(usb->fhci, "not enough space in this frame: " in add_packet()
211 fhci_dbg(usb->fhci, "not enough time in this frame\n"); in add_packet()
[all …]
Dfhci.h460 u32 (*transfer_confirm)(struct fhci_hcd *fhci);
462 struct fhci_hcd *fhci; member
469 static inline u16 get_frame_num(struct fhci_hcd *fhci) in get_frame_num() argument
471 return in_be16(&fhci->pram->frame_num) & 0x07ff; in get_frame_num()
474 #define fhci_dbg(fhci, fmt, args...) \ argument
475 dev_dbg(fhci_to_hcd(fhci)->self.controller, fmt, ##args)
476 #define fhci_vdbg(fhci, fmt, args...) \ argument
477 dev_vdbg(fhci_to_hcd(fhci)->self.controller, fmt, ##args)
478 #define fhci_err(fhci, fmt, args...) \ argument
479 dev_err(fhci_to_hcd(fhci)->self.controller, fmt, ##args)
[all …]
Dfhci-mem.c40 static struct td *get_empty_td(struct fhci_hcd *fhci) in get_empty_td() argument
44 if (!list_empty(&fhci->empty_tds)) { in get_empty_td()
45 td = list_entry(fhci->empty_tds.next, struct td, node); in get_empty_td()
46 list_del(fhci->empty_tds.next); in get_empty_td()
50 fhci_err(fhci, "No memory to allocate to TD\n"); in get_empty_td()
58 void fhci_recycle_empty_td(struct fhci_hcd *fhci, struct td *td) in fhci_recycle_empty_td() argument
61 list_add(&td->node, &fhci->empty_tds); in fhci_recycle_empty_td()
64 struct ed *fhci_get_empty_ed(struct fhci_hcd *fhci) in fhci_get_empty_ed() argument
68 if (!list_empty(&fhci->empty_eds)) { in fhci_get_empty_ed()
69 ed = list_entry(fhci->empty_eds.next, struct ed, node); in fhci_get_empty_ed()
[all …]
DMakefile10 fhci-objs := fhci-hcd.o fhci-hub.o fhci-q.o fhci-mem.o \
11 fhci-tds.o fhci-sched.o
13 fhci-objs += fhci-dbg.o
25 obj-$(CONFIG_USB_FHCI_HCD) += fhci.o
Dfhci-q.c160 usb->transfer_confirm(usb->fhci); in fhci_move_td_from_ed_to_done_list()
164 static void free_urb_priv(struct fhci_hcd *fhci, struct urb *urb) in free_urb_priv() argument
172 fhci_recycle_empty_td(fhci, urb_priv->tds[i]); in free_urb_priv()
188 fhci->active_urbs--; in free_urb_priv()
192 void fhci_urb_complete_free(struct fhci_hcd *fhci, struct urb *urb) in fhci_urb_complete_free() argument
194 free_urb_priv(fhci, urb); in fhci_urb_complete_free()
204 usb_hcd_unlink_urb_from_ep(fhci_to_hcd(fhci), urb); in fhci_urb_complete_free()
206 spin_unlock(&fhci->lock); in fhci_urb_complete_free()
208 usb_hcd_giveback_urb(fhci_to_hcd(fhci), urb, urb->status); in fhci_urb_complete_free()
210 spin_lock(&fhci->lock); in fhci_urb_complete_free()
[all …]
Dfhci-tds.c163 fhci_err(usb->fhci, "illegal TD ring length parameters\n"); in fhci_create_ep()
234 fhci_err(usb->fhci, "no memory for the %s\n", err_for); in fhci_create_ep()
252 out_be16(&usb->fhci->regs->usb_ep[0], in fhci_init_ep_registers()
254 out_be16(&usb->fhci->pram->ep_ptr[0], in fhci_init_ep_registers()
324 fhci_err(usb->fhci, "no frame to confirm\n"); in fhci_td_transaction_confirm()
339 fhci_err(usb->fhci, "illegal error " in fhci_td_transaction_confirm()
350 fhci_err(usb->fhci, "illegal error occured\n"); in fhci_td_transaction_confirm()
466 out_8(&usb->fhci->regs->usb_comm, USB_CMD_STR_FIFO); in fhci_host_transaction()
538 mode = in_8(&usb->fhci->regs->usb_mod); in fhci_flush_actual_frame()
539 out_8(&usb->fhci->regs->usb_mod, mode & ~USB_MODE_EN); in fhci_flush_actual_frame()
[all …]