Lines Matching refs:h

42 static void smart4_submit_command(ctlr_info_t *h, cmdlist_t *c)  in smart4_submit_command()  argument
44 writel(c->busaddr, h->vaddr + S42XX_REQUEST_PORT_OFFSET); in smart4_submit_command()
52 static void smart4_intr_mask(ctlr_info_t *h, unsigned long val) in smart4_intr_mask() argument
56 writel(0, h->vaddr + S42XX_REPLY_INTR_MASK_OFFSET); in smart4_intr_mask()
60 h->vaddr + S42XX_REPLY_INTR_MASK_OFFSET); in smart4_intr_mask()
69 static unsigned long smart4_fifo_full(ctlr_info_t *h) in smart4_fifo_full() argument
72 return (!readl(h->vaddr + S42XX_REQUEST_PORT_OFFSET)); in smart4_fifo_full()
79 static unsigned long smart4_completed(ctlr_info_t *h) in smart4_completed() argument
82 = readl(h->vaddr + S42XX_REPLY_PORT_OFFSET); in smart4_completed()
90 writel(0, h->vaddr + S42XX_REPLY_PORT_OFFSET); in smart4_completed()
100 static unsigned long smart4_intr_pending(ctlr_info_t *h) in smart4_intr_pending() argument
103 readl(h->vaddr + S42XX_INTR_STATUS); in smart4_intr_pending()
121 static void smart2_submit_command(ctlr_info_t *h, cmdlist_t *c) in smart2_submit_command() argument
123 writel(c->busaddr, h->vaddr + COMMAND_FIFO); in smart2_submit_command()
126 static void smart2_intr_mask(ctlr_info_t *h, unsigned long val) in smart2_intr_mask() argument
128 writel(val, h->vaddr + INTR_MASK); in smart2_intr_mask()
131 static unsigned long smart2_fifo_full(ctlr_info_t *h) in smart2_fifo_full() argument
133 return readl(h->vaddr + COMMAND_FIFO); in smart2_fifo_full()
136 static unsigned long smart2_completed(ctlr_info_t *h) in smart2_completed() argument
138 return readl(h->vaddr + COMMAND_COMPLETE_FIFO); in smart2_completed()
141 static unsigned long smart2_intr_pending(ctlr_info_t *h) in smart2_intr_pending() argument
143 return readl(h->vaddr + INTR_PENDING); in smart2_intr_pending()
157 static void smart2e_submit_command(ctlr_info_t *h, cmdlist_t *c) in smart2e_submit_command() argument
159 outl(c->busaddr, h->io_mem_addr+ COMMAND_FIFO); in smart2e_submit_command()
162 static void smart2e_intr_mask(ctlr_info_t *h, unsigned long val) in smart2e_intr_mask() argument
164 outl(val, h->io_mem_addr+ INTR_MASK); in smart2e_intr_mask()
167 static unsigned long smart2e_fifo_full(ctlr_info_t *h) in smart2e_fifo_full() argument
169 return inl(h->io_mem_addr+ COMMAND_FIFO); in smart2e_fifo_full()
172 static unsigned long smart2e_completed(ctlr_info_t *h) in smart2e_completed() argument
174 return inl(h->io_mem_addr+ COMMAND_COMPLETE_FIFO); in smart2e_completed()
177 static unsigned long smart2e_intr_pending(ctlr_info_t *h) in smart2e_intr_pending() argument
179 return inl(h->io_mem_addr+ INTR_PENDING); in smart2e_intr_pending()
207 static void smart1_submit_command(ctlr_info_t *h, cmdlist_t *c) in smart1_submit_command() argument
215 outb(CHANNEL_CLEAR, h->io_mem_addr + SMART1_SYSTEM_DOORBELL); in smart1_submit_command()
217 outl(c->busaddr, h->io_mem_addr + SMART1_LISTADDR); in smart1_submit_command()
218 outw(c->size, h->io_mem_addr + SMART1_LISTLEN); in smart1_submit_command()
220 outb(CHANNEL_BUSY, h->io_mem_addr + SMART1_LOCAL_DOORBELL); in smart1_submit_command()
223 static void smart1_intr_mask(ctlr_info_t *h, unsigned long val) in smart1_intr_mask() argument
226 outb(0xFD, h->io_mem_addr + SMART1_SYSTEM_DOORBELL); in smart1_intr_mask()
227 outb(CHANNEL_BUSY, h->io_mem_addr + SMART1_LOCAL_DOORBELL); in smart1_intr_mask()
228 outb(0x01, h->io_mem_addr + SMART1_INTR_MASK); in smart1_intr_mask()
229 outb(0x01, h->io_mem_addr + SMART1_SYSTEM_MASK); in smart1_intr_mask()
231 outb(0, h->io_mem_addr + 0xC8E); in smart1_intr_mask()
235 static unsigned long smart1_fifo_full(ctlr_info_t *h) in smart1_fifo_full() argument
238 chan = inb(h->io_mem_addr + SMART1_SYSTEM_DOORBELL) & CHANNEL_CLEAR; in smart1_fifo_full()
242 static unsigned long smart1_completed(ctlr_info_t *h) in smart1_completed() argument
247 if (inb(h->io_mem_addr + SMART1_SYSTEM_DOORBELL) & CHANNEL_BUSY) { in smart1_completed()
248 outb(CHANNEL_BUSY, h->io_mem_addr + SMART1_SYSTEM_DOORBELL); in smart1_completed()
250 cmd = inl(h->io_mem_addr + SMART1_COMPLETE_ADDR); in smart1_completed()
251 status = inb(h->io_mem_addr + SMART1_LISTSTATUS); in smart1_completed()
253 outb(CHANNEL_CLEAR, h->io_mem_addr + SMART1_LOCAL_DOORBELL); in smart1_completed()
262 static unsigned long smart1_intr_pending(ctlr_info_t *h) in smart1_intr_pending() argument
265 chan = inb(h->io_mem_addr + SMART1_SYSTEM_DOORBELL) & CHANNEL_BUSY; in smart1_intr_pending()