Home
last modified time | relevance | path

Searched refs:fsm (Results 1 – 25 of 36) sorted by relevance

12

/linux/drivers/usb/common/
H A Dusb-otg-fsm.c29 static int otg_set_protocol(struct otg_fsm *fsm, int protocol) in otg_set_protocol() argument
33 if (fsm->protocol != protocol) { in otg_set_protocol()
35 fsm->protocol, protocol); in otg_set_protocol()
37 if (fsm->protocol == PROTO_HOST) in otg_set_protocol()
38 ret = otg_start_host(fsm, 0); in otg_set_protocol()
39 else if (fsm->protocol == PROTO_GADGET) in otg_set_protocol()
40 ret = otg_start_gadget(fsm, 0); in otg_set_protocol()
46 ret = otg_start_host(fsm, 1); in otg_set_protocol()
48 ret = otg_start_gadget(fsm, 1); in otg_set_protocol()
52 fsm->protocol = protocol; in otg_set_protocol()
[all …]
H A DMakefile12 obj-$(CONFIG_USB_OTG_FSM) += usb-otg-fsm.o
/linux/include/linux/usb/
H A Dotg-fsm.h191 void (*chrg_vbus)(struct otg_fsm *fsm, int on);
192 void (*drv_vbus)(struct otg_fsm *fsm, int on);
193 void (*loc_conn)(struct otg_fsm *fsm, int on);
194 void (*loc_sof)(struct otg_fsm *fsm, int on);
195 void (*start_pulse)(struct otg_fsm *fsm);
196 void (*start_adp_prb)(struct otg_fsm *fsm);
197 void (*start_adp_sns)(struct otg_fsm *fsm);
198 void (*add_timer)(struct otg_fsm *fsm, enum otg_fsm_timer timer);
199 void (*del_timer)(struct otg_fsm *fsm, enum otg_fsm_timer timer);
200 int (*start_host)(struct otg_fsm *fsm, int on);
[all …]
/linux/drivers/usb/chipidea/
H A Dotg_fsm.c40 t = scnprintf(next, size, "%d\n", ci->fsm.a_bus_req); in a_bus_req_show()
56 mutex_lock(&ci->fsm.lock); in a_bus_req_store()
58 ci->fsm.a_bus_req = 0; in a_bus_req_store()
61 if (ci->fsm.a_bus_drop) { in a_bus_req_store()
62 mutex_unlock(&ci->fsm.lock); in a_bus_req_store()
65 ci->fsm.a_bus_req = 1; in a_bus_req_store()
66 if (ci->fsm.otg->state == OTG_STATE_A_PERIPHERAL) { in a_bus_req_store()
68 mutex_unlock(&ci->fsm.lock); in a_bus_req_store()
74 mutex_unlock(&ci->fsm.lock); in a_bus_req_store()
89 t = scnprintf(next, size, "%d\n", ci->fsm.a_bus_drop); in a_bus_drop_show()
[all …]
H A Ddebug.c190 struct otg_fsm *fsm; in ci_otg_show() local
195 fsm = &ci->fsm; in ci_otg_show()
202 seq_printf(s, "a_bus_drop: %d\n", fsm->a_bus_drop); in ci_otg_show()
204 seq_printf(s, "a_bus_req: %d\n", fsm->a_bus_req); in ci_otg_show()
206 seq_printf(s, "a_srp_det: %d\n", fsm->a_srp_det); in ci_otg_show()
208 seq_printf(s, "a_vbus_vld: %d\n", fsm->a_vbus_vld); in ci_otg_show()
210 seq_printf(s, "b_conn: %d\n", fsm->b_conn); in ci_otg_show()
212 seq_printf(s, "adp_change: %d\n", fsm->adp_change); in ci_otg_show()
214 seq_printf(s, "power_up: %d\n", fsm->power_up); in ci_otg_show()
216 seq_printf(s, "a_bus_resume: %d\n", fsm->a_bus_resume); in ci_otg_show()
[all …]
/linux/drivers/isdn/mISDN/
H A Dfsm.c21 mISDN_FsmNew(struct Fsm *fsm, in mISDN_FsmNew() argument
26 fsm->jumpmatrix = in mISDN_FsmNew()
27 kzalloc(array3_size(sizeof(FSMFNPTR), fsm->state_count, in mISDN_FsmNew()
28 fsm->event_count), in mISDN_FsmNew()
30 if (fsm->jumpmatrix == NULL) in mISDN_FsmNew()
34 if ((fnlist[i].state >= fsm->state_count) || in mISDN_FsmNew()
35 (fnlist[i].event >= fsm->event_count)) { in mISDN_FsmNew()
38 i, (long)fnlist[i].state, (long)fsm->state_count, in mISDN_FsmNew()
39 (long)fnlist[i].event, (long)fsm->event_count); in mISDN_FsmNew()
41 fsm->jumpmatrix[fsm->state_count * fnlist[i].event + in mISDN_FsmNew()
[all …]
H A Dfsm.h29 struct Fsm *fsm; member
H A DMakefile12 mISDN_core-objs := core.o fsm.o socket.o clock.o hwchannel.o stack.o layer1.o layer2.o tei.o timerd…
/linux/drivers/s390/net/
H A Dctcm_mpc.c112 static void mpc_action_nop(fsm_instance *fsm, int event, void *arg);
113 static void mpc_action_go_ready(fsm_instance *fsm, int event, void *arg);
117 static void mpc_action_yside_xid(fsm_instance *fsm, int event, void *arg);
118 static void mpc_action_doxid0(fsm_instance *fsm, int event, void *arg);
119 static void mpc_action_doxid7(fsm_instance *fsm, int event, void *arg);
120 static void mpc_action_xside_xid(fsm_instance *fsm, int event, void *arg);
121 static void mpc_action_rcvd_xid0(fsm_instance *fsm, int event, void *arg);
122 static void mpc_action_rcvd_xid7(fsm_instance *fsm, int event, void *arg);
347 CTCM_FUNTAIL, dev->name, fsm_getstate_str(grp->fsm)); in ctc_mpc_alloc_channel()
349 switch (fsm_getstate(grp->fsm)) { in ctc_mpc_alloc_channel()
[all …]
H A Dctcm_main.c192 fsm_newstate(ch->fsm, CTC_STATE_IDLE); in channel_free()
219 kfree_fsm(ch->fsm); in channel_remove()
271 fsm_newstate(ch->fsm, CTC_STATE_STOPPED); in channel_get()
323 fsm_event(ch->fsm, CTC_EVENT_UC_RCRESET, ch); in ccw_unit_check()
331 fsm_event(ch->fsm, CTC_EVENT_UC_RSRESET, ch); in ccw_unit_check()
341 fsm_event(ch->fsm, CTC_EVENT_UC_HWFAIL, ch); in ccw_unit_check()
349 fsm_event(ch->fsm, CTC_EVENT_UC_RXPARITY, ch); in ccw_unit_check()
359 fsm_event(ch->fsm, CTC_EVENT_UC_TXTIMEOUT, ch); in ccw_unit_check()
361 fsm_event(ch->fsm, CTC_EVENT_UC_TXPARITY, ch); in ccw_unit_check()
373 fsm_event(ch->fsm, CTC_EVENT_UC_ZERO, ch); in ccw_unit_check()
[all …]
H A Dctcm_fsms.c180 static void ctcmpc_chx_attn(fsm_instance *fsm, int event, void *arg);
183 static void ctcmpc_chx_send_sweep(fsm_instance *fsm, int event, void *arg);
200 fsm_event(ch->fsm, CTC_EVENT_IO_EBUSY, ch); in ctcm_ccw_check_rc()
205 fsm_event(ch->fsm, CTC_EVENT_IO_ENODEV, ch); in ctcm_ccw_check_rc()
210 fsm_event(ch->fsm, CTC_EVENT_IO_UNKNOWN, ch); in ctcm_ccw_check_rc()
344 fsm_event(priv->fsm, DEV_EVENT_TXUP, ch->netdev); in ctcm_chx_txidle()
461 fsm_event(priv->fsm, DEV_EVENT_TXUP, dev); in chx_firstio()
496 fsm_event(priv->fsm, DEV_EVENT_RXUP, dev); in chx_firstio()
532 fsm_event(priv->fsm, DEV_EVENT_RXUP, dev); in chx_rxidle()
718 fsm_event(priv->fsm, DEV_EVENT_RXDOWN, dev); in ctcm_chx_cleanup()
[all …]
H A DMakefile7 obj-$(CONFIG_CTCM) += ctcm.o fsm.o
8 obj-$(CONFIG_NETIUCV) += netiucv.o fsm.o
H A Dctcm_sysfs.c90 fsm_getstate_str(priv->fsm)); in ctcm_print_statistics()
92 fsm_getstate_str(priv->channel[CTCM_READ]->fsm)); in ctcm_print_statistics()
94 fsm_getstate_str(priv->channel[CTCM_WRITE]->fsm)); in ctcm_print_statistics()
H A Dfsm.h49 } fsm; typedef
65 fsm *f;
H A Dctcm_main.h195 fsm_instance *fsm; /* finite state machine of this channel */ member
212 fsm_instance *fsm; member
H A Dfsm.c23 fsm *f; in init_fsm()
34 f = kzalloc(sizeof(fsm), order); in init_fsm()
/linux/lib/
H A Dts_fsm.c136 struct ts_fsm *fsm = ts_config_priv(conf); in fsm_find() local
160 strict = fsm->tokens[0].recur != TS_FSM_HEAD_IGNORE; in fsm_find()
165 for (tok_idx = 0; tok_idx < fsm->ntokens; tok_idx++) { in fsm_find()
166 cur = &fsm->tokens[tok_idx]; in fsm_find()
168 if (likely(tok_idx < (fsm->ntokens - 1))) in fsm_find()
169 next = &fsm->tokens[tok_idx + 1]; in fsm_find()
260 struct ts_fsm *fsm; in fsm_init() local
263 size_t priv_size = sizeof(*fsm) + len; in fsm_init()
287 fsm = ts_config_priv(conf); in fsm_init()
288 fsm->ntokens = ntokens; in fsm_init()
[all …]
/linux/drivers/net/ethernet/brocade/bna/
H A Dbfa_cs.h60 typedef void (*bfa_fsm_t)(void *fsm, int event);
68 static void oc ## _sm_ ## st(otype * fsm, etype event); \
69 static void oc ## _sm_ ## st ## _entry(otype * fsm)
72 (_fsm)->fsm = (_state); \
76 #define bfa_fsm_send_event(_fsm, _event) ((_fsm)->fsm((_fsm), (_event)))
77 #define bfa_fsm_cmp_state(_fsm, _state) ((_fsm)->fsm == (_state))
H A Dbna_types.h318 void (*fsm)(struct bna_ioceth *s, enum bna_ioceth_event e); member
342 void (*fsm)(struct bna_enet *s, enum bna_enet_event e); member
370 void (*fsm)(struct bna_ethport *s, enum bna_ethport_event e); member
472 void (*fsm)(struct bna_tx *s, enum bna_tx_event e); member
714 void (*fsm)(struct bna_rxf *s, enum bna_rxf_event e); member
793 void (*fsm)(struct bna_rx *s, enum bna_rx_event e); member
H A Dbfa_msgq.h61 void (*fsm)(struct bfa_msgq_cmdq *s, enum cmdq_event e); member
89 void (*fsm)(struct bfa_msgq_rspq *s, enum rspq_event e); member
/linux/drivers/scsi/bfa/
H A Dbfa_cs.h188 static void oc ## _sm_ ## st(otype * fsm, etype event)
208 typedef void (*bfa_fsm_t)(void *fsm, int event);
217 static void oc ## _sm_ ## st(otype * fsm, etype event); \
218 static void oc ## _sm_ ## st ## _entry(otype * fsm)
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))
/linux/Documentation/devicetree/bindings/mtd/
H A Dst-fsm.txt4 - compatible : Should be "st,spi-fsm"
6 - reg-names : Should contain the reg names "spi-fsm"
17 compatible = "st,spi-fsm";
19 reg-names = "spi-fsm";
/linux/drivers/usb/phy/
H A Dphy-fsl-usb.h359 struct otg_fsm fsm; member
376 void fsl_otg_add_timer(struct otg_fsm *fsm, void *timer);
377 void fsl_otg_del_timer(struct otg_fsm *fsm, void *timer);
/linux/drivers/input/touchscreen/
H A Dti_am335x_tsc.c279 unsigned int fsm, status, irqclr = 0; in titsc_irq() local
291 fsm = titsc_readl(ts_dev, REG_ADCFSM); in titsc_irq()
292 if (fsm == ADCFSM_STEPID) { in titsc_irq()
/linux/Documentation/usb/
H A Dchipidea.rst18 variables for otg fsm, mount debugfs, there are 2 files
19 which can show otg fsm variables and some controller registers value::

12