Home
last modified time | relevance | path

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

123

/linux/drivers/usb/common/
A Dusb-otg-fsm.c351 else if ((fsm->b_bus_req || fsm->adp_change || fsm->power_up) && in otg_statemachine()
356 if (!fsm->id || fsm->b_srp_done) in otg_statemachine()
360 if (!fsm->id || !fsm->b_sess_vld) in otg_statemachine()
377 if (!fsm->id || !fsm->b_sess_vld) in otg_statemachine()
379 else if (!fsm->b_bus_req || !fsm->a_conn || fsm->test_device) in otg_statemachine()
386 fsm->a_srp_det || fsm->adp_change || fsm->power_up)) in otg_statemachine()
401 else if (fsm->id || fsm->a_bus_drop || fsm->a_wait_bcon_tmout) in otg_statemachine()
405 if (fsm->id || fsm->a_bus_drop) in otg_statemachine()
422 else if (fsm->id || fsm->a_bus_drop || fsm->a_aidl_bdis_tmout) in otg_statemachine()
428 if (fsm->id || fsm->a_bus_drop) in otg_statemachine()
[all …]
A DMakefile12 obj-$(CONFIG_USB_OTG_FSM) += usb-otg-fsm.o
/linux/include/linux/usb/
A Dotg-fsm.h222 fsm->ops->chrg_vbus(fsm, on); in otg_chrg_vbus()
232 fsm->ops->drv_vbus(fsm, on); in otg_drv_vbus()
243 fsm->ops->loc_conn(fsm, on); in otg_loc_conn()
254 fsm->ops->loc_sof(fsm, on); in otg_loc_sof()
265 fsm->ops->start_pulse(fsm); in otg_start_pulse()
277 fsm->ops->start_adp_prb(fsm); in otg_start_adp_prb()
288 fsm->ops->start_adp_sns(fsm); in otg_start_adp_sns()
297 fsm->ops->add_timer(fsm, timer); in otg_add_timer()
305 fsm->ops->del_timer(fsm, timer); in otg_del_timer()
313 return fsm->ops->start_host(fsm, on); in otg_start_host()
[all …]
/linux/drivers/mtd/devices/
A Dst_spi_fsm.c991 if (fsm->reset_signal && fsm->info->flags & FLASH_FLAG_RESET) in stfsm_can_handle_soc_reset()
1123 ret = stfsm_search_prepare_rw_seq(fsm, &fsm->stfsm_seq_read, in stfsm_prepare_rwe_seqs_default()
1133 ret = stfsm_search_prepare_rw_seq(fsm, &fsm->stfsm_seq_write, in stfsm_prepare_rwe_seqs_default()
1215 ret = stfsm_search_prepare_rw_seq(fsm, &fsm->stfsm_seq_read, in stfsm_n25q_config()
1218 ret = stfsm_search_prepare_rw_seq(fsm, &fsm->stfsm_seq_read, in stfsm_n25q_config()
1228 ret = stfsm_search_prepare_rw_seq(fsm, &fsm->stfsm_seq_write, in stfsm_n25q_config()
2028 fsm = devm_kzalloc(&pdev->dev, sizeof(*fsm), GFP_KERNEL); in stfsm_probe()
2029 if (!fsm) in stfsm_probe()
2102 fsm->mtd.writebufsize = fsm->mtd.writesize; in stfsm_probe()
2115 (long long)fsm->mtd.size, (long long)(fsm->mtd.size >> 20), in stfsm_probe()
[all …]
/linux/drivers/usb/chipidea/
A Dotg_fsm.c436 struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); in ci_otg_fsm_add_timer()
445 struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); in ci_otg_fsm_del_timer()
459 struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); in ci_otg_drv_vbus()
493 struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); in ci_otg_loc_conn()
535 struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); in ci_otg_start_pulse()
546 struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); in ci_otg_start_host()
560 struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); in ci_otg_start_gadget()
640 struct otg_fsm *fsm = &ci->fsm; in ci_otg_fsm_event() local
736 struct otg_fsm *fsm = &ci->fsm; in ci_otg_fsm_irq() local
763 if (fsm->id) in ci_otg_fsm_irq()
[all …]
A Ddebug.c190 struct otg_fsm *fsm; in ci_otg_show() local
195 fsm = &ci->fsm; in ci_otg_show()
210 seq_printf(s, "b_conn: %d\n", fsm->b_conn); in ci_otg_show()
214 seq_printf(s, "power_up: %d\n", fsm->power_up); in ci_otg_show()
220 seq_printf(s, "a_conn: %d\n", fsm->a_conn); in ci_otg_show()
234 seq_printf(s, "drv_vbus: %d\n", fsm->drv_vbus); in ci_otg_show()
236 seq_printf(s, "loc_conn: %d\n", fsm->loc_conn); in ci_otg_show()
238 seq_printf(s, "loc_sof: %d\n", fsm->loc_sof); in ci_otg_show()
240 seq_printf(s, "adp_prb: %d\n", fsm->adp_prb); in ci_otg_show()
242 seq_printf(s, "id: %d\n", fsm->id); in ci_otg_show()
[all …]
/linux/drivers/usb/phy/
A Dphy-fsl-usb.c473 fsm->a_vbus_vld = in fsl_otg_start_host()
484 if (fsm->id) { in fsl_otg_start_host()
509 if (fsm->id) in fsl_otg_start_host()
584 struct otg_fsm *fsm = &otg_dev->fsm; in fsl_otg_set_host() local
652 struct otg_fsm *fsm = &og->fsm; in fsl_otg_event() local
708 struct otg_fsm *fsm = &((struct fsl_otg *)dev_id)->fsm; in fsl_otg_isr() local
728 if (fsm->id) in fsl_otg_isr()
729 fsm->b_conn = 0; in fsl_otg_isr()
731 fsm->a_conn = 0; in fsl_otg_isr()
843 fsm = &p_otg->fsm; in usb_otg_start()
[all …]
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/isdn/mISDN/
A Dfsm.c21 mISDN_FsmNew(struct Fsm *fsm, in mISDN_FsmNew() argument
26 fsm->jumpmatrix = in mISDN_FsmNew()
28 fsm->event_count), in mISDN_FsmNew()
30 if (fsm->jumpmatrix == NULL) in mISDN_FsmNew()
41 fsm->jumpmatrix[fsm->state_count * fnlist[i].event + in mISDN_FsmNew()
48 mISDN_FsmFree(struct Fsm *fsm) in mISDN_FsmFree() argument
50 kfree((void *) fsm->jumpmatrix); in mISDN_FsmFree()
64 (long)fi->fsm->event_count); in mISDN_FsmEvent()
67 r = fi->fsm->jumpmatrix[fi->fsm->state_count * event + fi->state]; in mISDN_FsmEvent()
72 fi->fsm->strEvent[event]); in mISDN_FsmEvent()
[all …]
/linux/drivers/s390/net/
A Dctcm_mpc.c347 switch (fsm_getstate(grp->fsm)) { in ctc_mpc_alloc_channel()
420 switch (fsm_getstate(grp->fsm)) { in ctc_mpc_establish_connectivity()
571 mpcg_state = fsm_getstate(grp->fsm); in ctc_mpc_flow_control()
1269 if (grp->fsm == NULL) { in ctcmpc_init_mpc_group()
1280 kfree_fsm(grp->fsm); in ctcmpc_init_mpc_group()
1300 kfree_fsm(grp->fsm); in ctcmpc_init_mpc_group()
1451 switch (fsm_getstate(grp->fsm)) { in mpc_action_timeout()
1845 switch (fsm_getstate(grp->fsm)) { in mpc_action_doxid0()
1956 switch (fsm_getstate(grp->fsm)) { in mpc_action_rcvd_xid0()
1987 fsm_getstate_str(grp->fsm), fsm_getstate_str(ch->fsm)); in mpc_action_rcvd_xid0()
[all …]
A Dctcm_main.c219 kfree_fsm(ch->fsm); in channel_remove()
1033 if (grp->fsm) in ctcm_free_netdevice()
1034 kfree_fsm(grp->fsm); in ctcm_free_netdevice()
1041 if (priv->fsm) { in ctcm_free_netdevice()
1042 kfree_fsm(priv->fsm); in ctcm_free_netdevice()
1043 priv->fsm = NULL; in ctcm_free_netdevice()
1414 if (ch->fsm == NULL) in add_channel()
1454 kfree_fsm(ch->fsm); in add_channel()
1569 strlcpy(priv->fsm->name, dev->name, sizeof(priv->fsm->name)); in ctcm_new_device()
1632 if (priv->fsm) in ctcm_shutdown_device()
[all …]
A Dctcm_fsms.c943 fsm_newstate(ch2->fsm, CTC_STATE_DTERM); in ctcm_chx_rxdisc()
1414 switch (fsm_getstate(grp->fsm)) { in ctcmpc_chx_rx()
1434 switch (fsm_getstate(grp->fsm)) { in ctcmpc_chx_rx()
1545 switch (fsm_getstate(grp->fsm)) { in ctcmpc_chx_rxidle()
1591 fsm_getstate_str(ch->fsm), fsm_getstate_str(grp->fsm)); in ctcmpc_chx_attn()
1593 switch (fsm_getstate(grp->fsm)) { in ctcmpc_chx_attn()
1621 switch (fsm_getstate(ch->fsm)) { in ctcmpc_chx_attn()
1650 fsm_getstate_str(ch->fsm), fsm_getstate_str(grp->fsm)); in ctcmpc_chx_attnbusy()
1654 switch (fsm_getstate(grp->fsm)) { in ctcmpc_chx_attnbusy()
1809 fsm_newstate(wch->fsm, CTC_STATE_TX); in ctcmpc_chx_send_sweep()
[all …]
A Dnetiucv.c150 fsm_instance *fsm; member
178 fsm_instance *fsm; member
486 fsm_event(conn->fsm, CONN_EVENT_RX, &ev); in netiucv_callback_rx()
1175 fsm_newstate(conn->fsm, CONN_STATE_TX); in netiucv_transmit_skb()
1777 if (!conn->fsm) in netiucv_new_connection()
1780 fsm_settimer(conn->fsm, &conn->timer); in netiucv_new_connection()
1824 kfree_fsm(conn->fsm); in netiucv_remove_connection()
1844 if (privptr->fsm) in netiucv_free_netdevice()
1845 kfree_fsm(privptr->fsm); in netiucv_free_netdevice()
1896 if (!privptr->fsm) in netiucv_init_netdevice()
[all …]
A DMakefile7 obj-$(CONFIG_CTCM) += ctcm.o fsm.o
8 obj-$(CONFIG_NETIUCV) += netiucv.o fsm.o
A 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()
A Dfsm.h49 } fsm; typedef
65 fsm *f;
A Dctcm_main.h194 fsm_instance *fsm; /* finite state machine of this channel */ member
211 fsm_instance *fsm; member
/linux/drivers/net/ethernet/brocade/bna/
A Dbfa_cs.h32 typedef void (*bfa_fsm_t)(void *fsm, int event);
40 static void oc ## _sm_ ## st(otype * fsm, etype event); \
41 static void oc ## _sm_ ## st ## _entry(otype * fsm)
44 (_fsm)->fsm = (bfa_fsm_t)(_state); \
48 #define bfa_fsm_send_event(_fsm, _event) ((_fsm)->fsm((_fsm), (_event)))
50 ((_fsm)->fsm == (bfa_fsm_t)(_state))
A Dbna_types.h316 bfa_fsm_t fsm; member
338 bfa_fsm_t fsm; member
364 bfa_fsm_t fsm; member
463 bfa_fsm_t fsm; member
702 bfa_fsm_t fsm; member
778 bfa_fsm_t fsm; member
A Dbfa_msgq.h59 bfa_fsm_t fsm; member
85 bfa_fsm_t fsm; member
/linux/lib/
A Dts_fsm.c136 struct ts_fsm *fsm = ts_config_priv(conf); in fsm_find() local
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()
289 memcpy(fsm->tokens, pattern, len); in fsm_init()
291 for (i = 0; i < fsm->ntokens; i++) { in fsm_init()
[all …]
/linux/drivers/scsi/bfa/
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 = (bfa_fsm_t)(_state); \
225 #define bfa_fsm_send_event(_fsm, _event) ((_fsm)->fsm((_fsm), (_event)))
226 #define bfa_fsm_get_state(_fsm) ((_fsm)->fsm)
228 ((_fsm)->fsm == (bfa_fsm_t)(_state))
/linux/Documentation/devicetree/bindings/mtd/
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/fs/ext4/
A Dfsmap.c295 struct ext4_fsmap *fsm; in ext4_getfsmap_fill() local
297 fsm = kmalloc(sizeof(*fsm), GFP_NOFS); in ext4_getfsmap_fill()
298 if (!fsm) in ext4_getfsmap_fill()
300 fsm->fmr_device = 0; in ext4_getfsmap_fill()
301 fsm->fmr_flags = 0; in ext4_getfsmap_fill()
302 fsm->fmr_physical = fsb; in ext4_getfsmap_fill()
303 fsm->fmr_owner = owner; in ext4_getfsmap_fill()
304 fsm->fmr_length = len; in ext4_getfsmap_fill()
305 list_add_tail(&fsm->fmr_list, meta_list); in ext4_getfsmap_fill()
/linux/drivers/mmc/host/
A Dbcm2835.c294 u32 edm, fsm; in bcm2835_wait_transfer_complete() local
297 fsm = edm & SDEDM_FSM_MASK; in bcm2835_wait_transfer_complete()
299 if ((fsm == SDEDM_FSM_IDENTMODE) || in bcm2835_wait_transfer_complete()
300 (fsm == SDEDM_FSM_DATAMODE)) in bcm2835_wait_transfer_complete()
302 if (fsm == alternate_idle) { in bcm2835_wait_transfer_complete()
765 u32 edm, fsm; in bcm2835_finish_command() local
776 fsm = edm & SDEDM_FSM_MASK; in bcm2835_finish_command()
777 if (fsm == SDEDM_FSM_READWAIT || in bcm2835_finish_command()
1164 u32 edm, fsm; in bcm2835_request() local
1193 fsm = edm & SDEDM_FSM_MASK; in bcm2835_request()
[all …]

Completed in 712 milliseconds

123