Home
last modified time | relevance | path

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

123456789

/openbmc/linux/drivers/media/usb/pvrusb2/
H A 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 …]
/openbmc/linux/drivers/ptp/
H A 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 snprintf(page, PAGE_SIZE - 1, "%d\n", in max_phase_adjustment_show()
28 ptp->info->getmaxphase(ptp->info)); in max_phase_adjustment_show()
32 #define PTP_SHOW_INT(name, var) \ argument
34 struct device_attribute *attr, char *page) \
37 return snprintf(page, PAGE_SIZE-1, "%d\n", ptp->info->var); \
[all …]
/openbmc/linux/drivers/memstick/core/
H A 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 …]
/openbmc/linux/drivers/isdn/mISDN/
H A Dcore.c1 // SPDX-License-Identifier: GPL-2.0-only
32 struct device_attribute *attr, char *buf) in id_show() argument
37 return -ENODEV; in id_show()
38 return sprintf(buf, "%d\n", mdev->id); in id_show()
43 struct device_attribute *attr, char *buf) in nrbchan_show() argument
48 return -ENODEV; in nrbchan_show()
49 return sprintf(buf, "%d\n", mdev->nrbchan); in nrbchan_show()
54 struct device_attribute *attr, char *buf) in d_protocols_show() argument
59 return -ENODEV; in d_protocols_show()
60 return sprintf(buf, "%d\n", mdev->Dprotocols); in d_protocols_show()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/benchs/
H A 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 …]
/openbmc/linux/kernel/irq/
H A 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
22 * lockdep: we want to handle all irq_desc locks as a single lock-class:
56 if (!zalloc_cpumask_var_node(&desc->irq_common_data.affinity, in alloc_masks()
58 return -ENOMEM; in alloc_masks()
61 if (!zalloc_cpumask_var_node(&desc->irq_common_data.effective_affinity, in alloc_masks()
63 free_cpumask_var(desc->irq_common_data.affinity); in alloc_masks()
64 return -ENOMEM; in alloc_masks()
[all …]
/openbmc/qemu/hw/dma/
H A Dxlnx-zdma.c30 #include "hw/dma/xlnx-zdma.h"
32 #include "hw/qdev-properties.h"
156 FIELD(ZDMA_CH_RATE_CTRL, CNT, 0, 12)
171 FIELD(ZDMA_CH_RATE_CNTL, CNT, 0, 12)
173 FIELD(ZDMA_CH_IRQ_SRC_ACCT, CNT, 0, 8)
175 FIELD(ZDMA_CH_IRQ_DST_ACCT, CNT, 0, 8)
213 pending = s->regs[R_ZDMA_CH_ISR] & ~s->regs[R_ZDMA_CH_IMR]; in zdma_ch_imr_update_irq()
215 qemu_set_irq(s->irq_zdma_ch_imr, pending); in zdma_ch_imr_update_irq()
220 XlnxZDMA *s = XLNX_ZDMA(reg->opaque); in zdma_ch_isr_postw()
226 XlnxZDMA *s = XLNX_ZDMA(reg->opaque); in zdma_ch_ien_prew()
[all …]
/openbmc/linux/drivers/infiniband/ulp/rtrs/
H A 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 …]
/openbmc/linux/drivers/base/
H A 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()
100 device_unregister(&cpu->dev); in unregister_cpu()
107 struct device_attribute *attr, in cpu_probe_store() argument
[all …]
/openbmc/linux/Documentation/userspace-api/netlink/
H A 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 …]
/openbmc/linux/drivers/fpga/
H A 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 …]
/openbmc/linux/tools/perf/arch/x86/tests/
H A 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 …]
/openbmc/linux/kernel/
H A Dksysfs.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * kernel/ksysfs.c - sysfs attributes in /sys/kernel, which
40 struct kobj_attribute *attr, char *buf) in uevent_seqnum_show() argument
48 struct kobj_attribute *attr, char *buf) in cpu_byteorder_show() argument
56 struct kobj_attribute *attr, char *buf) in address_bits_show() argument
65 struct kobj_attribute *attr, char *buf) in uevent_helper_show() argument
70 struct kobj_attribute *attr, in uevent_helper_store() argument
74 return -ENOENT; in uevent_helper_store()
77 if (count && uevent_helper[count-1] == '\n') in uevent_helper_store()
78 uevent_helper[count-1] = '\0'; in uevent_helper_store()
[all …]
/openbmc/linux/kernel/trace/
H A 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 …]
/openbmc/linux/arch/arm/mm/
H A 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 …]
/openbmc/linux/drivers/hwmon/
H A 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
225 mutex_lock(&data->pwm_lock[module]); in npcm7xx_pwm_config_set()
228 iowrite32(val, NPCM7XX_PWM_REG_CMRx(data->pwm_base, module, pwm_ch)); in npcm7xx_pwm_config_set()
[all …]
H A 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 …]
/openbmc/linux/arch/x86/events/amd/
H A 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 …]
/openbmc/linux/drivers/scsi/lpfc/
H A Dlpfc_attr.c4 * Copyright (C) 2017-2023 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 …]
/openbmc/linux/drivers/net/phy/
H A 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)
144 u32 attr, int channel) in bcm54140_hwmon_is_visible() argument
148 switch (attr) { in bcm54140_hwmon_is_visible()
[all …]
/openbmc/u-boot/drivers/mtd/
H A Dmtdcore.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Copyright © 1999-2010 David Woodhouse <dwmw2@infradead.org>
25 #include <linux/backing-dev.h>
41 * backing device capabilities for non-mappable devices (such as NAND flash)
42 * - permits private mappings, copies are taken of the data
50 * - permits private mappings, copies are taken of the data
51 * - permits non-writable shared mappings
60 * - permits private mappings, copies are taken of the data
61 * - permits non-writable shared mappings
73 .name = "mtd",
[all …]
/openbmc/linux/tools/perf/util/
H A Dheader.c1 // SPDX-License-Identifier: GPL-2.0
35 #include "trace-event.h"
44 #include "build-id.h"
49 #include "time-utils.h"
53 #include "bpf-event.h"
54 #include "bpf-utils.h"
61 #include <traceevent/event-parse.h>
82 struct perf_event_attr attr; member
88 __set_bit(feat, header->adds_features); in perf_header__set_feat()
93 __clear_bit(feat, header->adds_features); in perf_header__clear_feat()
[all …]
/openbmc/linux/drivers/s390/net/
H A Dqeth_core_sys.c1 // SPDX-License-Identifier: GPL-2.0
20 struct device_attribute *attr, char *buf) in qeth_dev_state_show() argument
24 switch (card->state) { in qeth_dev_state_show()
28 if (card->dev->flags & IFF_UP) in qeth_dev_state_show()
30 netif_carrier_ok(card->dev) ? in qeth_dev_state_show()
41 struct device_attribute *attr, char *buf) in qeth_dev_chpid_show() argument
45 return sysfs_emit(buf, "%02X\n", card->info.chpid); in qeth_dev_chpid_show()
51 struct device_attribute *attr, char *buf) in qeth_dev_if_name_show() argument
55 return sysfs_emit(buf, "%s\n", netdev_name(card->dev)); in qeth_dev_if_name_show()
61 struct device_attribute *attr, char *buf) in qeth_dev_card_type_show() argument
[all …]
/openbmc/linux/drivers/scsi/
H A Dscsi_transport_fc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * Copyright (C) 2004-2007 James Smart, Emulex Corporation
16 #include <linux/bsg-lib.h>
74 char *name = NULL; \
78 name = table[i].name; \
82 return name; \
92 if (strncmp(table_key, table[i].name, \
102 /* Convert fc_port_type values to ascii string name */
105 char *name; member
110 { FC_PORTTYPE_NPORT, "NPort (fabric via point-to-point)" },
[all …]
/openbmc/linux/drivers/platform/mellanox/
H A Dmlxbf-bootctl.c1 // SPDX-License-Identifier: GPL-2.0+
6 * software to manage reset-time actions.
12 #include <linux/arm-smccc.h>
19 #include "mlxbf-bootctl.h"
29 "89c036b4-e7d7-11e6-8797-001aca00bfc4";
33 const char *name; member
54 [MLXBF_BOOTCTL_SB_LIFECYCLE_GA_NON_SECURE] = "GA Non-Secured",
135 ((ETH_ALEN * 2) + (ETH_ALEN - 1))
153 if (sysfs_streq(boot_names[i].name, action)) in mlxbf_bootctl_reset_action_to_val()
156 return -EINVAL; in mlxbf_bootctl_reset_action_to_val()
[all …]

123456789