Lines Matching refs:offset

181 	uint64_t offset;  in npi_fflp_vlan_tbl_dump()  local
193 offset = FFLP_VLAN_OFFSET(vlan_id, FFLP_ENET_VLAN_TBL_REG); in npi_fflp_vlan_tbl_dump()
194 REG_PIO_READ64(handle, offset, &value); in npi_fflp_vlan_tbl_dump()
196 "%x\t %llx\t %llx\n", vlan_id, offset, value)); in npi_fflp_vlan_tbl_dump()
970 uint64_t offset; in npi_fflp_cfg_fcram_partition() local
981 offset = FFLP_PART_OFFSET(partid, FFLP_FLW_PRT_SEL_REG); in npi_fflp_cfg_fcram_partition()
986 REG_PIO_WRITE64(handle, offset, sel.value); in npi_fflp_cfg_fcram_partition()
1009 uint64_t offset; in npi_fflp_cfg_fcram_partition_enable() local
1020 offset = FFLP_PART_OFFSET(partid, FFLP_FLW_PRT_SEL_REG); in npi_fflp_cfg_fcram_partition_enable()
1022 REG_PIO_READ64(handle, offset, &sel.value); in npi_fflp_cfg_fcram_partition_enable()
1024 REG_PIO_WRITE64(handle, offset, sel.value); in npi_fflp_cfg_fcram_partition_enable()
1047 uint64_t offset; in npi_fflp_cfg_fcram_partition_disable() local
1057 offset = FFLP_PART_OFFSET(partid, FFLP_FLW_PRT_SEL_REG); in npi_fflp_cfg_fcram_partition_disable()
1058 REG_PIO_READ64(handle, offset, &sel.value); in npi_fflp_cfg_fcram_partition_disable()
1060 REG_PIO_WRITE64(handle, offset, sel.value); in npi_fflp_cfg_fcram_partition_disable()
1074 uint64_t offset; in npi_fflp_cfg_cam_errorcheck_disable() local
1075 offset = FFLP_CFG_1_REG; in npi_fflp_cfg_cam_errorcheck_disable()
1077 REG_PIO_READ64(handle, offset, &fflp_cfg.value); in npi_fflp_cfg_cam_errorcheck_disable()
1080 REG_PIO_WRITE64(handle, offset, fflp_cfg.value); in npi_fflp_cfg_cam_errorcheck_disable()
1095 uint64_t offset; in npi_fflp_cfg_cam_errorcheck_enable() local
1096 offset = FFLP_CFG_1_REG; in npi_fflp_cfg_cam_errorcheck_enable()
1098 REG_PIO_READ64(handle, offset, &fflp_cfg.value); in npi_fflp_cfg_cam_errorcheck_enable()
1101 REG_PIO_WRITE64(handle, offset, fflp_cfg.value); in npi_fflp_cfg_cam_errorcheck_enable()
1117 uint64_t offset; in npi_fflp_cfg_llcsnap_enable() local
1118 offset = FFLP_CFG_1_REG; in npi_fflp_cfg_llcsnap_enable()
1120 REG_PIO_READ64(handle, offset, &fflp_cfg.value); in npi_fflp_cfg_llcsnap_enable()
1123 REG_PIO_WRITE64(handle, offset, fflp_cfg.value); in npi_fflp_cfg_llcsnap_enable()
1140 uint64_t offset; in npi_fflp_cfg_llcsnap_disable() local
1141 offset = FFLP_CFG_1_REG; in npi_fflp_cfg_llcsnap_disable()
1143 REG_PIO_READ64(handle, offset, &fflp_cfg.value); in npi_fflp_cfg_llcsnap_disable()
1146 REG_PIO_WRITE64(handle, offset, fflp_cfg.value); in npi_fflp_cfg_llcsnap_disable()
1178 uint64_t offset; in npi_fflp_cfg_fcram_refresh_time() local
1182 offset = FFLP_FCRAM_REF_TMR_REG; in npi_fflp_cfg_fcram_refresh_time()
1190 REG_PIO_READ64(handle, offset, &refresh_timer_reg.value); in npi_fflp_cfg_fcram_refresh_time()
1193 REG_PIO_WRITE64(handle, offset, refresh_timer_reg.value); in npi_fflp_cfg_fcram_refresh_time()
1264 uint64_t offset; in npi_fflp_fcram_get_pio_err_log() local
1275 offset = GET_HASHTBL_PART_OFFSET_NVIR(partid, in npi_fflp_fcram_get_pio_err_log()
1278 REG_PIO_READ64(handle, offset, &err_log.value); in npi_fflp_fcram_get_pio_err_log()
1286 REG_PIO_WRITE64(handle, offset, err_log.value); in npi_fflp_fcram_get_pio_err_log()
1312 uint64_t offset; in npi_fflp_fcram_clr_pio_err_log() local
1326 offset = GET_HASHTBL_PART_OFFSET_NVIR(partid, in npi_fflp_fcram_clr_pio_err_log()
1330 REG_PIO_WRITE64(handle, offset, err_log.value); in npi_fflp_fcram_clr_pio_err_log()
1358 uint64_t offset; in npi_fflp_tcam_get_err_log() local
1360 offset = FFLP_TCAM_ERR_REG; in npi_fflp_tcam_get_err_log()
1363 REG_PIO_READ64(handle, offset, &err_log.value); in npi_fflp_tcam_get_err_log()
1383 REG_PIO_WRITE64(handle, offset, err_log.value); in npi_fflp_tcam_get_err_log()
1411 uint64_t offset; in npi_fflp_tcam_clr_err_log() local
1413 offset = FFLP_TCAM_ERR_REG; in npi_fflp_tcam_clr_err_log()
1415 REG_PIO_WRITE64(handle, offset, err_log.value); in npi_fflp_tcam_clr_err_log()
1516 uint64_t offset; in npi_fflp_cfg_enet_vlan_table_assoc() local
1547 offset = FFLP_VLAN_OFFSET(vlan_id, FFLP_ENET_VLAN_TBL_REG); in npi_fflp_cfg_enet_vlan_table_assoc()
1548 REG_PIO_READ64(handle, offset, &cfg.value); in npi_fflp_cfg_enet_vlan_table_assoc()
1605 REG_PIO_WRITE64(handle, offset, cfg.value); in npi_fflp_cfg_enet_vlan_table_assoc()
1632 uint64_t offset; in npi_fflp_cfg_enet_vlan_table_set_pri() local
1654 offset = FFLP_ENET_VLAN_TBL_REG + (vlan_id << 3); in npi_fflp_cfg_enet_vlan_table_set_pri()
1655 REG_PIO_READ64(handle, offset, &cfg.value); in npi_fflp_cfg_enet_vlan_table_set_pri()
1691 REG_PIO_WRITE64(handle, offset, cfg.value); in npi_fflp_cfg_enet_vlan_table_set_pri()
1713 uint64_t offset; in npi_fflp_cfg_vlan_table_clear() local
1726 offset = FFLP_VLAN_OFFSET(vlan_id, FFLP_ENET_VLAN_TBL_REG); in npi_fflp_cfg_vlan_table_clear()
1728 REG_PIO_WRITE64(handle, offset, clear); in npi_fflp_cfg_vlan_table_clear()
1753 uint64_t offset; in npi_fflp_vlan_tbl_get_err_log() local
1756 offset = FFLP_VLAN_PAR_ERR_REG; in npi_fflp_vlan_tbl_get_err_log()
1759 REG_PIO_READ64(handle, offset, &err_log.value); in npi_fflp_vlan_tbl_get_err_log()
1769 REG_PIO_WRITE64(handle, offset, err_log.value); in npi_fflp_vlan_tbl_get_err_log()
1797 uint64_t offset; in npi_fflp_vlan_tbl_clr_err_log() local
1799 offset = FFLP_VLAN_PAR_ERR_REG; in npi_fflp_vlan_tbl_clr_err_log()
1802 REG_PIO_WRITE64(handle, offset, err_log.value); in npi_fflp_vlan_tbl_clr_err_log()
1827 uint64_t offset; in npi_fflp_cfg_enet_usr_cls_set() local
1840 offset = GET_TCAM_CLASS_OFFSET(class); in npi_fflp_cfg_enet_usr_cls_set()
1851 REG_PIO_WRITE64(handle, offset, cls_cfg.value); in npi_fflp_cfg_enet_usr_cls_set()
1870 uint64_t offset; in npi_fflp_cfg_enet_usr_cls_enable() local
1882 offset = GET_TCAM_CLASS_OFFSET(class); in npi_fflp_cfg_enet_usr_cls_enable()
1884 REG_PIO_READ64(handle, offset, &cls_cfg.value); in npi_fflp_cfg_enet_usr_cls_enable()
1886 REG_PIO_WRITE64(handle, offset, cls_cfg.value); in npi_fflp_cfg_enet_usr_cls_enable()
1905 uint64_t offset; in npi_fflp_cfg_enet_usr_cls_disable() local
1917 offset = GET_TCAM_CLASS_OFFSET(class); in npi_fflp_cfg_enet_usr_cls_disable()
1919 REG_PIO_READ64(handle, offset, &cls_cfg.value); in npi_fflp_cfg_enet_usr_cls_disable()
1922 REG_PIO_WRITE64(handle, offset, cls_cfg.value); in npi_fflp_cfg_enet_usr_cls_disable()
1948 uint64_t offset; in npi_fflp_cfg_ip_usr_cls_set() local
1960 offset = GET_TCAM_CLASS_OFFSET(class); in npi_fflp_cfg_ip_usr_cls_set()
1967 REG_PIO_WRITE64(handle, offset, ip_cls_cfg.value); in npi_fflp_cfg_ip_usr_cls_set()
1995 uint64_t offset, val; in npi_fflp_cfg_ip_usr_cls_set_iptun() local
2007 offset = GET_TCAM_CLASS_OFFSET(class); in npi_fflp_cfg_ip_usr_cls_set_iptun()
2008 REG_PIO_READ64(handle, offset, &ip_cls_cfg.value); in npi_fflp_cfg_ip_usr_cls_set_iptun()
2022 REG_PIO_WRITE64(handle, offset, ip_cls_cfg.value); in npi_fflp_cfg_ip_usr_cls_set_iptun()
2049 uint64_t offset; in npi_fflp_cfg_ip_usr_cls_get_iptun() local
2061 offset = GET_TCAM_CLASS_OFFSET(class); in npi_fflp_cfg_ip_usr_cls_get_iptun()
2062 REG_PIO_READ64(handle, offset, &ip_cls_cfg.value); in npi_fflp_cfg_ip_usr_cls_get_iptun()
2092 uint64_t offset; in npi_fflp_cfg_ip_usr_cls_enable() local
2104 offset = GET_TCAM_CLASS_OFFSET(class); in npi_fflp_cfg_ip_usr_cls_enable()
2105 REG_PIO_READ64(handle, offset, &ip_cls_cfg.value); in npi_fflp_cfg_ip_usr_cls_enable()
2108 REG_PIO_WRITE64(handle, offset, ip_cls_cfg.value); in npi_fflp_cfg_ip_usr_cls_enable()
2128 uint64_t offset; in npi_fflp_cfg_ip_usr_cls_disable() local
2140 offset = GET_TCAM_CLASS_OFFSET(class); in npi_fflp_cfg_ip_usr_cls_disable()
2142 REG_PIO_READ64(handle, offset, &ip_cls_cfg.value); in npi_fflp_cfg_ip_usr_cls_disable()
2145 REG_PIO_WRITE64(handle, offset, ip_cls_cfg.value); in npi_fflp_cfg_ip_usr_cls_disable()
2172 uint64_t offset; in npi_fflp_cfg_ip_cls_tcam_key() local
2194 offset = GET_TCAM_KEY_OFFSET(l3_class); in npi_fflp_cfg_ip_cls_tcam_key()
2213 REG_PIO_WRITE64(handle, offset, tcam_cls_cfg.value); in npi_fflp_cfg_ip_cls_tcam_key()
2247 uint64_t offset; in npi_fflp_cfg_ip_cls_flow_key() local
2260 offset = GET_FLOW_KEY_OFFSET(l3_class); in npi_fflp_cfg_ip_cls_flow_key()
2299 REG_PIO_WRITE64(handle, offset, flow_cfg_reg.value); in npi_fflp_cfg_ip_cls_flow_key()
2309 uint64_t offset; in npi_fflp_cfg_ip_cls_flow_key_get() local
2321 offset = GET_FLOW_KEY_OFFSET(l3_class); in npi_fflp_cfg_ip_cls_flow_key_get()
2333 REG_PIO_READ64(handle, offset, &flow_cfg_reg.value); in npi_fflp_cfg_ip_cls_flow_key_get()
2419 uint64_t offset; in npi_fflp_cfg_ip_cls_flow_key_rfnl() local
2432 offset = FFLP_FLOW_KEY_IP6_FRAG_REG; in npi_fflp_cfg_ip_cls_flow_key_rfnl()
2434 offset = GET_FLOW_KEY_OFFSET(l3_class); in npi_fflp_cfg_ip_cls_flow_key_rfnl()
2483 REG_PIO_WRITE64(handle, offset, flow_cfg_reg.value); in npi_fflp_cfg_ip_cls_flow_key_rfnl()
2492 uint64_t offset; in npi_fflp_cfg_sym_ip_cls_flow_key() local
2505 offset = FFLP_FLOW_KEY_IP6_FRAG_REG; in npi_fflp_cfg_sym_ip_cls_flow_key()
2507 offset = GET_FLOW_KEY_OFFSET(l3_class); in npi_fflp_cfg_sym_ip_cls_flow_key()
2510 REG_PIO_READ64(handle, offset, &flow_cfg_reg.value); in npi_fflp_cfg_sym_ip_cls_flow_key()
2514 REG_PIO_WRITE64(handle, offset, flow_cfg_reg.value); in npi_fflp_cfg_sym_ip_cls_flow_key()
2517 REG_PIO_WRITE64(handle, offset, flow_cfg_reg.value); in npi_fflp_cfg_sym_ip_cls_flow_key()
2529 uint64_t offset; in npi_fflp_cfg_ip_cls_flow_key_get_rfnl() local
2542 offset = FFLP_FLOW_KEY_IP6_FRAG_REG; in npi_fflp_cfg_ip_cls_flow_key_get_rfnl()
2544 offset = GET_FLOW_KEY_OFFSET(l3_class); in npi_fflp_cfg_ip_cls_flow_key_get_rfnl()
2560 REG_PIO_READ64(handle, offset, &flow_cfg_reg.value); in npi_fflp_cfg_ip_cls_flow_key_get_rfnl()
2624 uint64_t offset; in npi_fflp_cfg_ip_cls_tcam_key_get() local
2637 offset = GET_TCAM_KEY_OFFSET(l3_class); in npi_fflp_cfg_ip_cls_tcam_key_get()
2639 REG_PIO_READ64(handle, offset, &tcam_cls_cfg.value); in npi_fflp_cfg_ip_cls_tcam_key_get()
2681 uint64_t offset; in npi_fflp_cfg_fcram_access() local
2682 offset = FFLP_CFG_1_REG; in npi_fflp_cfg_fcram_access()
2692 REG_PIO_READ64(handle, offset, &fflp_cfg.value); in npi_fflp_cfg_fcram_access()
2695 REG_PIO_WRITE64(handle, offset, fflp_cfg.value); in npi_fflp_cfg_fcram_access()
2696 REG_PIO_READ64(handle, offset, &fflp_cfg.value); in npi_fflp_cfg_fcram_access()
2698 REG_PIO_WRITE64(handle, offset, fflp_cfg.value); in npi_fflp_cfg_fcram_access()
2718 uint64_t offset; in npi_fflp_cfg_tcam_access() local
2719 offset = FFLP_CFG_1_REG; in npi_fflp_cfg_tcam_access()
2729 REG_PIO_READ64(handle, offset, &fflp_cfg.value); in npi_fflp_cfg_tcam_access()
2735 REG_PIO_WRITE64(handle, offset, fflp_cfg.value); in npi_fflp_cfg_tcam_access()
2736 REG_PIO_READ64(handle, offset, &fflp_cfg.value); in npi_fflp_cfg_tcam_access()
2738 REG_PIO_WRITE64(handle, offset, fflp_cfg.value); in npi_fflp_cfg_tcam_access()
2760 uint64_t offset; in npi_fflp_cfg_hash_h1poly() local
2761 offset = FFLP_H1POLY_REG; in npi_fflp_cfg_hash_h1poly()
2766 REG_PIO_WRITE64(handle, offset, h1_cfg.value); in npi_fflp_cfg_hash_h1poly()
2788 uint64_t offset; in npi_fflp_cfg_hash_h2poly() local
2789 offset = FFLP_H2POLY_REG; in npi_fflp_cfg_hash_h2poly()
2794 REG_PIO_WRITE64(handle, offset, h2_cfg.value); in npi_fflp_cfg_hash_h2poly()
2822 uint64_t offset; in npi_fflp_cfg_fcram_reset() local
2823 offset = FFLP_CFG_1_REG; in npi_fflp_cfg_fcram_reset()
2828 REG_PIO_WRITE64(handle, offset, fflp_cfg.value); in npi_fflp_cfg_fcram_reset()
2833 REG_PIO_WRITE64(handle, offset, fflp_cfg.value); in npi_fflp_cfg_fcram_reset()
2837 REG_PIO_WRITE64(handle, offset, fflp_cfg.value); in npi_fflp_cfg_fcram_reset()
2848 uint64_t offset; in npi_fflp_cfg_init_done() local
2849 offset = FFLP_CFG_1_REG; in npi_fflp_cfg_init_done()
2851 REG_PIO_READ64(handle, offset, &fflp_cfg.value); in npi_fflp_cfg_init_done()
2853 REG_PIO_WRITE64(handle, offset, fflp_cfg.value); in npi_fflp_cfg_init_done()
2864 uint64_t offset; in npi_fflp_cfg_init_start() local
2865 offset = FFLP_CFG_1_REG; in npi_fflp_cfg_init_start()
2867 REG_PIO_READ64(handle, offset, &fflp_cfg.value); in npi_fflp_cfg_init_start()
2869 REG_PIO_WRITE64(handle, offset, fflp_cfg.value); in npi_fflp_cfg_init_start()
2884 uint64_t offset; in npi_fflp_cfg_tcam_enable() local
2885 offset = FFLP_CFG_1_REG; in npi_fflp_cfg_tcam_enable()
2886 REG_PIO_READ64(handle, offset, &fflp_cfg.value); in npi_fflp_cfg_tcam_enable()
2888 REG_PIO_WRITE64(handle, offset, fflp_cfg.value); in npi_fflp_cfg_tcam_enable()
2904 uint64_t offset; in npi_fflp_cfg_tcam_disable() local
2905 offset = FFLP_CFG_1_REG; in npi_fflp_cfg_tcam_disable()
2906 REG_PIO_READ64(handle, offset, &fflp_cfg.value); in npi_fflp_cfg_tcam_disable()
2908 REG_PIO_WRITE64(handle, offset, fflp_cfg.value); in npi_fflp_cfg_tcam_disable()
3013 uint64_t offset; in npi_fflp_fcram_error_get() local
3015 offset = FFLP_HASH_TBL_DATA_LOG_REG + partition * 8192; in npi_fflp_fcram_error_get()
3016 REG_PIO_READ64(handle, offset, &p_err->value); in npi_fflp_fcram_error_get()
3026 uint64_t offset; in npi_fflp_fcram_error_clear() local
3030 offset = FFLP_HASH_TBL_DATA_LOG_REG + partition * 8192; in npi_fflp_fcram_error_clear()
3032 REG_PIO_WRITE64(handle, offset, in npi_fflp_fcram_error_clear()