Lines Matching refs:bytes
120 unsigned int reg, bytes; in cs35l56_sdw_read() local
134 bytes = SDW_REG_NO_PAGE - (reg & SDW_REGADDR); /* to end of page */ in cs35l56_sdw_read()
135 if (bytes > val_size) in cs35l56_sdw_read()
136 bytes = val_size; in cs35l56_sdw_read()
138 ret = sdw_nread_no_pm(peripheral, reg, bytes, buf8); in cs35l56_sdw_read()
141 reg, reg + bytes - 1, ret); in cs35l56_sdw_read()
145 swab32_array((u32 *)buf8, bytes / 4); in cs35l56_sdw_read()
146 val_size -= bytes; in cs35l56_sdw_read()
147 reg += bytes; in cs35l56_sdw_read()
148 buf8 += bytes; in cs35l56_sdw_read()
184 unsigned int reg, bytes; in cs35l56_sdw_gather_write() local
194 bytes = SDW_REG_NO_PAGE - (reg & SDW_REGADDR); /* to end of page */ in cs35l56_sdw_gather_write()
195 if (bytes > val_size) in cs35l56_sdw_gather_write()
196 bytes = val_size; in cs35l56_sdw_gather_write()
197 if (bytes > sizeof(val_le_buf)) in cs35l56_sdw_gather_write()
198 bytes = sizeof(val_le_buf); in cs35l56_sdw_gather_write()
200 cs35l56_swab_copy(val_le_buf, src_be, bytes); in cs35l56_sdw_gather_write()
202 ret = sdw_nwrite_no_pm(peripheral, reg, bytes, (u8 *)val_le_buf); in cs35l56_sdw_gather_write()
205 reg, reg + bytes - 1, ret); in cs35l56_sdw_gather_write()
209 val_size -= bytes; in cs35l56_sdw_gather_write()
210 reg += bytes; in cs35l56_sdw_gather_write()
211 src_be += bytes; in cs35l56_sdw_gather_write()