/linux/lib/ |
A D | test_printf.c | 29 #define BUF_SIZE 256 macro 49 memset(alloced_buffer, FILL_CHAR, BUF_SIZE + 2*PAD_SIZE); in do_test() 66 if (memchr_inv(test_buffer, FILL_CHAR, BUF_SIZE + PAD_SIZE)) { in do_test() 102 if (elen >= BUF_SIZE) { in __test() 117 failed_tests += do_test(BUF_SIZE, expect, elen, fmt, ap); in __test() 619 size = scnprintf(cmp_buf, BUF_SIZE, "%#lx(", flags); in page_flags_test() 630 size += scnprintf(cmp_buf + size, BUF_SIZE - size, "|"); in page_flags_test() 632 size += scnprintf(cmp_buf + size, BUF_SIZE - size, "%s=", in page_flags_test() 639 snprintf(cmp_buf + size, BUF_SIZE - size, ")"); in page_flags_test() 651 cmp_buffer = kmalloc(BUF_SIZE, GFP_KERNEL); in flags() [all …]
|
A D | test_scanf.c | 20 #define BUF_SIZE 1024 macro 198 snprintf(test_buffer, BUF_SIZE, gen_fmt, expect_val); \ 361 append_delim(test_buffer, &pos, BUF_SIZE, \ 362 fmt_buffer, &fmt_pos, BUF_SIZE, \ 389 append_delim(test_buffer, &pos, BUF_SIZE, \ 390 fmt_buffer, &fmt_pos, BUF_SIZE, field_sep);\ 392 val_len = append_fmt(test_buffer, &pos, BUF_SIZE, gen_fmt, \ 394 append_fmt(fmt_buffer, &fmt_pos, BUF_SIZE, \ 690 len = snprintf(test_buffer, BUF_SIZE, gen_fmt, expect); \ 788 test_buffer = kmalloc(BUF_SIZE, GFP_KERNEL); in selftest() [all …]
|
/linux/tools/testing/selftests/net/ |
A D | tcp_inq.c | 29 #define BUF_SIZE 8192 macro 68 buf = malloc(BUF_SIZE); in start_server() 77 r = send(fd, buf, BUF_SIZE, 0); in start_server() 81 if (r != BUF_SIZE) in start_server() 157 buf = malloc(BUF_SIZE); in main() 159 iov[0].iov_len = BUF_SIZE / 2; in main() 170 if (inq != BUF_SIZE - iov[0].iov_len) { in main()
|
/linux/tools/perf/util/ |
A D | perf_event_attr_fprintf.c | 74 #define BUF_SIZE 1024 macro 76 #define p_hex(val) snprintf(buf, BUF_SIZE, "%#"PRIx64, (uint64_t)(val)) 77 #define p_unsigned(val) snprintf(buf, BUF_SIZE, "%"PRIu64, (uint64_t)(val)) 78 #define p_signed(val) snprintf(buf, BUF_SIZE, "%"PRId64, (int64_t)(val)) 79 #define p_sample_type(val) __p_sample_type(buf, BUF_SIZE, val) 80 #define p_branch_sample_type(val) __p_branch_sample_type(buf, BUF_SIZE, val) 81 #define p_read_format(val) __p_read_format(buf, BUF_SIZE, val) 96 char buf[BUF_SIZE]; in perf_event_attr__fprintf()
|
/linux/tools/testing/selftests/bpf/ |
A D | urandom_read.c | 8 #define BUF_SIZE 256 macro 13 char buf[BUF_SIZE]; in urandom_read() 17 read(fd, buf, BUF_SIZE); in urandom_read()
|
/linux/sound/parisc/ |
A D | harmony.h | 64 #define BUF_SIZE PAGE_SIZE macro 66 #define MAX_BUF_SIZE (MAX_BUFS * BUF_SIZE) 71 #define GRAVEYARD_BUFSZ (GRAVEYARD_BUFS*BUF_SIZE) 73 #define SILENCE_BUFSZ (SILENCE_BUFS*BUF_SIZE)
|
A D | harmony.c | 264 .period_bytes_min = BUF_SIZE, 265 .period_bytes_max = BUF_SIZE, 285 .period_bytes_min = BUF_SIZE, 286 .period_bytes_max = BUF_SIZE, 615 BUF_SIZE*GRAVEYARD_BUFS, in snd_harmony_pcm_init() 625 BUF_SIZE*SILENCE_BUFS, in snd_harmony_pcm_init()
|
/linux/drivers/tty/ |
A D | ehv_bytechan.c | 41 #define BUF_SIZE 2048 macro 52 unsigned char buf[BUF_SIZE]; /* transmit circular buffer */ 416 CIRC_CNT_TO_END(bc->head, bc->tail, BUF_SIZE), in ehv_bc_tx_dequeue() 423 bc->tail = (bc->tail + len) & (BUF_SIZE - 1); in ehv_bc_tx_dequeue() 425 count = CIRC_CNT(bc->head, bc->tail, BUF_SIZE); in ehv_bc_tx_dequeue() 430 if (CIRC_CNT(bc->head, bc->tail, BUF_SIZE)) in ehv_bc_tx_dequeue() 479 len = CIRC_SPACE_TO_END(bc->head, bc->tail, BUF_SIZE); in ehv_bc_tty_write() 484 bc->head = (bc->head + len) & (BUF_SIZE - 1); in ehv_bc_tty_write() 546 count = CIRC_SPACE(bc->head, bc->tail, BUF_SIZE); in ehv_bc_tty_write_room()
|
/linux/drivers/input/joystick/ |
A D | joydump.c | 26 #define BUF_SIZE 256 macro 67 buf = kmalloc_array(BUF_SIZE, sizeof(struct joydump), GFP_KERNEL); in joydump_connect() 86 while (i < BUF_SIZE && t < timeout) { in joydump_connect()
|
/linux/arch/um/drivers/ |
A D | slip_common.h | 5 #define BUF_SIZE 1500 macro 8 #define ENC_BUF_SIZE (2 * BUF_SIZE + 2)
|
A D | slirp_user.c | 123 .mtu = BUF_SIZE, 124 .max_packet = BUF_SIZE,
|
A D | slip_user.c | 250 .mtu = BUF_SIZE, 251 .max_packet = BUF_SIZE,
|
/linux/tools/vm/ |
A D | page_owner_sort.c | 131 #define BUF_SIZE (128 * 1024) macro 184 buf = malloc(BUF_SIZE); in main() 191 ret = read_block(buf, BUF_SIZE, fin); in main()
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
A D | mcg.c | 903 #define BUF_SIZE 256 in mlx4_err_rule() macro 905 char buf[BUF_SIZE]; in mlx4_err_rule() 909 len += scnprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule() 916 len += scnprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule() 919 len += scnprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule() 923 len += scnprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule() 930 len += scnprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule() 952 len += scnprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule() 954 len += scnprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule() 960 len += scnprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule() [all …]
|
/linux/Documentation/usb/ |
A D | gadget_printer.rst | 167 #define BUF_SIZE 512 221 static char buf[BUF_SIZE]; 231 bytes_read = read(fd[0].fd, buf, BUF_SIZE); 272 static char buf[BUF_SIZE]; 274 int bytes_read = fread(buf, 1, BUF_SIZE, stdin); 318 static char buf[BUF_SIZE]; 331 bytes_read = read(fd, buf, BUF_SIZE);
|
/linux/samples/watch_queue/ |
A D | watch_test.c | 30 #define BUF_SIZE 256 macro 164 if (ioctl(fd, IOC_WATCH_QUEUE_SET_SIZE, BUF_SIZE) == -1) { in main()
|
/linux/drivers/platform/chrome/ |
A D | cros_usbpd_logger.c | 26 #define BUF_SIZE 80 macro 56 i = vsnprintf(buf + pos, BUF_SIZE - pos, fmt, args); in append_str() 87 char buf[BUF_SIZE + 1]; in cros_usbpd_print_log_entry()
|
/linux/drivers/media/rc/ |
A D | iguanair.c | 17 #define BUF_SIZE 152 macro 60 #define MAX_OUT_PACKET (sizeof(struct send_packet) + BUF_SIZE) 244 if (ir->bufsize > BUF_SIZE) { in iguanair_get_features() 247 ir->bufsize = BUF_SIZE; in iguanair_get_features()
|
/linux/drivers/net/hamradio/ |
A D | dmascc.c | 39 #define BUF_SIZE 1576 /* BUF_SIZE >= mtu + hard_header_len */ macro 191 char rx_buf[NUM_RX_BUF][BUF_SIZE]; 197 char tx_buf[NUM_TX_BUF][BUF_SIZE]; 1023 set_dma_count(priv->param.dma, BUF_SIZE); in rx_on() 1165 if (priv->rx_ptr < BUF_SIZE) in rx_isr() 1195 cb = BUF_SIZE - get_dma_residue(priv->param.dma) - in special_condition() 1236 set_dma_count(priv->param.dma, BUF_SIZE); in special_condition()
|
/linux/drivers/media/usb/airspy/ |
A D | airspy.c | 125 #define BUF_SIZE 128 macro 126 u8 buf[BUF_SIZE]; 966 u8 u8tmp, buf[BUF_SIZE]; in airspy_probe() 989 buf, BUF_SIZE); in airspy_probe() 995 buf[BUF_SIZE - 1] = '\0'; in airspy_probe()
|
/linux/drivers/atm/ |
A D | solos-pci.c | 57 #define BUF_SIZE 2048 macro 470 if (size > (BUF_SIZE - sizeof(*header))) { in send_command() 1091 data = card->dma_bounce + (BUF_SIZE * port); in fpga_tx() 1144 if (pktlen > (BUF_SIZE - sizeof(*header))) { in psend() 1252 card->buffer_size = BUF_SIZE; in fpga_probe() 1281 BUF_SIZE, GFP_KERNEL); in fpga_probe()
|
A D | iphase.h | 542 #define BUF_SIZE 0x42 macro
|
/linux/scripts/kconfig/lxdialog/ |
A D | dialog.h | 42 #define BUF_SIZE (10*1024) macro
|
/linux/drivers/media/usb/hackrf/ |
A D | hackrf.c | 140 #define BUF_SIZE 24 macro 141 u8 buf[BUF_SIZE]; 1350 u8 u8tmp, buf[BUF_SIZE]; in hackrf_probe() 1381 buf, BUF_SIZE); in hackrf_probe() 1387 buf[BUF_SIZE - 1] = '\0'; in hackrf_probe()
|
/linux/drivers/scsi/ |
A D | scsi_transport_sas.c | 1226 #define BUF_SIZE 64 macro 1230 char *buffer = kzalloc(BUF_SIZE, GFP_KERNEL), *msdata; in sas_read_port_mode_page() 1238 error = scsi_mode_sense(sdev, 1, 0x19, buffer, BUF_SIZE, 30*HZ, 3, in sas_read_port_mode_page() 1247 if (msdata - buffer > BUF_SIZE - 8) in sas_read_port_mode_page()
|