Lines Matching refs:PhyBlockAddr
857 static int ms_read_readpage(struct us_data *us, u32 PhyBlockAddr, in ms_read_readpage() argument
863 u32 bn = PhyBlockAddr * 0x20 + PageNum; in ms_read_readpage()
900 bcb->CDB[4] = (unsigned char)(PhyBlockAddr); in ms_read_readpage()
901 bcb->CDB[3] = (unsigned char)(PhyBlockAddr>>8); in ms_read_readpage()
902 bcb->CDB[2] = (unsigned char)(PhyBlockAddr>>16); in ms_read_readpage()
1139 u16 PhyBlockAddr, u8 PageNum, unsigned char *buf, u16 len) in ms_read_copyblock() argument
1162 bcb->CDB[9] = (unsigned char)(PhyBlockAddr); in ms_read_copyblock()
1163 bcb->CDB[8] = (unsigned char)(PhyBlockAddr>>8); in ms_read_copyblock()
1173 static int ms_read_eraseblock(struct us_data *us, u32 PhyBlockAddr) in ms_read_eraseblock() argument
1177 u32 bn = PhyBlockAddr; in ms_read_eraseblock()
1252 static int ms_lib_overwrite_extra(struct us_data *us, u32 PhyBlockAddr, in ms_lib_overwrite_extra() argument
1271 bcb->CDB[4] = (unsigned char)(PhyBlockAddr); in ms_lib_overwrite_extra()
1272 bcb->CDB[3] = (unsigned char)(PhyBlockAddr>>8); in ms_lib_overwrite_extra()
1273 bcb->CDB[2] = (unsigned char)(PhyBlockAddr>>16); in ms_lib_overwrite_extra()
1781 u16 PhyBlockAddr; in ms_scsi_write() local
1797 PhyBlockAddr = (u16)(bn / info->MS_Lib.PagesPerBlock); in ms_scsi_write()
1806 oldphy = ms_libconv_to_physical(info, PhyBlockAddr); /* need check us <-> info */ in ms_scsi_write()
1807 newphy = ms_libsearch_block_from_logical(us, PhyBlockAddr); in ms_scsi_write()
1809 result = ms_read_copyblock(us, oldphy, newphy, PhyBlockAddr, PageNum, buf+offset, len); in ms_scsi_write()
1818 ms_lib_force_setlogical_pair(us, PhyBlockAddr, newphy); in ms_scsi_write()
1823 PhyBlockAddr++; in ms_scsi_write()