Lines Matching refs:cur_dev
913 struct cma_device *cma_dev, *cur_dev; in cma_resolve_ib_dev() local
928 list_for_each_entry(cur_dev, &dev_list, list) { in cma_resolve_ib_dev()
929 rdma_for_each_port (cur_dev->device, p) { in cma_resolve_ib_dev()
930 if (!rdma_cap_af_ib(cur_dev->device, p)) in cma_resolve_ib_dev()
933 if (ib_find_cached_pkey(cur_dev->device, p, pkey, &index)) in cma_resolve_ib_dev()
936 if (ib_get_cached_port_state(cur_dev->device, p, &port_state)) in cma_resolve_ib_dev()
939 for (i = 0; i < cur_dev->device->port_data[p].immutable.gid_tbl_len; in cma_resolve_ib_dev()
941 ret = rdma_query_gid(cur_dev->device, p, i, in cma_resolve_ib_dev()
947 cma_dev = cur_dev; in cma_resolve_ib_dev()
956 cma_dev = cur_dev; in cma_resolve_ib_dev()
3418 struct cma_device *cma_dev, *cur_dev; in cma_bind_loopback() local
3427 list_for_each_entry(cur_dev, &dev_list, list) { in cma_bind_loopback()
3429 !rdma_cap_ib_cm(cur_dev->device, 1)) in cma_bind_loopback()
3433 cma_dev = cur_dev; in cma_bind_loopback()
3435 rdma_for_each_port (cur_dev->device, p) { in cma_bind_loopback()
3436 if (!ib_get_cached_port_state(cur_dev->device, p, &port_state) && in cma_bind_loopback()
3438 cma_dev = cur_dev; in cma_bind_loopback()