Searched refs:buff_size (Results 1 - 25 of 34) sorted by relevance

12

/freebsd-11-stable/contrib/libarchive/libarchive/test/
H A Dtest_write_disk_sparse.c40 size_t buff_size = 64 * 1024; local
45 buff = malloc(buff_size);
52 archive_entry_set_size(ae, 8 * buff_size);
60 memset(buff, 0, buff_size);
63 assertEqualInt(buff_size, archive_write_data(a, buff, buff_size));
66 memset(buff, 0, buff_size);
67 memcpy(buff + buff_size / 2 - 3, data, sizeof(data));
69 assertEqualInt(buff_size, archive_write_data(a, buff, buff_size));
137 size_t buff_size = 64 * 1024; local
[all...]
H A Dtest_write_disk_secure744.c42 size_t buff_size = 8192;
43 char *buff = malloc(buff_size);
57 while (p + 500 < buff + buff_size) {
H A Dtest_read_pax_truncated.c32 size_t used, i, buff_size = 1000000; local
34 char *buff = malloc(buff_size);
35 char *buff2 = malloc(buff_size);
43 archive_write_open_memory(a, buff, buff_size, &used));
169 memcpy(buff2, buff, buff_size);
182 memcpy(buff2, buff, buff_size);
193 memcpy(buff2, buff, buff_size);
206 memcpy(buff2, buff, buff_size);
220 memcpy(buff2, buff, buff_size);
232 memcpy(buff2, buff, buff_size);
[all...]
H A Dtest_read_format_zip_high_compression.c86 const size_t buff_size = 2 * 1024 * 1024; local
97 assert((buff = malloc(buff_size)) != NULL);
119 assertEqualInt(ARCHIVE_OK, archive_write_open_memory(a, buff, buff_size, &used));
H A Dmain.c1062 size_t buff_size; local
1071 buff = slurpfile(&buff_size, "%s", pathname);
1098 for (c = '\0', p = buff; p < buff + buff_size; ++p) {
1113 for (j = 0, p = buff; p < buff + buff_size;
2750 size_t tried_size, buff_size; local
2754 buff_size = PATH_MAX;
2756 buff_size = 8192;
2758 buff = calloc(buff_size, 1);
2765 tried_size = buff_size * 2;
2775 snprintf(buff, buff_size, "
[all...]
/freebsd-11-stable/contrib/libarchive/tar/test/
H A Dtest_option_r.c35 size_t buff_size = 35000; local
63 buff = malloc(buff_size);
68 for (i = 0; i < (int)buff_size; ++i)
70 buff[buff_size - 1] = '\0';
82 buff_size_rounded = ((buff_size + 511) / 512) * 512;
88 assertEqualMem(p1 + 1536, buff, buff_size);
/freebsd-11-stable/contrib/libarchive/libarchive/
H A Darchive_read_disk_set_standard_lookup.c65 size_t buff_size; member in struct:name_cache
194 if (cache->buff_size == 0) {
195 cache->buff_size = 256;
196 cache->buff = malloc(cache->buff_size);
203 cache->buff, cache->buff_size, &result);
213 nbuff_size = cache->buff_size * 2;
218 cache->buff_size = nbuff_size;
263 if (cache->buff_size == 0) {
264 cache->buff_size = 256;
265 cache->buff = malloc(cache->buff_size);
[all...]
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_file.h63 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size,
65 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size,
100 // in '*buff_size'.
101 void *MapFileToMemory(const char *file_name, uptr *buff_size);
H A Dsanitizer_file.cpp95 bool ReadFileToBuffer(const char *file_name, char **buff, uptr *buff_size, argument
98 *buff_size = 0;
107 UnmapOrDie(*buff, *buff_size);
109 *buff_size = size;
112 UnmapOrDie(*buff, *buff_size);
122 UnmapOrDie(*buff, *buff_size);
H A Dsanitizer_rtems.cpp210 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, argument
212 uptr res = read(fd, buff, buff_size);
220 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size, uptr *bytes_written, argument
222 uptr res = write(fd, buff, buff_size);
H A Dsanitizer_posix.cpp172 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, argument
174 uptr res = internal_read(fd, buff, buff_size);
182 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size, uptr *bytes_written, argument
184 uptr res = internal_write(fd, buff, buff_size);
192 void *MapFileToMemory(const char *file_name, uptr *buff_size) { argument
198 *buff_size = RoundUpTo(fsize, GetPageSizeCached());
199 uptr map = internal_mmap(nullptr, *buff_size, PROT_READ, MAP_PRIVATE, fd, 0);
H A Dsanitizer_win.cpp376 void *MapFileToMemory(const char *file_name, uptr *buff_size) { argument
708 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, argument
716 bool success = ::ReadFile(fd, buff, buff_size, &num_read_long, nullptr);
729 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size, uptr *bytes_written, argument
754 if (!WriteFile(fd, buff, buff_size, &bytes_written_32, 0)) {
H A Dsanitizer_fuchsia.cpp402 bool ReadFileToBuffer(const char *file_name, char **buff, uptr *buff_size, argument
417 *buff_size = map_size;
/freebsd-11-stable/contrib/libarchive/cpio/
H A Dcpio.h95 size_t buff_size; member in struct:cpio
/freebsd-11-stable/sys/dev/ntb/
H A Dntb_transport.c183 size_t buff_size; member in struct:ntb_transport_mw
378 mw->buff_size = 0;
1182 size_t xlat_size, buff_size; local
1189 buff_size = xlat_size;
1195 if (mw->buff_size != 0)
1200 mw->buff_size = buff_size;
1204 NULL, NULL, mw->buff_size, 1, mw->buff_size,
1207 mw->buff_size, m
[all...]
/freebsd-11-stable/contrib/libarchive/tar/
H A Dwrite.c441 bsdtar->buff_size = 64 * 1024;
442 while (bsdtar->buff_size < (size_t)bsdtar->bytes_per_block)
443 bsdtar->buff_size *= 2;
445 bsdtar->buff_size += 16 * 1024;
448 if ((bsdtar->buff = malloc(bsdtar->buff_size)) == NULL)
754 memset(null_buff, 0, bsdtar->buff_size);
758 if (sparse > (int64_t)bsdtar->buff_size)
759 ns = bsdtar->buff_size;
H A Dbsdtar.h98 size_t buff_size; /* for write.c */ member in struct:bsdtar
/freebsd-11-stable/sys/dev/ixl/
H A Di40e_adminq.c799 * @buff_size: size of buffer for indirect commands
808 u16 buff_size,
865 if (buff_size > hw->aq.asq_buf_size) {
869 buff_size);
908 i40e_memcpy(dma_buff->va, buff, buff_size,
910 desc_on_ring->datalen = CPU_TO_LE16(buff_size);
924 buff, buff_size);
953 i40e_memcpy(buff, dma_buff->va, buff_size,
977 i40e_debug_aq(hw, I40E_DEBUG_AQ_COMMAND, (void *)desc, buff, buff_size);
805 i40e_asq_send_command(struct i40e_hw *hw, struct i40e_aq_desc *desc, void *buff, u16 buff_size, struct i40e_asq_cmd_details *cmd_details) argument
H A Di40e_prototype.h69 u16 buff_size,
265 void *buff, u16 buff_size,
268 void *buff, u16 buff_size, u16 *data_size,
281 u8 mib_type, void *buff, u16 buff_size,
285 u8 mib_type, void *buff, u16 buff_size,
304 void *buff, u16 buff_size,
545 u8 table_id, u32 start_index, u16 buff_size,
H A Di40e_common.c3596 * @buff_size: buffer size
3600 void *buff, u16 buff_size,
4016 * @buff_size: Size of the virtual buffer
4024 void *buff, u16 buff_size, u16 *data_size,
4043 if (buff_size > I40E_AQ_LARGE_BUF)
4046 status = i40e_asq_send_command(hw, &desc, buff, buff_size, cmd_details);
4184 * @buff_size: size of the buffer (in bytes)
4192 u8 mib_type, void *buff, u16 buff_size,
4203 if (buff_size == 0 || !buff)
4214 desc.datalen = CPU_TO_LE16(buff_size);
3599 i40e_aq_oem_post_update(struct i40e_hw *hw, void *buff, u16 buff_size, struct i40e_asq_cmd_details *cmd_details) argument
4023 i40e_aq_discover_capabilities(struct i40e_hw *hw, void *buff, u16 buff_size, u16 *data_size, enum i40e_admin_queue_opc list_type_opc, struct i40e_asq_cmd_details *cmd_details) argument
4191 i40e_aq_get_lldp_mib(struct i40e_hw *hw, u8 bridge_type, u8 mib_type, void *buff, u16 buff_size, u16 *local_len, u16 *remote_len, struct i40e_asq_cmd_details *cmd_details) argument
4241 i40e_aq_set_lldp_mib(struct i40e_hw *hw, u8 mib_type, void *buff, u16 buff_size, struct i40e_asq_cmd_details *cmd_details) argument
4446 i40e_aq_get_cee_dcb_config(struct i40e_hw *hw, void *buff, u16 buff_size, struct i40e_asq_cmd_details *cmd_details) argument
5094 i40e_aq_tx_sched_cmd(struct i40e_hw *hw, u16 seid, void *buff, u16 buff_size, enum i40e_admin_queue_opc opcode, struct i40e_asq_cmd_details *cmd_details) argument
6008 i40e_aq_debug_dump(struct i40e_hw *hw, u8 cluster_id, u8 table_id, u32 start_index, u16 buff_size, void *buff, u16 *ret_buff_size, u8 *ret_next_table, u32 *ret_next_index, struct i40e_asq_cmd_details *cmd_details) argument
[all...]
H A Di40e_nvm.c1457 u32 buff_size = 0; local
1484 buff_size = max(aq_data_len, (u32)LE16_TO_CPU(aq_desc->datalen));
1485 if (buff_size) {
1507 buff_size, &cmd_details);
/freebsd-11-stable/contrib/llvm-project/openmp/runtime/src/
H A Dz_Windows_NT_util.cpp1513 ULONG buff_size = 0; local
1543 buff_size = glb_buff_size;
1545 buff_size = 2 * buff_size;
1548 buffer = KMP_INTERNAL_REALLOC(buffer, buff_size);
1554 buff_size, &info_size);
1558 glb_buff_size = buff_size;
1569 CHECK(buff_size >= info_size);
/freebsd-11-stable/contrib/libarchive/test_utils/
H A Dtest_main.c1203 size_t buff_size; local
1212 buff = slurpfile(&buff_size, "%s", pathname);
1240 for (c = '\0', p = buff; p < buff + buff_size; ++p) {
1256 for (j = 0, p = buff; p < buff + buff_size;
3649 size_t tried_size, buff_size; local
3653 buff_size = PATH_MAX;
3655 buff_size = 8192;
3657 buff = calloc(buff_size, 1);
3664 tried_size = buff_size * 2;
3674 snprintf(buff, buff_size, "
[all...]
/freebsd-11-stable/sys/dev/mge/
H A Dif_mgevar.h53 uint16_t buff_size; member in struct:mge_desc
/freebsd-11-stable/sys/dev/qlnx/qlnxe/
H A Decore_iwarp.h69 u32 buff_size; member in struct:ecore_iwarp_ll2_buff

Completed in 212 milliseconds

12