Lines Matching refs:PhyBlockAddr
870 static int ms_read_readpage(struct us_data *us, u32 PhyBlockAddr, in ms_read_readpage() argument
877 u32 bn = PhyBlockAddr * 0x20 + PageNum; in ms_read_readpage()
911 bcb->CDB[4] = (unsigned char)(PhyBlockAddr); in ms_read_readpage()
912 bcb->CDB[3] = (unsigned char)(PhyBlockAddr>>8); in ms_read_readpage()
913 bcb->CDB[2] = (unsigned char)(PhyBlockAddr>>16); in ms_read_readpage()
1154 u16 PhyBlockAddr, u8 PageNum, unsigned char *buf, u16 len) in ms_read_copyblock() argument
1175 bcb->CDB[9] = (unsigned char)(PhyBlockAddr); in ms_read_copyblock()
1176 bcb->CDB[8] = (unsigned char)(PhyBlockAddr>>8); in ms_read_copyblock()
1186 static int ms_read_eraseblock(struct us_data *us, u32 PhyBlockAddr) in ms_read_eraseblock() argument
1190 u32 bn = PhyBlockAddr; in ms_read_eraseblock()
1263 static int ms_lib_overwrite_extra(struct us_data *us, u32 PhyBlockAddr, in ms_lib_overwrite_extra() argument
1280 bcb->CDB[4] = (unsigned char)(PhyBlockAddr); in ms_lib_overwrite_extra()
1281 bcb->CDB[3] = (unsigned char)(PhyBlockAddr>>8); in ms_lib_overwrite_extra()
1282 bcb->CDB[2] = (unsigned char)(PhyBlockAddr>>16); in ms_lib_overwrite_extra()
1774 u16 PhyBlockAddr; in ms_scsi_write() local
1790 PhyBlockAddr = (u16)(bn / info->MS_Lib.PagesPerBlock); in ms_scsi_write()
1799 oldphy = ms_libconv_to_physical(info, PhyBlockAddr); /* need check us <-> info */ in ms_scsi_write()
1800 newphy = ms_libsearch_block_from_logical(us, PhyBlockAddr); in ms_scsi_write()
1802 result = ms_read_copyblock(us, oldphy, newphy, PhyBlockAddr, PageNum, buf+offset, len); in ms_scsi_write()
1811 ms_lib_force_setlogical_pair(us, PhyBlockAddr, newphy); in ms_scsi_write()
1816 PhyBlockAddr++; in ms_scsi_write()