Home
last modified time | relevance | path

Searched +full:3 +full:base +full:- +full:x (Results 1 – 25 of 1055) sorted by relevance

12345678910>>...43

/Linux-v6.1/drivers/clk/berlin/
Dberlin2-avpll.c1 // SPDX-License-Identifier: GPL-2.0
6 * Alexandre Belloni <alexandre.belloni@free-electrons.com>
8 #include <linux/clk-provider.h>
15 #include "berlin2-avpll.h"
19 * VCO with 8 channels each, channel 8 is the odd-one-out and does
31 #define AVPLL_CTRL(x) ((x) * 0x4) argument
40 #define VCO_REG1V45_SEL(x) ((x) << VCO_REG1V45_SEL_SHIFT) argument
44 #define VCO_REG1V45_SEL_1V55 VCO_REG1V45_SEL(3)
45 #define VCO_REG1V45_SEL_MASK VCO_REG1V45_SEL(3)
49 #define VCO_VTHCAL(x) ((x) << VCO_VTHCAL_SHIFT) argument
[all …]
/Linux-v6.1/drivers/rtc/
Drtc-88pm80x.c1 // SPDX-License-Identifier: GPL-2.0
53 regmap_update_bits(info->map, PM800_RTC_CONTROL, mask | PM800_ALARM1_EN, in rtc_update_handler()
55 rtc_update_irq(info->rtc_dev, 1, RTC_AF); in rtc_update_handler()
64 regmap_update_bits(info->map, PM800_RTC_CONTROL, in pm80x_rtc_alarm_irq_enable()
67 regmap_update_bits(info->map, PM800_RTC_CONTROL, in pm80x_rtc_alarm_irq_enable()
82 next->tm_year = now->tm_year; in rtc_next_alarm_time()
83 next->tm_mon = now->tm_mon; in rtc_next_alarm_time()
84 next->tm_mday = now->tm_mday; in rtc_next_alarm_time()
85 next->tm_hour = alrm->tm_hour; in rtc_next_alarm_time()
86 next->tm_min = alrm->tm_min; in rtc_next_alarm_time()
[all …]
Drtc-88pm860x.c1 // SPDX-License-Identifier: GPL-2.0-only
49 #define ALARM_EN (1 << 3)
62 pm860x_set_bits(info->i2c, PM8607_RTC1, mask | ALARM_EN, mask); in rtc_update_handler()
63 rtc_update_irq(info->rtc_dev, 1, RTC_AF); in rtc_update_handler()
72 pm860x_set_bits(info->i2c, PM8607_RTC1, ALARM_EN, ALARM_EN); in pm860x_rtc_alarm_irq_enable()
74 pm860x_set_bits(info->i2c, PM8607_RTC1, ALARM_EN, 0); in pm860x_rtc_alarm_irq_enable()
82 unsigned long ticks, base, data; in pm860x_rtc_read_time() local
84 pm860x_page_bulk_read(info->i2c, REG0_ADDR, 8, buf); in pm860x_rtc_read_time()
85 dev_dbg(info->dev, "%x-%x-%x-%x-%x-%x-%x-%x\n", buf[0], buf[1], in pm860x_rtc_read_time()
86 buf[2], buf[3], buf[4], buf[5], buf[6], buf[7]); in pm860x_rtc_read_time()
[all …]
/Linux-v6.1/drivers/gpu/drm/radeon/
Datom.c38 #include "atom-names.h"
39 #include "atom-bits.h"
45 #define ATOM_COND_BELOW 3
58 #define PLL_DATA 3
83 {1, 2, 3, 0},
84 {1, 2, 3, 0},
85 {1, 2, 3, 0},
91 static int atom_def_dst[8] = { 0, 0, 1, 2, 0, 1, 2, 3 };
97 while (n--) in debug_print_spaces()
108 static uint32_t atom_iio_execute(struct atom_context *ctx, int base, in atom_iio_execute() argument
[all …]
/Linux-v6.1/drivers/scsi/
Dnsp32_debug.c2 * Workbit NinjaSCSI-32Bi/UDE PCI/CardBus SCSI Host Bus Adapter driver
15 /* 00-03 */ "Test Unit Ready", "Rezero Unit", unknown, "Request Sense",
16 /* 04-07 */ "Format Unit", "Read Block Limits", unknown, "Reassign Blocks",
17 /* 08-0d */ "Read (6)", unknown, "Write (6)", "Seek (6)", unknown, unknown,
18 /* 0e-12 */ unknown, "Read Reverse", "Write Filemarks", "Space", "Inquiry",
19 /* 13-16 */ unknown, "Recover Buffered Data", "Mode Select", "Reserve",
20 /* 17-1b */ "Release", "Copy", "Erase", "Mode Sense", "Start/Stop Unit",
21 /* 1c-1d */ "Receive Diagnostic", "Send Diagnostic",
22 /* 1e-1f */ "Prevent/Allow Medium Removal", unknown,
27 /* 20-22 */ unknown, unknown, unknown,
[all …]
Dnsp32.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * NinjaSCSI-32Bi Cardbus, NinjaSCSI-32UDE PCI/CardBus SCSI driver
28 #include <linux/dma-mapping.h>
60 MODULE_DESCRIPTION("Workbit NinjaSCSI-32Bi/UDE CardBus/PCI SCSI host bus adapter module");
130 static nsp32_hw_data nsp32_data_base; /* probe <-> detect glue */
146 {0x7, 3, 0x32, 0x32, SMPL_20M}, /* 5.0 : 200ns, 100ns */
147 {0x8, 3, 0x33, 0x38, SMPL_10M}, /* 4.4 : 225ns, 100ns */
148 {0x9, 3, 0x39, 0x3e, SMPL_10M}, /* 4.0 : 250ns, 100ns */
158 {0x7, 3, 0x58, 0x64, SMPL_10M}, /* 2.5 : 400ns, 200ns */
159 {0x8, 3, 0x65, 0x70, SMPL_10M}, /* 2.2 : 450ns, 200ns */
[all …]
/Linux-v6.1/drivers/gpu/drm/amd/amdgpu/
Datom.c38 #include "atom-names.h"
39 #include "atom-bits.h"
45 #define ATOM_COND_BELOW 3
58 #define PLL_DATA 3
84 {1, 2, 3, 0},
85 {1, 2, 3, 0},
86 {1, 2, 3, 0},
92 static int atom_def_dst[8] = { 0, 0, 1, 2, 0, 1, 2, 3 };
98 while (n--) in debug_print_spaces()
109 static uint32_t atom_iio_execute(struct atom_context *ctx, int base, in atom_iio_execute() argument
[all …]
/Linux-v6.1/drivers/net/ethernet/qualcomm/emac/
Demac-sgmii-fsm9900.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
50 #define PLL_IPSETI(x) ((x) & 0x3f) argument
52 #define PLL_CPSETI(x) ((x) & 0xff) argument
54 #define PLL_IPSETP(x) ((x) & 0x3f) argument
56 #define PLL_CPSETP(x) ((x) & 0x1f) argument
58 #define PLL_RCTRL(x) (((x) & 0xf) << 4) argument
59 #define PLL_CCTRL(x) ((x) & 0xf) argument
61 #define LANE_MODE(x) ((x) & 0x1f) argument
64 #define SYSCLK_AC_COUPLE BIT(3)
[all …]
/Linux-v6.1/drivers/i3c/master/mipi-i3c-hci/
Dext_caps.c1 // SPDX-License-Identifier: BSD-3-Clause
24 static int hci_extcap_hardware_id(struct i3c_hci *hci, void __iomem *base) in hci_extcap_hardware_id() argument
26 hci->vendor_mipi_id = readl(base + 0x04); in hci_extcap_hardware_id()
27 hci->vendor_version_id = readl(base + 0x08); in hci_extcap_hardware_id()
28 hci->vendor_product_id = readl(base + 0x0c); in hci_extcap_hardware_id()
30 dev_info(&hci->master.dev, "vendor MIPI ID: %#x\n", hci->vendor_mipi_id); in hci_extcap_hardware_id()
31 dev_info(&hci->master.dev, "vendor version ID: %#x\n", hci->vendor_version_id); in hci_extcap_hardware_id()
32 dev_info(&hci->master.dev, "vendor product ID: %#x\n", hci->vendor_product_id); in hci_extcap_hardware_id()
35 switch (hci->vendor_mipi_id) { in hci_extcap_hardware_id()
37 hci->quirks |= HCI_QUIRK_RAW_CCC; in hci_extcap_hardware_id()
[all …]
/Linux-v6.1/drivers/scsi/pcmcia/
Dnsp_cs.c3 NinjaSCSI-3 / NinjaSCSI-32Bi PCMCIA SCSI host adapter card driver
21 I-O DATA PCSC-F (Workbit NinjaSCSI-3)
22 "WBT", "NinjaSCSI-3", "R1.0"
23 I-O DATA CBSC-II (Workbit NinjaSCSI-32Bi in 16bit mode)
56 MODULE_DESCRIPTION("WorkBit NinjaSCSI-3 / NinjaSCSI-32Bi(16bit) PCMCIA SCSI host adapter module");
81 .name = "WorkBit NinjaSCSI-3/32Bi(16bit)",
90 .dma_boundary = PAGE_SIZE - 1,
94 static nsp_hw_data nsp_data_base; /* attach <-> detect glue */
116 #define NSP_DEBUG_INTR BIT(3)
169 printk("nsp_cs-debug: 0x%x %s (%d): %s\n", mask, func, line, buf); in nsp_cs_dmessage()
[all …]
/Linux-v6.1/drivers/gpu/drm/exynos/
Dregs-gsc.h1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* linux/drivers/gpu/drm/exynos/regs-gsc.h
7 * Register definition file for Samsung G-Scaler driver
13 /* G-Scaler enable */
28 #define GSC_ENABLE_QOS_ENABLE (1 << 3)
33 /* G-Scaler S/W reset */
37 /* G-Scaler IRQ */
45 /* G-Scaler input control */
56 #define GSC_IN_ROT_180 (3 << 16)
59 #define GSC_IN_RGB_TYPE_MASK (3 << 14)
[all …]
/Linux-v6.1/drivers/media/platform/samsung/exynos-gsc/
Dgsc-regs.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (c) 2011 - 2012 Samsung Electronics Co., Ltd.
6 * Register definition file for Samsung G-Scaler driver
12 /* G-Scaler enable */
18 /* G-Scaler S/W reset */
22 /* G-Scaler IRQ */
29 /* G-Scaler input control */
36 #define GSC_IN_ROT_180 (3 << 16)
39 #define GSC_IN_RGB_TYPE_MASK (3 << 14)
40 #define GSC_IN_RGB_HD_NARROW (3 << 14)
[all …]
/Linux-v6.1/sound/soc/sof/intel/
Dpci-tng.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
6 // Copyright(c) 2018-2021 Intel Corporation. All rights reserved.
13 #include <sound/soc-acpi.h>
14 #include <sound/soc-acpi-intel-match.h>
18 #include "../sof-pci-dev.h"
19 #include "../sof-audio.h"
28 .sof_tplg_filename = "sof-byt.tplg",
54 struct snd_sof_pdata *pdata = sdev->pdata; in tangier_pci_probe()
55 const struct sof_dev_desc *desc = pdata->desc; in tangier_pci_probe()
56 struct pci_dev *pci = to_pci_dev(sdev->dev); in tangier_pci_probe()
[all …]
/Linux-v6.1/tools/perf/tests/shell/
Ddaemon.sh3 # SPDX-License-Identifier: GPL-2.0
9 local base=$3
15 local line_base=`echo "${line}" | awk 'BEGIN { FS = ":" } ; { print $3 }'`
25 if [ "${base}" != "${line_base}" ]; then
26 echo "FAILED: wrong base"
50 local run=$3
51 local base=$4
58 local line_run=`echo "${line}" | awk 'BEGIN { FS = ":" } ; { print $3 }'`
75 if [ "${base}" != "${line_base}" ]; then
76 echo "FAILED: wrong base"
[all …]
/Linux-v6.1/drivers/input/touchscreen/
Dsun4i-ts.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (C) 2013 - 2014 Hans de Goede <hdegoede@redhat.com>
12 * The sun4i-ts controller is capable of detecting a second touch, but when a
18 * open / close movement, and then reports emulated multi-touch events around
19 * the last touch coordinate (as the dual-touch coordinates are worthless).
26 * (looks like the description in the A20 User Manual v1.3 is better
54 #define ADC_FIRST_DLY(x) ((x) << 24) /* 8 bits */ argument
55 #define ADC_FIRST_DLY_MODE(x) ((x) << 23) argument
56 #define ADC_CLK_SEL(x) ((x) << 22) argument
57 #define ADC_CLK_DIV(x) ((x) << 20) /* 3 bits */ argument
[all …]
/Linux-v6.1/tools/testing/selftests/x86/
Dfsgsbase.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (c) 2014-2016 Andy Lutomirski
32 # error This test is 64-bit only
74 segv_addr = (unsigned long)si->si_addr; in sigsegv()
76 ctx->uc_mcontext.gregs[REG_RIP] += 4; /* Skip the faulting mov */ in sigsegv()
131 /* Use a constant-length instruction here. */ in read_base()
161 unsigned long base; in check_gs_value() local
164 printf("[RUN]\tARCH_SET_GS to 0x%lx\n", value); in check_gs_value()
169 base = read_base(GS); in check_gs_value()
170 if (base == value) { in check_gs_value()
[all …]
/Linux-v6.1/drivers/spi/
Dspi-intel.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2016 - 2022, Intel Corporation
13 #include <linux/mtd/spi-nor.h>
17 #include <linux/spi/spi-mem.h>
19 #include "spi-intel.h"
21 /* Offsets are from @ispi->base */
59 /* Offset is from @ispi->pregs */
67 /* Offsets are from @ispi->sregs */
79 #define SSFSTS_CTL_FCERR BIT(3)
90 #define OPTYPE_WRITE_WITH_ADDR 3
[all …]
/Linux-v6.1/drivers/gpu/drm/sun4i/
Dsun8i_mixer.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
15 #define SUN8I_MIXER_SIZE(w, h) (((h) - 1) << 16 | ((w) - 1))
16 #define SUN8I_MIXER_COORD(x, y) ((y) << 16 | (x)) argument
38 #define SUN8I_MIXER_BLEND_PIPE_CTL(base) ((base) + 0) argument
39 #define SUN8I_MIXER_BLEND_ATTR_FCOLOR(base, x) ((base) + 0x4 + 0x10 * (x)) argument
40 #define SUN8I_MIXER_BLEND_ATTR_INSIZE(base, x) ((base) + 0x8 + 0x10 * (x)) argument
41 #define SUN8I_MIXER_BLEND_ATTR_COORD(base, x) ((base) + 0xc + 0x10 * (x)) argument
42 #define SUN8I_MIXER_BLEND_ROUTE(base) ((base) + 0x80) argument
43 #define SUN8I_MIXER_BLEND_PREMULTIPLY(base) ((base) + 0x84) argument
44 #define SUN8I_MIXER_BLEND_BKCOLOR(base) ((base) + 0x88) argument
[all …]
/Linux-v6.1/drivers/pci/controller/
Dpci-v3-semi.c1 // SPDX-License-Identifier: GPL-2.0
6 * Based on the code from arch/arm/mach-integrator/pci_v3.c
8 * Copyright (C) 2000-2001 Deep Blue Solutions Ltd
102 #define V3_LB_ISTAT_PCI_PERR BIT(3)
129 * This is the value applied to C/BE[3:1], with bit 0 always held 0
136 /* PCI BASE bits (PCI -> Local Bus) */
139 #define V3_PCI_BASE_M_PREFETCH BIT(3)
140 #define V3_PCI_BASE_M_TYPE (3 << 1)
143 /* PCI MAP bits (PCI -> Local bus) */
146 #define V3_PCI_MAP_M_ROM_SIZE (3 << 10)
[all …]
/Linux-v6.1/tools/testing/selftests/vm/
Dmap_fixed_noreplace.c1 // SPDX-License-Identifier: GPL-2.0
34 addr = mmap(NULL, size, PROT_NONE, flags, -1, 0); in find_base_addr()
55 //let's find a base addr that is free before we start the tests in main()
69 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main()
71 printf("mmap() @ 0x%lx-0x%lx p=%p result=%m\n", addr, addr + size, p); in main()
89 size = 3 * page_size; in main()
90 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main()
91 printf("mmap() @ 0x%lx-0x%lx p=%p result=%m\n", addr, addr + size, p); in main()
101 * base | free | new in main()
104 * +3 | mapped | new in main()
[all …]
/Linux-v6.1/arch/arm/mach-s3c/
Dpm-gpio.c1 // SPDX-License-Identifier: GPL-2.0+
16 #include "gpio-samsung.h"
18 #include "gpio-core.h"
29 chip->pm_save[0] = __raw_readl(chip->base + OFFS_CON); in samsung_gpio_pm_1bit_save()
30 chip->pm_save[1] = __raw_readl(chip->base + OFFS_DAT); in samsung_gpio_pm_1bit_save()
35 void __iomem *base = chip->base; in samsung_gpio_pm_1bit_resume() local
36 u32 old_gpcon = __raw_readl(base + OFFS_CON); in samsung_gpio_pm_1bit_resume()
37 u32 old_gpdat = __raw_readl(base + OFFS_DAT); in samsung_gpio_pm_1bit_resume()
38 u32 gps_gpcon = chip->pm_save[0]; in samsung_gpio_pm_1bit_resume()
39 u32 gps_gpdat = chip->pm_save[1]; in samsung_gpio_pm_1bit_resume()
[all …]
/Linux-v6.1/tools/testing/selftests/powerpc/primitives/asm/
Dppc_asm.h2 * Copyright (C) 1995-1999 Gary Thomas, Paul Mackerras, Cort Dougan.
8 #include <asm/asm-compat.h>
10 #include <asm/ppc-opcode.h>
12 #include <asm/feature-fixups.h>
23 * op reg, (offset + (width * reg))(base)
28 .macro OP_REGS op, width, start, end, base, offset
30 .rept (\end - \start + 1)
31 \op .Lreg, \offset + \width * .Lreg(\base)
44 .rept (\end - \start + 1)
55 #define SAVE_GPRS(start, end, base) OP_REGS std, 8, start, end, base, GPR0 argument
[all …]
/Linux-v6.1/arch/powerpc/include/asm/
Dppc_asm.h2 * Copyright (C) 1995-1999 Gary Thomas, Paul Mackerras, Cort Dougan.
8 #include <asm/asm-compat.h>
10 #include <asm/ppc-opcode.h>
12 #include <asm/feature-fixups.h>
23 * op reg, (offset + (width * reg))(base)
28 .macro OP_REGS op, width, start, end, base, offset
30 .rept (\end - \start + 1)
31 \op .Lreg, \offset + \width * .Lreg(\base)
44 .rept (\end - \start + 1)
55 #define SAVE_GPRS(start, end, base) OP_REGS std, 8, start, end, base, GPR0 argument
[all …]
/Linux-v6.1/drivers/usb/phy/
Dphy-tegra-usb.c1 // SPDX-License-Identifier: GPL-2.0
36 #define TEGRA_USB_PORTSC1_PTS(x) (((x) & 0x3) << 30) argument
41 #define TEGRA_USB_HOSTPC1_DEVLC_PTS(x) (((x) & 0x7) << 29) argument
49 #define USB_WAKE_ON_CNNT_EN_DEV BIT(3)
58 #define USB_WAKEUP_DEBOUNCE_COUNT(x) (((x) & 0x7) << 16) argument
75 #define USB1_VBUS_SENSE_CTL_MASK (3 << 1)
80 #define USB1_VBUS_SENSE_CTL_A_SESS_VLD (3 << 1)
88 #define ULPI_DATA_TRIMMER_SEL(x) (((x) & 0x7) << 1) argument
90 #define ULPI_STPDIRNXT_TRIMMER_SEL(x) (((x) & 0x7) << 17) argument
92 #define ULPI_DIR_TRIMMER_SEL(x) (((x) & 0x7) << 25) argument
[all …]
/Linux-v6.1/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
Dramnv50.c24 #define nv50_ram(p) container_of((p), struct nv50_ram, base)
39 struct hwsq base; member
67 struct nvkm_ram base; member
71 #define T(t) cfg->timing_10_##t
75 struct nvbios_ramcfg *cfg = &ram->base.target.bios; in nv50_ram_timing_calc()
76 struct nvkm_subdev *subdev = &ram->base.fb->subdev; in nv50_ram_timing_calc()
77 struct nvkm_device *device = subdev->device; in nv50_ram_timing_calc()
86 switch ((!T(CWL)) * ram->base.type) { in nv50_ram_timing_calc()
88 T(CWL) = T(CL) - 1; in nv50_ram_timing_calc()
96 if (device->chipset == 0xa0) { in nv50_ram_timing_calc()
[all …]

12345678910>>...43