Home
last modified time | relevance | path

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

/linux/drivers/usb/misc/
H A Dapple-mfi-fastcharge.c51 static int apple_mfi_fc_set_charge_type(struct mfi_device *mfi, in apple_mfi_fc_set_charge_type() argument
58 if (mfi->charge_type == val->intval) { in apple_mfi_fc_set_charge_type()
59 dev_dbg(&mfi->udev->dev, "charge type %d already set\n", in apple_mfi_fc_set_charge_type()
60 mfi->charge_type); in apple_mfi_fc_set_charge_type()
76 retval = usb_control_msg(mfi->udev, usb_sndctrlpipe(mfi->udev, 0), in apple_mfi_fc_set_charge_type()
83 dev_dbg(&mfi->udev->dev, "retval = %d\n", retval); in apple_mfi_fc_set_charge_type()
87 mfi->charge_type = val->intval; in apple_mfi_fc_set_charge_type()
96 struct mfi_device *mfi = power_supply_get_drvdata(psy); in apple_mfi_fc_get_property() local
98 dev_dbg(&mfi->udev->dev, "prop: %d\n", psp); in apple_mfi_fc_get_property()
102 val->intval = mfi->charge_type; in apple_mfi_fc_get_property()
[all …]
/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()
/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 …]
/linux/drivers/clk/imx/
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.h82 unsigned int mfi; member
/linux/drivers/net/ethernet/mellanox/mlx5/core/lag/
H A Dmp.c110 mp->fib.mfi = fi; in mlx5_lag_fib_set()
170 if (mp->fib.mfi == fi) in mlx5_lag_fib_route_event()
171 mp->fib.mfi = NULL; in mlx5_lag_fib_route_event()
176 if (mp->fib.mfi && in mlx5_lag_fib_route_event()
192 mp->fib.mfi = NULL; in mlx5_lag_fib_route_event()
217 if (!mp->fib.mfi && !__mlx5_lag_is_active(ldev)) { in mlx5_lag_fib_route_event()
237 if (!mp->fib.mfi || mp->fib.mfi != fi) in mlx5_lag_fib_nexthop_event()
365 ldev->lag_mp.fib.mfi = NULL; in mlx5_lag_mp_reset()
376 mp->fib.mfi = NULL; in mlx5_lag_mp_init()
406 mp->fib.mfi = NULL; in mlx5_lag_mp_cleanup()
H A Dmp.h19 const void *mfi; /* used in tracking fib events */ member
/linux/net/mptcp/
H A Dsockopt.c1248 static int mptcp_get_full_info(struct mptcp_full_info *mfi, in mptcp_get_full_info()
1263 memset(mfi, 0, sizeof(*mfi)); in mptcp_get_full_info()
1264 if (copy_from_user(mfi, optval, MIN_FULL_INFO_OPTLEN_SIZE)) in mptcp_get_full_info()
1267 if (mfi->size_tcpinfo_kernel || in mptcp_get_full_info()
1268 mfi->size_sfinfo_kernel || in mptcp_get_full_info()
1269 mfi->num_subflows) in mptcp_get_full_info()
1272 if (mfi->size_sfinfo_user > INT_MAX || in mptcp_get_full_info()
1273 mfi->size_tcpinfo_user > INT_MAX) in mptcp_get_full_info()
1279 static int mptcp_put_full_info(struct mptcp_full_info *mfi, in mptcp_put_full_info()
1246 mptcp_get_full_info(struct mptcp_full_info * mfi,char __user * optval,int __user * optlen) mptcp_get_full_info() argument
1277 mptcp_put_full_info(struct mptcp_full_info * mfi,char __user * optval,u32 copylen,int __user * optlen) mptcp_put_full_info() argument
1298 struct mptcp_full_info mfi; mptcp_getsockopt_full_info() local
[all...]
/linux/tools/testing/selftests/net/mptcp/
H A Dmptcp_sockopt.c509 struct mptcp_full_info mfi; in do_getsockopt_mptcp_full_info() local
513 memset(&mfi, 0, data_size); in do_getsockopt_mptcp_full_info()
517 mfi.size_tcpinfo_user = sizeof(struct tcp_info); in do_getsockopt_mptcp_full_info()
518 mfi.size_sfinfo_user = sizeof(struct mptcp_subflow_info); in do_getsockopt_mptcp_full_info()
519 mfi.size_arrays_user = 2; in do_getsockopt_mptcp_full_info()
520 mfi.subflow_info = (unsigned long)&sfinfo[0]; in do_getsockopt_mptcp_full_info()
521 mfi.tcp_info = (unsigned long)&tcp_info[0]; in do_getsockopt_mptcp_full_info()
524 ret = getsockopt(fd, SOL_MPTCP, MPTCP_FULL_INFO, &mfi, &olen); in do_getsockopt_mptcp_full_info()
534 assert(mfi.size_tcpinfo_kernel > 0); in do_getsockopt_mptcp_full_info()
535 assert(mfi.size_tcpinfo_user == in do_getsockopt_mptcp_full_info()
[all …]
/linux/sound/soc/fsl/
H A Dfsl_xcvr.c66 u8 mfi; /* min=0x18, max=0x38 */ member
71 { .mfi = 54, .mfn = 1, .mfd = 6, .fout = 1300000000, }, /* 1.3 GHz */
72 { .mfi = 32, .mfn = 96, .mfd = 125, .fout = 786432000, }, /* 8000 Hz */
73 { .mfi = 30, .mfn = 66, .mfd = 625, .fout = 722534400, }, /* 11025 Hz */
74 { .mfi = 29, .mfn = 1, .mfd = 6, .fout = 700000000, }, /* 700 MHz */
368 regmap_write(xcvr->regmap_pll, FSL_XCVR_PLL_CTRL0, fsl_xcvr_pll_cfg[i].mfi); in fsl_xcvr_en_phy_pll()
405 val = fsl_xcvr_pll_cfg[i].mfi << FSL_XCVR_GP_PLL_DIV_MFI_SHIFT | div; in fsl_xcvr_en_phy_pll()
440 freq, fsl_xcvr_pll_cfg[i].fout, fsl_xcvr_pll_cfg[i].mfi, in fsl_xcvr_en_phy_pll()
/linux/Documentation/scsi/
H A DChangeLog.megaraid_sas246 1. Add the pad_0 in mfi frame structure to 0 to fix the
/linux/
H A DMAINTAINERS26892 F: drivers/usb/misc/apple-mfi-fastcharge.c