/linux-master/drivers/clk/imx/ |
H A D | clk-pfd.c | 38 struct clk_pfd *pfd = to_clk_pfd(hw); local 40 writel_relaxed(1 << ((pfd->idx + 1) * 8 - 1), pfd->reg + CLR); 47 struct clk_pfd *pfd = to_clk_pfd(hw); local 49 writel_relaxed(1 << ((pfd->idx + 1) * 8 - 1), pfd->reg + SET); 55 struct clk_pfd *pfd = to_clk_pfd(hw); local 57 u8 frac = (readl_relaxed(pfd->reg) >> (pfd->idx * 8)) & 0x3f; 88 struct clk_pfd *pfd local 108 struct clk_pfd *pfd = to_clk_pfd(hw); local 128 struct clk_pfd *pfd; local [all...] |
H A D | clk-pfdv2.c | 43 static int clk_pfdv2_wait(struct clk_pfdv2 *pfd) argument 47 return readl_poll_timeout(pfd->reg, val, val & (1 << pfd->vld_bit), 53 struct clk_pfdv2 *pfd = to_clk_pfdv2(hw); local 58 val = readl_relaxed(pfd->reg); 59 val &= ~(1 << pfd->gate_bit); 60 writel_relaxed(val, pfd->reg); 63 return clk_pfdv2_wait(pfd); 68 struct clk_pfdv2 *pfd = to_clk_pfdv2(hw); local 73 val = readl_relaxed(pfd 82 struct clk_pfdv2 *pfd = to_clk_pfdv2(hw); local 144 struct clk_pfdv2 *pfd = to_clk_pfdv2(hw); local 155 struct clk_pfdv2 *pfd = to_clk_pfdv2(hw); local 207 struct clk_pfdv2 *pfd; local [all...] |
/linux-master/tools/testing/selftests/net/af_unix/ |
H A D | test_unix_oob.c | 94 int read_data(int pfd, char *buf, int size) argument 99 len = read(pfd, buf, size); 107 static void wait_for_data(int pfd, int event) argument 111 pfds[0].fd = pfd; 177 int lfd, pfd; local 211 pfd = accept(lfd, (struct sockaddr *) &paddr, &len); 212 fcntl(pfd, F_SETOWN, getpid()); 222 wait_for_data(pfd, POLLPRI); 223 read_oob(pfd, &oob); 224 len = read_data(pfd, bu [all...] |
H A D | scm_pidfd.c | 184 /* send(pfd, "x", sizeof(char), 0) */ 376 int pfd; local 406 pfd = accept(self->server, NULL, NULL); 407 ASSERT_NE(-1, pfd); 409 pfd = self->server; 417 err = sendto(pfd, "x", sizeof(char), 0, (struct sockaddr *)&self->client_addr->listen_addr, self->client_addr->addrlen); 420 err = send(pfd, "x", sizeof(char), 0); 424 close(pfd);
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | find_vma.c | 28 int pfd; local 36 pfd = syscall(__NR_perf_event_open, &attr, 0, -1, -1, PERF_FLAG_FD_CLOEXEC); 38 return pfd >= 0 ? pfd : -errno; 53 int pfd, i; local 56 pfd = open_pe(); 57 if (pfd < 0) { 58 if (pfd == -ENOENT || pfd == -EOPNOTSUPP) { 63 if (!ASSERT_GE(pfd, [all...] |
H A D | perf_branches.c | 106 int pfd; local 116 pfd = syscall(__NR_perf_event_open, &attr, -1, 0, -1, PERF_FLAG_FD_CLOEXEC); 122 if (pfd < 0) { 129 if (CHECK(pfd < 0, "perf_event_open", "err %d errno %d\n", 130 pfd, errno)) 134 test_perf_branches_common(pfd, check_good_sample); 136 close(pfd); 147 int pfd; local 155 pfd = syscall(__NR_perf_event_open, &attr, -1, 0, -1, PERF_FLAG_FD_CLOEXEC); 156 if (CHECK(pfd < [all...] |
H A D | pe_preserve_elems.c | 12 int err, key = 0, pfd = -1, mfd = bpf_map__fd(map); local 20 pfd = syscall(__NR_perf_event_open, &attr, 0 /* pid */, 22 if (CHECK(pfd < 0, "perf_event_open", "failed\n")) 25 err = bpf_map_update_elem(mfd, &key, &pfd, BPF_ANY); 26 close(pfd);
|
H A D | perf_link.c | 31 int pfd = -1, link_fd = -1, err; local 43 pfd = syscall(__NR_perf_event_open, &attr, -1, 0, -1, PERF_FLAG_FD_CLOEXEC); 44 if (!ASSERT_GE(pfd, 0, "perf_fd")) 51 link_fd = bpf_link_create(bpf_program__fd(skel->progs.handler), pfd, 87 if (pfd >= 0) 88 close(pfd);
|
/linux-master/tools/testing/selftests/nsfs/ |
H A D | owner.c | 28 int pfd[2], ns, uns, init_uns; local 34 if (pipe(pfd)) 44 close(pfd[0]); 45 close(pfd[1]); 50 close(pfd[1]); 51 if (read(pfd[0], &c, 1) != 0) 53 close(pfd[0]);
|
/linux-master/tools/gpio/ |
H A D | gpio-watch.c | 27 struct pollfd pfd; local 55 pfd.fd = fd; 56 pfd.events = POLLIN | POLLPRI; 59 ret = poll(&pfd, 1, 5000); 65 rd = read(pfd.fd, &chg, sizeof(chg));
|
/linux-master/arch/mips/alchemy/devboards/ |
H A D | platform.c | 155 struct physmap_flash_data *pfd; local 173 pfd = kzalloc(sizeof(struct physmap_flash_data), GFP_KERNEL); 174 if (!pfd) 227 pfd->width = width; 228 pfd->parts = parts; 229 pfd->nr_parts = 5; 231 pd->dev.platform_data = pfd; 241 kfree(pfd);
|
/linux-master/tools/testing/selftests/pidfd/ |
H A D | pidfd_wait.c | 98 int pfd[2]; local 104 ASSERT_EQ(pipe(pfd), 0); 111 close(pfd[1]); 113 ASSERT_EQ(read(pfd[0], buf, 1), 1); 114 close(pfd[0]); 119 close(pfd[0]); 128 ASSERT_EQ(write(pfd[1], "C", 1), 1); 129 close(pfd[1]);
|
/linux-master/samples/connector/ |
H A D | ucon.c | 107 struct pollfd pfd; local 188 pfd.fd = s; 191 pfd.events = POLLIN; 192 pfd.revents = 0; 193 switch (poll(&pfd, 1, -1)) {
|
/linux-master/tools/testing/selftests/filesystems/epoll/ |
H A D | epoll_wakeup_test.c | 63 struct pollfd pfd; local 67 pfd.fd = ctx->efd[0]; 68 pfd.events = POLLIN; 69 if (poll(&pfd, 1, -1) > 0) { 90 struct pollfd pfd; local 94 pfd.fd = ctx->efd[0]; 95 pfd.events = POLLIN; 96 if (poll(&pfd, 1, -1) > 0) { 117 struct pollfd pfd; local 121 pfd 305 struct pollfd pfd; local 344 struct pollfd pfd; local 384 struct pollfd pfd; local 430 struct pollfd pfd; local 1006 struct pollfd pfd; local 1054 struct pollfd pfd; local 1102 struct pollfd pfd; local 1150 struct pollfd pfd; local 1817 struct pollfd pfd; local 1874 struct pollfd pfd; local 1931 struct pollfd pfd; local 1988 struct pollfd pfd; local 2253 struct pollfd pfd; local 2362 struct pollfd pfd; local 2580 struct pollfd pfd; local 2642 struct pollfd pfd; local 2963 struct pollfd pfd; local 3033 struct pollfd pfd; local 3121 struct pollfd pfd; local [all...] |
/linux-master/tools/testing/selftests/sched/ |
H A D | cs_prctl_test.c | 68 int pfd[2]; member in struct:child_args 157 close(ca->pfd[0]); 161 ret = write(ca->pfd[1], &ca->thr_tids, sizeof(int) * ca->num_threads); 163 printf("write failed on pfd[%d] - error (%s)\n", 164 ca->pfd[1], strerror(errno)); 166 close(ca->pfd[1]); 183 if (pipe(proc[i].pfd) == -1) 189 close(proc[i].pfd[1]); 193 ret = read(proc[i].pfd[0], &proc[i].thr_tids, sizeof(int) * proc[i].num_threads); 195 printf("read failed on proc[%d].pfd[ [all...] |
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_lirc_mode2_user.c | 114 struct pollfd pfd = { .fd = inputfd, .events = POLLIN }; local 118 poll(&pfd, 1, 100); 141 poll(&pfd, 1, 100);
|
H A D | test_flow_dissector.c | 477 struct pollfd pfd; local 480 pfd.fd = fd; 481 pfd.events = events; 483 ret = poll(&pfd, 1, timeout); 486 if (ret && !(pfd.revents & POLLIN)) 487 error(1, errno, "poll: unexpected event 0x%x\n", pfd.revents);
|
/linux-master/drivers/clk/ |
H A D | clk-versaclock3.c | 243 const struct vc3_pfd_data *pfd = vc3->data; local 248 regmap_read(vc3->regmap, pfd->offs, &prediv); 249 if (pfd->num == VC3_PFD1) { 251 if (prediv & pfd->mdiv1_bitmsk) { 259 } else if (pfd->num == VC3_PFD2) { 261 if (prediv & pfd->mdiv1_bitmsk) { 272 if (prediv & pfd->mdiv1_bitmsk) 278 if (prediv & pfd->mdiv2_bitmsk) 290 const struct vc3_pfd_data *pfd = vc3->data; local 302 if (pfd 317 const struct vc3_pfd_data *pfd = vc3->data; local [all...] |
/linux-master/samples/timers/ |
H A D | hpet_example.c | 135 struct pollfd pfd; local 178 pfd.fd = fd; 179 pfd.events = POLLIN; 182 pfd.revents = 0; 184 if (poll(&pfd, 1, -1) < 0) 197 pfd.revents);
|
/linux-master/tools/testing/selftests/net/ |
H A D | udpgso_bench_rx.c | 94 struct pollfd pfd; local 97 pfd.events = POLLIN; 98 pfd.revents = 0; 99 pfd.fd = fd; 102 ret = poll(&pfd, 1, 10); 120 if (pfd.revents != POLLIN) 122 pfd.revents, POLLIN);
|
H A D | psock_tpacket.c | 222 struct pollfd pfd; local 231 memset(&pfd, 0, sizeof(pfd)); 232 pfd.fd = sock; 233 pfd.events = POLLIN | POLLERR; 234 pfd.revents = 0; 265 poll(&pfd, 1, 1); 371 struct pollfd pfd; local 410 memset(&pfd, 0, sizeof(pfd)); 584 struct pollfd pfd; local [all...] |
H A D | psock_fanout.c | 161 int pfd; local 172 pfd = syscall(__NR_bpf, BPF_PROG_LOAD, &attr, sizeof(attr)); local 173 if (pfd < 0) { 179 if (setsockopt(fd, SOL_PACKET, PACKET_FANOUT_DATA, &pfd, sizeof(pfd))) { 184 if (close(pfd)) {
|
H A D | msg_zerocopy.c | 143 struct pollfd pfd; local 146 pfd.events = events; 147 pfd.revents = 0; 148 pfd.fd = fd; 150 ret = poll(&pfd, 1, cfg_waittime_ms); 154 return ret && (pfd.revents & events);
|
/linux-master/tools/hv/ |
H A D | hv_vss_daemon.c | 213 struct pollfd pfd; local 278 pfd.fd = vss_fd; 281 pfd.events = POLLIN; 282 pfd.revents = 0; 284 if (poll(&pfd, 1, -1) < 0) {
|
/linux-master/tools/testing/selftests/ir/ |
H A D | ir_loopback.c | 176 struct pollfd pfd = { .fd = rlircfd, .events = POLLIN }; local 179 poll(&pfd, 1, 1000);
|