Lines Matching full:hold
68 int ckdiv, cdiv, div, hold = 0, filter_width = 0; in at91_calc_twi_clock() local
90 * hold time = HOLD + 3 x T_peripheral_clock in at91_calc_twi_clock()
92 * hold. in at91_calc_twi_clock()
94 hold = DIV_ROUND_UP(t->sda_hold_ns in at91_calc_twi_clock()
96 hold -= 3; in at91_calc_twi_clock()
97 if (hold < 0) in at91_calc_twi_clock()
98 hold = 0; in at91_calc_twi_clock()
99 if (hold > AT91_TWI_CWGR_HOLD_MAX) { in at91_calc_twi_clock()
101 "HOLD field set to its maximum value (%d instead of %d)\n", in at91_calc_twi_clock()
102 AT91_TWI_CWGR_HOLD_MAX, hold); in at91_calc_twi_clock()
103 hold = AT91_TWI_CWGR_HOLD_MAX; in at91_calc_twi_clock()
123 | AT91_TWI_CWGR_HOLD(hold); in at91_calc_twi_clock()
127 dev_dbg(dev->dev, "cdiv %d ckdiv %d hold %d (%d ns), filter_width %d (%d ns)\n", in at91_calc_twi_clock()
128 cdiv, ckdiv, hold, t->sda_hold_ns, filter_width, in at91_calc_twi_clock()
641 * some faulty I2C slave devices might hold SDA down; in at91_do_twi_transfer()