Home
last modified time | relevance | path

Searched refs:fsm (Results 1 - 25 of 86) sorted by relevance

1234

/kernel/linux/linux-5.10/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, in otg_set_protocol()
60 otg_leave_state(struct otg_fsm *fsm, enum usb_otg_state old_state) otg_leave_state() argument
122 struct otg_fsm *fsm = container_of(to_delayed_work(work), otg_hnp_polling_work() local
187 otg_start_hnp_polling(struct otg_fsm *fsm) otg_start_hnp_polling() argument
206 otg_set_state(struct otg_fsm *fsm, enum usb_otg_state new_state) otg_set_state() argument
328 otg_statemachine(struct otg_fsm *fsm) otg_statemachine() argument
[all...]
/kernel/linux/linux-6.6/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, in otg_set_protocol()
60 otg_leave_state(struct otg_fsm *fsm, enum usb_otg_state old_state) otg_leave_state() argument
122 struct otg_fsm *fsm = container_of(to_delayed_work(work), otg_hnp_polling_work() local
187 otg_start_hnp_polling(struct otg_fsm *fsm) otg_start_hnp_polling() argument
206 otg_set_state(struct otg_fsm *fsm, enum usb_otg_state new_state) otg_set_state() argument
328 otg_statemachine(struct otg_fsm *fsm) otg_statemachine() argument
[all...]
/kernel/linux/linux-5.10/include/linux/usb/
H A Dotg-fsm.h128 * 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);
211 void (*add_timer)(struct otg_fsm *fsm, enu
218 otg_chrg_vbus(struct otg_fsm *fsm, int on) otg_chrg_vbus() argument
226 otg_drv_vbus(struct otg_fsm *fsm, int on) otg_drv_vbus() argument
237 otg_loc_conn(struct otg_fsm *fsm, int on) otg_loc_conn() argument
248 otg_loc_sof(struct otg_fsm *fsm, int on) otg_loc_sof() argument
259 otg_start_pulse(struct otg_fsm *fsm) otg_start_pulse() argument
270 otg_start_adp_prb(struct otg_fsm *fsm) otg_start_adp_prb() argument
282 otg_start_adp_sns(struct otg_fsm *fsm) otg_start_adp_sns() argument
293 otg_add_timer(struct otg_fsm *fsm, enum otg_fsm_timer timer) otg_add_timer() argument
301 otg_del_timer(struct otg_fsm *fsm, enum otg_fsm_timer timer) otg_del_timer() argument
309 otg_start_host(struct otg_fsm *fsm, int on) otg_start_host() argument
316 otg_start_gadget(struct otg_fsm *fsm, int on) otg_start_gadget() argument
[all...]
/kernel/linux/linux-6.6/include/linux/usb/
H A Dotg-fsm.h115 * 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);
198 void (*add_timer)(struct otg_fsm *fsm, enu
205 otg_chrg_vbus(struct otg_fsm *fsm, int on) otg_chrg_vbus() argument
213 otg_drv_vbus(struct otg_fsm *fsm, int on) otg_drv_vbus() argument
224 otg_loc_conn(struct otg_fsm *fsm, int on) otg_loc_conn() argument
235 otg_loc_sof(struct otg_fsm *fsm, int on) otg_loc_sof() argument
246 otg_start_pulse(struct otg_fsm *fsm) otg_start_pulse() argument
257 otg_start_adp_prb(struct otg_fsm *fsm) otg_start_adp_prb() argument
269 otg_start_adp_sns(struct otg_fsm *fsm) otg_start_adp_sns() argument
280 otg_add_timer(struct otg_fsm *fsm, enum otg_fsm_timer timer) otg_add_timer() argument
288 otg_del_timer(struct otg_fsm *fsm, enum otg_fsm_timer timer) otg_del_timer() argument
296 otg_start_host(struct otg_fsm *fsm, int on) otg_start_host() argument
303 otg_start_gadget(struct otg_fsm *fsm, int on) otg_start_gadget() argument
[all...]
/kernel/linux/linux-5.10/drivers/usb/chipidea/
H A Dotg_fsm.c11 * 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 in a_bus_req_store()
436 ci_otg_fsm_add_timer(struct otg_fsm *fsm, enum otg_fsm_timer t) ci_otg_fsm_add_timer() argument
445 ci_otg_fsm_del_timer(struct otg_fsm *fsm, enum otg_fsm_timer t) ci_otg_fsm_del_timer() argument
458 ci_otg_drv_vbus(struct otg_fsm *fsm, int on) ci_otg_drv_vbus() argument
493 ci_otg_loc_conn(struct otg_fsm *fsm, int on) ci_otg_loc_conn() argument
512 ci_otg_loc_sof(struct otg_fsm *fsm, int on) ci_otg_loc_sof() argument
535 ci_otg_start_pulse(struct otg_fsm *fsm) ci_otg_start_pulse() argument
546 ci_otg_start_host(struct otg_fsm *fsm, int on) ci_otg_start_host() argument
560 ci_otg_start_gadget(struct otg_fsm *fsm, int on) ci_otg_start_gadget() argument
642 struct otg_fsm *fsm = &ci->fsm; ci_otg_fsm_event() local
738 struct otg_fsm *fsm = &ci->fsm; ci_otg_fsm_irq() local
[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 in ci_otg_show()
[all...]
/kernel/linux/linux-6.6/drivers/usb/chipidea/
H A Dotg_fsm.c11 * 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 in a_bus_req_store()
436 ci_otg_fsm_add_timer(struct otg_fsm *fsm, enum otg_fsm_timer t) ci_otg_fsm_add_timer() argument
445 ci_otg_fsm_del_timer(struct otg_fsm *fsm, enum otg_fsm_timer t) ci_otg_fsm_del_timer() argument
458 ci_otg_drv_vbus(struct otg_fsm *fsm, int on) ci_otg_drv_vbus() argument
500 ci_otg_loc_conn(struct otg_fsm *fsm, int on) ci_otg_loc_conn() argument
519 ci_otg_loc_sof(struct otg_fsm *fsm, int on) ci_otg_loc_sof() argument
542 ci_otg_start_pulse(struct otg_fsm *fsm) ci_otg_start_pulse() argument
553 ci_otg_start_host(struct otg_fsm *fsm, int on) ci_otg_start_host() argument
567 ci_otg_start_gadget(struct otg_fsm *fsm, int on) ci_otg_start_gadget() argument
649 struct otg_fsm *fsm = &ci->fsm; ci_otg_fsm_event() local
745 struct otg_fsm *fsm = &ci->fsm; ci_otg_fsm_irq() local
[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 in ci_otg_show()
[all...]
/kernel/linux/linux-5.10/drivers/mtd/devices/
H A Dst_spi_fsm.c311 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 in stfsm_load_seq()
728 stfsm_wait_seq(struct stfsm *fsm) stfsm_wait_seq() argument
748 stfsm_read_fifo(struct stfsm *fsm, uint32_t *buf, uint32_t size) stfsm_read_fifo() argument
799 stfsm_clear_fifo(struct stfsm *fsm) stfsm_clear_fifo() argument
835 stfsm_write_fifo(struct stfsm *fsm, const uint32_t *buf, uint32_t size) stfsm_write_fifo() argument
849 stfsm_enter_32bit_addr(struct stfsm *fsm, int enter) stfsm_enter_32bit_addr() argument
866 stfsm_wait_busy(struct stfsm *fsm) stfsm_wait_busy() argument
913 stfsm_read_status(struct stfsm *fsm, uint8_t cmd, uint8_t *data, int bytes) stfsm_read_status() argument
941 stfsm_write_status(struct stfsm *fsm, uint8_t cmd, uint16_t data, int bytes, int wait_busy) stfsm_write_status() argument
988 stfsm_can_handle_soc_reset(struct stfsm *fsm) stfsm_can_handle_soc_reset() argument
1003 stfsm_prepare_erasesec_seq(struct stfsm *fsm, struct stfsm_seq *seq) stfsm_prepare_erasesec_seq() argument
1017 stfsm_search_seq_rw_configs(struct stfsm *fsm, struct seq_rw_config cfgs[]) stfsm_search_seq_rw_configs() argument
1031 stfsm_prepare_rw_seq(struct stfsm *fsm, struct stfsm_seq *seq, struct seq_rw_config *cfg) stfsm_prepare_rw_seq() argument
1099 stfsm_search_prepare_rw_seq(struct stfsm *fsm, struct stfsm_seq *seq, struct seq_rw_config *cfgs) stfsm_search_prepare_rw_seq() argument
1117 stfsm_prepare_rwe_seqs_default(struct stfsm *fsm) stfsm_prepare_rwe_seqs_default() argument
1148 stfsm_mx25_config(struct stfsm *fsm) stfsm_mx25_config() argument
1206 stfsm_n25q_config(struct stfsm *fsm) stfsm_n25q_config() argument
1284 stfsm_s25fl_read_dyb(struct stfsm *fsm, uint32_t offs, uint8_t *dby) stfsm_s25fl_read_dyb() argument
1320 stfsm_s25fl_write_dyb(struct stfsm *fsm, uint32_t offs, uint8_t dby) stfsm_s25fl_write_dyb() argument
1355 stfsm_s25fl_clear_status_reg(struct stfsm *fsm) stfsm_s25fl_clear_status_reg() argument
1386 stfsm_s25fl_config(struct stfsm *fsm) stfsm_s25fl_config() argument
1475 stfsm_w25q_config(struct stfsm *fsm) stfsm_w25q_config() argument
1513 stfsm_read(struct stfsm *fsm, uint8_t *buf, uint32_t size, uint32_t offset) stfsm_read() argument
1574 stfsm_write(struct stfsm *fsm, const uint8_t *buf, uint32_t size, uint32_t offset) stfsm_write() argument
1672 struct stfsm *fsm = dev_get_drvdata(mtd->dev.parent); stfsm_mtd_read() local
1697 stfsm_erase_sector(struct stfsm *fsm, uint32_t offset) stfsm_erase_sector() argument
1727 stfsm_erase_chip(struct stfsm *fsm) stfsm_erase_chip() argument
1748 struct stfsm *fsm = dev_get_drvdata(mtd->dev.parent); stfsm_mtd_write() local
1793 struct stfsm *fsm = dev_get_drvdata(mtd->dev.parent); stfsm_mtd_erase() local
1831 stfsm_read_jedec(struct stfsm *fsm, uint8_t *jedec) stfsm_read_jedec() argument
1845 stfsm_jedec_probe(struct stfsm *fsm) stfsm_jedec_probe() argument
1876 stfsm_set_mode(struct stfsm *fsm, uint32_t mode) stfsm_set_mode() argument
1896 stfsm_set_freq(struct stfsm *fsm, uint32_t spi_freq) stfsm_set_freq() argument
1932 stfsm_init(struct stfsm *fsm) stfsm_init() argument
1972 struct stfsm *fsm = platform_get_drvdata(pdev); stfsm_fetch_platform_configs() local
2020 struct stfsm *fsm; stfsm_probe() local
2129 struct stfsm *fsm = platform_get_drvdata(pdev); stfsm_remove() local
2137 struct stfsm *fsm = dev_get_drvdata(dev); stfsmfsm_suspend() local
2146 struct stfsm *fsm = dev_get_drvdata(dev); stfsmfsm_resume() local
[all...]
/kernel/linux/linux-6.6/drivers/mtd/devices/
H A Dst_spi_fsm.c311 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 in stfsm_load_seq()
728 stfsm_wait_seq(struct stfsm *fsm) stfsm_wait_seq() argument
748 stfsm_read_fifo(struct stfsm *fsm, uint32_t *buf, uint32_t size) stfsm_read_fifo() argument
799 stfsm_clear_fifo(struct stfsm *fsm) stfsm_clear_fifo() argument
835 stfsm_write_fifo(struct stfsm *fsm, const uint32_t *buf, uint32_t size) stfsm_write_fifo() argument
849 stfsm_enter_32bit_addr(struct stfsm *fsm, int enter) stfsm_enter_32bit_addr() argument
866 stfsm_wait_busy(struct stfsm *fsm) stfsm_wait_busy() argument
913 stfsm_read_status(struct stfsm *fsm, uint8_t cmd, uint8_t *data, int bytes) stfsm_read_status() argument
941 stfsm_write_status(struct stfsm *fsm, uint8_t cmd, uint16_t data, int bytes, int wait_busy) stfsm_write_status() argument
988 stfsm_can_handle_soc_reset(struct stfsm *fsm) stfsm_can_handle_soc_reset() argument
1003 stfsm_prepare_erasesec_seq(struct stfsm *fsm, struct stfsm_seq *seq) stfsm_prepare_erasesec_seq() argument
1017 stfsm_search_seq_rw_configs(struct stfsm *fsm, struct seq_rw_config cfgs[]) stfsm_search_seq_rw_configs() argument
1031 stfsm_prepare_rw_seq(struct stfsm *fsm, struct stfsm_seq *seq, struct seq_rw_config *cfg) stfsm_prepare_rw_seq() argument
1099 stfsm_search_prepare_rw_seq(struct stfsm *fsm, struct stfsm_seq *seq, struct seq_rw_config *cfgs) stfsm_search_prepare_rw_seq() argument
1117 stfsm_prepare_rwe_seqs_default(struct stfsm *fsm) stfsm_prepare_rwe_seqs_default() argument
1148 stfsm_mx25_config(struct stfsm *fsm) stfsm_mx25_config() argument
1206 stfsm_n25q_config(struct stfsm *fsm) stfsm_n25q_config() argument
1284 stfsm_s25fl_read_dyb(struct stfsm *fsm, uint32_t offs, uint8_t *dby) stfsm_s25fl_read_dyb() argument
1320 stfsm_s25fl_write_dyb(struct stfsm *fsm, uint32_t offs, uint8_t dby) stfsm_s25fl_write_dyb() argument
1355 stfsm_s25fl_clear_status_reg(struct stfsm *fsm) stfsm_s25fl_clear_status_reg() argument
1386 stfsm_s25fl_config(struct stfsm *fsm) stfsm_s25fl_config() argument
1475 stfsm_w25q_config(struct stfsm *fsm) stfsm_w25q_config() argument
1513 stfsm_read(struct stfsm *fsm, uint8_t *buf, uint32_t size, uint32_t offset) stfsm_read() argument
1574 stfsm_write(struct stfsm *fsm, const uint8_t *buf, uint32_t size, uint32_t offset) stfsm_write() argument
1672 struct stfsm *fsm = dev_get_drvdata(mtd->dev.parent); stfsm_mtd_read() local
1697 stfsm_erase_sector(struct stfsm *fsm, uint32_t offset) stfsm_erase_sector() argument
1727 stfsm_erase_chip(struct stfsm *fsm) stfsm_erase_chip() argument
1748 struct stfsm *fsm = dev_get_drvdata(mtd->dev.parent); stfsm_mtd_write() local
1793 struct stfsm *fsm = dev_get_drvdata(mtd->dev.parent); stfsm_mtd_erase() local
1831 stfsm_read_jedec(struct stfsm *fsm, uint8_t *jedec) stfsm_read_jedec() argument
1845 stfsm_jedec_probe(struct stfsm *fsm) stfsm_jedec_probe() argument
1876 stfsm_set_mode(struct stfsm *fsm, uint32_t mode) stfsm_set_mode() argument
1896 stfsm_set_freq(struct stfsm *fsm, uint32_t spi_freq) stfsm_set_freq() argument
1932 stfsm_init(struct stfsm *fsm) stfsm_init() argument
1972 struct stfsm *fsm = platform_get_drvdata(pdev); stfsm_fetch_platform_configs() local
2019 struct stfsm *fsm; stfsm_probe() local
2102 struct stfsm *fsm = platform_get_drvdata(pdev); stfsm_remove() local
2112 struct stfsm *fsm = dev_get_drvdata(dev); stfsmfsm_suspend() local
2121 struct stfsm *fsm = dev_get_drvdata(dev); stfsmfsm_resume() local
[all...]
/kernel/linux/linux-5.10/drivers/usb/phy/
H A Dphy-fsl-usb.c117 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_tm in b_vbus_pulse_end()
284 fsl_otg_init_timers(struct otg_fsm *fsm) fsl_otg_init_timers() argument
393 fsl_otg_add_timer(struct otg_fsm *fsm, void *gtimer) fsl_otg_add_timer() argument
411 fsl_otg_fsm_add_timer(struct otg_fsm *fsm, enum otg_fsm_timer t) fsl_otg_fsm_add_timer() argument
423 fsl_otg_del_timer(struct otg_fsm *fsm, void *gtimer) fsl_otg_del_timer() argument
433 fsl_otg_fsm_del_timer(struct otg_fsm *fsm, enum otg_fsm_timer t) fsl_otg_fsm_del_timer() argument
457 fsl_otg_start_host(struct otg_fsm *fsm, int on) fsl_otg_start_host() argument
524 fsl_otg_start_gadget(struct otg_fsm *fsm, int on) fsl_otg_start_gadget() argument
584 struct otg_fsm *fsm = &otg_dev->fsm; fsl_otg_set_host() local
652 struct otg_fsm *fsm = &og->fsm; fsl_otg_event() local
708 struct otg_fsm *fsm = &((struct fsl_otg *)dev_id)->fsm; fsl_otg_isr() local
836 struct otg_fsm *fsm; usb_otg_start() local
[all...]
/kernel/linux/linux-6.6/drivers/usb/phy/
H A Dphy-fsl-usb.c117 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_tm in b_vbus_pulse_end()
284 fsl_otg_init_timers(struct otg_fsm *fsm) fsl_otg_init_timers() argument
393 fsl_otg_add_timer(struct otg_fsm *fsm, void *gtimer) fsl_otg_add_timer() argument
411 fsl_otg_fsm_add_timer(struct otg_fsm *fsm, enum otg_fsm_timer t) fsl_otg_fsm_add_timer() argument
423 fsl_otg_del_timer(struct otg_fsm *fsm, void *gtimer) fsl_otg_del_timer() argument
433 fsl_otg_fsm_del_timer(struct otg_fsm *fsm, enum otg_fsm_timer t) fsl_otg_fsm_del_timer() argument
457 fsl_otg_start_host(struct otg_fsm *fsm, int on) fsl_otg_start_host() argument
524 fsl_otg_start_gadget(struct otg_fsm *fsm, int on) fsl_otg_start_gadget() argument
584 struct otg_fsm *fsm = &otg_dev->fsm; fsl_otg_set_host() local
652 struct otg_fsm *fsm = &og->fsm; fsl_otg_event() local
708 struct otg_fsm *fsm = &((struct fsl_otg *)dev_id)->fsm; fsl_otg_isr() local
836 struct otg_fsm *fsm; usb_otg_start() local
[all...]
/kernel/linux/linux-5.10/drivers/isdn/mISDN/
H A 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 in mISDN_FsmNew()
48 mISDN_FsmFree(struct Fsm *fsm) mISDN_FsmFree() argument
[all...]
/kernel/linux/linux-6.6/drivers/isdn/mISDN/
H A 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 in mISDN_FsmNew()
48 mISDN_FsmFree(struct Fsm *fsm) mISDN_FsmFree() argument
[all...]
/kernel/linux/linux-5.10/drivers/s390/net/
H A 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()
827 mpc_action_go_ready(fsm_instance *fsm, int event, void *arg) mpc_action_go_ready() argument
1661 mpc_action_side_xid(fsm_instance *fsm, void *arg, int side) mpc_action_side_xid() argument
1818 mpc_action_xside_xid(fsm_instance *fsm, int event, void *arg) mpc_action_xside_xid() argument
1827 mpc_action_yside_xid(fsm_instance *fsm, int event, void *arg) mpc_action_yside_xid() argument
1836 mpc_action_doxid0(fsm_instance *fsm, int event, void *arg) mpc_action_doxid0() argument
1877 mpc_action_doxid7(fsm_instance *fsm, int event, void *arg) mpc_action_doxid7() argument
1946 mpc_action_rcvd_xid0(fsm_instance *fsm, int event, void *arg) mpc_action_rcvd_xid0() argument
2008 mpc_action_rcvd_xid7(fsm_instance *fsm, int event, void *arg) mpc_action_rcvd_xid7() argument
[all...]
H A Dctcm_fsms.c45 #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_RXU in chx_rxidle()
1588 ctcmpc_chx_attn(fsm_instance *fsm, int event, void *arg) ctcmpc_chx_attn() argument
1647 ctcmpc_chx_attnbusy(fsm_instance *fsm, int event, void *arg) ctcmpc_chx_attnbusy() argument
1733 ctcmpc_chx_resend(fsm_instance *fsm, int event, void *arg) ctcmpc_chx_resend() argument
1749 ctcmpc_chx_send_sweep(fsm_instance *fsm, int event, void *arg) ctcmpc_chx_send_sweep() argument
[all...]
H A 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_ZER in ccw_unit_check()
[all...]
/kernel/linux/linux-6.6/drivers/s390/net/
H A 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()
815 mpc_action_go_ready(fsm_instance *fsm, int event, void *arg) mpc_action_go_ready() argument
1650 mpc_action_side_xid(fsm_instance *fsm, void *arg, int side) mpc_action_side_xid() argument
1807 mpc_action_xside_xid(fsm_instance *fsm, int event, void *arg) mpc_action_xside_xid() argument
1816 mpc_action_yside_xid(fsm_instance *fsm, int event, void *arg) mpc_action_yside_xid() argument
1825 mpc_action_doxid0(fsm_instance *fsm, int event, void *arg) mpc_action_doxid0() argument
1866 mpc_action_doxid7(fsm_instance *fsm, int event, void *arg) mpc_action_doxid7() argument
1935 mpc_action_rcvd_xid0(fsm_instance *fsm, int event, void *arg) mpc_action_rcvd_xid0() argument
1997 mpc_action_rcvd_xid7(fsm_instance *fsm, int event, void *arg) mpc_action_rcvd_xid7() argument
[all...]
H A 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_ZER in ccw_unit_check()
[all...]
H A Dctcm_fsms.c45 #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_RXU in chx_rxidle()
1582 ctcmpc_chx_attn(fsm_instance *fsm, int event, void *arg) ctcmpc_chx_attn() argument
1641 ctcmpc_chx_attnbusy(fsm_instance *fsm, int event, void *arg) ctcmpc_chx_attnbusy() argument
1727 ctcmpc_chx_resend(fsm_instance *fsm, int event, void *arg) ctcmpc_chx_resend() argument
1743 ctcmpc_chx_send_sweep(fsm_instance *fsm, int event, void *arg) ctcmpc_chx_send_sweep() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/brocade/bna/
H A Dbfa_cs.h32 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))
/kernel/linux/linux-5.10/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 in fsm_init()
304 struct ts_fsm *fsm = ts_config_priv(conf); fsm_get_pattern() local
310 struct ts_fsm *fsm = ts_config_priv(conf); fsm_get_pattern_len() local
[all...]
/kernel/linux/linux-6.6/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 in fsm_init()
304 struct ts_fsm *fsm = ts_config_priv(conf); fsm_get_pattern() local
310 struct ts_fsm *fsm = ts_config_priv(conf); fsm_get_pattern_len() local
[all...]
/kernel/linux/linux-6.6/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))
/kernel/linux/linux-5.10/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 = (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))

Completed in 19 milliseconds

1234