Lines Matching refs:offset

173 	uint64_t offset;  in hpi_pfc_set_config()  local
175 offset = PFC_CONFIG; in hpi_pfc_set_config()
176 REG_PIO_WRITE64(handle, offset, config.value); in hpi_pfc_set_config()
184 uint64_t offset; in hpi_pfc_get_config() local
186 offset = PFC_CONFIG; in hpi_pfc_get_config()
187 REG_PIO_READ64(handle, offset, &configp->value); in hpi_pfc_get_config()
326 int offset; in hpi_pfc_cfg_vlan_table_clear() local
333 offset = PFC_VLAN_TABLE + i * step; in hpi_pfc_cfg_vlan_table_clear()
334 REG_PIO_WRITE64(handle, offset, table_entry.value); in hpi_pfc_cfg_vlan_table_clear()
343 uint64_t offset; in hpi_pfc_cfg_vlan_table_entry_clear() local
351 offset = PFC_VLAN_REG_OFFSET(vlan_id); in hpi_pfc_cfg_vlan_table_entry_clear()
352 REG_PIO_READ64(handle, offset, (uint64_t *)&vlan_tbl_entry.value); in hpi_pfc_cfg_vlan_table_entry_clear()
358 REG_PIO_WRITE64(handle, offset, vlan_tbl_entry.value); in hpi_pfc_cfg_vlan_table_entry_clear()
366 uint64_t offset; in hpi_pfc_cfg_vlan_table_entry_set() local
374 offset = PFC_VLAN_REG_OFFSET(vlan_id); in hpi_pfc_cfg_vlan_table_entry_set()
375 REG_PIO_READ64(handle, offset, (uint64_t *)&vlan_tbl_entry.value); in hpi_pfc_cfg_vlan_table_entry_set()
381 REG_PIO_WRITE64(handle, offset, vlan_tbl_entry.value); in hpi_pfc_cfg_vlan_table_entry_set()
414 uint64_t offset; in hpi_pfc_get_vlan_parity_log() local
416 offset = PFC_VLAN_PAR_ERR_LOG; in hpi_pfc_get_vlan_parity_log()
417 REG_PIO_READ64(handle, offset, &logp->value); in hpi_pfc_get_vlan_parity_log()
425 uint64_t offset; in hpi_pfc_set_mac_address() local
433 offset = PFC_MAC_ADDRESS(slot); in hpi_pfc_set_mac_address()
441 REG_PIO_WRITE64(handle, offset, addr.value); in hpi_pfc_set_mac_address()
450 uint64_t offset, moffset; in hpi_pfc_clear_mac_address() local
459 offset = PFC_MAC_ADDRESS(slot); in hpi_pfc_clear_mac_address()
462 REG_PIO_WRITE64(handle, offset, zaddr); in hpi_pfc_clear_mac_address()
471 uint64_t offset; in hpi_pfc_clear_multicast_hash_table() local
476 offset = PFC_HASH_ADDR(slot); in hpi_pfc_clear_multicast_hash_table()
477 REG_PIO_WRITE64(handle, offset, 0ULL); in hpi_pfc_clear_multicast_hash_table()
486 uint64_t offset; in hpi_pfc_set_multicast_hash_table() local
491 offset = PFC_HASH_ADDR(slot); in hpi_pfc_set_multicast_hash_table()
492 REG_PIO_WRITE64(handle, offset, address); in hpi_pfc_set_multicast_hash_table()
502 uint64_t offset; in hpi_pfc_set_l2_class_slot() local
517 offset = PFC_L2_CONFIG(slot); in hpi_pfc_set_l2_class_slot()
518 REG_PIO_WRITE64(handle, offset, l2_config.value); in hpi_pfc_set_l2_class_slot()
528 uint64_t offset; in hpi_pfc_set_l3_class_config() local
545 offset = PFC_L3_CONFIG(slot); in hpi_pfc_set_l3_class_config()
546 REG_PIO_WRITE64(handle, offset, l3_config.value); in hpi_pfc_set_l3_class_config()
556 uint64_t offset; in hpi_pfc_get_l3_class_config() local
561 offset = PFC_L3_CONFIG(slot); in hpi_pfc_get_l3_class_config()
562 REG_PIO_READ64(handle, offset, &l3_config.value); in hpi_pfc_get_l3_class_config()
580 uint64_t offset; in hpi_pfc_set_tcam_control() local
582 offset = PFC_TCAM_CTRL; in hpi_pfc_set_tcam_control()
583 REG_PIO_WRITE64(handle, offset, tcontrolp->value); in hpi_pfc_set_tcam_control()
655 uint64_t offset; in hpi_pfc_get_tcam_parity_log() local
657 offset = PFC_TCAM_PAR_ERR_LOG; in hpi_pfc_get_tcam_parity_log()
658 REG_PIO_READ64(handle, offset, &logp->value); in hpi_pfc_get_tcam_parity_log()
666 uint64_t offset; in hpi_pfc_get_tcam_auto_init() local
668 offset = PFC_AUTO_INIT; in hpi_pfc_get_tcam_auto_init()
669 REG_PIO_READ64(handle, offset, &autoinitp->value); in hpi_pfc_get_tcam_auto_init()
677 uint64_t offset; in hpi_pfc_set_tcp_control_discard() local
682 offset = TCP_CTRL_MASK; in hpi_pfc_set_tcp_control_discard()
683 REG_PIO_READ64(handle, offset, &tcp.value); in hpi_pfc_set_tcp_control_discard()
690 REG_PIO_WRITE64(handle, offset, tcp.value); in hpi_pfc_set_tcp_control_discard()
698 uint64_t offset; in hpi_pfc_set_tcp_control_fin() local
703 offset = TCP_CTRL_MASK; in hpi_pfc_set_tcp_control_fin()
704 REG_PIO_READ64(handle, offset, &tcp.value); in hpi_pfc_set_tcp_control_fin()
711 REG_PIO_WRITE64(handle, offset, tcp.value); in hpi_pfc_set_tcp_control_fin()
718 uint64_t offset; in hpi_pfc_set_tcp_control_syn() local
723 offset = TCP_CTRL_MASK; in hpi_pfc_set_tcp_control_syn()
724 REG_PIO_READ64(handle, offset, &tcp.value); in hpi_pfc_set_tcp_control_syn()
731 REG_PIO_WRITE64(handle, offset, tcp.value); in hpi_pfc_set_tcp_control_syn()
738 uint64_t offset; in hpi_pfc_set_tcp_control_rst() local
743 offset = TCP_CTRL_MASK; in hpi_pfc_set_tcp_control_rst()
744 REG_PIO_READ64(handle, offset, &tcp.value); in hpi_pfc_set_tcp_control_rst()
751 REG_PIO_WRITE64(handle, offset, tcp.value); in hpi_pfc_set_tcp_control_rst()
758 uint64_t offset; in hpi_pfc_set_tcp_control_psh() local
763 offset = TCP_CTRL_MASK; in hpi_pfc_set_tcp_control_psh()
764 REG_PIO_READ64(handle, offset, &tcp.value); in hpi_pfc_set_tcp_control_psh()
771 REG_PIO_WRITE64(handle, offset, tcp.value); in hpi_pfc_set_tcp_control_psh()
778 uint64_t offset; in hpi_pfc_set_tcp_control_ack() local
783 offset = TCP_CTRL_MASK; in hpi_pfc_set_tcp_control_ack()
784 REG_PIO_READ64(handle, offset, &tcp.value); in hpi_pfc_set_tcp_control_ack()
791 REG_PIO_WRITE64(handle, offset, tcp.value); in hpi_pfc_set_tcp_control_ack()
798 uint64_t offset; in hpi_pfc_set_hash_seed_value() local
804 offset = SRC_HASH_VAL; in hpi_pfc_set_hash_seed_value()
805 REG_PIO_WRITE64(handle, offset, src_hash_seed.value); in hpi_pfc_set_hash_seed_value()
813 uint64_t offset; in hpi_pfc_get_interrupt_status() local
815 offset = PFC_INT_STATUS; in hpi_pfc_get_interrupt_status()
816 REG_PIO_READ64(handle, offset, &statusp->value); in hpi_pfc_get_interrupt_status()
824 uint64_t offset; in hpi_pfc_clear_interrupt_status() local
826 offset = PFC_INT_STATUS; in hpi_pfc_clear_interrupt_status()
827 REG_PIO_WRITE64(handle, offset, HXGE_PFC_INT_STATUS_CLEAR); in hpi_pfc_clear_interrupt_status()
837 uint64_t offset; in hpi_pfc_set_interrupt_mask() local
856 offset = PFC_INT_MASK; in hpi_pfc_set_interrupt_mask()
857 REG_PIO_WRITE64(handle, offset, mask.value); in hpi_pfc_set_interrupt_mask()
865 uint64_t offset; in hpi_pfc_get_drop_log() local
867 offset = PFC_DROP_LOG; in hpi_pfc_get_drop_log()
868 REG_PIO_READ64(handle, offset, &logp->value); in hpi_pfc_get_drop_log()
878 uint64_t offset; in hpi_pfc_set_drop_log_mask() local
894 offset = PFC_DROP_LOG_MASK; in hpi_pfc_set_drop_log_mask()
895 REG_PIO_WRITE64(handle, offset, log.value); in hpi_pfc_set_drop_log_mask()
903 uint64_t offset; in hpi_pfc_get_bad_csum_counter() local
905 offset = PFC_BAD_CS_COUNTER; in hpi_pfc_get_bad_csum_counter()
906 REG_PIO_READ64(handle, offset, countp); in hpi_pfc_get_bad_csum_counter()
914 uint64_t offset; in hpi_pfc_get_drop_counter() local
916 offset = PFC_DROP_COUNTER; in hpi_pfc_get_drop_counter()
917 REG_PIO_READ64(handle, offset, countp); in hpi_pfc_get_drop_counter()