Home
last modified time | relevance | path

Searched full:lm (Results 1 – 25 of 153) sorted by relevance

1234567

/linux/drivers/input/keyboard/
H A Dlm8323.c162 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 …]
/linux/drivers/macintosh/
H A Dwindfarm_lm75_sensor.c45 struct wf_lm75_sensor *lm = wf_to_lm75(sr); in wf_lm75_get() local
48 if (lm->i2c == NULL) in wf_lm75_get()
52 if (!lm->inited) { in wf_lm75_get()
53 u8 cfg_new, cfg = (u8)i2c_smbus_read_byte_data(lm->i2c, 1); in wf_lm75_get()
62 i2c_smbus_write_byte_data(lm->i2c, 1, cfg_new); in wf_lm75_get()
63 lm->inited = 1; in wf_lm75_get()
70 data = (s32)le16_to_cpu(i2c_smbus_read_word_data(lm->i2c, 0)); in wf_lm75_get()
79 struct wf_lm75_sensor *lm = wf_to_lm75(sr); in wf_lm75_release() local
81 kfree(lm); in wf_lm75_release()
93 struct wf_lm75_sensor *lm; in wf_lm75_probe() local
[all …]
H A Dwindfarm_lm87_sensor.c68 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()
100 struct wf_lm87_sensor *lm; in wf_lm87_probe() local
131 lm = kzalloc(sizeof(struct wf_lm87_sensor), GFP_KERNEL); in wf_lm87_probe()
132 if (lm == NULL) in wf_lm87_probe()
135 lm->i2c = client; in wf_lm87_probe()
136 lm->sens.name = name; in wf_lm87_probe()
[all …]
/linux/drivers/gpu/drm/msm/disp/mdp5/
H A Dmdp5_mixer.c19 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()
148 const struct mdp5_lm_instance *lm) in mdp5_mixer_init() argument
[all …]
H A Dmdp5_crtc.c128 flush_mask |= mdp_ctl_flush_mask_lm(mixer->lm); in crtc_flush_all()
132 flush_mask |= mdp_ctl_flush_mask_lm(r_mixer->lm); in crtc_flush_all()
221 uint32_t lm = mixer->lm; in blend_setup() local
223 uint32_t r_lm = r_mixer ? r_mixer->lm : 0; in blend_setup()
330 mdp5_write(mdp5_kms, REG_MDP5_LM_BLEND_OP_MODE(lm, in blend_setup()
332 mdp5_write(mdp5_kms, REG_MDP5_LM_BLEND_FG_ALPHA(lm, in blend_setup()
334 mdp5_write(mdp5_kms, REG_MDP5_LM_BLEND_BG_ALPHA(lm, in blend_setup()
346 val = mdp5_read(mdp5_kms, REG_MDP5_LM_BLEND_COLOR_OUT(lm)); in blend_setup()
347 mdp5_write(mdp5_kms, REG_MDP5_LM_BLEND_COLOR_OUT(lm), in blend_setup()
368 uint32_t lm = mixer->lm; in mdp5_crtc_mode_set_nofb() local
[all …]
H A Dmdp5_ctl.c259 DRM_DEV_ERROR(ctl_mgr->dev->dev, "CTL %d cannot find LM", in mdp5_ctl_set_cursor()
271 blend_cfg = ctl_read(ctl, REG_MDP5_CTL_LAYER_REG(ctl->id, mixer->lm)); in mdp5_ctl_set_cursor()
278 ctl_write(ctl, REG_MDP5_CTL_LAYER_REG(ctl->id, mixer->lm), blend_cfg); in mdp5_ctl_set_cursor()
393 ctl_write(ctl, REG_MDP5_CTL_LAYER_REG(ctl->id, mixer->lm), blend_cfg); in mdp5_ctl_blend()
394 ctl_write(ctl, REG_MDP5_CTL_LAYER_EXT_REG(ctl->id, mixer->lm), in mdp5_ctl_blend()
397 ctl_write(ctl, REG_MDP5_CTL_LAYER_REG(ctl->id, r_mixer->lm), in mdp5_ctl_blend()
399 ctl_write(ctl, REG_MDP5_CTL_LAYER_EXT_REG(ctl->id, r_mixer->lm), in mdp5_ctl_blend()
404 ctl->pending_ctl_trigger = mdp_ctl_flush_mask_lm(mixer->lm); in mdp5_ctl_blend()
406 ctl->pending_ctl_trigger |= mdp_ctl_flush_mask_lm(r_mixer->lm); in mdp5_ctl_blend()
408 DBG("lm%d: blend config = 0x%08x. ext_cfg = 0x%08x", mixer->lm, in mdp5_ctl_blend()
[all …]
H A Dmdp5_mixer.h15 int lm; /* the LM instance # */ member
20 uint32_t flush_mask; /* used to commit LM registers */
29 const struct mdp5_lm_instance *lm);
H A Dmdp5_cfg.c62 .lm = {
151 .lm = {
226 .lm = {
321 .lm = {
413 .lm = {
485 .lm = {
573 .lm = {
679 .lm = {
799 .lm = {
885 .lm = {
[all …]
/linux/fs/nfs_common/
H A Dgrace.c20 * @lm: who this grace period is for
30 locks_start_grace(struct net *net, struct lock_manager *lm) in locks_start_grace() argument
35 if (list_empty(&lm->list)) in locks_start_grace()
36 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()
/linux/drivers/staging/vme_user/
H A Dvme_fake.c381 struct vme_lm_resource *lm; in fake_lm_check() local
389 lm = list_entry(pos, struct vme_lm_resource, list); in fake_lm_check()
401 for (i = 0; i < lm->monitors; i++) { in fake_lm_check()
844 * This does not enable the LM monitor - that should be done when the first
847 static int fake_lm_set(struct vme_lm_resource *lm, unsigned long long lm_base, in fake_lm_set() argument
854 fake_bridge = lm->parent; in fake_lm_set()
858 mutex_lock(&lm->mtx); in fake_lm_set()
861 for (i = 0; i < lm->monitors; i++) { in fake_lm_set()
863 mutex_unlock(&lm->mtx); in fake_lm_set()
876 mutex_unlock(&lm->mtx); in fake_lm_set()
[all …]
H A Dvme.c1429 struct vme_lm_resource *lm = NULL; in vme_lm_request() local
1438 /* Loop through LM resources */ in vme_lm_request()
1439 list_for_each_entry(lm, &bridge->lm_resources, list) { in vme_lm_request()
1440 if (!lm) { in vme_lm_request()
1447 mutex_lock(&lm->mtx); in vme_lm_request()
1448 if (lm->locked == 0) { in vme_lm_request()
1449 lm->locked = 1; in vme_lm_request()
1450 mutex_unlock(&lm->mtx); in vme_lm_request()
1451 allocated_lm = lm; in vme_lm_request()
1454 mutex_unlock(&lm->mtx); in vme_lm_request()
[all …]
H A Dvme_tsi148.c1898 * This does not enable the LM monitor - that should be done when the first
1901 static int tsi148_lm_set(struct vme_lm_resource *lm, unsigned long long lm_base, in tsi148_lm_set() argument
1909 tsi148_bridge = lm->parent; in tsi148_lm_set()
1913 mutex_lock(&lm->mtx); in tsi148_lm_set()
1916 for (i = 0; i < lm->monitors; i++) { in tsi148_lm_set()
1918 mutex_unlock(&lm->mtx); in tsi148_lm_set()
1938 mutex_unlock(&lm->mtx); in tsi148_lm_set()
1958 mutex_unlock(&lm->mtx); in tsi148_lm_set()
1966 static int tsi148_lm_get(struct vme_lm_resource *lm, in tsi148_lm_get() argument
1972 bridge = lm->parent->driver_priv; in tsi148_lm_get()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
H A Dpllgt215.c34 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()
/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_mstate_mgr.c86 pr_debug("QAT: LM - Invalid state (magic=%#x, version=%#x, hlen=%u), state_size=%u\n", in adf_mstate_preamble_def_checker()
100 pr_err("QAT: LM - Not enough space for preamble\n"); in adf_mstate_preamble_add()
123 pr_debug("QAT: LM - %s QAT state section %s\n", prefix, sect->id); in adf_mstate_dump_sect()
157 pr_debug("QAT: LM - Not enough space for header of QAT state sect %s\n", id); in adf_mstate_sect_add_header()
180 pr_debug("QAT: LM - Not enough space for QAT state sect %s, requires %u\n", in adf_mstate_sect_add_vreg()
216 pr_debug("QAT: LM - Not enough space for QAT state sect %s, requires %u\n", in adf_mstate_sect_add()
238 …pr_debug("QAT: LM - Corrupted state section (index=%u, size=%u) in state_mgr (size=%u, secs=%u)\n", in adf_mstate_sect_validate()
245 pr_debug("QAT: LM - Scanned section (last child=%s, size=%lu) in state_mgr (size=%u, secs=%u)\n", in adf_mstate_sect_validate()
269 pr_debug("QAT: LM - Dump state preambles\n"); in adf_mstate_mgr_init_from_remote()
/linux/Documentation/hwmon/
H A Duserspace-tools.rst15 Lm-sensors
20 http://www.lm-sensors.org/ or as a package from your Linux distribution.
23 Get lm-sensors from project web site. Please note, you need only userspace
28 0) get lm-sensors userspace utils
H A Dlm25066.rst26 http://www.national.com/pf/LM/LM25066.html
28 http://www.national.com/pf/LM/LM25066A.html
38 http://www.national.com/pf/LM/LM5064.html
48 http://www.national.com/pf/LM/LM5066.html
H A Dlm63.rst14 http://www.national.com/pf/LM/LM63.html
24 http://www.national.com/pf/LM/LM64.html
34 http://www.national.com/pf/LM/LM96163.html
H A Dw83627hf.rst66 [1] http://www.lm-sensors.org/browser/lm-sensors/trunk/doc/vid
76 lm-sensors) before loading the driver:
/linux/tools/perf/pmu-events/arch/x86/sierraforest/
H A Duncore-interconnect.json174 …"BriefDescription": "Counts the number of 1lm or 2lm hit read data returns to egress with any dire…
183 …"BriefDescription": "Counts the number of 1lm or 2lm hit read data returns to egress with director…
192 …"BriefDescription": "Counts the number of 1lm or 2lm hit read data returns to egress with director…
201 …"BriefDescription": "Counts the number of 1lm or 2lm hit read data returns to egress with director…
206 …"PublicDescription": "Counts the number of 1lm or 2lm hit read data returns to egress with direct…
318 …"BriefDescription": "Counts any 1lm or 2lm hit data return that would result in directory update t…
484 "BriefDescription": "Counts reads to 1lm non persistent memory regions",
608 "BriefDescription": "Counts the 2lm reads and WRNI which were a hit",
618 "BriefDescription": "Counts the 2lm reads which were a hit clean",
628 "BriefDescription": "Counts the 2lm reads which were a hit dirty",
[all …]
/linux/Documentation/devicetree/bindings/bus/
H A Darm,integrator-ap-lm.yaml4 $id: http://devicetree.org/schemas/bus/arm,integrator-ap-lm.yaml#
13 site for stacking up to four logic modules (LM) designed specifically for
29 - const: arm,integrator-ap-lm
52 compatible = "arm,integrator-ap-lm";
/linux/tools/perf/pmu-events/arch/x86/graniterapids/
H A Duncore-interconnect.json172 …"BriefDescription": "Counts the number of 1lm or 2lm hit read data returns to egress with any dire…
181 …"BriefDescription": "Counts the number of 1lm or 2lm hit read data returns to egress with director…
190 …"BriefDescription": "Counts the number of 1lm or 2lm hit read data returns to egress with director…
199 …"BriefDescription": "Counts the number of 1lm or 2lm hit read data returns to egress with director…
204 …"PublicDescription": "Counts the number of 1lm or 2lm hit read data returns to egress with direct…
316 …"BriefDescription": "Counts any 1lm or 2lm hit data return that would result in directory update t…
482 "BriefDescription": "Counts reads to 1lm non persistent memory regions",
606 "BriefDescription": "Counts the 2lm reads and WRNI which were a hit",
615 "BriefDescription": "Counts the 2lm reads which were a hit clean",
624 "BriefDescription": "Counts the 2lm reads which were a hit dirty",
[all …]
/linux/arch/mips/cavium-octeon/
H A DKconfig20 CVMSEG LM is a segment that accesses portions of the dcache as a
22 This selects the size of CVMSEG LM, which is in cache blocks. The
23 legally range is from zero to 54 cache blocks (i.e. CVMSEG LM is
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_asm.c133 pr_err("LM offset too large\n"); in nfp_swreg_to_unreg()
143 pr_err("LM offset in inc/dev mode\n"); in nfp_swreg_to_unreg()
150 pr_err("bad LM mode for unrestricted operands %d\n", in nfp_swreg_to_unreg()
220 pr_err("bad LM mode for restricted operands %d\n", in nfp_swreg_to_rereg()
226 pr_err("LM offset too large\n"); in nfp_swreg_to_rereg()
/linux/arch/x86/include/uapi/asm/
H A Dldt.h36 * the kernel must act as though lm == 0, regardless of the
39 unsigned int lm:1; member
/linux/tools/testing/selftests/net/tcp_ao/
H A DMakefile56 $(OUTPUT)/bench-lookups_ipv4: LDLIBS+= -lm
57 $(OUTPUT)/bench-lookups_ipv6: LDLIBS+= -lm

1234567