/linux/Documentation/netlink/specs/ |
H A D | ethtool.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 name: ethtool 5 protocol: genetlink-legacy 8 uapi-header: linux/ethtool_netlink_generated.h 10 c-family-name: ethtool-genl-name 11 c-version-name: ethtool-genl-version 14 - 15 name: udp-tunnel-type 16 enum-name: 18 entries: [ vxlan, geneve, vxlan-gpe ] [all …]
|
H A D | team.yaml | 1 # 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 …]
|
H A D | mptcp_pm.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 name: mptcp_pm 4 protocol: genetlink-legacy 7 c-family-name: mptcp-pm-name 8 c-version-name: mptcp-pm-ver 9 max-by-define: true 10 kernel-policy: per-op 11 cmd-cnt-name: --mptcp-pm-cmd-after-last 14 - 16 name: event-type [all …]
|
/linux/drivers/media/usb/pvrusb2/ |
H A 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 …]
|
/linux/drivers/ptp/ |
H A 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 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/drivers/memstick/core/ |
H A 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 …]
|
/linux/kernel/irq/ |
H A 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 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() 65 return -ENOMEM; in alloc_masks() [all …]
|
/linux/tools/testing/selftests/bpf/benchs/ |
H A 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 …]
|
/linux/drivers/infiniband/ulp/rtrs/ |
H A 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 …]
|
/linux/drivers/base/ |
H A 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() 101 device_unregister(&cpu->dev); in unregister_cpu() 108 struct device_attribute *attr, in cpu_probe_store() argument [all …]
|
/linux/drivers/fpga/ |
H A 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 …]
|
/linux/kernel/trace/ |
H A 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_event in bpf_get_raw_tracepoint_module() 78 bpf_get_raw_tracepoint_module(const char * name) bpf_get_raw_tracepoint_module() argument 2319 bpf_get_raw_tracepoint(const char * name) bpf_get_raw_tracepoint() argument 2566 u32 cnt; global() member 2597 copy_user_syms(struct user_syms * us,unsigned long __user * usyms,u32 cnt) copy_user_syms() argument 2639 kprobe_multi_put_modules(struct module ** mods,u32 cnt) kprobe_multi_put_modules() argument 2955 addrs_check_error_injection_list(unsigned long * addrs,u32 cnt) addrs_check_error_injection_list() argument 2966 bpf_kprobe_multi_link_attach(const union bpf_attr * attr,struct bpf_prog * prog) bpf_kprobe_multi_link_attach() argument 2972 u32 flags, cnt, size; bpf_kprobe_multi_link_attach() local 3111 bpf_kprobe_multi_link_attach(const union bpf_attr * attr,struct bpf_prog * prog) bpf_kprobe_multi_link_attach() argument 3141 u32 cnt; global() member 3153 bpf_uprobe_unregister(struct bpf_uprobe * uprobes,u32 cnt) bpf_uprobe_unregister() argument 3351 bpf_uprobe_multi_link_attach(const union bpf_attr * attr,struct bpf_prog * prog) bpf_uprobe_multi_link_attach() argument 3361 u32 flags, cnt, i; bpf_uprobe_multi_link_attach() local 3363 char *name; bpf_uprobe_multi_link_attach() local 3497 bpf_uprobe_multi_link_attach(const union bpf_attr * attr,struct bpf_prog * prog) bpf_uprobe_multi_link_attach() argument [all...] |
/linux/tools/perf/arch/x86/tests/ |
H A D | hybrid.c | 1 // 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 …]
|
/linux/rust/kernel/ |
H A D | configfs.rs | 1 // SPDX-License-Identifier: GPL-2.0 3 //! configfs interface: Userspace-driven Kernel Object Configuration 5 //! configfs is an in-memory pseudo file system for configuration of kernel 11 //! - Items. All group children are groups. 12 //! - Symlink support. 13 //! - `disconnect_notify` hook. 14 //! - Default groups. 39 //! fn init(_module: &'static ThisModule) -> impl PinInit<Self, Error> { 52 //! config <- configfs::Subsystem::new( 67 //! fn new() -> impl PinInit<Self, Error> { [all …]
|
/linux/drivers/hwmon/ |
H A D | npcm750-pwm-fan.c | 1 // 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 224 mutex_lock(&data->pwm_lock[module]); in npcm7xx_pwm_config_set() 227 iowrite32(val, NPCM7XX_PWM_REG_CMRx(data->pwm_base, module, pwm_ch)); in npcm7xx_pwm_config_set() [all …]
|
H A D | g760a.c | 1 // 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 …]
|
/linux/drivers/iio/adc/ |
H A D | pac1934.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * IIO driver for PAC1934 Multi-Channel DC Power/Energy Monitor 5 * Copyright (C) 2017-2024 Microchip Technology Inc. and its subsidiaries 12 …oads/aemDocuments/documents/OTH/ProductDocuments/DataSheets/PAC1931-Family-Data-Sheet-DS20005850E.… 46 * (2^31 - 1) * 10^8 + 99999999 51 * -(2^31) * 10^8 - 99999999 53 #define PAC_193X_MIN_POWER_ACC -214748364899999999LL 118 * relative offsets when using multi-byte reads/writes even though these 147 /* Scale constant = (10^3 * 3.2 * 10^9 / 2^28) for mili Watt-second */ 153 #define PAC1934_DEV_ATTR(name) (&iio_dev_attr_##name.dev_attr.attr) argument [all …]
|
/linux/Documentation/netlink/ |
H A D | genetlink-legacy.yaml | 1 # 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 9 name: 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 [all …]
|
/linux/drivers/scsi/ |
H A D | scsi_transport_fc.c | 1 // 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 …]
|
/linux/drivers/scsi/lpfc/ |
H A D | lpfc_attr.c | 4 * Copyright (C) 2017-2025 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 …]
|
/linux/drivers/net/phy/ |
H A D | bcm54140.c | 1 // SPDX-License-Identifier: GPL-2.0+ 14 #include "bcm-phy-lib.h" 16 /* RDB per-port registers 61 #define BCM54140_RDB_MON_CTRL_SEL_RR 3 /* meassure all round-robin */ 62 #define BCM54140_RDB_MON_CTRL_PWR_DOWN BIT(0) /* power-down monitor */ 81 * T = 413.35 - (0.49055 * bits[9:0]) 83 #define BCM54140_HWMON_TO_TEMP(v) (413350L - (v) * 491) 84 #define BCM54140_HWMON_FROM_TEMP(v) DIV_ROUND_CLOSEST_ULL(413350L - (v), 491) 149 u32 attr, int channel) in bcm54140_hwmon_is_visible() argument 153 switch (attr) { in bcm54140_hwmon_is_visible() [all …]
|
/linux/drivers/platform/mellanox/ |
H A D | mlxbf-bootctl.c | 1 // 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", 136 ((ETH_ALEN * 2) + (ETH_ALEN - 1)) 154 if (sysfs_streq(boot_names[i].name, action)) in mlxbf_bootctl_reset_action_to_val() 157 return -EINVAL; in mlxbf_bootctl_reset_action_to_val() [all …]
|
/linux/drivers/net/can/softing/ |
H A D | softing_main.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2008-2010 5 * - Kurt Van Dijck, EIA Electronics 15 #define TX_ECHO_SKB_MAX (((TXMAX+1)/2)-1) 27 return (can->state <= CAN_STATE_ERROR_PASSIVE); in canif_is_active() 33 if (card->pdat->generation >= 2) { in softing_set_reset_dpram() 34 spin_lock_bh(&card->spin); in softing_set_reset_dpram() 35 iowrite8(ioread8(&card->dpram[DPRAM_V2_RESET]) & ~1, in softing_set_reset_dpram() 36 &card->dpram[DPRAM_V2_RESET]); in softing_set_reset_dpram() 37 spin_unlock_bh(&card->spin); in softing_set_reset_dpram() [all …]
|
/linux/drivers/scsi/qla2xxx/ |
H A D | qla_attr.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (c) 2003-2014 QLogic Corporation 16 /* SYSFS attributes --------------------------------------------------------- */ 25 struct qla_hw_data *ha = vha->hw; in qla2x00_sysfs_read_fw_dump() 28 if (!(ha->fw_dump_reading || ha->mctp_dump_reading || in qla2x00_sysfs_read_fw_dump() 29 ha->mpi_fw_dump_reading)) in qla2x00_sysfs_read_fw_dump() 32 mutex_lock(&ha->optrom_mutex); in qla2x00_sysfs_read_fw_dump() 34 if (off < ha->md_template_size) { in qla2x00_sysfs_read_fw_dump() 36 &off, ha->md_tmplt_hdr, ha->md_template_size); in qla2x00_sysfs_read_fw_dump() 38 off -= ha->md_template_size; in qla2x00_sysfs_read_fw_dump() [all …]
|
/linux/drivers/s390/net/ |
H A D | qeth_core_sys.c | 1 // 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 …]
|