Lines Matching refs:avail_dsds

196 	uint16_t	avail_dsds;  in qla2x00_build_scsi_iocbs_32()  local
218 avail_dsds = ARRAY_SIZE(cmd_pkt->dsd32); in qla2x00_build_scsi_iocbs_32()
226 if (avail_dsds == 0) { in qla2x00_build_scsi_iocbs_32()
233 avail_dsds = ARRAY_SIZE(cont_pkt->dsd); in qla2x00_build_scsi_iocbs_32()
237 avail_dsds--; in qla2x00_build_scsi_iocbs_32()
252 uint16_t avail_dsds; in qla2x00_build_scsi_iocbs_64() local
274 avail_dsds = ARRAY_SIZE(cmd_pkt->dsd64); in qla2x00_build_scsi_iocbs_64()
282 if (avail_dsds == 0) { in qla2x00_build_scsi_iocbs_64()
289 avail_dsds = ARRAY_SIZE(cont_pkt->dsd); in qla2x00_build_scsi_iocbs_64()
293 avail_dsds--; in qla2x00_build_scsi_iocbs_64()
596 uint8_t avail_dsds; in qla24xx_build_scsi_type_6_iocbs() local
630 avail_dsds = (tot_dsds > QLA_DSDS_PER_IOCB) ? in qla24xx_build_scsi_type_6_iocbs()
632 tot_dsds -= avail_dsds; in qla24xx_build_scsi_type_6_iocbs()
633 dsd_list_len = (avail_dsds + 1) * QLA_DSD_SIZE; in qla24xx_build_scsi_type_6_iocbs()
655 while (avail_dsds) { in qla24xx_build_scsi_type_6_iocbs()
658 avail_dsds--; in qla24xx_build_scsi_type_6_iocbs()
703 uint16_t avail_dsds; in qla24xx_build_scsi_iocbs() local
736 avail_dsds = 1; in qla24xx_build_scsi_iocbs()
745 if (avail_dsds == 0) { in qla24xx_build_scsi_iocbs()
752 avail_dsds = ARRAY_SIZE(cont_pkt->dsd); in qla24xx_build_scsi_iocbs()
756 avail_dsds--; in qla24xx_build_scsi_iocbs()
839 uint8_t avail_dsds = 0; in qla24xx_walk_and_build_sglist_no_difb() local
878 if (avail_dsds == 0) { in qla24xx_walk_and_build_sglist_no_difb()
879 avail_dsds = (used_dsds > QLA_DSDS_PER_IOCB) ? in qla24xx_walk_and_build_sglist_no_difb()
881 dsd_list_len = (avail_dsds + 1) * 12; in qla24xx_walk_and_build_sglist_no_difb()
882 used_dsds -= avail_dsds; in qla24xx_walk_and_build_sglist_no_difb()
924 avail_dsds--; in qla24xx_walk_and_build_sglist_no_difb()
953 uint8_t avail_dsds = 0; in qla24xx_walk_and_build_sglist() local
975 if (avail_dsds == 0) { in qla24xx_walk_and_build_sglist()
976 avail_dsds = (used_dsds > QLA_DSDS_PER_IOCB) ? in qla24xx_walk_and_build_sglist()
978 dsd_list_len = (avail_dsds + 1) * 12; in qla24xx_walk_and_build_sglist()
979 used_dsds -= avail_dsds; in qla24xx_walk_and_build_sglist()
1018 avail_dsds--; in qla24xx_walk_and_build_sglist()
1037 uint avail_dsds = 0; in qla24xx_walk_and_build_prot_sglist() local
1201 if (avail_dsds == 0) { in qla24xx_walk_and_build_prot_sglist()
1206 avail_dsds = (used_dsds > QLA_DSDS_PER_IOCB) ? in qla24xx_walk_and_build_prot_sglist()
1208 dsd_list_len = (avail_dsds + 1) * 12; in qla24xx_walk_and_build_prot_sglist()
1209 used_dsds -= avail_dsds; in qla24xx_walk_and_build_prot_sglist()
1260 avail_dsds--; in qla24xx_walk_and_build_prot_sglist()
1271 if (avail_dsds == 0) { in qla24xx_walk_and_build_prot_sglist()
1272 avail_dsds = (used_dsds > QLA_DSDS_PER_IOCB) ? in qla24xx_walk_and_build_prot_sglist()
1274 dsd_list_len = (avail_dsds + 1) * 12; in qla24xx_walk_and_build_prot_sglist()
1275 used_dsds -= avail_dsds; in qla24xx_walk_and_build_prot_sglist()
1315 avail_dsds--; in qla24xx_walk_and_build_prot_sglist()
3224 uint16_t avail_dsds; in qla2x00_ct_iocb() local
3259 avail_dsds = 1; in qla2x00_ct_iocb()
3268 if (avail_dsds == 0) { in qla2x00_ct_iocb()
3276 avail_dsds = 5; in qla2x00_ct_iocb()
3281 avail_dsds--; in qla2x00_ct_iocb()
3291 uint16_t avail_dsds; in qla24xx_ct_iocb() local
3320 avail_dsds = 2; in qla24xx_ct_iocb()
3326 if (avail_dsds == 0) { in qla24xx_ct_iocb()
3334 avail_dsds = 5; in qla24xx_ct_iocb()
3339 avail_dsds--; in qla24xx_ct_iocb()
3346 if (avail_dsds == 0) { in qla24xx_ct_iocb()
3354 avail_dsds = 5; in qla24xx_ct_iocb()
3359 avail_dsds--; in qla24xx_ct_iocb()
4054 uint16_t avail_dsds; in qla25xx_build_bidir_iocb() local
4089 avail_dsds = 1; in qla25xx_build_bidir_iocb()
4099 if (avail_dsds == 0) { in qla25xx_build_bidir_iocb()
4105 avail_dsds = 5; in qla25xx_build_bidir_iocb()
4109 avail_dsds--; in qla25xx_build_bidir_iocb()
4121 if (avail_dsds == 0) { in qla25xx_build_bidir_iocb()
4127 avail_dsds = 5; in qla25xx_build_bidir_iocb()
4131 avail_dsds--; in qla25xx_build_bidir_iocb()