Home
last modified time | relevance | path

Searched refs:scif_dev (Results 1 – 18 of 18) sorted by relevance

/Linux-v5.4/drivers/misc/mic/scif/
Dscif_main.c27 struct scif_dev *scif_dev; variable
34 struct scif_dev *scifdev = in scif_intr_bh_handler()
35 container_of(work, struct scif_dev, intr_bh); in scif_intr_bh_handler()
43 int scif_setup_intr_wq(struct scif_dev *scifdev) in scif_setup_intr_wq()
57 void scif_destroy_intr_wq(struct scif_dev *scifdev) in scif_destroy_intr_wq()
67 struct scif_dev *scifdev = data; in scif_intr_handler()
77 struct scif_dev *scifdev = container_of(work, struct scif_dev, in scif_qp_setup_handler()
112 scif_dev = kcalloc(num_nodes, sizeof(*scif_dev), GFP_KERNEL); in scif_setup_scifdev()
113 if (!scif_dev) in scif_setup_scifdev()
116 struct scif_dev *scifdev = &scif_dev[i]; in scif_setup_scifdev()
[all …]
Dscif_nodeqp.h184 int scif_nodeqp_send(struct scif_dev *scifdev, struct scifmsg *msg);
185 int _scif_nodeqp_send(struct scif_dev *scifdev, struct scifmsg *msg);
186 void scif_nodeqp_intrhandler(struct scif_dev *scifdev, struct scif_qp *qp);
187 int scif_loopb_msg_handler(struct scif_dev *scifdev, struct scif_qp *qp);
188 int scif_setup_qp(struct scif_dev *scifdev);
189 int scif_qp_response(phys_addr_t phys, struct scif_dev *dev);
191 int local_size, struct scif_dev *scifdev);
194 struct scif_dev *scifdev);
195 int scif_setup_qp_connect_response(struct scif_dev *scifdev,
197 int scif_setup_loopback_qp(struct scif_dev *scifdev);
[all …]
Dscif_main.h101 struct scif_dev *loopb_dev;
168 struct scif_dev { struct
202 extern struct scif_dev *scif_dev; argument
219 static inline int scifdev_self(struct scif_dev *dev) in scifdev_self()
235 static inline bool scifdev_is_p2p(struct scif_dev *dev) in scifdev_is_p2p()
240 return dev != &scif_dev[SCIF_MGMT_NODE] && in scifdev_is_p2p()
251 static inline int _scifdev_alive(struct scif_dev *scifdev) in _scifdev_alive()
265 int scif_setup_intr_wq(struct scif_dev *scifdev);
266 void scif_destroy_intr_wq(struct scif_dev *scifdev);
267 void scif_cleanup_scifdev(struct scif_dev *dev);
[all …]
Dscif_rma.h332 void scif_unmap_window(struct scif_dev *remote_dev, struct scif_window *window);
334 int scif_map_window(struct scif_dev *remote_dev,
353 void scif_alloc_req(struct scif_dev *scifdev, struct scifmsg *msg);
354 void scif_alloc_gnt_rej(struct scif_dev *scifdev, struct scifmsg *msg);
355 void scif_free_virt(struct scif_dev *scifdev, struct scifmsg *msg);
356 void scif_recv_reg(struct scif_dev *scifdev, struct scifmsg *msg);
357 void scif_recv_unreg(struct scif_dev *scifdev, struct scifmsg *msg);
358 void scif_recv_reg_ack(struct scif_dev *scifdev, struct scifmsg *msg);
359 void scif_recv_reg_nack(struct scif_dev *scifdev, struct scifmsg *msg);
360 void scif_recv_unreg_ack(struct scif_dev *scifdev, struct scifmsg *msg);
[all …]
Dscif_nodeqp.c97 int local_size, struct scif_dev *scifdev) in scif_setup_qp_connect()
148 struct scif_dev *scifdev) in scif_setup_qp_accept()
221 int scif_setup_qp_connect_response(struct scif_dev *scifdev, in scif_setup_qp_connect_response()
239 scif_dev[scif_info.nodeid].node, scifdev->node); in scif_setup_qp_connect_response()
276 scif_send_msg_intr(struct scif_dev *scifdev) in scif_send_msg_intr()
286 int scif_qp_response(phys_addr_t phys, struct scif_dev *scifdev) in scif_qp_response()
304 void scif_send_exit(struct scif_dev *scifdev) in scif_send_exit()
323 int scif_setup_qp(struct scif_dev *scifdev) in scif_setup_qp()
380 scif_init_p2p_info(struct scif_dev *scifdev, struct scif_dev *peerdev) in scif_init_p2p_info()
430 static void scif_deinit_p2p_info(struct scif_dev *scifdev, in scif_deinit_p2p_info()
[all …]
Dscif_epd.h103 struct scif_dev *remote_dev;
176 void scif_send_acks(struct scif_dev *dev);
184 void scif_cnctreq(struct scif_dev *scifdev, struct scifmsg *msg);
185 void scif_cnctgnt(struct scif_dev *scifdev, struct scifmsg *msg);
186 void scif_cnctgnt_ack(struct scif_dev *scifdev, struct scifmsg *msg);
187 void scif_cnctgnt_nack(struct scif_dev *scifdev, struct scifmsg *msg);
188 void scif_cnctrej(struct scif_dev *scifdev, struct scifmsg *msg);
189 void scif_discnct(struct scif_dev *scifdev, struct scifmsg *msg);
190 void scif_discnt_ack(struct scif_dev *scifdev, struct scifmsg *msg);
191 void scif_clientsend(struct scif_dev *scifdev, struct scifmsg *msg);
[all …]
Dscif_nm.c51 void scif_free_qp(struct scif_dev *scifdev) in scif_free_qp()
64 static void scif_cleanup_qp(struct scif_dev *dev) in scif_cleanup_qp()
81 void scif_send_acks(struct scif_dev *dev) in scif_send_acks()
90 scif_nodeqp_send(&scif_dev[SCIF_MGMT_NODE], &msg); in scif_send_acks()
108 void scif_cleanup_scifdev(struct scif_dev *dev) in scif_cleanup_scifdev()
146 struct scif_dev *scifdev = &scif_dev[node]; in scif_handle_remove_node()
155 struct scif_dev *dev = &scif_dev[node]; in scif_send_rmnode_msg()
177 struct scif_dev *scifdev = &scif_dev[node_id]; in scif_disconnect_node()
223 if ((scif_nodeqp_send(&scif_dev[SCIF_MGMT_NODE], &msg))) in scif_get_node_info()
Dscif_peer_bus.c26 struct scif_dev *scifdev = &scif_dev[sdev->dnode]; in scif_peer_release_dev()
32 static int scif_peer_initialize_device(struct scif_dev *scifdev) in scif_peer_initialize_device()
64 static int scif_peer_add_device(struct scif_dev *scifdev) in scif_peer_add_device()
105 struct scif_dev *scifdev = container_of(work, struct scif_dev, in scif_add_peer_device()
123 void scif_peer_register_device(struct scif_dev *scifdev) in scif_peer_register_device()
136 int scif_peer_unregister_device(struct scif_dev *scifdev) in scif_peer_unregister_device()
Dscif_map.h16 struct scif_dev *scifdev, size_t size, in scif_alloc_coherent()
36 struct scif_dev *scifdev, size_t size) in scif_free_coherent()
50 void *local, struct scif_dev *scifdev, size_t size) in scif_map_single()
70 scif_unmap_single(dma_addr_t local, struct scif_dev *scifdev, in scif_unmap_single()
82 scif_ioremap(dma_addr_t phys, size_t size, struct scif_dev *scifdev) in scif_ioremap()
96 scif_iounmap(void *virt, size_t len, struct scif_dev *scifdev) in scif_iounmap()
107 struct scif_dev *scifdev) in scif_map_page()
Dscif_epd.c119 void scif_cnctreq(struct scif_dev *scifdev, struct scifmsg *msg) in scif_cnctreq()
153 scif_nodeqp_send(&scif_dev[msg->src.node], msg); in scif_cnctreq()
165 void scif_cnctgnt(struct scif_dev *scifdev, struct scifmsg *msg) in scif_cnctgnt()
190 void scif_cnctgnt_ack(struct scif_dev *scifdev, struct scifmsg *msg) in scif_cnctgnt_ack()
212 void scif_cnctgnt_nack(struct scif_dev *scifdev, struct scifmsg *msg) in scif_cnctgnt_nack()
229 void scif_cnctrej(struct scif_dev *scifdev, struct scifmsg *msg) in scif_cnctrej()
254 void scif_discnct(struct scif_dev *scifdev, struct scifmsg *msg) in scif_discnct()
299 scif_nodeqp_send(&scif_dev[msg->src.node], msg); in scif_discnct()
308 void scif_discnt_ack(struct scif_dev *scifdev, struct scifmsg *msg) in scif_discnt_ack()
324 void scif_clientsend(struct scif_dev *scifdev, struct scifmsg *msg) in scif_clientsend()
[all …]
Dscif_peer_bus.h16 struct scif_dev;
19 void scif_peer_register_device(struct scif_dev *sdev);
20 int scif_peer_unregister_device(struct scif_dev *scifdev);
Dscif_debugfs.c26 if (!scif_dev) in scif_dev_show()
32 seq_printf(s, "%-16d\t%-16s\n", scif_dev[node].node, in scif_dev_show()
33 _scifdev_alive(&scif_dev[node]) ? in scif_dev_show()
38 DEFINE_SHOW_ATTRIBUTE(scif_dev);
Dscif_rma.c225 void scif_unmap_window(struct scif_dev *remote_dev, struct scif_window *window) in scif_unmap_window()
350 static int scif_create_remote_lookup(struct scif_dev *remote_dev, in scif_create_remote_lookup()
421 static void scif_destroy_remote_lookup(struct scif_dev *remote_dev, in scif_destroy_remote_lookup()
464 scif_create_remote_window(struct scif_dev *scifdev, int nr_pages) in scif_create_remote_window()
524 static int scif_iommu_map(struct scif_dev *remote_dev, in scif_iommu_map()
574 scif_map_window(struct scif_dev *remote_dev, struct scif_window *window) in scif_map_window()
1041 void scif_alloc_req(struct scif_dev *scifdev, struct scifmsg *msg) in scif_alloc_req()
1076 void scif_alloc_gnt_rej(struct scif_dev *scifdev, struct scifmsg *msg) in scif_alloc_gnt_rej()
1100 void scif_free_virt(struct scif_dev *scifdev, struct scifmsg *msg) in scif_free_virt()
1108 scif_fixup_aper_base(struct scif_dev *dev, struct scif_window *window) in scif_fixup_aper_base()
[all …]
Dscif_fence.c18 void scif_recv_mark(struct scif_dev *scifdev, struct scifmsg *msg) in scif_recv_mark()
40 void scif_recv_mark_resp(struct scif_dev *scifdev, struct scifmsg *msg) in scif_recv_mark_resp()
63 void scif_recv_wait(struct scif_dev *scifdev, struct scifmsg *msg) in scif_recv_wait()
100 void scif_recv_wait_resp(struct scif_dev *scifdev, struct scifmsg *msg) in scif_recv_wait_resp()
121 void scif_recv_sig_local(struct scif_dev *scifdev, struct scifmsg *msg) in scif_recv_sig_local()
142 void scif_recv_sig_remote(struct scif_dev *scifdev, struct scifmsg *msg) in scif_recv_sig_remote()
163 void scif_recv_sig_resp(struct scif_dev *scifdev, struct scifmsg *msg) in scif_recv_sig_resp()
Dscif_api.c284 scif_nodeqp_send(&scif_dev[conreq->msg.src.node], in scif_close()
594 struct scif_dev *remote_dev; in __scif_connect()
600 if (!scif_dev || dst->node > scif_info.maxid) in __scif_connect()
605 remote_dev = &scif_dev[dst->node]; in __scif_connect()
683 ep->remote_dev = &scif_dev[dst->node]; in __scif_connect()
806 cep->remote_dev = &scif_dev[peer->node]; in scif_accept()
909 scif_nodeqp_send(&scif_dev[conreq->msg.src.node], &msg); in scif_accept()
1431 if (_scifdev_alive(&scif_dev[node])) { in scif_get_node_ids()
Dscif_mmap.c22 void scif_recv_munmap(struct scif_dev *scifdev, struct scifmsg *msg) in scif_recv_munmap()
198 struct scif_dev *scifdev = (struct scif_dev *)ep->remote_dev; in scif_get_phys()
471 struct scif_dev *rdev = ep->remote_dev; in scif_rma_list_munmap()
Dscif_dma.c37 struct scif_dev *sdev;
63 struct scif_dev *remote_dev;
79 struct scif_dev *scifdev; in scif_reserve_dma_chan()
87 scifdev = &scif_dev[0]; in scif_reserve_dma_chan()
662 size_t len, struct scif_dev *dev, in ioremap_remote()
1047 struct scif_dev *rdev = work->remote_dev; in scif_rma_list_dma_copy_unaligned()
1385 struct scif_dev *rdev = work->remote_dev; in scif_rma_list_dma_copy_aligned()
1797 struct scif_dev *rdev = ep->remote_dev; in scif_rma_copy()
/Linux-v5.4/drivers/misc/mic/bus/
Dscif_bus.c50 ATTRIBUTE_GROUPS(scif_dev);