Lines Matching defs:cma_dev
131 struct cma_device *cma_dev;
212 struct cma_device *cma_dev;
233 cma_dev_array = malloc(sizeof *cma_dev * dev_cnt);
240 cma_dev = &cma_dev_array[i];
242 cma_dev->guid = ibv_get_device_guid(dev_list[i]);
243 cma_dev->verbs = ibv_open_device(dev_list[i]);
244 if (!cma_dev->verbs) {
251 ret = ibv_query_device(cma_dev->verbs, &attr);
257 cma_dev->port_cnt = attr.phys_port_cnt;
258 cma_dev->max_initiator_depth = (uint8_t) attr.max_qp_init_rd_atom;
259 cma_dev->max_responder_resources = (uint8_t) attr.max_qp_rd_atom;
339 struct cma_device *cma_dev;
343 cma_dev = &cma_dev_array[i];
344 if (cma_dev->guid == guid) {
345 id_priv->cma_dev = cma_dev;
346 id_priv->id.verbs = cma_dev->verbs;
516 if (!id_priv->cma_dev && resp->node_guid) {
690 static int ucma_find_pkey(struct cma_device *cma_dev, uint8_t port_num,
697 ret = ibv_query_pkey(cma_dev->verbs, port_num, i, &chk_pkey);
711 ret = ucma_find_pkey(id_priv->cma_dev, id_priv->id.port_num,
746 ret = ucma_find_pkey(id_priv->cma_dev, id_priv->id.port_num,
839 id_priv->cma_dev->max_responder_resources) ||
841 id_priv->cma_dev->max_initiator_depth))