Lines Matching refs:sram_address
212 static u32 ns_read_sram(ns_dev *card, u32 sram_address);
213 static void ns_write_sram(ns_dev *card, u32 sram_address, u32 *value, int count);
424 static u32 ns_read_sram(ns_dev *card, u32 sram_address) in ns_read_sram() argument
428 sram_address <<= 2; in ns_read_sram()
429 sram_address &= 0x0007FFFC; /* address must be dword aligned */ in ns_read_sram()
430 sram_address |= 0x50000000; /* SRAM read command */ in ns_read_sram()
433 writel(sram_address, card->membase + CMD); in ns_read_sram()
442 static void ns_write_sram(ns_dev *card, u32 sram_address, u32 *value, int count) in ns_write_sram() argument
455 sram_address <<= 2; in ns_write_sram()
456 sram_address &= 0x0007FFFC; in ns_write_sram()
457 sram_address |= (0x40000000 | count); in ns_write_sram()
458 writel(sram_address, card->membase + CMD); in ns_write_sram()