Lines Matching refs:mmio_nvram_len
34 static long mmio_nvram_len; variable
41 if (*index >= mmio_nvram_len) in mmio_nvram_read()
43 if (*index + count > mmio_nvram_len) in mmio_nvram_read()
44 count = mmio_nvram_len - *index; in mmio_nvram_read()
61 if (addr >= mmio_nvram_len) in mmio_nvram_read_val()
77 if (*index >= mmio_nvram_len) in mmio_nvram_write()
79 if (*index + count > mmio_nvram_len) in mmio_nvram_write()
80 count = mmio_nvram_len - *index; in mmio_nvram_write()
96 if (addr < mmio_nvram_len) { in mmio_nvram_write_val()
107 return mmio_nvram_len; in mmio_nvram_get_size()
132 mmio_nvram_len = resource_size(&r); in mmio_nvram_init()
133 if ( (!mmio_nvram_len) || (!nvram_addr) ) { in mmio_nvram_init()
139 mmio_nvram_start = ioremap(nvram_addr, mmio_nvram_len); in mmio_nvram_init()
147 mmio_nvram_len >> 10, nvram_addr, mmio_nvram_start); in mmio_nvram_init()