Lines Matching refs:sg_cnt

392 	if (req->sg_cnt) {  in complete_rdma_req()
437 req->sg_cnt, req->dir); in complete_rdma_req()
947 struct scatterlist *sg, size_t sg_cnt, in rtrs_clt_init_req() argument
958 req->sg_cnt = sg_cnt; in rtrs_clt_init_req()
981 struct scatterlist *sg, size_t sg_cnt, in rtrs_clt_get_req() argument
988 sg, sg_cnt, data_len, dir); in rtrs_clt_get_req()
1005 fail_req->sglist, fail_req->sg_cnt, in rtrs_clt_get_copy_req()
1033 for_each_sg(req->sglist, sg, req->sg_cnt, i) { in rtrs_post_rdma_write_sg()
1038 num_sge = 1 + req->sg_cnt; in rtrs_post_rdma_write_sg()
1067 if (nr < req->sg_cnt) in rtrs_map_sg_fr()
1096 if (req->sg_cnt) { in rtrs_clt_write_req()
1098 req->sg_cnt, req->dir); in rtrs_clt_write_req()
1123 req->sg_cnt, req->dir); in rtrs_clt_write_req()
1160 if (req->sg_cnt) in rtrs_clt_write_req()
1162 req->sg_cnt, req->dir); in rtrs_clt_write_req()
1191 if (req->sg_cnt) { in rtrs_clt_read_req()
1192 count = ib_dma_map_sg(dev->ib_dev, req->sglist, req->sg_cnt, in rtrs_clt_read_req()
1211 ib_dma_unmap_sg(dev->ib_dev, req->sglist, req->sg_cnt, in rtrs_clt_read_req()
1225 msg->sg_cnt = cpu_to_le16(1); in rtrs_clt_read_req()
1236 msg->sg_cnt = 0; in rtrs_clt_read_req()
1248 req->sg_size += le16_to_cpu(msg->sg_cnt) * sizeof(struct rtrs_sg_desc); in rtrs_clt_read_req()
1267 if (req->sg_cnt) in rtrs_clt_read_req()
1269 req->sg_cnt, req->dir); in rtrs_clt_read_req()
2397 unsigned int sg_cnt, total_len; in process_info_rsp() local
2400 sg_cnt = le16_to_cpu(msg->sg_cnt); in process_info_rsp()
2401 if (!sg_cnt || (sess->queue_depth % sg_cnt)) { in process_info_rsp()
2403 sg_cnt); in process_info_rsp()
2411 if ((ilog2(sg_cnt - 1) + 1) + (ilog2(sess->chunk_size - 1) + 1) > in process_info_rsp()
2415 MAX_IMM_PAYL_BITS, sg_cnt, sess->chunk_size); in process_info_rsp()
2419 for (sgi = 0, i = 0; sgi < sg_cnt && i < sess->queue_depth; sgi++) { in process_info_rsp()
2444 if (sgi != sg_cnt || i != sess->queue_depth) { in process_info_rsp()
2491 rx_sz += sizeof(msg->desc[0]) * le16_to_cpu(msg->sg_cnt); in rtrs_clt_info_rsp_done()
2973 struct scatterlist *sg, unsigned int sg_cnt) in rtrs_clt_request() argument
2989 sg_cnt * sizeof(struct rtrs_sg_desc); in rtrs_clt_request()
3011 vec, usr_len, sg, sg_cnt, data_len, in rtrs_clt_request()