Searched refs:smpt_info (Results 1 – 2 of 2) sorted by relevance
81 struct mic_smpt_info *smpt_info = mdev->smpt; in mic_add_smpt_entry() local85 addr += smpt_info->info.page_size) { in mic_add_smpt_entry()86 if (!smpt_info->entry[i].ref_count && in mic_add_smpt_entry()87 (smpt_info->entry[i].dma_addr != addr)) { in mic_add_smpt_entry()89 smpt_info->entry[i].dma_addr = addr; in mic_add_smpt_entry()91 smpt_info->entry[i].ref_count += ref[i - spt]; in mic_add_smpt_entry()108 struct mic_smpt_info *smpt_info = mdev->smpt; in mic_smpt_op() local110 spin_lock_irqsave(&smpt_info->smpt_lock, flags); in mic_smpt_op()113 for (i = 0; i < smpt_info->info.num_reg; i++) { in mic_smpt_op()114 if (smpt_info->entry[i].dma_addr == addr) { in mic_smpt_op()[all …]
44 struct mic_smpt_info *smpt_info = mdev->smpt; in mic_smpt_show() local45 spin_lock_irqsave(&smpt_info->smpt_lock, flags); in mic_smpt_show()46 for (i = 0; i < smpt_info->info.num_reg; i++) { in mic_smpt_show()48 " ", i, smpt_info->entry[i].dma_addr, in mic_smpt_show()49 smpt_info->entry[i].ref_count); in mic_smpt_show()51 spin_unlock_irqrestore(&smpt_info->smpt_lock, flags); in mic_smpt_show()