Home
last modified time | relevance | path

Searched +full:cmd +full:- +full:cnt +full:- +full:name (Results 1 – 25 of 382) sorted by relevance

12345678910>>...16

/linux-6.12.1/drivers/scsi/elx/efct/
Defct_lio.c1 // SPDX-License-Identifier: GPL-2.0
29 efct_lio_parse_wwn(const char *name, u64 *wwp, u8 npiv) in efct_lio_parse_wwn() argument
35 num = sscanf(name, in efct_lio_parse_wwn()
40 num = sscanf(name, in efct_lio_parse_wwn()
47 return -EINVAL; in efct_lio_parse_wwn()
54 efct_lio_parse_npiv_wwn(const char *name, size_t size, u64 *wwpn, u64 *wwnn) in efct_lio_parse_npiv_wwn() argument
56 unsigned int cnt = size; in efct_lio_parse_npiv_wwn() local
60 if (name[cnt - 1] == '\n' || name[cnt - 1] == 0) in efct_lio_parse_npiv_wwn()
61 cnt--; in efct_lio_parse_npiv_wwn()
64 if ((cnt != (16 + 1 + 16)) || (name[16] != ':')) in efct_lio_parse_npiv_wwn()
[all …]
/linux-6.12.1/tools/perf/util/
Dhelp-unknown-cmd.c1 // SPDX-License-Identifier: GPL-2.0
26 const char *s1 = (*c1)->name, *s2 = (*c2)->name; in levenshtein_compare()
27 int l1 = (*c1)->len; in levenshtein_compare()
28 int l2 = (*c2)->len; in levenshtein_compare()
29 return l1 != l2 ? l1 - l2 : strcmp(s1, s2); in levenshtein_compare()
34 unsigned int i, nr = cmds->cnt + old->cnt; in add_cmd_list()
37 if (nr > cmds->alloc) { in add_cmd_list()
39 if (alloc_nr(cmds->alloc) < nr) in add_cmd_list()
40 cmds->alloc = nr; in add_cmd_list()
42 cmds->alloc = alloc_nr(cmds->alloc); in add_cmd_list()
[all …]
/linux-6.12.1/drivers/isdn/hardware/mISDN/
DmISDNisar.c1 // SPDX-License-Identifier: GPL-2.0-only
41 u8 val = isar->read_reg(isar->hw, ISAR_HIA); in waitforHIA()
45 t--; in waitforHIA()
46 val = isar->read_reg(isar->hw, ISAR_HIA); in waitforHIA()
48 pr_debug("%s: HIA after %dus\n", isar->name, timeout - t); in waitforHIA()
54 * if msg is NULL use isar->buf
62 isar->write_reg(isar->hw, ISAR_CTRL_H, creg); in send_mbox()
63 isar->write_reg(isar->hw, ISAR_CTRL_L, len); in send_mbox()
64 isar->write_reg(isar->hw, ISAR_WADR, 0); in send_mbox()
66 msg = isar->buf; in send_mbox()
[all …]
Davmfritz.c1 // SPDX-License-Identifier: GPL-2.0-only
101 u8 cmd; member
103 u8 cmd;
121 char name[MISDN_MAX_IDLEN]; member
140 card->isac.dch.debug = debug; in _set_debug()
141 card->bch[0].debug = debug; in _set_debug()
142 card->bch[1].debug = debug; in _set_debug()
176 outb(idx, fc->addr + CHIP_INDEX); in ReadISAC_V1()
177 return inb(fc->addr + CHIP_WINDOW + (offset & 0xf)); in ReadISAC_V1()
186 outb(idx, fc->addr + CHIP_INDEX); in WriteISAC_V1()
[all …]
Dspeedfax.c1 // SPDX-License-Identifier: GPL-2.0-only
60 char name[MISDN_MAX_IDLEN]; member
78 card->isac.dch.debug = debug; in _set_debug()
79 card->isar.ch[0].bch.debug = debug; in _set_debug()
80 card->isar.ch[1].bch.debug = debug; in _set_debug()
117 int cnt = irqloops; in IOFUNC_IND() local
119 spin_lock(&sf->lock); in IOFUNC_IND()
120 val = inb(sf->cfg + TIGER_AUX_STATUS); in IOFUNC_IND()
122 spin_unlock(&sf->lock); in IOFUNC_IND()
125 sf->irqcnt++; in IOFUNC_IND()
[all …]
Dnetjet.c1 // SPDX-License-Identifier: GPL-2.0-only
66 char name[MISDN_MAX_IDLEN]; member
95 card->isac.dch.debug = debug; in _set_debug()
96 card->bc[0].bch.debug = debug; in _set_debug()
97 card->bc[1].bch.debug = debug; in _set_debug()
126 outb(0, card->base + NJ_IRQMASK0); in nj_disable_hwirq()
127 outb(0, card->base + NJ_IRQMASK1); in nj_disable_hwirq()
137 card->auxd &= 0xfc; in ReadISAC_nj()
138 card->auxd |= (offset >> 4) & 3; in ReadISAC_nj()
139 outb(card->auxd, card->base + NJ_AUXDATA); in ReadISAC_nj()
[all …]
/linux-6.12.1/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
Daux.c41 while (mcnt--) { in nvkm_i2c_aux_i2c_xfer()
42 u8 remaining = msg->len; in nvkm_i2c_aux_i2c_xfer()
43 u8 *ptr = msg->buf; in nvkm_i2c_aux_i2c_xfer()
46 u8 cnt, retries, cmd; in nvkm_i2c_aux_i2c_xfer() local
48 if (msg->flags & I2C_M_RD) in nvkm_i2c_aux_i2c_xfer()
49 cmd = 1; in nvkm_i2c_aux_i2c_xfer()
51 cmd = 0; in nvkm_i2c_aux_i2c_xfer()
54 cmd |= 4; /* MOT */ in nvkm_i2c_aux_i2c_xfer()
56 for (retries = 0, cnt = 0; in nvkm_i2c_aux_i2c_xfer()
57 retries < 32 && !cnt; in nvkm_i2c_aux_i2c_xfer()
[all …]
/linux-6.12.1/drivers/s390/net/
Dlcs.c1 // SPDX-License-Identifier: GPL-2.0+
85 return -ENOMEM; in lcs_register_debug_facility()
100 int cnt; in lcs_alloc_channel() local
103 for (cnt = 0; cnt < LCS_NUM_BUFFS; cnt++) { in lcs_alloc_channel()
105 channel->iob[cnt].data = in lcs_alloc_channel()
107 if (channel->iob[cnt].data == NULL) in lcs_alloc_channel()
109 channel->iob[cnt].state = LCS_BUF_STATE_EMPTY; in lcs_alloc_channel()
111 if (cnt < LCS_NUM_BUFFS) { in lcs_alloc_channel()
114 while (cnt-- > 0) in lcs_alloc_channel()
115 kfree(channel->iob[cnt].data); in lcs_alloc_channel()
[all …]
/linux-6.12.1/drivers/mmc/core/
Dmmc_test.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright 2007-2008 Pierre Ossman
43 * struct mmc_test_pages - pages allocated by 'alloc_pages()'.
53 * struct mmc_test_mem - allocated memory.
55 * @cnt: number of allocations
59 unsigned int cnt; member
63 * struct mmc_test_area - information for performance tests.
73 * @sg_areq: scatterlist for non-blocking request
89 * struct mmc_test_transfer_result - transfer results for performance tests.
90 * @link: double-linked list
[all …]
/linux-6.12.1/drivers/scsi/qla2xxx/
Dqla_iocb.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (c) 2003-2014 QLogic Corporation
16 * qla2x00_get_cmd_direction() - Determine control_flag data direction.
25 struct scsi_cmnd *cmd = GET_CMD_SP(sp); in qla2x00_get_cmd_direction() local
26 struct scsi_qla_host *vha = sp->vha; in qla2x00_get_cmd_direction()
31 if (cmd->sc_data_direction == DMA_TO_DEVICE) { in qla2x00_get_cmd_direction()
33 vha->qla_stats.output_bytes += scsi_bufflen(cmd); in qla2x00_get_cmd_direction()
34 vha->qla_stats.output_requests++; in qla2x00_get_cmd_direction()
35 } else if (cmd->sc_data_direction == DMA_FROM_DEVICE) { in qla2x00_get_cmd_direction()
37 vha->qla_stats.input_bytes += scsi_bufflen(cmd); in qla2x00_get_cmd_direction()
[all …]
/linux-6.12.1/drivers/i2c/busses/
Di2c-brcmstb.c1 // SPDX-License-Identifier: GPL-2.0-only
176 __bsc_readl(_dev->base + offsetof(struct bsc_regs, _reg))
179 __bsc_writel(_val, _dev->base + offsetof(struct bsc_regs, _reg))
183 return (N_DATA_REGS * dev->data_regsz); in brcmstb_i2c_get_xfersz()
188 return dev->data_regsz; in brcmstb_i2c_get_data_regsz()
197 dev->bsc_regmap->ctl_reg |= BSC_CTL_REG_INT_EN_MASK; in brcmstb_i2c_enable_disable_irq()
200 dev->bsc_regmap->ctl_reg &= ~BSC_CTL_REG_INT_EN_MASK; in brcmstb_i2c_enable_disable_irq()
203 bsc_writel(dev, dev->bsc_regmap->ctl_reg, ctl_reg); in brcmstb_i2c_enable_disable_irq()
212 dev_dbg(dev->device, "isr CTL_REG %x IIC_EN %x\n", in brcmstb_i2c_isr()
219 complete(&dev->done); in brcmstb_i2c_isr()
[all …]
/linux-6.12.1/drivers/scsi/
Dqla1280.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * Copyright (C) 2001-2004 Jes Sorensen, Wild Open Source Inc.
8 * Copyright (C) 2003-2004 Christoph Hellwig
15 - Retain firmware image for error recovery.
17 - General code cleanup.
18 - Improve error recovery.
20 - Ditch all < 2.6 support
22 - use pci_map_single to map non-S/G requests
23 - remove qla1280_proc_info
25 - add support for ISP1020/1040
[all …]
/linux-6.12.1/tools/testing/selftests/tpm2/
Dtpm2.py1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
212 def __init__(self, name): argument
213 self.name = name
216 return name
233 self.name = TPM2_FMT1_ERRORS.get(rc & 0x3f, "TPM_RC_UNKNOWN")
235 self.name = TPM2_WARN_ERRORS.get(rc & 0x7f, "TPM_RC_UNKNOWN")
237 self.name = TPM2_VER1_ERRORS.get(rc & 0x7f, "TPM_RC_UNKNOWN")
239 self.name = TPM2_VER0_ERRORS.get(rc & 0x7f, "TPM_RC_UNKNOWN")
243 return '%s: cc=0x%08x, rc=0x%08x' % (self.name, self.cc, self.rc)
245 return '%s: rc=0x%08x' % (self.name, self.rc)
[all …]
/linux-6.12.1/Documentation/userspace-api/netlink/
Dc-code-gen.rst1 .. SPDX-License-Identifier: BSD-3-Clause
9 allowed in older families by the ``genetlink-c`` protocol level,
12 For brevity this document refers to ``name`` properties of various
14 of ``name`` in an attribute, and ``$family`` is the name of the
15 family (the global ``name`` property).
17 The upper case is used to denote literal values, e.g. ``$family-CMD``
19 ``CMD``.
22 and with dashes (``-``) replaced by underscores (``_``).
24 If the constructed name is a C keyword, an extra underscore is
25 appended (``do`` -> ``do_``).
[all …]
/linux-6.12.1/drivers/target/iscsi/cxgbit/
Dcxgbit_ddp.c1 // SPDX-License-Identifier: GPL-2.0-only
19 memcpy(ppod, &ttinfo->hdr, sizeof(struct cxgbi_pagepod_hdr)); in cxgbit_set_one_ppod()
28 ppod->addr[i] = cpu_to_be64(addr + offset); in cxgbit_set_one_ppod()
30 if (offset == (len + sg->offset)) { in cxgbit_set_one_ppod()
39 ppod->addr[i] = 0ULL; in cxgbit_set_one_ppod()
60 ppod->addr[i] = sg ? cpu_to_be64(addr + offset) : 0ULL; in cxgbit_set_one_ppod()
69 unsigned int pm_addr = (idx << PPOD_SIZE_SHIFT) + ppm->llimit; in cxgbit_ppod_init_idata()
81 req->wr.wr_hi = htonl(FW_WR_OP_V(FW_ULPTX_WR) | in cxgbit_ppod_init_idata()
83 req->cmd = htonl(ULPTX_CMD_V(ULP_TX_MEM_WRITE) | in cxgbit_ppod_init_idata()
86 req->dlen = htonl(ULP_MEMIO_DATA_LEN_V(dlen >> 5)); in cxgbit_ppod_init_idata()
[all …]
/linux-6.12.1/tools/perf/scripts/python/
Dparallel-perf.py2 # SPDX-License-Identifier: GPL-2.0
5 # options --cpu and --time so that each job processes a different chunk
20 glb_prog_name = "parallel-perf.py"
41 def __init__(self, cmd, pipe_to, output_dir="."): argument
44 self.cmd = cmd
47 self.cmdout_name = f"{output_dir}/cmd.txt"
52 sh_cmd = [ shlex.quote(x) for x in self.cmd ]
53 return " ".join(self.cmd)
74 self.popen = subprocess.Popen(self.cmd, stdout=subprocess.PIPE, stderr=stderr)
78 self.popen = subprocess.Popen(self.cmd, stdout=stdout, stderr=stderr)
[all …]
/linux-6.12.1/drivers/pci/
Dproc.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (c) 1997--1999 Martin Mares <mj@ucw.cz>
25 return fixed_size_llseek(file, off, whence, dev->cfg_size); in proc_bus_pci_lseek()
33 unsigned int cnt, size; in proc_bus_pci_read() local
42 size = dev->cfg_size; in proc_bus_pci_read()
43 else if (dev->hdr_type == PCI_HEADER_TYPE_CARDBUS) in proc_bus_pci_read()
53 nbytes = size - pos; in proc_bus_pci_read()
54 cnt = nbytes; in proc_bus_pci_read()
56 if (!access_ok(buf, cnt)) in proc_bus_pci_read()
57 return -EINVAL; in proc_bus_pci_read()
[all …]
/linux-6.12.1/net/netlink/
Dgenetlink.c1 // SPDX-License-Identifier: GPL-2.0
59 if (!family->parallel_ops) in genl_op_lock()
65 if (!family->parallel_ops) in genl_op_unlock()
77 * Bit 1 is marked as already used since the drop-monitor code
82 * and the code no longer marks pre-reserved IDs as used.
95 /* We need the last attribute with non-zero ID therefore a 2-entry array */
109 BUILD_BUG_ON(ARRAY_SIZE(genl_policy_reject_all) - 1 != 1); in genl_op_fill_in_reject_policy()
111 if (op->policy || op->cmd < family->resv_start_op) in genl_op_fill_in_reject_policy()
114 op->policy = genl_policy_reject_all; in genl_op_fill_in_reject_policy()
115 op->maxattr = 1; in genl_op_fill_in_reject_policy()
[all …]
/linux-6.12.1/drivers/net/ethernet/cisco/enic/
Denic_ethtool.c1 // SPDX-License-Identifier: GPL-2.0-only
16 char name[ETH_GSTRING_LEN]; member
21 .name = #stat, \
26 .name = #stat, \
31 .name = #stat, \
36 .name = "rq[%d]_"#stat, \
41 .name = "wq[%d]_"#stat, \
123 for (i = 0; i < enic->rq_count; i++) { in enic_intr_coal_set_rx()
125 vnic_intr_coalescing_timer_set(&enic->intr[intr], timer); in enic_intr_coal_set_rx()
133 struct ethtool_link_settings *base = &ecmd->base; in enic_get_ksettings()
[all …]
/linux-6.12.1/drivers/iio/pressure/
Dmprls0025pa_i2c.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * MPRLS0025PA - Honeywell MicroPressure pressure sensor series driver
5 * Copyright (c) Andreas Klinger <ak@it-klinger.de>
8-edam.honeywell.com/content/dam/honeywell-edam/sps/siot/en-us/products/sensors/pressure-sensors/bo…
25 static int mpr_i2c_read(struct mpr_data *data, const u8 unused, const u8 cnt) in mpr_i2c_read() argument
28 struct i2c_client *client = to_i2c_client(data->dev); in mpr_i2c_read()
30 if (cnt > MPR_MEASUREMENT_RD_SIZE) in mpr_i2c_read()
31 return -EOVERFLOW; in mpr_i2c_read()
33 memset(data->buffer, 0, MPR_MEASUREMENT_RD_SIZE); in mpr_i2c_read()
34 ret = i2c_master_recv(client, data->buffer, cnt); in mpr_i2c_read()
[all …]
/linux-6.12.1/drivers/soc/qcom/
Dcmd-db.c1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2016-2018, 2020, The Linux Foundation. All rights reserved.
18 #include <soc/qcom/cmd-db.h>
50 * @cnt: number of entries for HW type
58 __le16 cnt; member
66 * @version: The cmd db version
105 const u8 *magic = header->magic; in cmd_db_magic_matches()
114 u16 offset = le16_to_cpu(hdr->header_offset); in rsc_to_entry_header()
116 return cmd_db_header->data + offset; in rsc_to_entry_header()
122 u16 offset = le16_to_cpu(hdr->data_offset); in rsc_offset()
[all …]
/linux-6.12.1/drivers/memstick/host/
Djmb38x_ms.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * jmb38x_ms.c - JMicron jmb38x MemoryStick card reader
11 #include <linux/dma-mapping.h>
159 while (host->io_pos && length) { in jmb38x_ms_read_data()
160 buf[off++] = host->io_word[0] & 0xff; in jmb38x_ms_read_data()
161 host->io_word[0] >>= 8; in jmb38x_ms_read_data()
162 length--; in jmb38x_ms_read_data()
163 host->io_pos--; in jmb38x_ms_read_data()
169 while (!(STATUS_FIFO_EMPTY & readl(host->addr + STATUS))) { in jmb38x_ms_read_data()
172 *(unsigned int *)(buf + off) = __raw_readl(host->addr + DATA); in jmb38x_ms_read_data()
[all …]
/linux-6.12.1/drivers/acpi/
Dacpi_adxl.c1 // SPDX-License-Identifier: GPL-2.0
39 static union acpi_object *adxl_dsm(int cmd, union acpi_object argv[]) in adxl_dsm() argument
44 cmd, argv, ACPI_TYPE_PACKAGE); in adxl_dsm()
46 pr_info("DSM call failed for cmd=%d\n", cmd); in adxl_dsm()
50 if (obj->package.count != 2) { in adxl_dsm()
51 pr_info("Bad pkg count %d\n", obj->package.count); in adxl_dsm()
55 o = obj->package.elements; in adxl_dsm()
56 if (o->type != ACPI_TYPE_INTEGER) { in adxl_dsm()
57 pr_info("Bad 1st element type %d\n", o->type); in adxl_dsm()
60 if (o->integer.value) { in adxl_dsm()
[all …]
/linux-6.12.1/drivers/net/wireless/rsi/
Drsi_91x_hal.c43 struct rsi_hw *adapter = common->priv; in rsi_send_pkt_to_bus()
46 if (common->coex_mode > 1) in rsi_send_pkt_to_bus()
47 mutex_lock(&common->tx_bus_mutex); in rsi_send_pkt_to_bus()
49 status = adapter->host_intf_ops->write_pkt(common->priv, in rsi_send_pkt_to_bus()
50 skb->data, skb->len); in rsi_send_pkt_to_bus()
52 if (common->coex_mode > 1) in rsi_send_pkt_to_bus()
53 mutex_unlock(&common->tx_bus_mutex); in rsi_send_pkt_to_bus()
60 struct rsi_hw *adapter = common->priv; in rsi_prepare_mgmt_desc()
63 struct ieee80211_conf *conf = &adapter->hw->conf; in rsi_prepare_mgmt_desc()
71 if (skb->len > MAX_MGMT_PKT_SIZE) { in rsi_prepare_mgmt_desc()
[all …]
/linux-6.12.1/drivers/net/ethernet/myricom/myri10ge/
Dmyri10ge.c2 * myri10ge.c: Myricom Myri-10G Ethernet driver.
4 * Copyright (C) 2005 - 2011 Myricom, Inc.
15 * 3. Neither the name of Myricom, Inc. nor the names of its contributors
34 * http://www.myri.com/scs/download-Myri10GE.html
49 #include <linux/dma-mapping.h>
78 #define MYRI10GE_VERSION_STR "1.5.3-1.534"
132 int cnt; member
135 int mask; /* number of rx slots -1 */
146 int mask; /* number of transmit slots -1 */
160 int cnt; member
[all …]

12345678910>>...16