Home
last modified time | relevance | path

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

12

/drivers/net/ethernet/mellanox/mlx5/core/
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()
Den_txrx.c60 net_dim(&sq->dim, dim_sample); in mlx5e_handle_tx_dim()
72 net_dim(&rq->dim, dim_sample); in mlx5e_handle_rx_dim()
Den.h340 struct dim dim; /* Adaptive Moderation */ member
615 struct dim dim; /* Dynamic Interrupt Moderation */ member
/drivers/net/ethernet/broadcom/bnxt/
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 …]
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()
/drivers/infiniband/core/
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 = kzalloc(sizeof(struct dim), GFP_KERNEL); in rdma_dim_init()
63 if (!dim) in rdma_dim_init()
66 dim->state = DIM_START_MEASURE; in rdma_dim_init()
67 dim->tune_state = DIM_GOING_RIGHT; in rdma_dim_init()
[all …]
/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_1.0/
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()
/drivers/net/ethernet/broadcom/
Dbcmsysport.c623 ec->use_adaptive_rx_coalesce = priv->dim.use_dim; in bcm_sysport_get_coalesce()
658 if (ec->use_adaptive_rx_coalesce && !priv->dim.use_dim) { in bcm_sysport_set_coalesce()
659 moder = net_dim_get_def_rx_moderation(priv->dim.dim.mode); in bcm_sysport_set_coalesce()
664 priv->dim.use_dim = ec->use_adaptive_rx_coalesce; in bcm_sysport_set_coalesce()
863 priv->dim.packets = processed; in bcm_sysport_desc_rx()
864 priv->dim.bytes = processed_bytes; in bcm_sysport_desc_rx()
1037 if (priv->dim.use_dim) { in bcm_sysport_poll()
1038 dim_update_sample(priv->dim.event_ctr, priv->dim.packets, in bcm_sysport_poll()
1039 priv->dim.bytes, &dim_sample); in bcm_sysport_poll()
1040 net_dim(&priv->dim.dim, dim_sample); in bcm_sysport_poll()
[all …]
Dbcmsysport.h705 struct dim dim; member
755 struct bcm_sysport_net_dim dim; member
/drivers/leds/
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()
/drivers/net/ethernet/broadcom/genet/
Dbcmgenet.c848 ec->use_adaptive_rx_coalesce |= ring->dim.use_dim; in bcmgenet_get_coalesce()
851 ec->use_adaptive_rx_coalesce |= ring->dim.use_dim; in bcmgenet_get_coalesce()
882 if (ec->use_adaptive_rx_coalesce && !ring->dim.use_dim) { in bcmgenet_set_ring_rx_coalesce()
883 moder = net_dim_get_def_rx_moderation(ring->dim.dim.mode); in bcmgenet_set_ring_rx_coalesce()
888 ring->dim.use_dim = ec->use_adaptive_rx_coalesce; in bcmgenet_set_ring_rx_coalesce()
2337 ring->dim.bytes = bytes_processed; in bcmgenet_desc_rx()
2338 ring->dim.packets = rxpktprocessed; in bcmgenet_desc_rx()
2358 if (ring->dim.use_dim) { in bcmgenet_rx_poll()
2359 dim_update_sample(ring->dim.event_ctr, ring->dim.packets, in bcmgenet_rx_poll()
2360 ring->dim.bytes, &dim_sample); in bcmgenet_rx_poll()
[all …]
Dbcmgenet.h590 struct dim dim; member
607 struct bcmgenet_net_dim dim; member
/drivers/media/test-drivers/vicodec/
Dcodec-fwht.h96 #define vic_round_dim(dim, div) (round_up((dim) / (div), 8) * (div)) argument
/drivers/infiniband/hw/qib/
Dqib_user_sdma.h43 unsigned long dim);
/drivers/staging/media/atomisp/pci/isp/kernels/sdis/common/
Dia_css_sdis_common_types.h39 struct ia_css_dvs_grid_dim dim; /* Dimensions */ member
/drivers/net/ethernet/pensando/ionic/
Dionic_lif.h70 struct dim dim; member
Dionic_lif.c47 struct dim *dim = container_of(work, struct dim, work); in ionic_dim_work() local
54 cur_moder = net_dim_get_rx_moderation(dim->mode, dim->profile_ix); in ionic_dim_work()
55 qcq = container_of(dim, struct ionic_qcq, dim); in ionic_dim_work()
68 dim->state = DIM_START_MEASURE; in ionic_dim_work()
311 cancel_work_sync(&qcq->dim.work); in ionic_qcq_disable()
614 INIT_WORK(&new->dim.work, ionic_dim_work); in ionic_qcq_alloc()
615 new->dim.mode = DIM_CQ_PERIOD_MODE_START_FROM_EQE; in ionic_qcq_alloc()
/drivers/infiniband/hw/hfi1/
Dtrace_tx.h325 unsigned long dim),
326 TP_ARGS(dd, ctxt, subctxt, dim),
330 __field(unsigned long, dim)
335 __entry->dim = dim;
341 __entry->dim
Dfile_ops.c306 unsigned long dim = from->nr_segs; in hfi1_write_iter() local
318 if (!iter_is_iovec(from) || !dim) { in hfi1_write_iter()
323 trace_hfi1_sdma_request(fd->dd, fd->uctxt->ctxt, fd->subctxt, dim); in hfi1_write_iter()
330 while (dim) { in hfi1_write_iter()
336 dim, &count); in hfi1_write_iter()
341 dim -= count; in hfi1_write_iter()
Duser_sdma.h245 struct iovec *iovec, unsigned long dim,
/drivers/net/ethernet/amazon/ena/
Dena_netdev.h145 struct dim dim; member
Dena_netdev.c655 adapter->ena_napi[i].dim.mode = DIM_CQ_PERIOD_MODE_START_FROM_EQE; in ena_init_io_rings()
1164 cancel_work_sync(&adapter->ena_napi[i].dim.work); in ena_destroy_all_rx_queues()
1696 struct dim *dim = container_of(w, struct dim, work); in ena_dim_work() local
1698 net_dim_get_rx_moderation(dim->mode, dim->profile_ix); in ena_dim_work()
1699 struct ena_napi *ena_napi = container_of(dim, struct ena_napi, dim); in ena_dim_work()
1702 dim->state = DIM_START_MEASURE; in ena_dim_work()
1720 net_dim(&ena_napi->dim, dim_sample); in ena_adjust_adaptive_rx_intr_moderation()
2398 INIT_WORK(&adapter->ena_napi[i].dim.work, ena_dim_work); in ena_create_all_io_rx_queues()
2405 cancel_work_sync(&adapter->ena_napi[i].dim.work); in ena_create_all_io_rx_queues()
/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_2/
Dia_css_sdis2.host.c140 hor_num_3a = dvs_binary->dis.coef.dim.width; in ia_css_get_isp_dvs2_coefficients()
141 ver_num_3a = dvs_binary->dis.coef.dim.height; in ia_css_get_isp_dvs2_coefficients()
/drivers/net/ethernet/freescale/enetc/
Denetc.c291 struct dim *dim = container_of(w, struct dim, work); in enetc_rx_dim_work() local
293 net_dim_get_rx_moderation(dim->mode, dim->profile_ix); in enetc_rx_dim_work()
295 container_of(dim, struct enetc_int_vector, rx_dim); in enetc_rx_dim_work()
298 dim->state = DIM_START_MEASURE; in enetc_rx_dim_work()
/drivers/media/i2c/
Dimx274.c521 #define IMX274_ROUND(dim, step, flags) \ argument
523 ? roundup((dim), (step)) \
525 ? rounddown((dim), (step)) \
526 : rounddown((dim) + (step) / 2, (step))))

12