Home
last modified time | relevance | path

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

123

/Linux-v4.19/drivers/usb/common/
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 …]
/Linux-v4.19/include/linux/usb/
Dotg-fsm.h203 void (*chrg_vbus)(struct otg_fsm *fsm, int on);
204 void (*drv_vbus)(struct otg_fsm *fsm, int on);
205 void (*loc_conn)(struct otg_fsm *fsm, int on);
206 void (*loc_sof)(struct otg_fsm *fsm, int on);
207 void (*start_pulse)(struct otg_fsm *fsm);
208 void (*start_adp_prb)(struct otg_fsm *fsm);
209 void (*start_adp_sns)(struct otg_fsm *fsm);
210 void (*add_timer)(struct otg_fsm *fsm, enum otg_fsm_timer timer);
211 void (*del_timer)(struct otg_fsm *fsm, enum otg_fsm_timer timer);
212 int (*start_host)(struct otg_fsm *fsm, int on);
[all …]
/Linux-v4.19/drivers/mtd/devices/
Dst_spi_fsm.c316 static int stfsm_n25q_config(struct stfsm *fsm);
317 static int stfsm_mx25_config(struct stfsm *fsm);
318 static int stfsm_s25fl_config(struct stfsm *fsm);
319 static int stfsm_w25q_config(struct stfsm *fsm);
707 static inline int stfsm_is_idle(struct stfsm *fsm) in stfsm_is_idle() argument
709 return readl(fsm->base + SPI_FAST_SEQ_STA) & 0x10; in stfsm_is_idle()
712 static inline uint32_t stfsm_fifo_available(struct stfsm *fsm) in stfsm_fifo_available() argument
714 return (readl(fsm->base + SPI_FAST_SEQ_STA) >> 5) & 0x7f; in stfsm_fifo_available()
717 static inline void stfsm_load_seq(struct stfsm *fsm, in stfsm_load_seq() argument
720 void __iomem *dst = fsm->base + SPI_FAST_SEQ_TRANSFER_SIZE; in stfsm_load_seq()
[all …]
/Linux-v4.19/drivers/usb/chipidea/
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 …]
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-v4.19/drivers/usb/phy/
Dphy-fsl-usb.c117 void fsl_otg_chrg_vbus(struct otg_fsm *fsm, int on) in fsl_otg_chrg_vbus() argument
153 void fsl_otg_drv_vbus(struct otg_fsm *fsm, int on) in fsl_otg_drv_vbus() argument
171 void fsl_otg_loc_conn(struct otg_fsm *fsm, int on) in fsl_otg_loc_conn() argument
190 void fsl_otg_loc_sof(struct otg_fsm *fsm, int on) in fsl_otg_loc_sof() argument
205 void fsl_otg_start_pulse(struct otg_fsm *fsm) in fsl_otg_start_pulse() argument
218 fsl_otg_add_timer(fsm, b_data_pulse_tmr); in fsl_otg_start_pulse()
235 fsl_otg_chrg_vbus(&fsl_otg_dev->fsm, 1); in fsl_otg_pulse_vbus()
237 fsl_otg_add_timer(&fsl_otg_dev->fsm, b_vbus_pulse_tmr); in fsl_otg_pulse_vbus()
242 fsl_otg_chrg_vbus(&fsl_otg_dev->fsm, 0); in b_vbus_pulse_end()
250 fsl_otg_add_timer(&fsl_otg_dev->fsm, b_srp_wait_tmr); in b_vbus_pulse_end()
[all …]
Dphy-fsl-usb.h359 struct otg_fsm fsm; member
390 void fsl_otg_add_timer(struct otg_fsm *fsm, void *timer);
391 void fsl_otg_del_timer(struct otg_fsm *fsm, void *timer);
/Linux-v4.19/drivers/isdn/hisax/
Dfsm.c25 FsmNew(struct Fsm *fsm, struct FsmNode *fnlist, int fncount) in FsmNew() argument
29 fsm->jumpmatrix = in FsmNew()
30 kzalloc(array3_size(sizeof(FSMFNPTR), fsm->state_count, in FsmNew()
31 fsm->event_count), in FsmNew()
33 if (!fsm->jumpmatrix) in FsmNew()
37 if ((fnlist[i].state >= fsm->state_count) || (fnlist[i].event >= fsm->event_count)) { in FsmNew()
39 i, (long)fnlist[i].state, (long)fsm->state_count, in FsmNew()
40 (long)fnlist[i].event, (long)fsm->event_count); in FsmNew()
42 fsm->jumpmatrix[fsm->state_count * fnlist[i].event + in FsmNew()
48 FsmFree(struct Fsm *fsm) in FsmFree() argument
[all …]
Dst5481_d.c289 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 …]
Dfsm.h30 struct Fsm *fsm; member
50 int FsmNew(struct Fsm *fsm, struct FsmNode *fnlist, int fncount);
51 void FsmFree(struct Fsm *fsm);
/Linux-v4.19/drivers/isdn/mISDN/
Dfsm.c30 mISDN_FsmNew(struct Fsm *fsm, in mISDN_FsmNew() argument
35 fsm->jumpmatrix = in mISDN_FsmNew()
36 kzalloc(array3_size(sizeof(FSMFNPTR), fsm->state_count, in mISDN_FsmNew()
37 fsm->event_count), in mISDN_FsmNew()
39 if (fsm->jumpmatrix == NULL) in mISDN_FsmNew()
43 if ((fnlist[i].state >= fsm->state_count) || in mISDN_FsmNew()
44 (fnlist[i].event >= fsm->event_count)) { in mISDN_FsmNew()
47 i, (long)fnlist[i].state, (long)fsm->state_count, in mISDN_FsmNew()
48 (long)fnlist[i].event, (long)fsm->event_count); in mISDN_FsmNew()
50 fsm->jumpmatrix[fsm->state_count * fnlist[i].event + in mISDN_FsmNew()
[all …]
/Linux-v4.19/drivers/s390/net/
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);
345 CTCM_FUNTAIL, dev->name, fsm_getstate_str(grp->fsm)); in ctc_mpc_alloc_channel()
347 switch (fsm_getstate(grp->fsm)) { in ctc_mpc_alloc_channel()
[all …]
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 …]
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()
345 fsm_event(priv->fsm, DEV_EVENT_TXUP, ch->netdev); in ctcm_chx_txidle()
463 fsm_event(priv->fsm, DEV_EVENT_TXUP, dev); in chx_firstio()
499 fsm_event(priv->fsm, DEV_EVENT_RXUP, dev); in chx_firstio()
536 fsm_event(priv->fsm, DEV_EVENT_RXUP, dev); in chx_rxidle()
723 fsm_event(priv->fsm, DEV_EVENT_RXDOWN, dev); in ctcm_chx_cleanup()
[all …]
Dnetiucv.c185 fsm_instance *fsm; member
213 fsm_instance *fsm; member
522 fsm_event(conn->fsm, CONN_EVENT_RX, &ev); in netiucv_callback_rx()
533 fsm_event(conn->fsm, CONN_EVENT_TXDONE, &ev); in netiucv_callback_txdone()
540 fsm_event(conn->fsm, CONN_EVENT_CONN_ACK, conn); in netiucv_callback_connack()
565 fsm_event(conn->fsm, CONN_EVENT_CONN_REQ, &ev); in netiucv_callback_connreq()
578 fsm_event(conn->fsm, CONN_EVENT_CONN_REJ, conn); in netiucv_callback_connrej()
585 fsm_event(conn->fsm, CONN_EVENT_CONN_SUS, conn); in netiucv_callback_connsusp()
592 fsm_event(conn->fsm, CONN_EVENT_CONN_RES, conn); in netiucv_callback_connres()
816 fsm_event(privptr->fsm, DEV_EVENT_CONUP, netdev); in conn_action_connaccept()
[all …]
DMakefile7 obj-$(CONFIG_CTCM) += ctcm.o fsm.o
8 obj-$(CONFIG_NETIUCV) += netiucv.o fsm.o
Dctcm_sysfs.c89 fsm_getstate_str(priv->fsm)); in ctcm_print_statistics()
91 fsm_getstate_str(priv->channel[CTCM_READ]->fsm)); in ctcm_print_statistics()
93 fsm_getstate_str(priv->channel[CTCM_WRITE]->fsm)); in ctcm_print_statistics()
Dfsm.h49 } fsm; typedef
65 fsm *f;
/Linux-v4.19/drivers/net/ethernet/brocade/bna/
Dbfa_cs.h40 typedef void (*bfa_fsm_t)(void *fsm, int event);
48 static void oc ## _sm_ ## st(otype * fsm, etype event); \
49 static void oc ## _sm_ ## st ## _entry(otype * fsm)
52 (_fsm)->fsm = (bfa_fsm_t)(_state); \
56 #define bfa_fsm_send_event(_fsm, _event) ((_fsm)->fsm((_fsm), (_event)))
58 ((_fsm)->fsm == (bfa_fsm_t)(_state))
Dbna_types.h324 bfa_fsm_t fsm; member
346 bfa_fsm_t fsm; member
372 bfa_fsm_t fsm; member
471 bfa_fsm_t fsm; member
710 bfa_fsm_t fsm; member
786 bfa_fsm_t fsm; member
Dbfa_msgq.h67 bfa_fsm_t fsm; member
93 bfa_fsm_t fsm; member
/Linux-v4.19/lib/
Dts_fsm.c140 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-v4.19/Documentation/devicetree/bindings/mtd/
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-v4.19/drivers/scsi/bfa/
Dbfa_cs.h196 static void oc ## _sm_ ## st(otype * fsm, etype event)
216 typedef void (*bfa_fsm_t)(void *fsm, int event);
225 static void oc ## _sm_ ## st(otype * fsm, etype event); \
226 static void oc ## _sm_ ## st ## _entry(otype * fsm)
229 (_fsm)->fsm = (bfa_fsm_t)(_state); \
233 #define bfa_fsm_send_event(_fsm, _event) ((_fsm)->fsm((_fsm), (_event)))
234 #define bfa_fsm_get_state(_fsm) ((_fsm)->fsm)
236 ((_fsm)->fsm == (bfa_fsm_t)(_state))
/Linux-v4.19/fs/ext4/
Dfsmap.c292 struct ext4_fsmap *fsm; in ext4_getfsmap_fill() local
294 fsm = kmalloc(sizeof(*fsm), GFP_NOFS); in ext4_getfsmap_fill()
295 if (!fsm) in ext4_getfsmap_fill()
297 fsm->fmr_device = 0; in ext4_getfsmap_fill()
298 fsm->fmr_flags = 0; in ext4_getfsmap_fill()
299 fsm->fmr_physical = fsb; in ext4_getfsmap_fill()
300 fsm->fmr_owner = owner; in ext4_getfsmap_fill()
301 fsm->fmr_length = len; in ext4_getfsmap_fill()
302 list_add_tail(&fsm->fmr_list, meta_list); in ext4_getfsmap_fill()

123