Home
last modified time | relevance | path

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

1234567

/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
9 attribute-sets:
10 -
11 name: rpc-status
13 -
16 byte-order: big-endian
17 -
20 -
[all …]
H A Dhandshake.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
7 ---
15 -
17 name: handler-class
18 value-start: 0
20 -
22 name: msg-type
23 value-start: 0
25 -
28 value-start: 0
[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/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/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_fds[j], data + done, in sender()
109 sizeof(data) - done); in sender()
128 close(ctx->in_fds[1]); in receiver()
131 ready(ctx->ready_out, ctx->wakefd); in receiver()
[all …]
/linux/drivers/s390/net/
H A Dctcm_sysfs.c1 // SPDX-License-Identifier: GPL-2.0
25 struct device_attribute *attr, char *buf) in ctcm_buffer_show() argument
30 return -ENODEV; in ctcm_buffer_show()
31 return sysfs_emit(buf, "%d\n", priv->buffer_size); in ctcm_buffer_show()
35 struct device_attribute *attr, const char *buf, size_t count) in ctcm_buffer_write() argument
42 if (!(priv && priv->channel[CTCM_READ] && in ctcm_buffer_write()
43 priv->channel[CTCM_READ]->netdev)) { in ctcm_buffer_write()
45 return -ENODEV; in ctcm_buffer_write()
47 ndev = priv->channel[CTCM_READ]->netdev; in ctcm_buffer_write()
56 priv->buffer_size = bs1; /* just to overwrite the default */ in ctcm_buffer_write()
[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/kernel/
H A Dcpu.c36 #include <linux/percpu-rwsem.h>
49 * struct cpuhp_cpu_state - Per cpu hotplug state storage
58 * @node: Remote CPU node; for multi-instance, do a
60 * @last: For multi-instance rollback, remember how far we got
64 * @done_up: Signal completion to the issuer of the task for cpu-up
65 * @done_down: Signal completion to the issuer of the task for cpu-down
97 STATIC_LOCKDEP_MAP_INIT("cpuhp_state-up", &cpuhp_state_up_map);
99 STATIC_LOCKDEP_MAP_INIT("cpuhp_state-down", &cpuhp_state_down_map);
119 * struct cpuhp_step - Hotplug state machine step
130 int (*multi)(unsigned int cpu, member
[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/drivers/pci/pcie/
H A Daer.c1 // SPDX-License-Identifier: GPL-2.0
11 * (C) Copyright 2009 Hewlett-Packard Development Company, L.P.
22 #include <linux/pci-acpi.h>
41 dev_printk(level, &(pdev)->dev, fmt, ##arg)
147 * enable_ecrc_checking - enable PCIe ECRC checking for a device
154 int aer = dev->aer_cap; in enable_ecrc_checking()
158 return -ENODEV; in enable_ecrc_checking()
171 * disable_ecrc_checking - disable PCIe ECRC checking for a device
178 int aer = dev->aer_cap; in disable_ecrc_checking()
182 return -ENODEV; in disable_ecrc_checking()
[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/scripts/
H A DMakefile.build1 # SPDX-License-Identifier: GPL-2.0
14 obj-y :=
15 obj-m :=
16 lib-y :=
17 lib-m :=
18 always-y :=
19 always-m :=
21 subdir-y :=
22 subdir-m :=
23 asflags-y :=
[all …]
/linux/include/linux/
H A Dbpf_mprog.h1 /* SPDX-License-Identifier: GPL-2.0 */
10 * bpf_mprog is a generic layer for multi-program attachment. In-kernel users
15 * inside the multi-program array as well as prepend and append behavior if
26 * // bpf_mprog user-side lock
40 * // bpf_mprog user-side unlock
47 * // bpf_mprog user-side lock
52 * // all (*) marked is optional and depends on the use-case
65 * // bpf_mprog user-side unlock
72 * // bpf_mprog user-side lock
75 * ret = bpf_mprog_query(attr, uattr, entry);
[all …]
/linux/Documentation/netlink/
H A 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
11 pattern: ^[0-9a-z-]+$
15 len-or-define:
17 pattern: ^[0-9A-Za-z_-]+( - 1)?$
19 len-or-limit:
20 # literal int, const name, or limit based on fixed-width type
21 # e.g. u8-min, u16-max, etc.
[all …]
H A 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
11 pattern: ^[0-9a-z-]+$
12 name-cap:
14 pattern: ^[0-9a-zA-Z-]+$
18 len-or-define:
20 pattern: ^[0-9A-Za-z_-]+( - 1)?$
27 required: [ name, doc, attribute-sets, operations ]
[all …]
/linux/drivers/leds/trigger/
H A Dledtrig-activity.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Partially based on Atsushi Nemoto's ledtrig-heartbeat.c.
37 struct led_classdev *led_cdev = activity_data->led_cdev; in led_activity_function()
48 if (test_and_clear_bit(LED_BLINK_BRIGHTNESS_CHANGE, &led_cdev->work_flags)) in led_activity_function()
49 led_cdev->blink_brightness = led_cdev->new_blink_brightness; in led_activity_function()
53 led_set_brightness_nosleep(led_cdev, led_cdev->blink_brightness); in led_activity_function()
75 * down to 16us, ensuring we won't overflow 32-bit computations below in led_activity_function()
79 diff_boot = (curr_boot - activity_data->last_boot) >> 16; in led_activity_function()
80 diff_used = (curr_used - activity_data->last_used) >> 16; in led_activity_function()
81 activity_data->last_boot = curr_boot; in led_activity_function()
[all …]
/linux/arch/s390/kernel/
H A Dsmp.c1 // SPDX-License-Identifier: GPL-2.0
40 #include <asm/access-regs.h>
41 #include <asm/asm-offsets.h>
99 static unsigned int smp_max_threads __initdata = -1U;
135 cc = __pcpu_sigp(pcpu->address, order, parm, NULL); in pcpu_sigp_retry()
148 if (__pcpu_sigp(pcpu->address, SIGP_SENSE, in pcpu_stopped()
156 if (__pcpu_sigp(pcpu->address, SIGP_SENSE_RUNNING, in pcpu_running()
178 if (test_and_set_bit(ec_bit, &pcpu->ec_mask)) in pcpu_ec_call()
180 pcpu->ec_clk = get_tod_clock_fast(); in pcpu_ec_call()
196 memset((char *) lc + 512, 0, sizeof(*lc) - 512); in pcpu_alloc_lowcore()
[all …]
/linux/drivers/s390/block/
H A Ddcssblk.c1 // SPDX-License-Identifier: GPL-2.0
3 * dcssblk.c -- the S/390 block driver for dcss memory
94 static ssize_t dcssblk_add_store(struct device * dev, struct device_attribute *attr, const char * b…
96 static ssize_t dcssblk_remove_store(struct device * dev, struct device_attribute *attr, const char …
117 list_for_each_entry_safe(entry, temp, &dev_info->seg_list, lh) { in dcssblk_release_segment()
118 list_del(&entry->lh); in dcssblk_release_segment()
138 return -EINVAL; in dcssblk_assign_free_minor()
143 if (minor == entry->gd->first_minor) in dcssblk_assign_free_minor()
148 return -EBUSY; in dcssblk_assign_free_minor()
149 dev_info->gd->first_minor = minor; in dcssblk_assign_free_minor()
[all …]
/linux/drivers/iio/
H A Dindustrialio-buffer.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * - Better memory allocation techniques?
10 * - Alternative access techniques?
18 #include <linux/dma-buf.h>
19 #include <linux/dma-fence.h>
20 #include <linux/dma-resv.h>
30 #include <linux/iio/iio-opaque.h>
72 return !list_empty(&buf->buffer_list); in iio_buffer_is_active()
77 return buf->access->data_available(buf); in iio_buffer_data_available()
83 if (!indio_dev->info->hwfifo_flush_to_buffer) in iio_buffer_flush_hwfifo()
[all …]
/linux/kernel/bpf/
H A Dcgroup.c1 // SPDX-License-Identifier: GPL-2.0-only
16 #include <linux/bpf-cgroup.h>
22 #include "../cgroup/cgroup-internal.h"
76 array = rcu_dereference(cgrp->effective[atype]); in bpf_prog_run_array_cg()
77 item = &array->items[0]; in bpf_prog_run_array_cg()
79 while ((prog = READ_ONCE(item->prog))) { in bpf_prog_run_array_cg()
87 run_ctx.retval = -EPER in bpf_prog_run_array_cg()
1211 __cgroup_bpf_query(struct cgroup * cgrp,const union bpf_attr * attr,union bpf_attr __user * uattr) __cgroup_bpf_query() argument
1315 cgroup_bpf_query(struct cgroup * cgrp,const union bpf_attr * attr,union bpf_attr __user * uattr) cgroup_bpf_query() argument
1326 cgroup_bpf_prog_attach(const union bpf_attr * attr,enum bpf_prog_type ptype,struct bpf_prog * prog) cgroup_bpf_prog_attach() argument
1356 cgroup_bpf_prog_detach(const union bpf_attr * attr,enum bpf_prog_type ptype) cgroup_bpf_prog_detach() argument
1478 cgroup_bpf_link_attach(const union bpf_attr * attr,struct bpf_prog * prog) cgroup_bpf_link_attach() argument
1523 cgroup_bpf_prog_query(const union bpf_attr * attr,union bpf_attr __user * uattr) cgroup_bpf_prog_query() argument
[all...]

1234567