Home
last modified time | relevance | path

Searched refs:cma_dev (Results 1 – 3 of 3) sorted by relevance

/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_cma.c240 void cma_ref_dev(struct cma_device *cma_dev) in cma_ref_dev() argument
242 atomic_inc(&cma_dev->refcount); in cma_ref_dev()
248 struct cma_device *cma_dev; in cma_enum_devices_by_ibdev() local
253 list_for_each_entry(cma_dev, &dev_list, list) in cma_enum_devices_by_ibdev()
254 if (filter(cma_dev->device, cookie)) { in cma_enum_devices_by_ibdev()
255 found_cma_dev = cma_dev; in cma_enum_devices_by_ibdev()
265 int cma_get_default_gid_type(struct cma_device *cma_dev, in cma_get_default_gid_type() argument
268 if (!rdma_is_port_valid(cma_dev->device, port)) in cma_get_default_gid_type()
271 return cma_dev->default_gid_type[port - rdma_start_port(cma_dev->device)]; in cma_get_default_gid_type()
274 int cma_set_default_gid_type(struct cma_device *cma_dev, in cma_set_default_gid_type() argument
[all …]
H A Dcore_priv.h62 void cma_ref_dev(struct cma_device *cma_dev);
63 void cma_deref_dev(struct cma_device *cma_dev);
67 int cma_get_default_gid_type(struct cma_device *cma_dev,
69 int cma_set_default_gid_type(struct cma_device *cma_dev,
72 struct ib_device *cma_get_ib_dev(struct cma_device *cma_dev);
/freebsd/contrib/ofed/librdmacm/
H A Dcma.c93 struct cma_device *cma_dev; member
264 static int ucma_init_device(struct cma_device *cma_dev) in ucma_init_device() argument
270 if (cma_dev->verbs) in ucma_init_device()
273 cma_dev->verbs = ucma_open_device(cma_dev->guid); in ucma_init_device()
274 if (!cma_dev->verbs) in ucma_init_device()
277 ret = ibv_query_device(cma_dev->verbs, &attr); in ucma_init_device()
283 cma_dev->port = malloc(sizeof(*cma_dev->port) * attr.phys_port_cnt); in ucma_init_device()
284 if (!cma_dev->port) { in ucma_init_device()
290 if (ibv_query_port(cma_dev->verbs, i, &port_attr)) in ucma_init_device()
291 cma_dev->port[i - 1].link_layer = IBV_LINK_LAYER_UNSPECIFIED; in ucma_init_device()
[all …]