| /linux/drivers/hwtracing/coresight/ | 
| H A D | coresight-etm3x-sysfs.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include "coresight-etm.h" 11 #include "coresight-priv.h" 13 static ssize_t nr_addr_cmp_show(struct device *dev,  in nr_addr_cmp_show() 17 	struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent);  in nr_addr_cmp_show() 19 	val = drvdata->nr_addr_cmp;  in nr_addr_cmp_show() 22 static DEVICE_ATTR_RO(nr_addr_cmp); 24 static ssize_t nr_cntr_show(struct device *dev,  in nr_cntr_show() 27 	struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent);  in nr_cntr_show() 29 	val = drvdata->nr_cntr;  in nr_cntr_show() [all …] 
 | 
| H A D | coresight-cti-core.c | 1 // SPDX-License-Identifier: GPL-2.0 22 #include "coresight-priv.h" 23 #include "coresight-cti.h" 30  * We assume that the non-CPU CTIs are always powered as we do with sinks etc. 37 static LIST_HEAD(ect_net); 40 static DEFINE_MUTEX(ect_mutex); 43 	dev_get_drvdata(csdev->dev.parent) 46 static int nr_cti_cpu; 49 static struct cti_drvdata *cti_cpu_drvdata[NR_CPUS]; 56  * CTI device name list - for CTI not bound to cores. [all …] 
 | 
