Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/net/ethernet/qlogic/qed/
H A Dqed_roce.c135 qed_bmap_release_id(p_hwfn, &p_hwfn->p_rdma_info->cid_map, cid); in qed_roce_free_cid_pair()
136 qed_bmap_release_id(p_hwfn, &p_hwfn->p_rdma_info->cid_map, cid + 1); in qed_roce_free_cid_pair()
148 rc = qed_rdma_bmap_alloc_id(p_hwfn, &p_rdma_info->cid_map, in qed_roce_alloc_cid()
155 rc = qed_rdma_bmap_alloc_id(p_hwfn, &p_rdma_info->cid_map, in qed_roce_alloc_cid()
190 qed_bmap_release_id(p_hwfn, &p_rdma_info->cid_map, responder_icid); in qed_roce_alloc_cid()
191 qed_bmap_release_id(p_hwfn, &p_rdma_info->cid_map, requester_icid); in qed_roce_alloc_cid()
1098 qed_bmap_release_id(p_hwfn, &p_rdma_info->cid_map, cid); in qed_roce_free_real_icid()
1099 qed_bmap_release_id(p_hwfn, &p_rdma_info->cid_map, xcid); in qed_roce_free_real_icid()
H A Dqed_cxt.c1039 kfree(p_mngr->acquired[type].cid_map); in qed_cid_map_free()
1044 kfree(p_mngr->acquired_vf[type][vf].cid_map); in qed_cid_map_free()
1065 p_map->cid_map = kzalloc(size, GFP_KERNEL); in qed_cid_map_alloc_single()
1066 if (!p_map->cid_map) in qed_cid_map_alloc_single()
1232 memset(p_map->cid_map, 0, len); in qed_cxt_mngr_setup()
1244 memset(p_map->cid_map, 0, len); in qed_cxt_mngr_setup()
1833 if (!p_map->cid_map) { in _qed_cxt_acquire_cid()
1838 rel_cid = find_first_zero_bit(p_map->cid_map, p_map->max_count); in _qed_cxt_acquire_cid()
1845 __set_bit(rel_cid, p_map->cid_map); in _qed_cxt_acquire_cid()
1878 if (!((*pp_map)->cid_map)) in qed_cxt_test_cid_acquired()
[all …]
H A Dqed_rdma.h68 struct qed_bmap cid_map; member
H A Dqed_cxt.h287 unsigned long *cid_map; member
H A Dqed_rdma.c241 rc = qed_rdma_bmap_alloc(p_hwfn, &p_rdma_info->cid_map, num_cons, in qed_rdma_alloc()
297 kfree(p_rdma_info->cid_map.bitmap); in qed_rdma_alloc()
373 qed_rdma_bmap_free(p_hwfn, &p_hwfn->p_rdma_info->cid_map, 1); in qed_rdma_resc_free()
1886 if (!p_hwfn->p_rdma_info->cid_map.bitmap) in qed_rdma_allocated_qps()
1889 result = !qed_bmap_is_empty(&p_hwfn->p_rdma_info->cid_map); in qed_rdma_allocated_qps()
H A Dqed_iwarp.c104 qed_bmap_release_id(p_hwfn, &p_hwfn->p_rdma_info->cid_map, cid); in qed_iwarp_cid_cleaned()
127 rc = qed_rdma_bmap_alloc_id(p_hwfn, &p_hwfn->p_rdma_info->cid_map, cid); in qed_iwarp_alloc_cid()
1341 qed_bmap_release_id(p_hwfn, &p_hwfn->p_rdma_info->cid_map, i); in qed_iwarp_wait_for_all_cids()
1345 &p_hwfn->p_rdma_info->cid_map); in qed_iwarp_wait_for_all_cids()
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/bnxt_re/
H A Dmain.c1104 u64 *cid_map) in bnxt_re_query_hwrm_pri2cos() argument
1115 if (!cid_map) in bnxt_re_query_hwrm_pri2cos()
1139 tmp_map = (u8 *)cid_map; in bnxt_re_query_hwrm_pri2cos()
1238 static void bnxt_re_parse_cid_map(u8 prio_map, u8 *cid_map, u16 *cosq) in bnxt_re_parse_cid_map() argument
1245 cosq[id] = cid_map[prio]; in bnxt_re_parse_cid_map()
1256 u64 cid_map; in bnxt_re_setup_qos() local
1266 rc = bnxt_re_query_hwrm_pri2cos(rdev, 0, &cid_map); in bnxt_re_setup_qos()
1272 bnxt_re_parse_cid_map(prio_map, (u8 *)&cid_map, rdev->cosq); in bnxt_re_setup_qos()