Lines Matching refs:stp_req

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