Lines Matching defs:ptr
1016 uint32_t msg[PMCS_MSG_SIZE], *ptr, htag, status;
1086 ptr = GET_IQ_ENTRY(pwp, PMCS_IQ_OTHER);
1087 if (ptr == NULL) {
1110 COPY_MESSAGE(ptr, msg, PMCS_MSG_SIZE);
1640 pwrk->ptr = (void *) pmcs_SAS_done;
1656 pwrk->ptr = (void *) pmcs_SATA_done;
1776 callback = (pmcs_cb_t)ioccb->pwrk->ptr;
1847 uint32_t iq, lhtag, *ptr;
1864 GET_IO_IQ_ENTRY(pwp, ptr, pwrk->phy->device_id, iq);
1865 if (ptr == NULL) {
1882 ptr[0] =
1884 ptr[1] = LE_32(pwrk->htag);
1885 ptr[2] = LE_32(pwrk->phy->device_id);
1886 ptr[3] = LE_32(pkt->pkt_dma_len);
1887 if (ptr[3]) {
1890 ptr[4] = LE_32(PMCIN_DATADIR_2_INI);
1892 ptr[4] = LE_32(PMCIN_DATADIR_2_DEV);
1894 if (pmcs_dma_load(pwp, sp, ptr)) {
1921 ptr[4] = LE_32(PMCIN_DATADIR_NONE);
1922 CLEAN_MESSAGE(ptr, 12);
1938 ptr[4] |= PMCIN_MESSAGE_REPORT;
1961 (void) memcpy(&ptr[5], &sc, sizeof (sas_ssp_cmd_iu_t));
1969 pmcs_print_entry(pwp, PMCS_PRT_DEBUG3, "SAS INI Message", ptr);
2363 uint32_t *ptr, lhtag, iq, nblk, i, mtype;
2465 GET_IO_IQ_ENTRY(pwp, ptr, xp->phy->device_id, iq);
2466 if (ptr == NULL) {
2509 ptr[0] =
2511 ptr[1] = LE_32(pwrk->htag);
2512 ptr[2] = LE_32(pwrk->phy->device_id);
2513 ptr[3] = LE_32(amt);
2551 ptr[4] = LE_32(mtype | PMCIN_DATADIR_2_INI);
2553 ptr[4] = LE_32(mtype | PMCIN_DATADIR_2_DEV);
2560 ptr[4] |= PMCIN_MESSAGE_REPORT;
2563 ptr[i+5] = LE_32(fis[i]);
2565 if (pmcs_dma_load(pwp, sp, ptr)) {
2595 pmcs_print_entry(pwp, PMCS_PRT_DEBUG3, "SATA INI Message", ptr);