Lines Matching refs:bulletin
31 struct pf_vf_bulletin_content **bulletin,
1439 struct pf_vf_bulletin_content *bulletin; in bnx2x_iov_link_update_vf() local
1445 rc = bnx2x_vf_op_prep(bp, idx, &vf, &bulletin, false); in bnx2x_iov_link_update_vf()
1452 bulletin->valid_bitmap |= 1 << LINK_VALID; in bnx2x_iov_link_update_vf()
1454 bulletin->link_speed = state->line_speed; in bnx2x_iov_link_update_vf()
1455 bulletin->link_flags = 0; in bnx2x_iov_link_update_vf()
1458 bulletin->link_flags |= VFPF_LINK_REPORT_LINK_DOWN; in bnx2x_iov_link_update_vf()
1461 bulletin->link_flags |= VFPF_LINK_REPORT_FULL_DUPLEX; in bnx2x_iov_link_update_vf()
1464 bulletin->link_flags |= VFPF_LINK_REPORT_RX_FC_ON; in bnx2x_iov_link_update_vf()
1467 bulletin->link_flags |= VFPF_LINK_REPORT_TX_FC_ON; in bnx2x_iov_link_update_vf()
1469 !(bulletin->link_flags & VFPF_LINK_REPORT_LINK_DOWN)) { in bnx2x_iov_link_update_vf()
1470 bulletin->valid_bitmap |= 1 << LINK_VALID; in bnx2x_iov_link_update_vf()
1471 bulletin->link_flags |= VFPF_LINK_REPORT_LINK_DOWN; in bnx2x_iov_link_update_vf()
1473 (bulletin->link_flags & VFPF_LINK_REPORT_LINK_DOWN)) { in bnx2x_iov_link_update_vf()
1474 bulletin->valid_bitmap |= 1 << LINK_VALID; in bnx2x_iov_link_update_vf()
1475 bulletin->link_speed = bnx2x_max_speed_cap(bp); in bnx2x_iov_link_update_vf()
1476 bulletin->link_flags &= ~VFPF_LINK_REPORT_LINK_DOWN; in bnx2x_iov_link_update_vf()
1484 vf->link_cfg, bulletin->link_speed, bulletin->link_flags); in bnx2x_iov_link_update_vf()
2530 struct pf_vf_bulletin_content *bulletin; in bnx2x_pf_set_vfs_vlan() local
2534 bulletin = BP_VF_BULLETIN(bp, vfidx); in bnx2x_pf_set_vfs_vlan()
2535 if (bulletin->valid_bitmap & (1 << VLAN_VALID)) in bnx2x_pf_set_vfs_vlan()
2536 bnx2x_set_vf_vlan(bp->dev, vfidx, bulletin->vlan, 0, in bnx2x_pf_set_vfs_vlan()
2554 struct pf_vf_bulletin_content **bulletin, in bnx2x_vf_op_prep() argument
2575 *bulletin = BP_VF_BULLETIN(bp, vfidx); in bnx2x_vf_op_prep()
2588 if (!*bulletin) { in bnx2x_vf_op_prep()
2602 struct pf_vf_bulletin_content *bulletin = NULL; in bnx2x_get_vf_config() local
2608 rc = bnx2x_vf_op_prep(bp, vfidx, &vf, &bulletin, true); in bnx2x_get_vf_config()
2637 if (bulletin->valid_bitmap & (1 << MAC_ADDR_VALID)) in bnx2x_get_vf_config()
2639 memcpy(&ivi->mac, bulletin->mac, ETH_ALEN); in bnx2x_get_vf_config()
2645 if (bulletin->valid_bitmap & (1 << VLAN_VALID)) in bnx2x_get_vf_config()
2647 memcpy(&ivi->vlan, &bulletin->vlan, VLAN_HLEN); in bnx2x_get_vf_config()
2680 struct pf_vf_bulletin_content *bulletin = NULL; in bnx2x_set_vf_mac() local
2688 rc = bnx2x_vf_op_prep(bp, vfidx, &vf, &bulletin, true); in bnx2x_set_vf_mac()
2697 bulletin->valid_bitmap |= 1 << MAC_ADDR_VALID; in bnx2x_set_vf_mac()
2698 memcpy(bulletin->mac, mac, ETH_ALEN); in bnx2x_set_vf_mac()
2745 bnx2x_set_mac_one(bp, (u8 *)&bulletin->mac, mac_obj, true, in bnx2x_set_vf_mac()
2801 struct pf_vf_bulletin_content *bulletin = NULL; in bnx2x_set_vf_vlan() local
2821 rc = bnx2x_vf_op_prep(bp, vfidx, &vf, &bulletin, true); in bnx2x_set_vf_vlan()
2834 bulletin->valid_bitmap |= 1 << VLAN_VALID; in bnx2x_set_vf_vlan()
2836 bulletin->valid_bitmap &= ~(1 << VLAN_VALID); in bnx2x_set_vf_vlan()
2837 bulletin->vlan = vlan; in bnx2x_set_vf_vlan()
3019 u32 bnx2x_crc_vf_bulletin(struct pf_vf_bulletin_content *bulletin) in bnx2x_crc_vf_bulletin() argument
3022 ((u8 *)bulletin) + sizeof(bulletin->crc), in bnx2x_crc_vf_bulletin()
3023 bulletin->length - sizeof(bulletin->crc)); in bnx2x_crc_vf_bulletin()
3029 struct pf_vf_bulletin_content *bulletin; in bnx2x_sample_bulletin() local
3056 bulletin = &bp->shadow_bulletin.content; in bnx2x_sample_bulletin()
3059 if (bp->old_bulletin.version == bulletin->version) in bnx2x_sample_bulletin()
3063 if (bulletin->valid_bitmap & 1 << MAC_ADDR_VALID && in bnx2x_sample_bulletin()
3064 !ether_addr_equal(bulletin->mac, bp->old_bulletin.mac)) { in bnx2x_sample_bulletin()
3066 memcpy(bp->dev->dev_addr, bulletin->mac, ETH_ALEN); in bnx2x_sample_bulletin()
3069 if (bulletin->valid_bitmap & (1 << LINK_VALID)) { in bnx2x_sample_bulletin()
3071 bulletin->link_speed, bulletin->link_flags); in bnx2x_sample_bulletin()
3073 bp->vf_link_vars.line_speed = bulletin->link_speed; in bnx2x_sample_bulletin()
3076 if (bulletin->link_flags & VFPF_LINK_REPORT_LINK_DOWN) in bnx2x_sample_bulletin()
3080 if (bulletin->link_flags & VFPF_LINK_REPORT_FULL_DUPLEX) in bnx2x_sample_bulletin()
3084 if (bulletin->link_flags & VFPF_LINK_REPORT_RX_FC_ON) in bnx2x_sample_bulletin()
3088 if (bulletin->link_flags & VFPF_LINK_REPORT_TX_FC_ON) in bnx2x_sample_bulletin()
3095 memcpy(&bp->old_bulletin, bulletin, in bnx2x_sample_bulletin()
3153 struct pf_vf_bulletin_content *bulletin; in bnx2x_iov_channel_down() local
3162 bulletin = BP_VF_BULLETIN(bp, vf_idx); in bnx2x_iov_channel_down()
3163 bulletin->valid_bitmap |= 1 << CHANNEL_DOWN; in bnx2x_iov_channel_down()