Searched refs:larbid (Results 1 – 3 of 3) sorted by relevance
/linux/drivers/memory/ |
H A D | mtk-smi.c | 28 #define SMI_BUS_LARB_SHIFT(larbid) ((larbid) << 1) argument 30 #define F_MMU1_LARB(larbid) (0x1 << SMI_BUS_LARB_SHIFT(larbid)) argument 157 int larbid; member 171 larb->larbid = i; in mtk_smi_larb_bind() 199 m4u_port_id = larb_gen->port_in_larb[larb->larbid]; in mtk_smi_larb_config_port_gen1() 200 larb_port_num = larb_gen->port_in_larb[larb->larbid + 1] in mtk_smi_larb_config_port_gen1() 201 - larb_gen->port_in_larb[larb->larbid]; in mtk_smi_larb_config_port_gen1() 243 const u8 *larbostd = larb->larb_gen->ostd ? larb->larb_gen->ostd[larb->larbid] : NULL; in mtk_smi_larb_config_port_gen2_general() 247 if (BIT(larb->larbid) & larb->larb_gen->larb_direct_to_common_mask) in mtk_smi_larb_config_port_gen2_general() 270 larb->larbid, *larb->mmu, 0, 0, 0, 0, &res); in mtk_smi_larb_config_port_gen2_general()
|
/linux/drivers/iommu/ |
H A D | mtk_iommu_v1.c | 236 unsigned int larbid, portid; in mtk_iommu_v1_config() local 241 larbid = mt2701_m4u_to_larb(fwspec->ids[i]); in mtk_iommu_v1_config() 243 larb_mmu = &data->larb_imu[larbid]; in mtk_iommu_v1_config() 451 int err, idx = 0, larbid, larbidx; in mtk_iommu_v1_probe_device() local 481 larbid = mt2701_m4u_to_larb(fwspec->ids[0]); in mtk_iommu_v1_probe_device() 482 if (larbid >= MT2701_LARB_NR_MAX) in mtk_iommu_v1_probe_device() 487 if (larbid != larbidx) { in mtk_iommu_v1_probe_device() 489 larbid, larbidx); in mtk_iommu_v1_probe_device() 494 larbdev = data->larb_imu[larbid].dev; in mtk_iommu_v1_probe_device() 525 unsigned int larbid; in mtk_iommu_v1_release_device() local [all …]
|
H A D | mtk_iommu.c | 554 unsigned int portidmsk = 0, larbid; in mtk_iommu_get_iova_region_id() local 561 larbid = MTK_M4U_TO_LARB(fwspec->ids[0]); in mtk_iommu_get_iova_region_id() 570 if ((rgn_larb_msk[larbid] & portidmsk) == portidmsk) in mtk_iommu_get_iova_region_id() 575 larbid, portidmsk); in mtk_iommu_get_iova_region_id() 583 unsigned int larbid, portid; in mtk_iommu_config() local 597 larbid = MTK_M4U_TO_LARB(fwspec->ids[0]); in mtk_iommu_config() 598 larb_mmu = &data->larb_imu[larbid]; in mtk_iommu_config() 869 unsigned int larbid, larbidx, i; in mtk_iommu_probe_device() local 879 larbid = MTK_M4U_TO_LARB(fwspec->ids[0]); in mtk_iommu_probe_device() 880 if (larbid >= MTK_LARB_NR_MAX) in mtk_iommu_probe_device() [all …]
|