Home
last modified time | relevance | path

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

12

/linux/drivers/rapidio/
A Drio.c262 rc = mport->ops->open_inb_mbox(mport, dev_id, mbox, entries); in rio_request_inb_mbox()
289 if (!mport->ops->close_inb_mbox || !mport->inb_msg[mbox].res) in rio_release_inb_mbox()
292 mport->ops->close_inb_mbox(mport, mbox); in rio_release_inb_mbox()
376 mport->ops->close_outb_mbox(mport, mbox); in rio_release_outb_mbox()
671 mport->ops->pwenable(mport, enable); in rio_pw_enable()
715 mport->ops->unmap_inb(mport, lstart); in rio_unmap_inb_region()
743 rc = mport->ops->map_outb(mport, destid, rbase, size, in rio_map_outb_region()
765 mport->ops->unmap_outb(mport, destid, rstart); in rio_unmap_outb_region()
2057 work->mport->id, work->mport->name); in disc_work_handler()
2059 work->mport->nscan->discover(work->mport, 0); in disc_work_handler()
[all …]
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()
A Drio-scan.c866 net->hport = mport; in rio_scan_alloc_net()
948 mport->name); in rio_enum_mport()
956 if (mport->nnode.next || mport->nnode.prev) in rio_enum_mport()
963 mport->id); in rio_enum_mport()
993 mport->id); in rio_enum_mport()
1005 mport->id); in rio_enum_mport()
1063 mport->name); in rio_disc_mport()
1082 mport->id, mport->name); in rio_disc_mport()
1096 mport->host_deviceid = RIO_GET_DID(mport->sys_size, in rio_disc_mport()
1099 if (rio_disc_peer(net, mport, RIO_ANY_DESTID(mport->sys_size), in rio_disc_mport()
[all …]
A Drio_cm.c147 struct rio_mport *mport; member
741 if (cm->mport == NULL) { in riocm_post_send()
1239 if ((cm->mport->id == mport_id) && in riocm_ch_bind()
1544 if (cm->mport->id == mport_id) { in cm_ep_get_list_size()
1580 if (cm->mport->id == (u8)info[1]) in cm_ep_get_list()
1639 cm->mport->host_deviceid; in cm_mport_get_list()
2109 cm->mport = mport; in riocm_add_mport()
2115 cmbox, mport->name); in riocm_add_mport()
2124 cmbox, mport->name); in riocm_add_mport()
2191 if (cm->mport == mport) { in riocm_remove_mport()
[all …]
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()
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);
/linux/include/linux/
A Drio.h300 return atomic_read(&mport->state) == RIO_DEVICE_RUNNING; in rio_mport_is_running()
409 int (*pwenable) (struct rio_mport *mport, int enable);
410 int (*open_outb_mbox)(struct rio_mport *mport, void *dev_id,
412 void (*close_outb_mbox)(struct rio_mport *mport, int mbox);
413 int (*open_inb_mbox)(struct rio_mport *mport, void *dev_id,
415 void (*close_inb_mbox)(struct rio_mport *mport, int mbox);
419 void *(*get_inb_message)(struct rio_mport *mport, int mbox);
420 int (*map_inb)(struct rio_mport *mport, dma_addr_t lstart,
423 int (*query_mport)(struct rio_mport *mport,
530 int (*enumerate)(struct rio_mport *mport, u32 flags);
[all …]
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()
347 return mport->ops->get_inb_message(mport, mbox); in rio_get_inb_message()
370 extern void rio_unmap_outb_region(struct rio_mport *mport,
378 int (*pwcback)(struct rio_mport *mport, void *dev_id,
381 int (*pwcback)(struct rio_mport *mport, void *dev_id,
383 extern int rio_inb_pwrite_handler(struct rio_mport *mport,
[all …]
/linux/arch/powerpc/sysdev/
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 …]
A Dfsl_rmu.c32 #define GET_RMM_HANDLE(mport) \ argument
326 if (fsl_dbell->mport[i]) { 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()
723 struct rio_priv *priv = mport->priv; in fsl_open_outb_mbox()
777 "msg_tx", (void *)mport); in fsl_open_outb_mbox()
837 free_irq(IRQ_RIO_TX(mport), (void *)mport); in fsl_close_outb_mbox()
889 "msg_rx", (void *)mport); in fsl_open_inb_mbox()
937 free_irq(IRQ_RIO_RX(mport), (void *)mport); in fsl_close_inb_mbox()
1074 if (!mport || !mport->priv) in fsl_rio_setup_rmu()
[all …]
A Dfsl_rio.c133 static int fsl_local_config_read(struct rio_mport *mport, in fsl_local_config_read() argument
136 struct rio_priv *priv = mport->priv; in fsl_local_config_read()
155 static int fsl_local_config_write(struct rio_mport *mport, in fsl_local_config_write() argument
158 struct rio_priv *priv = mport->priv; in fsl_local_config_write()
184 struct rio_priv *priv = mport->priv; in fsl_rio_config_read()
249 struct rio_priv *priv = mport->priv; in fsl_rio_config_write()
298 int fsl_map_inb_mem(struct rio_mport *mport, dma_addr_t lstart, in fsl_map_inb_mem() argument
301 struct rio_priv *priv = mport->priv; in fsl_map_inb_mem()
352 struct rio_priv *priv = mport->priv; in fsl_unmap_inb_mem()
726 dbell->mport[i] = port; in fsl_rio_setup()
[all …]
/linux/drivers/rapidio/switches/
A Dtsi57x.c46 rio_mport_write_config_32(mport, destid, hopcount, in tsi57x_route_add_entry()
48 rio_mport_write_config_32(mport, destid, hopcount, in tsi57x_route_add_entry()
51 rio_mport_write_config_32(mport, destid, hopcount, in tsi57x_route_add_entry()
53 rio_mport_write_config_32(mport, destid, hopcount, in tsi57x_route_add_entry()
72 rio_mport_read_config_32(mport, destid, hopcount, in tsi57x_route_get_entry()
77 rio_mport_write_config_32(mport, destid, hopcount, in tsi57x_route_get_entry()
79 rio_mport_read_config_32(mport, destid, hopcount, in tsi57x_route_get_entry()
96 lut_size = (mport->sys_size) ? 0x1ff : 0xff; in tsi57x_route_clr_table()
127 rio_mport_read_config_32(mport, destid, hopcount, in tsi57x_set_domain()
147 rio_mport_read_config_32(mport, destid, hopcount, in tsi57x_get_domain()
[all …]
A Dtsi568.c37 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_add_entry()
39 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_add_entry()
42 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_add_entry()
45 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_add_entry()
62 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_get_entry()
64 rio_mport_read_config_32(mport, destid, hopcount, in tsi568_route_get_entry()
67 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_get_entry()
70 rio_mport_read_config_32(mport, destid, hopcount, in tsi568_route_get_entry()
88 lut_size = (mport->sys_size) ? 0x1ff : 0xff; in tsi568_route_clr_table()
91 rio_mport_write_config_32(mport, destid, hopcount, in tsi568_route_clr_table()
[all …]
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()
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()
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()
90 idtcps_set_domain(struct rio_mport *mport, u16 destid, u8 hopcount, in idtcps_set_domain() argument
96 rio_mport_write_config_32(mport, destid, hopcount, in idtcps_set_domain()
[all …]
A Didt_gen2.c101 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()
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()
165 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_clr_table()
170 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_clr_table()
172 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_route_clr_table()
190 rio_mport_write_config_32(mport, destid, hopcount, in idtg2_set_domain()
[all …]
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/
A Drionet.c52 struct rio_mport *mport; member
182 add_num = nets[rnet->mport->id].nact; in rionet_start_xmit()
199 nets[rnet->mport->id].active[i]); in rionet_start_xmit()
233 unsigned char netid = rnet->mport->id; in rionet_dbell_event()
249 rio_mport_send_doorbell(mport, sid, in rionet_dbell_event()
314 unsigned char netid = rnet->mport->id; in rionet_open()
492 if (!nets[mport->id].active) { in rionet_setup_netdev()
500 rnet->mport = mport; in rionet_setup_netdev()
519 SET_NETDEV_DEV(ndev, &mport->dev); in rionet_setup_netdev()
540 mport->name); in rionet_setup_netdev()
[all …]
/linux/drivers/rapidio/devices/
A Drio_mport_cdev.c261 struct rio_mport *mport = priv->md->mport; in rio_mport_maint_rd() local
306 struct rio_mport *mport = priv->md->mport; in rio_mport_maint_wr() local
363 struct rio_mport *mport = md->mport; in rio_mport_create_outbound_mapping() local
1203 struct rio_mport *mport = md->mport; in rio_mport_create_inbound_mapping() local
1707 mport = md->mport; in rio_mport_add_riodev()
1829 mport = priv->md->mport; in rio_mport_del_riodev()
2147 struct rio_mport *mport = map->md->mport; in mport_release_mapping() local
2300 struct rio_mport *mport = priv->md->mport; in mport_write() local
2372 md->mport = mport; in mport_cdev_add()
2434 mport->name, MAJOR(dev_number), mport->id); in mport_cdev_add()
[all …]
A Dtsi721.c385 struct rio_mport *mport; in tsi721_db_dpc() local
399 mport = &priv->mport; in tsi721_db_dpc()
1737 struct rio_mport *mport = &priv->mport; in tsi721_omsg_handler() local
1863 mport->outb_msg[ch].mcback(mport, dev_id, ch, tx_slot); in tsi721_omsg_handler()
2117 struct rio_mport *mport = &priv->mport; in tsi721_imsg_handler() local
2138 mport->inb_msg[mbox].mcback(mport, in tsi721_imsg_handler()
2648 tsi_debug(EXIT, dev, "%s id=%d", mport->name, mport->id); in tsi721_mport_release()
2661 struct rio_mport *mport = &priv->mport; in tsi721_setup_mport() local
2668 mport->index = 0; in tsi721_setup_mport()
2671 mport->phys_efptr = 0x100; in tsi721_setup_mport()
[all …]
A Dtsi721_dma.c967 struct rio_mport *mport = &priv->mport; in tsi721_register_dma() local
969 INIT_LIST_HEAD(&mport->dma.channels); in tsi721_register_dma()
979 bdma_chan->dchan.device = &mport->dma; in tsi721_register_dma()
994 &mport->dma.channels); in tsi721_register_dma()
998 mport->dma.chancnt = nr_channels; in tsi721_register_dma()
999 dma_cap_zero(mport->dma.cap_mask); in tsi721_register_dma()
1001 dma_cap_set(DMA_SLAVE, mport->dma.cap_mask); in tsi721_register_dma()
1003 mport->dma.dev = &priv->pdev->dev; in tsi721_register_dma()
1011 err = dma_async_device_register(&mport->dma); in tsi721_register_dma()
1020 struct rio_mport *mport = &priv->mport; in tsi721_unregister_dma() local
[all …]
/linux/Documentation/driver-api/rapidio/
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 …]
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
A Drapidio.rst35 A master port (or mport) is a RapidIO interface controller that is local to the
43 RapidIO master ports are serviced by subsystem specific mport device drivers
52 A RapidIO device is any endpoint (other than mport) or switch in the network.
102 register at least one master port within the RapidIO network. To register mport
123 simply to all available mports OR individually to the specified mport device.
168 "rapidio.hdid=" with a list of destination ID assignments in order of mport
184 (i) if "hdid=" parameter is omitted all available mport will be assigned
218 discovery for all known mport devices.
232 sequential number (0 ... RIO_MAX_MPORTS) assigned during mport device
314 A new enumeration/discovery method has to be attached to one or more mport
[all …]
/linux/Documentation/ABI/testing/
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/Documentation/devicetree/bindings/sound/
A Dqcom,lpass-cpu.yaml135 - const: pcnoc-mport-clk
152 - const: pcnoc-mport-clk
158 - const: pcnoc-mport-clk
203 "mclk0", "pcnoc-mport-clk",

Completed in 52 milliseconds

12