/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 | 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()
|
H A D | ctcm_fsms.h | 40 #include "fsm.h" 170 * ----- FSM (state/event/action) of the ctcm channel statemachine ----- 186 * ----- FSM (state/event/action) of the ctcmpc channel statemachine ----- 248 * The (state/event/action) fsm table of the device interface statemachine. 260 * MPC Group Station FSM States
|
/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 *);
|
/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 …]
|
/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";
|
/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))
|
/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 …]
|
/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 = (_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))
|
/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()
|
/linux/Documentation/devicetree/bindings/power/supply/ |
H A D | qcom,pm8916-bms-vm.yaml | 28 - description: BMS FSM left S3 mode 29 - description: BMS FSM entered S2 mode 33 - description: BMS FSM switched state
|
/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac5.c | 51 { true, "TTES", "TX FSM Timeout Error" }, 52 { true, "RTES", "RX FSM Timeout Error" }, 53 { true, "CTES", "CSR FSM Timeout Error" }, 54 { true, "ATES", "APP FSM Timeout Error" }, 55 { true, "PTES", "PTP FSM Timeout Error" }, 56 { true, "T125ES", "TX125 FSM Timeout Error" }, 57 { true, "R125ES", "RX125 FSM Timeout Error" }, 58 { true, "RVCTES", "REV MDC FSM Timeout Error" }, 67 { true, "FSMPES", "FSM State Parity Error" }, 240 /* 5. Enable Parity and Timeout for FSM */ in dwmac5_safety_feat_config() [all …]
|
/linux/drivers/usb/gadget/udc/ |
H A D | net2280.h | 213 * FSM value for Defect 7374 (U1U2 Test) is managed in 222 * - Starting state: This state can be thought of as the FSM's typical 224 * - Tip: Upon the first SS Control Read the FSM never 232 * - Tip: Upon the first SS Control Read the FSM never 242 * - Tip: Once in this state the FSM state does not change (until 244 * - This can be thought of as the final state of the FSM; 245 * the FSM 'locks-up' in this state until the chip loses power.
|
/linux/Documentation/usb/ |
H A D | chipidea.rst | 5 1. How to test OTG FSM(HNP and SRP) 11 1.1 How to enable OTG FSM 18 variables for otg fsm, mount debugfs, there are 2 files 19 which can show otg fsm variables and some controller registers value::
|