Lines Matching refs:rs
42 npi_status_t rs = NPI_SUCCESS;
66 if ((rs = npi_ipp_write_dfifo(handle,
69 if ((rs = npi_ipp_read_dfifo(handle, portn,
75 if ((rs = npi_ipp_get_status(handle, portn, &istatus)) != NPI_SUCCESS)
77 if ((rs = npi_ipp_get_status(handle, portn, &istatus)) != NPI_SUCCESS)
84 if ((rs = npi_ipp_reset(handle, portn)) != NPI_SUCCESS)
92 if ((rs = npi_ipp_get_status(handle, portn, &istatus)) != NPI_SUCCESS)
96 if ((rs = npi_ipp_iconfig(handle, INIT, portn, ICFG_IPP_ALL))
103 if ((rs = npi_ipp_config(handle, INIT, portn, config)) != NPI_SUCCESS)
109 if ((rs = npi_ipp_set_max_pktsize(handle, portn,
121 return (NXGE_ERROR | rs);
131 npi_status_t rs = NPI_SUCCESS;
164 if ((rs = npi_ipp_config(handle, DISABLE,
169 if ((rs = npi_ipp_reset(handle, portn)) != NPI_SUCCESS)
177 return (NXGE_ERROR | rs);
187 npi_status_t rs = NPI_SUCCESS;
198 if ((rs = npi_ipp_config(handle, DISABLE,
225 if ((rs = npi_ipp_reset(handle, portn)) != NPI_SUCCESS) {
230 if ((rs = npi_zcp_rest_cfifo_port(handle, portn)) != NPI_SUCCESS)
245 return (NXGE_ERROR | rs);
256 npi_status_t rs = NPI_SUCCESS;
265 if ((rs = npi_ipp_config(handle, INIT, portn, config)) != NPI_SUCCESS)
271 if ((rs = npi_ipp_set_max_pktsize(handle, portn,
281 return (NXGE_ERROR | rs);
290 npi_status_t rs = NPI_SUCCESS;
326 return (NXGE_ERROR | rs);
334 npi_status_t rs = NPI_SUCCESS;
350 if ((rs = npi_ipp_get_status(handle, portn, &istatus)) != NPI_SUCCESS)
351 return (NXGE_ERROR | rs);
362 if ((rs = npi_ipp_get_dfifo_eopm_rdptr(handle, portn,
364 return (NXGE_ERROR | rs);
365 if ((rs = npi_ipp_get_state_mach(handle, portn,
367 return (NXGE_ERROR | rs);
377 if ((rs = npi_ipp_get_dfifo_eopm_rdptr(handle, portn,
379 return (NXGE_ERROR | rs);
380 if ((rs = npi_ipp_get_state_mach(handle, portn,
382 return (NXGE_ERROR | rs);
398 if ((rs = npi_ipp_get_ecc_syndrome(handle, portn,
400 return (NXGE_ERROR | rs);
599 npi_status_t rs = NPI_SUCCESS;
630 if ((rs = npi_zcp_rest_cfifo_port(handle, portn)) != NPI_SUCCESS)
671 if ((rs = npi_ipp_write_dfifo(handle, portn,
674 if ((rs = npi_ipp_read_dfifo(handle, portn, i,
680 if ((rs = npi_ipp_get_status(handle, portn, &istatus)) != NPI_SUCCESS)
682 if ((rs = npi_ipp_get_status(handle, portn, &istatus)) != NPI_SUCCESS)
687 if ((rs = npi_ipp_reset(handle, portn)) != NPI_SUCCESS)
709 return (status | rs);
726 npi_status_t rs = NPI_SUCCESS;
739 if ((rs = npi_ipp_get_dfifo_rd_ptr(handle, portn, &rd_ptr))
742 if ((rs = npi_ipp_get_dfifo_wr_ptr(handle, portn, &wr_ptr))
756 if ((rs = npi_ipp_get_dfifo_rd_ptr(handle,
759 if ((rs = npi_ipp_get_dfifo_wr_ptr(handle,
778 if ((rs = npi_ipp_read_dfifo(handle, portn, rd_ptr,
787 return (NXGE_ERROR | rs);