/Linux-v5.4/lib/dim/ |
D | net_dim.c | 104 static int net_dim_step(struct dim *dim) in net_dim_step() argument 106 if (dim->tired == (NET_DIM_PARAMS_NUM_PROFILES * 2)) in net_dim_step() 109 switch (dim->tune_state) { in net_dim_step() 114 if (dim->profile_ix == (NET_DIM_PARAMS_NUM_PROFILES - 1)) in net_dim_step() 116 dim->profile_ix++; in net_dim_step() 117 dim->steps_right++; in net_dim_step() 120 if (dim->profile_ix == 0) in net_dim_step() 122 dim->profile_ix--; in net_dim_step() 123 dim->steps_left++; in net_dim_step() 127 dim->tired++; in net_dim_step() [all …]
|
D | rdma_dim.c | 8 static int rdma_dim_step(struct dim *dim) in rdma_dim_step() argument 10 if (dim->tune_state == DIM_GOING_RIGHT) { in rdma_dim_step() 11 if (dim->profile_ix == (RDMA_DIM_PARAMS_NUM_PROFILES - 1)) in rdma_dim_step() 13 dim->profile_ix++; in rdma_dim_step() 14 dim->steps_right++; in rdma_dim_step() 16 if (dim->tune_state == DIM_GOING_LEFT) { in rdma_dim_step() 17 if (dim->profile_ix == 0) in rdma_dim_step() 19 dim->profile_ix--; in rdma_dim_step() 20 dim->steps_left++; in rdma_dim_step() 44 static bool rdma_dim_decision(struct dim_stats *curr_stats, struct dim *dim) in rdma_dim_decision() argument [all …]
|
D | dim.c | 8 bool dim_on_top(struct dim *dim) in dim_on_top() argument 10 switch (dim->tune_state) { in dim_on_top() 15 return (dim->steps_left > 1) && (dim->steps_right == 1); in dim_on_top() 17 return (dim->steps_right > 1) && (dim->steps_left == 1); in dim_on_top() 22 void dim_turn(struct dim *dim) in dim_turn() argument 24 switch (dim->tune_state) { in dim_turn() 29 dim->tune_state = DIM_GOING_LEFT; in dim_turn() 30 dim->steps_left = 0; in dim_turn() 33 dim->tune_state = DIM_GOING_RIGHT; in dim_turn() 34 dim->steps_right = 0; in dim_turn() [all …]
|
D | Makefile | 5 obj-$(CONFIG_DIMLIB) += dim.o 7 dim-y := dim.o net_dim.o rdma_dim.o
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_dim.c | 37 mlx5e_complete_dim_work(struct dim *dim, struct dim_cq_moder moder, in mlx5e_complete_dim_work() argument 41 dim->state = DIM_START_MEASURE; in mlx5e_complete_dim_work() 46 struct dim *dim = container_of(work, struct 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 dim *dim = container_of(work, struct 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()
|
D | en_txrx.c | 59 net_dim(&sq->dim, dim_sample); in mlx5e_handle_tx_dim() 71 net_dim(&rq->dim, dim_sample); in mlx5e_handle_rx_dim()
|
/Linux-v5.4/drivers/infiniband/core/ |
D | cq.c | 36 struct dim *dim = container_of(w, struct dim, work); in ib_cq_rdma_dim_work() local 37 struct ib_cq *cq = dim->priv; in ib_cq_rdma_dim_work() 39 u16 usec = rdma_dim_prof[dim->profile_ix].usec; in ib_cq_rdma_dim_work() 40 u16 comps = rdma_dim_prof[dim->profile_ix].comps; in ib_cq_rdma_dim_work() 42 dim->state = DIM_START_MEASURE; in ib_cq_rdma_dim_work() 49 struct dim *dim; in rdma_dim_init() local 55 dim = kzalloc(sizeof(struct dim), GFP_KERNEL); in rdma_dim_init() 56 if (!dim) in rdma_dim_init() 59 dim->state = DIM_START_MEASURE; in rdma_dim_init() 60 dim->tune_state = DIM_GOING_RIGHT; in rdma_dim_init() [all …]
|
/Linux-v5.4/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_debugfs.c | 24 struct 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 void debugfs_dim_ring_init(struct dim *dim, int ring_idx, in debugfs_dim_ring_init() argument [all …]
|
D | bnxt_dim.c | 16 struct dim *dim = container_of(work, struct dim, work); in bnxt_dim_work() local 17 struct bnxt_cp_ring_info *cpr = container_of(dim, in bnxt_dim_work() 19 dim); in bnxt_dim_work() 24 net_dim_get_rx_moderation(dim->mode, dim->profile_ix); in bnxt_dim_work() 30 dim->state = DIM_START_MEASURE; in bnxt_dim_work()
|
/Linux-v5.4/include/linux/ |
D | dim.h | 93 struct dim { struct 199 bool dim_on_top(struct dim *dim); 208 void dim_turn(struct dim *dim); 217 void dim_park_on_top(struct dim *dim); 226 void dim_park_tired(struct dim *dim); 310 void net_dim(struct dim *dim, struct dim_sample end_sample); 331 void rdma_dim(struct dim *dim, u64 completions);
|
/Linux-v5.4/net/netfilter/ |
D | xt_set.c | 41 .dim = d, \ 58 ADT_OPT(opt, xt_family(par), info->match_set.u.compat.dim, in set_match_v0() 72 info->u.compat.dim = IPSET_DIM_ZERO; in compat_flags() 76 info->u.compat.dim++; in compat_flags() 78 info->u.compat.flags |= (1 << info->u.compat.dim); in compat_flags() 122 ADT_OPT(opt, xt_family(par), info->match_set.dim, in set_match_v1() 146 if (info->match_set.dim > IPSET_DIM_MAX) { in set_match_v1_checkentry() 170 ADT_OPT(opt, xt_family(par), info->match_set.dim, in set_match_v3() 193 ADT_OPT(opt, xt_family(par), info->match_set.dim, in set_match_v4() 216 ADT_OPT(add_opt, xt_family(par), info->add_set.u.compat.dim, in set_target_v0() [all …]
|
/Linux-v5.4/tools/perf/ |
D | builtin-c2c.c | 410 struct c2c_dimension *dim; member 433 struct c2c_dimension *dim; in c2c_width() local 436 dim = c2c_fmt->dim; in c2c_width() 438 if (dim == &dim_symbol || dim == &dim_srcline) in c2c_width() 439 return symbol_width(hists, dim->se); in c2c_width() 441 return dim->se ? hists__col_len(hists, dim->se->se_width_idx) : in c2c_width() 442 c2c_fmt->dim->width; in c2c_width() 450 struct c2c_dimension *dim; in c2c_header() local 455 dim = c2c_fmt->dim; in c2c_header() 457 if (dim->se) { in c2c_header() [all …]
|
/Linux-v5.4/Documentation/networking/ |
D | net_dim.txt | 95 Net DIM API exposes the main function net_dim(struct dim *dim, 99 data structures: struct dim and struct dim_sample. Struct dim 104 data sample stored in struct dim in order to decide on the algorithm's next 113 struct dim to the net_dim() function call. It is advised for each entity 114 using Net DIM to hold a struct dim as part of its data structure and use it 135 #include <linux/dim.h> 140 /* Get struct dim from struct work_struct */ 141 struct dim *dim = container_of(work, struct dim, 147 dim->state = DIM_START_MEASURE; 163 net_dim(&my_entity->dim, dim_sample); [all …]
|
/Linux-v5.4/drivers/leds/ |
D | leds-lp3944.c | 101 static int lp3944_dim_set_period(struct i2c_client *client, u8 dim, u16 period) in lp3944_dim_set_period() argument 107 if (dim == LP3944_DIM0) in lp3944_dim_set_period() 109 else if (dim == LP3944_DIM1) in lp3944_dim_set_period() 132 static int lp3944_dim_set_dutycycle(struct i2c_client *client, u8 dim, in lp3944_dim_set_dutycycle() argument 139 if (dim == LP3944_DIM0) in lp3944_dim_set_dutycycle() 141 else if (dim == LP3944_DIM1) in lp3944_dim_set_dutycycle()
|
/Linux-v5.4/drivers/net/ethernet/broadcom/ |
D | bcmsysport.c | 603 ec->use_adaptive_rx_coalesce = priv->dim.use_dim; in bcm_sysport_get_coalesce() 639 if (ec->use_adaptive_rx_coalesce && !priv->dim.use_dim) { in bcm_sysport_set_coalesce() 640 moder = net_dim_get_def_rx_moderation(priv->dim.dim.mode); in bcm_sysport_set_coalesce() 645 priv->dim.use_dim = ec->use_adaptive_rx_coalesce; in bcm_sysport_set_coalesce() 843 priv->dim.packets = processed; in bcm_sysport_desc_rx() 844 priv->dim.bytes = processed_bytes; in bcm_sysport_desc_rx() 1017 if (priv->dim.use_dim) { in bcm_sysport_poll() 1018 dim_update_sample(priv->dim.event_ctr, priv->dim.packets, in bcm_sysport_poll() 1019 priv->dim.bytes, &dim_sample); in bcm_sysport_poll() 1020 net_dim(&priv->dim.dim, dim_sample); in bcm_sysport_poll() [all …]
|
D | bcmsysport.h | 705 struct dim dim; member 754 struct bcm_sysport_net_dim dim; member
|
/Linux-v5.4/drivers/net/ethernet/broadcom/genet/ |
D | bcmgenet.c | 617 ec->use_adaptive_rx_coalesce |= ring->dim.use_dim; in bcmgenet_get_coalesce() 620 ec->use_adaptive_rx_coalesce |= ring->dim.use_dim; in bcmgenet_get_coalesce() 651 if (ec->use_adaptive_rx_coalesce && !ring->dim.use_dim) { in bcmgenet_set_ring_rx_coalesce() 652 moder = net_dim_get_def_rx_moderation(ring->dim.dim.mode); in bcmgenet_set_ring_rx_coalesce() 657 ring->dim.use_dim = ec->use_adaptive_rx_coalesce; in bcmgenet_set_ring_rx_coalesce() 1888 ring->dim.bytes = bytes_processed; in bcmgenet_desc_rx() 1889 ring->dim.packets = rxpktprocessed; in bcmgenet_desc_rx() 1909 if (ring->dim.use_dim) { in bcmgenet_rx_poll() 1910 dim_update_sample(ring->dim.event_ctr, ring->dim.packets, in bcmgenet_rx_poll() 1911 ring->dim.bytes, &dim_sample); in bcmgenet_rx_poll() [all …]
|
D | bcmgenet.h | 582 struct dim dim; member 599 struct bcmgenet_net_dim dim; member
|
/Linux-v5.4/include/uapi/linux/netfilter/ |
D | xt_set.h | 23 __u8 dim; member 43 __u8 dim; member
|
/Linux-v5.4/drivers/media/platform/vicodec/ |
D | codec-fwht.h | 96 #define vic_round_dim(dim, div) (round_up((dim) / (div), 8) * (div)) argument
|
/Linux-v5.4/net/sched/ |
D | em_ipset.c | 81 opt.dim = set->dim; in em_ipset_match()
|
/Linux-v5.4/Documentation/ABI/testing/ |
D | sysfs-class-backlight-driver-adp8870 | 25 Control the dim brightness for <ambient light zone> 28 This file will also show the dim brightness level stored for
|
/Linux-v5.4/drivers/infiniband/hw/qib/ |
D | qib_user_sdma.h | 43 unsigned long dim);
|
/Linux-v5.4/drivers/net/ethernet/amazon/ena/ |
D | ena_netdev.h | 157 struct dim dim; member
|
/Linux-v5.4/drivers/infiniband/hw/hfi1/ |
D | trace_tx.h | 323 unsigned long dim), 324 TP_ARGS(dd, ctxt, subctxt, dim), 328 __field(unsigned long, dim) 333 __entry->dim = dim; 339 __entry->dim
|