Lines Matching +full:ts +full:- +full:series

1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (c) 2005-2014 Brocade Communications Systems, Inc.
4 * Copyright (c) 2014- QLogic Corporation.
8 * Linux driver for QLogic BR-series Fibre Channel Host Bus Adapter.
30 struct timespec64 ts; \
32 ktime_get_ts64(&ts); \
33 (ts.tv_sec*1000000+ts.tv_nsec / 1000); \
37 #define BFA_TRC_TS(_trcm) ((_trcm)->ticks++)
86 __bfa_trc((_trcp)->trcmod, __trc_fileno, __LINE__, (u32)_data)
88 __bfa_trc((_trcp)->trcmod, __trc_fileno, __LINE__, (u64)_data)
93 trcm->head = trcm->tail = trcm->stopped = 0; in bfa_trc_init()
94 trcm->ntrc = BFA_TRC_MAX; in bfa_trc_init()
100 trcm->stopped = 1; in bfa_trc_stop()
116 #define bfa_q_first(_q) ((void *)(((struct list_head *) (_q))->next))
117 #define bfa_q_next(_qe) (((struct list_head *) (_qe))->next)
118 #define bfa_q_prev(_qe) (((struct list_head *) (_qe))->prev)
121 * bfa_q_qe_init - to initialize a queue element
129 * bfa_q_deq - dequeue an element from head of the queue
143 * bfa_q_deq_tail - dequeue an element from tail of the queue
182 * oc - object class eg. bfa_ioc
183 * st - state, eg. reset
184 * otype - object type, eg. struct bfa_ioc_s
185 * etype - object type, eg. enum ioc_event
190 #define bfa_sm_set_state(_sm, _state) ((_sm)->sm = (_state))
191 #define bfa_sm_send_event(_sm, _event) ((_sm)->sm((_sm), (_event)))
192 #define bfa_sm_get_state(_sm) ((_sm)->sm)
193 #define bfa_sm_cmp_state(_sm, _state) ((_sm)->sm == (_state))
211 * oc - object class eg. bfa_ioc
212 * st - state, eg. reset
213 * otype - object type, eg. struct bfa_ioc_s
214 * etype - object type, eg. enum ioc_event
221 (_fsm)->fsm = (_state); \
225 #define bfa_fsm_send_event(_fsm, _event) ((_fsm)->fsm((_fsm), (_event)))
226 #define bfa_fsm_get_state(_fsm) ((_fsm)->fsm)
227 #define bfa_fsm_cmp_state(_fsm, _state) ((_fsm)->fsm == (_state))
244 wc->wc_count++; in bfa_wc_up()
250 wc->wc_count--; in bfa_wc_down()
251 if (wc->wc_count == 0) in bfa_wc_down()
252 wc->wc_resume(wc->wc_cbarg); in bfa_wc_down()
261 wc->wc_resume = wc_resume; in bfa_wc_init()
262 wc->wc_cbarg = wc_cbarg; in bfa_wc_init()
263 wc->wc_count = 0; in bfa_wc_init()