/linux-4.1.27/samples/kfifo/ |
D | inttype-example.c | 21 #define FIFO_SIZE 32 macro 44 static DEFINE_KFIFO(test, int, FIFO_SIZE); 47 static const int expected_result[FIFO_SIZE] = { 152 ret = kfifo_alloc(&test, FIFO_SIZE, GFP_KERNEL); in example_init()
|
D | bytestream-example.c | 21 #define FIFO_SIZE 32 macro 44 static DECLARE_KFIFO(test, unsigned char, FIFO_SIZE); 47 static const unsigned char expected_result[FIFO_SIZE] = { 159 ret = kfifo_alloc(&test, FIFO_SIZE, GFP_KERNEL); in example_init()
|
D | dma-example.c | 19 #define FIFO_SIZE 32 macro 32 if (kfifo_alloc(&fifo, FIFO_SIZE, GFP_KERNEL)) { in example_init() 65 nents = kfifo_dma_in_prepare(&fifo, sg, ARRAY_SIZE(sg), FIFO_SIZE); in example_init()
|
D | record-example.c | 21 #define FIFO_SIZE 128 macro 53 typedef STRUCT_KFIFO_REC_1(FIFO_SIZE) mytest; 166 ret = kfifo_alloc(&test, FIFO_SIZE, GFP_KERNEL); in example_init()
|
/linux-4.1.27/drivers/i2c/busses/ |
D | i2c-sh7760.c | 79 #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()
|
D | i2c-axxia.c | 27 #define FIFO_SIZE 8 macro 260 size_t tx_fifo_avail = FIFO_SIZE - readl(idev->base + MST_TX_FIFO); in axxia_i2c_fill_tx_fifo()
|
/linux-4.1.27/drivers/spi/ |
D | spi-st-ssc4.c | 54 #define FIFO_SIZE 8 macro 103 if (spi_st->words_remaining > FIFO_SIZE) in ssc_write_tx_fifo() 104 count = FIFO_SIZE; in ssc_write_tx_fifo() 127 if (spi_st->words_remaining > FIFO_SIZE) in ssc_read_rx_fifo() 128 count = FIFO_SIZE; in ssc_read_rx_fifo()
|
/linux-4.1.27/sound/pci/au88x0/ |
D | au8820.h | 153 #define FIFO_SIZE (1<<FIFO_SIZE_BITS) // 0x20 macro 154 #define FIFO_MASK (FIFO_SIZE-1) //0x1f /* at shift left 0xc */
|
D | au8810.h | 162 #define FIFO_SIZE (1<<FIFO_SIZE_BITS) // 0x20 macro 163 #define FIFO_MASK (FIFO_SIZE-1) //0x1f /* at shift left 0xc */
|
D | au8830.h | 182 #define FIFO_SIZE (1<<(FIFO_SIZE_BITS)) // 0x40 macro 183 #define FIFO_MASK (FIFO_SIZE-1) //0x3f /* at shift left 0xc */
|
D | au88x0_core.c | 790 vortex_fifo_clearadbdata(vortex, fifo, FIFO_SIZE); 834 vortex_fifo_clearadbdata(vortex, fifo, FIFO_SIZE); // this_4 in vortex_fifo_setadbctrl() 872 vortex_fifo_clearadbdata(vortex, fifo, FIFO_SIZE); in vortex_fifo_setadbctrl() 891 vortex_fifo_clearwtdata(vortex, fifo, FIFO_SIZE); in vortex_fifo_wtinitialize() 927 vortex_fifo_clearwtdata(vortex, fifo, FIFO_SIZE); // this_4 in vortex_fifo_setwtctrl() 965 vortex_fifo_clearwtdata(vortex, fifo, FIFO_SIZE); in vortex_fifo_setwtctrl() 1047 vortex_fifo_clearadbdata(vortex, x, FIFO_SIZE); in vortex_fifo_init() 1060 vortex_fifo_clearwtdata(vortex, x, FIFO_SIZE); in vortex_fifo_init()
|
/linux-4.1.27/drivers/staging/comedi/drivers/ |
D | das16m1.c | 65 #define FIFO_SIZE 1024 /* 1024 sample fifo */ macro 132 unsigned short ai_buffer[FIFO_SIZE]; 431 if (num_samples > FIFO_SIZE) in das16m1_handler() 432 num_samples = FIFO_SIZE; in das16m1_handler()
|
D | das1800.c | 109 #define FIFO_SIZE 1024 /* 1024 sample fifo */ macro 473 unsigned int nsamples = comedi_nsamples_left(s, FIFO_SIZE / 2); in das1800_handle_fifo_half_full() 1353 devpriv->fifo_buf = kmalloc_array(FIFO_SIZE, sizeof(uint16_t), GFP_KERNEL); in das1800_attach()
|
/linux-4.1.27/drivers/net/ethernet/ |
D | ec_bhf.c | 117 #define FIFO_SIZE 64 macro 410 FIFO_SIZE * sizeof(struct rx_desc)); in ec_bhf_open() 418 FIFO_SIZE * sizeof(struct tx_desc)); in ec_bhf_open()
|
/linux-4.1.27/drivers/tty/serial/ |
D | rp2.c | 51 #define FIFO_SIZE 512 macro 437 u16 max_tx = FIFO_SIZE - readw(up->base + RP2_TX_FIFO_COUNT); in rp2_tx_chars() 702 p->fifosize = FIFO_SIZE; in rp2_fw_cb()
|
D | ioc3_serial.c | 61 #define FIFO_SIZE (MAX_CHARS-1) /* it's a uchar */ macro 998 the_port->fifosize = FIFO_SIZE; in ioc3_change_speed() 1944 the_port->fifosize = FIFO_SIZE; in ioc3_serial_core_attach()
|
/linux-4.1.27/drivers/block/ |
D | ps3vram.c | 32 #define FIFO_SIZE (64 * 1024) macro 37 #define CACHE_PAGE_COUNT ((XDR_BUF_SIZE - FIFO_SIZE) / CACHE_PAGE_SIZE) 220 FIFO_SIZE - 1024) { in ps3vram_fire_ring()
|
/linux-4.1.27/drivers/mmc/card/ |
D | sdio_uart.c | 51 #define FIFO_SIZE PAGE_SIZE macro 96 if (kfifo_alloc(&port->xmit_fifo, FIFO_SIZE, GFP_KERNEL)) in sdio_uart_add_port() 809 return FIFO_SIZE - kfifo_len(&port->xmit_fifo); in sdio_uart_write_room()
|
/linux-4.1.27/drivers/net/ethernet/tehuti/ |
D | tehuti.h | 77 #define FIFO_SIZE 4096 macro
|
D | tehuti.c | 157 u16 memsz = FIFO_SIZE * (1 << fsz_type); in bdx_fifo_init() 1441 int memsz = FIFO_SIZE * (1 << (sz_type + 1)); in bdx_tx_db_init() 2272 return (FIFO_SIZE * (1 << rx_size)) / sizeof(struct rxf_desc); in bdx_rx_fifo_size_to_packets() 2278 return (FIFO_SIZE * (1 << tx_size)) / BDX_TXF_DESC_SZ; in bdx_tx_fifo_size_to_packets()
|
/linux-4.1.27/drivers/ata/ |
D | pata_arasan_cf.c | 174 #define FIFO_SIZE 0x200u macro 474 dma_len = min(xfer_cnt, FIFO_SIZE); in sg_xfer()
|
/linux-4.1.27/drivers/media/platform/soc_camera/ |
D | omap1_camera.c | 113 #define FIFO_SIZE ((THRESHOLD_MASK >> THRESHOLD_SHIFT) + 1) macro 114 #define FIFO_SHIFT __fls(FIFO_SIZE)
|
/linux-4.1.27/drivers/usb/gadget/udc/ |
D | dummy_hcd.c | 150 #define FIFO_SIZE 64 macro 195 u8 fifo_buf[FIFO_SIZE]; 652 _req->length <= FIFO_SIZE) { in dummy_queue()
|