Searched refs:bpr_size (Results 1 – 1 of 1) sorted by relevance
/external/u-boot/drivers/mtd/spi/ |
D | spi_flash.c | 543 static bool sst26_process_bpr(u32 bpr_size, u8 *cmd, u32 bit, enum lock_ctl ctl) in sst26_process_bpr() argument 547 cmd[bpr_size - (bit / 8) - 1] |= BIT(bit % 8); in sst26_process_bpr() 550 cmd[bpr_size - (bit / 8) - 1] &= ~BIT(bit % 8); in sst26_process_bpr() 553 return !!(cmd[bpr_size - (bit / 8) - 1] & BIT(bit % 8)); in sst26_process_bpr() 577 u32 i, bpr_ptr, rptr_64k, lptr_64k, bpr_size; in sst26_lock_ctl() local 595 bpr_size = 2 + (flash->size / SZ_64K / 8); in sst26_lock_ctl() 598 ret = spi_flash_read_common(flash, &cmd, 1, bpr_buff, bpr_size); in sst26_lock_ctl() 615 if (sst26_process_bpr(bpr_size, bpr_buff, bpr_ptr, ctl)) in sst26_lock_ctl() 627 if (sst26_process_bpr(bpr_size, bpr_buff, bpr_ptr, ctl)) in sst26_lock_ctl() 634 if (sst26_process_bpr(bpr_size, bpr_buff, bpr_ptr, ctl)) in sst26_lock_ctl() [all …]
|