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,
309 static u32 ns_read_sram(ns_dev * card, u32 sram_address) in ns_read_sram() argument
313 sram_address <<= 2; in ns_read_sram()
314 sram_address &= 0x0007FFFC; /* address must be dword aligned */ in ns_read_sram()
315 sram_address |= 0x50000000; /* SRAM read command */ in ns_read_sram()
318 writel(sram_address, card->membase + CMD); in ns_read_sram()
325 static void ns_write_sram(ns_dev * card, u32 sram_address, u32 * value, in ns_write_sram() argument
339 sram_address <<= 2; in ns_write_sram()
340 sram_address &= 0x0007FFFC; in ns_write_sram()
341 sram_address |= (0x40000000 | count); in ns_write_sram()
342 writel(sram_address, card->membase + CMD); in ns_write_sram()