Searched defs:new_len (Results 1 - 20 of 20) sorted by relevance

/illumos-gate/usr/src/uts/common/c2/
H A Daudit_mem.c153 int new_len; local
158 new_len = (uint_t)(buf->len + len) > AU_BUFSIZE ?
160 bcopy(data, (buf->buf + buf->len), (uint_t)new_len);
161 buf->len += (uchar_t)new_len;
162 len -= new_len;
165 data += new_len;
171 new_len = len > AU_BUFSIZE ? AU_BUFSIZE : len;
172 bcopy(data, buf->buf, (uint_t)new_len);
173 buf->len = (uchar_t)new_len;
174 len -= new_len;
[all...]
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_buf.c97 size_t new_len = bp->dbu_len * 2; local
101 while (bp->dbu_ptr + adj + len > bp->dbu_buf + new_len) {
102 new_len *= 2;
106 if ((new_buf = dt_zalloc(dtp, new_len)) == NULL) {
116 bp->dbu_len = new_len;
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dutility.c565 CK_ULONG new_len, i; local
574 new_len = attr->ulValueLen - i;
576 (void) memcpy(ptr, ptr + i, new_len);
577 attr->ulValueLen = new_len;
/illumos-gate/usr/src/cmd/fm/modules/SUNW,SPARC-Enterprise/event-transport/
H A Dex_dscp.c308 socklen_t new_len = sizeof (struct sockaddr); local
312 &new_len)) != -1) {
314 if ((rv = dscpIdent((struct sockaddr *)&new_saddr, (int)new_len,
339 (int)new_len)) != DSCP_OK) {
/illumos-gate/usr/src/common/crypto/modes/
H A Dgcm.c376 size_t new_len; local
384 new_len = ctx->gcm_pt_buf_len + length;
386 new = kmem_alloc(new_len, ctx->gcm_kmflag);
390 new = malloc(new_len);
398 ctx->gcm_pt_buf_len = new_len;
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_output.c1205 int32_t new_len; local
1235 new_len = seglen + chunklen;
1239 if (new_len - new_xtralen > cansend ||
1240 new_len + extra > pathmax) {
1249 new_len += extra;
1256 seglen = new_len;
1938 int32_t new_len; local
1977 new_len = ntohs(sdc->sdh_len);
1978 chunklen = new_len - sizeof (*sdc);
1980 if ((extra = new_len
2121 int32_t new_len; local
[all...]
/illumos-gate/usr/src/stand/lib/inet/
H A Dipv4.c586 uint16_t trans_len, *transp, new_len; local
637 new_len = ((trans_len + sizeof (int16_t) - 1) &
639 if ((ngp->igm_mp = allocb(new_len, 0)) == NULL) {
/illumos-gate/usr/src/uts/sun4/io/efcode/
H A Dfcpci.c1803 int alen, new_len, num_entries, i; local
1819 new_len = alen - sizeof (pci_regspec_t);
1826 if (new_len == 0) {
1831 if ((new_len - (i * sizeof (pci_regspec_t)))
1839 (new_len - (i * sizeof (pci_regspec_t))));
1847 (new_len/sizeof (int)));
/illumos-gate/usr/src/uts/common/io/sfxge/common/
H A Def10_nvram.c615 size_t new_len; local
630 new_len = tlv_block_length_used(&partition.tlv_cursor);
631 if (new_len == 0) {
635 header->total_length = __CPU_TO_LE_32(new_len);
641 new_len - sizeof (*trailer) - sizeof (uint32_t));
/illumos-gate/usr/src/lib/libpool/common/
H A Dpool_internal.c1596 int new_len; local
1603 new_len = vsnprintf(size_buf, sizeof (size_buf), fmt, ap);
1604 if (new_len + old_len >= cb->cb_size) {
1605 if (resize_char_buf(cb, old_len + new_len + 1) !=
/illumos-gate/usr/src/cmd/format/
H A Dctlr_scsi.c1887 register int len, new_len, obfi, nbfi; local
1908 for (i = 0, new_len = 0; i < len; new_defect++, new_len++) {
1921 * need to proceed further. new_len needs to be
1925 new_len++;
1957 list->header.count = new_len;
/illumos-gate/usr/src/cmd/ldapcachemgr/
H A Dcachemgr_getldap.c2744 int len = 0, num = 0, ds_len = 0, new_len = 0, tlen = 0; local
2778 new_len = len;
2798 if ((snprintf(ptr, new_len, "%s%s%s%s",
2800 status, DOORLINESEP)) >= new_len) {
2804 new_len -= strlen(ptr);
/illumos-gate/usr/src/lib/lvm/libmeta/common/
H A Dmeta_sp.c3568 sp_ext_length_t new_len; local
3577 new_len = old_un->un_length + grow_len;
3583 new_un->un_length = new_len;
3584 new_un->c.un_total_blocks = new_len;
3585 new_un->c.un_actual_tb = new_len;
/illumos-gate/usr/src/uts/common/io/e1000g/
H A De1000g_main.c2663 size_t new_len; local
2685 new_len = (Adapter->mcast_alloc_count + MCAST_ALLOC_SIZE) *
2688 newtable = kmem_alloc(new_len, KM_NOSLEEP);
2732 size_t new_len; local
2752 new_len = (Adapter->mcast_alloc_count - MCAST_ALLOC_SIZE) *
2755 newtable = kmem_alloc(new_len, KM_NOSLEEP);
2757 bcopy(Adapter->mcast_table, newtable, new_len);
/illumos-gate/usr/src/uts/common/io/igb/
H A Digb_main.c2686 size_t new_len; local
2706 new_len = (igb->mcast_alloc_count + MCAST_ALLOC_COUNT) *
2709 new_table = kmem_alloc(new_len, KM_NOSLEEP);
2748 size_t new_len; local
2770 new_len = (igb->mcast_alloc_count - MCAST_ALLOC_COUNT) *
2773 new_table = kmem_alloc(new_len, KM_NOSLEEP);
2775 bcopy(igb->mcast_table, new_table, new_len);
/illumos-gate/usr/src/lib/libipsecutil/common/
H A Dikedoor.h678 * Upon request: new_len is the total (data + struct) size passed, or 0.
679 * new_len = 0 => a door_desc_t is also included with a file descriptor
681 * a single item: a rule, or a pre-shared key. For new_len != 0, the
686 * Upon return: new_len is 0; simply acknowledges successful insertion
692 uint32_t new_len; member in struct:__anon3394
693 /* new_len - sizeof (ike_new_t) bytes included here */
/illumos-gate/usr/src/uts/common/io/i40e/core/
H A Di40e_common.c3836 * @new_len: Length of the Updated TLV
3847 u16 old_len, u16 new_len, u16 offset,
3857 old_len == 0 || new_len == 0)
3872 cmd->new_len = CPU_TO_LE16(new_len);
3845 i40e_aq_update_lldp_tlv(struct i40e_hw *hw, u8 bridge_type, void *buff, u16 buff_size, u16 old_len, u16 new_len, u16 offset, u16 *mib_len, struct i40e_asq_cmd_details *cmd_details) argument
H A Di40e_adminq_cmd.h2066 __le16 new_len; member in struct:i40e_aqc_lldp_update_tlv
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dbuiltins.c3310 int new_type, new_start, new_len;
3374 if (! safe_parse_maxint (&arg, &new_len))
3383 lba_to_chs (new_start + new_len - 1, &end_cl, &end_ch, &end_dh);
3394 PC_SLICE_LENGTH (mbr, entry) = new_len;
3272 int new_type, new_start, new_len; local
/illumos-gate/usr/src/uts/common/crypto/io/
H A Ddprov.c9126 size_t old_len, new_len; local
9180 new_len = attribute_size(type, old_len);
9190 object->do_attr[oattr].oa_value_len = new_len;
9192 object->do_attr[oattr].oa_value = kmem_zalloc(new_len,
9198 offset = old_len - new_len;
9202 object->do_attr[oattr].oa_value, new_len);
9384 size_t old_len, new_len; local
9422 new_len = attribute_size(type, old_len);
9425 object->do_attr[j].oa_value = kmem_alloc(new_len, KM_SLEEP);
9426 bcopy(&template[i].oa_value[old_len - new_len],
[all...]

Completed in 962 milliseconds