Home
last modified time | relevance | path

Searched full:fsm (Results 1 – 25 of 116) sorted by relevance

12345

/linux/drivers/usb/common/
H A Dusb-otg-fsm.c19 #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 …]
H A DMakefile12 obj-$(CONFIG_USB_OTG_FSM) += usb-otg-fsm.o
/linux/include/linux/usb/
H A Dotg-fsm.h95 * 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 Dotg_fsm.c3 * 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 Ddebug.c13 #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/s390/net/
H A Dfsm.h36 * 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.
104 * @tmpl: Pointer to fsm_node array describing this FSM
111 * Return: Pointer to initialized FSM instance, or NULL on failure
120 * @fi: Pointer to FSM instance, previously created with init_fsm()
122 * Frees all memory associated with the FSM instance.
[all …]
H A Dfsm.c3 * 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_obj(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 Dctcm_main.c191 fsm_newstate(ch->fsm, CTC_STATE_IDLE); in channel_free()
218 kfree_fsm(ch->fsm); in channel_remove()
270 fsm_newstate(ch->fsm, CTC_STATE_STOPPED); in channel_get()
322 fsm_event(ch->fsm, CTC_EVENT_UC_RCRESET, ch); in ccw_unit_check()
330 fsm_event(ch->fsm, CTC_EVENT_UC_RSRESET, ch); in ccw_unit_check()
340 fsm_event(ch->fsm, CTC_EVENT_UC_HWFAIL, ch); in ccw_unit_check()
348 fsm_event(ch->fsm, CTC_EVENT_UC_RXPARITY, ch); in ccw_unit_check()
358 fsm_event(ch->fsm, CTC_EVENT_UC_TXTIMEOUT, ch); in ccw_unit_check()
360 fsm_event(ch->fsm, CTC_EVENT_UC_TXPARITY, ch); in ccw_unit_check()
372 fsm_event(ch->fsm, CTC_EVENT_UC_ZERO, ch); in ccw_unit_check()
[all …]
H A Dctcm_fsms.c44 #include "fsm.h"
179 static void ctcmpc_chx_attn(fsm_instance *fsm, int event, void *arg);
182 static void ctcmpc_chx_send_sweep(fsm_instance *fsm, int event, void *arg);
199 fsm_event(ch->fsm, CTC_EVENT_IO_EBUSY, ch); in ctcm_ccw_check_rc()
204 fsm_event(ch->fsm, CTC_EVENT_IO_ENODEV, ch); in ctcm_ccw_check_rc()
209 fsm_event(ch->fsm, CTC_EVENT_IO_UNKNOWN, ch); in ctcm_ccw_check_rc()
343 fsm_event(priv->fsm, DEV_EVENT_TXUP, ch->netdev); in ctcm_chx_txidle()
460 fsm_event(priv->fsm, DEV_EVENT_TXUP, dev); in chx_firstio()
495 fsm_event(priv->fsm, DEV_EVENT_RXUP, dev); in chx_firstio()
531 fsm_event(priv->fsm, DEV_EVENT_RXUP, dev); in chx_rxidle()
[all …]
H A Dctcm_fsms.h40 #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 Dctcm_mpc.h16 #include "fsm.h"
199 fsm_instance *fsm; /* group xid fsm */ member
H A Dctcm_main.h17 #include "fsm.h"
195 fsm_instance *fsm; /* finite state machine of this channel */ member
212 fsm_instance *fsm; member
/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/leds/
H A Dleds-cht-wcove.c53 u16 fsm; member
63 unsigned int fsm; member
84 .fsm = CHT_WC_LED1_FSM,
92 .fsm = CHT_WC_LED2_FSM,
122 ret = regmap_update_bits(led->regmap, led->regs->fsm, in cht_wc_leds_brightness_set()
125 dev_err(cdev->dev, "Failed to update LED FSM reg: %d\n", ret); in cht_wc_leds_brightness_set()
236 ret = regmap_update_bits(led->regmap, led->regs->fsm, in cht_wc_leds_set_effect()
239 dev_err(cdev->dev, "Failed to update LED FSM reg: %d\n", ret); in cht_wc_leds_set_effect()
247 ret = regmap_update_bits(led->regmap, led->regs->fsm, in cht_wc_leds_set_effect()
250 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 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/power/supply/
H A Dqcom,pm8916-bms-vm.yaml28 - 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 Dnet2280.h213 * 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 Dchipidea.rst5 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 Dfsmap.c349 struct ext4_fsmap *fsm; in ext4_getfsmap_fill() local
351 fsm = kmalloc_obj(*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/arch/mips/alchemy/common/
H A Dvss.c43 __raw_writel(0x01ffffff, base + VSS_GATE); /* start FSM too */ in __enable_block()
60 __raw_writel(0, base + VSS_GATE); /* disable FSM */ in __disable_block()
/linux/arch/arm/boot/dts/st/
H A Dstih407-pinctrl.dtsi1225 fsm {
1226 pinctrl_fsm: fsm {
1228 spi-fsm-clk = <&pio40 1 ALT1 OUT>;
1229 spi-fsm-cs = <&pio40 0 ALT1 OUT>;
1230 spi-fsm-mosi = <&pio40 2 ALT1 OUT>;
1231 spi-fsm-miso = <&pio40 3 ALT1 IN>;
1232 spi-fsm-hol = <&pio40 5 ALT1 OUT>;
1233 spi-fsm-wp = <&pio40 4 ALT1 OUT>;
/linux/drivers/dma/
H A Dep93xx_dma.c647 * is still running (channel Buffer FSM in DMA_BUF_ON state, and channel
648 * Control FSM in DMA_MEM_RD state, observed at least in IDE-DMA operation).
650 * currently running DMA transfer. To avoid this, we use Buffer FSM and
651 * Control FSM to check current state of DMA channel.
680 * Use M2M DMA Buffer FSM and Control FSM to check current state of in m2m_hw_interrupt()
688 * Two buffers are ready for update when Buffer FSM is in in m2m_hw_interrupt()
708 * Disable the channel only when Buffer FSM is in DMA_NO_BUF state in m2m_hw_interrupt()
709 * and Control FSM is in DMA_STALL state. in m2m_hw_interrupt()

12345