/linux/Documentation/devicetree/bindings/mmc/ |
H A D | mmc-controller.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/mmc/mmc-controller.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Ulf Hansson <ulf.hansson@linaro.org> 25 "#address-cells": 30 "#size-cells": 37 broken-cd: 40 There is no card detection available; polling must be used. 42 cd-gpios: [all …]
|
/linux/drivers/video/fbdev/omap2/omapfb/dss/ |
H A D | hdmi_wp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 21 void hdmi_wp_dump(struct hdmi_wp_data *wp, struct seq_file *s) in hdmi_wp_dump() argument 23 #define DUMPREG(r) seq_printf(s, "%-35s %08x\n", #r, hdmi_read_reg(wp->base, r)) in hdmi_wp_dump() 45 u32 hdmi_wp_get_irqstatus(struct hdmi_wp_data *wp) in hdmi_wp_get_irqstatus() argument 47 return hdmi_read_reg(wp->base, HDMI_WP_IRQSTATUS); in hdmi_wp_get_irqstatus() 50 void hdmi_wp_set_irqstatus(struct hdmi_wp_data *wp, u32 irqstatus) in hdmi_wp_set_irqstatus() argument 52 hdmi_write_reg(wp->base, HDMI_WP_IRQSTATUS, irqstatus); in hdmi_wp_set_irqstatus() 54 hdmi_read_reg(wp->base, HDMI_WP_IRQSTATUS); in hdmi_wp_set_irqstatus() 57 void hdmi_wp_set_irqenable(struct hdmi_wp_data *wp, u32 mask) in hdmi_wp_set_irqenable() argument 59 hdmi_write_reg(wp->base, HDMI_WP_IRQENABLE_SET, mask); in hdmi_wp_set_irqenable() [all …]
|
H A D | hdmi5.c | 1 // SPDX-License-Identifier: GPL-2.0-only 32 #include <sound/omap-hdmi-audio.h> 46 r = pm_runtime_resume_and_get(&hdmi.pdev->dev); in hdmi_runtime_get() 59 r = pm_runtime_put_sync(&hdmi.pdev->dev); in hdmi_runtime_put() 60 WARN_ON(r < 0 && r != -ENOSYS); in hdmi_runtime_put() 65 struct hdmi_wp_data *wp = data; in hdmi_irq_handler() local 68 irqstatus = hdmi_wp_get_irqstatus(wp); in hdmi_irq_handler() 69 hdmi_wp_set_irqstatus(wp, irqstatus); in hdmi_irq_handler() 81 hdmi_wp_set_phy_pwr(wp, HDMI_PHYPWRCMD_OFF); in hdmi_irq_handler() 93 hdmi_wp_set_irqstatus(wp, HDMI_IRQ_LINK_CONNECT | in hdmi_irq_handler() [all …]
|
H A D | hdmi4.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (C) 2010-2011 Texas Instruments Incorporated - https://www.ti.com/ 27 #include <sound/omap-hdmi-audio.h> 42 r = pm_runtime_resume_and_get(&hdmi.pdev->dev); in hdmi_runtime_get() 55 r = pm_runtime_put_sync(&hdmi.pdev->dev); in hdmi_runtime_put() 56 WARN_ON(r < 0 && r != -ENOSYS); in hdmi_runtime_put() 61 struct hdmi_wp_data *wp = data; in hdmi_irq_handler() local 64 irqstatus = hdmi_wp_get_irqstatus(wp); in hdmi_irq_handler() 65 hdmi_wp_set_irqstatus(wp, irqstatus); in hdmi_irq_handler() 75 hdmi_wp_set_phy_pwr(wp, HDMI_PHYPWRCMD_OFF); in hdmi_irq_handler() [all …]
|
/linux/drivers/gpu/drm/omapdrm/dss/ |
H A D | hdmi_wp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/ 20 void hdmi_wp_dump(struct hdmi_wp_data *wp, struct seq_file *s) in hdmi_wp_dump() argument 22 #define DUMPREG(r) seq_printf(s, "%-35s %08x\n", #r, hdmi_read_reg(wp->base, r)) in hdmi_wp_dump() 44 u32 hdmi_wp_get_irqstatus(struct hdmi_wp_data *wp) in hdmi_wp_get_irqstatus() argument 46 return hdmi_read_reg(wp->base, HDMI_WP_IRQSTATUS); in hdmi_wp_get_irqstatus() 49 void hdmi_wp_set_irqstatus(struct hdmi_wp_data *wp, u32 irqstatus) in hdmi_wp_set_irqstatus() argument 51 hdmi_write_reg(wp->base, HDMI_WP_IRQSTATUS, irqstatus); in hdmi_wp_set_irqstatus() 53 hdmi_read_reg(wp->base, HDMI_WP_IRQSTATUS); in hdmi_wp_set_irqstatus() 56 void hdmi_wp_set_irqenable(struct hdmi_wp_data *wp, u32 mask) in hdmi_wp_set_irqenable() argument [all …]
|
H A D | hdmi5.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2014 Texas Instruments Incorporated - https://www.ti.com/ 31 #include <sound/omap-hdmi-audio.h> 47 r = pm_runtime_get_sync(&hdmi->pdev->dev); in hdmi_runtime_get() 49 pm_runtime_put_noidle(&hdmi->pdev->dev); in hdmi_runtime_get() 61 r = pm_runtime_put_sync(&hdmi->pdev->dev); in hdmi_runtime_put() 62 WARN_ON(r < 0 && r != -ENOSYS); in hdmi_runtime_put() 68 struct hdmi_wp_data *wp = &hdmi->wp; in hdmi_irq_handler() local 71 irqstatus = hdmi_wp_get_irqstatus(wp); in hdmi_irq_handler() 72 hdmi_wp_set_irqstatus(wp, irqstatus); in hdmi_irq_handler() [all …]
|
/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | marvell,dove-pinctrl.txt | 3 Please refer to marvell,mvebu-pinctrl.txt in this directory for common binding 7 - compatible: "marvell,dove-pinctrl" 8 - clocks: (optional) phandle of pdma clock 9 - reg: register specifiers of MPP, MPP4, and PMU MPP registers 19 mpp1 1 gpio, pmu, uart2(cts), sdio0(wp), lcd1(pwm), pmu* 23 uart1(cts), lcd-spi(cs1), pmu* 25 mpp5 5 gpio, pmu, uart3(cts), sdio1(wp), spi1(cs), pmu* 31 mpp11 11 gpio, pmu, sata(prsnt), sata-1(act), sdio0(ledctrl), 35 mpp13 13 gpio, pmu, uart2(cts), audio1(extclk), sdio1(wp), 39 mpp16 16 gpio, uart3(rts), sdio0(cd), ac97(sdi1), lcd-spi(cs1) [all …]
|
/linux/tools/testing/selftests/mm/ |
H A D | uffd-unit-tests.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2015-2023 Red Hat, Inc. 8 #include <asm-generic/unistd.h> 9 #include "uffd-common.h" 26 ((__typeof__(x))((((unsigned long)(x)) + ((align_to)-1)) & ~((align_to)-1))) 50 .name = "shmem-private", 62 .name = "hugetlb-private", 189 map_shared = mem_type->shared; in uffd_setup_environment() 190 uffd_test_ops = mem_type->mem_ops; in uffd_setup_environment() 191 uffd_test_case_ops = test->test_case_ops; in uffd_setup_environment() [all …]
|
/linux/fs/bcachefs/ |
H A D | io_write.c | 1 // SPDX-License-Identifier: GPL-2.0 29 #include "super-io.h" 43 ca->io_latency[rw].quantiles.entries[QUANTILE_IDX(1)].m; in bch2_congested_acct() 46 s64 latency_over = io_latency - latency_threshold; in bch2_congested_acct() 51 * latency_threshold - we don't need much accuracy here so don't in bch2_congested_acct() 54 if (atomic_read(&ca->congested) < CONGESTED_MAX) in bch2_congested_acct() 56 max_t(int, ilog2(latency_threshold) - 2, 0), in bch2_congested_acct() 57 &ca->congested); in bch2_congested_acct() 59 ca->congested_last = now; in bch2_congested_acct() 60 } else if (atomic_read(&ca->congested) > 0) { in bch2_congested_acct() [all …]
|
H A D | alloc_foreground.c | 1 // SPDX-License-Identifier: GPL-2.0 58 * - They track buckets that have been partially allocated, allowing for 59 * sub-bucket sized allocations - they're used by the sector allocator below 61 * - They provide a reference to the buckets they own that mark and sweep GC 66 * with a reference to an open bucket - the caller is required to put that 74 memset(ca->alloc_cursor, 0, sizeof(ca->alloc_cursor)); in bch2_reset_alloc_cursors() 80 open_bucket_idx_t idx = ob - c->open_buckets; in bch2_open_bucket_hash_add() 81 open_bucket_idx_t *slot = open_bucket_hashslot(c, ob->dev, ob->bucket); in bch2_open_bucket_hash_add() 83 ob->hash = *slot; in bch2_open_bucket_hash_add() 89 open_bucket_idx_t idx = ob - c->open_buckets; in bch2_open_bucket_hash_remove() [all …]
|
/linux/Documentation/virt/kvm/x86/ |
H A D | mmu.rst | 1 .. SPDX-License-Identifier: GPL-2.0 13 - correctness: 18 - security: 21 - performance: 23 - scaling: 25 - hardware: 27 - integration: 31 - dirty tracking: 33 and framebuffer-based displays 34 - footprint: [all …]
|
/linux/arch/riscv/boot/dts/sophgo/ |
H A D | cv1812h-huashan-pi.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 6 /dts-v1/; 12 compatible = "sophgo,huashan-pi", "sophgo,cv1812h"; 27 stdout-path = "serial0:115200n8"; 30 reserved-memory { 31 #address-cells = <1>; 32 #size-cells = <1>; 37 no-map; 43 clock-frequency = <25000000>; 48 bus-width = <4>; [all …]
|
H A D | sg2042-milkv-pioneer.dts | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/input/input.h> 12 model = "Milk-V Pioneer"; 16 stdout-path = "serial0"; 19 gpio-power { 20 compatible = "gpio-keys"; 22 key-power { 26 linux,input-type = <EV_KEY>; 27 debounce-interval = <100>; [all …]
|
/linux/Documentation/devicetree/bindings/mtd/ |
H A D | jedec,spi-nor.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/mtd/jedec,spi-nor.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Rob Herring <robh@kernel.org> 13 - $ref: mtd.yaml# 14 - $ref: /schemas/spi/spi-peripheral-props.yaml# 19 - items: 20 - pattern: "^((((micron|spansion|st),)?\ 33 - const: jedec,spi-nor [all …]
|
/linux/arch/powerpc/math-emu/ |
H A D | math_efp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * arch/powerpc/math-emu/math_efp.c 5 * Copyright (C) 2006-2008, 2010 Freescale Semiconductor, Inc. 10 * Derived from arch/alpha/math-emu/math.c 11 * arch/powerpc/math-emu/math.c 15 * fully comply with IEEE-754 floating point standard. 26 #include <asm/sfp-machine.h> 28 #include <math-emu/soft-fp.h> 29 #include <math-emu/single.h> 30 #include <math-emu/double.h> [all …]
|
/linux/Documentation/mhi/ |
H A D | mhi.rst | 1 .. SPDX-License-Identifier: GPL-2.0 26 ---- 48 --------------- 74 -------- 82 bidirectional data pipe, which can be used by the upper-layer protocols to 88 -------------- 95 [Read Pointer (RP)] ----------->[Ring Element] } TD 96 [Write Pointer (WP)]- [Ring Element] 97 - [Ring Element] 98 --------->[Ring Element] [all …]
|
/linux/arch/arm/kernel/ |
H A D | hw_breakpoint.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 * HW_breakpoint: a unified kernel/user-space hardware breakpoint facility, 13 #define pr_fmt(fmt) "hw-breakpoint: " fmt 151 /* We don't support the memory-mapped interface. */ in debug_arch_supported() 216 return core_has_mismatch_brps() ? brps - 1 : brps; in get_num_brps() 257 return -ENODEV; in enable_monitor_mode() 265 return -EPERM; in enable_monitor_mode() 293 * Check if 8-bit byte-address select is available. 333 addr = info->address; in arch_install_hw_breakpoint() 334 ctrl = encode_ctrl_reg(info->ctrl) | 0x1; in arch_install_hw_breakpoint() [all …]
|
/linux/drivers/media/pci/saa7164/ |
H A D | saa7164-core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2010-2015 Steven Toth <stoth@kernellabs.com> 45 MODULE_PARM_DESC(encoder_buffers, "Total buffers in read queue 16-512 def:64"); 49 MODULE_PARM_DESC(vbi_buffers, "Total buffers in read queue 16-512 def:64"); 55 static unsigned int card[] = {[0 ... (SAA7164_MAXBOARDS - 1)] = UNSET }; 86 u8 *p = (u8 *)buf->cpu; in saa7164_pack_verifier() 89 for (i = 0; i < buf->actual_size; i += 2048) { in saa7164_pack_verifier() 93 printk(KERN_ERR "No pack at 0x%x\n", i); in saa7164_pack_verifier() 107 struct saa7164_port *port = buf->port; in saa7164_ts_verifier() 111 u8 *bufcpu = (u8 *)buf->cpu; in saa7164_ts_verifier() [all …]
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | skl_watermark.c | 1 // SPDX-License-Identifier: MIT 81 i915->display.sagv.status != I915_SAGV_NOT_CONTROLLED; in intel_has_sagv() 97 ret = snb_pcode_read(&i915->uncore, in intel_sagv_block_time() 101 drm_dbg_kms(&i915->drm, "Couldn't read SAGV block time!\n"); in intel_sagv_block_time() 118 i915->display.sagv.status = I915_SAGV_NOT_CONTROLLED; in intel_sagv_init() 127 drm_WARN_ON(&i915->drm, i915->display.sagv.status == I915_SAGV_UNKNOWN); in intel_sagv_init() 129 i915->display.sagv.block_time_us = intel_sagv_block_time(i915); in intel_sagv_init() 131 drm_dbg_kms(&i915->drm, "SAGV supported: %s, original SAGV block time: %u us\n", in intel_sagv_init() 132 str_yes_no(intel_has_sagv(i915)), i915->display.sagv.block_time_us); in intel_sagv_init() 135 if (drm_WARN(&i915->drm, i915->display.sagv.block_time_us > U16_MAX, in intel_sagv_init() [all …]
|
/linux/fs/btrfs/ |
H A D | zoned.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include "rcu-string.h" 13 #include "disk-io.h" 14 #include "block-group.h" 15 #include "dev-replace.h" 16 #include "space-info.h" 24 #define WP_MISSING_DEV ((u64)-1) 26 #define WP_CONVENTIONAL ((u64)-2) 31 * - primary superblock: 0B (zone 0) 32 * - first copy: 512G (zone starting at that offset) [all …]
|
/linux/include/uapi/linux/ |
H A D | blkzoned.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 23 * enum blk_zone_type - Types of zones allowed in a zoned device. 25 * @BLK_ZONE_TYPE_CONVENTIONAL: The zone has no write pointer and can be writen 26 * randomly. Zone reset has no effect on the zone. 28 * @BLK_ZONE_TYPE_SEQWRITE_PREF: The zone can be written non-sequentially 39 * enum blk_zone_cond - Condition [state] of a zone in a zoned device. 41 * @BLK_ZONE_COND_NOT_WP: The zone has no write pointer, it is conventional. 49 * @BLK_ZONE_COND_READONLY: The zone is read-only. 54 * - ZC1: Empty | BLK_ZONE_COND_EMPTY 55 * - ZC2: Implicit Open | BLK_ZONE_COND_IMP_OPEN [all …]
|
/linux/drivers/dma/qcom/ |
H A D | gpi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved. 7 #include <dt-bindings/dma/qcom-gpi.h> 9 #include <linux/dma-mapping.h> 14 #include <linux/dma/qcom-gpi-dma.h> 18 #include "../virt-dma.h" 68 /* Register offsets from gpi-top */ 181 /* GPII specific Global - Enable bit register */ 186 /* GPII general interrupt - Enable bit register */ 358 * @DISABLE_STATE: no register access allowed [all …]
|
/linux/sound/hda/ |
H A D | hdac_bus.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * HD-audio core bus driver 24 * snd_hdac_bus_init - initialize a HD-audio bas bus 35 bus->dev = dev; in snd_hdac_bus_init() 37 bus->ops = ops; in snd_hdac_bus_init() 39 bus->ops = &default_ops; in snd_hdac_bus_init() 40 bus->dma_type = SNDRV_DMA_TYPE_DEV; in snd_hdac_bus_init() 41 INIT_LIST_HEAD(&bus->stream_list); in snd_hdac_bus_init() 42 INIT_LIST_HEAD(&bus->codec_list); in snd_hdac_bus_init() 43 INIT_WORK(&bus->unsol_work, snd_hdac_bus_process_unsol_events); in snd_hdac_bus_init() [all …]
|
H A D | hdac_controller.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * HD-audio controller helpers 19 for (timeout = 1000; timeout > 0; timeout--) { in azx_clear_corbrp() 25 dev_err(bus->dev, "CORB reset timeout#1, CORBRP = %d\n", in azx_clear_corbrp() 29 for (timeout = 1000; timeout > 0; timeout--) { in azx_clear_corbrp() 35 dev_err(bus->dev, "CORB reset timeout#2, CORBRP = %d\n", in azx_clear_corbrp() 40 * snd_hdac_bus_init_cmd_io - set up CORB/RIRB buffers 41 * @bus: HD-audio core bus 45 WARN_ON_ONCE(!bus->rb.area); in snd_hdac_bus_init_cmd_io() 47 spin_lock_irq(&bus->reg_lock); in snd_hdac_bus_init_cmd_io() [all …]
|
/linux/drivers/mmc/core/ |
H A D | host.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (C) 2007-2008 Pierre Ossman 24 #include <linux/mmc/slot-gpio.h> 29 #include "slot-gpio.h" 46 if (!host->bus_ops) in mmc_host_class_prepare() 50 if (host->bus_ops->pre_suspend) in mmc_host_class_prepare() 51 return host->bus_ops->pre_suspend(host); in mmc_host_class_prepare() 76 wakeup_source_unregister(host->ws); in mmc_host_classdev_release() 77 if (of_alias_get_id(host->parent->of_node, "mmc") < 0) in mmc_host_classdev_release() 78 ida_free(&mmc_host_ida, host->index); in mmc_host_classdev_release() [all …]
|