Lines Matching refs:spkt
1705 sata_pkt_t *spkt;
1728 spkt = sata_pkt_alloc(spx, NULL);
1729 if (spkt == NULL) {
1734 spkt->satapkt_device.satadev_addr = sata_device->satadev_addr;
1744 return (spkt);
1755 return (spkt);
1810 sata_pkt_t *spkt;
1829 spkt = sata_pkt_alloc(spx, SLEEP_FUNC);
1830 if (spkt == NULL) {
1842 spkt->satapkt_device.satadev_addr = sd->satadev_addr;
1843 spkt->satapkt_device.satadev_addr.pmport = SATA_PMULT_HOSTPORT;
1844 spkt->satapkt_device.satadev_addr.qual = SATA_ADDR_PMULT;
1847 spkt->satapkt_op_mode = SATA_OPMODE_SYNCH | SATA_OPMODE_POLLING;
1848 spkt->satapkt_comp = NULL; /* Synchronous mode, no callback */
1849 spkt->satapkt_time = 10; /* Timeout 10s */
1852 scmd = &spkt->satapkt_cmd;
1877 return (spkt);
9720 sata_pkt_t *spkt = spx->txlt_sata_pkt;
9739 spkt->satapkt_op_mode = SATA_OPMODE_SYNCH | SATA_OPMODE_INTERRUPTS;
9742 spkt->satapkt_comp = NULL;
9743 spkt->satapkt_time = sata_default_pkt_time;
9745 scmd = &spkt->satapkt_cmd;
9936 sata_pkt_t *spkt;
9953 spkt = sata_pkt_alloc(spx, NULL);
9954 if (spkt == NULL) {
9959 spkt->satapkt_device.satadev_addr = *saddr;
9973 scmd = &spkt->satapkt_cmd;
9978 spkt->satapkt_op_mode = SATA_OPMODE_SYNCH | SATA_OPMODE_INTERRUPTS;
9979 spkt->satapkt_comp = NULL;
9980 spkt->satapkt_time = sata_default_pkt_time;
10026 if (spkt->satapkt_reason == SATA_PKT_COMPLETED) {
10061 if (spkt->satapkt_reason == SATA_PKT_DEV_ERROR) {
10074 spkt->satapkt_reason,
10085 switch (spkt->satapkt_reason) {
10113 spkt->satapkt_reason);
10141 sata_pkt_t *spkt;
10168 spkt = sata_pkt_alloc(spx, NULL);
10169 if (spkt == NULL) {
10174 spkt->satapkt_device.satadev_addr = sata_device.satadev_addr;
10188 scmd = &spkt->satapkt_cmd;
10193 spkt->satapkt_op_mode = SATA_OPMODE_SYNCH | SATA_OPMODE_INTERRUPTS;
10196 spkt->satapkt_comp = NULL;
10197 spkt->satapkt_time = sata_default_pkt_time;
10240 if (spkt->satapkt_reason == SATA_PKT_COMPLETED) {
10252 if (spkt->satapkt_reason == SATA_PKT_DEV_ERROR) {
10262 spkt->satapkt_reason,
10269 switch (spkt->satapkt_reason) {
10297 spkt->satapkt_reason);
13131 sata_pkt_t *spkt;
13135 spkt = kmem_zalloc(sizeof (sata_pkt_t), kmsflag);
13136 if (spkt == NULL) {
13141 spkt->satapkt_rev = SATA_PKT_REV;
13142 spkt->satapkt_cmd.satacmd_rev = SATA_CMD_REV;
13143 spkt->satapkt_device.satadev_rev = SATA_DEVICE_REV;
13144 spkt->satapkt_framework_private = spx;
13145 spx->txlt_sata_pkt = spkt;
13146 return (spkt);
13703 sata_pkt_t *spkt;
13712 spkt = sata_pkt_alloc(spx, SLEEP_FUNC);
13713 if (spkt == NULL) {
13718 spkt->satapkt_device.satadev_addr = sdinfo->satadrv_addr;
13735 spkt->satapkt_device.satadev_addr = sdinfo->satadrv_addr;
13736 spkt->satapkt_op_mode = SATA_OPMODE_SYNCH | SATA_OPMODE_INTERRUPTS;
13738 spkt->satapkt_comp = NULL;
13740 spkt->satapkt_time = sata_default_pkt_time;
13742 scmd = &spkt->satapkt_cmd;
13764 rval = (*SATA_START_FUNC(sata_hba_inst))(SATA_DIP(sata_hba_inst), spkt);
13767 sata_inject_pkt_fault(spkt, &rval, sata_fault_type);
13771 spkt->satapkt_reason == SATA_PKT_COMPLETED) {
13877 if (spkt->satapkt_reason == SATA_PKT_DEV_ERROR ||
13878 spkt->satapkt_reason == SATA_PKT_ABORTED ||
13879 spkt->satapkt_reason == SATA_PKT_TIMEOUT ||
13880 spkt->satapkt_reason == SATA_PKT_RESET)
13914 sata_pkt_t *spkt;
14006 spkt = sata_pkt_alloc(spx, SLEEP_FUNC);
14007 if (spkt == NULL) {
14014 spkt->satapkt_device.satadev_addr = sdinfo->satadrv_addr;
14016 spkt->satapkt_time = sata_default_pkt_time;
14018 spkt->satapkt_op_mode = SATA_OPMODE_SYNCH | SATA_OPMODE_INTERRUPTS;
14019 spkt->satapkt_comp = NULL;
14020 scmd = &spkt->satapkt_cmd;
14033 spkt) != SATA_TRAN_ACCEPTED ||
14034 spkt->satapkt_reason != SATA_PKT_COMPLETED) {
14041 if (spkt != NULL)
14066 sata_pkt_t *spkt;
14085 spkt = sata_pkt_alloc(spx, SLEEP_FUNC);
14086 if (spkt == NULL) {
14091 spkt->satapkt_device.satadev_addr = sdinfo->satadrv_addr;
14093 spkt->satapkt_time = sata_default_pkt_time;
14095 spkt->satapkt_op_mode =
14097 spkt->satapkt_comp = NULL;
14098 scmd = &spkt->satapkt_cmd;
14110 SATA_DIP(sata_hba_inst), spkt);
14113 sata_inject_pkt_fault(spkt, &rval, sata_fault_type);
14117 (spkt->satapkt_reason != SATA_PKT_COMPLETED)) {
14138 if (spkt != NULL)
14157 sata_pkt_t *spkt;
14170 spkt = sata_pkt_alloc(spx, SLEEP_FUNC);
14171 if (spkt == NULL) {
14176 spkt->satapkt_device.satadev_addr = sdinfo->satadrv_addr;
14178 spkt->satapkt_time = sata_default_pkt_time;
14180 spkt->satapkt_op_mode =
14182 spkt->satapkt_comp = NULL;
14183 scmd = &spkt->satapkt_cmd;
14198 SATA_DIP(sata_hba_inst), spkt) != SATA_TRAN_ACCEPTED) ||
14199 (spkt->satapkt_reason != SATA_PKT_COMPLETED)) {
14213 if (spkt != NULL)
16710 sata_pkt_t *spkt;
16718 spkt = sata_pkt_alloc(spx, SLEEP_FUNC);
16719 if (spkt == NULL) {
16724 spkt->satapkt_device.satadev_addr = sdinfo->satadrv_addr;
16728 spkt->satapkt_device.satadev_addr = sdinfo->satadrv_addr;
16729 spkt->satapkt_op_mode = SATA_OPMODE_SYNCH | SATA_OPMODE_INTERRUPTS;
16731 spkt->satapkt_comp = NULL;
16733 spkt->satapkt_time = sata_default_pkt_time;
16735 scmd = &spkt->satapkt_cmd;
16757 if ((*SATA_START_FUNC(sata_hba_inst))(SATA_DIP(sata_hba_inst), spkt) !=
16759 spkt->satapkt_reason != SATA_PKT_COMPLETED) {
16809 sata_pkt_t *spkt;
16822 spkt = sata_pkt_alloc(spx, SLEEP_FUNC);
16823 if (spkt == NULL) {
16828 spkt->satapkt_device.satadev_addr = sdinfo->satadrv_addr;
16832 spkt->satapkt_device.satadev_addr = sdinfo->satadrv_addr;
16833 spkt->satapkt_op_mode = SATA_OPMODE_SYNCH | SATA_OPMODE_INTERRUPTS;
16835 spkt->satapkt_comp = NULL;
16837 spkt->satapkt_time = sata_default_pkt_time;
16839 scmd = &spkt->satapkt_cmd;
16870 if ((*SATA_START_FUNC(sata_hba_inst))(SATA_DIP(sata_hba_inst), spkt) !=
16872 spkt->satapkt_reason != SATA_PKT_COMPLETED) {
16923 sata_pkt_t *spkt;
16935 spkt = sata_pkt_alloc(spx, SLEEP_FUNC);
16936 if (spkt == NULL) {
16941 spkt->satapkt_device.satadev_addr = sdinfo->satadrv_addr;
16945 spkt->satapkt_device.satadev_addr = sdinfo->satadrv_addr;
16946 spkt->satapkt_op_mode = SATA_OPMODE_SYNCH | SATA_OPMODE_INTERRUPTS;
16948 spkt->satapkt_comp = NULL;
16950 spkt->satapkt_time = sata_default_pkt_time;
16952 scmd = &spkt->satapkt_cmd;
16984 if ((*SATA_START_FUNC(sata_hba_inst))(SATA_DIP(sata_hba_inst), spkt) !=
16986 spkt->satapkt_reason != SATA_PKT_COMPLETED) {
17036 sata_pkt_t *spkt;
17049 spkt = sata_pkt_alloc(spx, SLEEP_FUNC);
17050 if (spkt == NULL) {
17055 spkt->satapkt_device.satadev_addr = sdinfo->satadrv_addr;
17059 spkt->satapkt_device.satadev_addr = sdinfo->satadrv_addr;
17060 spkt->satapkt_op_mode = SATA_OPMODE_SYNCH | SATA_OPMODE_INTERRUPTS;
17062 spkt->satapkt_comp = NULL;
17064 spkt->satapkt_time = sata_default_pkt_time;
17066 scmd = &spkt->satapkt_cmd;
17096 if ((*SATA_START_FUNC(sata_hba_inst))(SATA_DIP(sata_hba_inst), spkt) !=
17098 spkt->satapkt_reason != SATA_PKT_COMPLETED) {
17148 sata_pkt_t *spkt;
17157 spkt = sata_pkt_alloc(spx, SLEEP_FUNC);
17158 if (spkt == NULL) {
17163 spkt->satapkt_device.satadev_addr = sdinfo->satadrv_addr;
17167 spkt->satapkt_device.satadev_addr = sdinfo->satadrv_addr;
17168 spkt->satapkt_op_mode = SATA_OPMODE_SYNCH | SATA_OPMODE_INTERRUPTS;
17170 spkt->satapkt_comp = NULL;
17172 spkt->satapkt_time = sata_default_pkt_time;
17174 scmd = &spkt->satapkt_cmd;
17203 if ((*SATA_START_FUNC(sata_hba_inst))(SATA_DIP(sata_hba_inst), spkt) !=
17205 spkt->satapkt_reason != SATA_PKT_COMPLETED) {
17255 sata_pkt_t *spkt;
17267 spkt = sata_pkt_alloc(spx, SLEEP_FUNC);
17268 if (spkt == NULL) {
17274 spkt->satapkt_device.satadev_addr = sdinfo->satadrv_addr;
17275 spkt->satapkt_op_mode = SATA_OPMODE_SYNCH | SATA_OPMODE_INTERRUPTS;
17277 spkt->satapkt_comp = NULL;
17279 spkt->satapkt_time = sata_default_pkt_time;
17281 scmd = &spkt->satapkt_cmd;
17313 if ((*SATA_START_FUNC(sata_hba_inst))(SATA_DIP(sata_hba_inst), spkt) !=
17315 spkt->satapkt_reason != SATA_PKT_COMPLETED) {
17365 sata_pkt_t *spkt = spx->txlt_sata_pkt;
17370 spkt->satapkt_op_mode = SATA_OPMODE_SYNCH | SATA_OPMODE_INTERRUPTS;
17373 spkt->satapkt_comp = NULL;
17374 spkt->satapkt_time = sata_default_pkt_time;
17376 scmd = &spkt->satapkt_cmd;
20789 sata_inject_pkt_fault(sata_pkt_t *spkt, int *rval, int fault)
20801 if (sata_fault_cmd != spkt->satapkt_cmd.satacmd_cmd_reg)
20806 (sata_pkt_txlate_t *)spkt->satapkt_framework_private;
20813 spkt->satapkt_device.satadev_addr.cport ||
20815 spkt->satapkt_device.satadev_addr.pmport ||
20817 spkt->satapkt_device.satadev_addr.qual)
20823 spkt->satapkt_reason != SATA_PKT_COMPLETED) {
20854 spkt->satapkt_reason = SATA_PKT_BUSY;
20859 spkt->satapkt_reason = SATA_PKT_QUEUE_FULL;
20864 spkt->satapkt_reason = SATA_PKT_CMD_UNSUPPORTED;
20870 spkt->satapkt_reason = SATA_PKT_PORT_ERROR;
20875 spkt->satapkt_reason = SATA_PKT_DEV_ERROR;
20882 spkt->satapkt_reason = SATA_PKT_ABORTED;
20886 spkt->satapkt_reason = SATA_PKT_TIMEOUT;
20891 spkt->satapkt_reason = SATA_PKT_RESET;