Home
last modified time | relevance | path

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

12

/Linux-v5.4/tools/testing/selftests/net/
Dtcp_inq.c29 #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-v5.4/tools/perf/util/
Dperf_event_attr_fprintf.c71 #define BUF_SIZE 1024 macro
73 #define p_hex(val) snprintf(buf, BUF_SIZE, "%#"PRIx64, (uint64_t)(val))
74 #define p_unsigned(val) snprintf(buf, BUF_SIZE, "%"PRIu64, (uint64_t)(val))
75 #define p_signed(val) snprintf(buf, BUF_SIZE, "%"PRId64, (int64_t)(val))
76 #define p_sample_type(val) __p_sample_type(buf, BUF_SIZE, val)
77 #define p_branch_sample_type(val) __p_branch_sample_type(buf, BUF_SIZE, val)
78 #define p_read_format(val) __p_read_format(buf, BUF_SIZE, val)
93 char buf[BUF_SIZE]; in perf_event_attr__fprintf()
/Linux-v5.4/tools/testing/selftests/bpf/
Durandom_read.c8 #define BUF_SIZE 256 macro
13 char buf[BUF_SIZE]; in urandom_read()
17 read(fd, buf, BUF_SIZE); in urandom_read()
/Linux-v5.4/lib/
Dtest_printf.c27 #define BUF_SIZE 256 macro
45 memset(alloced_buffer, FILL_CHAR, BUF_SIZE + 2*PAD_SIZE); in do_test()
62 if (memchr_inv(test_buffer, FILL_CHAR, BUF_SIZE + PAD_SIZE)) { in do_test()
77 if (memchr_inv(test_buffer + written + 1, FILL_CHAR, BUF_SIZE + PAD_SIZE - (written + 1))) { in do_test()
98 if (elen >= BUF_SIZE) { in __test()
113 failed_tests += do_test(BUF_SIZE, expect, elen, fmt, ap); in __test()
579 cmp_buffer = kmalloc(BUF_SIZE, GFP_KERNEL); in flags()
585 snprintf(cmp_buffer, BUF_SIZE, "%#lx", (unsigned long) gfp); in flags()
588 snprintf(cmp_buffer, BUF_SIZE, "__GFP_ATOMIC|%#lx", in flags()
622 alloced_buffer = kmalloc(BUF_SIZE + 2*PAD_SIZE, GFP_KERNEL); in selftest()
/Linux-v5.4/sound/parisc/
Dharmony.h64 #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)
Dharmony.c264 .period_bytes_min = BUF_SIZE,
265 .period_bytes_max = BUF_SIZE,
285 .period_bytes_min = BUF_SIZE,
286 .period_bytes_max = BUF_SIZE,
641 BUF_SIZE*GRAVEYARD_BUFS, in snd_harmony_pcm_init()
651 BUF_SIZE*SILENCE_BUFS, in snd_harmony_pcm_init()
/Linux-v5.4/drivers/tty/
Dehv_bytechan.c41 #define BUF_SIZE 2048 macro
52 unsigned char buf[BUF_SIZE]; /* transmit circular buffer */
401 CIRC_CNT_TO_END(bc->head, bc->tail, BUF_SIZE), in ehv_bc_tx_dequeue()
408 bc->tail = (bc->tail + len) & (BUF_SIZE - 1); in ehv_bc_tx_dequeue()
410 count = CIRC_CNT(bc->head, bc->tail, BUF_SIZE); in ehv_bc_tx_dequeue()
415 if (CIRC_CNT(bc->head, bc->tail, BUF_SIZE)) in ehv_bc_tx_dequeue()
464 len = CIRC_SPACE_TO_END(bc->head, bc->tail, BUF_SIZE); in ehv_bc_tty_write()
469 bc->head = (bc->head + len) & (BUF_SIZE - 1); in ehv_bc_tty_write()
531 count = CIRC_SPACE(bc->head, bc->tail, BUF_SIZE); in ehv_bc_tty_write_room()
/Linux-v5.4/drivers/input/joystick/
Djoydump.c26 #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-v5.4/tools/vm/
Dpage_owner_sort.c85 #define BUF_SIZE (128 * 1024) macro
113 buf = malloc(BUF_SIZE); in main()
120 ret = read_block(buf, BUF_SIZE, fin); in main()
/Linux-v5.4/arch/um/drivers/
Dslip_common.h5 #define BUF_SIZE 1500 macro
8 #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-v5.4/drivers/net/ethernet/mellanox/mlx4/
Dmcg.c903 #define BUF_SIZE 256 in mlx4_err_rule() macro
905 char buf[BUF_SIZE]; in mlx4_err_rule()
909 len += snprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule()
916 len += snprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule()
919 len += snprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule()
923 len += snprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule()
930 len += snprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule()
934 len += snprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule()
942 len += snprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule()
946 len += snprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule()
[all …]
/Linux-v5.4/drivers/platform/chrome/
Dcros_usbpd_logger.c27 #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-v5.4/Documentation/usb/
Dgadget_printer.rst167 #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-v5.4/init/
Dinitramfs.c567 #define BUF_SIZE 1024 macro
579 buf = kzalloc(BUF_SIZE, GFP_KERNEL); in clean_rootfs()
587 num = ksys_getdents64(fd, dirp, BUF_SIZE); in clean_rootfs()
606 memset(buf, 0, BUF_SIZE); in clean_rootfs()
607 num = ksys_getdents64(fd, dirp, BUF_SIZE); in clean_rootfs()
/Linux-v5.4/drivers/media/rc/
Diguanair.c18 #define BUF_SIZE 152 macro
63 #define MAX_OUT_PACKET (sizeof(struct send_packet) + BUF_SIZE)
247 if (ir->bufsize > BUF_SIZE) { in iguanair_get_features()
250 ir->bufsize = BUF_SIZE; in iguanair_get_features()
Dimon.c43 #define BUF_SIZE 128 macro
/Linux-v5.4/drivers/net/hamradio/
Ddmascc.c39 #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];
1026 set_dma_count(priv->param.dma, BUF_SIZE); in rx_on()
1168 if (priv->rx_ptr < BUF_SIZE) in rx_isr()
1198 cb = BUF_SIZE - get_dma_residue(priv->param.dma) - in special_condition()
1239 set_dma_count(priv->param.dma, BUF_SIZE); in special_condition()
/Linux-v5.4/drivers/media/usb/airspy/
Dairspy.c125 #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-v5.4/drivers/atm/
Dsolos-pci.c57 #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()
1254 card->buffer_size = BUF_SIZE; in fpga_probe()
1283 BUF_SIZE, GFP_KERNEL); in fpga_probe()
Diphase.h543 #define BUF_SIZE 0x42 macro
/Linux-v5.4/scripts/kconfig/lxdialog/
Ddialog.h42 #define BUF_SIZE (10*1024) macro
/Linux-v5.4/drivers/media/usb/hackrf/
Dhackrf.c140 #define BUF_SIZE 24 macro
141 u8 buf[BUF_SIZE];
1353 u8 u8tmp, buf[BUF_SIZE]; in hackrf_probe()
1384 buf, BUF_SIZE); in hackrf_probe()
1390 buf[BUF_SIZE - 1] = '\0'; in hackrf_probe()
/Linux-v5.4/drivers/scsi/
Dscsi_transport_sas.c1225 #define BUF_SIZE 64 macro
1229 char *buffer = kzalloc(BUF_SIZE, GFP_KERNEL), *msdata; in sas_read_port_mode_page()
1237 res = 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()

12