/kernel/linux/linux-5.10/drivers/usb/host/ |
H A D | ohci-q.c | 106 /* search for the right schedule branch to use for a periodic ed. 143 static void periodic_link (struct ohci_hcd *ohci, struct ed *ed) in periodic_link() argument 148 (ed->hwINFO & cpu_to_hc32 (ohci, ED_ISO)) ? "iso " : "", in periodic_link() 149 ed, ed->branch, ed->load, ed->interval); in periodic_link() 151 for (i = ed->branch; i < NUM_INTS; i += ed in periodic_link() 183 ed_schedule(struct ohci_hcd *ohci, struct ed *ed) ed_schedule() argument 270 periodic_unlink(struct ohci_hcd *ohci, struct ed *ed) periodic_unlink() argument 317 ed_deschedule(struct ohci_hcd *ohci, struct ed *ed) ed_deschedule() argument 407 struct ed *ed; ed_get() local 484 start_ed_unlink(struct ohci_hcd *ohci, struct ed *ed) start_ed_unlink() argument 837 struct ed *ed = td->ed; ed_halted() local 902 struct ed *ed; add_to_done_list() local 978 struct ed *ed, **last; finish_unlinks() local 1154 struct ed *ed = td->ed; takeback_td() local [all...] |
H A D | fhci-q.c | 58 void fhci_add_tds_to_ed(struct ed *ed, struct td **td_list, int number) in fhci_add_tds_to_ed() argument 64 list_add_tail(&td->node, &ed->td_list); in fhci_add_tds_to_ed() 66 if (ed->td_head == NULL) in fhci_add_tds_to_ed() 67 ed->td_head = td_list[0]; in fhci_add_tds_to_ed() 70 static struct td *peek_td_from_ed(struct ed *ed) in peek_td_from_ed() argument 74 if (!list_empty(&ed->td_list)) in peek_td_from_ed() 75 td = list_entry(ed->td_list.next, struct td, node); in peek_td_from_ed() 107 struct td *fhci_remove_td_from_ed(struct ed *e argument 140 fhci_move_td_from_ed_to_done_list(struct fhci_usb *usb, struct ed *ed) fhci_move_td_from_ed_to_done_list() argument 165 struct ed *ed = urb_priv->ed; free_urb_priv() local 216 struct ed *ed = td->ed; fhci_done_td() local 265 fhci_del_ed_list(struct fhci_hcd *fhci, struct ed *ed) fhci_del_ed_list() argument [all...] |
H A D | fhci-mem.c | 30 static void init_ed(struct ed *ed) in init_ed() argument 32 memset(ed, 0, sizeof(*ed)); in init_ed() 33 INIT_LIST_HEAD(&ed->td_list); in init_ed() 34 INIT_LIST_HEAD(&ed->node); in init_ed() 61 struct ed *fhci_get_empty_ed(struct fhci_hcd *fhci) in fhci_get_empty_ed() 63 struct ed *ed; in fhci_get_empty_ed() local 66 ed in fhci_get_empty_ed() 79 fhci_recycle_empty_ed(struct fhci_hcd *fhci, struct ed *ed) fhci_recycle_empty_ed() argument 85 fhci_td_fill(struct fhci_hcd *fhci, struct urb *urb, struct urb_priv *urb_priv, struct ed *ed, u16 index, enum fhci_ta_type type, int toggle, u8 *data, u32 len, u16 interval, u16 start_frame, bool ioc) fhci_td_fill() argument [all...] |
H A D | fhci-sched.c | 44 struct ed *ed; in fhci_transaction_confirm() local 61 ed = td->ed; in fhci_transaction_confirm() 62 if (ed->mode == FHCI_TF_ISO) { in fhci_transaction_confirm() 63 if (ed->td_list.next->next != &ed->td_list) { in fhci_transaction_confirm() 65 list_entry(ed->td_list.next->next, struct td, in fhci_transaction_confirm() 83 ed->state = FHCI_ED_HALTED; in fhci_transaction_confirm() 118 fhci_move_td_from_ed_to_done_list(usb, ed); in fhci_transaction_confirm() 155 add_packet(struct fhci_usb *usb, struct ed *ed, struct td *td) add_packet() argument 279 struct ed *ed; scan_ed_list() local 634 struct ed *ed; process_done_list() local 699 struct ed *ed = urb->ep->hcpriv; fhci_queue_urb() local [all...] |
H A D | ohci-mem.c | 55 sizeof (struct ed), in ohci_mem_init() 133 static struct ed * 137 struct ed *ed; in ed_alloc() local 141 ed = gen_pool_dma_zalloc_align(hcd->localmem_pool, in ed_alloc() 142 sizeof(*ed), &dma, 16); in ed_alloc() 144 ed = dma_pool_zalloc(hc->ed_cache, mem_flags, &dma); in ed_alloc() 145 if (ed) { in ed_alloc() 146 INIT_LIST_HEAD (&ed->td_list); in ed_alloc() 147 ed in ed_alloc() 153 ed_free(struct ohci_hcd *hc, struct ed *ed) ed_free() argument [all...] |
H A D | ohci-hcd.c | 153 struct ed *ed; in ohci_urb_enqueue() local 160 /* every endpoint has a ed, locate and maybe (re)initialize it */ in ohci_urb_enqueue() 161 ed = ed_get(ohci, urb->ep, urb->dev, pipe, urb->interval); in ohci_urb_enqueue() 162 if (! ed) in ohci_urb_enqueue() 166 switch (ed->type) { in ohci_urb_enqueue() 200 urb_priv->ed = ed; in ohci_urb_enqueue() 227 /* schedule the ed if needed */ in ohci_urb_enqueue() 228 if (ed in ohci_urb_enqueue() 354 struct ed *ed = ep->hcpriv; ohci_endpoint_disable() local 755 struct ed *ed; io_watchdog_func() local 1047 struct ed *ed = priv->ed; ohci_restart() local [all...] |
H A D | ohci-dbg.c | 313 const struct ed *ed, int verbose) in ohci_dump_ed() 315 u32 tmp = hc32_to_cpu (ohci, ed->hwINFO); in ohci_dump_ed() 318 ohci_dbg (ohci, "%s, ed %p state 0x%x type %s; next ed %08x\n", in ohci_dump_ed() 320 ed, ed->state, edstring (ed->type), in ohci_dump_ed() 321 hc32_to_cpup (ohci, &ed->hwNextED)); in ohci_dump_ed() 337 tmp = hc32_to_cpup (ohci, &ed in ohci_dump_ed() 312 ohci_dump_ed(const struct ohci_hcd *ohci, const char *label, const struct ed *ed, int verbose) ohci_dump_ed() argument 400 show_list(struct ohci_hcd *ohci, char *buf, size_t count, struct ed *ed) show_list() argument 489 struct ed **seen, *ed; fill_periodic_buffer() local [all...] |
H A D | fhci.h | 323 struct ed { struct 349 struct ed *ed; /* a handle to the corresponding ED */ member 391 struct ed *ed; member 515 void fhci_recycle_empty_ed(struct fhci_hcd *fhci, struct ed *ed); 516 struct ed *fhci_get_empty_ed(struct fhci_hcd *fhci); 518 struct urb_priv *urb_priv, struct ed *ed, u1 [all...] |
H A D | fhci-hcd.c | 169 struct ed *ed; in fhci_mem_free() local 170 struct ed *next_ed; in fhci_mem_free() 174 list_for_each_entry_safe(ed, next_ed, &fhci->empty_eds, node) { in fhci_mem_free() 175 list_del(&ed->node); in fhci_mem_free() 176 kfree(ed); in fhci_mem_free() 225 struct ed *ed; in fhci_mem_init() local 227 ed = kmalloc(sizeof(*ed), GFP_KERNE in fhci_mem_init() 511 struct ed *ed; fhci_endpoint_disable() local [all...] |
H A D | ohci.h | 26 struct ed { struct 48 struct ed *ed_next; /* on schedule or rm_list */ 49 struct ed *ed_prev; /* for non-interrupt EDs */ 75 #define OKAY_TO_TAKEBACK(ohci, ed) \ 76 ((int) (ohci->wdh_cnt - ed->takeback_wdh_cnt) >= 0) 131 struct ed *ed; member 336 struct ed *ed; member 378 struct ed *ed_rm_lis [all...] |
/kernel/linux/linux-6.6/drivers/usb/host/ |
H A D | ohci-q.c | 106 /* search for the right schedule branch to use for a periodic ed. 143 static void periodic_link (struct ohci_hcd *ohci, struct ed *ed) in periodic_link() argument 148 (ed->hwINFO & cpu_to_hc32 (ohci, ED_ISO)) ? "iso " : "", in periodic_link() 149 ed, ed->branch, ed->load, ed->interval); in periodic_link() 151 for (i = ed->branch; i < NUM_INTS; i += ed in periodic_link() 183 ed_schedule(struct ohci_hcd *ohci, struct ed *ed) ed_schedule() argument 270 periodic_unlink(struct ohci_hcd *ohci, struct ed *ed) periodic_unlink() argument 317 ed_deschedule(struct ohci_hcd *ohci, struct ed *ed) ed_deschedule() argument 407 struct ed *ed; ed_get() local 484 start_ed_unlink(struct ohci_hcd *ohci, struct ed *ed) start_ed_unlink() argument 837 struct ed *ed = td->ed; ed_halted() local 902 struct ed *ed; add_to_done_list() local 978 struct ed *ed, **last; finish_unlinks() local 1154 struct ed *ed = td->ed; takeback_td() local [all...] |
H A D | fhci-q.c | 58 void fhci_add_tds_to_ed(struct ed *ed, struct td **td_list, int number) in fhci_add_tds_to_ed() argument 64 list_add_tail(&td->node, &ed->td_list); in fhci_add_tds_to_ed() 66 if (ed->td_head == NULL) in fhci_add_tds_to_ed() 67 ed->td_head = td_list[0]; in fhci_add_tds_to_ed() 70 static struct td *peek_td_from_ed(struct ed *ed) in peek_td_from_ed() argument 74 if (!list_empty(&ed->td_list)) in peek_td_from_ed() 75 td = list_entry(ed->td_list.next, struct td, node); in peek_td_from_ed() 107 struct td *fhci_remove_td_from_ed(struct ed *e argument 140 fhci_move_td_from_ed_to_done_list(struct fhci_usb *usb, struct ed *ed) fhci_move_td_from_ed_to_done_list() argument 165 struct ed *ed = urb_priv->ed; free_urb_priv() local 216 struct ed *ed = td->ed; fhci_done_td() local 265 fhci_del_ed_list(struct fhci_hcd *fhci, struct ed *ed) fhci_del_ed_list() argument [all...] |
H A D | fhci-mem.c | 30 static void init_ed(struct ed *ed) in init_ed() argument 32 memset(ed, 0, sizeof(*ed)); in init_ed() 33 INIT_LIST_HEAD(&ed->td_list); in init_ed() 34 INIT_LIST_HEAD(&ed->node); in init_ed() 61 struct ed *fhci_get_empty_ed(struct fhci_hcd *fhci) in fhci_get_empty_ed() 63 struct ed *ed; in fhci_get_empty_ed() local 66 ed in fhci_get_empty_ed() 79 fhci_recycle_empty_ed(struct fhci_hcd *fhci, struct ed *ed) fhci_recycle_empty_ed() argument 85 fhci_td_fill(struct fhci_hcd *fhci, struct urb *urb, struct urb_priv *urb_priv, struct ed *ed, u16 index, enum fhci_ta_type type, int toggle, u8 *data, u32 len, u16 interval, u16 start_frame, bool ioc) fhci_td_fill() argument [all...] |
H A D | fhci-sched.c | 44 struct ed *ed; in fhci_transaction_confirm() local 61 ed = td->ed; in fhci_transaction_confirm() 62 if (ed->mode == FHCI_TF_ISO) { in fhci_transaction_confirm() 63 if (ed->td_list.next->next != &ed->td_list) { in fhci_transaction_confirm() 65 list_entry(ed->td_list.next->next, struct td, in fhci_transaction_confirm() 83 ed->state = FHCI_ED_HALTED; in fhci_transaction_confirm() 118 fhci_move_td_from_ed_to_done_list(usb, ed); in fhci_transaction_confirm() 155 add_packet(struct fhci_usb *usb, struct ed *ed, struct td *td) add_packet() argument 279 struct ed *ed; scan_ed_list() local 634 struct ed *ed; process_done_list() local 699 struct ed *ed = urb->ep->hcpriv; fhci_queue_urb() local [all...] |
H A D | ohci-mem.c | 55 sizeof (struct ed), in ohci_mem_init() 133 static struct ed * 137 struct ed *ed; in ed_alloc() local 141 ed = gen_pool_dma_zalloc_align(hcd->localmem_pool, in ed_alloc() 142 sizeof(*ed), &dma, 16); in ed_alloc() 144 ed = dma_pool_zalloc(hc->ed_cache, mem_flags, &dma); in ed_alloc() 145 if (ed) { in ed_alloc() 146 INIT_LIST_HEAD (&ed->td_list); in ed_alloc() 147 ed in ed_alloc() 153 ed_free(struct ohci_hcd *hc, struct ed *ed) ed_free() argument [all...] |
H A D | ohci-hcd.c | 153 struct ed *ed; in ohci_urb_enqueue() local 160 /* every endpoint has a ed, locate and maybe (re)initialize it */ in ohci_urb_enqueue() 161 ed = ed_get(ohci, urb->ep, urb->dev, pipe, urb->interval); in ohci_urb_enqueue() 162 if (! ed) in ohci_urb_enqueue() 166 switch (ed->type) { in ohci_urb_enqueue() 198 urb_priv->ed = ed; in ohci_urb_enqueue() 225 /* schedule the ed if needed */ in ohci_urb_enqueue() 226 if (ed in ohci_urb_enqueue() 352 struct ed *ed = ep->hcpriv; ohci_endpoint_disable() local 753 struct ed *ed; io_watchdog_func() local 1045 struct ed *ed = priv->ed; ohci_restart() local [all...] |
H A D | ohci-dbg.c | 313 const struct ed *ed, int verbose) in ohci_dump_ed() 315 u32 tmp = hc32_to_cpu (ohci, ed->hwINFO); in ohci_dump_ed() 318 ohci_dbg (ohci, "%s, ed %p state 0x%x type %s; next ed %08x\n", in ohci_dump_ed() 320 ed, ed->state, edstring (ed->type), in ohci_dump_ed() 321 hc32_to_cpup (ohci, &ed->hwNextED)); in ohci_dump_ed() 337 tmp = hc32_to_cpup (ohci, &ed in ohci_dump_ed() 312 ohci_dump_ed(const struct ohci_hcd *ohci, const char *label, const struct ed *ed, int verbose) ohci_dump_ed() argument 400 show_list(struct ohci_hcd *ohci, char *buf, size_t count, struct ed *ed) show_list() argument 489 struct ed **seen, *ed; fill_periodic_buffer() local [all...] |
H A D | fhci.h | 323 struct ed { struct 349 struct ed *ed; /* a handle to the corresponding ED */ member 391 struct ed *ed; member 515 void fhci_recycle_empty_ed(struct fhci_hcd *fhci, struct ed *ed); 516 struct ed *fhci_get_empty_ed(struct fhci_hcd *fhci); 518 struct urb_priv *urb_priv, struct ed *ed, u1 [all...] |
H A D | fhci-hcd.c | 170 struct ed *ed; in fhci_mem_free() local 171 struct ed *next_ed; in fhci_mem_free() 175 list_for_each_entry_safe(ed, next_ed, &fhci->empty_eds, node) { in fhci_mem_free() 176 list_del(&ed->node); in fhci_mem_free() 177 kfree(ed); in fhci_mem_free() 226 struct ed *ed; in fhci_mem_init() local 228 ed = kmalloc(sizeof(*ed), GFP_KERNE in fhci_mem_init() 511 struct ed *ed; fhci_endpoint_disable() local [all...] |
H A D | ohci.h | 26 struct ed { struct 48 struct ed *ed_next; /* on schedule or rm_list */ 49 struct ed *ed_prev; /* for non-interrupt EDs */ 75 #define OKAY_TO_TAKEBACK(ohci, ed) \ 76 ((int) (ohci->wdh_cnt - ed->takeback_wdh_cnt) >= 0) 131 struct ed *ed; member 336 struct ed *ed; member 378 struct ed *ed_rm_lis [all...] |
/kernel/linux/linux-5.10/drivers/edac/ |
H A D | octeon_edac-pc.c | 30 struct edac_device_ctl_info *ed; member 57 edac_device_printk(p->ed, KERN_ERR, in co_cache_error_event() 62 edac_device_handle_ce(p->ed, cpu, 1, "icache"); in co_cache_error_event() 65 edac_device_printk(p->ed, KERN_ERR, in co_cache_error_event() 70 edac_device_handle_ue(p->ed, cpu, 0, "dcache"); in co_cache_error_event() 72 edac_device_handle_ce(p->ed, cpu, 0, "dcache"); in co_cache_error_event() 94 p->ed = edac_device_alloc_ctl_info(0, "cpu", num_possible_cpus(), in co_cache_error_probe() 97 if (!p->ed) in co_cache_error_probe() 100 p->ed->dev = &pdev->dev; in co_cache_error_probe() 102 p->ed in co_cache_error_probe() [all...] |
/kernel/linux/linux-6.6/drivers/edac/ |
H A D | octeon_edac-pc.c | 30 struct edac_device_ctl_info *ed; member 57 edac_device_printk(p->ed, KERN_ERR, in co_cache_error_event() 62 edac_device_handle_ce(p->ed, cpu, 1, "icache"); in co_cache_error_event() 65 edac_device_printk(p->ed, KERN_ERR, in co_cache_error_event() 70 edac_device_handle_ue(p->ed, cpu, 0, "dcache"); in co_cache_error_event() 72 edac_device_handle_ce(p->ed, cpu, 0, "dcache"); in co_cache_error_event() 94 p->ed = edac_device_alloc_ctl_info(0, "cpu", num_possible_cpus(), in co_cache_error_probe() 97 if (!p->ed) in co_cache_error_probe() 100 p->ed->dev = &pdev->dev; in co_cache_error_probe() 102 p->ed in co_cache_error_probe() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/fungible/funeth/ |
H A D | funeth_main.c | 1186 static int fun_init_vports(struct fun_ethdev *ed, unsigned int n) in fun_init_vports() argument 1188 if (ed->num_vports) in fun_init_vports() 1191 ed->vport_info = kvcalloc(n, sizeof(*ed->vport_info), GFP_KERNEL); in fun_init_vports() 1192 if (!ed->vport_info) in fun_init_vports() 1194 ed->num_vports = n; in fun_init_vports() 1198 static void fun_free_vports(struct fun_ethdev *ed) in fun_free_vports() argument 1200 kvfree(ed->vport_info); in fun_free_vports() 1201 ed->vport_info = NULL; in fun_free_vports() 1202 ed in fun_free_vports() 1205 fun_get_vport(struct fun_ethdev *ed, unsigned int vport) fun_get_vport() argument 1219 struct fun_ethdev *ed = to_fun_ethdev(fdev); fun_set_vf_mac() local 1247 struct fun_ethdev *ed = to_fun_ethdev(fdev); fun_set_vf_vlan() local 1281 struct fun_ethdev *ed = to_fun_ethdev(fdev); fun_set_vf_rate() local 1306 struct fun_ethdev *ed = to_fun_ethdev(fp->fdev); fun_get_vf_config() local 1530 fun_max_qs(struct fun_ethdev *ed, unsigned int *ntx, unsigned int *nrx) fun_max_qs() argument 1707 fun_create_netdev(struct fun_ethdev *ed, unsigned int portid) fun_create_netdev() argument 1835 fun_create_ports(struct fun_ethdev *ed, unsigned int nports) fun_create_ports() argument 1870 fun_destroy_ports(struct fun_ethdev *ed) fun_destroy_ports() argument 1882 fun_update_link_state(const struct fun_ethdev *ed, const struct fun_admin_port_notif *notif) fun_update_link_state() argument 1942 struct fun_ethdev *ed = to_fun_ethdev(fdev); fun_service_cb() local 1964 struct fun_ethdev *ed = to_fun_ethdev(fdev); funeth_sriov_configure() local 2009 struct fun_ethdev *ed; funeth_probe() local 2049 struct fun_ethdev *ed; funeth_remove() local [all...] |
/kernel/linux/linux-5.10/drivers/soc/fsl/dpio/ |
H A D | dpio-service.c | 425 struct qbman_eq_desc ed; in dpaa2_io_service_enqueue_fq() local 431 qbman_eq_desc_clear(&ed); in dpaa2_io_service_enqueue_fq() 432 qbman_eq_desc_set_no_orp(&ed, 0); in dpaa2_io_service_enqueue_fq() 433 qbman_eq_desc_set_fq(&ed, fqid); in dpaa2_io_service_enqueue_fq() 435 return qbman_swp_enqueue(d->swp, &ed, fd); in dpaa2_io_service_enqueue_fq() 455 struct qbman_eq_desc ed; in dpaa2_io_service_enqueue_multiple_fq() local 461 qbman_eq_desc_clear(&ed); in dpaa2_io_service_enqueue_multiple_fq() 462 qbman_eq_desc_set_no_orp(&ed, 0); in dpaa2_io_service_enqueue_multiple_fq() 463 qbman_eq_desc_set_fq(&ed, fqid); in dpaa2_io_service_enqueue_multiple_fq() 465 return qbman_swp_enqueue_multiple(d->swp, &ed, f in dpaa2_io_service_enqueue_multiple_fq() 485 struct qbman_eq_desc *ed; dpaa2_io_service_enqueue_multiple_desc_fq() local 526 struct qbman_eq_desc ed; dpaa2_io_service_enqueue_qd() local [all...] |
/kernel/linux/linux-6.6/drivers/soc/fsl/dpio/ |
H A D | dpio-service.c | 463 struct qbman_eq_desc ed; in dpaa2_io_service_enqueue_fq() local 469 qbman_eq_desc_clear(&ed); in dpaa2_io_service_enqueue_fq() 470 qbman_eq_desc_set_no_orp(&ed, 0); in dpaa2_io_service_enqueue_fq() 471 qbman_eq_desc_set_fq(&ed, fqid); in dpaa2_io_service_enqueue_fq() 473 return qbman_swp_enqueue(d->swp, &ed, fd); in dpaa2_io_service_enqueue_fq() 493 struct qbman_eq_desc ed; in dpaa2_io_service_enqueue_multiple_fq() local 499 qbman_eq_desc_clear(&ed); in dpaa2_io_service_enqueue_multiple_fq() 500 qbman_eq_desc_set_no_orp(&ed, 0); in dpaa2_io_service_enqueue_multiple_fq() 501 qbman_eq_desc_set_fq(&ed, fqid); in dpaa2_io_service_enqueue_multiple_fq() 503 return qbman_swp_enqueue_multiple(d->swp, &ed, f in dpaa2_io_service_enqueue_multiple_fq() 523 struct qbman_eq_desc *ed; dpaa2_io_service_enqueue_multiple_desc_fq() local 564 struct qbman_eq_desc ed; dpaa2_io_service_enqueue_qd() local [all...] |