Home
last modified time | relevance | path

Searched full:dim (Results 1 – 25 of 76) sorted by relevance

1234

/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_dim.c34 #include "en/dim.h"
37 mlx5e_complete_dim_work(struct dim *dim, struct dim_cq_moder moder, in mlx5e_complete_dim_work() argument
42 dim->state = DIM_START_MEASURE; in mlx5e_complete_dim_work()
47 struct dim *dim = container_of(work, struct dim, work); in mlx5e_rx_dim_work() local
48 struct mlx5e_rq *rq = dim->priv; in mlx5e_rx_dim_work()
50 net_dim_get_rx_moderation(dim->mode, dim->profile_ix); in mlx5e_rx_dim_work()
52 mlx5e_complete_dim_work(dim, cur_moder, rq->mdev, &rq->cq.mcq); in mlx5e_rx_dim_work()
57 struct dim *dim = container_of(work, struct dim, work); in mlx5e_tx_dim_work() local
58 struct mlx5e_txqsq *sq = dim->priv; in mlx5e_tx_dim_work()
60 net_dim_get_tx_moderation(dim->mode, dim->profile_ix); in mlx5e_tx_dim_work()
[all …]
/linux/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->profile_ix--; in rdma_dim_step()
20 dim->steps_left++; in rdma_dim_step()
[all …]
H A DMakefile2 # DIM Dynamic Interrupt Moderation library
7 dimlib-y := dim.o net_dim.o rdma_dim.o
/linux/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->steps_left, in debugfs_dim_read()
46 dim->tired); in debugfs_dim_read()
[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()
/linux/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 …]
/linux/drivers/leds/
H A Dleds-lp3944.c12 * This helper chip can drive up to 8 leds, with two programmable DIM modes;
16 * The DIM modes are used to set _blink_ patterns for leds, the pattern is
95 * lp3944_dim_set_period() - Set the period for DIM status
98 * @dim: either LP3944_DIM0 or LP3944_DIM1
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()
126 * lp3944_dim_set_dutycycle - Set the duty cycle for DIM status
129 * @dim: either LP3944_DIM0 or LP3944_DIM1
132 static int lp3944_dim_set_dutycycle(struct i2c_client *client, u8 dim, in lp3944_dim_set_dutycycle() argument
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dchannels.c6 #include "en/dim.h"
95 /* If dim is enabled for the channel, reset the dim state so the in mlx5e_channels_rx_toggle_dim()
101 if (chs->c[i]->rq.dim) { in mlx5e_channels_rx_toggle_dim()
122 /* If dim is enabled for the channel, reset the dim in mlx5e_channels_tx_toggle_dim()
129 if (!chs->c[i]->sq[tc].dim) in mlx5e_channels_tx_toggle_dim()
H A Ddim.h7 #include <linux/dim.h>
16 /* convert a boolean value for cqe mode to appropriate dim constant
/linux/tools/perf/util/
H A Dsort.c2573 #define DIM(d, n, func) [d] = { .name = n, .entry = &(func) } macro
2576 DIM(SORT_PID, "pid", sort_thread),
2577 DIM(SORT_TGID, "tgid", sort_tgid),
2578 DIM(SORT_COMM, "comm", sort_comm),
2579 DIM(SORT_DSO, "dso", sort_dso),
2580 DIM(SORT_SYM, "symbol", sort_sym),
2581 DIM(SORT_PARENT, "parent", sort_parent),
2582 DIM(SORT_CPU, "cpu", sort_cpu),
2583 DIM(SORT_SOCKET, "socket", sort_socket),
2584 DIM(SORT_SRCLINE, "srcline", sort_srcline),
[all …]
/linux/tools/perf/
H A Dbuiltin-c2c.c427 struct c2c_dimension *dim; member
450 struct c2c_dimension *dim; in c2c_width() local
453 dim = c2c_fmt->dim; in c2c_width()
455 if (dim == &dim_symbol || dim == &dim_srcline) in c2c_width()
456 return symbol_width(hists, dim->se); in c2c_width()
458 return dim->se ? hists__col_len(hists, dim->se->se_width_idx) : in c2c_width()
459 c2c_fmt->dim->width; in c2c_width()
467 struct c2c_dimension *dim; in c2c_header() local
472 dim = c2c_fmt->dim; in c2c_header()
474 if (dim->se) { in c2c_header()
[all …]
H A Dbuiltin-kvm.c100 struct kvm_dimension *dim; member
341 return kvm_fmt->dim->width; in fmt_width()
349 struct kvm_dimension *dim; in fmt_header() local
353 dim = kvm_fmt->dim; in fmt_header()
355 return scnprintf(hpp->buf, hpp->size, "%*s", width, dim->header); in fmt_header()
363 return kvm_fmt_a->dim == kvm_fmt_b->dim; in fmt_equal()
388 struct kvm_dimension *dim = get_dimension(name); in get_format() local
392 if (!dim) in get_format()
399 kvm_fmt->dim = dim; in get_format()
404 fmt->cmp = dim->cmp; in get_format()
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-class-led-driver-aw200xx1 What: /sys/class/leds/<led>/dim
3 Description: 64-level DIM current. If you write a negative value or
4 "auto", the dim will be calculated according to the
/linux/drivers/staging/most/dim2/
H A Derrors.h13 * MOST DIM errors.
31 /** DIM API is called while DIM is not initialized successfully */
/linux/drivers/net/ethernet/broadcom/
H A Dbcmsysport.c603 ec->use_adaptive_rx_coalesce = priv->dim.use_dim; in bcm_sysport_get_coalesce()
640 if (ec->use_adaptive_rx_coalesce && !priv->dim.use_dim) { in bcm_sysport_set_coalesce()
641 moder = net_dim_get_def_rx_moderation(priv->dim.dim.mode); in bcm_sysport_set_coalesce()
646 priv->dim.use_dim = ec->use_adaptive_rx_coalesce; in bcm_sysport_set_coalesce()
845 priv->dim.packets = processed; in bcm_sysport_desc_rx()
846 priv->dim.bytes = processed_bytes; in bcm_sysport_desc_rx()
1019 if (priv->dim.use_dim) { in bcm_sysport_poll()
1020 dim_update_sample(priv->dim.event_ctr, priv->dim.packets, in bcm_sysport_poll()
1021 priv->dim.bytes, &dim_sample); in bcm_sysport_poll()
1022 net_dim(&priv->dim.dim, &dim_sample); in bcm_sysport_poll()
[all …]
/linux/Documentation/leds/
H A Dleds-lp3944.rst23 DIM modes; it could even be used as a gpio expander but this driver assumes it
26 The DIM modes are used to set _blink_ patterns for leds, the pattern is
/linux/include/uapi/linux/netfilter/
H A Dxt_set.h23 __u8 dim; member
43 __u8 dim; member
/linux/drivers/net/ethernet/broadcom/genet/
H A Dbcmgenet.c846 ec->use_adaptive_rx_coalesce |= ring->dim.use_dim; in bcmgenet_get_coalesce()
878 if (ec->use_adaptive_rx_coalesce && !ring->dim.use_dim) { in bcmgenet_set_ring_rx_coalesce()
879 moder = net_dim_get_def_rx_moderation(ring->dim.dim.mode); in bcmgenet_set_ring_rx_coalesce()
884 ring->dim.use_dim = ec->use_adaptive_rx_coalesce; in bcmgenet_set_ring_rx_coalesce()
2459 ring->dim.bytes = bytes_processed; in bcmgenet_desc_rx()
2460 ring->dim.packets = rxpktprocessed; in bcmgenet_desc_rx()
2478 if (ring->dim.use_dim) { in bcmgenet_rx_poll()
2479 dim_update_sample(ring->dim.event_ctr, ring->dim.packets, in bcmgenet_rx_poll()
2480 ring->dim.bytes, &dim_sample); in bcmgenet_rx_poll()
2481 net_dim(&ring->dim.dim, &dim_sample); in bcmgenet_rx_poll()
[all …]
/linux/drivers/net/ethernet/mediatek/
H A Dmtk_eth_soc.h19 #include <linux/dim.h>
1254 * @dim_lock: Make sure that Net DIM operations are atomic
1274 * @rx_events: Net DIM RX event counter
1275 * @rx_packets: Net DIM RX packet counter
1276 * @rx_bytes: Net DIM RX byte counter
1277 * @rx_dim: Net DIM RX context
1278 * @tx_events: Net DIM TX event counter
1279 * @tx_packets: Net DIM TX packet counter
1280 * @tx_bytes: Net DIM TX byte counter
1281 * @tx_dim: Net DIM TX context
[all …]
/linux/drivers/video/backlight/
H A Darcxcnn_bl.c60 #define ARCXCNN_ILED_DIM_PWM 0x00 /* config dim mode pwm */
61 #define ARCXCNN_ILED_DIM_INT 0x04 /* config dim mode internal */
199 ret = of_property_read_u32(node, "arc,dim-freq", &prog_val); in arcxcnn_parse_dt()
279 /* insure dim mode is not default pwm */ in arcxcnn_probe()
/linux/drivers/net/ethernet/intel/idpf/
H A Didpf_txrx.c3905 * idpf_update_dim_sample - Update dim sample with packets and bytes
3907 * @dim_sample: dim sample to update
3908 * @dim: dim instance structure
3912 * Update the dim sample with the packets and bytes which are passed to this
3913 * function. Set the dim state appropriately if the dim settings gets stale.
3917 struct dim *dim, u64 packets, u64 bytes) in idpf_update_dim_sample() argument
3922 /* if dim settings get stale, like when not updated for 1 second or in idpf_update_dim_sample()
3926 if (ktime_ms_delta(dim_sample->time, dim->start_sample.time) >= HZ) in idpf_update_dim_sample()
3927 dim->state = DIM_START_MEASURE; in idpf_update_dim_sample()
3931 * idpf_net_dim - Update net DIM algorithm
[all …]
/linux/net/sched/
H A Dem_ipset.c81 opt.dim = set->dim; in em_ipset_match()
/linux/drivers/media/test-drivers/vicodec/
H A Dcodec-fwht.h64 #define vic_round_dim(dim, div) (round_up((dim) / (div), 8) * (div)) argument
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_txrx.h126 struct dim dim; member
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_common.c448 * since dim does not need accurate event_ctr to calculate, in nfp_net_irq_rxtx()
449 * we just use this counter for both rx and tx dim. in nfp_net_irq_rxtx()
1166 struct dim *dim; in nfp_net_rx_dim_work() local
1168 dim = container_of(work, struct dim, work); in nfp_net_rx_dim_work()
1169 moder = net_dim_get_rx_moderation(dim->mode, dim->profile_ix); in nfp_net_rx_dim_work()
1170 r_vec = container_of(dim, struct nfp_net_r_vector, rx_dim); in nfp_net_rx_dim_work()
1187 dim->state = DIM_START_MEASURE; in nfp_net_rx_dim_work()
1196 struct dim *dim; in nfp_net_tx_dim_work() local
1198 dim = container_of(work, struct dim, work); in nfp_net_tx_dim_work()
1199 moder = net_dim_get_tx_moderation(dim->mode, dim->profile_ix); in nfp_net_tx_dim_work()
[all …]

1234