Lines Matching refs:spt
78 static void mic_add_smpt_entry(int spt, s64 *ref, u64 addr, in mic_add_smpt_entry() argument
84 for (i = spt; i < spt + entries; i++, in mic_add_smpt_entry()
91 smpt_info->entry[i].ref_count += ref[i - spt]; in mic_add_smpt_entry()
102 int spt; in mic_smpt_op() local
136 spt = i - entries + 1; in mic_smpt_op()
137 mic_addr = mic_smpt_to_pa(mdev, spt); in mic_smpt_op()
138 mic_add_smpt_entry(spt, ref, dma_addr, entries, mdev); in mic_smpt_op()
180 int spt; in mic_to_dma_addr() local
188 spt = mic_sys_addr_to_smpt(mdev, mic_addr); in mic_to_dma_addr()
189 dma_addr = smpt_info->entry[spt].dma_addr + in mic_to_dma_addr()
259 int spt; in mic_unmap() local
272 spt = mic_sys_addr_to_smpt(mdev, mic_addr); in mic_unmap()
284 for (i = spt; i < spt + num_smpt; i++) { in mic_unmap()
285 smpt_info->entry[i].ref_count -= ref[i - spt]; in mic_unmap()