| /OK3568_Linux_fs/kernel/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 | net_dim.c | 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->profile_ix--; in net_dim_step() 123 dim->steps_left++; in net_dim_step() 127 dim->tired++; in net_dim_step() [all …]
|
| H A D | dim.c | 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 24 switch (dim->tune_state) { in dim_turn() 29 dim->tune_state = DIM_GOING_LEFT; in dim_turn() 30 dim->steps_left = 0; in dim_turn() 33 dim->tune_state = DIM_GOING_RIGHT; in dim_turn() 34 dim->steps_right = 0; in dim_turn() [all …]
|
| H A D | Makefile | 5 obj-$(CONFIG_DIMLIB) += dim.o 7 dim-y := dim.o net_dim.o rdma_dim.o
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/src/mbgl/geometry/ |
| H A D | dem_data.cpp | 7 dim(_image.size.height), in DEMData() 9 stride(dim + 2 * border), in DEMData() 30 for (int32_t y = 0; y < dim; y++) { 31 for (int32_t x = 0; x < dim; x++) { 32 const int32_t i = y * dim + x; 43 for (int32_t x = 0; x < dim; x++) { 48 set(dim, x, get(dim - 1, x)); 54 set(x, dim, get(x, dim - 1)); 59 set(dim, -1, get(dim - 1, 0)); 60 set( -1, dim, get(0, dim - 1)); [all …]
|
| H A D | dem_data.hpp | 31 const int32_t dim; member in mbgl::DEMData 41 assert(x < dim + border); in idx() 43 assert(y < dim + border); in idx()
|
| /OK3568_Linux_fs/kernel/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 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()
|
| /OK3568_Linux_fs/external/xserver/hw/dmx/config/ |
| H A D | dmxprint.c | 301 if (p->dim && p->dim->scrn && p->dim->scrn->dim) { in dmxConfigPrintDisplay() 302 p->dim->scrn->dim->x = p->scrnWidth; in dmxConfigPrintDisplay() 303 p->dim->scrn->dim->y = p->scrnHeight; in dmxConfigPrintDisplay() 310 if (p->dim && p->dim->scrn && p->dim->scrn->offset) { in dmxConfigPrintDisplay() 311 p->dim->scrn->offset->x = p->scrnX; in dmxConfigPrintDisplay() 312 p->dim->scrn->offset->y = p->scrnY; in dmxConfigPrintDisplay() 319 if (p->dim && p->dim->root && p->dim->root->dim) { in dmxConfigPrintDisplay() 320 p->dim->root->dim->x = p->rootWidth; in dmxConfigPrintDisplay() 321 p->dim->root->dim->y = p->rootHeight; in dmxConfigPrintDisplay() 328 if (p->dim && p->dim->root && p->dim->root->offset) { in dmxConfigPrintDisplay() [all …]
|
| H A D | dmxparse.c | 231 pPart->dim = pDim; in dmxConfigCreatePartDim() 241 dmxConfigFreePair(p->dim); in dmxConfigFreePartDim() 276 pDisplay->dim = pDim; in dmxConfigCreateDisplay() 284 if (pDim && pDim->scrn && pDim->scrn->dim) { in dmxConfigCreateDisplay() 285 pDisplay->scrnWidth = pDim->scrn->dim->x; in dmxConfigCreateDisplay() 286 pDisplay->scrnHeight = pDim->scrn->dim->y; in dmxConfigCreateDisplay() 296 if (pDim->root->dim) { in dmxConfigCreateDisplay() 297 pDisplay->rootWidth = pDim->root->dim->x; in dmxConfigCreateDisplay() 298 pDisplay->rootHeight = pDim->root->dim->y; in dmxConfigCreateDisplay() 325 dmxConfigFreeFullDim(p->dim); in dmxConfigFreeDisplay() [all …]
|
| /OK3568_Linux_fs/kernel/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()
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/core/ |
| H A D | cq.c | 42 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 …]
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | dim.h | 102 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); 313 void net_dim(struct dim *dim, struct dim_sample end_sample); 334 void rdma_dim(struct dim *dim, u64 completions);
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/spirit/home/support/detail/ |
| H A D | pow10.hpp | 32 static T call(unsigned dim) in call() 35 return pow(T(10), T(dim)); in call() 52 static double call(unsigned dim) in call() 88 BOOST_ASSERT(dim < sizeof(exponents)/sizeof(double)); in call() 89 return exponents[dim]; in call() 96 static float call(unsigned dim) in call() 98 return pow10_helper<double>::call(dim); in call() 104 inline T pow10(unsigned dim) in pow10() argument 106 return pow10_helper<T>::call(dim); in pow10()
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/geometry/algorithms/detail/ |
| H A D | recalculate.hpp | 53 std::size_t const dim = Dimension - 1; in apply() local 54 geometry::set<dim>(point1, strategy.template apply<dim>(geometry::get<dim>(point2))); in apply() 55 recalculate_point<dim>::apply(point1, point2, strategy); in apply() 76 static std::size_t const dim = Dimension - 1; in apply() local 77 … geometry::set<0, dim>(geometry1, strategy.template apply<dim>(geometry::get<0, dim>(geometry2))); in apply() 78 … geometry::set<1, dim>(geometry1, strategy.template apply<dim>(geometry::get<1, dim>(geometry2))); in apply() 79 recalculate_indexed<dim>::apply(geometry1, geometry2, strategy); in apply()
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/Documentation/networking/ |
| H A D | net_dim.rst | 92 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 …]
|
| /OK3568_Linux_fs/kernel/tools/perf/ |
| H A D | builtin-c2c.c | 414 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->width; in c2c_width() 454 struct c2c_dimension *dim; in c2c_header() local 459 dim = c2c_fmt->dim; in c2c_header() 461 if (dim->se) { in c2c_header() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_1.0/ |
| H A D | ia_css_sdis.host.c | 139 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()
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/qvm/ |
| H A D | deduce_vec.hpp | 26 int VD=vec_traits<V>::dim> 41 template <class V,int Dim=vec_traits<V>::dim> 55 int AD=vec_traits<A>::dim, 56 int BD=vec_traits<B>::dim>
|
| /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/algos/aorb/ |
| H A D | orb_algos.cpp | 392 void get_affine_matrix(double m[3][5], int dim, double affineM[9]) { in get_affine_matrix() argument 397 for(int j = 0; j < dim; j++) { in get_affine_matrix() 401 for(int i = 0; i < dim; i++) { in get_affine_matrix() 403 sprintf(str2, "x%d * %f + ", i, m[i][j + dim + 1]); in get_affine_matrix() 406 affineM[index] = m[i][j + dim + 1]; in get_affine_matrix() 410 sprintf(str3, "%f\n", m[dim][j + dim + 1]); in get_affine_matrix() 413 affineM[index] = m[dim][j + dim + 1]; in get_affine_matrix() 423 bool gauss_jordan(double m[3][5], int length, int dim) { in gauss_jordan() argument 425 int w = dim; in gauss_jordan() 477 int affine_fit(double fpt[][2], double tpt[][2], int length, int dim, double affineM[9]) { in affine_fit() argument [all …]
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/src/mbgl/tile/ |
| H A D | raster_dem_tile.cpp | 90 const uint32_t dim = pow(2, id.canonical.z); in backfillBorder() local 95 if (std::abs(int(dx + dim)) == 1) { in backfillBorder() 96 dx += dim; in backfillBorder() 97 } else if (std::abs(int(dx - dim)) == 1) { in backfillBorder() 98 dx -= dim; in backfillBorder()
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/src/mbgl/renderer/sources/ |
| H A D | render_raster_dem_source.cpp | 81 const uint32_t dim = std::pow(2, canonical.z); in onTileChanged() local 82 const uint32_t px = (canonical.x - 1 + dim) % dim; in onTileChanged() 84 const uint32_t nx = (canonical.x + 1 + dim) % dim; in onTileChanged() 85 const int nxw = (canonical.x + 1 == dim) ? tile.id.wrap + 1 : tile.id.wrap; in onTileChanged()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/broadcom/ |
| H A D | bcmsysport.c | 623 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/leds/ |
| 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()
|