Lines Matching refs:avail_dsds

193 	uint16_t	avail_dsds;  in qla2x00_build_scsi_iocbs_32()  local
215 avail_dsds = ARRAY_SIZE(cmd_pkt->dsd32); in qla2x00_build_scsi_iocbs_32()
223 if (avail_dsds == 0) { in qla2x00_build_scsi_iocbs_32()
230 avail_dsds = ARRAY_SIZE(cont_pkt->dsd); in qla2x00_build_scsi_iocbs_32()
234 avail_dsds--; in qla2x00_build_scsi_iocbs_32()
249 uint16_t avail_dsds; in qla2x00_build_scsi_iocbs_64() local
271 avail_dsds = ARRAY_SIZE(cmd_pkt->dsd64); in qla2x00_build_scsi_iocbs_64()
279 if (avail_dsds == 0) { in qla2x00_build_scsi_iocbs_64()
286 avail_dsds = ARRAY_SIZE(cont_pkt->dsd); in qla2x00_build_scsi_iocbs_64()
290 avail_dsds--; in qla2x00_build_scsi_iocbs_64()
591 uint8_t avail_dsds; in qla24xx_build_scsi_type_6_iocbs() local
627 avail_dsds = (tot_dsds > QLA_DSDS_PER_IOCB) ? in qla24xx_build_scsi_type_6_iocbs()
629 tot_dsds -= avail_dsds; in qla24xx_build_scsi_type_6_iocbs()
630 dsd_list_len = (avail_dsds + 1) * QLA_DSD_SIZE; in qla24xx_build_scsi_type_6_iocbs()
653 while (avail_dsds) { in qla24xx_build_scsi_type_6_iocbs()
656 avail_dsds--; in qla24xx_build_scsi_type_6_iocbs()
701 uint16_t avail_dsds; in qla24xx_build_scsi_iocbs() local
734 avail_dsds = 1; in qla24xx_build_scsi_iocbs()
743 if (avail_dsds == 0) { in qla24xx_build_scsi_iocbs()
750 avail_dsds = ARRAY_SIZE(cont_pkt->dsd); in qla24xx_build_scsi_iocbs()
754 avail_dsds--; in qla24xx_build_scsi_iocbs()
892 uint8_t avail_dsds = 0; in qla24xx_walk_and_build_sglist_no_difb() local
931 if (avail_dsds == 0) { in qla24xx_walk_and_build_sglist_no_difb()
932 avail_dsds = (used_dsds > QLA_DSDS_PER_IOCB) ? in qla24xx_walk_and_build_sglist_no_difb()
934 dsd_list_len = (avail_dsds + 1) * 12; in qla24xx_walk_and_build_sglist_no_difb()
935 used_dsds -= avail_dsds; in qla24xx_walk_and_build_sglist_no_difb()
977 avail_dsds--; in qla24xx_walk_and_build_sglist_no_difb()
1006 uint8_t avail_dsds = 0; in qla24xx_walk_and_build_sglist() local
1028 if (avail_dsds == 0) { in qla24xx_walk_and_build_sglist()
1029 avail_dsds = (used_dsds > QLA_DSDS_PER_IOCB) ? in qla24xx_walk_and_build_sglist()
1031 dsd_list_len = (avail_dsds + 1) * 12; in qla24xx_walk_and_build_sglist()
1032 used_dsds -= avail_dsds; in qla24xx_walk_and_build_sglist()
1071 avail_dsds--; in qla24xx_walk_and_build_sglist()
1090 uint avail_dsds = 0; in qla24xx_walk_and_build_prot_sglist() local
1254 if (avail_dsds == 0) { in qla24xx_walk_and_build_prot_sglist()
1259 avail_dsds = (used_dsds > QLA_DSDS_PER_IOCB) ? in qla24xx_walk_and_build_prot_sglist()
1261 dsd_list_len = (avail_dsds + 1) * 12; in qla24xx_walk_and_build_prot_sglist()
1262 used_dsds -= avail_dsds; in qla24xx_walk_and_build_prot_sglist()
1313 avail_dsds--; in qla24xx_walk_and_build_prot_sglist()
1324 if (avail_dsds == 0) { in qla24xx_walk_and_build_prot_sglist()
1325 avail_dsds = (used_dsds > QLA_DSDS_PER_IOCB) ? in qla24xx_walk_and_build_prot_sglist()
1327 dsd_list_len = (avail_dsds + 1) * 12; in qla24xx_walk_and_build_prot_sglist()
1328 used_dsds -= avail_dsds; in qla24xx_walk_and_build_prot_sglist()
1368 avail_dsds--; in qla24xx_walk_and_build_prot_sglist()
3099 uint16_t avail_dsds; in qla2x00_ct_iocb() local
3134 avail_dsds = 1; in qla2x00_ct_iocb()
3143 if (avail_dsds == 0) { in qla2x00_ct_iocb()
3151 avail_dsds = 5; in qla2x00_ct_iocb()
3156 avail_dsds--; in qla2x00_ct_iocb()
3166 uint16_t avail_dsds; in qla24xx_ct_iocb() local
3195 avail_dsds = 2; in qla24xx_ct_iocb()
3201 if (avail_dsds == 0) { in qla24xx_ct_iocb()
3209 avail_dsds = 5; in qla24xx_ct_iocb()
3214 avail_dsds--; in qla24xx_ct_iocb()
3221 if (avail_dsds == 0) { in qla24xx_ct_iocb()
3229 avail_dsds = 5; in qla24xx_ct_iocb()
3234 avail_dsds--; in qla24xx_ct_iocb()
3807 uint16_t avail_dsds; in qla25xx_build_bidir_iocb() local
3842 avail_dsds = 1; in qla25xx_build_bidir_iocb()
3852 if (avail_dsds == 0) { in qla25xx_build_bidir_iocb()
3858 avail_dsds = 5; in qla25xx_build_bidir_iocb()
3862 avail_dsds--; in qla25xx_build_bidir_iocb()
3874 if (avail_dsds == 0) { in qla25xx_build_bidir_iocb()
3880 avail_dsds = 5; in qla25xx_build_bidir_iocb()
3884 avail_dsds--; in qla25xx_build_bidir_iocb()