| /Linux-v5.4/drivers/misc/mic/scif/ |
| D | scif_epd.c | 12 void scif_cleanup_ep_qp(struct scif_endpt *ep) in scif_cleanup_ep_qp() 40 struct scif_endpt *ep = endpt; in scif_teardown_ep() 56 void scif_add_epd_to_zombie_list(struct scif_endpt *ep, bool eplock_held) in scif_add_epd_to_zombie_list() 70 static struct scif_endpt *scif_find_listen_ep(u16 port) in scif_find_listen_ep() 72 struct scif_endpt *ep = NULL; in scif_find_listen_ep() 77 ep = list_entry(pos, struct scif_endpt, list); in scif_find_listen_ep() 90 struct scif_endpt *ep; in scif_cleanup_zombie_epd() 94 ep = list_entry(pos, struct scif_endpt, list); in scif_cleanup_zombie_epd() 121 struct scif_endpt *ep = NULL; in scif_cnctreq() 167 struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; in scif_cnctgnt() [all …]
|
| D | scif_fd.c | 13 struct scif_endpt *priv = scif_open(); in scif_fdopen() 23 struct scif_endpt *priv = f->private_data; in scif_fdclose() 30 struct scif_endpt *priv = f->private_data; in scif_fdmmap() 37 struct scif_endpt *priv = f->private_data; in scif_fdpoll() 44 struct scif_endpt *ep = f->private_data; in scif_fdflush() 74 struct scif_endpt *priv = f->private_data; in scif_fdioctl() 104 struct scif_endpt *ep = (struct scif_endpt *)priv; in scif_fdioctl() 159 struct scif_endpt *priv = f->private_data; in scif_fdioctl() 160 struct scif_endpt *newep; in scif_fdioctl() 161 struct scif_endpt *lisep; in scif_fdioctl() [all …]
|
| D | scif_fence.c | 20 struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; in scif_recv_mark() 42 struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; in scif_recv_mark_resp() 65 struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; in scif_recv_wait() 102 struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; in scif_recv_wait_resp() 123 struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; in scif_recv_sig_local() 144 struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; in scif_recv_sig_remote() 165 struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; in scif_recv_sig_resp() 198 struct scif_endpt *ep = (struct scif_endpt *)epd; in _scif_prog_signal() 296 struct scif_endpt *ep = (struct scif_endpt *)epd; in scif_prog_signal() 341 struct scif_endpt *ep = (struct scif_endpt *)epd; in _scif_fence_wait() [all …]
|
| D | scif_api.c | 44 struct scif_endpt *ep; in scif_open() 83 static struct scif_endpt *scif_disconnect_ep(struct scif_endpt *ep) in scif_disconnect_ep() 86 struct scif_endpt *fep = NULL; in scif_disconnect_ep() 87 struct scif_endpt *tmpep; in scif_disconnect_ep() 109 tmpep = list_entry(pos, struct scif_endpt, list); in scif_disconnect_ep() 126 tmpep = list_entry(pos, struct scif_endpt, list); in scif_disconnect_ep() 156 struct scif_endpt *ep = (struct scif_endpt *)epd; in scif_close() 157 struct scif_endpt *tmpep; in scif_close() 188 tmpep = list_entry(pos, struct scif_endpt, list); in scif_close() 215 struct scif_endpt *aep; in scif_close() [all …]
|
| D | scif_mmap.c | 28 struct scif_endpt *ep; in scif_recv_munmap() 30 ep = (struct scif_endpt *)recv_window->ep; in scif_recv_munmap() 66 static void __scif_zap_mmaps(struct scif_endpt *ep) in __scif_zap_mmaps() 92 struct scif_endpt *ep; in _scif_zap_mmaps() 97 ep = list_entry(item, struct scif_endpt, list); in _scif_zap_mmaps() 122 static void __scif_cleanup_rma_for_zombies(struct scif_endpt *ep) in __scif_cleanup_rma_for_zombies() 146 struct scif_endpt *ep; in scif_cleanup_rma_for_zombies() 151 ep = list_entry(item, struct scif_endpt, list); in scif_cleanup_rma_for_zombies() 160 static int scif_insert_vma(struct scif_endpt *ep, struct vm_area_struct *vma) in scif_insert_vma() 179 static void scif_delete_vma(struct scif_endpt *ep, struct vm_area_struct *vma) in scif_delete_vma() [all …]
|
| D | scif_epd.h | 96 struct scif_endpt { struct 119 struct scif_endpt *listenep; argument 130 static inline int scifdev_alive(struct scif_endpt *ep) in scifdev_alive() argument 142 static inline int scif_verify_epd(struct scif_endpt *ep) in scif_verify_epd() 173 void scif_cleanup_ep_qp(struct scif_endpt *ep); 174 void scif_add_epd_to_zombie_list(struct scif_endpt *ep, bool eplock_held); 197 struct scif_endpt *ep);
|
| D | scif_rma.h | 205 struct scif_endpt *ep; 218 struct scif_endpt *ep; 307 struct scif_endpt *ep; 318 void scif_rma_ep_init(struct scif_endpt *ep); 320 int scif_rma_ep_can_uninit(struct scif_endpt *ep); 322 int scif_get_window_offset(struct scif_endpt *ep, int flags, 325 void scif_free_window_offset(struct scif_endpt *ep, 328 struct scif_window *scif_create_window(struct scif_endpt *ep, int nr_pages, 331 int scif_destroy_window(struct scif_endpt *ep, struct scif_window *window); 348 int scif_reserve_dma_chan(struct scif_endpt *ep);
|
| D | scif_rma.c | 28 void scif_rma_ep_init(struct scif_endpt *ep) in scif_rma_ep_init() 56 int scif_rma_ep_can_uninit(struct scif_endpt *ep) in scif_rma_ep_can_uninit() 139 struct scif_window *scif_create_window(struct scif_endpt *ep, int nr_pages, in scif_create_window() 184 static void scif_destroy_incomplete_window(struct scif_endpt *ep, in scif_destroy_incomplete_window() 303 int scif_destroy_window(struct scif_endpt *ep, struct scif_window *window) in scif_destroy_window() 627 static int scif_send_scif_unregister(struct scif_endpt *ep, in scif_send_scif_unregister() 648 struct scif_endpt *ep = (struct scif_endpt *)window->ep; in scif_unregister_window() 740 static int scif_send_alloc_request(struct scif_endpt *ep, in scif_send_alloc_request() 765 static int scif_prep_remote_window(struct scif_endpt *ep, in scif_prep_remote_window() 942 static int scif_send_scif_register(struct scif_endpt *ep, in scif_send_scif_register() [all …]
|
| D | scif_rma_list.c | 76 int scif_query_tcw(struct scif_endpt *ep, struct scif_rma_req *req) in scif_query_tcw() 197 struct scif_endpt *ep = (struct scif_endpt *)window->ep; in scif_rma_list_unregister() 229 struct scif_endpt *ep = (struct scif_endpt *)epd; in scif_unmap_all_windows() 251 struct scif_endpt *ep = (struct scif_endpt *)epd; in scif_unregister_all_windows()
|
| D | scif_dma.c | 76 int scif_reserve_dma_chan(struct scif_endpt *ep) in scif_reserve_dma_chan() 135 struct scif_endpt *ep = mmn->ep; in scif_rma_destroy_tcw() 142 static void scif_rma_destroy_tcw_ep(struct scif_endpt *ep) in scif_rma_destroy_tcw_ep() 153 static void __scif_rma_destroy_tcw_ep(struct scif_endpt *ep) in __scif_rma_destroy_tcw_ep() 166 static bool scif_rma_tc_can_cache(struct scif_endpt *ep, size_t cur_bytes) in scif_rma_tc_can_cache() 220 static void scif_ep_unregister_mmu_notifier(struct scif_endpt *ep) in scif_ep_unregister_mmu_notifier() 237 struct mm_struct *mm, struct scif_endpt *ep) in scif_init_mmu_notifier() 258 scif_add_mmu_notifier(struct mm_struct *mm, struct scif_endpt *ep) in scif_add_mmu_notifier() 282 struct scif_endpt *ep; in scif_mmu_notif_handler() 287 ep = list_entry(pos, struct scif_endpt, mmu_list); in scif_mmu_notif_handler() [all …]
|
| D | scif_nm.c | 20 struct scif_endpt *ep; in scif_invalidate_ep() 26 ep = list_entry(pos, struct scif_endpt, list); in scif_invalidate_ep() 35 ep = list_entry(pos, struct scif_endpt, list); in scif_invalidate_ep()
|
| D | scif_debugfs.c | 84 struct scif_endpt *ep; in scif_rma_show() 89 ep = list_entry(pos, struct scif_endpt, list); in scif_rma_show()
|
| D | scif_rma_list.h | 41 int scif_query_tcw(struct scif_endpt *ep, struct scif_rma_req *request);
|
| /Linux-v5.4/include/linux/ |
| D | scif.h | 95 typedef struct scif_endpt *scif_epd_t;
|