Lines Matching refs:sram_address
120 static u32 ns_read_sram(ns_dev * card, u32 sram_address);
121 static void ns_write_sram(ns_dev * card, u32 sram_address, u32 * value,
307 static u32 ns_read_sram(ns_dev * card, u32 sram_address) in ns_read_sram() argument
311 sram_address <<= 2; in ns_read_sram()
312 sram_address &= 0x0007FFFC; /* address must be dword aligned */ in ns_read_sram()
313 sram_address |= 0x50000000; /* SRAM read command */ in ns_read_sram()
316 writel(sram_address, card->membase + CMD); in ns_read_sram()
323 static void ns_write_sram(ns_dev * card, u32 sram_address, u32 * value, in ns_write_sram() argument
337 sram_address <<= 2; in ns_write_sram()
338 sram_address &= 0x0007FFFC; in ns_write_sram()
339 sram_address |= (0x40000000 | count); in ns_write_sram()
340 writel(sram_address, card->membase + CMD); in ns_write_sram()