/linux/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 …]
|
/linux/drivers/macintosh/ |
H A D | windfarm_lm75_sensor.c | 45 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 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() 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 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() 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 156 mixer->name = mixer_names[lm->id]; in mdp5_mixer_init() 157 mixer->lm = lm->id; in mdp5_mixer_init() 158 mixer->caps = lm->caps; in mdp5_mixer_init() [all …]
|
H A D | mdp5_crtc.c | 128 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 D | mdp5_ctl.c | 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() 412 r_mixer->lm, r_blend_cfg, r_blend_ext_cfg); in mdp5_ctl_blend() [all …]
|
H A D | mdp5_cfg.c | 62 .lm = { 151 .lm = { 226 .lm = { 321 .lm = { 413 .lm = { 485 .lm = { 573 .lm = { 679 .lm = { 799 .lm = { 885 .lm = { [all …]
|
H A D | mdp5_mixer.h | 15 int lm; /* the LM instance # */ member 29 const struct mdp5_lm_instance *lm);
|
H A D | mdp5_cfg.h | 74 int lm; member 105 struct mdp5_lm_block lm; member
|
/linux/fs/nfs_common/ |
H A D | grace.c | 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() 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 D | vme_fake.c | 381 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() 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() 885 mutex_unlock(&lm->mtx); in fake_lm_set() [all …]
|
H A D | vme.c | 1429 struct vme_lm_resource *lm = NULL; in vme_lm_request() local 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() 1472 mutex_lock(&lm->mtx); in vme_lm_request() [all …]
|
H A D | vme_tsi148.c | 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() 1974 mutex_lock(&lm->mtx); in tsi148_lm_get() [all …]
|
/linux/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_hw_ctl.c | 15 #define CTL_LAYER(lm) \ argument 16 (((lm) == LM_5) ? (0x024) : (((lm) - LM_0) * 0x004)) 17 #define CTL_LAYER_EXT(lm) \ argument 18 (0x40 + (((lm) - LM_0) * 0x004)) 19 #define CTL_LAYER_EXT2(lm) \ argument 20 (0x70 + (((lm) - LM_0) * 0x004)) 21 #define CTL_LAYER_EXT3(lm) \ argument 22 (0xA0 + (((lm) - LM_0) * 0x004)) 23 #define CTL_LAYER_EXT4(lm) \ argument 24 (0xB8 + (((lm) - LM_0) * 0x004)) [all …]
|
/linux/Documentation/hwmon/ |
H A D | userspace-tools.rst | 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
|
/linux/tools/power/cpupower/bench/ |
H A D | Makefile | 15 LIBS = -L../ -L$(OUTPUT) -lm 19 LIBS = -L../ -L$(OUTPUT) -lm -lcpupower
|
/linux/sound/mips/ |
H A D | ad1843.c | 298 int lg, rg, lm, rm; in ad1843_get_gain() local 308 ad1843_read_multi(ad1843, 2, gp->lmute, &lm, gp->rmute, &rm); in ad1843_get_gain() 309 if (lm) in ad1843_get_gain() 330 int lm = (lg == 0) ? 1 : 0; in ad1843_set_gain() local 338 ad1843_write_multi(ad1843, 2, gp->lmute, lm, gp->rmute, rm); in ad1843_set_gain()
|
/linux/tools/testing/selftests/net/tcp_ao/ |
H A D | Makefile | 56 $(OUTPUT)/bench-lookups_ipv4: LDLIBS+= -lm 57 $(OUTPUT)/bench-lookups_ipv6: LDLIBS+= -lm
|
/linux/drivers/isdn/mISDN/ |
H A D | stack.c | 144 int lm; in send_msg_to_layer() local 146 lm = hh->prim & MISDN_LAYERMASK; in send_msg_to_layer() 150 if (lm == 0x1) { in send_msg_to_layer() 156 } else if (lm == 0x2) { in send_msg_to_layer() 161 } else if (lm == 0x4) { in send_msg_to_layer() 170 } else if (lm == 0x8) { in send_msg_to_layer() 171 WARN_ON(lm == 0x8); in send_msg_to_layer()
|
/linux/tools/testing/selftests/fpu/ |
H A D | Makefile | 3 LDLIBS := -lm
|
/linux/drivers/vfio/pci/pds/ |
H A D | Makefile | 9 lm.o \
|
/linux/arch/x86/include/uapi/asm/ |
H A D | ldt.h | 39 unsigned int lm:1; member
|
/linux/tools/testing/selftests/rtc/ |
H A D | Makefile | 3 LDLIBS += -lrt -lpthread -lm
|
/linux/tools/testing/selftests/user_events/ |
H A D | Makefile | 3 LDLIBS += -lrt -lpthread -lm
|
/linux/arch/x86/um/shared/sysdep/ |
H A D | tls.h | 22 unsigned int lm:1; member
|