lm 23 arch/arm/mach-integrator/lm.h #define lm_get_drvdata(lm) dev_get_drvdata(&(lm)->dev) lm 24 arch/arm/mach-integrator/lm.h #define lm_set_drvdata(lm,d) dev_set_drvdata(&(lm)->dev, d) lm 82 arch/sparc/kernel/chmc.c int lm; lm 506 arch/sparc/kernel/chmc.c lower_bits ^= bp->lm; /* What bits are different? */ lm 641 arch/sparc/kernel/chmc.c bp->lm = (val & MEM_DECODE_LM) >> MEM_DECODE_LM_SHIFT; lm 39 arch/x86/include/uapi/asm/ldt.h unsigned int lm:1; lm 216 arch/x86/kernel/tls.c info->lm = desc->l; lm 2581 arch/x86/kvm/x86.c int lm = is_long_mode(vcpu); lm 2582 arch/x86/kvm/x86.c u8 *blob_addr = lm ? (u8 *)(long)kvm->arch.xen_hvm_config.blob_addr_64 lm 2584 arch/x86/kvm/x86.c u8 blob_size = lm ? kvm->arch.xen_hvm_config.blob_size_64 lm 63 arch/x86/um/asm/mm_context.h #define LDT_empty(info) (_LDT_empty(info) && ((info)->lm == 0)) lm 22 arch/x86/um/shared/sysdep/tls.h unsigned int lm:1; lm 243 drivers/dma/imx-sdma.c u32 lm : 2; lm 335 drivers/gpu/drm/armada/armada_crtc.c uint32_t lm, rm, tm, bm, val, sclk; lm 342 drivers/gpu/drm/armada/armada_crtc.c lm = adj->crtc_htotal - adj->crtc_hsync_end; lm 348 drivers/gpu/drm/armada/armada_crtc.c DRM_DEBUG_KMS("lm %d rm %d tm %d bm %d\n", lm, rm, tm, bm); lm 379 drivers/gpu/drm/armada/armada_crtc.c armada_reg_queue_set(regs, i, (lm << 16) | rm, LCD_SPU_H_PORCH); lm 189 drivers/gpu/drm/i915/i915_cmd_parser.c #define CMD(op, opm, f, lm, fl, ...) \ lm 193 drivers/gpu/drm/i915/i915_cmd_parser.c .length = { (lm) }, \ lm 66 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c struct dpu_hw_mixer *lm = mixer->hw_lm; lm 81 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c lm->ops.setup_blend_config(lm, pstate->stage, lm 194 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c struct dpu_hw_mixer *lm; lm 218 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c lm = mixer[i].hw_lm; lm 220 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c lm->ops.setup_alpha_out(lm, mixer[i].mixer_op_mode); lm 11 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c #define CTL_LAYER(lm) \ lm 12 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c (((lm) == LM_5) ? (0x024) : (((lm) - LM_0) * 0x004)) lm 13 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c #define CTL_LAYER_EXT(lm) \ lm 14 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c (0x40 + (((lm) - LM_0) * 0x004)) lm 15 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c #define CTL_LAYER_EXT2(lm) \ lm 16 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c (0x70 + (((lm) - LM_0) * 0x004)) lm 17 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c #define CTL_LAYER_EXT3(lm) \ lm 18 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c (0xA0 + (((lm) - LM_0) * 0x004)) lm 52 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c enum dpu_lm lm) lm 58 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c if (lm == mixer[i].id) { lm 171 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c enum dpu_lm lm) lm 175 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c switch (lm) { lm 292 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c enum dpu_lm lm, struct dpu_hw_stage_cfg *stage_cfg) lm 301 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c stages = _mixer_stages(ctx->mixer_hw_caps, ctx->mixer_count, lm); lm 419 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c DPU_REG_WRITE(c, CTL_LAYER(lm), mixercfg); lm 420 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c DPU_REG_WRITE(c, CTL_LAYER_EXT(lm), mixercfg_ext); lm 421 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c DPU_REG_WRITE(c, CTL_LAYER_EXT2(lm), mixercfg_ext2); lm 422 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c DPU_REG_WRITE(c, CTL_LAYER_EXT3(lm), mixercfg_ext3); lm 150 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.h enum dpu_lm lm, struct dpu_hw_stage_cfg *cfg); lm 192 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_lm.c void dpu_hw_lm_destroy(struct dpu_hw_mixer *lm) lm 194 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_lm.c if (lm) lm 195 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_lm.c dpu_hw_blk_destroy(&lm->base); lm 196 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_lm.c kfree(lm); lm 100 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_lm.h void dpu_hw_lm_destroy(struct dpu_hw_mixer *lm); lm 218 drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c struct dpu_lm_cfg *lm = &cat->mixer[i]; lm 220 drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c if (lm->pingpong == PINGPONG_MAX) { lm 221 drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c DPU_DEBUG("skip mixer %d without pingpong\n", lm->id); lm 233 drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c rm->lm_max_width = lm->sblk->maxwidth; lm 234 drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c } else if (rm->lm_max_width != lm->sblk->maxwidth) { lm 240 drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c if (rm->lm_max_width > lm->sblk->maxwidth) lm 241 drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c rm->lm_max_width = lm->sblk->maxwidth; lm 309 drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c struct dpu_rm_hw_blk *lm, lm 313 drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c const struct dpu_lm_cfg *lm_cfg = to_dpu_hw_mixer(lm->hw)->cap; lm 334 drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c if (RESERVED_BY_OTHER(lm, enc_id)) { lm 353 drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c DPU_DEBUG("lm %d pp %d already reserved\n", lm->id, lm 365 drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c struct dpu_rm_hw_blk *lm[MAX_BLOCKS]; lm 380 drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c memset(&lm, 0, sizeof(lm)); lm 384 drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c lm[lm_count] = iter_i.blk; lm 387 drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c rm, enc_id, reqs, lm[lm_count], lm 406 drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c lm[lm_count] = iter_j.blk; lm 416 drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c for (i = 0; i < ARRAY_SIZE(lm); i++) { lm 417 drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c if (!lm[i]) lm 420 drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c lm[i]->enc_id = enc_id; lm 423 drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c trace_dpu_rm_reserve_lms(lm[i]->id, enc_id, pp[i]->id); lm 1066 drivers/gpu/drm/msm/disp/mdp5/mdp5.xml.h case 0: return (mdp5_cfg->lm.base[0]); lm 1067 drivers/gpu/drm/msm/disp/mdp5/mdp5.xml.h case 1: return (mdp5_cfg->lm.base[1]); lm 1068 drivers/gpu/drm/msm/disp/mdp5/mdp5.xml.h case 2: return (mdp5_cfg->lm.base[2]); lm 1069 drivers/gpu/drm/msm/disp/mdp5/mdp5.xml.h case 3: return (mdp5_cfg->lm.base[3]); lm 1070 drivers/gpu/drm/msm/disp/mdp5/mdp5.xml.h case 4: return (mdp5_cfg->lm.base[4]); lm 1071 drivers/gpu/drm/msm/disp/mdp5/mdp5.xml.h case 5: return (mdp5_cfg->lm.base[5]); lm 62 drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c .lm = { lm 140 drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c .lm = { lm 230 drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c .lm = { lm 317 drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c .lm = { lm 392 drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c .lm = { lm 493 drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c .lm = { lm 597 drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c .lm = { lm 686 drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c .lm = { lm 89 drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.h struct mdp5_lm_block lm; lm 124 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c flush_mask |= mdp_ctl_flush_mask_lm(mixer->lm); lm 128 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c flush_mask |= mdp_ctl_flush_mask_lm(r_mixer->lm); lm 221 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c uint32_t lm = mixer->lm; lm 223 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c uint32_t r_lm = r_mixer ? r_mixer->lm : 0; lm 331 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c mdp5_write(mdp5_kms, REG_MDP5_LM_BLEND_OP_MODE(lm, lm 333 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c mdp5_write(mdp5_kms, REG_MDP5_LM_BLEND_FG_ALPHA(lm, lm 335 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c mdp5_write(mdp5_kms, REG_MDP5_LM_BLEND_BG_ALPHA(lm, lm 347 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c val = mdp5_read(mdp5_kms, REG_MDP5_LM_BLEND_COLOR_OUT(lm)); lm 348 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c mdp5_write(mdp5_kms, REG_MDP5_LM_BLEND_COLOR_OUT(lm), lm 369 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c uint32_t lm = mixer->lm; lm 386 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c mdp5_write(mdp5_kms, REG_MDP5_LM_OUT_SIZE(lm), lm 391 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c val = mdp5_read(mdp5_kms, REG_MDP5_LM_BLEND_COLOR_OUT(lm)); lm 393 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c mdp5_write(mdp5_kms, REG_MDP5_LM_BLEND_COLOR_OUT(lm), val); lm 396 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c u32 r_lm = r_mixer->lm; lm 657 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c if (mode->hdisplay > hw_cfg->lm.max_width) lm 678 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c if ((cnt + start - 1) >= hw_cfg->lm.nb_stages) { lm 686 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c pstates[i].state->stage = hw_cfg->lm.nb_stages; lm 797 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c int lm; lm 801 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c lm = mdp5_cstate->pipeline.mixer->lm; lm 832 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c mdp5_write(mdp5_kms, REG_MDP5_LM_CURSOR_STRIDE(lm), stride); lm 833 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c mdp5_write(mdp5_kms, REG_MDP5_LM_CURSOR_FORMAT(lm), lm 835 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c mdp5_write(mdp5_kms, REG_MDP5_LM_CURSOR_IMG_SIZE(lm), lm 838 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c mdp5_write(mdp5_kms, REG_MDP5_LM_CURSOR_SIZE(lm), lm 841 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c mdp5_write(mdp5_kms, REG_MDP5_LM_CURSOR_START_XY(lm), lm 844 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c mdp5_write(mdp5_kms, REG_MDP5_LM_CURSOR_XY(lm), lm 847 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c mdp5_write(mdp5_kms, REG_MDP5_LM_CURSOR_BASE_ADDR(lm), lm 852 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c mdp5_write(mdp5_kms, REG_MDP5_LM_CURSOR_BLEND_CONFIG(lm), blendcfg); lm 1116 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c mdp5_cstate->pipeline.mixer->lm); lm 269 drivers/gpu/drm/msm/disp/mdp5/mdp5_ctl.c blend_cfg = ctl_read(ctl, REG_MDP5_CTL_LAYER_REG(ctl->id, mixer->lm)); lm 276 drivers/gpu/drm/msm/disp/mdp5/mdp5_ctl.c ctl_write(ctl, REG_MDP5_CTL_LAYER_REG(ctl->id, mixer->lm), blend_cfg); lm 391 drivers/gpu/drm/msm/disp/mdp5/mdp5_ctl.c ctl_write(ctl, REG_MDP5_CTL_LAYER_REG(ctl->id, mixer->lm), blend_cfg); lm 392 drivers/gpu/drm/msm/disp/mdp5/mdp5_ctl.c ctl_write(ctl, REG_MDP5_CTL_LAYER_EXT_REG(ctl->id, mixer->lm), lm 395 drivers/gpu/drm/msm/disp/mdp5/mdp5_ctl.c ctl_write(ctl, REG_MDP5_CTL_LAYER_REG(ctl->id, r_mixer->lm), lm 397 drivers/gpu/drm/msm/disp/mdp5/mdp5_ctl.c ctl_write(ctl, REG_MDP5_CTL_LAYER_EXT_REG(ctl->id, r_mixer->lm), lm 402 drivers/gpu/drm/msm/disp/mdp5/mdp5_ctl.c ctl->pending_ctl_trigger = mdp_ctl_flush_mask_lm(mixer->lm); lm 404 drivers/gpu/drm/msm/disp/mdp5/mdp5_ctl.c ctl->pending_ctl_trigger |= mdp_ctl_flush_mask_lm(r_mixer->lm); lm 406 drivers/gpu/drm/msm/disp/mdp5/mdp5_ctl.c DBG("lm%d: blend config = 0x%08x. ext_cfg = 0x%08x", mixer->lm, lm 410 drivers/gpu/drm/msm/disp/mdp5/mdp5_ctl.c r_mixer->lm, r_blend_cfg, r_blend_ext_cfg); lm 457 drivers/gpu/drm/msm/disp/mdp5/mdp5_ctl.c u32 mdp_ctl_flush_mask_lm(int lm) lm 459 drivers/gpu/drm/msm/disp/mdp5/mdp5_ctl.c switch (lm) { lm 480 drivers/gpu/drm/msm/disp/mdp5/mdp5_ctl.c sw_mask |= mdp_ctl_flush_mask_lm(pipeline->mixer->lm); lm 707 drivers/gpu/drm/msm/disp/mdp5/mdp5_ctl.c ctl_mgr->nlm = hw_cfg->lm.count; lm 66 drivers/gpu/drm/msm/disp/mdp5/mdp5_ctl.h u32 mdp_ctl_flush_mask_lm(int lm); lm 880 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c for (i = 0; i < hw_cfg->lm.count; i++) { lm 883 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c mixer = mdp5_mixer_init(&hw_cfg->lm.instances[i]); lm 19 drivers/gpu/drm/msm/disp/mdp5/mdp5_mixer.c static int get_right_pair_idx(struct mdp5_kms *mdp5_kms, int lm) lm 24 drivers/gpu/drm/msm/disp/mdp5/mdp5_mixer.c pair_lm = lm_right_pair[lm]; lm 31 drivers/gpu/drm/msm/disp/mdp5/mdp5_mixer.c if (mixer->lm == pair_lm) lm 74 drivers/gpu/drm/msm/disp/mdp5/mdp5_mixer.c pair_idx = get_right_pair_idx(mdp5_kms, cur->lm); lm 107 drivers/gpu/drm/msm/disp/mdp5/mdp5_mixer.c DBG("assigning Layer Mixer %d to crtc %s", (*mixer)->lm, crtc->name); lm 111 drivers/gpu/drm/msm/disp/mdp5/mdp5_mixer.c DBG("assigning Right Layer Mixer %d to crtc %s", (*r_mixer)->lm, lm 145 drivers/gpu/drm/msm/disp/mdp5/mdp5_mixer.c struct mdp5_hw_mixer *mdp5_mixer_init(const struct mdp5_lm_instance *lm) lm 153 drivers/gpu/drm/msm/disp/mdp5/mdp5_mixer.c mixer->name = mixer_names[lm->id]; lm 154 drivers/gpu/drm/msm/disp/mdp5/mdp5_mixer.c mixer->lm = lm->id; lm 155 drivers/gpu/drm/msm/disp/mdp5/mdp5_mixer.c mixer->caps = lm->caps; lm 156 drivers/gpu/drm/msm/disp/mdp5/mdp5_mixer.c mixer->pp = lm->pp; lm 157 drivers/gpu/drm/msm/disp/mdp5/mdp5_mixer.c mixer->dspp = lm->dspp; lm 158 drivers/gpu/drm/msm/disp/mdp5/mdp5_mixer.c mixer->flush_mask = mdp_ctl_flush_mask_lm(lm->id); lm 15 drivers/gpu/drm/msm/disp/mdp5/mdp5_mixer.h int lm; /* the LM instance # */ lm 28 drivers/gpu/drm/msm/disp/mdp5/mdp5_mixer.h struct mdp5_hw_mixer *mdp5_mixer_init(const struct mdp5_lm_instance *lm); lm 29 drivers/gpu/drm/msm/disp/mdp5/mdp5_mixer.h void mdp5_mixer_destroy(struct mdp5_hw_mixer *lm); lm 271 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c max_width = config->hw->lm.max_width << 16; lm 272 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c max_height = config->hw->lm.max_height << 16; lm 162 drivers/input/keyboard/lm8323.c static int lm8323_write(struct lm8323_chip *lm, int len, ...) lm 171 drivers/input/keyboard/lm8323.c dev_err(&lm->client->dev, "tried to send %d bytes\n", len); lm 185 drivers/input/keyboard/lm8323.c ret = i2c_master_send(lm->client, data, len); lm 187 drivers/input/keyboard/lm8323.c ret = i2c_master_send(lm->client, data, len); lm 189 drivers/input/keyboard/lm8323.c dev_err(&lm->client->dev, "sent %d bytes of %d total\n", lm 199 drivers/input/keyboard/lm8323.c static int lm8323_read(struct lm8323_chip *lm, u8 cmd, u8 *buf, int len) lm 207 drivers/input/keyboard/lm8323.c ret = i2c_master_send(lm->client, &cmd, 1); lm 209 drivers/input/keyboard/lm8323.c ret = i2c_master_send(lm->client, &cmd, 1); lm 211 drivers/input/keyboard/lm8323.c dev_err(&lm->client->dev, "sending read cmd 0x%02x failed\n", lm 216 drivers/input/keyboard/lm8323.c ret = i2c_master_recv(lm->client, buf, len); lm 218 drivers/input/keyboard/lm8323.c dev_err(&lm->client->dev, "wanted %d bytes, got %d\n", lm 227 drivers/input/keyboard/lm8323.c static void lm8323_set_active_time(struct lm8323_chip *lm, int time) lm 229 drivers/input/keyboard/lm8323.c lm8323_write(lm, 2, LM8323_CMD_SET_ACTIVE, time >> 2); lm 246 drivers/input/keyboard/lm8323.c static void process_keys(struct lm8323_chip *lm) lm 250 drivers/input/keyboard/lm8323.c int old_keys_down = lm->keys_down; lm 258 drivers/input/keyboard/lm8323.c ret = lm8323_read(lm, LM8323_CMD_READ_FIFO, key_fifo, LM8323_FIFO_LEN); lm 261 drivers/input/keyboard/lm8323.c dev_err(&lm->client->dev, "Failed reading fifo \n"); lm 269 drivers/input/keyboard/lm8323.c unsigned short keycode = lm->keymap[key]; lm 271 drivers/input/keyboard/lm8323.c dev_vdbg(&lm->client->dev, "key 0x%02x %s\n", lm 274 drivers/input/keyboard/lm8323.c if (lm->kp_enabled) { lm 275 drivers/input/keyboard/lm8323.c input_event(lm->idev, EV_MSC, MSC_SCAN, key); lm 276 drivers/input/keyboard/lm8323.c input_report_key(lm->idev, keycode, isdown); lm 277 drivers/input/keyboard/lm8323.c input_sync(lm->idev); lm 281 drivers/input/keyboard/lm8323.c lm->keys_down++; lm 283 drivers/input/keyboard/lm8323.c lm->keys_down--; lm 291 drivers/input/keyboard/lm8323.c if (!old_keys_down && lm->keys_down) lm 292 drivers/input/keyboard/lm8323.c lm8323_set_active_time(lm, 0); lm 293 drivers/input/keyboard/lm8323.c if (old_keys_down && !lm->keys_down) lm 294 drivers/input/keyboard/lm8323.c lm8323_set_active_time(lm, lm->active_time); lm 297 drivers/input/keyboard/lm8323.c static void lm8323_process_error(struct lm8323_chip *lm) lm 301 drivers/input/keyboard/lm8323.c if (lm8323_read(lm, LM8323_CMD_READ_ERR, &error, 1) == 1) { lm 303 drivers/input/keyboard/lm8323.c dev_vdbg(&lm->client->dev, "fifo overflow!\n"); lm 305 drivers/input/keyboard/lm8323.c dev_vdbg(&lm->client->dev, lm 308 drivers/input/keyboard/lm8323.c dev_vdbg(&lm->client->dev, lm 311 drivers/input/keyboard/lm8323.c dev_vdbg(&lm->client->dev, "bad command parameter\n"); lm 315 drivers/input/keyboard/lm8323.c static void lm8323_reset(struct lm8323_chip *lm) lm 318 drivers/input/keyboard/lm8323.c lm8323_write(lm, 2, LM8323_CMD_RESET, 0xAA); lm 321 drivers/input/keyboard/lm8323.c static int lm8323_configure(struct lm8323_chip *lm) lm 323 drivers/input/keyboard/lm8323.c int keysize = (lm->size_x << 4) | lm->size_y; lm 325 drivers/input/keyboard/lm8323.c int debounce = lm->debounce_time >> 2; lm 326 drivers/input/keyboard/lm8323.c int active = lm->active_time >> 2; lm 335 drivers/input/keyboard/lm8323.c lm8323_write(lm, 2, LM8323_CMD_WRITE_CFG, 0); lm 336 drivers/input/keyboard/lm8323.c lm8323_write(lm, 2, LM8323_CMD_WRITE_CLOCK, clock); lm 337 drivers/input/keyboard/lm8323.c lm8323_write(lm, 2, LM8323_CMD_SET_KEY_SIZE, keysize); lm 338 drivers/input/keyboard/lm8323.c lm8323_set_active_time(lm, lm->active_time); lm 339 drivers/input/keyboard/lm8323.c lm8323_write(lm, 2, LM8323_CMD_SET_DEBOUNCE, debounce); lm 340 drivers/input/keyboard/lm8323.c lm8323_write(lm, 3, LM8323_CMD_WRITE_PORT_STATE, 0xff, 0xff); lm 341 drivers/input/keyboard/lm8323.c lm8323_write(lm, 3, LM8323_CMD_WRITE_PORT_SEL, 0, 0); lm 366 drivers/input/keyboard/lm8323.c struct lm8323_chip *lm = _lm; lm 370 drivers/input/keyboard/lm8323.c mutex_lock(&lm->lock); lm 372 drivers/input/keyboard/lm8323.c while ((lm8323_read(lm, LM8323_CMD_READ_INT, &ints, 1) == 1) && ints) { lm 374 drivers/input/keyboard/lm8323.c process_keys(lm); lm 377 drivers/input/keyboard/lm8323.c dev_vdbg(&lm->client->dev, "rotator fired\n"); lm 380 drivers/input/keyboard/lm8323.c dev_vdbg(&lm->client->dev, "error!\n"); lm 381 drivers/input/keyboard/lm8323.c lm8323_process_error(lm); lm 384 drivers/input/keyboard/lm8323.c dev_err(&lm->client->dev, "chip lost config; " lm 386 drivers/input/keyboard/lm8323.c lm8323_configure(lm); lm 390 drivers/input/keyboard/lm8323.c dev_vdbg(&lm->client->dev, lm 392 drivers/input/keyboard/lm8323.c pwm_done(&lm->pwm[i]); lm 397 drivers/input/keyboard/lm8323.c mutex_unlock(&lm->lock); lm 405 drivers/input/keyboard/lm8323.c static int lm8323_read_id(struct lm8323_chip *lm, u8 *buf) lm 409 drivers/input/keyboard/lm8323.c bytes = lm8323_read(lm, LM8323_CMD_READ_ID, buf, 2); lm 501 drivers/input/keyboard/lm8323.c struct lm8323_chip *lm = pwm->chip; lm 513 drivers/input/keyboard/lm8323.c mutex_lock(&lm->lock); lm 514 drivers/input/keyboard/lm8323.c if (likely(!lm->pm_suspend)) lm 518 drivers/input/keyboard/lm8323.c mutex_unlock(&lm->lock); lm 555 drivers/input/keyboard/lm8323.c static int init_pwm(struct lm8323_chip *lm, int id, struct device *dev, lm 562 drivers/input/keyboard/lm8323.c pwm = &lm->pwm[id - 1]; lm 572 drivers/input/keyboard/lm8323.c pwm->chip = lm; lm 593 drivers/input/keyboard/lm8323.c struct lm8323_chip *lm = dev_get_drvdata(dev); lm 595 drivers/input/keyboard/lm8323.c return sprintf(buf, "%u\n", !lm->kp_enabled); lm 602 drivers/input/keyboard/lm8323.c struct lm8323_chip *lm = dev_get_drvdata(dev); lm 610 drivers/input/keyboard/lm8323.c mutex_lock(&lm->lock); lm 611 drivers/input/keyboard/lm8323.c lm->kp_enabled = !i; lm 612 drivers/input/keyboard/lm8323.c mutex_unlock(&lm->lock); lm 623 drivers/input/keyboard/lm8323.c struct lm8323_chip *lm; lm 646 drivers/input/keyboard/lm8323.c lm = kzalloc(sizeof *lm, GFP_KERNEL); lm 648 drivers/input/keyboard/lm8323.c if (!lm || !idev) { lm 653 drivers/input/keyboard/lm8323.c lm->client = client; lm 654 drivers/input/keyboard/lm8323.c lm->idev = idev; lm 655 drivers/input/keyboard/lm8323.c mutex_init(&lm->lock); lm 657 drivers/input/keyboard/lm8323.c lm->size_x = pdata->size_x; lm 658 drivers/input/keyboard/lm8323.c lm->size_y = pdata->size_y; lm 660 drivers/input/keyboard/lm8323.c lm->size_x, lm->size_y); lm 662 drivers/input/keyboard/lm8323.c lm->debounce_time = pdata->debounce_time; lm 663 drivers/input/keyboard/lm8323.c lm->active_time = pdata->active_time; lm 665 drivers/input/keyboard/lm8323.c lm8323_reset(lm); lm 670 drivers/input/keyboard/lm8323.c while (lm8323_read(lm, LM8323_CMD_READ_INT, data, 1) == 1) { lm 683 drivers/input/keyboard/lm8323.c lm8323_configure(lm); lm 686 drivers/input/keyboard/lm8323.c if (lm8323_read_id(lm, data) != 0) { lm 693 drivers/input/keyboard/lm8323.c err = init_pwm(lm, pwm + 1, &client->dev, lm 699 drivers/input/keyboard/lm8323.c lm->kp_enabled = true; lm 705 drivers/input/keyboard/lm8323.c snprintf(lm->phys, sizeof(lm->phys), lm 707 drivers/input/keyboard/lm8323.c idev->phys = lm->phys; lm 713 drivers/input/keyboard/lm8323.c lm->keymap[i] = pdata->keymap[i]; lm 727 drivers/input/keyboard/lm8323.c IRQF_TRIGGER_LOW|IRQF_ONESHOT, "lm8323", lm); lm 733 drivers/input/keyboard/lm8323.c i2c_set_clientdata(client, lm); lm 747 drivers/input/keyboard/lm8323.c if (lm->pwm[pwm].enabled) lm 748 drivers/input/keyboard/lm8323.c led_classdev_unregister(&lm->pwm[pwm].cdev); lm 751 drivers/input/keyboard/lm8323.c kfree(lm); lm 757 drivers/input/keyboard/lm8323.c struct lm8323_chip *lm = i2c_get_clientdata(client); lm 761 drivers/input/keyboard/lm8323.c free_irq(client->irq, lm); lm 763 drivers/input/keyboard/lm8323.c input_unregister_device(lm->idev); lm 765 drivers/input/keyboard/lm8323.c device_remove_file(&lm->client->dev, &dev_attr_disable_kp); lm 768 drivers/input/keyboard/lm8323.c if (lm->pwm[i].enabled) lm 769 drivers/input/keyboard/lm8323.c led_classdev_unregister(&lm->pwm[i].cdev); lm 771 drivers/input/keyboard/lm8323.c kfree(lm); lm 784 drivers/input/keyboard/lm8323.c struct lm8323_chip *lm = i2c_get_clientdata(client); lm 790 drivers/input/keyboard/lm8323.c mutex_lock(&lm->lock); lm 791 drivers/input/keyboard/lm8323.c lm->pm_suspend = true; lm 792 drivers/input/keyboard/lm8323.c mutex_unlock(&lm->lock); lm 795 drivers/input/keyboard/lm8323.c if (lm->pwm[i].enabled) lm 796 drivers/input/keyboard/lm8323.c led_classdev_suspend(&lm->pwm[i].cdev); lm 804 drivers/input/keyboard/lm8323.c struct lm8323_chip *lm = i2c_get_clientdata(client); lm 807 drivers/input/keyboard/lm8323.c mutex_lock(&lm->lock); lm 808 drivers/input/keyboard/lm8323.c lm->pm_suspend = false; lm 809 drivers/input/keyboard/lm8323.c mutex_unlock(&lm->lock); lm 812 drivers/input/keyboard/lm8323.c if (lm->pwm[i].enabled) lm 813 drivers/input/keyboard/lm8323.c led_classdev_resume(&lm->pwm[i].cdev); lm 144 drivers/isdn/mISDN/stack.c int lm; lm 146 drivers/isdn/mISDN/stack.c lm = hh->prim & MISDN_LAYERMASK; lm 150 drivers/isdn/mISDN/stack.c if (lm == 0x1) { lm 156 drivers/isdn/mISDN/stack.c } else if (lm == 0x2) { lm 161 drivers/isdn/mISDN/stack.c } else if (lm == 0x4) { lm 170 drivers/isdn/mISDN/stack.c } else if (lm == 0x8) { lm 171 drivers/isdn/mISDN/stack.c WARN_ON(lm == 0x8); lm 409 drivers/lightnvm/pblk-core.c struct pblk_line_meta *lm = &pblk->lm; lm 429 drivers/lightnvm/pblk-core.c } else if (vsc < lm->high_thrs) { lm 434 drivers/lightnvm/pblk-core.c } else if (vsc < lm->mid_thrs) { lm 459 drivers/lightnvm/pblk-core.c lm->high_thrs, lm->mid_thrs); lm 605 drivers/lightnvm/pblk-core.c pblk->lm.sec_per_line, line->cur_sec); lm 621 drivers/lightnvm/pblk-core.c if (line->cur_sec + nr_secs > pblk->lm.sec_per_line) { lm 623 drivers/lightnvm/pblk-core.c nr_secs = pblk->lm.sec_per_line - line->cur_sec; lm 627 drivers/lightnvm/pblk-core.c pblk->lm.sec_per_line, line->cur_sec); lm 656 drivers/lightnvm/pblk-core.c pblk->lm.sec_per_line, line->cur_sec); lm 666 drivers/lightnvm/pblk-core.c struct pblk_line_meta *lm = &pblk->lm; lm 670 drivers/lightnvm/pblk-core.c bit = find_first_zero_bit(line->blk_bitmap, lm->blk_per_line); lm 671 drivers/lightnvm/pblk-core.c if (bit >= lm->blk_per_line) lm 679 drivers/lightnvm/pblk-core.c struct pblk_line_meta *lm = &pblk->lm; lm 692 drivers/lightnvm/pblk-core.c rqd.nr_ppas = lm->smeta_sec; lm 696 drivers/lightnvm/pblk-core.c for (i = 0; i < lm->smeta_sec; i++, paddr++) lm 720 drivers/lightnvm/pblk-core.c struct pblk_line_meta *lm = &pblk->lm; lm 734 drivers/lightnvm/pblk-core.c rqd.nr_ppas = lm->smeta_sec; lm 738 drivers/lightnvm/pblk-core.c for (i = 0; i < lm->smeta_sec; i++, paddr++) { lm 769 drivers/lightnvm/pblk-core.c struct pblk_line_meta *lm = &pblk->lm; lm 776 drivers/lightnvm/pblk-core.c int left_ppas = lm->emeta_sec[0]; lm 887 drivers/lightnvm/pblk-core.c struct pblk_line_meta *lm = &pblk->lm; lm 894 drivers/lightnvm/pblk-core.c bit = find_next_zero_bit(line->erase_bitmap, lm->blk_per_line, lm 896 drivers/lightnvm/pblk-core.c if (bit >= lm->blk_per_line) { lm 920 drivers/lightnvm/pblk-core.c struct pblk_line_meta *lm) lm 941 drivers/lightnvm/pblk-core.c memset(line->smeta, 0, lm->smeta_len); lm 942 drivers/lightnvm/pblk-core.c memset(line->emeta->buf, 0, lm->emeta_len[0]); lm 956 drivers/lightnvm/pblk-core.c struct pblk_line_meta *lm = &pblk->lm; lm 966 drivers/lightnvm/pblk-core.c nr_blk_line = lm->blk_per_line - lm 967 drivers/lightnvm/pblk-core.c bitmap_weight(line->blk_bitmap, lm->blk_per_line); lm 968 drivers/lightnvm/pblk-core.c if (nr_blk_line < lm->min_blk_line) { lm 988 drivers/lightnvm/pblk-core.c bitmap_set(line->lun_bitmap, 0, lm->lun_bitmap_len); lm 1003 drivers/lightnvm/pblk-core.c memcpy(line->lun_bitmap, cur->lun_bitmap, lm->lun_bitmap_len); lm 1036 drivers/lightnvm/pblk-core.c struct pblk_line_meta *lm = &pblk->lm; lm 1043 drivers/lightnvm/pblk-core.c memset(line->map_bitmap, 0, lm->sec_bitmap_len); lm 1064 drivers/lightnvm/pblk-core.c struct pblk_line_meta *lm = &pblk->lm; lm 1070 drivers/lightnvm/pblk-core.c line->sec_in_line = lm->sec_per_line; lm 1073 drivers/lightnvm/pblk-core.c while ((bit = find_next_bit(line->blk_bitmap, lm->blk_per_line, lm 1074 drivers/lightnvm/pblk-core.c bit + 1)) < lm->blk_per_line) { lm 1077 drivers/lightnvm/pblk-core.c lm->sec_per_line); lm 1079 drivers/lightnvm/pblk-core.c lm->sec_per_line); lm 1084 drivers/lightnvm/pblk-core.c bit = find_first_zero_bit(line->blk_bitmap, lm->blk_per_line); lm 1086 drivers/lightnvm/pblk-core.c bitmap_set(line->map_bitmap, off, lm->smeta_sec); lm 1087 drivers/lightnvm/pblk-core.c line->sec_in_line -= lm->smeta_sec; lm 1088 drivers/lightnvm/pblk-core.c line->cur_sec = off + lm->smeta_sec; lm 1095 drivers/lightnvm/pblk-core.c bitmap_copy(line->invalid_bitmap, line->map_bitmap, lm->sec_per_line); lm 1100 drivers/lightnvm/pblk-core.c emeta_secs = lm->emeta_sec[0]; lm 1101 drivers/lightnvm/pblk-core.c off = lm->sec_per_line; lm 1111 drivers/lightnvm/pblk-core.c line->sec_in_line -= lm->emeta_sec[0]; lm 1116 drivers/lightnvm/pblk-core.c if (lm->sec_per_line - line->sec_in_line != lm 1117 drivers/lightnvm/pblk-core.c bitmap_weight(line->invalid_bitmap, lm->sec_per_line)) { lm 1135 drivers/lightnvm/pblk-core.c struct pblk_line_meta *lm = &pblk->lm; lm 1141 drivers/lightnvm/pblk-core.c for (i = 0; i < lm->blk_per_line; i++) { lm 1159 drivers/lightnvm/pblk-core.c struct pblk_line_meta *lm = &pblk->lm; lm 1164 drivers/lightnvm/pblk-core.c bitmap_copy(line->erase_bitmap, line->blk_bitmap, lm->blk_per_line); lm 1180 drivers/lightnvm/pblk-core.c if (blk_in_line < lm->min_blk_line) { lm 1199 drivers/lightnvm/pblk-core.c line->meta_distance = lm->meta_distance; lm 1280 drivers/lightnvm/pblk-core.c struct pblk_line_meta *lm = &pblk->lm; lm 1296 drivers/lightnvm/pblk-core.c bit = find_first_zero_bit(line->blk_bitmap, lm->blk_per_line); lm 1297 drivers/lightnvm/pblk-core.c if (unlikely(bit >= lm->blk_per_line)) { lm 1387 drivers/lightnvm/pblk-core.c pblk_line_setup_metadata(line, l_mg, &pblk->lm); lm 1465 drivers/lightnvm/pblk-core.c struct pblk_line_meta *lm = &pblk->lm; lm 1481 drivers/lightnvm/pblk-core.c while (emeta->mem < lm->emeta_len[0]) { lm 1557 drivers/lightnvm/pblk-core.c pblk_line_setup_metadata(new, l_mg, &pblk->lm); lm 1746 drivers/lightnvm/pblk-core.c struct pblk_line_meta *lm = &pblk->lm; lm 1752 drivers/lightnvm/pblk-core.c WARN(!bitmap_full(line->map_bitmap, lm->sec_per_line), lm 1772 drivers/lightnvm/pblk-core.c for (i = 0; i < lm->blk_per_line; i++) { lm 1791 drivers/lightnvm/pblk-core.c struct pblk_line_meta *lm = &pblk->lm; lm 1794 drivers/lightnvm/pblk-core.c struct wa_counters *wa = emeta_to_wa(lm, emeta_buf); lm 1797 drivers/lightnvm/pblk-core.c memcpy(emeta_to_vsc(pblk, emeta_buf), l_mg->vsc_list, lm->vsc_list_len); lm 1798 drivers/lightnvm/pblk-core.c memcpy(emeta_to_bb(emeta_buf), line->blk_bitmap, lm->blk_bitmap_len); lm 1837 drivers/lightnvm/pblk-core.c struct pblk_line_meta *lm = &pblk->lm; lm 1838 drivers/lightnvm/pblk-core.c unsigned int lba_list_size = lm->emeta_len[2]; lm 135 drivers/lightnvm/pblk-gc.c struct pblk_line_meta *lm = &pblk->lm; lm 136 drivers/lightnvm/pblk-gc.c unsigned int lba_list_size = lm->emeta_len[2]; lm 140 drivers/lightnvm/pblk-gc.c emeta_buf = kvmalloc(lm->emeta_len[0], GFP_KERNEL); lm 182 drivers/lightnvm/pblk-gc.c struct pblk_line_meta *lm = &pblk->lm; lm 192 drivers/lightnvm/pblk-gc.c invalid_bitmap = kmalloc(lm->sec_bitmap_len, GFP_KERNEL); lm 209 drivers/lightnvm/pblk-gc.c bitmap_copy(invalid_bitmap, line->invalid_bitmap, lm->sec_per_line); lm 226 drivers/lightnvm/pblk-gc.c bit = find_next_zero_bit(invalid_bitmap, lm->sec_per_line, lm 622 drivers/lightnvm/pblk-init.c struct pblk_line_meta *lm = &pblk->lm; lm 628 drivers/lightnvm/pblk-init.c lm->emeta_sec[1] = DIV_ROUND_UP( lm 629 drivers/lightnvm/pblk-init.c sizeof(struct line_emeta) + lm->blk_bitmap_len + lm 631 drivers/lightnvm/pblk-init.c lm->emeta_len[1] = lm->emeta_sec[1] * geo->csecs; lm 634 drivers/lightnvm/pblk-init.c lm->dsec_per_line = lm->sec_per_line - lm->emeta_sec[0]; lm 635 drivers/lightnvm/pblk-init.c lm->emeta_sec[2] = DIV_ROUND_UP(lm->dsec_per_line * sizeof(u64), lm 637 drivers/lightnvm/pblk-init.c lm->emeta_len[2] = lm->emeta_sec[2] * geo->csecs; lm 639 drivers/lightnvm/pblk-init.c lm->emeta_sec[3] = DIV_ROUND_UP(l_mg->nr_lines * sizeof(u32), lm 641 drivers/lightnvm/pblk-init.c lm->emeta_len[3] = lm->emeta_sec[3] * geo->csecs; lm 643 drivers/lightnvm/pblk-init.c lm->vsc_list_len = l_mg->nr_lines * sizeof(u32); lm 645 drivers/lightnvm/pblk-init.c return (lm->emeta_len[1] + lm->emeta_len[2] + lm->emeta_len[3]); lm 652 drivers/lightnvm/pblk-init.c struct pblk_line_meta *lm = &pblk->lm; lm 692 drivers/lightnvm/pblk-init.c sec_meta = (lm->smeta_sec + lm->emeta_sec[0]) * l_mg->nr_free_lines; lm 709 drivers/lightnvm/pblk-init.c struct pblk_line_meta *lm = &pblk->lm; lm 712 drivers/lightnvm/pblk-init.c for (i = 0; i < lm->blk_per_line; i++) { lm 755 drivers/lightnvm/pblk-init.c struct pblk_line_meta *lm = &pblk->lm; lm 768 drivers/lightnvm/pblk-init.c chk_in_line = lm->blk_per_line - nr_bad_chks; lm 769 drivers/lightnvm/pblk-init.c if (nr_bad_chks < 0 || nr_bad_chks > lm->blk_per_line || lm 770 drivers/lightnvm/pblk-init.c chk_in_line < lm->min_blk_line) { lm 785 drivers/lightnvm/pblk-init.c struct pblk_line_meta *lm = &pblk->lm; lm 787 drivers/lightnvm/pblk-init.c line->blk_bitmap = kzalloc(lm->blk_bitmap_len, GFP_KERNEL); lm 791 drivers/lightnvm/pblk-init.c line->erase_bitmap = kzalloc(lm->blk_bitmap_len, GFP_KERNEL); lm 796 drivers/lightnvm/pblk-init.c line->chks = kmalloc_array(lm->blk_per_line, lm 821 drivers/lightnvm/pblk-init.c struct pblk_line_meta *lm = &pblk->lm; lm 855 drivers/lightnvm/pblk-init.c l_mg->bb_template = kzalloc(lm->sec_bitmap_len, GFP_KERNEL); lm 859 drivers/lightnvm/pblk-init.c l_mg->bb_aux = kzalloc(lm->sec_bitmap_len, GFP_KERNEL); lm 867 drivers/lightnvm/pblk-init.c l_mg->sline_meta[i] = kmalloc(lm->smeta_len, GFP_KERNEL); lm 873 drivers/lightnvm/pblk-init.c lm->sec_bitmap_len, 0, 0, NULL); lm 893 drivers/lightnvm/pblk-init.c emeta->buf = kvmalloc(lm->emeta_len[0], GFP_KERNEL); lm 899 drivers/lightnvm/pblk-init.c emeta->nr_entries = lm->emeta_sec[0]; lm 907 drivers/lightnvm/pblk-init.c for (i = 0; i < lm->sec_per_line; i += bb_distance) lm 937 drivers/lightnvm/pblk-init.c struct pblk_line_meta *lm = &pblk->lm; lm 941 drivers/lightnvm/pblk-init.c lm->sec_per_line = geo->clba * geo->all_luns; lm 942 drivers/lightnvm/pblk-init.c lm->blk_per_line = geo->all_luns; lm 943 drivers/lightnvm/pblk-init.c lm->blk_bitmap_len = BITS_TO_LONGS(geo->all_luns) * sizeof(long); lm 944 drivers/lightnvm/pblk-init.c lm->sec_bitmap_len = BITS_TO_LONGS(lm->sec_per_line) * sizeof(long); lm 945 drivers/lightnvm/pblk-init.c lm->lun_bitmap_len = BITS_TO_LONGS(geo->all_luns) * sizeof(long); lm 946 drivers/lightnvm/pblk-init.c lm->mid_thrs = lm->sec_per_line / 2; lm 947 drivers/lightnvm/pblk-init.c lm->high_thrs = lm->sec_per_line / 4; lm 948 drivers/lightnvm/pblk-init.c lm->meta_distance = (geo->all_luns / 2) * pblk->min_write_pgs; lm 955 drivers/lightnvm/pblk-init.c lm->smeta_sec = i * geo->ws_opt; lm 956 drivers/lightnvm/pblk-init.c lm->smeta_len = lm->smeta_sec * geo->csecs; lm 958 drivers/lightnvm/pblk-init.c smeta_len = sizeof(struct line_smeta) + lm->lun_bitmap_len; lm 959 drivers/lightnvm/pblk-init.c if (smeta_len > lm->smeta_len) { lm 969 drivers/lightnvm/pblk-init.c lm->emeta_sec[0] = i * geo->ws_opt; lm 970 drivers/lightnvm/pblk-init.c lm->emeta_len[0] = lm->emeta_sec[0] * geo->csecs; lm 973 drivers/lightnvm/pblk-init.c if (emeta_len > lm->emeta_len[0]) { lm 978 drivers/lightnvm/pblk-init.c lm->emeta_bb = geo->all_luns > i ? geo->all_luns - i : 0; lm 980 drivers/lightnvm/pblk-init.c lm->min_blk_line = 1; lm 982 drivers/lightnvm/pblk-init.c lm->min_blk_line += DIV_ROUND_UP(lm->smeta_sec + lm 983 drivers/lightnvm/pblk-init.c lm->emeta_sec[0], geo->clba); lm 985 drivers/lightnvm/pblk-init.c if (lm->min_blk_line > lm->blk_per_line) { lm 987 drivers/lightnvm/pblk-init.c lm->blk_per_line); lm 128 drivers/lightnvm/pblk-map.c struct pblk_line_meta *lm = &pblk->lm; lm 187 drivers/lightnvm/pblk-map.c bitmap_weight(d_line->blk_bitmap, lm->blk_per_line)) { lm 192 drivers/lightnvm/pblk-map.c lm->blk_per_line, bit + 1); lm 193 drivers/lightnvm/pblk-map.c if (bit >= lm->blk_per_line) lm 42 drivers/lightnvm/pblk-recovery.c struct pblk_line_meta *lm = &pblk->lm; lm 54 drivers/lightnvm/pblk-recovery.c data_start = pblk_line_smeta_start(pblk, line) + lm->smeta_sec; lm 118 drivers/lightnvm/pblk-recovery.c struct pblk_line_meta *lm = &pblk->lm; lm 119 drivers/lightnvm/pblk-recovery.c int nr_bb = bitmap_weight(line->blk_bitmap, lm->blk_per_line); lm 124 drivers/lightnvm/pblk-recovery.c for (i = 0; i < lm->blk_per_line; i++) { lm 134 drivers/lightnvm/pblk-recovery.c if (lm->blk_per_line - nr_bb != valid_chunks) lm 137 drivers/lightnvm/pblk-recovery.c pblk_update_line_wp(pblk, line, written_secs - lm->smeta_sec); lm 321 drivers/lightnvm/pblk-recovery.c struct pblk_line_meta *lm = &pblk->lm; lm 322 drivers/lightnvm/pblk-recovery.c int blk_in_line = lm->blk_per_line; lm 358 drivers/lightnvm/pblk-recovery.c struct pblk_line_meta *lm = &pblk->lm; lm 366 drivers/lightnvm/pblk-recovery.c u64 paddr = pblk_line_smeta_start(pblk, line) + lm->smeta_sec; lm 371 drivers/lightnvm/pblk-recovery.c u64 left_ppas = pblk_sec_in_open_line(pblk, line) - lm->smeta_sec; lm 547 drivers/lightnvm/pblk-recovery.c struct pblk_line_meta *lm = &pblk->lm; lm 553 drivers/lightnvm/pblk-recovery.c emeta_secs = lm->emeta_sec[0]; lm 554 drivers/lightnvm/pblk-recovery.c emeta_start = lm->sec_per_line; lm 590 drivers/lightnvm/pblk-recovery.c struct pblk_line_meta *lm = &pblk->lm; lm 592 drivers/lightnvm/pblk-recovery.c struct wa_counters *wa = emeta_to_wa(lm, emeta); lm 614 drivers/lightnvm/pblk-recovery.c struct pblk_line_meta *lm = &pblk->lm; lm 624 drivers/lightnvm/pblk-recovery.c smeta_blk = find_first_zero_bit(line->blk_bitmap, lm->blk_per_line); lm 625 drivers/lightnvm/pblk-recovery.c if (smeta_blk >= lm->blk_per_line) lm 633 drivers/lightnvm/pblk-recovery.c && chunk->wp >= lm->smeta_sec)) lm 641 drivers/lightnvm/pblk-recovery.c struct pblk_line_meta *lm = &pblk->lm; lm 644 drivers/lightnvm/pblk-recovery.c for (i = 0; i < lm->blk_per_line; i++) lm 653 drivers/lightnvm/pblk-recovery.c struct pblk_line_meta *lm = &pblk->lm; lm 682 drivers/lightnvm/pblk-recovery.c memset(smeta, 0, lm->smeta_len); lm 761 drivers/lightnvm/pblk-recovery.c memset(line->emeta->buf, 0, lm->emeta_len[0]); lm 216 drivers/lightnvm/pblk-rl.c struct pblk_line_meta *lm = &pblk->lm; lm 221 drivers/lightnvm/pblk-rl.c sec_meta = (lm->smeta_sec + lm->emeta_sec[0]) * l_mg->nr_free_lines; lm 224 drivers/lightnvm/pblk-rl.c rl->high = pblk->op_blks - blk_meta - lm->blk_per_line; lm 168 drivers/lightnvm/pblk-sysfs.c struct pblk_line_meta *lm = &pblk->lm; lm 270 drivers/lightnvm/pblk-sysfs.c lm->sec_per_line); lm 283 drivers/lightnvm/pblk-sysfs.c geo->all_luns, lm->blk_per_line, lm->sec_per_line); lm 303 drivers/lightnvm/pblk-sysfs.c map_weight, lm->sec_per_line, lm 313 drivers/lightnvm/pblk-sysfs.c struct pblk_line_meta *lm = &pblk->lm; lm 318 drivers/lightnvm/pblk-sysfs.c lm->smeta_len, lm->smeta_sec); lm 321 drivers/lightnvm/pblk-sysfs.c lm->emeta_len[0], lm->emeta_sec[0], lm 322 drivers/lightnvm/pblk-sysfs.c lm->emeta_bb); lm 325 drivers/lightnvm/pblk-sysfs.c lm->sec_bitmap_len, lm 326 drivers/lightnvm/pblk-sysfs.c lm->blk_bitmap_len, lm 327 drivers/lightnvm/pblk-sysfs.c lm->lun_bitmap_len); lm 330 drivers/lightnvm/pblk-sysfs.c lm->blk_per_line, lm 331 drivers/lightnvm/pblk-sysfs.c lm->sec_per_line, lm 318 drivers/lightnvm/pblk-write.c struct pblk_line_meta *lm = &pblk->lm; lm 327 drivers/lightnvm/pblk-write.c lun_bitmap = kzalloc(lm->lun_bitmap_len, GFP_KERNEL); lm 372 drivers/lightnvm/pblk-write.c struct pblk_line_meta *lm = &pblk->lm; lm 408 drivers/lightnvm/pblk-write.c if (emeta->mem >= lm->emeta_len[0]) lm 472 drivers/lightnvm/pblk-write.c struct pblk_line_meta *lm = &pblk->lm; lm 482 drivers/lightnvm/pblk-write.c if (meta_line->emeta->mem >= lm->emeta_len[0]) { lm 602 drivers/lightnvm/pblk.h struct pblk_line_meta lm; /* Line metadata */ lm 939 drivers/lightnvm/pblk.h static inline void *emeta_to_wa(struct pblk_line_meta *lm, lm 942 drivers/lightnvm/pblk.h return emeta->bb_bitmap + lm->blk_bitmap_len; lm 947 drivers/lightnvm/pblk.h return ((void *)emeta + pblk->lm.emeta_len[1]); lm 952 drivers/lightnvm/pblk.h return (emeta_to_lbas(pblk, emeta) + pblk->lm.emeta_len[2]); lm 1161 drivers/lightnvm/pblk.h struct pblk_line_meta *lm = &pblk->lm; lm 1166 drivers/lightnvm/pblk.h lm->smeta_len - lm 1175 drivers/lightnvm/pblk.h struct pblk_line_meta *lm = &pblk->lm; lm 1180 drivers/lightnvm/pblk.h lm->emeta_len[0] - lm 1300 drivers/lightnvm/pblk.h struct pblk_line_meta *lm = &pblk->lm; lm 1302 drivers/lightnvm/pblk.h if (paddr > lm->sec_per_line) lm 1332 drivers/lightnvm/pblk.h struct pblk_line_meta *lm = &pblk->lm; lm 1337 drivers/lightnvm/pblk.h return DIV_ROUND_UP(100, pblk->op) * lm->blk_per_line; lm 46 drivers/macintosh/windfarm_lm75_sensor.c struct wf_lm75_sensor *lm = wf_to_lm75(sr); lm 49 drivers/macintosh/windfarm_lm75_sensor.c if (lm->i2c == NULL) lm 53 drivers/macintosh/windfarm_lm75_sensor.c if (!lm->inited) { lm 54 drivers/macintosh/windfarm_lm75_sensor.c u8 cfg_new, cfg = (u8)i2c_smbus_read_byte_data(lm->i2c, 1); lm 63 drivers/macintosh/windfarm_lm75_sensor.c i2c_smbus_write_byte_data(lm->i2c, 1, cfg_new); lm 64 drivers/macintosh/windfarm_lm75_sensor.c lm->inited = 1; lm 71 drivers/macintosh/windfarm_lm75_sensor.c data = (s32)le16_to_cpu(i2c_smbus_read_word_data(lm->i2c, 0)); lm 80 drivers/macintosh/windfarm_lm75_sensor.c struct wf_lm75_sensor *lm = wf_to_lm75(sr); lm 82 drivers/macintosh/windfarm_lm75_sensor.c kfree(lm); lm 94 drivers/macintosh/windfarm_lm75_sensor.c struct wf_lm75_sensor *lm; lm 134 drivers/macintosh/windfarm_lm75_sensor.c lm = kzalloc(sizeof(struct wf_lm75_sensor), GFP_KERNEL); lm 135 drivers/macintosh/windfarm_lm75_sensor.c if (lm == NULL) lm 138 drivers/macintosh/windfarm_lm75_sensor.c lm->inited = 0; lm 139 drivers/macintosh/windfarm_lm75_sensor.c lm->ds1775 = ds1775; lm 140 drivers/macintosh/windfarm_lm75_sensor.c lm->i2c = client; lm 141 drivers/macintosh/windfarm_lm75_sensor.c lm->sens.name = name; lm 142 drivers/macintosh/windfarm_lm75_sensor.c lm->sens.ops = &wf_lm75_ops; lm 143 drivers/macintosh/windfarm_lm75_sensor.c i2c_set_clientdata(client, lm); lm 145 drivers/macintosh/windfarm_lm75_sensor.c rc = wf_register_sensor(&lm->sens); lm 147 drivers/macintosh/windfarm_lm75_sensor.c kfree(lm); lm 153 drivers/macintosh/windfarm_lm75_sensor.c struct wf_lm75_sensor *lm = i2c_get_clientdata(client); lm 155 drivers/macintosh/windfarm_lm75_sensor.c DBG("wf_lm75: i2c detatch called for %s\n", lm->sens.name); lm 158 drivers/macintosh/windfarm_lm75_sensor.c lm->i2c = NULL; lm 161 drivers/macintosh/windfarm_lm75_sensor.c wf_unregister_sensor(&lm->sens); lm 68 drivers/macintosh/windfarm_lm87_sensor.c struct wf_lm87_sensor *lm = sr->priv; lm 71 drivers/macintosh/windfarm_lm87_sensor.c if (lm->i2c == NULL) lm 77 drivers/macintosh/windfarm_lm87_sensor.c temp = wf_lm87_read_reg(lm->i2c, LM87_INT_TEMP); lm 87 drivers/macintosh/windfarm_lm87_sensor.c struct wf_lm87_sensor *lm = wf_to_lm87(sr); lm 89 drivers/macintosh/windfarm_lm87_sensor.c kfree(lm); lm 101 drivers/macintosh/windfarm_lm87_sensor.c struct wf_lm87_sensor *lm; lm 132 drivers/macintosh/windfarm_lm87_sensor.c lm = kzalloc(sizeof(struct wf_lm87_sensor), GFP_KERNEL); lm 133 drivers/macintosh/windfarm_lm87_sensor.c if (lm == NULL) lm 136 drivers/macintosh/windfarm_lm87_sensor.c lm->i2c = client; lm 137 drivers/macintosh/windfarm_lm87_sensor.c lm->sens.name = name; lm 138 drivers/macintosh/windfarm_lm87_sensor.c lm->sens.ops = &wf_lm87_ops; lm 139 drivers/macintosh/windfarm_lm87_sensor.c lm->sens.priv = lm; lm 140 drivers/macintosh/windfarm_lm87_sensor.c i2c_set_clientdata(client, lm); lm 142 drivers/macintosh/windfarm_lm87_sensor.c rc = wf_register_sensor(&lm->sens); lm 144 drivers/macintosh/windfarm_lm87_sensor.c kfree(lm); lm 150 drivers/macintosh/windfarm_lm87_sensor.c struct wf_lm87_sensor *lm = i2c_get_clientdata(client); lm 152 drivers/macintosh/windfarm_lm87_sensor.c DBG("wf_lm87: i2c detatch called for %s\n", lm->sens.name); lm 155 drivers/macintosh/windfarm_lm87_sensor.c lm->i2c = NULL; lm 158 drivers/macintosh/windfarm_lm87_sensor.c wf_unregister_sensor(&lm->sens); lm 24 drivers/s390/cio/cio.h u32 lm : 2; /* limit mode */ lm 88 drivers/staging/wusbcore/crypto.c __be16 lm; lm 200 drivers/staging/wusbcore/crypto.c scratch->b0.lm = cpu_to_be16(0); /* WUSB1.0[6.5] sez l(m) is 0 */ lm 1293 drivers/vme/bridges/vme_ca91cx42.c static int ca91cx42_lm_set(struct vme_lm_resource *lm, lm 1301 drivers/vme/bridges/vme_ca91cx42.c bridge = lm->parent->driver_priv; lm 1302 drivers/vme/bridges/vme_ca91cx42.c dev = lm->parent->parent; lm 1312 drivers/vme/bridges/vme_ca91cx42.c mutex_lock(&lm->mtx); lm 1315 drivers/vme/bridges/vme_ca91cx42.c for (i = 0; i < lm->monitors; i++) { lm 1317 drivers/vme/bridges/vme_ca91cx42.c mutex_unlock(&lm->mtx); lm 1335 drivers/vme/bridges/vme_ca91cx42.c mutex_unlock(&lm->mtx); lm 1353 drivers/vme/bridges/vme_ca91cx42.c mutex_unlock(&lm->mtx); lm 1361 drivers/vme/bridges/vme_ca91cx42.c static int ca91cx42_lm_get(struct vme_lm_resource *lm, lm 1367 drivers/vme/bridges/vme_ca91cx42.c bridge = lm->parent->driver_priv; lm 1369 drivers/vme/bridges/vme_ca91cx42.c mutex_lock(&lm->mtx); lm 1394 drivers/vme/bridges/vme_ca91cx42.c mutex_unlock(&lm->mtx); lm 1404 drivers/vme/bridges/vme_ca91cx42.c static int ca91cx42_lm_attach(struct vme_lm_resource *lm, int monitor, lm 1411 drivers/vme/bridges/vme_ca91cx42.c bridge = lm->parent->driver_priv; lm 1412 drivers/vme/bridges/vme_ca91cx42.c dev = lm->parent->parent; lm 1414 drivers/vme/bridges/vme_ca91cx42.c mutex_lock(&lm->mtx); lm 1419 drivers/vme/bridges/vme_ca91cx42.c mutex_unlock(&lm->mtx); lm 1426 drivers/vme/bridges/vme_ca91cx42.c mutex_unlock(&lm->mtx); lm 1446 drivers/vme/bridges/vme_ca91cx42.c mutex_unlock(&lm->mtx); lm 1454 drivers/vme/bridges/vme_ca91cx42.c static int ca91cx42_lm_detach(struct vme_lm_resource *lm, int monitor) lm 1459 drivers/vme/bridges/vme_ca91cx42.c bridge = lm->parent->driver_priv; lm 1461 drivers/vme/bridges/vme_ca91cx42.c mutex_lock(&lm->mtx); lm 1483 drivers/vme/bridges/vme_ca91cx42.c mutex_unlock(&lm->mtx); lm 1606 drivers/vme/bridges/vme_ca91cx42.c struct vme_lm_resource *lm; lm 1740 drivers/vme/bridges/vme_ca91cx42.c lm = kmalloc(sizeof(*lm), GFP_KERNEL); lm 1741 drivers/vme/bridges/vme_ca91cx42.c if (!lm) { lm 1745 drivers/vme/bridges/vme_ca91cx42.c lm->parent = ca91cx42_bridge; lm 1746 drivers/vme/bridges/vme_ca91cx42.c mutex_init(&lm->mtx); lm 1747 drivers/vme/bridges/vme_ca91cx42.c lm->locked = 0; lm 1748 drivers/vme/bridges/vme_ca91cx42.c lm->number = 1; lm 1749 drivers/vme/bridges/vme_ca91cx42.c lm->monitors = 4; lm 1750 drivers/vme/bridges/vme_ca91cx42.c list_add_tail(&lm->list, &ca91cx42_bridge->lm_resources); lm 1799 drivers/vme/bridges/vme_ca91cx42.c lm = list_entry(pos, struct vme_lm_resource, list); lm 1801 drivers/vme/bridges/vme_ca91cx42.c kfree(lm); lm 1849 drivers/vme/bridges/vme_ca91cx42.c struct vme_lm_resource *lm; lm 1883 drivers/vme/bridges/vme_ca91cx42.c lm = list_entry(pos, struct vme_lm_resource, list); lm 1885 drivers/vme/bridges/vme_ca91cx42.c kfree(lm); lm 384 drivers/vme/bridges/vme_fake.c struct vme_lm_resource *lm; lm 392 drivers/vme/bridges/vme_fake.c lm = list_entry(pos, struct vme_lm_resource, list); lm 404 drivers/vme/bridges/vme_fake.c for (i = 0; i < lm->monitors; i++) { lm 856 drivers/vme/bridges/vme_fake.c static int fake_lm_set(struct vme_lm_resource *lm, unsigned long long lm_base, lm 863 drivers/vme/bridges/vme_fake.c fake_bridge = lm->parent; lm 867 drivers/vme/bridges/vme_fake.c mutex_lock(&lm->mtx); lm 870 drivers/vme/bridges/vme_fake.c for (i = 0; i < lm->monitors; i++) { lm 872 drivers/vme/bridges/vme_fake.c mutex_unlock(&lm->mtx); lm 885 drivers/vme/bridges/vme_fake.c mutex_unlock(&lm->mtx); lm 894 drivers/vme/bridges/vme_fake.c mutex_unlock(&lm->mtx); lm 902 drivers/vme/bridges/vme_fake.c static int fake_lm_get(struct vme_lm_resource *lm, lm 907 drivers/vme/bridges/vme_fake.c bridge = lm->parent->driver_priv; lm 909 drivers/vme/bridges/vme_fake.c mutex_lock(&lm->mtx); lm 915 drivers/vme/bridges/vme_fake.c mutex_unlock(&lm->mtx); lm 925 drivers/vme/bridges/vme_fake.c static int fake_lm_attach(struct vme_lm_resource *lm, int monitor, lm 931 drivers/vme/bridges/vme_fake.c fake_bridge = lm->parent; lm 935 drivers/vme/bridges/vme_fake.c mutex_lock(&lm->mtx); lm 939 drivers/vme/bridges/vme_fake.c mutex_unlock(&lm->mtx); lm 946 drivers/vme/bridges/vme_fake.c mutex_unlock(&lm->mtx); lm 958 drivers/vme/bridges/vme_fake.c mutex_unlock(&lm->mtx); lm 966 drivers/vme/bridges/vme_fake.c static int fake_lm_detach(struct vme_lm_resource *lm, int monitor) lm 972 drivers/vme/bridges/vme_fake.c bridge = lm->parent->driver_priv; lm 974 drivers/vme/bridges/vme_fake.c mutex_lock(&lm->mtx); lm 982 drivers/vme/bridges/vme_fake.c for (i = 0; i < lm->monitors; i++) { lm 990 drivers/vme/bridges/vme_fake.c mutex_unlock(&lm->mtx); lm 1072 drivers/vme/bridges/vme_fake.c struct vme_lm_resource *lm; lm 1157 drivers/vme/bridges/vme_fake.c lm = kmalloc(sizeof(*lm), GFP_KERNEL); lm 1158 drivers/vme/bridges/vme_fake.c if (!lm) { lm 1162 drivers/vme/bridges/vme_fake.c lm->parent = fake_bridge; lm 1163 drivers/vme/bridges/vme_fake.c mutex_init(&lm->mtx); lm 1164 drivers/vme/bridges/vme_fake.c lm->locked = 0; lm 1165 drivers/vme/bridges/vme_fake.c lm->number = 1; lm 1166 drivers/vme/bridges/vme_fake.c lm->monitors = 4; lm 1167 drivers/vme/bridges/vme_fake.c list_add_tail(&lm->list, &fake_bridge->lm_resources); lm 1213 drivers/vme/bridges/vme_fake.c lm = list_entry(pos, struct vme_lm_resource, list); lm 1215 drivers/vme/bridges/vme_fake.c kfree(lm); lm 1926 drivers/vme/bridges/vme_tsi148.c static int tsi148_lm_set(struct vme_lm_resource *lm, unsigned long long lm_base, lm 1934 drivers/vme/bridges/vme_tsi148.c tsi148_bridge = lm->parent; lm 1938 drivers/vme/bridges/vme_tsi148.c mutex_lock(&lm->mtx); lm 1941 drivers/vme/bridges/vme_tsi148.c for (i = 0; i < lm->monitors; i++) { lm 1943 drivers/vme/bridges/vme_tsi148.c mutex_unlock(&lm->mtx); lm 1964 drivers/vme/bridges/vme_tsi148.c mutex_unlock(&lm->mtx); lm 1985 drivers/vme/bridges/vme_tsi148.c mutex_unlock(&lm->mtx); lm 1993 drivers/vme/bridges/vme_tsi148.c static int tsi148_lm_get(struct vme_lm_resource *lm, lm 1999 drivers/vme/bridges/vme_tsi148.c bridge = lm->parent->driver_priv; lm 2001 drivers/vme/bridges/vme_tsi148.c mutex_lock(&lm->mtx); lm 2034 drivers/vme/bridges/vme_tsi148.c mutex_unlock(&lm->mtx); lm 2044 drivers/vme/bridges/vme_tsi148.c static int tsi148_lm_attach(struct vme_lm_resource *lm, int monitor, lm 2051 drivers/vme/bridges/vme_tsi148.c tsi148_bridge = lm->parent; lm 2055 drivers/vme/bridges/vme_tsi148.c mutex_lock(&lm->mtx); lm 2060 drivers/vme/bridges/vme_tsi148.c mutex_unlock(&lm->mtx); lm 2068 drivers/vme/bridges/vme_tsi148.c mutex_unlock(&lm->mtx); lm 2092 drivers/vme/bridges/vme_tsi148.c mutex_unlock(&lm->mtx); lm 2100 drivers/vme/bridges/vme_tsi148.c static int tsi148_lm_detach(struct vme_lm_resource *lm, int monitor) lm 2105 drivers/vme/bridges/vme_tsi148.c bridge = lm->parent->driver_priv; lm 2107 drivers/vme/bridges/vme_tsi148.c mutex_lock(&lm->mtx); lm 2133 drivers/vme/bridges/vme_tsi148.c mutex_unlock(&lm->mtx); lm 2285 drivers/vme/bridges/vme_tsi148.c struct vme_lm_resource *lm; lm 2447 drivers/vme/bridges/vme_tsi148.c lm = kmalloc(sizeof(*lm), GFP_KERNEL); lm 2448 drivers/vme/bridges/vme_tsi148.c if (!lm) { lm 2452 drivers/vme/bridges/vme_tsi148.c lm->parent = tsi148_bridge; lm 2453 drivers/vme/bridges/vme_tsi148.c mutex_init(&lm->mtx); lm 2454 drivers/vme/bridges/vme_tsi148.c lm->locked = 0; lm 2455 drivers/vme/bridges/vme_tsi148.c lm->number = 1; lm 2456 drivers/vme/bridges/vme_tsi148.c lm->monitors = 4; lm 2457 drivers/vme/bridges/vme_tsi148.c list_add_tail(&lm->list, &tsi148_bridge->lm_resources); lm 2520 drivers/vme/bridges/vme_tsi148.c lm = list_entry(pos, struct vme_lm_resource, list); lm 2522 drivers/vme/bridges/vme_tsi148.c kfree(lm); lm 1479 drivers/vme/vme.c struct vme_lm_resource *lm = NULL; lm 1490 drivers/vme/vme.c lm = list_entry(lm_pos, lm 1492 drivers/vme/vme.c if (!lm) { lm 1498 drivers/vme/vme.c mutex_lock(&lm->mtx); lm 1499 drivers/vme/vme.c if (lm->locked == 0) { lm 1500 drivers/vme/vme.c lm->locked = 1; lm 1501 drivers/vme/vme.c mutex_unlock(&lm->mtx); lm 1502 drivers/vme/vme.c allocated_lm = lm; lm 1505 drivers/vme/vme.c mutex_unlock(&lm->mtx); lm 1523 drivers/vme/vme.c mutex_lock(&lm->mtx); lm 1524 drivers/vme/vme.c lm->locked = 0; lm 1525 drivers/vme/vme.c mutex_unlock(&lm->mtx); lm 1545 drivers/vme/vme.c struct vme_lm_resource *lm; lm 1552 drivers/vme/vme.c lm = list_entry(resource->entry, struct vme_lm_resource, list); lm 1554 drivers/vme/vme.c return lm->monitors; lm 1576 drivers/vme/vme.c struct vme_lm_resource *lm; lm 1583 drivers/vme/vme.c lm = list_entry(resource->entry, struct vme_lm_resource, list); lm 1590 drivers/vme/vme.c return bridge->lm_set(lm, lm_base, aspace, cycle); lm 1612 drivers/vme/vme.c struct vme_lm_resource *lm; lm 1619 drivers/vme/vme.c lm = list_entry(resource->entry, struct vme_lm_resource, list); lm 1626 drivers/vme/vme.c return bridge->lm_get(lm, lm_base, aspace, cycle); lm 1649 drivers/vme/vme.c struct vme_lm_resource *lm; lm 1656 drivers/vme/vme.c lm = list_entry(resource->entry, struct vme_lm_resource, list); lm 1663 drivers/vme/vme.c return bridge->lm_attach(lm, monitor, callback, data); lm 1682 drivers/vme/vme.c struct vme_lm_resource *lm; lm 1689 drivers/vme/vme.c lm = list_entry(resource->entry, struct vme_lm_resource, list); lm 1696 drivers/vme/vme.c return bridge->lm_detach(lm, monitor); lm 1714 drivers/vme/vme.c struct vme_lm_resource *lm; lm 1721 drivers/vme/vme.c lm = list_entry(resource->entry, struct vme_lm_resource, list); lm 1723 drivers/vme/vme.c mutex_lock(&lm->mtx); lm 1730 drivers/vme/vme.c lm->locked = 0; lm 1732 drivers/vme/vme.c mutex_unlock(&lm->mtx); lm 935 fs/gfs2/ops_fstype.c const struct lm_lockops *lm; lm 944 fs/gfs2/ops_fstype.c lm = &nolock_ops; lm 948 fs/gfs2/ops_fstype.c lm = &gfs2_dlm_ops; lm 957 fs/gfs2/ops_fstype.c ls->ls_ops = lm; lm 967 fs/gfs2/ops_fstype.c token = match_token(o, *lm->lm_tokens, tmp); lm 994 fs/gfs2/ops_fstype.c if (lm->lm_mount == NULL) { lm 999 fs/gfs2/ops_fstype.c ret = lm->lm_mount(sdp, table); lm 1008 fs/gfs2/ops_fstype.c const struct lm_lockops *lm = sdp->sd_lockstruct.ls_ops; lm 1010 fs/gfs2/ops_fstype.c lm->lm_unmount) lm 1011 fs/gfs2/ops_fstype.c lm->lm_unmount(sdp); lm 39 fs/gfs2/util.c const struct lm_lockops *lm = ls->ls_ops; lm 67 fs/gfs2/util.c if (lm->lm_unmount) { lm 69 fs/gfs2/util.c lm->lm_unmount(sdp); lm 29 fs/nfs_common/grace.c locks_start_grace(struct net *net, struct lock_manager *lm) lm 34 fs/nfs_common/grace.c if (list_empty(&lm->list)) lm 35 fs/nfs_common/grace.c list_add(&lm->list, grace_list); lm 55 fs/nfs_common/grace.c locks_end_grace(struct lock_manager *lm) lm 58 fs/nfs_common/grace.c list_del_init(&lm->list); lm 67 fs/nfs_common/grace.c struct lock_manager *lm; lm 72 fs/nfs_common/grace.c list_for_each_entry(lm, grace_list, list) { lm 73 fs/nfs_common/grace.c if (lm->block_opens) lm 1085 net/bluetooth/sco.c int lm = 0; lm 1097 net/bluetooth/sco.c lm |= HCI_LM_ACCEPT; lm 1106 net/bluetooth/sco.c return lm; lm 298 sound/mips/ad1843.c int lg, rg, lm, rm; lm 308 sound/mips/ad1843.c ad1843_read_multi(ad1843, 2, gp->lmute, &lm, gp->rmute, &rm); lm 309 sound/mips/ad1843.c if (lm) lm 330 sound/mips/ad1843.c int lm = (lg == 0) ? 1 : 0; lm 338 sound/mips/ad1843.c ad1843_write_multi(ad1843, 2, gp->lmute, lm, gp->rmute, rm); lm 321 tools/testing/selftests/x86/ldt_gdt.c desc.lm = 1; lm 324 tools/testing/selftests/x86/ldt_gdt.c desc.lm = 0;