Lines Matching refs:ramrod

337 	struct bnx2x_vlan_mac_ramrod_params ramrod;  in bnx2x_vf_vlan_mac_clear()  local
345 memset(&ramrod, 0, sizeof(struct bnx2x_vlan_mac_ramrod_params)); in bnx2x_vf_vlan_mac_clear()
347 set_bit(BNX2X_ETH_MAC, &ramrod.user_req.vlan_mac_flags); in bnx2x_vf_vlan_mac_clear()
348 ramrod.vlan_mac_obj = &bnx2x_vfq(vf, qid, vlan_mac_obj); in bnx2x_vf_vlan_mac_clear()
350 set_bit(BNX2X_ETH_MAC, &ramrod.user_req.vlan_mac_flags); in bnx2x_vf_vlan_mac_clear()
351 ramrod.vlan_mac_obj = &bnx2x_vfq(vf, qid, mac_obj); in bnx2x_vf_vlan_mac_clear()
353 ramrod.vlan_mac_obj = &bnx2x_vfq(vf, qid, vlan_obj); in bnx2x_vf_vlan_mac_clear()
355 ramrod.user_req.cmd = BNX2X_VLAN_MAC_DEL; in bnx2x_vf_vlan_mac_clear()
357 set_bit(RAMROD_EXEC, &ramrod.ramrod_flags); in bnx2x_vf_vlan_mac_clear()
359 set_bit(RAMROD_DRV_CLR_ONLY, &ramrod.ramrod_flags); in bnx2x_vf_vlan_mac_clear()
361 set_bit(RAMROD_COMP_WAIT, &ramrod.ramrod_flags); in bnx2x_vf_vlan_mac_clear()
364 rc = ramrod.vlan_mac_obj->delete_all(bp, in bnx2x_vf_vlan_mac_clear()
365 ramrod.vlan_mac_obj, in bnx2x_vf_vlan_mac_clear()
366 &ramrod.user_req.vlan_mac_flags, in bnx2x_vf_vlan_mac_clear()
367 &ramrod.ramrod_flags); in bnx2x_vf_vlan_mac_clear()
383 struct bnx2x_vlan_mac_ramrod_params ramrod; in bnx2x_vf_mac_vlan_config() local
392 memset(&ramrod, 0, sizeof(struct bnx2x_vlan_mac_ramrod_params)); in bnx2x_vf_mac_vlan_config()
394 ramrod.vlan_mac_obj = &bnx2x_vfq(vf, qid, vlan_mac_obj); in bnx2x_vf_mac_vlan_config()
395 ramrod.user_req.u.vlan.vlan = filter->vid; in bnx2x_vf_mac_vlan_config()
396 memcpy(&ramrod.user_req.u.mac.mac, filter->mac, ETH_ALEN); in bnx2x_vf_mac_vlan_config()
397 set_bit(BNX2X_ETH_MAC, &ramrod.user_req.vlan_mac_flags); in bnx2x_vf_mac_vlan_config()
399 ramrod.vlan_mac_obj = &bnx2x_vfq(vf, qid, vlan_obj); in bnx2x_vf_mac_vlan_config()
400 ramrod.user_req.u.vlan.vlan = filter->vid; in bnx2x_vf_mac_vlan_config()
402 set_bit(BNX2X_ETH_MAC, &ramrod.user_req.vlan_mac_flags); in bnx2x_vf_mac_vlan_config()
403 ramrod.vlan_mac_obj = &bnx2x_vfq(vf, qid, mac_obj); in bnx2x_vf_mac_vlan_config()
404 memcpy(&ramrod.user_req.u.mac.mac, filter->mac, ETH_ALEN); in bnx2x_vf_mac_vlan_config()
406 ramrod.user_req.cmd = filter->add ? BNX2X_VLAN_MAC_ADD : in bnx2x_vf_mac_vlan_config()
409 set_bit(RAMROD_EXEC, &ramrod.ramrod_flags); in bnx2x_vf_mac_vlan_config()
411 set_bit(RAMROD_DRV_CLR_ONLY, &ramrod.ramrod_flags); in bnx2x_vf_mac_vlan_config()
413 set_bit(RAMROD_COMP_WAIT, &ramrod.ramrod_flags); in bnx2x_vf_mac_vlan_config()
416 rc = bnx2x_config_vlan_mac(bp, &ramrod); in bnx2x_vf_mac_vlan_config()
588 struct bnx2x_rx_mode_ramrod_params *ramrod, in bnx2x_vf_prep_rx_mode() argument
594 memset(ramrod, 0, sizeof(*ramrod)); in bnx2x_vf_prep_rx_mode()
595 ramrod->cid = vfq->cid; in bnx2x_vf_prep_rx_mode()
596 ramrod->cl_id = vfq_cl_id(vf, vfq); in bnx2x_vf_prep_rx_mode()
597 ramrod->rx_mode_obj = &bp->rx_mode_obj; in bnx2x_vf_prep_rx_mode()
598 ramrod->func_id = FW_VF_HANDLE(vf->abs_vfid); in bnx2x_vf_prep_rx_mode()
599 ramrod->rx_accept_flags = accept_flags; in bnx2x_vf_prep_rx_mode()
600 ramrod->tx_accept_flags = accept_flags; in bnx2x_vf_prep_rx_mode()
601 ramrod->pstate = &vf->filter_state; in bnx2x_vf_prep_rx_mode()
602 ramrod->state = BNX2X_FILTER_RX_MODE_PENDING; in bnx2x_vf_prep_rx_mode()
605 set_bit(RAMROD_RX, &ramrod->ramrod_flags); in bnx2x_vf_prep_rx_mode()
606 set_bit(RAMROD_TX, &ramrod->ramrod_flags); in bnx2x_vf_prep_rx_mode()
608 ramrod->rdata = bnx2x_vf_sp(bp, vf, rx_mode_rdata.e2); in bnx2x_vf_prep_rx_mode()
609 ramrod->rdata_mapping = bnx2x_vf_sp_map(bp, vf, rx_mode_rdata.e2); in bnx2x_vf_prep_rx_mode()
615 struct bnx2x_rx_mode_ramrod_params ramrod; in bnx2x_vf_rxmode() local
619 bnx2x_vf_prep_rx_mode(bp, qid, &ramrod, vf, accept_flags); in bnx2x_vf_rxmode()
620 set_bit(RAMROD_COMP_WAIT, &ramrod.ramrod_flags); in bnx2x_vf_rxmode()
621 vfq_get(vf, qid)->accept_flags = ramrod.rx_accept_flags; in bnx2x_vf_rxmode()
622 return bnx2x_config_rx_mode(bp, &ramrod); in bnx2x_vf_rxmode()