Home
last modified time | relevance | path

Searched refs:bq (Results 1 – 13 of 13) sorted by relevance

/Linux-v5.10/drivers/power/supply/
Dbq2415x_charger.c187 static int bq2415x_i2c_read(struct bq2415x_device *bq, u8 reg) in bq2415x_i2c_read() argument
189 struct i2c_client *client = to_i2c_client(bq->dev); in bq2415x_i2c_read()
217 static int bq2415x_i2c_read_mask(struct bq2415x_device *bq, u8 reg, in bq2415x_i2c_read_mask() argument
225 ret = bq2415x_i2c_read(bq, reg); in bq2415x_i2c_read_mask()
232 static int bq2415x_i2c_read_bit(struct bq2415x_device *bq, u8 reg, u8 bit) in bq2415x_i2c_read_bit() argument
236 return bq2415x_i2c_read_mask(bq, reg, BIT(bit), bit); in bq2415x_i2c_read_bit()
242 static int bq2415x_i2c_write(struct bq2415x_device *bq, u8 reg, u8 val) in bq2415x_i2c_write() argument
244 struct i2c_client *client = to_i2c_client(bq->dev); in bq2415x_i2c_write()
271 static int bq2415x_i2c_write_mask(struct bq2415x_device *bq, u8 reg, u8 val, in bq2415x_i2c_write_mask() argument
279 ret = bq2415x_i2c_read(bq, reg); in bq2415x_i2c_write_mask()
[all …]
Dbq24257_charger.c210 static int bq24257_field_read(struct bq24257_device *bq, in bq24257_field_read() argument
216 ret = regmap_field_read(bq->rmap_fields[field_id], &val); in bq24257_field_read()
223 static int bq24257_field_write(struct bq24257_device *bq, in bq24257_field_write() argument
226 return regmap_field_write(bq->rmap_fields[field_id], val); in bq24257_field_write()
261 static int bq24257_get_input_current_limit(struct bq24257_device *bq, in bq24257_get_input_current_limit() argument
266 ret = bq24257_field_read(bq, F_IILIMIT); in bq24257_get_input_current_limit()
285 static int bq24257_set_input_current_limit(struct bq24257_device *bq, in bq24257_set_input_current_limit() argument
293 if (bq->iilimit_autoset_enable) in bq24257_set_input_current_limit()
294 cancel_delayed_work_sync(&bq->iilimit_setup_work); in bq24257_set_input_current_limit()
296 return bq24257_field_write(bq, F_IILIMIT, in bq24257_set_input_current_limit()
[all …]
Dbq25980_charger.c275 static int bq25980_get_input_curr_lim(struct bq25980_device *bq) in bq25980_get_input_curr_lim() argument
280 ret = regmap_read(bq->regmap, BQ25980_BUSOCP, &busocp_reg_code); in bq25980_get_input_curr_lim()
287 static int bq25980_set_hiz(struct bq25980_device *bq, int setting) in bq25980_set_hiz() argument
289 return regmap_update_bits(bq->regmap, BQ25980_CHRGR_CTRL_2, in bq25980_set_hiz()
293 static int bq25980_set_input_curr_lim(struct bq25980_device *bq, int busocp) in bq25980_set_input_curr_lim() argument
299 return bq25980_set_hiz(bq, BQ25980_ENABLE_HIZ); in bq25980_set_input_curr_lim()
301 bq25980_set_hiz(bq, BQ25980_DISABLE_HIZ); in bq25980_set_input_curr_lim()
306 if (bq->state.bypass) in bq25980_set_input_curr_lim()
307 busocp = min(busocp, bq->chip_info->busocp_sc_max); in bq25980_set_input_curr_lim()
309 busocp = min(busocp, bq->chip_info->busocp_byp_max); in bq25980_set_input_curr_lim()
[all …]
Dbq25890_charger.c314 static int bq25890_field_read(struct bq25890_device *bq, in bq25890_field_read() argument
320 ret = regmap_field_read(bq->rmap_fields[field_id], &val); in bq25890_field_read()
327 static int bq25890_field_write(struct bq25890_device *bq, in bq25890_field_write() argument
330 return regmap_field_write(bq->rmap_fields[field_id], val); in bq25890_field_write()
398 static irqreturn_t __bq25890_handle_irq(struct bq25890_device *bq);
404 struct bq25890_device *bq = power_supply_get_drvdata(psy); in bq25890_power_supply_get_property() local
409 mutex_lock(&bq->lock); in bq25890_power_supply_get_property()
411 __bq25890_handle_irq(bq); in bq25890_power_supply_get_property()
412 state = bq->state; in bq25890_power_supply_get_property()
415 bq25890_field_write(bq, F_CONV_START, 1); in bq25890_power_supply_get_property()
[all …]
/Linux-v5.10/drivers/isdn/mISDN/
Ddsp_biquad.h26 static inline void biquad2_init(struct biquad2_state *bq, in biquad2_init() argument
29 bq->gain = gain; in biquad2_init()
30 bq->a1 = a1; in biquad2_init()
31 bq->a2 = a2; in biquad2_init()
32 bq->b1 = b1; in biquad2_init()
33 bq->b2 = b2; in biquad2_init()
35 bq->z1 = 0; in biquad2_init()
36 bq->z2 = 0; in biquad2_init()
39 static inline int16_t biquad2(struct biquad2_state *bq, int16_t sample) in biquad2() argument
44 z0 = sample * bq->gain + bq->z1 * bq->a1 + bq->z2 * bq->a2; in biquad2()
[all …]
/Linux-v5.10/kernel/bpf/
Dcpumap.c420 struct xdp_bulk_queue *bq; in __cpu_map_entry_alloc() local
436 bq = per_cpu_ptr(rcpu->bulkq, i); in __cpu_map_entry_alloc()
437 bq->obj = rcpu; in __cpu_map_entry_alloc()
670 static void bq_flush_to_queue(struct xdp_bulk_queue *bq) in bq_flush_to_queue() argument
672 struct bpf_cpu_map_entry *rcpu = bq->obj; in bq_flush_to_queue()
678 if (unlikely(!bq->count)) in bq_flush_to_queue()
684 for (i = 0; i < bq->count; i++) { in bq_flush_to_queue()
685 struct xdp_frame *xdpf = bq->q[i]; in bq_flush_to_queue()
695 bq->count = 0; in bq_flush_to_queue()
698 __list_del_clearprev(&bq->flush_node); in bq_flush_to_queue()
[all …]
Ddevmap.c344 static void bq_xmit_all(struct xdp_dev_bulk_queue *bq, u32 flags) in bq_xmit_all() argument
346 struct net_device *dev = bq->dev; in bq_xmit_all()
350 if (unlikely(!bq->count)) in bq_xmit_all()
353 for (i = 0; i < bq->count; i++) { in bq_xmit_all()
354 struct xdp_frame *xdpf = bq->q[i]; in bq_xmit_all()
359 sent = dev->netdev_ops->ndo_xdp_xmit(dev, bq->count, bq->q, flags); in bq_xmit_all()
365 drops = bq->count - sent; in bq_xmit_all()
367 bq->count = 0; in bq_xmit_all()
369 trace_xdp_devmap_xmit(bq->dev_rx, dev, sent, drops, err); in bq_xmit_all()
370 bq->dev_rx = NULL; in bq_xmit_all()
[all …]
/Linux-v5.10/drivers/net/
Dveth.c505 static void veth_xdp_flush_bq(struct veth_rq *rq, struct veth_xdp_tx_bq *bq) in veth_xdp_flush_bq() argument
509 sent = veth_xdp_xmit(rq->dev, bq->count, bq->q, 0, false); in veth_xdp_flush_bq()
513 for (i = 0; i < bq->count; i++) in veth_xdp_flush_bq()
514 xdp_return_frame(bq->q[i]); in veth_xdp_flush_bq()
516 trace_xdp_bulk_tx(rq->dev, sent, bq->count - sent, err); in veth_xdp_flush_bq()
520 rq->stats.vs.xdp_tx_err += bq->count - sent; in veth_xdp_flush_bq()
523 bq->count = 0; in veth_xdp_flush_bq()
526 static void veth_xdp_flush(struct veth_rq *rq, struct veth_xdp_tx_bq *bq) in veth_xdp_flush() argument
533 veth_xdp_flush_bq(rq, bq); in veth_xdp_flush()
550 struct veth_xdp_tx_bq *bq) in veth_xdp_tx() argument
[all …]
/Linux-v5.10/arch/arm/boot/dts/
Dmt6589-aquaris5.dts12 model = "bq Aquaris5";
13 compatible = "mundoreader,bq-aquaris5", "mediatek,mt6589";
Drk3066a-bqcurie2.dts12 model = "bq Curie 2";
13 compatible = "mundoreader,bq-curie2", "rockchip,rk3066a";
Drk3188-bqedison2qc.dts4 * Author: Heiko Stuebner <heiko.stuebner@bq.com>
14 compatible = "mundoreader,bq-edison2qc", "rockchip,rk3188";
/Linux-v5.10/drivers/staging/qlge/
Dqlge_main.c956 static struct qlge_bq_desc *qlge_get_curr_buf(struct qlge_bq *bq) in qlge_get_curr_buf() argument
960 bq_desc = &bq->queue[bq->next_to_clean]; in qlge_get_curr_buf()
961 bq->next_to_clean = QLGE_BQ_WRAP(bq->next_to_clean + 1); in qlge_get_curr_buf()
1087 static int qlge_refill_bq(struct qlge_bq *bq, gfp_t gfp) in qlge_refill_bq() argument
1089 struct rx_ring *rx_ring = QLGE_BQ_CONTAINER(bq); in qlge_refill_bq()
1096 refill_count = QLGE_BQ_WRAP(QLGE_BQ_ALIGN(bq->next_to_clean - 1) - in qlge_refill_bq()
1097 bq->next_to_use); in qlge_refill_bq()
1101 i = bq->next_to_use; in qlge_refill_bq()
1102 bq_desc = &bq->queue[i]; in qlge_refill_bq()
1107 rx_ring->cq_id, bq_type_name[bq->type], i); in qlge_refill_bq()
[all …]
Dqlge.h1437 #define QLGE_BQ_CONTAINER(bq) \ argument
1439 typeof(bq) _bq = bq; \
1452 #define QLGE_BQ_HW_OWNED(bq) \ argument
1454 typeof(bq) _bq = bq; \