Home
last modified time | relevance | path

Searched refs:open_limit (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/drivers/staging/fwserial/
H A Ddma_fifo.c52 * @open_limit: maximum # of outstanding dma transactions allowed
59 int tx_limit, int open_limit, gfp_t gfp_mask) in dma_fifo_alloc()
67 capacity = size + align * open_limit + align * DMA_FIFO_GUARD; in dma_fifo_alloc()
80 fifo->open_limit = open_limit; in dma_fifo_alloc()
81 fifo->guard = size + align * open_limit; in dma_fifo_alloc()
198 if (fifo->open == fifo->open_limit) in dma_fifo_out_pend()
225 if (FAIL(fifo, fifo->open > fifo->open_limit, in dma_fifo_out_pend()
227 fifo->open, fifo->open_limit)) in dma_fifo_out_pend()
58 dma_fifo_alloc(struct dma_fifo *fifo, int size, unsigned int align, int tx_limit, int open_limit, gfp_t gfp_mask) dma_fifo_alloc() argument
H A Ddma_fifo.h51 int open_limit; /* max # of outstanding allowed */ member
77 int tx_limit, int open_limit, gfp_t gfp_mask);
106 return fifo->open == fifo->open_limit; in dma_fifo_busy()
/kernel/linux/common_modules/newip/src/linux-5.10/drivers/net/bt/
H A Dbtdev.h84 atomic_t open_limit; member
H A Dbtdev.c477 /* Check whether open_limit is equal to 0 after subtracting 1. If so, return true */ in bt_mng_file_open()
478 if (unlikely(!atomic_dec_and_test(&g_bt_drv->mng_file->open_limit))) { in bt_mng_file_open()
480 * and open_limit is restored to the open state. (set to 0) in bt_mng_file_open()
482 atomic_inc(&g_bt_drv->mng_file->open_limit); in bt_mng_file_open()
488 /* open_limit becomes 0 after the file is first opened */ in bt_mng_file_open()
505 /* Set open_limit to 1 when the file is closed */ in bt_mng_file_release()
506 atomic_inc(&drv->mng_file->open_limit); in bt_mng_file_release()
1114 atomic_set(&file->open_limit, 1); in bt_create_mng_file()

Completed in 4 milliseconds