smpt_info 32 drivers/misc/mic/host/mic_debugfs.c struct mic_smpt_info *smpt_info = mdev->smpt; smpt_info 33 drivers/misc/mic/host/mic_debugfs.c spin_lock_irqsave(&smpt_info->smpt_lock, flags); smpt_info 34 drivers/misc/mic/host/mic_debugfs.c for (i = 0; i < smpt_info->info.num_reg; i++) { smpt_info 36 drivers/misc/mic/host/mic_debugfs.c " ", i, smpt_info->entry[i].dma_addr, smpt_info 37 drivers/misc/mic/host/mic_debugfs.c smpt_info->entry[i].ref_count); smpt_info 39 drivers/misc/mic/host/mic_debugfs.c spin_unlock_irqrestore(&smpt_info->smpt_lock, flags); smpt_info 69 drivers/misc/mic/host/mic_smpt.c struct mic_smpt_info *smpt_info = mdev->smpt; smpt_info 73 drivers/misc/mic/host/mic_smpt.c addr += smpt_info->info.page_size) { smpt_info 74 drivers/misc/mic/host/mic_smpt.c if (!smpt_info->entry[i].ref_count && smpt_info 75 drivers/misc/mic/host/mic_smpt.c (smpt_info->entry[i].dma_addr != addr)) { smpt_info 77 drivers/misc/mic/host/mic_smpt.c smpt_info->entry[i].dma_addr = addr; smpt_info 79 drivers/misc/mic/host/mic_smpt.c smpt_info->entry[i].ref_count += ref[i - spt]; smpt_info 96 drivers/misc/mic/host/mic_smpt.c struct mic_smpt_info *smpt_info = mdev->smpt; smpt_info 98 drivers/misc/mic/host/mic_smpt.c spin_lock_irqsave(&smpt_info->smpt_lock, flags); smpt_info 101 drivers/misc/mic/host/mic_smpt.c for (i = 0; i < smpt_info->info.num_reg; i++) { smpt_info 102 drivers/misc/mic/host/mic_smpt.c if (smpt_info->entry[i].dma_addr == addr) { smpt_info 104 drivers/misc/mic/host/mic_smpt.c addr += smpt_info->info.page_size; smpt_info 113 drivers/misc/mic/host/mic_smpt.c for (ae = 0, i = 0; i < smpt_info->info.num_reg; i++) { smpt_info 114 drivers/misc/mic/host/mic_smpt.c ae = (smpt_info->entry[i].ref_count == 0) ? ae + 1 : 0; smpt_info 120 drivers/misc/mic/host/mic_smpt.c spin_unlock_irqrestore(&smpt_info->smpt_lock, flags); smpt_info 127 drivers/misc/mic/host/mic_smpt.c smpt_info->map_count++; smpt_info 128 drivers/misc/mic/host/mic_smpt.c smpt_info->ref_count += (s64)size; smpt_info 129 drivers/misc/mic/host/mic_smpt.c spin_unlock_irqrestore(&smpt_info->smpt_lock, flags); smpt_info 167 drivers/misc/mic/host/mic_smpt.c struct mic_smpt_info *smpt_info = mdev->smpt; smpt_info 177 drivers/misc/mic/host/mic_smpt.c dma_addr = smpt_info->entry[spt].dma_addr + smpt_info 244 drivers/misc/mic/host/mic_smpt.c struct mic_smpt_info *smpt_info = mdev->smpt; smpt_info 268 drivers/misc/mic/host/mic_smpt.c spin_lock_irqsave(&smpt_info->smpt_lock, flags); smpt_info 269 drivers/misc/mic/host/mic_smpt.c smpt_info->unmap_count++; smpt_info 270 drivers/misc/mic/host/mic_smpt.c smpt_info->ref_count -= (s64)size; smpt_info 273 drivers/misc/mic/host/mic_smpt.c smpt_info->entry[i].ref_count -= ref[i - spt]; smpt_info 274 drivers/misc/mic/host/mic_smpt.c if (smpt_info->entry[i].ref_count < 0) smpt_info 278 drivers/misc/mic/host/mic_smpt.c spin_unlock_irqrestore(&smpt_info->smpt_lock, flags); smpt_info 346 drivers/misc/mic/host/mic_smpt.c struct mic_smpt_info *smpt_info; smpt_info 352 drivers/misc/mic/host/mic_smpt.c smpt_info = mdev->smpt; smpt_info 354 drivers/misc/mic/host/mic_smpt.c smpt_info->entry = kmalloc_array(smpt_info->info.num_reg, smpt_info 355 drivers/misc/mic/host/mic_smpt.c sizeof(*smpt_info->entry), GFP_KERNEL); smpt_info 356 drivers/misc/mic/host/mic_smpt.c if (!smpt_info->entry) { smpt_info 360 drivers/misc/mic/host/mic_smpt.c spin_lock_init(&smpt_info->smpt_lock); smpt_info 361 drivers/misc/mic/host/mic_smpt.c for (i = 0; i < smpt_info->info.num_reg; i++) { smpt_info 362 drivers/misc/mic/host/mic_smpt.c dma_addr = i * smpt_info->info.page_size; smpt_info 363 drivers/misc/mic/host/mic_smpt.c smpt_info->entry[i].dma_addr = dma_addr; smpt_info 364 drivers/misc/mic/host/mic_smpt.c smpt_info->entry[i].ref_count = 0; smpt_info 367 drivers/misc/mic/host/mic_smpt.c smpt_info->ref_count = 0; smpt_info 368 drivers/misc/mic/host/mic_smpt.c smpt_info->map_count = 0; smpt_info 369 drivers/misc/mic/host/mic_smpt.c smpt_info->unmap_count = 0; smpt_info 372 drivers/misc/mic/host/mic_smpt.c kfree(smpt_info); smpt_info 385 drivers/misc/mic/host/mic_smpt.c struct mic_smpt_info *smpt_info = mdev->smpt; smpt_info 390 drivers/misc/mic/host/mic_smpt.c mdev->id, smpt_info->ref_count, smpt_info 391 drivers/misc/mic/host/mic_smpt.c smpt_info->map_count, smpt_info->unmap_count); smpt_info 393 drivers/misc/mic/host/mic_smpt.c for (i = 0; i < smpt_info->info.num_reg; i++) { smpt_info 396 drivers/misc/mic/host/mic_smpt.c i, smpt_info->entry[i].dma_addr, smpt_info 397 drivers/misc/mic/host/mic_smpt.c smpt_info->entry[i].ref_count); smpt_info 398 drivers/misc/mic/host/mic_smpt.c if (smpt_info->entry[i].ref_count) smpt_info 402 drivers/misc/mic/host/mic_smpt.c kfree(smpt_info->entry); smpt_info 403 drivers/misc/mic/host/mic_smpt.c kfree(smpt_info);