diff options
-rw-r--r-- | common/usbc/usb_pe_ctvpd_sm.c | 2 | ||||
-rw-r--r-- | common/usbc/usb_pe_drp_sm.c | 2 | ||||
-rw-r--r-- | common/usbc/usb_prl_sm.c | 8 | ||||
-rw-r--r-- | common/usbc/usb_sm.c | 2 | ||||
-rw-r--r-- | common/usbc/usb_tc_ctvpd_sm.c | 2 | ||||
-rw-r--r-- | common/usbc/usb_tc_drp_acc_trysrc_sm.c | 2 | ||||
-rw-r--r-- | common/usbc/usb_tc_vpd_sm.c | 2 | ||||
-rw-r--r-- | include/usb_sm.h | 2 | ||||
-rw-r--r-- | test/usb_sm_framework_h3.c | 2 |
9 files changed, 12 insertions, 12 deletions
diff --git a/common/usbc/usb_pe_ctvpd_sm.c b/common/usbc/usb_pe_ctvpd_sm.c index 355724ddcc..c347882651 100644 --- a/common/usbc/usb_pe_ctvpd_sm.c +++ b/common/usbc/usb_pe_ctvpd_sm.c @@ -68,7 +68,7 @@ void pe_run(int port, int evt, int en) /* fall through */ case SM_RUN: if (en) - exe_state(port, &pe[port].ctx); + run_state(port, &pe[port].ctx); else local_state[port] = SM_PAUSED; break; diff --git a/common/usbc/usb_pe_drp_sm.c b/common/usbc/usb_pe_drp_sm.c index cf72a11967..99ae0ab9ed 100644 --- a/common/usbc/usb_pe_drp_sm.c +++ b/common/usbc/usb_pe_drp_sm.c @@ -495,7 +495,7 @@ void pe_run(int port, int evt, int en) } /* Run state machine */ - exe_state(port, &pe[port].ctx); + run_state(port, &pe[port].ctx); break; } } diff --git a/common/usbc/usb_prl_sm.c b/common/usbc/usb_prl_sm.c index 5bb8ea1d8a..745aca2de5 100644 --- a/common/usbc/usb_prl_sm.c +++ b/common/usbc/usb_prl_sm.c @@ -423,16 +423,16 @@ void prl_run(int port, int evt, int en) prl_rx_wait_for_phy_message(port, evt); /* Run RX Chunked state machine */ - exe_state(port, &rch[port].ctx); + run_state(port, &rch[port].ctx); /* Run TX Chunked state machine */ - exe_state(port, &tch[port].ctx); + run_state(port, &tch[port].ctx); /* Run Protocol Layer Message Transmission state machine */ - exe_state(port, &prl_tx[port].ctx); + run_state(port, &prl_tx[port].ctx); /* Run Protocol Layer Hard Reset state machine */ - exe_state(port, &prl_hr[port].ctx); + run_state(port, &prl_hr[port].ctx); break; } } diff --git a/common/usbc/usb_sm.c b/common/usbc/usb_sm.c index d0ca28e330..bb5c923dec 100644 --- a/common/usbc/usb_sm.c +++ b/common/usbc/usb_sm.c @@ -183,7 +183,7 @@ static void call_run_functions(const int port, call_run_functions(port, internal, current->parent); } -void exe_state(const int port, struct sm_ctx *const ctx) +void run_state(const int port, struct sm_ctx *const ctx) { struct internal_ctx * const internal = (void *) ctx->internal; diff --git a/common/usbc/usb_tc_ctvpd_sm.c b/common/usbc/usb_tc_ctvpd_sm.c index 2c9dd611c5..7d299e686f 100644 --- a/common/usbc/usb_tc_ctvpd_sm.c +++ b/common/usbc/usb_tc_ctvpd_sm.c @@ -198,7 +198,7 @@ void tc_event_check(int port, int evt) void tc_run(const int port) { - exe_state(port, &tc[port].ctx); + run_state(port, &tc[port].ctx); } /* Internal Functions */ diff --git a/common/usbc/usb_tc_drp_acc_trysrc_sm.c b/common/usbc/usb_tc_drp_acc_trysrc_sm.c index 6e5b1c67d1..73943c096f 100644 --- a/common/usbc/usb_tc_drp_acc_trysrc_sm.c +++ b/common/usbc/usb_tc_drp_acc_trysrc_sm.c @@ -2612,7 +2612,7 @@ static void tc_cc_open_entry(const int port) void tc_run(const int port) { - exe_state(port, &tc[port].ctx); + run_state(port, &tc[port].ctx); } /* diff --git a/common/usbc/usb_tc_vpd_sm.c b/common/usbc/usb_tc_vpd_sm.c index 51847aa23c..92ce580c53 100644 --- a/common/usbc/usb_tc_vpd_sm.c +++ b/common/usbc/usb_tc_vpd_sm.c @@ -334,7 +334,7 @@ static void tc_vbus_cc_iso_entry(const int port) void tc_run(const int port) { - exe_state(port, &tc[port].ctx); + run_state(port, &tc[port].ctx); } /* diff --git a/include/usb_sm.h b/include/usb_sm.h index c0248830ec..af5c600d46 100644 --- a/include/usb_sm.h +++ b/include/usb_sm.h @@ -63,7 +63,7 @@ void set_state(int port, struct sm_ctx *ctx, usb_state_ptr new_state); * @param port USB-C port number * @param ctx State machine context */ -void exe_state(int port, struct sm_ctx *ctx); +void run_state(int port, struct sm_ctx *ctx); #ifdef TEST_BUILD /* diff --git a/test/usb_sm_framework_h3.c b/test/usb_sm_framework_h3.c index e8e209a5c4..a87002bedf 100644 --- a/test/usb_sm_framework_h3.c +++ b/test/usb_sm_framework_h3.c @@ -979,7 +979,7 @@ int test_task(void *u) /* wait for next event/packet or timeout expiration */ task_wait_event(-1); /* run state machine */ - exe_state(port, &sm[port].ctx); + run_state(port, &sm[port].ctx); } return EC_SUCCESS; |