/linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
A D | gddr5.c | 75 ram->mr[0] &= ~0xf7f; in nvkm_gddr5_calc() 80 ram->mr[1] &= ~0x0bf; in nvkm_gddr5_calc() 89 ram->mr1_nuts = ram->mr[1]; in nvkm_gddr5_calc() 91 ram->mr[1] &= ~0x030; in nvkm_gddr5_calc() 95 ram->mr[3] &= ~0x020; in nvkm_gddr5_calc() 98 ram->mr[5] &= ~0x004; in nvkm_gddr5_calc() 103 if (ram->mr[6] & 0x001) in nvkm_gddr5_calc() 105 ram->mr[6] &= ~0xff1; in nvkm_gddr5_calc() 110 ram->mr[7] &= ~0x300; in nvkm_gddr5_calc() 113 ram->mr[7] &= ~0x088; in nvkm_gddr5_calc() [all …]
|
A D | ramgk104.c | 160 const u32 mcoef = ((--ram->P2 << 28) | (ram->N2 << 8) | ram->M2); in r1373f4_init() 161 const u32 rcoef = (( ram->P1 << 16) | (ram->N1 << 8) | ram->M1); in r1373f4_init() 343 if (ram->from == 2 && ram->mode != 2) { in gk104_ram_calc_gddr5() 354 if (ram->from != 2 && ram->mode != 2) { in gk104_ram_calc_gddr5() 373 if (ram->from != 2 && ram->mode == 2) { in gk104_ram_calc_gddr5() 703 const u32 rcoef = (( ram->P1 << 16) | (ram->N1 << 8) | ram->M1); in gk104_ram_calc_sddr3() 1066 &ram->N1, &ram->fN1, &ram->M1, &ram->P1, in gk104_ram_calc_xits() 1067 &ram->N2, &ram->M2, &ram->P2); in gk104_ram_calc_xits() 1078 &ram->fN1, &ram->M1, &ram->P1); in gk104_ram_calc_xits() 1143 ram->base.next = &ram->base.target; in gk104_ram_calc() [all …]
|
A D | gddr3.c | 89 DLL = !(ram->mr[1] & 0x1); in nvkm_gddr3_calc() 98 ODT = (ram->mr[1] & 0xc) >> 2; in nvkm_gddr3_calc() 101 hi = ram->mr[2] & 0x1; in nvkm_gddr3_calc() 107 ram->mr[0] &= ~0xf74; in nvkm_gddr3_calc() 108 ram->mr[0] |= (CWL & 0x07) << 9; in nvkm_gddr3_calc() 109 ram->mr[0] |= (CL & 0x07) << 4; in nvkm_gddr3_calc() 110 ram->mr[0] |= (CL & 0x08) >> 1; in nvkm_gddr3_calc() 112 ram->mr[1] &= ~0x3fc; in nvkm_gddr3_calc() 113 ram->mr[1] |= (ODT & 0x03) << 2; in nvkm_gddr3_calc() 114 ram->mr[1] |= (RON & 0x03) << 8; in nvkm_gddr3_calc() [all …]
|
A D | ramnv50.c | 165 switch (ram->base.type) { in nv50_ram_timing_read() 234 next = &ram->base.target; in nv50_ram_calc() 236 ram->base.next = next; in nv50_ram_calc() 290 switch (ram->base.type) { in nv50_ram_calc() 374 switch (ram->base.type) { in nv50_ram_calc() 574 ram->parts = hweight8(ram->part_mask); in nv50_ram_ctor() 576 nvkm_mm_fini(&ram->vram); in nv50_ram_ctor() 587 struct nv50_ram *ram; in nv50_ram_new() local 590 if (!(ram = kzalloc(sizeof(*ram), GFP_KERNEL))) in nv50_ram_new() 592 *pram = &ram->base; in nv50_ram_new() [all …]
|
A D | sddr3.c | 93 (ram->mr[1] & 0x040) >> 5 | in nvkm_sddr3_calc() 106 ram->mr[0] &= ~0xf74; in nvkm_sddr3_calc() 107 ram->mr[0] |= (WR & 0x07) << 9; in nvkm_sddr3_calc() 108 ram->mr[0] |= (CL & 0x0e) << 3; in nvkm_sddr3_calc() 109 ram->mr[0] |= (CL & 0x01) << 2; in nvkm_sddr3_calc() 111 ram->mr[1] &= ~0x245; in nvkm_sddr3_calc() 112 ram->mr[1] |= (ODT & 0x1) << 2; in nvkm_sddr3_calc() 113 ram->mr[1] |= (ODT & 0x2) << 5; in nvkm_sddr3_calc() 114 ram->mr[1] |= (ODT & 0x4) << 7; in nvkm_sddr3_calc() 115 ram->mr[1] |= !DLL; in nvkm_sddr3_calc() [all …]
|
A D | ramgf100.c | 109 struct gf100_ram *ram = container_of(fuc, typeof(*ram), fuc); in gf100_ram_train() local 110 struct nvkm_fb *fb = ram->base.fb; in gf100_ram_train() 180 ret = ram_init(fuc, ram->base.fb); in gf100_ram_calc() 215 ret = gt215_pll_calc(subdev, &ram->refpll, ram->mempll.refclk, in gf100_ram_calc() 419 ram_exec(&ram->fuc, false); in gf100_ram_tidy() 441 switch (ram->base.type) { in gf100_ram_init() 492 struct nvkm_ram *ram) in gf100_ram_ctor() argument 530 nvkm_mm_fini(&ram->vram); in gf100_ram_ctor() 572 struct gf100_ram *ram; in gf100_ram_new_() local 575 if (!(ram = kzalloc(sizeof(*ram), GFP_KERNEL))) in gf100_ram_new_() [all …]
|
A D | ramgt215.c | 194 ret = ram->base.func->calc(&ram->base, (u32) M0205T.freq * 1000); in gt215_link_train() 237 ram->base.func->calc(&ram->base, clk_current); in gt215_link_train() 513 ram->base.next = next; in gt215_ram_calc() 927 return ram; in gt215_ram_dtor() 945 if (!(ram = kzalloc(sizeof(*ram), GFP_KERNEL))) in gt215_ram_new() 947 *pram = &ram->base; in gt215_ram_new() 978 ram->fuc.r_0x100760 = ramfuc_stride(0x100760, 4, ram->base.part_mask); in gt215_ram_new() 979 ram->fuc.r_0x1007a0 = ramfuc_stride(0x1007a0, 4, ram->base.part_mask); in gt215_ram_new() 980 ram->fuc.r_0x1007e0 = ramfuc_stride(0x1007e0, 4, ram->base.part_mask); in gt215_ram_new() 981 ram->fuc.r_0x100da0 = ramfuc_stride(0x100da0, 4, ram->base.part_mask); in gt215_ram_new() [all …]
|
A D | ram.c | 117 if (!device->fb || !(ram = device->fb->ram)) in nvkm_ram_get() 119 ram = device->fb->ram; in nvkm_ram_get() 120 mm = &ram->vram; in nvkm_ram_get() 125 vram->ram = ram; in nvkm_ram_get() 154 return ram->func->init(ram); in nvkm_ram_init() 162 if (ram && !WARN_ON(!ram->func)) { in nvkm_ram_del() 164 *pram = ram->func->dtor(ram); in nvkm_ram_del() 196 ram->func = func; in nvkm_ram_ctor() 197 ram->fb = fb; in nvkm_ram_ctor() 198 ram->type = type; in nvkm_ram_ctor() [all …]
|
A D | sddr2.c | 61 nvkm_sddr2_calc(struct nvkm_ram *ram) in nvkm_sddr2_calc() argument 67 CL = ram->next->bios.timing_10_CL; in nvkm_sddr2_calc() 82 ODT = (ram->mr[1] & 0x004) >> 2 | in nvkm_sddr2_calc() 83 (ram->mr[1] & 0x040) >> 5; in nvkm_sddr2_calc() 91 ram->mr[0] &= ~0xf70; in nvkm_sddr2_calc() 92 ram->mr[0] |= (WR & 0x07) << 9; in nvkm_sddr2_calc() 93 ram->mr[0] |= (CL & 0x07) << 4; in nvkm_sddr2_calc() 95 ram->mr[1] &= ~0x045; in nvkm_sddr2_calc() 96 ram->mr[1] |= (ODT & 0x1) << 2; in nvkm_sddr2_calc() 97 ram->mr[1] |= (ODT & 0x2) << 5; in nvkm_sddr2_calc() [all …]
|
A D | ramfuc.h | 65 ram->sequence++; in ramfuc_init() 66 ram->fb = fb; in ramfuc_init() 74 if (ram->fb) { in ramfuc_exec() 76 ram->fb = NULL; in ramfuc_exec() 95 reg->sequence = ram->sequence; in ramfuc_wr32() 131 nvkm_memx_nsec(ram->memx, nsec); in ramfuc_nsec() 141 ramfuc_train(struct ramfuc *ram) in ramfuc_train() argument 143 nvkm_memx_train(ram->memx); in ramfuc_train() 153 ramfuc_block(struct ramfuc *ram) in ramfuc_block() argument 155 nvkm_memx_block(ram->memx); in ramfuc_block() [all …]
|
A D | rammcp77.c | 35 struct mcp77_ram *ram = mcp77_ram(base); in mcp77_ram_init() local 37 u32 dniso = ((ram->base.size - (ram->poller_base + 0x00)) >> 5) - 1; in mcp77_ram_init() 38 u32 hostnb = ((ram->base.size - (ram->poller_base + 0x20)) >> 5) - 1; in mcp77_ram_init() 39 u32 flush = ((ram->base.size - (ram->poller_base + 0x40)) >> 5) - 1; in mcp77_ram_init() 66 struct mcp77_ram *ram; in mcp77_ram_new() local 69 if (!(ram = kzalloc(sizeof(*ram), GFP_KERNEL))) in mcp77_ram_new() 71 *pram = &ram->base; in mcp77_ram_new() 74 size, &ram->base); in mcp77_ram_new() 78 ram->poller_base = size - rsvd_tail; in mcp77_ram_new() 79 ram->base.stolen = base; in mcp77_ram_new() [all …]
|
A D | ramnv40.c | 36 struct nv40_ram *ram = nv40_ram(base); in nv40_ram_calc() local 53 ram->ctrl = 0x80000000 | (log2P << 16); in nv40_ram_calc() 56 ram->ctrl |= 0x00000100; in nv40_ram_calc() 57 ram->coef = (N1 << 8) | M1; in nv40_ram_calc() 59 ram->ctrl |= 0x40000000; in nv40_ram_calc() 69 struct nv40_ram *ram = nv40_ram(base); in nv40_ram_prog() local 132 nvkm_wr32(device, 0x004048, ram->coef); in nv40_ram_prog() 133 nvkm_wr32(device, 0x004030, ram->coef); in nv40_ram_prog() 194 struct nv40_ram *ram; in nv40_ram_new_() local 195 if (!(ram = kzalloc(sizeof(*ram), GFP_KERNEL))) in nv40_ram_new_() [all …]
|
A D | ramgp100.c | 31 gp100_ram_init(struct nvkm_ram *ram) in gp100_ram_init() argument 33 struct nvkm_subdev *subdev = &ram->fb->subdev; in gp100_ram_init() 92 struct nvkm_ram *ram; in gp100_ram_new() local 94 if (!(ram = *pram = kzalloc(sizeof(*ram), GFP_KERNEL))) in gp100_ram_new() 97 return gf100_ram_ctor(&gp100_ram, fb, ram); in gp100_ram_new()
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bus/ |
A D | hwsq.h | 69 ram->sequence++; in hwsq_init() 70 ram->subdev = subdev; in hwsq_init() 75 hwsq_exec(struct hwsq *ram, bool exec) in hwsq_exec() argument 78 if (ram->subdev) { in hwsq_exec() 80 ram->subdev = NULL; in hwsq_exec() 89 if (reg->sequence != ram->sequence) in hwsq_rd32() 99 reg->sequence = ram->sequence; in hwsq_wr32() 119 u32 temp = hwsq_rd32(ram, reg); in hwsq_mask() 138 hwsq_wait_vblank(struct hwsq *ram) in hwsq_wait_vblank() argument 140 nvkm_hwsq_wait_vblank(ram->hwsq); in hwsq_wait_vblank() [all …]
|
/linux/arch/powerpc/mm/nohash/ |
A D | fsl_book3e.c | 144 unsigned long calc_cam_sz(unsigned long ram, unsigned long virt, in calc_cam_sz() argument 147 unsigned int camsize = __ilog2(ram); in calc_cam_sz() 170 unsigned long ram, int max_cam_idx, in map_mem_in_cams_addr() argument 180 boundary = ram; in map_mem_in_cams_addr() 196 for (ram -= amount_mapped; ram && i < max_cam_idx; i++) { in map_mem_in_cams_addr() 200 cam_sz = calc_cam_sz(ram, virt, phys); in map_mem_in_cams_addr() 204 ram -= cam_sz; in map_mem_in_cams_addr() 235 return map_mem_in_cams_addr(phys, virt, ram, max_cam_idx, dryrun, init); in map_mem_in_cams() 269 unsigned long ram; in adjust_total_lowmem() local 273 ram = min((phys_addr_t)__max_low_memory, (phys_addr_t)total_lowmem); in adjust_total_lowmem() [all …]
|
A D | kaslr_booke.c | 293 unsigned long ram, linear_sz; in kaslr_choose_location() local 316 ram = min_t(phys_addr_t, __max_low_memory, size); in kaslr_choose_location() 317 ram = map_mem_in_cams(ram, CONFIG_LOWMEM_CAM_NUM, true, true); in kaslr_choose_location() 318 linear_sz = min_t(unsigned long, ram, SZ_512M); in kaslr_choose_location() 338 get_crash_kernel(dt_ptr, ram); in kaslr_choose_location()
|
/linux/tools/testing/selftests/vm/ |
A D | transhuge-stress.c | 60 size_t ram, len; in main() local 67 ram = sysconf(_SC_PHYS_PAGES); in main() 68 if (ram > SIZE_MAX / sysconf(_SC_PAGESIZE) / 4) in main() 69 ram = SIZE_MAX / 4; in main() 71 ram *= sysconf(_SC_PAGESIZE); in main() 74 len = ram; in main() 82 ram >> (20 + HPAGE_SHIFT - PAGE_SHIFT - 1)); in main() 98 map_len = ram >> (HPAGE_SHIFT - 1); in main()
|
/linux/Documentation/devicetree/bindings/net/ |
A D | davinci_emac.txt | 12 - ti,davinci-ctrl-ram-offset: offset to control module ram 13 - ti,davinci-ctrl-ram-size: size of control module ram 24 - ti,davinci-no-bd-ram: boolean, does EMAC have BD RAM? 35 ti,davinci-ctrl-ram-offset = <0>; 36 ti,davinci-ctrl-ram-size = <0x2000>;
|
/linux/drivers/net/ethernet/amd/ |
A D | mvme147.c | 42 unsigned long ram; member 111 lp->ram = __get_dma_pages(GFP_ATOMIC, 3); /* 32K */ in mvme147lance_probe() 112 if (!lp->ram) { in mvme147lance_probe() 120 lp->lance.init_block = (struct lance_init_block *)(lp->ram); /* CPU addr */ in mvme147lance_probe() 121 …lp->lance.lance_init_block = (struct lance_init_block *)(lp->ram); /* LANCE addr o… in mvme147lance_probe() 134 free_pages(lp->ram, 3); in mvme147lance_probe() 193 free_pages(lp->ram, 3); in m147lance_exit()
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/ |
A D | nv50.c | 48 struct nvkm_memory *ram; member 61 u64 base = (nvkm_memory_addr(iobj->ram) + offset) & 0xffffff00000ULL; in nv50_instobj_wr32_slow() 62 u64 addr = (nvkm_memory_addr(iobj->ram) + offset) & 0x000000fffffULL; in nv50_instobj_wr32_slow() 80 u64 base = (nvkm_memory_addr(iobj->ram) + offset) & 0xffffff00000ULL; in nv50_instobj_rd32_slow() 81 u64 addr = (nvkm_memory_addr(iobj->ram) + offset) & 0x000000fffffULL; in nv50_instobj_rd32_slow() 186 memory = nv50_instobj(memory)->ram; in nv50_instobj_map() 282 return nvkm_memory_size(nv50_instobj(memory)->ram); in nv50_instobj_size() 288 return nvkm_memory_addr(nv50_instobj(memory)->ram); in nv50_instobj_addr() 307 return nvkm_memory_target(nv50_instobj(memory)->ram); in nv50_instobj_target() 332 nvkm_memory_unref(&iobj->ram); in nv50_instobj_dtor() [all …]
|
/linux/arch/arm/boot/dts/ |
A D | ste-db8500.dtsi | 21 ram@6000000 { 27 ram@6f00000 { 33 ram@7000000 { 47 ram@17f00000 {
|
A D | ste-db8520.dtsi | 21 ram@6000000 { 27 ram@6f00000 { 33 ram@7000000 { 47 ram@17f00000 {
|
/linux/arch/microblaze/kernel/ |
A D | setup.c | 88 void __init machine_early_init(const char *cmdline, unsigned int ram, in machine_early_init() argument 104 romfs_base = (ram ? ram : (unsigned int)&__init_end); in machine_early_init() 131 pr_info("Ramdisk addr 0x%08x, ", ram); in machine_early_init()
|
/linux/arch/arm/kernel/ |
A D | tcm.c | 265 char *ram; in tcm_init() local 327 ram = &__dtcm_start; in tcm_init() 328 memcpy(start, ram, dtcm_code_sz); in tcm_init() 365 ram = &__itcm_start; in tcm_init() 366 memcpy(start, ram, itcm_code_sz); in tcm_init()
|
/linux/Documentation/devicetree/bindings/net/can/ |
A D | ti_hecc.txt | 9 - reg: addresses and lengths of the register spaces for 'hecc', 'hecc-ram' 11 - reg-names :"hecc", "hecc-ram", "mbx" 29 reg-names = "hecc", "hecc-ram", "mbx";
|