Lines Matching refs:new_state
15 enum ptp_port_state new_state = state; in ptp_state_machine() local
26 new_state = IS_ENABLED(CONFIG_PTP_FAULTY_PRESENT) ? in ptp_state_machine()
27 PTP_PS_FAULTY : new_state; in ptp_state_machine()
30 new_state = IS_ENABLED(CONFIG_PTP_LISTENING_PRESENT) ? in ptp_state_machine()
41 new_state = IS_ENABLED(CONFIG_PTP_DISABLED_PRESENT) ? in ptp_state_machine()
42 PTP_PS_DISABLED : new_state; in ptp_state_machine()
45 new_state = PTP_PS_INITIALIZING; in ptp_state_machine()
55 new_state = PTP_PS_INITIALIZING; in ptp_state_machine()
63 new_state = IS_ENABLED(CONFIG_PTP_DISABLED_PRESENT) ? in ptp_state_machine()
64 PTP_PS_DISABLED : new_state; in ptp_state_machine()
67 new_state = IS_ENABLED(CONFIG_PTP_FAULTY_PRESENT) ? in ptp_state_machine()
68 PTP_PS_FAULTY : new_state; in ptp_state_machine()
71 new_state = PTP_PS_TIME_TRANSMITTER; in ptp_state_machine()
74 new_state = IS_ENABLED(CONFIG_PTP_PRE_TIME_TRANSMITTER_PRESENT) ? in ptp_state_machine()
78 new_state = PTP_PS_GRAND_MASTER; in ptp_state_machine()
81 new_state = PTP_PS_PASSIVE; in ptp_state_machine()
84 new_state = IS_ENABLED(CONFIG_PTP_UNCALIBRATED_PRESENT) ? in ptp_state_machine()
96 new_state = IS_ENABLED(CONFIG_PTP_DISABLED_PRESENT) ? in ptp_state_machine()
97 PTP_PS_DISABLED : new_state; in ptp_state_machine()
100 new_state = IS_ENABLED(CONFIG_PTP_FAULTY_PRESENT) ? in ptp_state_machine()
101 PTP_PS_FAULTY : new_state; in ptp_state_machine()
104 new_state = PTP_PS_TIME_TRANSMITTER; in ptp_state_machine()
107 new_state = PTP_PS_PASSIVE; in ptp_state_machine()
110 new_state = IS_ENABLED(CONFIG_PTP_UNCALIBRATED_PRESENT) ? in ptp_state_machine()
121 new_state = IS_ENABLED(CONFIG_PTP_DISABLED_PRESENT) ? in ptp_state_machine()
122 PTP_PS_DISABLED : new_state; in ptp_state_machine()
125 new_state = IS_ENABLED(CONFIG_PTP_FAULTY_PRESENT) ? in ptp_state_machine()
126 PTP_PS_FAULTY : new_state; in ptp_state_machine()
129 new_state = PTP_PS_PASSIVE; in ptp_state_machine()
132 new_state = IS_ENABLED(CONFIG_PTP_UNCALIBRATED_PRESENT) ? in ptp_state_machine()
142 new_state = IS_ENABLED(CONFIG_PTP_DISABLED_PRESENT) ? in ptp_state_machine()
143 PTP_PS_DISABLED : new_state; in ptp_state_machine()
146 new_state = IS_ENABLED(CONFIG_PTP_FAULTY_PRESENT) ? in ptp_state_machine()
147 PTP_PS_FAULTY : new_state; in ptp_state_machine()
150 new_state = IS_ENABLED(CONFIG_PTP_PRE_TIME_TRANSMITTER_PRESENT) ? in ptp_state_machine()
154 new_state = PTP_PS_GRAND_MASTER; in ptp_state_machine()
157 new_state = IS_ENABLED(CONFIG_PTP_UNCALIBRATED_PRESENT) ? in ptp_state_machine()
168 new_state = IS_ENABLED(CONFIG_PTP_DISABLED_PRESENT) ? in ptp_state_machine()
169 PTP_PS_DISABLED : new_state; in ptp_state_machine()
172 new_state = IS_ENABLED(CONFIG_PTP_FAULTY_PRESENT) ? in ptp_state_machine()
173 PTP_PS_FAULTY : new_state; in ptp_state_machine()
176 new_state = PTP_PS_TIME_TRANSMITTER; in ptp_state_machine()
179 new_state = PTP_PS_TIME_RECEIVER; in ptp_state_machine()
182 new_state = IS_ENABLED(CONFIG_PTP_PRE_TIME_TRANSMITTER_PRESENT) ? in ptp_state_machine()
186 new_state = PTP_PS_GRAND_MASTER; in ptp_state_machine()
189 new_state = PTP_PS_PASSIVE; in ptp_state_machine()
199 new_state = IS_ENABLED(CONFIG_PTP_DISABLED_PRESENT) ? in ptp_state_machine()
200 PTP_PS_DISABLED : new_state; in ptp_state_machine()
203 new_state = IS_ENABLED(CONFIG_PTP_FAULTY_PRESENT) ? in ptp_state_machine()
204 PTP_PS_FAULTY : new_state; in ptp_state_machine()
207 new_state = IS_ENABLED(CONFIG_PTP_UNCALIBRATED_PRESENT) ? in ptp_state_machine()
208 PTP_PS_UNCALIBRATED : new_state; in ptp_state_machine()
211 new_state = PTP_PS_TIME_TRANSMITTER; in ptp_state_machine()
214 new_state = IS_ENABLED(CONFIG_PTP_PRE_TIME_TRANSMITTER_PRESENT) ? in ptp_state_machine()
218 new_state = PTP_PS_GRAND_MASTER; in ptp_state_machine()
221 new_state = PTP_PS_PASSIVE; in ptp_state_machine()
225 new_state = IS_ENABLED(CONFIG_PTP_UNCALIBRATED_PRESENT) ? in ptp_state_machine()
226 PTP_PS_UNCALIBRATED : new_state; in ptp_state_machine()
237 return new_state; in ptp_state_machine()
244 enum ptp_port_state new_state = state; in ptp_tr_state_machine() local
255 new_state = IS_ENABLED(CONFIG_PTP_FAULTY_PRESENT) ? in ptp_tr_state_machine()
256 PTP_PS_FAULTY : new_state; in ptp_tr_state_machine()
259 new_state = IS_ENABLED(CONFIG_PTP_LISTENING_PRESENT) ? in ptp_tr_state_machine()
270 new_state = IS_ENABLED(CONFIG_PTP_DISABLED_PRESENT) ? in ptp_tr_state_machine()
271 PTP_PS_DISABLED : new_state; in ptp_tr_state_machine()
274 new_state = PTP_PS_INITIALIZING; in ptp_tr_state_machine()
284 new_state = PTP_PS_INITIALIZING; in ptp_tr_state_machine()
292 new_state = IS_ENABLED(CONFIG_PTP_DISABLED_PRESENT) ? in ptp_tr_state_machine()
293 PTP_PS_DISABLED : new_state; in ptp_tr_state_machine()
296 new_state = IS_ENABLED(CONFIG_PTP_FAULTY_PRESENT) ? in ptp_tr_state_machine()
297 PTP_PS_FAULTY : new_state; in ptp_tr_state_machine()
300 new_state = IS_ENABLED(CONFIG_PTP_UNCALIBRATED_PRESENT) ? in ptp_tr_state_machine()
312 new_state = IS_ENABLED(CONFIG_PTP_DISABLED_PRESENT) ? in ptp_tr_state_machine()
313 PTP_PS_DISABLED : new_state; in ptp_tr_state_machine()
316 new_state = IS_ENABLED(CONFIG_PTP_FAULTY_PRESENT) ? in ptp_tr_state_machine()
317 PTP_PS_FAULTY : new_state; in ptp_tr_state_machine()
326 new_state = IS_ENABLED(CONFIG_PTP_LISTENING_PRESENT) ? in ptp_tr_state_machine()
327 PTP_PS_LISTENING : new_state; in ptp_tr_state_machine()
330 new_state = PTP_PS_TIME_RECEIVER; in ptp_tr_state_machine()
339 new_state = IS_ENABLED(CONFIG_PTP_DISABLED_PRESENT) ? in ptp_tr_state_machine()
340 PTP_PS_DISABLED : new_state; in ptp_tr_state_machine()
343 new_state = IS_ENABLED(CONFIG_PTP_FAULTY_PRESENT) ? in ptp_tr_state_machine()
344 PTP_PS_FAULTY : new_state; in ptp_tr_state_machine()
347 new_state = IS_ENABLED(CONFIG_PTP_UNCALIBRATED_PRESENT) ? in ptp_tr_state_machine()
348 PTP_PS_UNCALIBRATED : new_state; in ptp_tr_state_machine()
357 new_state = IS_ENABLED(CONFIG_PTP_LISTENING_PRESENT) ? in ptp_tr_state_machine()
358 PTP_PS_LISTENING : new_state; in ptp_tr_state_machine()
362 new_state = IS_ENABLED(CONFIG_PTP_UNCALIBRATED_PRESENT) ? in ptp_tr_state_machine()
363 PTP_PS_UNCALIBRATED : new_state; in ptp_tr_state_machine()
374 return new_state; in ptp_tr_state_machine()