Lines Matching refs:byte_len
88 if (unlikely(offset >= at25->chip.byte_len)) in at25_ee_read()
90 if ((offset + count) > at25->chip.byte_len) in at25_ee_read()
91 count = at25->chip.byte_len - offset; in at25_ee_read()
196 if (unlikely(off >= at25->chip.byte_len)) in at25_ee_write()
198 if ((off + count) > at25->chip.byte_len) in at25_ee_write()
199 count = at25->chip.byte_len - off; in at25_ee_write()
315 chip->byte_len = val; in at25_fw_to_chip()
431 at25->chip.byte_len = int_pow(2, id[7] - 0x21 + 4) * 1024; in at25_probe()
433 if (at25->chip.byte_len > 64 * 1024) in at25_probe()
474 at25->nvmem_config.size = at25->chip.byte_len; in at25_probe()
481 (at25->chip.byte_len < 1024) ? in at25_probe()
482 at25->chip.byte_len : (at25->chip.byte_len / 1024), in at25_probe()
483 (at25->chip.byte_len < 1024) ? "Byte" : "KByte", in at25_probe()