Lines Matching refs:bulletin
31 struct pf_vf_bulletin_content **bulletin,
1453 struct pf_vf_bulletin_content *bulletin; in bnx2x_iov_link_update_vf() local
1459 rc = bnx2x_vf_op_prep(bp, idx, &vf, &bulletin, false); in bnx2x_iov_link_update_vf()
1466 bulletin->valid_bitmap |= 1 << LINK_VALID; in bnx2x_iov_link_update_vf()
1468 bulletin->link_speed = state->line_speed; in bnx2x_iov_link_update_vf()
1469 bulletin->link_flags = 0; in bnx2x_iov_link_update_vf()
1472 bulletin->link_flags |= VFPF_LINK_REPORT_LINK_DOWN; in bnx2x_iov_link_update_vf()
1475 bulletin->link_flags |= VFPF_LINK_REPORT_FULL_DUPLEX; in bnx2x_iov_link_update_vf()
1478 bulletin->link_flags |= VFPF_LINK_REPORT_RX_FC_ON; in bnx2x_iov_link_update_vf()
1481 bulletin->link_flags |= VFPF_LINK_REPORT_TX_FC_ON; in bnx2x_iov_link_update_vf()
1483 !(bulletin->link_flags & VFPF_LINK_REPORT_LINK_DOWN)) { in bnx2x_iov_link_update_vf()
1484 bulletin->valid_bitmap |= 1 << LINK_VALID; in bnx2x_iov_link_update_vf()
1485 bulletin->link_flags |= VFPF_LINK_REPORT_LINK_DOWN; in bnx2x_iov_link_update_vf()
1487 (bulletin->link_flags & VFPF_LINK_REPORT_LINK_DOWN)) { in bnx2x_iov_link_update_vf()
1488 bulletin->valid_bitmap |= 1 << LINK_VALID; in bnx2x_iov_link_update_vf()
1489 bulletin->link_speed = bnx2x_max_speed_cap(bp); in bnx2x_iov_link_update_vf()
1490 bulletin->link_flags &= ~VFPF_LINK_REPORT_LINK_DOWN; in bnx2x_iov_link_update_vf()
1498 vf->link_cfg, bulletin->link_speed, bulletin->link_flags); in bnx2x_iov_link_update_vf()
2538 struct pf_vf_bulletin_content *bulletin; in bnx2x_pf_set_vfs_vlan() local
2542 bulletin = BP_VF_BULLETIN(bp, vfidx); in bnx2x_pf_set_vfs_vlan()
2543 if (bulletin->valid_bitmap & (1 << VLAN_VALID)) in bnx2x_pf_set_vfs_vlan()
2544 bnx2x_set_vf_vlan(bp->dev, vfidx, bulletin->vlan, 0, in bnx2x_pf_set_vfs_vlan()
2562 struct pf_vf_bulletin_content **bulletin, in bnx2x_vf_op_prep() argument
2583 *bulletin = BP_VF_BULLETIN(bp, vfidx); in bnx2x_vf_op_prep()
2596 if (!*bulletin) { in bnx2x_vf_op_prep()
2610 struct pf_vf_bulletin_content *bulletin = NULL; in bnx2x_get_vf_config() local
2616 rc = bnx2x_vf_op_prep(bp, vfidx, &vf, &bulletin, true); in bnx2x_get_vf_config()
2645 if (bulletin->valid_bitmap & (1 << MAC_ADDR_VALID)) in bnx2x_get_vf_config()
2647 memcpy(&ivi->mac, bulletin->mac, ETH_ALEN); in bnx2x_get_vf_config()
2653 if (bulletin->valid_bitmap & (1 << VLAN_VALID)) in bnx2x_get_vf_config()
2655 ivi->vlan = bulletin->vlan; in bnx2x_get_vf_config()
2688 struct pf_vf_bulletin_content *bulletin = NULL; in bnx2x_set_vf_mac() local
2696 rc = bnx2x_vf_op_prep(bp, vfidx, &vf, &bulletin, true); in bnx2x_set_vf_mac()
2705 bulletin->valid_bitmap |= 1 << MAC_ADDR_VALID; in bnx2x_set_vf_mac()
2706 memcpy(bulletin->mac, mac, ETH_ALEN); in bnx2x_set_vf_mac()
2753 bnx2x_set_mac_one(bp, (u8 *)&bulletin->mac, mac_obj, true, in bnx2x_set_vf_mac()
2809 struct pf_vf_bulletin_content *bulletin = NULL; in bnx2x_set_vf_vlan() local
2829 rc = bnx2x_vf_op_prep(bp, vfidx, &vf, &bulletin, true); in bnx2x_set_vf_vlan()
2842 bulletin->valid_bitmap |= 1 << VLAN_VALID; in bnx2x_set_vf_vlan()
2844 bulletin->valid_bitmap &= ~(1 << VLAN_VALID); in bnx2x_set_vf_vlan()
2845 bulletin->vlan = vlan; in bnx2x_set_vf_vlan()
3027 u32 bnx2x_crc_vf_bulletin(struct pf_vf_bulletin_content *bulletin) in bnx2x_crc_vf_bulletin() argument
3030 ((u8 *)bulletin) + sizeof(bulletin->crc), in bnx2x_crc_vf_bulletin()
3031 bulletin->length - sizeof(bulletin->crc)); in bnx2x_crc_vf_bulletin()
3037 struct pf_vf_bulletin_content *bulletin; in bnx2x_sample_bulletin() local
3064 bulletin = &bp->shadow_bulletin.content; in bnx2x_sample_bulletin()
3067 if (bp->old_bulletin.version == bulletin->version) in bnx2x_sample_bulletin()
3071 if (bulletin->valid_bitmap & 1 << MAC_ADDR_VALID && in bnx2x_sample_bulletin()
3072 !ether_addr_equal(bulletin->mac, bp->old_bulletin.mac)) { in bnx2x_sample_bulletin()
3074 eth_hw_addr_set(bp->dev, bulletin->mac); in bnx2x_sample_bulletin()
3077 if (bulletin->valid_bitmap & (1 << LINK_VALID)) { in bnx2x_sample_bulletin()
3079 bulletin->link_speed, bulletin->link_flags); in bnx2x_sample_bulletin()
3081 bp->vf_link_vars.line_speed = bulletin->link_speed; in bnx2x_sample_bulletin()
3084 if (bulletin->link_flags & VFPF_LINK_REPORT_LINK_DOWN) in bnx2x_sample_bulletin()
3088 if (bulletin->link_flags & VFPF_LINK_REPORT_FULL_DUPLEX) in bnx2x_sample_bulletin()
3092 if (bulletin->link_flags & VFPF_LINK_REPORT_RX_FC_ON) in bnx2x_sample_bulletin()
3096 if (bulletin->link_flags & VFPF_LINK_REPORT_TX_FC_ON) in bnx2x_sample_bulletin()
3103 memcpy(&bp->old_bulletin, bulletin, in bnx2x_sample_bulletin()
3161 struct pf_vf_bulletin_content *bulletin; in bnx2x_iov_channel_down() local
3170 bulletin = BP_VF_BULLETIN(bp, vf_idx); in bnx2x_iov_channel_down()
3171 bulletin->valid_bitmap |= 1 << CHANNEL_DOWN; in bnx2x_iov_channel_down()