Lines Matching refs:h
22 void (*submit_command)(ctlr_info_t *h, CommandList_struct *c);
23 void (*set_intr_mask)(ctlr_info_t *h, unsigned long val);
24 unsigned long (*fifo_full)(ctlr_info_t *h);
25 unsigned long (*intr_pending)(ctlr_info_t *h);
26 unsigned long (*command_completed)(ctlr_info_t *h);
104 #define CTLR_IS_ALIVE(h) (h->alive) argument
105 #define ASSERT_CTLR_ALIVE(h) { h->alive = 1; \ argument
106 h->monitor_period = 0; \
107 h->monitor_started = 0; }
109 #define CTLR_STATUS(h) CTLR_IS_ALIVE(h) ? "operational" : "failed" argument
111 #define MONITOR_PERIOD_VALUE(h) (h->monitor_period) argument
113 #define MONITOR_DEADLINE_VALUE(h) (h->monitor_deadline) argument
114 #define START_MONITOR_THREAD(h, cmd, count, cciss_monitor, rc) \ argument
115 start_monitor_thread(h, cmd, count, cciss_monitor, rc)
119 #define MONITOR_PERIOD_VALUE(h) "" argument
121 #define MONITOR_DEADLINE_VALUE(h) "" argument
123 #define CTLR_STATUS(h) "" argument
124 #define CTLR_IS_ALIVE(h) (1) argument
125 #define ASSERT_CTLR_ALIVE(h) argument
158 static void SA5_submit_command( ctlr_info_t *h, CommandList_struct *c) in SA5_submit_command() argument
163 writel(c->busaddr, h->vaddr + SA5_REQUEST_PORT_OFFSET); in SA5_submit_command()
164 h->commands_outstanding++; in SA5_submit_command()
165 if ( h->commands_outstanding > h->max_outstanding) in SA5_submit_command()
166 h->max_outstanding = h->commands_outstanding; in SA5_submit_command()
174 static void SA5_intr_mask(ctlr_info_t *h, unsigned long val) in SA5_intr_mask() argument
178 h->interrupts_enabled = 1; in SA5_intr_mask()
179 writel(0, h->vaddr + SA5_REPLY_INTR_MASK_OFFSET); in SA5_intr_mask()
182 h->interrupts_enabled = 0; in SA5_intr_mask()
184 h->vaddr + SA5_REPLY_INTR_MASK_OFFSET); in SA5_intr_mask()
192 static void SA5B_intr_mask(ctlr_info_t *h, unsigned long val) in SA5B_intr_mask() argument
196 h->interrupts_enabled = 1; in SA5B_intr_mask()
197 writel(0, h->vaddr + SA5_REPLY_INTR_MASK_OFFSET); in SA5B_intr_mask()
200 h->interrupts_enabled = 0; in SA5B_intr_mask()
202 h->vaddr + SA5_REPLY_INTR_MASK_OFFSET); in SA5B_intr_mask()
209 static unsigned long SA5_fifo_full(ctlr_info_t *h) in SA5_fifo_full() argument
211 if( h->commands_outstanding >= h->max_commands) in SA5_fifo_full()
221 static unsigned long SA5_completed(ctlr_info_t *h) in SA5_completed() argument
224 = readl(h->vaddr + SA5_REPLY_PORT_OFFSET); in SA5_completed()
227 h->commands_outstanding--; in SA5_completed()
244 static unsigned long SA5_intr_pending(ctlr_info_t *h) in SA5_intr_pending() argument
247 readl(h->vaddr + SA5_INTR_STATUS); in SA5_intr_pending()
259 static unsigned long SA5B_intr_pending(ctlr_info_t *h) in SA5B_intr_pending() argument
262 readl(h->vaddr + SA5_INTR_STATUS); in SA5B_intr_pending()