Searched refs:W1_F2D_SCRATCH_SIZE (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/w1/slaves/
H A Dw1_ds2431.c30 #define W1_F2D_SCRATCH_SIZE (1<<W1_F2D_SCRATCH_BITS) macro
31 #define W1_F2D_SCRATCH_MASK (W1_F2D_SCRATCH_SIZE-1)
137 * The data must be aligned at W1_F2D_SCRATCH_SIZE bytes and
138 * must be W1_F2D_SCRATCH_SIZE bytes long.
151 u8 rdbuf[W1_F2D_SCRATCH_SIZE + 3]; w1_f2d_write()
152 u8 es = (addr + len - 1) % W1_F2D_SCRATCH_SIZE; w1_f2d_write()
225 if (len < W1_F2D_SCRATCH_SIZE || addr & W1_F2D_SCRATCH_MASK) { eeprom_write()
226 char tmp[W1_F2D_SCRATCH_SIZE]; eeprom_write()
230 W1_F2D_SCRATCH_SIZE, tmp)) { eeprom_write()
236 copy = W1_F2D_SCRATCH_SIZE - eeprom_write()
244 W1_F2D_SCRATCH_SIZE, tmp) < 0) { eeprom_write()
250 copy = W1_F2D_SCRATCH_SIZE; eeprom_write()

Completed in 230 milliseconds