Home
last modified time | relevance | path

Searched refs:cid_map (Results 1 - 13 of 13) sorted by relevance

/kernel/linux/linux-5.10/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.c1040 kfree(p_mngr->acquired[type].cid_map); in qed_cid_map_free()
1045 kfree(p_mngr->acquired_vf[type][vf].cid_map); in qed_cid_map_free()
1066 p_map->cid_map = kzalloc(size, GFP_KERNEL); in qed_cid_map_alloc_single()
1067 if (!p_map->cid_map) in qed_cid_map_alloc_single()
1233 memset(p_map->cid_map, 0, len); in qed_cxt_mngr_setup()
1245 memset(p_map->cid_map, 0, len); in qed_cxt_mngr_setup()
1834 if (!p_map->cid_map) { in _qed_cxt_acquire_cid()
1839 rel_cid = find_first_zero_bit(p_map->cid_map, p_map->max_count); in _qed_cxt_acquire_cid()
1846 __set_bit(rel_cid, p_map->cid_map); in _qed_cxt_acquire_cid()
1879 if (!((*pp_map)->cid_map)) in qed_cxt_test_cid_acquired()
[all...]
H A Dqed_cxt.h287 unsigned long *cid_map; member
H A Dqed_rdma.h68 struct qed_bmap 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()
1302 * from HW. In this case we don't expect the cid_map to be in qed_iwarp_wait_cid_map_cleared()
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()
/kernel/linux/linux-6.6/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()
1097 qed_bmap_release_id(p_hwfn, &p_rdma_info->cid_map, cid); in qed_roce_free_real_icid()
1098 qed_bmap_release_id(p_hwfn, &p_rdma_info->cid_map, xcid); in qed_roce_free_real_icid()
H A Dqed_cxt.c1040 bitmap_free(p_mngr->acquired[type].cid_map); in qed_cid_map_free()
1045 bitmap_free(p_mngr->acquired_vf[type][vf].cid_map); in qed_cid_map_free()
1061 p_map->cid_map = bitmap_zalloc(cid_count, GFP_KERNEL); in qed_cid_map_alloc_single()
1062 if (!p_map->cid_map) in qed_cid_map_alloc_single()
1223 bitmap_zero(p_map->cid_map, p_map->max_count); in qed_cxt_mngr_setup()
1231 bitmap_zero(p_map->cid_map, p_map->max_count); in qed_cxt_mngr_setup()
1820 if (!p_map->cid_map) { in _qed_cxt_acquire_cid()
1825 rel_cid = find_first_zero_bit(p_map->cid_map, p_map->max_count); in _qed_cxt_acquire_cid()
1832 __set_bit(rel_cid, p_map->cid_map); in _qed_cxt_acquire_cid()
1865 if (!((*pp_map)->cid_map)) in qed_cxt_test_cid_acquired()
[all...]
H A Dqed_cxt.h299 unsigned long *cid_map; member
H A Dqed_rdma.h68 struct qed_bmap 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()
356 qed_rdma_bmap_free(p_hwfn, &p_hwfn->p_rdma_info->cid_map, 1); in qed_rdma_resc_free()
1859 if (!p_hwfn->p_rdma_info->cid_map.bitmap) in qed_rdma_allocated_qps()
1862 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()
129 rc = qed_rdma_bmap_alloc_id(p_hwfn, &p_hwfn->p_rdma_info->cid_map, cid); in qed_iwarp_alloc_cid()
1304 * from HW. In this case we don't expect the cid_map to be in qed_iwarp_wait_cid_map_cleared()
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()
/kernel/linux/linux-5.10/drivers/infiniband/hw/bnxt_re/
H A Dmain.c1110 u64 *cid_map) in bnxt_re_query_hwrm_pri2cos()
1121 if (!cid_map) in bnxt_re_query_hwrm_pri2cos()
1145 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()
1109 bnxt_re_query_hwrm_pri2cos(struct bnxt_re_dev *rdev, u8 dir, u64 *cid_map) bnxt_re_query_hwrm_pri2cos() argument

Completed in 34 milliseconds