Home
last modified time | relevance | path

Searched refs:pfd (Results 1 - 25 of 71) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/clk/imx/
H A Dclk-pfd.c37 struct clk_pfd *pfd = to_clk_pfd(hw); in clk_pfd_enable() local
39 writel_relaxed(1 << ((pfd->idx + 1) * 8 - 1), pfd->reg + CLR); in clk_pfd_enable()
46 struct clk_pfd *pfd = to_clk_pfd(hw); in clk_pfd_disable() local
48 writel_relaxed(1 << ((pfd->idx + 1) * 8 - 1), pfd->reg + SET); in clk_pfd_disable()
54 struct clk_pfd *pfd = to_clk_pfd(hw); in clk_pfd_recalc_rate() local
56 u8 frac = (readl_relaxed(pfd->reg) >> (pfd->idx * 8)) & 0x3f; in clk_pfd_recalc_rate()
87 struct clk_pfd *pfd in clk_pfd_set_rate() local
107 struct clk_pfd *pfd = to_clk_pfd(hw); clk_pfd_is_enabled() local
127 struct clk_pfd *pfd; imx_clk_hw_pfd() local
[all...]
H A Dclk-pfdv2.c43 static int clk_pfdv2_wait(struct clk_pfdv2 *pfd) in clk_pfdv2_wait() argument
47 return readl_poll_timeout(pfd->reg, val, val & (1 << pfd->vld_bit), in clk_pfdv2_wait()
53 struct clk_pfdv2 *pfd = to_clk_pfdv2(hw); in clk_pfdv2_enable() local
58 val = readl_relaxed(pfd->reg); in clk_pfdv2_enable()
59 val &= ~(1 << pfd->gate_bit); in clk_pfdv2_enable()
60 writel_relaxed(val, pfd->reg); in clk_pfdv2_enable()
63 return clk_pfdv2_wait(pfd); in clk_pfdv2_enable()
68 struct clk_pfdv2 *pfd = to_clk_pfdv2(hw); in clk_pfdv2_disable() local
73 val = readl_relaxed(pfd in clk_pfdv2_disable()
82 struct clk_pfdv2 *pfd = to_clk_pfdv2(hw); clk_pfdv2_recalc_rate() local
144 struct clk_pfdv2 *pfd = to_clk_pfdv2(hw); clk_pfdv2_is_enabled() local
155 struct clk_pfdv2 *pfd = to_clk_pfdv2(hw); clk_pfdv2_set_rate() local
198 struct clk_pfdv2 *pfd; imx_clk_hw_pfdv2() local
[all...]
/kernel/linux/linux-6.6/drivers/clk/imx/
H A Dclk-pfd.c38 struct clk_pfd *pfd = to_clk_pfd(hw); in clk_pfd_enable() local
40 writel_relaxed(1 << ((pfd->idx + 1) * 8 - 1), pfd->reg + CLR); in clk_pfd_enable()
47 struct clk_pfd *pfd = to_clk_pfd(hw); in clk_pfd_disable() local
49 writel_relaxed(1 << ((pfd->idx + 1) * 8 - 1), pfd->reg + SET); in clk_pfd_disable()
55 struct clk_pfd *pfd = to_clk_pfd(hw); in clk_pfd_recalc_rate() local
57 u8 frac = (readl_relaxed(pfd->reg) >> (pfd->idx * 8)) & 0x3f; in clk_pfd_recalc_rate()
88 struct clk_pfd *pfd in clk_pfd_set_rate() local
108 struct clk_pfd *pfd = to_clk_pfd(hw); clk_pfd_is_enabled() local
128 struct clk_pfd *pfd; imx_clk_hw_pfd() local
[all...]
H A Dclk-pfdv2.c43 static int clk_pfdv2_wait(struct clk_pfdv2 *pfd) in clk_pfdv2_wait() argument
47 return readl_poll_timeout(pfd->reg, val, val & (1 << pfd->vld_bit), in clk_pfdv2_wait()
53 struct clk_pfdv2 *pfd = to_clk_pfdv2(hw); in clk_pfdv2_enable() local
58 val = readl_relaxed(pfd->reg); in clk_pfdv2_enable()
59 val &= ~(1 << pfd->gate_bit); in clk_pfdv2_enable()
60 writel_relaxed(val, pfd->reg); in clk_pfdv2_enable()
63 return clk_pfdv2_wait(pfd); in clk_pfdv2_enable()
68 struct clk_pfdv2 *pfd = to_clk_pfdv2(hw); in clk_pfdv2_disable() local
73 val = readl_relaxed(pfd in clk_pfdv2_disable()
82 struct clk_pfdv2 *pfd = to_clk_pfdv2(hw); clk_pfdv2_recalc_rate() local
144 struct clk_pfdv2 *pfd = to_clk_pfdv2(hw); clk_pfdv2_is_enabled() local
155 struct clk_pfdv2 *pfd = to_clk_pfdv2(hw); clk_pfdv2_set_rate() local
207 struct clk_pfdv2 *pfd; imx_clk_hw_pfdv2() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/net/af_unix/
H A Dtest_unix_oob.c94 int read_data(int pfd, char *buf, int size) in read_data() argument
99 len = read(pfd, buf, size); in read_data()
107 static void wait_for_data(int pfd, int event) in wait_for_data() argument
111 pfds[0].fd = pfd; in wait_for_data()
177 int lfd, pfd; in main() local
213 pfd = accept(lfd, (struct sockaddr *) &paddr, &len); in main()
214 fcntl(pfd, F_SETOWN, getpid()); in main()
224 wait_for_data(pfd, POLLPRI); in main()
225 read_oob(pfd, &oob); in main()
226 len = read_data(pfd, bu in main()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dperf_branches.c106 int pfd; in test_perf_branches_hw() local
116 pfd = syscall(__NR_perf_event_open, &attr, -1, 0, -1, PERF_FLAG_FD_CLOEXEC); in test_perf_branches_hw()
122 if (pfd == -1) { in test_perf_branches_hw()
129 if (CHECK(pfd < 0, "perf_event_open", "err %d errno %d\n", in test_perf_branches_hw()
130 pfd, errno)) in test_perf_branches_hw()
134 test_perf_branches_common(pfd, check_good_sample); in test_perf_branches_hw()
136 close(pfd); in test_perf_branches_hw()
147 int pfd; in test_perf_branches_no_hw() local
155 pfd = syscall(__NR_perf_event_open, &attr, -1, 0, -1, PERF_FLAG_FD_CLOEXEC); in test_perf_branches_no_hw()
156 if (CHECK(pfd < in test_perf_branches_no_hw()
[all...]
H A Dpe_preserve_elems.c12 int err, key = 0, pfd = -1, mfd = bpf_map__fd(map); in test_one_map() local
20 pfd = syscall(__NR_perf_event_open, &attr, 0 /* pid */, in test_one_map()
22 if (CHECK(pfd < 0, "perf_event_open", "failed\n")) in test_one_map()
25 err = bpf_map_update_elem(mfd, &key, &pfd, BPF_ANY); in test_one_map()
26 close(pfd); in test_one_map()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dperf_branches.c106 int pfd; in test_perf_branches_hw() local
116 pfd = syscall(__NR_perf_event_open, &attr, -1, 0, -1, PERF_FLAG_FD_CLOEXEC); in test_perf_branches_hw()
122 if (pfd < 0) { in test_perf_branches_hw()
129 if (CHECK(pfd < 0, "perf_event_open", "err %d errno %d\n", in test_perf_branches_hw()
130 pfd, errno)) in test_perf_branches_hw()
134 test_perf_branches_common(pfd, check_good_sample); in test_perf_branches_hw()
136 close(pfd); in test_perf_branches_hw()
147 int pfd; in test_perf_branches_no_hw() local
155 pfd = syscall(__NR_perf_event_open, &attr, -1, 0, -1, PERF_FLAG_FD_CLOEXEC); in test_perf_branches_no_hw()
156 if (CHECK(pfd < in test_perf_branches_no_hw()
[all...]
H A Dfind_vma.c28 int pfd; in open_pe() local
36 pfd = syscall(__NR_perf_event_open, &attr, 0, -1, -1, PERF_FLAG_FD_CLOEXEC); in open_pe()
38 return pfd >= 0 ? pfd : -errno; in open_pe()
53 int pfd, i; in test_find_vma_pe() local
56 pfd = open_pe(); in test_find_vma_pe()
57 if (pfd < 0) { in test_find_vma_pe()
58 if (pfd == -ENOENT || pfd == -EOPNOTSUPP) { in test_find_vma_pe()
63 if (!ASSERT_GE(pfd, in test_find_vma_pe()
[all...]
H A Dperf_link.c31 int pfd = -1, link_fd = -1, err; in serial_test_perf_link() local
43 pfd = syscall(__NR_perf_event_open, &attr, -1, 0, -1, PERF_FLAG_FD_CLOEXEC); in serial_test_perf_link()
44 if (!ASSERT_GE(pfd, 0, "perf_fd")) in serial_test_perf_link()
51 link_fd = bpf_link_create(bpf_program__fd(skel->progs.handler), pfd, in serial_test_perf_link()
87 if (pfd >= 0) in serial_test_perf_link()
88 close(pfd); in serial_test_perf_link()
H A Dpe_preserve_elems.c12 int err, key = 0, pfd = -1, mfd = bpf_map__fd(map); in test_one_map() local
20 pfd = syscall(__NR_perf_event_open, &attr, 0 /* pid */, in test_one_map()
22 if (CHECK(pfd < 0, "perf_event_open", "failed\n")) in test_one_map()
25 err = bpf_map_update_elem(mfd, &key, &pfd, BPF_ANY); in test_one_map()
26 close(pfd); in test_one_map()
/kernel/liteos_a/testsuites/unittest/libc/io/full/
H A DIO_test_ppoll_003.cpp42 static struct pollfd pfd; variable
65 retVal = ppoll(&pfd, 1, NULL, &sigMask); in pthread_01()
70 if (pfd.revents & POLLIN) { in pthread_01()
72 retVal = read(pfd.fd, buf, BUF_SIZE); in pthread_01()
80 ICUNIT_ASSERT_NOT_EQUAL_NULL(pfd.revents & POLLIN, 0, pfd.revents & POLLIN); in pthread_01()
105 /* 设置pfd sigmask */ in testcase()
106 pfd.fd = pipeFdPpoll[0]; in testcase()
107 pfd.events = POLLIN; in testcase()
108 pfd in testcase()
[all...]
H A DIO_test_ppoll_002.cpp42 static struct pollfd pfd; variable
55 retVal = ppoll(&pfd, 1, &timeout, NULL); in pthread_01()
59 if (pfd.revents & POLLIN) { in pthread_01()
61 retVal = read(pfd.fd, buf, BUF_SIZE); in pthread_01()
86 /* 设置pfd */ in testcase()
87 pfd.fd = pipeFdPpoll[0]; in testcase()
88 pfd.events = POLLIN; in testcase()
H A DIO_test_ppoll_001.cpp41 static struct pollfd pfd; variable
53 retVal = ppoll(&pfd, 1, NULL, NULL); in pthread_01()
62 if (pfd.revents & POLLIN) { in pthread_01()
64 retVal = read(pfd.fd, buf, BUF_SIZE); in pthread_01()
90 /* 设置pfd */ in testcase()
91 pfd.fd = pipeFdPpoll[0]; in testcase()
92 pfd.events = POLLIN; in testcase()
/kernel/linux/linux-5.10/tools/testing/selftests/nsfs/
H A Downer.c28 int pfd[2], ns, uns, init_uns; in main() local
34 if (pipe(pfd)) in main()
44 close(pfd[0]); in main()
45 close(pfd[1]); in main()
50 close(pfd[1]); in main()
51 if (read(pfd[0], &c, 1) != 0) in main()
53 close(pfd[0]); in main()
/kernel/linux/linux-6.6/tools/testing/selftests/nsfs/
H A Downer.c28 int pfd[2], ns, uns, init_uns; in main() local
34 if (pipe(pfd)) in main()
44 close(pfd[0]); in main()
45 close(pfd[1]); in main()
50 close(pfd[1]); in main()
51 if (read(pfd[0], &c, 1) != 0) in main()
53 close(pfd[0]); in main()
/kernel/linux/linux-5.10/tools/testing/selftests/filesystems/epoll/
H A Depoll_wakeup_test.c48 struct pollfd pfd; in waiter_entry1ap() local
52 pfd.fd = ctx->efd[0]; in waiter_entry1ap()
53 pfd.events = POLLIN; in waiter_entry1ap()
54 if (poll(&pfd, 1, -1) > 0) { in waiter_entry1ap()
75 struct pollfd pfd; in waiter_entry1op() local
79 pfd.fd = ctx->efd[0]; in waiter_entry1op()
80 pfd.events = POLLIN; in waiter_entry1op()
81 if (poll(&pfd, 1, -1) > 0) { in waiter_entry1op()
102 struct pollfd pfd; in waiter_entry2ap() local
106 pfd in waiter_entry2ap()
290 struct pollfd pfd; TEST() local
329 struct pollfd pfd; TEST() local
369 struct pollfd pfd; TEST() local
415 struct pollfd pfd; TEST() local
991 struct pollfd pfd; TEST() local
1039 struct pollfd pfd; TEST() local
1087 struct pollfd pfd; TEST() local
1135 struct pollfd pfd; TEST() local
1802 struct pollfd pfd; TEST() local
1859 struct pollfd pfd; TEST() local
1916 struct pollfd pfd; TEST() local
1973 struct pollfd pfd; TEST() local
2238 struct pollfd pfd; TEST() local
2347 struct pollfd pfd; TEST() local
2565 struct pollfd pfd; TEST() local
2627 struct pollfd pfd; TEST() local
2948 struct pollfd pfd; TEST() local
3018 struct pollfd pfd; TEST() local
3106 struct pollfd pfd; TEST() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/filesystems/epoll/
H A Depoll_wakeup_test.c63 struct pollfd pfd; in waiter_entry1ap() local
67 pfd.fd = ctx->efd[0]; in waiter_entry1ap()
68 pfd.events = POLLIN; in waiter_entry1ap()
69 if (poll(&pfd, 1, -1) > 0) { in waiter_entry1ap()
90 struct pollfd pfd; in waiter_entry1op() local
94 pfd.fd = ctx->efd[0]; in waiter_entry1op()
95 pfd.events = POLLIN; in waiter_entry1op()
96 if (poll(&pfd, 1, -1) > 0) { in waiter_entry1op()
117 struct pollfd pfd; in waiter_entry2ap() local
121 pfd in waiter_entry2ap()
305 struct pollfd pfd; TEST() local
344 struct pollfd pfd; TEST() local
384 struct pollfd pfd; TEST() local
430 struct pollfd pfd; TEST() local
1006 struct pollfd pfd; TEST() local
1054 struct pollfd pfd; TEST() local
1102 struct pollfd pfd; TEST() local
1150 struct pollfd pfd; TEST() local
1817 struct pollfd pfd; TEST() local
1874 struct pollfd pfd; TEST() local
1931 struct pollfd pfd; TEST() local
1988 struct pollfd pfd; TEST() local
2253 struct pollfd pfd; TEST() local
2362 struct pollfd pfd; TEST() local
2580 struct pollfd pfd; TEST() local
2642 struct pollfd pfd; TEST() local
2963 struct pollfd pfd; TEST() local
3033 struct pollfd pfd; TEST() local
3121 struct pollfd pfd; TEST() local
[all...]
/kernel/linux/linux-5.10/tools/gpio/
H A Dgpio-watch.c27 struct pollfd pfd; in main() local
55 pfd.fd = fd; in main()
56 pfd.events = POLLIN | POLLPRI; in main()
59 ret = poll(&pfd, 1, 5000); in main()
65 rd = read(pfd.fd, &chg, sizeof(chg)); in main()
/kernel/linux/linux-6.6/tools/gpio/
H A Dgpio-watch.c27 struct pollfd pfd; in main() local
55 pfd.fd = fd; in main()
56 pfd.events = POLLIN | POLLPRI; in main()
59 ret = poll(&pfd, 1, 5000); in main()
65 rd = read(pfd.fd, &chg, sizeof(chg)); in main()
/kernel/linux/linux-5.10/arch/mips/alchemy/devboards/
H A Dplatform.c155 struct physmap_flash_data *pfd; in db1x_register_norflash() local
173 pfd = kzalloc(sizeof(struct physmap_flash_data), GFP_KERNEL); in db1x_register_norflash()
174 if (!pfd) in db1x_register_norflash()
227 pfd->width = width; in db1x_register_norflash()
228 pfd->parts = parts; in db1x_register_norflash()
229 pfd->nr_parts = 5; in db1x_register_norflash()
231 pd->dev.platform_data = pfd; in db1x_register_norflash()
241 kfree(pfd); in db1x_register_norflash()
/kernel/linux/linux-6.6/arch/mips/alchemy/devboards/
H A Dplatform.c155 struct physmap_flash_data *pfd; in db1x_register_norflash() local
173 pfd = kzalloc(sizeof(struct physmap_flash_data), GFP_KERNEL); in db1x_register_norflash()
174 if (!pfd) in db1x_register_norflash()
227 pfd->width = width; in db1x_register_norflash()
228 pfd->parts = parts; in db1x_register_norflash()
229 pfd->nr_parts = 5; in db1x_register_norflash()
231 pd->dev.platform_data = pfd; in db1x_register_norflash()
241 kfree(pfd); in db1x_register_norflash()
/kernel/linux/linux-5.10/tools/testing/selftests/net/
H A Dpsock_tpacket.c222 struct pollfd pfd; in walk_v1_v2_rx() local
231 memset(&pfd, 0, sizeof(pfd)); in walk_v1_v2_rx()
232 pfd.fd = sock; in walk_v1_v2_rx()
233 pfd.events = POLLIN | POLLERR; in walk_v1_v2_rx()
234 pfd.revents = 0; in walk_v1_v2_rx()
265 poll(&pfd, 1, 1); in walk_v1_v2_rx()
371 struct pollfd pfd; in walk_tx() local
410 memset(&pfd, 0, sizeof(pfd)); in walk_tx()
584 struct pollfd pfd; walk_v3_rx() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A Dpsock_tpacket.c222 struct pollfd pfd; in walk_v1_v2_rx() local
231 memset(&pfd, 0, sizeof(pfd)); in walk_v1_v2_rx()
232 pfd.fd = sock; in walk_v1_v2_rx()
233 pfd.events = POLLIN | POLLERR; in walk_v1_v2_rx()
234 pfd.revents = 0; in walk_v1_v2_rx()
265 poll(&pfd, 1, 1); in walk_v1_v2_rx()
371 struct pollfd pfd; in walk_tx() local
410 memset(&pfd, 0, sizeof(pfd)); in walk_tx()
584 struct pollfd pfd; walk_v3_rx() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/sched/
H A Dcs_prctl_test.c68 int pfd[2]; member
157 close(ca->pfd[0]); in child_func_process()
161 ret = write(ca->pfd[1], &ca->thr_tids, sizeof(int) * ca->num_threads); in child_func_process()
163 printf("write failed on pfd[%d] - error (%s)\n", in child_func_process()
164 ca->pfd[1], strerror(errno)); in child_func_process()
166 close(ca->pfd[1]); in child_func_process()
183 if (pipe(proc[i].pfd) == -1) in create_processes()
189 close(proc[i].pfd[1]); in create_processes()
193 ret = read(proc[i].pfd[0], &proc[i].thr_tids, sizeof(int) * proc[i].num_threads); in create_processes()
195 printf("read failed on proc[%d].pfd[ in create_processes()
[all...]

Completed in 12 milliseconds

123