Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/u-boot/common/spl/
H A Dspl_ymodem.c19 #define BUF_SIZE 1024 macro
46 res = xyzModem_stream_read(buf, BUF_SIZE, &err); in ymodem_read_fit()
54 memcpy(addr, &buf[BUF_SIZE - res], res); in ymodem_read_fit()
59 res = xyzModem_stream_read(buf, BUF_SIZE, &err); in ymodem_read_fit()
79 char buf[BUF_SIZE]; in spl_ymodem_load_image()
89 res = xyzModem_stream_read(buf, BUF_SIZE, &err); in spl_ymodem_load_image()
104 info.image_read = BUF_SIZE; in spl_ymodem_load_image()
109 while ((res = xyzModem_stream_read(buf, BUF_SIZE, &err)) > 0) in spl_ymodem_load_image()
121 while ((res = xyzModem_stream_read(buf, BUF_SIZE, &err)) > 0) { in spl_ymodem_load_image()
/OK3568_Linux_fs/kernel/tools/testing/selftests/net/
H A 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()
/OK3568_Linux_fs/kernel/tools/perf/util/
H A Dperf_event_attr_fprintf.c73 #define BUF_SIZE 1024 macro
75 #define p_hex(val) snprintf(buf, BUF_SIZE, "%#"PRIx64, (uint64_t)(val))
76 #define p_unsigned(val) snprintf(buf, BUF_SIZE, "%"PRIu64, (uint64_t)(val))
77 #define p_signed(val) snprintf(buf, BUF_SIZE, "%"PRId64, (int64_t)(val))
78 #define p_sample_type(val) __p_sample_type(buf, BUF_SIZE, val)
79 #define p_branch_sample_type(val) __p_branch_sample_type(buf, BUF_SIZE, val)
80 #define p_read_format(val) __p_read_format(buf, BUF_SIZE, val)
95 char buf[BUF_SIZE]; in perf_event_attr__fprintf()
/OK3568_Linux_fs/kernel/lib/
H A Dtest_printf.c29 #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()
81 if (memchr_inv(test_buffer + written + 1, FILL_CHAR, BUF_SIZE + PAD_SIZE - (written + 1))) { in do_test()
102 if (elen >= BUF_SIZE) { in __test()
117 failed_tests += do_test(BUF_SIZE, expect, elen, fmt, ap); in __test()
612 cmp_buffer = kmalloc(BUF_SIZE, GFP_KERNEL); in flags()
618 snprintf(cmp_buffer, BUF_SIZE, "%#lx", (unsigned long) gfp); in flags()
621 snprintf(cmp_buffer, BUF_SIZE, "__GFP_ATOMIC|%#lx", in flags()
709 alloced_buffer = kmalloc(BUF_SIZE + 2*PAD_SIZE, GFP_KERNEL); in selftest()
/OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/iq_parser/
H A Dtinyxml2.cpp1108 char buf[BUF_SIZE]; in SetAttribute()
1109 XMLUtil::ToStr( v, buf, BUF_SIZE ); in SetAttribute()
1116 char buf[BUF_SIZE]; in SetAttribute()
1117 XMLUtil::ToStr( v, buf, BUF_SIZE ); in SetAttribute()
1124 char buf[BUF_SIZE]; in SetAttribute()
1125 XMLUtil::ToStr( v, buf, BUF_SIZE ); in SetAttribute()
1131 char buf[BUF_SIZE]; in SetAttribute()
1132 XMLUtil::ToStr( v, buf, BUF_SIZE ); in SetAttribute()
1138 char buf[BUF_SIZE]; in SetAttribute()
1139 XMLUtil::ToStr( v, buf, BUF_SIZE ); in SetAttribute()
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/
H A 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()
/OK3568_Linux_fs/kernel/sound/parisc/
H A 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)
H A 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,
629 BUF_SIZE*GRAVEYARD_BUFS, in snd_harmony_pcm_init()
639 BUF_SIZE*SILENCE_BUFS, in snd_harmony_pcm_init()
/OK3568_Linux_fs/kernel/drivers/tty/
H A Dehv_bytechan.c41 #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()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/platform/default/
H A Djpeg_reader.cpp15 const static unsigned BUF_SIZE = 4096; variable
20 std::array<JOCTET, BUF_SIZE> buffer;
30 wrap->stream->read(reinterpret_cast<char*>(&wrap->buffer[0]), BUF_SIZE); in fill_input_buffer()
33 wrap->manager.bytes_in_buffer = BUF_SIZE; in fill_input_buffer()
44 wrap->manager.next_input_byte = &wrap->buffer[BUF_SIZE - wrap->manager.bytes_in_buffer]; in skip()
/OK3568_Linux_fs/kernel/drivers/input/joystick/
H A 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()
/OK3568_Linux_fs/kernel/tools/vm/
H A Dpage_owner_sort.c86 #define BUF_SIZE (128 * 1024) macro
114 buf = malloc(BUF_SIZE); in main()
121 ret = read_block(buf, BUF_SIZE, fin); in main()
/OK3568_Linux_fs/kernel/arch/um/drivers/
H A Dslip_common.h5 #define BUF_SIZE 1500 macro
8 #define ENC_BUF_SIZE (2 * BUF_SIZE + 2)
H A Dslirp_user.c123 .mtu = BUF_SIZE,
124 .max_packet = BUF_SIZE,
H A Dslip_user.c250 .mtu = BUF_SIZE,
251 .max_packet = BUF_SIZE,
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx4/
H A Dmcg.c903 #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()
934 len += scnprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule()
942 len += scnprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule()
946 len += scnprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule()
[all …]
/OK3568_Linux_fs/kernel/Documentation/usb/
H A 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);
/OK3568_Linux_fs/kernel/samples/watch_queue/
H A Dwatch_test.c30 #define BUF_SIZE 256 macro
164 if (ioctl(fd, IOC_WATCH_QUEUE_SET_SIZE, BUF_SIZE) == -1) { in main()
/OK3568_Linux_fs/kernel/drivers/platform/chrome/
H A Dcros_usbpd_logger.c26 #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()
/OK3568_Linux_fs/kernel/drivers/media/rc/
H A Diguanair.c17 #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()
/OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/csf/
H A Dmali_kbase_debug_csf_fault.c104 #define BUF_SIZE 64 in debug_csf_fault_read() macro
108 char buf[BUF_SIZE]; in debug_csf_fault_read()
/OK3568_Linux_fs/kernel/drivers/net/hamradio/
H A 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()
/OK3568_Linux_fs/buildroot/package/fbterm/
H A D0004-iconv.patch22 #define BUF_SIZE 10240
/OK3568_Linux_fs/kernel/drivers/media/usb/airspy/
H A 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()
/OK3568_Linux_fs/kernel/drivers/atm/
H A 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()
1252 card->buffer_size = BUF_SIZE; in fpga_probe()
1281 BUF_SIZE, GFP_KERNEL); in fpga_probe()

12