Home
last modified time | relevance | path

Searched +full:cfg +full:- (Results 1 – 25 of 1133) sorted by relevance

12345678910>>...46

/Linux-v6.1/drivers/media/platform/samsung/exynos-gsc/
Dgsc-regs.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (c) 2011 - 2012 Samsung Electronics Co., Ltd.
6 * Samsung EXYNOS5 SoC series G-Scaler driver
12 #include "gsc-core.h"
16 writel(GSC_SW_RESET_SRESET, dev->regs + GSC_SW_RESET); in gsc_hw_set_sw_reset()
22 u32 cfg; in gsc_wait_reset() local
25 cfg = readl(dev->regs + GSC_SW_RESET); in gsc_wait_reset()
26 if (!cfg) in gsc_wait_reset()
31 return -EBUSY; in gsc_wait_reset()
36 u32 cfg; in gsc_hw_set_frm_done_irq_mask() local
[all …]
/Linux-v6.1/drivers/media/platform/samsung/exynos4-is/
Dfimc-reg.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2010 - 2013 Samsung Electronics Co., Ltd.
13 #include <media/drv-intf/exynos-fimc.h>
14 #include "media-dev.h"
16 #include "fimc-reg.h"
17 #include "fimc-core.h"
21 u32 cfg; in fimc_hw_reset() local
23 cfg = readl(dev->regs + FIMC_REG_CISRCFMT); in fimc_hw_reset()
24 cfg |= FIMC_REG_CISRCFMT_ITU601_8BIT; in fimc_hw_reset()
25 writel(cfg, dev->regs + FIMC_REG_CISRCFMT); in fimc_hw_reset()
[all …]
Dfimc-lite-reg.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Register interface file for EXYNOS FIMC-LITE (camera interface) driver
12 #include <media/drv-intf/exynos-fimc.h>
14 #include "fimc-lite-reg.h"
15 #include "fimc-lite.h"
16 #include "fimc-core.h"
23 u32 cfg; in flite_hw_reset() local
25 cfg = readl(dev->regs + FLITE_REG_CIGCTRL); in flite_hw_reset()
26 cfg |= FLITE_REG_CIGCTRL_SWRST_REQ; in flite_hw_reset()
27 writel(cfg, dev->regs + FLITE_REG_CIGCTRL); in flite_hw_reset()
[all …]
/Linux-v6.1/drivers/phy/
Dphy-core-mipi-dphy.c1 /* SPDX-License-Identifier: GPL-2.0 */
13 #include <linux/phy/phy-mipi-dphy.h>
16 * Minimum D-PHY timings based on MIPI D-PHY specification. Derived
18 * of the D-PHY specification (v1.2).
23 struct phy_configure_opts_mipi_dphy *cfg) in phy_mipi_dphy_get_default_config() argument
28 if (!cfg) in phy_mipi_dphy_get_default_config()
29 return -EINVAL; in phy_mipi_dphy_get_default_config()
37 cfg->clk_miss = 0; in phy_mipi_dphy_get_default_config()
38 cfg->clk_post = 60000 + 52 * ui; in phy_mipi_dphy_get_default_config()
39 cfg->clk_pre = 8; in phy_mipi_dphy_get_default_config()
[all …]
/Linux-v6.1/drivers/media/platform/samsung/s3c-camif/
Dcamif-regs.c1 // SPDX-License-Identifier: GPL-2.0-only
11 #include "camif-regs.h"
13 #define camif_write(_camif, _off, _val) writel(_val, (_camif)->io_base + (_off))
14 #define camif_read(_camif, _off) readl((_camif)->io_base + (_off))
18 u32 cfg; in camif_hw_reset() local
20 cfg = camif_read(camif, S3C_CAMIF_REG_CISRCFMT); in camif_hw_reset()
21 cfg |= CISRCFMT_ITU601_8BIT; in camif_hw_reset()
22 camif_write(camif, S3C_CAMIF_REG_CISRCFMT, cfg); in camif_hw_reset()
25 cfg = camif_read(camif, S3C_CAMIF_REG_CIGCTRL); in camif_hw_reset()
26 cfg |= CIGCTRL_SWRST; in camif_hw_reset()
[all …]
/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/
Dcore_extern.c1 // SPDX-License-Identifier: GPL-2.0
21 #define CFG "CONFIG_BPF_SYSCALL=n\n" macro
25 const char *cfg; member
32 .cfg = "CONFIG_BPF_SYSCALL=n\n"
54 { .name = "tristate (y)", .cfg = CFG"CONFIG_TRISTATE=y\n",
56 { .name = "tristate (n)", .cfg = CFG"CONFIG_TRISTATE=n\n",
58 { .name = "tristate (m)", .cfg = CFG"CONFIG_TRISTATE=m\n",
60 { .name = "tristate (int)", .fails = 1, .cfg = CFG"CONFIG_TRISTATE=1" },
61 { .name = "tristate (bad)", .fails = 1, .cfg = CFG"CONFIG_TRISTATE=M" },
63 { .name = "bool (y)", .cfg = CFG"CONFIG_BOOL=y\n",
[all …]
/Linux-v6.1/drivers/pci/
Decam.c1 // SPDX-License-Identifier: GPL-2.0
11 #include <linux/pci-ecam.h>
15 * On 64-bit systems, we do a single ioremap for the whole config space
16 * since we have enough virtual address range available. On 32-bit, we
23 * - reserve mem region
24 * - alloc struct pci_config_window with space for all mappings
25 * - ioremap the config space
31 unsigned int bus_shift = ops->bus_shift; in pci_ecam_create()
32 struct pci_config_window *cfg; in pci_ecam_create() local
37 if (busr->start > busr->end) in pci_ecam_create()
[all …]
/Linux-v6.1/drivers/net/ethernet/marvell/octeontx2/af/
Drpm.c1 // SPDX-License-Identifier: GPL-2.0
65 u64 cfg, last; in rpm_lmac_tx_enable() local
68 return -ENODEV; in rpm_lmac_tx_enable()
70 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_tx_enable()
71 last = cfg; in rpm_lmac_tx_enable()
73 cfg |= RPM_TX_EN; in rpm_lmac_tx_enable()
75 cfg &= ~(RPM_TX_EN); in rpm_lmac_tx_enable()
77 if (cfg != last) in rpm_lmac_tx_enable()
78 rpm_write(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG, cfg); in rpm_lmac_tx_enable()
85 u64 cfg; in rpm_lmac_rx_tx_enable() local
[all …]
Dcgx.c1 // SPDX-License-Identifier: GPL-2.0
24 #define DRV_NAME "Marvell-CGX/RPM"
76 return (cgx->pdev->device == PCI_DEVID_CN10K_RPM); in is_dev_rpm()
83 return test_bit(lmac_id, &cgx->lmac_bmap); in is_lmac_valid()
93 for_each_set_bit(tmp, &cgx->lmac_bmap, MAX_LMAC_PER_CGX) { in get_sequence_id_of_lmac()
107 return ((struct cgx *)cgxd)->mac_ops; in get_mac_ops()
112 writeq(val, cgx->reg_base + (lmac << cgx->mac_ops->lmac_offset) + in cgx_write()
118 return readq(cgx->reg_base + (lmac << cgx->mac_ops->lmac_offset) + in cgx_read()
127 return cgx->lmac_idmap[lmac_id]; in lmac_pdata()
133 int idmax = -ENODEV; in cgx_get_cgxcnt_max()
[all …]
/Linux-v6.1/drivers/net/ethernet/marvell/octeon_ep/
Doctep_config.h1 /* SPDX-License-Identifier: GPL-2.0 */
48 #define OCTEP_MAX_MTU (10000 - (ETH_HLEN + ETH_FCS_LEN))
53 #define CFG_GET_IQ_CFG(cfg) ((cfg)->iq) argument
54 #define CFG_GET_IQ_NUM_DESC(cfg) ((cfg)->iq.num_descs) argument
55 #define CFG_GET_IQ_INSTR_TYPE(cfg) ((cfg)->iq.instr_type) argument
56 #define CFG_GET_IQ_PKIND(cfg) ((cfg)->iq.pkind) argument
57 #define CFG_GET_IQ_INSTR_SIZE(cfg) (64) argument
58 #define CFG_GET_IQ_DB_MIN(cfg) ((cfg)->iq.db_min) argument
59 #define CFG_GET_IQ_INTR_THRESHOLD(cfg) ((cfg)->iq.intr_threshold) argument
61 #define CFG_GET_OQ_NUM_DESC(cfg) ((cfg)->oq.num_descs) argument
[all …]
/Linux-v6.1/sound/pci/hda/
Dhda_auto_parser.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * BIOS auto-parser helper functions for HD-audio
38 return (int)(a->seq - b->seq); in compare_seq()
55 /* add the found input-pin to the cfg->inputs[] table */
56 static void add_auto_cfg_input_pin(struct hda_codec *codec, struct auto_pin_cfg *cfg, in add_auto_cfg_input_pin() argument
59 if (cfg->num_inputs < AUTO_CFG_MAX_INS) { in add_auto_cfg_input_pin()
60 cfg->inputs[cfg->num_inputs].pin = nid; in add_auto_cfg_input_pin()
61 cfg->inputs[cfg->num_inputs].type = type; in add_auto_cfg_input_pin()
62 cfg->inputs[cfg->num_inputs].has_boost_on_pin = in add_auto_cfg_input_pin()
64 cfg->num_inputs++; in add_auto_cfg_input_pin()
[all …]
/Linux-v6.1/drivers/gpu/drm/exynos/
Dexynos_drm_fimc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
26 #include "regs-fimc.h"
115 return readl(ctx->regs + reg); in fimc_read()
120 writel(val, ctx->regs + reg); in fimc_write()
125 void __iomem *r = ctx->regs + reg; in fimc_set_bits()
132 void __iomem *r = ctx->regs + reg; in fimc_clear_bits()
139 u32 cfg; in fimc_sw_reset() local
142 cfg = fimc_read(ctx, EXYNOS_CISTATUS); in fimc_sw_reset()
143 if (EXYNOS_CISTATUS_GET_ENVID_STATUS(cfg)) in fimc_sw_reset()
164 u32 cfg; in fimc_set_type_ctrl() local
[all …]
Dexynos_drm_gsc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
25 #include "regs-gsc.h"
64 #define gsc_read(offset) readl(ctx->regs + (offset))
65 #define gsc_write(cfg, offset) writel(cfg, ctx->regs + (offset)) argument
116 * struct gsc_driverdata - per device type driver data for init time.
130 /* 8-tap Filter Coefficient */
134 { -1, 2, -6, 127, 7, -2, 1, 0 },
135 { -1, 4, -12, 125, 16, -5, 1, 0 },
136 { -1, 5, -15, 120, 25, -8, 2, 0 },
137 { -1, 6, -18, 114, 35, -10, 3, -1 },
[all …]
/Linux-v6.1/drivers/gpu/drm/msm/hdmi/
Dhdmi_phy_8996.c1 // SPDX-License-Identifier: GPL-2.0-only
6 #include <linux/clk-provider.h>
83 return platform_get_drvdata(pll->pdev); in pll_get_phy()
89 msm_writel(data, pll->mmio_qserdes_com + offset); in hdmi_pll_write()
94 return msm_readl(pll->mmio_qserdes_com + offset); in hdmi_pll_read()
100 msm_writel(data, pll->mmio_qserdes_tx[channel] + offset); in hdmi_tx_chan_write()
154 return dividend - 1; in pll_get_pll_cmp()
179 vco_optimal_index = -1; in pll_get_post_div()
201 if (vco_optimal_index == -1) { in pll_get_post_div()
207 pd->vco_freq = vco_optimal; in pll_get_post_div()
[all …]
/Linux-v6.1/arch/x86/pci/
Dmmconfig-shared.c1 // SPDX-License-Identifier: GPL-2.0
3 * mmconfig-shared.c - Low-level direct PCI config space access via
4 * MMCONFIG - common code between i386 and x86-64.
7 * - known chipset handling
8 * - ACPI decoding and validation
10 * Per-architecture code takes care of the mappings and accesses
36 static void __init pci_mmconfig_remove(struct pci_mmcfg_region *cfg) in pci_mmconfig_remove() argument
38 if (cfg->res.parent) in pci_mmconfig_remove()
39 release_resource(&cfg->res); in pci_mmconfig_remove()
40 list_del(&cfg->list); in pci_mmconfig_remove()
[all …]
Dmmconfig_64.c1 // SPDX-License-Identifier: GPL-2.0
3 * mmconfig.c - Low-level direct PCI config space access via MMCONFIG
21 struct pci_mmcfg_region *cfg = pci_mmconfig_lookup(seg, bus); in pci_dev_base() local
23 if (cfg && cfg->virt) in pci_dev_base()
24 return cfg->virt + (PCI_MMCFG_BUS_OFFSET(bus) | (devfn << 12)); in pci_dev_base()
33 /* Why do we have this when nobody checks it. How about a BUG()!? -AK */ in pci_mmcfg_read()
35 err: *value = -1; in pci_mmcfg_read()
36 return -EINVAL; in pci_mmcfg_read()
67 /* Why do we have this when nobody checks it. How about a BUG()!? -AK */ in pci_mmcfg_write()
69 return -EINVAL; in pci_mmcfg_write()
[all …]
/Linux-v6.1/drivers/net/wireless/microchip/wilc1000/
Dwlan_cfg.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2012 - 2018 Microchip Technology Inc., and its subsidiaries.
142 struct wilc_cfg *cfg = &wl->cfg; in wilc_wlan_parse_response_frame() local
150 while (cfg->b[i].id != WID_NIL && cfg->b[i].id != wid) in wilc_wlan_parse_response_frame()
153 if (cfg->b[i].id == wid) in wilc_wlan_parse_response_frame()
154 cfg->b[i].val = info[4]; in wilc_wlan_parse_response_frame()
160 while (cfg->hw[i].id != WID_NIL && cfg->hw[i].id != wid) in wilc_wlan_parse_response_frame()
163 if (cfg->hw[i].id == wid) in wilc_wlan_parse_response_frame()
164 cfg->hw[i].val = get_unaligned_le16(&info[4]); in wilc_wlan_parse_response_frame()
170 while (cfg->w[i].id != WID_NIL && cfg->w[i].id != wid) in wilc_wlan_parse_response_frame()
[all …]
/Linux-v6.1/drivers/net/ethernet/cavium/liquidio/
Docteon_config.h7 * Copyright (c) 2003-2016 Cavium, Inc.
14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
25 /*--------------------------CONFIG VALUES------------------------*/
121 #define CFG_GET_IQ_CFG(cfg) ((cfg)->iq) argument
122 #define CFG_GET_IQ_MAX_Q(cfg) ((cfg)->iq.max_iqs) argument
123 #define CFG_GET_IQ_PENDING_LIST_SIZE(cfg) ((cfg)->iq.pending_list_size) argument
124 #define CFG_GET_IQ_INSTR_TYPE(cfg) ((cfg)->iq.instr_type) argument
125 #define CFG_GET_IQ_DB_MIN(cfg) ((cfg)->iq.db_min) argument
126 #define CFG_GET_IQ_DB_TIMEOUT(cfg) ((cfg)->iq.db_timeout) argument
128 #define CFG_GET_IQ_INTR_PKT(cfg) ((cfg)->iq.iq_intr_pkt) argument
[all …]
/Linux-v6.1/drivers/scsi/cxlflash/
Dmain.c1 // SPDX-License-Identifier: GPL-2.0-or-later
36 * process_cmd_err() - command error handler
44 struct afu *afu = cmd->parent; in process_cmd_err()
45 struct cxlflash_cfg *cfg = afu->parent; in process_cmd_err() local
46 struct device *dev = &cfg->dev->dev; in process_cmd_err()
50 ioasa = &(cmd->sa); in process_cmd_err()
52 if (ioasa->rc.flags & SISL_RC_FLAGS_UNDERRUN) { in process_cmd_err()
53 resid = ioasa->resid; in process_cmd_err()
59 if (ioasa->rc.flags & SISL_RC_FLAGS_OVERRUN) { in process_cmd_err()
62 scp->result = (DID_ERROR << 16); in process_cmd_err()
[all …]
/Linux-v6.1/drivers/staging/media/atomisp/pci/runtime/isys/src/
Dvirtual_isys.c1 // SPDX-License-Identifier: GPL-2.0
36 isp2401_input_system_cfg_t *cfg,
44 isp2401_input_system_cfg_t *cfg,
104 pixelgen_tpg_cfg_t *cfg);
110 pixelgen_prbs_cfg_t *cfg);
114 csi_rx_frontend_cfg_t *cfg);
120 csi_rx_backend_cfg_t *cfg);
125 stream2mmio_cfg_t *cfg);
131 ibuf_ctrl_cfg_t *cfg);
136 isys2401_dma_cfg_t *cfg);
[all …]
/Linux-v6.1/sound/soc/intel/avs/
Dpath.c1 // SPDX-License-Identifier: GPL-2.0-only
9 #include <sound/intel-nhlt.h>
16 /* Must be called with adev->comp_list_mutex held. */
22 list_for_each_entry(acomp, &adev->comp_list, node) in avs_path_find_tplg()
23 if (!strcmp(acomp->tplg->name, name)) in avs_path_find_tplg()
24 return acomp->tplg; in avs_path_find_tplg()
33 list_for_each_entry(mod, &ppl->mod_list, node) in avs_path_find_module()
34 if (mod->template->id == template_id) in avs_path_find_module()
44 list_for_each_entry(ppl, &path->ppl_list, node) in avs_path_find_pipeline()
45 if (ppl->template->id == template_id) in avs_path_find_pipeline()
[all …]
/Linux-v6.1/arch/loongarch/pci/
Dacpi.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
10 #include <linux/pci-acpi.h>
11 #include <linux/pci-ecam.h>
19 struct pci_config_window *cfg; member
29 struct pci_config_window *cfg = bridge->bus->sysdata; in pcibios_root_bridge_prepare() local
30 struct acpi_device *adev = to_acpi_device(cfg->parent); in pcibios_root_bridge_prepare()
31 struct device *bus_dev = &bridge->bus->dev; in pcibios_root_bridge_prepare()
33 ACPI_COMPANION_SET(&bridge->dev, adev); in pcibios_root_bridge_prepare()
34 set_dev_node(bus_dev, pa_to_nid(cfg->res.start)); in pcibios_root_bridge_prepare()
[all …]
/Linux-v6.1/drivers/net/ethernet/cavium/thunder/
Dthunder_xcv.c1 // SPDX-License-Identifier: GPL-2.0-only
67 u64 cfg; in xcv_init_hw() local
70 cfg = readq_relaxed(xcv->reg_base + XCV_RESET); in xcv_init_hw()
71 cfg &= ~DLL_RESET; in xcv_init_hw()
72 writeq_relaxed(cfg, xcv->reg_base + XCV_RESET); in xcv_init_hw()
75 cfg = readq_relaxed(xcv->reg_base + XCV_RESET); in xcv_init_hw()
76 cfg &= ~CLK_RESET; in xcv_init_hw()
77 writeq_relaxed(cfg, xcv->reg_base + XCV_RESET); in xcv_init_hw()
81 /* Configure DLL - enable or bypass in xcv_init_hw()
84 cfg = readq_relaxed(xcv->reg_base + XCV_DLL_CTL); in xcv_init_hw()
[all …]
/Linux-v6.1/drivers/net/wwan/t7xx/
Dt7xx_pcie_mac.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (c) 2021-2022, Intel Corporation.
20 #include <linux/io-64-nonatomic-lo-hi.h>
82 static int t7xx_pcie_mac_atr_cfg(struct t7xx_pci_dev *t7xx_dev, struct t7xx_atr_config *cfg) in t7xx_pcie_mac_atr_cfg() argument
84 struct device *dev = &t7xx_dev->pdev->dev; in t7xx_pcie_mac_atr_cfg()
90 if (cfg->transparent) { in t7xx_pcie_mac_atr_cfg()
94 if (cfg->src_addr & (cfg->size - 1)) { in t7xx_pcie_mac_atr_cfg()
96 return -EINVAL; in t7xx_pcie_mac_atr_cfg()
99 if (cfg->trsl_addr & (cfg->size - 1)) { in t7xx_pcie_mac_atr_cfg()
101 cfg->trsl_addr, cfg->size - 1); in t7xx_pcie_mac_atr_cfg()
[all …]
/Linux-v6.1/drivers/leds/
Dleds-lp55xx-common.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * Derived from leds-lp5521.c, leds-lp5523.c
18 #include <linux/platform_data/leds-lp55xx.h>
22 #include "leds-lp55xx-common.h"
44 struct lp55xx_device_config *cfg = chip->cfg; in lp55xx_reset_device() local
45 u8 addr = cfg->reset.addr; in lp55xx_reset_device()
46 u8 val = cfg->reset.val; in lp55xx_reset_device()
54 struct lp55xx_device_config *cfg = chip->cfg; in lp55xx_detect_device() local
55 u8 addr = cfg->enable.addr; in lp55xx_detect_device()
56 u8 val = cfg->enable.val; in lp55xx_detect_device()
[all …]

12345678910>>...46