Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/rapidio/
Drio-access.c36 (struct rio_mport *mport, u32 offset, type *value) \
41 res = mport->ops->lcread(mport, mport->id, offset, len, &data); \
57 (struct rio_mport *mport, u32 offset, type value) \
60 return mport->ops->lcwrite(mport, mport->id, offset, len, value);\
88 (struct rio_mport *mport, u16 destid, u8 hopcount, u32 offset, type *value) \
93 res = mport->ops->cread(mport, mport->id, destid, hopcount, offset, len, &data); \
109 (struct rio_mport *mport, u16 destid, u8 hopcount, u32 offset, type value) \
112 return mport->ops->cwrite(mport, mport->id, destid, hopcount, \
140 int rio_mport_send_doorbell(struct rio_mport *mport, u16 destid, u16 data) in rio_mport_send_doorbell() argument
142 return mport->ops->dsend(mport, mport->id, destid, data); in rio_mport_send_doorbell()
Drio.c42 int (*pwcback)(struct rio_mport *mport, void *context,
112 struct rio_net *rio_alloc_net(struct rio_mport *mport) in rio_alloc_net() argument
121 mport->net = net; in rio_alloc_net()
236 int rio_request_inb_mbox(struct rio_mport *mport, in rio_request_inb_mbox() argument
240 void (*minb) (struct rio_mport * mport, void *dev_id, int mbox, in rio_request_inb_mbox()
246 if (!mport->ops->open_inb_mbox) in rio_request_inb_mbox()
254 rc = request_resource(&mport->riores[RIO_INB_MBOX_RESOURCE], in rio_request_inb_mbox()
261 mport->inb_msg[mbox].res = res; in rio_request_inb_mbox()
264 mport->inb_msg[mbox].mcback = minb; in rio_request_inb_mbox()
266 rc = mport->ops->open_inb_mbox(mport, dev_id, mbox, entries); in rio_request_inb_mbox()
[all …]
Drio-scan.c839 static struct rio_net *rio_scan_alloc_net(struct rio_mport *mport, in rio_scan_alloc_net() argument
844 net = rio_alloc_net(mport); in rio_scan_alloc_net()
852 RIO_MAX_ROUTE_ENTRIES(mport->sys_size) in rio_scan_alloc_net()
865 idtab->max = RIO_MAX_ROUTE_ENTRIES(mport->sys_size); in rio_scan_alloc_net()
871 net->id = mport->id; in rio_scan_alloc_net()
872 net->hport = mport; in rio_scan_alloc_net()
874 net->dev.parent = &mport->dev; in rio_scan_alloc_net()
948 static int rio_enum_mport(struct rio_mport *mport, u32 flags) in rio_enum_mport() argument
953 printk(KERN_INFO "RIO: enumerate master port %d, %s\n", mport->id, in rio_enum_mport()
954 mport->name); in rio_enum_mport()
[all …]
Drio_cm.c156 struct rio_mport *mport; member
314 msg = rio_get_inb_message(cm->mport, cmbox); in riocm_rx_get_msg()
350 rio_add_inb_buffer(cm->mport, cmbox, cm->rx_buf[i]); in riocm_rx_fill()
499 if (!rio_mport_is_running(cm->mport)) in rio_cm_handler()
595 if (!rio_mport_is_running(cm->mport)) in rio_ibmsg_handler()
626 static void riocm_inb_msg_event(struct rio_mport *mport, void *dev_id, in riocm_inb_msg_event() argument
631 if (rio_mport_is_running(cm->mport) && !work_pending(&cm->rx_work)) in riocm_inb_msg_event()
653 cm->mport->id, slot, cm->tx_cnt); in rio_txcq_handler()
687 rc = rio_add_outb_message(cm->mport, req->rdev, cmbox, in rio_txcq_handler()
703 static void riocm_outb_msg_event(struct rio_mport *mport, void *dev_id, in riocm_outb_msg_event() argument
[all …]
Drio.h22 extern u32 rio_mport_get_feature(struct rio_mport *mport, int local, u16 destid,
28 extern int rio_mport_chk_dev_access(struct rio_mport *mport, u16 destid,
40 extern struct rio_net *rio_alloc_net(struct rio_mport *mport);
Drio-sysfs.c337 struct rio_mport *mport = to_rio_mport(dev); in port_destid_show() local
339 if (mport) in port_destid_show()
340 return sprintf(buf, "0x%04x\n", mport->host_deviceid); in port_destid_show()
349 struct rio_mport *mport = to_rio_mport(dev); in sys_size_show() local
351 if (mport) in sys_size_show()
352 return sprintf(buf, "%u\n", mport->sys_size); in sys_size_show()
DKconfig80 tristate "RapidIO /dev mport device driver"
83 This option includes generic RapidIO mport device driver which
85 operations through selected RapidIO mport.
/Linux-v4.19/include/linux/
Drio.h126 int (*add_entry) (struct rio_mport *mport, u16 destid, u8 hopcount,
128 int (*get_entry) (struct rio_mport *mport, u16 destid, u8 hopcount,
130 int (*clr_table) (struct rio_mport *mport, u16 destid, u8 hopcount,
132 int (*set_domain) (struct rio_mport *mport, u16 destid, u8 hopcount,
134 int (*get_domain) (struct rio_mport *mport, u16 destid, u8 hopcount,
225 void (*mcback) (struct rio_mport * mport, void *dev_id, int mbox, int slot);
238 void (*dinb) (struct rio_mport *mport, void *dev_id, u16 src, u16 dst, u16 info);
302 static inline int rio_mport_is_running(struct rio_mport *mport) in rio_mport_is_running() argument
304 return atomic_read(&mport->state) == RIO_DEVICE_RUNNING; in rio_mport_is_running()
404 int (*lcread) (struct rio_mport *mport, int index, u32 offset, int len,
[all …]
Drio_drv.h234 extern int rio_mport_send_doorbell(struct rio_mport *mport, u16 destid,
315 static inline int rio_add_outb_message(struct rio_mport *mport, in rio_add_outb_message() argument
319 return mport->ops->add_outb_message(mport, rdev, mbox, in rio_add_outb_message()
336 static inline int rio_add_inb_buffer(struct rio_mport *mport, int mbox, in rio_add_inb_buffer() argument
339 return mport->ops->add_inb_buffer(mport, mbox, buffer); in rio_add_inb_buffer()
349 static inline void *rio_get_inb_message(struct rio_mport *mport, int mbox) in rio_get_inb_message() argument
351 return mport->ops->get_inb_message(mport, mbox); in rio_get_inb_message()
369 extern int rio_map_inb_region(struct rio_mport *mport, dma_addr_t local,
371 extern void rio_unmap_inb_region(struct rio_mport *mport, dma_addr_t lstart);
372 extern int rio_map_outb_region(struct rio_mport *mport, u16 destid, u64 rbase,
[all …]
/Linux-v4.19/arch/powerpc/sysdev/
Dfsl_rio.h34 #define RIO_REGS_WIN(mport) (((struct rio_priv *)(mport->priv))->regs_win) argument
92 struct rio_mport *mport[MAX_PORT_NUM]; member
100 struct rio_mport *mport[MAX_PORT_NUM]; member
128 extern int fsl_rio_setup_rmu(struct rio_mport *mport,
131 extern int fsl_rio_pw_enable(struct rio_mport *mport, int enable);
135 extern int fsl_rio_doorbell_send(struct rio_mport *mport,
137 extern int fsl_add_outb_message(struct rio_mport *mport,
140 extern int fsl_open_outb_mbox(struct rio_mport *mport,
142 extern void fsl_close_outb_mbox(struct rio_mport *mport, int mbox);
143 extern int fsl_open_inb_mbox(struct rio_mport *mport,
[all …]
Dfsl_rmu.c36 #define GET_RMM_HANDLE(mport) \ argument
37 (((struct rio_priv *)(mport->priv))->rmm_handle)
330 if (fsl_dbell->mport[i]) { in fsl_rio_dbell_handler()
332 &fsl_dbell->mport[i]->dbells, node) { in fsl_rio_dbell_handler()
342 dbell->dinb(fsl_dbell->mport[i], in fsl_rio_dbell_handler()
510 if (pw->mport[i]) in fsl_pw_dpc()
511 rio_inb_pwrite_handler(pw->mport[i], in fsl_pw_dpc()
522 int fsl_rio_pw_enable(struct rio_mport *mport, int enable) in fsl_rio_pw_enable() argument
628 int fsl_rio_doorbell_send(struct rio_mport *mport, in fsl_rio_doorbell_send() argument
664 fsl_add_outb_message(struct rio_mport *mport, struct rio_dev *rdev, int mbox, in fsl_add_outb_message() argument
[all …]
Dfsl_rio.c137 static int fsl_local_config_read(struct rio_mport *mport, in fsl_local_config_read() argument
140 struct rio_priv *priv = mport->priv; in fsl_local_config_read()
159 static int fsl_local_config_write(struct rio_mport *mport, in fsl_local_config_write() argument
162 struct rio_priv *priv = mport->priv; in fsl_local_config_write()
185 fsl_rio_config_read(struct rio_mport *mport, int index, u16 destid, in fsl_rio_config_read() argument
188 struct rio_priv *priv = mport->priv; in fsl_rio_config_read()
250 fsl_rio_config_write(struct rio_mport *mport, int index, u16 destid, in fsl_rio_config_write() argument
253 struct rio_priv *priv = mport->priv; in fsl_rio_config_write()
302 int fsl_map_inb_mem(struct rio_mport *mport, dma_addr_t lstart, in fsl_map_inb_mem() argument
305 struct rio_priv *priv = mport->priv; in fsl_map_inb_mem()
[all …]
/Linux-v4.19/drivers/rapidio/switches/
Dtsi568.c37 tsi568_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi568_route_add_entry() argument
41 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_add_entry()
43 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_add_entry()
46 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_add_entry()
49 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_add_entry()
59 tsi568_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi568_route_get_entry() argument
66 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_get_entry()
68 rio_mport_read_config_32(mport, destid, hopcount, in tsi568_route_get_entry()
71 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_get_entry()
74 rio_mport_read_config_32(mport, destid, hopcount, in tsi568_route_get_entry()
[all …]
Dtsi57x.c46 tsi57x_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi57x_route_add_entry() argument
50 rio_mport_write_config_32(mport, destid, hopcount, in tsi57x_route_add_entry()
52 rio_mport_write_config_32(mport, destid, hopcount, in tsi57x_route_add_entry()
55 rio_mport_write_config_32(mport, destid, hopcount, in tsi57x_route_add_entry()
57 rio_mport_write_config_32(mport, destid, hopcount, in tsi57x_route_add_entry()
67 tsi57x_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi57x_route_get_entry() argument
76 rio_mport_read_config_32(mport, destid, hopcount, in tsi57x_route_get_entry()
81 rio_mport_write_config_32(mport, destid, hopcount, in tsi57x_route_get_entry()
83 rio_mport_read_config_32(mport, destid, hopcount, in tsi57x_route_get_entry()
94 tsi57x_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi57x_route_clr_table() argument
[all …]
Didtcps.c25 idtcps_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtcps_route_add_entry() argument
34 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_route_add_entry()
37 rio_mport_read_config_32(mport, destid, hopcount, in idtcps_route_add_entry()
41 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_route_add_entry()
49 idtcps_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtcps_route_get_entry() argument
55 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_route_get_entry()
58 rio_mport_read_config_32(mport, destid, hopcount, in idtcps_route_get_entry()
72 idtcps_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, in idtcps_route_clr_table() argument
79 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_route_clr_table()
81 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_route_clr_table()
[all …]
Didt_gen2.c91 idtg2_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg2_route_add_entry() argument
105 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()
115 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_add_entry()
124 idtg2_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg2_route_get_entry() argument
137 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_get_entry()
140 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_get_entry()
144 rio_mport_read_config_32(mport, destid, hopcount, in idtg2_route_get_entry()
156 idtg2_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg2_route_clr_table() argument
169 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_clr_table()
[all …]
Didt_gen3.c41 idtg3_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg3_route_add_entry() argument
59 err = rio_mport_write_config_32(mport, destid, hopcount, in idtg3_route_add_entry()
68 err = rio_mport_read_config_32(mport, destid, hopcount, in idtg3_route_add_entry()
76 err = rio_mport_write_config_32(mport, destid, hopcount, in idtg3_route_add_entry()
83 idtg3_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg3_route_get_entry() argument
92 err = rio_mport_read_config_32(mport, destid, hopcount, in idtg3_route_get_entry()
107 err = rio_mport_read_config_32(mport, destid, hopcount, in idtg3_route_get_entry()
122 idtg3_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg3_route_clr_table() argument
131 err = rio_mport_write_config_32(mport, destid, hopcount, in idtg3_route_clr_table()
141 err = rio_mport_read_config_32(mport, destid, hopcount, in idtg3_route_clr_table()
[all …]
/Linux-v4.19/drivers/net/
Drionet.c56 struct rio_mport *mport; member
109 if (!(data = rio_get_inb_message(rnet->mport, RIONET_MAILBOX))) in rionet_rx_clean()
142 rio_add_inb_buffer(rnet->mport, RIONET_MAILBOX, in rionet_rx_fill()
154 rio_add_outb_message(rnet->mport, rdev, 0, skb->data, skb->len); in rionet_queue_tx_msg()
185 add_num = nets[rnet->mport->id].nact; in rionet_start_xmit()
198 for (i = 0; i < RIO_MAX_ROUTE_ENTRIES(rnet->mport->sys_size); in rionet_start_xmit()
200 if (nets[rnet->mport->id].active[i]) { in rionet_start_xmit()
202 nets[rnet->mport->id].active[i]); in rionet_start_xmit()
209 if (nets[rnet->mport->id].active[destid]) in rionet_start_xmit()
211 nets[rnet->mport->id].active[destid]); in rionet_start_xmit()
[all …]
/Linux-v4.19/drivers/rapidio/devices/
Drio_mport_cdev.c171 struct rio_mport *mport; member
265 struct rio_mport *mport = priv->md->mport; in rio_mport_maint_rd() local
288 ret = __rio_local_read_config_32(mport, in rio_mport_maint_rd()
291 ret = rio_mport_read_config_32(mport, maint_io.rioid, in rio_mport_maint_rd()
310 struct rio_mport *mport = priv->md->mport; in rio_mport_maint_wr() local
341 ret = __rio_local_write_config_32(mport, in rio_mport_maint_wr()
344 ret = rio_mport_write_config_32(mport, maint_io.rioid, in rio_mport_maint_wr()
367 struct rio_mport *mport = md->mport; in rio_mport_create_outbound_mapping() local
377 ret = rio_map_outb_region(mport, rioid, raddr, size, 0, paddr); in rio_mport_create_outbound_mapping()
470 if (!md->mport->ops->unmap_outb) in rio_mport_obw_free()
[all …]
Dtsi721.c70 static int tsi721_lcread(struct rio_mport *mport, int index, u32 offset, in tsi721_lcread() argument
73 struct tsi721_device *priv = mport->priv; in tsi721_lcread()
94 static int tsi721_lcwrite(struct rio_mport *mport, int index, u32 offset, in tsi721_lcwrite() argument
97 struct tsi721_device *priv = mport->priv; in tsi721_lcwrite()
226 static int tsi721_cread_dma(struct rio_mport *mport, int index, u16 destid, in tsi721_cread_dma() argument
229 struct tsi721_device *priv = mport->priv; in tsi721_cread_dma()
231 return tsi721_maint_dma(priv, mport->sys_size, destid, hopcount, in tsi721_cread_dma()
249 static int tsi721_cwrite_dma(struct rio_mport *mport, int index, u16 destid, in tsi721_cwrite_dma() argument
252 struct tsi721_device *priv = mport->priv; in tsi721_cwrite_dma()
255 return tsi721_maint_dma(priv, mport->sys_size, destid, hopcount, in tsi721_cwrite_dma()
[all …]
Dtsi721_dma.c979 struct rio_mport *mport = &priv->mport; in tsi721_register_dma() local
981 INIT_LIST_HEAD(&mport->dma.channels); in tsi721_register_dma()
991 bdma_chan->dchan.device = &mport->dma; in tsi721_register_dma()
1006 &mport->dma.channels); in tsi721_register_dma()
1010 mport->dma.chancnt = nr_channels; in tsi721_register_dma()
1011 dma_cap_zero(mport->dma.cap_mask); in tsi721_register_dma()
1012 dma_cap_set(DMA_PRIVATE, mport->dma.cap_mask); in tsi721_register_dma()
1013 dma_cap_set(DMA_SLAVE, mport->dma.cap_mask); in tsi721_register_dma()
1015 mport->dma.dev = &priv->pdev->dev; in tsi721_register_dma()
1016 mport->dma.device_alloc_chan_resources = tsi721_alloc_chan_resources; in tsi721_register_dma()
[all …]
/Linux-v4.19/Documentation/rapidio/
Dmport_cdev.txt1 RapidIO subsystem mport character device driver (rio_mport_cdev.c)
25 directory for each registered RapidIO mport device. 'X' in the node name matches
26 to unique port ID assigned to each local mport device.
31 - Reads and writes from/to configuration registers of mport devices
36 - Set RapidIO Destination ID for mport devices (RIO_MPORT_MAINT_HDID_SET)
37 - Set RapidIO Component Tag for mport devices (RIO_MPORT_MAINT_COMPTAG_SET)
38 - Query logical index of mport devices (RIO_MPORT_MAINT_PORT_IDX_GET)
39 - Query capabilities and RapidIO link configuration of mport devices
47 - Configure/Map mport's outbound requests window(s) for specific size,
50 - Configure/Map mport's inbound requests window(s) for specific size,
[all …]
Drio_cm.txt40 in /dev directory common for all registered RapidIO mport devices.
44 - RIO_CM_MPORT_GET_LIST : Returns to caller list of local mport devices that
46 Each list entry is combination of mport's index in the system and RapidIO
49 in a RapidIO network associated with the specified mport device.
52 with the specified mport device.
56 mport device.
84 and therefore it can be used with any mport device driver registered by RapidIO
85 subsystem with limitations set by available mport HW implementation of messaging
Dtsi721.txt1 RapidIO subsystem mport driver for IDT Tsi721 PCI Express-to-SRIO bridge.
6 This driver implements all currently defined RapidIO mport callback functions.
60 Tsi721 mport driver supports DMA data transfers between local system memory and
69 If Tsi721 mport driver have been built with RAPIDIO_DMA_ENGINE support included,
/Linux-v4.19/Documentation/ABI/testing/
Dsysfs-class-rapidio4 (referenced as "Master Port" or "mport") are presented in sysfs
7 subdirectories named as "rapidioN" where N = mport ID registered
9 NOTE: An mport ID is not a RapidIO destination ID assigned to a
10 given local mport device.
29 RapidIO mport device. If value 0xFFFFFFFF is returned this means
30 that no valid destination ID have been assigned to the mport
35 After enumeration or discovery was performed for a given mport device,
37 child RapidIO device connected to the mport.
39 The example below shows mport device subdirectory with several child RapidIO

12