Home
last modified time | relevance | path

Searched +full:poll +full:- +full:retry +full:- +full:count (Results 1 – 25 of 472) sorted by relevance

12345678910>>...19

/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/supply/
H A Dsbs,sbs-battery.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/power/supply/sbs,sbs-battery.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Sebastian Reichel <sre@kernel.org>
19 - items:
20 - enum:
21 - ti,bq20z65
22 - ti,bq20z75
23 - enum:
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/
H A Ddrm_probe_helper.c2 * Copyright (c) 2006-2008 Intel Corporation
57 * track of a per-connector hpd interrupt.
68 module_param_named(poll, drm_kms_helper_poll, bool, 0600);
74 if ((mode->flags & DRM_MODE_FLAG_INTERLACE) && in drm_mode_validate_flag()
78 if ((mode->flags & DRM_MODE_FLAG_DBLSCAN) && in drm_mode_validate_flag()
82 if ((mode->flags & DRM_MODE_FLAG_3D_MASK) && in drm_mode_validate_flag()
95 struct drm_device *dev = connector->dev; in drm_mode_validate_pipeline()
120 &connector->display_info, in drm_mode_validate_pipeline()
150 cmdline_mode = &connector->cmdline_mode; in drm_helper_probe_add_cmdline_mode()
151 if (!cmdline_mode->specified) in drm_helper_probe_add_cmdline_mode()
[all …]
/OK3568_Linux_fs/external/rkwifibt/tools/rtk_hciattach/
H A Dhciattach_h4.c1 // SPDX-License-Identifier: GPL-2.0
23 #include <poll.h>
32 int retry, uint8_t *resp, uint16_t *resp_len) in start_xfer_wait() argument
37 int count = 0; in start_xfer_wait() local
42 if (fd == -1 || !cmd || len < 4) { in start_xfer_wait()
44 return -1; in start_xfer_wait()
54 return -1; in start_xfer_wait()
61 count = 0; in start_xfer_wait()
66 result = poll(p, 1, msec); in start_xfer_wait()
68 RS_ERR("Poll call error, %s", strerror(errno)); in start_xfer_wait()
[all …]
/OK3568_Linux_fs/u-boot/arch/arm/dts/
H A Dcros-ec-sbs.dtsi2 * Smart battery dts fragment for devices that use cros-ec-sbs
6 * SPDX-License-Identifier: GPL-2.0
10 battery: sbs-battery@b {
11 compatible = "sbs,sbs-battery";
13 sbs,i2c-retry-count = <2>;
14 sbs,poll-retry-count = <1>;
H A Dexynos5800-peach-pi.dts2 * SAMSUNG/GOOGLE Peach-Pit board device tree source
7 * SPDX-License-Identifier: GPL-2.0+
10 /dts-v1/;
15 cpu-model = "Exynos5800";
17 compatible = "google,pit-rev#", "google,pit",
21 google,bad-wake-gpios = <&gpx0 6 GPIO_ACTIVE_HIGH>;
22 hwid = "PIT TEST A-A 7848";
23 lazy-init = <1>;
34 compatible = "pwm-backlight";
36 brightness-levels = <0 100 500 1000 1500 2000 2500 2800>;
[all …]
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/elan/
H A Delan_update.c1 // SPDX-License-Identifier: GPL-2.0
3 * ELAN HID-I2C TouchScreen driver.
38 err = ts->ops->send(cmd,len); in get_hid_iap_ack()
40 dev_err(&ts->client->dev, "[elan] write page finish command fauled\n"); in get_hid_iap_ack()
44 err = ts->ops->poll(); in get_hid_iap_ack()
46 dev_err(&ts->client->dev, "[elan] wait for int failed\n"); in get_hid_iap_ack()
50 err = ts->ops->recv(buf,rlen); in get_hid_iap_ack()
51 dev_info(&ts->client->dev, "[elan]%s buf[4]:buf[5]= %x:%x\n",__func__, buf[4],buf[5]); in get_hid_iap_ack()
54 dev_info(&ts->client->dev,"[elan] iap write page response ok\n"); in get_hid_iap_ack()
57 dev_err(&ts->client->dev, "[elan] iap rewrite page response\n"); in get_hid_iap_ack()
[all …]
H A Delan_ts.c2 * ELAN HID-I2C TouchScreen driver.
53 gpio_set_value(hw_info->rst_gpio, 1); in elan_ts_hw_reset()
55 gpio_set_value(hw_info->rst_gpio, 0); in elan_ts_hw_reset()
57 gpio_set_value(hw_info->rst_gpio, 1); in elan_ts_hw_reset()
65 dev_err(&ts->client->dev, in elan_switch_irq()
67 __func__, ts->hw_info.irq_num, on, ts->irq_lock_flag); in elan_switch_irq()
68 mutex_lock(&ts->irq_mutex); in elan_switch_irq()
70 if(ts->irq_lock_flag == 1) { in elan_switch_irq()
71 enable_irq(ts->hw_info.irq_num); in elan_switch_irq()
72 ts->irq_lock_flag = 0; in elan_switch_irq()
[all …]
/OK3568_Linux_fs/kernel/arch/arm/boot/dts/
H A Dcros-ec-sbs.dtsi2 * Smart battery dts fragment for devices that use cros-ec-sbs
6 * This file is dual-licensed: you can use it either under the terms
46 battery: sbs-battery@b {
47 compatible = "sbs,sbs-battery";
49 sbs,i2c-retry-count = <2>;
50 sbs,poll-retry-count = <1>;
/OK3568_Linux_fs/kernel/drivers/acpi/
H A Dacpi_dbg.c1 // SPDX-License-Identifier: GPL-2.0-only
15 #include <linux/poll.h>
28 (CIRC_CNT((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE))
30 (CIRC_CNT_TO_END((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE))
32 (CIRC_SPACE((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE))
34 (CIRC_SPACE_TO_END((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE))
157 * The usage count is prepared to avoid race conditions between the in acpi_aml_used()
216 ret = -EFAULT; in acpi_aml_lock_write()
220 ret = -EAGAIN; in acpi_aml_lock_write()
235 ret = -EFAULT; in acpi_aml_lock_read()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/apple/
H A Dmace.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * mace.h - definitions for the registers in the Am79C940 MACE
16 REG(xmtrc); /* transmit retry count */
19 REG(fifofc); /* FIFO frame count */
22 REG(pr); /* poll register */
36 REG(mpc); /* missed packet count (clears when read) */
38 REG(rntpc); /* runt packet count (clears when read) */
39 REG(rcvcc); /* recv collision count (clears when read) */
47 #define DRTRY 0x80 /* don't retry transmission after collision */
49 #define AUTO_PAD_XMIT 0x01 /* auto-pad short packets on transmission */
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/vm/
H A Duserfaultfd.c1 // SPDX-License-Identifier: GPL-2.0-only
13 * 1) one per-CPU thread takes a per-page pthread_mutex in a random
15 * area_src), and increments a per-page counter in the same page,
18 * 2) another per-CPU thread handles the userfaults generated by
19 * thread 1 above. userfaultfd blocking reads or poll() modes are
22 * 3) one last per-CPU thread transfers the memory in the background
32 * per-CPU threads 1 by triggering userfaults inside
47 #include <poll.h>
81 /* Whether to test uffd write-protection */
91 static int uffd = -1;
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/i2c/
H A Dgoogle,cros-ec-i2c-tunnel.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $id: http://devicetree.org/schemas/i2c/google,cros-ec-i2c-tunnel.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: I2C bus that tunnels through the ChromeOS EC (cros-ec)
11 - Doug Anderson <dianders@chromium.org>
12 - Benson Leung <bleung@chromium.org>
13 - Enric Balletbo i Serra <enric.balletbo@collabora.com>
21 The node for this device should be under a cros-ec node like
22 google,cros-ec-spi or google,cros-ec-i2c.
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/sun/
H A Dsunqe.h1 /* SPDX-License-Identifier: GPL-2.0 */
15 #define GLOB_MSIZE 0x0cUL /* Local-memory Size */
45 /* The following registers are for per-qe channel information/status. */
59 #define CREG_PIPG 0x34UL /* Inter-Frame Gap */
74 #define CREG_STAT_CCOFLOW 0x00100000 /* TX Coll-counter Overflow */
79 #define CREG_STAT_RCCOFLOW 0x00001000 /* RX Coll-counter Overflow */
85 #define CREG_STAT_CECOFLOW 0x00000040 /* CRC Error-counter Overflow*/
115 #define CREG_MMASK_ERETRY 0x04000000 /* Excess retry */
121 #define CREG_MMASK_RXCOLL 0x00000400 /* RX Coll-Cntr overflow */
129 /* Per-channel AMD 79C940 MACE registers. */
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/net/
H A Dtxtimestamp.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * - SCHED, SND and ACK timestamps
9 * - RAW, UDP and TCP
10 * - IPv4 and IPv6
11 * - various packet sizes (to test GSO and TSO)
17 * A simple `nc6 [-u] -l -p $DESTPORT` will do
38 #include <poll.h>
85 static int saved_tskey = -1;
86 static int saved_tskey_type = -1;
92 int count; member
[all …]
/OK3568_Linux_fs/kernel/fs/kernfs/
H A Dfile.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * fs/kernfs/file.c - kernfs file implementation
5 * Copyright (c) 2001-3 Patrick Mochel
13 #include <linux/poll.h>
19 #include "kernfs-internal.h"
25 * kernfs_node->attr.open points to kernfs_open_node. attr.open is
28 * filp->private_data points to seq_file whose ->private points to
30 * kernfs_open_node->files, which is protected by kernfs_open_file_mutex.
38 wait_queue_head_t poll; member
57 return ((struct seq_file *)file->private_data)->private; in kernfs_of()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/amd/
H A Dariadne.h4 * © Copyright 1995 by Geert Uytterhoeven (geert@linux-m68k.org)
8 * ----------------------------------------------------------------------------------
13 * Written 1993-94 by Donald Becker.
15 * Am79C960: PCnet(tm)-ISA Single-Chip Ethernet Controller
22 * ----------------------------------------------------------------------------------
28 * ----------------------------------------------------------------------------------
30 * The Ariadne is a Zorro-II board made by Village Tronic. It contains:
32 * - an Am79C960 PCnet-ISA Single-Chip Ethernet Controller with both
33 * 10BASE-2 (thin coax) and 10BASE-T (UTP) connectors
35 * - an MC68230 Parallel Interface/Timer configured as 2 parallel ports
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/class/
H A Dcdc-wdm.c1 // SPDX-License-Identifier: GPL-2.0
3 * cdc-wdm.c
7 * Copyright (c) 2007-2009 Oliver Neukum
9 * Some code taken from cdc-acm.c
23 #include <linux/poll.h>
28 #include <linux/usb/cdc-wdm.h>
64 /* CDC-WMC r1.1 requires wMaxCommand to be "at least 256 decimal (0x100)" */
71 /* --- method tables --- */
95 int count; member
120 if (desc->intf == intf) in wdm_find_device()
[all …]
/OK3568_Linux_fs/kernel/io_uring/
H A Dio_uring.c1 // SPDX-License-Identifier: GPL-2.0
14 * through a control-dependency in io_get_cqe (smp_store_release to
25 * When using the SQ poll thread (IORING_SETUP_SQPOLL), the application
39 * Copyright (C) 2018-2019 Jens Axboe
40 * Copyright (c) 2018-2019 Christoph Hellwig
89 #include "io-wq.h"
100 #define IO_RSRC_TAG_TABLE_SHIFT (PAGE_SHIFT - 3)
102 #define IO_RSRC_TAG_TABLE_MASK (IO_RSRC_TAG_TABLE_MAX - 1)
138 * ring_entries - 1)
324 /* inline/task_work completion list, under ->uring_lock */
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/msm/hdmi/
H A Dhdmi_hdcp.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* Copyright (c) 2010-2015, The Linux Foundation. All rights reserved.
82 int retry = 5; in msm_hdmi_ddc_read() local
98 retry: in msm_hdmi_ddc_read()
99 rc = i2c_transfer(hdmi->i2c, msgs, 2); in msm_hdmi_ddc_read()
101 retry--; in msm_hdmi_ddc_read()
104 else if (retry > 0) in msm_hdmi_ddc_read()
105 goto retry; in msm_hdmi_ddc_read()
107 rc = -EIO; in msm_hdmi_ddc_read()
120 int retry = 10; in msm_hdmi_ddc_write() local
[all …]
/OK3568_Linux_fs/kernel/drivers/platform/chrome/
H A Dcros_ec_debugfs.c1 // SPDX-License-Identifier: GPL-2.0+
15 #include <linux/poll.h>
20 #define DRV_NAME "cros-ec-debugfs"
26 #define CIRC_ADD(idx, size, value) (((idx) + (value)) & ((size) - 1))
32 * struct cros_ec_debugfs - EC debugging information.
39 * @log_poll_work: recurring task to poll EC for new console log data
64 struct cros_ec_dev *ec = debug_info->ec; in cros_ec_console_log_work()
65 struct circ_buf *cb = &debug_info->log_buffer; in cros_ec_console_log_work()
67 .command = EC_CMD_CONSOLE_SNAPSHOT + ec->cmd_offset, in cros_ec_console_log_work()
71 (struct ec_params_console_read_v1 *)debug_info->read_msg->data; in cros_ec_console_log_work()
[all …]
/OK3568_Linux_fs/kernel/drivers/ide/
H A Dide-tape.c4 * Copyright (C) 1995-1999 Gadi Oxman <gadio@netvision.net.il>
5 * Copyright (C) 2003-2005 Bartlomiej Zolnierkiewicz
8 * of the faculty of electrical engineering in the Technion - Israel's
15 * Documentation/ide/ChangeLog.ide-tape.1995-2002
18 #define DRV_NAME "ide-tape"
61 * After each failed packet command we issue a request sense command and retry
80 * function in ide-tape. There are two cases in which we poll for DSC:
93 * commands are slow. We start from a "fast" frequency - IDETAPE_DSC_MA_FAST
95 * (5 min), we switch it to a lower frequency - IDETAPE_DSC_MA_SLOW (1 min).
162 /* Timer used to poll for dsc */
[all …]
/OK3568_Linux_fs/kernel/include/uapi/linux/
H A Dfuse.h1 /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause) */
4 Copyright (C) 2001-2008 Miklos Szeredi <miklos@szeredi.hu>
9 This -- and only this -- header file may also be distributed under
12 Copyright (C) 2001-2007 Miklos Szeredi. All rights reserved.
42 * - add the following messages:
48 * - add padding to messages to accommodate 32-bit servers on 64-bit kernels
51 * - add FOPEN_DIRECT_IO and FOPEN_KEEP_CACHE flags
52 * - add FUSE_FSYNCDIR message
55 * - add FUSE_ACCESS message
56 * - add FUSE_CREATE message
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/display/
H A Dintel_hotplug.c51 * pulses, with failures and non-MST long pulses triggering regular hotplug
64 * while before being re-enabled. The intention is to mitigate issues raising
78 * intel_hpd_pin_default - return default pin associated with certain port.
89 return HPD_PORT_A + port - PORT_A; in intel_hpd_pin_default()
107 return encoder ? encoder->hpd_pin : HPD_NONE; in intel_connector_hpd_pin()
111 * intel_hpd_irq_storm_detect - gather stats and detect HPD IRQ storm on a pin
121 * stored in @dev_priv->hotplug.hpd_storm_threshold which defaults to
122 * @HPD_STORM_DEFAULT_THRESHOLD. Long IRQs count as +10 to this threshold, and
123 * short IRQs count as +1. If this threshold is exceeded, it's considered an
126 * By default, most systems will only count long IRQs towards
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/amdgpu/
H A Dsi_dma.c43 return ring->adev->wb.wb[ring->rptr_offs>>2]; in si_dma_ring_get_rptr()
48 struct amdgpu_device *adev = ring->adev; in si_dma_ring_get_wptr()
49 u32 me = (ring == &adev->sdma.instance[0].ring) ? 0 : 1; in si_dma_ring_get_wptr()
56 struct amdgpu_device *adev = ring->adev; in si_dma_ring_set_wptr()
57 u32 me = (ring == &adev->sdma.instance[0].ring) ? 0 : 1; in si_dma_ring_set_wptr()
60 (lower_32_bits(ring->wptr) << 2) & 0x3fffc); in si_dma_ring_set_wptr()
72 while ((lower_32_bits(ring->wptr) & 7) != 5) in si_dma_ring_emit_ib()
75 amdgpu_ring_write(ring, (ib->gpu_addr & 0xFFFFFFE0)); in si_dma_ring_emit_ib()
76 amdgpu_ring_write(ring, (ib->length_dw << 12) | (upper_32_bits(ib->gpu_addr) & 0xFF)); in si_dma_ring_emit_ib()
81 * si_dma_ring_emit_fence - emit a fence on the DMA ring
[all …]
/OK3568_Linux_fs/kernel/drivers/dma-buf/
H A Ddma-buf.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * Many thanks to linaro-mm-sig list, and specially
16 #include <linux/dma-buf.h>
17 #include <linux/dma-fence.h>
23 #include <linux/poll.h>
24 #include <linux/dma-resv.h>
30 #include <uapi/linux/dma-buf.h>
33 #include "dma-buf-sysfs-stats.h"
109 dmabuf = dentry->d_fsdata; in dmabuffs_dname()
110 spin_lock(&dmabuf->name_lock); in dmabuffs_dname()
[all …]

12345678910>>...19