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()
438 struct siw_rx_fpdu *frx = &qp->rx_untagged; in siw_proc_send() local
444 if (frx->first_ddp_seg) { in siw_proc_send()
453 wqe = rx_wqe(frx); in siw_proc_send()
456 rv = siw_send_check_ntoh(srx, frx); in siw_proc_send()
474 sge = &wqe->rqe.sge[frx->sge_idx]; in siw_proc_send()
478 frx->sge_idx++; in siw_proc_send()
479 frx->sge_off = 0; in siw_proc_send()
480 frx->pbl_idx = 0; in siw_proc_send()
483 sge_bytes = min(data_bytes, sge->length - frx->sge_off); in siw_proc_send()
484 mem = &wqe->mem[frx->sge_idx]; in siw_proc_send()
492 frx->sge_off, sge_bytes); in siw_proc_send()
502 rv = siw_rx_data(mem_p, srx, &frx->pbl_idx, in siw_proc_send()
503 sge->laddr + frx->sge_off, sge_bytes); in siw_proc_send()
512 frx->sge_off += rv; in siw_proc_send()
514 if (frx->sge_off == sge->length) { in siw_proc_send()
515 frx->sge_idx++; in siw_proc_send()
516 frx->sge_off = 0; in siw_proc_send()
517 frx->pbl_idx = 0; in siw_proc_send()
548 struct siw_rx_fpdu *frx = &qp->rx_tagged; in siw_proc_write() local
556 rv = siw_write_check_ntoh(srx, frx); in siw_proc_write()
564 if (frx->first_ddp_seg) { in siw_proc_write()
565 struct siw_wqe *wqe = rx_wqe(frx); in siw_proc_write()
567 rx_mem(frx) = siw_mem_id2obj(qp->sdev, srx->ddp_stag >> 8); in siw_proc_write()
568 if (unlikely(!rx_mem(frx))) { in siw_proc_write()
582 mem = rx_mem(frx); in siw_proc_write()
606 rv = siw_rx_data(mem, srx, &frx->pbl_idx, in siw_proc_write()
785 struct siw_rx_fpdu *frx = &qp->rx_tagged; in siw_proc_rresp() local
786 struct siw_wqe *wqe = rx_wqe(frx); in siw_proc_rresp()
791 if (frx->first_ddp_seg) { in siw_proc_rresp()
807 rv = siw_rresp_check_ntoh(srx, frx); in siw_proc_rresp()
848 rv = siw_rx_data(mem_p, srx, &frx->pbl_idx, in siw_proc_rresp()
1000 struct siw_rx_fpdu *frx; in siw_get_hdr() local
1062 frx = qp->rx_fpdu; in siw_get_hdr()
1104 if (frx->more_ddp_segs) { in siw_get_hdr()
1105 frx->first_ddp_seg = 0; in siw_get_hdr()
1106 if (frx->prev_rdmap_op != opcode) { in siw_get_hdr()
1108 frx->prev_rdmap_op, opcode); in siw_get_hdr()
1117 set_rx_fpdu_context(qp, frx->prev_rdmap_op); in siw_get_hdr()
1118 __rdmap_set_opcode(c_hdr, frx->prev_rdmap_op); in siw_get_hdr()
1122 frx->prev_rdmap_op = opcode; in siw_get_hdr()
1123 frx->first_ddp_seg = 1; in siw_get_hdr()
1125 frx->more_ddp_segs = c_hdr->ddp_rdmap_ctrl & DDP_FLAG_LAST ? 0 : 1; in siw_get_hdr()