/linux-2.6.39/drivers/isdn/hisax/ |
D | fsm.c | 25 FsmNew(struct Fsm *fsm, struct FsmNode *fnlist, int fncount) in FsmNew() argument 29 fsm->jumpmatrix = (FSMFNPTR *) in FsmNew() 30 kzalloc(sizeof (FSMFNPTR) * fsm->state_count * fsm->event_count, GFP_KERNEL); in FsmNew() 31 if (!fsm->jumpmatrix) in FsmNew() 35 if ((fnlist[i].state>=fsm->state_count) || (fnlist[i].event>=fsm->event_count)) { in FsmNew() 37 i,(long)fnlist[i].state,(long)fsm->state_count, in FsmNew() 38 (long)fnlist[i].event,(long)fsm->event_count); in FsmNew() 40 fsm->jumpmatrix[fsm->state_count * fnlist[i].event + in FsmNew() 46 FsmFree(struct Fsm *fsm) in FsmFree() argument 48 kfree((void *) fsm->jumpmatrix); in FsmFree() [all …]
|
D | st5481_d.c | 289 FsmEvent(&adapter->d_out.fsm, EV_DOUT_STOPPED, NULL); in dout_stop_event() 304 if (d_out->fsm.state != ST_DOUT_NORMAL) in usb_d_out() 330 FsmChangeState(&d_out->fsm, ST_DOUT_WAIT_FOR_UNDERRUN); in usb_d_out() 372 FsmEvent(&adapter->d_out.fsm, EV_DOUT_RESETED, NULL); in fifo_reseted() 403 FsmEvent(&adapter->d_out.fsm, EV_DOUT_COMPLETE, (void *) buf_nr); in usb_d_out_complete() 408 static void dout_start_xmit(struct FsmInst *fsm, int event, void *arg) in dout_start_xmit() argument 411 struct st5481_adapter *adapter = fsm->userdata; in dout_start_xmit() 437 FsmChangeState(&d_out->fsm, ST_DOUT_SHORT_INIT); in dout_start_xmit() 439 FsmChangeState(&d_out->fsm, ST_DOUT_LONG_INIT); in dout_start_xmit() 462 static void dout_short_fifo(struct FsmInst *fsm, int event, void *arg) in dout_short_fifo() argument [all …]
|
D | fsm.h | 30 struct Fsm *fsm; member 50 int FsmNew(struct Fsm *fsm, struct FsmNode *fnlist, int fncount); 51 void FsmFree(struct Fsm *fsm);
|
/linux-2.6.39/drivers/isdn/mISDN/ |
D | fsm.c | 30 mISDN_FsmNew(struct Fsm *fsm, in mISDN_FsmNew() argument 35 fsm->jumpmatrix = kzalloc(sizeof(FSMFNPTR) * fsm->state_count * in mISDN_FsmNew() 36 fsm->event_count, GFP_KERNEL); in mISDN_FsmNew() 39 if ((fnlist[i].state >= fsm->state_count) || in mISDN_FsmNew() 40 (fnlist[i].event >= fsm->event_count)) { in mISDN_FsmNew() 43 i, (long)fnlist[i].state, (long)fsm->state_count, in mISDN_FsmNew() 44 (long)fnlist[i].event, (long)fsm->event_count); in mISDN_FsmNew() 46 fsm->jumpmatrix[fsm->state_count * fnlist[i].event + in mISDN_FsmNew() 52 mISDN_FsmFree(struct Fsm *fsm) in mISDN_FsmFree() argument 54 kfree((void *) fsm->jumpmatrix); in mISDN_FsmFree() [all …]
|
D | fsm.h | 38 struct Fsm *fsm; member
|
D | Makefile | 11 mISDN_core-objs := core.o fsm.o socket.o clock.o hwchannel.o stack.o layer1.o layer2.o tei.o timerd…
|
/linux-2.6.39/drivers/net/irda/ |
D | sir_dev.c | 37 struct sir_fsm *fsm = &dev->fsm; in sirdev_tx_complete_fsm() local 42 next_state = fsm->substate; /* default: stay in current substate */ in sirdev_tx_complete_fsm() 45 switch(fsm->substate) { in sirdev_tx_complete_fsm() 87 fsm->substate = next_state; in sirdev_tx_complete_fsm() 105 struct sir_dev *dev = container_of(work, struct sir_dev, fsm.work.work); in sirdev_config_fsm() 106 struct sir_fsm *fsm = &dev->fsm; in sirdev_config_fsm() local 115 __func__, fsm->state, fsm->substate); in sirdev_config_fsm() 117 next_state = fsm->state; in sirdev_config_fsm() 120 switch(fsm->state) { in sirdev_config_fsm() 126 fsm->result = -EINVAL; in sirdev_config_fsm() [all …]
|
D | mcp2120-sir.c | 100 unsigned state = dev->fsm.substate; in mcp2120_change_speed() 162 dev->fsm.substate = state; in mcp2120_change_speed() 186 unsigned state = dev->fsm.substate; in mcp2120_reset() 220 dev->fsm.substate = state; in mcp2120_reset()
|
D | girbil-sir.c | 124 unsigned state = dev->fsm.substate; in girbil_change_speed() 186 dev->fsm.substate = state; in girbil_change_speed() 207 unsigned state = dev->fsm.substate; in girbil_reset() 248 dev->fsm.substate = state; in girbil_reset()
|
D | tekram-sir.c | 128 unsigned state = dev->fsm.substate; in tekram_change_speed() 187 dev->fsm.substate = state; in tekram_change_speed()
|
D | toim3232-sir.c | 240 unsigned state = dev->fsm.substate; in toim3232_change_speed() 308 dev->fsm.substate = state; in toim3232_change_speed()
|
D | act200l-sir.c | 200 unsigned state = dev->fsm.substate; in act200l_reset() 247 dev->fsm.substate = state; in act200l_reset()
|
/linux-2.6.39/drivers/s390/net/ |
D | ctcm_mpc.c | 113 static void mpc_action_nop(fsm_instance *fsm, int event, void *arg); 114 static void mpc_action_go_ready(fsm_instance *fsm, int event, void *arg); 118 static void mpc_action_yside_xid(fsm_instance *fsm, int event, void *arg); 119 static void mpc_action_doxid0(fsm_instance *fsm, int event, void *arg); 120 static void mpc_action_doxid7(fsm_instance *fsm, int event, void *arg); 121 static void mpc_action_xside_xid(fsm_instance *fsm, int event, void *arg); 122 static void mpc_action_rcvd_xid0(fsm_instance *fsm, int event, void *arg); 123 static void mpc_action_rcvd_xid7(fsm_instance *fsm, int event, void *arg); 358 CTCM_FUNTAIL, dev->name, fsm_getstate_str(grp->fsm)); in ctc_mpc_alloc_channel() 360 switch (fsm_getstate(grp->fsm)) { in ctc_mpc_alloc_channel() [all …]
|
D | ctcm_main.c | 194 fsm_newstate(ch->fsm, CTC_STATE_IDLE); in channel_free() 221 kfree_fsm(ch->fsm); in channel_remove() 273 fsm_newstate(ch->fsm, CTC_STATE_STOPPED); in channel_get() 325 fsm_event(ch->fsm, CTC_EVENT_UC_RCRESET, ch); in ccw_unit_check() 333 fsm_event(ch->fsm, CTC_EVENT_UC_RSRESET, ch); in ccw_unit_check() 343 fsm_event(ch->fsm, CTC_EVENT_UC_HWFAIL, ch); in ccw_unit_check() 351 fsm_event(ch->fsm, CTC_EVENT_UC_RXPARITY, ch); in ccw_unit_check() 361 fsm_event(ch->fsm, CTC_EVENT_UC_TXTIMEOUT, ch); in ccw_unit_check() 363 fsm_event(ch->fsm, CTC_EVENT_UC_TXPARITY, ch); in ccw_unit_check() 375 fsm_event(ch->fsm, CTC_EVENT_UC_ZERO, ch); in ccw_unit_check() [all …]
|
D | ctcm_fsms.c | 181 static void ctcmpc_chx_attn(fsm_instance *fsm, int event, void *arg); 184 static void ctcmpc_chx_send_sweep(fsm_instance *fsm, int event, void *arg); 201 fsm_event(ch->fsm, CTC_EVENT_IO_EBUSY, ch); in ctcm_ccw_check_rc() 206 fsm_event(ch->fsm, CTC_EVENT_IO_ENODEV, ch); in ctcm_ccw_check_rc() 211 fsm_event(ch->fsm, CTC_EVENT_IO_UNKNOWN, ch); in ctcm_ccw_check_rc() 348 fsm_event(priv->fsm, DEV_EVENT_TXUP, ch->netdev); in ctcm_chx_txidle() 466 fsm_event(priv->fsm, DEV_EVENT_TXUP, dev); in chx_firstio() 502 fsm_event(priv->fsm, DEV_EVENT_RXUP, dev); in chx_firstio() 539 fsm_event(priv->fsm, DEV_EVENT_RXUP, dev); in chx_rxidle() 726 fsm_event(priv->fsm, DEV_EVENT_RXDOWN, dev); in ctcm_chx_cleanup() [all …]
|
D | netiucv.c | 225 fsm_instance *fsm; member 252 fsm_instance *fsm; member 540 fsm_event(conn->fsm, CONN_EVENT_RX, &ev); in netiucv_callback_rx() 551 fsm_event(conn->fsm, CONN_EVENT_TXDONE, &ev); in netiucv_callback_txdone() 558 fsm_event(conn->fsm, CONN_EVENT_CONN_ACK, conn); in netiucv_callback_connack() 580 fsm_event(conn->fsm, CONN_EVENT_CONN_REQ, &ev); in netiucv_callback_connreq() 591 fsm_event(conn->fsm, CONN_EVENT_CONN_REJ, conn); in netiucv_callback_connrej() 598 fsm_event(conn->fsm, CONN_EVENT_CONN_SUS, conn); in netiucv_callback_connsusp() 605 fsm_event(conn->fsm, CONN_EVENT_CONN_RES, conn); in netiucv_callback_connres() 826 fsm_event(privptr->fsm, DEV_EVENT_CONUP, netdev); in conn_action_connaccept() [all …]
|
D | Makefile | 6 obj-$(CONFIG_CTCM) += ctcm.o fsm.o 7 obj-$(CONFIG_NETIUCV) += netiucv.o fsm.o
|
D | ctcm_sysfs.c | 86 fsm_getstate_str(priv->fsm)); in ctcm_print_statistics() 88 fsm_getstate_str(priv->channel[CTCM_READ]->fsm)); in ctcm_print_statistics() 90 fsm_getstate_str(priv->channel[CTCM_WRITE]->fsm)); in ctcm_print_statistics()
|
D | fsm.h | 48 } fsm; typedef 64 fsm *f;
|
D | ctcm_main.h | 195 fsm_instance *fsm; /* finite state machine of this channel */ member 212 fsm_instance *fsm; member
|
/linux-2.6.39/drivers/net/bna/ |
D | bfa_sm.h | 37 static void oc ## _sm_ ## st(otype * fsm, etype event) 57 typedef void (*bfa_fsm_t)(void *fsm, int event); 66 static void oc ## _sm_ ## st(otype * fsm, etype event); \ 67 static void oc ## _sm_ ## st ## _entry(otype * fsm) 70 (_fsm)->fsm = (bfa_fsm_t)(_state); \ 74 #define bfa_fsm_send_event(_fsm, _event) ((_fsm)->fsm((_fsm), (_event))) 75 #define bfa_fsm_get_state(_fsm) ((_fsm)->fsm) 77 ((_fsm)->fsm == (bfa_fsm_t)(_state))
|
D | bna_types.h | 348 bfa_fsm_t fsm; member 401 bfa_fsm_t fsm; member 418 bfa_fsm_t fsm; member 595 bfa_fsm_t fsm; member 873 bfa_fsm_t fsm; member 943 bfa_fsm_t fsm; member
|
/linux-2.6.39/lib/ |
D | ts_fsm.c | 140 struct ts_fsm *fsm = ts_config_priv(conf); in fsm_find() local 164 strict = fsm->tokens[0].recur != TS_FSM_HEAD_IGNORE; in fsm_find() 169 for (tok_idx = 0; tok_idx < fsm->ntokens; tok_idx++) { in fsm_find() 170 cur = &fsm->tokens[tok_idx]; in fsm_find() 172 if (likely(tok_idx < (fsm->ntokens - 1))) in fsm_find() 173 next = &fsm->tokens[tok_idx + 1]; in fsm_find() 264 struct ts_fsm *fsm; in fsm_init() local 267 size_t priv_size = sizeof(*fsm) + len; in fsm_init() 291 fsm = ts_config_priv(conf); in fsm_init() 292 fsm->ntokens = ntokens; in fsm_init() [all …]
|
/linux-2.6.39/drivers/scsi/bfa/ |
D | bfa_cs.h | 228 static void oc ## _sm_ ## st(otype * fsm, etype event) 248 typedef void (*bfa_fsm_t)(void *fsm, int event); 257 static void oc ## _sm_ ## st(otype * fsm, etype event); \ 258 static void oc ## _sm_ ## st ## _entry(otype * fsm) 261 (_fsm)->fsm = (bfa_fsm_t)(_state); \ 265 #define bfa_fsm_send_event(_fsm, _event) ((_fsm)->fsm((_fsm), (_event))) 266 #define bfa_fsm_get_state(_fsm) ((_fsm)->fsm) 268 ((_fsm)->fsm == (bfa_fsm_t)(_state))
|
/linux-2.6.39/arch/cris/include/arch-v32/arch/hwregs/iop/ |
D | iop_spu_defs.h | 111 unsigned int fsm : 1; member 334 unsigned int fsm : 1; member 348 unsigned int fsm : 1; member 369 unsigned int fsm : 1; member
|