Home
last modified time | relevance | path

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

12

/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_short_writes.c56 size_t new_len = checker->shortbuf_len + to_write; in short_write_callback() local
57 char *new_buf = realloc(checker->shortbuf, new_len); in short_write_callback()
62 checker->shortbuf_len = new_len; in short_write_callback()
74 size_t new_len = checker->fullbuf_len + to_write; in full_write_callback() local
75 char *new_buf = realloc(checker->fullbuf, new_len); in full_write_callback()
80 checker->fullbuf_len = new_len; in full_write_callback()
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_buf.c97 size_t new_len = bp->dbu_len * 2; in dt_buf_write() local
101 while (bp->dbu_ptr + adj + len > bp->dbu_buf + new_len) { in dt_buf_write()
102 new_len *= 2; in dt_buf_write()
106 if ((new_buf = dt_zalloc(dtp, new_len)) == NULL) { in dt_buf_write()
116 bp->dbu_len = new_len; in dt_buf_write()
/freebsd/contrib/netbsd-tests/rump/modautoload/
H A Dt_modautoload.c37 size_t old_len, new_len; in mountkernfs() local
50 new_len = sizeof(new_autoload); in mountkernfs()
53 &new_autoload, new_len); in mountkernfs()
/freebsd/contrib/ntp/sntp/libevent/
H A Dht-internal.h319 unsigned new_len, new_load_limit; \
328 new_len = name##_PRIMES[++prime_idx]; \
329 new_load_limit = (unsigned)(load*new_len); \
332 if ((new_table = mallocfn(new_len*sizeof(struct type*)))) { \
334 memset(new_table, 0, new_len*sizeof(struct type*)); \
341 b2 = HT_ELT_HASH_(elm, field, hashfn) % new_len; \
352 new_table = reallocfn(head->hth_table, new_len*sizeof(struct type*)); \
355 (new_len - head->hth_table_length)*sizeof(struct type*)); \
359 b2 = HT_ELT_HASH_(e, field, hashfn) % new_len; \
371 head->hth_table_length = new_len; \
/freebsd/contrib/libevent/
H A Dht-internal.h319 unsigned new_len, new_load_limit; \
328 new_len = name##_PRIMES[++prime_idx]; \
329 new_load_limit = (unsigned)(load*new_len); \
332 if ((new_table = mallocfn(new_len*sizeof(struct type*)))) { \
334 memset(new_table, 0, new_len*sizeof(struct type*)); \
341 b2 = HT_ELT_HASH_(elm, field, hashfn) % new_len; \
352 new_table = reallocfn(head->hth_table, new_len*sizeof(struct type*)); \
355 (new_len - head->hth_table_length)*sizeof(struct type*)); \
359 b2 = HT_ELT_HASH_(e, field, hashfn) % new_len; \
371 head->hth_table_length = new_len; \
/freebsd/lib/libc/tests/sys/
H A Dmlock_helper.c45 size_t new_len = (new_value == NULL ? 0 : sizeof(*new_value)); in vm_max_wired_sysctl() local
51 new_value, new_len) == 0, in vm_max_wired_sysctl()
56 new_value, new_len) == 0, in vm_max_wired_sysctl()
/freebsd/sys/netlink/
H A Dnetlink_message_writer.c139 u_int completed_len, new_len, last_len; in _nlmsg_refill_buffer() local
154 new_len = max(nw->buf->buflen, NLMBUFSIZE); in _nlmsg_refill_buffer()
158 new_len = NLMBUFSIZE; in _nlmsg_refill_buffer()
160 new_len = nw->buf->buflen * 2; in _nlmsg_refill_buffer()
161 while (new_len < required_len) in _nlmsg_refill_buffer()
162 new_len *= 2; in _nlmsg_refill_buffer()
165 new = nl_buf_alloc(new_len, nw->malloc_flag | M_ZERO); in _nlmsg_refill_buffer()
/freebsd/sys/netinet/libalias/
H A Dalias_irc.c446 u_short new_len; in AliasHandleIrcOut() local
448 new_len = htons(hlen + iCopy + copyat); in AliasHandleIrcOut()
450 &new_len, in AliasHandleIrcOut()
453 pip->ip_len = new_len; in AliasHandleIrcOut()
H A Dalias_smedia.c239 u_short p[2], new_len; in alias_rtsp_out() local
399 new_len = htons(hlen + new_dlen); in alias_rtsp_out()
400 DifferentialChecksum(&pip->ip_sum, &new_len, &pip->ip_len, 1); in alias_rtsp_out()
401 pip->ip_len = new_len; in alias_rtsp_out()
H A Dalias_ftp.c741 u_short new_len; in NewFtpMessage() local
743 new_len = htons(hlen + in NewFtpMessage()
746 &new_len, in NewFtpMessage()
749 pip->ip_len = new_len; in NewFtpMessage()
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/Utility/
H A DMemoryTagManagerAArch64MTE.cpp62 size_t new_len = range.GetByteSize() + align_down_amount; in ExpandToGranule() local
64 size_t align_up_amount = granule - (new_len % granule); in ExpandToGranule()
66 new_len += align_up_amount; in ExpandToGranule()
68 return TagRange(new_start, new_len); in ExpandToGranule()
/freebsd/contrib/tcp_wrappers/
H A Denviron.c127 static char *cmalloc(int new_len, char *old, int old_len) in cmalloc() argument
129 char *new = malloc(new_len); in cmalloc()
/freebsd/sys/contrib/dev/iwlwifi/fw/
H A Dpnvm.c242 size_t new_len; in iwl_pnvm_get_from_fs()
254 new_len = pnvm->size; in iwl_get_pnvm_image()
261 *len = new_len; in iwl_get_pnvm_image()
229 size_t new_len; iwl_pnvm_get_from_fs() local
/freebsd/contrib/ntp/sntp/libevent/include/event2/
H A Dbuffer_compat.h73 typedef void (*evbuffer_cb)(struct evbuffer *buffer, size_t old_len, size_t new_len, void *arg);
/freebsd/contrib/libevent/include/event2/
H A Dbuffer_compat.h73 typedef void (*evbuffer_cb)(struct evbuffer *buffer, size_t old_len, size_t new_len, void *arg);
/freebsd/contrib/libarchive/tar/
H A Dutil.c311 size_t new_len = old_len + strlen(newdir) + 2; local
312 bsdtar->pending_chdir = malloc(new_len);
316 snprintf(bsdtar->pending_chdir, new_len, "%s/%s",
/freebsd/sys/dev/ice/
H A Dice_dcb.h228 u16 buf_size, u16 old_len, u16 new_len, u16 offset,
H A Dice_dcb.c173 * @new_len: Length of the Updated TLV
184 u16 buf_size, u16 old_len, u16 new_len, u16 offset, in ice_aq_update_lldp_tlv() argument
193 if (offset == 0 || old_len == 0 || new_len == 0) in ice_aq_update_lldp_tlv()
204 cmd->new_len = CPU_TO_LE16(new_len); in ice_aq_update_lldp_tlv()
/freebsd/sys/contrib/openzfs/module/icp/algs/modes/
H A Dgcm.c336 size_t new_len; in gcm_mode_decrypt_contiguous_blocks() local
344 new_len = ctx->gcm_pt_buf_len + length; in gcm_mode_decrypt_contiguous_blocks()
345 new = vmem_alloc(new_len, KM_SLEEP); in gcm_mode_decrypt_contiguous_blocks()
360 ctx->gcm_pt_buf_len = new_len; in gcm_mode_decrypt_contiguous_blocks()
/freebsd/sys/dev/sfxge/common/
H A Def10_nvram.c615 size_t new_len; in tlv_update_partition_len_and_cks() local
630 new_len = tlv_block_length_used(&partition.tlv_cursor); in tlv_update_partition_len_and_cks()
631 if (new_len == 0) { in tlv_update_partition_len_and_cks()
635 header->total_length = __CPU_TO_LE_32(new_len); in tlv_update_partition_len_and_cks()
641 new_len - sizeof (*trailer) - sizeof (uint32_t)); in tlv_update_partition_len_and_cks()
/freebsd/sys/kern/
H A Dimgact_elf.c2097 size_t new_len, descsz, i; in __elfN() local
2132 new_len = (size_t)sect_len; in __elfN()
2134 if (new_len < descsz) { in __elfN()
2141 for (i = 0; i < descsz - new_len; i++) in __elfN()
2143 } else if (new_len > descsz) { in __elfN()
2148 KASSERT(new_len == descsz, ("%s: Note type %u changed as we " in __elfN()
2152 __func__, (unsigned)note.n_type, new_len, descsz, in __elfN()
/freebsd/sys/compat/linux/
H A Dlinux_misc.c322 args->new_len = round_page(args->new_len); in linux_mremap()
325 if (args->new_len > args->old_len) { in linux_mremap()
330 if (args->new_len < args->old_len) { in linux_mremap()
331 addr = args->addr + args->new_len; in linux_mremap()
332 len = args->old_len - args->new_len; in linux_mremap()
/freebsd/sys/dev/ixl/
H A Di40e_nvm.c1632 int new_len = aq_total_len - cmd->offset; in i40e_nvmupd_get_aq_result() local
1635 __func__, cmd->data_size, new_len); in i40e_nvmupd_get_aq_result()
1636 cmd->data_size = new_len; in i40e_nvmupd_get_aq_result()
/freebsd/sys/contrib/dev/rtw88/
H A Dpci.c1111 u32 new_len; in rtw_pci_rx_napi()
1134 new_len = pkt_stat.pkt_len + pkt_offset; in rtw_pci_rx_napi()
1135 new = dev_alloc_skb(new_len); in rtw_pci_rx_napi()
1140 skb_put_data(new, skb->data, new_len); in rtw_pci_rx_napi()
1110 u32 new_len; rtw_pci_rx_napi() local
/freebsd/contrib/ntp/sntp/libevent/test/
H A Dregress_buffer.c1930 size_t new_len = old_len + cbinfo->n_added - cbinfo->n_deleted; in log_change_callback() local
1933 (unsigned long)new_len); in log_change_callback()
1937 size_t new_len, void *arg) in self_draining_callback() argument
1939 if (new_len > old_len) in self_draining_callback()
1940 evbuffer_drain(evbuffer, new_len); in self_draining_callback()

12