Home
last modified time | relevance | path

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

12345678910>>...40

/Linux-v6.6/drivers/spmi/
Dspmi.c1 // 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 …]
Dspmi-mtk-pmif.c1 // SPDX-License-Identifier: GPL-2.0
266 return readl(arb->base + arb->data->regs[reg]); in pmif_readl()
271 writel(val, arb->base + arb->data->regs[reg]); in pmif_writel()
276 writel(val, arb->spmimst_base + arb->data->spmimst_regs[reg]); in mtk_spmi_writel()
283 reg_rdata = pmif_readl(arb, arb->chan.ch_sta); in pmif_is_fsm_vldclr()
288 static int pmif_arb_cmd(struct spmi_controller *ctrl, u8 opc, u8 sid) in pmif_arb_cmd() argument
290 struct pmif *arb = spmi_controller_get_drvdata(ctrl); in pmif_arb_cmd()
296 return -EINVAL; in pmif_arb_cmd()
298 cmd = opc - SPMI_CMD_RESET; in pmif_arb_cmd()
301 ret = readl_poll_timeout_atomic(arb->spmimst_base + arb->data->spmimst_regs[SPMI_OP_ST_STA], in pmif_arb_cmd()
[all …]
/Linux-v6.6/net/bluetooth/cmtp/
Dcapi.c3 Copyright (C) 2002-2003 Marcel Holtmann <marcel@holtmann.org>
82 app->state = BT_OPEN; in cmtp_application_add()
83 app->appl = appl; in cmtp_application_add()
85 list_add_tail(&app->list, &session->applications); in cmtp_application_add()
95 list_del(&app->list); in cmtp_application_del()
104 list_for_each_entry(app, &session->applications, list) { in cmtp_application_get()
107 if (app->msgnum == value) in cmtp_application_get()
111 if (app->appl == value) in cmtp_application_get()
115 if (app->mapping == value) in cmtp_application_get()
126 session->msgnum++; in cmtp_msgnum_get()
[all …]
/Linux-v6.6/drivers/nvme/host/
Dtcp.c1 // SPDX-License-Identifier: GPL-2.0
11 #include <linux/nvme-tcp.h>
14 #include <linux/blk-mq.h>
26 * A non-zero value being sufficient to indicate general consideration of any
36 * sk_lock -> mmap_lock (page fault) -> fs locks -> sk_lock
37 * because dependencies are tracked for both nvme-tcp and user contexts. Using
38 * a separate class prevents lockdep from conflating nvme-tcp socket use with
39 * user-space socket API use.
46 struct sock *sk = sock->sk; in nvme_tcp_reclassify_socket()
51 switch (sk->sk_family) { in nvme_tcp_reclassify_socket()
[all …]
Dfabrics.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (c) 2015-2016 HGST, a Western Digital Company.
32 kref_init(&host->ref); in nvmf_host_alloc()
33 uuid_copy(&host->id, id); in nvmf_host_alloc()
34 strscpy(host->nqn, hostnqn, NVMF_NQN_SIZE); in nvmf_host_alloc()
52 bool same_hostnqn = !strcmp(host->nqn, hostnqn); in nvmf_host_add()
53 bool same_hostid = uuid_equal(&host->id, id); in nvmf_host_add()
56 kref_get(&host->ref); in nvmf_host_add()
62 host = ERR_PTR(-EINVAL); in nvmf_host_add()
68 host = ERR_PTR(-EINVAL); in nvmf_host_add()
[all …]
/Linux-v6.6/arch/arm64/kernel/
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>
35 /* Currently stepping a per-CPU kernel breakpoint. */
149 return -EINVAL; in debug_exception_level()
162 struct task_struct *tsk = bp->hw.target; in is_compat_bp()
165 * tsk can be NULL for per-cpu (non-ptrace) breakpoints. in is_compat_bp()
175 * hw_breakpoint_slot_setup - Find and setup a perf slot according to
185 * -ENOSPC if no slot is available/matches
[all …]
/Linux-v6.6/arch/loongarch/kernel/
Dhw_breakpoint.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2022-2023 Loongson Technology Corporation Limited
5 #define pr_fmt(fmt) "hw-breakpoint: " fmt
73 GEN_READ_WB_REG_CASES(CSR_CFG_CTRL, CTRL, t, val); in read_wb_reg()
88 GEN_WRITE_WB_REG_CASES(CSR_CFG_CTRL, CTRL, t, val); in write_wb_reg()
102 * hw_breakpoint_slot_setup - Find and setup a perf slot according to operations
111 * -ENOSPC if no slot is available/matches
112 * -EINVAL on wrong operations parameter
138 return -EINVAL; in hw_breakpoint_slot_setup()
142 return -ENOSPC; in hw_breakpoint_slot_setup()
[all …]
/Linux-v6.6/drivers/scsi/arm/
Dcumana_1.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright 1995-2002, Russell King
17 #define priv(host) ((struct NCR5380_hostdata *)(host)->hostdata)
31 unsigned ctrl
39 #define CTRL 0x16fc macro
45 unsigned char *addr, int len) in cumanascsi_pwrite() argument
48 u8 __iomem *base = hostdata->io; in cumanascsi_pwrite()
49 u8 __iomem *dma = hostdata->pdma_io + 0x2000; in cumanascsi_pwrite()
51 if(!len) return 0; in cumanascsi_pwrite()
53 writeb(0x02, base + CTRL); in cumanascsi_pwrite()
[all …]
/Linux-v6.6/sound/soc/codecs/
Dsigmadsp.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright 2009-2014 Analog Devices Inc.
90 __le16 len; member
96 const uint8_t data[], size_t len) in sigmadsp_write() argument
98 return sigmadsp->write(sigmadsp->control_data, addr, data, len); in sigmadsp_write()
102 uint8_t data[], size_t len) in sigmadsp_read() argument
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()
[all …]
/Linux-v6.6/drivers/misc/mei/
Ddma-ring.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright(c) 2016-2018 Intel Corporation. All rights reserved.
5 #include <linux/dma-mapping.h>
11 * mei_dmam_dscr_alloc() - allocate a managed coherent buffer
17 * * 0 - on success or zero allocation request
18 * * -EINVAL - if size is not power of 2
19 * * -ENOMEM - of allocation has failed
24 if (!dscr->size) in mei_dmam_dscr_alloc()
27 if (WARN_ON(!is_power_of_2(dscr->size))) in mei_dmam_dscr_alloc()
28 return -EINVAL; in mei_dmam_dscr_alloc()
[all …]
/Linux-v6.6/net/bluetooth/
Da2mp.c1 // SPDX-License-Identifier: GPL-2.0-only
23 static struct a2mp_cmd *__a2mp_build(u8 code, u8 ident, u16 len, void *data) in __a2mp_build() argument
28 plen = sizeof(*cmd) + len; in __a2mp_build()
33 cmd->code = code; in __a2mp_build()
34 cmd->ident = ident; in __a2mp_build()
35 cmd->len = cpu_to_le16(len); in __a2mp_build()
37 memcpy(cmd->data, data, len); in __a2mp_build()
42 static void a2mp_send(struct amp_mgr *mgr, u8 code, u8 ident, u16 len, void *data) in a2mp_send() argument
44 struct l2cap_chan *chan = mgr->a2mp_chan; in a2mp_send()
46 u16 total_len = len + sizeof(*cmd); in a2mp_send()
[all …]
Damp.c1 // SPDX-License-Identifier: GPL-2.0-only
17 void amp_ctrl_get(struct amp_ctrl *ctrl) in amp_ctrl_get() argument
19 BT_DBG("ctrl %p orig refcnt %d", ctrl, in amp_ctrl_get()
20 kref_read(&ctrl->kref)); in amp_ctrl_get()
22 kref_get(&ctrl->kref); in amp_ctrl_get()
27 struct amp_ctrl *ctrl = container_of(kref, struct amp_ctrl, kref); in amp_ctrl_destroy() local
29 BT_DBG("ctrl %p", ctrl); in amp_ctrl_destroy()
31 kfree(ctrl->assoc); in amp_ctrl_destroy()
32 kfree(ctrl); in amp_ctrl_destroy()
35 int amp_ctrl_put(struct amp_ctrl *ctrl) in amp_ctrl_put() argument
[all …]
/Linux-v6.6/drivers/spi/
Dspi-sc18is602.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (C) Guenter Roeck <linux@roeck-us.net>
35 u8 ctrl; member
49 static int sc18is602_wait_ready(struct sc18is602 *hw, int len) in sc18is602_wait_ready() argument
52 int usecs = 1000000 * len / hw->speed + 1; in sc18is602_wait_ready()
56 err = i2c_master_recv(hw->client, dummy, 1); in sc18is602_wait_ready()
61 return -ETIMEDOUT; in sc18is602_wait_ready()
67 unsigned int len = t->len; in sc18is602_txrx() local
70 if (hw->tlen == 0) { in sc18is602_txrx()
72 hw->buffer[0] = 1 << spi_get_chipselect(msg->spi, 0); in sc18is602_txrx()
[all …]
/Linux-v6.6/drivers/nvme/target/
Dadmin-cmd.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (c) 2015-2016 HGST, a Western Digital Company.
17 u32 len = le16_to_cpu(cmd->get_log_page.numdu); in nvmet_get_log_page_len() local
19 len <<= 16; in nvmet_get_log_page_len()
20 len += le16_to_cpu(cmd->get_log_page.numdl); in nvmet_get_log_page_len()
22 len += 1; in nvmet_get_log_page_len()
23 len *= sizeof(u32); in nvmet_get_log_page_len()
25 return len; in nvmet_get_log_page_len()
32 return sizeof(req->sq->ctrl->hostid); in nvmet_feat_data_len()
40 return le64_to_cpu(cmd->get_log_page.lpo); in nvmet_get_log_page_offset()
[all …]
Dauth.c1 // SPDX-License-Identifier: GPL-2.0
3 * NVMe over Fabrics DH-HMAC-CHAP authentication.
17 #include <linux/nvme-auth.h>
28 if (sscanf(secret, "DHHC-1:%hhd:%*s", &key_hash) != 1) in nvmet_auth_set_key()
29 return -EINVAL; in nvmet_auth_set_key()
31 pr_warn("Invalid DH-HMAC-CHAP hash id %d\n", in nvmet_auth_set_key()
33 return -EINVAL; in nvmet_auth_set_key()
40 pr_err("DH-HMAC-CHAP hash %s unsupported\n", hmac); in nvmet_auth_set_key()
41 return -ENOTSUPP; in nvmet_auth_set_key()
46 return -ENOMEM; in nvmet_auth_set_key()
[all …]
/Linux-v6.6/drivers/media/usb/uvc/
Duvc_status.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * uvc_status.c -- USB Video Class driver - Status endpoint
5 * Copyright (C) 2005-2009
18 /* --------------------------------------------------------------------------
33 list_for_each_entry(stream, &dev->streams, list) { in uvc_input_has_button()
34 if (stream->header.bTriggerSupport == 1 && in uvc_input_has_button()
35 stream->header.bTriggerUsage == 1) in uvc_input_has_button()
52 return -ENOMEM; in uvc_input_init()
54 usb_make_path(dev->udev, dev->input_phys, sizeof(dev->input_phys)); in uvc_input_init()
55 strlcat(dev->input_phys, "/button", sizeof(dev->input_phys)); in uvc_input_init()
[all …]
/Linux-v6.6/include/linux/
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-v6.6/drivers/media/pci/cx25821/
Dcx25821-i2c.c1 // SPDX-License-Identifier: GPL-2.0-or-later
27 printk(KERN_DEBUG "%s/0: " fmt, dev->name, ##arg); \
38 struct cx25821_i2c *bus = i2c_adap->algo_data; in i2c_slave_did_ack()
39 struct cx25821_dev *dev = bus->dev; in i2c_slave_did_ack()
40 return cx_read(bus->reg_stat) & 0x01; in i2c_slave_did_ack()
45 struct cx25821_i2c *bus = i2c_adap->algo_data; in i2c_is_busy()
46 struct cx25821_dev *dev = bus->dev; in i2c_is_busy()
47 return cx_read(bus->reg_stat) & 0x02 ? 1 : 0; in i2c_is_busy()
69 struct cx25821_i2c *bus = i2c_adap->algo_data; in i2c_sendbytes()
70 struct cx25821_dev *dev = bus->dev; in i2c_sendbytes()
[all …]
/Linux-v6.6/arch/arm/kernel/
Dhw_breakpoint.c1 // SPDX-License-Identifier: GPL-2.0-only
10 * HW_breakpoint: a unified kernel/user-space hardware breakpoint facility,
13 #define pr_fmt(fmt) "hw-breakpoint: " fmt
150 /* We don't support the memory-mapped interface. */ in debug_arch_supported()
215 return core_has_mismatch_brps() ? brps - 1 : brps; in get_num_brps()
256 return -ENODEV; in enable_monitor_mode()
264 return -EPERM; in enable_monitor_mode()
292 * Check if 8-bit byte-address select is available.
298 struct arch_hw_breakpoint_ctrl ctrl; in get_max_wp_len() local
304 memset(&ctrl, 0, sizeof(ctrl)); in get_max_wp_len()
[all …]
/Linux-v6.6/drivers/media/pci/cx23885/
Dcx23885-i2c.c1 // SPDX-License-Identifier: GPL-2.0-or-later
15 #include <media/v4l2-common.h>
39 struct cx23885_i2c *bus = i2c_adap->algo_data; in i2c_slave_did_ack()
40 struct cx23885_dev *dev = bus->dev; in i2c_slave_did_ack()
41 return cx_read(bus->reg_stat) & 0x01; in i2c_slave_did_ack()
46 struct cx23885_i2c *bus = i2c_adap->algo_data; in i2c_is_busy()
47 struct cx23885_dev *dev = bus->dev; in i2c_is_busy()
48 return cx_read(bus->reg_stat) & 0x02 ? 1 : 0; in i2c_is_busy()
70 struct cx23885_i2c *bus = i2c_adap->algo_data; in i2c_sendbytes()
71 struct cx23885_dev *dev = bus->dev; in i2c_sendbytes()
[all …]
/Linux-v6.6/drivers/usb/gadget/function/
Df_uac1_legacy.c1 // 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 …]
/Linux-v6.6/drivers/slimbus/
Dmessaging.c1 // 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
16 * @len: Length of the reply
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()
[all …]
/Linux-v6.6/drivers/scsi/be2iscsi/
Dbe_mgmt.c16 * OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH
22 * linux-drivers@broadcom.com
26 #include <linux/bsg-lib.h>
33 unsigned int mgmt_vendor_specific_fw_cmd(struct be_ctrl_info *ctrl, in mgmt_vendor_specific_fw_cmd() argument
41 struct iscsi_bsg_request *bsg_req = job->request; in mgmt_vendor_specific_fw_cmd()
42 struct be_bsg_vendor_cmd *req = nonemb_cmd->va; in mgmt_vendor_specific_fw_cmd()
45 nonemb_cmd->size = job->request_payload.payload_len; in mgmt_vendor_specific_fw_cmd()
46 memset(nonemb_cmd->va, 0, nonemb_cmd->size); in mgmt_vendor_specific_fw_cmd()
47 region = bsg_req->rqst_data.h_vendor.vendor_cmd[1]; in mgmt_vendor_specific_fw_cmd()
48 sector_size = bsg_req->rqst_data.h_vendor.vendor_cmd[2]; in mgmt_vendor_specific_fw_cmd()
[all …]
/Linux-v6.6/drivers/pci/hotplug/
Dshpchp_sysfs.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Copyright (c) 2001,2003 Greg Kroah-Hartman (greg@kroah.com)
29 size_t len = 0; in show_ctrl() local
33 bus = pdev->subordinate; in show_ctrl()
35 len += sysfs_emit_at(buf, len, "Free resources: memory\n"); in show_ctrl()
37 if (res && (res->flags & IORESOURCE_MEM) && in show_ctrl()
38 !(res->flags & IORESOURCE_PREFETCH)) { in show_ctrl()
39 len += sysfs_emit_at(buf, len, in show_ctrl()
41 (unsigned long long)res->start, in show_ctrl()
45 len += sysfs_emit_at(buf, len, "Free resources: prefetchable memory\n"); in show_ctrl()
[all …]
/Linux-v6.6/drivers/mtd/nand/raw/
Dfsl_ifc_nand.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright 2011-2012 Freescale Semiconductor, Inc
32 struct fsl_ifc_ctrl *ctrl; member
51 unsigned int eccread; /* Non zero for a full-page ECC read */
67 .offs = 2, /* 0 on 8-bit small page */
68 .len = 4,
77 .offs = 2, /* 0 on 8-bit small page */
78 .len = 4,
90 return -ERANGE; in fsl_ifc_ooblayout_ecc()
92 oobregion->offset = 8; in fsl_ifc_ooblayout_ecc()
[all …]

12345678910>>...40