Lines Matching refs:byte_len
103 if (unlikely(offset >= at25->chip.byte_len)) in at25_ee_read()
105 if ((offset + count) > at25->chip.byte_len) in at25_ee_read()
106 count = at25->chip.byte_len - offset; in at25_ee_read()
231 if (unlikely(off >= at25->chip.byte_len)) in at25_ee_write()
233 if ((off + count) > at25->chip.byte_len) in at25_ee_write()
234 count = at25->chip.byte_len - off; in at25_ee_write()
332 chip->byte_len = val; in at25_fw_to_chip()
404 chip->byte_len = BIT(id[7] - 0x21 + 4) * 1024; in at25_fram_to_chip()
408 chip->byte_len = BIT(((id[7] >> 1) & 0xf) + 13); in at25_fram_to_chip()
415 if (chip->byte_len > 64 * 1024) in at25_fram_to_chip()
514 at25->nvmem_config.size = at25->chip.byte_len; in at25_probe()
521 (at25->chip.byte_len < 1024) ? in at25_probe()
522 at25->chip.byte_len : (at25->chip.byte_len / 1024), in at25_probe()
523 (at25->chip.byte_len < 1024) ? "Byte" : "KByte", in at25_probe()