Lines Matching refs:handle

44 #define	  GET_HASHTBL_PART_OFFSET(handle, partid, reg)	\  argument
45 (handle.is_vraddr ? \
143 npi_fflp_dump_regs(npi_handle_t handle) in npi_fflp_dump_regs() argument
150 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_fflp_dump_regs()
153 REG_PIO_READ64(handle, fflp_fzc_offset[i], &value); in npi_fflp_dump_regs()
154 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_fflp_dump_regs()
160 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_fflp_dump_regs()
165 REG_PIO_READ64(handle, fflp_reg_offset[i], &value); in npi_fflp_dump_regs()
166 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_fflp_dump_regs()
172 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_fflp_dump_regs()
179 npi_fflp_vlan_tbl_dump(npi_handle_t handle) in npi_fflp_vlan_tbl_dump() argument
186 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_fflp_vlan_tbl_dump()
189 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_fflp_vlan_tbl_dump()
194 REG_PIO_READ64(handle, offset, &value); in npi_fflp_vlan_tbl_dump()
195 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, in npi_fflp_vlan_tbl_dump()
202 npi_fflp_tcam_check_completion(npi_handle_t handle, tcam_op_t op_type);
224 npi_fflp_tcam_check_completion(npi_handle_t handle, tcam_op_t op_type) in npi_fflp_tcam_check_completion() argument
235 READ_TCAM_REG_CTL(handle, &tctl.value); in npi_fflp_tcam_check_completion()
240 READ_TCAM_REG_CTL(handle, &tctl.value); in npi_fflp_tcam_check_completion()
244 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_fflp_tcam_check_completion()
254 READ_TCAM_REG_CTL(handle, &tctl.value); in npi_fflp_tcam_check_completion()
260 READ_TCAM_REG_CTL(handle, &tctl.value); in npi_fflp_tcam_check_completion()
264 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_fflp_tcam_check_completion()
274 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_fflp_tcam_check_completion()
298 npi_fflp_tcam_entry_invalidate(npi_handle_t handle, tcam_location_t location) in npi_fflp_tcam_entry_invalidate() argument
311 WRITE_TCAM_REG_MASK0(handle, 0xffULL); in npi_fflp_tcam_entry_invalidate()
312 WRITE_TCAM_REG_KEY0(handle, 0x0ULL); in npi_fflp_tcam_entry_invalidate()
317 WRITE_TCAM_REG_CTL(handle, tctl.value); in npi_fflp_tcam_entry_invalidate()
319 tctl_stat.value = npi_fflp_tcam_check_completion(handle, TCAM_RWC_STAT); in npi_fflp_tcam_entry_invalidate()
344 npi_fflp_tcam_entry_match(npi_handle_t handle, tcam_entry_t *tcam_ptr) in npi_fflp_tcam_entry_match() argument
350 WRITE_TCAM_REG_MASK0(handle, tcam_ptr->mask0); in npi_fflp_tcam_entry_match()
351 WRITE_TCAM_REG_MASK1(handle, tcam_ptr->mask1); in npi_fflp_tcam_entry_match()
352 WRITE_TCAM_REG_MASK2(handle, tcam_ptr->mask2); in npi_fflp_tcam_entry_match()
353 WRITE_TCAM_REG_MASK3(handle, tcam_ptr->mask3); in npi_fflp_tcam_entry_match()
355 WRITE_TCAM_REG_KEY0(handle, tcam_ptr->key0); in npi_fflp_tcam_entry_match()
356 WRITE_TCAM_REG_KEY1(handle, tcam_ptr->key1); in npi_fflp_tcam_entry_match()
357 WRITE_TCAM_REG_KEY2(handle, tcam_ptr->key2); in npi_fflp_tcam_entry_match()
358 WRITE_TCAM_REG_KEY3(handle, tcam_ptr->key3); in npi_fflp_tcam_entry_match()
363 WRITE_TCAM_REG_CTL(handle, tctl.value); in npi_fflp_tcam_entry_match()
365 tcam_stat = npi_fflp_tcam_check_completion(handle, TCAM_RWC_STAT); in npi_fflp_tcam_entry_match()
370 tctl_stat.value = npi_fflp_tcam_check_completion(handle, in npi_fflp_tcam_entry_match()
397 npi_fflp_tcam_entry_read(npi_handle_t handle, in npi_fflp_tcam_entry_read() argument
409 WRITE_TCAM_REG_CTL(handle, tctl.value); in npi_fflp_tcam_entry_read()
411 tcam_stat = npi_fflp_tcam_check_completion(handle, TCAM_RWC_STAT); in npi_fflp_tcam_entry_read()
414 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_fflp_tcam_entry_read()
419 READ_TCAM_REG_MASK0(handle, &tcam_ptr->mask0); in npi_fflp_tcam_entry_read()
420 READ_TCAM_REG_MASK1(handle, &tcam_ptr->mask1); in npi_fflp_tcam_entry_read()
421 READ_TCAM_REG_MASK2(handle, &tcam_ptr->mask2); in npi_fflp_tcam_entry_read()
422 READ_TCAM_REG_MASK3(handle, &tcam_ptr->mask3); in npi_fflp_tcam_entry_read()
424 READ_TCAM_REG_KEY0(handle, &tcam_ptr->key0); in npi_fflp_tcam_entry_read()
425 READ_TCAM_REG_KEY1(handle, &tcam_ptr->key1); in npi_fflp_tcam_entry_read()
426 READ_TCAM_REG_KEY2(handle, &tcam_ptr->key2); in npi_fflp_tcam_entry_read()
427 READ_TCAM_REG_KEY3(handle, &tcam_ptr->key3); in npi_fflp_tcam_entry_read()
448 npi_fflp_tcam_entry_write(npi_handle_t handle, in npi_fflp_tcam_entry_write() argument
457 WRITE_TCAM_REG_MASK0(handle, tcam_ptr->mask0); in npi_fflp_tcam_entry_write()
458 WRITE_TCAM_REG_MASK1(handle, tcam_ptr->mask1); in npi_fflp_tcam_entry_write()
459 WRITE_TCAM_REG_MASK2(handle, tcam_ptr->mask2); in npi_fflp_tcam_entry_write()
460 WRITE_TCAM_REG_MASK3(handle, tcam_ptr->mask3); in npi_fflp_tcam_entry_write()
462 WRITE_TCAM_REG_KEY0(handle, tcam_ptr->key0); in npi_fflp_tcam_entry_write()
463 WRITE_TCAM_REG_KEY1(handle, tcam_ptr->key1); in npi_fflp_tcam_entry_write()
464 WRITE_TCAM_REG_KEY2(handle, tcam_ptr->key2); in npi_fflp_tcam_entry_write()
465 WRITE_TCAM_REG_KEY3(handle, tcam_ptr->key3); in npi_fflp_tcam_entry_write()
467 NPI_DEBUG_MSG((handle.function, NPI_FFLP_CTL, in npi_fflp_tcam_entry_write()
478 NPI_DEBUG_MSG((handle.function, NPI_FFLP_CTL, in npi_fflp_tcam_entry_write()
480 WRITE_TCAM_REG_CTL(handle, tctl.value); in npi_fflp_tcam_entry_write()
482 tcam_stat = npi_fflp_tcam_check_completion(handle, TCAM_RWC_STAT); in npi_fflp_tcam_entry_write()
485 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_fflp_tcam_entry_write()
509 npi_fflp_tcam_asc_ram_entry_write(npi_handle_t handle, in npi_fflp_tcam_asc_ram_entry_write() argument
518 WRITE_TCAM_REG_KEY1(handle, ram_data); in npi_fflp_tcam_asc_ram_entry_write()
524 NPI_DEBUG_MSG((handle.function, NPI_FFLP_CTL, in npi_fflp_tcam_asc_ram_entry_write()
527 WRITE_TCAM_REG_CTL(handle, tctl.value); in npi_fflp_tcam_asc_ram_entry_write()
528 tcam_stat = npi_fflp_tcam_check_completion(handle, TCAM_RWC_STAT); in npi_fflp_tcam_asc_ram_entry_write()
531 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_fflp_tcam_asc_ram_entry_write()
555 npi_fflp_tcam_asc_ram_entry_read(npi_handle_t handle, in npi_fflp_tcam_asc_ram_entry_read() argument
568 WRITE_TCAM_REG_CTL(handle, tctl.value); in npi_fflp_tcam_asc_ram_entry_read()
570 tcam_stat = npi_fflp_tcam_check_completion(handle, TCAM_RWC_STAT); in npi_fflp_tcam_asc_ram_entry_read()
573 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_fflp_tcam_asc_ram_entry_read()
578 READ_TCAM_REG_KEY1(handle, ram_data); in npi_fflp_tcam_asc_ram_entry_read()
604 npi_fflp_fcram_entry_write(npi_handle_t handle, part_id_t partid, in npi_fflp_fcram_entry_write() argument
620 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_fflp_fcram_entry_write()
635 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_fflp_fcram_entry_write()
649 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_fflp_fcram_entry_write()
660 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_fflp_fcram_entry_write()
670 addr_reg = GET_HASHTBL_PART_OFFSET(handle, partid, in npi_fflp_fcram_entry_write()
672 data_reg = GET_HASHTBL_PART_OFFSET(handle, partid, in npi_fflp_fcram_entry_write()
675 REG_PIO_WRITE64(handle, addr_reg, addr.value); in npi_fflp_fcram_entry_write()
679 REG_PIO_WRITE64(handle, data_reg, fcram_ptr->value[subarea]); in npi_fflp_fcram_entry_write()
704 npi_fflp_fcram_entry_read(npi_handle_t handle, part_id_t partid, in npi_fflp_fcram_entry_read() argument
716 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_fflp_fcram_entry_read()
729 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_fflp_fcram_entry_read()
742 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_fflp_fcram_entry_read()
754 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_fflp_fcram_entry_read()
764 addr_reg = GET_HASHTBL_PART_OFFSET(handle, partid, in npi_fflp_fcram_entry_read()
766 data_reg = GET_HASHTBL_PART_OFFSET(handle, partid, in npi_fflp_fcram_entry_read()
769 REG_PIO_WRITE64(handle, addr_reg, addr.value); in npi_fflp_fcram_entry_read()
772 REG_PIO_READ64(handle, data_reg, &fcram_ptr->value[subarea]); in npi_fflp_fcram_entry_read()
792 npi_fflp_fcram_entry_invalidate(npi_handle_t handle, part_id_t partid, in npi_fflp_fcram_entry_invalidate() argument
802 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_fflp_fcram_entry_invalidate()
812 addr_reg = GET_HASHTBL_PART_OFFSET(handle, partid, in npi_fflp_fcram_entry_invalidate()
814 data_reg = GET_HASHTBL_PART_OFFSET(handle, partid, in npi_fflp_fcram_entry_invalidate()
818 REG_PIO_WRITE64(handle, addr_reg, addr.value); in npi_fflp_fcram_entry_invalidate()
820 REG_PIO_READ64(handle, data_reg, &hdr.value); in npi_fflp_fcram_entry_invalidate()
822 REG_PIO_WRITE64(handle, data_reg, hdr.value); in npi_fflp_fcram_entry_invalidate()
857 npi_fflp_fcram_subarea_write(npi_handle_t handle, part_id_t partid, in npi_fflp_fcram_subarea_write() argument
866 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_fflp_fcram_subarea_write()
876 addr_reg = GET_HASHTBL_PART_OFFSET(handle, partid, in npi_fflp_fcram_subarea_write()
878 data_reg = GET_HASHTBL_PART_OFFSET(handle, partid, in npi_fflp_fcram_subarea_write()
882 REG_PIO_WRITE64(handle, addr_reg, addr.value); in npi_fflp_fcram_subarea_write()
883 REG_PIO_WRITE64(handle, data_reg, data); in npi_fflp_fcram_subarea_write()
918 npi_fflp_fcram_subarea_read(npi_handle_t handle, part_id_t partid, in npi_fflp_fcram_subarea_read() argument
927 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_fflp_fcram_subarea_read()
937 addr_reg = GET_HASHTBL_PART_OFFSET(handle, partid, in npi_fflp_fcram_subarea_read()
939 data_reg = GET_HASHTBL_PART_OFFSET(handle, partid, in npi_fflp_fcram_subarea_read()
943 REG_PIO_WRITE64(handle, addr_reg, addr.value); in npi_fflp_fcram_subarea_read()
944 REG_PIO_READ64(handle, data_reg, data); in npi_fflp_fcram_subarea_read()
959 npi_fflp_cfg_fcram_partition(npi_handle_t handle, part_id_t partid, in npi_fflp_cfg_fcram_partition() argument
974 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_fflp_cfg_fcram_partition()
986 REG_PIO_WRITE64(handle, offset, sel.value); in npi_fflp_cfg_fcram_partition()
1004 npi_fflp_cfg_fcram_partition_enable (npi_handle_t handle, part_id_t partid) in npi_fflp_cfg_fcram_partition_enable() argument
1013 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, 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()
1042 npi_fflp_cfg_fcram_partition_disable(npi_handle_t handle, part_id_t partid) in npi_fflp_cfg_fcram_partition_disable() argument
1051 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, 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()
1069 npi_fflp_cfg_cam_errorcheck_disable(npi_handle_t handle) in npi_fflp_cfg_cam_errorcheck_disable() argument
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()
1091 npi_fflp_cfg_cam_errorcheck_enable(npi_handle_t handle) in npi_fflp_cfg_cam_errorcheck_enable() argument
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()
1112 npi_fflp_cfg_llcsnap_enable(npi_handle_t handle) in npi_fflp_cfg_llcsnap_enable() argument
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()
1134 npi_fflp_cfg_llcsnap_disable(npi_handle_t handle) in npi_fflp_cfg_llcsnap_disable() argument
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()
1173 npi_fflp_cfg_fcram_refresh_time(npi_handle_t handle, uint32_t min_time, in npi_fflp_cfg_fcram_refresh_time() argument
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()
1210 npi_fflp_fcram_get_lookup_err_log(npi_handle_t handle, in npi_fflp_fcram_get_lookup_err_log() argument
1224 REG_PIO_READ64(handle, err_log1_offset, &err_log1.value); in npi_fflp_fcram_get_lookup_err_log()
1225 REG_PIO_READ64(handle, err_log2_offset, &err_log2.value); in npi_fflp_fcram_get_lookup_err_log()
1259 npi_fflp_fcram_get_pio_err_log(npi_handle_t handle, part_id_t partid, in npi_fflp_fcram_get_pio_err_log() argument
1268 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, 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()
1310 npi_fflp_fcram_clr_pio_err_log(npi_handle_t handle, part_id_t partid) in npi_fflp_fcram_clr_pio_err_log() argument
1318 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, 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()
1355 npi_fflp_tcam_get_err_log(npi_handle_t handle, tcam_err_log_t *err_stat) in npi_fflp_tcam_get_err_log() argument
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()
1408 npi_fflp_tcam_clr_err_log(npi_handle_t handle) in npi_fflp_tcam_clr_err_log() argument
1415 REG_PIO_WRITE64(handle, offset, err_log.value); in npi_fflp_tcam_clr_err_log()
1439 npi_fflp_fcram_err_synd_test(npi_handle_t handle, uint8_t syndrome_bits) in npi_fflp_fcram_err_synd_test() argument
1449 REG_PIO_WRITE64(handle, t0_offset, tst0.value); in npi_fflp_fcram_err_synd_test()
1472 npi_fflp_fcram_err_data_test(npi_handle_t handle, fcram_err_data_t *data) in npi_fflp_fcram_err_data_test() argument
1486 REG_PIO_WRITE64(handle, t1_offset, tst1.value); in npi_fflp_fcram_err_data_test()
1487 REG_PIO_WRITE64(handle, t2_offset, tst2.value); in npi_fflp_fcram_err_data_test()
1510 npi_fflp_cfg_enet_vlan_table_assoc(npi_handle_t handle, uint8_t mac_portn, in npi_fflp_cfg_enet_vlan_table_assoc() argument
1522 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_fflp_cfg_enet_vlan_table_assoc()
1531 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_fflp_cfg_enet_vlan_table_assoc()
1540 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, 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()
1627 npi_fflp_cfg_enet_vlan_table_set_pri(npi_handle_t handle, uint8_t mac_portn, in npi_fflp_cfg_enet_vlan_table_set_pri() argument
1637 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_fflp_cfg_enet_vlan_table_set_pri()
1646 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, 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()
1710 npi_fflp_cfg_vlan_table_clear(npi_handle_t handle, vlan_id_t vlan_id) in npi_fflp_cfg_vlan_table_clear() argument
1718 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_fflp_cfg_vlan_table_clear()
1728 REG_PIO_WRITE64(handle, offset, clear); in npi_fflp_cfg_vlan_table_clear()
1750 npi_fflp_vlan_tbl_get_err_log(npi_handle_t handle, vlan_tbl_err_log_t *err_stat) in npi_fflp_vlan_tbl_get_err_log() argument
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()
1794 npi_fflp_vlan_tbl_clr_err_log(npi_handle_t handle) in npi_fflp_vlan_tbl_clr_err_log() argument
1802 REG_PIO_WRITE64(handle, offset, err_log.value); in npi_fflp_vlan_tbl_clr_err_log()
1824 npi_fflp_cfg_enet_usr_cls_set(npi_handle_t handle, in npi_fflp_cfg_enet_usr_cls_set() argument
1834 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, 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()
1868 npi_fflp_cfg_enet_usr_cls_enable(npi_handle_t handle, tcam_class_t class) in npi_fflp_cfg_enet_usr_cls_enable() argument
1875 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, 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()
1903 npi_fflp_cfg_enet_usr_cls_disable(npi_handle_t handle, tcam_class_t class) in npi_fflp_cfg_enet_usr_cls_disable() argument
1910 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, 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()
1944 npi_fflp_cfg_ip_usr_cls_set(npi_handle_t handle, tcam_class_t class, in npi_fflp_cfg_ip_usr_cls_set() argument
1953 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, 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()
1991 npi_fflp_cfg_ip_usr_cls_set_iptun(npi_handle_t handle, tcam_class_t class, in npi_fflp_cfg_ip_usr_cls_set_iptun() argument
2000 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, 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()
2045 npi_fflp_cfg_ip_usr_cls_get_iptun(npi_handle_t handle, tcam_class_t class, in npi_fflp_cfg_ip_usr_cls_get_iptun() argument
2054 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, 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()
2090 npi_fflp_cfg_ip_usr_cls_enable(npi_handle_t handle, tcam_class_t class) in npi_fflp_cfg_ip_usr_cls_enable() argument
2097 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, 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()
2126 npi_fflp_cfg_ip_usr_cls_disable(npi_handle_t handle, tcam_class_t class) in npi_fflp_cfg_ip_usr_cls_disable() argument
2133 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, 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()
2169 npi_fflp_cfg_ip_cls_tcam_key(npi_handle_t handle, in npi_fflp_cfg_ip_cls_tcam_key() argument
2177 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_fflp_cfg_ip_cls_tcam_key()
2186 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, 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()
2244 npi_fflp_cfg_ip_cls_flow_key(npi_handle_t handle, tcam_class_t l3_class, in npi_fflp_cfg_ip_cls_flow_key() argument
2252 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, 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()
2305 npi_fflp_cfg_ip_cls_flow_key_get(npi_handle_t handle, in npi_fflp_cfg_ip_cls_flow_key_get() argument
2314 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, 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()
2377 NPI_DEBUG_MSG((handle.function, NPI_FFLP_CTL, in npi_fflp_cfg_ip_cls_flow_key_get()
2416 npi_fflp_cfg_ip_cls_flow_key_rfnl(npi_handle_t handle, tcam_class_t l3_class, in npi_fflp_cfg_ip_cls_flow_key_rfnl() argument
2424 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, 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()
2489 npi_fflp_cfg_sym_ip_cls_flow_key(npi_handle_t handle, tcam_class_t l3_class, in npi_fflp_cfg_sym_ip_cls_flow_key() argument
2497 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, 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()
2525 npi_fflp_cfg_ip_cls_flow_key_get_rfnl(npi_handle_t handle, in npi_fflp_cfg_ip_cls_flow_key_get_rfnl() argument
2534 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, 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()
2612 NPI_DEBUG_MSG((handle.function, NPI_FFLP_CTL, in npi_fflp_cfg_ip_cls_flow_key_get_rfnl()
2621 npi_fflp_cfg_ip_cls_tcam_key_get(npi_handle_t handle, in npi_fflp_cfg_ip_cls_tcam_key_get() argument
2629 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, 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()
2658 NPI_DEBUG_MSG((handle.function, NPI_CTL, in npi_fflp_cfg_ip_cls_tcam_key_get()
2677 npi_fflp_cfg_fcram_access(npi_handle_t handle, uint8_t access_ratio) in npi_fflp_cfg_fcram_access() argument
2685 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, 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()
2715 npi_fflp_cfg_tcam_access(npi_handle_t handle, uint8_t access_ratio) in npi_fflp_cfg_tcam_access() argument
2722 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, 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()
2755 npi_fflp_cfg_hash_h1poly(npi_handle_t handle, uint32_t init_value) in npi_fflp_cfg_hash_h1poly() argument
2766 REG_PIO_WRITE64(handle, offset, h1_cfg.value); in npi_fflp_cfg_hash_h1poly()
2783 npi_fflp_cfg_hash_h2poly(npi_handle_t handle, uint16_t init_value) in npi_fflp_cfg_hash_h2poly() argument
2794 REG_PIO_WRITE64(handle, offset, h2_cfg.value); in npi_fflp_cfg_hash_h2poly()
2818 npi_fflp_cfg_fcram_reset(npi_handle_t handle, in npi_fflp_cfg_fcram_reset() argument
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()
2843 npi_fflp_cfg_init_done(npi_handle_t handle) in npi_fflp_cfg_init_done() argument
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()
2859 npi_fflp_cfg_init_start(npi_handle_t handle) in npi_fflp_cfg_init_start() argument
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()
2879 npi_fflp_cfg_tcam_enable(npi_handle_t handle) in npi_fflp_cfg_tcam_enable() argument
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()
2899 npi_fflp_cfg_tcam_disable(npi_handle_t handle) in npi_fflp_cfg_tcam_disable() argument
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()
2920 npi_fflp_event_mask_config(npi_handle_t handle, io_op_t op_mode, in npi_fflp_event_mask_config() argument
2929 REG_PIO_READ64(handle, FFLP_ERR_MSK_REG, &mask_reg.value); in npi_fflp_event_mask_config()
2935 REG_PIO_WRITE64(handle, FFLP_ERR_MSK_REG, mask_reg.value); in npi_fflp_event_mask_config()
2939 REG_PIO_READ64(handle, FFLP_ERR_MSK_REG, &mask_reg.value); in npi_fflp_event_mask_config()
2941 REG_PIO_WRITE64(handle, FFLP_ERR_MSK_REG, mask_reg.value); in npi_fflp_event_mask_config()
2946 REG_PIO_WRITE64(handle, FFLP_ERR_MSK_REG, mask_reg.value); in npi_fflp_event_mask_config()
2949 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL, in npi_fflp_event_mask_config()
2962 npi_fflp_vlan_error_get(npi_handle_t handle, p_vlan_par_err_t p_err) in npi_fflp_vlan_error_get() argument
2964 REG_PIO_READ64(handle, FFLP_VLAN_PAR_ERR_REG, &p_err->value); in npi_fflp_vlan_error_get()
2971 npi_fflp_vlan_error_clear(npi_handle_t handle) in npi_fflp_vlan_error_clear() argument
2977 REG_PIO_WRITE64(handle, FFLP_ERR_MSK_REG, p_err.value); in npi_fflp_vlan_error_clear()
2985 npi_fflp_tcam_error_get(npi_handle_t handle, p_tcam_err_t p_err) in npi_fflp_tcam_error_get() argument
2987 REG_PIO_READ64(handle, FFLP_TCAM_ERR_REG, &p_err->value); in npi_fflp_tcam_error_get()
2994 npi_fflp_tcam_error_clear(npi_handle_t handle) in npi_fflp_tcam_error_clear() argument
3002 REG_PIO_WRITE64(handle, FFLP_TCAM_ERR_REG, p_err.value); in npi_fflp_tcam_error_clear()
3010 npi_fflp_fcram_error_get(npi_handle_t handle, in npi_fflp_fcram_error_get() argument
3016 REG_PIO_READ64(handle, offset, &p_err->value); in npi_fflp_fcram_error_get()
3023 npi_fflp_fcram_error_clear(npi_handle_t handle, uint8_t partition) in npi_fflp_fcram_error_clear() argument
3032 REG_PIO_WRITE64(handle, offset, in npi_fflp_fcram_error_clear()
3041 npi_fflp_fcram_error_log1_get(npi_handle_t handle, in npi_fflp_fcram_error_log1_get() argument
3044 REG_PIO_READ64(handle, HASH_LKUP_ERR_LOG1_REG, in npi_fflp_fcram_error_log1_get()
3052 npi_fflp_fcram_error_log2_get(npi_handle_t handle, in npi_fflp_fcram_error_log2_get() argument
3055 REG_PIO_READ64(handle, HASH_LKUP_ERR_LOG2_REG, in npi_fflp_fcram_error_log2_get()