Lines Matching refs:glort
286 bool fm10k_glort_valid_pf(struct fm10k_hw *hw, u16 glort) in fm10k_glort_valid_pf() argument
288 glort &= hw->mac.dglort_map >> FM10K_DGLORTMAP_MASK_SHIFT; in fm10k_glort_valid_pf()
290 return glort == (hw->mac.dglort_map & FM10K_DGLORTMAP_NONE); in fm10k_glort_valid_pf()
305 static s32 fm10k_update_xc_addr_pf(struct fm10k_hw *hw, u16 glort, in fm10k_update_xc_addr_pf() argument
316 if (!fm10k_glort_valid_pf(hw, glort) || vid >= FM10K_VLAN_TABLE_VID_MAX) in fm10k_update_xc_addr_pf()
327 mac_update.glort = cpu_to_le16(glort); in fm10k_update_xc_addr_pf()
352 static s32 fm10k_update_uc_addr_pf(struct fm10k_hw *hw, u16 glort, in fm10k_update_uc_addr_pf() argument
359 return fm10k_update_xc_addr_pf(hw, glort, mac, vid, add, flags); in fm10k_update_uc_addr_pf()
373 static s32 fm10k_update_mc_addr_pf(struct fm10k_hw *hw, u16 glort, in fm10k_update_mc_addr_pf() argument
380 return fm10k_update_xc_addr_pf(hw, glort, mac, vid, add, 0); in fm10k_update_mc_addr_pf()
393 static s32 fm10k_update_xcast_mode_pf(struct fm10k_hw *hw, u16 glort, u8 mode) in fm10k_update_xcast_mode_pf() argument
402 if (!fm10k_glort_valid_pf(hw, glort)) in fm10k_update_xcast_mode_pf()
409 xcast_mode = ((u32)mode << 16) | glort; in fm10k_update_xcast_mode_pf()
460 static s32 fm10k_update_lport_state_pf(struct fm10k_hw *hw, u16 glort, in fm10k_update_lport_state_pf() argument
471 if (!fm10k_glort_valid_pf(hw, glort)) in fm10k_update_lport_state_pf()
476 fm10k_update_xcast_mode_pf(hw, glort, FM10K_XCAST_MODE_NONE); in fm10k_update_lport_state_pf()
479 lport_msg = ((u32)count << 16) | glort; in fm10k_update_lport_state_pf()
502 u16 glort, queue_count, vsi_count, pc_count; in fm10k_configure_dglort_map_pf() local
519 glort = dglort->glort; in fm10k_configure_dglort_map_pf()
523 for (vsi = 0; vsi < vsi_count; vsi++, glort++) { in fm10k_configure_dglort_map_pf()
528 fm10k_write_reg(hw, FM10K_TX_SGLORT(q_idx), glort); in fm10k_configure_dglort_map_pf()
529 fm10k_write_reg(hw, FM10K_RX_SGLORT(q_idx), glort); in fm10k_configure_dglort_map_pf()
567 dglortmap |= dglort->glort; in fm10k_configure_dglort_map_pf()
1085 u16 glort = (hw->mac.dglort_map + lport_idx) & FM10K_DGLORTMAP_NONE; in fm10k_iov_set_lport_pf() local
1088 if (!fm10k_glort_valid_pf(hw, glort)) in fm10k_iov_set_lport_pf()
1092 vf_info->glort = glort; in fm10k_iov_set_lport_pf()
1113 fm10k_update_lport_state_pf(hw, vf_info->glort, 1, false); in fm10k_iov_reset_lport_pf()
1122 vf_info->glort = 0; in fm10k_iov_reset_lport_pf()
1269 err = hw->mac.ops.update_uc_addr(hw, vf_info->glort, in fm10k_iov_msg_mac_vlan_pf()
1295 err = hw->mac.ops.update_mc_addr(hw, vf_info->glort, in fm10k_iov_msg_mac_vlan_pf()
1376 fm10k_update_xcast_mode_pf(hw, vf_info->glort, mode); in fm10k_iov_msg_lport_state_pf()
1383 err = fm10k_update_lport_state_pf(hw, vf_info->glort, in fm10k_iov_msg_lport_state_pf()
1408 err = fm10k_update_lport_state_pf(hw, vf_info->glort, 1, in fm10k_iov_msg_lport_state_pf()
1645 u16 glort, mask; in fm10k_msg_lport_map_pf() local
1655 glort = FM10K_MSG_HDR_FIELD_GET(dglort_map, LPORT_MAP_GLORT); in fm10k_msg_lport_map_pf()
1659 if (!mask || (glort & ~mask)) in fm10k_msg_lport_map_pf()
1688 u16 glort, pvid; in fm10k_msg_update_pvid_pf() local
1698 glort = FM10K_MSG_HDR_FIELD_GET(pvid_update, UPDATE_PVID_GLORT); in fm10k_msg_update_pvid_pf()
1702 if (!fm10k_glort_valid_pf(hw, glort)) in fm10k_msg_update_pvid_pf()