Home
last modified time | relevance | path

Searched refs:cid_map (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/qlogic/qed/
Dqed_roce.c158 qed_bmap_release_id(p_hwfn, &p_hwfn->p_rdma_info->cid_map, cid); in qed_roce_free_cid_pair()
159 qed_bmap_release_id(p_hwfn, &p_hwfn->p_rdma_info->cid_map, cid + 1); in qed_roce_free_cid_pair()
171 rc = qed_rdma_bmap_alloc_id(p_hwfn, &p_rdma_info->cid_map, in qed_roce_alloc_cid()
178 rc = qed_rdma_bmap_alloc_id(p_hwfn, &p_rdma_info->cid_map, in qed_roce_alloc_cid()
213 qed_bmap_release_id(p_hwfn, &p_rdma_info->cid_map, responder_icid); in qed_roce_alloc_cid()
214 qed_bmap_release_id(p_hwfn, &p_rdma_info->cid_map, requester_icid); in qed_roce_alloc_cid()
1125 qed_bmap_release_id(p_hwfn, &p_rdma_info->cid_map, cid); in qed_roce_free_real_icid()
1126 qed_bmap_release_id(p_hwfn, &p_rdma_info->cid_map, xcid); in qed_roce_free_real_icid()
Dqed_cxt.c203 unsigned long *cid_map; member
1129 kfree(p_mngr->acquired[type].cid_map); in qed_cid_map_free()
1134 kfree(p_mngr->acquired_vf[type][vf].cid_map); in qed_cid_map_free()
1155 p_map->cid_map = kzalloc(size, GFP_KERNEL); in qed_cid_map_alloc_single()
1156 if (!p_map->cid_map) in qed_cid_map_alloc_single()
1317 memset(p_map->cid_map, 0, len); in qed_cxt_mngr_setup()
1329 memset(p_map->cid_map, 0, len); in qed_cxt_mngr_setup()
1922 if (!p_map->cid_map) { in _qed_cxt_acquire_cid()
1927 rel_cid = find_first_zero_bit(p_map->cid_map, p_map->max_count); in _qed_cxt_acquire_cid()
1934 __set_bit(rel_cid, p_map->cid_map); in _qed_cxt_acquire_cid()
[all …]
Dqed_rdma.h87 struct qed_bmap cid_map; member
Dqed_rdma.c257 rc = qed_rdma_bmap_alloc(p_hwfn, &p_rdma_info->cid_map, num_cons, in qed_rdma_alloc()
298 kfree(p_rdma_info->cid_map.bitmap); in qed_rdma_alloc()
372 qed_rdma_bmap_free(p_hwfn, &p_hwfn->p_rdma_info->cid_map, 1); in qed_rdma_resc_free()
1818 if (!p_hwfn->p_rdma_info->cid_map.bitmap) in qed_rdma_allocated_qps()
1821 result = !qed_bmap_is_empty(&p_hwfn->p_rdma_info->cid_map); in qed_rdma_allocated_qps()
Dqed_iwarp.c130 qed_bmap_release_id(p_hwfn, &p_hwfn->p_rdma_info->cid_map, cid); in qed_iwarp_cid_cleaned()
153 rc = qed_rdma_bmap_alloc_id(p_hwfn, &p_hwfn->p_rdma_info->cid_map, cid); in qed_iwarp_alloc_cid()
1343 qed_bmap_release_id(p_hwfn, &p_hwfn->p_rdma_info->cid_map, i); in qed_iwarp_wait_for_all_cids()
1347 &p_hwfn->p_rdma_info->cid_map); in qed_iwarp_wait_for_all_cids()
/Linux-v5.4/drivers/infiniband/hw/bnxt_re/
Dmain.c1062 u64 *cid_map) in bnxt_re_query_hwrm_pri2cos() argument
1073 if (!cid_map) in bnxt_re_query_hwrm_pri2cos()
1097 tmp_map = (u8 *)cid_map; in bnxt_re_query_hwrm_pri2cos()
1193 static void bnxt_re_parse_cid_map(u8 prio_map, u8 *cid_map, u16 *cosq) in bnxt_re_parse_cid_map() argument
1200 cosq[id] = cid_map[prio]; in bnxt_re_parse_cid_map()
1211 u64 cid_map; in bnxt_re_setup_qos() local
1221 rc = bnxt_re_query_hwrm_pri2cos(rdev, 0, &cid_map); in bnxt_re_setup_qos()
1227 bnxt_re_parse_cid_map(prio_map, (u8 *)&cid_map, rdev->cosq); in bnxt_re_setup_qos()