Lines Matching refs:bl_num
470 u32 bl_num; member
633 u32 bl_num; in sd_scsi_read_capacity() local
644 bl_num = info->HC_C_SIZE-1; in sd_scsi_read_capacity()
646 bl_num = (info->HC_C_SIZE + 1) * 1024 - 1; in sd_scsi_read_capacity()
649 bl_num = info->SD_Block_Mult * (info->SD_C_SIZE + 1) in sd_scsi_read_capacity()
652 info->bl_num = bl_num; in sd_scsi_read_capacity()
654 usb_stor_dbg(us, "bl_num = %x\n", bl_num); in sd_scsi_read_capacity()
657 buf[0] = (bl_num >> 24) & 0xff; in sd_scsi_read_capacity()
658 buf[1] = (bl_num >> 16) & 0xff; in sd_scsi_read_capacity()
659 buf[2] = (bl_num >> 8) & 0xff; in sd_scsi_read_capacity()
660 buf[3] = (bl_num >> 0) & 0xff; in sd_scsi_read_capacity()
684 if (bn > info->bl_num) in sd_scsi_read()
724 if (bn > info->bl_num) in sd_scsi_write()
1486 u32 bl_num; in ms_scsi_read_capacity() local
1496 bl_num = info->MSP_TotalBlock - 1; in ms_scsi_read_capacity()
1498 bl_num = info->MS_Lib.NumberOfLogBlock * info->MS_Lib.blockSize * 2 - 1; in ms_scsi_read_capacity()
1500 info->bl_num = bl_num; in ms_scsi_read_capacity()
1502 usb_stor_dbg(us, "bl_num = %x\n", bl_num); in ms_scsi_read_capacity()
1505 buf[0] = (bl_num >> 24) & 0xff; in ms_scsi_read_capacity()
1506 buf[1] = (bl_num >> 16) & 0xff; in ms_scsi_read_capacity()
1507 buf[2] = (bl_num >> 8) & 0xff; in ms_scsi_read_capacity()
1508 buf[3] = (bl_num >> 0) & 0xff; in ms_scsi_read_capacity()
1647 if (bn > info->bl_num) in ms_scsi_read()
1748 if (bn > info->bl_num) in ms_scsi_write()