Home
last modified time | relevance | path

Searched refs:mep (Results 1 – 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/drivers/usb/mtu3/
Dmtu3_gadget.c13 void mtu3_req_complete(struct mtu3_ep *mep, in mtu3_req_complete() argument
15 __releases(mep->mtu->lock) in mtu3_req_complete()
16 __acquires(mep->mtu->lock) in mtu3_req_complete()
29 if (mep->epnum) in mtu3_req_complete()
30 usb_gadget_unmap_request(&mtu->g, req, mep->is_in); in mtu3_req_complete()
33 mep->name, req, req->status, req->actual, req->length); in mtu3_req_complete()
35 usb_gadget_giveback_request(&mep->ep, req); in mtu3_req_complete()
39 static void nuke(struct mtu3_ep *mep, const int status) in nuke() argument
43 if (list_empty(&mep->req_list)) in nuke()
46 dev_dbg(mep->mtu->dev, "abort %s's req: sts %d\n", mep->name, status); in nuke()
[all …]
Dmtu3_qmu.c154 static void reset_gpd_list(struct mtu3_ep *mep) in reset_gpd_list() argument
156 struct mtu3_gpd_ring *ring = &mep->gpd_ring; in reset_gpd_list()
165 int mtu3_gpd_ring_alloc(struct mtu3_ep *mep) in mtu3_gpd_ring_alloc() argument
168 struct mtu3_gpd_ring *ring = &mep->gpd_ring; in mtu3_gpd_ring_alloc()
171 gpd = dma_pool_zalloc(mep->mtu->qmu_gpd_pool, GFP_ATOMIC, &ring->dma); in mtu3_gpd_ring_alloc()
180 void mtu3_gpd_ring_free(struct mtu3_ep *mep) in mtu3_gpd_ring_free() argument
182 struct mtu3_gpd_ring *ring = &mep->gpd_ring; in mtu3_gpd_ring_free()
184 dma_pool_free(mep->mtu->qmu_gpd_pool, in mtu3_gpd_ring_free()
189 void mtu3_qmu_resume(struct mtu3_ep *mep) in mtu3_qmu_resume() argument
191 struct mtu3 *mtu = mep->mtu; in mtu3_qmu_resume()
[all …]
Dmtu3_trace.h122 __string(name, mreq->mep->name)
132 __assign_str(name, mreq->mep->name);
176 TP_PROTO(struct mtu3_ep *mep, struct qmu_gpd *gpd),
177 TP_ARGS(mep, gpd),
179 __string(name, mep->name)
187 __assign_str(name, mep->name);
202 TP_PROTO(struct mtu3_ep *mep, struct qmu_gpd *gpd),
203 TP_ARGS(mep, gpd)
207 TP_PROTO(struct mtu3_ep *mep, struct qmu_gpd *gpd),
208 TP_ARGS(mep, gpd)
[all …]
Dmtu3_core.c23 static int ep_fifo_alloc(struct mtu3_ep *mep, u32 seg_size) in ep_fifo_alloc() argument
25 struct mtu3_fifo_info *fifo = mep->fifo; in ep_fifo_alloc()
34 mep->fifo_seg_size = num_bits * MTU3_EP_FIFO_UNIT; in ep_fifo_alloc()
35 num_bits = num_bits * (mep->slot + 1); in ep_fifo_alloc()
42 mep->fifo_size = num_bits * MTU3_EP_FIFO_UNIT; in ep_fifo_alloc()
43 mep->fifo_addr = fifo->base + MTU3_EP_FIFO_UNIT * start_bit; in ep_fifo_alloc()
45 dev_dbg(mep->mtu->dev, "%s fifo:%#x/%#x, start_bit: %d\n", in ep_fifo_alloc()
46 __func__, mep->fifo_seg_size, mep->fifo_size, start_bit); in ep_fifo_alloc()
48 return mep->fifo_addr; in ep_fifo_alloc()
51 static void ep_fifo_free(struct mtu3_ep *mep) in ep_fifo_free() argument
[all …]
Dmtu3_qmu.h20 void mtu3_qmu_stop(struct mtu3_ep *mep);
21 int mtu3_qmu_start(struct mtu3_ep *mep);
22 void mtu3_qmu_resume(struct mtu3_ep *mep);
23 void mtu3_qmu_flush(struct mtu3_ep *mep);
25 void mtu3_insert_gpd(struct mtu3_ep *mep, struct mtu3_request *mreq);
26 int mtu3_prepare_transfer(struct mtu3_ep *mep);
28 int mtu3_gpd_ring_alloc(struct mtu3_ep *mep);
29 void mtu3_gpd_ring_free(struct mtu3_ep *mep);
Dmtu3_debugfs.c93 struct mtu3_ep *mep; in mtu3_ep_used_show() local
101 mep = mtu->in_eps + i; in mtu3_ep_used_show()
102 if (mep->flags & MTU3_EP_ENABLED) { in mtu3_ep_used_show()
103 seq_printf(sf, "%s - type: %d\n", mep->name, mep->type); in mtu3_ep_used_show()
107 mep = mtu->out_eps + i; in mtu3_ep_used_show()
108 if (mep->flags & MTU3_EP_ENABLED) { in mtu3_ep_used_show()
109 seq_printf(sf, "%s - type: %d\n", mep->name, mep->type); in mtu3_ep_used_show()
143 static void mtu3_debugfs_ep_regset(struct mtu3 *mtu, struct mtu3_ep *mep, in mtu3_debugfs_ep_regset() argument
147 int epnum = mep->epnum; in mtu3_debugfs_ep_regset()
148 int in = mep->is_in; in mtu3_debugfs_ep_regset()
[all …]
Dmtu3_gadget_ep0.c80 static void ep0_write_fifo(struct mtu3_ep *mep, const u8 *src, u16 len) in ep0_write_fifo() argument
82 void __iomem *fifo = mep->mtu->mac_base + U3D_FIFO0; in ep0_write_fifo()
85 dev_dbg(mep->mtu->dev, "%s: ep%din, len=%d, buf=%p\n", in ep0_write_fifo()
86 __func__, mep->epnum, len, src); in ep0_write_fifo()
100 static void ep0_read_fifo(struct mtu3_ep *mep, u8 *dst, u16 len) in ep0_read_fifo() argument
102 void __iomem *fifo = mep->mtu->mac_base + U3D_FIFO0; in ep0_read_fifo()
106 dev_dbg(mep->mtu->dev, "%s: ep%dout len=%d buf=%p\n", in ep0_read_fifo()
107 __func__, mep->epnum, len, dst); in ep0_read_fifo()
196 mtu->ep0_req.mep = mtu->ep0; in ep0_set_sel()
208 struct mtu3_ep *mep = NULL; in ep0_get_status() local
[all …]
Dmtu3.h301 struct mtu3_ep *mep; member
383 static inline struct mtu3_request *next_request(struct mtu3_ep *mep) in next_request() argument
385 return list_first_entry_or_null(&mep->req_list, struct mtu3_request, in next_request()
418 void mtu3_req_complete(struct mtu3_ep *mep,
421 int mtu3_config_ep(struct mtu3 *mtu, struct mtu3_ep *mep,
423 void mtu3_deconfig_ep(struct mtu3 *mtu, struct mtu3_ep *mep);
424 void mtu3_ep_stall_set(struct mtu3_ep *mep, bool set);
/kernel/linux/linux-5.10/drivers/scsi/
Dmac_esp.c115 struct mac_esp_priv *mep = MAC_ESP_GET_PRIV(esp); in mac_esp_wait_for_dreq() local
119 if (mep->pdma_regs == NULL) { in mac_esp_wait_for_dreq()
123 if (nubus_readl(mep->pdma_regs) & 0x200) in mac_esp_wait_for_dreq()
195 : "g" (count1), "a" (mep->pdma_io))
200 struct mac_esp_priv *mep = MAC_ESP_GET_PRIV(esp); in mac_esp_send_pdma_cmd() local
296 struct mac_esp_priv *mep; in esp_mac_probe() local
326 mep = kzalloc(sizeof(struct mac_esp_priv), GFP_KERNEL); in esp_mac_probe()
327 if (!mep) in esp_mac_probe()
329 mep->esp = esp; in esp_mac_probe()
330 platform_set_drvdata(dev, mep); in esp_mac_probe()
[all …]
/kernel/linux/linux-5.10/tools/perf/util/
Dmetricgroup.c416 struct mep { struct
424 struct mep *a = container_of(rb_node, struct mep, nd); in mep_cmp() argument
425 struct mep *b = (struct mep *)entry; in mep_cmp()
433 struct mep *me = malloc(sizeof(struct mep)); in mep_new()
437 memcpy(me, entry, sizeof(struct mep)); in mep_new()
452 static struct mep *mep_lookup(struct rblist *groups, const char *name) in mep_lookup()
455 struct mep me = { in mep_lookup()
460 return container_of(nd, struct mep, nd); in mep_lookup()
464 return container_of(nd, struct mep, nd); in mep_lookup()
471 struct mep *me = container_of(nd, struct mep, nd); in mep_delete()
[all …]