Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/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 DMakefile14 obj-$(CONFIG_APPLE_MFI_FASTCHARGE) += apple-mfi-fastcharge.o
/OK3568_Linux_fs/u-boot/arch/arm/cpu/arm920t/imx/
H A Dspeed.c28 u32 mfi = (spctl0 >> 10) & 0xf; in get_systemPLLCLK() local
33 mfi = mfi<=5 ? 5 : mfi; in get_systemPLLCLK()
35 return (2*(CONFIG_SYSPLL_CLK_FREQ>>10)*( (mfi<<10) + (mfn<<10)/(mfd+1)))/(pd+1); in get_systemPLLCLK()
42 u32 mfi = (mpctl0 >> 10) & 0xf; in get_mcuPLLCLK() local
47 mfi = mfi<=5 ? 5 : mfi; in get_mcuPLLCLK()
49 return (2*(CONFIG_SYS_CLK_FREQ>>10)*( (mfi<<10) + (mfn<<10)/(mfd+1)))/(pd+1); in get_mcuPLLCLK()
/OK3568_Linux_fs/kernel/drivers/mtd/
H A Dmtdchar.c43 struct mtd_file_info *mfi = file->private_data; in mtdchar_lseek() local
44 return fixed_size_llseek(file, offset, orig, mfi->mtd->size); in mtdchar_lseek()
53 struct mtd_file_info *mfi; in mtdchar_open() local
80 mfi = kzalloc(sizeof(*mfi), GFP_KERNEL); in mtdchar_open()
81 if (!mfi) { in mtdchar_open()
85 mfi->mtd = mtd; in mtdchar_open()
86 file->private_data = mfi; in mtdchar_open()
101 struct mtd_file_info *mfi = file->private_data; in mtdchar_close() local
102 struct mtd_info *mtd = mfi->mtd; in mtdchar_close()
112 kfree(mfi); in mtdchar_close()
[all …]
/OK3568_Linux_fs/kernel/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.c59 unsigned int mfi, mfn, mfd, pd; in clk_pllv1_recalc_rate() local
75 mfi = (reg >> 10) & 0xf; in clk_pllv1_recalc_rate()
80 mfi = mfi <= 5 ? 5 : mfi; in clk_pllv1_recalc_rate()
104 ull = (rate * mfi) - ull; in clk_pllv1_recalc_rate()
106 ull = (rate * mfi) + ull; in clk_pllv1_recalc_rate()
H A Dclk-pllv3.c303 u32 mfi; /* integer part, can be 20 or 22 */ member
317 return (parent_rate * mf.mfi) + temp64; in clk_pllv3_vf610_mf_to_rate()
326 mf.mfi = (rate >= 22 * parent_rate) ? 22 : 20; in clk_pllv3_vf610_rate_to_mf()
329 if (rate <= parent_rate * mf.mfi) in clk_pllv3_vf610_rate_to_mf()
331 else if (rate >= parent_rate * (mf.mfi + 1)) in clk_pllv3_vf610_rate_to_mf()
335 temp64 = rate - parent_rate * mf.mfi; in clk_pllv3_vf610_rate_to_mf()
352 mf.mfi = (readl_relaxed(pll->base) & pll->div_mask) ? 22 : 20; in clk_pllv3_vf610_recalc_rate()
374 if (mf.mfi == 20) in clk_pllv3_vf610_set_rate()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/
H A Dlag_mp.c121 if (mp->mfi == fi) in mlx5_lag_fib_route_event()
122 mp->mfi = NULL; in mlx5_lag_fib_route_event()
127 if (mp->mfi && mp->mfi != fi && fi->fib_priority >= mp->mfi->fib_priority) in mlx5_lag_fib_route_event()
145 mp->mfi = fi; in mlx5_lag_fib_route_event()
165 if (!mp->mfi && !__mlx5_lag_is_active(ldev)) { in mlx5_lag_fib_route_event()
173 mp->mfi = fi; in mlx5_lag_fib_route_event()
184 if (!mp->mfi || mp->mfi != fi) in mlx5_lag_fib_nexthop_event()
316 mp->mfi = NULL; in mlx5_lag_mp_init()
346 mp->mfi = NULL; in mlx5_lag_mp_cleanup()
H A Dlag_mp.h18 struct fib_info *mfi; /* used in tracking fib events */ member
/OK3568_Linux_fs/u-boot/arch/arm/mach-imx/mx5/
H A Dclock.c63 u32 mfi; member
163 uint32_t ctrl, op, mfd, mfn, mfi, pdf, ret; in decode_pll() local
182 mfi = MXC_DPLLC_OP_MFI_RD(op); in decode_pll()
185 if (mfi < 5) in decode_pll()
186 mfi = 5; in decode_pll()
202 ret = refclk * mfi; in decode_pll()
554 u64 pd, mfi = 1, mfn, mfd, t1; in calc_pll_params() local
585 mfi = t1; in calc_pll_params()
586 if (mfi > PLL_MFI_MAX) in calc_pll_params()
588 else if (mfi < 5) in calc_pll_params()
[all …]
/OK3568_Linux_fs/u-boot/arch/arm/cpu/arm1136/mx31/
H A Dgeneric.c17 u32 mfi = GET_PLL_MFI(reg); in mx31_decode_pll() local
22 mfi = mfi <= 5 ? 5 : mfi; in mx31_decode_pll()
27 return lldiv(2 * (u64)infreq * (mfi * mfd + mfn), in mx31_decode_pll()
/OK3568_Linux_fs/u-boot/arch/arm/cpu/arm926ejs/mx25/
H A Dgeneric.c35 unsigned int mfi = (pll >> CCM_PLL_MFI_SHIFT) in imx_decode_pll() local
44 mfi = mfi <= 5 ? 5 : mfi; in imx_decode_pll()
49 return lldiv(2 * (u64) f_ref * (mfi * mfd + mfn), in imx_decode_pll()
/OK3568_Linux_fs/u-boot/arch/arm/cpu/arm926ejs/mx27/
H A Dgeneric.c29 unsigned int mfi = (pll >> 10) & 0xf; in imx_decode_pll() local
34 mfi = mfi <= 5 ? 5 : mfi; in imx_decode_pll()
36 return lldiv(2 * (u64)f_ref * (mfi * (mfd + 1) + mfn), in imx_decode_pll()
/OK3568_Linux_fs/u-boot/arch/arm/cpu/arm1136/mx35/
H A Dgeneric.c117 u32 mfi = (reg >> 10) & 0xf; in decode_pll() local
122 mfi = mfi <= 5 ? 5 : mfi; in decode_pll()
127 return lldiv(2 * (u64)infreq * (mfi * mfd + mfn), in decode_pll()
/OK3568_Linux_fs/u-boot/arch/arm/include/asm/arch-mx35/
H A Dimx-regs.h144 #define _PLL_SETTING(brm, pd, mfd, mfi, mfn) \ argument
145 (_PLL_BRM(brm) | _PLL_PD(pd) | _PLL_MFD(mfd) | _PLL_MFI(mfi) |\
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/rockchip/
H A Drk3588-vehicle-s66-v10.dtsi120 //todo, add mfi
/OK3568_Linux_fs/kernel/arch/ia64/kernel/
H A Dentry.S1039 }{ .mfi // cycle 1
1048 }{ .mfi // cycle 2
/OK3568_Linux_fs/kernel/Documentation/scsi/
H A DChangeLog.megaraid_sas246 1. Add the pad_0 in mfi frame structure to 0 to fix the
/OK3568_Linux_fs/kernel/
H A DMAINTAINERS18059 F: drivers/usb/misc/apple-mfi-fastcharge.c