Home
last modified time | relevance | path

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

123456789

/linux-6.14.4/Documentation/netlink/specs/
Dethtool.yaml1 # 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:
15 entries: [ vxlan, geneve, vxlan-gpe ]
16 enum-cnt-name: __ethtool-udp-tunnel-type-cnt
17 render-max: true
[all …]
Dteam.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 name: team
5 protocol: genetlink-legacy
10 c-family-name: team-genl-name
11 c-version-name: team-genl-version
12 kernel-policy: global
13 uapi-header: linux/if_team.h
16 -
17 name: string-max-len
20 -
[all …]
Dmptcp_pm.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 name: mptcp_pm
4 protocol: genetlink-legacy
7 c-family-name: mptcp-pm-name
8 c-version-name: mptcp-pm-ver
9 max-by-define: true
10 kernel-policy: per-op
11 cmd-cnt-name: --mptcp-pm-cmd-after-last
14 -
16 name: event-type
[all …]
/linux-6.14.4/drivers/media/usb/pvrusb2/
Dpvrusb2-sysfs.c1 // 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
70 struct device_attribute *attr, in show_name() argument
74 const char *name; in show_name() local
75 cip = container_of(attr, struct pvr2_sysfs_ctl_item, attr_name); in show_name()
76 name = pvr2_ctrl_get_desc(cip->cptr); in show_name()
[all …]
/linux-6.14.4/drivers/ptp/
Dptp_sysfs.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * PTP 1588 clock support - sysfs interface.
14 struct device_attribute *attr, char *page) in clock_name_show() argument
17 return sysfs_emit(page, "%s\n", ptp->info->name); in clock_name_show()
22 struct device_attribute *attr, in max_phase_adjustment_show() argument
27 return sysfs_emit(page, "%d\n", ptp->info->getmaxphase(ptp->info)); in max_phase_adjustment_show()
31 #define PTP_SHOW_INT(name, var) \ argument
33 struct device_attribute *attr, char *page) \
36 return sysfs_emit(page, "%d\n", ptp->info->var); \
38 static DEVICE_ATTR(name, 0444, var##_show, NULL);
[all …]
/linux-6.14.4/drivers/memstick/core/
Dmspro_block.c1 // SPDX-License-Identifier: GPL-2.0-only
11 #include <linux/blk-mq.h>
27 #define MSPRO_BLOCK_MAX_PAGES ((2 << 16) - 1)
49 char name[32]; member
115 char name[8]; member
117 unsigned char attr; member
182 struct mspro_block_data *msb = disk->private_data; in mspro_block_bd_free_disk()
195 struct mspro_block_data *msb = bdev->bd_disk->private_data; in mspro_block_bd_getgeo()
197 geo->heads = msb->heads; in mspro_block_bd_getgeo()
198 geo->sectors = msb->sectors_per_track; in mspro_block_bd_getgeo()
[all …]
/linux-6.14.4/drivers/isdn/mISDN/
Dcore.c1 // SPDX-License-Identifier: GPL-2.0-only
33 struct device_attribute *attr, char *buf) in id_show() argument
38 return -ENODEV; in id_show()
39 return sprintf(buf, "%d\n", mdev->id); in id_show()
44 struct device_attribute *attr, char *buf) in nrbchan_show() argument
49 return -ENODEV; in nrbchan_show()
50 return sprintf(buf, "%d\n", mdev->nrbchan); in nrbchan_show()
55 struct device_attribute *attr, char *buf) in d_protocols_show() argument
60 return -ENODEV; in d_protocols_show()
61 return sprintf(buf, "%d\n", mdev->Dprotocols); in d_protocols_show()
[all …]
/linux-6.14.4/tools/testing/selftests/bpf/benchs/
Dbench_ringbufs.c1 // SPDX-License-Identifier: GPL-2.0
19 int ringbuf_sz; /* per-ringbuf, in bytes */
21 int perfbuf_sz; /* per-CPU size, in pages */
41 { "rb-b2b", ARG_RB_BACK2BACK, NULL, 0, "Back-to-back mode"},
42 …{ "rb-use-output", ARG_RB_USE_OUTPUT, NULL, 0, "Use bpf_ringbuf_output() instead of bpf_ringbuf_re…
43 { "rb-batch-cnt", ARG_RB_BATCH_CNT, "CNT", 0, "Set BPF-side record batch count"},
44 { "rb-sampled", ARG_RB_SAMPLED, NULL, 0, "Notification sampling"},
45 { "rb-sample-rate", ARG_RB_SAMPLE_RATE, "RATE", 0, "Notification sample rate"},
87 /* RINGBUF-LIBBPF benchmark */
99 fprintf(stderr, "rb-libbpf benchmark needs one consumer!\n"); in bufs_validate()
[all …]
/linux-6.14.4/kernel/irq/
Dirqdesc.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 1992, 1998-2006 Linus Torvalds, Ingo Molnar
4 * Copyright (C) 2005-2006, Thomas Gleixner, Russell King
7 * information is available in Documentation/core-api/genericirq.rst
23 * lockdep: we want to handle all irq_desc locks as a single lock-class:
57 if (!zalloc_cpumask_var_node(&desc->irq_common_data.affinity, in alloc_masks()
59 return -ENOMEM; in alloc_masks()
62 if (!zalloc_cpumask_var_node(&desc->irq_common_data.effective_affinity, in alloc_masks()
64 free_cpumask_var(desc->irq_common_data.affinity); in alloc_masks()
65 return -ENOMEM; in alloc_masks()
[all …]
/linux-6.14.4/drivers/infiniband/ulp/rtrs/
Drtrs-srv-sysfs.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (c) 2014 - 2018 ProfitBricks GmbH. All rights reserved.
6 * Copyright (c) 2018 - 2019 1&1 IONOS Cloud GmbH. All rights reserved.
7 * Copyright (c) 2019 - 2020 1&1 IONOS SE. All rights reserved.
12 #include "rtrs-pri.h"
13 #include "rtrs-srv.h"
14 #include "rtrs-log.h"
30 struct kobj_attribute *attr, char *buf) in rtrs_srv_disconnect_show() argument
32 return sysfs_emit(buf, "Usage: echo 1 > %s\n", attr->attr.name); in rtrs_srv_disconnect_show()
36 struct kobj_attribute *attr, in rtrs_srv_disconnect_store() argument
[all …]
/linux-6.14.4/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
13 objects by the object type. For example ``$attr`` is the value
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``
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/drivers/base/
Dcpu.c1 // SPDX-License-Identifier: GPL-2.0
42 int cpuid = cpu->dev.id; in change_cpu_under_node()
45 cpu->node_id = to_nid; in change_cpu_under_node()
51 int cpuid = dev->id; in cpu_subsys_online()
58 return -ENODEV; in cpu_subsys_online()
64 * If -EBUSY is returned, it is likely that hotplug is temporarily in cpu_subsys_online()
70 if (ret == -EBUSY) { in cpu_subsys_online()
96 int logical_cpu = cpu->dev.id; in unregister_cpu()
101 device_unregister(&cpu->dev); in unregister_cpu()
108 struct device_attribute *attr, in cpu_probe_store() argument
[all …]
/linux-6.14.4/drivers/hwmon/
Dnct7363.c1 // SPDX-License-Identifier: GPL-2.0-or-later
10 #include <linux/hwmon-sysfs.h>
63 static int nct7363_read_fan(struct device *dev, u32 attr, int channel, in nct7363_read_fan() argument
70 u16 cnt; in nct7363_read_fan() local
72 switch (attr) { in nct7363_read_fan()
75 * High-byte register should be read first to latch in nct7363_read_fan()
76 * synchronous low-byte value in nct7363_read_fan()
78 ret = regmap_bulk_read(data->regmap, in nct7363_read_fan()
84 cnt = (regval[0] << 5) | (regval[1] & NCT7363_FANINX_LVAL_MASK); in nct7363_read_fan()
85 *val = fan_from_reg(cnt); in nct7363_read_fan()
[all …]
Dnpcm750-pwm-fan.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2014-2018 Nuvoton Technology corporation.
7 #include <linux/hwmon-sysfs.h>
147 * Get Fan Tach Timeout (base on clock 214843.75Hz, 1 cnt = 4.654us)
150 * 320RPM/pulse 2, ...-- 10.6Hz)
154 #define NPCM7XX_FAN_TCPA (NPCM7XX_FAN_TCNT - NPCM7XX_FAN_TIMEOUT)
155 #define NPCM7XX_FAN_TCPB (NPCM7XX_FAN_TCNT - NPCM7XX_FAN_TIMEOUT)
186 char name[THERMAL_NAME_LENGTH]; member
224 mutex_lock(&data->pwm_lock[module]); in npcm7xx_pwm_config_set()
227 iowrite32(val, NPCM7XX_PWM_REG_CMRx(data->pwm_base, module, pwm_ch)); in npcm7xx_pwm_config_set()
[all …]
Dg760a.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * g760a - Driver for the Global Mixed-mode Technology Inc. G760A
9 * http://www.gmt.com.tw/product/datasheet/EDS-760A.pdf
18 #include <linux/hwmon-sysfs.h>
29 #define G760A_REG_FAN_STA_RPM_OFF 0x1 /* +/-20% off */
48 u8 act_cnt; /* formula: cnt = (CLK * 30)/(rpm * P) */
58 #define PWM_FROM_CNT(cnt) (0xff-(cnt)) argument
59 #define PWM_TO_CNT(pwm) (0xff-(pwm))
85 struct i2c_client *client = data->client; in g760a_update_client()
87 mutex_lock(&data->update_lock); in g760a_update_client()
[all …]
/linux-6.14.4/drivers/fpga/
Dintel-m10-bmc-sec-update.c1 // 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/Documentation/netlink/
Dgenetlink-c.yaml1 # 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 …]
Dgenetlink-legacy.yaml1 # 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/tools/perf/arch/x86/tests/
Dhybrid.c1 // SPDX-License-Identifier: GPL-2.0
2 #include "arch-tests.h"
12 return (evsel->core.attr.config & PERF_HW_EVENT_MASK) == expected_config; in test_config()
17 return (evsel->attr.config & PERF_HW_EVENT_MASK) == expected_config; in test_perf_config()
22 return (evsel->core.attr.config >> PERF_PMU_TYPE_SHIFT) == expected_config; in test_hybrid_type()
29 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__hybrid_hw_event_with_pmu()
30 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__hybrid_hw_event_with_pmu()
41 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries); in test__hybrid_hw_group_event()
42 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__hybrid_hw_group_event()
48 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__hybrid_hw_group_event()
[all …]
/linux-6.14.4/kernel/trace/
Dbpf_trace.c1 // 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/arch/arm/mm/
Dcache-l2x0-pmu.c1 // SPDX-License-Identifier: GPL-2.0-only
16 #include <asm/hardware/cache-l2x0.h>
34 * We ensure that idx 0 -> Counter0, and idx1 -> Counter1.
48 return -1; in l2x0_pmu_find_idx()
54 int i, cnt = 0; in l2x0_pmu_num_active_counters() local
58 cnt++; in l2x0_pmu_num_active_counters()
61 return cnt; in l2x0_pmu_num_active_counters()
66 writel_relaxed(val, l2x0_base + L2X0_EVENT_CNT0_CFG - 4 * idx); in l2x0_pmu_counter_config_write()
71 return readl_relaxed(l2x0_base + L2X0_EVENT_CNT0_VAL - 4 * idx); in l2x0_pmu_counter_read()
76 writel_relaxed(val, l2x0_base + L2X0_EVENT_CNT0_VAL - 4 * idx); in l2x0_pmu_counter_write()
[all …]
/linux-6.14.4/drivers/scsi/lpfc/
Dlpfc_attr.c4 * Copyright (C) 2017-2024 Broadcom. All Rights Reserved. The term *
6 * Copyright (C) 2004-2016 Emulex. All rights reserved. *
9 * Portions Copyright (C) 2004-2005 Christoph Hellwig *
17 * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT, ARE *
72 " trunk - link was \"low\" speed",
74 " existing trunk - link was \"middle\" speed",
76 " trunk - link was \"high\" speed",
77 "Attached to non-trunking port - F_Port",
78 "Attached to non-trunking port - N_Port",
80 "non-FLOGI frame received",
[all …]
/linux-6.14.4/drivers/iio/adc/
Dpac1934.c1 // 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/arch/x86/events/amd/
Diommu.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * Perf: amd_iommu - AMD IOMMU Performance Counter PMU implementation
17 #include <linux/amd-iommu.h>
23 #define GET_CSOURCE(x) ((x)->conf & 0xFFULL)
24 #define GET_DEVID(x) (((x)->conf >> 8) & 0xFFFFULL)
25 #define GET_DOMID(x) (((x)->conf >> 24) & 0xFFFFULL)
26 #define GET_PASID(x) (((x)->conf >> 40) & 0xFFFFFULL)
29 #define GET_DEVID_MASK(x) ((x)->conf1 & 0xFFFFULL)
30 #define GET_DOMID_MASK(x) (((x)->conf1 >> 16) & 0xFFFFULL)
31 #define GET_PASID_MASK(x) (((x)->conf1 >> 32) & 0xFFFFFULL)
[all …]
/linux-6.14.4/drivers/net/phy/
Dbcm54140.c1 // SPDX-License-Identifier: GPL-2.0+
13 #include "bcm-phy-lib.h"
15 /* RDB per-port registers
60 #define BCM54140_RDB_MON_CTRL_SEL_RR 3 /* meassure all round-robin */
61 #define BCM54140_RDB_MON_CTRL_PWR_DOWN BIT(0) /* power-down monitor */
80 * T = 413.35 - (0.49055 * bits[9:0])
82 #define BCM54140_HWMON_TO_TEMP(v) (413350L - (v) * 491)
83 #define BCM54140_HWMON_FROM_TEMP(v) DIV_ROUND_CLOSEST_ULL(413350L - (v), 491)
148 u32 attr, int channel) in bcm54140_hwmon_is_visible() argument
152 switch (attr) { in bcm54140_hwmon_is_visible()
[all …]

123456789