/Linux-v5.4/drivers/power/supply/ |
D | bq2415x_charger.c | 187 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 …]
|
D | bq24257_charger.c | 210 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 …]
|
D | bq25890_charger.c | 289 static int bq25890_field_read(struct bq25890_device *bq, in bq25890_field_read() argument 295 ret = regmap_field_read(bq->rmap_fields[field_id], &val); in bq25890_field_read() 302 static int bq25890_field_write(struct bq25890_device *bq, in bq25890_field_write() argument 305 return regmap_field_write(bq->rmap_fields[field_id], val); in bq25890_field_write() 366 struct bq25890_device *bq = power_supply_get_drvdata(psy); in bq25890_power_supply_get_property() local 369 mutex_lock(&bq->lock); in bq25890_power_supply_get_property() 370 state = bq->state; in bq25890_power_supply_get_property() 371 mutex_unlock(&bq->lock); in bq25890_power_supply_get_property() 394 if (bq->chip_id == BQ25890_ID) in bq25890_power_supply_get_property() 396 else if (bq->chip_id == BQ25895_ID) in bq25890_power_supply_get_property() [all …]
|
/Linux-v5.4/drivers/isdn/mISDN/ |
D | dsp_biquad.h | 26 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.4/kernel/bpf/ |
D | devmap.c | 330 static int bq_xmit_all(struct xdp_bulk_queue *bq, u32 flags, in bq_xmit_all() argument 333 struct bpf_dtab_netdev *obj = bq->obj; in bq_xmit_all() 338 if (unlikely(!bq->count)) in bq_xmit_all() 341 for (i = 0; i < bq->count; i++) { in bq_xmit_all() 342 struct xdp_frame *xdpf = bq->q[i]; in bq_xmit_all() 347 sent = dev->netdev_ops->ndo_xdp_xmit(dev, bq->count, bq->q, flags); in bq_xmit_all() 353 drops = bq->count - sent; in bq_xmit_all() 355 bq->count = 0; in bq_xmit_all() 358 sent, drops, bq->dev_rx, dev, err); in bq_xmit_all() 359 bq->dev_rx = NULL; in bq_xmit_all() [all …]
|
D | cpumap.c | 78 static int bq_flush_to_queue(struct xdp_bulk_queue *bq, bool in_napi_ctx); 339 struct xdp_bulk_queue *bq; in __cpu_map_entry_alloc() local 356 bq = per_cpu_ptr(rcpu->bulkq, i); in __cpu_map_entry_alloc() 357 bq->obj = rcpu; in __cpu_map_entry_alloc() 413 struct xdp_bulk_queue *bq = per_cpu_ptr(rcpu->bulkq, cpu); in __cpu_map_entry_free() local 416 bq_flush_to_queue(bq, false); in __cpu_map_entry_free() 602 static int bq_flush_to_queue(struct xdp_bulk_queue *bq, bool in_napi_ctx) in bq_flush_to_queue() argument 604 struct bpf_cpu_map_entry *rcpu = bq->obj; in bq_flush_to_queue() 610 if (unlikely(!bq->count)) in bq_flush_to_queue() 616 for (i = 0; i < bq->count; i++) { in bq_flush_to_queue() [all …]
|
/Linux-v5.4/drivers/net/ |
D | veth.c | 452 static void veth_xdp_flush_bq(struct net_device *dev, struct veth_xdp_tx_bq *bq) in veth_xdp_flush_bq() argument 456 sent = veth_xdp_xmit(dev, bq->count, bq->q, 0); in veth_xdp_flush_bq() 460 for (i = 0; i < bq->count; i++) in veth_xdp_flush_bq() 461 xdp_return_frame(bq->q[i]); in veth_xdp_flush_bq() 463 trace_xdp_bulk_tx(dev, sent, bq->count - sent, err); in veth_xdp_flush_bq() 465 bq->count = 0; in veth_xdp_flush_bq() 468 static void veth_xdp_flush(struct net_device *dev, struct veth_xdp_tx_bq *bq) in veth_xdp_flush() argument 475 veth_xdp_flush_bq(dev, bq); in veth_xdp_flush() 492 struct veth_xdp_tx_bq *bq) in veth_xdp_tx() argument 499 if (unlikely(bq->count == VETH_XDP_TX_BULK_SIZE)) in veth_xdp_tx() [all …]
|
/Linux-v5.4/arch/arm/boot/dts/ |
D | mt6589-aquaris5.dts | 12 model = "bq Aquaris5"; 13 compatible = "mundoreader,bq-aquaris5", "mediatek,mt6589";
|
D | rk3066a-bqcurie2.dts | 12 model = "bq Curie 2"; 13 compatible = "mundoreader,bq-curie2", "rockchip,rk3066a";
|
D | rk3188-bqedison2qc.dts | 4 * Author: Heiko Stuebner <heiko.stuebner@bq.com> 14 compatible = "mundoreader,bq-edison2qc", "rockchip,rk3188";
|
/Linux-v5.4/block/ |
D | blk-settings.c | 635 struct request_queue *bq = bdev_get_queue(bdev); in bdev_stack_limits() local 639 return blk_stack_limits(t, &bq->limits, start); in bdev_stack_limits()
|
/Linux-v5.4/drivers/staging/qlge/ |
D | qlge_main.c | 2912 __le64 *bq = rx_ring->lbq_base; in ql_init_lbq_ring() local 2919 lbq_desc->addr = bq; in ql_init_lbq_ring() 2920 bq++; in ql_init_lbq_ring() 2929 __le64 *bq = rx_ring->sbq_base; in ql_init_sbq_ring() local 2936 sbq_desc->addr = bq; in ql_init_sbq_ring() 2937 bq++; in ql_init_sbq_ring()
|