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

/linux-4.4.14/drivers/misc/mic/scif/
H A Dscif_main.c36 struct scif_dev *scif_dev; variable in typeref:struct:scif_dev
43 struct scif_dev *scifdev = scif_intr_bh_handler()
44 container_of(work, struct scif_dev, intr_bh); scif_intr_bh_handler()
52 int scif_setup_intr_wq(struct scif_dev *scifdev) scif_setup_intr_wq()
66 void scif_destroy_intr_wq(struct scif_dev *scifdev) scif_destroy_intr_wq()
76 struct scif_dev *scifdev = data; scif_intr_handler()
86 struct scif_dev *scifdev = container_of(work, struct scif_dev, scif_qp_setup_handler()
121 scif_dev = kcalloc(num_nodes, sizeof(*scif_dev), GFP_KERNEL); scif_setup_scifdev()
122 if (!scif_dev) scif_setup_scifdev()
125 struct scif_dev *scifdev = &scif_dev[i]; scif_setup_scifdev()
144 kfree(scif_dev); scif_destroy_scifdev()
149 struct scif_dev *scifdev = &scif_dev[sdev->dnode]; scif_probe()
156 struct scif_dev *loopb_dev = &scif_dev[sdev->snode]; scif_probe()
198 scif_destroy_loopback_qp(&scif_dev[sdev->snode]); scif_probe()
203 void scif_stop(struct scif_dev *scifdev) scif_stop()
205 struct scif_dev *dev; scif_stop()
209 dev = &scif_dev[i]; scif_stop()
218 struct scif_dev *scifdev = &scif_dev[sdev->dnode]; scif_remove()
238 scif_destroy_loopback_qp(&scif_dev[sdev->snode]); scif_remove()
H A Dscif_nm.c60 void scif_free_qp(struct scif_dev *scifdev) scif_free_qp()
73 static void scif_cleanup_qp(struct scif_dev *dev) scif_cleanup_qp()
90 void scif_send_acks(struct scif_dev *dev) scif_send_acks()
99 scif_nodeqp_send(&scif_dev[SCIF_MGMT_NODE], &msg); scif_send_acks()
117 void scif_cleanup_scifdev(struct scif_dev *dev) scif_cleanup_scifdev()
155 struct scif_dev *scifdev = &scif_dev[node]; scif_handle_remove_node()
164 struct scif_dev *dev = &scif_dev[node]; scif_send_rmnode_msg()
186 struct scif_dev *scifdev = &scif_dev[node_id]; scif_disconnect_node()
232 if ((scif_nodeqp_send(&scif_dev[SCIF_MGMT_NODE], &msg))) scif_get_node_info()
H A Dscif_peer_bus.h24 struct scif_dev;
27 void scif_peer_register_device(struct scif_dev *sdev);
28 int scif_peer_unregister_device(struct scif_dev *scifdev);
H A Dscif_map.h25 struct scif_dev *scifdev, size_t size, scif_alloc_coherent()
45 struct scif_dev *scifdev, size_t size) scif_free_coherent()
59 void *local, struct scif_dev *scifdev, size_t size) scif_map_single()
79 scif_unmap_single(dma_addr_t local, struct scif_dev *scifdev, scif_unmap_single()
91 scif_ioremap(dma_addr_t phys, size_t size, struct scif_dev *scifdev) scif_ioremap()
105 scif_iounmap(void *virt, size_t len, struct scif_dev *scifdev) scif_iounmap()
116 struct scif_dev *scifdev) scif_map_page()
H A Dscif_peer_bus.c34 struct scif_dev *scifdev = &scif_dev[sdev->dnode]; scif_peer_release_dev()
40 static int scif_peer_initialize_device(struct scif_dev *scifdev) scif_peer_initialize_device()
72 static int scif_peer_add_device(struct scif_dev *scifdev) scif_peer_add_device()
113 struct scif_dev *scifdev = container_of(work, struct scif_dev, scif_add_peer_device()
131 void scif_peer_register_device(struct scif_dev *scifdev) scif_peer_register_device()
144 int scif_peer_unregister_device(struct scif_dev *scifdev) scif_peer_unregister_device()
H A Dscif_nodeqp.c106 int local_size, struct scif_dev *scifdev) scif_setup_qp_connect()
157 struct scif_dev *scifdev) scif_setup_qp_accept()
230 int scif_setup_qp_connect_response(struct scif_dev *scifdev, scif_setup_qp_connect_response()
248 scif_dev[scif_info.nodeid].node, scifdev->node); scif_setup_qp_connect_response()
285 scif_send_msg_intr(struct scif_dev *scifdev) scif_send_msg_intr()
295 int scif_qp_response(phys_addr_t phys, struct scif_dev *scifdev) scif_qp_response()
313 void scif_send_exit(struct scif_dev *scifdev) scif_send_exit()
332 int scif_setup_qp(struct scif_dev *scifdev) scif_setup_qp()
389 scif_init_p2p_info(struct scif_dev *scifdev, struct scif_dev *peerdev) scif_init_p2p_info()
439 static void scif_deinit_p2p_info(struct scif_dev *scifdev, scif_deinit_p2p_info()
460 static void scif_node_connect(struct scif_dev *scifdev, int dst) scif_node_connect()
462 struct scif_dev *dev_j = scifdev; scif_node_connect()
463 struct scif_dev *dev_i = NULL; scif_node_connect()
475 dev_i = &scif_dev[dst]; scif_node_connect()
544 if (!_scifdev_alive(&scif_dev[i])) scif_p2p_setup()
549 struct scif_dev *scifdev = &scif_dev[i]; scif_p2p_setup()
601 scif_display_message(struct scif_dev *scifdev, struct scifmsg *msg, scif_display_message()
618 int _scif_nodeqp_send(struct scif_dev *scifdev, struct scifmsg *msg) _scif_nodeqp_send()
666 int scif_nodeqp_send(struct scif_dev *scifdev, struct scifmsg *msg) scif_nodeqp_send()
711 scif_init(struct scif_dev *scifdev, struct scifmsg *msg) scif_init()
738 scif_exit(struct scif_dev *scifdev, struct scifmsg *unused) scif_exit()
756 scif_exit_ack(struct scif_dev *scifdev, struct scifmsg *unused) scif_exit_ack()
777 scif_node_add(struct scif_dev *scifdev, struct scifmsg *msg) scif_node_add()
779 struct scif_dev *newdev; scif_node_add()
790 newdev = &scif_dev[msg->src.node]; scif_node_add()
792 newdev->sdev = scif_dev[SCIF_MGMT_NODE].sdev; scif_node_add()
837 scif_nodeqp_send(&scif_dev[SCIF_MGMT_NODE], msg); scif_node_add()
852 scif_nodeqp_send(&scif_dev[SCIF_MGMT_NODE], msg); scif_node_add()
859 struct scif_dev *peerdev = container_of(work, struct scif_dev, scif_poll_qp_state()
895 scif_node_add_ack(struct scif_dev *scifdev, struct scifmsg *msg) scif_node_add_ack()
897 struct scif_dev *peerdev; scif_node_add_ack()
899 struct scif_dev *dst_dev = &scif_dev[msg->dst.node]; scif_node_add_ack()
920 peerdev = &scif_dev[msg->src.node]; scif_node_add_ack()
921 peerdev->sdev = scif_dev[SCIF_MGMT_NODE].sdev; scif_node_add_ack()
947 scif_node_add_nack(struct scif_dev *scifdev, struct scifmsg *msg) scif_node_add_nack()
950 struct scif_dev *dst_dev = &scif_dev[msg->dst.node]; scif_node_add_nack()
965 scif_node_remove(struct scif_dev *scifdev, struct scifmsg *msg) scif_node_remove()
968 struct scif_dev *scdev = &scif_dev[node]; scif_node_remove()
981 scif_node_remove_ack(struct scif_dev *scifdev, struct scifmsg *msg) scif_node_remove_ack()
983 struct scif_dev *sdev = &scif_dev[msg->payload[0]]; scif_node_remove_ack()
996 scif_get_node_info_resp(struct scif_dev *scifdev, struct scifmsg *msg) scif_get_node_info_resp()
1018 scif_msg_unknown(struct scif_dev *scifdev, struct scifmsg *msg) scif_msg_unknown()
1027 (struct scif_dev *, struct scifmsg *msg) = {
1082 scif_nodeqp_msg_handler(struct scif_dev *scifdev, scif_nodeqp_msg_handler()
1107 void scif_nodeqp_intrhandler(struct scif_dev *scifdev, struct scif_qp *qp) scif_nodeqp_intrhandler()
1139 struct scif_dev *scifdev = scif_info.loopb_dev; scif_loopb_wq_handler()
1194 scif_loopb_msg_handler(struct scif_dev *scifdev, struct scif_qp *qp) scif_loopb_msg_handler()
1225 int scif_setup_loopback_qp(struct scif_dev *scifdev) scif_setup_loopback_qp()
1297 int scif_destroy_loopback_qp(struct scif_dev *scifdev) scif_destroy_loopback_qp()
1309 void scif_destroy_p2p(struct scif_dev *scifdev) scif_destroy_p2p()
1311 struct scif_dev *peer_dev; scif_destroy_p2p()
1334 peer_dev = &scif_dev[bd]; scif_destroy_p2p()
H A Dscif_epd.h112 struct scif_dev *remote_dev;
186 void scif_send_acks(struct scif_dev *dev);
194 void scif_cnctreq(struct scif_dev *scifdev, struct scifmsg *msg);
195 void scif_cnctgnt(struct scif_dev *scifdev, struct scifmsg *msg);
196 void scif_cnctgnt_ack(struct scif_dev *scifdev, struct scifmsg *msg);
197 void scif_cnctgnt_nack(struct scif_dev *scifdev, struct scifmsg *msg);
198 void scif_cnctrej(struct scif_dev *scifdev, struct scifmsg *msg);
199 void scif_discnct(struct scif_dev *scifdev, struct scifmsg *msg);
200 void scif_discnt_ack(struct scif_dev *scifdev, struct scifmsg *msg);
201 void scif_clientsend(struct scif_dev *scifdev, struct scifmsg *msg);
202 void scif_clientrcvd(struct scif_dev *scifdev, struct scifmsg *msg);
H A Dscif_main.h110 struct scif_dev *loopb_dev;
148 * struct scif_dev - SCIF remote device specific fields
177 struct scif_dev { struct
211 extern struct scif_dev *scif_dev;
228 static inline int scifdev_self(struct scif_dev *dev) scifdev_self()
244 static inline bool scifdev_is_p2p(struct scif_dev *dev) scifdev_is_p2p()
249 return dev != &scif_dev[SCIF_MGMT_NODE] && scifdev_is_p2p()
260 static inline int _scifdev_alive(struct scif_dev *scifdev) _scifdev_alive()
274 int scif_setup_intr_wq(struct scif_dev *scifdev);
275 void scif_destroy_intr_wq(struct scif_dev *scifdev);
276 void scif_cleanup_scifdev(struct scif_dev *dev);
279 void scif_free_qp(struct scif_dev *dev);
281 void scif_stop(struct scif_dev *scifdev);
H A 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);
198 int scif_destroy_loopback_qp(struct scif_dev *scifdev);
200 void scif_destroy_p2p(struct scif_dev *scifdev);
201 void scif_send_exit(struct scif_dev *scifdev); scif_get_peer_dev()
202 static inline struct device *scif_get_peer_dev(struct scif_dev *scifdev) scif_get_peer_dev()
H A Dscif_epd.c128 void scif_cnctreq(struct scif_dev *scifdev, struct scifmsg *msg) scif_cnctreq()
162 scif_nodeqp_send(&scif_dev[msg->src.node], msg); scif_cnctreq()
174 void scif_cnctgnt(struct scif_dev *scifdev, struct scifmsg *msg) scif_cnctgnt()
199 void scif_cnctgnt_ack(struct scif_dev *scifdev, struct scifmsg *msg) scif_cnctgnt_ack()
221 void scif_cnctgnt_nack(struct scif_dev *scifdev, struct scifmsg *msg) scif_cnctgnt_nack()
238 void scif_cnctrej(struct scif_dev *scifdev, struct scifmsg *msg) scif_cnctrej()
263 void scif_discnct(struct scif_dev *scifdev, struct scifmsg *msg) scif_discnct()
308 scif_nodeqp_send(&scif_dev[msg->src.node], msg); scif_discnct()
317 void scif_discnt_ack(struct scif_dev *scifdev, struct scifmsg *msg) scif_discnt_ack()
333 void scif_clientsend(struct scif_dev *scifdev, struct scifmsg *msg) scif_clientsend()
349 void scif_clientrcvd(struct scif_dev *scifdev, struct scifmsg *msg) scif_clientrcvd()
H A Dscif_rma.h319 void scif_unmap_window(struct scif_dev *remote_dev, struct scif_window *window);
321 int scif_map_window(struct scif_dev *remote_dev,
340 void scif_alloc_req(struct scif_dev *scifdev, struct scifmsg *msg);
341 void scif_alloc_gnt_rej(struct scif_dev *scifdev, struct scifmsg *msg);
342 void scif_free_virt(struct scif_dev *scifdev, struct scifmsg *msg);
343 void scif_recv_reg(struct scif_dev *scifdev, struct scifmsg *msg);
344 void scif_recv_unreg(struct scif_dev *scifdev, struct scifmsg *msg);
345 void scif_recv_reg_ack(struct scif_dev *scifdev, struct scifmsg *msg);
346 void scif_recv_reg_nack(struct scif_dev *scifdev, struct scifmsg *msg);
347 void scif_recv_unreg_ack(struct scif_dev *scifdev, struct scifmsg *msg);
348 void scif_recv_unreg_nack(struct scif_dev *scifdev, struct scifmsg *msg);
349 void scif_recv_munmap(struct scif_dev *scifdev, struct scifmsg *msg);
350 void scif_recv_mark(struct scif_dev *scifdev, struct scifmsg *msg);
351 void scif_recv_mark_resp(struct scif_dev *scifdev, struct scifmsg *msg);
352 void scif_recv_wait(struct scif_dev *scifdev, struct scifmsg *msg);
353 void scif_recv_wait_resp(struct scif_dev *scifdev, struct scifmsg *msg);
354 void scif_recv_sig_local(struct scif_dev *scifdev, struct scifmsg *msg);
355 void scif_recv_sig_remote(struct scif_dev *scifdev, struct scifmsg *msg);
356 void scif_recv_sig_resp(struct scif_dev *scifdev, struct scifmsg *msg);
H A Dscif_debugfs.c35 if (!scif_dev) scif_dev_test()
41 seq_printf(s, "%-16d\t%-16s\n", scif_dev[node].node, scif_dev_test()
42 _scifdev_alive(&scif_dev[node]) ? scif_dev_test()
153 debugfs_create_file("scif_dev", 0444, scif_dbg, NULL, &scif_dev_ops); scif_init_debugfs()
H A Dscif_rma.c232 void scif_unmap_window(struct scif_dev *remote_dev, struct scif_window *window) scif_unmap_window()
366 static int scif_create_remote_lookup(struct scif_dev *remote_dev, scif_create_remote_lookup()
437 static void scif_destroy_remote_lookup(struct scif_dev *remote_dev, scif_destroy_remote_lookup()
480 scif_create_remote_window(struct scif_dev *scifdev, int nr_pages) scif_create_remote_window()
540 static int scif_iommu_map(struct scif_dev *remote_dev, scif_iommu_map()
590 scif_map_window(struct scif_dev *remote_dev, struct scif_window *window) scif_map_window()
1057 void scif_alloc_req(struct scif_dev *scifdev, struct scifmsg *msg) scif_alloc_req()
1092 void scif_alloc_gnt_rej(struct scif_dev *scifdev, struct scifmsg *msg) scif_alloc_gnt_rej()
1116 void scif_free_virt(struct scif_dev *scifdev, struct scifmsg *msg) scif_free_virt()
1124 scif_fixup_aper_base(struct scif_dev *dev, struct scif_window *window) scif_fixup_aper_base()
1154 void scif_recv_reg(struct scif_dev *scifdev, struct scifmsg *msg) scif_recv_reg()
1190 void scif_recv_unreg(struct scif_dev *scifdev, struct scifmsg *msg) scif_recv_unreg()
1255 void scif_recv_reg_ack(struct scif_dev *scifdev, struct scifmsg *msg) scif_recv_reg_ack()
1274 void scif_recv_reg_nack(struct scif_dev *scifdev, struct scifmsg *msg) scif_recv_reg_nack()
1292 void scif_recv_unreg_ack(struct scif_dev *scifdev, struct scifmsg *msg) scif_recv_unreg_ack()
1311 void scif_recv_unreg_nack(struct scif_dev *scifdev, struct scifmsg *msg) scif_recv_unreg_nack()
H A Dscif_fence.c27 void scif_recv_mark(struct scif_dev *scifdev, struct scifmsg *msg) scif_recv_mark()
48 void scif_recv_mark_resp(struct scif_dev *scifdev, struct scifmsg *msg) scif_recv_mark_resp()
71 void scif_recv_wait(struct scif_dev *scifdev, struct scifmsg *msg) scif_recv_wait()
108 void scif_recv_wait_resp(struct scif_dev *scifdev, struct scifmsg *msg) scif_recv_wait_resp()
129 void scif_recv_sig_local(struct scif_dev *scifdev, struct scifmsg *msg) scif_recv_sig_local()
150 void scif_recv_sig_remote(struct scif_dev *scifdev, struct scifmsg *msg) scif_recv_sig_remote()
171 void scif_recv_sig_resp(struct scif_dev *scifdev, struct scifmsg *msg) scif_recv_sig_resp()
H A Dscif_mmap.c31 void scif_recv_munmap(struct scif_dev *scifdev, struct scifmsg *msg) scif_recv_munmap()
207 struct scif_dev *scifdev = (struct scif_dev *)ep->remote_dev; scif_get_phys()
480 struct scif_dev *rdev = ep->remote_dev; list_for_each_entry_safe_from()
H A Dscif_api.c292 scif_nodeqp_send(&scif_dev[conreq->msg.src.node], scif_close()
603 struct scif_dev *remote_dev; __scif_connect()
609 if (!scif_dev || dst->node > scif_info.maxid) __scif_connect()
614 remote_dev = &scif_dev[dst->node]; __scif_connect()
693 ep->remote_dev = &scif_dev[dst->node]; __scif_connect()
816 cep->remote_dev = &scif_dev[peer->node]; scif_accept()
919 scif_nodeqp_send(&scif_dev[conreq->msg.src.node], &msg); scif_accept()
1440 if (_scifdev_alive(&scif_dev[node])) { scif_get_node_ids()
H A Dscif_dma.c46 struct scif_dev *sdev;
72 struct scif_dev *remote_dev;
93 struct scif_dev *scifdev; scif_reserve_dma_chan()
101 scifdev = &scif_dev[0]; scif_reserve_dma_chan()
695 size_t len, struct scif_dev *dev, ioremap_remote()
1082 struct scif_dev *rdev = work->remote_dev; scif_rma_list_dma_copy_unaligned()
1420 struct scif_dev *rdev = work->remote_dev; scif_rma_list_dma_copy_aligned()
1837 struct scif_dev *rdev = ep->remote_dev; scif_rma_copy()
/linux-4.4.14/drivers/misc/mic/bus/
H A Dscif_bus.c58 ATTRIBUTE_GROUPS(scif_dev); variable

Completed in 210 milliseconds