Home
last modified time | relevance | path

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

/drivers/usb/misc/
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 …]
DMakefile14 obj-$(CONFIG_APPLE_MFI_FASTCHARGE) += apple-mfi-fastcharge.o
/drivers/mtd/
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 …]
/drivers/clk/imx/
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 …]
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()
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()
/drivers/net/ethernet/mellanox/mlx5/core/
Dlag_mp.c105 mp->fib.mfi = fi; in mlx5_lag_fib_set()
132 if (mp->fib.mfi == fi) in mlx5_lag_fib_route_event()
133 mp->fib.mfi = NULL; in mlx5_lag_fib_route_event()
138 if (mp->fib.mfi && mp->fib.mfi != fi && in mlx5_lag_fib_route_event()
178 if (!mp->fib.mfi && !__mlx5_lag_is_active(ldev)) { in mlx5_lag_fib_route_event()
197 if (!mp->fib.mfi || mp->fib.mfi != fi) in mlx5_lag_fib_nexthop_event()
326 ldev->lag_mp.fib.mfi = NULL; in mlx5_lag_mp_reset()
337 mp->fib.mfi = NULL; in mlx5_lag_mp_init()
367 mp->fib.mfi = NULL; in mlx5_lag_mp_cleanup()
Dlag_mp.h19 const void *mfi; /* used in tracking fib events */ member