| /linux/tools/tracing/rtla/src/ |
| H A D | timerlat.c | 1 // SPDX-License-Identifier: GPL-2.0 23 static int dma_latency_fd = -1; 26 * timerlat_apply_config - apply common configs to the initialized tool 35 * If BPF enablement fails, fall back to tracefs mode. in timerlat_apply_config() 39 params->mode = TRACING_MODE_TRACEFS; in timerlat_apply_config() 40 } else if (!tep_find_event_by_name(tool->trace.tep, "osnoise", "timerlat_sample")) { in timerlat_apply_config() 42 params->mode = TRACING_MODE_TRACEFS; in timerlat_apply_config() 47 params->mode = TRACING_MODE_TRACEFS; in timerlat_apply_config() 51 if (params->mode != TRACING_MODE_BPF) { in timerlat_apply_config() 53 * In tracefs and mixed mode, timerlat tracer handles stopping in timerlat_apply_config() [all …]
|
| H A D | osnoise_top.c | 1 // SPDX-License-Identifier: GPL-2.0 38 * osnoise_free_top - free runtime data 42 free(data->cpu_data); in osnoise_free_top() 48 osnoise_free_top(tool->data); in osnoise_free_top_tool() 52 * osnoise_alloc_histogram - alloc runtime data 62 data->nr_cpus = nr_cpus; in osnoise_alloc_top() 65 data->cpu_data = calloc(1, sizeof(*data->cpu_data) * nr_cpus); in osnoise_alloc_top() 66 if (!data->cpu_data) in osnoise_alloc_top() 77 * osnoise_top_handler - this is the handler for osnoise tracer events 88 int cpu = record->cpu; in osnoise_top_handler() [all …]
|
| H A D | timerlat_top.c | 1 // SPDX-License-Identifier: GPL-2.0 49 * timerlat_free_top - free runtime data 53 free(data->cpu_data); in timerlat_free_top() 59 timerlat_free_top(tool->data); in timerlat_free_top_tool() 64 * timerlat_alloc_histogram - alloc runtime data 75 data->nr_cpus = nr_cpus; in timerlat_alloc_top() 78 data->cpu_data = calloc(1, sizeof(*data->cpu_data) * nr_cpus); in timerlat_alloc_top() 79 if (!data->cpu_data) in timerlat_alloc_top() 84 data->cpu_data[cpu].min_irq = ~0; in timerlat_alloc_top() 85 data->cpu_data[cpu].min_thread = ~0; in timerlat_alloc_top() [all …]
|
| H A D | timerlat_hist.c | 1 // SPDX-License-Identifier: GPL-2.0 51 * timerlat_free_histogram - free runtime data 59 for (cpu = 0; cpu < data->nr_cpus; cpu++) { in timerlat_free_histogram() 60 if (data->hist[cpu].irq) in timerlat_free_histogram() 61 free(data->hist[cpu].irq); in timerlat_free_histogram() 63 if (data->hist[cpu].thread) in timerlat_free_histogram() 64 free(data->hist[cpu].thread); in timerlat_free_histogram() 66 if (data->hist[cpu].user) in timerlat_free_histogram() 67 free(data->hist[cpu].user); in timerlat_free_histogram() 72 if (data->hist) in timerlat_free_histogram() [all …]
|
| /linux/drivers/clk/sophgo/ |
| H A D | clk-cv18xx-pll.c | 1 // SPDX-License-Identifier: GPL-2.0 6 #include <linux/clk-provider.h> 11 #include "clk-cv18xx-pll.h" 15 struct cv1800_clk_common *common = hw_to_cv1800_clk_common(hw); in hw_to_cv1800_clk_pll() local 17 return container_of(common, struct cv1800_clk_pll, common); in hw_to_cv1800_clk_pll() 39 value = readl(pll->common.base + pll->pll_reg); in ipll_recalc_rate() 58 for_each_pll_limit_range(pre, &limit->pre_div) { in ipll_find_rate() 59 for_each_pll_limit_range(div, &limit->div) { in ipll_find_rate() 60 for_each_pll_limit_range(post, &limit->post_div) { in ipll_find_rate() 66 if ((trate - tmp) < (trate - best_rate)) { in ipll_find_rate() [all …]
|
| /linux/drivers/clk/sunxi-ng/ |
| H A D | ccu_mp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Maxime Ripard <maxime.ripard@free-electrons.com> 7 #include <linux/clk-provider.h> 36 if ((rate - tmp_rate) < (rate - best_rate)) { in ccu_mp_find_best() 117 if (cmp->common.features & CCU_FEATURE_FIXED_POSTDIV) in ccu_mp_round_rate() 118 rate *= cmp->fixed_post_div; in ccu_mp_round_rate() 120 if (cmp->common.features & CCU_FEATURE_DUAL_DIV) in ccu_mp_round_rate() 123 max_m = cmp->m.max ?: 1 << cmp->m.width; in ccu_mp_round_rate() 125 max_p = cmp->p.max ?: 1 << ((1 << cmp->p.width) - 1); in ccu_mp_round_rate() 127 max_p = cmp->p.max ?: 1 << cmp->p.width; in ccu_mp_round_rate() [all …]
|
| /linux/drivers/clk/zynqmp/ |
| H A D | pll.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2016-2018 Xilinx 9 #include <linux/clk-provider.h> 11 #include "clk-zynqmp.h" 14 * struct zynqmp_pll - PLL clock 15 * @hw: Handle between common and hardware-specific interfaces 44 * zynqmp_pll_get_mode() - Get mode of PLL 45 * @hw: Handle between common and hardware-specific interfaces 47 * Return: Mode of PLL 52 u32 clk_id = clk->clk_id; in zynqmp_pll_get_mode() [all …]
|
| /linux/drivers/net/ethernet/ti/ |
| H A D | am65-cpsw-nuss.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/ 32 #include <linux/dma/ti-cppi5.h> 33 #include <linux/dma/k3-udma-glue.h> 40 #include "am65-cpsw-nuss.h" 41 #include "am65-cpsw-switchdev.h" 42 #include "k3-cppi-desc-pool.h" 43 #include "am65-cpts.h" 132 /* The PTP event messages - Sync, Delay_Req, Pdelay_Req, and Pdelay_Resp. */ 183 writel(mac_hi, slave->port_base + AM65_CPSW_PORTN_REG_SA_H); in am65_cpsw_port_set_sl_mac() [all …]
|
| /linux/drivers/net/wireless/ath/ath9k/ |
| H A D | common-spectral.c | 33 if (!spec_priv->rfs_chan_spec_scan) in ath_debug_send_fft_sample() 36 length = __be16_to_cpu(fft_sample_tlv->length) + in ath_debug_send_fft_sample() 38 relay_write(spec_priv->rfs_chan_spec_scan, fft_sample_tlv, length); in ath_debug_send_fft_sample() 55 if (bytes_read < SPECTRAL_HT20_SAMPLE_LEN - 1) in ath_cmn_max_idx_verify_ht20_fft() 56 return -1; in ath_cmn_max_idx_verify_ht20_fft() 58 mag_info = (struct ath_ht20_mag_info *) (sample_end - in ath_cmn_max_idx_verify_ht20_fft() 61 sample = sample_end - SPECTRAL_HT20_SAMPLE_LEN + 1; in ath_cmn_max_idx_verify_ht20_fft() 63 max_index = spectral_max_index_ht20(mag_info->all_bins); in ath_cmn_max_idx_verify_ht20_fft() 64 max_magnitude = spectral_max_magnitude(mag_info->all_bins); in ath_cmn_max_idx_verify_ht20_fft() 66 max_exp = mag_info->max_exp & 0xf; in ath_cmn_max_idx_verify_ht20_fft() [all …]
|
| H A D | htc_drv_main.c | 2 * Copyright (c) 2010-2011 Atheros Communications Inc. 34 enum ath9k_power_mode mode) in ath9k_htc_setpower() argument 38 mutex_lock(&priv->htc_pm_lock); in ath9k_htc_setpower() 39 ret = ath9k_hw_setpower(priv->ah, mode); in ath9k_htc_setpower() 40 mutex_unlock(&priv->htc_pm_lock); in ath9k_htc_setpower() 47 mutex_lock(&priv->htc_pm_lock); in ath9k_htc_ps_wakeup() 48 if (++priv->ps_usecount != 1) in ath9k_htc_ps_wakeup() 50 ath9k_hw_setpower(priv->ah, ATH9K_PM_AWAKE); in ath9k_htc_ps_wakeup() 53 mutex_unlock(&priv->htc_pm_lock); in ath9k_htc_ps_wakeup() 60 mutex_lock(&priv->htc_pm_lock); in ath9k_htc_ps_restore() [all …]
|
| /linux/drivers/dma/ |
| H A D | fsldma.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2007-2010 Freescale Semiconductor, Inc. All rights reserved. 18 * command. Please be aware that this setting may result in read pre-fetching 29 #include <linux/dma-mapping.h> 40 dev_dbg(chan->dev, "%s: " fmt, chan->name, ##arg) 42 dev_err(chan->dev, "%s: " fmt, chan->name, ##arg) 52 FSL_DMA_OUT(chan, &chan->regs->sr, val, 32); in set_sr() 57 return FSL_DMA_IN(chan, &chan->regs->sr, 32); in get_sr() 62 FSL_DMA_OUT(chan, &chan->regs->mr, val, 32); in set_mr() 67 return FSL_DMA_IN(chan, &chan->regs->mr, 32); in get_mr() [all …]
|
| /linux/arch/sh/include/mach-se/mach/ |
| H A D | mrshpc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 19 * PC-Card window open in mrshpc_setup_windows() 20 * flag == COMMON/ATTRIBUTE/IO in mrshpc_setup_windows() 22 /* common window open */ in mrshpc_setup_windows() 25 /* common mode & bus width 16bit SWAP = 1*/ in mrshpc_setup_windows() 28 /* common mode & bus width 16bit SWAP = 0*/ in mrshpc_setup_windows() 34 /* attribute mode & bus width 16bit SWAP = 1*/ in mrshpc_setup_windows() 37 /* attribute mode & bus width 16bit SWAP = 0*/ in mrshpc_setup_windows() 42 __raw_writew(0x0008, MRSHPC_CDCR); /* I/O card mode */ in mrshpc_setup_windows()
|
| /linux/drivers/net/wireless/ath/ |
| H A D | hw.c | 23 #define REG_READ (common->ops->read) 24 #define REG_WRITE(_ah, _reg, _val) (common->ops->write)(_ah, _val, _reg) 27 * ath_hw_setbssidmask - filter out bssids we listen 29 * @common: the ath_common struct for the device. 33 * to decide which packets to ACK. In station mode and AP mode with a single 34 * BSS every bit matters since we lock to only one BSS. In AP mode with 46 * When you do this you are essentially computing the common bits of all your 52 * BSSID-01 and BSSID-02. Lets assume BSSID-01 will not use the MAC address. 53 * There is another BSSID-03 but you are not part of it. For simplicity's sake, 58 * BSSID-01: 0100 | --> Belongs to us [all …]
|
| /linux/Documentation/devicetree/bindings/mfd/ |
| H A D | tps6105x.txt | 3 The TP61050/TPS61052 is a high-power "white LED driver". The 7 - compatible: "ti,tps61050" or "ti,tps61052" 8 - reg: Specifies the I2C slave address 10 Optional sub-node: 12 This subnode selects the chip's operational mode. 15 - regulator: presence of this sub-node puts the chip in regulator mode. 18 - led: presence of this sub-node puts the chip in led mode. 20 - function : see ../leds/common.txt 21 - color : see ../leds/common.txt 22 - label : see ../leds/common.txt [all …]
|
| /linux/net/ncsi/ |
| H A D | ncsi-cmd.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 19 #include "ncsi-pkt.h" 44 h->mc_id = 0; in ncsi_cmd_build_header() 45 h->revision = NCSI_PKT_REVISION; in ncsi_cmd_build_header() 46 h->reserved = 0; in ncsi_cmd_build_header() 47 h->id = nca->id; in ncsi_cmd_build_header() 48 h->type = nca->type; in ncsi_cmd_build_header() 49 h->channel = NCSI_TO_CHANNEL(nca->package, in ncsi_cmd_build_header() 50 nca->channel); in ncsi_cmd_build_header() 51 h->length = htons(nca->payload); in ncsi_cmd_build_header() [all …]
|
| H A D | ncsi-rsp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 19 #include "ncsi-pkt.h" 20 #include "ncsi-netlink.h" 46 h = (struct ncsi_rsp_pkt_hdr *)skb_network_header(nr->rsp); in ncsi_validate_rsp_pkt() 48 if (h->common.revision != NCSI_PKT_REVISION) { in ncsi_validate_rsp_pkt() 49 netdev_dbg(nr->ndp->ndev.dev, in ncsi_validate_rsp_pkt() 51 return -EINVAL; in ncsi_validate_rsp_pkt() 53 if (ntohs(h->common.length) != payload) { in ncsi_validate_rsp_pkt() 54 netdev_dbg(nr->ndp->ndev.dev, in ncsi_validate_rsp_pkt() 56 return -EINVAL; in ncsi_validate_rsp_pkt() [all …]
|
| H A D | ncsi-pkt.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 11 unsigned char revision; /* NCSI version - 0x01 */ 21 struct ncsi_pkt_hdr common; /* Common NCSI packet header */ member 25 struct ncsi_pkt_hdr common; /* Common NCS member 31 struct ncsi_pkt_hdr common; /* Common NCSI packet header */ global() member 80 __be32 mode; /* AEN working mode */ global() member 88 __be32 mode; /* Link working mode */ global() member 110 unsigned char mode; /* VLAN filter mode */ global() member 128 __be32 mode; /* Filter mode */ global() member 136 __be32 mode; /* Global MC mode */ global() member 145 unsigned char mode; /* Flow control mode */ global() member [all...] |
| /linux/drivers/iio/adc/ |
| H A D | ad4030.c | 1 // SPDX-License-Identifier: GPL-2.0-only 109 #define AD4030_TCYC_ADJUSTED_NS (AD4030_TCYC_NS - AD4030_TCNVL_NS) 112 #define AD4632_TCYC_ADJUSTED_NS (AD4632_TCYC_NS - AD4030_TCNVL_NS) 155 enum ad4030_out_mode mode; member 166 u8 common; member 170 u8 common[2]; member 176 * For a chip with 2 hardware channel this will be used to create 2 common-mode 178 * - voltage4 179 * - voltage5 180 * As the common-mode channels are after the differential ones, we compute the [all …]
|
| /linux/drivers/net/ethernet/qlogic/qede/ |
| H A D | qede_main.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 3 * Copyright (c) 2015-2017 QLogic Corporation 4 * Copyright (c) 2019-2020 Marvell International Ltd. 17 #include <linux/dma-mapping.h> 125 return -EINVAL; in qede_set_vf_vlan() 129 return -EPROTONOSUPPORT; in qede_set_vf_vlan() 134 return edev->ops->iov->set_vlan(edev->cdev, vlan, vf); in qede_set_vf_vlan() 145 return -EINVAL; in qede_set_vf_mac() 148 return edev->ops->iov->set_mac(edev->cdev, mac, vfidx); in qede_set_vf_mac() 154 struct qed_dev_info *qed_info = &edev->dev_info.common; in qede_sriov_configure() [all …]
|
| /linux/drivers/net/ethernet/brocade/bna/ |
| H A D | bfi.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Linux network driver for QLogic BR-series Converged Network Adapter. 6 * Copyright (c) 2005-2014 Brocade Communications Systems, Inc. 7 * Copyright (c) 2014-2015 QLogic Corporation 21 /* Msg header common to all msgs */ 35 #define bfi_mhdr_2_fn(_mh) ((_mh)->mtag.h2i.fn_lpu >> 1) 36 #define bfi_mhdr_2_qid(_mh) ((_mh)->mtag.h2i.qid) 51 * Message opcodes: 0-127 to firmware, 128-255 to host 71 /* Generic DMA addr-len pair. */ 78 * Large Message structure - 128 Bytes size Msgs [all …]
|
| /linux/Documentation/devicetree/bindings/clock/ |
| H A D | silabs,si5341.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Mike Looijmans <mike.looijmans@topic.nl> 18 https://www.silabs.com/documents/public/data-sheets/Si5341-40-D-DataSheet.pdf 20 https://www.silabs.com/documents/public/reference-manuals/Si5341-40-D-RM.pdf 22 https://www.silabs.com/documents/public/reference-manuals/Si5345-44-42-D-RM.pdf 32 The driver can be used in "as is" mode, reading the current settings from the 33 chip at boot, in case you have a (pre-)programmed device. If the PLL is not 42 - silabs,si5340 [all …]
|
| /linux/Documentation/devicetree/bindings/leds/ |
| H A D | leds-lm3601x.txt | 1 * Texas Instruments - lm3601x Single-LED Flash Driver 3 The LM3601X are ultra-small LED flash drivers that 7 - compatible : Can be one of the following 10 - reg : I2C slave address 11 - #address-cells : 1 12 - #size-cells : 0 15 - reg : 0 - Indicates a IR mode 16 1 - Indicates a Torch (white LED) mode 19 See Documentation/devicetree/bindings/leds/common.txt 20 - flash-max-microamp : Range from 11mA - 1.5A [all …]
|
| /linux/arch/arm64/kernel/ |
| H A D | stacktrace.c | 1 // SPDX-License-Identifier: GPL-2.0-only 42 * @common: Common unwind state. 50 struct unwind_state common; member 65 unwind_init_common(&state->common); in kunwind_init() 66 state->task = task; in kunwind_init() 67 state->source = KUNWIND_SOURCE_UNKNOWN; in kunwind_init() 68 state->flags.all = 0; in kunwind_init() 69 state->regs = NULL; in kunwind_init() 85 state->regs = regs; in kunwind_init_from_regs() 86 state->common.fp = regs->regs[29]; in kunwind_init_from_regs() [all …]
|
| /linux/arch/arm/mach-omap2/ |
| H A D | vc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 19 #include "prm-regbits-34xx.h" 20 #include "prm-regbits-44xx.h" 52 * struct omap_vc_channel_cfg - describe the cfg_channel bitfield 59 * Channel configuration bits, common for OMAP3+ 101 * omap_vc_config_channel - configure VC channel to PMIC mappings 106 * - i2c slave address (SA) 107 * - voltage configuration address (RAV) 108 * - command configuration address (RAC) and enable bit (RACEN) 109 * - command values for ON, ONLP, RET and OFF (CMD) [all …]
|
| /linux/drivers/net/wireless/ath/ath5k/ |
| H A D | pcu.c | 2 * Copyright (c) 2004-2008 Reyk Floeter <reyk@openbsd.org> 3 * Copyright (c) 2006-2008 Nick Kossifidis <mickflemm@gmail.com> 4 * Copyright (c) 2007-2008 Matthew W. S. Bell <mentor@madwifi.org> 5 * Copyright (c) 2007-2008 Luis Rodriguez <mcgrof@winlab.rutgers.edu> 6 * Copyright (c) 2007-2008 Pavel Roskin <proski@gnu.org> 7 * Copyright (c) 2007-2008 Jiri Slaby <jirislaby@gmail.com> 40 * - Buffering of RX and TX frames (after QCU/DCUs) 42 * - Encrypting and decrypting (using the built-in engine) 44 * - Generating ACKs, RTS/CTS frames 46 * - Maintaining TSF [all …]
|