/linux-6.12.1/drivers/clk/berlin/ |
D | berlin2-avpll.c | 1 // 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-6.12.1/drivers/rtc/ |
D | rtc-88pm80x.c | 1 // 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 …]
|
D | rtc-88pm860x.c | 1 // 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-6.12.1/drivers/gpu/drm/radeon/ |
D | atom.c | 38 #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-6.12.1/tools/testing/selftests/mm/ |
D | map_fixed_noreplace.c | 1 // SPDX-License-Identifier: GPL-2.0 31 addr = mmap(NULL, size, PROT_NONE, flags, -1, 0); in find_base_addr() 52 /* let's find a base addr that is free before we start the tests */ in main() 61 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 70 ksft_print_msg("mmap() @ 0x%lx-0x%lx p=%p result=%m\n", addr, addr + size, p); in main() 71 ksft_test_result_pass("mmap() 5*PAGE_SIZE at base\n"); in main() 74 size = 3 * page_size; in main() 75 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 80 ksft_print_msg("mmap() @ 0x%lx-0x%lx p=%p result=%m\n", addr, addr + size, p); in main() 81 ksft_test_result_pass("mmap() 3*PAGE_SIZE at base+PAGE_SIZE\n"); in main() [all …]
|
/linux-6.12.1/drivers/scsi/ |
D | nsp32_debug.c | 2 * 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 …]
|
D | nsp32.c | 1 // 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-6.12.1/drivers/gpu/drm/amd/amdgpu/ |
D | atom.c | 38 #include "atom-names.h" 39 #include "atom-bits.h" 45 #define ATOM_COND_BELOW 3 58 #define PLL_DATA 3 85 {1, 2, 3, 0}, 86 {1, 2, 3, 0}, 87 {1, 2, 3, 0}, 93 static int atom_def_dst[8] = { 0, 0, 1, 2, 0, 1, 2, 3 }; 99 while (n--) in debug_print_spaces() 110 static uint32_t atom_iio_execute(struct atom_context *ctx, int base, in atom_iio_execute() argument [all …]
|
/linux-6.12.1/drivers/net/ethernet/qualcomm/emac/ |
D | emac-sgmii-fsm9900.c | 1 // 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-6.12.1/scripts/ |
D | generate_builtin_ranges.awk | 1 #!/usr/bin/gawk -f 2 # SPDX-License-Identifier: GPL-2.0 27 mod = substr(s, RSTART + 16, RLENGTH - 16); 30 mod = substr(s, RSTART + 13, RLENGTH - 13); 44 gsub(/-/, "_", mod); 55 # We use a modified absolute start address (soff + base) as index because we 64 idx = sprintf("%016x", (soff + sect_base[osect]) * 2 + 1); 65 entries[idx] = sprintf("%s %08x-%08x %s", sect, soff, eoff, mod); 69 # (1) Build a lookup map of built-in module names. 74 # kernel/crypto/lzo-rle.ko [all …]
|
/linux-6.12.1/arch/sparc/kernel/ |
D | btext.c | 1 // SPDX-License-Identifier: GPL-2.0 24 static void draw_byte_32(const unsigned char *bits, unsigned int *base, int rb); 25 static void draw_byte_16(const unsigned char *bits, unsigned int *base, int rb); 26 static void draw_byte_8(const unsigned char *bits, unsigned int *base, int rb); 47 return -EINVAL; in btext_initialize() 49 return -EINVAL; in btext_initialize() 51 return -EINVAL; in btext_initialize() 68 return -EINVAL; in btext_initialize() 79 dispDeviceRect[3] = height; in btext_initialize() 84 /* Calc the base address of a given point (x,y) */ [all …]
|
/linux-6.12.1/drivers/i3c/master/mipi-i3c-hci/ |
D | ext_caps.c | 1 // 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-6.12.1/sound/soc/sof/intel/ |
D | pci-tng.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 6 // Copyright(c) 2018-2021 Intel Corporation 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-6.12.1/drivers/scsi/pcmcia/ |
D | nsp_cs.c | 3 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-6.12.1/drivers/gpu/drm/exynos/ |
D | regs-gsc.h | 1 /* 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-6.12.1/drivers/media/platform/samsung/exynos-gsc/ |
D | gsc-regs.h | 1 /* 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-6.12.1/tools/perf/tests/shell/ |
D | daemon.sh | 3 # SPDX-License-Identifier: GPL-2.0 9 local base=$3 17 line_base=`echo "${line}" | awk 'BEGIN { FS = ":" } ; { print $3 }'` 30 if [ "${base}" != "${line_base}" ]; then 31 echo "FAILED: wrong base" 55 local run=$3 56 local base=$4 65 line_run=`echo "${line}" | awk 'BEGIN { FS = ":" } ; { print $3 }'` 87 if [ "${base}" != "${line_base}" ]; then 88 echo "FAILED: wrong base" [all …]
|
/linux-6.12.1/drivers/input/touchscreen/ |
D | sun4i-ts.c | 1 // 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-6.12.1/drivers/gpu/drm/amd/display/dc/spl/ |
D | dc_spl.c | 1 // SPDX-License-Identifier: MIT 17 int r0_x_end = r0->x + r0->width; in intersect_rec() 18 int r1_x_end = r1->x + r1->width; in intersect_rec() 19 int r0_y_end = r0->y + r0->height; in intersect_rec() 20 int r1_y_end = r1->y + r1->height; in intersect_rec() 22 rec.x = r0->x > r1->x ? r0->x : r1->x; in intersect_rec() 23 rec.width = r0_x_end > r1_x_end ? r1_x_end - rec.x : r0_x_end - rec.x; in intersect_rec() 24 rec.y = r0->y > r1->y ? r0->y : r1->y; in intersect_rec() 25 rec.height = r0_y_end > r1_y_end ? r1_y_end - rec.y : r0_y_end - rec.y; in intersect_rec() 34 static struct spl_rect shift_rec(const struct spl_rect *rec_in, int x, int y) in shift_rec() argument [all …]
|
/linux-6.12.1/tools/testing/selftests/x86/ |
D | fsgsbase.c | 1 // 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() 126 /* Use a constant-length instruction here. */ in read_base() 156 unsigned long base; in check_gs_value() local 159 printf("[RUN]\tARCH_SET_GS to 0x%lx\n", value); in check_gs_value() 164 base = read_base(GS); in check_gs_value() 165 if (base == value) { in check_gs_value() [all …]
|
/linux-6.12.1/drivers/spi/ |
D | spi-intel.c | 1 // 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 */ 60 /* Offset is from @ispi->pregs */ 68 /* Offsets are from @ispi->sregs */ 80 #define SSFSTS_CTL_FCERR BIT(3) 91 #define OPTYPE_WRITE_WITH_ADDR 3 [all …]
|
/linux-6.12.1/drivers/gpu/drm/sun4i/ |
D | sun8i_mixer.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 16 #define SUN8I_MIXER_SIZE(w, h) (((h) - 1) << 16 | ((w) - 1)) 17 #define SUN8I_MIXER_COORD(x, y) ((y) << 16 | (x)) argument 39 #define SUN8I_MIXER_BLEND_PIPE_CTL(base) ((base) + 0) argument 40 #define SUN8I_MIXER_BLEND_ATTR_FCOLOR(base, x) ((base) + 0x4 + 0x10 * (x)) argument 41 #define SUN8I_MIXER_BLEND_ATTR_INSIZE(base, x) ((base) + 0x8 + 0x10 * (x)) argument 42 #define SUN8I_MIXER_BLEND_ATTR_COORD(base, x) ((base) + 0xc + 0x10 * (x)) argument 43 #define SUN8I_MIXER_BLEND_ROUTE(base) ((base) + 0x80) argument 44 #define SUN8I_MIXER_BLEND_PREMULTIPLY(base) ((base) + 0x84) argument 45 #define SUN8I_MIXER_BLEND_BKCOLOR(base) ((base) + 0x88) argument [all …]
|
/linux-6.12.1/drivers/pci/controller/ |
D | pci-v3-semi.c | 1 // 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 100 #define V3_LB_ISTAT_PCI_PERR BIT(3) 127 * This is the value applied to C/BE[3:1], with bit 0 always held 0 134 /* PCI BASE bits (PCI -> Local Bus) */ 137 #define V3_PCI_BASE_M_PREFETCH BIT(3) 138 #define V3_PCI_BASE_M_TYPE (3 << 1) 141 /* PCI MAP bits (PCI -> Local bus) */ 144 #define V3_PCI_MAP_M_ROM_SIZE (3 << 10) [all …]
|
/linux-6.12.1/arch/arm/mach-s3c/ |
D | pm-gpio.c | 1 // 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-6.12.1/arch/powerpc/kernel/ |
D | btext.c | 1 // SPDX-License-Identifier: GPL-2.0 120 dispDeviceRect[3] = height; in btext_setup_display() 134 * - build some kind of vgacon with it to enable early printk 135 * - move to a separate file 136 * - add a few video driver hooks to keep in sync with display 142 unsigned long base, offset, size; in btext_map() local 149 base = ((unsigned long) dispDeviceBase) & 0xFFFFF000UL; in btext_map() 150 offset = ((unsigned long) dispDeviceBase) - base; in btext_map() 151 size = dispDeviceRowBytes * dispDeviceRect[3] + offset in btext_map() 153 vbase = ioremap_wc(base, size); in btext_map() [all …]
|