Home
last modified time | relevance | path

Searched refs:cpqary3p (Results 1 – 9 of 9) sorted by relevance

/titanic_44/usr/src/uts/common/io/cpqary3/
H A Dcpqary3_talk2ctlr.c29 uint8_t cpqary3_check_simple_ctlr_intr(cpqary3_t *cpqary3p);
30 uint8_t cpqary3_check_perf_ctlr_intr(cpqary3_t *cpqary3p);
31 uint8_t cpqary3_check_perf_e200_intr(cpqary3_t *cpqary3p);
44 cpqary3_check_simple_ctlr_intr(cpqary3_t *cpqary3p) in cpqary3_check_simple_ctlr_intr() argument
53 intr_pending_mask = cpqary3p->bddef->bd_intrpendmask; in cpqary3_check_simple_ctlr_intr()
56 (ddi_get32(cpqary3p->isr_handle, (uint32_t *)cpqary3p->isr))) in cpqary3_check_simple_ctlr_intr()
73 cpqary3_check_perf_ctlr_intr(cpqary3_t *cpqary3p) in cpqary3_check_perf_ctlr_intr() argument
80 if (0x1 & (ddi_get32(cpqary3p->isr_handle, in cpqary3_check_perf_ctlr_intr()
81 (uint32_t *)cpqary3p->isr))) { in cpqary3_check_perf_ctlr_intr()
99 cpqary3_check_perf_e200_intr(cpqary3_t *cpqary3p) in cpqary3_check_perf_e200_intr() argument
[all …]
H A Dcpqary3.c284 cpqary3_t *cpqary3p; /* per-controller */ in cpqary3_attach() local
304 cpqary3p = ddi_get_soft_state(cpqary3_state, instance); in cpqary3_attach()
305 if (!cpqary3p) { in cpqary3_attach()
307 cpqary3_cleanup(cpqary3p, cleanstatus); in cpqary3_attach()
312 cpqary3p->dip = dip; in cpqary3_attach()
313 cpqary3p->instance = instance; in cpqary3_attach()
316 cpqary3_read_conf_file(dip, cpqary3p); in cpqary3_attach()
319 retvalue = cpqary3_update_ctlrdetails(cpqary3p, &cleanstatus); in cpqary3_attach()
321 cpqary3_cleanup(cpqary3p, cleanstatus); in cpqary3_attach()
326 if (ddi_get_iblock_cookie(dip, 0, &cpqary3p->hw_iblock_cookie) != in cpqary3_attach()
[all …]
H A Dcpqary3_isr.c37 cpqary3_t *cpqary3p; in cpqary3_hw_isr() local
44 cpqary3p = (void *)per_ctlr; in cpqary3_hw_isr()
45 ctp = (CfgTable_t *)cpqary3p->ct; in cpqary3_hw_isr()
46 replyq_ptr = (cpqary3_drvr_replyq_t *)cpqary3p->drvr_replyq; in cpqary3_hw_isr()
48 if (CPQARY3_FAILURE == cpqary3p->check_ctlr_intr(cpqary3p)) { in cpqary3_hw_isr()
49 if (cpqary3p->heartbeat == in cpqary3_hw_isr()
50 DDI_GET32(cpqary3p, &ctp->HeartBeat)) { in cpqary3_hw_isr()
51 if (0x2 & ddi_get32(cpqary3p->odr_handle, in cpqary3_hw_isr()
52 (uint32_t *)cpqary3p->odr)) { in cpqary3_hw_isr()
53 spr0 = ddi_get32(cpqary3p->spr0_handle, in cpqary3_hw_isr()
[all …]
H A Dcpqary3_scsi.c41 cpqary3_probe4targets(cpqary3_t *cpqary3p) in cpqary3_probe4targets() argument
45 rv = cpqary3_probe4LVs(cpqary3p); in cpqary3_probe4targets()
51 rv = cpqary3_probe4Tapes(cpqary3p); in cpqary3_probe4targets()
75 cpqary3_t *cpqary3p; in cpqary3_build_cmdlist() local
82 if (NULL == (cpqary3p = cpqary3_cmdpvtp->ctlr)) in cpqary3_build_cmdlist()
87 tgtp = cpqary3p->cpqary3_tgtp[tid]; in cpqary3_build_cmdlist()
180 cpqary3_send_abortcmd(cpqary3_t *cpqary3p, uint16_t target_id, in cpqary3_send_abortcmd() argument
192 RETURN_FAILURE_IF_NULL(cpqary3p); in cpqary3_send_abortcmd()
197 cpqtgtp = cpqary3p->cpqary3_tgtp[target_id]; in cpqary3_send_abortcmd()
210 cpqary3_cmdpvtp = cpqary3_synccmd_alloc(cpqary3p, 0); in cpqary3_send_abortcmd()
[all …]
H A Dcpqary3_ioctl.c136 cpqary3_ioctl_ctlr_info(uintptr_t ioctl_reqp, cpqary3_t *cpqary3p, int mode) in cpqary3_ioctl_ctlr_info() argument
170 ctlr_info->subsystem_id = cpqary3p->board_id; in cpqary3_ioctl_ctlr_info()
171 ctlr_info->bus = cpqary3p->bus; in cpqary3_ioctl_ctlr_info()
172 ctlr_info->dev = cpqary3p->dev; in cpqary3_ioctl_ctlr_info()
173 ctlr_info->fun = cpqary3p->fun; in cpqary3_ioctl_ctlr_info()
174 ctlr_info->num_of_tgts = cpqary3p->num_of_targets; in cpqary3_ioctl_ctlr_info()
175 ctlr_info->controller_instance = cpqary3p->instance; in cpqary3_ioctl_ctlr_info()
226 cpqary3_ioctl_bmic_pass(uintptr_t ioctl_reqp, cpqary3_t *cpqary3p, int mode) in cpqary3_ioctl_bmic_pass() argument
275 retval = cpqary3_ioctl_send_bmiccmd(cpqary3p, bmic_pass, mode); in cpqary3_ioctl_bmic_pass()
320 cpqary3_ioctl_send_bmiccmd(cpqary3_t *cpqary3p, in cpqary3_ioctl_send_bmiccmd() argument
[all …]
H A Dcpqary3_util.c35 cpqary3_read_conf_file(dev_info_t *dip, cpqary3_t *cpqary3p) in cpqary3_read_conf_file() argument
39 cpqary3p->noe_support = 0; in cpqary3_read_conf_file()
69 cpqary3p->legacy_mapping = 1; in cpqary3_read_conf_file()
77 cpqary3p->noe_support = 1; in cpqary3_read_conf_file()
80 cpqary3p->noe_support = 0; in cpqary3_read_conf_file()
317 cpqary3_synccmd_alloc(cpqary3_t *cpqary3p, size_t bufsz) in cpqary3_synccmd_alloc() argument
345 dmabufva = cpqary3_alloc_phyctgs_mem(cpqary3p, bufsz, in cpqary3_synccmd_alloc()
361 memp = cpqary3_cmdlist_occupy(cpqary3p); in cpqary3_synccmd_alloc()
429 cpqary3_synccmd_free(cpqary3_t *cpqary3p, cpqary3_cmdpvt_t *memp) in cpqary3_synccmd_free() argument
456 mutex_enter(&(cpqary3p->sw_mutex)); in cpqary3_synccmd_free()
[all …]
H A Dcpqary3_mem.c60 cpqary3_meminit(cpqary3_t *cpqary3p) in cpqary3_meminit() argument
84 RETURN_FAILURE_IF_NULL(cpqary3p); in cpqary3_meminit()
86 CmdsOutMax = cpqary3p->ctlr_maxcmds; in cpqary3_meminit()
95 cpqary3p->cmdmemlistp = memlistp = in cpqary3_meminit()
98 if (!cpqary3p->cmdmemlistp) { in cpqary3_meminit()
119 MEM_SFREE(cpqary3p->cmdmemlistp, sizeof (cpqary3_cmdmemlist_t)); in cpqary3_meminit()
120 cpqary3p->cmdmemlistp = NULL; in cpqary3_meminit()
146 ptr->ctlr = cpqary3p; in cpqary3_meminit()
151 cpqary3p->cmdmemlistp->head = head_pvtp; /* head Command Memory List */ in cpqary3_meminit()
152 cpqary3p->cmdmemlistp->tail = tail_pvtp; /* tail Command Memory List */ in cpqary3_meminit()
[all …]
H A Dcpqary3_transport.c232 cpqary3_t *cpqary3p; in cpqary3_init_pkt() local
239 cpqary3p = SA2CTLR(sa); in cpqary3_init_pkt()
240 dip = cpqary3p->dip; in cpqary3_init_pkt()
302 if (cpqary3_dma_alloc(cpqary3p, scsi_pktp, in cpqary3_init_pkt()
311 cpqary3_dma_move(scsi_pktp, bp, cpqary3p)) { in cpqary3_init_pkt()
331 cpqary3_dma_alloc(cpqary3_t *cpqary3p, struct scsi_pkt *scsi_pktp, in cpqary3_dma_alloc() argument
368 tmp_dma_attr.dma_attr_sgllen = cpqary3p->sg_cnt; in cpqary3_dma_alloc()
380 if (DDI_SUCCESS != (retvalue = ddi_dma_alloc_handle(cpqary3p->dip, in cpqary3_dma_alloc()
450 if (i == cpqary3p->sg_cnt || in cpqary3_dma_alloc()
508 cpqary3_t *cpqary3p) in cpqary3_dma_move() argument
[all …]
H A Dcpqary3.h488 uint8_t cpqary3_poll_retrieve(cpqary3_t *cpqary3p, uint32_t poll_tag);