Lines Matching defs:stp_req

572 	struct isci_stp_request *stp_req = &ireq->stp.req;
576 stp_req->status = 0;
577 stp_req->sgl.offset = 0;
578 stp_req->sgl.set = SCU_SGL_ELEMENT_PAIR_A;
582 stp_req->sgl.index = 0;
585 stp_req->sgl.index = -1;
1255 static struct scu_sgl_element *pio_sgl_next(struct isci_stp_request *stp_req)
1259 struct isci_request *ireq = to_ireq(stp_req);
1260 struct isci_stp_pio_sgl *pio_sgl = &stp_req->sgl;
1322 struct isci_stp_request *stp_req = &ireq->stp.req;
1330 sgl_pair = to_sgl_element_pair(ireq, stp_req->sgl.index);
1331 if (stp_req->sgl.set == SCU_SGL_ELEMENT_PAIR_A)
1348 struct isci_stp_request *stp_req = &ireq->stp.req;
1355 offset = stp_req->sgl.offset;
1356 sgl_pair = to_sgl_element_pair(ireq, stp_req->sgl.index);
1360 if (stp_req->sgl.set == SCU_SGL_ELEMENT_PAIR_A) {
1368 if (stp_req->pio_len == 0)
1371 if (stp_req->pio_len >= len) {
1375 stp_req->pio_len -= len;
1378 sgl = pio_sgl_next(stp_req);
1380 } else if (stp_req->pio_len < len) {
1381 sci_stp_request_pio_data_out_trasmit_data_frame(ireq, stp_req->pio_len);
1384 offset += stp_req->pio_len;
1385 sgl->address_lower += stp_req->pio_len;
1386 stp_req->pio_len = 0;
1389 stp_req->sgl.offset = offset;
1396 * @stp_req: The request that is used for the SGL processing.
1404 sci_stp_request_pio_data_in_copy_data_buffer(struct isci_stp_request *stp_req,
1415 ireq = to_ireq(stp_req);
1443 * @stp_req: The PIO DATA IN request that is to receive the data.
1449 struct isci_stp_request *stp_req,
1457 if (stp_req->pio_len < SCU_MAX_FRAME_BUFFER_SIZE) {
1459 stp_req, data_buffer, stp_req->pio_len);
1462 stp_req->pio_len = 0;
1466 stp_req, data_buffer, SCU_MAX_FRAME_BUFFER_SIZE);
1469 stp_req->pio_len -= SCU_MAX_FRAME_BUFFER_SIZE;
1506 struct isci_stp_request *stp_req = &ireq->stp.req;
1511 if (stp_req->pio_len != 0) {
1514 if (stp_req->pio_len == 0)
1517 } else if (stp_req->pio_len == 0) {
1704 struct isci_stp_request *stp_req = &ireq->stp.req;
1847 stp_req,
1872 "violation occurred\n", __func__, stp_req,
1901 __func__, stp_req, frame_index, status);
1919 stp_req->pio_len = frame_buffer[3] & 0xffff;
1922 stp_req->status = (frame_buffer[2] >> 24) & 0xff;
1928 ireq->stp.rsp.status = stp_req->status;
1960 stp_req,
2002 stp_req,
2014 stp_req,
2027 if (stp_req->sgl.index < 0) {
2029 stp_req->pio_len = 0;
2035 status = sci_stp_request_pio_data_in_copy_data(stp_req,
2045 if (status != SCI_SUCCESS || stp_req->pio_len != 0)
2048 if ((stp_req->status & ATA_BUSY) == 0) {