Home
last modified time | relevance | path

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

12345678910>>...34

/linux-6.12.1/Documentation/netlink/specs/
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 …]
Dnlctrl.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 name: nlctrl
4 protocol: genetlink-legacy
5 uapi-header: linux/genetlink.h
8 genetlink meta-family that exposes information about all genetlink
12 -
13 name: op-flags
15 enum-name:
17 - admin-perm
18 - cmd-cap-do
[all …]
Ddpll.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 name: dpll
8 -
10 name: mode
16 -
17 name: manual
20 -
21 name: automatic
23 render-max: true
24 -
[all …]
/linux-6.12.1/drivers/firmware/efi/
Desrt.c1 // SPDX-License-Identifier: GPL-2.0+
6 * through the sysfs file system. The ESRT provides a read-only catalog of
76 struct attribute attr; member
87 static struct esre_attribute *to_attr(struct attribute *attr) in to_attr() argument
89 return container_of(attr, struct esre_attribute, attr); in to_attr()
96 struct esre_attribute *attr = to_attr(_attr); in esre_attr_show() local
98 return attr->show(entry, buf); in esre_attr_show()
110 efi_guid_to_str(&entry->esre.esre1->fw_class, str); in fw_class_show()
114 return str - buf; in fw_class_show()
119 #define esre_attr_decl(name, size, fmt) \ argument
[all …]
/linux-6.12.1/arch/powerpc/platforms/powernv/
Dopal-powercap.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 #define pr_fmt(fmt) "opal-powercap: " fmt
22 struct kobj_attribute attr; member
30 static ssize_t powercap_show(struct kobject *kobj, struct kobj_attribute *attr, in powercap_show() argument
33 struct powercap_attr *pcap_attr = container_of(attr, in powercap_show()
34 struct powercap_attr, attr); in powercap_show()
49 ret = opal_get_powercap(pcap_attr->handle, token, (u32 *)__pa(&pcap)); in powercap_show()
55 ret = -EIO; in powercap_show()
62 ret = -EIO; in powercap_show()
68 ret = -EIO; in powercap_show()
[all …]
/linux-6.12.1/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.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
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.12.1/drivers/gpu/drm/xe/
Dxe_hw_engine_class_sysfs.c1 // SPDX-License-Identifier: MIT
20 * xe_hw_engine_timeout_in_range - Helper to check if timeout is in range
23 * @max: max value of valid range
25 * This helper helps to validate if timeout is in min-max range of HW engine
30 bool xe_hw_engine_timeout_in_range(u64 timeout, u64 min, u64 max) in xe_hw_engine_timeout_in_range() argument
32 return timeout >= min && timeout <= max; in xe_hw_engine_timeout_in_range()
46 struct kobj_attribute *attr, in job_timeout_max_store() argument
57 if (timeout < eclass->sched_props.job_timeout_min) in job_timeout_max_store()
58 return -EINVAL; in job_timeout_max_store()
63 return -EINVAL; in job_timeout_max_store()
[all …]
/linux-6.12.1/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 …]
Dgenetlink.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 …]
Dnetlink-raw.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 ---
4 $id: http://kernel.org/schemas/netlink/netlink-raw.yaml#
5 $schema: https://json-schema.org/draft-07/schema
12 len-or-define:
14 pattern: ^[0-9A-Za-z_-]+( - 1)?$
21 required: [ name, doc, attribute-sets, operations ]
24 name:
25 description: Name of the netlink family.
31 enum: [ netlink-raw ] # Trim
[all …]
/linux-6.12.1/fs/bcachefs/
Dopts.c1 // SPDX-License-Identifier: GPL-2.0
11 #include "super-io.h"
107 #define PRT_STR_OPT_BOUNDSCHECKED(name, type) \ argument
108 void bch2_prt_##name(struct printbuf *out, type t) \
110 prt_str_opt_boundscheck(out, __bch2_##name##s, ARRAY_SIZE(__bch2_##name##s) - 1, #name, t);\
126 int ret = match_string(bch2_fsck_fix_opts, -1, val); in bch2_opt_fix_errors_parse()
202 return opts->_name; in bch2_opt_get_by_id()
225 #define OPT_BOOL() .type = BCH_OPT_BOOL, .min = 0, .max = 2
227 .min = _min, .max = _max
229 .min = 0, .max = ARRAY_SIZE(_choices) - 1, \
[all …]
/linux-6.12.1/tools/net/ynl/
Dynl-gen-c.py2 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
16 def c_upper(name): argument
17 return name.upper().replace('-', '_')
20 def c_lower(name): argument
21 return name.lower().replace('-', '_')
24 def limit_to_number(name): argument
26 Turn a string limit like u32-max or s64-min into its numerical value
28 if name[0] == 'u' and name.endswith('-min'):
30 width = int(name[1:-4])
31 if name[0] == 's':
[all …]
Dethtool.py2 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
15 Verify and convert command-line arguments to the ynl-compatible request.
18 valid_attrs.remove('header') # not user-provided
26 attr = args[i]
28 print(f'expected value for \'{attr}\'')
31 if attr not in valid_attrs:
32 print(f'invalid attribute \'{attr}\', expected: {valid_attrs}')
38 req[attr] = val
42 Pretty-print a set of fields from the reply. desc specifies the
50 field, name, tp = spec
[all …]
/linux-6.12.1/drivers/gpu/drm/i915/
Di915_hwmon.c1 // SPDX-License-Identifier: MIT
7 #include <linux/hwmon-sysfs.h>
20 * SF_* - scale factors for particular quantities according to hwmon spec.
21 * - voltage - millivolts
22 * - power - microwatts
23 * - curr - milliamperes
24 * - energy - microjoules
25 * - time - milliseconds
59 char name[12]; member
79 struct i915_hwmon *hwmon = ddat->hwmon; in hwm_locked_with_pm_intel_uncore_rmw()
[all …]
/linux-6.12.1/drivers/hwmon/
Demc6w201.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * emc6w201.c - Hardware monitoring driver for the SMSC EMC6W201
13 #include <linux/hwmon-sysfs.h>
39 enum subfeature { input, min, max }; enumerator
42 * Per-device data
59 * Locking: must be called with data->update_lock held
68 dev_err(&client->dev, "%d-bit %s failed at 0x%02x\n", in emc6w201_read16()
77 * Write 16-bit value to LSB and MSB registers
78 * Locking: must be called with data->update_lock held
88 dev_err(&client->dev, "%d-bit %s failed at 0x%02x\n", in emc6w201_write16()
[all …]
Dabituguru.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * abituguru.c Copyright (c) 2005-2006 Hans de Goede <hdegoede@redhat.com>
23 #include <linux/hwmon-sysfs.h>
32 /* max nr of sensors in bank1, a bank1 sensor can be in, temp or nc */
35 * Warning if you increase one of the 2 MAX defines below to 10 or higher you
38 /* max nr of sensors in bank2, currently mb's with max 6 fans are known */
40 /* max nr of pwm outputs, currently mb's with max 5 pwm outputs are known */
44 #define ABIT_UGURU_VOLT_HIGH_ALARM_ENABLE 0x02 /* volt over max */
47 #define ABIT_UGURU_VOLT_HIGH_ALARM_FLAG 0x20 /* volt is over max */
64 * of the time it will reach this status within 30 - 90 ISA reads, and thus we
[all …]
Dmenf21bmc_hwmon.c1 // SPDX-License-Identifier: GPL-2.0-or-later
16 #include <linux/hwmon-sysfs.h>
59 if (time_after(jiffies, drv_data->last_update + HZ) in menf21bmc_hwmon_update()
60 || !drv_data->valid) { in menf21bmc_hwmon_update()
62 val = i2c_smbus_read_word_data(drv_data->i2c_client, in menf21bmc_hwmon_update()
68 drv_data->in_val[i] = val; in menf21bmc_hwmon_update()
70 drv_data->last_update = jiffies; in menf21bmc_hwmon_update()
71 drv_data->valid = true; in menf21bmc_hwmon_update()
82 val = i2c_smbus_read_word_data(drv_data->i2c_client, in menf21bmc_hwmon_get_volt_limits()
87 drv_data->in_min[i] = val; in menf21bmc_hwmon_get_volt_limits()
[all …]
Dadt7475.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * adt7475 - Thermal sensor driver for the ADT7475 chip and derivatives
4 * Copyright (C) 2007-2008, Advanced Micro Devices, Inc.
17 #include <linux/hwmon-sysfs.h>
18 #include <linux/hwmon-vid.h>
24 #include <dt-bindings/pwm/pwm.h>
30 MAX = 2, enumerator
37 * These are unique identifiers for the sysfs functions - unlike the
238 if (!(data->config5 & CONFIG5_TWOSCOMP)) { in temp2reg()
239 val = clamp_val(val, -64000, 191000); in temp2reg()
[all …]
/linux-6.12.1/net/netfilter/ipset/
Dip_set_core.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* Copyright (C) 2000-2002 Joakim Axelsson <gozem@linux.nu>
4 * Copyright (C) 2003-2013 Jozsef Kadlecsik <kadlec@netfilter.org>
31 ip_set_id_t ip_set_max; /* max number of sets */
57 rcu_dereference_protected((inst)->ip_set_list, \
60 (inst)->is_deleted)
64 rcu_dereference_raw((inst)->ip_set_list)[id]
88 find_set_type(const char *name, u8 family, u8 revision) in find_set_type() argument
94 if (STRNCMP(type->name, name) && in find_set_type()
95 (type->family == family || in find_set_type()
[all …]
/linux-6.12.1/drivers/staging/greybus/
Dloopback.c1 // SPDX-License-Identifier: GPL-2.0
35 u32 max; member
102 .name = "gb_loopback",
107 /* Min/max values in jiffies */
124 struct device_attribute *attr, \
128 return sprintf(buf, "%u\n", gb->field); \
132 #define gb_loopback_ro_stats_attr(name, field, type) \ argument
133 static ssize_t name##_##field##_show(struct device *dev, \
134 struct device_attribute *attr, \
138 /* Report 0 for min and max if no transfer succeeded */ \
[all …]
/linux-6.12.1/drivers/hwtracing/coresight/
Dcoresight-tpdm.h1 /* SPDX-License-Identifier: GPL-2.0 */
9 /* The max number of the datasets that TPDM supports */
41 /* MAX number of DSB MSR */
122 /* MAX number of EDCR registers */
124 /* MAX number of EDCMR registers */
126 /* MAX number of DSB pattern */
128 /* MAX number of DSB MSR */
131 #define tpdm_simple_dataset_ro(name, mem, idx) \ argument
134 __ATTR(name, 0444, tpdm_simple_dataset_show, NULL), \
138 })[0].attr.attr)
[all …]
/linux-6.12.1/drivers/hwmon/occ/
Dcommon.c1 // SPDX-License-Identifier: GPL-2.0+
7 #include <linux/hwmon-sysfs.h>
106 u16 max; member
116 u16 max; member
125 u8 name[4]; member
144 cmd[4] = occ->poll_cmd_data; /* data */ in occ_poll()
149 rc = occ->send_cmd(occ, cmd, sizeof(cmd), &occ->resp, sizeof(occ->resp)); in occ_poll()
151 occ->last_error = rc; in occ_poll()
152 if (occ->error_count++ > OCC_ERROR_COUNT_THRESHOLD) in occ_poll()
153 occ->error = rc; in occ_poll()
[all …]
/linux-6.12.1/tools/testing/selftests/mqueue/
Dmq_open_tests.c42 " path Path name of the message queue to create\n"
59 mqd_t queue = -1;
68 static inline void test_queue(struct mq_attr *attr, struct mq_attr *result);
69 static inline int test_queue_fail(struct mq_attr *attr, struct mq_attr *result);
87 if (seteuid(0) == -1) in shutdown()
90 if (queue != -1) in shutdown()
123 shutdown(4, "Error reading /proc entry", __LINE__ - 1); in get()
134 __LINE__ - 1); in set()
138 __LINE__ - 1); in set()
144 shutdown(6, "getrlimit()", __LINE__ - 1); in getr()
[all …]

12345678910>>...34