Home
last modified time | relevance | path

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

/linux-5.19.10/net/bridge/
Dbr_cfm.c9 struct br_cfm_mep *mep; in br_mep_find() local
11 hlist_for_each_entry(mep, &br->mep_list, head) in br_mep_find()
12 if (mep->instance == instance) in br_mep_find()
13 return mep; in br_mep_find()
21 struct br_cfm_mep *mep; in br_mep_find_ifindex() local
23 hlist_for_each_entry_rcu(mep, &br->mep_list, head, in br_mep_find_ifindex()
25 if (mep->create.ifindex == ifindex) in br_mep_find_ifindex()
26 return mep; in br_mep_find_ifindex()
31 static struct br_cfm_peer_mep *br_peer_mep_find(struct br_cfm_mep *mep, in br_peer_mep_find() argument
36 hlist_for_each_entry_rcu(peer_mep, &mep->peer_mep_list, head, in br_peer_mep_find()
[all …]
Dbr_cfm_netlink.c458 struct br_cfm_mep *mep; in br_cfm_config_fill_info() local
461 hlist_for_each_entry_rcu(mep, &br->mep_list, head) { in br_cfm_config_fill_info()
467 mep->instance)) in br_cfm_config_fill_info()
471 mep->create.domain)) in br_cfm_config_fill_info()
475 mep->create.direction)) in br_cfm_config_fill_info()
479 mep->create.ifindex)) in br_cfm_config_fill_info()
490 mep->instance)) in br_cfm_config_fill_info()
494 sizeof(mep->config.unicast_mac.addr), in br_cfm_config_fill_info()
495 mep->config.unicast_mac.addr)) in br_cfm_config_fill_info()
499 mep->config.mdlevel)) in br_cfm_config_fill_info()
[all …]
Dbr_private_cfm.h139 struct br_cfm_mep *mep; member
/linux-5.19.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_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_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_debugfs.c94 struct mtu3_ep *mep; in mtu3_ep_used_show() local
102 mep = mtu->in_eps + i; in mtu3_ep_used_show()
103 if (mep->flags & MTU3_EP_ENABLED) { in mtu3_ep_used_show()
104 seq_printf(sf, "%s - type: %d\n", mep->name, mep->type); in mtu3_ep_used_show()
108 mep = mtu->out_eps + i; in mtu3_ep_used_show()
109 if (mep->flags & MTU3_EP_ENABLED) { in mtu3_ep_used_show()
110 seq_printf(sf, "%s - type: %d\n", mep->name, mep->type); in mtu3_ep_used_show()
144 static void mtu3_debugfs_ep_regset(struct mtu3 *mtu, struct mtu3_ep *mep, in mtu3_debugfs_ep_regset() argument
148 int epnum = mep->epnum; in mtu3_debugfs_ep_regset()
149 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.h298 struct mtu3_ep *mep; member
381 static inline struct mtu3_request *next_request(struct mtu3_ep *mep) in next_request() argument
383 return list_first_entry_or_null(&mep->req_list, struct mtu3_request, in next_request()
416 void mtu3_req_complete(struct mtu3_ep *mep,
419 int mtu3_config_ep(struct mtu3 *mtu, struct mtu3_ep *mep,
421 void mtu3_deconfig_ep(struct mtu3 *mtu, struct mtu3_ep *mep);
422 void mtu3_ep_stall_set(struct mtu3_ep *mep, bool set);
/linux-5.19.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 …]
/linux-5.19.10/tools/perf/util/
Dmetricgroup.c352 struct mep { struct
360 struct mep *a = container_of(rb_node, struct mep, nd); in mep_cmp() argument
361 struct mep *b = (struct mep *)entry; in mep_cmp()
369 struct mep *me = malloc(sizeof(struct mep)); in mep_new()
373 memcpy(me, entry, sizeof(struct mep)); in mep_new()
388 static struct mep *mep_lookup(struct rblist *groups, const char *name) in mep_lookup()
391 struct mep me = { in mep_lookup()
396 return container_of(nd, struct mep, nd); in mep_lookup()
400 return container_of(nd, struct mep, nd); in mep_lookup()
407 struct mep *me = container_of(nd, struct mep, nd); in mep_delete()
[all …]