Lines Matching defs:cmdhdl

2208 	ddi_acc_handle_t cmdhdl = nvp->nvp_cmd_hdl;
2213 nvp->nvp_signature = nv_get8(cmdhdl, nvp->nvp_count);
2214 nvp->nvp_signature |= (nv_get8(cmdhdl, nvp->nvp_sect) << 8);
2215 nvp->nvp_signature |= (nv_get8(cmdhdl, nvp->nvp_lcyl) << 16);
2216 nvp->nvp_signature |= (nv_get8(cmdhdl, nvp->nvp_hcyl) << 24);
2340 ddi_acc_handle_t cmdhdl = nvp->nvp_cmd_hdl;
2429 nv_put8(cmdhdl, nvp->nvp_sect, 0);
2430 nv_put8(cmdhdl, nvp->nvp_lcyl, 0);
2431 nv_put8(cmdhdl, nvp->nvp_hcyl, 0);
2432 nv_put8(cmdhdl, nvp->nvp_count, 0);
3612 ddi_acc_handle_t cmdhdl = nvp->nvp_cmd_hdl;
3618 (void) nv_get8(cmdhdl, nvp->nvp_status);
4189 ddi_acc_handle_t cmdhdl = nvp->nvp_cmd_hdl;
4206 nv_put8(cmdhdl, nvp->nvp_drvhd, satacmd->satacmd_device_reg);
4223 nv_put8(cmdhdl, nvp->nvp_count, satacmd->satacmd_sec_count_lsb);
4224 nv_put8(cmdhdl, nvp->nvp_hcyl, satacmd->satacmd_lba_high_lsb);
4225 nv_put8(cmdhdl, nvp->nvp_lcyl, satacmd->satacmd_lba_mid_lsb);
4226 nv_put8(cmdhdl, nvp->nvp_sect, satacmd->satacmd_lba_low_lsb);
4227 nv_put8(cmdhdl, nvp->nvp_feature,
4241 nv_put8(cmdhdl, nvp->nvp_count, satacmd->satacmd_sec_count_lsb);
4242 nv_put8(cmdhdl, nvp->nvp_hcyl, satacmd->satacmd_lba_high_lsb);
4243 nv_put8(cmdhdl, nvp->nvp_lcyl, satacmd->satacmd_lba_mid_lsb);
4244 nv_put8(cmdhdl, nvp->nvp_sect, satacmd->satacmd_lba_low_lsb);
4245 nv_put8(cmdhdl, nvp->nvp_feature,
4260 nv_put8(cmdhdl, nvp->nvp_count, slot << 3);
4262 nv_put8(cmdhdl, nvp->nvp_count,
4264 nv_put8(cmdhdl, nvp->nvp_count,
4268 nv_put8(cmdhdl, nvp->nvp_feature,
4270 nv_put8(cmdhdl, nvp->nvp_feature,
4276 nv_put8(cmdhdl, nvp->nvp_hcyl, satacmd->satacmd_lba_high_msb);
4277 nv_put8(cmdhdl, nvp->nvp_lcyl, satacmd->satacmd_lba_mid_msb);
4278 nv_put8(cmdhdl, nvp->nvp_sect, satacmd->satacmd_lba_low_msb);
4283 nv_put8(cmdhdl, nvp->nvp_hcyl, satacmd->satacmd_lba_high_lsb);
4284 nv_put8(cmdhdl, nvp->nvp_lcyl, satacmd->satacmd_lba_mid_lsb);
4285 nv_put8(cmdhdl, nvp->nvp_sect, satacmd->satacmd_lba_low_lsb);
4294 nv_put8(cmdhdl, nvp->nvp_count, satacmd->satacmd_sec_count_lsb);
4295 nv_put8(cmdhdl, nvp->nvp_feature,
4297 nv_put8(cmdhdl, nvp->nvp_hcyl, satacmd->satacmd_lba_high_lsb);
4298 nv_put8(cmdhdl, nvp->nvp_lcyl, satacmd->satacmd_lba_mid_lsb);
4299 nv_put8(cmdhdl, nvp->nvp_sect, satacmd->satacmd_lba_low_lsb);
4320 ddi_acc_handle_t cmdhdl = nvp->nvp_cmd_hdl;
4327 nv_put8(cmdhdl, nvp->nvp_cmd, sata_cmdp->satacmd_cmd_reg);
4403 ddi_acc_handle_t cmdhdl = nvp->nvp_cmd_hdl;
4430 nv_put8(cmdhdl, nvp->nvp_cmd, cmd);
4515 ddi_acc_handle_t cmdhdl = nvp->nvp_cmd_hdl;
4522 nv_put8(cmdhdl, nvp->nvp_cmd, spkt->satapkt_cmd.satacmd_cmd_reg);
4535 ddi_acc_handle_t cmdhdl = nvp->nvp_cmd_hdl;
4543 nv_put8(cmdhdl, nvp->nvp_cmd, spkt->satapkt_cmd.satacmd_cmd_reg);
4602 ddi_acc_handle_t cmdhdl = nvp->nvp_cmd_hdl;
4615 nv_put8(cmdhdl, nvp->nvp_drvhd, satacmd->satacmd_device_reg);
4630 nv_put8(cmdhdl, nvp->nvp_feature, 0); /* deassert DMA and OVL */
4633 nv_put8(cmdhdl, nvp->nvp_hcyl, satacmd->satacmd_lba_high_lsb);
4634 nv_put8(cmdhdl, nvp->nvp_lcyl, satacmd->satacmd_lba_mid_lsb);
4635 nv_put8(cmdhdl, nvp->nvp_sect, satacmd->satacmd_lba_low_lsb);
4636 nv_put8(cmdhdl, nvp->nvp_count, satacmd->satacmd_sec_count_lsb);
4639 nv_put8(cmdhdl, nvp->nvp_cmd, spkt->satapkt_cmd.satacmd_cmd_reg);
4661 if (nv_get8(cmdhdl, nvp->nvp_status) &
4686 ddi_rep_put16(cmdhdl, (ushort_t *)spkt->satapkt_cmd.satacmd_acdb,
4712 ddi_acc_handle_t cmdhdl = nvp->nvp_cmd_hdl;
4716 status = nv_get8(cmdhdl, nvp->nvp_status);
4725 sata_cmdp->satacmd_error_reg = nv_get8(cmdhdl, nvp->nvp_error);
4744 ddi_acc_handle_t cmdhdl = nvp->nvp_cmd_hdl;
4747 status = nv_get8(cmdhdl, nvp->nvp_status);
4754 sata_cmdp->satacmd_error_reg = nv_get8(cmdhdl, nvp->nvp_error);
4782 ddi_rep_get16(cmdhdl, (ushort_t *)nv_slotp->nvslot_v_addr,
4816 ddi_acc_handle_t cmdhdl = nvp->nvp_cmd_hdl;
4822 status = nv_get8(cmdhdl, nvp->nvp_status);
4832 sata_cmdp->satacmd_error_reg = nv_get8(cmdhdl, nvp->nvp_error);
4884 ddi_rep_put16(cmdhdl, (ushort_t *)nv_slotp->nvslot_v_addr,
4911 ddi_acc_handle_t cmdhdl = nvp->nvp_cmd_hdl;
4917 status = nv_get8(cmdhdl, nvp->nvp_status);
4952 sata_cmdp->satacmd_error_reg = nv_get8(cmdhdl,
4980 sata_cmdp->satacmd_error_reg = nv_get8(cmdhdl,
5005 (uint16_t)nv_get8(cmdhdl, nvp->nvp_hcyl) << 8;
5006 ctlr_count |= nv_get8(cmdhdl, nvp->nvp_lcyl);
5027 ddi_rep_get16(cmdhdl,
5037 (void) ddi_get16(cmdhdl,
5075 ctlr_count = (uint16_t)nv_get8(cmdhdl, nvp->nvp_hcyl) << 8;
5076 ctlr_count |= nv_get8(cmdhdl, nvp->nvp_lcyl);
5102 ddi_rep_get16(cmdhdl,
5114 (void) ddi_get16(cmdhdl,
5121 ddi_rep_put16(cmdhdl,
5154 ddi_acc_handle_t cmdhdl = nvp->nvp_cmd_hdl;
5170 status = nv_get8(cmdhdl, nvp->nvp_status);
5193 sata_cmdp->satacmd_error_reg = nv_get8(cmdhdl, nvp->nvp_error);
6103 ddi_acc_handle_t cmdhdl = nvp->nvp_cmd_hdl;
6150 nv_get8(cmdhdl, nvp->nvp_count);
6155 nv_get8(cmdhdl, nvp->nvp_sect);
6160 nv_get8(cmdhdl, nvp->nvp_lcyl);
6165 nv_get8(cmdhdl, nvp->nvp_hcyl);
6178 scmd->satacmd_sec_count_lsb = nv_get8(cmdhdl, nvp->nvp_count);
6182 scmd->satacmd_lba_low_lsb = nv_get8(cmdhdl, nvp->nvp_sect);
6186 scmd->satacmd_lba_mid_lsb = nv_get8(cmdhdl, nvp->nvp_lcyl);
6190 scmd->satacmd_lba_high_lsb = nv_get8(cmdhdl, nvp->nvp_hcyl);
6197 scmd->satacmd_device_reg = nv_get8(cmdhdl, nvp->nvp_drvhd);
6204 scmd->satacmd_error_reg = nv_get8(cmdhdl, nvp->nvp_error);
6296 ddi_acc_handle_t cmdhdl = nvp->nvp_cmd_hdl;
6308 nv_put8(cmdhdl, nvp->nvp_drvhd, satacmd->satacmd_device_reg);
6319 nv_put8(cmdhdl, nvp->nvp_feature, 0); /* deassert DMA and OVL */
6320 nv_put8(cmdhdl, nvp->nvp_hcyl, SATA_ATAPI_MAX_BYTES_PER_DRQ >> 8);
6321 nv_put8(cmdhdl, nvp->nvp_lcyl, SATA_ATAPI_MAX_BYTES_PER_DRQ & 0xff);
6322 nv_put8(cmdhdl, nvp->nvp_sect, 0);
6323 nv_put8(cmdhdl, nvp->nvp_count, 0); /* no tag */
6326 nv_put8(cmdhdl, nvp->nvp_cmd, SATAC_PACKET);
6340 if (nv_get8(cmdhdl, nvp->nvp_status) &
6365 ddi_rep_put16(cmdhdl, (ushort_t *)nv_rqsense_cdb,
6396 ddi_acc_handle_t cmdhdl = nvp->nvp_cmd_hdl;
6408 nv_put8(cmdhdl, nvp->nvp_sect, 0);
6409 nv_put8(cmdhdl, nvp->nvp_lcyl, 0);
6410 nv_put8(cmdhdl, nvp->nvp_hcyl, 0);
6411 nv_put8(cmdhdl, nvp->nvp_count, 0);