Home
last modified time | relevance | path

Searched refs:dim (Results 1 – 25 of 38) sorted by relevance

12

/Linux-v4.19/include/linux/
Dnet_dim.h191 static inline bool net_dim_on_top(struct net_dim *dim) in net_dim_on_top() argument
193 switch (dim->tune_state) { in net_dim_on_top()
198 return (dim->steps_left > 1) && (dim->steps_right == 1); in net_dim_on_top()
200 return (dim->steps_right > 1) && (dim->steps_left == 1); in net_dim_on_top()
204 static inline void net_dim_turn(struct net_dim *dim) in net_dim_turn() argument
206 switch (dim->tune_state) { in net_dim_turn()
211 dim->tune_state = NET_DIM_GOING_LEFT; in net_dim_turn()
212 dim->steps_left = 0; in net_dim_turn()
215 dim->tune_state = NET_DIM_GOING_RIGHT; in net_dim_turn()
216 dim->steps_right = 0; in net_dim_turn()
[all …]
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Den_dim.c37 mlx5e_complete_dim_work(struct net_dim *dim, struct net_dim_cq_moder moder, in mlx5e_complete_dim_work() argument
41 dim->state = NET_DIM_START_MEASURE; in mlx5e_complete_dim_work()
46 struct net_dim *dim = container_of(work, struct net_dim, work); in mlx5e_rx_dim_work() local
47 struct mlx5e_rq *rq = container_of(dim, struct mlx5e_rq, dim); in mlx5e_rx_dim_work()
49 net_dim_get_rx_moderation(dim->mode, dim->profile_ix); in mlx5e_rx_dim_work()
51 mlx5e_complete_dim_work(dim, cur_moder, rq->mdev, &rq->cq.mcq); in mlx5e_rx_dim_work()
56 struct net_dim *dim = container_of(work, struct net_dim, work); in mlx5e_tx_dim_work() local
57 struct mlx5e_txqsq *sq = container_of(dim, struct mlx5e_txqsq, dim); in mlx5e_tx_dim_work()
59 net_dim_get_tx_moderation(dim->mode, dim->profile_ix); in mlx5e_tx_dim_work()
61 mlx5e_complete_dim_work(dim, cur_moder, sq->cq.mdev, &sq->cq.mcq); in mlx5e_tx_dim_work()
Den_txrx.c58 net_dim(&sq->dim, dim_sample); in mlx5e_handle_tx_dim()
71 net_dim(&rq->dim, dim_sample); in mlx5e_handle_rx_dim()
Den.h362 struct net_dim dim; /* Adaptive Moderation */ member
570 struct net_dim dim; /* Dynamic Interrupt Moderation */ member
/Linux-v4.19/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_debugfs.c24 struct net_dim *dim = filep->private_data; in debugfs_dim_read() local
30 if (!dim) in debugfs_dim_read()
40 dim->state, in debugfs_dim_read()
41 dim->profile_ix, in debugfs_dim_read()
42 dim->mode, in debugfs_dim_read()
43 dim->tune_state, in debugfs_dim_read()
44 dim->steps_right, in debugfs_dim_read()
45 dim->steps_left, in debugfs_dim_read()
46 dim->tired); in debugfs_dim_read()
64 static struct dentry *debugfs_dim_ring_init(struct net_dim *dim, int ring_idx, in debugfs_dim_ring_init() argument
[all …]
Dbnxt_dim.c16 struct net_dim *dim = container_of(work, struct net_dim, in bnxt_dim_work() local
18 struct bnxt_cp_ring_info *cpr = container_of(dim, in bnxt_dim_work()
20 dim); in bnxt_dim_work()
25 net_dim_get_rx_moderation(dim->mode, dim->profile_ix); in bnxt_dim_work()
31 dim->state = NET_DIM_START_MEASURE; in bnxt_dim_work()
/Linux-v4.19/net/netfilter/
Dxt_set.c45 .dim = d, \
62 ADT_OPT(opt, xt_family(par), info->match_set.u.compat.dim, in set_match_v0()
76 info->u.compat.dim = IPSET_DIM_ZERO; in compat_flags()
80 info->u.compat.dim++; in compat_flags()
82 info->u.compat.flags |= (1 << info->u.compat.dim); in compat_flags()
126 ADT_OPT(opt, xt_family(par), info->match_set.dim, in set_match_v1()
150 if (info->match_set.dim > IPSET_DIM_MAX) { in set_match_v1_checkentry()
174 ADT_OPT(opt, xt_family(par), info->match_set.dim, in set_match_v3()
197 ADT_OPT(opt, xt_family(par), info->match_set.dim, in set_match_v4()
220 ADT_OPT(add_opt, xt_family(par), info->add_set.u.compat.dim, in set_target_v0()
[all …]
/Linux-v4.19/tools/perf/
Dbuiltin-c2c.c401 struct c2c_dimension *dim; member
424 struct c2c_dimension *dim; in c2c_width() local
427 dim = c2c_fmt->dim; in c2c_width()
429 if (dim == &dim_symbol || dim == &dim_srcline) in c2c_width()
430 return symbol_width(hists, dim->se); in c2c_width()
432 return dim->se ? hists__col_len(hists, dim->se->se_width_idx) : in c2c_width()
433 c2c_fmt->dim->width; in c2c_width()
441 struct c2c_dimension *dim; in c2c_header() local
446 dim = c2c_fmt->dim; in c2c_header()
448 if (dim->se) { in c2c_header()
[all …]
/Linux-v4.19/drivers/leds/
Dleds-lp3944.c105 static int lp3944_dim_set_period(struct i2c_client *client, u8 dim, u16 period) in lp3944_dim_set_period() argument
111 if (dim == LP3944_DIM0) in lp3944_dim_set_period()
113 else if (dim == LP3944_DIM1) in lp3944_dim_set_period()
136 static int lp3944_dim_set_dutycycle(struct i2c_client *client, u8 dim, in lp3944_dim_set_dutycycle() argument
143 if (dim == LP3944_DIM0) in lp3944_dim_set_dutycycle()
145 else if (dim == LP3944_DIM1) in lp3944_dim_set_dutycycle()
/Linux-v4.19/drivers/net/ethernet/broadcom/
Dbcmsysport.c620 ec->use_adaptive_rx_coalesce = priv->dim.use_dim; in bcm_sysport_get_coalesce()
656 if (ec->use_adaptive_rx_coalesce && !priv->dim.use_dim) { in bcm_sysport_set_coalesce()
657 moder = net_dim_get_def_rx_moderation(priv->dim.dim.mode); in bcm_sysport_set_coalesce()
662 priv->dim.use_dim = ec->use_adaptive_rx_coalesce; in bcm_sysport_set_coalesce()
861 priv->dim.packets = processed; in bcm_sysport_desc_rx()
862 priv->dim.bytes = processed_bytes; in bcm_sysport_desc_rx()
1035 if (priv->dim.use_dim) { in bcm_sysport_poll()
1036 net_dim_sample(priv->dim.event_ctr, priv->dim.packets, in bcm_sysport_poll()
1037 priv->dim.bytes, &dim_sample); in bcm_sysport_poll()
1038 net_dim(&priv->dim.dim, dim_sample); in bcm_sysport_poll()
[all …]
Dbcmsysport.h711 struct net_dim dim; member
762 struct bcm_sysport_net_dim dim; member
/Linux-v4.19/drivers/net/ethernet/broadcom/genet/
Dbcmgenet.c620 ec->use_adaptive_rx_coalesce |= ring->dim.use_dim; in bcmgenet_get_coalesce()
623 ec->use_adaptive_rx_coalesce |= ring->dim.use_dim; in bcmgenet_get_coalesce()
654 if (ec->use_adaptive_rx_coalesce && !ring->dim.use_dim) { in bcmgenet_set_ring_rx_coalesce()
655 moder = net_dim_get_def_rx_moderation(ring->dim.dim.mode); in bcmgenet_set_ring_rx_coalesce()
660 ring->dim.use_dim = ec->use_adaptive_rx_coalesce; in bcmgenet_set_ring_rx_coalesce()
1890 ring->dim.bytes = bytes_processed; in bcmgenet_desc_rx()
1891 ring->dim.packets = rxpktprocessed; in bcmgenet_desc_rx()
1911 if (ring->dim.use_dim) { in bcmgenet_rx_poll()
1912 net_dim_sample(ring->dim.event_ctr, ring->dim.packets, in bcmgenet_rx_poll()
1913 ring->dim.bytes, &dim_sample); in bcmgenet_rx_poll()
[all …]
Dbcmgenet.h584 struct net_dim dim; member
601 struct bcmgenet_net_dim dim; member
/Linux-v4.19/include/uapi/linux/netfilter/
Dxt_set.h23 __u8 dim; member
43 __u8 dim; member
/Linux-v4.19/net/sched/
Dem_ipset.c84 opt.dim = set->dim; in em_ipset_match()
/Linux-v4.19/Documentation/ABI/testing/
Dsysfs-class-backlight-driver-adp887025 Control the dim brightness for <ambient light zone>
28 This file will also show the dim brightness level stored for
/Linux-v4.19/drivers/infiniband/hw/qib/
Dqib_user_sdma.h43 unsigned long dim);
Dqib_user_sdma.c1379 unsigned long dim) in qib_user_sdma_writev() argument
1402 while (dim) { in qib_user_sdma_writev()
1407 iov, dim, &list, &mxp, &ndesc); in qib_user_sdma_writev()
1411 dim -= ret; in qib_user_sdma_writev()
/Linux-v4.19/Documentation/networking/
Dnet_dim.txt95 Net DIM API exposes the main function net_dim(struct net_dim *dim,
141 struct net_dim *dim = container_of(work, struct net_dim,
147 dim->state = NET_DIM_START_MEASURE;
163 net_dim(&my_entity->dim, dim_sample);
172 INIT_WORK(&my_entity->dim.work, my_driver_do_dim_work);
/Linux-v4.19/drivers/infiniband/hw/hfi1/
Dtrace_tx.h315 unsigned long dim),
316 TP_ARGS(dd, ctxt, subctxt, dim),
320 __field(unsigned long, dim)
325 __entry->dim = dim;
331 __entry->dim
Dfile_ops.c307 unsigned long dim = from->nr_segs; in hfi1_write_iter() local
312 if (!iter_is_iovec(from) || !dim) in hfi1_write_iter()
315 trace_hfi1_sdma_request(fd->dd, fd->uctxt->ctxt, fd->subctxt, dim); in hfi1_write_iter()
320 while (dim) { in hfi1_write_iter()
326 dim, &count); in hfi1_write_iter()
331 dim -= count; in hfi1_write_iter()
Duser_sdma.h259 struct iovec *iovec, unsigned long dim,
/Linux-v4.19/Documentation/devicetree/bindings/leds/backlight/
Darcxcnn_bl.txt16 - arc,dim-freq: PWM mode frequence setting (bits [3:0] used)
Dpm8941-wled.txt13 - qcom,ext-gen: bool; use externally generated modulator signal to dim
/Linux-v4.19/drivers/media/i2c/
Dimx274.c538 #define IMX274_ROUND(dim, step, flags) \ argument
540 ? roundup((dim), (step)) \
542 ? rounddown((dim), (step)) \
543 : rounddown((dim) + (step) / 2, (step))))

12