Home
last modified time | relevance | path

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

/drivers/misc/mic/host/
Dmic_smpt.c69 struct mic_smpt_info *smpt_info = mdev->smpt; in mic_add_smpt_entry() local
73 addr += smpt_info->info.page_size) { in mic_add_smpt_entry()
74 if (!smpt_info->entry[i].ref_count && in mic_add_smpt_entry()
75 (smpt_info->entry[i].dma_addr != addr)) { in mic_add_smpt_entry()
77 smpt_info->entry[i].dma_addr = addr; in mic_add_smpt_entry()
79 smpt_info->entry[i].ref_count += ref[i - spt]; in mic_add_smpt_entry()
96 struct mic_smpt_info *smpt_info = mdev->smpt; in mic_smpt_op() local
98 spin_lock_irqsave(&smpt_info->smpt_lock, flags); in mic_smpt_op()
101 for (i = 0; i < smpt_info->info.num_reg; i++) { in mic_smpt_op()
102 if (smpt_info->entry[i].dma_addr == addr) { in mic_smpt_op()
[all …]
Dmic_debugfs.c32 struct mic_smpt_info *smpt_info = mdev->smpt; in mic_smpt_show() local
33 spin_lock_irqsave(&smpt_info->smpt_lock, flags); in mic_smpt_show()
34 for (i = 0; i < smpt_info->info.num_reg; i++) { in mic_smpt_show()
36 " ", i, smpt_info->entry[i].dma_addr, in mic_smpt_show()
37 smpt_info->entry[i].ref_count); in mic_smpt_show()
39 spin_unlock_irqrestore(&smpt_info->smpt_lock, flags); in mic_smpt_show()