/Linux-v5.15/drivers/usb/common/ |
D | usb-otg-fsm.c | 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() 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() 48 ret = otg_start_gadget(fsm, 1); in otg_set_protocol() 52 fsm->protocol = protocol; in otg_set_protocol() [all …]
|
D | Makefile | 12 obj-$(CONFIG_USB_OTG_FSM) += usb-otg-fsm.o
|
/Linux-v5.15/include/linux/usb/ |
D | otg-fsm.h | 204 void (*chrg_vbus)(struct otg_fsm *fsm, int on); 205 void (*drv_vbus)(struct otg_fsm *fsm, int on); 206 void (*loc_conn)(struct otg_fsm *fsm, int on); 207 void (*loc_sof)(struct otg_fsm *fsm, int on); 208 void (*start_pulse)(struct otg_fsm *fsm); 209 void (*start_adp_prb)(struct otg_fsm *fsm); 210 void (*start_adp_sns)(struct otg_fsm *fsm); 211 void (*add_timer)(struct otg_fsm *fsm, enum otg_fsm_timer timer); 212 void (*del_timer)(struct otg_fsm *fsm, enum otg_fsm_timer timer); 213 int (*start_host)(struct otg_fsm *fsm, int on); [all …]
|
/Linux-v5.15/drivers/mtd/devices/ |
D | st_spi_fsm.c | 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); 702 static inline int stfsm_is_idle(struct stfsm *fsm) in stfsm_is_idle() argument 704 return readl(fsm->base + SPI_FAST_SEQ_STA) & 0x10; in stfsm_is_idle() 707 static inline uint32_t stfsm_fifo_available(struct stfsm *fsm) in stfsm_fifo_available() argument 709 return (readl(fsm->base + SPI_FAST_SEQ_STA) >> 5) & 0x7f; in stfsm_fifo_available() 712 static inline void stfsm_load_seq(struct stfsm *fsm, in stfsm_load_seq() argument 715 void __iomem *dst = fsm->base + SPI_FAST_SEQ_TRANSFER_SIZE; in stfsm_load_seq() [all …]
|
/Linux-v5.15/drivers/usb/chipidea/ |
D | otg_fsm.c | 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() 74 mutex_unlock(&ci->fsm.lock); in a_bus_req_store() 89 t = scnprintf(next, size, "%d\n", ci->fsm.a_bus_drop); in a_bus_drop_show() [all …]
|
D | debug.c | 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() 216 seq_printf(s, "a_bus_resume: %d\n", fsm->a_bus_resume); in ci_otg_show() [all …]
|
/Linux-v5.15/drivers/usb/phy/ |
D | phy-fsl-usb.c | 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() 250 fsl_otg_add_timer(&fsl_otg_dev->fsm, b_srp_wait_tmr); in b_vbus_pulse_end() [all …]
|
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-v5.15/drivers/isdn/mISDN/ |
D | fsm.c | 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() 41 fsm->jumpmatrix[fsm->state_count * fnlist[i].event + in mISDN_FsmNew() [all …]
|
/Linux-v5.15/drivers/s390/net/ |
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); 345 CTCM_FUNTAIL, dev->name, fsm_getstate_str(grp->fsm)); in ctc_mpc_alloc_channel() 347 switch (fsm_getstate(grp->fsm)) { in ctc_mpc_alloc_channel() [all …]
|
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 …]
|
D | ctcm_fsms.c | 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() 718 fsm_event(priv->fsm, DEV_EVENT_RXDOWN, dev); in ctcm_chx_cleanup() [all …]
|
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() 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() 790 fsm_event(privptr->fsm, DEV_EVENT_CONUP, netdev); in conn_action_connaccept() [all …]
|
D | Makefile | 7 obj-$(CONFIG_CTCM) += ctcm.o fsm.o 8 obj-$(CONFIG_NETIUCV) += netiucv.o fsm.o
|
D | ctcm_sysfs.c | 89 fsm_getstate_str(priv->fsm)); in ctcm_print_statistics() 91 fsm_getstate_str(priv->channel[CTCM_READ]->fsm)); in ctcm_print_statistics() 93 fsm_getstate_str(priv->channel[CTCM_WRITE]->fsm)); in ctcm_print_statistics()
|
D | fsm.h | 49 } fsm; typedef 65 fsm *f;
|
D | ctcm_main.h | 194 fsm_instance *fsm; /* finite state machine of this channel */ member 211 fsm_instance *fsm; member
|
/Linux-v5.15/drivers/net/ethernet/brocade/bna/ |
D | bfa_cs.h | 32 typedef void (*bfa_fsm_t)(void *fsm, int event); 40 static void oc ## _sm_ ## st(otype * fsm, etype event); \ 41 static void oc ## _sm_ ## st ## _entry(otype * fsm) 44 (_fsm)->fsm = (bfa_fsm_t)(_state); \ 48 #define bfa_fsm_send_event(_fsm, _event) ((_fsm)->fsm((_fsm), (_event))) 50 ((_fsm)->fsm == (bfa_fsm_t)(_state))
|
D | bna_types.h | 316 bfa_fsm_t fsm; member 338 bfa_fsm_t fsm; member 364 bfa_fsm_t fsm; member 463 bfa_fsm_t fsm; member 702 bfa_fsm_t fsm; member 778 bfa_fsm_t fsm; member
|
D | bfa_msgq.h | 59 bfa_fsm_t fsm; member 85 bfa_fsm_t fsm; member
|
/Linux-v5.15/lib/ |
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-v5.15/Documentation/devicetree/bindings/mtd/ |
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-v5.15/drivers/scsi/bfa/ |
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))
|
/Linux-v5.15/fs/ext4/ |
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-v5.15/drivers/mmc/host/ |
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() 765 u32 edm, fsm; in bcm2835_finish_command() local 776 fsm = edm & SDEDM_FSM_MASK; in bcm2835_finish_command() 777 if (fsm == SDEDM_FSM_READWAIT || in bcm2835_finish_command() 778 fsm == SDEDM_FSM_WRITESTART1) in bcm2835_finish_command() 1164 u32 edm, fsm; in bcm2835_request() local [all …]
|