Lines Matching refs:frx

166 				struct siw_rx_fpdu *frx)  in siw_rresp_check_ntoh()  argument
169 struct siw_wqe *wqe = &frx->wqe_active; in siw_rresp_check_ntoh()
175 if (frx->first_ddp_seg) { in siw_rresp_check_ntoh()
178 frx->pbl_idx = 0; in siw_rresp_check_ntoh()
203 if (unlikely(!frx->more_ddp_segs && in siw_rresp_check_ntoh()
230 struct siw_rx_fpdu *frx) in siw_write_check_ntoh() argument
238 if (frx->first_ddp_seg) { in siw_write_check_ntoh()
241 frx->pbl_idx = 0; in siw_write_check_ntoh()
278 struct siw_rx_fpdu *frx) in siw_send_check_ntoh() argument
281 struct siw_wqe *wqe = &frx->wqe_active; in siw_send_check_ntoh()
307 if (frx->first_ddp_seg) { in siw_send_check_ntoh()
309 frx->sge_idx = 0; in siw_send_check_ntoh()
310 frx->sge_off = 0; in siw_send_check_ntoh()
311 frx->pbl_idx = 0; in siw_send_check_ntoh()
424 struct siw_rx_fpdu *frx = &qp->rx_untagged; in siw_proc_send() local
430 if (frx->first_ddp_seg) { in siw_proc_send()
439 wqe = rx_wqe(frx); in siw_proc_send()
442 rv = siw_send_check_ntoh(srx, frx); in siw_proc_send()
460 sge = &wqe->rqe.sge[frx->sge_idx]; in siw_proc_send()
464 frx->sge_idx++; in siw_proc_send()
465 frx->sge_off = 0; in siw_proc_send()
466 frx->pbl_idx = 0; in siw_proc_send()
469 sge_bytes = min(data_bytes, sge->length - frx->sge_off); in siw_proc_send()
470 mem = &wqe->mem[frx->sge_idx]; in siw_proc_send()
478 frx->sge_off, sge_bytes); in siw_proc_send()
490 ib_virt_dma_to_ptr(sge->laddr + frx->sge_off), in siw_proc_send()
494 sge->laddr + frx->sge_off, sge_bytes); in siw_proc_send()
496 rv = siw_rx_pbl(srx, &frx->pbl_idx, mem_p, in siw_proc_send()
497 sge->laddr + frx->sge_off, sge_bytes); in siw_proc_send()
507 frx->sge_off += rv; in siw_proc_send()
509 if (frx->sge_off == sge->length) { in siw_proc_send()
510 frx->sge_idx++; in siw_proc_send()
511 frx->sge_off = 0; in siw_proc_send()
512 frx->pbl_idx = 0; in siw_proc_send()
543 struct siw_rx_fpdu *frx = &qp->rx_tagged; in siw_proc_write() local
551 rv = siw_write_check_ntoh(srx, frx); in siw_proc_write()
559 if (frx->first_ddp_seg) { in siw_proc_write()
560 struct siw_wqe *wqe = rx_wqe(frx); in siw_proc_write()
562 rx_mem(frx) = siw_mem_id2obj(qp->sdev, srx->ddp_stag >> 8); in siw_proc_write()
563 if (unlikely(!rx_mem(frx))) { in siw_proc_write()
577 mem = rx_mem(frx); in siw_proc_write()
609 rv = siw_rx_pbl(srx, &frx->pbl_idx, mem, in siw_proc_write()
789 struct siw_rx_fpdu *frx = &qp->rx_tagged; in siw_proc_rresp() local
790 struct siw_wqe *wqe = rx_wqe(frx); in siw_proc_rresp()
795 if (frx->first_ddp_seg) { in siw_proc_rresp()
811 rv = siw_rresp_check_ntoh(srx, frx); in siw_proc_rresp()
861 rv = siw_rx_pbl(srx, &frx->pbl_idx, mem_p, in siw_proc_rresp()
1012 struct siw_rx_fpdu *frx; in siw_get_hdr() local
1078 frx = qp->rx_fpdu; in siw_get_hdr()
1124 if (frx->more_ddp_segs) { in siw_get_hdr()
1125 frx->first_ddp_seg = 0; in siw_get_hdr()
1126 if (frx->prev_rdmap_op != opcode) { in siw_get_hdr()
1128 frx->prev_rdmap_op, opcode); in siw_get_hdr()
1137 set_rx_fpdu_context(qp, frx->prev_rdmap_op); in siw_get_hdr()
1138 __rdmap_set_opcode(c_hdr, frx->prev_rdmap_op); in siw_get_hdr()
1142 frx->prev_rdmap_op = opcode; in siw_get_hdr()
1143 frx->first_ddp_seg = 1; in siw_get_hdr()
1145 frx->more_ddp_segs = c_hdr->ddp_rdmap_ctrl & DDP_FLAG_LAST ? 0 : 1; in siw_get_hdr()