Searched refs:m2 (Results 1 - 82 of 82) sorted by relevance

/linux-4.4.14/drivers/video/fbdev/omap2/dss/
H A Dhdmi_pll.c47 unsigned n, m, mf, m2, sd; hdmi_pll_compute() local
61 /* adjust m2 so that the clkdco will be high enough */ hdmi_pll_compute()
63 m2 = DIV_ROUND_UP(min_dco, target_bitclk); hdmi_pll_compute()
64 if (m2 == 0) hdmi_pll_compute()
65 m2 = 1; hdmi_pll_compute()
67 target_clkdco = target_bitclk * m2; hdmi_pll_compute()
81 clkout = clkdco / m2; hdmi_pll_compute()
87 n, m, mf, m2, sd); hdmi_pll_compute()
93 pi->mX[0] = m2; hdmi_pll_compute()
H A Ddss.h117 * Type-B PLLs: clkout[0] refers to m2.
/linux-4.4.14/kernel/
H A Dkcmp.c73 static void kcmp_unlock(struct mutex *m1, struct mutex *m2) kcmp_unlock() argument
75 if (likely(m2 != m1)) kcmp_unlock()
76 mutex_unlock(m2); kcmp_unlock()
80 static int kcmp_lock(struct mutex *m1, struct mutex *m2) kcmp_lock() argument
84 if (m2 > m1) kcmp_lock()
85 swap(m1, m2); kcmp_lock()
88 if (!err && likely(m1 != m2)) { kcmp_lock()
89 err = mutex_lock_killable_nested(m2, SINGLE_DEPTH_NESTING); kcmp_lock()
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_fw_defs.h20 IRO[157].m2))
23 IRO[158].m2))
29 (IRO[143].base + ((hcIndex) * IRO[143].m1) + ((sbId) * IRO[143].m2))
32 * IRO[142].m2) + ((sbId) * IRO[142].m3))
39 (IRO[316].base + ((pfId) * IRO[316].m1) + ((iscsiEqId) * IRO[316].m2))
41 (IRO[318].base + ((pfId) * IRO[318].m1) + ((iscsiEqId) * IRO[318].m2))
43 (IRO[317].base + ((pfId) * IRO[317].m1) + ((iscsiEqId) * IRO[317].m2))
45 (IRO[319].base + ((pfId) * IRO[319].m1) + ((iscsiEqId) * IRO[319].m2))
47 (IRO[315].base + ((pfId) * IRO[315].m1) + ((iscsiEqId) * IRO[315].m2))
49 (IRO[321].base + ((pfId) * IRO[321].m1) + ((iscsiEqId) * IRO[321].m2))
51 (IRO[320].base + ((pfId) * IRO[320].m1) + ((iscsiEqId) * IRO[320].m2))
73 (IRO[140].base + ((sbId) * IRO[140].m1) + ((hcIndex) * IRO[140].m2))
79 (IRO[139].base + ((sbId) * IRO[139].m1) + ((hcIndex) * IRO[139].m2))
172 IRO[215].m2))
241 IRO[220].m2))
H A Dbnx2x_init.h540 #define BLOCK_PRTY_INFO(block, en_mask, m1, m1h, m2, m3) \
544 en_mask, {m1, m1h, m2, m3}, #block \
547 #define BLOCK_PRTY_INFO_0(block, en_mask, m1, m1h, m2, m3) \
551 en_mask, {m1, m1h, m2, m3}, #block"_0" \
554 #define BLOCK_PRTY_INFO_1(block, en_mask, m1, m1h, m2, m3) \
558 en_mask, {m1, m1h, m2, m3}, #block"_1" \
H A Dbnx2x.h1299 u16 m2; member in struct:iro
H A Dbnx2x_main.c13340 * {base(24bit), m1(16bit), m2(16bit), m3(16bit), size(16bit) }
13353 target[i].m2 = tmp & 0xffff; bnx2x_prep_iro()
/linux-4.4.14/arch/mips/kernel/
H A Dcpu-bugs64.c49 int m1, m2; mult_sh_align_mod() local
56 * what the values of m1, m2 and s are and what lv2 and p are mult_sh_align_mod()
73 : "=r" (m1), "=r" (m2), "=r" (s) mult_sh_align_mod()
94 : "r" (m1), "r" (m2), "r" (s), "I" (0) mult_sh_align_mod()
96 /* We have to use single integers for m1 and m2 and a double mult_sh_align_mod()
104 : "=r" (m1), "=r" (m2), "=r" (s) mult_sh_align_mod()
105 : "0" (m1), "1" (m2), "2" (s)); mult_sh_align_mod()
107 p = m1 * m2; mult_sh_align_mod()
/linux-4.4.14/drivers/video/fbdev/intelfb/
H A Dintelfbhw.c664 static int calc_vclock(int index, int m1, int m2, int n, int p1, int p2, calc_vclock() argument
670 m = (5 * (m1 + 2)) + (m2 + 2); calc_vclock()
714 int i, m1, m2, n, p1, p2; intelfbhw_print_hw_state() local
727 m2 = (hw->vga0_divisor >> FP_M2_DIVISOR_SHIFT) & FP_DIVISOR_MASK; intelfbhw_print_hw_state()
731 printk(" VGA0: (m1, m2, n, p1, p2) = (%d, %d, %d, %d, %d)\n", intelfbhw_print_hw_state()
732 m1, m2, n, p1, p2); intelfbhw_print_hw_state()
734 calc_vclock(index, m1, m2, n, p1, p2, 0)); intelfbhw_print_hw_state()
738 m2 = (hw->vga1_divisor >> FP_M2_DIVISOR_SHIFT) & FP_DIVISOR_MASK; intelfbhw_print_hw_state()
741 printk(" VGA1: (m1, m2, n, p1, p2) = (%d, %d, %d, %d, %d)\n", intelfbhw_print_hw_state()
742 m1, m2, n, p1, p2); intelfbhw_print_hw_state()
744 calc_vclock(index, m1, m2, n, p1, p2, 0)); intelfbhw_print_hw_state()
755 m2 = (hw->fpa0 >> FP_M2_DIVISOR_SHIFT) & FP_DIVISOR_MASK; intelfbhw_print_hw_state()
759 printk(" PLLA0: (m1, m2, n, p1, p2) = (%d, %d, %d, %d, %d)\n", intelfbhw_print_hw_state()
760 m1, m2, n, p1, p2); intelfbhw_print_hw_state()
762 calc_vclock(index, m1, m2, n, p1, p2, 0)); intelfbhw_print_hw_state()
766 m2 = (hw->fpa1 >> FP_M2_DIVISOR_SHIFT) & FP_DIVISOR_MASK; intelfbhw_print_hw_state()
770 printk(" PLLA1: (m1, m2, n, p1, p2) = (%d, %d, %d, %d, %d)\n", intelfbhw_print_hw_state()
771 m1, m2, n, p1, p2); intelfbhw_print_hw_state()
773 calc_vclock(index, m1, m2, n, p1, p2, 0)); intelfbhw_print_hw_state()
881 int m1, m2; splitm() local
887 for (m2 = pll->min_m2; m2 < pll->max_m2 + 1; m2++) { splitm()
888 testm = (5 * (m1 + 2)) + (m2 + 2); splitm()
891 *retm2 = (unsigned int)m2; splitm()
938 u32 m1, m2, n, p1, p2, n1, testm; calc_pll_params() local
981 if (splitm(index, testm, &m1, &m2)) { calc_pll_params()
1011 splitm(index, m, &m1, &m2); calc_pll_params()
1017 m, m1, m2, n, n1, p, p1, p2, calc_pll_params()
1019 calc_vclock(index, m1, m2, n1, p1, p2, 0), calc_pll_params()
1022 *retm2 = m2; calc_pll_params()
1026 *retclock = calc_vclock(index, m1, m2, n1, p1, p2, 0); calc_pll_params()
1049 u32 m1, m2, n, p1, p2, clock_target, clock; intelfbhw_mode_to_hw() local
1118 if (calc_pll_params(dinfo->pll_index, clock_target, &m1, &m2, intelfbhw_mode_to_hw()
1131 if (check_overflow(m2, FP_DIVISOR_MASK, "PLL M2 parameter")) intelfbhw_mode_to_hw()
1148 (m2 << FP_M2_DIVISOR_SHIFT); intelfbhw_mode_to_hw()
/linux-4.4.14/scripts/dtc/
H A Ddata.c157 struct marker *m2 = d2.markers; data_merge() local
159 d = data_append_markers(data_append_data(d1, d2.val, d2.len), m2); data_merge()
162 for_each_marker(m2) data_merge()
163 m2->offset += d1.len; data_merge()
/linux-4.4.14/drivers/gpu/drm/gma500/
H A Dgma_display.c707 if (clock->m2 < limit->m2.min || limit->m2.max < clock->m2) gma_pll_is_valid()
708 GMA_PLL_INVALID("m2 out of range"); gma_pll_is_valid()
712 if (clock->m1 <= clock->m2 && clock->m1 != 0) gma_pll_is_valid()
713 GMA_PLL_INVALID("m1 <= m2 && m1 != 0"); gma_pll_is_valid()
764 for (clock.m2 = limit->m2.min; gma_find_best_pll()
765 (clock.m2 < clock.m1 || clock.m1 == 0) && gma_find_best_pll()
766 clock.m2 <= limit->m2.max; clock.m2++) { gma_find_best_pll()
H A Dgma_display.h30 int m1, m2; member in struct:gma_clock_t
49 struct gma_range_t dot, vco, n, m, m1, m2, p, p1; member in struct:gma_limit_t
H A Dcdv_intel_display.c51 .m2 = {.min = 58, .max = 158},
63 .m2 = {.min = 58, .max = 158},
78 .m2 = {.min = 65, .max = 130},
90 .m2 = {.min = 58, .max = 158},
102 .m2 = {.min = 65, .max = 130},
114 .m2 = {.min = 58, .max = 162},
281 m |= ((clock->m2) << SB_M_DIVIDER_SHIFT); cdv_dpll_set_clock_cdv()
404 clock->m = clock->m2 + 2; cdv_intel_clock()
425 clock.m2 = 118; cdv_intel_find_dp_pll()
431 clock.m2 = 98; cdv_intel_find_dp_pll()
441 clock.m2 = 160; cdv_intel_find_dp_pll()
447 clock.m2 = 133; cdv_intel_find_dp_pll()
842 clock->m = 5 * (clock->m1 + 2) + (clock->m2 + 2); i8xx_clock()
882 clock.m2 = (fp & FP_M2_DIV_MASK) >> FP_M2_DIV_SHIFT; cdv_intel_crtc_clock_get()
H A Dpsb_intel_display.c42 .m2 = {.min = 3, .max = 7},
54 .m2 = {.min = 3, .max = 7},
79 clock->m = 5 * (clock->m1 + 2) + (clock->m2 + 2); psb_intel_clock()
161 fp = clock.n << 16 | clock.m1 << 8 | clock.m2; psb_intel_crtc_mode_set()
342 clock.m2 = (fp & FP_M2_DIV_MASK) >> FP_M2_DIV_SHIFT; psb_intel_crtc_clock_get()
H A Doaktrail_crtc.c128 DRM_DEBUG_DRIVER("dotclock=%d, m=%d, m1=%d, m2=%d, n=%d, p1=%d, p2=%d\n", mrst_print_pll()
129 clock->dot, clock->m, clock->m1, clock->m2, clock->n, mrst_print_pll()
/linux-4.4.14/arch/blackfin/include/asm/
H A Dcontext.S34 [--sp] = m2;
106 [--sp] = m2;
165 [--sp] = m2;
262 m2 = [sp++]; define
332 m2 = [sp++]; define
H A Ddpmc.h83 [--sp] = m2;
159 m2 = [sp++];
/linux-4.4.14/include/net/netfilter/
H A Dnf_conntrack_tuple.h148 const struct nf_conntrack_tuple_mask *m2) nf_ct_tuple_mask_equal()
150 return (nf_inet_addr_cmp(&m1->src.u3, &m2->src.u3) && nf_ct_tuple_mask_equal()
151 m1->src.u.all == m2->src.u.all); nf_ct_tuple_mask_equal()
147 nf_ct_tuple_mask_equal(const struct nf_conntrack_tuple_mask *m1, const struct nf_conntrack_tuple_mask *m2) nf_ct_tuple_mask_equal() argument
/linux-4.4.14/include/uapi/linux/
H A Dmroute.h51 #define VIFM_SAME(m1,m2) ((m1)==(m2))
H A Dpkt_sched.h389 __u32 m2; /* slope of the second segment in bps */ member in struct:tc_service_curve
/linux-4.4.14/drivers/firmware/efi/
H A Dfake_mem.c48 const struct fake_mem *m2 = x2; cmp_fake_mem() local
50 if (m1->range.start < m2->range.start) cmp_fake_mem()
52 if (m1->range.start > m2->range.start) cmp_fake_mem()
/linux-4.4.14/drivers/ssb/
H A Dmain.c840 u32 n1, n2, clock, m1, m2, m3, mc; ssb_calc_clock_rate() local
881 m2 = ((m & SSB_CHIPCO_CLK_M2) >> SSB_CHIPCO_CLK_M2_SHIFT); ssb_calc_clock_rate()
893 m2 += SSB_CHIPCO_CLK_F5_BIAS; ssb_calc_clock_rate()
895 m2 = clkfactor_f6_resolve(m2); ssb_calc_clock_rate()
904 return (clock / (m1 * m2)); ssb_calc_clock_rate()
906 return (clock / (m1 * m2 * m3)); ssb_calc_clock_rate()
913 m2 += SSB_CHIPCO_CLK_T2M2_BIAS; ssb_calc_clock_rate()
916 SSB_WARN_ON(!((m2 >= 3) && (m2 <= 10))); ssb_calc_clock_rate()
922 clock /= m2; ssb_calc_clock_rate()
H A Ddriver_chipcommon.c404 /* 5350 uses m2 to control mips */ ssb_chipco_get_clockcpu()
/linux-4.4.14/crypto/
H A Dvmac.c90 u64 m2 = MUL32(_i1>>32, _i2); \
94 ADD128(rh, rl, (m2 >> 32), (m2 << 32)); \
218 u64 t1, t2, m1, m2, t; \
224 m2 = MUL32(t1 >> 32, t2); \
229 + (u32)(m2 >> 32); \
230 t += (u64)(u32)m1 + (u32)m2; \
/linux-4.4.14/net/bluetooth/
H A Decc.c229 u64 m2 = a1 * b0; mul_64_64() local
233 m2 += (m0 >> 32); mul_64_64()
234 m2 += m1; mul_64_64()
237 if (m2 < m1) mul_64_64()
240 result.m_low = (m0 & 0xffffffffull) | (m2 << 32); mul_64_64()
241 result.m_high = m3 + (m2 >> 32); mul_64_64()
/linux-4.4.14/drivers/scsi/
H A Dmvumi.h405 int size, m1, m2; \
407 m2 = max(HSP_SIZE(2), HSP_SIZE(4)); \
408 size = max(m1, m2); \
H A Dnsp32_debug.c213 printk(" m2"); show_autophase()
H A Dhpsa_cmd.h557 * Structure for I/O accelerator (mode 2 or m2) commands.
H A Datari_NCR5380.c1391 /* Tnx to Thomas_Roesch@m2.maus.de for finding this! (Roman) */ NCR5380_select()
H A Dqla1280.c2520 printk(KERN_WARNING "m0 %04x, m1 %04x, m2 %04x, m3 %04x\n", qla1280_mailbox_command()
/linux-4.4.14/drivers/media/common/saa7146/
H A Dsaa7146_video.c225 int i,p,m1,m2,m3,o1,o2; saa7146_pgtable_build() local
231 m2 = ((size+(size/4)+PAGE_SIZE)/PAGE_SIZE)-1; saa7146_pgtable_build()
235 DEB_CAP("size:%d, m1:%d, m2:%d, m3:%d, o1:%d, o2:%d\n", saa7146_pgtable_build()
236 size, m1, m2, m3, o1, o2); saa7146_pgtable_build()
242 m2 = ((size+(size/2)+PAGE_SIZE)/PAGE_SIZE)-1; saa7146_pgtable_build()
246 DEB_CAP("size:%d, m1:%d, m2:%d, m3:%d, o1:%d, o2:%d\n", saa7146_pgtable_build()
247 size, m1, m2, m3, o1, o2); saa7146_pgtable_build()
280 for(i = m1; i <= m2 ; i++, ptr2++) { saa7146_pgtable_build()
289 for(i = m2; i <= m3; i++,ptr3++) { saa7146_pgtable_build()
/linux-4.4.14/arch/blackfin/include/uapi/asm/
H A Dptrace.h62 long m2; member in struct:pt_regs
/linux-4.4.14/drivers/media/usb/zr364xx/
H A Dzr364xx.c284 static message m2[] = { variable
297 static message *init[4] = { m0, m1, m2, m2 };
877 m2[1].value = 0xf000 + mode; zr364xx_vidioc_s_fmt_vid_cap()
883 m2[1].value = 0xf000 + 4; zr364xx_vidioc_s_fmt_vid_cap()
886 m2[1].value = 0xf000 + 0; zr364xx_vidioc_s_fmt_vid_cap()
889 m2[1].value = 0xf000 + 1; zr364xx_vidioc_s_fmt_vid_cap()
1479 m2[1].value = 0xf000 + mode; zr364xx_probe()
1485 m2[1].value = 0xf000 + 4; zr364xx_probe()
1488 m2[1].value = 0xf000 + 0; zr364xx_probe()
1491 m2[1].value = 0xf000 + 1; zr364xx_probe()
/linux-4.4.14/arch/blackfin/kernel/
H A Dsignal.c66 RESTORE(m0); RESTORE(m1); RESTORE(m2); RESTORE(m3); rt_restore_sigcontext()
127 SETUP(m0); SETUP(m1); SETUP(m2); SETUP(m3); rt_setup_sigcontext()
H A Dkgdb.c38 gdb_regs[BFIN_M2] = regs->m2; pt_regs_to_gdb_regs()
114 regs->m2 = gdb_regs[BFIN_M2]; gdb_regs_to_pt_regs()
H A Dasm-offsets.c79 DEFINE(PT_M2, offsetof(struct pt_regs, m2)); main()
H A Dtrace.c976 fp->b2, fp->l2, fp->m2, fp->i2); show_regs()
/linux-4.4.14/drivers/net/wireless/iwlegacy/
H A D4965.c689 const struct il_eeprom_calib_measure *m2; il4965_interpolate_chan() local
711 m2 = &(il->calib_info->band_info[s].ch2. il4965_interpolate_chan()
718 m2->actual_pow); il4965_interpolate_chan()
722 m2->gain_idx); il4965_interpolate_chan()
727 m2->temperature); il4965_interpolate_chan()
731 m2->pa_det); il4965_interpolate_chan()
734 m, m1->actual_pow, m2->actual_pow, il4965_interpolate_chan()
737 m, m1->gain_idx, m2->gain_idx, il4965_interpolate_chan()
740 m, m1->pa_det, m2->pa_det, omeas->pa_det); il4965_interpolate_chan()
742 m, m1->temperature, m2->temperature, il4965_interpolate_chan()
/linux-4.4.14/drivers/isdn/hardware/avm/
H A Db1pcmcia.c78 case avm_m2: sprintf(card->name, "m2-%x", port); break; b1pcmcia_add_card()
/linux-4.4.14/arch/xtensa/variants/dc232b/include/variant/
H A Dtie.h98 XCHAL_SA_REG(s,0,0,0,1, m2, 4, 4, 4,0x0222, sr,34 , 32,0,0,0) \
/linux-4.4.14/arch/xtensa/variants/de212/include/variant/
H A Dtie.h95 XCHAL_SA_REG(s,0,0,0,1, m2, 4, 4, 4,0x0222, sr,34 , 32,0,0,0) \
/linux-4.4.14/drivers/clk/shmobile/
H A Dclk-r8a73a4.c49 { "m2", CPG_FRQCRA, 0 },
H A Dclk-sh73a0.c54 { "m2", "pll1", CPG_FRQCRA, 0 },
/linux-4.4.14/tools/testing/selftests/futex/functional/
H A Dfutex_requeue_pi_signal_restart.c167 info("m2:f2: %x\n", f2); main()
/linux-4.4.14/fs/
H A Dpnode.c205 static inline bool peers(struct mount *m1, struct mount *m2) peers() argument
207 return m1->mnt_group_id == m2->mnt_group_id && m1->mnt_group_id; peers()
H A Ddcache.c2722 struct mutex *m1 = NULL, *m2 = NULL; __d_unalias() local
2735 m2 = &alias->d_parent->d_inode->i_mutex; __d_unalias()
2740 if (m2) __d_unalias()
2741 mutex_unlock(m2); __d_unalias()
/linux-4.4.14/net/sched/
H A Dsch_hfsc.c488 isc->sm2 = m2sm(sc->m2); sc2isc()
489 isc->ism2 = m2ism(sc->m2); sc2isc()
628 * for convex, it is a linear curve with slope m2. init_ed()
991 if (rsc->m1 == 0 && rsc->m2 == 0) hfsc_change_class()
997 if (fsc->m1 == 0 && fsc->m2 == 0) hfsc_change_class()
1003 if (usc->m1 == 0 && usc->m2 == 0) hfsc_change_class()
1307 tsc.m2 = sm2m(sc->sm2); hfsc_dump_sc()
/linux-4.4.14/drivers/gpu/drm/i915/
H A Dintel_display.c132 intel_range_t dot, vco, n, m, m1, m2, p, p1; member in struct:intel_limit
242 .m2 = { .min = 6, .max = 16 },
255 .m2 = { .min = 6, .max = 16 },
268 .m2 = { .min = 6, .max = 16 },
281 .m2 = { .min = 3, .max = 7 },
294 .m2 = { .min = 3, .max = 7 },
308 .m2 = { .min = 5, .max = 11 },
323 .m2 = { .min = 5, .max = 11 },
336 .m2 = { .min = 5, .max = 11 },
350 .m2 = { .min = 5, .max = 11 },
364 /* Pineview only has one combined m divider, which we treat as m2. */
366 .m2 = { .min = 0, .max = 254 },
379 .m2 = { .min = 0, .max = 254 },
397 .m2 = { .min = 5, .max = 9 },
410 .m2 = { .min = 5, .max = 9 },
423 .m2 = { .min = 5, .max = 9 },
437 .m2 = { .min = 5, .max = 9 },
450 .m2 = { .min = 5, .max = 9 },
468 .m2 = { .min = 11, .max = 156 },
484 .m2 = { .min = 24 << 22, .max = 175 << 22 },
495 /* FIXME: find real m2 limits */
496 .m2 = { .min = 2 << 22, .max = 255 << 22 },
647 clock->m = clock->m2 + 2; pnv_calc_dpll_params()
659 return 5 * (dpll->m1 + 2) + (dpll->m2 + 2); i9xx_dpll_compute_m()
676 clock->m = clock->m1 * clock->m2; vlv_calc_dpll_params()
688 clock->m = clock->m1 * clock->m2; chv_calc_dpll_params()
713 if (clock->m2 < limit->m2.min || limit->m2.max < clock->m2) intel_PLL_is_valid()
714 INTELPllInvalid("m2 out of range\n"); intel_PLL_is_valid()
719 if (clock->m1 <= clock->m2) intel_PLL_is_valid()
720 INTELPllInvalid("m1 <= m2\n"); intel_PLL_is_valid()
781 for (clock.m2 = limit->m2.min; i9xx_find_best_dpll()
782 clock.m2 <= limit->m2.max; clock.m2++) { i9xx_find_best_dpll()
783 if (clock.m2 >= clock.m1) i9xx_find_best_dpll()
828 for (clock.m2 = limit->m2.min; pnv_find_best_dpll()
829 clock.m2 <= limit->m2.max; clock.m2++) { pnv_find_best_dpll()
877 /* based on hardware requirement, prefere larger m1,m2 */ g4x_find_best_dpll()
880 for (clock.m2 = limit->m2.max; g4x_find_best_dpll()
881 clock.m2 >= limit->m2.min; clock.m2--) { g4x_find_best_dpll()
969 /* based on hardware requirement, prefer bigger m1,m2 values */ vlv_find_best_dpll()
973 clock.m2 = DIV_ROUND_CLOSEST(target * clock.p * clock.n, vlv_find_best_dpll()
1009 uint64_t m2; chv_find_best_dpll() local
1031 m2 = DIV_ROUND_CLOSEST_ULL(((uint64_t)target * clock.p * chv_find_best_dpll()
1034 if (m2 > INT_MAX/clock.m1) chv_find_best_dpll()
1037 clock.m2 = m2; chv_find_best_dpll()
7164 return (1 << dpll->n) << 16 | dpll->m2; pnv_dpll_compute_fp()
7169 return dpll->n << 16 | dpll->m1 << 8 | dpll->m2; i9xx_dpll_compute_fp()
7339 bestm2 = pipe_config->dpll.m2; vlv_prepare_pll()
7443 bestm2_frac = pipe_config->dpll.m2 & 0x3fffff; chv_prepare_pll()
7445 bestm2 = pipe_config->dpll.m2 >> 22; chv_prepare_pll()
7467 /* Feedback post-divider - m2 */ chv_prepare_pll()
7938 * the clock equation: reflck * (5 * (m1 + 2) + (m2 + 2)) / (n +
7953 crtc_state->dpll.m2 = clock.m2;
8022 clock.m2 = mdiv & DPIO_M2DIV_MASK; vlv_crtc_clock_get()
8119 clock.m2 = (pll_dw0 & 0xff) << 22; chv_crtc_clock_get()
8121 clock.m2 |= pll_dw2 & 0x3fffff; chv_crtc_clock_get()
8787 * reflck * (5 * (m1 + 2) + (m2 + 2)) / (n + 2) / p1 / p2. ironlake_compute_clocks()
8939 crtc_state->dpll.m2 = clock.m2; ironlake_crtc_compute_clock()
10563 clock.m2 = (fp & FP_M2_PINEVIEW_DIV_MASK) >> FP_M2_DIV_SHIFT; i9xx_crtc_clock_get()
10566 clock.m2 = (fp & FP_M2_DIV_MASK) >> FP_M2_DIV_SHIFT; i9xx_crtc_clock_get()
12364 unsigned int m2, unsigned int n2, intel_compare_m_n()
12367 if (m == m2 && n == n2) intel_compare_m_n()
12370 if (exact || !m || !n || !m2 || !n2) intel_compare_m_n()
12375 if (m > m2) { intel_compare_m_n()
12376 while (m > m2) { intel_compare_m_n()
12377 m2 <<= 1; intel_compare_m_n()
12380 } else if (m < m2) { intel_compare_m_n()
12381 while (m < m2) { intel_compare_m_n()
12387 return m == m2 && n == n2; intel_compare_m_n()
12363 intel_compare_m_n(unsigned int m, unsigned int n, unsigned int m2, unsigned int n2, bool exact) intel_compare_m_n() argument
H A Dintel_dp.c57 { .p1 = 2, .p2 = 10, .n = 2, .m1 = 23, .m2 = 8 } },
59 { .p1 = 1, .p2 = 10, .n = 1, .m1 = 14, .m2 = 2 } }
64 { .p1 = 2, .p2 = 10, .n = 1, .m1 = 12, .m2 = 9 } },
66 { .p1 = 1, .p2 = 10, .n = 2, .m1 = 14, .m2 = 8 } }
71 { .p1 = 3, .p2 = 2, .n = 5, .m1 = 3, .m2 = 81 } },
73 { .p1 = 2, .p2 = 2, .n = 1, .m1 = 2, .m2 = 27 } }
82 * CHV requires to program fractional division for m2.
83 * m2 is stored in fixed point format using formula below
87 { .p1 = 4, .p2 = 2, .n = 1, .m1 = 2, .m2 = 0x819999a } },
89 { .p1 = 4, .p2 = 1, .n = 1, .m1 = 2, .m2 = 0x6c00000 } },
91 { .p1 = 2, .p2 = 1, .n = 1, .m1 = 2, .m2 = 0x6c00000 } }
H A Dintel_ddi.c1166 clock.m2 = (state->pll0 & PORT_PLL_M2_MASK) << 22; bxt_calc_pll_link()
1168 clock.m2 |= state->pll2 & PORT_PLL_M2_FRAC_MASK; bxt_calc_pll_link()
1683 clk_div.m2_int = best_clock.m2 >> 22; bxt_ddi_pll_select()
1684 clk_div.m2_frac = best_clock.m2 & ((1 << 22) - 1); bxt_ddi_pll_select()
H A Dintel_sdvo.c1114 clock->m2 = 8; i9xx_adjust_sdvo_tv_clock()
1120 clock->m2 = 8; i9xx_adjust_sdvo_tv_clock()
H A Dintel_drv.h238 int m1, m2; member in struct:dpll
/linux-4.4.14/drivers/media/platform/vivid/
H A Dvivid-tpg-colors.c1224 const double m2 = 128.0 * 2523.0 / 4096.0; transfer_rgb_to_smpte2084() local
1230 return pow((c1 + c2 * v) / (1 + c3 * v), m2); transfer_rgb_to_smpte2084()
/linux-4.4.14/net/netfilter/ipvs/
H A Dip_vs_sync.c1207 struct ip_vs_sync_mesg *m2 = (struct ip_vs_sync_mesg *)buffer; ip_vs_process_message() local
1216 if (buflen != ntohs(m2->size)) { ip_vs_process_message()
1221 if (ipvs->bcfg.syncid != 0 && m2->syncid != ipvs->bcfg.syncid) { ip_vs_process_message()
1222 IP_VS_DBG(7, "BACKUP, Ignoring syncid = %d\n", m2->syncid); ip_vs_process_message()
1226 if ((m2->version == SYNC_PROTO_VER) && (m2->reserved == 0) ip_vs_process_message()
1227 && (m2->spare == 0)) { ip_vs_process_message()
1230 nr_conns = m2->nr_conns; ip_vs_process_message()
/linux-4.4.14/drivers/net/ethernet/apm/xgene/
H A Dxgene_enet_hw.h241 __le64 m2; member in struct:xgene_enet_raw_desc
H A Dxgene_enet_main.c416 raw_desc->m2 = cpu_to_le64(SET_VAL(LL_BYTES_LSB, ell_bytes)); xgene_enet_setup_tx_desc()
/linux-4.4.14/drivers/clk/ti/
H A Dgate.c75 /* Parent is the x2 node, get parent of parent for the m2 div */ omap36xx_gate_clk_enable_with_hsdiv_restore()
/linux-4.4.14/drivers/ata/
H A Dsata_mv.c3366 u32 m2, m3; mv6_phy_errata() local
3369 m2 = readl(port_mmio + PHY_MODE2); mv6_phy_errata()
3370 m2 &= ~(1 << 16); mv6_phy_errata()
3371 m2 |= (1 << 31); mv6_phy_errata()
3372 writel(m2, port_mmio + PHY_MODE2); mv6_phy_errata()
3376 m2 = readl(port_mmio + PHY_MODE2); mv6_phy_errata()
3377 m2 &= ~((1 << 16) | (1 << 31)); mv6_phy_errata()
3378 writel(m2, port_mmio + PHY_MODE2); mv6_phy_errata()
3416 m2 = readl(port_mmio + PHY_MODE2); mv6_phy_errata()
3418 m2 &= ~MV_M2_PREAMP_MASK; mv6_phy_errata()
3419 m2 |= hpriv->signal[port].amps; mv6_phy_errata()
3420 m2 |= hpriv->signal[port].pre; mv6_phy_errata()
3421 m2 &= ~(1 << 16); mv6_phy_errata()
3425 m2 &= ~0xC30FF01F; mv6_phy_errata()
3426 m2 |= 0x0000900F; mv6_phy_errata()
3429 writel(m2, port_mmio + PHY_MODE2); mv6_phy_errata()
/linux-4.4.14/arch/xtensa/variants/dc233c/include/variant/
H A Dtie.h118 XCHAL_SA_REG(s,0,0,0,1, m2, 4, 4, 4,0x0222, sr,34 , 32,0,0,0) \
/linux-4.4.14/arch/blackfin/mach-common/
H A Dinterrupt.S48 [--sp] = m2;
/linux-4.4.14/arch/sh/
H A DMakefile33 cflags-$(CONFIG_CPU_SH2) := $(call cc-option,-m2,)
/linux-4.4.14/drivers/video/fbdev/
H A Dsstfb.c292 int m, m2, n, p, best_err, fout; sst_calc_pll() local
305 m2 = (2 * freq * (1 << p) * (n + 2) ) / DAC_FREF - 4 ; sst_calc_pll()
307 m = (m2 % 2 ) ? m2/2+1 : m2/2 ; sst_calc_pll()
/linux-4.4.14/drivers/video/fbdev/matrox/
H A Dmatroxfb_base.c587 unsigned int m2 = PAGE_SIZE; /* or 128 if you do not need PAGE ALIGNED address */ local
591 while (m2 >= m1) m2 -= m1;
592 swap(m1, m2);
594 m2 = linelen * PAGE_SIZE / m2;
595 *ydstorg = m2 = 0x400000 % m2;
596 max_yres = (vramlen - m2) / linelen;
/linux-4.4.14/drivers/dma/
H A Dxgene-dma.c213 __le64 m2; member in struct:xgene_dma_desc_hw
409 return &desc->m2; xgene_dma_lookup_ext8()
441 desc1->m2 |= cpu_to_le64(XGENE_DMA_DESC_DR_BIT); xgene_dma_prep_cpy_desc()
487 desc1->m2 |= cpu_to_le64(XGENE_DMA_DESC_DR_BIT); xgene_dma_prep_xor_desc()
494 desc1->m2 |= cpu_to_le64(xgene_dma_encode_xor_flyby(src_cnt)); xgene_dma_prep_xor_desc()
502 desc1->m2 |= cpu_to_le64((scf[i] << ((i + 1) * 8))); xgene_dma_prep_xor_desc()
/linux-4.4.14/drivers/net/wireless/ath/ath5k/
H A Dani.c162 static const int m2[] = { 127, 0x40 }; ath5k_ani_set_ofdm_weak_signal_detection() local
173 AR5K_PHY_WEAK_OFDM_HIGH_THR_M2, m2[on]); ath5k_ani_set_ofdm_weak_signal_detection()
/linux-4.4.14/include/linux/ssb/
H A Dssb_driver_chipcommon.h436 #define SSB_CHIPCO_CLK_M2 0x00003F00 /* m2 control */
461 #define SSB_CHIPCO_CLK_T2M2_BIAS 3 /* m2 bias */
/linux-4.4.14/drivers/staging/iio/adc/
H A Dmxs-lradc.c560 unsigned pressure, m1, m2; mxs_lradc_read_ts_pressure() local
571 m2 = mxs_lradc_read_raw_channel(lradc, ch2); mxs_lradc_read_ts_pressure()
573 if (m2 == 0) { mxs_lradc_read_ts_pressure()
581 pressure /= m2; mxs_lradc_read_ts_pressure()
/linux-4.4.14/fs/nfs/flexfilelayout/
H A Dflexfilelayout.c140 const struct nfs4_ff_layout_mirror *m2) ff_mirror_match_fh()
144 if (m1->fh_versions_cnt != m2->fh_versions_cnt) ff_mirror_match_fh()
148 for (j = 0; j < m2->fh_versions_cnt; j++) { ff_mirror_match_fh()
150 &m2->fh_versions[j]) == 0) { ff_mirror_match_fh()
139 ff_mirror_match_fh(const struct nfs4_ff_layout_mirror *m1, const struct nfs4_ff_layout_mirror *m2) ff_mirror_match_fh() argument
/linux-4.4.14/drivers/phy/
H A Dphy-ti-pipe3.c399 dev_err(&pdev->dev, "unable to get dpll ref m2 clk\n"); ti_pipe3_probe()
/linux-4.4.14/arch/x86/crypto/
H A Dpoly1305-avx2-x86_64.S93 # h = (h + m) * r => h = (h + m1) * r^4 + m2 * r^3 + m3 * r^2 + m4 * r
H A Dpoly1305-sse2-x86_64.S312 # h = (h + m) * r => h = (h + m1) * r^2 + m2 * r
/linux-4.4.14/arch/arm/mach-omap2/
H A Dmux34xx.c17 #define _OMAP3_MUXENTRY(M0, g, m0, m1, m2, m3, m4, m5, m6, m7) \
21 .muxnames = { m0, m1, m2, m3, m4, m5, m6, m7 }, \
26 #define _OMAP3_MUXENTRY(M0, g, m0, m1, m2, m3, m4, m5, m6, m7) \
811 _OMAP3_BALLENTRY(GPMC_D15, "m2", "k2"),
/linux-4.4.14/drivers/net/wireless/b43legacy/
H A Dphy.c1970 s32 m2; b43legacy_tssi2dbm_entry() local
1977 m2 = max(b43legacy_tssi2dbm_ad(32768 + index * pab2, 256), 1); b43legacy_tssi2dbm_entry()
1982 b43legacy_tssi2dbm_ad(m2 * f, 16) * b43legacy_tssi2dbm_entry()
/linux-4.4.14/sound/soc/codecs/
H A Dmax98090.c1871 int m2; max98090_find_closest_pclk() local
1881 m2 = dmic_table[i].pclk - pclk; max98090_find_closest_pclk()
1882 if (m1 < m2) max98090_find_closest_pclk()
/linux-4.4.14/drivers/staging/vme/devices/
H A Dvme_user.c55 * 2 = /dev/bus/vme/m2 Third master image
/linux-4.4.14/arch/arm/boot/dts/
H A DMakefile632 sun6i-a31s-sinovoip-bpi-m2.dtb \
/linux-4.4.14/drivers/staging/comedi/drivers/
H A Dcb_pcidas64.c734 .name = "pci-das64/m2/16",
1039 .name = "pci-das64/m2/16/jr",
1078 .name = "pci-das64/m2/14",
/linux-4.4.14/drivers/net/wireless/b43/
H A Dphy_g.c2334 s32 m1, m2, f = 256, q, delta; b43_tssi2dbm_entry() local
2338 m2 = max(b43_tssi2dbm_ad(32768 + index * pab2, 256), 1); b43_tssi2dbm_entry()
2343 b43_tssi2dbm_ad(m2 * f, 16) * f, 2048); b43_tssi2dbm_entry()
/linux-4.4.14/drivers/media/usb/gspca/
H A Dvc032x.c2812 u8 m2; member in struct:sensor_info
2818 /* sensorId, I2cAdd, IdAdd, VpId, m1, m2, op */
2859 /* sensorId, I2cAdd, IdAdd, VpId, m1, m2, op */
3034 reg_w(gspca_dev, 0xa0, ptsensor_info->m2, 0xb300); vc032x_probe_sensor()
/linux-4.4.14/drivers/gpu/drm/nouveau/dispnv04/
H A Dcrtc.c159 NV_DEBUG(drm, "vpll: n1 %d n2 %d m1 %d m2 %d log2p %d\n", nv_crtc_calc_state_ext()
/linux-4.4.14/sound/pci/hda/
H A Dpatch_sigmatel.c1686 { .id = STAC_M2, .name = "m2" },
1687 { .id = STAC_M2_2, .name = "m2-2" },
/linux-4.4.14/drivers/net/ethernet/qlogic/qed/
H A Dqed_hsi.h1493 u16 m2 /* multiplier 2 */; member in struct:iro

Completed in 5352 milliseconds