Home
last modified time | relevance | path

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

12

/illumos-gate/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 …]
/illumos-gate/usr/src/uts/sun4/os/
H A Dmp_startup.c295 caddr_t newbuf; in setup_cpu_common() local
313 newbuf = trap_tr0; in setup_cpu_common()
321 newbuf = (caddr_t)(ttrace_buf + (tt_index * TRAP_TSIZE)); in setup_cpu_common()
323 ctlp->d.vaddr_base = newbuf; in setup_cpu_common()
326 ctlp->d.paddr_base = va_to_pa(newbuf); in setup_cpu_common()
452 caddr_t newbuf; in cleanup_cpu_common() local
502 newbuf = ctlp->d.vaddr_base; in cleanup_cpu_common()
503 i = (newbuf - ttrace_buf) / (TRAP_TSIZE); in cleanup_cpu_common()
504 if (((newbuf - ttrace_buf) % (TRAP_TSIZE) == 0) && in cleanup_cpu_common()
511 bzero(newbuf, (TRAP_TSIZE)); in cleanup_cpu_common()
[all …]
/illumos-gate/usr/src/cmd/svc/svcs/
H A Dsvcs.c1002 char *newbuf = safe_malloc(newsize); in sprint_ctid() local
1023 (void) snprintf(newbuf, newsize, "%s%*lu ", in sprint_ctid()
1026 (void) snprintf(newbuf, newsize, "%s%*lu* ", in sprint_ctid()
1029 (void) snprintf(newbuf, newsize, "%s%*s ", in sprint_ctid()
1033 *buf = newbuf; in sprint_ctid()
1086 char *newbuf; in sprint_desc() local
1116 newbuf = safe_malloc(newsize); in sprint_desc()
1117 (void) snprintf(newbuf, newsize, "%s%-*s ", *buf ? *buf : "", in sprint_desc()
1121 *buf = newbuf; in sprint_desc()
1212 char *newbuf; in sprint_state() local
[all …]
/illumos-gate/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()
/illumos-gate/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 …]
/illumos-gate/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 …]
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSShared/
H A Ddnssd_clientlib.c216 unsigned char *newbuf; in TXTRecordSetValue() local
219 newbuf = malloc((size_t)newlen); in TXTRecordSetValue()
220 if (!newbuf) return(kDNSServiceErr_NoMemory); in TXTRecordSetValue()
221 memcpy(newbuf, txtRec->buffer, txtRec->datalen); in TXTRecordSetValue()
223 txtRec->buffer = newbuf; in TXTRecordSetValue()
/illumos-gate/usr/src/cmd/logadm/
H A Dfn.c222 char *newbuf; in fn_putc() local
230 newbuf = MALLOC(buflen); in fn_putc()
234 dst = newbuf; in fn_putc()
239 fnp->fn_rptr = &newbuf[fnp->fn_rptr - fnp->fn_buf]; in fn_putc()
241 fnp->fn_buf = newbuf; in fn_putc()
/illumos-gate/usr/src/ucblib/librpcsoc/
H A Dsvc_udp.c413 char *newbuf; local
431 newbuf = victim->cache_reply;
439 newbuf = (char *)mem_alloc(su->su_iosz);
440 if (newbuf == NULL) {
453 rpc_buffer(xprt) = newbuf;
/illumos-gate/usr/src/lib/libdwarf/common/
H A Dpro_die.c483 char *newbuf = 0; in insert_debug_str_data_string() local
494 newbuf = calloc(1,updated_length); in insert_debug_str_data_string()
495 if (!newbuf) { in insert_debug_str_data_string()
499 memcpy(newbuf,sd->ds_data,sd->ds_nbytes); in insert_debug_str_data_string()
501 sd->ds_data = newbuf; in insert_debug_str_data_string()
503 newbuf = 0; in insert_debug_str_data_string()
/illumos-gate/usr/src/test/util-tests/tests/smbios/
H A Dsmbios.c82 void *newbuf; in smbios_test_table_append_common() local
89 newbuf = umem_zalloc(newlen, UMEM_DEFAULT); in smbios_test_table_append_common()
90 if (newbuf == NULL) { in smbios_test_table_append_common()
95 (void) memcpy(newbuf, table->stt_data, table->stt_buflen); in smbios_test_table_append_common()
97 table->stt_data = newbuf; in smbios_test_table_append_common()
/illumos-gate/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.c752 caddr_t newbuf = rstrm->in_base; in __xdrrec_nonblock_realloc() local
757 newbuf = (caddr_t)realloc(newbuf, newsize); in __xdrrec_nonblock_realloc()
758 if (newbuf == 0) { in __xdrrec_nonblock_realloc()
762 offset = newbuf - rstrm->in_base; in __xdrrec_nonblock_realloc()
766 rstrm->in_base = newbuf; in __xdrrec_nonblock_realloc()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_ldap.c1449 char *newbuf; in decode_ldap() local
1456 newbuf = skipjunk(len, buf); in decode_ldap()
1457 if (newbuf > buf) { in decode_ldap()
1458 skipped = newbuf-buf; in decode_ldap()
1459 ldapdump(buf, newbuf-buf); in decode_ldap()
1461 buf = newbuf; in decode_ldap()
/illumos-gate/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()
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_subr.c616 char *newbuf; in dt_printf() local
624 if ((newbuf = realloc(dtp->dt_buffered_buf, in dt_printf()
630 dtp->dt_buffered_buf = newbuf; in dt_printf()
/illumos-gate/usr/src/cmd/ptools/pmap/
H A Dpmap.c507 struct stat64 newbuf; in main() local
509 if (fstat64(mapfd, &newbuf) != 0 || in main()
510 memcmp(&newbuf.st_mtim, &statbuf.st_mtim, in main()
511 sizeof (newbuf.st_mtim)) != 0) { in main()
/illumos-gate/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;
/illumos-gate/usr/src/uts/intel/io/dnet/
H A Ddnet.c1605 caddr_t newbuf; in dnet_getp() local
1713 newbuf = NULL; in dnet_getp()
1725 newbuf = rp->rbuf_vaddr; in dnet_getp()
1737 dnet_rbuf_free((caddr_t)newbuf); in dnet_getp()
1739 newbuf = NULL; in dnet_getp()
1744 if (newbuf != NULL) in dnet_getp()
1745 dnet_rbuf_free((caddr_t)newbuf); in dnet_getp()
1773 if (newbuf != NULL) { in dnet_getp()
1776 dnetp->rx_buf_vaddr[index] = newbuf; in dnet_getp()
/illumos-gate/usr/src/uts/common/os/
H A Dkmem.c2830 void *newbuf = kmem_alloc(newsize, kmflag); in kmem_rezalloc() local
2831 if (newbuf == NULL) { in kmem_rezalloc()
2835 bcopy(oldbuf, newbuf, MIN(oldsize, newsize)); in kmem_rezalloc()
2837 void *start = (void *)((uintptr_t)newbuf + oldsize); in kmem_rezalloc()
2846 return (newbuf); in kmem_rezalloc()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ifconfig/
H A Difconfig.c2838 char *newbuf; in ifstatus() local
2922 newbuf = realloc(lifs.lifs_buf, lifs.lifs_maxlen); in ifstatus()
2923 if (newbuf == NULL) { in ifstatus()
2931 lifs.lifs_buf = newbuf; in ifstatus()
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzfs_znode.c276 zfs_znode_move(void *buf, void *newbuf, size_t size, void *arg) in zfs_znode_move() argument
278 znode_t *ozp = buf, *nzp = newbuf; in zfs_znode_move()

12