/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_dim.c | 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() 62 mlx5e_complete_dim_work(dim, cur_moder, sq->cq.mdev, &sq->cq.mcq); in mlx5e_tx_dim_work() [all …]
|
/linux/lib/dim/ |
H A 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 …]
|
H A D | Makefile | 7 dimlib-y := dim.o net_dim.o rdma_dim.o
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_trace.h | 64 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; 77 __entry->dim->state, 78 __entry->dim->profile_ix, 79 __entry->dim->tune_state, 80 __entry->dim->steps_right, 81 __entry->dim->steps_left, 82 __entry->dim->tired) [all …]
|
H A D | ice_txrx.h | 448 struct dim dim; /* data for net_dim algorithm */ member
|
/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A 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 …]
|
H A 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/drivers/infiniband/core/ |
H A D | cq.c | 41 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 = kzalloc(sizeof(struct dim), GFP_KERNEL); in rdma_dim_init() 62 if (!dim) in rdma_dim_init() 65 dim->state = DIM_START_MEASURE; in rdma_dim_init() 66 dim->tune_state = DIM_GOING_RIGHT; in rdma_dim_init() [all …]
|
/linux/drivers/leds/ |
H A D | leds-aw200xx.c | 111 int dim; member 131 int dim = led->dim; in dim_show() local 133 if (dim < 0) in dim_show() 136 return sysfs_emit(buf, "%d\n", dim); in dim_show() 146 int dim; in dim_store() local 150 dim = -1; in dim_store() 152 ret = kstrtoint(buf, 0, &dim); in dim_store() 156 if (dim > AW200XX_DIM_MAX) in dim_store() 162 if (dim >= 0) { in dim_store() 165 dim); in dim_store() [all …]
|
H A 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/net/netfilter/ |
H A 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/tools/perf/ |
H A D | builtin-c2c.c | 425 struct c2c_dimension *dim; member 448 struct c2c_dimension *dim; in c2c_width() local 451 dim = c2c_fmt->dim; in c2c_width() 453 if (dim == &dim_symbol || dim == &dim_srcline) in c2c_width() 454 return symbol_width(hists, dim->se); in c2c_width() 456 return dim->se ? hists__col_len(hists, dim->se->se_width_idx) : in c2c_width() 457 c2c_fmt->dim->width; in c2c_width() 465 struct c2c_dimension *dim; in c2c_header() local 470 dim = c2c_fmt->dim; in c2c_header() 472 if (dim->se) { in c2c_header() [all …]
|
/linux/drivers/net/ethernet/broadcom/ |
H A D | bcmsysport.c | 603 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/ABI/testing/ |
H A D | sysfs-class-led-driver-aw200xx | 1 What: /sys/class/leds/<led>/dim 4 "auto", the dim will be calculated according to the
|
H A D | sysfs-class-backlight | 142 Control the dim brightness for <ambient light zone> 145 This file will also show the dim brightness level stored for
|
/linux/include/uapi/linux/netfilter/ |
H A D | xt_set.h | 23 __u8 dim; member 43 __u8 dim; member
|
/linux/drivers/net/ethernet/hisilicon/hns3/ |
H A D | hns3_debugfs.c | 488 struct dim *dim; in hns3_get_coal_info() local 493 dim = &tqp_vector->tx_group.dim; in hns3_get_coal_info() 499 dim = &tqp_vector->rx_group.dim; in hns3_get_coal_info() 506 sprintf(result[j++], "%s", dim->state < ARRAY_SIZE(dim_state_str) ? in hns3_get_coal_info() 507 dim_state_str[dim->state] : "unknown"); in hns3_get_coal_info() 508 sprintf(result[j++], "%u", dim->profile_ix); in hns3_get_coal_info() 509 sprintf(result[j++], "%s", dim->mode < ARRAY_SIZE(dim_cqe_mode_str) ? in hns3_get_coal_info() 510 dim_cqe_mode_str[dim->mode] : "unknown"); in hns3_get_coal_info() 512 dim->tune_state < ARRAY_SIZE(dim_tune_stat_str) ? in hns3_get_coal_info() 513 dim_tune_stat_str[dim->tune_state] : "unknown"); in hns3_get_coal_info() [all …]
|
/linux/drivers/media/test-drivers/vicodec/ |
H A D | codec-fwht.h | 64 #define vic_round_dim(dim, div) (round_up((dim) / (div), 8) * (div)) argument
|
/linux/net/sched/ |
H A D | em_ipset.c | 81 opt.dim = set->dim; in em_ipset_match()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | channels.c | 101 if (chs->c[i]->rq.dim) { in mlx5e_channels_rx_toggle_dim() 129 if (!chs->c[i]->sq[tc].dim) in mlx5e_channels_tx_toggle_dim()
|
/linux/drivers/net/ethernet/intel/idpf/ |
H A D | idpf_txrx.c | 3647 struct dim *dim, u64 packets, u64 bytes) in idpf_update_dim_sample() argument 3656 if (ktime_ms_delta(dim_sample->time, dim->start_sample.time) >= HZ) in idpf_update_dim_sample() 3657 dim->state = DIM_START_MEASURE; in idpf_update_dim_sample() 3863 struct dim *dim; in idpf_tx_dim_work() local 3866 dim = container_of(work, struct dim, work); in idpf_tx_dim_work() 3867 q_vector = container_of(dim, struct idpf_q_vector, tx_dim); in idpf_tx_dim_work() 3870 if (dim->profile_ix >= ARRAY_SIZE(vport->tx_itr_profile)) in idpf_tx_dim_work() 3871 dim->profile_ix = ARRAY_SIZE(vport->tx_itr_profile) - 1; in idpf_tx_dim_work() 3874 itr = vport->tx_itr_profile[dim->profile_ix]; in idpf_tx_dim_work() 3878 dim->state = DIM_START_MEASURE; in idpf_tx_dim_work() [all …]
|
/linux/drivers/infiniband/hw/qib/ |
H A D | qib_user_sdma.h | 43 unsigned long dim);
|
/linux/drivers/net/ethernet/broadcom/genet/ |
H A D | bcmgenet.h | 536 struct dim dim; member 553 struct bcmgenet_net_dim dim; member
|
/linux/Documentation/devicetree/bindings/leds/backlight/ |
H A D | arcxcnn_bl.txt | 16 - arc,dim-freq: PWM mode frequence setting (bits [3:0] used)
|
/linux/drivers/net/ethernet/amazon/ena/ |
H A D | ena_netdev.h | 129 struct dim dim; member
|