phyblk 758 drivers/usb/storage/ene_ub6250.c static int ms_lib_set_logicalpair(struct us_data *us, u16 logblk, u16 phyblk) phyblk 762 drivers/usb/storage/ene_ub6250.c if ((logblk >= info->MS_Lib.NumberOfLogBlock) || (phyblk >= info->MS_Lib.NumberOfPhyBlock)) phyblk 765 drivers/usb/storage/ene_ub6250.c info->MS_Lib.Phy2LogMap[phyblk] = logblk; phyblk 766 drivers/usb/storage/ene_ub6250.c info->MS_Lib.Log2PhyMap[logblk] = phyblk; phyblk 771 drivers/usb/storage/ene_ub6250.c static int ms_lib_set_logicalblockmark(struct us_data *us, u16 phyblk, u16 mark) phyblk 775 drivers/usb/storage/ene_ub6250.c if (phyblk >= info->MS_Lib.NumberOfPhyBlock) phyblk 778 drivers/usb/storage/ene_ub6250.c info->MS_Lib.Phy2LogMap[phyblk] = mark; phyblk 783 drivers/usb/storage/ene_ub6250.c static int ms_lib_set_initialerrorblock(struct us_data *us, u16 phyblk) phyblk 785 drivers/usb/storage/ene_ub6250.c return ms_lib_set_logicalblockmark(us, phyblk, MS_LB_INITIAL_ERROR); phyblk 788 drivers/usb/storage/ene_ub6250.c static int ms_lib_set_bootblockmark(struct us_data *us, u16 phyblk) phyblk 790 drivers/usb/storage/ene_ub6250.c return ms_lib_set_logicalblockmark(us, phyblk, MS_LB_BOOT_BLOCK); phyblk 1006 drivers/usb/storage/ene_ub6250.c u16 phyblk; phyblk 1028 drivers/usb/storage/ene_ub6250.c phyblk = be16_to_cpu(*(u16 *)(PageBuffer + (EntryOffset % MS_BYTES_PER_PAGE))); phyblk 1029 drivers/usb/storage/ene_ub6250.c if (phyblk < 0x0fff) phyblk 1030 drivers/usb/storage/ene_ub6250.c ms_lib_set_initialerrorblock(us, phyblk); phyblk 1138 drivers/usb/storage/ene_ub6250.c static int ms_lib_force_setlogical_pair(struct us_data *us, u16 logblk, u16 phyblk) phyblk 1146 drivers/usb/storage/ene_ub6250.c (phyblk >= info->MS_Lib.NumberOfPhyBlock)) phyblk 1149 drivers/usb/storage/ene_ub6250.c info->MS_Lib.Phy2LogMap[phyblk] = logblk; phyblk 1150 drivers/usb/storage/ene_ub6250.c info->MS_Lib.Log2PhyMap[logblk] = phyblk; phyblk 1246 drivers/usb/storage/ene_ub6250.c static int ms_lib_setacquired_errorblock(struct us_data *us, u16 phyblk) phyblk 1251 drivers/usb/storage/ene_ub6250.c if (phyblk >= info->MS_Lib.NumberOfPhyBlock) phyblk 1254 drivers/usb/storage/ene_ub6250.c log = info->MS_Lib.Phy2LogMap[phyblk]; phyblk 1259 drivers/usb/storage/ene_ub6250.c if (info->MS_Lib.Phy2LogMap[phyblk] != MS_LB_INITIAL_ERROR) phyblk 1260 drivers/usb/storage/ene_ub6250.c info->MS_Lib.Phy2LogMap[phyblk] = MS_LB_ACQUIRED_ERROR; phyblk 1297 drivers/usb/storage/ene_ub6250.c static int ms_lib_error_phyblock(struct us_data *us, u16 phyblk) phyblk 1301 drivers/usb/storage/ene_ub6250.c if (phyblk >= info->MS_Lib.NumberOfPhyBlock) phyblk 1304 drivers/usb/storage/ene_ub6250.c ms_lib_setacquired_errorblock(us, phyblk); phyblk 1307 drivers/usb/storage/ene_ub6250.c return ms_lib_overwrite_extra(us, phyblk, 0, (u8)(~MS_REG_OVR_BKST & BYTE_MASK)); phyblk 1312 drivers/usb/storage/ene_ub6250.c static int ms_lib_erase_phyblock(struct us_data *us, u16 phyblk) phyblk 1317 drivers/usb/storage/ene_ub6250.c if (phyblk >= info->MS_Lib.NumberOfPhyBlock) phyblk 1320 drivers/usb/storage/ene_ub6250.c log = info->MS_Lib.Phy2LogMap[phyblk]; phyblk 1325 drivers/usb/storage/ene_ub6250.c info->MS_Lib.Phy2LogMap[phyblk] = MS_LB_NOT_USED; phyblk 1328 drivers/usb/storage/ene_ub6250.c switch (ms_read_eraseblock(us, phyblk)) { phyblk 1330 drivers/usb/storage/ene_ub6250.c info->MS_Lib.Phy2LogMap[phyblk] = MS_LB_NOT_USED_ERASED; phyblk 1334 drivers/usb/storage/ene_ub6250.c ms_lib_error_phyblock(us, phyblk); phyblk 1339 drivers/usb/storage/ene_ub6250.c ms_lib_setacquired_errorblock(us, phyblk); phyblk 1344 drivers/usb/storage/ene_ub6250.c ms_lib_setacquired_errorblock(us, phyblk); phyblk 1384 drivers/usb/storage/ene_ub6250.c static int ms_libsearch_block_from_physical(struct us_data *us, u16 phyblk) phyblk 1391 drivers/usb/storage/ene_ub6250.c if (phyblk >= info->MS_Lib.NumberOfPhyBlock) phyblk 1394 drivers/usb/storage/ene_ub6250.c for (blk = phyblk + 1; blk != phyblk; blk++) { phyblk 1437 drivers/usb/storage/ene_ub6250.c u16 phyblk; phyblk 1440 drivers/usb/storage/ene_ub6250.c phyblk = ms_libconv_to_physical(info, logblk); phyblk 1441 drivers/usb/storage/ene_ub6250.c if (phyblk >= MS_LB_ERROR) { phyblk 1445 drivers/usb/storage/ene_ub6250.c phyblk = (logblk + MS_NUMBER_OF_BOOT_BLOCK) / MS_LOGICAL_BLOCKS_PER_SEGMENT; phyblk 1446 drivers/usb/storage/ene_ub6250.c phyblk *= MS_PHYSICAL_BLOCKS_PER_SEGMENT; phyblk 1447 drivers/usb/storage/ene_ub6250.c phyblk += MS_PHYSICAL_BLOCKS_PER_SEGMENT - 1; phyblk 1450 drivers/usb/storage/ene_ub6250.c return ms_libsearch_block_from_physical(us, phyblk); phyblk 1675 drivers/usb/storage/ene_ub6250.c u16 phyblk, logblk; phyblk 1700 drivers/usb/storage/ene_ub6250.c phyblk = ms_libconv_to_physical(info, logblk); phyblk 1701 drivers/usb/storage/ene_ub6250.c blkno = phyblk * 0x20 + PageNum;