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 …]
110 struct mic_smpt_info *smpt_info = mdev->smpt; in mic_smpt_show() local111 spin_lock_irqsave(&smpt_info->smpt_lock, flags); in mic_smpt_show()112 for (i = 0; i < smpt_info->info.num_reg; i++) { in mic_smpt_show()114 " ", i, smpt_info->entry[i].dma_addr, in mic_smpt_show()115 smpt_info->entry[i].ref_count); in mic_smpt_show()117 spin_unlock_irqrestore(&smpt_info->smpt_lock, flags); in mic_smpt_show()