Lines Matching refs:rs

55 	npi_status_t		rs = NPI_SUCCESS;
58 if ((rs = npi_dev_func_sr_sr_get_set_clear(handle, tas))
60 return (NXGE_ERROR | rs);
70 npi_status_t rs = NPI_SUCCESS;
84 if ((rs = npi_fzc_mpc_set(handle, mpc)) != NPI_SUCCESS) {
87 return (NXGE_ERROR | rs);
99 npi_status_t rs = NPI_SUCCESS;
104 if ((rs = npi_fzc_mpc_get(handle, mpc_p)) != NPI_SUCCESS) {
107 return (NXGE_ERROR | rs);
157 npi_status_t rs = NPI_SUCCESS;
180 rs = npi_fzc_ldg_num_set(handle, ldvp->ldv,
182 if (rs != NPI_SUCCESS) {
185 " rs 0x%x ldv %d ldg %d",
186 rs, ldvp->ldv, ldvp->ldg_assigned));
187 return (NXGE_ERROR | rs);
205 npi_status_t rs = NPI_SUCCESS;
212 if ((rs = npi_fzc_ldg_timer_res_set(handle, nxgep->ldgvp->tmres))) {
213 return (NXGE_ERROR | rs);
227 npi_status_t rs = NPI_SUCCESS;
248 rs = npi_fzc_sid_set(handle, sid);
249 if (rs != NPI_SUCCESS) {
252 rs));
253 return (NXGE_ERROR | rs);
481 npi_status_t rs;
507 if ((rs = npi_rxdma_cfg_logical_page(handle, channel, page0))
509 return (NXGE_ERROR | rs);
514 if ((rs = npi_rxdma_cfg_logical_page(handle, channel, page1))
516 return (NXGE_ERROR | rs);
523 rs = npi_rxdma_cfg_logical_page_handle(handle, channel, page_handle);
524 if (rs == NPI_SUCCESS) {
527 return (NXGE_ERROR | rs);
538 npi_status_t rs = NPI_SUCCESS;
553 rs = npi_rxdma_cfg_logical_page(handle, channel,
555 if (rs != NPI_SUCCESS) {
556 return (NXGE_ERROR | rs);
568 rs = npi_rxdma_cfg_logical_page(handle, channel, &cfg);
569 if (rs != NPI_SUCCESS) {
570 return (NXGE_ERROR | rs);
574 rs = npi_rxdma_cfg_logical_page_handle(handle, channel,
577 if (rs != NPI_SUCCESS) {
578 return (NXGE_ERROR | rs);
594 npi_status_t rs = NPI_SUCCESS;
610 rs = npi_rxdma_cfg_wred_param(handle, channel, &red);
611 if (rs != NPI_SUCCESS) {
612 return (NXGE_ERROR | rs);
764 npi_status_t rs = NPI_SUCCESS;
790 rs = npi_rxdma_cfg_clock_div_set(handle, RXDMA_CK_DIV_DEFAULT);
791 if (rs != NPI_SUCCESS)
792 return (NXGE_ERROR | rs);
795 rs = npi_rxdma_cfg_32bitmode_enable(handle);
796 if (rs != NPI_SUCCESS)
797 return (NXGE_ERROR | rs);
798 rs = npi_txdma_mode32_set(handle, B_TRUE);
799 if (rs != NPI_SUCCESS)
800 return (NXGE_ERROR | rs);
808 rs = npi_rxdma_cfg_red_rand_init(handle, (uint16_t)lbolt);
809 if (rs != NPI_SUCCESS)
810 return (NXGE_ERROR | rs);
836 npi_status_t rs = NPI_SUCCESS;
856 rs = npi_rxdma_rdc_table_config(handle, rdc_tbl,
859 if (rs != NPI_SUCCESS) {
860 status = NXGE_ERROR | rs;
975 npi_status_t rs = NPI_SUCCESS;
991 rs = npi_rxdma_cfg_port_ddr_weight(handle,
993 if (rs != NPI_SUCCESS) {
994 return (NXGE_ERROR | rs);
999 rs = npi_rxdma_cfg_default_port_rdc(handle, nxgep->function_num,
1001 if (rs != NPI_SUCCESS) {
1002 return (NXGE_ERROR | rs);
1020 rs = npi_mac_hostinfo_entry(handle, OP_SET,
1022 if (rs != NPI_SUCCESS)
1023 return (NXGE_ERROR | rs);
1027 "<== nxge_init_fzc_rxdma_port rs 0x%08x", rs));
1036 npi_status_t rs = NPI_SUCCESS;
1037 rs = npi_rxdma_cfg_default_port_rdc(nxgep->npi_reg_handle,
1039 if (rs & NPI_FAILURE)
1040 return (NXGE_ERROR | rs);
1077 npi_status_t rs;
1103 if ((rs = npi_txdma_log_page_set(handle, channel, page0))
1105 return (NXGE_ERROR | rs);
1110 if ((rs = npi_txdma_log_page_set(handle, channel, page1))
1112 return (NXGE_ERROR | rs);
1119 rs = npi_txdma_log_page_handle_set(handle, channel, &page_handle);
1120 if (rs == NPI_SUCCESS) {
1123 return (NXGE_ERROR | rs);
1133 npi_status_t rs = NPI_SUCCESS;
1164 rs = npi_txdma_log_page_set(handle, channel,
1166 if (rs != NPI_SUCCESS) {
1167 return (NXGE_ERROR | rs);
1179 rs = npi_txdma_log_page_set(handle, channel, &cfg);
1180 if (rs != NPI_SUCCESS) {
1181 return (NXGE_ERROR | rs);
1185 rs = npi_txdma_log_page_handle_set(handle, channel,
1188 if (rs == NPI_SUCCESS) {
1191 return (NXGE_ERROR | rs);
1200 npi_status_t rs = NPI_SUCCESS;
1204 rs = npi_txc_dma_max_burst_set(handle, channel,
1206 if (rs == NPI_SUCCESS) {
1209 return (NXGE_ERROR | rs);
1216 npi_status_t rs = NPI_SUCCESS;
1220 rs = npi_fzc_sys_err_mask_set(handle, mask);
1221 if (rs == NPI_SUCCESS) {
1224 return (NXGE_ERROR | rs);