| /OK3568_Linux_fs/kernel/drivers/input/keyboard/ |
| H A D | lm8323.c | 162 static int lm8323_write(struct lm8323_chip *lm, int len, ...) in lm8323_write() argument 171 dev_err(&lm->client->dev, "tried to send %d bytes\n", len); in lm8323_write() 185 ret = i2c_master_send(lm->client, data, len); in lm8323_write() 187 ret = i2c_master_send(lm->client, data, len); in lm8323_write() 189 dev_err(&lm->client->dev, "sent %d bytes of %d total\n", in lm8323_write() 199 static int lm8323_read(struct lm8323_chip *lm, u8 cmd, u8 *buf, int len) in lm8323_read() argument 207 ret = i2c_master_send(lm->client, &cmd, 1); in lm8323_read() 209 ret = i2c_master_send(lm->client, &cmd, 1); in lm8323_read() 211 dev_err(&lm->client->dev, "sending read cmd 0x%02x failed\n", in lm8323_read() 216 ret = i2c_master_recv(lm->client, buf, len); in lm8323_read() [all …]
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-gnome/recipes-support/onboard/onboard/ |
| H A D | 0001-pypredict-lm-Define-error-API-if-platform-does-not-h.patch | 4 Subject: [PATCH] pypredict/lm: Define error API if platform does not have it 11 Onboard/pypredict/lm/lm.cpp | 1 - 12 Onboard/pypredict/lm/lm.h | 13 +++++++++++++ 13 Onboard/pypredict/lm/lm_dynamic.cpp | 2 -- 16 diff --git a/Onboard/pypredict/lm/lm.cpp b/Onboard/pypredict/lm/lm.cpp 18 --- a/Onboard/pypredict/lm/lm.cpp 19 +++ b/Onboard/pypredict/lm/lm.cpp 28 diff --git a/Onboard/pypredict/lm/lm.h b/Onboard/pypredict/lm/lm.h 30 --- a/Onboard/pypredict/lm/lm.h 31 +++ b/Onboard/pypredict/lm/lm.h [all …]
|
| /OK3568_Linux_fs/kernel/drivers/macintosh/ |
| H A D | windfarm_lm75_sensor.c | 46 struct wf_lm75_sensor *lm = wf_to_lm75(sr); in wf_lm75_get() local 49 if (lm->i2c == NULL) in wf_lm75_get() 53 if (!lm->inited) { in wf_lm75_get() 54 u8 cfg_new, cfg = (u8)i2c_smbus_read_byte_data(lm->i2c, 1); in wf_lm75_get() 63 i2c_smbus_write_byte_data(lm->i2c, 1, cfg_new); in wf_lm75_get() 64 lm->inited = 1; in wf_lm75_get() 71 data = (s32)le16_to_cpu(i2c_smbus_read_word_data(lm->i2c, 0)); in wf_lm75_get() 80 struct wf_lm75_sensor *lm = wf_to_lm75(sr); in wf_lm75_release() local 82 kfree(lm); in wf_lm75_release() 94 struct wf_lm75_sensor *lm; in wf_lm75_probe() local [all …]
|
| H A D | windfarm_lm87_sensor.c | 68 struct wf_lm87_sensor *lm = sr->priv; in wf_lm87_get() local 71 if (lm->i2c == NULL) in wf_lm87_get() 77 temp = wf_lm87_read_reg(lm->i2c, LM87_INT_TEMP); in wf_lm87_get() 87 struct wf_lm87_sensor *lm = wf_to_lm87(sr); in wf_lm87_release() local 89 kfree(lm); in wf_lm87_release() 101 struct wf_lm87_sensor *lm; in wf_lm87_probe() local 132 lm = kzalloc(sizeof(struct wf_lm87_sensor), GFP_KERNEL); in wf_lm87_probe() 133 if (lm == NULL) in wf_lm87_probe() 136 lm->i2c = client; in wf_lm87_probe() 137 lm->sens.name = name; in wf_lm87_probe() [all …]
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/ |
| H A D | 0001-lmbench-Point-webpage-lm-to-target-directory.patch | 4 Subject: [PATCH] lmbench: Point webpage-lm to target directory 6 As webpage-lm.tar has been copied to ${datadir}\lmbench. 31 -if [ ! -d ../../src/webpage-lm ] 32 -then (cd ../../src && tar xf webpage-lm.tar) 33 +if [ ! -d /usr/share/lmbench/webpage-lm ] 34 +then (cd /usr/share/lmbench && tar xf webpage-lm.tar) 40 -DOCROOT=../../src/webpage-lm lmhttp 8008 & 41 +DOCROOT=/usr/share/lmbench/webpage-lm lmhttp 8008 & 49 - lat_http localhost 8008 < ../../src/webpage-lm/URLS > /dev/null 2>&1 50 - lat_http localhost 8008 < ../../src/webpage-lm/URLS [all …]
|
| /OK3568_Linux_fs/kernel/drivers/lightnvm/ |
| H A D | pblk-init.c | 627 struct pblk_line_meta *lm = &pblk->lm; in calc_emeta_len() local 633 lm->emeta_sec[1] = DIV_ROUND_UP( in calc_emeta_len() 634 sizeof(struct line_emeta) + lm->blk_bitmap_len + in calc_emeta_len() 636 lm->emeta_len[1] = lm->emeta_sec[1] * geo->csecs; in calc_emeta_len() 639 lm->dsec_per_line = lm->sec_per_line - lm->emeta_sec[0]; in calc_emeta_len() 640 lm->emeta_sec[2] = DIV_ROUND_UP(lm->dsec_per_line * sizeof(u64), in calc_emeta_len() 642 lm->emeta_len[2] = lm->emeta_sec[2] * geo->csecs; in calc_emeta_len() 644 lm->emeta_sec[3] = DIV_ROUND_UP(l_mg->nr_lines * sizeof(u32), in calc_emeta_len() 646 lm->emeta_len[3] = lm->emeta_sec[3] * geo->csecs; in calc_emeta_len() 648 lm->vsc_list_len = l_mg->nr_lines * sizeof(u32); in calc_emeta_len() [all …]
|
| H A D | pblk-core.c | 409 struct pblk_line_meta *lm = &pblk->lm; in pblk_line_gc_list() local 429 } else if (vsc < lm->high_thrs) { in pblk_line_gc_list() 434 } else if (vsc < lm->mid_thrs) { in pblk_line_gc_list() 459 lm->high_thrs, lm->mid_thrs); in pblk_line_gc_list() 605 pblk->lm.sec_per_line, line->cur_sec); in pblk_dealloc_page() 621 if (line->cur_sec + nr_secs > pblk->lm.sec_per_line) { in __pblk_alloc_page() 623 nr_secs = pblk->lm.sec_per_line - line->cur_sec; in __pblk_alloc_page() 627 pblk->lm.sec_per_line, line->cur_sec); in __pblk_alloc_page() 656 pblk->lm.sec_per_line, line->cur_sec); in pblk_lookup_page() 666 struct pblk_line_meta *lm = &pblk->lm; in pblk_line_smeta_start() local [all …]
|
| H A D | pblk-recovery.c | 42 struct pblk_line_meta *lm = &pblk->lm; in pblk_recov_l2p_from_emeta() local 54 data_start = pblk_line_smeta_start(pblk, line) + lm->smeta_sec; in pblk_recov_l2p_from_emeta() 118 struct pblk_line_meta *lm = &pblk->lm; in pblk_sec_in_open_line() local 119 int nr_bb = bitmap_weight(line->blk_bitmap, lm->blk_per_line); in pblk_sec_in_open_line() 124 for (i = 0; i < lm->blk_per_line; i++) { in pblk_sec_in_open_line() 134 if (lm->blk_per_line - nr_bb != valid_chunks) in pblk_sec_in_open_line() 137 pblk_update_line_wp(pblk, line, written_secs - lm->smeta_sec); in pblk_sec_in_open_line() 321 struct pblk_line_meta *lm = &pblk->lm; in pblk_line_wps_are_unbalanced() local 322 int blk_in_line = lm->blk_per_line; in pblk_line_wps_are_unbalanced() 358 struct pblk_line_meta *lm = &pblk->lm; in pblk_recov_scan_oob() local [all …]
|
| H A D | pblk-sysfs.c | 168 struct pblk_line_meta *lm = &pblk->lm; in pblk_sysfs_lines() local 270 lm->sec_per_line); in pblk_sysfs_lines() 283 geo->all_luns, lm->blk_per_line, lm->sec_per_line); in pblk_sysfs_lines() 303 map_weight, lm->sec_per_line, in pblk_sysfs_lines() 313 struct pblk_line_meta *lm = &pblk->lm; in pblk_sysfs_lines_info() local 318 lm->smeta_len, lm->smeta_sec); in pblk_sysfs_lines_info() 321 lm->emeta_len[0], lm->emeta_sec[0], in pblk_sysfs_lines_info() 322 lm->emeta_bb); in pblk_sysfs_lines_info() 325 lm->sec_bitmap_len, in pblk_sysfs_lines_info() 326 lm->blk_bitmap_len, in pblk_sysfs_lines_info() [all …]
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/wagyu/0.4.3/include/mapbox/geometry/wagyu/ |
| H A D | wagyu.hpp | 79 for (auto const& lm : minima_list) { in get_bounds() local 80 if (!lm.left_bound.edges.empty()) { in get_bounds() 82 min = lm.left_bound.edges.front().top; in get_bounds() 83 max = lm.left_bound.edges.back().bot; in get_bounds() 86 min.y = std::min(min.y, lm.left_bound.edges.front().top.y); in get_bounds() 87 max.y = std::max(max.y, lm.left_bound.edges.back().bot.y); in get_bounds() 88 max.x = std::max(max.x, lm.left_bound.edges.back().top.x); in get_bounds() 89 min.x = std::min(min.x, lm.left_bound.edges.back().top.x); in get_bounds() 91 for (auto const& e : lm.left_bound.edges) { in get_bounds() 96 if (!lm.right_bound.edges.empty()) { in get_bounds() [all …]
|
| H A D | local_minimum_util.hpp | 301 void initialize_lm(local_minimum_ptr_list_itr<T>& lm) { in initialize_lm() argument 302 if (!(*lm)->left_bound.edges.empty()) { in initialize_lm() 303 (*lm)->left_bound.current_edge = (*lm)->left_bound.edges.begin(); in initialize_lm() 304 (*lm)->left_bound.next_edge = std::next((*lm)->left_bound.current_edge); in initialize_lm() 305 (*lm)->left_bound.current_x = static_cast<double>((*lm)->left_bound.current_edge->bot.x); in initialize_lm() 306 (*lm)->left_bound.winding_count = 0; in initialize_lm() 307 (*lm)->left_bound.winding_count2 = 0; in initialize_lm() 308 (*lm)->left_bound.side = edge_left; in initialize_lm() 309 (*lm)->left_bound.ring = nullptr; in initialize_lm() 311 if (!(*lm)->right_bound.edges.empty()) { in initialize_lm() [all …]
|
| H A D | local_minimum.hpp | 62 const local_minimum<T>& lm) { in operator <<() argument 64 out << " y: " << lm.y << std::endl; in operator <<() 65 if (lm.minimum_has_horizontal) { in operator <<() 71 out << lm.left_bound << std::endl; in operator <<() 73 out << lm.right_bound << std::endl; in operator <<() 80 for (auto const& lm : lms) { in operator <<() local 81 out << *lm; in operator <<() 91 for (auto const& lm : lms) { in output_all_edges() local 92 for (auto const& e : lm->left_bound.edges) { in output_all_edges() 101 for (auto const& e : lm->right_bound.edges) { in output_all_edges()
|
| H A D | snap_rounding.hpp | 131 local_minimum_ptr_list_itr<T>& lm, in insert_local_minima_into_ABL_hot_pixel() argument 135 while (lm != minima_sorted.end() && (*lm)->y == top_y) { in insert_local_minima_into_ABL_hot_pixel() 136 add_to_hot_pixels((*lm)->left_bound.edges.front().bot, manager); in insert_local_minima_into_ABL_hot_pixel() 137 auto& left_bound = (*lm)->left_bound; in insert_local_minima_into_ABL_hot_pixel() 138 auto& right_bound = (*lm)->right_bound; in insert_local_minima_into_ABL_hot_pixel() 153 ++lm; in insert_local_minima_into_ABL_hot_pixel() 165 for (auto& lm : minima_list) { in build_hot_pixels() local 166 minima_sorted.push_back(&lm); in build_hot_pixels() 175 for (auto& lm : minima_list) { in build_hot_pixels() local 176 reserve += lm.left_bound.edges.size() + 2; in build_hot_pixels() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/msm/disp/mdp5/ |
| H A D | mdp5_mixer.c | 19 static int get_right_pair_idx(struct mdp5_kms *mdp5_kms, int lm) in get_right_pair_idx() argument 24 pair_lm = lm_right_pair[lm]; in get_right_pair_idx() 31 if (mixer->lm == pair_lm) in get_right_pair_idx() 74 pair_idx = get_right_pair_idx(mdp5_kms, cur->lm); in mdp5_mixer_assign() 85 * prefer a pair-able LM over an unpairable one. We can in mdp5_mixer_assign() 88 * assigned this CRTC a pair-able LM. in mdp5_mixer_assign() 92 * if we have the LM resources to prevent it. For a platform in mdp5_mixer_assign() 107 DBG("assigning Layer Mixer %d to crtc %s", (*mixer)->lm, crtc->name); in mdp5_mixer_assign() 111 DBG("assigning Right Layer Mixer %d to crtc %s", (*r_mixer)->lm, in mdp5_mixer_assign() 152 struct mdp5_hw_mixer *mdp5_mixer_init(const struct mdp5_lm_instance *lm) in mdp5_mixer_init() argument [all …]
|
| H A D | mdp5_crtc.c | 124 flush_mask |= mdp_ctl_flush_mask_lm(mixer->lm); in crtc_flush_all() 128 flush_mask |= mdp_ctl_flush_mask_lm(r_mixer->lm); in crtc_flush_all() 220 uint32_t lm = mixer->lm; in blend_setup() local 222 uint32_t r_lm = r_mixer ? r_mixer->lm : 0; in blend_setup() 328 mdp5_write(mdp5_kms, REG_MDP5_LM_BLEND_OP_MODE(lm, in blend_setup() 330 mdp5_write(mdp5_kms, REG_MDP5_LM_BLEND_FG_ALPHA(lm, in blend_setup() 332 mdp5_write(mdp5_kms, REG_MDP5_LM_BLEND_BG_ALPHA(lm, in blend_setup() 344 val = mdp5_read(mdp5_kms, REG_MDP5_LM_BLEND_COLOR_OUT(lm)); in blend_setup() 345 mdp5_write(mdp5_kms, REG_MDP5_LM_BLEND_COLOR_OUT(lm), in blend_setup() 366 uint32_t lm = mixer->lm; in mdp5_crtc_mode_set_nofb() local [all …]
|
| H A D | mdp5_mixer.h | 15 int lm; /* the LM instance # */ member 20 uint32_t flush_mask; /* used to commit LM registers */ 28 struct mdp5_hw_mixer *mdp5_mixer_init(const struct mdp5_lm_instance *lm); 29 void mdp5_mixer_destroy(struct mdp5_hw_mixer *lm);
|
| H A D | mdp5_ctl.c | 257 DRM_DEV_ERROR(ctl_mgr->dev->dev, "CTL %d cannot find LM", in mdp5_ctl_set_cursor() 269 blend_cfg = ctl_read(ctl, REG_MDP5_CTL_LAYER_REG(ctl->id, mixer->lm)); in mdp5_ctl_set_cursor() 276 ctl_write(ctl, REG_MDP5_CTL_LAYER_REG(ctl->id, mixer->lm), blend_cfg); in mdp5_ctl_set_cursor() 391 ctl_write(ctl, REG_MDP5_CTL_LAYER_REG(ctl->id, mixer->lm), blend_cfg); in mdp5_ctl_blend() 392 ctl_write(ctl, REG_MDP5_CTL_LAYER_EXT_REG(ctl->id, mixer->lm), in mdp5_ctl_blend() 395 ctl_write(ctl, REG_MDP5_CTL_LAYER_REG(ctl->id, r_mixer->lm), in mdp5_ctl_blend() 397 ctl_write(ctl, REG_MDP5_CTL_LAYER_EXT_REG(ctl->id, r_mixer->lm), in mdp5_ctl_blend() 402 ctl->pending_ctl_trigger = mdp_ctl_flush_mask_lm(mixer->lm); in mdp5_ctl_blend() 404 ctl->pending_ctl_trigger |= mdp_ctl_flush_mask_lm(r_mixer->lm); in mdp5_ctl_blend() 406 DBG("lm%d: blend config = 0x%08x. ext_cfg = 0x%08x", mixer->lm, in mdp5_ctl_blend() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/msm/disp/dpu1/ |
| H A D | dpu_rm.c | 98 const struct dpu_lm_cfg *lm = &cat->mixer[i]; in dpu_rm_init() local 100 if (lm->pingpong == PINGPONG_MAX) { in dpu_rm_init() 101 DPU_DEBUG("skip mixer %d without pingpong\n", lm->id); in dpu_rm_init() 105 if (lm->id < LM_0 || lm->id >= LM_MAX) { in dpu_rm_init() 106 DPU_ERROR("skip mixer %d with invalid id\n", lm->id); in dpu_rm_init() 109 hw = dpu_hw_lm_init(lm->id, mmio, cat); in dpu_rm_init() 112 DPU_ERROR("failed lm object creation: err %d\n", rc); in dpu_rm_init() 115 rm->mixer_blks[lm->id - LM_0] = &hw->base; in dpu_rm_init() 118 rm->lm_max_width = lm->sblk->maxwidth; in dpu_rm_init() 119 } else if (rm->lm_max_width != lm->sblk->maxwidth) { in dpu_rm_init() [all …]
|
| H A D | dpu_hw_ctl.c | 11 #define CTL_LAYER(lm) \ argument 12 (((lm) == LM_5) ? (0x024) : (((lm) - LM_0) * 0x004)) 13 #define CTL_LAYER_EXT(lm) \ argument 14 (0x40 + (((lm) - LM_0) * 0x004)) 15 #define CTL_LAYER_EXT2(lm) \ argument 16 (0x70 + (((lm) - LM_0) * 0x004)) 17 #define CTL_LAYER_EXT3(lm) \ argument 18 (0xA0 + (((lm) - LM_0) * 0x004)) 56 enum dpu_lm lm) in _mixer_stages() argument 62 if (lm == mixer[i].id) { in _mixer_stages() [all …]
|
| /OK3568_Linux_fs/kernel/fs/nfs_common/ |
| H A D | grace.c | 19 * @lm: who this grace period is for 29 locks_start_grace(struct net *net, struct lock_manager *lm) in locks_start_grace() argument 34 if (list_empty(&lm->list)) in locks_start_grace() 35 list_add(&lm->list, grace_list); in locks_start_grace() 46 * @lm: who this grace period is for 55 locks_end_grace(struct lock_manager *lm) in locks_end_grace() argument 58 list_del_init(&lm->list); in locks_end_grace() 67 struct lock_manager *lm; in __state_in_grace() local 73 list_for_each_entry(lm, grace_list, list) { in __state_in_grace() 74 if (lm->block_opens) { in __state_in_grace()
|
| /OK3568_Linux_fs/kernel/drivers/vme/bridges/ |
| H A D | vme_fake.c | 384 struct vme_lm_resource *lm; in fake_lm_check() local 392 lm = list_entry(pos, struct vme_lm_resource, list); in fake_lm_check() 404 for (i = 0; i < lm->monitors; i++) { in fake_lm_check() 853 * This does not enable the LM monitor - that should be done when the first 856 static int fake_lm_set(struct vme_lm_resource *lm, unsigned long long lm_base, in fake_lm_set() argument 863 fake_bridge = lm->parent; in fake_lm_set() 867 mutex_lock(&lm->mtx); in fake_lm_set() 870 for (i = 0; i < lm->monitors; i++) { in fake_lm_set() 872 mutex_unlock(&lm->mtx); in fake_lm_set() 885 mutex_unlock(&lm->mtx); in fake_lm_set() [all …]
|
| H A D | vme_ca91cx42.c | 226 /* Enable DMA, mailbox & LM Interrupts */ in ca91cx42_irq_init() 1290 * This does not enable the LM monitor - that should be done when the first 1293 static int ca91cx42_lm_set(struct vme_lm_resource *lm, in ca91cx42_lm_set() argument 1301 bridge = lm->parent->driver_priv; in ca91cx42_lm_set() 1302 dev = lm->parent->parent; in ca91cx42_lm_set() 1312 mutex_lock(&lm->mtx); in ca91cx42_lm_set() 1315 for (i = 0; i < lm->monitors; i++) { in ca91cx42_lm_set() 1317 mutex_unlock(&lm->mtx); in ca91cx42_lm_set() 1335 mutex_unlock(&lm->mtx); in ca91cx42_lm_set() 1353 mutex_unlock(&lm->mtx); in ca91cx42_lm_set() [all …]
|
| /OK3568_Linux_fs/buildroot/package/odb/ |
| H A D | 0003-Initial-work-to-make-ODB-compatible-with-GCC-6.patch | 129 - line_map const* lm (linemap_lookup (line_table, l)); 130 + line_map_type const* lm ( 134 if (lm != 0 && !MAIN_FILE_P (lm)) 165 - line_map const* lm (j->first); 166 + line_map_type const* lm (j->first); 167 cerr << '\t' << lm->to_file << ":" << LAST_SOURCE_LINE (lm) << endl; 181 - line_map const* lm (j->first); 182 + line_map_type const* lm (j->first); 184 if (MAIN_FILE_P (lm)) 190 - line_map const* lm (j->first); [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
| H A D | pllgt215.c | 34 int M, lM, hM, N, fN; in gt215_pll_calc() local 42 lM = (info->refclk + info->vco1.max_inputfreq) / info->vco1.max_inputfreq; in gt215_pll_calc() 43 lM = max(lM, (int)info->vco1.min_m); in gt215_pll_calc() 46 lM = min(lM, hM); in gt215_pll_calc() 48 for (M = lM; M <= hM; M++) { in gt215_pll_calc()
|
| /OK3568_Linux_fs/buildroot/package/pifmrds/ |
| H A D | 0003-Makefile-fix-static-link.patch | 3 Since libsndfile uses funtions from libm, the -lm should be specified 17 - $(CC) $(LDFLAGS) -o pi_fm_rds rds.o waveforms.o pi_fm_rds.o fm_mpx.o control_pipe.o -lm -lsndfile 18 …) $(LDFLAGS) -o pi_fm_rds rds.o waveforms.o pi_fm_rds.o fm_mpx.o control_pipe.o $(SNDFILE_LIBS) -lm 21 - $(CC) $(LDFLAGS) -o rds_wav rds_wav.o rds.o waveforms.o fm_mpx.o -lm -lsndfile 22 + $(CC) $(LDFLAGS) -o rds_wav rds_wav.o rds.o waveforms.o fm_mpx.o $(SNDFILE_LIBS) -lm
|