Lines Matching refs:nctrl
1957 struct octnic_ctrl_pkt nctrl; in liquidio_set_mcast_list() local
1963 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_set_mcast_list()
1966 nctrl.ncmd.u64 = 0; in liquidio_set_mcast_list()
1967 nctrl.ncmd.s.cmd = OCTNET_CMD_SET_MULTI_LIST; in liquidio_set_mcast_list()
1968 nctrl.ncmd.s.param1 = get_new_flags(netdev); in liquidio_set_mcast_list()
1969 nctrl.ncmd.s.param2 = mc_count; in liquidio_set_mcast_list()
1970 nctrl.ncmd.s.more = mc_count; in liquidio_set_mcast_list()
1971 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_mcast_list()
1972 nctrl.netpndev = (u64)netdev; in liquidio_set_mcast_list()
1973 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in liquidio_set_mcast_list()
1976 mc = &nctrl.udd[0]; in liquidio_set_mcast_list()
1982 if (++mc > &nctrl.udd[mc_count]) in liquidio_set_mcast_list()
1990 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in liquidio_set_mcast_list()
2008 struct octnic_ctrl_pkt nctrl; in liquidio_set_mac() local
2013 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_set_mac()
2015 nctrl.ncmd.u64 = 0; in liquidio_set_mac()
2016 nctrl.ncmd.s.cmd = OCTNET_CMD_CHANGE_MACADDR; in liquidio_set_mac()
2017 nctrl.ncmd.s.param1 = 0; in liquidio_set_mac()
2018 nctrl.ncmd.s.more = 1; in liquidio_set_mac()
2019 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_mac()
2020 nctrl.netpndev = (u64)netdev; in liquidio_set_mac()
2022 nctrl.udd[0] = 0; in liquidio_set_mac()
2024 memcpy((u8 *)&nctrl.udd[0] + 2, addr->sa_data, ETH_ALEN); in liquidio_set_mac()
2026 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in liquidio_set_mac()
2032 if (nctrl.sc_status) { in liquidio_set_mac()
2035 __func__, nctrl.sc_status); in liquidio_set_mac()
2571 struct octnic_ctrl_pkt nctrl; in liquidio_vlan_rx_add_vid() local
2574 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_vlan_rx_add_vid()
2576 nctrl.ncmd.u64 = 0; in liquidio_vlan_rx_add_vid()
2577 nctrl.ncmd.s.cmd = OCTNET_CMD_ADD_VLAN_FILTER; in liquidio_vlan_rx_add_vid()
2578 nctrl.ncmd.s.param1 = vid; in liquidio_vlan_rx_add_vid()
2579 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_vlan_rx_add_vid()
2580 nctrl.netpndev = (u64)netdev; in liquidio_vlan_rx_add_vid()
2581 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in liquidio_vlan_rx_add_vid()
2583 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in liquidio_vlan_rx_add_vid()
2600 struct octnic_ctrl_pkt nctrl; in liquidio_vlan_rx_kill_vid() local
2603 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_vlan_rx_kill_vid()
2605 nctrl.ncmd.u64 = 0; in liquidio_vlan_rx_kill_vid()
2606 nctrl.ncmd.s.cmd = OCTNET_CMD_DEL_VLAN_FILTER; in liquidio_vlan_rx_kill_vid()
2607 nctrl.ncmd.s.param1 = vid; in liquidio_vlan_rx_kill_vid()
2608 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_vlan_rx_kill_vid()
2609 nctrl.netpndev = (u64)netdev; in liquidio_vlan_rx_kill_vid()
2610 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in liquidio_vlan_rx_kill_vid()
2612 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in liquidio_vlan_rx_kill_vid()
2634 struct octnic_ctrl_pkt nctrl; in liquidio_set_rxcsum_command() local
2637 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_set_rxcsum_command()
2639 nctrl.ncmd.u64 = 0; in liquidio_set_rxcsum_command()
2640 nctrl.ncmd.s.cmd = command; in liquidio_set_rxcsum_command()
2641 nctrl.ncmd.s.param1 = rx_cmd; in liquidio_set_rxcsum_command()
2642 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_rxcsum_command()
2643 nctrl.netpndev = (u64)netdev; in liquidio_set_rxcsum_command()
2644 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in liquidio_set_rxcsum_command()
2646 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in liquidio_set_rxcsum_command()
2671 struct octnic_ctrl_pkt nctrl; in liquidio_vxlan_port_command() local
2674 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_vxlan_port_command()
2676 nctrl.ncmd.u64 = 0; in liquidio_vxlan_port_command()
2677 nctrl.ncmd.s.cmd = command; in liquidio_vxlan_port_command()
2678 nctrl.ncmd.s.more = vxlan_cmd_bit; in liquidio_vxlan_port_command()
2679 nctrl.ncmd.s.param1 = vxlan_port; in liquidio_vxlan_port_command()
2680 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_vxlan_port_command()
2681 nctrl.netpndev = (u64)netdev; in liquidio_vxlan_port_command()
2682 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in liquidio_vxlan_port_command()
2684 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in liquidio_vxlan_port_command()
2819 struct octnic_ctrl_pkt nctrl; in __liquidio_set_vf_mac() local
2828 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in __liquidio_set_vf_mac()
2830 nctrl.ncmd.u64 = 0; in __liquidio_set_vf_mac()
2831 nctrl.ncmd.s.cmd = OCTNET_CMD_CHANGE_MACADDR; in __liquidio_set_vf_mac()
2833 nctrl.ncmd.s.param1 = vfidx + 1; in __liquidio_set_vf_mac()
2834 nctrl.ncmd.s.more = 1; in __liquidio_set_vf_mac()
2835 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in __liquidio_set_vf_mac()
2836 nctrl.netpndev = (u64)netdev; in __liquidio_set_vf_mac()
2838 nctrl.ncmd.s.param2 = true; in __liquidio_set_vf_mac()
2839 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in __liquidio_set_vf_mac()
2842 nctrl.udd[0] = 0; in __liquidio_set_vf_mac()
2844 ether_addr_copy((u8 *)&nctrl.udd[0] + 2, mac); in __liquidio_set_vf_mac()
2846 oct->sriov_info.vf_macaddr[vfidx] = nctrl.udd[0]; in __liquidio_set_vf_mac()
2848 ret = octnet_send_nic_ctrl_pkt(oct, &nctrl); in __liquidio_set_vf_mac()
2876 struct octnic_ctrl_pkt nctrl; in liquidio_set_vf_spoofchk() local
2899 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_set_vf_spoofchk()
2900 nctrl.ncmd.s.cmdgroup = OCTNET_CMD_GROUP1; in liquidio_set_vf_spoofchk()
2901 nctrl.ncmd.s.cmd = OCTNET_CMD_SET_VF_SPOOFCHK; in liquidio_set_vf_spoofchk()
2902 nctrl.ncmd.s.param1 = in liquidio_set_vf_spoofchk()
2906 nctrl.ncmd.s.param2 = enable; in liquidio_set_vf_spoofchk()
2907 nctrl.ncmd.s.more = 0; in liquidio_set_vf_spoofchk()
2908 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_vf_spoofchk()
2909 nctrl.cb_fn = NULL; in liquidio_set_vf_spoofchk()
2911 retval = octnet_send_nic_ctrl_pkt(oct, &nctrl); in liquidio_set_vf_spoofchk()
2932 struct octnic_ctrl_pkt nctrl; in liquidio_set_vf_vlan() local
2953 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_set_vf_vlan()
2956 nctrl.ncmd.s.cmd = OCTNET_CMD_ADD_VLAN_FILTER; in liquidio_set_vf_vlan()
2958 nctrl.ncmd.s.cmd = OCTNET_CMD_DEL_VLAN_FILTER; in liquidio_set_vf_vlan()
2960 nctrl.ncmd.s.param1 = vlantci; in liquidio_set_vf_vlan()
2961 nctrl.ncmd.s.param2 = in liquidio_set_vf_vlan()
2963 nctrl.ncmd.s.more = 0; in liquidio_set_vf_vlan()
2964 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_vf_vlan()
2965 nctrl.cb_fn = NULL; in liquidio_set_vf_vlan()
2967 ret = octnet_send_nic_ctrl_pkt(oct, &nctrl); in liquidio_set_vf_vlan()
3102 struct octnic_ctrl_pkt nctrl; in liquidio_set_vf_link_state() local
3111 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_set_vf_link_state()
3112 nctrl.ncmd.s.cmd = OCTNET_CMD_SET_VF_LINKSTATE; in liquidio_set_vf_link_state()
3113 nctrl.ncmd.s.param1 = in liquidio_set_vf_link_state()
3115 nctrl.ncmd.s.param2 = linkstate; in liquidio_set_vf_link_state()
3116 nctrl.ncmd.s.more = 0; in liquidio_set_vf_link_state()
3117 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_vf_link_state()
3118 nctrl.cb_fn = NULL; in liquidio_set_vf_link_state()
3120 ret = octnet_send_nic_ctrl_pkt(oct, &nctrl); in liquidio_set_vf_link_state()