/openbmc/linux/drivers/usb/common/ |
H A D | usb-otg-fsm.c | 19 #include <linux/usb/otg-fsm.h> 29 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() 34 VDBG("Changing role fsm->protocol= %d; new protocol= %d\n", 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() [all …]
|
/openbmc/linux/include/linux/usb/ |
H A D | otg-fsm.h | 95 * OTG Output status. Read only for users. Updated by OTG FSM helpers defined 115 * Unused as OTG fsm uses otg->host->b_hnp_enable instead 119 * Unused as OTG fsm uses otg->gadget->b_hnp_enable instead 191 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); [all …]
|
/openbmc/linux/drivers/usb/chipidea/ |
H A D | otg_fsm.c | 3 * otg_fsm.c - ChipIdea USB IP core OTG FSM driver 11 * This file mainly handles OTG fsm, it includes OTG fsm operations 40 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() [all …]
|
H A D | debug.c | 13 #include <linux/usb/otg-fsm.h> 190 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() [all …]
|
/openbmc/linux/drivers/mtd/devices/ |
H A D | st_spi_fsm.c | 3 * st_spi_fsm.c - ST Fast Sequence Mode (FSM) Serial Flash Controller 28 * FSM SPI Controller Registers 156 * FSM SPI Instruction Opcodes 170 * FSM SPI Instructions (== opcode + operand). 200 #define STFSM_MAX_WAIT_SEQ_MS 1000 /* FSM execution time */ 274 /* Parameters to configure a READ or WRITE FSM sequence */ 311 static int stfsm_n25q_config(struct stfsm *fsm); 312 static int stfsm_mx25_config(struct stfsm *fsm); 313 static int stfsm_s25fl_config(struct stfsm *fsm); 314 static int stfsm_w25q_config(struct stfsm *fsm); [all …]
|
/openbmc/linux/drivers/usb/phy/ |
H A D | phy-fsl-usb.c | 58 /* FSM timers */ 117 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() [all …]
|
/openbmc/linux/drivers/s390/net/ |
H A D | fsm.h | 36 * Definition of an action function, called by a FSM 41 * Internal jump table for a FSM 49 } fsm; typedef 62 * Representation of a FSM 65 fsm *f; 88 * Description of a FSM Timer. 98 * Creates an FSM 105 * @param tmpl An array of fsm_nodes, describing this FSM. 107 * @param order Parameter for allocation of the FSM data structs. 116 * Releases an FSM [all …]
|
H A D | ctcm_mpc.c | 112 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 D | fsm.c | 3 * A generic FSM based on fsm used in isdn4linux 7 #include "fsm.h" 23 fsm *f; in init_fsm() 28 "fsm(%s): init_fsm: Couldn't alloc instance\n", name); in init_fsm() 34 f = kzalloc(sizeof(fsm), order); in init_fsm() 37 "fsm(%s): init_fsm: Couldn't alloc fsm\n", name); in init_fsm() 50 "fsm(%s): init_fsm: Couldn't alloc jumptable\n", name); in init_fsm() 60 "fsm(%s): init_fsm: Bad template l=%d st(%ld/%ld) ev(%ld/%ld)\n", in init_fsm() 83 "fsm: kfree_fsm called with NULL argument\n"); in kfree_fsm() 96 printk(KERN_DEBUG "fsm(%s): History:\n", fi->name); in fsm_print_history() [all …]
|
H A D | ctcm_main.c | 192 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 D | ctcm_fsms.c | 45 #include "fsm.h" 180 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() [all …]
|
H A D | netiucv.c | 55 #include "fsm.h" 150 fsm_instance *fsm; member 178 fsm_instance *fsm; member 486 fsm_event(conn->fsm, CONN_EVENT_RX, &ev); in netiucv_callback_rx() 497 fsm_event(conn->fsm, CONN_EVENT_TXDONE, &ev); in netiucv_callback_txdone() 504 fsm_event(conn->fsm, CONN_EVENT_CONN_ACK, conn); in netiucv_callback_connack() 529 fsm_event(conn->fsm, CONN_EVENT_CONN_REQ, &ev); in netiucv_callback_connreq() 542 fsm_event(conn->fsm, CONN_EVENT_CONN_REJ, conn); in netiucv_callback_connrej() 549 fsm_event(conn->fsm, CONN_EVENT_CONN_SUS, conn); in netiucv_callback_connsusp() 556 fsm_event(conn->fsm, CONN_EVENT_CONN_RES, conn); in netiucv_callback_connres() [all …]
|
H A D | ctcm_sysfs.c | 89 p += scnprintf(p, CTCM_STATSIZE_LIMIT, " Device FSM state: %s\n", in ctcm_print_statistics() 90 fsm_getstate_str(priv->fsm)); in ctcm_print_statistics() 91 p += scnprintf(p, CTCM_STATSIZE_LIMIT, " RX channel FSM state: %s\n", in ctcm_print_statistics() 92 fsm_getstate_str(priv->channel[CTCM_READ]->fsm)); in ctcm_print_statistics() 93 p += scnprintf(p, CTCM_STATSIZE_LIMIT, " TX channel FSM state: %s\n", in ctcm_print_statistics() 94 fsm_getstate_str(priv->channel[CTCM_WRITE]->fsm)); in ctcm_print_statistics()
|
/openbmc/linux/drivers/isdn/mISDN/ |
H A D | fsm.c | 16 #include "fsm.h" 21 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() [all …]
|
H A D | fsm.h | 22 struct Fsm { struct 29 struct Fsm *fsm; argument 49 extern int mISDN_FsmNew(struct Fsm *, struct FsmNode *, int); 50 extern void mISDN_FsmFree(struct Fsm *);
|
/openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/python3-pexpect/ |
H A D | 0001-FSM.py-change-shebang-from-python-to-python3.patch | 4 Subject: [PATCH] FSM.py: change shebang from python to python3 10 pexpect/FSM.py | 2 +- 13 diff --git a/pexpect/FSM.py b/pexpect/FSM.py 15 --- a/pexpect/FSM.py 16 +++ b/pexpect/FSM.py 21 '''This module implements a Finite State Machine (FSM). In addition to state 22 this FSM also maintains a user defined "memory". So this FSM can be used as a
|
/openbmc/google-misc/subprojects/ncsid/doc/ |
H A D | ncsid_internals.md | 36 ### L2 FSM 41 ### L3/4 FSM 45 ### Test FSM 59 - MAC Address. For L2 FSM this parameter is _OUT_. 60 - IP Address (only for L3/4 FSM and Test FSM) for setting up and verifying 62 - TCP Port (only for L3/4 FSM and Test FSM) for setting up and verifying
|
H A D | ncsid_test_arch.dot | 11 <td bgcolor="black"><font color="white">L2 FSM</font></td> 12 <td bgcolor="black"><font color="white">L3/4 FSM</font></td> 13 <td bgcolor="black"><font color="white">Test FSM</font></td>
|
/openbmc/linux/Documentation/devicetree/bindings/mtd/ |
H A D | st-fsm.txt | 1 * ST-Microelectronics SPI FSM Serial (NOR) Flash Controller 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";
|
/openbmc/linux/lib/ |
H A D | ts_fsm.c | 136 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 …]
|
/openbmc/linux/drivers/net/ethernet/brocade/bna/ |
H 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))
|
/openbmc/linux/drivers/leds/ |
H 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() 126 dev_err(cdev->dev, "Failed to update LED FSM reg: %d\n", ret); in cht_wc_leds_brightness_set() 237 ret = regmap_update_bits(led->regmap, led->regs->fsm, in cht_wc_leds_set_effect() 240 dev_err(cdev->dev, "Failed to update LED FSM reg: %d\n", ret); in cht_wc_leds_set_effect() 248 ret = regmap_update_bits(led->regmap, led->regs->fsm, in cht_wc_leds_set_effect() 251 dev_err(cdev->dev, "Failed to update LED FSM reg: %d\n", ret); in cht_wc_leds_set_effect() [all …]
|
/openbmc/openbmc/meta-facebook/meta-catalina/recipes-phosphor/gpio/phosphor-gpio-monitor/ |
H A D | catalina-gpio-monitor | 77 …T_FROM_HOST_ISO_PLD_N or OCP_V3_2_PERST_FROM_HOST_ISO_PLD_N timeout assert, FSM stop at state 0x01" 79 LOG_MSG="NODEA_NODEB_PWOK_PLD_ISO_R timeout assert, FSM stop at state 0x03" 81 LOG_MSG="PWRGD_P12V_AUX_FAN_PLD timeout assert, FSM stop at state 0x05" 83 LOG_MSG="PWRGD_P12V_AUX_PLD_ISO_R timeout assert, FSM stop at state 0x07" 91 LOG_MSG="NIC1 FM_OCP_V3_2_PWR_GOOD_PLD timeout assert, FSM stop at state 0x03" 93 LOG_MSG="NIC1 HP_LVC3_OCP_V3_2_PWRGD_PLD timeout assert, FSM stop at state 0x05" 99 LOG_MSG="NIC0 FM_OCP_SFF_PWR_GOOD_PLD timeout assert, FSM stop at state 0x03" 101 LOG_MSG="NIC0 HP_LVC3_OCP_V3_1_PWRGD_PLD timeout assert, FSM stop at state 0x05"
|
/openbmc/linux/drivers/scsi/bfa/ |
H 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 = (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))
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlxfw/ |
H A D | mlxfw_fsm.c | 98 MLXFW_ERR_MSG(mlxfw_dev, extack, "FSM state query failed", err); in mlxfw_fsm_state_wait() 108 "Timeout reached on FSM state change", -ETIMEDOUT); in mlxfw_fsm_state_wait() 123 #define MXFW_REACT_PRFX "Reactivate FSM: " in mlxfw_fsm_reactivate_err() 228 MLXFW_ERR_MSG(mlxfw_dev, extack, "FSM component query failed", err); in mlxfw_flash_component() 250 "FSM component update failed, FW reactivate is not supported", in mlxfw_flash_component() 254 "FSM component update failed", err); in mlxfw_flash_component() 291 "FSM component verify failed", err); in mlxfw_flash_component() 376 "Could not lock the firmware FSM", err); in mlxfw_firmware_flash()
|