Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/infiniband/hw/hns/
Dhns_roce_cq.c43 u8 bankid = 0; in get_least_load_bankid_for_cq() local
51 bankid = i; in get_least_load_bankid_for_cq()
55 return bankid; in get_least_load_bankid_for_cq()
62 u8 bankid; in alloc_cqn() local
66 bankid = get_least_load_bankid_for_cq(cq_table->bank); in alloc_cqn()
67 bank = &cq_table->bank[bankid]; in alloc_cqn()
76 hr_cq->cqn = (id << CQ_BANKID_SHIFT) | bankid; in alloc_cqn()
Dhns_roce_qp.c185 u8 bankid = 0; in get_least_load_bankid_for_qp() local
199 bankid = i; in get_least_load_bankid_for_qp()
203 return bankid; in get_least_load_bankid_for_qp()
206 static int alloc_qpn_with_bankid(struct hns_roce_bank *bank, u8 bankid, in alloc_qpn_with_bankid() argument
223 *qpn = (id << 3) | bankid; in alloc_qpn_with_bankid()
232 u8 bankid; in alloc_qpn() local
239 bankid = get_least_load_bankid_for_qp(init_attr, qp_table->bank); in alloc_qpn()
241 ret = alloc_qpn_with_bankid(&qp_table->bank[bankid], bankid, in alloc_qpn()
250 qp_table->bank[bankid].inuse++; in alloc_qpn()
403 u8 bankid; in free_qpn() local
[all …]
/linux-6.6.21/drivers/iommu/
Dmtk_iommu.c306 static int mtk_iommu_hw_init(const struct mtk_iommu_data *data, unsigned int bankid);
530 unsigned int i, portmsk = 0, bankid = 0; in mtk_iommu_get_bank_id() local
533 return bankid; in mtk_iommu_get_bank_id()
543 bankid = i; in mtk_iommu_get_bank_id()
547 return bankid; /* default is 0 */ in mtk_iommu_get_bank_id()
719 unsigned int bankid; in mtk_iommu_attach_device() local
726 bankid = mtk_iommu_get_bank_id(dev, data->plat_data); in mtk_iommu_attach_device()
739 dom->bank = &data->bank[bankid]; in mtk_iommu_attach_device()
744 bank = &data->bank[bankid]; in mtk_iommu_attach_device()
752 ret = mtk_iommu_hw_init(data, bankid); in mtk_iommu_attach_device()
[all …]