Home
last modified time | relevance | path

Searched full:mfd (Results 1 – 25 of 1856) sorted by relevance

12345678910>>...75

/OK3568_Linux_fs/kernel/drivers/mfd/
H A Dsta2x11-mfd.c3 * STA2x11 mfd for GPIO, SCTL and APBREG
22 #include <linux/mfd/core.h>
23 #include <linux/mfd/sta2x11-mfd.h>
35 /* This describes STA2X11 MFD chip for us, we may have several */
50 struct sta2x11_mfd *mfd; in sta2x11_mfd_find() local
62 list_for_each_entry(mfd, &sta2x11_mfd_list, list) { in sta2x11_mfd_find()
63 if (mfd->instance == instance) in sta2x11_mfd_find()
64 return mfd; in sta2x11_mfd_find()
72 struct sta2x11_mfd *mfd = sta2x11_mfd_find(pdev); in sta2x11_mfd_add() local
75 if (mfd) in sta2x11_mfd_add()
[all …]
H A Dmt6397-core.c13 #include <linux/mfd/core.h>
14 #include <linux/mfd/mt6323/core.h>
15 #include <linux/mfd/mt6358/core.h>
16 #include <linux/mfd/mt6397/core.h>
17 #include <linux/mfd/mt6323/registers.h>
18 #include <linux/mfd/mt6358/registers.h>
19 #include <linux/mfd/mt6397/registers.h>
174 * mt6397 MFD is child device of soc pmic wrapper. in mt6397_probe()
H A Dsec-core.c17 #include <linux/mfd/core.h>
18 #include <linux/mfd/samsung/core.h>
19 #include <linux/mfd/samsung/irq.h>
20 #include <linux/mfd/samsung/s2mpa01.h>
21 #include <linux/mfd/samsung/s2mps11.h>
22 #include <linux/mfd/samsung/s2mps13.h>
23 #include <linux/mfd/samsung/s2mps14.h>
24 #include <linux/mfd/samsung/s2mps15.h>
25 #include <linux/mfd/samsung/s2mpu02.h>
26 #include <linux/mfd/samsung/s5m8763.h>
[all …]
H A Dbcm2835-pm.c3 * 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>
91 MODULE_DESCRIPTION("Driver for Broadcom BCM2835 PM MFD");
H A Dwm831x-auxadc.c13 #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 Dac100.c3 * 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 Dsec-irq.c12 #include <linux/mfd/samsung/core.h>
13 #include <linux/mfd/samsung/irq.h>
14 #include <linux/mfd/samsung/s2mps11.h>
15 #include <linux/mfd/samsung/s2mps14.h>
16 #include <linux/mfd/samsung/s2mpu02.h>
17 #include <linux/mfd/samsung/s5m8763.h>
18 #include <linux/mfd/samsung/s5m8767.h>
505 MODULE_DESCRIPTION("Interrupt support for the S5M MFD");
/OK3568_Linux_fs/kernel/drivers/clk/imx/
H A Dclk-pllv4.c72 u32 mult, mfn, mfd; in clk_pllv4_recalc_rate() local
80 mfd = readl_relaxed(pll->base + PLL_DENOM_OFFSET); in clk_pllv4_recalc_rate()
83 do_div(temp64, mfd); in clk_pllv4_recalc_rate()
93 u32 mfn, mfd = DEFAULT_MFD; in clk_pllv4_round_rate() local
112 mfd = parent_rate; in clk_pllv4_round_rate()
115 temp64 *= mfd; in clk_pllv4_round_rate()
122 * pair of mfn/mfd, we simply return the round_rate without using in clk_pllv4_round_rate()
125 if (mfn >= mfd) in clk_pllv4_round_rate()
130 do_div(temp64, mfd); in clk_pllv4_round_rate()
152 u32 val, mult, mfn, mfd = DEFAULT_MFD; in clk_pllv4_set_rate() local
[all …]
H A Dclk-pllv3.c218 u32 mfd = readl_relaxed(pll->base + pll->denom_offset); in clk_pllv3_av_recalc_rate() local
223 do_div(temp64, mfd); in clk_pllv3_av_recalc_rate()
235 u32 mfn, mfd = 1000000; in clk_pllv3_av_round_rate() local
245 mfd = parent_rate; in clk_pllv3_av_round_rate()
249 temp64 *= mfd; in clk_pllv3_av_round_rate()
255 do_div(temp64, mfd); in clk_pllv3_av_round_rate()
267 u32 mfn, mfd = 1000000; in clk_pllv3_av_set_rate() local
275 mfd = parent_rate; in clk_pllv3_av_set_rate()
279 temp64 *= mfd; in clk_pllv3_av_set_rate()
288 writel_relaxed(mfd, pll->base + pll->denom_offset); in clk_pllv3_av_set_rate()
[all …]
/OK3568_Linux_fs/external/camera_engine_rkaiq/IspFec/src/
H A DRkIspFecHw.cpp34 mFd = ::open(dev, O_RDWR | O_CLOEXEC); in RkIspFecHw()
35 if (mFd == -1) in RkIspFecHw()
42 if (mFd >= 0 ) in ~RkIspFecHw()
43 ::close(mFd); in ~RkIspFecHw()
49 if (mFd < 0) { in process()
54 int ret = ioctl(mFd, RKISPP_CMD_FEC_IN_OUT, &param); in process()
57 ret = ioctl(mFd, RKISPP_CMD_FEC_IN_OUT, &param); in process()
/OK3568_Linux_fs/u-boot/arch/m68k/cpu/mcf532x/
H A Dspeed.c146 int fref, temp, fout, mfd; in clock_pll() local
155 mfd = (in_be32(&pll->pcr) & 0x3F) + 1; in clock_pll()
157 return (fref * mfd) / busdiv; in clock_pll()
160 mfd = in_8(&pll->pfdr); in clock_pll()
162 return (fref * mfd / (BUSDIV * 4)); in clock_pll()
175 * and then dividing by 100 to calculate the mfd allows in clock_pll()
181 mfd = (BUSDIV * temp) / 100; in clock_pll()
184 fout = ((fref * mfd) / BUSDIV); in clock_pll()
187 mfd = (4 * BUSDIV * temp) / 100; in clock_pll()
190 fout = ((fref * mfd) / (BUSDIV * 4)); in clock_pll()
[all …]
/OK3568_Linux_fs/u-boot/arch/arm/mach-imx/mx5/
H A Dclock.c54 u32 mfd; member
65 u32 mfd; member
163 uint32_t ctrl, op, mfd, mfn, mfi, pdf, ret; in decode_pll() local
171 mfd = readl(&pll->hfs_mfd); in decode_pll()
175 mfd = readl(&pll->mfd); in decode_pll()
179 mfd &= MXC_DPLLC_MFD_MFD_MASK; in decode_pll()
201 do_div(temp, mfd + 1); in decode_pll()
549 * t_clk = 2*ref_freq*(mfi + mfn/(mfd+1))/(pd+1)
550 * This calculation is based on a fixed MFD value for simplicity.
554 u64 pd, mfi = 1, mfn, mfd, t1; in calc_pll_params() local
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/clock/
H A Dmaxim,max77686.txt4 multi-function device. More information can be found in MFD DT binding
6 bindings/mfd/max77686.txt for MAX77686 and
7 bindings/mfd/max77802.txt for MAX77802 and
8 bindings/mfd/max77620.txt for MAX77620.
23 Following properties should be presend in main device node of the MFD chip.
48 Node of the MFD chip
73 Node of the MFD chip
99 Node of the MFD chip
/OK3568_Linux_fs/kernel/drivers/regulator/
H A Dtps65910-regulator.c21 #include <linux/mfd/tps65910.h>
310 struct tps65910 *mfd; member
825 struct tps65910 *mfd = pmic->mfd; in tps65910_set_ext_sleep_config() local
845 dev_err(mfd->dev, in tps65910_set_ext_sleep_config()
855 ret = regmap_set_bits(mfd->regmap, in tps65910_set_ext_sleep_config()
858 ret = regmap_clear_bits(mfd->regmap, in tps65910_set_ext_sleep_config()
861 dev_err(mfd->dev, in tps65910_set_ext_sleep_config()
868 ret = regmap_set_bits(mfd->regmap, in tps65910_set_ext_sleep_config()
871 ret = regmap_clear_bits(mfd->regmap, in tps65910_set_ext_sleep_config()
874 dev_err(mfd->dev, in tps65910_set_ext_sleep_config()
[all …]
H A Dtps6507x-regulator.c28 #include <linux/mfd/tps6507x.h>
117 struct tps6507x_dev *mfd; member
126 err = tps->mfd->read_dev(tps->mfd, reg, 1, &val); in tps6507x_pmic_read()
136 return tps->mfd->write_dev(tps->mfd, reg, 1, &val); in tps6507x_pmic_write()
147 dev_err(tps->mfd->dev, "Read from reg 0x%x failed\n", reg); in tps6507x_pmic_set_bits()
155 dev_err(tps->mfd->dev, "Write for reg 0x%x failed\n", reg); in tps6507x_pmic_set_bits()
170 dev_err(tps->mfd->dev, "Read from reg 0x%x failed\n", reg); in tps6507x_pmic_clear_bits()
178 dev_err(tps->mfd->dev, "Write for reg 0x%x failed\n", reg); in tps6507x_pmic_clear_bits()
193 dev_err(tps->mfd->dev, "Read from reg 0x%x failed\n", reg); in tps6507x_pmic_reg_read()
207 dev_err(tps->mfd->dev, "Write for reg 0x%x failed\n", reg); in tps6507x_pmic_reg_write()
[all …]
/OK3568_Linux_fs/kernel/drivers/watchdog/
H A Dbd70528_wdt.c7 #include <linux/mfd/rohm-bd70528.h>
28 struct rohm_regmap_dev *mfd; member
133 return bd70528_wdt_set(w->mfd, enable, NULL); in bd70528_wdt_set_locked()
140 bd70528_wdt_lock(w->mfd); in bd70528_wdt_change()
142 bd70528_wdt_unlock(w->mfd); in bd70528_wdt_change()
180 bd70528_wdt_lock(w->mfd); in bd70528_wdt_set_timeout()
208 bd70528_wdt_unlock(w->mfd); in bd70528_wdt_set_timeout()
233 dev_err(&pdev->dev, "No MFD driver data\n"); in bd70528_wdt_probe()
241 w->mfd = bd70528; in bd70528_wdt_probe()
259 bd70528_wdt_lock(w->mfd); in bd70528_wdt_probe()
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/arm/
H A Darm,realview.yaml85 - const: simple-mfd
90 - const: simple-mfd
94 - const: simple-mfd
98 - const: simple-mfd
102 - const: simple-mfd
106 - const: simple-mfd
110 - const: simple-mfd
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/sprd/
H A Dsharkl3.dtsi21 "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";
/OK3568_Linux_fs/kernel/drivers/clk/
H A Dclk-bd718x7.c10 #include <linux/mfd/rohm-generic.h>
34 struct rohm_regmap_dev *mfd; member
39 return regmap_update_bits(c->mfd->regmap, c->reg, c->mask, status); in bd71837_clk_set()
65 rval = regmap_read(c->mfd->regmap, c->reg, &enabled); in bd71837_clk_is_enabled()
85 struct rohm_regmap_dev *mfd = dev_get_drvdata(parent); in bd71837_clk_probe() local
122 c->mfd = mfd; in bd71837_clk_probe()
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mfd/
H A Dmfd.txt1 Multi-Function Devices (MFD)
6 A typical MFD can be:
20 - compatible : "simple-mfd" - this signifies that the operating system should
21 consider all subnodes of the MFD device as separate devices akin to how
41 compatible = "syscon", "simple-mfd";
/OK3568_Linux_fs/kernel/tools/testing/selftests/memfd/
H A Dfuse_test.c230 int fd, mfd, r; in main() local
268 mfd = mfd_assert_new("kern_memfd_fuse", in main()
273 p = mfd_assert_mmap_shared(mfd); in main()
275 /* pass mfd+mapping to a separate sealing-thread which tries to seal in main()
277 global_mfd = mfd; in main()
297 was_sealed = mfd_assert_get_seals(mfd) & F_SEAL_WRITE; in main()
302 mfd_assert_has_seals(mfd, F_SEAL_WRITE); in main()
314 p = mfd_assert_mmap_private(mfd); in main()
323 close(mfd); in main()
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/pinctrl/
H A Daspeed,ast2500-pinctrl.yaml17 "aspeed,ast2500-scu", "syscon", "simple-mfd"
18 "aspeed,g5-scu", "syscon", "simple-mfd"
21 Documentation/devicetree/bindings/mfd/syscon.yaml
80 compatible = "aspeed,ast2500-scu", "syscon", "simple-mfd";
106 compatible = "aspeed,ast2500-lpc", "simple-mfd";
114 compatible = "aspeed,ast2500-lpc-host", "simple-mfd", "syscon";
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mips/
H A Dmscc.txt19 - compatible: Should be "mscc,ocelot-chip-regs", "simple-mfd", "syscon"
24 compatible = "mscc,ocelot-chip-regs", "simple-mfd", "syscon";
52 - compatible: Should be "mscc,ocelot-hsio", "syscon", "simple-mfd"
57 compatible = "mscc,ocelot-hsio", "syscon", "simple-mfd";
/OK3568_Linux_fs/kernel/samples/vfs/
H A Dtest-fsmount.c105 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()
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/
H A Dtps6507x-ts.c21 #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()
232 tsc->mfd = tps6507x_dev; in tps6507x_ts_probe()

12345678910>>...75