Home
last modified time | relevance | path

Searched refs:rio_mport (Results 1 – 22 of 22) sorted by relevance

/Linux-v4.19/include/linux/
Drio_drv.h23 extern int __rio_local_read_config_32(struct rio_mport *port, u32 offset,
25 extern int __rio_local_write_config_32(struct rio_mport *port, u32 offset,
27 extern int __rio_local_read_config_16(struct rio_mport *port, u32 offset,
29 extern int __rio_local_write_config_16(struct rio_mport *port, u32 offset,
31 extern int __rio_local_read_config_8(struct rio_mport *port, u32 offset,
33 extern int __rio_local_write_config_8(struct rio_mport *port, u32 offset,
36 extern int rio_mport_read_config_32(struct rio_mport *port, u16 destid,
38 extern int rio_mport_write_config_32(struct rio_mport *port, u16 destid,
40 extern int rio_mport_read_config_16(struct rio_mport *port, u16 destid,
42 extern int rio_mport_write_config_16(struct rio_mport *port, u16 destid,
[all …]
Drio.h88 struct rio_mport;
126 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,
215 #define to_rio_mport(n) container_of(n, struct rio_mport, dev)
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);
269 struct rio_mport { struct
[all …]
/Linux-v4.19/arch/powerpc/sysdev/
Dfsl_rio.h92 struct rio_mport *mport[MAX_PORT_NUM];
100 struct rio_mport *mport[MAX_PORT_NUM];
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,
145 extern void fsl_close_inb_mbox(struct rio_mport *mport, int mbox);
[all …]
Dfsl_rmu.c212 struct rio_mport *port = (struct rio_mport *)dev_instance; in fsl_rio_tx_handler()
257 struct rio_mport *port = (struct rio_mport *)dev_instance; in fsl_rio_rx_handler()
522 int fsl_rio_pw_enable(struct rio_mport *mport, int enable) in fsl_rio_pw_enable()
628 int fsl_rio_doorbell_send(struct rio_mport *mport, in fsl_rio_doorbell_send()
664 fsl_add_outb_message(struct rio_mport *mport, struct rio_dev *rdev, int mbox, in fsl_add_outb_message()
724 fsl_open_outb_mbox(struct rio_mport *mport, void *dev_id, int mbox, int entries) in fsl_open_outb_mbox()
828 void fsl_close_outb_mbox(struct rio_mport *mport, int mbox) in fsl_close_outb_mbox()
857 fsl_open_inb_mbox(struct rio_mport *mport, void *dev_id, int mbox, int entries) in fsl_open_inb_mbox()
929 void fsl_close_inb_mbox(struct rio_mport *mport, int mbox) in fsl_close_inb_mbox()
954 int fsl_add_inb_buffer(struct rio_mport *mport, int mbox, void *buf) in fsl_add_inb_buffer()
[all …]
Dfsl_rio.c137 static int fsl_local_config_read(struct rio_mport *mport, in fsl_local_config_read()
159 static int fsl_local_config_write(struct rio_mport *mport, in fsl_local_config_write()
185 fsl_rio_config_read(struct rio_mport *mport, int index, u16 destid, in fsl_rio_config_read()
250 fsl_rio_config_write(struct rio_mport *mport, int index, u16 destid, in fsl_rio_config_write()
302 int fsl_map_inb_mem(struct rio_mport *mport, dma_addr_t lstart, in fsl_map_inb_mem()
353 void fsl_unmap_inb_mem(struct rio_mport *mport, dma_addr_t lstart) in fsl_unmap_inb_mem()
444 struct rio_mport *port; in fsl_rio_setup()
617 port = kzalloc(sizeof(struct rio_mport), GFP_KERNEL); in fsl_rio_setup()
/Linux-v4.19/drivers/rapidio/
Drio.h22 extern u32 rio_mport_get_feature(struct rio_mport *mport, int local, u16 destid,
24 extern u32 rio_mport_get_physefb(struct rio_mport *port, int local,
26 extern u32 rio_mport_get_efb(struct rio_mport *port, int local, u16 destid,
28 extern int rio_mport_chk_dev_access(struct rio_mport *mport, u16 destid,
30 extern int rio_lock_device(struct rio_mport *port, u16 destid,
32 extern int rio_unlock_device(struct rio_mport *port, u16 destid, u8 hopcount);
40 extern struct rio_net *rio_alloc_net(struct rio_mport *mport);
45 extern int rio_enable_rx_tx_port(struct rio_mport *port, int local, u16 destid,
50 extern struct rio_mport *rio_find_mport(int mport_id);
Drio.c42 int (*pwcback)(struct rio_mport *mport, void *context,
76 u16 rio_local_get_device_id(struct rio_mport *port) in rio_local_get_device_id()
94 int rio_query_mport(struct rio_mport *port, in rio_query_mport()
112 struct rio_net *rio_alloc_net(struct rio_mport *mport) in rio_alloc_net()
161 void rio_local_set_device_id(struct rio_mport *port, u16 did) in rio_local_set_device_id()
236 int rio_request_inb_mbox(struct rio_mport *mport, in rio_request_inb_mbox()
240 void (*minb) (struct rio_mport * mport, void *dev_id, int mbox, in rio_request_inb_mbox()
289 int rio_release_inb_mbox(struct rio_mport *mport, int mbox) in rio_release_inb_mbox()
321 int rio_request_outb_mbox(struct rio_mport *mport, in rio_request_outb_mbox()
325 void (*moutb) (struct rio_mport * mport, void *dev_id, int mbox, int slot)) in rio_request_outb_mbox()
[all …]
Drio-access.c36 (struct rio_mport *mport, u32 offset, type *value) \
57 (struct rio_mport *mport, u32 offset, type value) \
88 (struct rio_mport *mport, u16 destid, u8 hopcount, u32 offset, type *value) \
109 (struct rio_mport *mport, u16 destid, u8 hopcount, u32 offset, type value) \
140 int rio_mport_send_doorbell(struct rio_mport *mport, u16 destid, u16 data) in rio_mport_send_doorbell()
Drio-scan.c163 static u16 rio_get_device_id(struct rio_mport *port, u16 destid, u8 hopcount) in rio_get_device_id()
181 static void rio_set_device_id(struct rio_mport *port, u16 destid, u8 hopcount, u16 did) in rio_set_device_id()
197 struct rio_mport *port = net->hport; in rio_clear_locks()
244 static int rio_enum_host(struct rio_mport *port) in rio_enum_host()
271 static int rio_device_has_destid(struct rio_mport *port, int src_ops, in rio_device_has_destid()
327 struct rio_mport *port, u16 destid, in rio_setup_device()
507 static u16 rio_get_host_deviceid_lock(struct rio_mport *port, u8 hopcount) in rio_get_host_deviceid_lock()
528 static int rio_enum_peer(struct rio_net *net, struct rio_mport *port, in rio_enum_peer()
710 static int rio_enum_complete(struct rio_mport *port) in rio_enum_complete()
732 rio_disc_peer(struct rio_net *net, struct rio_mport *port, u16 destid, in rio_disc_peer()
[all …]
Drio-sysfs.c337 struct rio_mport *mport = to_rio_mport(dev); in port_destid_show()
349 struct rio_mport *mport = to_rio_mport(dev); in sys_size_show()
Drio_cm.c156 struct rio_mport *mport;
626 static void riocm_inb_msg_event(struct rio_mport *mport, void *dev_id, in riocm_inb_msg_event()
703 static void riocm_outb_msg_event(struct rio_mport *mport, void *dev_id, in riocm_outb_msg_event()
2108 struct rio_mport *mport = to_rio_mport(dev); in riocm_add_mport()
2178 struct rio_mport *mport = to_rio_mport(dev); in riocm_remove_mport()
/Linux-v4.19/drivers/rapidio/switches/
Didtcps.c25 idtcps_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtcps_route_add_entry()
49 idtcps_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtcps_route_get_entry()
72 idtcps_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, in idtcps_route_clr_table()
94 idtcps_set_domain(struct rio_mport *mport, u16 destid, u8 hopcount, in idtcps_set_domain()
106 idtcps_get_domain(struct rio_mport *mport, u16 destid, u8 hopcount, in idtcps_get_domain()
Dtsi57x.c46 tsi57x_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi57x_route_add_entry()
67 tsi57x_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi57x_route_get_entry()
94 tsi57x_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi57x_route_clr_table()
121 tsi57x_set_domain(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi57x_set_domain()
143 tsi57x_get_domain(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi57x_get_domain()
215 struct rio_mport *mport = rdev->net->hport; in tsi57x_em_handler()
Didt_gen2.c91 idtg2_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg2_route_add_entry()
124 idtg2_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg2_route_get_entry()
156 idtg2_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg2_route_clr_table()
188 idtg2_set_domain(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg2_set_domain()
200 idtg2_get_domain(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg2_get_domain()
Dtsi568.c37 tsi568_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi568_route_add_entry()
59 tsi568_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi568_route_get_entry()
86 tsi568_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, in tsi568_route_clr_table()
Didt_gen3.c41 idtg3_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg3_route_add_entry()
83 idtg3_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg3_route_get_entry()
122 idtg3_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, in idtg3_route_clr_table()
/Linux-v4.19/drivers/rapidio/devices/
Dtsi721.c70 static int tsi721_lcread(struct rio_mport *mport, int index, u32 offset, in tsi721_lcread()
94 static int tsi721_lcwrite(struct rio_mport *mport, int index, u32 offset, in tsi721_lcwrite()
226 static int tsi721_cread_dma(struct rio_mport *mport, int index, u16 destid, in tsi721_cread_dma()
249 static int tsi721_cwrite_dma(struct rio_mport *mport, int index, u16 destid, in tsi721_cwrite_dma()
324 static int tsi721_pw_enable(struct rio_mport *mport, int enable) in tsi721_pw_enable()
354 static int tsi721_dsend(struct rio_mport *mport, int index, in tsi721_dsend()
398 struct rio_mport *mport; in tsi721_db_dpc()
932 static int tsi721_map_outb_win(struct rio_mport *mport, u16 destid, u64 rstart, in tsi721_map_outb_win()
1015 static void tsi721_unmap_outb_win(struct rio_mport *mport, in tsi721_unmap_outb_win()
1099 static int tsi721_rio_map_inb_mem(struct rio_mport *mport, dma_addr_t lstart, in tsi721_rio_map_inb_mem()
[all …]
Drio_mport_cdev.c171 struct rio_mport *mport;
265 struct rio_mport *mport = priv->md->mport; in rio_mport_maint_rd()
310 struct rio_mport *mport = priv->md->mport; in rio_mport_maint_wr()
367 struct rio_mport *mport = md->mport; in rio_mport_create_outbound_mapping()
1201 struct rio_mport *mport = md->mport; in rio_mport_create_inbound_mapping()
1395 static void rio_mport_doorbell_handler(struct rio_mport *mport, void *dev_id, in rio_mport_doorbell_handler()
1515 static int rio_mport_pw_handler(struct rio_mport *mport, void *context, in rio_mport_pw_handler()
1681 struct rio_mport *mport; in rio_mport_add_riodev()
1817 struct rio_mport *mport; in rio_mport_del_riodev()
2141 struct rio_mport *mport = map->md->mport; in mport_release_mapping()
[all …]
Dtsi721_dma.c66 return container_of(ddev, struct rio_mport, dma)->priv; in to_tsi721()
979 struct rio_mport *mport = &priv->mport; in tsi721_register_dma()
1032 struct rio_mport *mport = &priv->mport; in tsi721_unregister_dma()
Dtsi721.h882 struct rio_mport mport;
/Linux-v4.19/drivers/net/
Drionet.c56 struct rio_mport *mport;
230 static void rionet_dbell_event(struct rio_mport *mport, void *dev_id, u16 sid, u16 tid, in rionet_dbell_event()
269 static void rionet_inb_msg_event(struct rio_mport *mport, void *dev_id, int mbox, int slot) in rionet_inb_msg_event()
285 static void rionet_outb_msg_event(struct rio_mport *mport, void *dev_id, int mbox, int slot) in rionet_outb_msg_event()
484 static int rionet_setup_netdev(struct rio_mport *mport, struct net_device *ndev) in rionet_setup_netdev()
669 struct rio_mport *mport = to_rio_mport(dev); in rionet_remove_mport()
/Linux-v4.19/Documentation/rapidio/
Drapidio.txt37 by a rio_mport data structure. This structure contains master port specific
38 resources such as mailboxes and doorbells. The rio_mport also includes a unique
44 independent interface for RapidIO subsystem operations, rio_mport structure