Lines Matching refs:ss
91 static void sdma_get(struct qib_sdma_state *ss) in sdma_get() argument
93 kref_get(&ss->kref); in sdma_get()
98 struct qib_sdma_state *ss = in sdma_complete() local
101 complete(&ss->comp); in sdma_complete()
104 static void sdma_put(struct qib_sdma_state *ss) in sdma_put() argument
106 kref_put(&ss->kref, sdma_complete); in sdma_put()
109 static void sdma_finalput(struct qib_sdma_state *ss) in sdma_finalput() argument
111 sdma_put(ss); in sdma_finalput()
112 wait_for_completion(&ss->comp); in sdma_finalput()
194 struct qib_sdma_state *ss = &ppd->sdma_state; in sdma_hw_start_up() local
197 for (bufno = ss->first_sendbuf; bufno < ss->last_sendbuf; ++bufno) in sdma_hw_start_up()
205 struct qib_sdma_state *ss = &ppd->sdma_state; in sdma_sw_tear_down() local
208 sdma_put(ss); in sdma_sw_tear_down()
219 struct qib_sdma_state *ss = &ppd->sdma_state; in sdma_set_state() local
220 struct sdma_set_state_action *action = ss->set_state_action; in sdma_set_state()
224 ss->previous_state = ss->current_state; in sdma_set_state()
225 ss->previous_op = ss->current_op; in sdma_set_state()
227 ss->current_state = next_state; in sdma_set_state()
242 ss->go_s99_running = 0; in sdma_set_state()
245 ss->go_s99_running = 1; in sdma_set_state()
247 ss->current_op = op; in sdma_set_state()
249 ppd->dd->f_sdma_sendctrl(ppd, ss->current_op); in sdma_set_state()
527 struct qib_sge_state *ss, u32 dwords, in qib_sdma_verbs_send() argument
579 sge = &ss->sge; in qib_sdma_verbs_send()
614 if (--ss->num_sge) in qib_sdma_verbs_send()
615 *sge = *ss->sg_list++; in qib_sdma_verbs_send()
684 tx->ss = ss; in qib_sdma_verbs_send()
728 struct qib_sdma_state *ss = &ppd->sdma_state; in __qib_sdma_process_event() local
730 switch (ss->current_state) { in __qib_sdma_process_event()
742 ss->go_s99_running = 1; in __qib_sdma_process_event()
779 sdma_set_state(ppd, ss->go_s99_running ? in __qib_sdma_process_event()
784 ss->go_s99_running = 1; in __qib_sdma_process_event()
793 ss->go_s99_running = 0; in __qib_sdma_process_event()
816 ss->go_s99_running = 1; in __qib_sdma_process_event()
845 ss->go_s99_running = 1; in __qib_sdma_process_event()
857 ss->go_s99_running = 0; in __qib_sdma_process_event()
879 ss->go_s99_running = 1; in __qib_sdma_process_event()
891 ss->go_s99_running = 0; in __qib_sdma_process_event()
913 ss->go_s99_running = 1; in __qib_sdma_process_event()
925 ss->go_s99_running = 0; in __qib_sdma_process_event()
959 ss->go_s99_running = 0; in __qib_sdma_process_event()
975 ss->last_event = event; in __qib_sdma_process_event()