Searched refs:bq (Results 1 – 5 of 5) sorted by relevance
/drivers/power/supply/ |
D | bq2415x_charger.c | 196 static int bq2415x_i2c_read(struct bq2415x_device *bq, u8 reg) in bq2415x_i2c_read() argument 198 struct i2c_client *client = to_i2c_client(bq->dev); in bq2415x_i2c_read() 226 static int bq2415x_i2c_read_mask(struct bq2415x_device *bq, u8 reg, in bq2415x_i2c_read_mask() argument 234 ret = bq2415x_i2c_read(bq, reg); in bq2415x_i2c_read_mask() 241 static int bq2415x_i2c_read_bit(struct bq2415x_device *bq, u8 reg, u8 bit) in bq2415x_i2c_read_bit() argument 245 return bq2415x_i2c_read_mask(bq, reg, BIT(bit), bit); in bq2415x_i2c_read_bit() 251 static int bq2415x_i2c_write(struct bq2415x_device *bq, u8 reg, u8 val) in bq2415x_i2c_write() argument 253 struct i2c_client *client = to_i2c_client(bq->dev); in bq2415x_i2c_write() 280 static int bq2415x_i2c_write_mask(struct bq2415x_device *bq, u8 reg, u8 val, in bq2415x_i2c_write_mask() argument 288 ret = bq2415x_i2c_read(bq, reg); in bq2415x_i2c_write_mask() [all …]
|
D | bq24257_charger.c | 219 static int bq24257_field_read(struct bq24257_device *bq, in bq24257_field_read() argument 225 ret = regmap_field_read(bq->rmap_fields[field_id], &val); in bq24257_field_read() 232 static int bq24257_field_write(struct bq24257_device *bq, in bq24257_field_write() argument 235 return regmap_field_write(bq->rmap_fields[field_id], val); in bq24257_field_write() 270 static int bq24257_get_input_current_limit(struct bq24257_device *bq, in bq24257_get_input_current_limit() argument 275 ret = bq24257_field_read(bq, F_IILIMIT); in bq24257_get_input_current_limit() 294 static int bq24257_set_input_current_limit(struct bq24257_device *bq, in bq24257_set_input_current_limit() argument 302 if (bq->iilimit_autoset_enable) in bq24257_set_input_current_limit() 303 cancel_delayed_work_sync(&bq->iilimit_setup_work); in bq24257_set_input_current_limit() 305 return bq24257_field_write(bq, F_IILIMIT, in bq24257_set_input_current_limit() [all …]
|
D | bq25890_charger.c | 300 static int bq25890_field_read(struct bq25890_device *bq, in bq25890_field_read() argument 306 ret = regmap_field_read(bq->rmap_fields[field_id], &val); in bq25890_field_read() 313 static int bq25890_field_write(struct bq25890_device *bq, in bq25890_field_write() argument 316 return regmap_field_write(bq->rmap_fields[field_id], val); in bq25890_field_write() 377 struct bq25890_device *bq = power_supply_get_drvdata(psy); in bq25890_power_supply_get_property() local 380 mutex_lock(&bq->lock); in bq25890_power_supply_get_property() 381 state = bq->state; in bq25890_power_supply_get_property() 382 mutex_unlock(&bq->lock); in bq25890_power_supply_get_property() 422 ret = bq25890_field_read(bq, F_ICHGR); /* read measured value */ in bq25890_power_supply_get_property() 440 ret = bq25890_field_read(bq, F_BATV); /* read measured value */ in bq25890_power_supply_get_property() [all …]
|
/drivers/isdn/mISDN/ |
D | dsp_biquad.h | 40 static inline void biquad2_init(struct biquad2_state *bq, in biquad2_init() argument 43 bq->gain = gain; in biquad2_init() 44 bq->a1 = a1; in biquad2_init() 45 bq->a2 = a2; in biquad2_init() 46 bq->b1 = b1; in biquad2_init() 47 bq->b2 = b2; in biquad2_init() 49 bq->z1 = 0; in biquad2_init() 50 bq->z2 = 0; in biquad2_init() 53 static inline int16_t biquad2(struct biquad2_state *bq, int16_t sample) in biquad2() argument 58 z0 = sample * bq->gain + bq->z1 * bq->a1 + bq->z2 * bq->a2; in biquad2() [all …]
|
/drivers/net/ethernet/qlogic/qlge/ |
D | qlge_main.c | 2913 __le64 *bq = rx_ring->lbq_base; in ql_init_lbq_ring() local 2920 lbq_desc->addr = bq; in ql_init_lbq_ring() 2921 bq++; in ql_init_lbq_ring() 2930 __le64 *bq = rx_ring->sbq_base; in ql_init_sbq_ring() local 2937 sbq_desc->addr = bq; in ql_init_sbq_ring() 2938 bq++; in ql_init_sbq_ring()
|