Searched refs:mem (Results 1 - 25 of 178) sorted by relevance

12345678

/u-boot/arch/arm/mach-exynos/
H A Ddmc_init_exynos4.c31 struct mem_timings mem = { variable in typeref:struct:mem_timings
54 writel((mem.control1 | (1 << mem.dll_resync)),
56 writel((mem.control1 | (0 << mem.dll_resync)),
59 writel((mem.control0 | (0 << mem.dll_on)),
61 writel((mem.control0 | (1 << mem.dll_on)),
75 writel(mem
[all...]
H A Ddmc_common.c17 int dmc_config_zq(struct mem_timings *mem, uint32_t *phy0_con16, argument
30 val |= mem->zq_mode_dds << PHY_CON16_ZQ_MODE_DDS_SHIFT;
31 val |= mem->zq_mode_term << PHY_CON16_ZQ_MODE_TERM_SHIFT;
37 if (mem->zq_mode_noterm)
95 void dmc_config_mrs(struct mem_timings *mem, uint32_t *directcmd) argument
99 for (channel = 0; channel < mem->dmc_channels; channel++) {
103 for (chip = 0; chip < mem->chips_to_configure; chip++) {
120 writel(mem->direct_cmd_msr[i] | mask,
125 if (mem->send_zq_init) {
136 void dmc_config_prech(struct mem_timings *mem, uint32_ argument
157 struct mem_timings *mem; local
[all...]
H A Ddmc_init_ddr3.c3 * DDR3 mem setup file for board based on EXYNOS5
35 int ddr3_mem_ctrl_init(struct mem_timings *mem, int reset) argument
51 val = (mem->impedance << CA_CK_DRVR_DS_OFFSET) |
52 (mem->impedance << CA_CKE_DRVR_DS_OFFSET) |
53 (mem->impedance << CA_CS_DRVR_DS_OFFSET) |
54 (mem->impedance << CA_ADR_DRVR_DS_OFFSET);
59 val = (mem->ctrl_bstlen << PHY_CON42_CTRL_BSTLEN_SHIFT) |
60 (mem->ctrl_rdlat << PHY_CON42_CTRL_RDLAT_SHIFT);
65 if (dmc_config_zq(mem, &phy0_ctrl->phy_con16, &phy1_ctrl->phy_con16,
70 writel(mem
440 ddr3_mem_ctrl_init(struct mem_timings *mem, int reset) argument
[all...]
H A Dclock_init_exynos5.c524 struct mem_timings *mem; local
532 for (i = 0, mem = mem_timings; i < ARRAY_SIZE(mem_timings);
533 i++, mem++) {
534 if (mem->mem_type == mem_type &&
535 mem->frequency_mhz == frequency_mhz &&
536 mem->mem_manuf == mem_manuf)
537 return mem;
551 struct mem_timings *mem; local
555 mem = clock_get_mem_timings();
584 writel(mem
786 struct mem_timings *mem; local
[all...]
/u-boot/include/linux/
H A Dkbuild.h14 #define OFFSET(sym, str, mem) \
15 DEFINE(sym, offsetof(struct str, mem))
/u-boot/test/dm/
H A Dosd.c20 static void split(u8 *mem, uint size, u8 *text, u8 *colors) argument
23 u16 *p = (u16 *)mem;
31 static void print_mem(u8 *mem, uint width, uint height) argument
38 split(mem, memsize / 2, text, colors);
58 u8 mem[memsize + 1]; local
72 ut_assertok(sandbox_osd_get_mem(dev, mem, memsize));
73 split(mem, memsize / 2, text, colors);
99 print_mem(mem, 10, 10);
103 ut_assertok(sandbox_osd_get_mem(dev, mem, memsize));
104 split(mem, memsiz
140 u8 mem[memsize + 1]; local
[all...]
/u-boot/arch/xtensa/lib/
H A Dbootm.c46 struct meminfo *mem; local
50 mem = (struct meminfo *)params->data;
51 mem->type = MEMORY_TYPE_CONVENTIONAL;
52 mem->start = PHYSADDR(gd->ram_base);
53 mem->end = PHYSADDR(gd->ram_base + gd->ram_size);
56 BP_TAG_MEMORY, mem->type, mem->start, mem->end);
85 struct meminfo *mem; local
95 mem
[all...]
/u-boot/board/renesas/rcar-common/
H A Dcommon.c146 int mem = 0, first_mem_node = 0; local
149 mem = fdt_node_offset_by_prop_value(blob, mem,
151 if (mem < 0)
153 if (!fdtdec_get_is_enabled(blob, mem))
158 first_mem_node = mem;
163 if (!is_mem_overlap(blob, first_mem_node, mem))
167 fdt_del_node(blob, mem);
169 mem = 0;
/u-boot/arch/arm/lib/
H A Dsave_prev_bl_data.c32 struct mm_region *mem = mem_map; local
36 while (mem->size) {
37 bank_start = mem->phys;
38 bank_end = bank_start + mem->size;
42 mem++;
/u-boot/drivers/remoteproc/
H A Dti_k3_dsp_rproc.c57 * @mem: Array of available memories
65 struct k3_dsp_mem *mem; member in struct:k3_dsp_privdata
264 bus_addr = dsp->mem[i].bus_addr;
265 dev_addr = dsp->mem[i].dev_addr;
266 size = dsp->mem[i].size;
270 va = dsp->mem[i].cpu_addr + offset;
276 va = dsp->mem[i].cpu_addr + offset;
335 dsp->mem = calloc(dsp->num_mems, sizeof(*dsp->mem));
336 if (!dsp->mem)
[all...]
/u-boot/arch/x86/cpu/baytrail/
H A Dfsp_configs.c36 struct memory_down_data *mem; local
123 mem = &fsp_upd->memory_params;
124 mem->enable_memory_down = fdtdec_get_bool(blob, node,
126 if (mem->enable_memory_down) {
133 mem->dram_speed = fdtdec_get_int(blob, node,
136 mem->dram_type = fdtdec_get_int(blob, node,
139 mem->dimm_0_enable = fdtdec_get_bool(blob, node,
141 mem->dimm_1_enable = fdtdec_get_bool(blob, node,
143 mem->dimm_width = fdtdec_get_int(blob, node,
146 mem
[all...]
/u-boot/arch/arm/mach-imx/
H A Dmmdc_size.c41 struct esd_mmdc_regs *mem = (struct esd_mmdc_regs *)MEMCTL_BASE; local
42 unsigned int ctl = readl(&mem->ctl);
43 unsigned int misc = readl(&mem->misc);
/u-boot/drivers/clk/altera/
H A DMakefile9 obj-$(CONFIG_TARGET_SOCFPGA_N5X) += clk-mem-n5x.o
/u-boot/board/amlogic/sei510/
H A Dsei510.c17 #include <asm/arch/mem.h>
/u-boot/board/amlogic/s400/
H A Ds400.c15 #include <asm/arch/mem.h>
/u-boot/board/amlogic/sei610/
H A Dsei610.c17 #include <asm/arch/mem.h>
/u-boot/board/amlogic/u200/
H A Du200.c15 #include <asm/arch/mem.h>
/u-boot/include/
H A Dspi-mem.h160 * @mem: the SPI memory device this direct mapping is attached to
192 * mem devices through a io-mapped region.
200 * struct spi_mem_set_drvdata() - attach driver private data to a SPI mem
202 * @mem: memory device
205 static inline void spi_mem_set_drvdata(struct spi_mem *mem, void *data) argument
207 mem->drvpriv = data;
211 * struct spi_mem_get_drvdata() - get driver private data attached to a SPI mem
213 * @mem: memory device
215 * Return: the data attached to the mem device.
217 static inline void *spi_mem_get_drvdata(struct spi_mem *mem) argument
[all...]
/u-boot/board/xen/xenguest_arm64/
H A Dxenguest_arm64.c69 static int get_next_memory_node(const void *blob, int mem) argument
72 mem = fdt_node_offset_by_prop_value(blob, mem,
74 } while (!fdtdec_get_is_enabled(blob, mem));
76 return mem;
168 int i = 0, ret, mem, reg = 0; local
227 mem = get_next_memory_node(blob, -1);
228 if (mem < 0) {
235 ret = fdt_node_check_compatible(blob, mem, "virtio,mmio");
239 ret = fdt_get_resource(blob, mem, "re
[all...]
/u-boot/lib/
H A Dof_live.c26 static void *unflatten_dt_alloc(void **mem, unsigned long size, argument
31 *mem = PTR_ALIGN(*mem, align);
32 res = *mem;
33 *mem += size;
41 * @mem: Memory chunk to use for allocating device nodes and properties
49 static void *unflatten_dt_node(const void *blob, void *mem, int *poffset, argument
68 return mem;
101 np = unflatten_dt_alloc(&mem, sizeof(struct device_node) + allocl,
155 pp = unflatten_dt_alloc(&mem, sizeo
267 void *mem; local
[all...]
/u-boot/cmd/
H A Dini.c79 static char *memgets(char *str, int num, char **mem, size_t *memsize) argument
85 end = memchr(*mem, '\n', *memsize);
89 end = *mem + *memsize;
92 len = min((int)(end - *mem) + newline, num);
93 memcpy(str, *mem, len);
97 /* prepare the mem vars for the next call */
98 *memsize -= (end - *mem) + newline;
99 *mem += (end - *mem) + newline;
H A Ddm.c42 struct dm_stats mem; local
44 dm_get_mem(&mem);
45 dm_dump_mem(&mem);
108 #define DM_MEM_HELP "dm mem Provide a summary of memory usage\n"
109 #define DM_MEM U_BOOT_SUBCMD_MKENT(mem, 1, 1, do_dm_dump_mem),
/u-boot/post/drivers/
H A Dmemory.c275 ulong *mem = (ulong *) start; local
280 mem[i] = val;
286 readback = mem[i];
289 mem + i, val, readback);
304 ulong *mem = (ulong *) start; local
309 mem[i] = 1 << (i % 32);
315 readback = mem[i];
318 mem + i, 1UL << (i % 32), readback);
333 ulong *mem = (ulong *) start; local
338 mem[
362 ulong *mem = (ulong *) start; local
[all...]
/u-boot/drivers/pci/
H A Dpci_mpc85xx.c93 mpc85xx_pci_dm_setup_laws(struct pci_region *io, struct pci_region *mem, argument
102 if (mem)
103 set_next_law(mem->phys_start, law_size_bits(mem->size),
120 struct pci_region *mem; local
125 count = pci_get_regions(dev, &io, &mem, &pre);
133 mpc85xx_pci_dm_setup_laws(io, mem, pre);
138 out_be32(&pcix->potar1, mem->bus_start >> 12);
139 out_be32(&pcix->potear1, (u64)mem->bus_start >> 44);
140 out_be32(&pcix->powbar1, mem
[all...]
/u-boot/drivers/core/
H A Dof_extra.c81 const char *mem; local
98 mem = ofnode_read_string(config_node, prop_name);
99 if (!mem) {
102 mem = "/memory";
105 node = ofnode_path(mem);
107 debug("%s: Failed to find node '%s'\n", __func__, mem);
117 mem);

Completed in 259 milliseconds

12345678