Lines Matching refs:count
36 static void jz4780_efuse_read_chunk(size_t addr, size_t count, u8 *buf) in jz4780_efuse_read_chunk() argument
44 ((count - 1) << EFUSE_EFUCTRL_LEN_BIT) | in jz4780_efuse_read_chunk()
54 if ((count % 4) == 0) { in jz4780_efuse_read_chunk()
55 for (i = 0; i < count / 4; i++) { in jz4780_efuse_read_chunk()
61 if (count > 2) in jz4780_efuse_read_chunk()
63 if (count > 1) in jz4780_efuse_read_chunk()
69 static inline int jz4780_efuse_chunk_size(size_t count) in jz4780_efuse_chunk_size() argument
71 if (count >= 32) in jz4780_efuse_chunk_size()
73 else if ((count / 4) > 0) in jz4780_efuse_chunk_size()
74 return (count / 4) * 4; in jz4780_efuse_chunk_size()
76 return count % 4; in jz4780_efuse_chunk_size()
79 void jz4780_efuse_read(size_t addr, size_t count, u8 *buf) in jz4780_efuse_read() argument
83 while (count > 0) { in jz4780_efuse_read()
84 chunk = jz4780_efuse_chunk_size(count); in jz4780_efuse_read()
88 count -= chunk; in jz4780_efuse_read()