Home
last modified time | relevance | path

Searched +full:ctrl +full:- +full:a (Results 1 – 25 of 1063) sorted by relevance

12345678910>>...43

/linux/drivers/nvme/host/
H A Dsysfs.c1 // 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 Dcore.c1 // 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>
67 MODULE_PARM_DESC(max_retries, "max number of retries a command may have");
101 * used in prior kernels since the metadata written did not contain a valid
110 * nvme_wq - hosts nvme related works that are not reset or delete
111 * nvme_reset_wq - hosts nvme reset works
[all …]
H A Dfabrics.c1 // 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 …]
H A Dfabrics.h1 /* 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.
73 * struct nvmf_ctrl_options - Used to hold the options specified
76 * on adding a NVMe controller.
[all …]
H A Dpci.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (c) 2011-2014, Intel Corporation.
10 #include <linux/blk-mq-dma.h>
11 #include <linux/blk-integrity.h>
25 #include <linux/t10-pi.h>
27 #include <linux/io-64-nonatomic-lo-hi.h>
28 #include <linux/io-64-nonatomic-hi-lo.h>
29 #include <linux/sed-opal.h>
34 #define SQ_SIZE(q) ((q)->q_depth << (q)->sqes)
35 #define CQ_SIZE(q) ((q)->q_depth * sizeof(struct nvme_completion))
[all …]
H A Dmultipath.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2017-2018 Christoph Hellwig.
6 #include <linux/backing-dev.h>
18 bool *arg = kp->arg; in multipath_param_set()
27 return -EINVAL; in multipath_param_set()
46 bool *arg = kp->arg; in multipath_always_on_set()
66 …"create multipath node always except for private namespace with non-unique nsid; note that this al…
70 [NVME_IOPOLICY_RR] = "round-robin",
71 [NVME_IOPOLICY_QD] = "queue-depth",
79 return -EINVAL; in nvme_set_iopolicy()
[all …]
/linux/drivers/pci/hotplug/
H A Dpciehp.h1 /* 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 Dcpqphp_ctrl.c1 // 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 Dpciehp_hpc.c1 // 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 Dcpqphp_core.c1 // 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 …]
H A Dpciehp_ctrl.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com)
8 * Copyright (C) 2003-2004 Intel Corporation
33 static void set_slot_off(struct controller *ctrl) in set_slot_off() argument
39 if (POWER_CTRL(ctrl)) { in set_slot_off()
40 pciehp_power_off_slot(ctrl); in set_slot_off()
50 pciehp_set_indicators(ctrl, PCI_EXP_SLTCTL_PWR_IND_OFF, in set_slot_off()
55 * board_added - Called after a board has been added to the system.
56 * @ctrl: PCIe hotplug controller where board is added
61 static int board_added(struct controller *ctrl) in board_added() argument
[all …]
H A Dpciehp_pci.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com)
8 * Copyright (C) 2003-2004 Intel Corporation
25 * pciehp_configure_device() - enumerate PCI devices below a hotplug bridge
26 * @ctrl: PCIe hotplug controller
28 * Enumerate PCI devices below a hotplug bridge and add them to the system.
29 * Return 0 on success, %-EEXIST if the devices are already enumerated or
30 * %-ENODEV if enumeration failed.
32 int pciehp_configure_device(struct controller *ctrl) in pciehp_configure_device() argument
35 struct pci_dev *bridge = ctrl->pcie->port; in pciehp_configure_device()
[all …]
H A Dshpchp_ctrl.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com)
8 * Copyright (C) 2003-2004 Intel Corporation
34 return -ENOMEM; in queue_interrupt_event()
36 info->event_type = event_type; in queue_interrupt_event()
37 info->p_slot = p_slot; in queue_interrupt_event()
38 INIT_WORK(&info->work, interrupt_event_handler); in queue_interrupt_event()
40 queue_work(p_slot->wq, &info->work); in queue_interrupt_event()
45 u8 shpchp_handle_attention_button(u8 hp_slot, struct controller *ctrl) in shpchp_handle_attention_button() argument
51 ctrl_dbg(ctrl, "Attention button interrupt received\n"); in shpchp_handle_attention_button()
[all …]
H A Dpciehp_core.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com)
8 * Copyright (C) 2003-2004 Intel Corporation
16 * Greg Kroah-Hartman <greg@kroah.com>
43 MODULE_PARM_DESC(pciehp_poll_mode, "Using polling mechanism for hot-plug events or not");
51 static int init_slot(struct controller *ctrl) in init_slot() argument
60 return -ENOMEM; in init_slot()
62 ops->enable_slot = pciehp_sysfs_enable_slot; in init_slot()
63 ops->disable_slot = pciehp_sysfs_disable_slot; in init_slot()
64 ops->get_power_status = get_power_status; in init_slot()
[all …]
/linux/drivers/net/mdio/
H A Dmdio-bitbang.c1 // 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/tty/
H A Dtty_jobctrl.c1 // SPDX-License-Identifier: GPL-2.0
18 return (sigismember(&current->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 Dunwind.c1 // 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/platform/surface/aggregator/
H A Dcontroller.c1 // 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 Dhw_breakpoint.c1 // 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>
37 /* Currently stepping a per-CPU kernel breakpoint. */
139 * Convert a breakpoint privilege level to the corresponding exception
151 return -EINVAL; in debug_exception_level()
164 struct task_struct *tsk = bp->hw.target; in is_compat_bp()
167 * tsk can be NULL for per-cpu (non-ptrace) breakpoints. in is_compat_bp()
169 * the notion of a "compat CPU" and could end up relying on in is_compat_bp()
[all …]
/linux/sound/soc/codecs/
H A Dsigmadsp.c1 // 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/include/linux/
H A Dspmi.h1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
34 * struct spmi_device - Basic representation of an SPMI device
36 * @ctrl: SPMI controller managing the bus hosting this device.
41 struct spmi_controller *ctrl; member
52 return dev_get_drvdata(&sdev->dev); in spmi_device_get_drvdata()
57 dev_set_drvdata(&sdev->dev, data); in spmi_device_set_drvdata()
60 struct spmi_device *spmi_device_alloc(struct spmi_controller *ctrl);
65 put_device(&sdev->dev); in spmi_device_put()
73 * struct spmi_controller - interface to the SPMI master controller
[all …]
/linux/Documentation/devicetree/bindings/mux/
H A Dmux-consumer.yaml1 # 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 …]
/linux/drivers/rtc/
H A Drtc-ds1305.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rtc-ds1305.c -- driver for DS1305 and DS1306 SPI RTC chips
21 * otherwise you're reading it. All non-bitmask values are BCD.
27 * - Need fancy "hours" encoding in 12hour mode
28 * - Don't rely on the "day-of-week" field (or tm_wday)
29 * - Are a 21st-century clock (2000 <= year < 2100)
45 * DS1305_ALM_DISABLE disables a match field (some combos are bad).
48 * only one day into the future (vs potentially up to a week).
50 * NOTE ALSO that while we could generate once-a-second IRQs (UIE), we
53 * alarm (implying that this is a DS1305 not DS1306, *and* that either
[all …]
/linux/drivers/nvme/target/
H A Dpci-epf.c1 // SPDX-License-Identifier: GPL-2.0
7 * REDS Institute, HEIG-VD, HES-SO, Switzerland
19 #include <linux/pci-epc.h>
20 #include <linux/pci-epf.h>
31 * allow up to 128 page-sized segments. For the maximum allowed,
36 (NVMET_PCI_EPF_MAX_SEGS << (PAGE_SHIFT - 10))
42 * be changed by the host with a nvme_set_features command.
54 * SQ arbitration burst default: fetch at most 8 commands at a time from an SQ.
59 * Handling of CQs is normally immediate, unless we fail to map a CQ or the CQ
84 struct nvmet_pci_epf_ctrl *ctrl; member
[all …]
/linux/include/linux/surface_aggregator/
H A Dcontroller.h1 /* SPDX-License-Identifier: GPL-2.0+ */
5 * Main communication interface for the SSAM EC. Provides a controller
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
26 * @SSAM_EVENT_SEQUENCED: The event will be sent via a sequenced data frame.
33 * struct ssam_event - SAM event sent from the EC to the host.
51 * enum ssam_request_flags - Flags for SAM requests.
54 * Specifies that the request expects a response. If not set, the request
56 * transmitted. If set, the request transport system waits for a response
[all …]

12345678910>>...43