/linux-6.14.4/Documentation/netlink/specs/ |
D | ethtool.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 name: ethtool 5 protocol: genetlink-legacy 8 uapi-header: linux/ethtool_netlink_generated.h 11 - 12 name: udp-tunnel-type 13 enum-name: 14 type: enum 15 entries: [ vxlan, geneve, vxlan-gpe ] 16 enum-cnt-name: __ethtool-udp-tunnel-type-cnt [all …]
|
/linux-6.14.4/Documentation/userspace-api/netlink/ |
D | c-code-gen.rst | 1 .. 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`` 21 The names of ``#defines`` and enum values are always converted to upper case, 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.14.4/scripts/kconfig/ |
D | conf.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 23 enum input_mode { 41 static enum input_mode input_mode = oldaskconfig; 72 p = str + l - 1; in strip() 74 *p-- = 0; in strip() 118 * randomize_choice_values - randomize choice block 126 int cnt = 0; in randomize_choice_values() local 134 struct symbol *sym = menu->sym; in randomize_choice_values() 137 cnt++; in randomize_choice_values() [all …]
|
/linux-6.14.4/drivers/gpu/drm/msm/adreno/ |
D | adreno_gpu.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 23 enum { 33 * @enum adreno_family: identify generation and possibly sub-generation 35 * In some cases there are distinct sub-generations within a major revision 37 * necessary sub-generation. 39 enum adreno_family { 91 * @chipids: Table of matching chip-ids 96 enum adreno_family family; 125 #define DECLARE_ADRENO_GPULIST(name) \ argument 126 const struct adreno_gpulist name ## _gpulist = { \ [all …]
|
/linux-6.14.4/drivers/net/dsa/realtek/ |
D | rtl8365mb.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Realtek SMI subdriver for the Realtek RTL8365MB-VC ethernet switch. 4 * Copyright (C) 2021 Alvin Šipraga <alsi@bang-olufsen.dk> 5 * Copyright (C) 2021 Michael Rasmussen <mir@bang-olufsen.dk> 7 * The RTL8365MB-VC is a 4+1 port 10/100/1000M switch controller. It includes 4 9 * can be connected to the CPU - or another PHY - via either MII, RMII, or 15 * .-----------------------------------. 17 * UTP <---------------> Giga PHY <-> PCS <-> P0 GMAC | 18 * UTP <---------------> Giga PHY <-> PCS <-> P1 GMAC | 19 * UTP <---------------> Giga PHY <-> PCS <-> P2 GMAC | [all …]
|
/linux-6.14.4/drivers/gpu/drm/msm/disp/mdp5/ |
D | mdp5_smp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 34 struct msm_drm_private *priv = smp->dev->dev_private; in get_kms() 36 return to_mdp5_kms(to_mdp_kms(priv->kms)); in get_kms() 39 static inline u32 pipe2client(enum mdp5_pipe pipe, int plane) in pipe2client() 48 * For ViG pipes, fetch Y/Cr/Cb-components clients are always in pipe2client() 52 * if mdp5_cfg->smp.clients[SSPP_VIG0] = N, in pipe2client() 58 return mdp5_cfg->smp.clients[pipe] + plane; in pipe2client() 66 void *cs = state->client_state[cid]; in smp_request_block() 67 int i, avail, cnt = smp->blk_cnt; in smp_request_block() local 70 /* we shouldn't be requesting blocks for an in-use client: */ in smp_request_block() [all …]
|
/linux-6.14.4/drivers/scsi/elx/efct/ |
D | efct_lio.c | 1 // 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.14.4/tools/testing/selftests/bpf/ |
D | testing_helpers.c | 1 // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) 17 int i, set_len = 0, new_len, num, start = 0, end = -1; in parse_num_list() 25 return -errno; in parse_num_list() 32 if (!parsing_end && *next == '-') { in parse_num_list() 45 return -EINVAL; in parse_num_list() 49 return -EINVAL; in parse_num_list() 56 return -ENOMEM; in parse_num_list() 68 return -EINVAL; in parse_num_list() 84 for (i = 0; i < set->cnt; i++) { in do_insert_test() 85 test = &set->tests[i]; in do_insert_test() [all …]
|
D | veristat.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 38 enum stat_id { 56 NUM_STATS_CNT = FILE_NAME - VERDICT, 60 * - A side value; 61 * - B side value; 62 * - absolute diff value; 63 * - relative (percentage) diff value. 68 * - `_a` for A side value; 69 * - `_b` for B side value; 70 * - `_diff` for absolute diff value; [all …]
|
/linux-6.14.4/drivers/media/usb/pvrusb2/ |
D | pvrusb2-sysfs.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include "pvrusb2-sysfs.h" 10 #include "pvrusb2-hdw.h" 11 #include "pvrusb2-debug.h" 13 #include "pvrusb2-debugifc.h" 66 char name[80]; member 74 const char *name; in show_name() local 76 name = pvr2_ctrl_get_desc(cip->cptr); in show_name() 78 cip->chptr, cip->ctl_id, name); in show_name() 79 if (!name) return -EINVAL; in show_name() [all …]
|
D | pvrusb2-ctrl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 #include "pvrusb2-ctrl.h" 8 #include "pvrusb2-hdw-internal.h" 16 if (cptr->info->check_value) { in pvr2_ctrl_range_check() 17 if (!cptr->info->check_value(cptr,val)) return -ERANGE; in pvr2_ctrl_range_check() 18 } else if (cptr->info->type == pvr2_ctl_enum) { in pvr2_ctrl_range_check() 19 if (val < 0) return -ERANGE; in pvr2_ctrl_range_check() 20 if (val >= cptr->info->def.type_enum.count) return -ERANGE; in pvr2_ctrl_range_check() 23 lim = cptr->info->def.type_int.min_value; in pvr2_ctrl_range_check() 24 if (cptr->info->get_min_value) { in pvr2_ctrl_range_check() [all …]
|
/linux-6.14.4/drivers/pci/ |
D | proc.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 1997--1999 Martin Mares <[email protected]> 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.14.4/drivers/iio/adc/ |
D | pac1934.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * IIO driver for PAC1934 Multi-Channel DC Power/Energy Monitor 5 * Copyright (C) 2017-2024 Microchip Technology Inc. and its subsidiaries 12 …oads/aemDocuments/documents/OTH/ProductDocuments/DataSheets/PAC1931-Family-Data-Sheet-DS20005850E.… 46 * (2^31 - 1) * 10^8 + 99999999 51 * -(2^31) * 10^8 - 99999999 53 #define PAC_193X_MIN_POWER_ACC -214748364899999999LL 118 * relative offsets when using multi-byte reads/writes even though these 147 /* Scale constant = (10^3 * 3.2 * 10^9 / 2^28) for mili Watt-second */ 153 #define PAC1934_DEV_ATTR(name) (&iio_dev_attr_##name.dev_attr.attr) argument [all …]
|
/linux-6.14.4/drivers/block/aoe/ |
D | aoechr.c | 17 enum { 30 char name[32]; member 33 enum { EMFL_VALID = 1 }; 67 .name = "aoe", 84 return -EINVAL; in interfaces() 99 return -EINVAL; in revalidate() 100 buf[sizeof buf - 1] = '\0'; in revalidate() 102 return -EFAULT; in revalidate() 107 return -EINVAL; in revalidate() 111 return -EINVAL; in revalidate() [all …]
|
/linux-6.14.4/fs/pstore/ |
D | zone.c | 1 // SPDX-License-Identifier: GPL-2.0 26 * struct psz_buffer - header of zone to flush to storage 28 * @sig: signature to indicate header (PSZ_SIG xor PSZONE-type value) 42 * struct psz_kmsg_header - kmsg dump-specific header to flush to storage 51 * This is a sub-header for a kmsg dump, trailing after &psz_buffer. 59 enum kmsg_dump_reason reason; 64 * struct pstore_zone - single stored buffer 67 * @type: front-end type for this zone 68 * @name: front-end name for this zone 71 * @buffer_size: bytes in @buffer->data [all …]
|
/linux-6.14.4/Documentation/netlink/ |
D | genetlink-c.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 --- 4 $id: http://kernel.org/schemas/netlink/genetlink-c.yaml# 5 $schema: https://json-schema.org/draft-07/schema 12 len-or-define: 14 pattern: ^[0-9A-Za-z_-]+( - 1)?$ 16 len-or-limit: 17 # literal int or limit based on fixed-width type e.g. u8-min, u16-max, etc. 19 pattern: ^[su](8|16|32|64)-(min|max)$ 26 required: [ name, doc, attribute-sets, operations ] [all …]
|
D | genetlink-legacy.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 --- 4 $id: http://kernel.org/schemas/netlink/genetlink-legacy.yaml# 5 $schema: https://json-schema.org/draft-07/schema 12 len-or-define: 14 pattern: ^[0-9A-Za-z_-]+( - 1)?$ 16 len-or-limit: 17 # literal int or limit based on fixed-width type e.g. u8-min, u16-max, etc. 19 pattern: ^[su](8|16|32|64)-(min|max)$ 26 required: [ name, doc, attribute-sets, operations ] [all …]
|
/linux-6.14.4/drivers/net/ethernet/microchip/vcap/ |
D | vcap_api_debugfs_kunit.c | 1 // SPDX-License-Identifier: BSD-3-Clause 35 static enum vcap_keyfield_set test_val_keyset(struct net_device *ndev, in test_val_keyset() 43 if (kslist->cnt > 0) { in test_val_keyset() 44 switch (admin->vtype) { in test_val_keyset() 46 for (idx = 0; idx < kslist->cnt; idx++) { in test_val_keyset() 47 if (kslist->keysets[idx] == VCAP_KFS_ETAG) in test_val_keyset() 48 return kslist->keysets[idx]; in test_val_keyset() 49 if (kslist->keysets[idx] == in test_val_keyset() 51 return kslist->keysets[idx]; in test_val_keyset() 52 if (kslist->keysets[idx] == in test_val_keyset() [all …]
|
/linux-6.14.4/drivers/net/ethernet/sfc/ |
D | tc_counters.c | 1 // SPDX-License-Identifier: GPL-2.0-only 17 /* Counter-management hashtables */ 33 struct efx_tc_counter *cnt = ptr; in efx_tc_counter_free() local 35 WARN_ON(!list_empty(&cnt->users)); in efx_tc_counter_free() 39 * threads could still be obtaining new pointers to *cnt if they can in efx_tc_counter_free() 42 flush_work(&cnt->work); in efx_tc_counter_free() 43 EFX_WARN_ON_PARANOID(spin_is_locked(&cnt->lock)); in efx_tc_counter_free() 44 kfree(cnt); in efx_tc_counter_free() 51 WARN_ON(refcount_read(&ctr->ref)); in efx_tc_counter_id_free() 59 rc = rhashtable_init(&efx->tc->counter_id_ht, &efx_tc_counter_id_ht_params); in efx_tc_init_counters() [all …]
|
/linux-6.14.4/kernel/bpf/ |
D | btf.c | 1 // SPDX-License-Identifier: GPL-2.0 74 * NOTE that we cannot assume any reference-order. 80 * object describing "void *". This type-reference is done 87 * - Each line started with "[?]" is a btf_type object 88 * - [?] is the type_id of the btf_type object. 89 * - CONST/PTR is the BTF_KIND_XXX 90 * - "(anon)" is the name of the type. It just 91 * happens that CONST and PTR has no name. 92 * - type_id=XXX is the 'u32 type' in btf_type 106 * have a name. [all …]
|
/linux-6.14.4/drivers/fpga/ |
D | intel-m10-bmc-sec-update.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2019-2022 Intel Corporation. All rights reserved. 11 #include <linux/mfd/intel-m10-bmc.h> 43 struct intel_m10bmc *m10bmc = sec->m10bmc; in m10bmc_sec_write() 44 unsigned int stride = regmap_get_reg_stride(m10bmc->regmap); in m10bmc_sec_write() 47 u32 leftover_size = size - leftover_offset; in m10bmc_sec_write() 51 if (sec->m10bmc->flash_bulk_ops) in m10bmc_sec_write() 52 return sec->m10bmc->flash_bulk_ops->write(m10bmc, buf, offset, size); in m10bmc_sec_write() 55 return -EINVAL; in m10bmc_sec_write() 57 ret = regmap_bulk_write(m10bmc->regmap, M10BMC_STAGING_BASE + offset, in m10bmc_sec_write() [all …]
|
/linux-6.14.4/kernel/trace/ |
D | bpf_trace.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (c) 2011-2015 PLUMgrid, http://plumgrid.com 18 #include <linux/error-injection.h> 56 static struct bpf_raw_event_map *bpf_get_raw_tracepoint_module(const char *name) in bpf_get_raw_tracepoint_module() argument 64 for (i = 0; i < btm->module->num_bpf_raw_events; ++i) { in bpf_get_raw_tracepoint_module() 65 btp = &btm->module->bpf_raw_events[i]; in bpf_get_raw_tracepoint_module() 66 if (!strcmp(btp->tp->name, name)) { in bpf_get_raw_tracepoint_module() 67 if (try_module_get(btm->module)) in bpf_get_raw_tracepoint_module() 78 static struct bpf_raw_event_map *bpf_get_raw_tracepoint_module(const char *name) in bpf_get_raw_tracepoint_module() argument 97 * trace_call_bpf - invoke BPF program [all …]
|
/linux-6.14.4/mm/ |
D | memblock.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 46 * * ``memory`` - describes the physical memory available to the 50 * * ``reserved`` - describes the regions that were allocated 51 * * ``physmem`` - describes the actual physical memory available during 81 * * memblock_phys_alloc*() - these functions return the **physical** 83 * * memblock_alloc*() - these functions return the **virtual** address 118 .memory.name = "memory", 122 .reserved.name = "reserved", 132 .name = "physmem", 145 for (i = 0, rgn = &memblock_type->regions[0]; \ [all …]
|
/linux-6.14.4/drivers/edac/ |
D | dmc520_edac.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * EDAC driver for DMC-520 memory controller. 25 /* DMC-520 registers */ 43 /* DMC-520 types, masks and bitfields */ 78 * The max-length message would be: "rank:7 bank:15 row:262143 col:1023". 79 * Max length is 34. Using a 40-size buffer is enough. 82 #define EDAC_MOD_NAME "dmc520-edac" 86 enum dmc520_mem_width { 92 enum dmc520_mem_type { 98 enum dmc520_dev_width { [all …]
|
/linux-6.14.4/drivers/i2c/busses/ |
D | i2c-brcmstb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 86 enum bsc_xfer_cmd { 100 enum bus_speeds { 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() [all …]
|