Lines Matching refs:p_ramrod
368 struct vport_start_ramrod_data *p_ramrod = NULL; in qed_sp_eth_vport_start() local
390 p_ramrod = &p_ent->ramrod.vport_start; in qed_sp_eth_vport_start()
391 p_ramrod->vport_id = abs_vport_id; in qed_sp_eth_vport_start()
393 p_ramrod->mtu = cpu_to_le16(p_params->mtu); in qed_sp_eth_vport_start()
394 p_ramrod->handle_ptp_pkts = p_params->handle_ptp_pkts; in qed_sp_eth_vport_start()
395 p_ramrod->inner_vlan_removal_en = p_params->remove_inner_vlan; in qed_sp_eth_vport_start()
396 p_ramrod->drop_ttl0_en = p_params->drop_ttl0; in qed_sp_eth_vport_start()
397 p_ramrod->untagged = p_params->only_untagged; in qed_sp_eth_vport_start()
402 p_ramrod->rx_mode.state = cpu_to_le16(rx_mode); in qed_sp_eth_vport_start()
405 memset(&p_ramrod->tpa_param, 0, sizeof(struct eth_vport_tpa_param)); in qed_sp_eth_vport_start()
407 p_ramrod->tpa_param.max_buff_num = p_params->max_buffers_per_cqe; in qed_sp_eth_vport_start()
411 p_ramrod->tpa_param.tpa_max_aggs_num = ETH_TPA_MAX_AGGS_NUM; in qed_sp_eth_vport_start()
412 p_ramrod->tpa_param.tpa_max_size = (u16)-1; in qed_sp_eth_vport_start()
413 p_ramrod->tpa_param.tpa_min_size_to_cont = p_params->mtu / 2; in qed_sp_eth_vport_start()
414 p_ramrod->tpa_param.tpa_min_size_to_start = p_params->mtu / 2; in qed_sp_eth_vport_start()
415 p_ramrod->tpa_param.tpa_ipv4_en_flg = 1; in qed_sp_eth_vport_start()
416 p_ramrod->tpa_param.tpa_ipv6_en_flg = 1; in qed_sp_eth_vport_start()
417 p_ramrod->tpa_param.tpa_pkt_split_flg = 1; in qed_sp_eth_vport_start()
418 p_ramrod->tpa_param.tpa_gro_consistent_flg = 1; in qed_sp_eth_vport_start()
424 p_ramrod->tx_switching_en = p_params->tx_switching; in qed_sp_eth_vport_start()
426 p_ramrod->ctl_frame_mac_check_en = !!p_params->check_mac; in qed_sp_eth_vport_start()
427 p_ramrod->ctl_frame_ethtype_check_en = !!p_params->check_ethtype; in qed_sp_eth_vport_start()
430 p_ramrod->sw_fid = qed_concrete_to_sw_fid(p_hwfn->cdev, in qed_sp_eth_vport_start()
453 struct vport_update_ramrod_data *p_ramrod, in qed_sp_vport_update_rss() argument
462 p_ramrod->common.update_rss_flg = 0; in qed_sp_vport_update_rss()
465 p_config = &p_ramrod->rss_config; in qed_sp_vport_update_rss()
473 p_ramrod->common.update_rss_flg = p_rss->update_rss_config; in qed_sp_vport_update_rss()
506 p_ramrod->common.update_rss_flg, in qed_sp_vport_update_rss()
557 struct vport_update_ramrod_data *p_ramrod, in qed_sp_update_accept_mode() argument
560 p_ramrod->common.update_rx_mode_flg = in qed_sp_update_accept_mode()
563 p_ramrod->common.update_tx_mode_flg = in qed_sp_update_accept_mode()
567 if (p_ramrod->common.update_rx_mode_flg) { in qed_sp_update_accept_mode()
592 p_ramrod->rx_mode.state = cpu_to_le16(state); in qed_sp_update_accept_mode()
598 if (p_ramrod->common.update_tx_mode_flg) { in qed_sp_update_accept_mode()
619 p_ramrod->tx_mode.state = cpu_to_le16(state); in qed_sp_update_accept_mode()
627 struct vport_update_ramrod_data *p_ramrod, in qed_sp_vport_update_sge_tpa() argument
633 p_ramrod->common.update_tpa_param_flg = 0; in qed_sp_vport_update_sge_tpa()
634 p_ramrod->common.update_tpa_en_flg = 0; in qed_sp_vport_update_sge_tpa()
635 p_ramrod->common.update_tpa_param_flg = 0; in qed_sp_vport_update_sge_tpa()
639 p_ramrod->common.update_tpa_en_flg = p_params->update_tpa_en_flg; in qed_sp_vport_update_sge_tpa()
640 p_tpa = &p_ramrod->tpa_param; in qed_sp_vport_update_sge_tpa()
646 p_ramrod->common.update_tpa_param_flg = p_params->update_tpa_param_flg; in qed_sp_vport_update_sge_tpa()
659 struct vport_update_ramrod_data *p_ramrod, in qed_sp_update_mcast_bin() argument
664 memset(&p_ramrod->approx_mcast.bins, 0, in qed_sp_update_mcast_bin()
665 sizeof(p_ramrod->approx_mcast.bins)); in qed_sp_update_mcast_bin()
670 p_ramrod->common.update_approx_mcast_flg = 1; in qed_sp_update_mcast_bin()
674 p_ramrod->approx_mcast.bins[i] = cpu_to_le32(p_bins[i]); in qed_sp_update_mcast_bin()
686 struct vport_update_ramrod_data *p_ramrod = NULL; in qed_sp_vport_update() local
713 p_ramrod = &p_ent->ramrod.vport_update; in qed_sp_vport_update()
714 p_cmn = &p_ramrod->common; in qed_sp_vport_update()
738 p_ramrod->common.tx_switching_en = p_params->tx_switching_flg; in qed_sp_vport_update()
743 p_ramrod->common.update_anti_spoofing_en_flg = val; in qed_sp_vport_update()
745 rc = qed_sp_vport_update_rss(p_hwfn, p_ramrod, p_rss_params); in qed_sp_vport_update()
757 qed_sp_update_mcast_bin(p_hwfn, p_ramrod, p_params); in qed_sp_vport_update()
759 qed_sp_update_accept_mode(p_hwfn, p_ramrod, p_params->accept_flags); in qed_sp_vport_update()
760 qed_sp_vport_update_sge_tpa(p_hwfn, p_ramrod, p_params->sge_tpa_params); in qed_sp_vport_update()
766 struct vport_stop_ramrod_data *p_ramrod; in qed_sp_vport_stop() local
790 p_ramrod = &p_ent->ramrod.vport_stop; in qed_sp_vport_stop()
791 p_ramrod->vport_id = abs_vport_id; in qed_sp_vport_stop()
865 struct rx_queue_start_ramrod_data *p_ramrod = NULL; in qed_eth_rxq_start_ramrod() local
887 p_ramrod = &p_ent->ramrod.rx_queue_start; in qed_eth_rxq_start_ramrod()
889 p_ramrod->sb_id = cpu_to_le16(p_cid->sb_igu_id); in qed_eth_rxq_start_ramrod()
890 p_ramrod->sb_index = p_cid->sb_idx; in qed_eth_rxq_start_ramrod()
891 p_ramrod->vport_id = p_cid->abs.vport_id; in qed_eth_rxq_start_ramrod()
892 p_ramrod->stats_counter_id = p_cid->abs.stats_id; in qed_eth_rxq_start_ramrod()
893 p_ramrod->rx_queue_id = cpu_to_le16(p_cid->abs.queue_id); in qed_eth_rxq_start_ramrod()
894 p_ramrod->complete_cqe_flg = 0; in qed_eth_rxq_start_ramrod()
895 p_ramrod->complete_event_flg = 1; in qed_eth_rxq_start_ramrod()
897 p_ramrod->bd_max_bytes = cpu_to_le16(bd_max_bytes); in qed_eth_rxq_start_ramrod()
898 DMA_REGPAIR_LE(p_ramrod->bd_base, bd_chain_phys_addr); in qed_eth_rxq_start_ramrod()
900 p_ramrod->num_of_pbl_pages = cpu_to_le16(cqe_pbl_size); in qed_eth_rxq_start_ramrod()
901 DMA_REGPAIR_LE(p_ramrod->cqe_pbl_addr, cqe_pbl_addr); in qed_eth_rxq_start_ramrod()
907 p_ramrod->vf_rx_prod_index = p_cid->vf_qid; in qed_eth_rxq_start_ramrod()
911 p_ramrod->vf_rx_prod_use_zone_a = b_legacy_vf; in qed_eth_rxq_start_ramrod()
990 struct rx_queue_update_ramrod_data *p_ramrod = NULL; in qed_sp_eth_rx_queues_update() local
1014 p_ramrod = &p_ent->ramrod.rx_queue_update; in qed_sp_eth_rx_queues_update()
1015 p_ramrod->vport_id = p_cid->abs.vport_id; in qed_sp_eth_rx_queues_update()
1017 p_ramrod->rx_queue_id = cpu_to_le16(p_cid->abs.queue_id); in qed_sp_eth_rx_queues_update()
1018 p_ramrod->complete_cqe_flg = complete_cqe_flg; in qed_sp_eth_rx_queues_update()
1019 p_ramrod->complete_event_flg = complete_event_flg; in qed_sp_eth_rx_queues_update()
1034 struct rx_queue_stop_ramrod_data *p_ramrod = NULL; in qed_eth_pf_rx_queue_stop() local
1050 p_ramrod = &p_ent->ramrod.rx_queue_stop; in qed_eth_pf_rx_queue_stop()
1051 p_ramrod->vport_id = p_cid->abs.vport_id; in qed_eth_pf_rx_queue_stop()
1052 p_ramrod->rx_queue_id = cpu_to_le16(p_cid->abs.queue_id); in qed_eth_pf_rx_queue_stop()
1057 p_ramrod->complete_cqe_flg = ((p_cid->vfid == QED_QUEUE_CID_SELF) && in qed_eth_pf_rx_queue_stop()
1060 p_ramrod->complete_event_flg = (p_cid->vfid != QED_QUEUE_CID_SELF) || in qed_eth_pf_rx_queue_stop()
1090 struct tx_queue_start_ramrod_data *p_ramrod = NULL; in qed_eth_txq_start_ramrod() local
1107 p_ramrod = &p_ent->ramrod.tx_queue_start; in qed_eth_txq_start_ramrod()
1108 p_ramrod->vport_id = p_cid->abs.vport_id; in qed_eth_txq_start_ramrod()
1110 p_ramrod->sb_id = cpu_to_le16(p_cid->sb_igu_id); in qed_eth_txq_start_ramrod()
1111 p_ramrod->sb_index = p_cid->sb_idx; in qed_eth_txq_start_ramrod()
1112 p_ramrod->stats_counter_id = p_cid->abs.stats_id; in qed_eth_txq_start_ramrod()
1114 p_ramrod->queue_zone_id = cpu_to_le16(p_cid->abs.queue_id); in qed_eth_txq_start_ramrod()
1115 p_ramrod->same_as_last_id = cpu_to_le16(p_cid->abs.queue_id); in qed_eth_txq_start_ramrod()
1117 p_ramrod->pbl_size = cpu_to_le16(pbl_size); in qed_eth_txq_start_ramrod()
1118 DMA_REGPAIR_LE(p_ramrod->pbl_base_addr, pbl_addr); in qed_eth_txq_start_ramrod()
1120 p_ramrod->qm_pq_id = cpu_to_le16(pq_id); in qed_eth_txq_start_ramrod()
1248 struct vport_filter_update_ramrod_data *p_ramrod; in qed_filter_ucast_common() local
1279 p_ramrod = *pp_ramrod; in qed_filter_ucast_common()
1280 p_ramrod->filter_cmd_hdr.rx = p_filter_cmd->is_rx_filter ? 1 : 0; in qed_filter_ucast_common()
1281 p_ramrod->filter_cmd_hdr.tx = p_filter_cmd->is_tx_filter ? 1 : 0; in qed_filter_ucast_common()
1286 p_ramrod->filter_cmd_hdr.cmd_cnt = 2; break; in qed_filter_ucast_common()
1288 p_ramrod->filter_cmd_hdr.cmd_cnt = 1; break; in qed_filter_ucast_common()
1291 p_first_filter = &p_ramrod->filter_cmds[0]; in qed_filter_ucast_common()
1292 p_second_filter = &p_ramrod->filter_cmds[1]; in qed_filter_ucast_common()
1386 struct vport_filter_update_ramrod_data *p_ramrod = NULL; in qed_sp_eth_filter_ucast() local
1392 &p_ramrod, &p_ent, in qed_sp_eth_filter_ucast()
1398 p_header = &p_ramrod->filter_cmd_hdr; in qed_sp_eth_filter_ucast()
1417 p_ramrod->filter_cmd_hdr.cmd_cnt, in qed_sp_eth_filter_ucast()
1488 struct vport_update_ramrod_data *p_ramrod = NULL; in qed_sp_eth_filter_mcast() local
1519 p_ramrod = &p_ent->ramrod.vport_update; in qed_sp_eth_filter_mcast()
1520 p_ramrod->common.update_approx_mcast_flg = 1; in qed_sp_eth_filter_mcast()
1523 memset(&p_ramrod->approx_mcast.bins, 0, in qed_sp_eth_filter_mcast()
1524 sizeof(p_ramrod->approx_mcast.bins)); in qed_sp_eth_filter_mcast()
1542 p_ramrod_bins = &p_ramrod->approx_mcast; in qed_sp_eth_filter_mcast()
1547 p_ramrod->common.vport_id = abs_vport_id; in qed_sp_eth_filter_mcast()
2030 struct rx_update_gft_filter_data *p_ramrod = NULL; in qed_configure_rfs_ntuple_filter() local
2056 p_ramrod = &p_ent->ramrod.rx_update_gft; in qed_configure_rfs_ntuple_filter()
2058 DMA_REGPAIR_LE(p_ramrod->pkt_hdr_addr, p_params->addr); in qed_configure_rfs_ntuple_filter()
2059 p_ramrod->pkt_hdr_length = cpu_to_le16(p_params->length); in qed_configure_rfs_ntuple_filter()
2062 p_ramrod->vport_id = cpu_to_le16(ETH_GFT_TRASHCAN_VPORT); in qed_configure_rfs_ntuple_filter()
2074 p_ramrod->rx_qid_valid = 1; in qed_configure_rfs_ntuple_filter()
2075 p_ramrod->rx_qid = cpu_to_le16(abs_rx_q_id); in qed_configure_rfs_ntuple_filter()
2078 p_ramrod->vport_id = cpu_to_le16((u16)abs_vport_id); in qed_configure_rfs_ntuple_filter()
2081 p_ramrod->flow_id_valid = 0; in qed_configure_rfs_ntuple_filter()
2082 p_ramrod->flow_id = 0; in qed_configure_rfs_ntuple_filter()
2083 p_ramrod->filter_action = p_params->b_is_add ? GFT_ADD_FILTER in qed_configure_rfs_ntuple_filter()