Home
last modified time | relevance | path

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

12345678910>>...42

/linux/drivers/rtc/
H A 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 …]
H A 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/drivers/gpu/drm/radeon/
H A 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/tools/testing/selftests/mm/
H A Dmap_fixed_noreplace.c1 // 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/drivers/scsi/
H A 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 …]
H A 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/drivers/net/ethernet/qualcomm/emac/
H A 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/scripts/
H A Dgenerate_builtin_ranges.awk1 #!/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
[all...]
/linux/arch/sparc/kernel/
H A Dbtext.c1 // 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/drivers/gpu/drm/amd/display/dc/sspl/
H A Ddc_spl.c1 // SPDX-License-Identifier: MIT
51 int r0_x_end = r0->x + r0->width; in intersect_rec()
52 int r1_x_end = r1->x + r1->width; in intersect_rec()
53 int r0_y_end = r0->y + r0->height; in intersect_rec()
54 int r1_y_end = r1->y + r1->height; in intersect_rec()
56 rec.x = r0->x > r1->x ? r0->x : r1->x; in intersect_rec()
57 rec.width = r0_x_end > r1_x_end ? r1_x_end - rec.x : r0_x_end - rec.x; in intersect_rec()
58 rec.y = r0->y > r1->y ? r0->y : r1->y; in intersect_rec()
59 rec.height = r0_y_end > r1_y_end ? r1_y_end - rec.y : r0_y_end - rec.y; in intersect_rec()
68 static struct spl_rect shift_rec(const struct spl_rect *rec_in, int x, int y) in shift_rec() argument
[all …]
/linux/drivers/scsi/pcmcia/
H A 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/drivers/gpu/drm/exynos/
H A 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/tools/perf/tests/shell/
H A Ddaemon.sh3 # 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/drivers/media/platform/samsung/exynos-gsc/
H A 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/drivers/input/touchscreen/
H A 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/drivers/pci/controller/
H A 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
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/arch/powerpc/kernel/
H A Dbtext.c1 // 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 …]
/linux/arch/arm/mach-s3c/
H A 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/drivers/usb/phy/
H A 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/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
H A 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 …]
/linux/drivers/video/fbdev/
H A Dsh7760fb.c1 // SPDX-License-Identifier: GPL-2.0
5 * (c) 2006-2008 MSC Vertriebsges.m.b.H.,
11 * Thanks to Siegfried Schaefer <s.schaefer at schaefer-edv.de>
19 #include <linux/dma-mapping.h>
31 void __iomem *base; member
56 /* wait_for_lps - wait until power supply has reached a certain state. */
60 while (--i && ((ioread16(par->base + LDPMMR) & 3) != val)) in wait_for_lps()
64 return -ETIMEDOUT; in wait_for_lps()
72 struct sh7760fb_par *par = info->par; in sh7760fb_blank()
73 struct sh7760fb_platdata *pd = par->pd; in sh7760fb_blank()
[all …]
/linux/drivers/phy/marvell/
H A Dphy-armada38x-comphy.c1 // SPDX-License-Identifier: GPL-2.0
17 #define MAX_A38X_PORTS 3
20 #define COMPHY_CFG1_GEN_TX(x) ((x) << 26) argument
22 #define COMPHY_CFG1_GEN_RX(x) ((x) << 22) argument
28 #define COMPHY_STAT1_PLL_RDY_TX BIT(3)
36 void __iomem *base; member
44 void __iomem *base; member
56 { 3, 0, 0 },
60 { 0, 3, 0 },
61 { 0, 0, 3 },
[all …]
/linux/drivers/usb/host/
H A Dxhci-ext-caps.h1 /* SPDX-License-Identifier: GPL-2.0 */
13 /* HC not running - set to 1 when run/stop bit is cleared. */
16 /* HCCPARAMS offset from PCI base address */
28 /* bits 7:0 - how long is the Capabilities register */
35 /* Extended capability IDs - ID 0 reserved */
38 #define XHCI_EXT_CAPS_PM 3
41 /* IDs 6-9 reserved */
46 /* USB Legacy Support Capability - section 7.1.1 */
50 /* USB Legacy Support Capability - section 7.1.1 */
51 /* Add this offset, plus the value of xECP in HCCPARAMS to the base address */
[all …]
/linux/Documentation/admin-guide/pm/
H A Dintel-speed-select.rst1 .. SPDX-License-Identifier: GPL-2.0
14 - https://www.intel.com/content/www/us/en/architecture-and-technology/speed-select-technology-artic…
15 - https://builders.intel.com/docs/networkbuilders/intel-speed-select-technology-base-frequency-enha…
19 dynamically without pre-configuring via BIOS setup options. This dynamic
29 intel-speed-select configuration tool
32 Most Linux distribution packages may include the "intel-speed-select" tool. If not,
38 # cd tools/power/x86/intel-speed-select/
43 ------------
47 # intel-speed-select --help
49 The top-level help describes arguments and features. Notice that there is a
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dio/dcn20/
H A Ddcn20_link_encoder.c2 * Copyright 2012-15 Advanced Micro Devices, Inc.
37 enc10->base.ctx
39 enc10->base.ctx->logger
42 (enc10->link_regs->reg)
46 enc10->link_shift->field_name, enc10->link_mask->field_name
49 (enc10->link_regs->index)
52 #define MAX(X, Y) ((X) > (Y) ? (X) : (Y)) argument
55 #define MIN(X, Y) ((X) < (Y) ? (X) : (Y)) argument
62 .ref_range = 3,
69 .mpllb_fracn_rem = 3,
[all …]

12345678910>>...42