/linux-6.14.4/drivers/hwtracing/coresight/ |
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 …]
|
D | coresight-etm4x-sysfs.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include "coresight-etm4x.h" 11 #include "coresight-priv.h" 12 #include "coresight-syscfg.h" 14 static int etm4_set_mode_exclude(struct etmv4_drvdata *drvdata, bool exclude) in etm4_set_mode_exclude() 17 struct etmv4_config *config = &drvdata->config; in etm4_set_mode_exclude() local 19 idx = config->addr_idx; in etm4_set_mode_exclude() 25 if (FIELD_GET(TRCACATRn_TYPE_MASK, config->addr_acc[idx]) == TRCACATRn_TYPE_ADDR) { in etm4_set_mode_exclude() 27 return -EINVAL; in etm4_set_mode_exclude() 34 if (config->addr_type[idx] != ETM_ADDR_TYPE_RANGE || in etm4_set_mode_exclude() [all …]
|
D | coresight-cti-sysfs.c | 1 // SPDX-License-Identifier: GPL-2.0 15 #include "coresight-cti.h" 18 * Declare the number of static declared attribute groups 25 * include\dt-bindings\arm\coresight-cti-dt.h 27 static const char * const sig_type_names[] = { 70 static const char * const con_attr_names[CTI_CON_ATTR_MAX] = { 79 static ssize_t enable_show(struct device *dev, in enable_show() 85 struct cti_drvdata *drvdata = dev_get_drvdata(dev->parent); in enable_show() 87 spin_lock(&drvdata->spinlock); in enable_show() 88 enable_req = drvdata->config.enable_req_count; in enable_show() [all …]
|
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 …]
|
D | coresight-etm3x-core.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2011-2012, The Linux Foundation. All rights reserved. 25 #include <linux/coresight-pmu.h> 33 #include "coresight-etm.h" 34 #include "coresight-etm-perf.h" 35 #include "coresight-trace-id.h" 41 static int boot_enable; 44 static struct etm_drvdata *etmdrvdata[NR_CPUS]; 46 static enum cpuhp_state hp_online; 53 static void etm_os_unlock(struct etm_drvdata *drvdata) in etm_os_unlock() [all …]
|
/linux-6.14.4/lib/ |
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 35 static bool force_init_test = false; 43 static DEFINE_MUTEX(reg_dev_mutex); 44 static LIST_HEAD(reg_test_devs); 50 static int num_test_devs; 53 * enum kmod_test_case - linker table test case 83 * struct kmod_test_device_info - thread info 92 * (module_put(fs_sync->owner)) when done, otherwise you will not be able 93 * to unload the respective modules and re-test. We use this to keep [all …]
|
/linux-6.14.4/tools/perf/util/ |
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-6.14.4/drivers/rtc/ |
D | rtc-spear.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * drivers/rtc/rtc-spear.c 6 * Rajeev Kumar<rajeev-[email protected]> 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 …]
|
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-6.14.4/drivers/staging/media/atomisp/pci/ |
D | ia_css_isp_params.c | 1 // SPDX-License-Identifier: GPL-2.0 60 static void 67 stage->binary->info->mem_offsets.offsets.param->dmem.aa.size; in ia_css_process_aa() 69 stage->binary->info->mem_offsets.offsets.param->dmem.aa.offset; in ia_css_process_aa() 73 … &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset]; in ia_css_process_aa() 74 t->strength = params->aa_config.strength; in ia_css_process_aa() 80 static void 90 stage->binary->info->mem_offsets.offsets.param->dmem.anr.size; in ia_css_process_anr() 93 stage->binary->info->mem_offsets.offsets.param->dmem.anr.offset; in ia_css_process_anr() 100 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset], in ia_css_process_anr() [all …]
|
/linux-6.14.4/sound/soc/sof/ |
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-6.14.4/drivers/net/ethernet/mellanox/mlxsw/ |
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-6.14.4/drivers/iio/adc/ |
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-6.14.4/drivers/media/pci/mgb4/ |
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-6.14.4/arch/x86/events/intel/ |
D | uncore_nhmex.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Nehalem-EX/Westmere-EX uncore support */ 6 /* NHM-EX event control */ 21 /* NHM-EX Ubox */ 36 /* NHM-EX Cbox */ 42 /* NHM-EX Bbox */ 63 /* NHM-EX Sbox */ 78 /* NHM-EX Mbox */ 122 #define NHMEX_M_PMON_ZDP_CTL_FVC_MASK (((1 << 11) - 1) | (1 << 23)) 125 #define WSMEX_M_PMON_ZDP_CTL_FVC_MASK (((1 << 12) - 1) | (1 << 24)) [all …]
|
/linux-6.14.4/fs/overlayfs/ |
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); 64 static const struct constant_table ovl_parameter_bool[] = { 70 static const struct constant_table ovl_parameter_uuid[] = { 78 static const char *ovl_uuid_mode(struct ovl_config *config) in ovl_uuid_mode() argument [all …]
|
/linux-6.14.4/drivers/vdpa/ |
D | vdpa.c | 1 // SPDX-License-Identifier: GPL-2.0-only 19 static LIST_HEAD(mdev_head); 21 static DECLARE_RWSEM(vdpa_dev_lock); 22 static DEFINE_IDA(vdpa_index_ida); 26 down_write(&vdev->cf_lock); in vdpa_set_status() 27 vdev->config->set_status(vdev, status); in vdpa_set_status() 28 up_write(&vdev->cf_lock); in vdpa_set_status() 32 static struct genl_family vdpa_nl_family; 34 static int vdpa_dev_probe(struct device *d) in vdpa_dev_probe() 37 struct vdpa_driver *drv = drv_to_vdpa(vdev->dev.driver); in vdpa_dev_probe() [all …]
|
/linux-6.14.4/tools/testing/selftests/arm64/fp/ |
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-6.14.4/drivers/block/ |
D | nbd.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Network block device - make block devices work over TCP 6 * deadlocks sometimes - you can not swap over TCP in general. 8 * Copyright 1997-2000, 2008 Pavel Machek <[email protected]> 40 #include <linux/blk-mq.h> 46 #include <linux/nbd-netlink.h> 52 static DEFINE_IDR(nbd_index_idr); 53 static DEFINE_MUTEX(nbd_index_mutex); 54 static struct workqueue_struct *nbd_del_wq; 55 static int nbd_total_devices = 0; [all …]
|
/linux-6.14.4/drivers/staging/gpib/pc2/ |
D | pc2_gpib.c | 1 // SPDX-License-Identifier: GPL-2.0 13 #include <linux/dma-mapping.h> 28 static const int pc2_iosize = 8; 29 static const int pc2a_iosize = 8; 30 static const int pc2_2a_iosize = 16; 33 static const int pc2a_reg_offset = 0x400; 34 static const int pc2_reg_offset = 1; 37 static irqreturn_t pc2_interrupt(int irq, void *arg); 38 static irqreturn_t pc2a_interrupt(int irq, void *arg); 43 static const int pc2a_clear_intr_iobase = 0x2f0; [all …]
|
/linux-6.14.4/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_phylink.c | 1 // SPDX-License-Identifier: GPL-2.0+ 11 static struct phylink_pcs *lan966x_phylink_mac_select(struct phylink_config *config, in lan966x_phylink_mac_select() argument 14 struct lan966x_port *port = netdev_priv(to_net_dev(config->dev)); in lan966x_phylink_mac_select() 16 return &port->phylink_pcs; in lan966x_phylink_mac_select() 19 static void lan966x_phylink_mac_config(struct phylink_config *config, in lan966x_phylink_mac_config() argument 25 static int lan966x_phylink_mac_prepare(struct phylink_config *config, in lan966x_phylink_mac_prepare() argument 29 struct lan966x_port *port = netdev_priv(to_net_dev(config->dev)); in lan966x_phylink_mac_prepare() 33 if (port->serdes) { in lan966x_phylink_mac_prepare() 34 err = phy_set_mode_ext(port->serdes, PHY_MODE_ETHERNET, in lan966x_phylink_mac_prepare() 37 netdev_err(to_net_dev(config->dev), in lan966x_phylink_mac_prepare() [all …]
|
/linux-6.14.4/arch/arm/mach-omap1/ |
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-6.14.4/drivers/md/dm-vdo/ |
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-6.14.4/include/linux/ |
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-6.14.4/drivers/gpu/drm/amd/amdgpu/ |
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 …]
|