| /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/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 | 113 static void mpc_action_nop(fsm_instance *fsm, int event, void *arg); 114 static void mpc_action_go_ready(fsm_instance *fsm, int event, void *arg); 118 static void mpc_action_yside_xid(fsm_instance *fsm, int event, void *arg); 119 static void mpc_action_doxid0(fsm_instance *fsm, int event, void *arg); 120 static void mpc_action_doxid7(fsm_instance *fsm, int event, void *arg); 121 static void mpc_action_xside_xid(fsm_instance *fsm, int event, void *arg); 122 static void mpc_action_rcvd_xid0(fsm_instance *fsm, int event, void *arg); 123 static void mpc_action_rcvd_xid7(fsm_instance *fsm, int event, void *arg); 348 CTCM_FUNTAIL, dev->name, fsm_getstate_str(grp->fsm)); in ctc_mpc_alloc_channel() 350 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" 24 fsm *f; in init_fsm() 29 "fsm(%s): init_fsm: Couldn't alloc instance\n", name); in init_fsm() 35 f = kzalloc(sizeof(fsm), order); in init_fsm() 38 "fsm(%s): init_fsm: Couldn't alloc fsm\n", name); in init_fsm() 51 "fsm(%s): init_fsm: Couldn't alloc jumptable\n", name); in init_fsm() 61 "fsm(%s): init_fsm: Bad template l=%d st(%ld/%ld) ev(%ld/%ld)\n", in init_fsm() 84 "fsm: kfree_fsm called with NULL argument\n"); in kfree_fsm() 97 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
|
| H A D | ctcm_mpc.h | 16 #include "fsm.h" 199 fsm_instance *fsm; /* group xid fsm */ member
|
| /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/drivers/usb/chipidea/ |
| 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/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))
|
| H 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
|
| /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/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/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/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::
|
| /linux/fs/ext4/ |
| H A D | fsmap.c | 349 struct ext4_fsmap *fsm; in ext4_getfsmap_fill() local 351 fsm = kmalloc(sizeof(*fsm), GFP_NOFS); in ext4_getfsmap_fill() 352 if (!fsm) in ext4_getfsmap_fill() 354 fsm->fmr_device = 0; in ext4_getfsmap_fill() 355 fsm->fmr_flags = 0; in ext4_getfsmap_fill() 356 fsm->fmr_physical = fsb; in ext4_getfsmap_fill() 357 fsm->fmr_owner = owner; in ext4_getfsmap_fill() 358 fsm->fmr_length = len; in ext4_getfsmap_fill() 359 list_add_tail(&fsm->fmr_list, meta_list); in ext4_getfsmap_fill()
|
| /linux/drivers/mmc/host/ |
| H 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() 387 dev_err(dev, "fsm %x, hsts %08x\n", in bcm2835_transfer_block_pio() 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() 775 fsm == SDEDM_FSM_WRITESTART1) in bcm2835_finish_command() [all …]
|
| /linux/arch/mips/alchemy/common/ |
| H A D | vss.c | 43 __raw_writel(0x01ffffff, base + VSS_GATE); /* start FSM too */ in __enable_block() 60 __raw_writel(0, base + VSS_GATE); /* disable FSM */ in __disable_block()
|