/drivers/usb/common/ |
H A D | usb-otg-fsm.c | 31 #include <linux/usb/otg-fsm.h> 34 static int otg_set_protocol(struct otg_fsm *fsm, int protocol) argument 38 if (fsm->protocol != protocol) { 39 VDBG("Changing role fsm->protocol= %d; new protocol= %d\n", 40 fsm->protocol, protocol); 42 if (fsm->protocol == PROTO_HOST) 43 ret = otg_start_host(fsm, 0); 44 else if (fsm->protocol == PROTO_GADGET) 45 ret = otg_start_gadget(fsm, 0); 51 ret = otg_start_host(fsm, 67 otg_leave_state(struct otg_fsm *fsm, enum usb_otg_state old_state) argument 124 otg_set_state(struct otg_fsm *fsm, enum usb_otg_state new_state) argument 244 otg_statemachine(struct otg_fsm *fsm) argument [all...] |
/drivers/isdn/hisax/ |
H A D | fsm.c | 1 /* $Id: fsm.c,v 1.14.6.4 2001/09/23 22:24:47 kai Exp $ 25 FsmNew(struct Fsm *fsm, struct FsmNode *fnlist, int fncount) argument 29 fsm->jumpmatrix = 30 kzalloc(sizeof(FSMFNPTR) * fsm->state_count * fsm->event_count, GFP_KERNEL); 31 if (!fsm->jumpmatrix) 35 if ((fnlist[i].state >= fsm->state_count) || (fnlist[i].event >= fsm->event_count)) { 37 i, (long)fnlist[i].state, (long)fsm->state_count, 38 (long)fnlist[i].event, (long)fsm 46 FsmFree(struct Fsm *fsm) argument [all...] |
H A D | fsm.h | 1 /* $Id: fsm.h,v 1.3.2.2 2001/09/23 22:24:47 kai Exp $ 30 struct Fsm *fsm; member in struct:FsmInst 50 int FsmNew(struct Fsm *fsm, struct FsmNode *fnlist, int fncount); 51 void FsmFree(struct Fsm *fsm);
|
H A D | st5481_d.c | 289 FsmEvent(&adapter->d_out.fsm, EV_DOUT_STOPPED, NULL); 304 if (d_out->fsm.state != ST_DOUT_NORMAL) 330 FsmChangeState(&d_out->fsm, ST_DOUT_WAIT_FOR_UNDERRUN); 372 FsmEvent(&adapter->d_out.fsm, EV_DOUT_RESETED, NULL); 403 FsmEvent(&adapter->d_out.fsm, EV_DOUT_COMPLETE, (void *) buf_nr); 408 static void dout_start_xmit(struct FsmInst *fsm, int event, void *arg) argument 411 struct st5481_adapter *adapter = fsm->userdata; 437 FsmChangeState(&d_out->fsm, ST_DOUT_SHORT_INIT); 439 FsmChangeState(&d_out->fsm, ST_DOUT_LONG_INIT); 462 static void dout_short_fifo(struct FsmInst *fsm, in argument 471 dout_end_short_frame(struct FsmInst *fsm, int event, void *arg) argument 479 dout_long_enable_fifo(struct FsmInst *fsm, int event, void *arg) argument 488 dout_long_den(struct FsmInst *fsm, int event, void *arg) argument 498 dout_reset(struct FsmInst *fsm, int event, void *arg) argument 507 dout_stop(struct FsmInst *fsm, int event, void *arg) argument 516 dout_underrun(struct FsmInst *fsm, int event, void *arg) argument 528 dout_check_busy(struct FsmInst *fsm, int event, void *arg) argument 537 dout_reseted(struct FsmInst *fsm, int event, void *arg) argument 548 dout_complete(struct FsmInst *fsm, int event, void *arg) argument 556 dout_ignore(struct FsmInst *fsm, int event, void *arg) argument [all...] |
H A D | st5481.h | 230 #include "fsm.h" 342 struct FsmInst fsm; member in struct:st5481_d_out
|
/drivers/isdn/mISDN/ |
H A D | fsm.c | 25 #include "fsm.h" 30 mISDN_FsmNew(struct Fsm *fsm, argument 35 fsm->jumpmatrix = kzalloc(sizeof(FSMFNPTR) * fsm->state_count * 36 fsm->event_count, GFP_KERNEL); 39 if ((fnlist[i].state >= fsm->state_count) || 40 (fnlist[i].event >= fsm->event_count)) { 43 i, (long)fnlist[i].state, (long)fsm->state_count, 44 (long)fnlist[i].event, (long)fsm->event_count); 46 fsm 52 mISDN_FsmFree(struct Fsm *fsm) argument [all...] |
H A D | fsm.h | 38 struct Fsm *fsm; member in struct:FsmInst
|
/drivers/s390/net/ |
H A D | fsm.h | 48 } fsm; typedef in typeref:struct:__anon5004 64 fsm *f; 150 printk(KERN_ERR "fsm(%s): Invalid state st(%ld/%ld) ev(%d/%ld)\n", 161 printk(KERN_DEBUG "fsm(%s): state %s event %s\n", 172 printk(KERN_DEBUG "fsm(%s): no function for event %s in state %s\n", 198 printk(KERN_DEBUG "fsm(%s): New state %s\n", fi->name,
|
H A D | ctcm_fsms.c | 44 #include "fsm.h" 179 static void ctcmpc_chx_attn(fsm_instance *fsm, int event, void *arg); 182 static void ctcmpc_chx_send_sweep(fsm_instance *fsm, int event, void *arg); 199 fsm_event(ch->fsm, CTC_EVENT_IO_EBUSY, ch); 204 fsm_event(ch->fsm, CTC_EVENT_IO_ENODEV, ch); 209 fsm_event(ch->fsm, CTC_EVENT_IO_UNKNOWN, ch); 346 fsm_event(priv->fsm, DEV_EVENT_TXUP, ch->netdev); 464 fsm_event(priv->fsm, DEV_EVENT_TXUP, dev); 500 fsm_event(priv->fsm, DEV_EVENT_RXUP, dev); 537 fsm_event(priv->fsm, DEV_EVENT_RXU 1601 ctcmpc_chx_attn(fsm_instance *fsm, int event, void *arg) argument 1660 ctcmpc_chx_attnbusy(fsm_instance *fsm, int event, void *arg) argument 1745 ctcmpc_chx_resend(fsm_instance *fsm, int event, void *arg) argument 1761 ctcmpc_chx_send_sweep(fsm_instance *fsm, int event, void *arg) argument [all...] |
H A D | ctcm_mpc.c | 111 static void mpc_action_nop(fsm_instance *fsm, int event, void *arg); 112 static void mpc_action_go_ready(fsm_instance *fsm, int event, void *arg); 116 static void mpc_action_yside_xid(fsm_instance *fsm, int event, void *arg); 117 static void mpc_action_doxid0(fsm_instance *fsm, int event, void *arg); 118 static void mpc_action_doxid7(fsm_instance *fsm, int event, void *arg); 119 static void mpc_action_xside_xid(fsm_instance *fsm, int event, void *arg); 120 static void mpc_action_rcvd_xid0(fsm_instance *fsm, int event, void *arg); 121 static void mpc_action_rcvd_xid7(fsm_instance *fsm, int event, void *arg); 356 CTCM_FUNTAIL, dev->name, fsm_getstate_str(grp->fsm)); 358 switch (fsm_getstate(grp->fsm)) { 839 mpc_action_go_ready(fsm_instance *fsm, int event, void *arg) argument 1678 mpc_action_side_xid(fsm_instance *fsm, void *arg, int side) argument 1836 mpc_action_xside_xid(fsm_instance *fsm, int event, void *arg) argument 1845 mpc_action_yside_xid(fsm_instance *fsm, int event, void *arg) argument 1854 mpc_action_doxid0(fsm_instance *fsm, int event, void *arg) argument 1895 mpc_action_doxid7(fsm_instance *fsm, int event, void *arg) argument 1967 mpc_action_rcvd_xid0(fsm_instance *fsm, int event, void *arg) argument 2030 mpc_action_rcvd_xid7(fsm_instance *fsm, int event, void *arg) argument [all...] |
H A D | ctcm_main.h | 16 #include "fsm.h" 193 fsm_instance *fsm; /* finite state machine of this channel */ member in struct:channel 210 fsm_instance *fsm; member in struct:ctcm_priv
|
H A D | ctcm_mpc.h | 15 #include "fsm.h" 198 fsm_instance *fsm; /* group xid fsm */ member in struct:mpc_group
|
H A D | netiucv.c | 69 #include "fsm.h" 200 fsm_instance *fsm; member in struct:iucv_connection 228 fsm_instance *fsm; member in struct:netiucv_priv 541 fsm_event(conn->fsm, CONN_EVENT_RX, &ev); 552 fsm_event(conn->fsm, CONN_EVENT_TXDONE, &ev); 559 fsm_event(conn->fsm, CONN_EVENT_CONN_ACK, conn); 584 fsm_event(conn->fsm, CONN_EVENT_CONN_REQ, &ev); 597 fsm_event(conn->fsm, CONN_EVENT_CONN_REJ, conn); 604 fsm_event(conn->fsm, CONN_EVENT_CONN_SUS, conn); 611 fsm_event(conn->fsm, CONN_EVENT_CONN_RE [all...] |
/drivers/net/ethernet/brocade/bna/ |
H A D | bfa_msgq.h | 66 bfa_fsm_t fsm; member in struct:bfa_msgq_cmdq 92 bfa_fsm_t fsm; member in struct:bfa_msgq_rspq
|
H A D | bfa_ioc.h | 158 bfa_fsm_t fsm; member in struct:bfa_iocpf 166 bfa_fsm_t fsm; member in struct:bfa_ioc
|
/drivers/net/irda/ |
H A D | sir_dev.c | 32 /* substate handler of the config-fsm to handle the cases where we want 38 struct sir_fsm *fsm = &dev->fsm; local 43 next_state = fsm->substate; /* default: stay in current substate */ 46 switch(fsm->substate) { 88 fsm->substate = next_state; 100 * On entry, fsm->sem is always locked and the netdev xmit queue stopped. 106 struct sir_dev *dev = container_of(work, struct sir_dev, fsm.work.work); 107 struct sir_fsm *fsm = &dev->fsm; local 287 struct sir_fsm *fsm = &dev->fsm; local [all...] |
H A D | sir-dev.h | 171 struct sir_fsm fsm; member in struct:sir_dev
|
/drivers/usb/chipidea/ |
H A D | debug.c | 12 #include <linux/usb/otg-fsm.h> 214 struct otg_fsm *fsm; local 219 fsm = &ci->fsm; 226 seq_printf(s, "a_bus_drop: %d\n", fsm->a_bus_drop); 228 seq_printf(s, "a_bus_req: %d\n", fsm->a_bus_req); 230 seq_printf(s, "a_srp_det: %d\n", fsm->a_srp_det); 232 seq_printf(s, "a_vbus_vld: %d\n", fsm->a_vbus_vld); 234 seq_printf(s, "b_conn: %d\n", fsm->b_conn); 236 seq_printf(s, "adp_change: %d\n", fsm [all...] |
H A D | otg_fsm.c | 14 * This file mainly handles OTG fsm, it includes OTG fsm operations 59 t = scnprintf(next, size, "%d\n", ci->fsm.a_bus_req); 75 mutex_lock(&ci->fsm.lock); 77 ci->fsm.a_bus_req = 0; 80 if (ci->fsm.a_bus_drop) { 81 mutex_unlock(&ci->fsm.lock); 84 ci->fsm.a_bus_req = 1; 88 mutex_unlock(&ci->fsm.lock); 103 t = scnprintf(next, size, "%d\n", ci->fsm 364 struct otg_fsm *fsm = &ci->fsm; local 437 ci_otg_fsm_add_timer(struct otg_fsm *fsm, enum otg_fsm_timer t) argument 446 ci_otg_fsm_del_timer(struct otg_fsm *fsm, enum otg_fsm_timer t) argument 459 ci_otg_drv_vbus(struct otg_fsm *fsm, int on) argument 494 ci_otg_loc_conn(struct otg_fsm *fsm, int on) argument 510 ci_otg_loc_sof(struct otg_fsm *fsm, int on) argument 526 ci_otg_start_pulse(struct otg_fsm *fsm) argument 536 ci_otg_start_host(struct otg_fsm *fsm, int on) argument 553 ci_otg_start_gadget(struct otg_fsm *fsm, int on) argument 624 struct otg_fsm *fsm = &ci->fsm; local 721 struct otg_fsm *fsm = &ci->fsm; local [all...] |
H A D | ci.h | 20 #include <linux/usb/otg-fsm.h> 143 * @fsm: otg finite state machine 144 * @fsm_timer: pointer to timer list of otg fsm 180 struct otg_fsm fsm; member in struct:ci_hdrc 333 * is in otg fsm mode.
|
/drivers/input/touchscreen/ |
H A D | ti_am335x_tsc.c | 261 unsigned int fsm; local 304 fsm = titsc_readl(ts_dev, REG_ADCFSM); 305 if (fsm == ADCFSM_STEPID) {
|
/drivers/staging/gdm72xx/ |
H A D | gdm_wimax.c | 331 /* Indicate updating fsm */ 342 struct fsm_s *fsm = (struct fsm_s *)nic->sdk_data[SIOC_DATA_FSM].buf; local 346 if (fsm && fsm->m_status != M_INIT) 354 struct fsm_s *fsm = (struct fsm_s *)nic->sdk_data[SIOC_DATA_FSM].buf; local 358 if (fsm && fsm->m_status != M_INIT) 421 static void gdm_wimax_ind_fsm_update(struct net_device *dev, struct fsm_s *fsm) argument 426 /* Indicate updating fsm */ 429 memcpy(&hci->data[0], fsm, sizeo 803 struct fsm_s *fsm = (struct fsm_s *)nic->sdk_data[SIOC_DATA_FSM].buf; local [all...] |
/drivers/scsi/bfa/ |
H A D | bfa.h | 228 bfa_fsm_t fsm; member in struct:bfa_iocfc_s
|
/drivers/usb/phy/ |
H A D | phy-fsl-usb.c | 136 void fsl_otg_chrg_vbus(struct otg_fsm *fsm, int on) argument 172 void fsl_otg_drv_vbus(struct otg_fsm *fsm, int on) argument 190 void fsl_otg_loc_conn(struct otg_fsm *fsm, int on) argument 209 void fsl_otg_loc_sof(struct otg_fsm *fsm, int on) argument 224 void fsl_otg_start_pulse(struct otg_fsm *fsm) argument 237 fsl_otg_add_timer(fsm, b_data_pulse_tmr); 254 fsl_otg_chrg_vbus(&fsl_otg_dev->fsm, 1); 256 fsl_otg_add_timer(&fsl_otg_dev->fsm, b_vbus_pulse_tmr); 261 fsl_otg_chrg_vbus(&fsl_otg_dev->fsm, 0); 269 fsl_otg_add_timer(&fsl_otg_dev->fsm, b_srp_wait_tm 303 fsl_otg_init_timers(struct otg_fsm *fsm) argument 412 fsl_otg_add_timer(struct otg_fsm *fsm, void *gtimer) argument 430 fsl_otg_fsm_add_timer(struct otg_fsm *fsm, enum otg_fsm_timer t) argument 442 fsl_otg_del_timer(struct otg_fsm *fsm, void *gtimer) argument 452 fsl_otg_fsm_del_timer(struct otg_fsm *fsm, enum otg_fsm_timer t) argument 498 fsl_otg_start_host(struct otg_fsm *fsm, int on) argument 564 fsl_otg_start_gadget(struct otg_fsm *fsm, int on) argument 624 struct otg_fsm *fsm = &otg_dev->fsm; local 703 struct otg_fsm *fsm = &og->fsm; local 759 struct otg_fsm *fsm = &((struct fsl_otg *)dev_id)->fsm; local 888 struct otg_fsm *fsm; local 1016 struct otg_fsm *fsm = &fsl_otg_dev->fsm; local [all...] |
H A D | phy-isp1301-omap.c | 415 u8 fsm = omap_readw(OTG_TEST) & 0x0ff; local 418 switch (fsm) { 480 usb_otg_state_string(state), fsm, state_name(isp),
|