Lines Matching refs:rlen
313 const size_t rlen = spi_nor_otp_region_len(nor); in spi_nor_mtd_otp_read_write() local
357 rofs = ofs & (rlen - 1); in spi_nor_mtd_otp_read_write()
360 len = min_t(size_t, total_len, rlen - rofs); in spi_nor_mtd_otp_read_write()
399 const size_t rlen = spi_nor_otp_region_len(nor); in spi_nor_mtd_otp_erase() local
415 if (!IS_ALIGNED(len, rlen) || !IS_ALIGNED(from, rlen)) in spi_nor_mtd_otp_erase()
438 len -= rlen; in spi_nor_mtd_otp_erase()
439 from += rlen; in spi_nor_mtd_otp_erase()
452 const size_t rlen = spi_nor_otp_region_len(nor); in spi_nor_mtd_otp_lock() local
460 if (!IS_ALIGNED(len, rlen) || !IS_ALIGNED(from, rlen)) in spi_nor_mtd_otp_lock()
473 len -= rlen; in spi_nor_mtd_otp_lock()
474 from += rlen; in spi_nor_mtd_otp_lock()