Lines Matching refs:status
71 int status; in ice_read_phy_reg_e810() local
78 status = ice_sbq_rw_reg(hw, &msg); in ice_read_phy_reg_e810()
79 if (status) { in ice_read_phy_reg_e810()
81 status); in ice_read_phy_reg_e810()
82 return status; in ice_read_phy_reg_e810()
101 int status; in ice_write_phy_reg_e810() local
109 status = ice_sbq_rw_reg(hw, &msg); in ice_write_phy_reg_e810()
110 if (status) { in ice_write_phy_reg_e810()
112 status); in ice_write_phy_reg_e810()
113 return status; in ice_write_phy_reg_e810()
133 int status; in ice_read_phy_tstamp_e810() local
138 status = ice_read_phy_reg_e810(hw, lo_addr, &lo); in ice_read_phy_tstamp_e810()
139 if (status) { in ice_read_phy_tstamp_e810()
141 status); in ice_read_phy_tstamp_e810()
142 return status; in ice_read_phy_tstamp_e810()
145 status = ice_read_phy_reg_e810(hw, hi_addr, &hi); in ice_read_phy_tstamp_e810()
146 if (status) { in ice_read_phy_tstamp_e810()
148 status); in ice_read_phy_tstamp_e810()
149 return status; in ice_read_phy_tstamp_e810()
172 int status; in ice_clear_phy_tstamp_e810() local
177 status = ice_write_phy_reg_e810(hw, lo_addr, 0); in ice_clear_phy_tstamp_e810()
178 if (status) { in ice_clear_phy_tstamp_e810()
180 status); in ice_clear_phy_tstamp_e810()
181 return status; in ice_clear_phy_tstamp_e810()
184 status = ice_write_phy_reg_e810(hw, hi_addr, 0); in ice_clear_phy_tstamp_e810()
185 if (status) { in ice_clear_phy_tstamp_e810()
187 status); in ice_clear_phy_tstamp_e810()
188 return status; in ice_clear_phy_tstamp_e810()
203 int status; in ice_ptp_init_phy_e810() local
207 status = ice_write_phy_reg_e810(hw, ETH_GLTSYN_ENA(tmr_idx), in ice_ptp_init_phy_e810()
209 if (status) in ice_ptp_init_phy_e810()
211 status); in ice_ptp_init_phy_e810()
213 return status; in ice_ptp_init_phy_e810()
230 int status; in ice_ptp_prep_phy_time_e810() local
234 status = ice_write_phy_reg_e810(hw, ETH_GLTSYN_SHTIME_0(tmr_idx), 0); in ice_ptp_prep_phy_time_e810()
235 if (status) { in ice_ptp_prep_phy_time_e810()
237 status); in ice_ptp_prep_phy_time_e810()
238 return status; in ice_ptp_prep_phy_time_e810()
241 status = ice_write_phy_reg_e810(hw, ETH_GLTSYN_SHTIME_L(tmr_idx), time); in ice_ptp_prep_phy_time_e810()
242 if (status) { in ice_ptp_prep_phy_time_e810()
244 status); in ice_ptp_prep_phy_time_e810()
245 return status; in ice_ptp_prep_phy_time_e810()
266 int status; in ice_ptp_prep_phy_adj_e810() local
274 status = ice_write_phy_reg_e810(hw, ETH_GLTSYN_SHADJ_L(tmr_idx), 0); in ice_ptp_prep_phy_adj_e810()
275 if (status) { in ice_ptp_prep_phy_adj_e810()
277 status); in ice_ptp_prep_phy_adj_e810()
278 return status; in ice_ptp_prep_phy_adj_e810()
281 status = ice_write_phy_reg_e810(hw, ETH_GLTSYN_SHADJ_H(tmr_idx), adj); in ice_ptp_prep_phy_adj_e810()
282 if (status) { in ice_ptp_prep_phy_adj_e810()
284 status); in ice_ptp_prep_phy_adj_e810()
285 return status; in ice_ptp_prep_phy_adj_e810()
303 int status; in ice_ptp_prep_phy_incval_e810() local
310 status = ice_write_phy_reg_e810(hw, ETH_GLTSYN_SHADJ_L(tmr_idx), low); in ice_ptp_prep_phy_incval_e810()
311 if (status) { in ice_ptp_prep_phy_incval_e810()
313 status); in ice_ptp_prep_phy_incval_e810()
314 return status; in ice_ptp_prep_phy_incval_e810()
317 status = ice_write_phy_reg_e810(hw, ETH_GLTSYN_SHADJ_H(tmr_idx), high); in ice_ptp_prep_phy_incval_e810()
318 if (status) { in ice_ptp_prep_phy_incval_e810()
320 status); in ice_ptp_prep_phy_incval_e810()
321 return status; in ice_ptp_prep_phy_incval_e810()
338 int status; in ice_ptp_port_cmd_e810() local
359 status = ice_read_phy_reg_e810(hw, ETH_GLTSYN_CMD, &val); in ice_ptp_port_cmd_e810()
360 if (status) { in ice_ptp_port_cmd_e810()
361 ice_debug(hw, ICE_DBG_PTP, "Failed to read GLTSYN_CMD, status %d\n", status); in ice_ptp_port_cmd_e810()
362 return status; in ice_ptp_port_cmd_e810()
369 status = ice_write_phy_reg_e810(hw, ETH_GLTSYN_CMD, val); in ice_ptp_port_cmd_e810()
370 if (status) { in ice_ptp_port_cmd_e810()
371 ice_debug(hw, ICE_DBG_PTP, "Failed to write back GLTSYN_CMD, status %d\n", status); in ice_ptp_port_cmd_e810()
372 return status; in ice_ptp_port_cmd_e810()
483 int status; in ice_ptp_tmr_cmd() local
489 status = ice_ptp_port_cmd_e810(hw, cmd); in ice_ptp_tmr_cmd()
490 if (status) { in ice_ptp_tmr_cmd()
492 cmd, status); in ice_ptp_tmr_cmd()
493 return status; in ice_ptp_tmr_cmd()
519 int status; in ice_ptp_init_time() local
531 status = ice_ptp_prep_phy_time_e810(hw, time & 0xFFFFFFFF); in ice_ptp_init_time()
532 if (status) in ice_ptp_init_time()
533 return status; in ice_ptp_init_time()
554 int status; in ice_ptp_write_incval() local
563 status = ice_ptp_prep_phy_incval_e810(hw, incval); in ice_ptp_write_incval()
564 if (status) in ice_ptp_write_incval()
565 return status; in ice_ptp_write_incval()
579 int status; in ice_ptp_write_incval_locked() local
584 status = ice_ptp_write_incval(hw, incval); in ice_ptp_write_incval_locked()
588 return status; in ice_ptp_write_incval_locked()
606 int status; in ice_ptp_adj_clock() local
619 status = ice_ptp_prep_phy_adj_e810(hw, adj); in ice_ptp_adj_clock()
620 if (status) in ice_ptp_adj_clock()
621 return status; in ice_ptp_adj_clock()