Lines Matching defs:bflags
637 * @bflags: store any bflags found here
644 * are copied to the scsi_device any flags value is stored in *@bflags.
647 int result_len, blist_flags_t *bflags)
685 *bflags = 0;
746 * XXX add a bflags to scsi_device, and replace the
747 * corresponding bit fields in scsi_device, so bflags
750 *bflags = scsi_get_device_flags(sdev,
757 if (BLIST_INQUIRY_36 & *bflags)
869 * @bflags: black/white list flag
874 * on values in *@bflags.
881 blist_flags_t *bflags, int async)
934 if (*bflags & BLIST_ISROM) {
960 if ((*bflags & BLIST_REPORTLUN2) == 0)
961 *bflags |= BLIST_NOREPORTLUN;
999 !(*bflags & BLIST_NOTQ)) {
1009 if ((*bflags & BLIST_BORKEN) == 0)
1012 if (*bflags & BLIST_NO_ULD_ATTACH)
1019 if (*bflags & BLIST_SELECT_NO_ATN)
1026 if (*bflags & BLIST_NOSTARTONADD)
1029 if (*bflags & BLIST_SINGLELUN)
1037 if (*bflags & BLIST_NO_RSOC)
1055 if (*bflags & BLIST_NOT_LOCKABLE)
1058 if (*bflags & BLIST_RETRY_HWERROR)
1061 if (*bflags & BLIST_NO_DIF)
1064 if (*bflags & BLIST_UNMAP_LIMIT_WS)
1067 if (*bflags & BLIST_IGN_MEDIA_CHANGE)
1072 if (*bflags & BLIST_TRY_VPD_PAGES)
1074 else if (*bflags & BLIST_SKIP_VPD_PAGES)
1077 if (*bflags & BLIST_NO_VPD_SIZE)
1082 sdev->sdev_bflags = *bflags;
1091 if (*bflags & BLIST_MAX_512)
1093 else if (*bflags & BLIST_MAX_1024)
1174 * @bflagsp: store bflags here if not NULL
1199 blist_flags_t bflags;
1240 if (scsi_probe_lun(sdev, result, result_len, &bflags))
1244 *bflagsp = bflags;
1309 res = scsi_add_lun(sdev, result, &bflags, shost->async_scan);
1311 if (bflags & BLIST_KEY) {
1338 * @bflags: black/white list flag for LUN 0
1345 * attached. Use the bflags to figure out any oddities.
1350 blist_flags_t bflags, int scsi_level,
1366 if (bflags & BLIST_SPARSELUN) {
1385 ((bflags & (BLIST_FORCELUN | BLIST_SPARSELUN | BLIST_MAX5LUN))
1393 if (bflags & BLIST_FORCELUN)
1398 if (bflags & BLIST_MAX5LUN)
1404 if (scsi_level < SCSI_3 && !(bflags & BLIST_LARGELUN))
1424 * @bflags: Zero or a mix of BLIST_NOLUN, BLIST_REPORTLUN2, or BLIST_NOREPORTLUN
1441 static int scsi_report_lun_scan(struct scsi_target *starget, blist_flags_t bflags,
1485 if (bflags & BLIST_NOREPORTLUN)
1491 (!(bflags & BLIST_REPORTLUN2) || shost->max_lun <= 8))
1493 if (bflags & BLIST_NOLUN)
1770 blist_flags_t bflags = 0;
1797 res = scsi_probe_and_add_lun(starget, 0, &bflags, NULL, rescan, NULL);
1799 if (scsi_report_lun_scan(starget, bflags, rescan) != 0)
1804 scsi_sequential_lun_scan(starget, bflags,