Home
last modified time | relevance | path

Searched refs:dim (Results 1 - 25 of 131) sorted by relevance

123456

/kernel/linux/linux-5.10/lib/dim/
H A Drdma_dim.c6 #include <linux/dim.h>
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 in rdma_dim_step()
44 rdma_dim_decision(struct dim_stats *curr_stats, struct dim *dim) rdma_dim_decision() argument
76 rdma_dim(struct dim *dim, u64 completions) rdma_dim() argument
[all...]
H A Dnet_dim.c6 #include <linux/dim.h>
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 in net_dim_step()
131 net_dim_exit_parking(struct dim *dim) net_dim_exit_parking() argument
165 net_dim_decision(struct dim_stats *curr_stats, struct dim *dim) net_dim_decision() argument
218 net_dim(struct dim *dim, struct dim_sample end_sample) net_dim() argument
[all...]
H A Ddim.c6 #include <linux/dim.h>
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
40 dim_park_on_top(struct dim *dim) dim_park_on_top() argument
49 dim_park_tired(struct dim *dim) dim_park_tired() argument
[all...]
H A DMakefile5 obj-$(CONFIG_DIMLIB) += dim.o
7 dim-y := dim.o net_dim.o rdma_dim.o
/kernel/linux/linux-6.6/lib/dim/
H A Drdma_dim.c6 #include <linux/dim.h>
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 in rdma_dim_step()
44 rdma_dim_decision(struct dim_stats *curr_stats, struct dim *dim) rdma_dim_decision() argument
76 rdma_dim(struct dim *dim, u64 completions) rdma_dim() argument
[all...]
H A Dnet_dim.c6 #include <linux/dim.h>
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 in net_dim_step()
131 net_dim_exit_parking(struct dim *dim) net_dim_exit_parking() argument
165 net_dim_decision(struct dim_stats *curr_stats, struct dim *dim) net_dim_decision() argument
218 net_dim(struct dim *dim, struct dim_sample end_sample) net_dim() argument
[all...]
H A Ddim.c6 #include <linux/dim.h>
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
40 dim_park_on_top(struct dim *dim) dim_park_on_top() argument
49 dim_park_tired(struct dim *dim) dim_park_tired() argument
[all...]
H A DMakefile5 obj-$(CONFIG_DIMLIB) += dim.o
7 dim-y := dim.o net_dim.o rdma_dim.o
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_dim.c33 #include <linux/dim.h>
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 in mlx5e_rx_dim_work()
56 struct dim *dim = container_of(work, struct dim, work); mlx5e_tx_dim_work() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_dim.c33 #include <linux/dim.h>
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 in mlx5e_rx_dim_work()
56 struct dim *dim = container_of(work, struct dim, work); mlx5e_tx_dim_work() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_debugfs.c14 #include <linux/dim.h>
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 in debugfs_dim_read()
64 debugfs_dim_ring_init(struct dim *dim, int ring_idx, struct dentry *dd) debugfs_dim_ring_init() argument
[all...]
H A Dbnxt_dim.c10 #include <linux/dim.h>
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()
/kernel/linux/linux-6.6/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_debugfs.c14 #include <linux/dim.h>
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 in debugfs_dim_read()
64 debugfs_dim_ring_init(struct dim *dim, int ring_idx, struct dentry *dd) debugfs_dim_ring_init() argument
[all...]
H A Dbnxt_dim.c10 #include <linux/dim.h>
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()
/kernel/linux/linux-6.6/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;
74 TP_printk("netdev: %s Rx-Q: %d dim-state: %d dim-profile: %d dim
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Ddim.h86 * struct dim - Main structure for dynamic interrupt moderation (DIM).
94 * @priv: A pointer to the struct that points to dim
102 struct dim { struct
196 * @dim: DIM context
202 bool dim_on_top(struct dim *dim);
206 * @dim: DIM context
211 void dim_turn(struct dim *dim);
215 * @dim
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Ddim.h86 * struct dim - Main structure for dynamic interrupt moderation (DIM).
94 * @priv: A pointer to the struct that points to dim
102 struct dim { struct
196 * @dim: DIM context
202 bool dim_on_top(struct dim *dim);
206 * @dim: DIM context
211 void dim_turn(struct dim *dim);
215 * @dim
[all...]
/kernel/linux/linux-5.10/drivers/infiniband/core/
H A Dcq.c42 struct dim *dim = container_of(w, struct dim, work); in ib_cq_rdma_dim_work() local
43 struct ib_cq *cq = dim->priv; in ib_cq_rdma_dim_work()
45 u16 usec = rdma_dim_prof[dim->profile_ix].usec; in ib_cq_rdma_dim_work()
46 u16 comps = rdma_dim_prof[dim->profile_ix].comps; in ib_cq_rdma_dim_work()
48 dim->state = DIM_START_MEASURE; in ib_cq_rdma_dim_work()
56 struct dim *dim; in rdma_dim_init() local
62 dim in rdma_dim_init()
155 struct dim *dim = cq->dim; ib_poll_handler() local
[all...]
/kernel/linux/linux-6.6/drivers/infiniband/core/
H A Dcq.c41 struct dim *dim = container_of(w, struct dim, work); in ib_cq_rdma_dim_work() local
42 struct ib_cq *cq = dim->priv; in ib_cq_rdma_dim_work()
44 u16 usec = rdma_dim_prof[dim->profile_ix].usec; in ib_cq_rdma_dim_work()
45 u16 comps = rdma_dim_prof[dim->profile_ix].comps; in ib_cq_rdma_dim_work()
47 dim->state = DIM_START_MEASURE; in ib_cq_rdma_dim_work()
55 struct dim *dim; in rdma_dim_init() local
61 dim in rdma_dim_init()
154 struct dim *dim = cq->dim; ib_poll_handler() local
[all...]
/kernel/linux/linux-6.6/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()
132 return sysfs_emit(buf, "%d\n", dim); in dim_show()
142 int dim; in dim_store() local
146 dim = -1; in dim_store()
148 ret = kstrtoint(buf, 0, &dim); in dim_store()
152 if (dim > AW200XX_DIM_MAX) in dim_store()
158 if (dim > in dim_store()
179 ATTRIBUTE_GROUPS(dim); global() variable
186 int dim; aw200xx_brightness_set() local
[all...]
/kernel/linux/linux-5.10/net/netfilter/
H A Dxt_set.c41 .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...]
/kernel/linux/linux-6.6/net/netfilter/
H A Dxt_set.c41 .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...]
/kernel/linux/linux-5.10/tools/perf/
H A Dbuiltin-c2c.c414 struct c2c_dimension *dim; member
437 struct c2c_dimension *dim; in c2c_width() local
440 dim = c2c_fmt->dim; in c2c_width()
442 if (dim == &dim_symbol || dim == &dim_srcline) in c2c_width()
443 return symbol_width(hists, dim->se); in c2c_width()
445 return dim->se ? hists__col_len(hists, dim->se->se_width_idx) : in c2c_width()
446 c2c_fmt->dim in c2c_width()
454 struct c2c_dimension *dim; c2c_header() local
1660 struct c2c_dimension *dim = dimensions[i]; get_dimension() local
1673 struct c2c_dimension *dim = c2c_fmt->dim; c2c_se_entry() local
1690 struct c2c_dimension *dim = c2c_fmt->dim; c2c_se_cmp() local
1699 struct c2c_dimension *dim = c2c_fmt->dim; c2c_se_collapse() local
1708 struct c2c_dimension *dim = get_dimension(name); get_format() local
1754 struct c2c_dimension *dim; c2c_hists__init_sort() local
1901 struct c2c_dimension *dim; set_node_width() local
[all...]
/kernel/linux/linux-6.6/tools/perf/
H A Dbuiltin-c2c.c442 struct c2c_dimension *dim; member
465 struct c2c_dimension *dim; in c2c_width() local
468 dim = c2c_fmt->dim; in c2c_width()
470 if (dim == &dim_symbol || dim == &dim_srcline) in c2c_width()
471 return symbol_width(hists, dim->se); in c2c_width()
473 return dim->se ? hists__col_len(hists, dim->se->se_width_idx) : in c2c_width()
474 c2c_fmt->dim in c2c_width()
482 struct c2c_dimension *dim; c2c_header() local
1908 struct c2c_dimension *dim = dimensions[i]; get_dimension() local
1921 struct c2c_dimension *dim = c2c_fmt->dim; c2c_se_entry() local
1938 struct c2c_dimension *dim = c2c_fmt->dim; c2c_se_cmp() local
1947 struct c2c_dimension *dim = c2c_fmt->dim; c2c_se_collapse() local
1956 struct c2c_dimension *dim = get_dimension(name); get_format() local
2002 struct c2c_dimension *dim; c2c_hists__init_sort() local
2171 struct c2c_dimension *dim; set_node_width() local
[all...]
/kernel/linux/linux-5.10/fs/hmdfs/
H A Dinode_merge.c26 struct hmdfs_dentry_info_merge *dim = hmdfs_dm(dentry); in hmdfs_get_fst_lo_d() local
30 mutex_lock(&dim->comrade_list_lock); in hmdfs_get_fst_lo_d()
31 comrade = list_first_entry_or_null(&dim->comrade_list, in hmdfs_get_fst_lo_d()
35 mutex_unlock(&dim->comrade_list_lock); in hmdfs_get_fst_lo_d()
41 struct hmdfs_dentry_info_merge *dim = hmdfs_dm(dentry); in hmdfs_get_lo_d() local
45 mutex_lock(&dim->comrade_list_lock); in hmdfs_get_lo_d()
46 list_for_each_entry(comrade, &dim->comrade_list, list) { in hmdfs_get_lo_d()
52 mutex_unlock(&dim->comrade_list_lock); in hmdfs_get_lo_d()
88 struct hmdfs_dentry_info_merge *dim = hmdfs_dm(dentry); in get_num_comrades() local
91 mutex_lock(&dim in get_num_comrades()
1130 struct hmdfs_dentry_info_merge *dim = hmdfs_dm(dentry); do_rmdir_merge() local
1178 struct hmdfs_dentry_info_merge *dim = hmdfs_dm(dentry); do_unlink_merge() local
1243 struct hmdfs_dentry_info_merge *dim = hmdfs_dm(old_dentry); do_rename_merge() local
[all...]

Completed in 15 milliseconds

123456