/linux/drivers/clk/imx/ |
H A D | clk-pllv4.c | 82 u32 mult, mfn, mfd; in clk_pllv4_recalc_rate() local 90 mfd = readl_relaxed(pll->base + pll->denom_offset); in clk_pllv4_recalc_rate() 93 do_div(temp64, mfd); in clk_pllv4_recalc_rate() 104 u32 mfn, mfd = DEFAULT_MFD; in clk_pllv4_round_rate() local 135 mfd = parent_rate; in clk_pllv4_round_rate() 138 temp64 *= mfd; in clk_pllv4_round_rate() 145 * pair of mfn/mfd, we simply return the round_rate without using in clk_pllv4_round_rate() 148 if (mfn >= mfd) in clk_pllv4_round_rate() 153 do_div(temp64, mfd); in clk_pllv4_round_rate() 181 u32 val, mult, mfn, mfd = DEFAULT_MFD; in clk_pllv4_set_rate() local [all …]
|
H A D | clk-pllv3.c | 219 u32 mfd = readl_relaxed(pll->base + pll->denom_offset); in clk_pllv3_av_recalc_rate() local 224 do_div(temp64, mfd); in clk_pllv3_av_recalc_rate() 236 u32 mfn, mfd = 1000000; in clk_pllv3_av_round_rate() local 246 mfd = parent_rate; in clk_pllv3_av_round_rate() 250 temp64 *= mfd; in clk_pllv3_av_round_rate() 256 do_div(temp64, mfd); in clk_pllv3_av_round_rate() 268 u32 mfn, mfd = 1000000; in clk_pllv3_av_set_rate() local 276 mfd = parent_rate; in clk_pllv3_av_set_rate() 280 temp64 *= mfd; in clk_pllv3_av_set_rate() 289 writel_relaxed(mfd, pll->base + pll->denom_offset); in clk_pllv3_av_set_rate() [all …]
|
H A D | clk-fracn-gppll.c | 51 .mfd = (_mfd), \ 61 .mfd = 0, \ 75 * Fvco = (Fref / rdiv) * (MFI + MFN / MFD) 158 u32 mfi, mfn, mfd, rdiv, odiv; in clk_fracn_gppll_recalc_rate() local 167 mfd = FIELD_GET(PLL_MFD_MASK, pll_denominator); in clk_fracn_gppll_recalc_rate() 183 rate_table[i].mfd == mfd && rate_table[i].rdiv == rdiv && in clk_fracn_gppll_recalc_rate() 210 /* Fvco = (Fref / rdiv) * (MFI + MFN / MFD) */ in clk_fracn_gppll_recalc_rate() 211 fvco = fvco * mfi * mfd + fvco * mfn; in clk_fracn_gppll_recalc_rate() 212 do_div(fvco, mfd * rdiv * odiv); in clk_fracn_gppll_recalc_rate() 259 writel_relaxed(rate->mfd, pll->base + PLL_DENOMINATOR); in clk_fracn_gppll_set_rate()
|
/linux/drivers/regulator/ |
H A D | tps65910-regulator.c | 20 #include <linux/mfd/tps65910.h> 309 struct tps65910 *mfd; member 824 struct tps65910 *mfd = pmic->mfd; in tps65910_set_ext_sleep_config() local 844 dev_err(mfd->dev, in tps65910_set_ext_sleep_config() 854 ret = regmap_set_bits(mfd->regmap, in tps65910_set_ext_sleep_config() 857 ret = regmap_clear_bits(mfd->regmap, in tps65910_set_ext_sleep_config() 860 dev_err(mfd->dev, in tps65910_set_ext_sleep_config() 867 ret = regmap_set_bits(mfd->regmap, in tps65910_set_ext_sleep_config() 870 ret = regmap_clear_bits(mfd->regmap, in tps65910_set_ext_sleep_config() 873 dev_err(mfd->dev, in tps65910_set_ext_sleep_config() [all …]
|
H A D | tps6507x-regulator.c | 20 #include <linux/mfd/tps6507x.h> 109 struct tps6507x_dev *mfd; member 118 err = tps->mfd->read_dev(tps->mfd, reg, 1, &val); in tps6507x_pmic_read() 128 return tps->mfd->write_dev(tps->mfd, reg, 1, &val); in tps6507x_pmic_write() 139 dev_err(tps->mfd->dev, "Read from reg 0x%x failed\n", reg); in tps6507x_pmic_set_bits() 147 dev_err(tps->mfd->dev, "Write for reg 0x%x failed\n", reg); in tps6507x_pmic_set_bits() 162 dev_err(tps->mfd->dev, "Read from reg 0x%x failed\n", reg); in tps6507x_pmic_clear_bits() 170 dev_err(tps->mfd->dev, "Write for reg 0x%x failed\n", reg); in tps6507x_pmic_clear_bits() 185 dev_err(tps->mfd->dev, "Read from reg 0x%x failed\n", reg); in tps6507x_pmic_reg_read() 199 dev_err(tps->mfd->dev, "Write for reg 0x%x failed\n", reg); in tps6507x_pmic_reg_write() [all …]
|
/linux/arch/arm64/boot/dts/sprd/ |
H A D | ums512.dtsi | 179 "simple-mfd"; 196 "simple-mfd"; 202 "simple-mfd"; 208 "simple-mfd"; 214 "simple-mfd"; 220 "simple-mfd"; 226 "simple-mfd"; 232 "simple-mfd"; 238 "simple-mfd"; 244 "simple-mfd"; [all …]
|
H A D | sharkl3.dtsi | 21 "simple-mfd"; 36 "simple-mfd"; 53 "simple-mfd"; 68 "simple-mfd"; 85 "simple-mfd"; 100 "simple-mfd"; 117 "simple-mfd"; 132 "simple-mfd"; 147 "simple-mfd";
|
/linux/Documentation/devicetree/bindings/mfd/ |
H A D | mfd.txt | 1 Multi-Function Devices (MFD) 6 A typical MFD can be: 20 - compatible : "simple-mfd" - this signifies that the operating system 21 should consider all subnodes of the MFD device as separate and independent 42 compatible = "syscon", "simple-mfd";
|
H A D | brcm,twd.yaml | 4 $id: http://devicetree.org/schemas/mfd/brcm,twd.yaml# 24 - const: simple-mfd 52 timer-mfd@ff800400 { 53 compatible = "brcm,bcm4908-twd", "simple-mfd", "syscon";
|
H A D | sprd,ums512-glbreg.yaml | 5 $id: http://devicetree.org/schemas/mfd/sprd,ums512-glbreg.yaml# 26 - const: simple-mfd 56 compatible = "sprd,ums512-glbregs", "syscon", "simple-mfd"; 71 compatible = "sprd,ums512-glbregs", "syscon", "simple-mfd";
|
/linux/Documentation/devicetree/bindings/mips/ |
H A D | mscc.txt | 19 - compatible: Should be "mscc,ocelot-chip-regs", "simple-mfd", "syscon" 24 compatible = "mscc,ocelot-chip-regs", "simple-mfd", "syscon"; 35 - compatible: Should be "mscc,ocelot-hsio", "syscon", "simple-mfd" 40 compatible = "mscc,ocelot-hsio", "syscon", "simple-mfd";
|
/linux/drivers/mfd/ |
H A D | mt6397-irq.c | 12 #include <linux/mfd/mt6323/core.h> 13 #include <linux/mfd/mt6323/registers.h> 14 #include <linux/mfd/mt6328/core.h> 15 #include <linux/mfd/mt6328/registers.h> 16 #include <linux/mfd/mt6331/core.h> 17 #include <linux/mfd/mt6331/registers.h> 18 #include <linux/mfd/mt6397/core.h> 19 #include <linux/mfd/mt6397/registers.h>
|
H A D | wm831x-auxadc.c | 13 #include <linux/mfd/core.h> 17 #include <linux/mfd/wm831x/core.h> 18 #include <linux/mfd/wm831x/pdata.h> 19 #include <linux/mfd/wm831x/irq.h> 20 #include <linux/mfd/wm831x/auxadc.h> 21 #include <linux/mfd/wm831x/otp.h> 22 #include <linux/mfd/wm831x/regulator.h>
|
H A D | bcm2835-pm.c | 3 * PM MFD driver for Broadcom BCM2835 5 * This driver binds to the PM block and creates the MFD device for 11 #include <linux/mfd/bcm2835-pm.h> 12 #include <linux/mfd/core.h> 125 MODULE_DESCRIPTION("Driver for Broadcom BCM2835 PM MFD");
|
H A D | ac100.c | 3 * MFD core driver for X-Powers' AC100 Audio Codec IC 20 #include <linux/mfd/core.h> 21 #include <linux/mfd/ac100.h> 110 dev_err(ac100->dev, "failed to add MFD devices: %d\n", ret); in ac100_rsb_probe() 132 MODULE_DESCRIPTION("Audio codec MFD core driver for AC100");
|
H A D | rohm-bd718x7.c | 14 #include <linux/mfd/rohm-bd718x7.h> 15 #include <linux/mfd/core.h> 135 struct mfd_cell *mfd; in bd718xx_i2c_probe() local 146 mfd = bd71837_mfd_cells; in bd718xx_i2c_probe() 150 mfd = bd71847_mfd_cells; in bd718xx_i2c_probe() 181 mfd, cells, NULL, 0, in bd718xx_i2c_probe()
|
H A D | rdc321x-southbridge.c | 3 * RDC321x MFD southbridge driver 12 #include <linux/mfd/core.h> 13 #include <linux/mfd/rdc321x.h> 96 MODULE_DESCRIPTION("RDC R-321x MFD southbridge driver");
|
H A D | cs5535-mfd.c | 3 * cs5535-mfd.c - core MFD driver for CS5535/CS5536 southbridges 14 #include <linux/mfd/core.h> 19 #define DRV_NAME "cs5535-mfd" 163 MODULE_DESCRIPTION("MFD driver for CS5535/CS5536 southbridge's ISA PCI device");
|
H A D | sky81452.c | 3 * sky81452.c SKY81452 MFD driver 16 #include <linux/mfd/core.h> 17 #include <linux/mfd/sky81452.h> 86 MODULE_DESCRIPTION("Skyworks SKY81452 MFD driver");
|
H A D | mt6358-irq.c | 8 #include <linux/mfd/mt6357/core.h> 9 #include <linux/mfd/mt6357/registers.h> 10 #include <linux/mfd/mt6358/core.h> 11 #include <linux/mfd/mt6358/registers.h> 12 #include <linux/mfd/mt6359/core.h> 13 #include <linux/mfd/mt6359/registers.h> 14 #include <linux/mfd/mt6397/core.h>
|
H A D | sun4i-gpadc.c | 2 /* ADC MFD core driver for sunxi platforms 9 #include <linux/mfd/core.h> 15 #include <linux/mfd/sun4i-gpadc.h> 156 dev_err(&pdev->dev, "failed to add MFD devices: %d\n", ret); in sun4i_gpadc_probe() 173 MODULE_DESCRIPTION("Allwinner sunxi platforms' GPADC MFD core driver");
|
/linux/tools/testing/selftests/memfd/ |
H A D | fuse_test.c | 231 int fd, mfd, r; in main() local 269 mfd = mfd_assert_new("kern_memfd_fuse", in main() 274 p = mfd_assert_mmap_shared(mfd); in main() 276 /* pass mfd+mapping to a separate sealing-thread which tries to seal in main() 278 global_mfd = mfd; in main() 298 was_sealed = mfd_assert_get_seals(mfd) & F_SEAL_WRITE; in main() 303 mfd_assert_has_seals(mfd, F_SEAL_WRITE); in main() 315 p = mfd_assert_mmap_private(mfd); in main() 324 close(mfd); in main()
|
/linux/samples/vfs/ |
H A D | test-fsmount.c | 105 int fsfd, mfd; in main() local 117 mfd = fsmount(fsfd, 0, MOUNT_ATTR_RDONLY); in main() 118 if (mfd < 0) in main() 122 if (move_mount(mfd, "", AT_FDCWD, "/mnt", MOVE_MOUNT_F_EMPTY_PATH) < 0) { in main() 127 E(close(mfd)); in main()
|
/linux/drivers/input/touchscreen/ |
H A D | tps6507x-ts.c | 21 #include <linux/mfd/tps6507x.h> 43 struct tps6507x_dev *mfd; member 52 return tsc->mfd->read_dev(tsc->mfd, reg, 1, data); in tps6507x_read_u8() 57 return tsc->mfd->write_dev(tsc->mfd, reg, 1, &data); in tps6507x_write_u8() 230 tsc->mfd = tps6507x_dev; in tps6507x_ts_probe()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | pe_preserve_elems.c | 12 int err, key = 0, pfd = -1, mfd = bpf_map__fd(map); in test_one_map() local 25 err = bpf_map_update_elem(mfd, &key, &pfd, BPF_ANY); in test_one_map() 37 /* closing mfd, prog still holds a reference on map */ in test_one_map() 38 close(mfd); in test_one_map()
|