Lines Matching defs:bytes

53 	int			bytes;
84 void *val, size_t bytes)
87 return nvmem->reg_read(nvmem->priv, offset, val, bytes);
93 void *val, size_t bytes)
99 ret = nvmem->reg_write(nvmem->priv, offset, val, bytes);
109 size_t bytes, int write)
112 unsigned int end = offset + bytes;
172 void *val, size_t bytes)
175 return __nvmem_reg_read(nvmem, offset, val, bytes);
177 return nvmem_access_with_keepouts(nvmem, offset, val, bytes, false);
181 void *val, size_t bytes)
184 return __nvmem_reg_write(nvmem, offset, val, bytes);
186 return nvmem_access_with_keepouts(nvmem, offset, val, bytes, true);
472 cell->raw_len = info->raw_len ?: info->bytes;
473 cell->bytes = info->bytes;
483 cell->bytes = DIV_ROUND_UP(cell->nbits + cell->bit_offset,
719 info.bytes = be32_to_cpup(addr);
1571 /* setup rest of the bytes if any */
1572 for (i = 1; i < cell->bytes; i++) {
1581 p += cell->bytes - 1;
1584 /* result fits in less bytes */
1585 extra = cell->bytes - DIV_ROUND_UP(cell->nbits, BITS_PER_BYTE);
1617 *len = cell->bytes;
1642 buf = kzalloc(max_t(size_t, entry->raw_len, entry->bytes), GFP_KERNEL);
1664 buf = kzalloc(cell->bytes, GFP_KERNEL);
1682 for (i = 1; i < cell->bytes; i++) {
1696 cell->offset + cell->bytes - 1, &v, 1);
1715 (cell->bit_offset == 0 && len != cell->bytes))
1732 rc = nvmem_reg_write(nvmem, cell->offset, buf, cell->bytes);
1751 * Return: length of bytes written or negative on failure.
1950 * Return: length of successful bytes read on success and negative
1982 * Return: length of bytes written or negative error code on failure.
1997 return __nvmem_cell_entry_write(&cell, buf, cell.bytes);
2006 * @bytes: number of bytes to read.
2009 * Return: length of successful bytes read on success and negative
2014 size_t bytes, void *buf)
2021 rc = nvmem_reg_read(nvmem, offset, buf, bytes);
2026 return bytes;
2035 * @bytes: number of bytes to write.
2038 * Return: length of bytes written or negative error code on failure.
2042 size_t bytes, void *buf)
2049 rc = nvmem_reg_write(nvmem, offset, buf, bytes);
2055 return bytes;