/linux/drivers/nvme/host/ |
H A D | fc.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include <linux/blk-cgroup.h> 15 #include <linux/nvme-fc-driver.h> 16 #include <linux/nvme-fc.h> 19 #include <linux/blk-mq-pci.h> 31 * when connected and a 36 struct nvme_fc_ctrl *ctrl; member 66 struct list_head lsreq_list; /* rport->ls_req_list */ 78 struct list_head lsrcv_list; /* rport->ls_rcv_list */ 100 struct nvme_fc_ctrl *ctrl; member [all …]
|
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> 63 MODULE_PARM_DESC(max_retries, "max number of retries a command may have"); 97 * used in prior kernels since the metadata written did not contain a valid 106 * nvme_wq - hosts nvme related works that are not reset or delete 107 * nvme_reset_wq - hosts nvme reset works [all …]
|
H A D | nvme.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (c) 2011-2014, Intel Corporation. 13 #include <linux/blk-mq.h> 14 #include <linux/sed-opal.h> 15 #include <linux/fault-inject.h> 18 #include <linux/t10-pi.h> 42 * Default to a 4K page size, with the intention to update this 60 * Prefers I/O aligned to a stripe size specified in a vendor 78 * The controller needs a delay before starts checking the device 124 * Use non-standard 128 bytes SQEs. [all …]
|
H A D | fabrics.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 * Copyright (c) 2015-2016 HGST, a Western Digital Company. 18 /* default is -1: the fail fast mechanism is disabled */ 19 #define NVMF_DEF_FAIL_FAST_TMO -1 22 * Define a host as seen by the target. We allocate one at boot, but also 25 * multiple ones, for example in a container scenario. Because we must not 26 * use different Host NQNs with the same Host ID we generate a Host ID and 37 * enum nvmf_parsing_opts - used to define the sysfs parsing options used. 72 * struct nvmf_ctrl_options - Used to hold the options specified 75 * on adding a NVMe controller. [all …]
|
H A D | fabrics.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (c) 2015-2016 HGST, a Western Digital Company. 15 #include <linux/nvme-keyring.h> 33 kref_init(&host->ref); in nvmf_host_alloc() 34 uuid_copy(&host->id, id); in nvmf_host_alloc() 35 strscpy(host->nqn, hostnqn, NVMF_NQN_SIZE); in nvmf_host_alloc() 47 * We have defined a host as how it is perceived by the target. in nvmf_host_add() 53 bool same_hostnqn = !strcmp(host->nqn, hostnqn); in nvmf_host_add() 54 bool same_hostid = uuid_equal(&host->id, id); in nvmf_host_add() 57 kref_get(&host->ref); in nvmf_host_add() [all …]
|
/linux/drivers/gpio/ |
H A D | gpio-realtek-otto.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 * Total register block size is 0x1C for one bank of four ports (A, B, C, D). 42 * realtek_gpio_ctrl - Realtek Otto GPIO driver data 45 * @base: Base address of the register block for a GPIO bank 49 * @bank_read: Read a bank setting as a single 32-bit value 50 * @bank_write: Write a bank setting as a single 32-bit value 53 * The DIR, DATA, and ISR registers consist of four 8-bit port values, packed 54 * into a single 32-bit register. Use @bank_read (@bank_write) to get (assign) 55 * a value from (to) these registers. The IMR register consists of four 16-bit 56 * port values, packed into two 32-bit registers. Use @imr_line_pos to get the [all …]
|
/linux/drivers/slimbus/ |
H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2011-2017, The Linux Foundation 22 while (id->manf_id != 0 || id->prod_code != 0) { in slim_match() 23 if (id->manf_id == sbdev->e_addr.manf_id && in slim_match() 24 id->prod_code == sbdev->e_addr.prod_code && in slim_match() 25 id->dev_index == sbdev->e_addr.dev_index && in slim_match() 26 id->instance == sbdev->e_addr.instance) in slim_match() 42 return !!slim_match(sbdrv->id_table, sbdev); in slim_device_match() 50 if (sbdev->status == status) in slim_device_update_status() 53 sbdev->status = status; in slim_device_update_status() [all …]
|
H A D | messaging.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2011-2017, The Linux Foundation 11 * slim_msg_response() - Deliver Message response received from a device to the 14 * @ctrl: Controller handle 20 * This helps in making the API asynchronous, and controller-driver doesn't need 24 void slim_msg_response(struct slim_controller *ctrl, u8 *reply, u8 tid, u8 len) in slim_msg_response() argument 30 spin_lock_irqsave(&ctrl->txn_lock, flags); in slim_msg_response() 31 txn = idr_find(&ctrl->tid_idr, tid); in slim_msg_response() 32 spin_unlock_irqrestore(&ctrl->txn_lock, flags); in slim_msg_response() 37 msg = txn->msg; in slim_msg_response() [all …]
|
/linux/drivers/tty/serdev/ |
H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2016-2017 Linaro Ltd., Rob Herring <robh@kernel.org> 6 * Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. 33 len = acpi_device_modalias(dev, buf, PAGE_SIZE - 1); in modalias_show() 34 if (len != -ENODEV) in modalias_show() 54 if (rc != -ENODEV) in serdev_device_uevent() 74 return dev->type == &serdev_device_type; in is_serdev_device() 79 struct serdev_controller *ctrl = to_serdev_controller(dev); in serdev_ctrl_release() local 80 ida_free(&ctrl_ida, ctrl->nr); in serdev_ctrl_release() 81 kfree(ctrl); in serdev_ctrl_release() [all …]
|
/linux/drivers/spmi/ |
H A D | spmi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. 16 #include <dt-bindings/spmi/spmi.h> 36 struct spmi_controller *ctrl = to_spmi_controller(dev); in spmi_ctrl_release() local 38 ida_free(&ctrl_ida, ctrl->nr); in spmi_ctrl_release() 39 kfree(ctrl); in spmi_ctrl_release() 51 if (drv->name) in spmi_device_match() 52 return strncmp(dev_name(dev), drv->name, in spmi_device_match() 59 * spmi_device_add() - add a device previously constructed via spmi_device_alloc() 64 struct spmi_controller *ctrl = sdev->ctrl; in spmi_device_add() local [all …]
|
/linux/drivers/net/mdio/ |
H A D | mdio-bitbang.c | 1 // SPDX-License-Identifier: GPL-2.0 10 * Copyright (c) 2003 Intracom S.A. 18 #include <linux/mdio-bitbang.h> 44 static void mdiobb_send_bit(struct mdiobb_ctrl *ctrl, int val) in mdiobb_send_bit() argument 46 const struct mdiobb_ops *ops = ctrl->ops; in mdiobb_send_bit() 48 ops->set_mdio_data(ctrl, val); in mdiobb_send_bit() 50 ops->set_mdc(ctrl, 1); in mdiobb_send_bit() 52 ops->set_mdc(ctrl, 0); in mdiobb_send_bit() 56 static int mdiobb_get_bit(struct mdiobb_ctrl *ctrl) in mdiobb_get_bit() argument 58 const struct mdiobb_ops *ops = ctrl->ops; in mdiobb_get_bit() [all …]
|
/linux/drivers/pci/hotplug/ |
H A D | pciehp.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 6 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com) 8 * Copyright (C) 2003-2004 Intel Corporation 35 #define ctrl_dbg(ctrl, format, arg...) \ argument 36 pci_dbg(ctrl->pcie->port, format, ## arg) 37 #define ctrl_err(ctrl, format, arg...) \ argument 38 pci_err(ctrl->pcie->port, format, ## arg) 39 #define ctrl_info(ctrl, format, arg...) \ argument 40 pci_info(ctrl->pcie->port, format, ## arg) 41 #define ctrl_warn(ctrl, format, arg...) \ argument [all …]
|
H A D | cpqphp_ctrl.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com) 28 static u32 configure_new_device(struct controller *ctrl, struct pci_func *func, 30 static int configure_new_function(struct controller *ctrl, struct pci_func *func, 32 static void interrupt_event_handler(struct controller *ctrl); 44 * to specify timeouts in natural units and spend a lot of in long_delay() 53 static u8 handle_switch_change(u8 change, struct controller *ctrl) in handle_switch_change() argument 72 func = cpqhp_slot_find(ctrl->bus, in handle_switch_change() 73 (hp_slot + ctrl->slot_device_offset), 0); in handle_switch_change() 78 taskInfo = &(ctrl->event_queue[ctrl->next_event]); in handle_switch_change() [all …]
|
H A D | pciehp_hpc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com) 8 * Copyright (C) 2003-2004 Intel Corporation 37 * assert presence detect--and those will still work, they will 38 * just have a bit of extra delay before being probed. 49 static inline struct pci_dev *ctrl_dev(struct controller *ctrl) in ctrl_dev() argument 51 return ctrl->pcie->port; in ctrl_dev() 58 static inline int pciehp_request_irq(struct controller *ctrl) in pciehp_request_irq() argument 60 int retval, irq = ctrl->pcie->irq; in pciehp_request_irq() 63 ctrl->poll_thread = kthread_run(&pciehp_poll, ctrl, in pciehp_request_irq() [all …]
|
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/drivers/media/v4l2-core/ |
H A D | v4l2-ctrls-api.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2010-2021 Hans Verkuil <hverkuil-cisco@xs4all.nl> 8 #define pr_fmt(fmt) "v4l2-ctrls: " fmt 13 #include <media/v4l2-ctrls.h> 14 #include <media/v4l2-dev.h> 15 #include <media/v4l2-device.h> 16 #include <media/v4l2-event.h> 17 #include <media/v4l2-ioctl.h> 19 #include "v4l2-ctrls-priv.h" 41 struct v4l2_ctrl *ctrl, in ptr_to_user() argument [all …]
|
/linux/include/media/ |
H A D | v4l2-ctrls.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 14 #include <media/media-request.h> 29 * union v4l2_ctrl_ptr - A pointer to a control value. 30 * @p_s32: Pointer to a 32-bit signed value. 31 * @p_s64: Pointer to a 64-bit signed value. 32 * @p_u8: Pointer to a 8-bit unsigned value. 33 * @p_u16: Pointer to a 16-bit unsigned value. 34 * @p_u32: Pointer to a 32-bit unsigned value. 35 * @p_char: Pointer to a string. 36 * @p_mpeg2_sequence: Pointer to a MPEG2 sequence structure. [all …]
|
/linux/drivers/tty/ |
H A D | tty_jobctrl.c | 1 // SPDX-License-Identifier: GPL-2.0 18 return (sigismember(¤t->blocked, sig) || in is_ignored() 19 current->sighand->action[sig-1].sa.sa_handler == SIG_IGN); in is_ignored() 23 * __tty_check_change - check for POSIX terminal changes 27 * If we try to write to, or set the state of, a terminal and we're 28 * not in the foreground, send a SIGTTOU. If the signal is blocked or 31 * Locking: ctrl.lock 39 if (current->signal->tty != tty) in __tty_check_change() 45 spin_lock_irqsave(&tty->ctrl.lock, flags); in __tty_check_change() 46 tty_pgrp = tty->ctrl.pgrp; in __tty_check_change() [all …]
|
/linux/arch/arm/kernel/ |
H A D | unwind.c | 1 // SPDX-License-Identifier: GPL-2.0-only 87 /* Convert a prel31 symbol to an absolute address */ 90 /* sign-extend to 32 bits */ \ 101 * stop - 1 = last entry 125 addr_prel31 = (addr - (unsigned long)start) & 0x7fffffff; in search_index() 127 while (start < stop - 1) { in search_index() 128 const struct unwind_idx *mid = start + ((stop - start) >> 1); in search_index() 134 if (addr_prel31 - ((unsigned long)mid - (unsigned long)start) < in search_index() 135 mid->addr_offset) in search_index() 139 addr_prel31 -= ((unsigned long)mid - in search_index() [all …]
|
/linux/drivers/clocksource/ |
H A D | dw_apb_timer.c | 1 // SPDX-License-Identifier: GPL-2.0-only 51 return readl(timer->base + offs); in apbt_readl() 57 writel(val, timer->base + offs); in apbt_writel() 62 return readl_relaxed(timer->base + offs); in apbt_readl_relaxed() 68 writel_relaxed(val, timer->base + offs); in apbt_writel_relaxed() 73 u32 ctrl = apbt_readl(timer, APBTMR_N_CONTROL); in apbt_disable_int() local 75 ctrl |= APBTMR_CONTROL_INT; in apbt_disable_int() 76 apbt_writel(timer, ctrl, APBTMR_N_CONTROL); in apbt_disable_int() 80 * dw_apb_clockevent_pause() - stop the clock_event_device from running 86 disable_irq(dw_ced->timer.irq); in dw_apb_clockevent_pause() [all …]
|
/linux/drivers/platform/surface/aggregator/ |
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. 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. 75 WRITE_ONCE(c->value, 0); in ssh_rqid_reset() [all …]
|
/linux/arch/arm64/kernel/ |
H A D | hw_breakpoint.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * HW_breakpoint: a unified kernel/user-space hardware breakpoint facility, 10 #define pr_fmt(fmt) "hw-breakpoint: " fmt 23 #include <asm/debug-monitors.h> 36 /* Currently stepping a per-CPU kernel breakpoint. */ 138 * Convert a breakpoint privilege level to the corresponding exception 150 return -EINVAL; in debug_exception_level() 163 struct task_struct *tsk = bp->hw.target; in is_compat_bp() 166 * tsk can be NULL for per-cpu (non-ptrace) breakpoints. in is_compat_bp() 168 * the notion of a "compat CPU" and could end up relying on in is_compat_bp() [all …]
|
/linux/sound/soc/codecs/ |
H A D | sigmadsp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright 2009-2014 Analog Devices Inc. 98 return sigmadsp->write(sigmadsp->control_data, addr, data, len); in sigmadsp_write() 104 return sigmadsp->read(sigmadsp->control_data, addr, data, len); in sigmadsp_read() 110 struct sigmadsp_control *ctrl = (void *)kcontrol->private_value; in sigmadsp_ctrl_info() local 112 info->type = SNDRV_CTL_ELEM_TYPE_BYTES; in sigmadsp_ctrl_info() 113 info->count = ctrl->num_bytes; in sigmadsp_ctrl_info() 119 struct sigmadsp_control *ctrl, void *data) in sigmadsp_ctrl_write() argument 121 /* safeload loads up to 20 bytes in a atomic operation */ in sigmadsp_ctrl_write() 122 if (ctrl->num_bytes <= 20 && sigmadsp->ops && sigmadsp->ops->safeload) in sigmadsp_ctrl_write() [all …]
|
/linux/Documentation/devicetree/bindings/mux/ |
H A D | mux-consumer.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/mux/mux-consumer.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Peter Rosin <peda@axentia.se> 13 Mux controller consumers should specify a list of mux controllers that they 14 want to use with a property containing a 'mux-ctrl-list': 16 mux-ctrl-list ::= <single-mux-ctrl> [mux-ctrl-list] 17 single-mux-ctrl ::= <mux-ctrl-phandle> [mux-ctrl-specifier] 18 mux-ctrl-phandle : phandle to mux controller node [all …]
|