Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/misc/
Dibmvmc.c47 static struct ibmvmc_hmc hmcs[MAX_HMCS]; variable
333 buffer = hmcs[hmc_index].buffer; in ibmvmc_get_valid_hmc_buffer()
369 buffer = hmcs[hmc_index].buffer; in ibmvmc_get_free_hmc_buffer()
423 buffer = hmcs[hmc_index].buffer; in ibmvmc_count_hmc_buffers()
424 spin_lock_irqsave(&hmcs[hmc_index].lock, flags); in ibmvmc_count_hmc_buffers()
434 spin_unlock_irqrestore(&hmcs[hmc_index].lock, flags); in ibmvmc_count_hmc_buffers()
453 spin_lock_irqsave(&hmcs[i].lock, flags); in ibmvmc_get_free_hmc()
454 if (hmcs[i].state == ibmhmc_state_free) { in ibmvmc_get_free_hmc()
455 hmcs[i].index = i; in ibmvmc_get_free_hmc()
456 hmcs[i].state = ibmhmc_state_initial; in ibmvmc_get_free_hmc()
[all …]