/linux/drivers/firewire/ |
H A D | packet-serdes-test.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 // packet-serdes-test.c - An application of Kunit to check serialization/deserialization of packets 10 #include <linux/firewire-constants.h> 12 #include "packet-header-definitions.h" 13 #include "phy-packet-definitions.h" 17 unsigned int retry, unsigned int tcode, in serialize_async_header_common() argument 22 async_header_set_retry(header, retry); in serialize_async_header_common() 30 unsigned int retry, unsigned int tcode, in serialize_async_header_request() argument 33 serialize_async_header_common(header, dst_id, tlabel, retry, tcode, priority, src_id); in serialize_async_header_request() 39 unsigned int retry, unsigned int tcode, in serialize_async_header_quadlet_request() argument [all …]
|
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
H A D | commonring.c | 1 // SPDX-License-Identifier: ISC 22 commonring->cr_ring_bell = cr_ring_bell; in brcmf_commonring_register_cb() 23 commonring->cr_update_rptr = cr_update_rptr; in brcmf_commonring_register_cb() 24 commonring->cr_update_wptr = cr_update_wptr; in brcmf_commonring_register_cb() 25 commonring->cr_write_rptr = cr_write_rptr; in brcmf_commonring_register_cb() 26 commonring->cr_write_wptr = cr_write_wptr; in brcmf_commonring_register_cb() 27 commonring->cr_ctx = ctx; in brcmf_commonring_register_cb() 34 commonring->depth = depth; in brcmf_commonring_config() 35 commonring->item_len = item_len; in brcmf_commonring_config() 36 commonring->buf_addr = buf_addr; in brcmf_commonring_config() [all …]
|
/linux/Documentation/devicetree/bindings/ata/ |
H A D | ceva,ahci-1v84.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/ata/ceva,ahci-1v84.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Mubin Sayyed <mubin.sayyed@amd.com> 11 - Radhey Shyam Pandey <radhey.shyam.pandey@amd.com> 15 special extensions to add functionality, is a high-performance dual-port 22 const: ceva,ahci-1v84 30 dma-coherent: true 38 power-domains: [all …]
|
/linux/drivers/iio/imu/bno055/ |
H A D | bno055_ser_trace.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 19 __entry->len = len; 21 data, __entry->len); 24 __entry->len, __entry->len, __get_dynamic_array(chunk) 29 TP_PROTO(bool read, int addr, int retry), 30 TP_ARGS(read, addr, retry), 34 __field(int, retry) 37 __entry->read = read; 38 __entry->addr = addr; 39 __entry->retry = retry; [all …]
|
/linux/drivers/clk/ti/ |
H A D | clk.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * Tero Kristo <t-kristo@ti.com> 12 #include <linux/clk-provider.h> 45 struct clk_iomap *io = clk_memmaps[reg->index]; in clk_memmap_writel() 47 if (reg->ptr) in clk_memmap_writel() 48 writel_relaxed(val, reg->ptr); in clk_memmap_writel() 49 else if (io->regma in clk_memmap_writel() 283 struct clk_init_item *retry; ti_clk_retry_init() local 472 struct clk_init_item *retry; ti_dt_clk_init_retry_clks() local [all...] |
/linux/arch/mips/kernel/ |
H A D | sync-r4k.c | 1 // SPDX-License-Identifier: GPL-2.0 17 #include <asm/r4k-timer.h> 35 * we want to have the fastest, inlined, non-debug version 36 * of a critical section, to be able to prove counter time-warps: 82 * we saw a time-warp of the counter going backwards: in check_counter_warp() 86 max_warp = max(max_warp, prev - now); in check_counter_warp() 99 WARN(!(now-start), in check_counter_warp() 101 now-start, end-start); in check_counter_warp() 114 retry: in check_counter_sync_source() 116 while (atomic_read(&start_count) != cpus - 1) in check_counter_sync_source() [all …]
|
/linux/include/scsi/ |
H A D | scsi_status.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 26 INITIATE_RECOVERY = 0x0f, /* SCSI-II only */ 27 RELEASE_RECOVERY = 0x10, /* SCSI-II only */ 28 TERMINATE_IO_PROC = 0x11, /* SCSI-II only */ 55 DID_PASSTHROUGH = 0x0a, /* Force command past mid-layer */ 56 DID_SOFT_ERROR = 0x0b, /* The low level driver just wish a retry */ 57 DID_IMM_RETRY = 0x0c, /* Retry without decrementing retry count */ 58 DID_REQUEUE = 0x0d, /* Requeue command (no immediate retry) also 59 * without decrementing the retry count */ 63 * retry or fail IO */ [all …]
|
/linux/drivers/scsi/fnic/ |
H A D | fnic_fdls.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 13 /* FDLS - Fabric discovery and login services 14 * -> VLAN discovery 15 * -> retry every retry delay seconds until it succeeds. 16 * <- List of VLANs 18 * -> Solicitation 19 * <- Solicitation response (Advertisement) 21 * -> FCF selection & FLOGI ( FLOGI timeout - 2 * E_D_TOV) 22 * <- FLOGI response 24 * -> FCF keep alive [all …]
|
/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | mt76x02_trace.h | 1 /* SPDX-License-Identifier: ISC */ 17 #define DEV_ASSIGN strscpy(__entry->wiphy_name, \ 18 wiphy_name(mt76_hw(dev)->wiphy), MAXNAME) 20 #define DEV_PR_ARG __entry->wiphy_name 24 #define TXID_PR_ARG __entry->wcid, __entry->pktid 56 __field(u8, retry) 61 __entry->success = stat->success; 62 __entry->aggr = stat->aggr; 63 __entry->ack_req = stat->ack_req; 64 __entry->wcid = stat->wcid; [all …]
|
H A D | mcu.c | 1 // SPDX-License-Identifier: ISC 12 const struct mt76_mcu_ops *ops = dev->mcu_ops; in __mt76_mcu_msg_alloc() 16 len = ops->headroom + len + ops->tailroom; in __mt76_mcu_msg_alloc() 22 memset(skb->head, 0, len); in __mt76_mcu_msg_alloc() 23 skb_reserve(skb, ops->headroom); in __mt76_mcu_msg_alloc() 40 timeout = expires - jiffies; in mt76_mcu_get_response() 41 wait_event_timeout(dev->mcu.wait, in mt76_mcu_get_response() 42 (!skb_queue_empty(&dev->mcu.res_q) || in mt76_mcu_get_response() 43 test_bit(MT76_MCU_RESET, &dev->phy.state)), in mt76_mcu_get_response() 45 return skb_dequeue(&dev->mcu.res_q); in mt76_mcu_get_response() [all …]
|
/linux/include/uapi/linux/ |
H A D | atmmpc.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 44 __u16 mpc_p1; /* Shortcut-Setup Frame Count */ 45 __u16 mpc_p2; /* Shortcut-Setup Frame Time */ 46 __u8 mpc_p3[8]; /* Flow-detection Protocols */ 47 __u16 mpc_p4; /* MPC Initial Retry Time */ 48 __u16 mpc_p5; /* MPC Retry Time Maximum */ 85 #define MPC_P1 10 /* Shortcut-Setup Frame Count */ 86 #define MPC_P2 1 /* Shortcut-Setup Frame Time */ 87 #define MPC_P3 0 /* Flow-detection Protocols */ 88 #define MPC_P4 5 /* MPC Initial Retry Time */ [all …]
|
/linux/Documentation/devicetree/bindings/power/supply/ |
H A D | sbs,sbs-battery.yaml | 1 # 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> 16 - $ref: power-supply.yaml# 21 - items: 22 - enum: 23 - ti,bq20z45 24 - ti,bq20z65 [all …]
|
/linux/drivers/irqchip/ |
H A D | irq-csky-apb-intc.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. 44 * IFR_offset is NEN_offset - 8. 50 unsigned long ifr = ct->regs.mask - 8; in irq_ck_mask_set_bit() 51 u32 mask = d->mask; in irq_ck_mask_set_bit() 54 *ct->mask_cache |= mask; in irq_ck_mask_set_bit() 55 irq_reg_writel(gc, *ct->mask_cache, ct->regs.mask); in irq_ck_mask_set_bit() 66 gc->reg_base = reg_base; in ck_set_gc() 67 gc->chip_types[0].regs.mask = mask_reg; in ck_set_gc() 68 gc->chip_types[0].chip.irq_mask = irq_gc_mask_clr_bit; in ck_set_gc() [all …]
|
/linux/drivers/gpu/drm/omapdrm/dss/ |
H A D | hdmi4_cec.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * Copyright (C) 2010-2011 Texas Instruments Incorporated - https://www.ti.com/ 13 * Copyright 2016-2017 Cisco Systems, Inc. and/or its affiliates. All rights reserved. 31 /* Not really a debug register, more a low-level control register */ 58 u32 cnt = hdmi_read_reg(core->base, HDMI_CEC_RX_COUNT) & 0xff; in hdmi_cec_received_msg() 69 if (msg.len > CEC_MAX_MSG_SIZE - 2) in hdmi_cec_received_msg() 70 msg.len = CEC_MAX_MSG_SIZE - 2; in hdmi_cec_received_msg() 71 msg.msg[0] = hdmi_read_reg(core->base, in hdmi_cec_received_msg() 73 msg.msg[1] = hdmi_read_reg(core->base, in hdmi_cec_received_msg() 79 hdmi_read_reg(core->base, reg); in hdmi_cec_received_msg() [all …]
|
/linux/sound/soc/au1x/ |
H A D | ac97c.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Charles Eidsness <charles@cooper-street.com> 23 #include <asm/mach-au1x00/au1000.h> 57 /* how often to retry failed codec register reads/writes */ 74 return __raw_readl(ctx->mmio + reg); in RD() 79 __raw_writel(v, ctx->mmio + reg); in WR() 87 unsigned int tmo, retry; in au1xac97c_ac97_read() local 91 retry = AC97_RW_RETRIES; in au1xac97c_ac97_read() 93 mutex_lock(&ctx->lock); in au1xac97c_ac97_read() 96 while ((RD(ctx, AC97_STATUS) & STAT_CP) && --tmo) in au1xac97c_ac97_read() [all …]
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_lspcon.c | 63 return &dig_port->dp; in lspcon_to_intel_dp() 88 if (drm_dp_read_desc(&intel_dp->aux, &intel_dp->desc, drm_dp_is_branch(intel_dp->dpcd))) { in lspcon_detect_vendor() 89 drm_err(display->drm, "Can't read description\n"); in lspcon_detect_vendor() 93 ident = &intel_dp->desc.ident; in lspcon_detect_vendor() 94 vendor_oui = (ident->oui[0] << 16) | (ident->oui[1] << 8) | in lspcon_detect_vendor() 95 ident->oui[2]; in lspcon_detect_vendor() 99 lspcon->vendor = LSPCON_VENDOR_MCA; in lspcon_detect_vendor() 100 drm_dbg_kms(display->drm, "Vendor: Mega Chips\n"); in lspcon_detect_vendor() 104 lspcon->vendor = LSPCON_VENDOR_PARADE; in lspcon_detect_vendor() 105 drm_dbg_kms(display->drm, "Vendor: Parade Tech\n"); in lspcon_detect_vendor() [all …]
|
/linux/drivers/mfd/ |
H A D | gateworks-gsc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * The Gateworks System Controller (GSC) is a multi-function 6 * system functions such as push-button monitoring, multiple ADC's for 35 int retry, ret; in gsc_write() local 37 for (retry = 0; retry < I2C_RETRIES; retry++) { in gsc_write() 40 * -EAGAIN returned when the i2c host controller is busy in gsc_write() 41 * -EIO returned when i2c device is busy in gsc_write() 43 if (ret != -EAGAIN && ret != -EIO) in gsc_write() 54 int retry, ret; in gsc_read() local 56 for (retry = 0; retry < I2C_RETRIES; retry++) { in gsc_read() [all …]
|
/linux/Documentation/devicetree/bindings/hwmon/ |
H A D | adi,ltc4282.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Nuno Sa <nuno.sa@analog.com> 15 https://www.analog.com/media/en/technical-documentation/data-sheets/ltc4282.pdf 20 - adi,ltc4282 25 vdd-supply: true 30 '#clock-cells': 33 adi,rsense-nano-ohms: 36 adi,vin-mode-microvolt: [all …]
|
/linux/drivers/mailbox/ |
H A D | hi3660-mailbox.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright (c) 2017-2018 HiSilicon Limited. 3 // Copyright (c) 2017-2018 Linaro Limited. 25 #define MBOX_BASE(mbox, ch) ((mbox)->base + ((ch) * 0x40)) 48 * struct hi3660_chan_info - Hi3660 mailbox channel information 62 * struct hi3660_mbox - Hi3660 mailbox controller data 87 unsigned long ch = (unsigned long)chan->con_priv; in hi3660_mbox_check_state() 88 struct hi3660_mbox *mbox = to_hi3660_mbox(chan->mbox); in hi3660_mbox_check_state() 89 struct hi3660_chan_info *mchan = &mbox->mchan[ch]; in hi3660_mbox_check_state() 102 dev_err(mbox->dev, "%s: timeout for receiving ack\n", __func__); in hi3660_mbox_check_state() [all …]
|
/linux/mm/ |
H A D | shuffle.c | 1 // SPDX-License-Identifier: GPL-2.0 20 return -EINVAL; in shuffle_param_set() 21 if (*(bool *)kp->arg) in shuffle_param_set() 69 * Fisher-Yates shuffle the freelist which prescribes iterating through an 71 * the span, end_pfn - start_pfn. 74 * of bias in the distribution, like modulo bias or pseudo-random number 83 unsigned long start_pfn = z->zone_start_pfn; in __shuffle_zone() 88 spin_lock_irqsave(&z->lock, flags); in __shuffle_zone() 92 int migratetype, retry; in __shuffle_zone() local 96 * We expect page_i, in the sub-range of a zone being added in __shuffle_zone() [all …]
|
/linux/tools/testing/selftests/mm/ |
H A D | mrelease_test.c | 1 // SPDX-License-Identifier: GPL-2.0 13 #include <asm-generic/unistd.h> 42 timeout--; in alloc_noexit() 54 if (!syscall(__NR_process_mrelease, pidfd, (unsigned int)-1) || in run_negative_tests() 70 /* Allocate and fault-in memory and wait to be killed */ in child_main() 80 bool success, retry; in main() local 90 if (!syscall(__NR_process_mrelease, -1, 0) || errno != EBADF) { in main() 102 retry: in main() 157 * Retry until we succeed or reach MAX_SIZE_MB. in main() 160 retry = (size <= MAX_SIZE_MB); in main() [all …]
|
/linux/drivers/gpu/drm/ast/ |
H A D | ast_dp501.c | 1 // SPDX-License-Identifier: GPL-2.0 20 release_firmware(ast->dp501_fw); in ast_release_firmware() 21 ast->dp501_fw = NULL; in ast_release_firmware() 26 struct drm_device *dev = &ast->base; in ast_load_dp501_microcode() 29 ret = request_firmware(&ast->dp501_fw, "ast_dp501_fw.bin", dev->dev); in ast_load_dp501_microcode() 33 return devm_add_action_or_reset(dev->dev, ast_release_firmware, ast); in ast_load_dp501_microcode() 55 u32 retry = 0; in wait_ack() local 60 } while ((!waitack) && (retry++ < 1000)); in wait_ack() 62 if (retry < 1000) in wait_ack() 71 u32 retry = 0; in wait_nack() local [all …]
|
/linux/drivers/mtd/chips/ |
H A D | cfi_cmdset_0020.c | 1 // SPDX-License-Identifier: GPL-2.0 9 * - completely revamped method functions so they are aware and 11 * - scalability vs code size is completely set at compile-time 13 * - optimized write buffer method 14 * 06/21/2002 Joern Engel <joern@wh.fh-wedel.de> and others 15 * - modified Intel Command Set 0x0001 to support ST Advanced Architecture 17 * - added a writev function 18 * 07/13/2005 Joern Engel <joern@wh.fh-wedel.de> 19 * - Plugged memory leak in cfi_staa_writev(). 69 printk(" Feature/Command Support: %4.4X\n", extp->FeatureSupport); in cfi_tell_features() [all …]
|
/linux/io_uring/ |
H A D | rw.c | 1 // SPDX-License-Identifier: GPL-2.0 6 #include <linux/blk-mq.h> 40 if (req->flags & REQ_F_SUPPORT_NOWAIT) in io_file_supports_nowait() 46 return vfs_poll(req->file, &pt) & mask; in io_file_supports_nowait() 58 uiov = u64_to_user_ptr(rw->addr); in io_iov_compat_buffer_select_prep() 60 return -EFAULT; in io_iov_compat_buffer_select_prep() 61 if (__get_user(clen, &uiov->iov_len)) in io_iov_compat_buffer_select_prep() 62 return -EFAULT; in io_iov_compat_buffer_select_prep() 64 return -EINVAL; in io_iov_compat_buffer_select_prep() 66 rw->len = clen; in io_iov_compat_buffer_select_prep() [all …]
|
/linux/drivers/rtc/ |
H A D | rtc-sun4v.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* rtc-sun4v.c: Hypervisor based RTC for SUN4V systems. 24 retry: in hypervisor_get_time() 29 if (--retries > 0) { in hypervisor_get_time() 31 goto retry; in hypervisor_get_time() 51 retry: in hypervisor_set_time() 56 if (--retries > 0) { in hypervisor_set_time() 58 goto retry; in hypervisor_set_time() 61 return -EAGAIN; in hypervisor_set_time() 64 return -EOPNOTSUPP; in hypervisor_set_time() [all …]
|