Lines Matching refs:xram

63 static void socal_copy_from_xram(void *d, unsigned long xram, long size)  in socal_copy_from_xram()  argument
67 *dp++ = sbus_readl(xram); in socal_copy_from_xram()
68 xram += sizeof(u32); in socal_copy_from_xram()
73 static void socal_copy_to_xram(unsigned long xram, void *s, long size) in socal_copy_to_xram() argument
78 sbus_writel(val, xram); in socal_copy_to_xram()
79 xram += sizeof(u32); in socal_copy_to_xram()
85 static void socal_bzero(unsigned long xram, int size) in socal_bzero() argument
88 sbus_writel(0, xram); in socal_bzero()
89 xram += sizeof(u32); in socal_bzero()
161 u = (u32 *)s->xram; in socal_solicited()
166 (unsigned long)u - (unsigned long)s->xram)) in socal_solicited()
608 SOD(("Loading %ld bytes from %p to %p\n", sizeof(socal_ucode), socal_ucode, s->xram)) in socal_download_fw()
609 socal_copy_to_xram(s->xram, socal_ucode, sizeof(socal_ucode)); in socal_download_fw()
611 socal_bzero (s->xram + sizeof(socal_ucode), 65536 - sizeof(socal_ucode)); in socal_download_fw()
742 s->xram = s->eeprom + 0x10000UL; in socal_init()
744 s->xram = s->eeprom; in socal_init()
745 s->regs = (s->xram + 0x10000UL); in socal_init()
748 s->xram = sbus_ioremap(&sdev->resource[1], 0, in socal_init()
800 s->req[0].hw_cq = (socal_hw_cq *)(s->xram + SOCAL_CQ_REQ_OFFSET); in socal_init()
801 s->req[1].hw_cq = (socal_hw_cq *)(s->xram + SOCAL_CQ_REQ_OFFSET + sizeof(socal_hw_cq)); in socal_init()
802 s->rsp[0].hw_cq = (socal_hw_cq *)(s->xram + SOCAL_CQ_RSP_OFFSET); in socal_init()
803 s->rsp[1].hw_cq = (socal_hw_cq *)(s->xram + SOCAL_CQ_RSP_OFFSET + sizeof(socal_hw_cq)); in socal_init()
804 s->rsp[2].hw_cq = (socal_hw_cq *)(s->xram + SOCAL_CQ_RSP_OFFSET + 2 * sizeof(socal_hw_cq)); in socal_init()
831 socal_copy_to_xram(s->xram + SOCAL_CQ_REQ_OFFSET, cq, sizeof(cq)); in socal_init()
836 socal_copy_from_xram(s->serv_params, s->xram + 0x280, sizeof (s->serv_params)); in socal_init()
890 sbus_iounmap(s->xram, sdev->reg_addrs[1].reg_size); in socal_cleanup()