Lines Matching refs:byte_len
87 u32 byte_len; member
124 u32 byte_len; member
131 .byte_len = _len, .flags = _flags, \
136 .byte_len = _len, .flags = _flags, \
433 if (off + count > at24->byte_len) in at24_read()
480 if (off + count > at24->byte_len) in at24_write()
565 static unsigned int at24_get_offset_adj(u8 flags, unsigned int byte_len) in at24_get_offset_adj() argument
569 return 0xa0 - byte_len; in at24_get_offset_adj()
592 u32 byte_len, page_size, flags, addrw; in at24_probe() local
645 err = device_property_read_u32(dev, "size", &byte_len); in at24_probe()
647 byte_len = cdata->byte_len; in at24_probe()
665 num_addresses = DIV_ROUND_UP(byte_len, in at24_probe()
689 at24->byte_len = byte_len; in at24_probe()
694 at24->offset_adj = at24_get_offset_adj(flags, byte_len); in at24_probe()
747 nvmem_config.size = byte_len; in at24_probe()
790 byte_len, client->name, at24->write_max); in at24_probe()
793 byte_len, client->name); in at24_probe()