/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | open_memstream.c | 127 memstream_t *memp = _xdata(iop); in open_memstream_write() local 136 ret = memstream_newsize(memp->mstr_pos, memp->mstr_alloc, nbytes, in open_memstream_write() 142 temp = recallocarray(memp->mstr_buf, memp->mstr_alloc, in open_memstream_write() 147 memp->mstr_buf = temp; in open_memstream_write() 148 memp->mstr_alloc = newsize; in open_memstream_write() 149 *memp->mstr_ubufp = temp; in open_memstream_write() 152 (void) memcpy(&memp->mstr_buf[memp->mstr_pos], buf, nbytes); in open_memstream_write() 153 memp->mstr_pos += nbytes; in open_memstream_write() 155 if (memp->mstr_pos > memp->mstr_lsize) { in open_memstream_write() 156 memp->mstr_lsize = memp->mstr_pos; in open_memstream_write() [all …]
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/mpt_sas/ |
H A D | mptsas_init.c | 85 static int mptsas_ioc_do_get_facts(mptsas_t *mpt, caddr_t memp, int var, 87 static int mptsas_ioc_do_get_facts_reply(mptsas_t *mpt, caddr_t memp, int var, 89 static int mptsas_ioc_do_get_port_facts(mptsas_t *mpt, caddr_t memp, int var, 91 static int mptsas_ioc_do_get_port_facts_reply(mptsas_t *mpt, caddr_t memp, 93 static int mptsas_ioc_do_enable_port(mptsas_t *mpt, caddr_t memp, int var, 95 static int mptsas_ioc_do_enable_port_reply(mptsas_t *mpt, caddr_t memp, int var, 97 static int mptsas_ioc_do_enable_event_notification(mptsas_t *mpt, caddr_t memp, 100 caddr_t memp, int var, ddi_acc_handle_t accessp); 101 static int mptsas_do_ioc_init(mptsas_t *mpt, caddr_t memp, int var, 103 static int mptsas_do_ioc_init_reply(mptsas_t *mpt, caddr_t memp, int var, [all …]
|
H A D | mptsas_impl.c | 743 mptsas_send_handshake_msg(mptsas_t *mpt, caddr_t memp, int numbytes, in mptsas_send_handshake_msg() argument 775 for (i = 0; (i < numbytes / 4); i++, memp += 4) { in mptsas_send_handshake_msg() 777 ddi_get32(accessp, (uint32_t *)((void *)(memp)))); in mptsas_send_handshake_msg() 795 mptsas_get_handshake_msg(mptsas_t *mpt, caddr_t memp, int numbytes, in mptsas_get_handshake_msg() argument 813 for (i = 0; i < 2; i++, memp += 2) { in mptsas_get_handshake_msg() 822 ddi_put16(accessp, (uint16_t *)((void *)(memp)), val); in mptsas_get_handshake_msg() 842 for (i = 0; i < bytesleft; i++, memp += 2) { in mptsas_get_handshake_msg() 851 ddi_put16(accessp, (uint16_t *)((void *)(memp)), val); in mptsas_get_handshake_msg() 1330 caddr_t memp, flsh_memp; in mptsas_update_flash() local 1406 memp = mpt->m_req_frame + (mpt->m_req_frame_size * cmd->cmd_slot); in mptsas_update_flash() [all …]
|
/illumos-gate/usr/src/uts/common/io/cpqary3/ |
H A D | cpqary3_noe.c | 109 cpqary3_send_NOE_command(cpqary3_t *ctlr, cpqary3_cmdpvt_t *memp, uint8_t flag) in cpqary3_send_NOE_command() argument 138 if ((NULL == memp) || (NULL == memp->cmdlist_memaddr)) { in cpqary3_send_NOE_command() 144 bzero(MEM2DRVPVT(memp)->sg, sizeof (NoeBuffer)); in cpqary3_send_NOE_command() 145 memp->cmdlist_memaddr->Header.Tag.drvinfo_n_err = in cpqary3_send_NOE_command() 160 if (NULL == (memp = cpqary3_cmdlist_occupy(ctlr))) { in cpqary3_send_NOE_command() 166 memp->driverdata = (cpqary3_private_t *) in cpqary3_send_NOE_command() 168 if (NULL == memp->driverdata) { in cpqary3_send_NOE_command() 171 cpqary3_cmdlist_release(memp, CPQARY3_HOLD_SW_MUTEX); in cpqary3_send_NOE_command() 174 memp->driverdata->sg = databuf; in cpqary3_send_NOE_command() 175 memp->driverdata->phyctgp = phys_handle; in cpqary3_send_NOE_command() [all …]
|
H A D | cpqary3_mem.c | 333 cpqary3_cmdpvt_t *memp = NULL; in cpqary3_cmdlist_occupy() local 347 memp = memlistp->head; in cpqary3_cmdlist_occupy() 348 if (NULL == memp) { in cpqary3_cmdlist_occupy() 353 memp->occupied = CPQARY3_OCCUPIED; in cpqary3_cmdlist_occupy() 354 bzero(memp->cmdlist_memaddr, sizeof (CommandList_t)); in cpqary3_cmdlist_occupy() 355 memp->cmdlist_memaddr->Header.Tag.tag_value = memp->tag.tag_value; in cpqary3_cmdlist_occupy() 356 memp->cmdlist_memaddr->ErrDesc.Addr = memp->cmdlist_erraddr; in cpqary3_cmdlist_occupy() 357 memp->cmdlist_memaddr->ErrDesc.Len = sizeof (ErrorInfo_t); in cpqary3_cmdlist_occupy() 358 memlistp->head = memp->next; in cpqary3_cmdlist_occupy() 360 DTRACE_PROBE1(cmdlist_occupy, cpqary3_cmdpvt_t *, memp); in cpqary3_cmdlist_occupy() [all …]
|
H A D | cpqary3_util.c | 321 cpqary3_cmdpvt_t *memp = NULL; in cpqary3_synccmd_alloc() local 361 memp = cpqary3_cmdlist_occupy(cpqary3p); in cpqary3_synccmd_alloc() 362 if (memp == NULL) { in cpqary3_synccmd_alloc() 372 memp->cmdpvt_flag = 0; in cpqary3_synccmd_alloc() 373 memp->cmdlist_memaddr->Header.Tag.drvinfo_n_err = in cpqary3_synccmd_alloc() 377 memp->driverdata = cmddmah; in cpqary3_synccmd_alloc() 378 memp->cmdlist_memaddr->SG[0].Addr = dmabufpa; in cpqary3_synccmd_alloc() 379 memp->cmdlist_memaddr->SG[0].Len = (uint32_t)bufsz; in cpqary3_synccmd_alloc() 382 return (memp); in cpqary3_synccmd_alloc() 394 cpqary3_synccmd_cleanup(cpqary3_cmdpvt_t *memp) in cpqary3_synccmd_cleanup() argument [all …]
|
H A D | cpqary3_ioctl.c | 323 cpqary3_cmdpvt_t *memp = NULL; in cpqary3_ioctl_send_bmiccmd() local 329 memp = cpqary3_synccmd_alloc(cpqary3p, bmic_pass->buf_len); in cpqary3_ioctl_send_bmiccmd() 330 if (memp == NULL) in cpqary3_ioctl_send_bmiccmd() 335 databuf = memp->driverdata->sg; in cpqary3_ioctl_send_bmiccmd() 338 cmdlist = memp->cmdlist_memaddr; in cpqary3_ioctl_send_bmiccmd() 350 cpqary3_synccmd_free(cpqary3p, memp); in cpqary3_ioctl_send_bmiccmd() 368 memp->complete = cpqary3_synccmd_complete; in cpqary3_ioctl_send_bmiccmd() 373 if (cpqary3_synccmd_send(cpqary3p, memp, cpqary3_ioctl_wait_ms, in cpqary3_ioctl_send_bmiccmd() 375 cpqary3_synccmd_free(cpqary3p, memp); in cpqary3_ioctl_send_bmiccmd() 404 bcopy((caddr_t)memp->errorinfop, &bmic_pass->err_info, in cpqary3_ioctl_send_bmiccmd() [all …]
|
H A D | cpqary3_transport.c | 265 cpqary3_pktp->memp = (cpqary3_cmdpvt_t *)NULL; in cpqary3_init_pkt() 585 cpqary3_cmdpvt_t *memp; in cpqary3_transport() local 613 if (NULL == (memp = cpqary3_cmdlist_occupy(ctlr))) in cpqary3_transport() 616 cpqary3_pktp->memp = memp; in cpqary3_transport() 617 memp->pvt_pkt = cpqary3_pktp; in cpqary3_transport() 629 memp->complete = cpqary3_oscmd_complete; in cpqary3_transport() 632 switch (cpqary3_build_cmdlist(memp, SA2TGT(sa))) { in cpqary3_transport() 635 return (cpqary3_handle_flag_nointr(memp, scsi_pktp)); in cpqary3_transport() 640 if (EIO == cpqary3_submit(ctlr, memp->cmdlist_phyaddr)) { in cpqary3_transport() 642 cpqary3_cmdlist_release(memp, CPQARY3_HOLD_SW_MUTEX); in cpqary3_transport() [all …]
|
H A D | cpqary3.h | 143 #define PVTPKT2MEM(p) ((cpqary3_cmdpvt_t *)p->memp) 423 cpqary3_cmdpvt_t *memp; member
|
/illumos-gate/usr/src/cmd/sendmail/db/db/ |
H A D | db_ret.c | 34 __db_ret(dbp, h, indx, dbt, memp, memsize) in __db_ret() argument 39 void **memp; 55 ho.tlen, ho.pgno, memp, memsize)); 67 bo->tlen, bo->pgno, memp, memsize)); 76 return (__db_retcopy(dbt, data, len, memp, memsize, 88 __db_retcopy(dbt, data, len, memp, memsize, db_malloc) in __db_retcopy() argument 92 void **memp; 137 } else if (memp == NULL || memsize == NULL) { 141 if ((ret = __os_realloc(memp, len)) != 0) { 147 dbt->data = *memp;
|
/illumos-gate/usr/src/cmd/bhyve/common/ |
H A D | mem.c | 300 register_mem_int(struct mmio_rb_tree *rbt, struct mem_range *memp) in register_mem_int() argument 313 mrp->mr_param = *memp; in register_mem_int() 314 mrp->mr_base = memp->base; in register_mem_int() 315 mrp->mr_end = memp->base + memp->size - 1; in register_mem_int() 317 if (mmio_rb_lookup(rbt, memp->base, &entry) != 0) in register_mem_int() 333 register_mem(struct mem_range *memp) in register_mem() argument 336 return (register_mem_int(&mmio_rb_root, memp)); in register_mem() 340 register_mem_fallback(struct mem_range *memp) in register_mem_fallback() argument 343 return (register_mem_int(&mmio_rb_fallback, memp)); in register_mem_fallback() 347 unregister_mem(struct mem_range *memp) in unregister_mem() argument [all …]
|
H A D | mem.h | 58 int register_mem(struct mem_range *memp); 59 int register_mem_fallback(struct mem_range *memp); 60 int unregister_mem(struct mem_range *memp);
|
/illumos-gate/usr/src/uts/common/io/ib/clients/iser/ |
H A D | iser_resource.c | 140 void *memp = NULL; in iser_msg_cache_constructor() local 146 memp = iser_vmem_alloc(hca->hca_msg_pool, ISER_MAX_CTRLPDU_LEN); in iser_msg_cache_constructor() 147 if (memp == NULL) { in iser_msg_cache_constructor() 154 status = iser_vmem_mr(hca->hca_msg_pool, memp, in iser_msg_cache_constructor() 158 "couldn't find mr for %p", memp); in iser_msg_cache_constructor() 159 iser_vmem_free(hca->hca_msg_pool, memp, ISER_MAX_CTRLPDU_LEN); in iser_msg_cache_constructor() 163 msg->msg_ds.ds_va = (ib_vaddr_t)(uintptr_t)memp; in iser_msg_cache_constructor() 180 uint8_t *memp; in iser_msg_cache_destructor() local 182 memp = (uint8_t *)(uintptr_t)(ib_vaddr_t)msg->msg_ds.ds_va; in iser_msg_cache_destructor() 183 iser_vmem_free(hca->hca_msg_pool, memp, ISER_MAX_CTRLPDU_LEN); in iser_msg_cache_destructor() [all …]
|
/illumos-gate/usr/src/cmd/sgs/gprof/common/ |
H A D | arcs.c | 367 nltype *memp; in inheritflags() local 401 for (memp = headp->cnext; memp; memp = memp->cnext) { in inheritflags() 402 for (arcp = memp->parents; arcp; in inheritflags() 423 for (memp = headp; memp; memp = memp->cnext) { in inheritflags() 424 memp->printflag = headp->printflag; in inheritflags() 425 memp->propfraction = headp->propfraction; in inheritflags()
|
/illumos-gate/usr/src/lib/nsswitch/compat/common/ |
H A D | getgrent.c | 268 char **memp; local 270 for (memp = g->gr_mem; *memp != 0; memp++) { 271 size_t len = strlen(*memp); 273 if (memp != g->gr_mem) { 276 (void) memcpy(s, *memp, len);
|
/illumos-gate/usr/src/uts/common/io/ib/clients/rds/ |
H A D | rdsib_buf.c | 179 uint8_t *memp; in rds_init_recv_caches() local 222 memp = (uint8_t *)kmem_zalloc(memsize, KM_NOSLEEP); in rds_init_recv_caches() 223 if (memp == NULL) { in rds_init_recv_caches() 237 mem_attr.mr_vaddr = (ib_vaddr_t)(uintptr_t)memp; in rds_init_recv_caches() 271 kmem_free(memp, memsize); in rds_init_recv_caches() 286 rds_dpool.pool_memp = memp; in rds_init_recv_caches() 294 mp = memp; in rds_init_recv_caches() 326 RDS_DPRINTF3(LABEL, "rdsmemp start: %p end: %p", memp, mp); in rds_init_recv_caches() 393 uint8_t *memp; in rds_init_send_pool() local 435 memp = (uint8_t *)kmem_zalloc(memsize, KM_NOSLEEP); in rds_init_send_pool() [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | pcic.c | 2775 pcs_memwin_t *memp; in pcic_set_window() local 2800 memp = &sockp->pcs_windows[win].mem; in pcic_set_window() 2801 memp->pcw_speed = window->speed; in pcic_set_window() 2805 if (window->WindowSize != memp->pcw_len) in pcic_set_window() 2806 which = memp->pcw_len; in pcic_set_window() 2823 if (which && (memp->pcw_status & PCW_MAPPED)) { in pcic_set_window() 2824 ddi_regs_map_free(&memp->pcw_handle); in pcic_set_window() 2825 res.ra_addr_lo = memp->pcw_base; in pcic_set_window() 2826 res.ra_len = memp->pcw_len; in pcic_set_window() 2827 (void) pcmcia_free_mem(memp->res_dip, &res); in pcic_set_window() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getgrnam_r.c | 428 char **memp; in process_cstr() local 447 for (memp = grp->gr_mem; (memp) && ((mem = *memp) != 0); in process_cstr() 448 memp++) { in process_cstr()
|
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | ncgrpw.c | 416 char **memp = NULL; in dup_gr_ent() local 452 memp = malloc(sizeof (char **)* (nent+1)); in dup_gr_ent() 454 if (memp == NULL) { in dup_gr_ent() 469 if ((memp[nent++] = strdup(*tp)) == NULL) { in dup_gr_ent() 486 memp[nent++] = '\0'; in dup_gr_ent()
|
/illumos-gate/usr/src/cmd/troff/ |
H A D | n3.c | 765 char *memp; in collect() local 766 memp = (char *)savnxf; in collect() 772 memp += sizeof(struct s); in collect() 780 memp += APERMAC * sizeof(tchar *); in collect() 781 memp += CPERMAC * sizeof(tchar); in collect() 782 nxf = (struct s*)memp; in collect()
|
/illumos-gate/usr/src/cmd/sgs/yacc/common/ |
H A D | y4.c | 498 if (memp >= amem) in exp_act() 499 memp = memp - actbase + amem; in exp_act()
|
H A D | y3.c | 178 if (qq > memp) in apack() 179 memp = qq; in apack() 184 for (pp = amem; pp <= memp; pp += 10) { in apack()
|
/illumos-gate/usr/src/uts/common/io/1394/adapters/ |
H A D | hci1394_ixl_comp.c | 2205 hci1394_buf_info_t *memp; in hci1394_alloc_dma_mem() local 2235 memp = &wvp->dma_currentp->mem; in hci1394_alloc_dma_mem() 2236 dma_new->mem = *memp; in hci1394_alloc_dma_mem() 2238 memp->bi_cookie.dmac_size; in hci1394_alloc_dma_mem() 2240 for (; memp->bi_cookie_count > 1; in hci1394_alloc_dma_mem() 2241 memp->bi_cookie_count--) { in hci1394_alloc_dma_mem() 2242 ddi_dma_nextcookie(memp->bi_dma_handle, in hci1394_alloc_dma_mem()
|
/illumos-gate/usr/src/uts/common/rpc/ |
H A D | svc_rdma.c | 653 char *memp; in svc_process_long_reply() local 686 memp = long_rpc.addr; in svc_process_long_reply() 687 xdrmem_create(&xdrslong, memp, alloc_len, XDR_ENCODE); in svc_process_long_reply() 720 wcl->w.c_saddr3 = (caddr_t)memp; in svc_process_long_reply() 724 memp += wcl->c_len; in svc_process_long_reply()
|
/illumos-gate/usr/src/uts/sun4u/serengeti/io/ |
H A D | sbdp_mem.c | 1356 mem_op_t *memp = (mem_op_t *)arg; in sbdp_is_mem() local 1364 ASSERT(memp); in sbdp_is_mem() 1366 list = memp->nodes; in sbdp_is_mem() 1367 board = memp->board; in sbdp_is_mem() 1393 if (memp->nmem >= SBDP_MAX_MEM_NODES_PER_BOARD) in sbdp_is_mem() 1398 list[memp->nmem++] = node; in sbdp_is_mem()
|