Home
last modified time | relevance | path

Searched refs:mfd (Results 1 – 25 of 233) sorted by relevance

12345678910

/linux/tools/testing/selftests/liveupdate/
H A Dluo_test_utils.c62 int mfd = -1, ret = -1; in create_and_preserve_memfd() local
64 mfd = memfd_create("test_mfd", 0); in create_and_preserve_memfd()
65 if (mfd < 0) in create_and_preserve_memfd()
68 if (ftruncate(mfd, page_size) != 0) in create_and_preserve_memfd()
71 map = mmap(NULL, page_size, PROT_WRITE, MAP_SHARED, mfd, 0); in create_and_preserve_memfd()
78 arg.fd = mfd; in create_and_preserve_memfd()
87 if (mfd >= 0) in create_and_preserve_memfd()
88 close(mfd); in create_and_preserve_memfd()
98 int mfd = -1, ret = -1; in restore_and_verify_memfd() local
103 mfd = arg.fd; in restore_and_verify_memfd()
[all …]
H A Dluo_kexec_simple.c50 int session_fd, mfd, stage; in run_stage_2() local
65 mfd = restore_and_verify_memfd(session_fd, TEST_MEMFD_TOKEN, in run_stage_2()
67 if (mfd < 0) in run_stage_2()
69 close(mfd); in run_stage_2()
/linux/drivers/regulator/
H A Dtps65910-regulator.c309 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()
879 if ((tps65910_chip_id(mfd) == TPS65910) && in tps65910_set_ext_sleep_config()
[all …]
H A Dtps6507x-regulator.c109 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()
396 tps->mfd = tps6507x_dev; in tps6507x_pmic_probe()
/linux/tools/testing/selftests/memfd/
H A Dfuse_test.c231 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/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";
H A Dums512.dtsi179 "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 …]
/linux/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()
/linux/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";
35 - compatible: Should be "mscc,ocelot-hsio", "syscon", "simple-mfd"
40 compatible = "mscc,ocelot-hsio", "syscon", "simple-mfd";
/linux/arch/powerpc/boot/
H A Dmpc8xx.c24 int mfi, mfn, mfd, pdf; in mpc885_get_clock() local
43 mfd = (plprcr >> 22) & 0x1f; in mpc885_get_clock()
49 ret += crystal * mfn / (mfd + 1); in mpc885_get_clock()
/linux/drivers/input/touchscreen/
H A Dtps6507x-ts.c43 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 Dpe_preserve_elems.c12 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()
38 close(mfd); in test_one_map()
/linux/arch/arm64/boot/dts/realtek/
H A Drtd139x.dtsi65 compatible = "syscon", "simple-mfd";
74 compatible = "syscon", "simple-mfd";
83 compatible = "syscon", "simple-mfd";
92 compatible = "syscon", "simple-mfd";
101 compatible = "syscon", "simple-mfd";
H A Drtd129x.dtsi67 compatible = "syscon", "simple-mfd";
76 compatible = "syscon", "simple-mfd";
85 compatible = "syscon", "simple-mfd";
94 compatible = "syscon", "simple-mfd";
103 compatible = "syscon", "simple-mfd";
H A Drtd16xx.dtsi145 compatible = "syscon", "simple-mfd";
154 compatible = "syscon", "simple-mfd";
163 compatible = "syscon", "simple-mfd";
172 compatible = "syscon", "simple-mfd";
181 compatible = "syscon", "simple-mfd";
/linux/drivers/clk/
H A Dclk-plldig.c191 unsigned int mfd, fracdiv = 0; in plldig_init() local
199 mfd = data->vco_freq / parent_rate; in plldig_init()
205 mfd = PLLDIG_DEFAULT_MFD; in plldig_init()
206 data->vco_freq = parent_rate * mfd; in plldig_init()
209 val = FIELD_PREP(PLLDIG_MFD_MASK, mfd); in plldig_init()
/linux/arch/arm/boot/dts/realtek/
H A Drtd1195.dtsi105 compatible = "syscon", "simple-mfd";
114 compatible = "syscon", "simple-mfd";
123 compatible = "syscon", "simple-mfd";
132 compatible = "syscon", "simple-mfd";
141 compatible = "syscon", "simple-mfd";
/linux/Documentation/devicetree/bindings/thermal/
H A Dmax77620_thermal.txt18 Please refer <devicetree/bindings/mfd/max77620.txt> for mfd DT binding
23 #include <dt-bindings/mfd/max77620.h>
/linux/drivers/clk/imx/
H A Dclk-pllv1.c58 unsigned int mfi, mfn, mfd, pd; in clk_pllv1_recalc_rate() local
76 mfd = (reg >> 16) & 0x3ff; in clk_pllv1_recalc_rate()
100 do_div(ull, mfd + 1); in clk_pllv1_recalc_rate()
/linux/arch/m68k/coldfire/
H A Dm53xx.c472 int fref, temp, fout, mfd; in clock_pll() local
479 mfd = readb(MCF_PLL_PFDR); in clock_pll()
481 return (fref * mfd / (BUSDIV * 4)); in clock_pll()
495 mfd = 4 * BUSDIV * temp / 100; in clock_pll()
498 fout = (fref * mfd / (BUSDIV * 4)); in clock_pll()
522 writeb(mfd, MCF_PLL_PFDR); in clock_pll()
/linux/arch/arm64/boot/dts/apple/
H A Dt600x-dieX.dtsi28 compatible = "apple,t6000-pmgr", "apple,pmgr", "syscon", "simple-mfd";
35 compatible = "apple,t6000-pmgr", "apple,pmgr", "syscon", "simple-mfd";
42 compatible = "apple,t6000-pmgr", "apple,pmgr", "syscon", "simple-mfd";
71 compatible = "apple,t6000-pmgr", "apple,pmgr", "syscon", "simple-mfd";
/linux/tools/testing/selftests/iommu/
H A Diommufd_utils.h51 static int mfd; variable
66 int mfd = memfd_create("buffer", mfd_flags); in memfd_mmap() local
69 if (mfd <= 0) in memfd_mmap()
71 if (ftruncate(mfd, length)) in memfd_mmap()
73 *mfd_p = mfd; in memfd_mmap()
74 buf = mmap(0, length, prot, flags, mfd, 0); in memfd_mmap()
77 close(mfd); in memfd_mmap()
725 static int _test_ioctl_ioas_map_file(int fd, unsigned int ioas_id, int mfd, in _test_ioctl_ioas_map_file() argument
733 .fd = mfd, in _test_ioctl_ioas_map_file()
747 #define test_ioctl_ioas_map_file(mfd, start, length, iova_p) \ argument
[all …]
/linux/tools/testing/selftests/filesystems/
H A Dfclog.c88 int mfd = fsmount(fsfd, FSMOUNT_CLOEXEC, MOUNT_ATTR_NOEXEC | MOUNT_ATTR_NOSUID); in TEST_F() local
89 ASSERT_SUCCESS(mfd); in TEST_F()
90 ASSERT_SUCCESS(move_mount(mfd, "", AT_FDCWD, "/tmp", MOVE_MOUNT_F_EMPTY_PATH)); in TEST_F()
/linux/Documentation/devicetree/bindings/leds/
H A Dleds-lm3697.txt30 - ti,brightness-resolution - see Documentation/devicetree/bindings/mfd/ti-lmu.txt
31 - ramp-up-us: see Documentation/devicetree/bindings/mfd/ti-lmu.txt
32 - ramp-down-us: see Documentation/devicetree/bindings/mfd/ti-lmu.txt
/linux/arch/arm/boot/dts/socionext/
H A Duniphier-pro4.dtsi246 "simple-mfd", "syscon";
262 "simple-mfd", "syscon";
381 "simple-mfd", "syscon";
424 "simple-mfd", "syscon";
487 "simple-mfd", "syscon";
539 "simple-mfd";
586 "simple-mfd";
635 "simple-mfd";
690 "simple-mfd";

12345678910