Lines Matching refs:cur_dev
884 struct cma_device *cma_dev, *cur_dev; in cma_resolve_ib_dev() local
899 list_for_each_entry(cur_dev, &dev_list, list) { in cma_resolve_ib_dev()
900 rdma_for_each_port (cur_dev->device, p) { in cma_resolve_ib_dev()
901 if (!rdma_cap_af_ib(cur_dev->device, p)) in cma_resolve_ib_dev()
904 if (ib_find_cached_pkey(cur_dev->device, p, pkey, &index)) in cma_resolve_ib_dev()
907 if (ib_get_cached_port_state(cur_dev->device, p, &port_state)) in cma_resolve_ib_dev()
910 for (i = 0; i < cur_dev->device->port_data[p].immutable.gid_tbl_len; in cma_resolve_ib_dev()
912 ret = rdma_query_gid(cur_dev->device, p, i, in cma_resolve_ib_dev()
918 cma_dev = cur_dev; in cma_resolve_ib_dev()
927 cma_dev = cur_dev; in cma_resolve_ib_dev()
3386 struct cma_device *cma_dev, *cur_dev; in cma_bind_loopback() local
3395 list_for_each_entry(cur_dev, &dev_list, list) { in cma_bind_loopback()
3397 !rdma_cap_ib_cm(cur_dev->device, 1)) in cma_bind_loopback()
3401 cma_dev = cur_dev; in cma_bind_loopback()
3403 rdma_for_each_port (cur_dev->device, p) { in cma_bind_loopback()
3404 if (!ib_get_cached_port_state(cur_dev->device, p, &port_state) && in cma_bind_loopback()
3406 cma_dev = cur_dev; in cma_bind_loopback()