Lines Matching refs:logblk
755 static int ms_lib_set_logicalpair(struct us_data *us, u16 logblk, u16 phyblk) in ms_lib_set_logicalpair() argument
759 if ((logblk >= info->MS_Lib.NumberOfLogBlock) || (phyblk >= info->MS_Lib.NumberOfPhyBlock)) in ms_lib_set_logicalpair()
762 info->MS_Lib.Phy2LogMap[phyblk] = logblk; in ms_lib_set_logicalpair()
763 info->MS_Lib.Log2PhyMap[logblk] = phyblk; in ms_lib_set_logicalpair()
1136 static int ms_lib_force_setlogical_pair(struct us_data *us, u16 logblk, u16 phyblk) in ms_lib_force_setlogical_pair() argument
1140 if (logblk == MS_LB_NOT_USED) in ms_lib_force_setlogical_pair()
1143 if ((logblk >= info->MS_Lib.NumberOfLogBlock) || in ms_lib_force_setlogical_pair()
1147 info->MS_Lib.Phy2LogMap[phyblk] = logblk; in ms_lib_force_setlogical_pair()
1148 info->MS_Lib.Log2PhyMap[logblk] = phyblk; in ms_lib_force_setlogical_pair()
1433 static int ms_libsearch_block_from_logical(struct us_data *us, u16 logblk) in ms_libsearch_block_from_logical() argument
1438 phyblk = ms_libconv_to_physical(info, logblk); in ms_libsearch_block_from_logical()
1440 if (logblk >= info->MS_Lib.NumberOfLogBlock) in ms_libsearch_block_from_logical()
1443 phyblk = (logblk + MS_NUMBER_OF_BOOT_BLOCK) / MS_LOGICAL_BLOCKS_PER_SEGMENT; in ms_libsearch_block_from_logical()
1673 u16 phyblk, logblk; in ms_scsi_read() local
1689 logblk = (u16)(bn / info->MS_Lib.PagesPerBlock); in ms_scsi_read()
1698 phyblk = ms_libconv_to_physical(info, logblk); in ms_scsi_read()
1723 logblk++; in ms_scsi_read()