Lines Matching defs:bytes
50 int bytes;
70 void *val, size_t bytes)
73 return nvmem->reg_read(nvmem->priv, offset, val, bytes);
79 void *val, size_t bytes)
85 ret = nvmem->reg_write(nvmem->priv, offset, val, bytes);
372 cell->bytes = info->bytes;
379 cell->bytes = DIV_ROUND_UP(cell->nbits + cell->bit_offset,
566 cell->bytes = be32_to_cpup(addr);
576 cell->bytes = DIV_ROUND_UP(
1216 /* setup rest of the bytes if any */
1217 for (i = 1; i < cell->bytes; i++) {
1226 p += cell->bytes - 1;
1229 /* result fits in less bytes */
1230 extra = cell->bytes - DIV_ROUND_UP(cell->nbits, BITS_PER_BYTE);
1245 rc = nvmem_reg_read(nvmem, cell->offset, buf, cell->bytes);
1255 *len = cell->bytes;
1279 buf = kzalloc(cell->bytes, GFP_KERNEL);
1301 buf = kzalloc(cell->bytes, GFP_KERNEL);
1319 for (i = 1; i < cell->bytes; i++) {
1333 cell->offset + cell->bytes - 1, &v, 1);
1353 * Return: length of bytes written or negative on failure.
1361 (cell->bit_offset == 0 && len != cell->bytes))
1370 rc = nvmem_reg_write(nvmem, cell->offset, buf, cell->bytes);
1478 * Return: length of successful bytes read on success and negative
1510 * Return: length of bytes written or negative error code on failure.
1525 return nvmem_cell_write(&cell, buf, cell.bytes);
1534 * @bytes: number of bytes to read.
1537 * Return: length of successful bytes read on success and negative
1542 size_t bytes, void *buf)
1549 rc = nvmem_reg_read(nvmem, offset, buf, bytes);
1554 return bytes;
1563 * @bytes: number of bytes to write.
1566 * Return: length of bytes written or negative error code on failure.
1570 size_t bytes, void *buf)
1577 rc = nvmem_reg_write(nvmem, offset, buf, bytes);
1583 return bytes;