Lines Matching refs:cma_dev_cnt
160 static int cma_dev_cnt; variable
169 if (cma_dev_cnt) { in ucma_cleanup()
170 while (cma_dev_cnt) in ucma_cleanup()
171 ibv_close_device(cma_dev_array[--cma_dev_cnt].verbs); in ucma_cleanup()
174 cma_dev_cnt = 0; in ucma_cleanup()
217 if (cma_dev_cnt) { in ucma_init()
262 cma_dev_cnt = dev_cnt; in ucma_init()
283 if (!cma_dev_cnt && ucma_init()) in rdma_get_devices()
286 devs = malloc(sizeof *devs * (cma_dev_cnt + 1)); in rdma_get_devices()
290 for (i = 0; i < cma_dev_cnt; i++) in rdma_get_devices()
295 *num_devices = devs ? cma_dev_cnt : 0; in rdma_get_devices()
313 if (!cma_dev_cnt && ucma_init()) in rdma_create_event_channel()
342 for (i = 0; i < cma_dev_cnt; i++) { in ucma_get_device()
397 ret = cma_dev_cnt ? 0 : ucma_init(); in rdma_create_id()
1304 ret = cma_dev_cnt ? 0 : ucma_init(); in rdma_get_cm_event()