Lines Matching refs:ramrod
358 struct bnx2x_vlan_mac_ramrod_params ramrod; in bnx2x_vf_vlan_mac_clear() local
366 memset(&ramrod, 0, sizeof(struct bnx2x_vlan_mac_ramrod_params)); in bnx2x_vf_vlan_mac_clear()
368 set_bit(BNX2X_ETH_MAC, &ramrod.user_req.vlan_mac_flags); in bnx2x_vf_vlan_mac_clear()
369 ramrod.vlan_mac_obj = &bnx2x_vfq(vf, qid, vlan_mac_obj); in bnx2x_vf_vlan_mac_clear()
371 set_bit(BNX2X_ETH_MAC, &ramrod.user_req.vlan_mac_flags); in bnx2x_vf_vlan_mac_clear()
372 ramrod.vlan_mac_obj = &bnx2x_vfq(vf, qid, mac_obj); in bnx2x_vf_vlan_mac_clear()
374 ramrod.vlan_mac_obj = &bnx2x_vfq(vf, qid, vlan_obj); in bnx2x_vf_vlan_mac_clear()
376 ramrod.user_req.cmd = BNX2X_VLAN_MAC_DEL; in bnx2x_vf_vlan_mac_clear()
378 set_bit(RAMROD_EXEC, &ramrod.ramrod_flags); in bnx2x_vf_vlan_mac_clear()
380 set_bit(RAMROD_DRV_CLR_ONLY, &ramrod.ramrod_flags); in bnx2x_vf_vlan_mac_clear()
382 set_bit(RAMROD_COMP_WAIT, &ramrod.ramrod_flags); in bnx2x_vf_vlan_mac_clear()
385 rc = ramrod.vlan_mac_obj->delete_all(bp, in bnx2x_vf_vlan_mac_clear()
386 ramrod.vlan_mac_obj, in bnx2x_vf_vlan_mac_clear()
387 &ramrod.user_req.vlan_mac_flags, in bnx2x_vf_vlan_mac_clear()
388 &ramrod.ramrod_flags); in bnx2x_vf_vlan_mac_clear()
404 struct bnx2x_vlan_mac_ramrod_params ramrod; in bnx2x_vf_mac_vlan_config() local
413 memset(&ramrod, 0, sizeof(struct bnx2x_vlan_mac_ramrod_params)); in bnx2x_vf_mac_vlan_config()
415 ramrod.vlan_mac_obj = &bnx2x_vfq(vf, qid, vlan_mac_obj); in bnx2x_vf_mac_vlan_config()
416 ramrod.user_req.u.vlan.vlan = filter->vid; in bnx2x_vf_mac_vlan_config()
417 memcpy(&ramrod.user_req.u.mac.mac, filter->mac, ETH_ALEN); in bnx2x_vf_mac_vlan_config()
418 set_bit(BNX2X_ETH_MAC, &ramrod.user_req.vlan_mac_flags); in bnx2x_vf_mac_vlan_config()
420 ramrod.vlan_mac_obj = &bnx2x_vfq(vf, qid, vlan_obj); in bnx2x_vf_mac_vlan_config()
421 ramrod.user_req.u.vlan.vlan = filter->vid; in bnx2x_vf_mac_vlan_config()
423 set_bit(BNX2X_ETH_MAC, &ramrod.user_req.vlan_mac_flags); in bnx2x_vf_mac_vlan_config()
424 ramrod.vlan_mac_obj = &bnx2x_vfq(vf, qid, mac_obj); in bnx2x_vf_mac_vlan_config()
425 memcpy(&ramrod.user_req.u.mac.mac, filter->mac, ETH_ALEN); in bnx2x_vf_mac_vlan_config()
427 ramrod.user_req.cmd = filter->add ? BNX2X_VLAN_MAC_ADD : in bnx2x_vf_mac_vlan_config()
430 set_bit(RAMROD_EXEC, &ramrod.ramrod_flags); in bnx2x_vf_mac_vlan_config()
432 set_bit(RAMROD_DRV_CLR_ONLY, &ramrod.ramrod_flags); in bnx2x_vf_mac_vlan_config()
434 set_bit(RAMROD_COMP_WAIT, &ramrod.ramrod_flags); in bnx2x_vf_mac_vlan_config()
437 rc = bnx2x_config_vlan_mac(bp, &ramrod); in bnx2x_vf_mac_vlan_config()
609 struct bnx2x_rx_mode_ramrod_params *ramrod, in bnx2x_vf_prep_rx_mode() argument
615 memset(ramrod, 0, sizeof(*ramrod)); in bnx2x_vf_prep_rx_mode()
616 ramrod->cid = vfq->cid; in bnx2x_vf_prep_rx_mode()
617 ramrod->cl_id = vfq_cl_id(vf, vfq); in bnx2x_vf_prep_rx_mode()
618 ramrod->rx_mode_obj = &bp->rx_mode_obj; in bnx2x_vf_prep_rx_mode()
619 ramrod->func_id = FW_VF_HANDLE(vf->abs_vfid); in bnx2x_vf_prep_rx_mode()
620 ramrod->rx_accept_flags = accept_flags; in bnx2x_vf_prep_rx_mode()
621 ramrod->tx_accept_flags = accept_flags; in bnx2x_vf_prep_rx_mode()
622 ramrod->pstate = &vf->filter_state; in bnx2x_vf_prep_rx_mode()
623 ramrod->state = BNX2X_FILTER_RX_MODE_PENDING; in bnx2x_vf_prep_rx_mode()
626 set_bit(RAMROD_RX, &ramrod->ramrod_flags); in bnx2x_vf_prep_rx_mode()
627 set_bit(RAMROD_TX, &ramrod->ramrod_flags); in bnx2x_vf_prep_rx_mode()
629 ramrod->rdata = bnx2x_vf_sp(bp, vf, rx_mode_rdata.e2); in bnx2x_vf_prep_rx_mode()
630 ramrod->rdata_mapping = bnx2x_vf_sp_map(bp, vf, rx_mode_rdata.e2); in bnx2x_vf_prep_rx_mode()
636 struct bnx2x_rx_mode_ramrod_params ramrod; in bnx2x_vf_rxmode() local
640 bnx2x_vf_prep_rx_mode(bp, qid, &ramrod, vf, accept_flags); in bnx2x_vf_rxmode()
641 set_bit(RAMROD_COMP_WAIT, &ramrod.ramrod_flags); in bnx2x_vf_rxmode()
642 vfq_get(vf, qid)->accept_flags = ramrod.rx_accept_flags; in bnx2x_vf_rxmode()
643 return bnx2x_config_rx_mode(bp, &ramrod); in bnx2x_vf_rxmode()