Home
last modified time | relevance | path

Searched refs:memp (Results 1 – 25 of 33) sorted by relevance

12

/titanic_44/usr/src/uts/common/io/scsi/adapters/mpt_sas/
H A Dmptsas_init.c84 static int mptsas_ioc_do_get_facts(mptsas_t *mpt, caddr_t memp, int var,
86 static int mptsas_ioc_do_get_facts_reply(mptsas_t *mpt, caddr_t memp, int var,
88 static int mptsas_ioc_do_get_port_facts(mptsas_t *mpt, caddr_t memp, int var,
90 static int mptsas_ioc_do_get_port_facts_reply(mptsas_t *mpt, caddr_t memp,
92 static int mptsas_ioc_do_enable_port(mptsas_t *mpt, caddr_t memp, int var,
94 static int mptsas_ioc_do_enable_port_reply(mptsas_t *mpt, caddr_t memp, int var,
96 static int mptsas_ioc_do_enable_event_notification(mptsas_t *mpt, caddr_t memp,
99 caddr_t memp, int var, ddi_acc_handle_t accessp);
100 static int mptsas_do_ioc_init(mptsas_t *mpt, caddr_t memp, int var,
102 static int mptsas_do_ioc_init_reply(mptsas_t *mpt, caddr_t memp, int var,
[all …]
H A Dmptsas_impl.c722 mptsas_send_handshake_msg(mptsas_t *mpt, caddr_t memp, int numbytes, in mptsas_send_handshake_msg() argument
754 for (i = 0; (i < numbytes / 4); i++, memp += 4) { in mptsas_send_handshake_msg()
756 ddi_get32(accessp, (uint32_t *)((void *)(memp)))); in mptsas_send_handshake_msg()
774 mptsas_get_handshake_msg(mptsas_t *mpt, caddr_t memp, int numbytes, in mptsas_get_handshake_msg() argument
792 for (i = 0; i < 2; i++, memp += 2) { in mptsas_get_handshake_msg()
801 ddi_put16(accessp, (uint16_t *)((void *)(memp)), val); in mptsas_get_handshake_msg()
821 for (i = 0; i < bytesleft; i++, memp += 2) { in mptsas_get_handshake_msg()
830 ddi_put16(accessp, (uint16_t *)((void *)(memp)), val); in mptsas_get_handshake_msg()
1311 caddr_t memp, flsh_memp; in mptsas_update_flash() local
1387 memp = mpt->m_req_frame + (mpt->m_req_frame_size * cmd->cmd_slot); in mptsas_update_flash()
[all …]
/titanic_44/usr/src/cmd/mdb/sun4u/modules/opl/oplhwd/
H A Doplhwd.c100 dumpmemhwd(hwd_memory_t *memp, int v, int mv) in dumpmemhwd() argument
105 memp->mem_start_address, memp->mem_size, memp->mem_mirror_mode); in dumpmemhwd()
107 memp->mem_division_mode, memp->mem_piece_number); in dumpmemhwd()
108 mdb_printf("\tcs interleave %d\n", memp->mem_cs_interleave); in dumpmemhwd()
112 if (DONT_BOTHER(memp->mem_banks[i].bank_status, mv)) { in dumpmemhwd()
114 i, memp->mem_banks[i].bank_status, in dumpmemhwd()
115 hwd_stat_decode(memp->mem_banks[i].bank_status)); in dumpmemhwd()
119 i, memp->mem_banks[i].bank_status, in dumpmemhwd()
120 hwd_stat_decode(memp->mem_banks[i].bank_status), in dumpmemhwd()
121 memp->mem_banks[i].bank_register_address); in dumpmemhwd()
[all …]
/titanic_44/usr/src/uts/common/io/cpqary3/
H A Dcpqary3_noe.c109 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 Dcpqary3_mem.c333 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 Dcpqary3_util.c321 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 Dcpqary3_ioctl.c323 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 Dcpqary3_transport.c265 cpqary3_pktp->memp = (cpqary3_cmdpvt_t *)NULL; in cpqary3_init_pkt()
584 cpqary3_cmdpvt_t *memp; in cpqary3_transport() local
612 if (NULL == (memp = cpqary3_cmdlist_occupy(ctlr))) in cpqary3_transport()
615 cpqary3_pktp->memp = memp; in cpqary3_transport()
616 memp->pvt_pkt = cpqary3_pktp; in cpqary3_transport()
628 memp->complete = cpqary3_oscmd_complete; in cpqary3_transport()
631 switch (cpqary3_build_cmdlist(memp, SA2TGT(sa))) { in cpqary3_transport()
634 return (cpqary3_handle_flag_nointr(memp, scsi_pktp)); in cpqary3_transport()
639 if (EIO == cpqary3_submit(ctlr, memp->cmdlist_phyaddr)) { in cpqary3_transport()
641 cpqary3_cmdlist_release(memp, CPQARY3_HOLD_SW_MUTEX); in cpqary3_transport()
[all …]
H A Dcpqary3.h143 #define PVTPKT2MEM(p) ((cpqary3_cmdpvt_t *)p->memp)
423 cpqary3_cmdpvt_t *memp; member
/titanic_44/usr/src/cmd/sendmail/db/db/
H A Ddb_ret.c34 __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;
/titanic_44/usr/src/uts/common/io/ib/clients/iser/
H A Diser_resource.c140 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 …]
/titanic_44/usr/src/cmd/sgs/gprof/common/
H A Darcs.c362 nltype *memp; in inheritflags() local
396 for (memp = headp->cnext; memp; memp = memp->cnext) { in inheritflags()
397 for (arcp = memp->parents; arcp; in inheritflags()
418 for (memp = headp; memp; memp = memp->cnext) { in inheritflags()
419 memp->printflag = headp->printflag; in inheritflags()
420 memp->propfraction = headp->propfraction; in inheritflags()
/titanic_44/usr/src/lib/nsswitch/compat/common/
H A Dgetgrent.c268 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);
/titanic_44/usr/src/uts/common/io/ib/clients/rds/
H A Drdsib_buf.c179 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 …]
/titanic_44/usr/src/uts/common/io/
H A Dpcic.c2774 pcs_memwin_t *memp; in pcic_set_window() local
2799 memp = &sockp->pcs_windows[win].mem; in pcic_set_window()
2800 memp->pcw_speed = window->speed; in pcic_set_window()
2804 if (window->WindowSize != memp->pcw_len) in pcic_set_window()
2805 which = memp->pcw_len; in pcic_set_window()
2822 if (which && (memp->pcw_status & PCW_MAPPED)) { in pcic_set_window()
2823 ddi_regs_map_free(&memp->pcw_handle); in pcic_set_window()
2824 res.ra_addr_lo = memp->pcw_base; in pcic_set_window()
2825 res.ra_len = memp->pcw_len; in pcic_set_window()
2826 (void) pcmcia_free_mem(memp->res_dip, &res); in pcic_set_window()
[all …]
/titanic_44/usr/src/lib/libc/port/gen/
H A Dgetgrnam_r.c427 char **memp; in process_cstr() local
446 for (memp = grp->gr_mem; (memp) && ((mem = *memp) != 0); in process_cstr()
447 memp++) { in process_cstr()
/titanic_44/usr/src/lib/libpkg/common/
H A Dncgrpw.c416 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()
/titanic_44/usr/src/cmd/troff/
H A Dn3.c767 char *memp; in collect() local
768 memp = (char *)savnxf; in collect()
774 memp += sizeof(struct s); in collect()
782 memp += APERMAC * sizeof(tchar *); in collect()
783 memp += CPERMAC * sizeof(tchar); in collect()
784 nxf = (struct s*)memp; in collect()
/titanic_44/usr/src/cmd/sgs/yacc/common/
H A Dy4.c503 if (memp >= amem)
504 memp = memp - actbase + amem;
H A Dy3.c182 if (qq > memp)
183 memp = qq;
188 for (pp = amem; pp <= memp; pp += 10) {
H A Ddextern.h255 extern int *memp; /* next free action table position */
/titanic_44/usr/src/cmd/sgs/prof/common/
H A Dprofv.c733 process_mon_out(caddr_t memp, size_t fsz) in process_mon_out() argument
742 file_end = memp + fsz; in process_mon_out()
744 objp = (ProfObject *)(memp + ((ProfHeader *)memp)->size); in process_mon_out()
/titanic_44/usr/src/uts/common/rpc/
H A Dsvc_rdma.c648 char *memp; in svc_process_long_reply() local
681 memp = long_rpc.addr; in svc_process_long_reply()
682 xdrmem_create(&xdrslong, memp, alloc_len, XDR_ENCODE); in svc_process_long_reply()
715 wcl->w.c_saddr3 = (caddr_t)memp; in svc_process_long_reply()
719 memp += wcl->c_len; in svc_process_long_reply()
/titanic_44/usr/src/uts/sun4u/serengeti/io/
H A Dsbdp_mem.c1356 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()
/titanic_44/usr/src/uts/common/io/1394/adapters/
H A Dhci1394_ixl_comp.c2659 hci1394_buf_info_t *memp; in hci1394_alloc_dma_mem() local
2695 memp = &wvp->dma_currentp->mem; in hci1394_alloc_dma_mem()
2696 dma_new->mem = *memp; in hci1394_alloc_dma_mem()
2698 memp->bi_cookie.dmac_size; in hci1394_alloc_dma_mem()
2700 for (; memp->bi_cookie_count > 1; in hci1394_alloc_dma_mem()
2701 memp->bi_cookie_count--) { in hci1394_alloc_dma_mem()
2702 ddi_dma_nextcookie(memp->bi_dma_handle, in hci1394_alloc_dma_mem()

12