Home
last modified time | relevance | path

Searched refs:mport (Results 1 – 25 of 33) sorted by relevance

12

/linux/drivers/rapidio/
H A Drio.c38 int (*pwcback)(struct rio_mport *mport, void *context,
83 * rio_query_mport - Query mport device attributes
84 * @port: mport device to query
85 * @mport_attr: mport attributes data structure
87 * Returns attributes of specified mport through the
101 * @mport: Master port associated with the RIO network
108 struct rio_net *rio_alloc_net(struct rio_mport *mport) in rio_alloc_net() argument
117 mport->net = net; in rio_alloc_net()
223 * @mport: RIO master port from which to allocate the mailbox resource
232 int rio_request_inb_mbox(struct rio_mport *mport, in rio_request_inb_mbox() argument
285 rio_release_inb_mbox(struct rio_mport * mport,int mbox) rio_release_inb_mbox() argument
317 rio_request_outb_mbox(struct rio_mport * mport,void * dev_id,int mbox,int entries,void (* moutb)(struct rio_mport * mport,void * dev_id,int mbox,int slot)) rio_request_outb_mbox() argument
369 rio_release_outb_mbox(struct rio_mport * mport,int mbox) rio_release_outb_mbox() argument
402 rio_setup_inb_dbell(struct rio_mport * mport,void * dev_id,struct resource * res,void (* dinb)(struct rio_mport * mport,void * dev_id,u16 src,u16 dst,u16 info)) rio_setup_inb_dbell() argument
433 rio_request_inb_dbell(struct rio_mport * mport,void * dev_id,u16 start,u16 end,void (* dinb)(struct rio_mport * mport,void * dev_id,u16 src,u16 dst,u16 info)) rio_request_inb_dbell() argument
474 rio_release_inb_dbell(struct rio_mport * mport,u16 start,u16 end) rio_release_inb_dbell() argument
562 rio_add_mport_pw_handler(struct rio_mport * mport,void * context,int (* pwcback)(struct rio_mport * mport,void * context,union rio_pw_msg * msg,int step)) rio_add_mport_pw_handler() argument
563 rio_add_mport_pw_handler(struct rio_mport * mport,void * context,int (* pwcback)(struct rio_mport * mport,void * context,union rio_pw_msg * msg,int step)) rio_add_mport_pw_handler() argument
589 rio_del_mport_pw_handler(struct rio_mport * mport,void * context,int (* pwcback)(struct rio_mport * mport,void * context,union rio_pw_msg * msg,int step)) rio_del_mport_pw_handler() argument
590 rio_del_mport_pw_handler(struct rio_mport * mport,void * context,int (* pwcback)(struct rio_mport * mport,void * context,union rio_pw_msg * msg,int step)) rio_del_mport_pw_handler() argument
664 rio_pw_enable(struct rio_mport * mport,int enable) rio_pw_enable() argument
689 rio_map_inb_region(struct rio_mport * mport,dma_addr_t local,u64 rbase,u32 size,u32 rflags) rio_map_inb_region() argument
709 rio_unmap_inb_region(struct rio_mport * mport,dma_addr_t lstart) rio_unmap_inb_region() argument
733 rio_map_outb_region(struct rio_mport * mport,u16 destid,u64 rbase,u32 size,u32 rflags,dma_addr_t * local) rio_map_outb_region() argument
757 rio_unmap_outb_region(struct rio_mport * mport,u16 destid,u64 rstart) rio_unmap_outb_region() argument
993 rio_mport_chk_dev_access(struct rio_mport * mport,u16 destid,u8 hopcount) rio_mport_chk_dev_access() argument
1170 rio_inb_pwrite_handler(struct rio_mport * mport,union rio_pw_msg * pw_msg) rio_inb_pwrite_handler() argument
1426 rio_std_route_add_entry(struct rio_mport * mport,u16 destid,u8 hopcount,u16 table,u16 route_destid,u8 route_port) rio_std_route_add_entry() argument
1454 rio_std_route_get_entry(struct rio_mport * mport,u16 destid,u8 hopcount,u16 table,u16 route_destid,u8 * route_port) rio_std_route_get_entry() argument
1480 rio_std_route_clr_table(struct rio_mport * mport,u16 destid,u8 hopcount,u16 table) rio_std_route_clr_table() argument
1754 struct rio_mport *mport = arg; rio_chan_filter() local
1767 rio_request_mport_dma(struct rio_mport * mport) rio_request_mport_dma() argument
1945 struct rio_mport *mport; global() member
2039 rio_mport_initialize(struct rio_mport * mport) rio_mport_initialize() argument
[all...]
H A Drio-access.c34 (struct rio_mport *mport, u32 offset, type *value) \
39 res = mport->ops->lcread(mport, mport->id, offset, len, &data); \
55 (struct rio_mport *mport, u32 offset, type value) \
58 return mport->ops->lcwrite(mport, mport->id, offset, len, value);\
86 (struct rio_mport *mport, u16 destid, u8 hopcount, u32 offset, type *value) \
91 res = mport->ops->cread(mport, mport->id, destid, hopcount, offset, len, &data); \
107 (struct rio_mport *mport, u16 destid, u8 hopcount, u32 offset, type value) \
110 return mport->ops->cwrite(mport, mport->id, destid, hopcount, \
138 int rio_mport_send_doorbell(struct rio_mport *mport, u16 destid, u16 data) in rio_mport_send_doorbell() argument
140 return mport->ops->dsend(mport, mport->id, destid, data); in rio_mport_send_doorbell()
H A Drio_cm.c147 struct rio_mport *mport; member
301 msg = rio_get_inb_message(cm->mport, cmbox); in riocm_rx_get_msg()
337 rio_add_inb_buffer(cm->mport, cmbox, cm->rx_buf[i]); in riocm_rx_fill()
486 if (!rio_mport_is_running(cm->mport)) in rio_cm_handler()
582 if (!rio_mport_is_running(cm->mport)) in rio_ibmsg_handler()
613 static void riocm_inb_msg_event(struct rio_mport *mport, void *dev_id, in riocm_inb_msg_event() argument
618 if (rio_mport_is_running(cm->mport) && !work_pending(&cm->rx_work)) in riocm_inb_msg_event()
640 cm->mport->id, slot, cm->tx_cnt); in rio_txcq_handler()
674 rc = rio_add_outb_message(cm->mport, req->rdev, cmbox, in rio_txcq_handler()
690 static void riocm_outb_msg_event(struct rio_mport *mport, void *dev_id, in riocm_outb_msg_event() argument
[all …]
H A Drio-sysfs.c332 struct rio_mport *mport = to_rio_mport(dev); in port_destid_show() local
334 if (mport) in port_destid_show()
335 return sprintf(buf, "0x%04x\n", mport->host_deviceid); in port_destid_show()
344 struct rio_mport *mport = to_rio_mport(dev); in sys_size_show() local
346 if (mport) in sys_size_show()
347 return sprintf(buf, "%u\n", mport->sys_size); in sys_size_show()
H A Drio.h18 extern u32 rio_mport_get_feature(struct rio_mport *mport, int local, u16 destid,
24 extern int rio_mport_chk_dev_access(struct rio_mport *mport, u16 destid,
36 extern struct rio_net *rio_alloc_net(struct rio_mport *mport);
H A DKconfig79 tristate "RapidIO /dev mport device driver"
82 This option includes generic RapidIO mport device driver which
84 operations through selected RapidIO mport.
/linux/include/linux/
H A Drio.h122 int (*add_entry) (struct rio_mport *mport, u16 destid, u8 hopcount,
124 int (*get_entry) (struct rio_mport *mport, u16 destid, u8 hopcount,
126 int (*clr_table) (struct rio_mport *mport, u16 destid, u8 hopcount,
128 int (*set_domain) (struct rio_mport *mport, u16 destid, u8 hopcount,
130 int (*get_domain) (struct rio_mport *mport, u16 destid, u8 hopcount,
221 void (*mcback) (struct rio_mport * mport, void *dev_id, int mbox, int slot);
234 void (*dinb) (struct rio_mport *mport, void *dev_id, u16 src, u16 dst, u16 info);
298 static inline int rio_mport_is_running(struct rio_mport *mport) in rio_mport_is_running() argument
300 return atomic_read(&mport->state) == RIO_DEVICE_RUNNING; in rio_mport_is_running()
400 int (*lcread) (struct rio_mport *mport, int index, u32 offset, int len,
[all …]
H A Drio_drv.h230 extern int rio_mport_send_doorbell(struct rio_mport *mport, u16 destid,
311 static inline int rio_add_outb_message(struct rio_mport *mport, in rio_add_outb_message() argument
315 return mport->ops->add_outb_message(mport, rdev, mbox, in rio_add_outb_message()
332 static inline int rio_add_inb_buffer(struct rio_mport *mport, int mbox, in rio_add_inb_buffer() argument
335 return mport->ops->add_inb_buffer(mport, mbox, buffer); in rio_add_inb_buffer()
345 static inline void *rio_get_inb_message(struct rio_mport *mport, int mbox) in rio_get_inb_message() argument
347 return mport->ops->get_inb_message(mport, mbox); in rio_get_inb_message()
365 extern int rio_map_inb_region(struct rio_mport *mport, dma_addr_t local,
367 extern void rio_unmap_inb_region(struct rio_mport *mport, dma_addr_t lstart);
368 extern int rio_map_outb_region(struct rio_mport *mport, u16 destid, u64 rbase,
[all …]
/linux/arch/powerpc/sysdev/
H A Dfsl_rio.h30 #define RIO_REGS_WIN(mport) (((struct rio_priv *)(mport->priv))->regs_win) argument
88 struct rio_mport *mport[MAX_PORT_NUM]; member
96 struct rio_mport *mport[MAX_PORT_NUM]; member
124 extern int fsl_rio_setup_rmu(struct rio_mport *mport,
127 extern int fsl_rio_pw_enable(struct rio_mport *mport, int enable);
131 extern int fsl_rio_doorbell_send(struct rio_mport *mport,
133 extern int fsl_add_outb_message(struct rio_mport *mport,
136 extern int fsl_open_outb_mbox(struct rio_mport *mport,
138 extern void fsl_close_outb_mbox(struct rio_mport *mport, int mbox);
139 extern int fsl_open_inb_mbox(struct rio_mport *mport,
[all …]
H A Dfsl_rmu.c32 #define GET_RMM_HANDLE(mport) \ argument
33 (((struct rio_priv *)(mport->priv))->rmm_handle)
326 if (fsl_dbell->mport[i]) { in fsl_rio_dbell_handler()
328 &fsl_dbell->mport[i]->dbells, node) { in fsl_rio_dbell_handler()
338 dbell->dinb(fsl_dbell->mport[i], in fsl_rio_dbell_handler()
506 if (pw->mport[i]) in fsl_pw_dpc()
507 rio_inb_pwrite_handler(pw->mport[i], in fsl_pw_dpc()
518 int fsl_rio_pw_enable(struct rio_mport *mport, int enable) in fsl_rio_pw_enable() argument
624 int fsl_rio_doorbell_send(struct rio_mport *mport, in fsl_rio_doorbell_send() argument
660 fsl_add_outb_message(struct rio_mport *mport, struct rio_dev *rdev, int mbox, in fsl_add_outb_message() argument
[all …]
H A Dfsl_rio.c142 static int fsl_local_config_read(struct rio_mport *mport, in fsl_local_config_read() argument
145 struct rio_priv *priv = mport->priv; in fsl_local_config_read()
164 static int fsl_local_config_write(struct rio_mport *mport, in fsl_local_config_write() argument
167 struct rio_priv *priv = mport->priv; in fsl_local_config_write()
190 fsl_rio_config_read(struct rio_mport *mport, int index, u16 destid, in fsl_rio_config_read() argument
193 struct rio_priv *priv = mport->priv; in fsl_rio_config_read()
255 fsl_rio_config_write(struct rio_mport *mport, int index, u16 destid, in fsl_rio_config_write() argument
258 struct rio_priv *priv = mport->priv; in fsl_rio_config_write()
307 static int fsl_map_inb_mem(struct rio_mport *mport, dma_addr_t lstart, in fsl_map_inb_mem() argument
310 struct rio_priv *priv = mport->priv; in fsl_map_inb_mem()
[all …]
/linux/drivers/rapidio/switches/
H A Didtcps.c21 idtcps_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtcps_route_add_entry() argument
30 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_route_add_entry()
33 rio_mport_read_config_32(mport, destid, hopcount, in idtcps_route_add_entry()
37 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_route_add_entry()
45 idtcps_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtcps_route_get_entry() argument
51 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_route_get_entry()
54 rio_mport_read_config_32(mport, destid, hopcount, in idtcps_route_get_entry()
68 idtcps_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, in idtcps_route_clr_table() argument
75 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_route_clr_table()
77 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_route_clr_table()
[all …]
H A Didt_gen2.c87 idtg2_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg2_route_add_entry() argument
101 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_add_entry()
107 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_add_entry()
111 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_add_entry()
120 idtg2_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg2_route_get_entry() argument
133 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_get_entry()
136 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_get_entry()
140 rio_mport_read_config_32(mport, destid, hopcount, in idtg2_route_get_entry()
152 idtg2_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg2_route_clr_table() argument
165 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_clr_table()
[all …]
H A Didt_gen3.c37 idtg3_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg3_route_add_entry() argument
55 err = rio_mport_write_config_32(mport, destid, hopcount, in idtg3_route_add_entry()
64 err = rio_mport_read_config_32(mport, destid, hopcount, in idtg3_route_add_entry()
72 err = rio_mport_write_config_32(mport, destid, hopcount, in idtg3_route_add_entry()
79 idtg3_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg3_route_get_entry() argument
88 err = rio_mport_read_config_32(mport, destid, hopcount, in idtg3_route_get_entry()
103 err = rio_mport_read_config_32(mport, destid, hopcount, in idtg3_route_get_entry()
118 idtg3_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg3_route_clr_table() argument
127 err = rio_mport_write_config_32(mport, destid, hopcount, in idtg3_route_clr_table()
137 err = rio_mport_read_config_32(mport, destid, hopcount, in idtg3_route_clr_table()
[all …]
/linux/drivers/net/
H A Drionet.c52 struct rio_mport *mport; member
105 if (!(data = rio_get_inb_message(rnet->mport, RIONET_MAILBOX))) in rionet_rx_clean()
138 rio_add_inb_buffer(rnet->mport, RIONET_MAILBOX, in rionet_rx_fill()
150 rio_add_outb_message(rnet->mport, rdev, 0, skb->data, skb->len); in rionet_queue_tx_msg()
182 add_num = nets[rnet->mport->id].nact; in rionet_start_xmit()
195 for (i = 0; i < RIO_MAX_ROUTE_ENTRIES(rnet->mport->sys_size); in rionet_start_xmit()
197 if (nets[rnet->mport->id].active[i]) { in rionet_start_xmit()
199 nets[rnet->mport->id].active[i]); in rionet_start_xmit()
206 if (nets[rnet->mport->id].active[destid]) in rionet_start_xmit()
208 nets[rnet->mport->id].active[destid]); in rionet_start_xmit()
[all …]
/linux/drivers/rapidio/devices/
H A Drio_mport_cdev.c147 struct rio_mport *mport; member
243 struct rio_mport *mport = priv->md->mport; in rio_mport_maint_rd() local
266 ret = __rio_local_read_config_32(mport, in rio_mport_maint_rd()
269 ret = rio_mport_read_config_32(mport, maint_io.rioid, in rio_mport_maint_rd()
288 struct rio_mport *mport = priv->md->mport; in rio_mport_maint_wr() local
319 ret = __rio_local_write_config_32(mport, in rio_mport_maint_wr()
322 ret = rio_mport_write_config_32(mport, maint_io.rioid, in rio_mport_maint_wr()
345 struct rio_mport *mport = md->mport; in rio_mport_create_outbound_mapping() local
355 ret = rio_map_outb_region(mport, rioid, raddr, size, 0, paddr); in rio_mport_create_outbound_mapping()
448 if (!md->mport->ops->unmap_outb) in rio_mport_obw_free()
[all …]
H A Dtsi721.c3 * RapidIO mport driver for Tsi721 PCIExpress-to-SRIO bridge
48 * @mport: RapidIO master port info
58 static int tsi721_lcread(struct rio_mport *mport, int index, u32 offset, in tsi721_lcread() argument
61 struct tsi721_device *priv = mport->priv; in tsi721_lcread()
73 * @mport: RapidIO master port info
83 static int tsi721_lcwrite(struct rio_mport *mport, int index, u32 offset, in tsi721_lcwrite() argument
86 struct tsi721_device *priv = mport->priv; in tsi721_lcwrite()
204 * @mport: RapidIO master port control structure
215 static int tsi721_cread_dma(struct rio_mport *mport, int index, u16 destid, in tsi721_cread_dma() argument
218 struct tsi721_device *priv = mport in tsi721_cread_dma()
238 tsi721_cwrite_dma(struct rio_mport * mport,int index,u16 destid,u8 hopcount,u32 offset,int len,u32 data) tsi721_cwrite_dma() argument
317 tsi721_pw_enable(struct rio_mport * mport,int enable) tsi721_pw_enable() argument
349 tsi721_dsend(struct rio_mport * mport,int index,u16 destid,u16 data) tsi721_dsend() argument
395 struct rio_mport *mport; tsi721_db_dpc() local
943 tsi721_map_outb_win(struct rio_mport * mport,u16 destid,u64 rstart,u32 size,u32 flags,dma_addr_t * laddr) tsi721_map_outb_win() argument
1026 tsi721_unmap_outb_win(struct rio_mport * mport,u16 destid,u64 rstart) tsi721_unmap_outb_win() argument
1110 tsi721_rio_map_inb_mem(struct rio_mport * mport,dma_addr_t lstart,u64 rstart,u64 size,u32 flags) tsi721_rio_map_inb_mem() argument
1263 tsi721_rio_unmap_inb_mem(struct rio_mport * mport,dma_addr_t lstart) tsi721_rio_unmap_inb_mem() argument
1694 tsi721_add_outb_message(struct rio_mport * mport,struct rio_dev * rdev,int mbox,void * buffer,size_t len) tsi721_add_outb_message() argument
1764 struct rio_mport *mport = &priv->mport; tsi721_omsg_handler() local
1902 tsi721_open_outb_mbox(struct rio_mport * mport,void * dev_id,int mbox,int entries) tsi721_open_outb_mbox() argument
2083 tsi721_close_outb_mbox(struct rio_mport * mport,int mbox) tsi721_close_outb_mbox() argument
2146 struct rio_mport *mport = &priv->mport; tsi721_imsg_handler() local
2191 tsi721_open_inb_mbox(struct rio_mport * mport,void * dev_id,int mbox,int entries) tsi721_open_inb_mbox() argument
2385 tsi721_close_inb_mbox(struct rio_mport * mport,int mbox) tsi721_close_inb_mbox() argument
2446 tsi721_add_inb_buffer(struct rio_mport * mport,int mbox,void * buf) tsi721_add_inb_buffer() argument
2477 tsi721_get_inb_message(struct rio_mport * mport,int mbox) tsi721_get_inb_message() argument
2581 tsi721_query_mport(struct rio_mport * mport,struct rio_mport_attr * attr) tsi721_query_mport() argument
2681 struct rio_mport *mport = to_rio_mport(dev); tsi721_mport_release() local
2698 struct rio_mport *mport = &priv->mport; tsi721_setup_mport() local
[all...]
H A Dtsi721_dma.c968 struct rio_mport *mport = &priv->mport; in tsi721_register_dma() local
970 INIT_LIST_HEAD(&mport->dma.channels); in tsi721_register_dma()
980 bdma_chan->dchan.device = &mport->dma; in tsi721_register_dma()
995 &mport->dma.channels); in tsi721_register_dma()
999 mport->dma.chancnt = nr_channels; in tsi721_register_dma()
1000 dma_cap_zero(mport->dma.cap_mask); in tsi721_register_dma()
1001 dma_cap_set(DMA_PRIVATE, mport->dma.cap_mask); in tsi721_register_dma()
1002 dma_cap_set(DMA_SLAVE, mport->dma.cap_mask); in tsi721_register_dma()
1004 mport->dma.dev = &priv->pdev->dev; in tsi721_register_dma()
1005 mport->dma.device_alloc_chan_resources = tsi721_alloc_chan_resources; in tsi721_register_dma()
[all …]
/linux/Documentation/driver-api/rapidio/
H A Dmport_cdev.rst2 RapidIO subsystem mport character device driver (rio_mport_cdev.c)
21 directory for each registered RapidIO mport device. 'X' in the node name matches
22 to unique port ID assigned to each local mport device.
27 - Reads and writes from/to configuration registers of mport devices
32 - Set RapidIO Destination ID for mport devices (RIO_MPORT_MAINT_HDID_SET)
33 - Set RapidIO Component Tag for mport devices (RIO_MPORT_MAINT_COMPTAG_SET)
34 - Query logical index of mport devices (RIO_MPORT_MAINT_PORT_IDX_GET)
35 - Query capabilities and RapidIO link configuration of mport devices
43 - Configure/Map mport's outbound requests window(s) for specific size,
46 - Configure/Map mport's inbound requests window(s) for specific size,
[all …]
H A Drio_cm.rst37 in /dev directory common for all registered RapidIO mport devices.
42 Returns to caller list of local mport devices that
44 Each list entry is combination of mport's index in the system and RapidIO
48 in a RapidIO network associated with the specified mport device.
52 with the specified mport device.
58 mport device.
93 and therefore it can be used with any mport device driver registered by RapidIO
94 subsystem with limitations set by available mport HW implementation of messaging
/linux/Documentation/ABI/testing/
H A Dsysfs-class-rapidio4 (referenced as "Master Port" or "mport") are presented in sysfs
7 subdirectories named as "rapidioN" where N = mport ID registered
10 NOTE: An mport ID is not a RapidIO destination ID assigned to a
11 given local mport device.
33 RapidIO mport device. If value 0xFFFFFFFF is returned this means
34 that no valid destination ID have been assigned to the mport
39 After enumeration or discovery was performed for a given mport device,
41 child RapidIO device connected to the mport.
43 The example below shows mport device subdirectory with several child RapidIO
/linux/drivers/net/ethernet/sfc/
H A Defx_devlink.c141 struct mae_mport_desc *mport) in efx_devlink_add_port() argument
145 if (!ef100_mport_on_local_intf(efx, mport)) in efx_devlink_add_port()
148 switch (mport->mport_type) { in efx_devlink_add_port()
150 if (mport->vf_idx != MAE_MPORT_DESC_VF_IDX_NULL) in efx_devlink_add_port()
151 devlink_port_attrs_pci_vf_set(&mport->dl_port, 0, mport->pf_idx, in efx_devlink_add_port()
152 mport->vf_idx, in efx_devlink_add_port()
155 devlink_port_attrs_pci_pf_set(&mport->dl_port, 0, mport->pf_idx, in efx_devlink_add_port()
163 mport->dl_port.index = mport->mport_id; in efx_devlink_add_port()
165 return devl_port_register_with_ops(efx->devlink, &mport->dl_port, in efx_devlink_add_port()
166 mport->mport_id, in efx_devlink_add_port()
[all …]
H A Def100_rep.h50 u32 mport; member
72 struct efx_rep *efx_ef100_find_rep_by_mport(struct efx_nic *efx, u16 mport);
H A Def100_rep.c251 rc = efx_mae_lookup_mport(efx, efv->idx, &efv->mport); in efx_ef100_configure_rep()
254 pci_dbg(efx->pci_dev, "VF %u has mport ID %#x\n", efv->idx, efv->mport); in efx_ef100_configure_rep()
256 WARN_ON(efv->mport >> 16); in efx_ef100_configure_rep()
483 struct efx_rep *efx_ef100_find_rep_by_mport(struct efx_nic *efx, u16 mport) in efx_ef100_find_rep_by_mport() argument
493 if (efv->mport == mport) { in efx_ef100_find_rep_by_mport()
/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_mirror.c119 struct sparx5_port *mport, u32 dir, u32 *idx) in sparx5_mirror_get() argument
134 sparx5_mirror_has_monitor(sparx5, i, mport->portno)) { in sparx5_mirror_get()
154 struct sparx5_port *sport, *mport; in sparx5_mirror_add() local
161 mport = entry->mirror.port; in sparx5_mirror_add()
164 if (sport->portno == mport->portno) in sparx5_mirror_add()
167 err = sparx5_mirror_get(sport, mport, dir, &mirror_idx); in sparx5_mirror_add()
181 sparx5_mirror_monitor_set(sparx5, mirror_idx, mport->portno); in sparx5_mirror_add()

12