/illumos-gate/usr/src/uts/common/c2/ |
H A D | audit_mem.c | 153 int new_len; in au_append_buf() local 158 new_len = (uint_t)(buf->len + len) > AU_BUFSIZE ? in au_append_buf() 160 bcopy(data, (buf->buf + buf->len), (uint_t)new_len); in au_append_buf() 161 buf->len += (uchar_t)new_len; in au_append_buf() 162 len -= new_len; in au_append_buf() 165 data += new_len; in au_append_buf() 171 new_len = len > AU_BUFSIZE ? AU_BUFSIZE : len; in au_append_buf() 172 bcopy(data, buf->buf, (uint_t)new_len); in au_append_buf() 173 buf->len = (uchar_t)new_len; in au_append_buf() 174 len -= new_len; in au_append_buf()
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_buf.c | 95 size_t new_len = bp->dbu_len * 2; in dt_buf_write() local 99 while (bp->dbu_ptr + adj + len > bp->dbu_buf + new_len) { in dt_buf_write() 100 new_len *= 2; in dt_buf_write() 104 if ((new_buf = dt_zalloc(dtp, new_len)) == NULL) { in dt_buf_write() 114 bp->dbu_len = new_len; in dt_buf_write()
|
/illumos-gate/usr/src/uts/common/inet/sctp/ |
H A D | sctp_output.c | 1207 int32_t new_len; in sctp_output() local 1237 new_len = seglen + chunklen; in sctp_output() 1241 if (new_len - new_xtralen > cansend || in sctp_output() 1242 new_len + extra > pathmax) { in sctp_output() 1251 new_len += extra; in sctp_output() 1258 seglen = new_len; in sctp_output() 1940 int32_t new_len; in sctp_rexmit() local 1979 new_len = ntohs(sdc->sdh_len); in sctp_rexmit() 1980 chunklen = new_len - sizeof (*sdc); in sctp_rexmit() 1982 if ((extra = new_len & (SCTP_ALIGN - 1)) != 0) in sctp_rexmit() [all …]
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | utility.c | 565 CK_ULONG new_len, i; in remove_leading_zeros() local 574 new_len = attr->ulValueLen - i; in remove_leading_zeros() 576 (void) memcpy(ptr, ptr + i, new_len); in remove_leading_zeros() 577 attr->ulValueLen = new_len; in remove_leading_zeros()
|
/illumos-gate/usr/src/common/crypto/modes/ |
H A D | gcm.c | 376 size_t new_len; in gcm_mode_decrypt_contiguous_blocks() local 384 new_len = ctx->gcm_pt_buf_len + length; in gcm_mode_decrypt_contiguous_blocks() 386 new = kmem_alloc(new_len, ctx->gcm_kmflag); in gcm_mode_decrypt_contiguous_blocks() 390 new = malloc(new_len); in gcm_mode_decrypt_contiguous_blocks() 398 ctx->gcm_pt_buf_len = new_len; in gcm_mode_decrypt_contiguous_blocks()
|
/illumos-gate/usr/src/uts/sun4/io/efcode/ |
H A D | fcpci.c | 1803 int alen, new_len, num_entries, i; in pfc_remove_assigned_prop() local 1819 new_len = alen - sizeof (pci_regspec_t); in pfc_remove_assigned_prop() 1826 if (new_len == 0) { in pfc_remove_assigned_prop() 1831 if ((new_len - (i * sizeof (pci_regspec_t))) in pfc_remove_assigned_prop() 1839 (new_len - (i * sizeof (pci_regspec_t)))); in pfc_remove_assigned_prop() 1847 (new_len/sizeof (int))); in pfc_remove_assigned_prop()
|
/illumos-gate/usr/src/lib/libpool/common/ |
H A D | pool_internal.c | 1594 int new_len; in append_char_buf() local 1601 new_len = vsnprintf(size_buf, sizeof (size_buf), fmt, ap); in append_char_buf() 1602 if (new_len + old_len >= cb->cb_size) { in append_char_buf() 1603 if (resize_char_buf(cb, old_len + new_len + 1) != in append_char_buf()
|
/illumos-gate/usr/src/stand/lib/inet/ |
H A D | ipv4.c | 586 uint16_t trans_len, *transp, new_len; in make_trans_datagram() local 637 new_len = ((trans_len + sizeof (int16_t) - 1) & in make_trans_datagram() 639 if ((ngp->igm_mp = allocb(new_len, 0)) == NULL) { in make_trans_datagram()
|
/illumos-gate/usr/src/uts/common/io/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()
|
/illumos-gate/usr/src/cmd/ldapcachemgr/ |
H A D | cachemgr_getldap.c | 2750 int len = 0, num = 0, ds_len = 0, new_len = 0, tlen = 0; in test_server_change() local 2784 new_len = len; in test_server_change() 2804 if ((snprintf(ptr, new_len, "%s%s%s%s", in test_server_change() 2806 status, DOORLINESEP)) >= new_len) { in test_server_change() 2810 new_len -= strlen(ptr); in test_server_change()
|
/illumos-gate/usr/src/lib/libipsecutil/common/ |
H A D | ikedoor.h | 692 uint32_t new_len; member
|
/illumos-gate/usr/src/uts/common/io/i40e/core/ |
H A D | i40e_nvm.c | 1630 int new_len = aq_total_len - cmd->offset; in i40e_nvmupd_get_aq_result() local 1633 __func__, cmd->data_size, new_len); in i40e_nvmupd_get_aq_result() 1634 cmd->data_size = new_len; in i40e_nvmupd_get_aq_result()
|
H A D | i40e_adminq_cmd.h | 2601 __le16 new_len; member
|
/illumos-gate/usr/src/uts/common/io/mr_sas/ |
H A D | mr_sas.h | 78 #define MRSAS_GET_BOUNDARY_ALIGNED_LEN(len, new_len, boundary_len) { \ argument 82 new_len = len + ((rem + 1) * boundary_len - len); \ 84 new_len = len; \
|
/illumos-gate/usr/src/cmd/format/ |
H A D | ctlr_scsi.c | 1807 int len, new_len, obfi, nbfi; in scsi_convert_list_to_new() local 1828 for (i = 0, new_len = 0; i < len; new_defect++, new_len++) { in scsi_convert_list_to_new() 1845 new_len++; in scsi_convert_list_to_new() 1877 list->header.count = new_len; in scsi_convert_list_to_new()
|
/illumos-gate/usr/src/uts/common/io/igb/ |
H A D | igb_main.c | 2731 size_t new_len; in igb_multicst_add() local 2751 new_len = (igb->mcast_alloc_count + MCAST_ALLOC_COUNT) * in igb_multicst_add() 2754 new_table = kmem_alloc(new_len, KM_NOSLEEP); in igb_multicst_add() 2793 size_t new_len; in igb_multicst_remove() local 2815 new_len = (igb->mcast_alloc_count - MCAST_ALLOC_COUNT) * in igb_multicst_remove() 2818 new_table = kmem_alloc(new_len, KM_NOSLEEP); in igb_multicst_remove() 2820 bcopy(igb->mcast_table, new_table, new_len); in igb_multicst_remove()
|
/illumos-gate/usr/src/uts/common/fs/proc/ |
H A D | prcontrol.c | 277 size_t new_len = P2ROUNDUP(needed, PROC_CTL_DEFSIZE); in prwritectl_readin() local 279 prwc->prwc_buflen, new_len, KM_SLEEP); in prwritectl_readin() 282 prwc->prwc_buflen, new_len, KM_SLEEP); in prwritectl_readin() 284 prwc->prwc_buflen = new_len; in prwritectl_readin()
|
/illumos-gate/usr/src/uts/common/sys/crypto/ |
H A D | impl.h | 1199 #define KCF_PROV_SET_PIN(pd, session, old_pin, old_len, new_pin, new_len, \ argument 1203 session, old_pin, old_len, new_pin, new_len, req) : \ 1299 size_t old_len, char *new_pin, size_t new_len, crypto_call_req_t *req);
|
/illumos-gate/usr/src/uts/common/io/e1000g/ |
H A D | e1000g_main.c | 2709 size_t new_len; in multicst_add() local 2731 new_len = (Adapter->mcast_alloc_count + MCAST_ALLOC_SIZE) * in multicst_add() 2734 newtable = kmem_alloc(new_len, KM_NOSLEEP); in multicst_add() 2778 size_t new_len; in multicst_remove() local 2798 new_len = (Adapter->mcast_alloc_count - MCAST_ALLOC_SIZE) * in multicst_remove() 2801 newtable = kmem_alloc(new_len, KM_NOSLEEP); in multicst_remove() 2803 bcopy(Adapter->mcast_table, newtable, new_len); in multicst_remove()
|
/illumos-gate/usr/src/uts/common/crypto/io/ |
H A D | dprov.c | 9153 size_t old_len, new_len; in dprov_create_object_from_template() local 9207 new_len = attribute_size(type, old_len); in dprov_create_object_from_template() 9217 object->do_attr[oattr].oa_value_len = new_len; in dprov_create_object_from_template() 9219 object->do_attr[oattr].oa_value = kmem_zalloc(new_len, in dprov_create_object_from_template() 9225 offset = old_len - new_len; in dprov_create_object_from_template() 9229 object->do_attr[oattr].oa_value, new_len); in dprov_create_object_from_template() 9411 size_t old_len, new_len; in dprov_object_set_attr() local 9449 new_len = attribute_size(type, old_len); in dprov_object_set_attr() 9452 object->do_attr[j].oa_value = kmem_alloc(new_len, KM_SLEEP); in dprov_object_set_attr() 9453 bcopy(&template[i].oa_value[old_len - new_len], in dprov_object_set_attr() [all …]
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | builtins.c | 3275 int new_type, new_start, new_len; in partnew_func() local 3339 if (! safe_parse_maxint (&arg, &new_len)) in partnew_func() 3348 lba_to_chs (new_start + new_len - 1, &end_cl, &end_ch, &end_dh); in partnew_func() 3359 PC_SLICE_LENGTH (mbr, entry) = new_len; in partnew_func()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ |
H A D | ikeadm.c | 3019 new.new_len = 0; in do_new() 3047 newp->new_len = sizeof (ike_new_t) + pslen; in do_new() 3049 buflen = newp->new_len; in do_new() 3139 new.new_len = 0; in do_new()
|