/linux-6.1.9/drivers/usb/host/ |
D | fhci-hub.c | 39 static void fhci_gpio_set_value(struct fhci_hcd *fhci, int gpio_nr, bool on) in fhci_gpio_set_value() argument 41 struct gpio_desc *gpiod = fhci->gpiods[gpio_nr]; in fhci_gpio_set_value() 50 void fhci_config_transceiver(struct fhci_hcd *fhci, in fhci_config_transceiver() argument 53 fhci_dbg(fhci, "-> %s: %d\n", __func__, status); in fhci_config_transceiver() 57 fhci_gpio_set_value(fhci, GPIO_POWER, false); in fhci_config_transceiver() 61 fhci_gpio_set_value(fhci, GPIO_POWER, true); in fhci_config_transceiver() 64 fhci_gpio_set_value(fhci, GPIO_SPEED, false); in fhci_config_transceiver() 67 fhci_gpio_set_value(fhci, GPIO_SPEED, true); in fhci_config_transceiver() 74 fhci_dbg(fhci, "<- %s: %d\n", __func__, status); in fhci_config_transceiver() 78 void fhci_port_disable(struct fhci_hcd *fhci) in fhci_port_disable() argument [all …]
|
D | fhci-hcd.c | 34 void fhci_start_sof_timer(struct fhci_hcd *fhci) in fhci_start_sof_timer() argument 36 fhci_dbg(fhci, "-> %s\n", __func__); in fhci_start_sof_timer() 39 out_be16(&fhci->pram->frame_num, 0); in fhci_start_sof_timer() 41 out_be16(&fhci->regs->usb_ussft, 0); in fhci_start_sof_timer() 42 setbits8(&fhci->regs->usb_usmod, USB_MODE_SFTE); in fhci_start_sof_timer() 44 fhci_dbg(fhci, "<- %s\n", __func__); in fhci_start_sof_timer() 47 void fhci_stop_sof_timer(struct fhci_hcd *fhci) in fhci_stop_sof_timer() argument 49 fhci_dbg(fhci, "-> %s\n", __func__); in fhci_stop_sof_timer() 51 clrbits8(&fhci->regs->usb_usmod, USB_MODE_SFTE); in fhci_stop_sof_timer() 52 gtm_stop_timer16(fhci->timer); in fhci_stop_sof_timer() [all …]
|
D | fhci-sched.c | 87 fhci_dbg(usb->fhci, "td err fu\n"); in fhci_transaction_confirm() 91 fhci_dbg(usb->fhci, "td err f!u\n"); in fhci_transaction_confirm() 94 fhci_dbg(usb->fhci, "td err !f\n"); in fhci_transaction_confirm() 102 fhci_vdbg(usb->fhci, "td nack\n"); in fhci_transaction_confirm() 131 mode = in_8(&usb->fhci->regs->usb_usmod); in fhci_flush_all_transmissions() 132 clrbits8(&usb->fhci->regs->usb_usmod, USB_MODE_EN); in fhci_flush_all_transmissions() 146 out_be16(&usb->fhci->regs->usb_usber, 0xffff); in fhci_flush_all_transmissions() 148 out_8(&usb->fhci->regs->usb_usmod, mode | USB_MODE_EN); in fhci_flush_all_transmissions() 196 fhci_vdbg(usb->fhci, "not enough space in this frame: " in add_packet() 207 fhci_dbg(usb->fhci, "not enough time in this frame\n"); in add_packet() [all …]
|
D | fhci-dbg.c | 22 void fhci_dbg_isr(struct fhci_hcd *fhci, int usb_er) in fhci_dbg_isr() argument 27 fhci->usb_irq_stat[12]++; in fhci_dbg_isr() 33 fhci->usb_irq_stat[i]++; in fhci_dbg_isr() 39 struct fhci_hcd *fhci = s->private; in fhci_dfs_regs_show() local 40 struct qe_usb_ctlr __iomem *regs = fhci->regs; in fhci_dfs_regs_show() 54 fhci_ioports_check_bus_state(fhci)); in fhci_dfs_regs_show() 62 struct fhci_hcd *fhci = s->private; in fhci_dfs_irq_stat_show() local 63 int *usb_irq_stat = fhci->usb_irq_stat; in fhci_dfs_irq_stat_show() 81 void fhci_dfs_create(struct fhci_hcd *fhci) in fhci_dfs_create() argument 83 struct device *dev = fhci_to_hcd(fhci)->self.controller; in fhci_dfs_create() [all …]
|
D | fhci-mem.c | 37 static struct td *get_empty_td(struct fhci_hcd *fhci) in get_empty_td() argument 41 if (!list_empty(&fhci->empty_tds)) { in get_empty_td() 42 td = list_entry(fhci->empty_tds.next, struct td, node); in get_empty_td() 43 list_del(fhci->empty_tds.next); in get_empty_td() 47 fhci_err(fhci, "No memory to allocate to TD\n"); in get_empty_td() 55 void fhci_recycle_empty_td(struct fhci_hcd *fhci, struct td *td) in fhci_recycle_empty_td() argument 58 list_add(&td->node, &fhci->empty_tds); in fhci_recycle_empty_td() 61 struct ed *fhci_get_empty_ed(struct fhci_hcd *fhci) in fhci_get_empty_ed() argument 65 if (!list_empty(&fhci->empty_eds)) { in fhci_get_empty_ed() 66 ed = list_entry(fhci->empty_eds.next, struct ed, node); in fhci_get_empty_ed() [all …]
|
D | fhci.h | 437 u32 (*transfer_confirm)(struct fhci_hcd *fhci); 439 struct fhci_hcd *fhci; member 446 static inline u16 get_frame_num(struct fhci_hcd *fhci) in get_frame_num() argument 448 return in_be16(&fhci->pram->frame_num) & 0x07ff; in get_frame_num() 451 #define fhci_dbg(fhci, fmt, args...) \ argument 452 dev_dbg(fhci_to_hcd(fhci)->self.controller, fmt, ##args) 453 #define fhci_vdbg(fhci, fmt, args...) \ argument 454 dev_vdbg(fhci_to_hcd(fhci)->self.controller, fmt, ##args) 455 #define fhci_err(fhci, fmt, args...) \ argument 456 dev_err(fhci_to_hcd(fhci)->self.controller, fmt, ##args) [all …]
|
D | Makefile | 9 fhci-y := fhci-hcd.o fhci-hub.o fhci-q.o 10 fhci-y += fhci-mem.o fhci-tds.o fhci-sched.o 12 fhci-$(CONFIG_FHCI_DEBUG) += fhci-dbg.o 69 obj-$(CONFIG_USB_FHCI_HCD) += fhci.o
|
D | fhci-q.c | 157 usb->transfer_confirm(usb->fhci); in fhci_move_td_from_ed_to_done_list() 161 static void free_urb_priv(struct fhci_hcd *fhci, struct urb *urb) in free_urb_priv() argument 169 fhci_recycle_empty_td(fhci, urb_priv->tds[i]); in free_urb_priv() 185 fhci->active_urbs--; in free_urb_priv() 189 void fhci_urb_complete_free(struct fhci_hcd *fhci, struct urb *urb) in fhci_urb_complete_free() argument 191 free_urb_priv(fhci, urb); in fhci_urb_complete_free() 201 usb_hcd_unlink_urb_from_ep(fhci_to_hcd(fhci), urb); in fhci_urb_complete_free() 203 spin_unlock(&fhci->lock); in fhci_urb_complete_free() 205 usb_hcd_giveback_urb(fhci_to_hcd(fhci), urb, urb->status); in fhci_urb_complete_free() 207 spin_lock(&fhci->lock); in fhci_urb_complete_free() [all …]
|
D | fhci-tds.c | 160 fhci_err(usb->fhci, "illegal TD ring length parameters\n"); in fhci_create_ep() 230 fhci_err(usb->fhci, "no memory for the %s\n", err_for); in fhci_create_ep() 248 out_be16(&usb->fhci->regs->usb_usep[0], in fhci_init_ep_registers() 250 out_be16(&usb->fhci->pram->ep_ptr[0], in fhci_init_ep_registers() 320 fhci_err(usb->fhci, "no frame to confirm\n"); in fhci_td_transaction_confirm() 335 fhci_err(usb->fhci, "illegal error " in fhci_td_transaction_confirm() 346 fhci_err(usb->fhci, "illegal error occurred\n"); in fhci_td_transaction_confirm() 462 out_8(&usb->fhci->regs->usb_uscom, USB_CMD_STR_FIFO); in fhci_host_transaction() 531 mode = in_8(&usb->fhci->regs->usb_usmod); in fhci_flush_actual_frame() 532 out_8(&usb->fhci->regs->usb_usmod, mode & ~USB_MODE_EN); in fhci_flush_actual_frame() [all …]
|