Home
last modified time | relevance | path

Searched refs:smpt_info (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/drivers/misc/mic/host/
Dmic_smpt.c81 struct mic_smpt_info *smpt_info = mdev->smpt; in mic_add_smpt_entry() local
85 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() local
110 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 …]
Dmic_debugfs.c44 struct mic_smpt_info *smpt_info = mdev->smpt; in mic_smpt_show() local
45 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()