Lines Matching refs:sector_size
593 int addr, const char *data, int sector_size) in broadsheet_spiflash_write_sector() argument
598 for (i = 0; i < sector_size; i += BS_SPIFLASH_PAGE_SIZE) { in broadsheet_spiflash_write_sector()
612 int sector_size, int data_start_addr, in broadsheet_spiflash_rewrite_sector() argument
620 sector_buffer = kzalloc(sector_size, GFP_KERNEL); in broadsheet_spiflash_rewrite_sector()
625 start_sector_addr = (data_start_addr / sector_size) * sector_size; in broadsheet_spiflash_rewrite_sector()
649 tail_start_addr = (data_start_addr + data_len) % sector_size; in broadsheet_spiflash_rewrite_sector()
654 tail_len = sector_size - tail_start_addr; in broadsheet_spiflash_rewrite_sector()
672 sector_buffer, sector_size); in broadsheet_spiflash_rewrite_sector()
681 int sector_size; in broadsheet_write_spiflash() local
690 sector_size = 32*1024; in broadsheet_write_spiflash()
694 sector_size = 64*1024; in broadsheet_write_spiflash()
700 maxlen = roundup(cur_addr, sector_size) - cur_addr; in broadsheet_write_spiflash()
703 err = broadsheet_spiflash_rewrite_sector(par, sector_size, in broadsheet_write_spiflash()