/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 | bq25890_charger.c | 361 static int bq25890_field_read(struct bq25890_device *bq, in bq25890_field_read() argument 367 ret = regmap_field_read(bq->rmap_fields[field_id], &val); in bq25890_field_read() 374 static int bq25890_field_write(struct bq25890_device *bq, in bq25890_field_write() argument 377 return regmap_field_write(bq->rmap_fields[field_id], val); in bq25890_field_write() 454 static irqreturn_t __bq25890_handle_irq(struct bq25890_device *bq); 456 static int bq25890_get_vbus_voltage(struct bq25890_device *bq) in bq25890_get_vbus_voltage() argument 460 ret = bq25890_field_read(bq, F_VBUSV); in bq25890_get_vbus_voltage() 467 static void bq25890_update_state(struct bq25890_device *bq, in bq25890_update_state() argument 474 mutex_lock(&bq->lock); in bq25890_update_state() 476 __bq25890_handle_irq(bq); in bq25890_update_state() [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 | bq25980_charger.c | 275 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 …]
|
D | bq256xx_charger.c | 290 int (*bq256xx_get_ichg)(struct bq256xx_device *bq); 291 int (*bq256xx_get_iindpm)(struct bq256xx_device *bq); 292 int (*bq256xx_get_vbatreg)(struct bq256xx_device *bq); 293 int (*bq256xx_get_iterm)(struct bq256xx_device *bq); 294 int (*bq256xx_get_iprechg)(struct bq256xx_device *bq); 295 int (*bq256xx_get_vindpm)(struct bq256xx_device *bq); 297 int (*bq256xx_set_ichg)(struct bq256xx_device *bq, int ichg); 298 int (*bq256xx_set_iindpm)(struct bq256xx_device *bq, int iindpm); 299 int (*bq256xx_set_vbatreg)(struct bq256xx_device *bq, int vbatreg); 300 int (*bq256xx_set_iterm)(struct bq256xx_device *bq, int iterm); [all …]
|
/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 …]
|
/drivers/net/ethernet/intel/ice/ |
D | ice_txrx_lib.c | 231 struct xdp_frame_bulk *bq) in ice_clean_xdp_tx_buf() argument 242 xdp_return_frame_bulk(tx_buf->xdpf, bq); in ice_clean_xdp_tx_buf() 260 struct xdp_frame_bulk bq; in ice_clean_xdp_irq() local 280 xdp_frame_bulk_init(&bq); in ice_clean_xdp_irq() 302 ice_clean_xdp_tx_buf(dev, tx_buf, &bq); in ice_clean_xdp_irq() 308 ice_clean_xdp_tx_buf(dev, head, &bq); in ice_clean_xdp_irq() 311 xdp_flush_frame_bulk(&bq); in ice_clean_xdp_irq()
|
/drivers/net/ |
D | veth.c | 545 static void veth_xdp_flush_bq(struct veth_rq *rq, struct veth_xdp_tx_bq *bq) in veth_xdp_flush_bq() argument 549 sent = veth_xdp_xmit(rq->dev, bq->count, bq->q, 0, false); in veth_xdp_flush_bq() 555 for (i = sent; unlikely(i < bq->count); i++) in veth_xdp_flush_bq() 556 xdp_return_frame(bq->q[i]); in veth_xdp_flush_bq() 558 drops = bq->count - sent; in veth_xdp_flush_bq() 566 bq->count = 0; in veth_xdp_flush_bq() 569 static void veth_xdp_flush(struct veth_rq *rq, struct veth_xdp_tx_bq *bq) in veth_xdp_flush() argument 576 veth_xdp_flush_bq(rq, bq); in veth_xdp_flush() 593 struct veth_xdp_tx_bq *bq) in veth_xdp_tx() argument 600 if (unlikely(bq->count == VETH_XDP_TX_BULK_SIZE)) in veth_xdp_tx() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | xdp.c | 613 struct xdp_frame_bulk *bq) in mlx5e_free_xdpsq_desc() argument 649 xdp_return_frame_bulk(xdpf, bq); in mlx5e_free_xdpsq_desc() 685 struct xdp_frame_bulk bq; in mlx5e_poll_xdpsq_cq() local 692 xdp_frame_bulk_init(&bq); in mlx5e_poll_xdpsq_cq() 725 mlx5e_free_xdpsq_desc(sq, wi, &xsk_frames, &bq); in mlx5e_poll_xdpsq_cq() 738 xdp_flush_frame_bulk(&bq); in mlx5e_poll_xdpsq_cq() 756 struct xdp_frame_bulk bq; in mlx5e_free_xdpsq_descs() local 759 xdp_frame_bulk_init(&bq); in mlx5e_free_xdpsq_descs() 772 mlx5e_free_xdpsq_desc(sq, wi, &xsk_frames, &bq); in mlx5e_free_xdpsq_descs() 775 xdp_flush_frame_bulk(&bq); in mlx5e_free_xdpsq_descs()
|
/drivers/staging/qlge/ |
D | qlge_main.c | 952 static struct qlge_bq_desc *qlge_get_curr_buf(struct qlge_bq *bq) in qlge_get_curr_buf() argument 956 bq_desc = &bq->queue[bq->next_to_clean]; in qlge_get_curr_buf() 957 bq->next_to_clean = QLGE_BQ_WRAP(bq->next_to_clean + 1); in qlge_get_curr_buf() 1083 static int qlge_refill_bq(struct qlge_bq *bq, gfp_t gfp) in qlge_refill_bq() argument 1085 struct rx_ring *rx_ring = QLGE_BQ_CONTAINER(bq); in qlge_refill_bq() 1092 refill_count = QLGE_BQ_WRAP(QLGE_BQ_ALIGN(bq->next_to_clean - 1) - in qlge_refill_bq() 1093 bq->next_to_use); in qlge_refill_bq() 1097 i = bq->next_to_use; in qlge_refill_bq() 1098 bq_desc = &bq->queue[i]; in qlge_refill_bq() 1103 rx_ring->cq_id, bq_type_name[bq->type], i); in qlge_refill_bq() [all …]
|
D | qlge.h | 1437 #define QLGE_BQ_CONTAINER(bq) \ argument 1439 typeof(bq) _bq = bq; \ 1452 #define QLGE_BQ_HW_OWNED(bq) \ argument 1454 typeof(bq) _bq = bq; \
|
/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_fdma.c | 396 struct xdp_frame_bulk bq; in lan966x_fdma_tx_clear_buf() local 402 xdp_frame_bulk_init(&bq); in lan966x_fdma_tx_clear_buf() 435 xdp_return_frame_bulk(dcb_buf->data.xdpf, &bq); in lan966x_fdma_tx_clear_buf() 444 xdp_flush_frame_bulk(&bq); in lan966x_fdma_tx_clear_buf()
|
/drivers/net/vmxnet3/ |
D | vmxnet3_drv.c | 360 struct xdp_frame_bulk *bq) in vmxnet3_unmap_pkt() argument 389 xdp_return_frame_bulk(tbi->xdpf, bq); in vmxnet3_unmap_pkt() 405 struct xdp_frame_bulk bq; in vmxnet3_tq_tx_complete() local 408 xdp_frame_bulk_init(&bq); in vmxnet3_tq_tx_complete() 420 adapter, &bq); in vmxnet3_tq_tx_complete() 425 xdp_flush_frame_bulk(&bq); in vmxnet3_tq_tx_complete() 446 struct xdp_frame_bulk bq; in vmxnet3_tq_cleanup() local 450 xdp_frame_bulk_init(&bq); in vmxnet3_tq_cleanup() 462 xdp_return_frame_bulk(tbi->xdpf, &bq); in vmxnet3_tq_cleanup() 470 xdp_flush_frame_bulk(&bq); in vmxnet3_tq_cleanup()
|
/drivers/net/ethernet/mediatek/ |
D | mtk_eth_soc.c | 1211 struct xdp_frame_bulk *bq, bool napi) in mtk_tx_unmap() argument 1254 else if (bq) in mtk_tx_unmap() 1255 xdp_return_frame_bulk(xdpf, bq); in mtk_tx_unmap() 2261 struct xdp_frame_bulk bq; in mtk_poll_tx_qdma() local 2269 xdp_frame_bulk_init(&bq); in mtk_poll_tx_qdma() 2290 mtk_tx_unmap(eth, tx_buf, &bq, true); in mtk_poll_tx_qdma() 2297 xdp_flush_frame_bulk(&bq); in mtk_poll_tx_qdma() 2310 struct xdp_frame_bulk bq; in mtk_poll_tx_pdma() local 2316 xdp_frame_bulk_init(&bq); in mtk_poll_tx_pdma() 2328 mtk_tx_unmap(eth, tx_buf, &bq, true); in mtk_poll_tx_pdma() [all …]
|
/drivers/net/ethernet/socionext/ |
D | netsec.c | 638 struct xdp_frame_bulk bq; in netsec_clean_tx_dring() local 647 xdp_frame_bulk_init(&bq); in netsec_clean_tx_dring() 679 xdp_return_frame_bulk(desc->xdpf, &bq); in netsec_clean_tx_dring() 698 xdp_flush_frame_bulk(&bq); in netsec_clean_tx_dring()
|
/drivers/net/ethernet/marvell/ |
D | mvneta.c | 1873 struct xdp_frame_bulk bq; in mvneta_txq_bufs_free() local 1876 xdp_frame_bulk_init(&bq); in mvneta_txq_bufs_free() 1902 xdp_return_frame_bulk(buf->xdpf, &bq); in mvneta_txq_bufs_free() 1905 xdp_flush_frame_bulk(&bq); in mvneta_txq_bufs_free()
|
/drivers/net/ethernet/marvell/mvpp2/ |
D | mvpp2_main.c | 2814 struct xdp_frame_bulk bq; in mvpp2_txq_bufs_free() local 2817 xdp_frame_bulk_init(&bq); in mvpp2_txq_bufs_free() 2833 xdp_return_frame_bulk(tx_buf->xdpf, &bq); in mvpp2_txq_bufs_free() 2837 xdp_flush_frame_bulk(&bq); in mvpp2_txq_bufs_free()
|