Lines Matching refs:byte_len
82 u32 byte_len; member
120 u32 byte_len; member
128 .byte_len = _len, .flags = _flags, \
133 .byte_len = _len, .flags = _flags, \
139 .byte_len = _len, .flags = _flags, \
431 if (off + count > at24->byte_len) in at24_read()
478 if (off + count > at24->byte_len) in at24_write()
561 static unsigned int at24_get_offset_adj(u8 flags, unsigned int byte_len) in at24_get_offset_adj() argument
565 return 0xa0 - byte_len; in at24_get_offset_adj()
588 u32 byte_len, page_size, flags, addrw; in at24_probe() local
641 err = device_property_read_u32(dev, "size", &byte_len); in at24_probe()
643 byte_len = cdata->byte_len; in at24_probe()
661 num_addresses = DIV_ROUND_UP(byte_len, in at24_probe()
685 at24->byte_len = byte_len; in at24_probe()
691 at24->offset_adj = at24_get_offset_adj(flags, byte_len); in at24_probe()
743 nvmem_config.size = byte_len; in at24_probe()
786 byte_len, client->name, at24->write_max); in at24_probe()
789 byte_len, client->name); in at24_probe()