Home
last modified time | relevance | path

Searched +full:mem +full:- +full:io (Results 1 – 25 of 1041) sorted by relevance

12345678910>>...42

/linux-6.14.4/drivers/gpu/drm/i915/
Dintel_memory_region.c1 // SPDX-License-Identifier: MIT
36 static int __iopagetest(struct intel_memory_region *mem, in __iopagetest() argument
49 result[2] = ioread8(va + pagesize - 1); in __iopagetest()
51 dev_err(mem->i915->drm.dev, in __iopagetest()
53 &mem->region, &mem->io.start, &offset, caller, in __iopagetest()
55 return -EINVAL; in __iopagetest()
61 static int iopagetest(struct intel_memory_region *mem, in iopagetest() argument
70 va = ioremap_wc(mem->io.start + offset, PAGE_SIZE); in iopagetest()
72 dev_err(mem->i915->drm.dev, in iopagetest()
74 &mem->io.start, &offset, caller); in iopagetest()
[all …]
Dintel_region_ttm.c1 // SPDX-License-Identifier: MIT
26 * intel_region_ttm_device_init - Initialize a TTM device
33 struct drm_device *drm = &dev_priv->drm; in intel_region_ttm_device_init()
35 return ttm_device_init(&dev_priv->bdev, i915_ttm_driver(), in intel_region_ttm_device_init()
36 drm->dev, drm->anon_inode->i_mapping, in intel_region_ttm_device_init()
37 drm->vma_offset_manager, false, false); in intel_region_ttm_device_init()
41 * intel_region_ttm_device_fini - Finalize a TTM device
46 ttm_device_fini(&dev_priv->bdev); in intel_region_ttm_device_fini()
51 * driver-private types for now, reserving TTM_PL_VRAM for stolen
54 int intel_region_to_ttm_type(const struct intel_memory_region *mem) in intel_region_to_ttm_type() argument
[all …]
Dintel_memory_region.h1 /* SPDX-License-Identifier: MIT */
11 #include <linux/io-mapping.h>
44 for (id = 0; id < ARRAY_SIZE((i915)->mm.regions); id++) \
45 for_each_if((mr) = (i915)->mm.regions[id])
48 int (*init)(struct intel_memory_region *mem);
49 int (*release)(struct intel_memory_region *mem);
51 int (*init_object)(struct intel_memory_region *mem,
67 struct resource io; member
103 void intel_memory_region_destroy(struct intel_memory_region *mem);
112 intel_memory_region_set_name(struct intel_memory_region *mem,
[all …]
/linux-6.14.4/arch/arm/mm/
Dpmsa-v8.c2 * Based on linux/arch/arm/pmsa-v7.c
78 static struct range __initdata io[MPU_MAX_REGIONS]; variable
79 static struct range __initdata mem[MPU_MAX_REGIONS]; variable
120 memblock_remove(reg_start, 0 - reg_start); in pmsav8_adjust_lowmem_bounds()
145 return -ENOENT; in __pmsav8_setup_region()
166 return -EINVAL; in pmsav8_setup_ram()
169 lar = (end - 1) & ~(PMSAv8_MINALIGN - 1); in pmsav8_setup_ram()
182 return -EINVAL; in pmsav8_setup_io()
185 lar = (end - 1) & ~(PMSAv8_MINALIGN - 1); in pmsav8_setup_io()
198 return -EINVAL; in pmsav8_setup_fixed()
[all …]
/linux-6.14.4/drivers/pci/hotplug/
Dibmphp_pci.c1 // SPDX-License-Identifier: GPL-2.0+
7 * Copyright (C) 2001 Greg Kroah-Hartman ([email protected])
40 if (cur_func->irq[j] == 0xff) { in assign_alt_irq()
43 cur_func->irq[j] = SCSI_IRQ; in assign_alt_irq()
46 cur_func->irq[j] = LAN_IRQ; in assign_alt_irq()
49 cur_func->irq[j] = OTHER_IRQ; in assign_alt_irq()
59 * multi-functional
81 debug("inside configure_card, func->busno = %x\n", func->busno); in ibmphp_configure_card()
83 device = func->device; in ibmphp_configure_card()
87 * func->busno is correct, and func->device contains only device (at the 5 in ibmphp_configure_card()
[all …]
Dibmphp_res.c1 // SPDX-License-Identifier: GPL-2.0+
7 * Copyright (C) 2001 Greg Kroah-Hartman ([email protected])
49 newbus->busno = busno; in alloc_error_bus()
51 newbus->busno = curr->bus_num; in alloc_error_bus()
52 list_add_tail(&newbus->bus_list, &gbuses); in alloc_error_bus()
69 rs->busno = curr->bus_num; in alloc_resources()
70 rs->devfunc = curr->dev_fun; in alloc_resources()
71 rs->start = curr->start_addr; in alloc_resources()
72 rs->end = curr->end_addr; in alloc_resources()
73 rs->len = curr->end_addr - curr->start_addr + 1; in alloc_resources()
[all …]
/linux-6.14.4/kernel/dma/
Dswiotlb.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * Copyright (C) 2000, 2003 Hewlett-Packard Co
10 * David Mosberger-Tang <[email protected]>
12 * 03/05/07 davidm Switch from PCI-DMA to generic device DMA API.
14 * unnecessary i-cache flushing.
21 #define pr_fmt(fmt) "software IO TLB: " fmt
27 #include <linux/dma-direct.h>
28 #include <linux/dma-map-ops.h>
32 #include <linux/io.h>
33 #include <linux/iommu-helper.h>
[all …]
/linux-6.14.4/arch/powerpc/boot/
Dcuboot-pq2.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Old U-boot compatibility for PowerQUICC II
14 #include "io.h"
15 #include "fsl-soc.h"
40 /* Different versions of u-boot put the BCSR in different places, and
44 * For any node defined as compatible with fsl,pq2-localbus,
58 if (!bus_node || !dt_is_compatible(bus_node, "fsl,pq2-localbus")) in update_cs_ranges()
103 option | ~(cs_ranges_buf[i].size - 1)); in update_cs_ranges()
113 /* Older u-boots don't set PCI up properly. Update the hardware to match
114 * the device tree. The prefetch mem region and non-prefetch mem region
[all …]
/linux-6.14.4/drivers/pcmcia/
Di82092.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Driver for Intel I82092AA PCI-PCMCIA bridge.
8 * Loosly based on i82365.c from the pcmcia-cs package
21 #include <linux/io.h>
26 MODULE_DESCRIPTION("Driver for Intel I82092AA PCI-PCMCIA bridge");
63 unsigned int io_base; /* base io address of the socket */
100 dev_err(&dev->dev, in i82092aa_pci_probe()
102 ret = -EIO; in i82092aa_pci_probe()
105 dev_info(&dev->dev, "configured as a %d socket device.\n", in i82092aa_pci_probe()
109 ret = -EBUSY; in i82092aa_pci_probe()
[all …]
Dtcic.c3 Device driver for Databook TCIC-2 PCMCIA controller
49 #include <asm/io.h>
55 MODULE_DESCRIPTION("Databook TCIC-2 PCMCIA socket driver");
62 /* The base port address of the TCIC-2 chip */
66 static int ignore = -1;
76 /* The card status change interrupt -- 0 means autoselect */
79 /* Poll status interval -- 0 means default to interrupt */
82 /* Delay for card status double-checking */
195 return 2*(ns-14)/cycle_time; in to_cycles()
214 return -1; in try_irq()
[all …]
Dpd6729.c2 * Driver for the Cirrus PD6729 PCI-PCMCIA bridge.
18 #include <linux/io.h>
28 MODULE_DESCRIPTION("Driver for the Cirrus PD6729 PCI-PCMCIA bridge");
29 MODULE_AUTHOR("Jun Komuro <komurojun-[email protected]>");
69 reg += socket->number * 0x40; in indirect_read()
70 port = socket->io_base; in indirect_read()
86 reg = reg + socket->number * 0x40; in indirect_read16()
87 port = socket->io_base; in indirect_read16()
105 reg = reg + socket->number * 0x40; in indirect_write()
106 port = socket->io_base; in indirect_write()
[all …]
Dpcmcia_cis.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * PCMCIA high-level CIS access functions
10 * Copyright (C) 2004-2010 Dominik Brodowski
27 * pccard_read_tuple() - internal CIS tuple access
44 dev_warn(&s->dev, "no memory to read tuple\n"); in pccard_read_tuple()
45 return -ENOMEM; in pccard_read_tuple()
68 * pccard_loop_tuple() - loop over tuples in the CIS
94 dev_warn(&s->dev, "no memory to read tuple\n"); in pccard_loop_tuple()
95 return -ENOMEM; in pccard_loop_tuple()
127 * pcmcia_io_cfg_data_width() - convert cfgtable to data path width parameter
[all …]
Delectra_cf.c1 // SPDX-License-Identifier: GPL-2.0-or-later
27 static const char driver_name[] = "electra-cf";
59 gpio = in_le32(cf->gpio_base+0x40); in electra_cf_present()
60 return !(gpio & (1 << cf->gpio_detect)); in electra_cf_present()
74 if (present != cf->present) { in electra_cf_timer()
75 cf->present = present; in electra_cf_timer()
76 pcmcia_parse_events(&cf->socket, SS_DETECT); in electra_cf_timer()
79 if (cf->active) in electra_cf_timer()
80 mod_timer(&cf->timer, jiffies + POLL_INTERVAL); in electra_cf_timer()
87 electra_cf_timer(&cf->timer); in electra_cf_irq()
[all …]
Di82365.c50 #include <asm/io.h>
56 /* ISA-bus controllers */
67 return -1; in _check_irq()
81 static int ignore = -1;
86 /* The card status change interrupt -- 0 means autoselect */
91 /* Poll status interval -- 0 means default to interrupt */
97 static int has_dma = -1;
98 static int has_led = -1;
99 static int has_ring = -1;
101 static int freq_bypass = -1;
[all …]
/linux-6.14.4/sound/isa/msnd/
Dmsnd_pinnacle.c1 // SPDX-License-Identifier: GPL-2.0-or-later
16 * the following is a copy of the 2.4.18 OSS FREE file-heading comment:
21 * -- If MSND_CLASSIC is defined:
23 * -> driver for Turtle Beach Classic/Monterey/Tahiti
25 * -- Else
27 * -> driver for Turtle Beach Pinnacle/Fiji
29 * 12-3-2000 Modified IO port validation Steve Sycamore
45 #include <linux/io.h>
62 # define DEV_NAME "msnd-classic"
66 # define DEV_NAME "msnd-pinnacle"
[all …]
/linux-6.14.4/drivers/net/ethernet/amd/
Datarilance.c3 Written 1995/96 by Roman Hodek ([email protected]-erlangen.de)
9 - The driver for the Riebl Lance card by the TU Vienna.
10 - The modified TUW driver for PAM's VME cards
11 - The PC-Linux driver for Lance cards (but this is for bus master
13 - The Amiga Ariadne driver
23 better probe procedure for 24-bit systems
24 non-VME-RieblCards need extra delays in memcpy
36 When the lance is stopped it jumps back into little-endian
39 This might be the reason why multicast-mode didn't work
46 "[email protected]-erlangen.de\n";
[all …]
/linux-6.14.4/Documentation/sound/cards/
Dmultisound.sh4 # -- Andrew Veliath <[email protected]>
15 # -=-=- Getting Firmware -=-=-
26 # Currently, full-duplex digital audio (/dev/dsp only, /dev/audio is
37 # snd-msnd-lib - MultiSound base (requires snd)
39 # snd-msnd-classic - Base audio/mixer support for Classic, Monetery and
42 # snd-msnd-pinnacle - Base audio/mixer support for Pinnacle and Fiji cards
45 # Important Notes - Read Before Using
69 # These cards are configured through the driver snd-msnd-classic. You must
70 # know the io port, then the driver will select the irq and memory resources
81 # can be used to configure the card in non-PnP mode, and in PnP mode
[all …]
/linux-6.14.4/include/linux/
Dswiotlb.h1 /* SPDX-License-Identifier: GPL-2.0 */
6 #include <linux/dma-direction.h>
29 * log of the size of each IO TLB slab. The number of slabs is command line
48 * struct io_tlb_pool - IO TLB memory pool descriptor
58 * @nslabs: The number of IO TLB slots between @start and @end. For the
66 * @node: Member of the IO TLB memory pool list.
88 * struct io_tlb_mem - Software IO TLB allocator
89 * @defpool: Default (initial) IO TLB memory pool descriptor.
90 * @pool: IO TLB memory pool descriptor (if not dynamic).
91 * @nslabs: Total number of IO TLB slabs in all pools.
[all …]
/linux-6.14.4/drivers/clk/ti/
Dclk.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * Tero Kristo <t-[email protected]>
12 #include <linux/clk-provider.h>
15 #include <linux/io.h>
38 void __iomem *mem; member
45 struct clk_iomap *io = clk_memmaps[reg->index]; in clk_memmap_writel() local
47 if (reg->ptr) in clk_memmap_writel()
48 writel_relaxed(val, reg->ptr); in clk_memmap_writel()
49 else if (io->regmap) in clk_memmap_writel()
50 regmap_write(io->regmap, reg->offset, val); in clk_memmap_writel()
[all …]
/linux-6.14.4/drivers/md/
Ddm-io.c1 // SPDX-License-Identifier: GPL-2.0-only
9 #include "dm-core.h"
11 #include <linux/device-mapper.h>
19 #include <linux/dm-io.h>
21 #define DM_MSG_PREFIX "io"
31 * Aligning 'struct io' reduces the number of bits required to store
34 struct io { struct
57 return ERR_PTR(-ENOMEM); in dm_io_client_create()
59 ret = mempool_init_slab_pool(&client->pool, min_ios, _dm_io_cache); in dm_io_client_create()
63 ret = bioset_init(&client->bios, min_ios, 0, BIOSET_NEED_BVECS); in dm_io_client_create()
[all …]
/linux-6.14.4/include/linux/spi/
Dspi-mem.h1 /* SPDX-License-Identifier: GPL-2.0+ */
100 * enum spi_mem_data_dir - describes the direction of a SPI memory data
116 * struct spi_mem_op - describes a SPI memory operation
118 * sent MSB-first.
119 * @cmd.buswidth: number of IO lines used to transmit the command
124 * @addr.buswidth: number of IO lines used to transmit the address cycles
132 * @dummy.buswidth: number of IO lanes used to transmit the dummy bytes
134 * @data.buswidth: number of IO lanes used to send/receive the data
137 * @data.swap16: whether the byte order of 16-bit words is swapped when read
142 * @data.buf.in: input buffer (must be DMA-able)
[all …]
/linux-6.14.4/drivers/gpu/drm/i915/gem/
Di915_gem_stolen.c2 * SPDX-License-Identifier: MIT
4 * Copyright © 2008-2012 Intel Corporation
46 if (!drm_mm_initialized(&i915->mm.stolen)) in i915_gem_stolen_insert_node_in_range()
47 return -ENODEV; in i915_gem_stolen_insert_node_in_range()
53 mutex_lock(&i915->mm.stolen_lock); in i915_gem_stolen_insert_node_in_range()
54 ret = drm_mm_insert_node_in_range(&i915->mm.stolen, node, in i915_gem_stolen_insert_node_in_range()
57 mutex_unlock(&i915->mm.stolen_lock); in i915_gem_stolen_insert_node_in_range()
75 mutex_lock(&i915->mm.stolen_lock); in i915_gem_stolen_remove_node()
77 mutex_unlock(&i915->mm.stolen_lock); in i915_gem_stolen_remove_node()
82 return (dsm->start != 0 || HAS_LMEMBAR_SMEM_STOLEN(i915)) && dsm->end > dsm->start; in valid_stolen_size()
[all …]
/linux-6.14.4/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
21 #include <linux/io.h>
134 /* PCI BASE bits (PCI -> Local Bus) */
141 /* PCI MAP bits (PCI -> Local bus) */
150 /* LB_BASE0,1 bits (Local bus -> PCI) */
172 /* LB_MAP0,1 bits (Local bus -> PCI) */
185 /* LB_BASE2 bits (Local bus -> PCI IO) */
192 /* LB_MAP2 bits (Local bus -> PCI IO) */
[all …]
/linux-6.14.4/arch/mips/sgi-ip30/
Dip30-xtalk.c1 // SPDX-License-Identifier: GPL-2.0
3 * ip30-xtalk.c - Very basic Crosstalk (XIO) detection support.
4 * Copyright (C) 2004-2007 Stanislaw Skowronek <[email protected]>
6 * Copyright (C) 2007, 2014-2016 Joshua Kinard <[email protected]>
12 #include <linux/platform_data/sgi-w1.h>
13 #include <linux/platform_data/xtalk-bridge.h>
53 snprintf(wd->dev_id, sizeof(wd->dev_id), "bridge-%012lx", in bridge_platform_create()
87 pdev_bd = platform_device_alloc("xtalk-bridge", PLATFORM_DEVID_AUTO); in bridge_platform_create()
93 bd->bridge_addr = IP30_RAW_SWIN_BASE(widget); in bridge_platform_create()
94 bd->intr_addr = HEART_INTR_ADDR; in bridge_platform_create()
[all …]
/linux-6.14.4/Documentation/devicetree/bindings/pci/
Dmvebu-pci.txt5 - compatible: one of the following values:
6 marvell,armada-370-pcie
7 marvell,armada-xp-pcie
8 marvell,dove-pcie
9 marvell,kirkwood-pcie
10 - #address-cells, set to <3>
11 - #size-cells, set to <2>
12 - #interrupt-cells, set to <1>
13 - bus-range: PCI bus numbers covered
14 - device_type, set to "pci"
[all …]

12345678910>>...42