Home
last modified time | relevance | path

Searched +full:multi +full:- +full:attr (Results 1 – 25 of 192) sorted by relevance

12345678

/linux/Documentation/netlink/specs/
H A Dnfsd.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
2 ---
5 uapi-header: linux/nfsd_netlink.h
10 -
12 name: cache-type
14 -
16 name: export-flags
19 - readonly
20 - insecure-port
21 - rootsquash
[all …]
H A Ddevlink.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
2 ---
5 protocol: genetlink-legacy
10 -
12 name: sb-pool-type
14 -
16 -
18 -
20 name: port-type
22 -
[all …]
H A Ddpll.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
2 ---
8 -
16 -
20 -
23 render-max: true
24 -
26 name: lock-status
31 -
37 -
[all …]
H A Ddev-energymodel.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
5 ---
6 name: dev-energymodel
13 uapi-header: linux/dev_energymodel.h
16 -
18 name: perf-state-flags
20 -
21 name: perf-state-inefficient
22 doc: >-
23 The performance state is inefficient. There is in this perf-domain,
[all …]
H A Drt-link.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
2 ---
3 name: rt-link
4 protocol: netlink-raw
5 uapi-header: linux/rtnetlink.h
8 doc: >-
12 -
13 name: ifinfo-flags
16 enum-name: net-device-flags
17 name-prefix: iff-
[all …]
/linux/Documentation/userspace-api/netlink/
H A Dgenetlink-legacy.rst1 .. SPDX-License-Identifier: BSD-3-Clause
9 the ``genetlink-legacy`` protocol level.
15 -------
29 --------------------
31 New Netlink families should use ``multi-attr`` to define arrays.
35 For reference the ``multi-attr`` array may look like this::
37 [ARRAY-ATTR]
41 [SOME-OTHER-ATTR]
42 [ARRAY-ATTR]
47 where ``ARRAY-ATTR`` is the array entry type.
[all …]
/linux/tools/net/ynl/pyynl/
H A Dcli.py2 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
17 # pylint: disable=no-name-in-module,wrong-import-position
22 # pylint: disable=too-few-public-methods,too-many-locals
50 """A custom encoder for emitting JSON with ynl-specific instance types"""
64 attr = attr_set.attrs[attr_name]
65 attr_info = f'{prefix}- {color(attr_name, Colors.BOLD)}: {attr.type}'
66 if 'enum' in attr.yaml:
67 enum_name = attr.yaml['enum']
78 if attr.type == 'nest' and 'nested-attributes' in attr.yaml:
79 nested_set_name = attr.yaml['nested-attributes']
[all …]
/linux/drivers/leds/
H A Dleds-lp55xx-common.h1 /* SPDX-License-Identifier: GPL-2.0-only */
9 * Derived from leds-lp5521.c, leds-lp5523.c
15 #include <linux/led-class-multicolor.h>
42 struct device_attribute *attr, \
45 return lp55xx_show_engine_mode(dev, attr, buf, nr); \
48 struct device_attribute *attr, \
51 return lp55xx_store_engine_mode(dev, attr, buf, len, nr); \
58 struct device_attribute *attr, \
61 return lp55xx_show_engine_leds(dev, attr, buf, nr); \
64 struct device_attribute *attr, \
[all …]
/linux/tools/lib/bpf/
H A Dfeatures.c1 // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
29 union bpf_attr attr; in probe_kern_prog_name() local
32 memset(&attr, 0, attr_sz); in probe_kern_prog_name()
33 attr.prog_type = BPF_PROG_TYPE_SOCKET_FILTER; in probe_kern_prog_name()
34 attr.license = ptr_to_u64("GPL"); in probe_kern_prog_name()
35 attr.insns = ptr_to_u64(insns); in probe_kern_prog_name()
36 attr.insn_cnt = (__u32)ARRAY_SIZE(insns); in probe_kern_prog_name()
37 attr.prog_token_fd = token_fd; in probe_kern_prog_name()
39 attr.prog_flags |= BPF_F_TOKEN_FD; in probe_kern_prog_name()
40 libbpf_strlcpy(attr.prog_name, "libbpf_nametest", sizeof(attr.prog_name)); in probe_kern_prog_name()
[all …]
/linux/drivers/hwmon/
H A Dsht4x.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * sht4x.c - Linux hwmon driver for SHT4x Temperature and Humidity sensor
14 #include <linux/hwmon-sysfs.h>
48 #define SHT4X_MIN_TEMPERATURE -45000
56 * struct sht4x_data - All the data required to operate an SHT4X chip
72 u32 heater_power; /* in milli-watts */
73 u32 heater_time; /* in milli-seconds */
75 long update_interval; /* in milli-seconds */
82 * sht4x_read_values() - read and parse the raw data from the SHT4X
84 * Return: 0 if successful, -ERRNO if not
[all …]
H A Dsht3x.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* Sensirion SHT3x-DIS humidity and temperature sensor driver.
17 #include <linux/hwmon-sysfs.h>
48 /* delays for single-shot mode i2c commands, both in us */
59 #define SHT3X_MIN_TEMPERATURE -45000
202 return number_of_modes - 1; in get_mode_from_update_interval()
212 mutex_lock(&data->i2c_lock); in sht3x_read_from_command()
216 ret = ret < 0 ? ret : -EIO; in sht3x_read_from_command()
225 ret = ret < 0 ? ret : -EIO; in sht3x_read_from_command()
231 mutex_unlock(&data->i2c_lock); in sht3x_read_from_command()
[all …]
/linux/drivers/soc/versatile/
H A Dsoc-realview.c1 // SPDX-License-Identifier: GPL-2.0-only
21 { .compatible = "arm,realview-eb-soc", },
22 { .compatible = "arm,realview-pb1176-soc", },
23 { .compatible = "arm,realview-pb11mp-soc", },
24 { .compatible = "arm,realview-pba8-soc", },
25 { .compatible = "arm,realview-pbx-soc", },
37 return "Multi-layer AXI"; in realview_arch_str()
44 manufacturer_show(struct device *dev, struct device_attribute *attr, char *buf) in manufacturer_show() argument
52 board_show(struct device *dev, struct device_attribute *attr, char *buf) in board_show() argument
54 return sprintf(buf, "HBI-%03x\n", ((realview_coreid >> 16) & 0xfff)); in board_show()
[all …]
/linux/include/linux/ceph/
H A Drados.h1 /* SPDX-License-Identifier: GPL-2.0 */
29 #define CEPH_SNAPDIR ((__u64)(-1)) /* reserved for hidden .snap dir */
30 #define CEPH_NOSNAP ((__u64)(-2)) /* "head", "live" revision */
31 #define CEPH_MAXSNAP ((__u64)(-3)) /* largest valid snapid */
40 * object layout - how objects are mapped into PGs
47 * pg layout -- how PGs are mapped onto (sets of) OSDs
69 * pg_num -- base number of pseudorandomly placed pgs
71 * pgp_num -- effective number when calculating pg placement. this
78 * lpg_num -- localized pg count (per device). replicas are randomly
81 * lpgp_num -- as above.
[all …]
/linux/tools/perf/bench/
H A Dsched-messaging.c1 // SPDX-License-Identifier: GPL-2.0
4 * sched-messaging.c
13 #include <subcmd/parse-options.h>
89 if (poll(&pollfd, 1, -1) != 1) in ready()
99 ready(ctx->ready_out, ctx->wakefd); in sender()
104 for (j = 0; j < ctx->num_fds; j++) { in sender()
108 ret = write(ctx->out_fd in sender()
153 pthread_attr_t attr; create_thread_worker() local
[all...]
/linux/drivers/media/dvb-frontends/
H A Dnxt200x.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Support for NXT2002 and NXT2004 - VSB/QAM
6 * Copyright (C) 2006-2014 Michael Krufky <mkrufky@linuxtv.org>
8 * and nxt2004 by Jean-Francois Thibert <jeanfrancois@sagetv.com>
15 * B2C2/BBTI Technisat Air2PC - ATSC (NXT2002)
31 #define NXT2002_DEFAULT_FIRMWARE "dvb-fe-nxt2002.fw"
32 #define NXT2004_DEFAULT_FIRMWARE "dvb-fe-nxt2004.fw"
63 if ((err = i2c_transfer (state->i2c, &msg, 1)) != 1) { in i2c_writebytes()
66 return -EREMOTEIO; in i2c_writebytes()
76 if ((err = i2c_transfer (state->i2c, &msg, 1)) != 1) { in i2c_readbytes()
[all …]
/linux/drivers/char/ipmi/
H A Dipmi_ssif.c1 // SPDX-License-Identifier: GPL-2.0+
12 * non-blocking I2C interface, add support for multi-part
63 /* ssif_debug is a bit-field
64 * SSIF_DEBUG_MSG - commands and their responses
65 * SSIF_DEBUG_STATES - message states
66 * SSIF_DEBUG_TIMING - Measure times between events in the driver
103 /* FIXME - add watchdog stuff. */
106 #define IS_SSIF_IDLE(ssif) ((ssif)->ssif_state == SSIF_IDLE \
107 && (ssif)->curr_msg == NULL)
296 atomic_inc(&(ssif)->stats[SSIF_STAT_ ## stat])
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dres_spin_lock.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (c) 2024-2025 Meta Platforms, Inc. and affiliates. */
60 prog_fd = bpf_program__fd(skel->progs.res_spin_lock_test); in test_res_spin_lock_success()
65 prog_fd = bpf_program__fd(skel->progs.res_spin_lock_test_held_lock_max); in test_res_spin_lock_success()
70 /* Multi-threaded ABBA deadlock. */ in test_res_spin_lock_success()
72 prog_fd = bpf_program__fd(skel->progs.res_spin_lock_test_AB); in test_res_spin_lock_success()
83 int fd = bpf_program__fd(skel->progs.res_spin_lock_test_BA); in test_res_spin_lock_success()
84 while (!topts.retval && !err && !READ_ONCE(skel->bss->err)) { in test_res_spin_lock_success()
97 ASSERT_EQ(READ_ONCE(skel->bss->err), -EDEADLK, "timeout err"); in test_res_spin_lock_success()
99 ASSERT_EQ(topts.retval, -EDEADLK, "timeout"); in test_res_spin_lock_success()
[all …]
/linux/drivers/platform/x86/amd/hsmp/
H A Dacpi.c1 // SPDX-License-Identifier: GPL-2.0
34 #include <uapi/asm-generic/errno-base.h>
67 iowrite32(*value, sock->virt_base_addr + offset); in amd_hsmp_acpi_rdwr()
69 *value = ioread32(sock->virt_base_addr + offset); in amd_hsmp_acpi_rdwr()
81 if (obj->type == ACPI_TYPE_BUFFER && obj->buffer.length == UUID_SIZE) in is_acpi_hsmp_uuid()
82 return guid_equal((guid_t *)obj->buffer.pointer, &acpi_hsmp_uuid); in is_acpi_hsmp_uuid()
98 return -EINVAL; in hsmp_get_uid()
108 switch (res->type) { in hsmp_resource()
114 sock->mbinfo.base_addr = r.start; in hsmp_resource()
115 sock->mbinfo.size = resource_size(&r); in hsmp_resource()
[all …]
/linux/drivers/mfd/
H A Dgateworks-gsc.c1 // SPDX-License-Identifier: GPL-2.0
3 * The Gateworks System Controller (GSC) is a multi-function
6 * system functions such as push-button monitoring, multiple ADC's for
40 * -EAGAIN returned when the i2c host controller is busy in gsc_write()
41 * -EIO returned when i2c device is busy in gsc_write()
43 if (ret != -EAGAIN && ret != -EIO) in gsc_write()
59 * -EAGAIN returned when the i2c host controller is busy in gsc_read()
60 * -EIO returned when i2c device is busy in gsc_read()
62 if (ret != -EAGAIN && ret != -EIO) in gsc_read()
72 * gsc_powerdown - API to use GSC to power down board for a specific time
[all …]
/linux/drivers/block/xen-blkback/
H A Dxenbus.c1 // SPDX-License-Identifier: GPL-2.0-or-later
9 #define pr_fmt(fmt) "xen-blkback: " fmt
18 /* On the XenBus the max length of 'ring-ref%u'. */
40 return be->dev; in xen_blkbk_xenbus()
58 struct xenbus_device *dev = blkif->be->dev; in blkback_name()
60 devpath = xenbus_read(XBT_NIL, dev->nodename, "dev", NULL); in blkback_name()
70 snprintf(buf, TASK_COMM_LEN, "%d.%s", blkif->domid, devname); in blkback_name()
84 if (!blkif->rings || !blkif->rings[0].irq || !blkif->vbd.bdev_file) in xen_update_blkif_status()
88 if (blkif->be->dev->state == XenbusStateConnected) in xen_update_blkif_status()
92 connect(blkif->be); in xen_update_blkif_status()
[all …]
/linux/net/ncsi/
H A Dncsi-netlink.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright Samuel Mendoza-Jonas, IBM Corporation 2018.
18 #include "ncsi-pkt.h"
19 #include "ncsi-netlink.h"
66 nla_put_u32(skb, NCSI_CHANNEL_ATTR_ID, nc->id); in ncsi_write_channel_info()
67 m = &nc->modes[NCSI_MODE_LINK]; in ncsi_write_channel_info()
68 nla_put_u32(skb, NCSI_CHANNEL_ATTR_LINK_STATE, m->data[2]); in ncsi_write_channel_info()
69 if (nc->state == NCSI_CHANNEL_ACTIVE) in ncsi_write_channel_info()
71 if (nc == nc->package->preferred_channel) in ncsi_write_channel_info()
74 nla_put_u32(skb, NCSI_CHANNEL_ATTR_VERSION_MAJOR, nc->version.major); in ncsi_write_channel_info()
[all …]
/linux/sound/hda/codecs/
H A Dgeneric.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Generic BIOS auto-parser helper functions for HD-audio
16 /* table entry for multi-io paths */
18 hda_nid_t pin; /* multi-io widget pin NID */
20 unsigned int ctl_in; /* cached input-pin control value */
25 * For output, stored in the order of DAC -> ... -> pin,
26 * for input, pin -> ... -> ADC.
30 * multi[] indicates whether it's a selector widget with multi-connectors
48 unsigned char multi[MAX_NID_PATH_DEPTH]; member
56 /* mic/line-in auto switching entry */
[all …]
/linux/drivers/pcmcia/
H A Dds.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * ds.c -- 16-bit PCMCIA core support
10 * (C) 2003 - 2010 Dominik Brodowski
23 #include <linux/dma-mapping.h>
45 const struct pcmcia_device_id *did = p_drv->id_table; in pcmcia_check_driver()
49 if (!p_drv->probe || !p_drv->remove) in pcmcia_check_driver()
51 "function\n", p_drv->name); in pcmcia_check_driver()
53 while (did && did->match_flags) { in pcmcia_check_driver()
55 if (!did->prod_id[i]) in pcmcia_check_driver()
58 hash = crc32(0, did->prod_id[i], strlen(did->prod_id[i])); in pcmcia_check_driver()
[all …]
/linux/Documentation/netlink/
H A 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, const name, or limit based on fixed-width type
18 # e.g. u8-min, u16-max, etc.
20 pattern: ^[0-9A-Za-z_-]+$
[all …]
/linux/drivers/pci/
H A Dslot.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (C) 2006-2009 Hewlett-Packard Development Company, L.P.
18 struct attribute *attr, char *buf) in pci_slot_attr_show() argument
21 struct pci_slot_attribute *attribute = to_pci_slot_attr(attr); in pci_slot_attr_show()
22 return attribute->show ? attribute->show(slot, buf) : -EIO; in pci_slot_attr_show()
26 struct attribute *attr, const char *buf, size_t len) in pci_slot_attr_store() argument
29 struct pci_slot_attribute *attribute = to_pci_slot_attr(attr); in pci_slot_attr_store()
30 return attribute->store ? attribute->store(slot, buf, len) : -EIO; in pci_slot_attr_store()
40 if (slot->number == PCI_SLOT_PLACEHOLDER) in address_read_file()
42 pci_domain_nr(slot->bus), in address_read_file()
[all …]

12345678