Lines Matching refs:PhyBlockAddr

871 static int ms_read_readpage(struct us_data *us, u32 PhyBlockAddr,  in ms_read_readpage()  argument
878 u32 bn = PhyBlockAddr * 0x20 + PageNum; in ms_read_readpage()
912 bcb->CDB[4] = (unsigned char)(PhyBlockAddr); in ms_read_readpage()
913 bcb->CDB[3] = (unsigned char)(PhyBlockAddr>>8); in ms_read_readpage()
914 bcb->CDB[2] = (unsigned char)(PhyBlockAddr>>16); in ms_read_readpage()
1155 u16 PhyBlockAddr, u8 PageNum, unsigned char *buf, u16 len) in ms_read_copyblock() argument
1176 bcb->CDB[9] = (unsigned char)(PhyBlockAddr); in ms_read_copyblock()
1177 bcb->CDB[8] = (unsigned char)(PhyBlockAddr>>8); in ms_read_copyblock()
1187 static int ms_read_eraseblock(struct us_data *us, u32 PhyBlockAddr) in ms_read_eraseblock() argument
1191 u32 bn = PhyBlockAddr; in ms_read_eraseblock()
1264 static int ms_lib_overwrite_extra(struct us_data *us, u32 PhyBlockAddr, in ms_lib_overwrite_extra() argument
1281 bcb->CDB[4] = (unsigned char)(PhyBlockAddr); in ms_lib_overwrite_extra()
1282 bcb->CDB[3] = (unsigned char)(PhyBlockAddr>>8); in ms_lib_overwrite_extra()
1283 bcb->CDB[2] = (unsigned char)(PhyBlockAddr>>16); in ms_lib_overwrite_extra()
1775 u16 PhyBlockAddr; in ms_scsi_write() local
1791 PhyBlockAddr = (u16)(bn / info->MS_Lib.PagesPerBlock); in ms_scsi_write()
1800 oldphy = ms_libconv_to_physical(info, PhyBlockAddr); /* need check us <-> info */ in ms_scsi_write()
1801 newphy = ms_libsearch_block_from_logical(us, PhyBlockAddr); in ms_scsi_write()
1803 result = ms_read_copyblock(us, oldphy, newphy, PhyBlockAddr, PageNum, buf+offset, len); in ms_scsi_write()
1812 ms_lib_force_setlogical_pair(us, PhyBlockAddr, newphy); in ms_scsi_write()
1817 PhyBlockAddr++; in ms_scsi_write()