/drivers/input/keyboard/ |
D | lm8323.c | 174 static int lm8323_write(struct lm8323_chip *lm, int len, ...) in lm8323_write() argument 183 dev_err(&lm->client->dev, "tried to send %d bytes\n", len); in lm8323_write() 197 ret = i2c_master_send(lm->client, data, len); in lm8323_write() 199 ret = i2c_master_send(lm->client, data, len); in lm8323_write() 201 dev_err(&lm->client->dev, "sent %d bytes of %d total\n", in lm8323_write() 211 static int lm8323_read(struct lm8323_chip *lm, u8 cmd, u8 *buf, int len) in lm8323_read() argument 219 ret = i2c_master_send(lm->client, &cmd, 1); in lm8323_read() 221 ret = i2c_master_send(lm->client, &cmd, 1); in lm8323_read() 223 dev_err(&lm->client->dev, "sending read cmd 0x%02x failed\n", in lm8323_read() 228 ret = i2c_master_recv(lm->client, buf, len); in lm8323_read() [all …]
|
/drivers/macintosh/ |
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 …]
|
D | windfarm_lm87_sensor.c | 70 struct wf_lm87_sensor *lm = sr->priv; in wf_lm87_get() local 73 if (lm->i2c == NULL) in wf_lm87_get() 79 temp = wf_lm87_read_reg(lm->i2c, LM87_INT_TEMP); in wf_lm87_get() 89 struct wf_lm87_sensor *lm = wf_to_lm87(sr); in wf_lm87_release() local 91 kfree(lm); in wf_lm87_release() 103 struct wf_lm87_sensor *lm; in wf_lm87_probe() local 134 lm = kzalloc(sizeof(struct wf_lm87_sensor), GFP_KERNEL); in wf_lm87_probe() 135 if (lm == NULL) in wf_lm87_probe() 138 lm->i2c = client; in wf_lm87_probe() 139 lm->sens.name = name; in wf_lm87_probe() [all …]
|
/drivers/gpu/drm/msm/mdp/mdp5/ |
D | mdp5_crtc.c | 40 int lm; member 128 flush_mask |= mdp_ctl_flush_mask_lm(mdp5_crtc->lm); in crtc_flush_all() 210 uint32_t lm = mdp5_crtc->lm; in blend_setup() local 283 mdp5_write(mdp5_kms, REG_MDP5_LM_BLEND_OP_MODE(lm, in blend_setup() 285 mdp5_write(mdp5_kms, REG_MDP5_LM_BLEND_FG_ALPHA(lm, in blend_setup() 287 mdp5_write(mdp5_kms, REG_MDP5_LM_BLEND_BG_ALPHA(lm, in blend_setup() 319 mdp5_write(mdp5_kms, REG_MDP5_LM_OUT_SIZE(mdp5_crtc->lm), in mdp5_crtc_mode_set_nofb() 394 if (cnt >= (hw_cfg->lm.nb_stages)) { in mdp5_crtc_atomic_check() 513 int ret, bpp, lm; in mdp5_crtc_cursor_set() local 543 lm = mdp5_crtc->lm; in mdp5_crtc_cursor_set() [all …]
|
D | mdp5_ctl.c | 46 int lm; member 178 struct mdp5_interface *intf, int lm) in mdp5_ctl_set_pipeline() argument 190 ctl->lm = lm; in mdp5_ctl_set_pipeline() 194 ctl->pipeline.start_mask = mdp_ctl_flush_mask_lm(ctl->lm) | in mdp5_ctl_set_pipeline() 244 pipeline->start_mask = mdp_ctl_flush_mask_lm(ctl->lm); in refill_start_mask() 288 int lm = ctl->lm; in mdp5_ctl_set_cursor() local 290 if (unlikely(WARN_ON(lm < 0))) { in mdp5_ctl_set_cursor() 292 ctl->id, lm); in mdp5_ctl_set_cursor() 298 blend_cfg = ctl_read(ctl, REG_MDP5_CTL_LAYER_REG(ctl->id, lm)); in mdp5_ctl_set_cursor() 305 ctl_write(ctl, REG_MDP5_CTL_LAYER_REG(ctl->id, lm), blend_cfg); in mdp5_ctl_set_cursor() [all …]
|
D | mdp5_cfg.c | 71 .lm = { 136 .lm = { 214 .lm = { 285 .lm = { 354 .lm = { 429 .lm = {
|
D | mdp5_kms.h | 159 static inline uint32_t intf2vblank(int lm, struct mdp5_interface *intf) in intf2vblank() argument 169 return MDP5_IRQ_PING_PONG_0_RD_PTR << GET_PING_PONG_ID(lm); in intf2vblank() 183 static inline uint32_t lm2ppdone(int lm) in lm2ppdone() argument 185 return MDP5_IRQ_PING_PONG_0_DONE << GET_PING_PONG_ID(lm); in lm2ppdone()
|
D | mdp5_ctl.h | 41 int lm); 68 u32 mdp_ctl_flush_mask_lm(int lm);
|
D | mdp5_cfg.h | 88 struct mdp5_lm_block lm; member
|
D | mdp5_encoder.c | 236 int lm = mdp5_crtc_get_lm(encoder->crtc); in mdp5_encoder_disable() local 259 mdp_irq_wait(&mdp5_kms->base, intf2vblank(lm, intf)); in mdp5_encoder_disable()
|
D | mdp5.xml.h | 1068 case 0: return (mdp5_cfg->lm.base[0]); in __offset_LM() 1069 case 1: return (mdp5_cfg->lm.base[1]); in __offset_LM() 1070 case 2: return (mdp5_cfg->lm.base[2]); in __offset_LM() 1071 case 3: return (mdp5_cfg->lm.base[3]); in __offset_LM() 1072 case 4: return (mdp5_cfg->lm.base[4]); in __offset_LM() 1073 case 5: return (mdp5_cfg->lm.base[5]); in __offset_LM()
|
D | mdp5_kms.c | 635 dev->mode_config.max_width = config->hw->lm.max_width; in mdp5_kms_init() 636 dev->mode_config.max_height = config->hw->lm.max_height; in mdp5_kms_init()
|
/drivers/vme/ |
D | vme.c | 1209 struct vme_lm_resource *lm = NULL; in vme_lm_request() local 1220 lm = list_entry(lm_pos, in vme_lm_request() 1223 if (lm == NULL) { in vme_lm_request() 1229 mutex_lock(&lm->mtx); in vme_lm_request() 1230 if (lm->locked == 0) { in vme_lm_request() 1231 lm->locked = 1; in vme_lm_request() 1232 mutex_unlock(&lm->mtx); in vme_lm_request() 1233 allocated_lm = lm; in vme_lm_request() 1236 mutex_unlock(&lm->mtx); in vme_lm_request() 1255 mutex_lock(&lm->mtx); in vme_lm_request() [all …]
|
/drivers/vme/bridges/ |
D | vme_ca91cx42.c | 1306 static int ca91cx42_lm_set(struct vme_lm_resource *lm, in ca91cx42_lm_set() argument 1314 bridge = lm->parent->driver_priv; in ca91cx42_lm_set() 1315 dev = lm->parent->parent; in ca91cx42_lm_set() 1325 mutex_lock(&lm->mtx); in ca91cx42_lm_set() 1328 for (i = 0; i < lm->monitors; i++) { in ca91cx42_lm_set() 1330 mutex_unlock(&lm->mtx); in ca91cx42_lm_set() 1348 mutex_unlock(&lm->mtx); in ca91cx42_lm_set() 1366 mutex_unlock(&lm->mtx); in ca91cx42_lm_set() 1374 static int ca91cx42_lm_get(struct vme_lm_resource *lm, in ca91cx42_lm_get() argument 1380 bridge = lm->parent->driver_priv; in ca91cx42_lm_get() [all …]
|
D | vme_tsi148.c | 1935 static int tsi148_lm_set(struct vme_lm_resource *lm, unsigned long long lm_base, in tsi148_lm_set() argument 1943 tsi148_bridge = lm->parent; in tsi148_lm_set() 1947 mutex_lock(&lm->mtx); in tsi148_lm_set() 1950 for (i = 0; i < lm->monitors; i++) { in tsi148_lm_set() 1952 mutex_unlock(&lm->mtx); in tsi148_lm_set() 1973 mutex_unlock(&lm->mtx); in tsi148_lm_set() 1994 mutex_unlock(&lm->mtx); in tsi148_lm_set() 2002 static int tsi148_lm_get(struct vme_lm_resource *lm, in tsi148_lm_get() argument 2008 bridge = lm->parent->driver_priv; in tsi148_lm_get() 2010 mutex_lock(&lm->mtx); in tsi148_lm_get() [all …]
|
/drivers/isdn/mISDN/ |
D | stack.c | 152 int lm; in send_msg_to_layer() local 154 lm = hh->prim & MISDN_LAYERMASK; in send_msg_to_layer() 158 if (lm == 0x1) { in send_msg_to_layer() 164 } else if (lm == 0x2) { in send_msg_to_layer() 169 } else if (lm == 0x4) { in send_msg_to_layer() 178 } else if (lm == 0x8) { in send_msg_to_layer() 179 WARN_ON(lm == 0x8); in send_msg_to_layer()
|
/drivers/usb/wusbcore/ |
D | crypto.c | 98 __be16 lm; member 242 b0.lm = cpu_to_be16(0); /* WUSB1.0[6.5] sez l(m) is 0 */ in wusb_ccm_mac()
|
/drivers/s390/cio/ |
D | cio.h | 23 u32 lm : 2; /* limit mode */ member
|
/drivers/gpu/drm/armada/ |
D | armada_crtc.c | 539 uint32_t lm, rm, tm, bm, val, sclk; in armada_drm_crtc_mode_set() local 552 lm = adj->crtc_htotal - adj->crtc_hsync_end; in armada_drm_crtc_mode_set() 560 adj->crtc_htotal, lm, rm); in armada_drm_crtc_mode_set() 628 armada_reg_queue_set(regs, i, (lm << 16) | rm, LCD_SPU_H_PORCH); in armada_drm_crtc_mode_set()
|
/drivers/i2c/ |
D | Kconfig | 45 Say Y here if you intend to run lm-sensors 3.1.1 or older, or any
|
/drivers/gpu/drm/i915/ |
D | i915_cmd_parser.c | 92 #define CMD(op, opm, f, lm, fl, ...) \ argument 96 .length = { (lm) }, \
|
/drivers/dma/ |
D | imx-sdma.c | 235 u32 lm : 2; member
|
/drivers/hwmon/ |
D | Kconfig | 271 lm-sensors 2.10.1 for proper userspace support.
|