/freebsd/contrib/libarchive/libarchive/test/ |
H A D | test_short_writes.c | 56 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 D | dt_buf.c | 97 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 D | t_modautoload.c | 37 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 D | ht-internal.h | 319 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 D | ht-internal.h | 319 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 D | mlock_helper.c | 45 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 D | netlink_message_writer.c | 139 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 D | alias_irc.c | 446 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 D | alias_smedia.c | 239 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 D | alias_ftp.c | 741 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 D | MemoryTagManagerAArch64MTE.cpp | 62 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 D | environ.c | 127 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 D | pnvm.c | 242 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 D | buffer_compat.h | 73 typedef void (*evbuffer_cb)(struct evbuffer *buffer, size_t old_len, size_t new_len, void *arg);
|
/freebsd/contrib/libevent/include/event2/ |
H A D | buffer_compat.h | 73 typedef void (*evbuffer_cb)(struct evbuffer *buffer, size_t old_len, size_t new_len, void *arg);
|
/freebsd/contrib/libarchive/tar/ |
H A D | util.c | 311 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 D | ice_dcb.h | 228 u16 buf_size, u16 old_len, u16 new_len, u16 offset,
|
H A D | ice_dcb.c | 173 * @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 D | gcm.c | 336 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 D | ef10_nvram.c | 615 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 D | imgact_elf.c | 2097 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 D | linux_misc.c | 322 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 D | i40e_nvm.c | 1632 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 D | pci.c | 1111 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 D | regress_buffer.c | 1930 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()
|