Lines Matching refs:nctrl
1954 struct octnic_ctrl_pkt nctrl; in liquidio_set_mcast_list() local
1960 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_set_mcast_list()
1963 nctrl.ncmd.u64 = 0; in liquidio_set_mcast_list()
1964 nctrl.ncmd.s.cmd = OCTNET_CMD_SET_MULTI_LIST; in liquidio_set_mcast_list()
1965 nctrl.ncmd.s.param1 = get_new_flags(netdev); in liquidio_set_mcast_list()
1966 nctrl.ncmd.s.param2 = mc_count; in liquidio_set_mcast_list()
1967 nctrl.ncmd.s.more = mc_count; in liquidio_set_mcast_list()
1968 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_mcast_list()
1969 nctrl.netpndev = (u64)netdev; in liquidio_set_mcast_list()
1970 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in liquidio_set_mcast_list()
1973 mc = &nctrl.udd[0]; in liquidio_set_mcast_list()
1979 if (++mc > &nctrl.udd[mc_count]) in liquidio_set_mcast_list()
1987 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in liquidio_set_mcast_list()
2005 struct octnic_ctrl_pkt nctrl; in liquidio_set_mac() local
2010 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_set_mac()
2012 nctrl.ncmd.u64 = 0; in liquidio_set_mac()
2013 nctrl.ncmd.s.cmd = OCTNET_CMD_CHANGE_MACADDR; in liquidio_set_mac()
2014 nctrl.ncmd.s.param1 = 0; in liquidio_set_mac()
2015 nctrl.ncmd.s.more = 1; in liquidio_set_mac()
2016 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_mac()
2017 nctrl.netpndev = (u64)netdev; in liquidio_set_mac()
2019 nctrl.udd[0] = 0; in liquidio_set_mac()
2021 memcpy((u8 *)&nctrl.udd[0] + 2, addr->sa_data, ETH_ALEN); in liquidio_set_mac()
2023 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in liquidio_set_mac()
2029 if (nctrl.sc_status) { in liquidio_set_mac()
2032 __func__, nctrl.sc_status); in liquidio_set_mac()
2568 struct octnic_ctrl_pkt nctrl; in liquidio_vlan_rx_add_vid() local
2571 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_vlan_rx_add_vid()
2573 nctrl.ncmd.u64 = 0; in liquidio_vlan_rx_add_vid()
2574 nctrl.ncmd.s.cmd = OCTNET_CMD_ADD_VLAN_FILTER; in liquidio_vlan_rx_add_vid()
2575 nctrl.ncmd.s.param1 = vid; in liquidio_vlan_rx_add_vid()
2576 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_vlan_rx_add_vid()
2577 nctrl.netpndev = (u64)netdev; in liquidio_vlan_rx_add_vid()
2578 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in liquidio_vlan_rx_add_vid()
2580 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in liquidio_vlan_rx_add_vid()
2597 struct octnic_ctrl_pkt nctrl; in liquidio_vlan_rx_kill_vid() local
2600 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_vlan_rx_kill_vid()
2602 nctrl.ncmd.u64 = 0; in liquidio_vlan_rx_kill_vid()
2603 nctrl.ncmd.s.cmd = OCTNET_CMD_DEL_VLAN_FILTER; in liquidio_vlan_rx_kill_vid()
2604 nctrl.ncmd.s.param1 = vid; in liquidio_vlan_rx_kill_vid()
2605 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_vlan_rx_kill_vid()
2606 nctrl.netpndev = (u64)netdev; in liquidio_vlan_rx_kill_vid()
2607 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in liquidio_vlan_rx_kill_vid()
2609 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in liquidio_vlan_rx_kill_vid()
2631 struct octnic_ctrl_pkt nctrl; in liquidio_set_rxcsum_command() local
2634 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_set_rxcsum_command()
2636 nctrl.ncmd.u64 = 0; in liquidio_set_rxcsum_command()
2637 nctrl.ncmd.s.cmd = command; in liquidio_set_rxcsum_command()
2638 nctrl.ncmd.s.param1 = rx_cmd; in liquidio_set_rxcsum_command()
2639 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_rxcsum_command()
2640 nctrl.netpndev = (u64)netdev; in liquidio_set_rxcsum_command()
2641 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in liquidio_set_rxcsum_command()
2643 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in liquidio_set_rxcsum_command()
2668 struct octnic_ctrl_pkt nctrl; in liquidio_vxlan_port_command() local
2671 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_vxlan_port_command()
2673 nctrl.ncmd.u64 = 0; in liquidio_vxlan_port_command()
2674 nctrl.ncmd.s.cmd = command; in liquidio_vxlan_port_command()
2675 nctrl.ncmd.s.more = vxlan_cmd_bit; in liquidio_vxlan_port_command()
2676 nctrl.ncmd.s.param1 = vxlan_port; in liquidio_vxlan_port_command()
2677 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_vxlan_port_command()
2678 nctrl.netpndev = (u64)netdev; in liquidio_vxlan_port_command()
2679 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in liquidio_vxlan_port_command()
2681 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in liquidio_vxlan_port_command()
2816 struct octnic_ctrl_pkt nctrl; in __liquidio_set_vf_mac() local
2825 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in __liquidio_set_vf_mac()
2827 nctrl.ncmd.u64 = 0; in __liquidio_set_vf_mac()
2828 nctrl.ncmd.s.cmd = OCTNET_CMD_CHANGE_MACADDR; in __liquidio_set_vf_mac()
2830 nctrl.ncmd.s.param1 = vfidx + 1; in __liquidio_set_vf_mac()
2831 nctrl.ncmd.s.more = 1; in __liquidio_set_vf_mac()
2832 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in __liquidio_set_vf_mac()
2833 nctrl.netpndev = (u64)netdev; in __liquidio_set_vf_mac()
2835 nctrl.ncmd.s.param2 = true; in __liquidio_set_vf_mac()
2836 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in __liquidio_set_vf_mac()
2839 nctrl.udd[0] = 0; in __liquidio_set_vf_mac()
2841 ether_addr_copy((u8 *)&nctrl.udd[0] + 2, mac); in __liquidio_set_vf_mac()
2843 oct->sriov_info.vf_macaddr[vfidx] = nctrl.udd[0]; in __liquidio_set_vf_mac()
2845 ret = octnet_send_nic_ctrl_pkt(oct, &nctrl); in __liquidio_set_vf_mac()
2873 struct octnic_ctrl_pkt nctrl; in liquidio_set_vf_spoofchk() local
2896 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_set_vf_spoofchk()
2897 nctrl.ncmd.s.cmdgroup = OCTNET_CMD_GROUP1; in liquidio_set_vf_spoofchk()
2898 nctrl.ncmd.s.cmd = OCTNET_CMD_SET_VF_SPOOFCHK; in liquidio_set_vf_spoofchk()
2899 nctrl.ncmd.s.param1 = in liquidio_set_vf_spoofchk()
2903 nctrl.ncmd.s.param2 = enable; in liquidio_set_vf_spoofchk()
2904 nctrl.ncmd.s.more = 0; in liquidio_set_vf_spoofchk()
2905 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_vf_spoofchk()
2906 nctrl.cb_fn = NULL; in liquidio_set_vf_spoofchk()
2908 retval = octnet_send_nic_ctrl_pkt(oct, &nctrl); in liquidio_set_vf_spoofchk()
2929 struct octnic_ctrl_pkt nctrl; in liquidio_set_vf_vlan() local
2950 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_set_vf_vlan()
2953 nctrl.ncmd.s.cmd = OCTNET_CMD_ADD_VLAN_FILTER; in liquidio_set_vf_vlan()
2955 nctrl.ncmd.s.cmd = OCTNET_CMD_DEL_VLAN_FILTER; in liquidio_set_vf_vlan()
2957 nctrl.ncmd.s.param1 = vlantci; in liquidio_set_vf_vlan()
2958 nctrl.ncmd.s.param2 = in liquidio_set_vf_vlan()
2960 nctrl.ncmd.s.more = 0; in liquidio_set_vf_vlan()
2961 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_vf_vlan()
2962 nctrl.cb_fn = NULL; in liquidio_set_vf_vlan()
2964 ret = octnet_send_nic_ctrl_pkt(oct, &nctrl); in liquidio_set_vf_vlan()
3099 struct octnic_ctrl_pkt nctrl; in liquidio_set_vf_link_state() local
3108 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_set_vf_link_state()
3109 nctrl.ncmd.s.cmd = OCTNET_CMD_SET_VF_LINKSTATE; in liquidio_set_vf_link_state()
3110 nctrl.ncmd.s.param1 = in liquidio_set_vf_link_state()
3112 nctrl.ncmd.s.param2 = linkstate; in liquidio_set_vf_link_state()
3113 nctrl.ncmd.s.more = 0; in liquidio_set_vf_link_state()
3114 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_vf_link_state()
3115 nctrl.cb_fn = NULL; in liquidio_set_vf_link_state()
3117 ret = octnet_send_nic_ctrl_pkt(oct, &nctrl); in liquidio_set_vf_link_state()