Home
last modified time | relevance | path

Searched refs:FIFO_SIZE (Results 1 – 25 of 33) sorted by relevance

12

/linux-6.6.21/samples/kfifo/
Dinttype-example.c19 #define FIFO_SIZE 32 macro
42 static DEFINE_KFIFO(test, int, FIFO_SIZE);
45 static const int expected_result[FIFO_SIZE] = {
153 ret = kfifo_alloc(&test, FIFO_SIZE, GFP_KERNEL); in example_init()
Dbytestream-example.c19 #define FIFO_SIZE 32 macro
42 static DECLARE_KFIFO(test, unsigned char, FIFO_SIZE);
45 static const unsigned char expected_result[FIFO_SIZE] = {
160 ret = kfifo_alloc(&test, FIFO_SIZE, GFP_KERNEL); in example_init()
Ddma-example.c17 #define FIFO_SIZE 32 macro
30 if (kfifo_alloc(&fifo, FIFO_SIZE, GFP_KERNEL)) { in example_init()
63 nents = kfifo_dma_in_prepare(&fifo, sg, ARRAY_SIZE(sg), FIFO_SIZE); in example_init()
Drecord-example.c19 #define FIFO_SIZE 128 macro
51 typedef STRUCT_KFIFO_REC_1(FIFO_SIZE) mytest;
167 ret = kfifo_alloc(&test, FIFO_SIZE, GFP_KERNEL); in example_init()
/linux-6.6.21/drivers/i2c/busses/
Di2c-sh7760.c79 #define FIFO_SIZE 16 macro
188 len = (msg->len >= FIFO_SIZE) ? FIFO_SIZE - 1 in sh7760_i2c_irq()
208 while (msg->len && (IN32(id, I2CTFDR) < FIFO_SIZE)) { in sh7760_i2c_irq()
217 len = (msg->len >= FIFO_SIZE) ? 2 : 0; in sh7760_i2c_irq()
251 if (id->msg->len >= FIFO_SIZE) in sh7760_i2c_mrecv()
252 len = FIFO_SIZE - 1; /* trigger at fifo full */ in sh7760_i2c_mrecv()
277 if (id->msg->len >= FIFO_SIZE) in sh7760_i2c_msend()
285 while (id->msg->len && IN32(id, I2CTFDR) < FIFO_SIZE) { in sh7760_i2c_msend()
Di2c-axxia.c25 #define FIFO_SIZE 8 macro
305 size_t tx_fifo_avail = FIFO_SIZE - readl(idev->base + MST_TX_FIFO); in axxia_i2c_fill_tx_fifo()
608 msgs[0].len > 0 && msgs[0].len <= FIFO_SIZE && in axxia_i2c_sequence_ok()
/linux-6.6.21/drivers/staging/pi433/
Dpi433_if.c126 device->free_in_fifo = FIFO_SIZE; in DIO0_irq_handler()
146 device->free_in_fifo = FIFO_SIZE; in DIO1_irq_handler()
151 device->free_in_fifo = FIFO_SIZE - FIFO_THRESHOLD - 1; in DIO1_irq_handler()
388 retval = rf69_set_fifo_threshold(dev->spi, FIFO_SIZE - FIFO_THRESHOLD); in pi433_start_rx()
427 dev->free_in_fifo = FIFO_SIZE; in pi433_receive()
481 dev->free_in_fifo < FIFO_SIZE); in pi433_receive()
502 dev->free_in_fifo < FIFO_SIZE); in pi433_receive()
515 dev->free_in_fifo < FIFO_SIZE); in pi433_receive()
528 if (bytes_to_read > FIFO_SIZE - dev->free_in_fifo) in pi433_receive()
529 bytes_to_read = FIFO_SIZE - dev->free_in_fifo; in pi433_receive()
[all …]
Drf69.c16 #define FIFO_SIZE 66 /* in byte */ macro
785 u8 local_buffer[FIFO_SIZE + 1] = {}; in rf69_read_fifo()
788 if (size > FIFO_SIZE) { in rf69_read_fifo()
815 u8 local_buffer[FIFO_SIZE + 1]; in rf69_write_fifo()
817 if (size > FIFO_SIZE) { in rf69_write_fifo()
Drf69.h17 #define FIFO_SIZE 66 /* bytes */ macro
/linux-6.6.21/drivers/spi/
Dspi-st-ssc4.c51 #define FIFO_SIZE 8 macro
74 if (spi_st->words_remaining > FIFO_SIZE) in ssc_write_tx_fifo()
75 count = FIFO_SIZE; in ssc_write_tx_fifo()
98 if (spi_st->words_remaining > FIFO_SIZE) in ssc_read_rx_fifo()
99 count = FIFO_SIZE; in ssc_read_rx_fifo()
/linux-6.6.21/sound/pci/au88x0/
Dau8820.h154 #define FIFO_SIZE (1<<FIFO_SIZE_BITS) // 0x20 macro
155 #define FIFO_MASK (FIFO_SIZE-1) //0x1f /* at shift left 0xc */
Dau8810.h163 #define FIFO_SIZE (1<<FIFO_SIZE_BITS) // 0x20 macro
164 #define FIFO_MASK (FIFO_SIZE-1) //0x1f /* at shift left 0xc */
Dau8830.h183 #define FIFO_SIZE (1<<(FIFO_SIZE_BITS)) // 0x40 macro
184 #define FIFO_MASK (FIFO_SIZE-1) //0x3f /* at shift left 0xc */
Dau88x0_core.c778 vortex_fifo_clearadbdata(vortex, fifo, FIFO_SIZE);
822 vortex_fifo_clearadbdata(vortex, fifo, FIFO_SIZE); // this_4 in vortex_fifo_setadbctrl()
860 vortex_fifo_clearadbdata(vortex, fifo, FIFO_SIZE); in vortex_fifo_setadbctrl()
879 vortex_fifo_clearwtdata(vortex, fifo, FIFO_SIZE); in vortex_fifo_wtinitialize()
915 vortex_fifo_clearwtdata(vortex, fifo, FIFO_SIZE); // this_4 in vortex_fifo_setwtctrl()
953 vortex_fifo_clearwtdata(vortex, fifo, FIFO_SIZE); in vortex_fifo_setwtctrl()
1035 vortex_fifo_clearadbdata(vortex, x, FIFO_SIZE); in vortex_fifo_init()
1048 vortex_fifo_clearwtdata(vortex, x, FIFO_SIZE); in vortex_fifo_init()
/linux-6.6.21/drivers/net/ethernet/
Dec_bhf.c108 #define FIFO_SIZE 64 macro
401 FIFO_SIZE * sizeof(struct rx_desc)); in ec_bhf_open()
409 FIFO_SIZE * sizeof(struct tx_desc)); in ec_bhf_open()
/linux-6.6.21/sound/soc/amd/raven/
Dacp3x.h63 #define FIFO_SIZE 0x100 macro
/linux-6.6.21/drivers/platform/x86/amd/pmc/
Dpmc.c96 #define FIFO_SIZE 4096 macro
185 u32 size = FIFO_SIZE * sizeof(u32); in amd_pmc_stb_debugfs_open()
210 FIFO_SIZE * sizeof(u32)); in amd_pmc_stb_debugfs_read()
963 for (i = 0; i < FIFO_SIZE; i++) { in amd_pmc_read_stb()
/linux-6.6.21/drivers/media/pci/netup_unidvb/
Dnetup_unidvb_i2c.c42 #define FIFO_SIZE 16 macro
134 u32 fifo_space = FIFO_SIZE - in netup_i2c_fifo_tx()
/linux-6.6.21/sound/soc/amd/vangogh/
Dacp5x.h70 #define FIFO_SIZE 0x100 macro
/linux-6.6.21/drivers/tty/serial/
Drp2.c48 #define FIFO_SIZE 512 macro
433 FIFO_SIZE - readw(up->base + RP2_TX_FIFO_COUNT), in rp2_tx_chars()
669 p->fifosize = FIFO_SIZE; in rp2_load_firmware()
/linux-6.6.21/drivers/block/
Dps3vram.c33 #define FIFO_SIZE (64 * 1024) macro
38 #define CACHE_PAGE_COUNT ((XDR_BUF_SIZE - FIFO_SIZE) / CACHE_PAGE_SIZE)
214 FIFO_SIZE - 1024) { in ps3vram_fire_ring()
/linux-6.6.21/sound/soc/amd/acp/
Damd.h79 #define FIFO_SIZE 0x100 macro
/linux-6.6.21/drivers/mmc/core/
Dsdio_uart.c48 #define FIFO_SIZE PAGE_SIZE macro
93 if (kfifo_alloc(&port->xmit_fifo, FIFO_SIZE, GFP_KERNEL)) in sdio_uart_add_port()
789 return FIFO_SIZE - kfifo_len(&port->xmit_fifo); in sdio_uart_write_room()
/linux-6.6.21/drivers/comedi/drivers/
Ddas1800.c82 #define FIFO_SIZE 1024 /* 1024 sample fifo */ macro
341 unsigned int nsamples = comedi_nsamples_left(s, FIFO_SIZE / 2); in das1800_handle_fifo_half_full()
1230 devpriv->fifo_buf = kmalloc_array(FIFO_SIZE, in das1800_attach()
/linux-6.6.21/drivers/net/ethernet/tehuti/
Dtehuti.h76 #define FIFO_SIZE 4096 macro

12