Lines Matching defs:stp_req
577 struct isci_stp_request *stp_req = &ireq->stp.req;
581 stp_req->status = 0;
582 stp_req->sgl.offset = 0;
583 stp_req->sgl.set = SCU_SGL_ELEMENT_PAIR_A;
587 stp_req->sgl.index = 0;
590 stp_req->sgl.index = -1;
1259 static struct scu_sgl_element *pio_sgl_next(struct isci_stp_request *stp_req)
1263 struct isci_request *ireq = to_ireq(stp_req);
1264 struct isci_stp_pio_sgl *pio_sgl = &stp_req->sgl;
1326 struct isci_stp_request *stp_req = &ireq->stp.req;
1334 sgl_pair = to_sgl_element_pair(ireq, stp_req->sgl.index);
1335 if (stp_req->sgl.set == SCU_SGL_ELEMENT_PAIR_A)
1352 struct isci_stp_request *stp_req = &ireq->stp.req;
1359 offset = stp_req->sgl.offset;
1360 sgl_pair = to_sgl_element_pair(ireq, stp_req->sgl.index);
1364 if (stp_req->sgl.set == SCU_SGL_ELEMENT_PAIR_A) {
1372 if (stp_req->pio_len == 0)
1375 if (stp_req->pio_len >= len) {
1379 stp_req->pio_len -= len;
1382 sgl = pio_sgl_next(stp_req);
1384 } else if (stp_req->pio_len < len) {
1385 sci_stp_request_pio_data_out_trasmit_data_frame(ireq, stp_req->pio_len);
1388 offset += stp_req->pio_len;
1389 sgl->address_lower += stp_req->pio_len;
1390 stp_req->pio_len = 0;
1393 stp_req->sgl.offset = offset;
1408 sci_stp_request_pio_data_in_copy_data_buffer(struct isci_stp_request *stp_req,
1419 ireq = to_ireq(stp_req);
1453 struct isci_stp_request *stp_req,
1461 if (stp_req->pio_len < SCU_MAX_FRAME_BUFFER_SIZE) {
1463 stp_req, data_buffer, stp_req->pio_len);
1466 stp_req->pio_len = 0;
1470 stp_req, data_buffer, SCU_MAX_FRAME_BUFFER_SIZE);
1473 stp_req->pio_len -= SCU_MAX_FRAME_BUFFER_SIZE;
1512 struct isci_stp_request *stp_req = &ireq->stp.req;
1517 if (stp_req->pio_len != 0) {
1520 if (stp_req->pio_len == 0)
1523 } else if (stp_req->pio_len == 0) {
1710 struct isci_stp_request *stp_req = &ireq->stp.req;
1853 stp_req,
1878 "violation occurred\n", __func__, stp_req,
1907 __func__, stp_req, frame_index, status);
1925 stp_req->pio_len = frame_buffer[3] & 0xffff;
1928 stp_req->status = (frame_buffer[2] >> 24) & 0xff;
1934 ireq->stp.rsp.status = stp_req->status;
1966 stp_req,
2008 stp_req,
2020 stp_req,
2033 if (stp_req->sgl.index < 0) {
2035 stp_req->pio_len = 0;
2041 status = sci_stp_request_pio_data_in_copy_data(stp_req,
2051 if (status != SCI_SUCCESS || stp_req->pio_len != 0)
2054 if ((stp_req->status & ATA_BUSY) == 0) {