Home
last modified time | relevance | path

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

1234

/openbmc/linux/lib/dim/
H A Drdma_dim.c8 static int rdma_dim_step(struct dim *dim) in rdma_dim_step() argument
13 dim->profile_ix++; in rdma_dim_step()
14 dim->steps_right++; 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
61 dim_turn(dim); in rdma_dim_decision()
66 dim_turn(dim); in rdma_dim_decision()
76 void rdma_dim(struct dim *dim, u64 completions) in rdma_dim() argument
[all …]
H A Dnet_dim.c104 static int net_dim_step(struct dim *dim) in net_dim_step() argument
116 dim->profile_ix++; 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()
131 static void net_dim_exit_parking(struct dim *dim) in net_dim_exit_parking() argument
134 net_dim_step(dim); in net_dim_exit_parking()
181 dim->tired--; in net_dim_decision()
182 if (!dim->tired) in net_dim_decision()
191 dim_turn(dim); in net_dim_decision()
[all …]
H A Ddim.c8 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
30 dim->steps_left = 0; in dim_turn()
34 dim->steps_right = 0; in dim_turn()
40 void dim_park_on_top(struct dim *dim) in dim_park_on_top() argument
42 dim->steps_right = 0; in dim_park_on_top()
43 dim->steps_left = 0; in dim_park_on_top()
[all …]
H A DMakefile5 obj-$(CONFIG_DIMLIB) += dim.o
7 dim-y := dim.o net_dim.o rdma_dim.o
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_dim.c37 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()
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_debugfs.c24 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 …]
H A Dbnxt_dim.c16 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()
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_trace.h64 TP_PROTO(struct ice_q_vector *q_vector, struct dim *dim),
65 TP_ARGS(q_vector, dim),
67 __field(struct dim *, dim)
71 __entry->dim = dim;
86 TP_PROTO(struct ice_q_vector *q_vector, struct dim *dim),
87 TP_ARGS(q_vector, dim)
91 TP_PROTO(struct ice_q_vector *q_vector, struct dim *dim),
94 __field(struct dim *, dim)
98 __entry->dim = dim;
113 TP_PROTO(struct ice_q_vector *q_vector, struct dim *dim),
[all …]
/openbmc/linux/include/linux/
H A Ddim.h102 struct dim { struct
202 bool dim_on_top(struct dim *dim);
211 void dim_turn(struct dim *dim);
220 void dim_park_on_top(struct dim *dim);
229 void dim_park_tired(struct dim *dim);
314 void net_dim(struct dim *dim, struct dim_sample end_sample);
335 void rdma_dim(struct dim *dim, u64 completions);
/openbmc/linux/drivers/infiniband/core/
H A Dcq.c41 struct dim *dim = container_of(w, struct dim, work); in ib_cq_rdma_dim_work() local
55 struct dim *dim; in rdma_dim_init() local
61 dim = kzalloc(sizeof(struct dim), GFP_KERNEL); in rdma_dim_init()
62 if (!dim) in rdma_dim_init()
68 dim->priv = cq; in rdma_dim_init()
69 cq->dim = dim; in rdma_dim_init()
76 if (!cq->dim) in rdma_dim_destroy()
80 kfree(cq->dim); in rdma_dim_destroy()
154 struct dim *dim = cq->dim; in ib_poll_handler() local
166 if (dim) in ib_poll_handler()
[all …]
/openbmc/linux/drivers/leds/
H A Dleds-aw200xx.c108 int dim; member
127 int dim = led->dim; in dim_show() local
129 if (dim < 0) in dim_show()
142 int dim; in dim_store() local
146 dim = -1; in dim_store()
158 if (dim >= 0) { in dim_store()
161 dim); in dim_store()
166 led->dim = dim; in dim_store()
186 int dim; in aw200xx_brightness_set() local
194 dim = led->dim; in aw200xx_brightness_set()
[all …]
H A Dleds-lp3944.c101 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()
/openbmc/qemu/scripts/simplebench/
H A Dresults_to_text.py49 dim = None
53 if dim is None:
54 dim = res['dimension']
56 assert dim == res['dimension']
58 assert dim in ('iops', 'seconds')
60 return dim
67 dim = results_dimension(results)
H A Dsimplebench.py88 dim = 'iops'
92 dim = 'seconds'
93 result['dimension'] = dim
94 result['average'] = statistics.mean(r[dim] for r in succeeded)
98 result['stdev'] = statistics.stdev(r[dim] for r in succeeded)
/openbmc/linux/net/netfilter/
H A Dxt_set.c41 .dim = d, \
72 info->u.compat.dim = IPSET_DIM_ZERO; in compat_flags()
76 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()
331 if (info->add_set.dim > IPSET_DIM_MAX || in set_target_v1_checkentry()
332 info->del_set.dim > IPSET_DIM_MAX) { in set_target_v1_checkentry()
486 if (info->add_set.dim > IPSET_DIM_MAX || in set_target_v3_checkentry()
487 info->del_set.dim > IPSET_DIM_MAX || in set_target_v3_checkentry()
[all …]
/openbmc/linux/Documentation/networking/
H A Dnet_dim.rst92 data structures: :c:type:`struct dim <dim>` and
93 :c:type:`struct dim_sample <dim_sample>`. :c:type:`struct dim <dim>`
98 which will be compared to the data sample stored in :c:type:`struct dim <dim>`
108 :c:type:`struct dim <dim>` to the net_dim() function call. It is advised for
109 each entity using Net DIM to hold a :c:type:`struct dim <dim>` as part of its
131 #include <linux/dim.h>
136 /* Get struct dim from struct work_struct */
137 struct dim *dim = container_of(work, struct dim,
143 dim->state = DIM_START_MEASURE;
159 net_dim(&my_entity->dim, dim_sample);
[all …]
/openbmc/linux/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_1.0/
H A Dia_css_sdis.host.c139 hor_num_3a = dvs_binary->dis.coef.dim.width; in ia_css_get_isp_dis_coefficients()
140 ver_num_3a = dvs_binary->dis.coef.dim.height; in ia_css_get_isp_dis_coefficients()
190 dis->grid.dim.width = in ia_css_sdis_init_info()
192 dis->grid.dim.height = in ia_css_sdis_init_info()
199 dis->coef.dim.width = in ia_css_sdis_init_info()
202 dis->coef.dim.height = in ia_css_sdis_init_info()
210 dis->proj.dim.width = in ia_css_sdis_init_info()
212 dis->proj.dim.height = in ia_css_sdis_init_info()
215 dis->proj.dim.width = in ia_css_sdis_init_info()
218 dis->proj.dim.height = in ia_css_sdis_init_info()
/openbmc/qemu/hw/alpha/
H A Dtyphoon.c26 uint64_t dim[4]; member
114 ret = s->cchip.dim[0]; in cchip_read()
118 ret = s->cchip.dim[1]; in cchip_read()
122 ret = s->cchip.dim[0] & s->cchip.drir; in cchip_read()
126 ret = s->cchip.dim[1] & s->cchip.drir; in cchip_read()
163 ret = s->cchip.dim[2]; in cchip_read()
167 ret = s->cchip.dim[3]; in cchip_read()
377 s->cchip.dim[0] = val; in cchip_write()
382 s->cchip.dim[1] = val; in cchip_write()
419 s->cchip.dim[2] = val; in cchip_write()
[all …]
/openbmc/linux/tools/perf/
H A Dbuiltin-c2c.c468 dim = c2c_fmt->dim; in c2c_width()
470 if (dim == &dim_symbol || dim == &dim_srcline) in c2c_width()
487 dim = c2c_fmt->dim; in c2c_header()
1900 return c2c_a->dim == c2c_b->dim; in fmt_equal()
1921 struct c2c_dimension *dim = c2c_fmt->dim; in c2c_se_entry() local
1938 struct c2c_dimension *dim = c2c_fmt->dim; in c2c_se_cmp() local
1947 struct c2c_dimension *dim = c2c_fmt->dim; in c2c_se_collapse() local
1967 c2c_fmt->dim = dim; in get_format()
1973 fmt->cmp = dim->se ? c2c_se_cmp : dim->cmp; in get_format()
1975 fmt->color = dim->se ? NULL : dim->color; in get_format()
[all …]
/openbmc/linux/Documentation/ABI/testing/
H A Dsysfs-class-led-driver-aw200xx1 What: /sys/class/leds/<led>/dim
4 "auto", the dim will be calculated according to the
/openbmc/linux/drivers/net/ethernet/broadcom/
H A Dbcmsysport.c675 moder = net_dim_get_def_rx_moderation(priv->dim.dim.mode); in bcm_sysport_set_coalesce()
1054 dim_update_sample(priv->dim.event_ctr, priv->dim.packets, in bcm_sysport_poll()
1056 net_dim(&priv->dim.dim, dim_sample); in bcm_sysport_poll()
1125 struct dim *dim = container_of(work, struct dim, work); in bcm_sysport_dim_work() local
1127 container_of(dim, struct bcm_sysport_net_dim, dim); in bcm_sysport_dim_work()
1484 struct bcm_sysport_net_dim *dim = &priv->dim; in bcm_sysport_init_dim() local
1486 INIT_WORK(&dim->dim.work, cb); in bcm_sysport_init_dim()
1487 dim->dim.mode = DIM_CQ_PERIOD_MODE_START_FROM_EQE; in bcm_sysport_init_dim()
1495 struct bcm_sysport_net_dim *dim = &priv->dim; in bcm_sysport_init_rx_coalesce() local
1504 moder = net_dim_get_def_rx_moderation(dim->dim.mode); in bcm_sysport_init_rx_coalesce()
[all …]
/openbmc/linux/include/uapi/linux/netfilter/
H A Dxt_set.h23 __u8 dim; member
43 __u8 dim; member
/openbmc/linux/drivers/media/test-drivers/vicodec/
H A Dcodec-fwht.h64 #define vic_round_dim(dim, div) (round_up((dim) / (div), 8) * (div)) argument
/openbmc/linux/drivers/soc/fsl/dpio/
H A Ddpio-service.c34 struct dim rx_dim;
114 struct dim *dim = container_of(w, struct dim, work); in dpaa2_io_dim_work() local
116 net_dim_get_rx_moderation(dim->mode, dim->profile_ix); in dpaa2_io_dim_work()
117 struct dpaa2_io *d = container_of(dim, struct dpaa2_io, rx_dim); in dpaa2_io_dim_work()
120 dim->state = DIM_START_MEASURE; in dpaa2_io_dim_work()
/openbmc/linux/drivers/net/ethernet/broadcom/genet/
H A Dbcmgenet.c2410 net_dim(&ring->dim.dim, dim_sample); in bcmgenet_rx_poll()
2418 struct dim *dim = container_of(work, struct dim, work); in bcmgenet_dim_work() local
2420 container_of(dim, struct bcmgenet_net_dim, dim); in bcmgenet_dim_work()
2424 net_dim_get_rx_moderation(dim->mode, dim->profile_ix); in bcmgenet_dim_work()
2604 struct bcmgenet_net_dim *dim = &ring->dim; in bcmgenet_init_dim() local
2606 INIT_WORK(&dim->dim.work, cb); in bcmgenet_init_dim()
2607 dim->dim.mode = DIM_CQ_PERIOD_MODE_START_FROM_EQE; in bcmgenet_init_dim()
2615 struct bcmgenet_net_dim *dim = &ring->dim; in bcmgenet_init_rx_coalesce() local
2624 moder = net_dim_get_def_rx_moderation(dim->dim.mode); in bcmgenet_init_rx_coalesce()
2886 cancel_work_sync(&ring->dim.dim.work); in bcmgenet_disable_rx_napi()
[all …]

1234