Lines Matching refs:bsg_job
2887 struct bsg_job *bsg_job = sp->u.bsg_job; in qla24xx_els_iocb() local
2888 struct fc_bsg_request *bsg_request = bsg_job->request; in qla24xx_els_iocb()
2896 els_iocb->tx_dsd_count = cpu_to_le16(bsg_job->request_payload.sg_cnt); in qla24xx_els_iocb()
2899 els_iocb->rx_dsd_count = cpu_to_le16(bsg_job->reply_payload.sg_cnt); in qla24xx_els_iocb()
2910 cpu_to_le32(bsg_job->reply_payload.payload_len); in qla24xx_els_iocb()
2912 cpu_to_le32(bsg_job->request_payload.payload_len); in qla24xx_els_iocb()
2914 put_unaligned_le64(sg_dma_address(bsg_job->request_payload.sg_list), in qla24xx_els_iocb()
2917 (bsg_job->request_payload.sg_list)); in qla24xx_els_iocb()
2919 put_unaligned_le64(sg_dma_address(bsg_job->reply_payload.sg_list), in qla24xx_els_iocb()
2922 (bsg_job->reply_payload.sg_list)); in qla24xx_els_iocb()
2937 struct bsg_job *bsg_job = sp->u.bsg_job; in qla2x00_ct_iocb() local
2949 cpu_to_le16(bsg_job->request_payload.sg_cnt); in qla2x00_ct_iocb()
2951 cpu_to_le16(bsg_job->request_payload.sg_cnt + 1); in qla2x00_ct_iocb()
2953 cpu_to_le32(bsg_job->request_payload.payload_len); in qla2x00_ct_iocb()
2955 cpu_to_le32(bsg_job->reply_payload.payload_len); in qla2x00_ct_iocb()
2957 put_unaligned_le64(sg_dma_address(bsg_job->request_payload.sg_list), in qla2x00_ct_iocb()
2961 put_unaligned_le64(sg_dma_address(bsg_job->reply_payload.sg_list), in qla2x00_ct_iocb()
2968 tot_dsds = bsg_job->reply_payload.sg_cnt; in qla2x00_ct_iocb()
2970 for_each_sg(bsg_job->reply_payload.sg_list, sg, tot_dsds, index) { in qla2x00_ct_iocb()
3004 struct bsg_job *bsg_job = sp->u.bsg_job; in qla24xx_ct_iocb() local
3017 cmd_dsds = bsg_job->request_payload.sg_cnt; in qla24xx_ct_iocb()
3018 rsp_dsds = bsg_job->reply_payload.sg_cnt; in qla24xx_ct_iocb()
3024 cpu_to_le32(bsg_job->request_payload.payload_len); in qla24xx_ct_iocb()
3030 for_each_sg(bsg_job->request_payload.sg_list, sg, cmd_dsds, index) { in qla24xx_ct_iocb()
3050 for_each_sg(bsg_job->reply_payload.sg_list, sg, rsp_dsds, index) { in qla24xx_ct_iocb()
3648 struct bsg_job *bsg_job = sp->u.bsg_job; in qla25xx_build_bidir_iocb() local
3657 cmd_pkt->wr_dseg_count = cpu_to_le16(bsg_job->request_payload.sg_cnt); in qla25xx_build_bidir_iocb()
3658 cmd_pkt->rd_dseg_count = cpu_to_le16(bsg_job->reply_payload.sg_cnt); in qla25xx_build_bidir_iocb()
3662 req_data_len = rsp_data_len = bsg_job->request_payload.payload_len; in qla25xx_build_bidir_iocb()
3681 for_each_sg(bsg_job->request_payload.sg_list, sg, in qla25xx_build_bidir_iocb()
3682 bsg_job->request_payload.sg_cnt, index) { in qla25xx_build_bidir_iocb()
3703 for_each_sg(bsg_job->reply_payload.sg_list, sg, in qla25xx_build_bidir_iocb()
3704 bsg_job->reply_payload.sg_cnt, index) { in qla25xx_build_bidir_iocb()