Home
last modified time | relevance | path

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

1234567

/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 …]
/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 = 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 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
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 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 …]
/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 …]
/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()
101 device_unregister(&cpu->dev); in unregister_cpu()
108 struct device_attribute *attr, in cpu_probe_store() argument
[all …]
/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>
55 static struct bpf_raw_event_map *bpf_get_raw_tracepoint_module(const char *name) in bpf_get_raw_tracepoint_module() argument
63 for (i = 0; i < btm->module->num_bpf_raw_events; ++i) { in bpf_get_raw_tracepoint_module()
64 btp = &btm->module->bpf_raw_events[i]; in bpf_get_raw_tracepoint_module()
65 if (!strcmp(btp->tp->name, name)) { in bpf_get_raw_tracepoint_module()
66 if (try_module_get(btm->module)) in bpf_get_raw_tracepoint_module()
77 static struct bpf_raw_event_map *bpf_get_raw_tracepoint_module(const char *name) in bpf_get_raw_tracepoint_module() argument
96 * trace_call_bpf - invoke BPF program
[all …]
/linux/Documentation/netlink/specs/
H A Dmptcp_pm.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
2 ---
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 -
[all …]
/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 …]
/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 …]
/linux/rust/kernel/
H A Dconfigfs.rs1 // 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) -> imp
266 let name = name.as_bytes_with_nul().as_ptr(); new() localVariable
[all...]
/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
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 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 …]
H A Dnct7904.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * nct7904.c - driver for Nuvoton NCT7904D.
110 /*The timeout range is 1-255 minutes*/
149 mutex_lock(&data->bank_lock); in nct7904_bank_lock()
150 if (data->bank_sel == bank) in nct7904_bank_lock()
152 ret = i2c_smbus_write_byte_data(data->client, BANK_SEL_REG, bank); in nct7904_bank_lock()
154 data->bank_sel = bank; in nct7904_bank_lock()
156 data->bank_sel = -1; in nct7904_bank_lock()
162 mutex_unlock(&data->bank_lock); in nct7904_bank_release()
165 /* Read 1-byte register. Returns unsigned reg or -ERRNO on error. */
[all …]
/linux/tools/perf/util/
H A Dheader.c1 // SPDX-License-Identifier: GPL-2.0
35 #include "trace-event.h"
44 #include "build-id.h"
50 #include "time-utils.h"
54 #include "bpf-event.h"
55 #include "bpf-utils.h"
62 #include <event-parse.h>
83 struct perf_event_attr attr; member
89 __set_bit(feat, header->adds_features); in perf_header__set_feat()
94 __clear_bit(feat, header->adds_features); in perf_header__clear_feat()
[all …]
/linux/drivers/scsi/lpfc/
H A Dlpfc_attr.c4 * 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 …]
H A Dlpfc_ct.c4 * Copyright (C) 2017-2025 Broadcom. All Rights Reserved. The term *
6 * Copyright (C) 2004-2016 Emulex. All rights reserved. *
16 * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT, ARE *
24 * Fibre Channel SCSI LAN Device Driver CT support: FC Generic Services FC-GS
53 /* FDMI Port Speed definitions - FC-GS-7 */
121 ndlp = cmdiocb->ndlp; in lpfc_ct_unsol_cmpl()
125 mp = cmdiocb->rsp_dmabuf; in lpfc_ct_unsol_cmpl()
126 bmp = cmdiocb->bpl_dmabuf; in lpfc_ct_unsol_cmpl()
128 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_ct_unsol_cmpl()
130 cmdiocb->rsp_dmabuf = NULL; in lpfc_ct_unsol_cmpl()
[all …]
/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",
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 Dsofting_main.c1 // 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/net/phy/
H A Dbcm54140.c1 // 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/scsi/qla2xxx/
H A Dqla_attr.c1 // 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 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 …]
/linux/kernel/bpf/
H A Dsyscall.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* Copyright (c) 2011-2014 PLUMgrid, http://plumgrid.com
6 #include <linux/bpf-cgroup.h>
35 #include <linux/bpf-netns.h>
48 #define IS_FD_ARRAY(map) ((map)->map_type == BPF_MAP_TYPE_PERF_EVENT_ARRAY || \
49 (map)->map_type == BPF_MAP_TYPE_CGROUP_ARRAY || \
50 (map)->map_type == BPF_MAP_TYPE_ARRAY_OF_MAPS)
51 #define IS_FD_PROG_ARRAY(map) ((map)->map_type == BPF_MAP_TYPE_PROG_ARRAY)
52 #define IS_FD_HASH(map) ((map)->map_type == BPF_MAP_TYPE_HASH_OF_MAPS)
83 * are 0 - i.e. new user-space does not rely on any kernel feature extensions
[all …]
/linux/kernel/livepatch/
H A Dcore.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * core.c - Kernel Live Patching Core
31 * accesses to klp-related variables and structures must have mutex protection,
34 * - klp_ftrace_handler()
35 * - klp_update_patch_state()
36 * - __klp_sched_try_switc
122 const char *name; global() member
146 klp_find_callback(void * data,const char * name,unsigned long addr) klp_find_callback() argument
156 klp_find_object_symbol(const char * objname,const char * name,unsigned long sympos,unsigned long * addr) klp_find_object_symbol() argument
196 int i, cnt, ret; klp_resolve_symbols() local
299 int cnt, ret; klp_write_section_relocs() local
357 enabled_store(struct kobject * kobj,struct kobj_attribute * attr,const char * buf,size_t count) enabled_store() argument
401 enabled_show(struct kobject * kobj,struct kobj_attribute * attr,char * buf) enabled_show() argument
410 transition_show(struct kobject * kobj,struct kobj_attribute * attr,char * buf) transition_show() argument
418 force_store(struct kobject * kobj,struct kobj_attribute * attr,const char * buf,size_t count) force_store() argument
448 replace_show(struct kobject * kobj,struct kobj_attribute * attr,char * buf) replace_show() argument
457 stack_order_show(struct kobject * kobj,struct kobj_attribute * attr,char * buf) stack_order_show() argument
493 patched_show(struct kobject * kobj,struct kobj_attribute * attr,char * buf) patched_show() argument
519 klp_alloc_object_dynamic(const char * name,struct klp_patch * patch) klp_alloc_object_dynamic() argument
914 const char *name; klp_init_object() local
[all...]
/linux/tools/lib/bpf/
H A Dbpf.c1 // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
6 * Copyright (C) 2013-2015 Alexei Starovoitov <ast@kernel.org>
72 static inline int sys_bpf(enum bpf_cmd cmd, union bpf_attr *attr, in sys_bpf() argument
75 return syscall(__NR_bpf, cmd, attr, size); in sys_bpf()
78 static inline int sys_bpf_fd(enum bpf_cmd cmd, union bpf_attr *attr, in sys_bpf_fd() argument
83 fd = sys_bpf(cmd, attr, siz in sys_bpf_fd()
87 sys_bpf_prog_load(union bpf_attr * attr,unsigned int size,int attempts) sys_bpf_prog_load() argument
114 union bpf_attr attr; probe_memcg_account() local
176 union bpf_attr attr; bpf_map_create() local
212 alloc_zero_tailing_info(const void * orecord,__u32 cnt,__u32 actual_rec_size,__u32 expected_rec_size) alloc_zero_tailing_info() argument
247 union bpf_attr attr; bpf_prog_load() local
392 union bpf_attr attr; bpf_map_update_elem() local
408 union bpf_attr attr; bpf_map_lookup_elem() local
423 union bpf_attr attr; bpf_map_lookup_elem_flags() local
439 union bpf_attr attr; bpf_map_lookup_and_delete_elem() local
454 union bpf_attr attr; bpf_map_lookup_and_delete_elem_flags() local
470 union bpf_attr attr; bpf_map_delete_elem() local
484 union bpf_attr attr; bpf_map_delete_elem_flags() local
499 union bpf_attr attr; bpf_map_get_next_key() local
514 union bpf_attr attr; bpf_map_freeze() local
530 union bpf_attr attr; bpf_map_batch_common() local
586 union bpf_attr attr; bpf_obj_pin_opts() local
615 union bpf_attr attr; bpf_obj_get_opts() local
646 union bpf_attr attr; bpf_prog_attach_opts() local
684 union bpf_attr attr; bpf_prog_detach_opts() local
732 union bpf_attr attr; bpf_link_create() local
927 union bpf_attr attr; bpf_link_detach() local
941 union bpf_attr attr; bpf_link_update() local
966 union bpf_attr attr; bpf_iter_create() local
980 union bpf_attr attr; bpf_prog_query_opts() local
1027 union bpf_attr attr; bpf_prog_test_run_opts() local
1062 union bpf_attr attr; bpf_obj_get_next_id() local
1099 union bpf_attr attr; bpf_prog_get_fd_by_id_opts() local
1122 union bpf_attr attr; bpf_map_get_fd_by_id_opts() local
1145 union bpf_attr attr; bpf_btf_get_fd_by_id_opts() local
1169 union bpf_attr attr; bpf_link_get_fd_by_id_opts() local
1191 union bpf_attr attr; bpf_obj_get_info_by_fd() local
1228 union bpf_attr attr; bpf_raw_tracepoint_open_opts() local
1243 bpf_raw_tracepoint_open(const char * name,int prog_fd) bpf_raw_tracepoint_open() argument
1253 union bpf_attr attr; bpf_btf_load() local
1309 union bpf_attr attr; bpf_task_fd_query() local
1333 union bpf_attr attr; bpf_enable_stats() local
1347 union bpf_attr attr; bpf_prog_bind_map() local
1365 union bpf_attr attr; bpf_token_create() local
1383 union bpf_attr attr; bpf_prog_stream_read() local
[all...]

1234567