Lines Matching refs:bulletin
31 struct pf_vf_bulletin_content **bulletin,
1460 struct pf_vf_bulletin_content *bulletin; in bnx2x_iov_link_update_vf() local
1466 rc = bnx2x_vf_op_prep(bp, idx, &vf, &bulletin, false); in bnx2x_iov_link_update_vf()
1473 bulletin->valid_bitmap |= 1 << LINK_VALID; in bnx2x_iov_link_update_vf()
1475 bulletin->link_speed = state->line_speed; in bnx2x_iov_link_update_vf()
1476 bulletin->link_flags = 0; in bnx2x_iov_link_update_vf()
1479 bulletin->link_flags |= VFPF_LINK_REPORT_LINK_DOWN; in bnx2x_iov_link_update_vf()
1482 bulletin->link_flags |= VFPF_LINK_REPORT_FULL_DUPLEX; in bnx2x_iov_link_update_vf()
1485 bulletin->link_flags |= VFPF_LINK_REPORT_RX_FC_ON; in bnx2x_iov_link_update_vf()
1488 bulletin->link_flags |= VFPF_LINK_REPORT_TX_FC_ON; in bnx2x_iov_link_update_vf()
1490 !(bulletin->link_flags & VFPF_LINK_REPORT_LINK_DOWN)) { in bnx2x_iov_link_update_vf()
1491 bulletin->valid_bitmap |= 1 << LINK_VALID; in bnx2x_iov_link_update_vf()
1492 bulletin->link_flags |= VFPF_LINK_REPORT_LINK_DOWN; in bnx2x_iov_link_update_vf()
1494 (bulletin->link_flags & VFPF_LINK_REPORT_LINK_DOWN)) { in bnx2x_iov_link_update_vf()
1495 bulletin->valid_bitmap |= 1 << LINK_VALID; in bnx2x_iov_link_update_vf()
1496 bulletin->link_speed = bnx2x_max_speed_cap(bp); in bnx2x_iov_link_update_vf()
1497 bulletin->link_flags &= ~VFPF_LINK_REPORT_LINK_DOWN; in bnx2x_iov_link_update_vf()
1505 vf->link_cfg, bulletin->link_speed, bulletin->link_flags); in bnx2x_iov_link_update_vf()
2545 struct pf_vf_bulletin_content *bulletin; in bnx2x_pf_set_vfs_vlan() local
2549 bulletin = BP_VF_BULLETIN(bp, vfidx); in bnx2x_pf_set_vfs_vlan()
2550 if (bulletin->valid_bitmap & (1 << VLAN_VALID)) in bnx2x_pf_set_vfs_vlan()
2551 bnx2x_set_vf_vlan(bp->dev, vfidx, bulletin->vlan, 0, in bnx2x_pf_set_vfs_vlan()
2569 struct pf_vf_bulletin_content **bulletin, in bnx2x_vf_op_prep() argument
2590 *bulletin = BP_VF_BULLETIN(bp, vfidx); in bnx2x_vf_op_prep()
2603 if (!*bulletin) { in bnx2x_vf_op_prep()
2617 struct pf_vf_bulletin_content *bulletin = NULL; in bnx2x_get_vf_config() local
2623 rc = bnx2x_vf_op_prep(bp, vfidx, &vf, &bulletin, true); in bnx2x_get_vf_config()
2652 if (bulletin->valid_bitmap & (1 << MAC_ADDR_VALID)) in bnx2x_get_vf_config()
2654 memcpy(&ivi->mac, bulletin->mac, ETH_ALEN); in bnx2x_get_vf_config()
2660 if (bulletin->valid_bitmap & (1 << VLAN_VALID)) in bnx2x_get_vf_config()
2662 memcpy(&ivi->vlan, &bulletin->vlan, VLAN_HLEN); in bnx2x_get_vf_config()
2695 struct pf_vf_bulletin_content *bulletin = NULL; in bnx2x_set_vf_mac() local
2703 rc = bnx2x_vf_op_prep(bp, vfidx, &vf, &bulletin, true); in bnx2x_set_vf_mac()
2712 bulletin->valid_bitmap |= 1 << MAC_ADDR_VALID; in bnx2x_set_vf_mac()
2713 memcpy(bulletin->mac, mac, ETH_ALEN); in bnx2x_set_vf_mac()
2760 bnx2x_set_mac_one(bp, (u8 *)&bulletin->mac, mac_obj, true, in bnx2x_set_vf_mac()
2816 struct pf_vf_bulletin_content *bulletin = NULL; in bnx2x_set_vf_vlan() local
2836 rc = bnx2x_vf_op_prep(bp, vfidx, &vf, &bulletin, true); in bnx2x_set_vf_vlan()
2849 bulletin->valid_bitmap |= 1 << VLAN_VALID; in bnx2x_set_vf_vlan()
2851 bulletin->valid_bitmap &= ~(1 << VLAN_VALID); in bnx2x_set_vf_vlan()
2852 bulletin->vlan = vlan; in bnx2x_set_vf_vlan()
3034 u32 bnx2x_crc_vf_bulletin(struct pf_vf_bulletin_content *bulletin) in bnx2x_crc_vf_bulletin() argument
3037 ((u8 *)bulletin) + sizeof(bulletin->crc), in bnx2x_crc_vf_bulletin()
3038 bulletin->length - sizeof(bulletin->crc)); in bnx2x_crc_vf_bulletin()
3044 struct pf_vf_bulletin_content *bulletin; in bnx2x_sample_bulletin() local
3071 bulletin = &bp->shadow_bulletin.content; in bnx2x_sample_bulletin()
3074 if (bp->old_bulletin.version == bulletin->version) in bnx2x_sample_bulletin()
3078 if (bulletin->valid_bitmap & 1 << MAC_ADDR_VALID && in bnx2x_sample_bulletin()
3079 !ether_addr_equal(bulletin->mac, bp->old_bulletin.mac)) { in bnx2x_sample_bulletin()
3081 memcpy(bp->dev->dev_addr, bulletin->mac, ETH_ALEN); in bnx2x_sample_bulletin()
3084 if (bulletin->valid_bitmap & (1 << LINK_VALID)) { in bnx2x_sample_bulletin()
3086 bulletin->link_speed, bulletin->link_flags); in bnx2x_sample_bulletin()
3088 bp->vf_link_vars.line_speed = bulletin->link_speed; in bnx2x_sample_bulletin()
3091 if (bulletin->link_flags & VFPF_LINK_REPORT_LINK_DOWN) in bnx2x_sample_bulletin()
3095 if (bulletin->link_flags & VFPF_LINK_REPORT_FULL_DUPLEX) in bnx2x_sample_bulletin()
3099 if (bulletin->link_flags & VFPF_LINK_REPORT_RX_FC_ON) in bnx2x_sample_bulletin()
3103 if (bulletin->link_flags & VFPF_LINK_REPORT_TX_FC_ON) in bnx2x_sample_bulletin()
3110 memcpy(&bp->old_bulletin, bulletin, in bnx2x_sample_bulletin()
3168 struct pf_vf_bulletin_content *bulletin; in bnx2x_iov_channel_down() local
3177 bulletin = BP_VF_BULLETIN(bp, vf_idx); in bnx2x_iov_channel_down()
3178 bulletin->valid_bitmap |= 1 << CHANNEL_DOWN; in bnx2x_iov_channel_down()