Home
last modified time | relevance | path

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

/linux-4.4.14/sound/parisc/
Dharmony.h63 #define BUF_SIZE PAGE_SIZE macro
65 #define MAX_BUF_SIZE (MAX_BUFS * BUF_SIZE)
70 #define GRAVEYARD_BUFSZ (GRAVEYARD_BUFS*BUF_SIZE)
72 #define SILENCE_BUFSZ (SILENCE_BUFS*BUF_SIZE)
Dharmony.c277 .period_bytes_min = BUF_SIZE,
278 .period_bytes_max = BUF_SIZE,
298 .period_bytes_min = BUF_SIZE,
299 .period_bytes_max = BUF_SIZE,
654 BUF_SIZE*GRAVEYARD_BUFS, in snd_harmony_pcm_init()
664 BUF_SIZE*SILENCE_BUFS, in snd_harmony_pcm_init()
/linux-4.4.14/lib/
Dtest_printf.c18 #define BUF_SIZE 256 macro
52 memset(test_buffer, FILL_CHAR, BUF_SIZE); in do_test()
64 if (memchr_inv(test_buffer, FILL_CHAR, BUF_SIZE)) { in do_test()
94 BUG_ON(elen >= BUF_SIZE); in __test()
104 failed_tests += do_test(BUF_SIZE, expect, elen, fmt, ap); in __test()
340 test_buffer = kmalloc(BUF_SIZE, GFP_KERNEL); in test_printf_init()
/linux-4.4.14/drivers/tty/
Dehv_bytechan.c45 #define BUF_SIZE 2048 macro
56 unsigned char buf[BUF_SIZE]; /* transmit circular buffer */
405 CIRC_CNT_TO_END(bc->head, bc->tail, BUF_SIZE), in ehv_bc_tx_dequeue()
412 bc->tail = (bc->tail + len) & (BUF_SIZE - 1); in ehv_bc_tx_dequeue()
414 count = CIRC_CNT(bc->head, bc->tail, BUF_SIZE); in ehv_bc_tx_dequeue()
419 if (CIRC_CNT(bc->head, bc->tail, BUF_SIZE)) in ehv_bc_tx_dequeue()
468 len = CIRC_SPACE_TO_END(bc->head, bc->tail, BUF_SIZE); in ehv_bc_tty_write()
473 bc->head = (bc->head + len) & (BUF_SIZE - 1); in ehv_bc_tty_write()
535 count = CIRC_SPACE(bc->head, bc->tail, BUF_SIZE); in ehv_bc_tty_write_room()
/linux-4.4.14/drivers/input/joystick/
Djoydump.c42 #define BUF_SIZE 256 macro
83 buf = kmalloc(BUF_SIZE * sizeof(struct joydump), GFP_KERNEL); in joydump_connect()
102 while (i < BUF_SIZE && t < timeout) { in joydump_connect()
/linux-4.4.14/tools/vm/
Dpage_owner_sort.c82 #define BUF_SIZE 1024 macro
87 char buf[BUF_SIZE]; in main()
112 ret = read_block(buf, BUF_SIZE, fin); in main()
/linux-4.4.14/arch/um/drivers/
Dslip_common.h4 #define BUF_SIZE 1500 macro
7 #define ENC_BUF_SIZE (2 * BUF_SIZE + 2)
Dslirp_user.c123 .mtu = BUF_SIZE,
124 .max_packet = BUF_SIZE,
Dslip_user.c249 .mtu = BUF_SIZE,
250 .max_packet = BUF_SIZE,
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
Dmcg.c902 #define BUF_SIZE 256 in mlx4_err_rule() macro
904 char buf[BUF_SIZE]; in mlx4_err_rule()
908 len += snprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule()
915 len += snprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule()
918 len += snprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule()
922 len += snprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule()
929 len += snprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule()
933 len += snprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule()
941 len += snprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule()
945 len += snprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule()
[all …]
/linux-4.4.14/Documentation/usb/
Dgadget_printer.txt154 #define BUF_SIZE 512
208 static char buf[BUF_SIZE];
218 bytes_read = read(fd[0].fd, buf, BUF_SIZE);
259 static char buf[BUF_SIZE];
261 int bytes_read = fread(buf, 1, BUF_SIZE, stdin);
305 static char buf[BUF_SIZE];
318 bytes_read = read(fd, buf, BUF_SIZE);
/linux-4.4.14/init/
Dinitramfs.c560 #define BUF_SIZE 1024 macro
572 buf = kzalloc(BUF_SIZE, GFP_KERNEL); in clean_rootfs()
580 num = sys_getdents64(fd, dirp, BUF_SIZE); in clean_rootfs()
599 memset(buf, 0, BUF_SIZE); in clean_rootfs()
600 num = sys_getdents64(fd, dirp, BUF_SIZE); in clean_rootfs()
/linux-4.4.14/drivers/media/rc/
Diguanair.c31 #define BUF_SIZE 152 macro
76 #define MAX_OUT_PACKET (sizeof(struct send_packet) + BUF_SIZE)
261 if (ir->bufsize > BUF_SIZE) { in iguanair_get_features()
264 ir->bufsize = BUF_SIZE; in iguanair_get_features()
Dimon.c56 #define BUF_SIZE 128 macro
/linux-4.4.14/drivers/net/hamradio/
Ddmascc.c52 #define BUF_SIZE 1576 /* BUF_SIZE >= mtu + hard_header_len */ macro
204 char rx_buf[NUM_RX_BUF][BUF_SIZE];
210 char tx_buf[NUM_TX_BUF][BUF_SIZE];
1032 set_dma_count(priv->param.dma, BUF_SIZE); in rx_on()
1174 if (priv->rx_ptr < BUF_SIZE) in rx_isr()
1204 cb = BUF_SIZE - get_dma_residue(priv->param.dma) - in special_condition()
1245 set_dma_count(priv->param.dma, BUF_SIZE); in special_condition()
/linux-4.4.14/drivers/media/usb/airspy/
Dairspy.c137 #define BUF_SIZE 128 macro
138 u8 buf[BUF_SIZE];
984 u8 u8tmp, buf[BUF_SIZE]; in airspy_probe()
1007 buf, BUF_SIZE); in airspy_probe()
1013 buf[BUF_SIZE - 1] = '\0'; in airspy_probe()
/linux-4.4.14/drivers/atm/
Dsolos-pci.c66 #define BUF_SIZE 2048 macro
473 if (size > (BUF_SIZE - sizeof(*header))) { in send_command()
1097 data = card->dma_bounce + (BUF_SIZE * port); in fpga_tx()
1150 if (pktlen > (BUF_SIZE - sizeof(*header))) { in psend()
1260 card->buffer_size = BUF_SIZE; in fpga_probe()
1288 card->dma_bounce = kmalloc(card->nr_ports * BUF_SIZE, GFP_KERNEL); in fpga_probe()
Diphase.h543 #define BUF_SIZE 0x42 macro
Diphase.c1478 writew(iadev->rx_buf_sz, iadev->reass_reg+BUF_SIZE);
/linux-4.4.14/scripts/kconfig/lxdialog/
Ddialog.h61 #define BUF_SIZE (10*1024) macro
/linux-4.4.14/tools/perf/util/
Devsel.c1213 #define BUF_SIZE 1024 macro
1215 #define p_hex(val) snprintf(buf, BUF_SIZE, "%#"PRIx64, (uint64_t)(val))
1216 #define p_unsigned(val) snprintf(buf, BUF_SIZE, "%"PRIu64, (uint64_t)(val))
1217 #define p_signed(val) snprintf(buf, BUF_SIZE, "%"PRId64, (int64_t)(val))
1218 #define p_sample_type(val) __p_sample_type(buf, BUF_SIZE, val)
1219 #define p_read_format(val) __p_read_format(buf, BUF_SIZE, val)
1234 char buf[BUF_SIZE]; in perf_event_attr__fprintf()
/linux-4.4.14/drivers/media/usb/hackrf/
Dhackrf.c149 #define BUF_SIZE 24 macro
150 u8 buf[BUF_SIZE];
1372 u8 u8tmp, buf[BUF_SIZE]; in hackrf_probe()
1403 buf, BUF_SIZE); in hackrf_probe()
1409 buf[BUF_SIZE - 1] = '\0'; in hackrf_probe()
/linux-4.4.14/drivers/staging/media/lirc/
Dlirc_sasem.c60 #define BUF_SIZE 128 macro
755 if (lirc_buffer_init(rbuf, BUF_CHUNK_SIZE, BUF_SIZE)) { in sasem_probe()
Dlirc_imon.c45 #define BUF_SIZE 128 macro
795 if (lirc_buffer_init(rbuf, BUF_CHUNK_SIZE, BUF_SIZE)) { in imon_probe()
/linux-4.4.14/drivers/scsi/
Dscsi_transport_sas.c1261 #define BUF_SIZE 64 macro
1265 char *buffer = kzalloc(BUF_SIZE, GFP_KERNEL), *msdata; in sas_read_port_mode_page()
1273 res = scsi_mode_sense(sdev, 1, 0x19, buffer, BUF_SIZE, 30*HZ, 3, in sas_read_port_mode_page()
1283 if (msdata - buffer > BUF_SIZE - 8) in sas_read_port_mode_page()