| /linux/drivers/scsi/ |
| H A D | sense_codes.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 * http://www.t10.org/lists/asc-num.txt [most recent: 20200817] 9 SENSE_CODE(0x0002, "End-of-partition/medium detected") 11 SENSE_CODE(0x0004, "Beginning-of-partition/medium detected") 12 SENSE_CODE(0x0005, "End-of-data detected") 42 SENSE_CODE(0x0400, "Logical unit not ready, cause not reportable") 43 SENSE_CODE(0x0401, "Logical unit is in process of becoming ready") 44 SENSE_CODE(0x0402, "Logical unit not ready, initializing command required") 45 SENSE_CODE(0x0403, "Logical unit not ready, manual intervention required") 46 SENSE_CODE(0x0404, "Logical unit not ready, format in progress") [all …]
|
| /linux/kernel/power/ |
| H A D | user.c | 1 // SPDX-License-Identifier: GPL-2.0-only 36 bool ready; member 49 struct snapshot_data *data; in snapshot_open() local 54 return -EPERM; in snapshot_open() 59 error = -EBUSY; in snapshot_open() 63 if ((filp->f_flags & O_ACCMODE) == O_RDWR) { in snapshot_open() 65 error = -ENOSYS; in snapshot_open() 69 data = &snapshot_state; in snapshot_open() 70 filp->private_data = data; in snapshot_open() 71 memset(&data->handle, 0, sizeof(struct snapshot_handle)); in snapshot_open() [all …]
|
| H A D | swap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Copyright (C) 1998,2001-2005 Pavel Machek <pavel@ucw.cz> 10 * Copyright (C) 2010-2012 Bojan Smojver <bojan@rexursive.com> 49 * The swap map is a data structure used for keeping track of each page 62 #define MAP_PAGE_ENTRIES (PAGE_SIZE / sizeof(sector_t) - 1) 69 return nr_free_pages() - nr_free_highpages(); in low_free_pages() 93 * a file-alike way 107 char reserved[PAGE_SIZE - 20 - sizeof(sector_t) - sizeof(int) - 108 sizeof(u32) - sizeof(u32)]; 142 if (swap_offset < ext->start) { in swsusp_extents_insert() [all …]
|
| /linux/arch/um/drivers/ |
| H A D | xterm_kern.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) 15 struct completion ready; member 21 static irqreturn_t xterm_interrupt(int irq, void *data) in xterm_interrupt() argument 23 struct xterm_wait *xterm = data; in xterm_interrupt() 24 int fd = -1, n_fds = 1; in xterm_interrupt() 27 ret = os_rcv_fd_msg(xterm->fd, &fd, n_fds, in xterm_interrupt() 28 &xterm->pid, sizeof(xterm->pid)); in xterm_interrupt() 29 if (ret == -EAGAIN) in xterm_interrupt() 34 else if (ret != sizeof(xterm->pid)) in xterm_interrupt() [all …]
|
| /linux/drivers/media/usb/pvrusb2/ |
| H A D | pvrusb2-io.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 16 pvr2_buffer_state_idle = 1, // Buffer is ready to be used again 18 pvr2_buffer_state_ready = 3, // Buffer has data available 41 void *data); 50 /* Get a pointer to a buffer that is either idle, ready, or is specified 56 /* Find out how many buffers are idle or ready */ 60 /* Kill all pending buffers and throw away any ready buffers as well */ 66 /* Find out size of data in the given ready buffer */ 69 /* Retrieve completion code for given ready buffer */
|
| /linux/include/media/ |
| H A D | v4l2-mem2mem.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Memory-to-memory device framework for Video for Linux 2. 16 #include <media/videobuf2-v4l2.h> 19 * struct v4l2_m2m_ops - mem-t [all...] |
| /linux/Documentation/virt/kvm/x86/ |
| H A D | msr.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 KVM-specific MSRs 16 --------------- 23 data: 24 4-byte alignment physical address of a memory area which must be 34 whose data will be filled in by the hypervisor. The hypervisor is only 35 guaranteed to update this data at the moment of MSR write. 42 An odd version indicates an in-progress update. 53 Note that although MSRs are per-CPU entities, the effect of this 62 data: [all …]
|
| /linux/drivers/net/wireless/marvell/libertas/ |
| H A D | if_spi.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 40 /* SPI register offsets. 4-byte aligned. */ 50 #define IF_SPI_DATA_READBASE_REG 0x1C /* Read data base reg */ 51 #define IF_SPI_DATA_WRITEBASE_REG 0x20 /* Write data base reg */ 52 #define IF_SPI_DATA_RDWRPORT_REG 0x24 /* Read/Write data port reg */ 87 /* Host Interrupt Control bit : WLAN ready */ 137 /* Host Interrupt Status bit : Tx download ready */ 139 /* Host Interrupt Status bit : Rx upload ready */ 141 /* Host Interrupt Status bit : Command download ready */ 145 /* Host Interrupt Status bit : Command upload ready */ [all …]
|
| /linux/drivers/char/tpm/ |
| H A D | tpm_tis_spi_cr50.c | 1 // SPDX-License-Identifier: GPL-2.0 23 * - can go to sleep not earlier than after CR50_SLEEP_DELAY_MSEC. 24 * - needs up to CR50_WAKE_START_DELAY_USEC to wake after sleep. 25 * - requires waiting for "ready" IRQ, if supported; or waiting for at least 27 * - waits for up to CR50_FLOW_CONTROL for flow control 'ready' indication. 69 cr50_phy->irq_confirmed = true; in cr50_spi_irq_handler() 70 complete(&cr50_phy->spi_phy.ready); in cr50_spi_irq_handler() 81 unsigned long allowed_access = phy->last_access + phy->access_delay; in cr50_ensure_access_delay() 83 struct device *dev = &phy->spi_phy.spi_device->dev; in cr50_ensure_access_delay() 91 if (time_in_range_open(time_now, phy->last_access, allowed_access)) { in cr50_ensure_access_delay() [all …]
|
| H A D | tpm_tis_i2c_cr50.c | 1 // SPDX-License-Identifier: GPL-2.0 10 * - Use an interrupt for transaction status instead of hardcoded delays. 11 * - Must use write+wait+read read protocol. 12 * - All 4 bytes of status register must be read/written at once. 13 * - Burst count max is 63 bytes, and burst count behaves slightly differently 15 * - When reading from FIFO the full burstcnt must be read instead of just 33 #define TPM_CR50_TIMEOUT_NOIRQ_MS 20 /* Timeout for TPM ready without IRQ */ 48 * struct tpm_i2c_cr50_priv_data - Driver private data. 63 * tpm_cr50_i2c_int_handler() - cr50 interrupt handler. 77 struct tpm_i2c_cr50_priv_data *priv = dev_get_drvdata(&chip->dev); in tpm_cr50_i2c_int_handler() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| H A D | devcom.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 39 bool ready; member 48 void __rcu *data; member 56 if (iter->dev == dev) in devcom_dev_exists() 71 devc->dev = dev; in mlx5_devcom_dev_alloc() 72 kref_init(&devc->ref); in mlx5_devcom_dev_alloc() 92 list_add_tail(&devc->list, &devcom_dev_list); in mlx5_devcom_register_device() 104 list_del(&devc->list); in mlx5_devcom_dev_release() 114 kref_put(&devc->ref, mlx5_devcom_dev_release); in mlx5_devcom_unregister_device() 127 comp->id = id; in mlx5_devcom_comp_alloc() [all …]
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_pxp_debugfs.c | 1 // SPDX-License-Identifier: MIT 21 return node->info_ent->data; in node_to_pxp() 26 lockdep_assert_held(&pxp->mutex); in pxp_status_to_str() 28 switch (pxp->status) { in pxp_status_to_str() 36 return "ready to start"; in pxp_status_to_str() 46 static int pxp_info(struct seq_file *m, void *data) in pxp_info() argument 48 struct xe_pxp *pxp = node_to_pxp(m->private); in pxp_info() 53 return -ENODEV; in pxp_info() 55 mutex_lock(&pxp->mutex); in pxp_info() 59 drm_printf(&p, "instance counter: %u\n", pxp->key_instance); in pxp_info() [all …]
|
| /linux/arch/powerpc/platforms/embedded6xx/ |
| H A D | usbgecko_udbg.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright (C) 2008-2009 The GameCube Linux Team 33 #define EXI_CR_TLEN(len) (((len)-1)<<4) 51 u32 csr, data, cr; in ug_io_transaction() local 58 data = in; in ug_io_transaction() 59 out_be32(data_reg, data); in ug_io_transaction() 70 data = in_be32(data_reg); in ug_io_transaction() 72 return data; in ug_io_transaction() 87 * Returns true if the TX fifo is ready for transmission. 96 * If the TX fifo is not ready the result is undefined. [all …]
|
| /linux/drivers/w1/masters/ |
| H A D | amd_axi_w1.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * amd_axi_w1 - AMD 1Wire programmable logic bus host driver 5 * Copyright (C) 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved. 23 /* 1-wire AMD IP definition */ 68 * amd_axi_w1_wait_irq_interruptible_timeout() - Wait for IRQ with timeout. 73 * Return: %0 - OK, %-EINTR - Interrupted, %-EBUSY - Timed out 81 iowrite32(IRQ, amd_axi_w1_local->base_addr + AXIW1_IRQE_REG); in amd_axi_w1_wait_irq_interruptible_timeout() 82 ret = wait_event_interruptible_timeout(amd_axi_w1_local->wait_queue, in amd_axi_w1_wait_irq_interruptible_timeout() 83 atomic_read(&amd_axi_w1_local->flag) != 0, in amd_axi_w1_wait_irq_interruptible_timeout() 86 dev_err(amd_axi_w1_local->dev, "Wait IRQ Interrupted\n"); in amd_axi_w1_wait_irq_interruptible_timeout() [all …]
|
| /linux/tools/perf/pmu-events/arch/riscv/starfive/dubhe-80/ |
| H A D | common.json | 15 "BriefDescription": "access MMU PTE-Cache" 20 "BriefDescription": "miss MMU PTE-Cache" 40 "BriefDescription": "SYNC delivery a fetch-group" 75 "BriefDescription": "IBUF valid while ID not ready" 80 "BriefDescription": "IBUF not valid while ID ready" 85 "BriefDescription": "REN integer physical register file is not ready" 90 "BriefDescription": "REN floating point physical register file is not ready" 95 "BriefDescription": "REN checkpoint is not ready" 100 "BriefDescription": "DEC is valid and ROB is not ready" 165 "BriefDescription": "L2C data-prefetcher request" [all …]
|
| /linux/drivers/tty/serial/ |
| H A D | atmel_serial.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 27 #define ATMEL_US_STTTO BIT(11) /* Start Time-out */ 31 #define ATMEL_US_RETTO BIT(15) /* Rearm Time-out */ 32 #define ATMEL_US_DTREN BIT(16) /* Data Terminal Ready Enable */ 33 #define ATMEL_US_DTRDIS BIT(17) /* Data Terminal Ready Disable */ 81 #define ATMEL_US_MODE9 BIT(17) /* 9-bit Character Length */ 91 #define ATMEL_US_RXRDY BIT(0) /* Receiver Ready */ 92 #define ATMEL_US_TXRDY BIT(1) /* Transmitter Ready */ 99 #define ATMEL_US_TIMEOUT BIT(8) /* Receiver Time-out */ 106 #define ATMEL_US_DSRIC BIT(17) /* Data Set Ready Input Change */ [all …]
|
| /linux/sound/soc/intel/avs/ |
| H A D | ipc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // Copyright(c) 2021-2022 Intel Corporation 9 #include <linux/io-64-nonatomic-lo-hi.h> 24 struct avs_ipc *ipc = adev->ip in avs_dsp_set_d0ix() 213 void *data = NULL; avs_dsp_process_notification() local [all...] |
| /linux/tools/perf/bench/ |
| H A D | sched-messaging.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * sched-messaging.c 13 #include <subcmd/parse-options.h> 79 /* Block until we're ready to go */ 80 static void ready(int ready_out, int wakefd) in ready() function 84 /* Tell them we're ready. */ in ready() 86 err(EXIT_FAILURE, "CLIENT: ready write"); in ready() 89 if (poll(&pollfd, 1, -1) != 1) in ready() 96 char data[DATASIZE]; in sender() local 99 ready(ctx->ready_out, ctx->wakefd); in sender() [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-class-led-trigger-tty | 4 Contact: linux-leds@vger.kernel.org 12 Signal reception (rx) of data on the named tty device. 20 Signal transmission (tx) of data on the named tty device. 29 DCE is ready to accept data from the DTE. 38 DSR = Data Set Ready 39 DCE is ready to receive and send data. 48 DCD = Data Carrier Detect
|
| /linux/drivers/net/wireless/ath/ath12k/ |
| H A D | htc.c | 1 // SPDX-License-Identifier: BSD-3-Clause-Clear 3 * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved. 4 * Copyright (c) 2021-2022, 2024 Qualcomm Innovation Center, Inc. All rights reserved. 22 /* FW/HTC requires 4-byte aligned streams */ in ath12k_htc_alloc_skb() 23 if (!IS_ALIGNED((unsigned long)skb->data, 4)) in ath12k_htc_alloc_skb() 45 WARN_ON_ONCE(!IS_ALIGNED((unsigned long)skb->data, 4)); in ath12k_htc_build_tx_ctrl_skb() 58 hdr = (struct ath12k_htc_hdr *)skb->data; in ath12k_htc_prepare_tx_skb() 61 hdr->htc_info = le32_encode_bits(ep->eid, HTC_HDR_ENDPOINTID) | in ath12k_htc_prepare_tx_skb() 62 le32_encode_bits((skb->len - sizeof(*hdr)), in ath12k_htc_prepare_tx_skb() 65 if (ep->tx_credit_flow_enabled) in ath12k_htc_prepare_tx_skb() [all …]
|
| /linux/include/linux/iio/common/ |
| H A D | st_sensors.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright 2012-2013 STMicroelectronics Inc. 66 .shift = sbits - rbits, \ 128 * struct st_sensor_bdu - ST sensor device block data update 130 * @mask: mask to write the block data update flag. 138 * struct st_sensor_das - ST sensor device data alignment selection 148 * struct st_sensor_int_drdy - ST sensor device drdy line parameters 162 * struct st_sensor_data_ready_irq - ST sensor device data-ready interrupt 163 * struct int1 - data-ready configuration register for INT1 pin. 164 * struct int2 - data-ready configuration register for INT2 pin. [all …]
|
| /linux/sound/soc/intel/catpt/ |
| H A D | ipc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 18 ipc->dev = dev; in catpt_ipc_init() 19 ipc->ready = false; in catpt_ipc_init() 20 ipc->default_timeout = CATPT_IPC_TIMEOUT_MS; in catpt_ipc_init() 21 init_completion(&ipc->done_completion); in catpt_ipc_init() 22 init_completion(&ipc->busy_completion); in catpt_ipc_init() 23 spin_lock_init(&ipc->lock); in catpt_ipc_init() 24 mutex_init(&ipc->mutex); in catpt_ipc_init() 34 ipc->rx.data = devm_kzalloc(ipc->dev, config->outbox_size, GFP_KERNEL); in catpt_ipc_arm() 35 if (!ipc->rx.data) in catpt_ipc_arm() [all …]
|
| /linux/arch/sh/include/asm/ |
| H A D | smc37c93x.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * linux/include/asm-sh/smc37c93x.h 96 #define IER_ERDAI 0x0100 /* Enable Received Data Available Interrupt */ 131 #define MCR_DTR 0x0100 /* Data Terminal Ready */ 139 #define LSR_DR 0x0100 /* Data Ready */ 151 #define MSR_DDSR 0x0200 /* Delta Data Set Ready */ 153 #define MSR_DDCD 0x0800 /* Delta Data Carrier Detect */ 155 #define MSR_DSR 0x2000 /* Data Set Ready */ 157 #define MSR_DCD 0x8000 /* Data Carrier Detect */
|
| /linux/net/rds/ |
| H A D | tcp_listen.c | 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 45 int keepidle = 5; /* send a probe 'keepidle' secs after last data */ in rds_tcp_keepalive() 48 sock_set_keepalive(sock->sk); in rds_tcp_keepalive() 49 tcp_sock_set_keepcnt(sock->sk, keepcnt); in rds_tcp_keepalive() 50 tcp_sock_set_keepidle(sock->sk, keepidle); in rds_tcp_keepalive() 52 * the model in xs_tcp_finish_connecting() and re-use keepidle. in rds_tcp_keepalive() 54 tcp_sock_set_keepintvl(sock->sk, keepidle); in rds_tcp_keepalive() 59 * socket and force a reconneect from smaller -> larger ip addr. The reason 70 int npaths = max_t(int, 1, conn->c_npaths); in rds_tcp_accept_one_path() [all …]
|
| /linux/drivers/net/wireless/ath/ath11k/ |
| H A D | htc.c | 1 // SPDX-License-Identifier: BSD-3-Clause-Clear 3 * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. 4 * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved. 22 /* FW/HTC requires 4-byte aligned streams */ in ath11k_htc_alloc_skb() 23 if (!IS_ALIGNED((unsigned long)skb->data, 4)) in ath11k_htc_alloc_skb() 45 WARN_ON_ONCE(!IS_ALIGNED((unsigned long)skb->data, 4)); in ath11k_htc_build_tx_ctrl_skb() 58 hdr = (struct ath11k_htc_hdr *)skb->data; in ath11k_htc_prepare_tx_skb() 61 hdr->htc_info = FIELD_PREP(HTC_HDR_ENDPOINTID, ep->eid) | in ath11k_htc_prepare_tx_skb() 63 (skb->len - sizeof(*hdr))); in ath11k_htc_prepare_tx_skb() 65 if (ep->tx_credit_flow_enabled) in ath11k_htc_prepare_tx_skb() [all …]
|