| /linux/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 …]
|
| /linux/include/linux/usb/ |
| A D | otg-fsm.h | 209 fsm->ops->chrg_vbus(fsm, on); in otg_chrg_vbus() 219 fsm->ops->drv_vbus(fsm, on); in otg_drv_vbus() 230 fsm->ops->loc_conn(fsm, on); in otg_loc_conn() 241 fsm->ops->loc_sof(fsm, on); in otg_loc_sof() 252 fsm->ops->start_pulse(fsm); in otg_start_pulse() 264 fsm->ops->start_adp_prb(fsm); in otg_start_adp_prb() 275 fsm->ops->start_adp_sns(fsm); in otg_start_adp_sns() 284 fsm->ops->add_timer(fsm, timer); in otg_add_timer() 292 fsm->ops->del_timer(fsm, timer); in otg_del_timer() 300 return fsm->ops->start_host(fsm, on); in otg_start_host() [all …]
|
| /linux/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 …]
|
| /linux/drivers/usb/chipidea/ |
| A D | otg_fsm.c | 438 struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); in ci_otg_fsm_add_timer() 447 struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); in ci_otg_fsm_del_timer() 461 struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); in ci_otg_drv_vbus() 502 struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); in ci_otg_loc_conn() 544 struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); in ci_otg_start_pulse() 555 struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); in ci_otg_start_host() 569 struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm); in ci_otg_start_gadget() 649 struct otg_fsm *fsm = &ci->fsm; in ci_otg_fsm_event() local 745 struct otg_fsm *fsm = &ci->fsm; in ci_otg_fsm_irq() local 772 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 …]
|
| /linux/drivers/usb/phy/ |
| A D | phy-fsl-usb.c | 473 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 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);
|
| /linux/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 …]
|
| /linux/drivers/s390/net/ |
| A D | ctcm_mpc.c | 349 switch (fsm_getstate(grp->fsm)) { in ctc_mpc_alloc_channel() 422 switch (fsm_getstate(grp->fsm)) { in ctc_mpc_establish_connectivity() 573 mpcg_state = fsm_getstate(grp->fsm); in ctc_mpc_flow_control() 1270 if (grp->fsm == NULL) { in ctcmpc_init_mpc_group() 1281 kfree_fsm(grp->fsm); in ctcmpc_init_mpc_group() 1301 kfree_fsm(grp->fsm); in ctcmpc_init_mpc_group() 1452 switch (fsm_getstate(grp->fsm)) { in mpc_action_timeout() 1846 switch (fsm_getstate(grp->fsm)) { in mpc_action_doxid0() 1957 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 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 | netiucv.c | 150 fsm_instance *fsm; member 178 fsm_instance *fsm; member 486 fsm_event(conn->fsm, CONN_EVENT_RX, &ev); in netiucv_callback_rx() 1171 fsm_newstate(conn->fsm, CONN_STATE_TX); in netiucv_transmit_skb() 1754 if (!conn->fsm) in netiucv_new_connection() 1757 fsm_settimer(conn->fsm, &conn->timer); in netiucv_new_connection() 1801 kfree_fsm(conn->fsm); in netiucv_remove_connection() 1821 if (privptr->fsm) in netiucv_free_netdevice() 1822 kfree_fsm(privptr->fsm); in netiucv_free_netdevice() 1873 if (!privptr->fsm) in netiucv_init_netdevice() [all …]
|
| A D | Makefile | 7 obj-$(CONFIG_CTCM) += ctcm.o fsm.o 8 obj-$(CONFIG_NETIUCV) += netiucv.o fsm.o
|
| 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;
|
| /linux/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
|
| /linux/lib/ |
| A D | ts_fsm.c | 136 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/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()
|
| /linux/Documentation/devicetree/bindings/mtd/ |
| A D | st-fsm.txt | 4 - 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/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); 462 typedef void (*bfa_fcs_vport_sm_t)(struct bfa_fcs_vport_s *fsm, enum bfa_fcs_vport_event);
|
| /linux/fs/ext4/ |
| A D | fsmap.c | 295 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 D | bcm2835.c | 294 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() 760 u32 edm, fsm; in bcm2835_finish_command() local 771 fsm = edm & SDEDM_FSM_MASK; in bcm2835_finish_command() 772 if (fsm == SDEDM_FSM_READWAIT || in bcm2835_finish_command() 1156 u32 edm, fsm; in bcm2835_request() local 1185 fsm = edm & SDEDM_FSM_MASK; in bcm2835_request() [all …]
|