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()
434 chip.byte_len = int_pow(2, id[7] - 0x21 + 4) * 1024; in at25_probe()
436 if (at25->chip.byte_len > 64 * 1024) in at25_probe()
477 at25->nvmem_config.size = chip.byte_len; in at25_probe()
484 (chip.byte_len < 1024) ? chip.byte_len : (chip.byte_len / 1024), in at25_probe()
485 (chip.byte_len < 1024) ? "Byte" : "KByte", in at25_probe()