| /kernel/linux/linux-5.10/drivers/ptp/ |
| D | ptp_sysfs.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * PTP 1588 clock support - sysfs interface. 13 struct device_attribute *attr, char *page) in clock_name_show() argument 16 return sysfs_emit(page, "%s\n", ptp->info->name); in clock_name_show() 20 #define PTP_SHOW_INT(name, var) \ argument 22 struct device_attribute *attr, char *page) \ 25 return snprintf(page, PAGE_SIZE-1, "%d\n", ptp->info->var); \ 27 static DEVICE_ATTR(name, 0444, var##_show, NULL); 37 struct device_attribute *attr, in extts_enable_store() argument 41 struct ptp_clock_info *ops = ptp->info; in extts_enable_store() [all …]
|
| /kernel/linux/linux-6.6/drivers/media/usb/pvrusb2/ |
| D | pvrusb2-sysfs.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/infiniband/ulp/rtrs/ |
| D | rtrs-clt-sysfs.c | 1 // 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-clt.h" 14 #include "rtrs-log.h" 16 #define MIN_MAX_RECONN_ATT -1 39 free_percpu(stats->pcpu_stats); in rtrs_clt_sess_stats_release() 50 struct device_attribute *attr, in max_reconnect_attempts_show() argument [all …]
|
| D | rtrs-srv-sysfs.c | 1 // 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, in rtrs_srv_disconnect_show() argument 34 attr->attr.name); in rtrs_srv_disconnect_show() 38 struct kobj_attribute *attr, in rtrs_srv_disconnect_store() argument [all …]
|
| /kernel/linux/linux-5.10/drivers/media/usb/pvrusb2/ |
| D | pvrusb2-sysfs.c | 1 // 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 74 struct device_attribute *attr, in show_name() argument 78 const char *name; in show_name() local 79 cip = container_of(attr, struct pvr2_sysfs_ctl_item, attr_name); in show_name() 80 name = pvr2_ctrl_get_desc(cip->cptr); in show_name() [all …]
|
| /kernel/linux/linux-6.6/drivers/ptp/ |
| D | ptp_sysfs.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/memstick/core/ |
| D | mspro_block.c | 1 // 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 183 struct gendisk *disk = bdev->bd_disk; in mspro_block_bd_open() 184 struct mspro_block_data *msb = disk->private_data; in mspro_block_bd_open() 185 int rc = -ENXIO; in mspro_block_bd_open() 189 if (msb && msb->card) { in mspro_block_bd_open() [all …]
|
| /kernel/linux/linux-6.6/drivers/memstick/core/ |
| D | mspro_block.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/staging/iio/adc/ |
| D | ad7280a.c | 1 // SPDX-License-Identifier: GPL-2.0 96 #define AD7280A_NUM_CH (AD7280A_AUX_ADC_6 - \ 102 (c) - AD7280A_CELLS_PER_DEV) 106 /* 5-bit device address is sent LSB first */ 162 unsigned char crc = ad7280_calc_crc8(st->crc_tab, val >> 10); in ad7280_check_crc() 165 return -EIO; in ad7280_check_crc() 180 if (st->readback_delay_us < 50) in ad7280_delay() 181 udelay(st->readback_delay_us); in ad7280_delay() 190 .tx_buf = &st->buf[0], in __ad7280_read32() 191 .rx_buf = &st->buf[1], in __ad7280_read32() [all …]
|
| /kernel/linux/linux-5.10/kernel/irq/ |
| D | irqdesc.c | 1 // 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 15 #include <linux/radix-tree.h> 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() [all …]
|
| /kernel/linux/linux-6.6/drivers/isdn/mISDN/ |
| D | core.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/isdn/mISDN/ |
| D | core.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/firmware/arm_scmi/ |
| D | sensors.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #define pr_fmt(fmt) "SCMI Notifications SENSOR - " fmt 46 u8 name[SCMI_MAX_STR_SIZE]; member 95 struct scmi_msg_resp_sensor_attributes *attr; in scmi_sensor_attributes_get() local 98 SCMI_PROTOCOL_SENSOR, 0, sizeof(*attr), &t); in scmi_sensor_attributes_get() 102 attr = t->rx.buf; in scmi_sensor_attributes_get() 106 si->num_sensors = le16_to_cpu(attr->num_sensors); in scmi_sensor_attributes_get() 107 si->max_requests = attr->max_requests; in scmi_sensor_attributes_get() 108 si->reg_addr = le32_to_cpu(attr->reg_addr_low) | in scmi_sensor_attributes_get() 109 (u64)le32_to_cpu(attr->reg_addr_high) << 32; in scmi_sensor_attributes_get() [all …]
|
| D | clock.c | 1 // SPDX-License-Identifier: GPL-2.0 29 u8 name[SCMI_MAX_STR_SIZE]; member 82 struct scmi_msg_resp_clock_protocol_attributes *attr; in scmi_clock_protocol_attributes_get() local 85 SCMI_PROTOCOL_CLOCK, 0, sizeof(*attr), &t); in scmi_clock_protocol_attributes_get() 89 attr = t->rx.buf; in scmi_clock_protocol_attributes_get() 93 ci->num_clocks = le16_to_cpu(attr->num_clocks); in scmi_clock_protocol_attributes_get() 94 ci->max_async_req = attr->max_async_req; in scmi_clock_protocol_attributes_get() 106 struct scmi_msg_resp_clock_attributes *attr; in scmi_clock_attributes_get() local 109 sizeof(clk_id), sizeof(*attr), &t); in scmi_clock_attributes_get() 113 put_unaligned_le32(clk_id, t->tx.buf); in scmi_clock_attributes_get() [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/bpf/benchs/ |
| D | bench_ringbufs.c | 1 // 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 doesn't support multi-consumer!\n"); in bufs_validate() [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/bpf/benchs/ |
| D | bench_ringbufs.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/kernel/irq/ |
| D | irqdesc.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/drivers/infiniband/ulp/rtrs/ |
| D | rtrs-srv-sysfs.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/drivers/base/ |
| D | cpu.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/base/ |
| D | cpu.c | 1 // SPDX-License-Identifier: GPL-2.0 41 int cpuid = cpu->dev.id; in change_cpu_under_node() 44 cpu->node_id = to_nid; in change_cpu_under_node() 50 int cpuid = dev->id; in cpu_subsys_online() 56 return -ENODEV; in cpu_subsys_online() 77 int logical_cpu = cpu->dev.id; in unregister_cpu() 81 device_unregister(&cpu->dev); in unregister_cpu() 88 struct device_attribute *attr, in cpu_probe_store() argument 92 ssize_t cnt; in cpu_probe_store() local 99 cnt = arch_cpu_probe(buf, count); in cpu_probe_store() [all …]
|
| /kernel/linux/linux-5.10/kernel/ |
| D | ksysfs.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * kernel/ksysfs.c - sysfs attributes in /sys/kernel, which 32 struct kobj_attribute *attr, char *buf) in uevent_seqnum_show() argument 41 struct kobj_attribute *attr, char *buf) in uevent_helper_show() argument 46 struct kobj_attribute *attr, in uevent_helper_store() argument 50 return -ENOENT; in uevent_helper_store() 53 if (count && uevent_helper[count-1] == '\n') in uevent_helper_store() 54 uevent_helper[count-1] = '\0'; in uevent_helper_store() 62 struct kobj_attribute *attr, char *buf) in profiling_show() argument 67 struct kobj_attribute *attr, in profiling_store() argument [all …]
|
| /kernel/linux/linux-6.6/Documentation/userspace-api/netlink/ |
| D | c-code-gen.rst | 1 .. 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 …]
|
| /kernel/linux/linux-6.6/drivers/fpga/ |
| D | intel-m10-bmc-sec-update.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/kernel/ |
| D | ksysfs.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/kernel/trace/ |
| D | bpf_trace.c | 1 // 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 …]
|