| /linux/tools/perf/util/ | 
| H A D | stat-display.c | 40 static int aggr_header_lens[] = { 52 static const char *aggr_header_csv[] = { 59 	[AGGR_THREAD]	=	"comm-pid,", 64 static const char *aggr_header_std[] = { 71 	[AGGR_THREAD] 	= 	"comm-pid", 85 	static_assert(ARRAY_SIZE(colors) - 1  == METRIC_THRESHOLD_GOOD, "missing enum value");  in metric_threshold_classify__color() 89 static const char *metric_threshold_classify__str(enum metric_threshold_classify thresh)  in metric_threshold_classify__str() 98 	static_assert(ARRAY_SIZE(strs) - 1  == METRIC_THRESHOLD_GOOD, "missing enum value");  in metric_threshold_classify__str() 102 static void print_running_std(struct perf_stat_config *config, u64 run, u64 ena)  in print_running_std()  argument 105 		fprintf(config->output, "  (%.2f%%)", 100.0 * run / ena);  in print_running_std() [all …] 
 | 
| /linux/lib/ | 
| H A D | test_kmod.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR copyleft-next-0.3.1 14  * tools/testing/selftests/kmod/kmod.sh --help 33 static bool force_init_test = false; 37 static char *start_driver; 41 static char *start_test_fs; 49 static DEFINE_MUTEX(reg_dev_mutex); 50 static LIST_HEAD(reg_test_devs); 56 static int num_test_devs; 59  * enum kmod_test_case - linker table test case 89  * struct kmod_test_device_info - thread info [all …] 
 | 
| /linux/drivers/rtc/ | 
| H A D | rtc-spear.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3  * drivers/rtc/rtc-spear.c 6  * Rajeev Kumar<rajeev-dlh.kumar@st.com> 85 static inline void spear_rtc_clear_interrupt(struct spear_rtc_config *config)  in spear_rtc_clear_interrupt()  argument 90 	spin_lock_irqsave(&config->lock, flags);  in spear_rtc_clear_interrupt() 91 	val = readl(config->ioaddr + STATUS_REG);  in spear_rtc_clear_interrupt() 93 	writel(val, config->ioaddr + STATUS_REG);  in spear_rtc_clear_interrupt() 94 	spin_unlock_irqrestore(&config->lock, flags);  in spear_rtc_clear_interrupt() 97 static inline void spear_rtc_enable_interrupt(struct spear_rtc_config *config)  in spear_rtc_enable_interrupt()  argument 101 	val = readl(config->ioaddr + CTRL_REG);  in spear_rtc_enable_interrupt() [all …] 
 | 
| H A D | rtc-da9063.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4  * Copyright (C) 2013-2015  Dialog Semiconductor Ltd. 23 #define YEARS_TO_DA9063(year)		((year) - 100) 26 #define MONTHS_FROM_DA9063(month)	((month) - 1) 61 	/* ALARM CONFIG */ 70 	const struct da9063_compatible_rtc_regmap *config;  member 74 static const struct da9063_compatible_rtc_regmap da9063_ad_regs = { 98 	/* ALARM CONFIG */ 100 	.rtc_alarm_len              = RTC_DATA_LEN - 1, 103 static const struct da9063_compatible_rtc_regmap da9063_bb_regs = { [all …] 
 | 
| /linux/sound/soc/sof/ | 
| H A D | ipc3-topology.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 12 #include "sof-priv.h" 13 #include "sof-audio.h" 14 #include "ipc3-priv.h" 40 static const struct sof_process_types sof_process[] = { 52 static enum sof_ipc_process_type find_process(const char *name)  in find_process() 64 static int get_token_process_type(void *elem, void *object, u32 offset)  in get_token_process_type() 73 static const struct sof_topology_token buffer_tokens[] = { 83 static const struct sof_topology_token dai_tokens[] = { 93 static const struct sof_topology_token dai_link_tokens[] = { [all …] 
 | 
| /linux/drivers/net/ethernet/mellanox/mlxsw/ | 
| H A D | spectrum_nve_vxlan.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 21 static bool mlxsw_sp_nve_vxlan_ipv4_flags_check(const struct vxlan_config *cfg,  in mlxsw_sp_nve_vxlan_ipv4_flags_check() 24 	if (!(cfg->flags & VXLAN_F_UDP_ZERO_CSUM_TX)) {  in mlxsw_sp_nve_vxlan_ipv4_flags_check() 29 	if (cfg->flags & ~MLXSW_SP_NVE_VXLAN_IPV4_SUPPORTED_FLAGS) {  in mlxsw_sp_nve_vxlan_ipv4_flags_check() 37 static bool mlxsw_sp_nve_vxlan_ipv6_flags_check(const struct vxlan_config *cfg,  in mlxsw_sp_nve_vxlan_ipv6_flags_check() 40 	if (!(cfg->flags & VXLAN_F_UDP_ZERO_CSUM6_TX)) {  in mlxsw_sp_nve_vxlan_ipv6_flags_check() 45 	if (!(cfg->flags & VXLAN_F_UDP_ZERO_CSUM6_RX)) {  in mlxsw_sp_nve_vxlan_ipv6_flags_check() 50 	if (cfg->flags & ~MLXSW_SP_NVE_VXLAN_IPV6_SUPPORTED_FLAGS) {  in mlxsw_sp_nve_vxlan_ipv6_flags_check() 58 static bool mlxsw_sp_nve_vxlan_can_offload(const struct mlxsw_sp_nve *nve,  in mlxsw_sp_nve_vxlan_can_offload() 62 	struct vxlan_dev *vxlan = netdev_priv(params->dev);  in mlxsw_sp_nve_vxlan_can_offload() [all …] 
 | 
| /linux/drivers/media/pci/mgb4/ | 
| H A D | mgb4_sysfs_out.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3  * Copyright (C) 2021-2023 Digiteq Automotive 19 static int loopin_cnt(struct mgb4_vin_dev *vindev)  in loopin_cnt() 22 	u32 config;  in loopin_cnt()  local 26 		voutdev = vindev->mgbdev->vout[i];  in loopin_cnt() 30 		config = mgb4_read_reg(&voutdev->mgbdev->video,  in loopin_cnt() 31 				       voutdev->config->regs.config);  in loopin_cnt() 32 		if ((config & 0xc) >> 2 == vindev->config->id)  in loopin_cnt() 39 static bool is_busy(struct video_device *dev)  in is_busy() 43 	mutex_lock(dev->lock);  in is_busy() [all …] 
 | 
| /linux/drivers/iio/adc/ | 
| H A D | mcp3422.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3  * mcp3422.c - driver for the Microchip mcp3421/2/3/4/5/6/7/8 chip family 41 #define MCP3422_CHANNEL(config)	(((config) & MCP3422_CHANNEL_MASK) >> 5)  argument 42 #define MCP3422_PGA(config)	((config) & MCP3422_PGA_MASK)  argument 43 #define MCP3422_SAMPLE_RATE(config)	(((config) & MCP3422_SRATE_MASK) >> 2)  argument 59 static const int mcp3422_scales[4][4] = { 66 static const int mcp3422_read_times[4] = { 73 static const int mcp3422_sample_rates[4] = { 80 static const int mcp3422_sign_extend[4] = { 90 	u8 config;  member [all …] 
 | 
| /linux/tools/testing/selftests/arm64/fp/ | 
| H A D | fp-ptrace.c | 1 // SPDX-License-Identifier: GPL-2.0-only 32 #include "fp-ptrace.h" 108 static bool got_alarm; 110 static void handle_alarm(int sig, siginfo_t *info, void *context)  in handle_alarm() 116 static __uint128_t arm64_cpu_to_le128(__uint128_t x)  in arm64_cpu_to_le128() 124 static __uint128_t arm64_cpu_to_le128(__uint128_t x)  in arm64_cpu_to_le128() 132 static bool sve_supported(void)  in sve_supported() 137 static bool sme_supported(void)  in sme_supported() 142 static bool sme2_supported(void)  in sme2_supported() 147 static bool fa64_supported(void)  in fa64_supported() [all …] 
 | 
| /linux/fs/overlayfs/ | 
| H A D | params.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 static bool ovl_redirect_dir_def = IS_ENABLED(CONFIG_OVERLAY_FS_REDIRECT_DIR); 19 static bool ovl_redirect_always_follow = 26 static bool ovl_xino_auto_def = IS_ENABLED(CONFIG_OVERLAY_FS_XINO_AUTO); 31 static bool ovl_index_def = IS_ENABLED(CONFIG_OVERLAY_FS_INDEX); 36 static bool ovl_nfs_export_def = IS_ENABLED(CONFIG_OVERLAY_FS_NFS_EXPORT); 41 static bool ovl_metacopy_def = IS_ENABLED(CONFIG_OVERLAY_FS_METACOPY); 65 static const struct constant_table ovl_parameter_bool[] = { 71 static const struct constant_table ovl_parameter_uuid[] = { 79 static const char *ovl_uuid_mode(struct ovl_config *config)  in ovl_uuid_mode()  argument [all …] 
 | 
| /linux/drivers/gpu/drm/xe/ | 
| H A D | xe_pmu.c | 1 // SPDX-License-Identifier: MIT 22  * Expose events/counters like GT-C6 residency, GT frequency and per-class-engine 27  *     $ ls -ld /sys/bus/event_source/devices/xe_* 35  *	engine_class[20:27]	Selects engine-class for event 36  *	engine_instance[12:19]	Selects the engine-instance for the event 39  * For engine specific events (engine-*), gt, engine_class and engine_instance parameters must be 42  * For gt specific events (gt-*) gt parameter must be passed. All other parameters will be 0. 47  *     $ perf list | grep gt-c6 51  *     $ perf stat -e <event_name,gt=> -I <interval> 60 static unsigned int config_to_event_id(u64 config)  in config_to_event_id()  argument [all …] 
 | 
| H A D | xe_gt_sriov_pf_config.c | 1 // SPDX-License-Identifier: MIT 3  * Copyright © 2023-2024 Intel Corporation 45 static int guc_action_update_vf_cfg(struct xe_guc *guc, u32 vfid,  in guc_action_update_vf_cfg() 56 	return xe_guc_ct_send_block(&guc->ct, request, ARRAY_SIZE(request));  in guc_action_update_vf_cfg() 62 static int pf_send_vf_cfg_reset(struct xe_gt *gt, u32 vfid)  in pf_send_vf_cfg_reset() 64 	struct xe_guc *guc = >->uc.guc;  in pf_send_vf_cfg_reset() 69 	return ret <= 0 ? ret : -EPROTO;  in pf_send_vf_cfg_reset() 76 static int pf_send_vf_buf_klvs(struct xe_gt *gt, u32 vfid, struct xe_guc_buf buf, u32 num_dwords)  in pf_send_vf_buf_klvs() 78 	struct xe_guc *guc = >->uc.guc;  in pf_send_vf_buf_klvs() 84  * Return: 0 on success, -ENOKEY if some KLVs were not updated, -EPROTO if reply was malformed, [all …] 
 | 
| /linux/arch/arm/mach-omap1/ | 
| H A D | usb.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 12 #include <linux/dma-map-ops.h> 15 #include <linux/soc/ti/omap1-io.h> 24 /* These routines should handle the standard chip-specific modes 27  * Some board-*.c files will need to set up additional mux options, 32  *  - 1611B H2 (with usb1 mini-AB) using standard Mini-B or OTG cables 33  *  - 5912 OSK OHCI (with usb0 standard-A), standard A-to-B cables 34  *  - 5912 OSK UDC, with *nonstandard* A-to-A cable 35  *  - 1510 Innovator UDC with bundled usb0 cable 36  *  - 1510 Innovator OHCI with bundled usb1/usb2 cable [all …] 
 | 
| /linux/drivers/md/dm-vdo/ | 
| H A D | dm-vdo-target.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 #include <linux/device-mapper.h> 16 #include "admin-state.h" 17 #include "block-map.h" 20 #include "data-vio.h" 26 #include "io-submitter.h" 28 #include "memory-alloc.h" 29 #include "message-stats.h" 30 #include "recovery-journal.h" 32 #include "slab-depot.h" [all …] 
 | 
| /linux/include/linux/ | 
| H A D | regmap.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 54 #define REGMAP_UPSHIFT(s)	(-(s)) 73  * struct reg_default - Default value for a register. 87  * struct reg_sequence - An individual write from a sequence of writes. 110  * regmap_read_poll_timeout - Poll until a condition is met or a timeout occurs 116  * @sleep_us: Maximum time to sleep between reads in us (0 tight-loops). Please 123  * Returns: 0 on success and -ETIMEDOUT upon a timeout or the regmap_read 137  * regmap_read_poll_timeout_atomic - Poll until a condition is met or a timeout occurs 143  * @delay_us: Time to udelay between reads in us (0 tight-loops). Please 154  * Returns: 0 on success and -ETIMEDOUT upon a timeout or the regmap_read [all …] 
 | 
| /linux/drivers/gpu/drm/amd/amdgpu/ | 
| H A D | amdgpu_pmu.c | 60 static ssize_t amdgpu_pmu_event_show(struct device *dev,  in amdgpu_pmu_event_show() 68 	if (!amdgpu_pmu_attr->type)  in amdgpu_pmu_event_show() 69 		return sprintf(buf, "%s\n", amdgpu_pmu_attr->event_str);  in amdgpu_pmu_event_show() 72 			amdgpu_pmu_attr->event_str, amdgpu_pmu_attr->type);  in amdgpu_pmu_event_show() 75 static LIST_HEAD(amdgpu_pmu_list); 80 	const char *config;  member 99  *  - PMU typed 105  *  - Event config typed 114 static struct amdgpu_pmu_attr amdgpu_pmu_formats[NUM_FORMATS_AMDGPU_PMU] = { 115 	{ .name = "event", .config = "config:0-7" }, [all …] 
 | 
| /linux/arch/mips/cavium-octeon/executive/ | 
| H A D | cvmx-pko.c | 7  * Copyright (c) 2003-2008 Cavium Networks 14  * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 21  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 34 #include <asm/octeon/cvmx-config.h> 35 #include <asm/octeon/cvmx-pko.h> 36 #include <asm/octeon/cvmx-helper.h> 42 static int __cvmx_pko_int(int interface, int index)  in __cvmx_pko_int() 64 		return -1;  in __cvmx_pko_int() 68 static void __cvmx_pko_iport_config(int pko_port)  in __cvmx_pko_iport_config() 77 		union cvmx_pko_mem_iqueue_ptrs config;  in __cvmx_pko_iport_config()  local [all …] 
 | 
| /linux/drivers/base/regmap/ | 
| H A D | regmap-kunit.c | 1 // SPDX-License-Identifier: GPL-2.0 28 static void get_changed_bytes(void *orig, void *new, size_t size)  in get_changed_bytes() 45 static const struct regmap_config test_regmap_config = { 50 static const char *regcache_type_name(enum regcache_type type)  in regcache_type_name() 66 static const char *regmap_endian_name(enum regmap_endian endian)  in regmap_endian_name() 82 static void param_to_desc(const struct regmap_test_param *param, char *desc)  in param_to_desc() 84 	snprintf(desc, KUNIT_PARAM_DESC_SIZE, "%s-%s%s @%#x",  in param_to_desc() 85 		 regcache_type_name(param->cache),  in param_to_desc() 86 		 regmap_endian_name(param->val_endian),  in param_to_desc() 87 		 param->fast_io ? " fast I/O" : "",  in param_to_desc() [all …] 
 | 
| /linux/arch/loongarch/kernel/ | 
| H A D | cpu-probe.c | 1 // SPDX-License-Identifier: GPL-2.0 5  * Copyright (C) 2020-2022 Loongson Technology Corporation Limited 16 #include <asm/cpu-features.h> 20 #include <asm/pgtable-bits.h> 30 static inline void cpu_set_fpu_fcsr_mask(struct cpuinfo_loongarch *c)  in cpu_set_fpu_fcsr_mask() 34 	fcsr = c->fpu_csr0;  in cpu_set_fpu_fcsr_mask() 52 	c->fpu_mask = ~(fcsr0 ^ fcsr1) & ~mask;  in cpu_set_fpu_fcsr_mask() 55 /* simd = -1/0/128/256 */ 56 static unsigned int simd = -1U; 58 static int __init cpu_setup_simd(char *str)  in cpu_setup_simd() [all …] 
 | 
| /linux/sound/soc/ | 
| H A D | soc-generic-dmaengine-pcm.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 //	Author: Lars-Peter Clausen <lars@metafoo.de> 13 #include <linux/dma-mapping.h> 18 static unsigned int prealloc_buffer_size_kbytes = 512; 28 static struct device *dmaengine_dma_dev(struct dmaengine_pcm *pcm, in dmaengine_dma_dev()  31 	if (!pcm->chan[substream->stream]) in dmaengine_dma_dev()  34 	return pcm->cha in dmaengine_dma_dev()  223 const struct snd_dmaengine_pcm_config *config = pcm->config; dmaengine_pcm_new()  local  350 dmaengine_pcm_request_chan_of(struct dmaengine_pcm * pcm,struct device * dev,const struct snd_dmaengine_pcm_config * config) dmaengine_pcm_request_chan_of()  argument  426 snd_dmaengine_pcm_register(struct device * dev,const struct snd_dmaengine_pcm_config * config,unsigned int flags) snd_dmaengine_pcm_register()  argument  [all...] | 
| /linux/drivers/regulator/ | 
| H A D | fixed.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10  * Roger Quadros <ext-roger.quadros@nokia.com> 13  * non-controllable regulators, as well as for allowing testing on 50 static int reg_clock_enable(struct regulator_dev *rdev)  in reg_clock_enable() 55 	ret = clk_prepare_enable(priv->enable_clock);  in reg_clock_enable() 59 	priv->enable_counter++;  in reg_clock_enable() 64 static int reg_clock_disable(struct regulator_dev *rdev)  in reg_clock_disable() 68 	clk_disable_unprepare(priv->enable_clock);  in reg_clock_disable() 69 	priv->enable_counter--;  in reg_clock_disable() 74 static int reg_domain_enable(struct regulator_dev *rdev)  in reg_domain_enable() [all …] 
 | 
| H A D | gpio-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3  * gpio-regulator.c 14  * Roger Quadros <ext-roger.quadros@nokia.com> 17  * non-controllable regulators, as well as for allowing testing on 28 #include <linux/regulator/gpio-regulator.h> 45 static int gpio_regulator_get_value(struct regulator_dev *dev)  in gpio_regulator_get_value() 50 	for (ptr = 0; ptr < data->nr_states; ptr++)  in gpio_regulator_get_value() 51 		if (data->states[ptr].gpios == data->state)  in gpio_regulator_get_value() 52 			return data->states[ptr].value;  in gpio_regulator_get_value() 54 	return -EINVAL;  in gpio_regulator_get_value() [all …] 
 | 
| /linux/drivers/misc/ocxl/ | 
| H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 static struct ocxl_fn *ocxl_fn_get(struct ocxl_fn *fn)  in ocxl_fn_get() 8 	return (get_device(&fn->dev) == NULL) ? NULL : fn;  in ocxl_fn_get() 11 static void ocxl_fn_put(struct ocxl_fn *fn)  in ocxl_fn_put() 13 	put_device(&fn->dev);  in ocxl_fn_put() 16 static struct ocxl_afu *alloc_afu(struct ocxl_fn *fn)  in alloc_afu() 24 	kref_init(&afu->kref);  in alloc_afu() 25 	mutex_init(&afu->contexts_lock);  in alloc_afu() 26 	mutex_init(&afu->afu_control_lock);  in alloc_afu() 27 	idr_init(&afu->contexts_idr);  in alloc_afu() [all …] 
 |