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