| /drivers/usb/common/ |
| A D | usb-otg-fsm.c | 351 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 D | Makefile | 12 obj-$(CONFIG_USB_OTG_FSM) += usb-otg-fsm.o
|
| /drivers/mtd/devices/ |
| A D | st_spi_fsm.c | 991 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() 2027 fsm = devm_kzalloc(&pdev->dev, sizeof(*fsm), GFP_KERNEL); in stfsm_probe() 2028 if (!fsm) in stfsm_probe() 2081 fsm->mtd.writebufsize = fsm->mtd.writesize; in stfsm_probe() 2094 (long long)fsm->mtd.size, (long long)(fsm->mtd.size >> 20), in stfsm_probe() [all …]
|
| /drivers/usb/chipidea/ |
| A D | otg_fsm.c | 437 struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); in ci_otg_fsm_add_timer() 446 struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); in ci_otg_fsm_del_timer() 460 struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); in ci_otg_drv_vbus() 501 struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); in ci_otg_loc_conn() 543 struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); in ci_otg_start_pulse() 554 struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); in ci_otg_start_host() 568 struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); in ci_otg_start_gadget() 648 struct otg_fsm *fsm = &ci->fsm; in ci_otg_fsm_event() local 744 struct otg_fsm *fsm = &ci->fsm; in ci_otg_fsm_irq() local 771 if (fsm->id) in ci_otg_fsm_irq() [all …]
|
| A D | debug.c | 190 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 …]
|
| A D | core.c | 1287 if ((ci->fsm.otg->state == OTG_STATE_A_IDLE) && in ci_otg_fsm_suspend_for_srp() 1299 if ((ci->fsm.otg->state == OTG_STATE_A_IDLE) && in ci_otg_fsm_wakeup_by_srp() 1300 (ci->fsm.a_bus_drop == 1) && (ci->fsm.a_bus_req == 0)) { in ci_otg_fsm_wakeup_by_srp() 1302 ci->fsm.a_srp_det = 1; in ci_otg_fsm_wakeup_by_srp() 1303 ci->fsm.a_bus_drop = 0; in ci_otg_fsm_wakeup_by_srp() 1305 ci->fsm.id = 1; in ci_otg_fsm_wakeup_by_srp()
|
| /drivers/usb/phy/ |
| A D | phy-fsl-usb.c | 474 fsm->a_vbus_vld = in fsl_otg_start_host() 485 if (fsm->id) { in fsl_otg_start_host() 510 if (fsm->id) in fsl_otg_start_host() 585 struct otg_fsm *fsm = &otg_dev->fsm; in fsl_otg_set_host() local 653 struct otg_fsm *fsm = &og->fsm; in fsl_otg_event() local 709 struct otg_fsm *fsm = &((struct fsl_otg *)dev_id)->fsm; in fsl_otg_isr() local 729 if (fsm->id) in fsl_otg_isr() 730 fsm->b_conn = 0; in fsl_otg_isr() 732 fsm->a_conn = 0; in fsl_otg_isr() 844 fsm = &p_otg->fsm; in usb_otg_start() [all …]
|
| A D | phy-fsl-usb.h | 359 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);
|
| /drivers/isdn/mISDN/ |
| A D | fsm.c | 21 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 …]
|
| A D | fsm.h | 29 struct Fsm *fsm; member
|
| A D | Makefile | 12 mISDN_core-objs := core.o fsm.o socket.o clock.o hwchannel.o stack.o layer1.o layer2.o tei.o timerd…
|
| /drivers/s390/net/ |
| A D | ctcm_mpc.c | 350 switch (fsm_getstate(grp->fsm)) { in ctc_mpc_alloc_channel() 423 switch (fsm_getstate(grp->fsm)) { in ctc_mpc_establish_connectivity() 574 mpcg_state = fsm_getstate(grp->fsm); in ctc_mpc_flow_control() 1271 if (grp->fsm == NULL) { in ctcmpc_init_mpc_group() 1282 kfree_fsm(grp->fsm); in ctcmpc_init_mpc_group() 1302 kfree_fsm(grp->fsm); in ctcmpc_init_mpc_group() 1453 switch (fsm_getstate(grp->fsm)) { in mpc_action_timeout() 1847 switch (fsm_getstate(grp->fsm)) { in mpc_action_doxid0() 1958 switch (fsm_getstate(grp->fsm)) { in mpc_action_rcvd_xid0() 1988 fsm_getstate_str(grp->fsm), fsm_getstate_str(ch->fsm)); in mpc_action_rcvd_xid0() [all …]
|
| A D | ctcm_main.c | 219 kfree_fsm(ch->fsm); in channel_remove() 1026 if (grp->fsm) in ctcm_free_netdevice() 1027 kfree_fsm(grp->fsm); in ctcm_free_netdevice() 1034 if (priv->fsm) { in ctcm_free_netdevice() 1035 kfree_fsm(priv->fsm); in ctcm_free_netdevice() 1036 priv->fsm = NULL; in ctcm_free_netdevice() 1407 if (ch->fsm == NULL) in add_channel() 1447 kfree_fsm(ch->fsm); in add_channel() 1562 strscpy(priv->fsm->name, dev->name, sizeof(priv->fsm->name)); in ctcm_new_device() 1625 if (priv->fsm) in ctcm_shutdown_device() [all …]
|
| A D | ctcm_fsms.c | 943 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 D | ctcm_sysfs.c | 90 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()
|
| A D | fsm.h | 49 } fsm; typedef 65 fsm *f;
|
| A D | ctcm_main.h | 195 fsm_instance *fsm; /* finite state machine of this channel */ member 212 fsm_instance *fsm; member
|
| A D | fsm.c | 24 fsm *f; in init_fsm() 35 f = kzalloc(sizeof(fsm), order); in init_fsm()
|
| /drivers/net/ethernet/brocade/bna/ |
| A D | bfa_cs.h | 60 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))
|
| A D | bna_types.h | 318 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
|
| A D | bfa_msgq.h | 61 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
|
| /drivers/leds/ |
| A D | leds-cht-wcove.c | 54 u16 fsm; member 64 unsigned int fsm; member 85 .fsm = CHT_WC_LED1_FSM, 93 .fsm = CHT_WC_LED2_FSM, 123 ret = regmap_update_bits(led->regmap, led->regs->fsm, in cht_wc_leds_brightness_set() 237 ret = regmap_update_bits(led->regmap, led->regs->fsm, in cht_wc_leds_set_effect() 248 ret = regmap_update_bits(led->regmap, led->regs->fsm, in cht_wc_leds_set_effect() 322 ret = regmap_read(led->regmap, led->regs->fsm, &saved_regs->fsm); in cht_wc_led_save_regs() 333 regmap_write(led->regmap, led->regs->fsm, saved_regs->fsm); in cht_wc_led_restore_regs()
|
| /drivers/scsi/bfa/ |
| A D | bfa_cs.h | 188 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))
|
| A D | bfa_fcs.h | 66 typedef void (*bfa_fcs_lport_ns_sm_t)(struct bfa_fcs_lport_ns_s *fsm, enum vport_ns_event); 91 typedef void (*bfa_fcs_lport_scn_sm_t)(struct bfa_fcs_lport_scn_s *fsm, enum port_scn_event); 117 typedef void (*bfa_fcs_lport_fdmi_sm_t)(struct bfa_fcs_lport_fdmi_s *fsm, enum port_fdmi_event); 142 typedef void (*bfa_fcs_lport_ms_sm_t)(struct bfa_fcs_lport_ms_s *fsm, enum port_ms_event); 199 typedef void (*bfa_fcs_lport_sm_t)(struct bfa_fcs_lport_s *fsm, enum bfa_fcs_lport_event); 266 typedef void (*bfa_fcs_fabric_sm_t)(struct bfa_fcs_fabric_s *fsm, enum bfa_fcs_fabric_event); 456 typedef void (*bfa_fcs_vport_sm_t)(struct bfa_fcs_vport_s *fsm, enum bfa_fcs_vport_event);
|
| /drivers/mmc/host/ |
| A D | bcm2835.c | 296 u32 edm, fsm; in bcm2835_wait_transfer_complete() local 299 fsm = edm & SDEDM_FSM_MASK; in bcm2835_wait_transfer_complete() 301 if ((fsm == SDEDM_FSM_IDENTMODE) || in bcm2835_wait_transfer_complete() 302 (fsm == SDEDM_FSM_DATAMODE)) in bcm2835_wait_transfer_complete() 304 if (fsm == alternate_idle) { in bcm2835_wait_transfer_complete() 762 u32 edm, fsm; in bcm2835_finish_command() local 773 fsm = edm & SDEDM_FSM_MASK; in bcm2835_finish_command() 774 if (fsm == SDEDM_FSM_READWAIT || in bcm2835_finish_command() 1158 u32 edm, fsm; in bcm2835_request() local 1187 fsm = edm & SDEDM_FSM_MASK; in bcm2835_request() [all …]
|