Lines Matching refs:ss
92 static void sdma_get(struct qib_sdma_state *ss) in sdma_get() argument
94 kref_get(&ss->kref); in sdma_get()
99 struct qib_sdma_state *ss = in sdma_complete() local
102 complete(&ss->comp); in sdma_complete()
105 static void sdma_put(struct qib_sdma_state *ss) in sdma_put() argument
107 kref_put(&ss->kref, sdma_complete); in sdma_put()
110 static void sdma_finalput(struct qib_sdma_state *ss) in sdma_finalput() argument
112 sdma_put(ss); in sdma_finalput()
113 wait_for_completion(&ss->comp); in sdma_finalput()
195 struct qib_sdma_state *ss = &ppd->sdma_state; in sdma_hw_start_up() local
198 for (bufno = ss->first_sendbuf; bufno < ss->last_sendbuf; ++bufno) in sdma_hw_start_up()
206 struct qib_sdma_state *ss = &ppd->sdma_state; in sdma_sw_tear_down() local
209 sdma_put(ss); in sdma_sw_tear_down()
220 struct qib_sdma_state *ss = &ppd->sdma_state; in sdma_set_state() local
221 struct sdma_set_state_action *action = ss->set_state_action; in sdma_set_state()
225 ss->previous_state = ss->current_state; in sdma_set_state()
226 ss->previous_op = ss->current_op; in sdma_set_state()
228 ss->current_state = next_state; in sdma_set_state()
243 ss->go_s99_running = 0; in sdma_set_state()
246 ss->go_s99_running = 1; in sdma_set_state()
248 ss->current_op = op; in sdma_set_state()
250 ppd->dd->f_sdma_sendctrl(ppd, ss->current_op); in sdma_set_state()
536 struct rvt_sge_state *ss, u32 dwords, in qib_sdma_verbs_send() argument
589 sge = &ss->sge; in qib_sdma_verbs_send()
626 if (--ss->num_sge) in qib_sdma_verbs_send()
627 *sge = *ss->sg_list++; in qib_sdma_verbs_send()
698 tx->ss = ss; in qib_sdma_verbs_send()
798 struct qib_sdma_state *ss = &ppd->sdma_state; in __qib_sdma_process_event() local
800 switch (ss->current_state) { in __qib_sdma_process_event()
812 ss->go_s99_running = 1; in __qib_sdma_process_event()
849 sdma_set_state(ppd, ss->go_s99_running ? in __qib_sdma_process_event()
854 ss->go_s99_running = 1; in __qib_sdma_process_event()
863 ss->go_s99_running = 0; in __qib_sdma_process_event()
886 ss->go_s99_running = 1; in __qib_sdma_process_event()
915 ss->go_s99_running = 1; in __qib_sdma_process_event()
927 ss->go_s99_running = 0; in __qib_sdma_process_event()
949 ss->go_s99_running = 1; in __qib_sdma_process_event()
961 ss->go_s99_running = 0; in __qib_sdma_process_event()
983 ss->go_s99_running = 1; in __qib_sdma_process_event()
995 ss->go_s99_running = 0; in __qib_sdma_process_event()
1029 ss->go_s99_running = 0; in __qib_sdma_process_event()
1045 ss->last_event = event; in __qib_sdma_process_event()