Lines Matching defs:base
855 static int gpmc_cs_set_memconf(int cs, u32 base, u32 size)
861 * Ensure that base address is aligned on a
864 if (base & (size - 1))
867 base >>= GPMC_CHUNK_SHIFT;
874 l |= base & GPMC_CONFIG7_BASEADDRESS_MASK;
900 static void gpmc_cs_get_memconf(int cs, u32 *base, u32 *size)
906 *base = (l & 0x3f) << GPMC_CHUNK_SHIFT;
947 static int gpmc_cs_insert_mem(int cs, unsigned long base, unsigned long size)
955 res->start = base;
956 res->end = base + size - 1;
978 int gpmc_cs_request(int cs, unsigned long size, unsigned long *base)
1005 /* Disable CS while changing base address and size mask */
1016 *base = res->start;
1540 u32 base, size;
1544 gpmc_cs_get_memconf(cs, &base, &size);
1545 if (gpmc_cs_insert_mem(cs, base, size)) {
1547 __func__, cs, base, base + size);
1984 * gpmc_cs_remap - remaps a chip-select physical base address
1986 * @base: physical base address to re-map chip-select to
1988 * Re-maps a chip-select to a new physical base address specified by
1989 * "base". Returns 0 on success and appropriate negative error code
1992 static int gpmc_cs_remap(int cs, u32 base)
2004 * allocated for the chip select and that the new base confirms
2007 base &= ~(SZ_16M - 1);
2010 if (base == old_base)
2017 ret = gpmc_cs_insert_mem(cs, base, size);
2021 ret = gpmc_cs_set_memconf(cs, base, size);
2173 unsigned long base;
2200 ret = gpmc_cs_request(cs, resource_size(&res), &base);
2464 gpmc->gpio_chip.base = -1;