Home
last modified time | relevance | path

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

12345678910>>...13

/kernel/linux/linux-5.10/drivers/usb/common/
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 …]
/kernel/linux/linux-6.6/drivers/usb/common/
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 …]
/kernel/linux/linux-6.6/include/linux/usb/
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 …]
/kernel/linux/linux-5.10/include/linux/usb/
Dotg-fsm.h108 * OTG Output status. Read only for users. Updated by OTG FSM helpers defined
128 * Unused as OTG fsm uses otg->host->b_hnp_enable instead
132 * Unused as OTG fsm uses otg->gadget->b_hnp_enable instead
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);
[all …]
/kernel/linux/linux-5.10/drivers/usb/chipidea/
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 …]
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 …]
/kernel/linux/linux-6.6/drivers/usb/chipidea/
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 …]
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 …]
/kernel/linux/linux-6.6/drivers/mtd/devices/
Dst_spi_fsm.c3 * 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 …]
/kernel/linux/linux-5.10/drivers/mtd/devices/
Dst_spi_fsm.c3 * 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 …]
/kernel/linux/linux-5.10/drivers/usb/phy/
Dphy-fsl-usb.c58 /* 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 …]
/kernel/linux/linux-6.6/drivers/usb/phy/
Dphy-fsl-usb.c58 /* 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 …]
/kernel/linux/linux-6.6/drivers/s390/net/
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.
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 …]
Dctcm_mpc.c112 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 …]
Dfsm.c3 * 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 …]
/kernel/linux/linux-5.10/drivers/s390/net/
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.
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 …]
Dctcm_mpc.c112 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 …]
Dfsm.c3 * 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 …]
Dctcm_main.c192 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 …]
/kernel/linux/linux-6.6/drivers/isdn/mISDN/
Dfsm.c16 #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 …]
/kernel/linux/linux-5.10/drivers/isdn/mISDN/
Dfsm.c16 #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 …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mtd/
Dst-fsm.txt1 * 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";
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/mtd/
Dst-fsm.txt1 * 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";
/kernel/linux/linux-5.10/lib/
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 …]
/kernel/linux/linux-6.6/lib/
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 …]

12345678910>>...13