Lines Matching refs:pkind
52 struct pkind_cfg pkind; member
446 nic->pkind.minlen = 0; in nic_init_hw()
447 nic->pkind.maxlen = NIC_HW_MAX_FRS + VLAN_ETH_HLEN + ETH_FCS_LEN + 4; in nic_init_hw()
448 nic->pkind.lenerr_en = 1; in nic_init_hw()
449 nic->pkind.rx_hdr = 0; in nic_init_hw()
450 nic->pkind.hdr_sl = 0; in nic_init_hw()
454 *(u64 *)&nic->pkind); in nic_init_hw()
888 struct pkind_cfg *pkind; in nic_config_timestamp() local
900 pkind = (struct pkind_cfg *)&pkind_val; in nic_config_timestamp()
902 if (ptp->enable && !pkind->hdr_sl) { in nic_config_timestamp()
906 pkind->hdr_sl = 4; in nic_config_timestamp()
908 pkind->maxlen += (pkind->hdr_sl * 2); in nic_config_timestamp()
912 } else if (!ptp->enable && pkind->hdr_sl) { in nic_config_timestamp()
913 pkind->maxlen -= (pkind->hdr_sl * 2); in nic_config_timestamp()
914 pkind->hdr_sl = 0; in nic_config_timestamp()