Lines Matching refs:rs
164 npi_status_t rs = NPI_SUCCESS;
170 rs = npi_fflp_cfg_vlan_table_clear(handle, vlan_id);
171 if (rs != NPI_SUCCESS) {
175 return (NXGE_ERROR | rs);
196 npi_status_t rs = NPI_SUCCESS;
202 rs = npi_fflp_cfg_tcam_disable(handle);
203 if (rs != NPI_SUCCESS) {
205 return (NXGE_ERROR | rs);
209 rs = npi_fflp_cfg_tcam_access(handle, access_ratio);
210 if (rs != NPI_SUCCESS) {
213 return (NXGE_ERROR | rs);
220 rs = npi_fflp_cfg_enet_usr_cls_disable(handle, class);
221 if (rs != NPI_SUCCESS) {
224 return (NXGE_ERROR | rs);
231 rs = npi_fflp_cfg_ip_usr_cls_disable(handle, class);
232 if (rs != NPI_SUCCESS) {
235 return (NXGE_ERROR | rs);
258 npi_status_t rs = NPI_SUCCESS;
274 rs = npi_fflp_tcam_entry_invalidate(handle, location);
275 if (rs != NPI_SUCCESS) {
279 return (NXGE_ERROR | rs);
303 npi_status_t rs = NPI_SUCCESS;
323 rs = npi_fflp_cfg_fcram_partition(handle, pid, base_mask, base_reloc);
325 if (rs != NPI_SUCCESS) {
327 return (NXGE_ERROR | rs);
329 rs = npi_fflp_cfg_fcram_partition_disable(handle, pid);
331 if (rs != NPI_SUCCESS) {
334 return (NXGE_ERROR | rs);
343 rs = npi_fflp_fcram_subarea_write(handle, pid,
345 if (rs != NPI_SUCCESS) {
348 return (NXGE_ERROR | rs);
360 npi_status_t rs = NPI_SUCCESS;
378 rs = npi_fflp_cfg_fcram_reset(handle, strength, qs);
379 if (rs != NPI_SUCCESS) {
381 return (NXGE_ERROR | rs);
385 rs = npi_fflp_cfg_fcram_access(handle, access_ratio);
386 if (rs != NPI_SUCCESS) {
389 return (NXGE_ERROR | rs);
391 rs = npi_fflp_cfg_fcram_refresh_time(handle, min_time,
393 if (rs != NPI_SUCCESS) {
401 rs = npi_fflp_cfg_fcram_partition_disable(handle, partition);
402 if (rs != NPI_SUCCESS) {
406 return (NXGE_ERROR | rs);
417 npi_status_t rs = NPI_SUCCESS;
435 rs = npi_mac_hostinfo_entry(handle, OP_SET,
438 if (rs != NPI_SUCCESS) {
441 return (NXGE_ERROR | rs);
449 npi_status_t rs = NPI_SUCCESS;
467 rs = npi_mac_hostinfo_entry(handle, OP_SET,
472 rs = npi_mac_hostinfo_entry(handle, OP_SET,
475 rs |= npi_mac_hostinfo_entry(handle, OP_SET,
484 if (rs != NPI_SUCCESS) {
487 return (NXGE_ERROR | rs);
499 npi_status_t rs = NPI_SUCCESS;
510 rs = npi_mac_hostinfo_entry(handle, OP_SET,
515 rs = npi_mac_hostinfo_entry(handle, OP_SET,
524 if (rs != NPI_SUCCESS) {
527 return (NXGE_ERROR | rs);
546 npi_status_t rs = NPI_SUCCESS;
568 rs = npi_fflp_cfg_llcsnap_enable(handle);
569 if (rs != NPI_SUCCESS) {
572 return (NXGE_ERROR | rs);
575 rs = npi_fflp_cfg_cam_errorcheck_disable(handle);
576 if (rs != NPI_SUCCESS) {
579 return (NXGE_ERROR | rs);
583 rs = npi_fflp_cfg_hash_h1poly(handle, 0);
584 if (rs != NPI_SUCCESS) {
587 return (NXGE_ERROR | rs);
590 rs = npi_fflp_cfg_hash_h2poly(handle, 0);
591 if (rs != NPI_SUCCESS) {
594 return (NXGE_ERROR | rs);
634 npi_status_t rs = NPI_SUCCESS;
658 rs = npi_fflp_cfg_ip_cls_flow_key(handle, l3_class, &fcfg);
659 if (rs & NPI_FFLP_ERROR) {
662 return (NXGE_ERROR | rs);
674 npi_status_t rs = NPI_SUCCESS;
681 rs = npi_fflp_cfg_ip_cls_flow_key_get(handle, l3_class, &fcfg);
682 if (rs & NPI_FFLP_ERROR) {
685 return (NXGE_ERROR | rs);
718 npi_status_t rs = NPI_SUCCESS;
728 rs = npi_fflp_cfg_ip_cls_tcam_key_get(handle, class, &cfg);
729 if (rs & NPI_FFLP_ERROR) {
732 return (NXGE_ERROR | rs);
750 npi_status_t rs = NPI_SUCCESS;
772 rs = npi_fflp_cfg_ip_cls_tcam_key(handle, class, &cfg);
773 if (rs & NPI_FFLP_ERROR) {
776 return (NXGE_ERROR | rs);
784 npi_status_t rs = NPI_SUCCESS;
792 rs = npi_fflp_cfg_hash_h1poly(handle, h1);
793 if (rs & NPI_FFLP_ERROR) {
796 return (NXGE_ERROR | rs);
805 npi_status_t rs = NPI_SUCCESS;
814 rs = npi_fflp_cfg_hash_h2poly(handle, h2);
815 if (rs & NPI_FFLP_ERROR) {
818 return (NXGE_ERROR | rs);
1276 npi_status_t rs = NPI_SUCCESS;
1339 rs = npi_fflp_cfg_ip_usr_cls_set(handle,
1342 if (rs != NPI_SUCCESS)
1345 rs = npi_fflp_cfg_ip_usr_cls_enable(handle,
1347 if (rs != NPI_SUCCESS)
1365 rs = npi_fflp_cfg_ip_usr_cls_set(handle,
1368 if (rs != NPI_SUCCESS)
1371 rs = npi_fflp_cfg_ip_usr_cls_enable(handle,
1373 if (rs != NPI_SUCCESS)
1494 rs = npi_fflp_tcam_entry_write(handle, location, &tcam_ptr);
1496 if (rs & NPI_FFLP_ERROR) {
1510 rs = npi_fflp_tcam_asc_ram_entry_write(handle,
1512 if (rs & NPI_FFLP_ERROR) {
1541 npi_status_t rs = NPI_SUCCESS;
1560 rs = npi_fflp_tcam_entry_write(handle,
1563 if (rs & NPI_FFLP_ERROR) {
1575 rs = npi_fflp_tcam_asc_ram_entry_write(handle,
1578 if (rs & NPI_FFLP_ERROR) {
1608 rs = npi_fflp_cfg_tcam_enable(handle);
1609 if (rs & NPI_FFLP_ERROR) {
1662 npi_status_t rs = NPI_SUCCESS;
1665 rs = npi_fflp_cfg_tcam_enable(handle);
1666 if (rs & NPI_FFLP_ERROR) {
1669 return (NXGE_ERROR | rs);
1679 npi_status_t rs = NPI_SUCCESS;
1683 rs = npi_fflp_cfg_tcam_disable(handle);
1684 if (rs & NPI_FFLP_ERROR) {
1687 return (NXGE_ERROR | rs);
1698 npi_status_t rs = NPI_SUCCESS;
1710 rs = npi_fflp_cfg_fcram_partition_enable(
1712 if (rs != NPI_SUCCESS) {
1717 return (NXGE_ERROR | rs);
1731 npi_status_t rs = NPI_SUCCESS;
1743 rs = npi_fflp_cfg_fcram_partition_disable(handle,
1745 if (rs != NPI_SUCCESS) {
1750 return (NXGE_ERROR | rs);
1764 npi_status_t rs = NPI_SUCCESS;
1768 rs = npi_fflp_cfg_llcsnap_enable(handle);
1769 if (rs & NPI_FFLP_ERROR) {
1772 return (NXGE_ERROR | rs);
1783 npi_status_t rs = NPI_SUCCESS;
1787 rs = npi_fflp_cfg_llcsnap_disable(handle);
1788 if (rs & NPI_FFLP_ERROR) {
1791 return (NXGE_ERROR | rs);
1802 npi_status_t rs = NPI_SUCCESS;
1819 rs = npi_fflp_cfg_ip_usr_cls_set(handle, class, tos, tos_mask,
1821 if (rs & NPI_FFLP_ERROR) {
1825 return (NXGE_ERROR | rs);
1828 rs = npi_fflp_cfg_ip_usr_cls_enable(handle, class);
1830 rs = npi_fflp_cfg_ip_usr_cls_disable(handle, class);
1832 if (rs & NPI_FFLP_ERROR) {
1836 return (NXGE_ERROR | rs);
1951 npi_status_t rs = NPI_SUCCESS;
1978 rs = npi_fflp_cfg_enet_vlan_table_assoc(handle,
1983 if (rs & NPI_FFLP_ERROR) {
1988 return (NXGE_ERROR | rs);
2520 npi_status_t rs = NPI_SUCCESS;
2552 rs = npi_fflp_cfg_ip_usr_cls_disable(
2555 if (rs != NPI_SUCCESS)
2572 rs = npi_fflp_tcam_entry_invalidate(nxgep->npi_reg_handle, index);
2573 if (rs != NPI_SUCCESS) {
2625 npi_status_t rs = NPI_SUCCESS;
2630 rs = npi_fflp_cfg_ip_usr_cls_set_iptun(handle,
2634 rs = npi_fflp_cfg_ip_usr_cls_set_iptun(handle,
2639 rs = npi_fflp_cfg_ip_usr_cls_set_iptun(handle,
2644 rs = NPI_FFLP_TCAM_CLASS_INVALID;
2647 return (rs);
2659 npi_status_t rs = NPI_SUCCESS;
2688 rs = npi_fflp_cfg_ip_usr_cls_set(handle,
2690 if (rs != NPI_SUCCESS)
2693 rs = nxge_set_iptun_usr_cls_reg(nxgep, class, iptunp);
2695 if (rs != NPI_SUCCESS)
2698 rs = npi_fflp_cfg_ip_usr_cls_enable(handle,
2700 if (rs != NPI_SUCCESS)
2716 rs = nxge_set_iptun_usr_cls_reg(nxgep, class,
2718 if (rs != NPI_SUCCESS)
2721 rs = npi_fflp_cfg_ip_usr_cls_enable(handle,
2723 if (rs != NPI_SUCCESS)
2825 npi_status_t rs = NPI_SUCCESS;
2836 rs = npi_fflp_cfg_ip_usr_cls_disable(handle, (tcam_class_t)cls_id);
2837 if (rs != NPI_SUCCESS)
2856 npi_status_t rs = NPI_SUCCESS;
2868 rs = npi_fflp_cfg_ip_usr_cls_get_iptun(handle, (tcam_class_t)cls_id,
2871 if (rs != NPI_SUCCESS)
2874 rs = npi_fflp_cfg_ip_cls_flow_key_get_rfnl(handle,
2876 if (rs != NPI_SUCCESS)
2920 npi_status_t rs = NPI_SUCCESS;
2923 rs = npi_fflp_cfg_sym_ip_cls_flow_key(handle, (tcam_class_t)cls_id,
2925 if (rs != NPI_SUCCESS)
2934 npi_status_t rs = NPI_SUCCESS;
2937 rs = npi_fflp_cfg_ip_cls_flow_key_get_rfnl(handle,
2939 if (rs != NPI_SUCCESS)