Home
last modified time | relevance | path

Searched refs:mfi (Results 1 – 25 of 27) sorted by relevance

12

/openbmc/linux/drivers/usb/misc/
H A Dapple-mfi-fastcharge.c50 static int apple_mfi_fc_set_charge_type(struct mfi_device *mfi, in apple_mfi_fc_set_charge_type() argument
57 if (mfi->charge_type == val->intval) { in apple_mfi_fc_set_charge_type()
58 dev_dbg(&mfi->udev->dev, "charge type %d already set\n", in apple_mfi_fc_set_charge_type()
59 mfi->charge_type); in apple_mfi_fc_set_charge_type()
75 retval = usb_control_msg(mfi->udev, usb_sndctrlpipe(mfi->udev, 0), in apple_mfi_fc_set_charge_type()
82 dev_dbg(&mfi->udev->dev, "retval = %d\n", retval); in apple_mfi_fc_set_charge_type()
86 mfi->charge_type = val->intval; in apple_mfi_fc_set_charge_type()
95 struct mfi_device *mfi = power_supply_get_drvdata(psy); in apple_mfi_fc_get_property() local
97 dev_dbg(&mfi->udev->dev, "prop: %d\n", psp); in apple_mfi_fc_get_property()
101 val->intval = mfi->charge_type; in apple_mfi_fc_get_property()
[all …]
H A DMakefile13 obj-$(CONFIG_APPLE_MFI_FASTCHARGE) += apple-mfi-fastcharge.o
/openbmc/u-boot/arch/arm/cpu/arm920t/imx/
H A Dspeed.c27 u32 mfi = (spctl0 >> 10) & 0xf; in get_systemPLLCLK() local
32 mfi = mfi<=5 ? 5 : mfi; in get_systemPLLCLK()
34 return (2*(CONFIG_SYSPLL_CLK_FREQ>>10)*( (mfi<<10) + (mfn<<10)/(mfd+1)))/(pd+1); in get_systemPLLCLK()
41 u32 mfi = (mpctl0 >> 10) & 0xf; in get_mcuPLLCLK() local
46 mfi = mfi<=5 ? 5 : mfi; in get_mcuPLLCLK()
48 return (2*(CONFIG_SYS_CLK_FREQ>>10)*( (mfi<<10) + (mfn<<10)/(mfd+1)))/(pd+1); in get_mcuPLLCLK()
/openbmc/linux/drivers/clk/imx/
H A Dclk-pllv2.c81 long mfi, mfn, mfd, pdf, ref_clk; in __clk_pllv2_recalc_rate() local
88 mfi = (dp_op & MXC_PLL_DP_OP_MFI_MASK) >> MXC_PLL_DP_OP_MFI_OFFSET; in __clk_pllv2_recalc_rate()
89 mfi = (mfi <= 5) ? 5 : mfi; in __clk_pllv2_recalc_rate()
102 temp = (ref_clk * mfi) - temp; in __clk_pllv2_recalc_rate()
104 temp = (ref_clk * mfi) + temp; in __clk_pllv2_recalc_rate()
130 long mfi, pdf, mfn, mfd = 999999; in __clk_pllv2_set_rate() local
135 pdf = mfi = -1; in __clk_pllv2_set_rate()
136 while (++pdf < 16 && mfi < 5) in __clk_pllv2_set_rate()
137 mfi = rate * (pdf+1) / quad_parent_rate; in __clk_pllv2_set_rate()
138 if (mfi > 15) in __clk_pllv2_set_rate()
[all …]
H A Dclk-pllv1.c58 unsigned int mfi, mfn, mfd, pd; in clk_pllv1_recalc_rate() local
74 mfi = (reg >> 10) & 0xf; in clk_pllv1_recalc_rate()
79 mfi = mfi <= 5 ? 5 : mfi; in clk_pllv1_recalc_rate()
103 ull = (rate * mfi) - ull; in clk_pllv1_recalc_rate()
105 ull = (rate * mfi) + ull; in clk_pllv1_recalc_rate()
H A Dclk-fracn-gppll.c49 .mfi = (_mfi), \
59 .mfi = (_mfi), \
156 u32 mfi, mfn, mfd, rdiv, odiv; in clk_fracn_gppll_recalc_rate() local
168 mfi = FIELD_GET(PLL_MFI_MASK, pll_div); in clk_fracn_gppll_recalc_rate()
180 if (rate_table[i].mfn == mfn && rate_table[i].mfi == mfi && in clk_fracn_gppll_recalc_rate()
205 fvco = fvco * mfi; in clk_fracn_gppll_recalc_rate()
209 fvco = fvco * mfi * mfd + fvco * mfn; in clk_fracn_gppll_recalc_rate()
253 FIELD_PREP(PLL_MFI_MASK, rate->mfi); in clk_fracn_gppll_set_rate()
H A Dclk-pllv3.c304 u32 mfi; /* integer part, can be 20 or 22 */ member
318 return (parent_rate * mf.mfi) + temp64; in clk_pllv3_vf610_mf_to_rate()
327 mf.mfi = (rate >= 22 * parent_rate) ? 22 : 20; in clk_pllv3_vf610_rate_to_mf()
330 if (rate <= parent_rate * mf.mfi) in clk_pllv3_vf610_rate_to_mf()
332 else if (rate >= parent_rate * (mf.mfi + 1)) in clk_pllv3_vf610_rate_to_mf()
336 temp64 = rate - parent_rate * mf.mfi; in clk_pllv3_vf610_rate_to_mf()
353 mf.mfi = (readl_relaxed(pll->base) & pll->div_mask) ? 22 : 20; in clk_pllv3_vf610_recalc_rate()
375 if (mf.mfi == 20) in clk_pllv3_vf610_set_rate()
H A Dclk.h82 unsigned int mfi; member
/openbmc/linux/drivers/mtd/
H A Dmtdchar.c41 struct mtd_file_info *mfi = file->private_data; in mtdchar_lseek() local
42 return fixed_size_llseek(file, offset, orig, mfi->mtd->size); in mtdchar_lseek()
51 struct mtd_file_info *mfi; in mtdchar_open() local
75 mfi = kzalloc(sizeof(*mfi), GFP_KERNEL); in mtdchar_open()
76 if (!mfi) { in mtdchar_open()
80 mfi->mtd = mtd; in mtdchar_open()
81 file->private_data = mfi; in mtdchar_open()
93 struct mtd_file_info *mfi = file->private_data; in mtdchar_close() local
94 struct mtd_info *mtd = mfi->mtd; in mtdchar_close()
104 kfree(mfi); in mtdchar_close()
[all …]
/openbmc/linux/arch/powerpc/boot/
H A Dmpc8xx.c24 int mfi, mfn, mfd, pdf; in mpc885_get_clock() local
35 mfi = (plprcr >> 16) & 15; in mpc885_get_clock()
36 if (mfi < 5) { in mpc885_get_clock()
38 mfi); in mpc885_get_clock()
39 mfi = 5; in mpc885_get_clock()
46 ret = crystal * mfi; in mpc885_get_clock()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lag/
H A Dmp.c105 mp->fib.mfi = fi; in mlx5_lag_fib_set()
160 if (mp->fib.mfi == fi) in mlx5_lag_fib_route_event()
161 mp->fib.mfi = NULL; in mlx5_lag_fib_route_event()
166 if (mp->fib.mfi && mp->fib.mfi != fi && in mlx5_lag_fib_route_event()
177 mp->fib.mfi = NULL; in mlx5_lag_fib_route_event()
200 if (!mp->fib.mfi && !__mlx5_lag_is_active(ldev)) { in mlx5_lag_fib_route_event()
219 if (!mp->fib.mfi || mp->fib.mfi != fi) in mlx5_lag_fib_nexthop_event()
343 ldev->lag_mp.fib.mfi = NULL; in mlx5_lag_mp_reset()
354 mp->fib.mfi = NULL; in mlx5_lag_mp_init()
384 mp->fib.mfi = NULL; in mlx5_lag_mp_cleanup()
H A Dmp.h19 const void *mfi; /* used in tracking fib events */ member
/openbmc/u-boot/arch/arm/mach-imx/mx5/
H A Dclock.c62 u32 mfi; member
162 uint32_t ctrl, op, mfd, mfn, mfi, pdf, ret; in decode_pll() local
181 mfi = MXC_DPLLC_OP_MFI_RD(op); in decode_pll()
184 if (mfi < 5) in decode_pll()
185 mfi = 5; in decode_pll()
201 ret = refclk * mfi; in decode_pll()
553 u64 pd, mfi = 1, mfn, mfd, t1; in calc_pll_params() local
584 mfi = t1; in calc_pll_params()
585 if (mfi > PLL_MFI_MAX) in calc_pll_params()
587 else if (mfi < 5) in calc_pll_params()
[all …]
/openbmc/qemu/hw/misc/
H A Dimx_ccm.c52 uint32_t mfi = MFI(pllreg); /* Integer part */ in imx_ccm_calc_pll() local
56 if (mfi < 5) { in imx_ccm_calc_pll()
57 mfi = 5; in imx_ccm_calc_pll()
64 freq = ((2 * (base_freq >> 10) * (mfi * mfd + mfn)) / in imx_ccm_calc_pll()
/openbmc/linux/net/mptcp/
H A Dsockopt.c1196 static int mptcp_get_full_info(struct mptcp_full_info *mfi, in mptcp_get_full_info() argument
1211 memset(mfi, 0, sizeof(*mfi)); in mptcp_get_full_info()
1212 if (copy_from_user(mfi, optval, MIN_FULL_INFO_OPTLEN_SIZE)) in mptcp_get_full_info()
1215 if (mfi->size_tcpinfo_kernel || in mptcp_get_full_info()
1216 mfi->size_sfinfo_kernel || in mptcp_get_full_info()
1217 mfi->num_subflows) in mptcp_get_full_info()
1220 if (mfi->size_sfinfo_user > INT_MAX || in mptcp_get_full_info()
1221 mfi->size_tcpinfo_user > INT_MAX) in mptcp_get_full_info()
1227 static int mptcp_put_full_info(struct mptcp_full_info *mfi, in mptcp_put_full_info() argument
1236 if (copy_to_user(optval, mfi, copylen)) in mptcp_put_full_info()
[all …]
/openbmc/linux/tools/testing/selftests/net/mptcp/
H A Dmptcp_sockopt.c499 struct mptcp_full_info mfi; in do_getsockopt_mptcp_full_info() local
503 memset(&mfi, 0, data_size); in do_getsockopt_mptcp_full_info()
507 mfi.size_tcpinfo_user = sizeof(struct tcp_info); in do_getsockopt_mptcp_full_info()
508 mfi.size_sfinfo_user = sizeof(struct mptcp_subflow_info); in do_getsockopt_mptcp_full_info()
509 mfi.size_arrays_user = 2; in do_getsockopt_mptcp_full_info()
510 mfi.subflow_info = (unsigned long)&sfinfo[0]; in do_getsockopt_mptcp_full_info()
511 mfi.tcp_info = (unsigned long)&tcp_info[0]; in do_getsockopt_mptcp_full_info()
514 ret = getsockopt(fd, SOL_MPTCP, MPTCP_FULL_INFO, &mfi, &olen); in do_getsockopt_mptcp_full_info()
524 assert(mfi.size_tcpinfo_kernel > 0); in do_getsockopt_mptcp_full_info()
525 assert(mfi.size_tcpinfo_user == in do_getsockopt_mptcp_full_info()
[all …]
/openbmc/u-boot/arch/arm/cpu/arm1136/mx31/
H A Dgeneric.c16 u32 mfi = GET_PLL_MFI(reg); in mx31_decode_pll() local
21 mfi = mfi <= 5 ? 5 : mfi; in mx31_decode_pll()
26 return lldiv(2 * (u64)infreq * (mfi * mfd + mfn), in mx31_decode_pll()
/openbmc/u-boot/arch/arm/cpu/arm926ejs/mx25/
H A Dgeneric.c34 unsigned int mfi = (pll >> CCM_PLL_MFI_SHIFT) in imx_decode_pll() local
43 mfi = mfi <= 5 ? 5 : mfi; in imx_decode_pll()
48 return lldiv(2 * (u64) f_ref * (mfi * mfd + mfn), in imx_decode_pll()
/openbmc/u-boot/arch/arm/cpu/arm926ejs/mx27/
H A Dgeneric.c28 unsigned int mfi = (pll >> 10) & 0xf; in imx_decode_pll() local
33 mfi = mfi <= 5 ? 5 : mfi; in imx_decode_pll()
35 return lldiv(2 * (u64)f_ref * (mfi * (mfd + 1) + mfn), in imx_decode_pll()
/openbmc/u-boot/arch/arm/cpu/arm1136/mx35/
H A Dgeneric.c116 u32 mfi = (reg >> 10) & 0xf; in decode_pll() local
121 mfi = mfi <= 5 ? 5 : mfi; in decode_pll()
126 return lldiv(2 * (u64)infreq * (mfi * mfd + mfn), in decode_pll()
/openbmc/linux/sound/soc/fsl/
H A Dfsl_xcvr.c49 u8 mfi; /* min=0x18, max=0x38 */ member
54 { .mfi = 54, .mfn = 1, .mfd = 6, .fout = 1300000000, }, /* 1.3 GHz */
55 { .mfi = 32, .mfn = 96, .mfd = 125, .fout = 786432000, }, /* 8000 Hz */
56 { .mfi = 30, .mfn = 66, .mfd = 625, .fout = 722534400, }, /* 11025 Hz */
57 { .mfi = 29, .mfn = 1, .mfd = 6, .fout = 700000000, }, /* 700 MHz */
296 fsl_xcvr_ai_write(xcvr, FSL_XCVR_PLL_CTRL0, fsl_xcvr_pll_cfg[i].mfi, 0); in fsl_xcvr_en_phy_pll()
353 freq, fsl_xcvr_pll_cfg[i].fout, fsl_xcvr_pll_cfg[i].mfi, in fsl_xcvr_en_phy_pll()
/openbmc/u-boot/arch/arm/include/asm/arch-mx35/
H A Dimx-regs.h143 #define _PLL_SETTING(brm, pd, mfd, mfi, mfn) \ argument
144 (_PLL_BRM(brm) | _PLL_PD(pd) | _PLL_MFD(mfd) | _PLL_MFI(mfi) |\
/openbmc/linux/arch/ia64/kernel/
H A Dentry.S1038 }{ .mfi // cycle 1
1047 }{ .mfi // cycle 2
/openbmc/linux/Documentation/scsi/
H A DChangeLog.megaraid_sas246 1. Add the pad_0 in mfi frame structure to 0 to fix the
/openbmc/qemu/
H A DMAINTAINERS2419 F: hw/scsi/mfi.h

12