| /linux/drivers/nvme/host/ |
| H A D | sysfs.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2011-2014, Intel Corporation. 8 #include <linux/nvme-auth.h> 17 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_reset() local 20 ret = nvme_reset_ctrl_sync(ctrl); in nvme_sysfs_reset() 31 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_rescan() local 33 nvme_queue_scan(ctrl); in nvme_sysfs_rescan() 41 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_adm_passthru_err_log_enabled_show() local 44 ctrl->passthru_err_log_enabled ? "on\n" : "off\n"); in nvme_adm_passthru_err_log_enabled_show() 50 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_adm_passthru_err_log_enabled_store() local [all …]
|
| H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (c) 2011-2014, Intel Corporation. 9 #include <linux/blk-mq.h> 10 #include <linux/blk-integrity.h> 17 #include <linux/backing-dev.h> 29 #include <linux/nvme-auth.h> 37 struct nvme_ns_ids ids; member 110 * nvme_wq - hosts nvme related works that are not reset or delete 111 * nvme_reset_wq - hosts nvme reset works 112 * nvme_delete_wq - hosts nvme delete works [all …]
|
| H A D | zns.c | 1 // SPDX-License-Identifier: GPL-2.0 10 static int nvme_set_max_append(struct nvme_ctrl *ctrl) in nvme_set_max_append() argument 18 return -ENOMEM; in nvme_set_max_append() 24 status = nvme_submit_sync_cmd(ctrl->admin_q, &c, id, sizeof(*id)); in nvme_set_max_append() 30 if (id->zasl) in nvme_set_max_append() 31 ctrl->max_zone_append = 1 << (id->zasl + 3); in nvme_set_max_append() 33 ctrl->max_zone_append = ctrl->max_hw_sectors; in nvme_set_max_append() 41 struct nvme_effects_log *log = ns->head->effects; in nvme_query_zone_info() 47 if ((le32_to_cpu(log->iocs[nvme_cmd_zone_append]) & in nvme_query_zone_info() 49 if (test_and_clear_bit(NVME_NS_FORCE_RO, &ns->flags)) in nvme_query_zone_info() [all …]
|
| /linux/drivers/firmware/imx/ |
| H A D | sm-misc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 20 return -EPROBE_DEFER; in scmi_imx_misc_ctrl_set() 22 return imx_misc_ctrl_ops->misc_ctrl_set(ph, id, 1, &val); in scmi_imx_misc_ctrl_set() 29 return -EPROBE_DEFER; in scmi_imx_misc_ctrl_get() 31 return imx_misc_ctrl_ops->misc_ctrl_get(ph, id, num, val); in scmi_imx_misc_ctrl_get() 49 const struct scmi_handle *handle = sdev->handle; in scmi_imx_misc_ctrl_probe() 50 struct device_node *np = sdev->dev.of_node; in scmi_imx_misc_ctrl_probe() 55 return -ENODEV; in scmi_imx_misc_ctrl_probe() 58 dev_err(&sdev->dev, "misc ctrl already initialized\n"); in scmi_imx_misc_ctrl_probe() 59 return -EEXIST; in scmi_imx_misc_ctrl_probe() [all …]
|
| /linux/drivers/platform/surface/aggregator/ |
| H A D | controller.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 5 * Copyright (C) 2019-2022 Maximilian Luz <luzmaximilian@gmail.com> 28 /* -- Safe counters. -------------------------------------------------------- */ 31 * struct ssh_seq_counter - Safe counter for SSH sequence IDs. 39 * struct ssh_rqid_counter - Safe counter for SSH request IDs. 47 /* -- Event/notification system. -------------------------------------------- */ 50 * struct ssam_nf_head - Notifier head for SSAM events. 52 * @head: List-head for notifier blocks registered under this head. 60 * struct ssam_nf - Notifier callback- and activation-registry for SSAM events. 61 * @lock: Lock guarding (de-)registration of notifier blocks. Note: This [all …]
|
| H A D | controller.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2019-2022 Maximilian Luz <luzmaximilian@gmail.com> 38 /* -- Safe counters. -------------------------------------------------------- */ 41 * ssh_seq_reset() - Reset/initialize sequence ID counter. 46 WRITE_ONCE(c->value, 0); in ssh_seq_reset() 50 * ssh_seq_next() - Get next sequence ID. 51 * @c: The counter providing the sequence IDs. 57 u8 old = READ_ONCE(c->value); in ssh_seq_next() 61 while (unlikely((ret = cmpxchg(&c->value, old, new)) != old)) { in ssh_seq_next() 70 * ssh_rqid_reset() - Reset/initialize request ID counter. [all …]
|
| /linux/drivers/usb/gadget/ |
| H A D | composite.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * composite.c - infrastructure for Composite USB Gadgets 5 * Copyright (C) 2006-2008 David Brownell 27 * struct usb_os_string - represents OS String to be reported by a gadget 46 * with the relevant device-wide data. 52 return (struct usb_gadget_strings **)uc->stash; in get_containers_gs() 56 * function_descriptors() - get function descriptors for speed 75 descriptors = f->ssp_descriptors; in function_descriptors() 80 descriptors = f->ss_descriptors; in function_descriptors() 85 descriptors = f->hs_descriptors; in function_descriptors() [all …]
|
| /linux/Documentation/driver-api/surface_aggregator/ |
| H A D | client.rst | 1 .. SPDX-License-Identifier: GPL-2.0+ 35 client-api 45 are non-discoverable and instead need to be explicitly provided by some 49 Non-SSAM Client Drivers 53 representing that EC to the kernel. Drivers targeting a non-SSAM device (and 67 .. code-block:: c 71 struct ssam_controller *ctrl; 73 ctrl = ssam_client_bind(&pdev->dev); 74 if (IS_ERR(ctrl)) 75 return PTR_ERR(ctrl) == -ENODEV ? -EPROBE_DEFER : PTR_ERR(ctrl); [all …]
|
| /linux/arch/arm64/boot/dts/ti/ |
| H A D | k3-j784s4-main.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only OR MIT 5 * Copyright (C) 2022-2024 Texas Instruments Incorporated - https://www.ti.com/ 10 compatible = "ti,j721s2-c71-dsp"; 13 reg-names = "l2sram", "l1dram"; 15 firmware-name = "j784s4-c71_3-fw"; 17 ti,sci-dev-id = <40>; 18 ti,sci-proc-ids = <0x33 0xff>; 23 compatible = "ti,j784s4-pcie-host"; 30 reg-names = "intd_cfg", "user_cfg", "reg", "cfg"; 31 interrupt-names = "link_state"; [all …]
|
| /linux/include/linux/surface_aggregator/ |
| H A D | controller.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 9 * Copyright (C) 2019-2021 Maximilian Luz <luzmaximilian@gmail.com> 22 /* -- Main data types and definitions --------------------------------------- */ 25 * enum ssam_event_flags - Flags for enabling/disabling SAM events 33 * struct ssam_event - SAM event sent from the EC to the host. 51 * enum ssam_request_flags - Flags for SAM requests. 70 * struct ssam_request - SAM request description. 94 * struct ssam_response - Response buffer for SAM request. 110 int ssam_client_link(struct ssam_controller *ctrl, struct device *client); 121 struct ssam_controller *ctrl, [all …]
|
| /linux/drivers/usb/gadget/legacy/ |
| H A D | zero.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * zero.c -- Gadget Zero, for USB development 5 * Copyright (C) 2003-2008 David Brownell 11 * can write a hardware-agnostic gadget driver running inside a USB device. 15 * test of your device-side usb stack, or with "usb-skeleton". 32 * driver assumes self-powered hardware, and 46 /*-------------------------------------------------------------------------*/ 71 /*-------------------------------------------------------------------------*/ 75 * DO NOT REUSE THESE IDs with a protocol-incompatible driver!! Ever!! 76 * Instead: allocate your own, using normal USB-IF procedures. [all …]
|
| /linux/drivers/isdn/mISDN/ |
| H A D | tei.c | 1 // SPDX-License-Identifier: GPL-2.0-only 72 struct manager *mgr = fi->userdata; in da_debug() 84 printk(KERN_DEBUG "mgr(%d): %pV\n", mgr->ch.st->dev->id, &vaf); in da_debug() 92 struct manager *mgr = fi->userdata; in da_activate() 94 if (fi->state == ST_L1_DEACT_PENDING) in da_activate() 95 mISDN_FsmDelTimer(&mgr->datimer, 1); in da_activate() 108 struct manager *mgr = fi->userdata; in da_deactivate() 112 read_lock_irqsave(&mgr->lock, flags); in da_deactivate() 113 list_for_each_entry(l2, &mgr->layer2, list) { in da_deactivate() 114 if (l2->l2m.state > ST_L2_4) { in da_deactivate() [all …]
|
| /linux/drivers/media/dvb-frontends/ |
| H A D | mxl5xx_defs.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 * Copyright (c) 2011-2013 MaxLinear, Inc. All rights reserved 29 /* Firmware-Host Command IDs */ 31 /* --Device command IDs-- */ 37 /* Host-used CMD, not used by firmware */ 44 /* --Tuner command IDs-- */ 48 /* --Demod command IDs-- */ 63 /* --- ABORT channel tune */ 66 /* --SWM/FSK command IDs-- */ 71 /* --DiSeqC command IDs-- */ [all …]
|
| /linux/drivers/bus/ |
| H A D | stm32_rifsc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2023, STMicroelectronics - All Rights Reserved 69 /* Compartiment IDs */ 81 void __iomem *addr = stm32_firewall_controller->mmio + RIFSC_RISC_PER0_SEMCR + 0x8 * id; in stm32_rif_acquire_semaphore() 88 return -EACCES; in stm32_rif_acquire_semaphore() 96 void __iomem *addr = stm32_firewall_controller->mmio + RIFSC_RISC_PER0_SEMCR + 0x8 * id; in stm32_rif_release_semaphore() 108 static int stm32_rifsc_grant_access(struct stm32_firewall_controller *ctrl, u32 firewall_id) in stm32_rifsc_grant_access() argument 110 struct stm32_firewall_controller *rifsc_controller = ctrl; in stm32_rifsc_grant_access() 114 if (firewall_id >= rifsc_controller->max_entries) { in stm32_rifsc_grant_access() 115 dev_err(rifsc_controller->dev, "Invalid sys bus ID %u", firewall_id); in stm32_rifsc_grant_access() [all …]
|
| /linux/drivers/pci/hotplug/ |
| H A D | cpqphp_core.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Copyright (C) 2001 Greg Kroah-Hartman <greg@kroah.com> 13 * Jan 12, 2003 - Added 66/100/133MHz PCI-X support, 51 #define DRIVER_AUTHOR "Dan Zink <dan.zink@compaq.com>, Greg Kroah-Hartman <greg@kroah.com>" 68 return (readb(slot->p_sm_slot + SMBIOS_SLOT_WIDTH) == 0x06) ? 1 : 0; in is_slot64bit() 73 return (readb(slot->p_sm_slot + SMBIOS_SLOT_TYPE) == 0x0E) ? 1 : 0; in is_slot66mhz() 77 * detect_SMBIOS_pointer - find the System Management BIOS Table in mem region. 90 endp = (end - sizeof(u32) + 1); in detect_SMBIOS_pointer() 115 * init_SERR - Initializes the per slot SERR generation. 116 * @ctrl: controller to use [all …]
|
| /linux/Documentation/devicetree/bindings/remoteproc/ |
| H A D | ti,k3-dsp-rproc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/remoteproc/ti,k3-dsp-rproc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Suman Anna <s-anna@ti.com> 13 The TI K3 family of SoCs usually have one or more TI DSP Core sub-systems 14 that are used to offload some of the processor-intensive tasks or algorithms, 17 These processor sub-systems usually contain additional sub-modules like 23 Each DSP Core sub-system is represented as a single DT node. Each node has a 31 - ti,am62a-c7xv-dsp [all …]
|
| /linux/arch/arm/boot/dts/nxp/mxs/ |
| H A D | imx28-evk.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 5 /dts-v1/; 10 compatible = "fsl,imx28-evk", "fsl,imx28"; 18 reg_3p3v: regulator-3p3v { 19 compatible = "regulator-fixed"; 20 regulator-name = "3P3V"; 21 regulator-min-microvolt = <3300000>; 22 regulator-max-microvolt = <3300000>; 23 regulator-always-on; 26 reg_vddio_sd0: regulator-vddio-sd0 { [all …]
|
| H A D | imx28-tx28.dts | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 4 * Copyright 2013-2017 Lothar Waßmann <LW@KARO-electronics.de> 7 /dts-v1/; 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/interrupt-controller/irq.h> 13 model = "Ka-Ro electronics TX28 module"; 34 reg = <0x40000000 0>; /* will be filled in by U-Boot */ 38 compatible = "w1-gpio"; 43 reg_usb0_vbus: regulator-usb0-vbus { 44 compatible = "regulator-fixed"; [all …]
|
| /linux/drivers/nvme/target/ |
| H A D | admin-cmd.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (c) 2015-2016 HGST, a Western Digital Company. 17 struct nvmet_ctrl *ctrl = req->sq->ctrl; in nvmet_execute_delete_sq() local 18 u16 sqid = le16_to_cpu(req->cmd->delete_queue.qid); in nvmet_execute_delete_sq() 21 if (!nvmet_is_pci_ctrl(ctrl)) { in nvmet_execute_delete_sq() 31 status = nvmet_check_sqid(ctrl, sqid, false); in nvmet_execute_delete_sq() 35 status = ctrl->ops->delete_sq(ctrl, sqid); in nvmet_execute_delete_sq() 43 struct nvmet_ctrl *ctrl = req->sq->ctrl; in nvmet_execute_create_sq() local 44 struct nvme_command *cmd = req->cmd; in nvmet_execute_create_sq() 45 u16 sqid = le16_to_cpu(cmd->create_sq.sqid); in nvmet_execute_create_sq() [all …]
|
| /linux/drivers/soundwire/ |
| H A D | qcom.c | 1 // SPDX-License-Identifier: GPL-2.0 102 #define SWRM_DP_PORT_CTRL_BANK(n, m) (0x1124 + 0x100 * (n - 1) + 0x40 * m) 103 #define SWRM_DP_PORT_CTRL_2_BANK(n, m) (0x1128 + 0x100 * (n - 1) + 0x40 * m) 104 #define SWRM_DP_BLOCK_CTRL_1(n) (0x112C + 0x100 * (n - 1)) 105 #define SWRM_DP_BLOCK_CTRL2_BANK(n, m) (0x1130 + 0x100 * (n - 1) + 0x40 * m) 106 #define SWRM_DP_PORT_HCTRL_BANK(n, m) (0x1134 + 0x100 * (n - 1) + 0x40 * m) 107 #define SWRM_DP_BLOCK_CTRL3_BANK(n, m) (0x1138 + 0x100 * (n - 1) + 0x40 * m) 108 #define SWRM_DP_SAMPLECTRL2_BANK(n, m) (0x113C + 0x100 * (n - 1) + 0x40 * m) 109 #define SWRM_DIN_DPn_PCM_PORT_CTRL(n) (0x1054 + 0x100 * (n - 1)) 162 * Internal IDs for different register layouts. Only few registers differ per [all …]
|
| /linux/arch/x86/kernel/cpu/ |
| H A D | hygon.c | 1 // SPDX-License-Identifier: GPL-2.0+ 16 #include <asm/spec-ctrl.h> 32 for (i = apicid - 1; i >= 0; i--) { in nearby_node() 51 unsigned int apicid = c->topo.apicid; in srat_detect_node() 55 node = c->topo.llc_id; in srat_detect_node() 58 * On multi-fabric platform (e.g. Numascale NumaChip) a in srat_detect_node() 59 * platform-specific handler needs to be called to fixup some in srat_detect_node() 60 * IDs of the CPU. in srat_detect_node() 69 * - The CPU is missing memory and no node was created. In in srat_detect_node() 72 * - The APIC IDs differ from the HyperTransport node IDs. in srat_detect_node() [all …]
|
| /linux/drivers/slimbus/ |
| H A D | slimbus.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (c) 2011-2017, The Linux Foundation 91 * struct slim_framer - Represents SLIMbus framer. 94 * Manager is responsible for framer hand-over. 111 * struct slim_msg_txn - Message to be sent by the controller. 120 * (relevant for message-codes involving read operation) 247 * enum slim_ch_aux_bit_fmt: SLIMbus channel Aux Field format IDs according to 260 * struct slim_channel - SLIMbus channel, used for state machine 279 * struct slim_port - SLIMbus port 303 * @SLIM_PROTO_ASYNC_SMPLX: Asynchronous Protocol-Simplex [all …]
|
| /linux/drivers/hid/ |
| H A D | hid-twinhan.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Based on hid-gyration.c 7 * Copyright (c) 2009 Bruno Prémont <bonbons@linux-vserver.org> 18 #include "hid-ids.h" 41 * VOL- > VOL+ 44 * CH- 65 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_KEYBOARD) in twinhan_input_mapping() 68 switch (usage->hid & HID_USAGE) { in twinhan_input_mapping() 105 /* Kill the extra keys used for multi-key "power" and "volume" keys in twinhan_input_mapping() 106 * as well as continuously to release CTRL,ALT,META,... keys */ in twinhan_input_mapping() [all …]
|
| /linux/drivers/tty/serial/ |
| H A D | sh-sci-common.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 /* Private port IDs */ 21 /* Offsets into the sci_port->irqs array */ 35 #define SCI_SR(x) BIT((x) - 1) 36 #define SCI_SR_RANGE(x, y) GENMASK((y) - 1, (x) - 1) 91 void (*prepare_console_write)(struct uart_port *port, u32 ctrl); 168 #define min_sr(_port) ffs((_port)->sampling_rate_mask) 169 #define max_sr(_port) fls((_port)->sampling_rate_mask)
|
| /linux/drivers/usb/gadget/function/ |
| H A D | f_uac1_legacy.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * f_audio.c -- USB Audio class function driver 26 * We have two interfaces- AudioControl and AudioStreaming 52 /* B.3.2 Class-Specific AC Interface Descriptor */ 146 /* B.4.2 Class-Specific AS Interface Descriptor */ 179 /* Class-specific AS ISO OUT Endpoint Descriptor */ 230 .language = 0x0409, /* en-us */ 243 /*-------------------------------------------------------------------------*/ 256 return ERR_PTR(-ENOMEM); in f_audio_buffer_alloc() 258 copy_buf->buf = kzalloc(buf_size, GFP_ATOMIC); in f_audio_buffer_alloc() [all …]
|