| /OK3568_Linux_fs/kernel/drivers/clk/imx/ |
| H A D | clk-pfdv2.c | 19 * struct clk_pfdv2 - IMX PFD clock 21 * @reg: PFD register address 43 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 [all …]
|
| H A D | clk-pfd.c | 14 * struct clk_pfd - IMX PFD clock 16 * @reg: PFD register address 17 * @idx: the index of PFD encoded in the register 19 * PFD clock found on i.MX6 series. Each register for PFD has 4 clk_pfd 37 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() [all …]
|
| /OK3568_Linux_fs/external/xserver/hw/xwin/glx/ |
| H A D | indirect.c | 185 static void pfdOut(const PIXELFORMATDESCRIPTOR * pfd); 188 if (pfd->dwFlags & flag) { \ 194 pfdOut(const PIXELFORMATDESCRIPTOR * pfd) in pfdOut() argument 199 ErrorF("nSize = %u\n", pfd->nSize); in pfdOut() 200 ErrorF("nVersion = %u\n", pfd->nVersion); in pfdOut() 201 ErrorF("dwFlags = %u = {", (unsigned int)pfd->dwFlags); in pfdOut() 223 ErrorF("iPixelType = %hu = %s\n", pfd->iPixelType, in pfdOut() 224 (pfd->iPixelType == in pfdOut() 226 ErrorF("cColorBits = %hhu\n", pfd->cColorBits); in pfdOut() 227 ErrorF("cRedBits = %hhu\n", pfd->cRedBits); in pfdOut() [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/ |
| H A D | perf_branches.c | 106 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 < 0, "perf_event_open", "err %d\n", pfd)) in test_perf_branches_no_hw() [all …]
|
| H A D | pe_preserve_elems.c | 12 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()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/filesystems/epoll/ |
| H A D | epoll_wakeup_test.c | 48 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.fd = ctx->efd[0]; in waiter_entry2ap() [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/nsfs/ |
| H A D | owner.c | 28 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()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/net/ |
| H A D | psock_tpacket.c | 222 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() 411 pfd.fd = sock; in walk_tx() 412 pfd.events = POLLOUT | POLLERR; in walk_tx() [all …]
|
| H A D | udpgso_bench_rx.c | 94 struct pollfd pfd; in do_poll() local 97 pfd.events = POLLIN; in do_poll() 98 pfd.revents = 0; in do_poll() 99 pfd.fd = fd; in do_poll() 102 ret = poll(&pfd, 1, 10); in do_poll() 120 if (pfd.revents != POLLIN) in do_poll() 122 pfd.revents, POLLIN); in do_poll()
|
| H A D | psock_fanout.c | 147 int pfd; in sock_fanout_set_ebpf() local 158 pfd = syscall(__NR_bpf, BPF_PROG_LOAD, &attr, sizeof(attr)); in sock_fanout_set_ebpf() 159 if (pfd < 0) { in sock_fanout_set_ebpf() 165 if (setsockopt(fd, SOL_PACKET, PACKET_FANOUT_DATA, &pfd, sizeof(pfd))) { in sock_fanout_set_ebpf() 170 if (close(pfd)) { in sock_fanout_set_ebpf()
|
| /OK3568_Linux_fs/kernel/arch/mips/alchemy/devboards/ |
| H A D | platform.c | 155 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()
|
| /OK3568_Linux_fs/kernel/tools/gpio/ |
| H A D | gpio-watch.c | 27 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()
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-connectivity/rtorrent/rtorrent/ |
| H A D | don-t-run-code-while-configuring-package.patch | 32 - int pfd@<:@2@:>@, pty@<:@2@:>@, kfd, n; 34 - if (pipe(pfd) == -1) return 1; 35 - if (fcntl(pfd@<:@1@:>@, F_SETFL, O_NONBLOCK) == -1) return 2; 36 - while ((n = write(pfd@<:@1@:>@, buffer, sizeof(buffer))) == sizeof(buffer)); 39 - EV_SET(ev+0, pfd@<:@1@:>@, EVFILT_WRITE, EV_ADD | EV_ENABLE, 0, 0, NULL); 45 - read(pfd@<:@0@:>@, buffer, sizeof(buffer));
|
| /OK3568_Linux_fs/kernel/samples/timers/ |
| H A D | hpet_example.c | 135 struct pollfd pfd; in hpet_poll() local 178 pfd.fd = fd; in hpet_poll() 179 pfd.events = POLLIN; in hpet_poll() 182 pfd.revents = 0; in hpet_poll() 184 if (poll(&pfd, 1, -1) < 0) in hpet_poll() 197 pfd.revents); in hpet_poll()
|
| /OK3568_Linux_fs/kernel/samples/connector/ |
| H A D | ucon.c | 107 struct pollfd pfd; in main() local 188 pfd.fd = s; in main() 191 pfd.events = POLLIN; in main() 192 pfd.revents = 0; in main() 193 switch (poll(&pfd, 1, -1)) { in main()
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-imx/mx7ulp/ |
| H A D | scg.c | 288 /* APLL PFD clock */ in scg_apll_get_rate() 321 /* APLL PFD clock */ in scg_spll_get_rate() 326 clk_debug("scg_spll_get_rate PFD %u\n", rate); in scg_spll_get_rate() 680 /* Gate the PFD */ in scg_enable_pll_pfd() 691 * Un-gate the PFD in scg_enable_pll_pfd() 697 /* Wait for PFD clock being valid */ in scg_enable_pll_pfd() 833 /* SPLL output clocks (including PFD outputs) selected */ 835 /* SPLL PFD output clock selected */ 861 * "When changing PFD values, it is recommneded PFDx clock in scg_a7_spll_init() 863 * then program the new PFD value, then poll the PFDx_VALID in scg_a7_spll_init() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/networking/ |
| H A D | packet_mmap.rst | 491 struct pollfd pfd; 493 pfd.fd = fd; 494 pfd.revents = 0; 495 pfd.events = POLLIN|POLLRDNORM|POLLERR; 498 retval = poll(&pfd, 1, timeout); 535 struct pollfd pfd; 536 pfd.fd = fd; 537 pfd.revents = 0; 538 pfd.events = POLLOUT; 539 retval = poll(&pfd, 1, timeout); [all …]
|
| H A D | msg_zerocopy.rst | 127 pfd.fd = fd; 128 pfd.events = 0; 129 if (poll(&pfd, 1, -1) != 1 || pfd.revents & POLLERR == 0)
|
| /OK3568_Linux_fs/kernel/drivers/pinctrl/mediatek/ |
| H A D | pinctrl-mtk-common-v2.c | 69 int field, struct mtk_pin_field *pfd) in mtk_hw_pin_field_lookup() argument 123 /* Fill pfd from bits. For example 32-bit register applied is assumed in mtk_hw_pin_field_lookup() 126 pfd->index = c->i_base; in mtk_hw_pin_field_lookup() 127 pfd->offset = c->s_addr + c->x_addrs * (bits / c->sz_reg); in mtk_hw_pin_field_lookup() 128 pfd->bitpos = bits % c->sz_reg; in mtk_hw_pin_field_lookup() 129 pfd->mask = (1 << c->x_bits) - 1; in mtk_hw_pin_field_lookup() 131 /* pfd->next is used for indicating that bit wrapping-around happens in mtk_hw_pin_field_lookup() 135 pfd->next = pfd->bitpos + c->x_bits > c->sz_reg ? c->x_addrs : 0; in mtk_hw_pin_field_lookup() 142 int field, struct mtk_pin_field *pfd) in mtk_hw_pin_field_get() argument 149 return mtk_hw_pin_field_lookup(hw, desc, field, pfd); in mtk_hw_pin_field_get()
|
| /OK3568_Linux_fs/external/xserver/test/bigreq/ |
| H A D | request-length.c | 72 struct pollfd pfd = { in main() local 76 poll(&pfd, 1, -1); in main() 78 if (pfd.revents & POLLHUP) { in main()
|
| /OK3568_Linux_fs/kernel/tools/hv/ |
| H A D | hv_vss_daemon.c | 213 struct pollfd pfd; in main() local 278 pfd.fd = vss_fd; in main() 281 pfd.events = POLLIN; in main() 282 pfd.revents = 0; in main() 284 if (poll(&pfd, 1, -1) < 0) { in main()
|
| /OK3568_Linux_fs/external/xserver/hw/xfree86/os-support/linux/ |
| H A D | lnx_apm.c | 158 int fd, pfd; in lnxAPMOpen() local 166 if (access(APM_PROC, R_OK) || ((pfd = open(APM_PROC, O_RDONLY)) == -1)) { in lnxAPMOpen() 173 close(pfd); in lnxAPMOpen()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/ |
| H A D | test_lirc_mode2_user.c | 113 struct pollfd pfd = { .fd = inputfd, .events = POLLIN }; in main() local 117 poll(&pfd, 1, 100); in main() 140 poll(&pfd, 1, 100); in main()
|
| /OK3568_Linux_fs/app/forlinx/quectelCM/libmnl/dhcp/ |
| H A D | dhcpclient.c | 370 struct pollfd pfd; in dhcp_init_ifc() local 392 pfd.fd = s; in dhcp_init_ifc() 393 pfd.events = POLLIN; in dhcp_init_ifc() 394 pfd.revents = 0; in dhcp_init_ifc() 395 r = poll(&pfd, 1, timeout); in dhcp_init_ifc()
|
| /OK3568_Linux_fs/kernel/drivers/iio/frequency/ |
| H A D | adf4371.c | 208 unsigned long long pfd, in adf4371_pll_fract_n_compute() argument 217 tmp = do_div(vco, pfd); in adf4371_pll_fract_n_compute() 219 *fract2 = do_div(tmp, pfd); in adf4371_pll_fract_n_compute() 224 *mod2 = pfd; in adf4371_pll_fract_n_compute() 293 * divided down to produce the reference clock to the PFD in adf4371_set_freq() 507 * Calculate and maximize PFD frequency in adf4371_setup()
|