Home
last modified time | relevance | path

Searched refs:fsm (Results 1 – 25 of 36) sorted by relevance

12

/linux/drivers/usb/common/
H A Dusb-otg-fsm.c29 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 …]
H A DMakefile12 obj-$(CONFIG_USB_OTG_FSM) += usb-otg-fsm.o
/linux/include/linux/usb/
H A Dotg-fsm.h191 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);
198 void (*add_timer)(struct otg_fsm *fsm, enum otg_fsm_timer timer);
199 void (*del_timer)(struct otg_fsm *fsm, enum otg_fsm_timer timer);
200 int (*start_host)(struct otg_fsm *fsm, int on);
[all …]
/linux/drivers/usb/chipidea/
H A Dotg_fsm.c40 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 …]
H A Ddebug.c190 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 …]
H A Dcore.c1290 if ((ci->fsm.otg->state == OTG_STATE_A_IDLE) && in ci_otg_fsm_suspend_for_srp()
1302 if ((ci->fsm.otg->state == OTG_STATE_A_IDLE) && in ci_otg_fsm_wakeup_by_srp()
1303 (ci->fsm.a_bus_drop == 1) && (ci->fsm.a_bus_req == 0)) { in ci_otg_fsm_wakeup_by_srp()
1305 ci->fsm.a_srp_det = 1; in ci_otg_fsm_wakeup_by_srp()
1306 ci->fsm.a_bus_drop = 0; in ci_otg_fsm_wakeup_by_srp()
1308 ci->fsm.id = 1; in ci_otg_fsm_wakeup_by_srp()
/linux/drivers/usb/phy/
H A Dphy-fsl-usb.c118 void fsl_otg_chrg_vbus(struct otg_fsm *fsm, int on) in fsl_otg_chrg_vbus() argument
154 void fsl_otg_drv_vbus(struct otg_fsm *fsm, int on) in fsl_otg_drv_vbus() argument
172 void fsl_otg_loc_conn(struct otg_fsm *fsm, int on) in fsl_otg_loc_conn() argument
191 void fsl_otg_loc_sof(struct otg_fsm *fsm, int on) in fsl_otg_loc_sof() argument
206 void fsl_otg_start_pulse(struct otg_fsm *fsm) in fsl_otg_start_pulse() argument
219 fsl_otg_add_timer(fsm, b_data_pulse_tmr); in fsl_otg_start_pulse()
236 fsl_otg_chrg_vbus(&fsl_otg_dev->fsm, 1); in fsl_otg_pulse_vbus()
238 fsl_otg_add_timer(&fsl_otg_dev->fsm, b_vbus_pulse_tmr); in fsl_otg_pulse_vbus()
243 fsl_otg_chrg_vbus(&fsl_otg_dev->fsm, 0); in b_vbus_pulse_end()
251 fsl_otg_add_timer(&fsl_otg_dev->fsm, b_srp_wait_tmr); in b_vbus_pulse_end()
[all …]
H A Dphy-fsl-usb.h359 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/
H A Dfsm.c21 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 …]
H A Dfsm.h29 struct Fsm *fsm; member
H A DMakefile12 mISDN_core-objs := core.o fsm.o socket.o clock.o hwchannel.o stack.o layer1.o layer2.o tei.o timerd…
/linux/lib/
H A Dts_fsm.c136 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/drivers/net/ethernet/brocade/bna/
H A Dbfa_cs.h60 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 Dbna_types.h318 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
H A Dbfa_msgq.h61 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/drivers/scsi/bfa/
H A Dbfa_cs.h188 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/Documentation/devicetree/bindings/mtd/
H A Dst-fsm.txt4 - 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/fs/ext4/
H A Dfsmap.c349 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 Dbcm2835.c296 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()
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()
1158 u32 edm, fsm; in bcm2835_request() local
[all …]
/linux/drivers/s390/net/
H A Dfsm.h49 } fsm; typedef
65 fsm *f;
H A Dctcm_main.h195 fsm_instance *fsm; /* finite state machine of this channel */ member
212 fsm_instance *fsm; member
H A Dfsm.c24 fsm *f; in init_fsm()
35 f = kzalloc(sizeof(fsm), order); in init_fsm()
H A DMakefile7 obj-$(CONFIG_CTCM) += ctcm.o fsm.o
/linux/drivers/input/touchscreen/
H A Dti_am335x_tsc.c279 unsigned int fsm, status, irqclr = 0; in titsc_irq() local
291 fsm = titsc_readl(ts_dev, REG_ADCFSM); in titsc_irq()
292 if (fsm == ADCFSM_STEPID) { in titsc_irq()
/linux/Documentation/usb/
H A Dchipidea.rst18 variables for otg fsm, mount debugfs, there are 2 files
19 which can show otg fsm variables and some controller registers value::

12