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()
1254 static struct scu_sgl_element *pio_sgl_next(struct isci_stp_request *stp_req) in pio_sgl_next() argument
1258 struct isci_request *ireq = to_ireq(stp_req); in pio_sgl_next()
1259 struct isci_stp_pio_sgl *pio_sgl = &stp_req->sgl; in pio_sgl_next()
1321 struct isci_stp_request *stp_req = &ireq->stp.req; in sci_stp_request_pio_data_out_trasmit_data_frame() local
1329 sgl_pair = to_sgl_element_pair(ireq, stp_req->sgl.index); in sci_stp_request_pio_data_out_trasmit_data_frame()
1330 if (stp_req->sgl.set == SCU_SGL_ELEMENT_PAIR_A) in sci_stp_request_pio_data_out_trasmit_data_frame()
1347 struct isci_stp_request *stp_req = &ireq->stp.req; in sci_stp_request_pio_data_out_transmit_data() local
1354 offset = stp_req->sgl.offset; in sci_stp_request_pio_data_out_transmit_data()
1355 sgl_pair = to_sgl_element_pair(ireq, stp_req->sgl.index); in sci_stp_request_pio_data_out_transmit_data()
1359 if (stp_req->sgl.set == SCU_SGL_ELEMENT_PAIR_A) { in sci_stp_request_pio_data_out_transmit_data()
1367 if (stp_req->pio_len == 0) in sci_stp_request_pio_data_out_transmit_data()
1370 if (stp_req->pio_len >= len) { in sci_stp_request_pio_data_out_transmit_data()
1374 stp_req->pio_len -= len; in sci_stp_request_pio_data_out_transmit_data()
1377 sgl = pio_sgl_next(stp_req); in sci_stp_request_pio_data_out_transmit_data()
1379 } else if (stp_req->pio_len < len) { in sci_stp_request_pio_data_out_transmit_data()
1380 sci_stp_request_pio_data_out_trasmit_data_frame(ireq, stp_req->pio_len); in sci_stp_request_pio_data_out_transmit_data()
1383 offset += stp_req->pio_len; in sci_stp_request_pio_data_out_transmit_data()
1384 sgl->address_lower += stp_req->pio_len; in sci_stp_request_pio_data_out_transmit_data()
1385 stp_req->pio_len = 0; in sci_stp_request_pio_data_out_transmit_data()
1388 stp_req->sgl.offset = offset; in sci_stp_request_pio_data_out_transmit_data()
1403 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
1414 ireq = to_ireq(stp_req); in sci_stp_request_pio_data_in_copy_data_buffer()
1448 struct isci_stp_request *stp_req, in sci_stp_request_pio_data_in_copy_data() argument
1456 if (stp_req->pio_len < SCU_MAX_FRAME_BUFFER_SIZE) { in sci_stp_request_pio_data_in_copy_data()
1458 stp_req, data_buffer, stp_req->pio_len); in sci_stp_request_pio_data_in_copy_data()
1461 stp_req->pio_len = 0; in sci_stp_request_pio_data_in_copy_data()
1465 stp_req, data_buffer, SCU_MAX_FRAME_BUFFER_SIZE); in sci_stp_request_pio_data_in_copy_data()
1468 stp_req->pio_len -= SCU_MAX_FRAME_BUFFER_SIZE; in sci_stp_request_pio_data_in_copy_data()
1505 struct isci_stp_request *stp_req = &ireq->stp.req; in pio_data_out_tx_done_tc_event() local
1510 if (stp_req->pio_len != 0) { in pio_data_out_tx_done_tc_event()
1513 if (stp_req->pio_len == 0) in pio_data_out_tx_done_tc_event()
1516 } else if (stp_req->pio_len == 0) { in pio_data_out_tx_done_tc_event()
1703 struct isci_stp_request *stp_req = &ireq->stp.req; in sci_io_request_frame_handler() local
1846 stp_req, in sci_io_request_frame_handler()
1871 "violation occurred\n", __func__, stp_req, in sci_io_request_frame_handler()
1900 __func__, stp_req, frame_index, status); in sci_io_request_frame_handler()
1918 stp_req->pio_len = frame_buffer[3] & 0xffff; in sci_io_request_frame_handler()
1921 stp_req->status = (frame_buffer[2] >> 24) & 0xff; in sci_io_request_frame_handler()
1927 ireq->stp.rsp.status = stp_req->status; in sci_io_request_frame_handler()
1959 stp_req, in sci_io_request_frame_handler()
2001 stp_req, in sci_io_request_frame_handler()
2013 stp_req, in sci_io_request_frame_handler()
2026 if (stp_req->sgl.index < 0) { in sci_io_request_frame_handler()
2028 stp_req->pio_len = 0; in sci_io_request_frame_handler()
2034 status = sci_stp_request_pio_data_in_copy_data(stp_req, in sci_io_request_frame_handler()
2044 if (status != SCI_SUCCESS || stp_req->pio_len != 0) in sci_io_request_frame_handler()
2047 if ((stp_req->status & ATA_BUSY) == 0) { in sci_io_request_frame_handler()