Home
last modified time | relevance | path

Searched refs:newbuf (Results 1 – 25 of 26) sorted by relevance

12

/titanic_50/usr/src/uts/common/io/xge/hal/xgehal/
H A Dxge-queue.c324 void *newbuf, *oldbuf; in __io_queue_grow() local
331 newbuf = xge_os_malloc(queue->pdev, in __io_queue_grow()
333 if (newbuf == NULL) in __io_queue_grow()
336 xge_os_memcpy(newbuf, queue->start_ptr, in __io_queue_grow()
341 queue->start_ptr = newbuf; in __io_queue_grow()
342 queue->end_ptr = (char *)newbuf + in __io_queue_grow()
344 queue->tail_ptr = (char *)newbuf + ((char *)queue->tail_ptr - in __io_queue_grow()
346 queue->head_ptr = (char *)newbuf + ((char *)queue->head_ptr - in __io_queue_grow()
349 queue->list_head.next = (xge_list_t *) (void *)((char *)newbuf + in __io_queue_grow()
351 queue->list_head.prev = (xge_list_t *) (void *)((char *)newbuf + in __io_queue_grow()
[all …]
/titanic_50/usr/src/uts/sun4/os/
H A Dmp_startup.c286 caddr_t newbuf; in setup_cpu_common() local
304 newbuf = trap_tr0; in setup_cpu_common()
312 newbuf = (caddr_t)(ttrace_buf + (tt_index * TRAP_TSIZE)); in setup_cpu_common()
314 ctlp->d.vaddr_base = newbuf; in setup_cpu_common()
317 ctlp->d.paddr_base = va_to_pa(newbuf); in setup_cpu_common()
443 caddr_t newbuf; in cleanup_cpu_common() local
493 newbuf = ctlp->d.vaddr_base; in cleanup_cpu_common()
494 i = (newbuf - ttrace_buf) / (TRAP_TSIZE); in cleanup_cpu_common()
495 if (((newbuf - ttrace_buf) % (TRAP_TSIZE) == 0) && in cleanup_cpu_common()
502 bzero(newbuf, (TRAP_TSIZE)); in cleanup_cpu_common()
[all …]
/titanic_50/usr/src/cmd/svc/svcs/
H A Dsvcs.c1013 char *newbuf = safe_malloc(newsize); in sprint_ctid() local
1034 (void) snprintf(newbuf, newsize, "%s%*lu ", in sprint_ctid()
1037 (void) snprintf(newbuf, newsize, "%s%*lu* ", in sprint_ctid()
1040 (void) snprintf(newbuf, newsize, "%s%*s ", in sprint_ctid()
1044 *buf = newbuf; in sprint_ctid()
1097 char *newbuf; in sprint_desc() local
1127 newbuf = safe_malloc(newsize); in sprint_desc()
1128 (void) snprintf(newbuf, newsize, "%s%-*s ", *buf ? *buf : "", in sprint_desc()
1132 *buf = newbuf; in sprint_desc()
1223 char *newbuf; in sprint_state() local
[all …]
/titanic_50/usr/src/uts/common/syscall/
H A Dgetdents.c79 char *newbuf; in getdents32() local
108 newbuf = kmem_alloc(bufsize, KM_SLEEP); in getdents32()
111 aiov.iov_base = newbuf; in getdents32()
128 dp = (struct dirent64 *)newbuf; in getdents32()
169 ASSERT((char *)dp <= (char *)newbuf + bufsize); in getdents32()
174 kmem_free(newbuf, bufsize); in getdents32()
/titanic_50/usr/src/uts/common/inet/ipf/netinet/
H A Dip_irc_pxy.c276 char ctcpbuf[IPF_IRCBUFSZ], newbuf[IPF_IRCBUFSZ]; local
310 *newbuf = '\0';
332 (void) strncpy(newbuf, ctcpbuf, i);
335 (void) SNPRINTF(newbuf, sizeof(newbuf) - i, "%u %u\001\r\n", a1, a5);
337 (void) sprintf(newbuf, "%u %u\001\r\n", a1, a5);
340 nlen = strlen(newbuf);
377 COPYBACK(m, off, nlen, newbuf);
H A Dip_ftp_pxy.c194 char newbuf[IPF_FTPBUFSZ], *s; local
302 (void) SNPRINTF(newbuf, sizeof(newbuf), "%s %u,%u,%u,%u,%u,%u\r\n",
305 (void) sprintf(newbuf, "%s %u,%u,%u,%u,%u,%u\r\n",
309 nlen = strlen(newbuf);
319 bcopy(newbuf, MTOD(m, char *) + off, nlen);
334 COPYBACK(m, off, nlen, newbuf);
507 char newbuf[IPF_FTPBUFSZ]; local
625 (void) SNPRINTF(newbuf, sizeof(newbuf), "%s %s%u,%u,%u,%u,%u,%u%s\r\n",
629 (void) sprintf(newbuf, "%s %s%u,%u,%u,%u,%u,%u%s\r\n",
634 newbuf, s, data_ip, ifsftp);
[all …]
/titanic_50/usr/src/lib/smbsrv/libmlsvc/common/
H A Dsvcctl_scm.c319 char *newbuf; in svcctl_scm_get_svcdesc() local
341 if ((newbuf = malloc(newsize)) == NULL) { in svcctl_scm_get_svcdesc()
346 (void) snprintf(newbuf, newsize, "%s", desc_buf); in svcctl_scm_get_svcdesc()
349 *buf = newbuf; in svcctl_scm_get_svcdesc()
363 char *newbuf; in svcctl_scm_get_svcfmri() local
393 if ((newbuf = malloc(newsize)) == NULL) { in svcctl_scm_get_svcfmri()
398 (void) snprintf(newbuf, newsize, "%s", fmri_buf); in svcctl_scm_get_svcfmri()
401 *buf = newbuf; in svcctl_scm_get_svcfmri()
414 char *newbuf; in svcctl_scm_get_svcname() local
421 if ((newbuf = malloc(newsize)) == NULL) in svcctl_scm_get_svcname()
[all …]
/titanic_50/usr/src/uts/common/rpc/
H A Drpc_subr.c331 char *newbuf; in put_loopback_port() local
345 newbuf = kmem_zalloc(newlen, KM_SLEEP); in put_loopback_port()
346 bcopy(addr->buf, newbuf, addr->len); in put_loopback_port()
348 addr->buf = newbuf; in put_loopback_port()
403 char *newbuf; in grow_netbuf() local
408 newbuf = kmem_zalloc(length, KM_SLEEP); in grow_netbuf()
409 bcopy(nb->buf, newbuf, nb->len); in grow_netbuf()
411 nb->buf = newbuf; in grow_netbuf()
/titanic_50/usr/src/lib/libnisdb/
H A Dldap_util.c439 char *newbuf = am(msg, STDBUFSIZE); in vp2buf() local
442 if (newbuf == 0) in vp2buf()
446 free(newbuf); in vp2buf()
451 size = vsnprintf(newbuf, STDBUFSIZE, fmt, ap); in vp2buf()
454 free(newbuf); in vp2buf()
455 newbuf = am(msg, size+1); in vp2buf()
456 if (newbuf == 0) in vp2buf()
458 size = vsnprintf(newbuf, size+1, fmt, ap); in vp2buf()
461 *buf = scat(msg, T, *buf, newbuf); in vp2buf()
/titanic_50/usr/src/lib/libdns_sd/common/
H A Ddnssd_clientlib.c220 unsigned char *newbuf; in TXTRecordSetValue() local
223 newbuf = malloc((size_t)newlen); in TXTRecordSetValue()
224 if (!newbuf) return(kDNSServiceErr_NoMemory); in TXTRecordSetValue()
225 memcpy(newbuf, txtRec->buffer, txtRec->datalen); in TXTRecordSetValue()
227 txtRec->buffer = newbuf; in TXTRecordSetValue()
/titanic_50/usr/src/test/util-tests/tests/smbios/
H A Dsmbios.c99 void *newbuf; in smbios_test_table_append_common() local
106 newbuf = umem_zalloc(newlen, UMEM_DEFAULT); in smbios_test_table_append_common()
107 if (newbuf == NULL) { in smbios_test_table_append_common()
112 (void) memcpy(newbuf, table->stt_data, table->stt_buflen); in smbios_test_table_append_common()
114 table->stt_data = newbuf; in smbios_test_table_append_common()
/titanic_50/usr/src/cmd/logadm/
H A Dfn.c224 char *newbuf; in fn_putc() local
232 newbuf = MALLOC(buflen); in fn_putc()
236 dst = newbuf; in fn_putc()
241 fnp->fn_rptr = &newbuf[fnp->fn_rptr - fnp->fn_buf]; in fn_putc()
243 fnp->fn_buf = newbuf; in fn_putc()
/titanic_50/usr/src/ucblib/librpcsoc/
H A Dsvc_udp.c415 char *newbuf; local
433 newbuf = victim->cache_reply;
441 newbuf = (char *)mem_alloc(su->su_iosz);
442 if (newbuf == NULL) {
455 rpc_buffer(xprt) = newbuf;
/titanic_50/usr/src/uts/common/io/simnet/
H A Dsimnet.c1008 uint8_t *newbuf; in simnet_m_multicst() local
1017 newbuf = kmem_alloc(newsize, KM_SLEEP); in simnet_m_multicst()
1022 kmem_free(newbuf, newsize); in simnet_m_multicst()
1029 if (newbuf != NULL) { in simnet_m_multicst()
1032 (void) memcpy(newbuf, sdev->sd_mcastaddrs, len); in simnet_m_multicst()
1034 (void) memcpy(newbuf + len, in simnet_m_multicst()
1040 (void) memcpy(newbuf, sdev->sd_mcastaddrs, prevsize); in simnet_m_multicst()
1041 (void) memcpy(newbuf + prevsize, addrp, ETHERADDRL); in simnet_m_multicst()
1046 kmem_free(newbuf, newsize); in simnet_m_multicst()
1053 sdev->sd_mcastaddrs = newbuf; in simnet_m_multicst()
/titanic_50/usr/src/lib/libnsl/rpc/
H A Dsvc_dg.c760 char *newbuf, *newbuf2; in cache_set() local
797 newbuf = victim->cache_reply; in cache_set()
805 newbuf = malloc(su->su_iosz); in cache_set()
806 if (newbuf == NULL) { in cache_set()
833 free(newbuf); in cache_set()
840 rpc_buffer(xprt) = newbuf; in cache_set()
H A Dxdr_rec.c754 caddr_t newbuf = rstrm->in_base; in __xdrrec_nonblock_realloc() local
759 newbuf = (caddr_t)realloc(newbuf, newsize); in __xdrrec_nonblock_realloc()
760 if (newbuf == 0) { in __xdrrec_nonblock_realloc()
764 offset = newbuf - rstrm->in_base; in __xdrrec_nonblock_realloc()
768 rstrm->in_base = newbuf; in __xdrrec_nonblock_realloc()
/titanic_50/usr/src/lib/scsi/libses/common/
H A Dses_snap.c45 uint8_t *newbuf; in grow_snap_page() local
50 if ((newbuf = ses_realloc(pp->ssp_page, min)) == NULL) in grow_snap_page()
53 pp->ssp_page = newbuf; in grow_snap_page()
56 bzero(newbuf + pp->ssp_len, pp->ssp_alloc - pp->ssp_len); in grow_snap_page()
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_ldap.c1451 char *newbuf; in decode_ldap() local
1458 newbuf = skipjunk(len, buf); in decode_ldap()
1459 if (newbuf > buf) { in decode_ldap()
1460 skipped = newbuf-buf; in decode_ldap()
1461 ldapdump(buf, newbuf-buf); in decode_ldap()
1463 buf = newbuf; in decode_ldap()
/titanic_50/usr/src/lib/libdscfg/common/
H A Dcfg.c264 cfg_fld_mov(char *newbuf, char *oldbuf, int start, int end) in cfg_fld_mov() argument
284 strcat(newbuf, ptr); in cfg_fld_mov()
285 strcat(newbuf, " "); in cfg_fld_mov()
690 char newbuf[CFG_MAX_BUF]; in cfg_put_cstring() local
901 bzero(newbuf, sizeof (newbuf)); in cfg_put_cstring()
902 strncpy(newbuf, " ", 1); in cfg_put_cstring()
905 rc = cfg_fld_mov(newbuf, buf, 1, fldnum - 1); in cfg_put_cstring()
910 strncat(newbuf, value, strlen(value)); in cfg_put_cstring()
911 strcat(newbuf, " "); in cfg_put_cstring()
914 rc = cfg_fld_mov(newbuf, buf, fldnum + 1, nflds); in cfg_put_cstring()
[all …]
/titanic_50/usr/src/lib/libdtrace/common/
H A Ddt_subr.c615 char *newbuf; in dt_printf() local
623 if ((newbuf = realloc(dtp->dt_buffered_buf, in dt_printf()
629 dtp->dt_buffered_buf = newbuf; in dt_printf()
/titanic_50/usr/src/cmd/ptools/pmap/
H A Dpmap.c470 struct stat64 newbuf; in main() local
472 if (fstat64(mapfd, &newbuf) != 0 || in main()
473 memcmp(&newbuf.st_mtim, &statbuf.st_mtim, in main()
474 sizeof (newbuf.st_mtim)) != 0) { in main()
/titanic_50/usr/src/cmd/sendmail/libmilter/
H A Dengine.c474 milter_addsymlist(ctx, buf, newbuf) in milter_addsymlist() argument
477 char **newbuf;
486 SM_ASSERT(newbuf != NULL);
536 *newbuf = buffer;
/titanic_50/usr/src/uts/intel/io/dnet/
H A Ddnet.c1604 caddr_t newbuf; in dnet_getp() local
1712 newbuf = NULL; in dnet_getp()
1724 newbuf = rp->rbuf_vaddr; in dnet_getp()
1736 dnet_rbuf_free((caddr_t)newbuf); in dnet_getp()
1738 newbuf = NULL; in dnet_getp()
1743 if (newbuf != NULL) in dnet_getp()
1744 dnet_rbuf_free((caddr_t)newbuf); in dnet_getp()
1772 if (newbuf != NULL) { in dnet_getp()
1775 dnetp->rx_buf_vaddr[index] = newbuf; in dnet_getp()
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/ifconfig/
H A Difconfig.c2837 char *newbuf; in ifstatus() local
2921 newbuf = realloc(lifs.lifs_buf, lifs.lifs_maxlen); in ifstatus()
2922 if (newbuf == NULL) { in ifstatus()
2930 lifs.lifs_buf = newbuf; in ifstatus()
/titanic_50/usr/src/uts/common/fs/zfs/
H A Ddnode.c844 dnode_move(void *buf, void *newbuf, size_t size, void *arg) in dnode_move() argument
846 dnode_t *odn = buf, *ndn = newbuf; in dnode_move()

12