Lines Matching refs:nctrl

1936 	struct octnic_ctrl_pkt nctrl;  in liquidio_set_mcast_list()  local
1942 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_set_mcast_list()
1945 nctrl.ncmd.u64 = 0; in liquidio_set_mcast_list()
1946 nctrl.ncmd.s.cmd = OCTNET_CMD_SET_MULTI_LIST; in liquidio_set_mcast_list()
1947 nctrl.ncmd.s.param1 = get_new_flags(netdev); in liquidio_set_mcast_list()
1948 nctrl.ncmd.s.param2 = mc_count; in liquidio_set_mcast_list()
1949 nctrl.ncmd.s.more = mc_count; in liquidio_set_mcast_list()
1950 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_mcast_list()
1951 nctrl.netpndev = (u64)netdev; in liquidio_set_mcast_list()
1952 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in liquidio_set_mcast_list()
1955 mc = &nctrl.udd[0]; in liquidio_set_mcast_list()
1961 if (++mc > &nctrl.udd[mc_count]) in liquidio_set_mcast_list()
1969 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in liquidio_set_mcast_list()
1987 struct octnic_ctrl_pkt nctrl; in liquidio_set_mac() local
1992 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_set_mac()
1994 nctrl.ncmd.u64 = 0; in liquidio_set_mac()
1995 nctrl.ncmd.s.cmd = OCTNET_CMD_CHANGE_MACADDR; in liquidio_set_mac()
1996 nctrl.ncmd.s.param1 = 0; in liquidio_set_mac()
1997 nctrl.ncmd.s.more = 1; in liquidio_set_mac()
1998 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_mac()
1999 nctrl.netpndev = (u64)netdev; in liquidio_set_mac()
2001 nctrl.udd[0] = 0; in liquidio_set_mac()
2003 memcpy((u8 *)&nctrl.udd[0] + 2, addr->sa_data, ETH_ALEN); in liquidio_set_mac()
2005 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in liquidio_set_mac()
2011 if (nctrl.sc_status) { in liquidio_set_mac()
2014 __func__, nctrl.sc_status); in liquidio_set_mac()
2553 struct octnic_ctrl_pkt nctrl; in liquidio_vlan_rx_add_vid() local
2556 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_vlan_rx_add_vid()
2558 nctrl.ncmd.u64 = 0; in liquidio_vlan_rx_add_vid()
2559 nctrl.ncmd.s.cmd = OCTNET_CMD_ADD_VLAN_FILTER; in liquidio_vlan_rx_add_vid()
2560 nctrl.ncmd.s.param1 = vid; in liquidio_vlan_rx_add_vid()
2561 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_vlan_rx_add_vid()
2562 nctrl.netpndev = (u64)netdev; in liquidio_vlan_rx_add_vid()
2563 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in liquidio_vlan_rx_add_vid()
2565 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in liquidio_vlan_rx_add_vid()
2582 struct octnic_ctrl_pkt nctrl; in liquidio_vlan_rx_kill_vid() local
2585 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_vlan_rx_kill_vid()
2587 nctrl.ncmd.u64 = 0; in liquidio_vlan_rx_kill_vid()
2588 nctrl.ncmd.s.cmd = OCTNET_CMD_DEL_VLAN_FILTER; in liquidio_vlan_rx_kill_vid()
2589 nctrl.ncmd.s.param1 = vid; in liquidio_vlan_rx_kill_vid()
2590 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_vlan_rx_kill_vid()
2591 nctrl.netpndev = (u64)netdev; in liquidio_vlan_rx_kill_vid()
2592 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in liquidio_vlan_rx_kill_vid()
2594 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in liquidio_vlan_rx_kill_vid()
2616 struct octnic_ctrl_pkt nctrl; in liquidio_set_rxcsum_command() local
2619 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_set_rxcsum_command()
2621 nctrl.ncmd.u64 = 0; in liquidio_set_rxcsum_command()
2622 nctrl.ncmd.s.cmd = command; in liquidio_set_rxcsum_command()
2623 nctrl.ncmd.s.param1 = rx_cmd; in liquidio_set_rxcsum_command()
2624 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_rxcsum_command()
2625 nctrl.netpndev = (u64)netdev; in liquidio_set_rxcsum_command()
2626 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in liquidio_set_rxcsum_command()
2628 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in liquidio_set_rxcsum_command()
2653 struct octnic_ctrl_pkt nctrl; in liquidio_vxlan_port_command() local
2656 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_vxlan_port_command()
2658 nctrl.ncmd.u64 = 0; in liquidio_vxlan_port_command()
2659 nctrl.ncmd.s.cmd = command; in liquidio_vxlan_port_command()
2660 nctrl.ncmd.s.more = vxlan_cmd_bit; in liquidio_vxlan_port_command()
2661 nctrl.ncmd.s.param1 = vxlan_port; in liquidio_vxlan_port_command()
2662 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_vxlan_port_command()
2663 nctrl.netpndev = (u64)netdev; in liquidio_vxlan_port_command()
2664 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in liquidio_vxlan_port_command()
2666 ret = octnet_send_nic_ctrl_pkt(lio->oct_dev, &nctrl); in liquidio_vxlan_port_command()
2801 struct octnic_ctrl_pkt nctrl; in __liquidio_set_vf_mac() local
2810 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in __liquidio_set_vf_mac()
2812 nctrl.ncmd.u64 = 0; in __liquidio_set_vf_mac()
2813 nctrl.ncmd.s.cmd = OCTNET_CMD_CHANGE_MACADDR; in __liquidio_set_vf_mac()
2815 nctrl.ncmd.s.param1 = vfidx + 1; in __liquidio_set_vf_mac()
2816 nctrl.ncmd.s.more = 1; in __liquidio_set_vf_mac()
2817 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in __liquidio_set_vf_mac()
2818 nctrl.netpndev = (u64)netdev; in __liquidio_set_vf_mac()
2820 nctrl.ncmd.s.param2 = true; in __liquidio_set_vf_mac()
2821 nctrl.cb_fn = liquidio_link_ctrl_cmd_completion; in __liquidio_set_vf_mac()
2824 nctrl.udd[0] = 0; in __liquidio_set_vf_mac()
2826 ether_addr_copy((u8 *)&nctrl.udd[0] + 2, mac); in __liquidio_set_vf_mac()
2828 oct->sriov_info.vf_macaddr[vfidx] = nctrl.udd[0]; in __liquidio_set_vf_mac()
2830 ret = octnet_send_nic_ctrl_pkt(oct, &nctrl); in __liquidio_set_vf_mac()
2858 struct octnic_ctrl_pkt nctrl; in liquidio_set_vf_spoofchk() local
2881 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_set_vf_spoofchk()
2882 nctrl.ncmd.s.cmdgroup = OCTNET_CMD_GROUP1; in liquidio_set_vf_spoofchk()
2883 nctrl.ncmd.s.cmd = OCTNET_CMD_SET_VF_SPOOFCHK; in liquidio_set_vf_spoofchk()
2884 nctrl.ncmd.s.param1 = in liquidio_set_vf_spoofchk()
2888 nctrl.ncmd.s.param2 = enable; in liquidio_set_vf_spoofchk()
2889 nctrl.ncmd.s.more = 0; in liquidio_set_vf_spoofchk()
2890 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_vf_spoofchk()
2891 nctrl.cb_fn = NULL; in liquidio_set_vf_spoofchk()
2893 retval = octnet_send_nic_ctrl_pkt(oct, &nctrl); in liquidio_set_vf_spoofchk()
2914 struct octnic_ctrl_pkt nctrl; in liquidio_set_vf_vlan() local
2935 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_set_vf_vlan()
2938 nctrl.ncmd.s.cmd = OCTNET_CMD_ADD_VLAN_FILTER; in liquidio_set_vf_vlan()
2940 nctrl.ncmd.s.cmd = OCTNET_CMD_DEL_VLAN_FILTER; in liquidio_set_vf_vlan()
2942 nctrl.ncmd.s.param1 = vlantci; in liquidio_set_vf_vlan()
2943 nctrl.ncmd.s.param2 = in liquidio_set_vf_vlan()
2945 nctrl.ncmd.s.more = 0; in liquidio_set_vf_vlan()
2946 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_vf_vlan()
2947 nctrl.cb_fn = NULL; in liquidio_set_vf_vlan()
2949 ret = octnet_send_nic_ctrl_pkt(oct, &nctrl); in liquidio_set_vf_vlan()
3084 struct octnic_ctrl_pkt nctrl; in liquidio_set_vf_link_state() local
3093 memset(&nctrl, 0, sizeof(struct octnic_ctrl_pkt)); in liquidio_set_vf_link_state()
3094 nctrl.ncmd.s.cmd = OCTNET_CMD_SET_VF_LINKSTATE; in liquidio_set_vf_link_state()
3095 nctrl.ncmd.s.param1 = in liquidio_set_vf_link_state()
3097 nctrl.ncmd.s.param2 = linkstate; in liquidio_set_vf_link_state()
3098 nctrl.ncmd.s.more = 0; in liquidio_set_vf_link_state()
3099 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_vf_link_state()
3100 nctrl.cb_fn = NULL; in liquidio_set_vf_link_state()
3102 ret = octnet_send_nic_ctrl_pkt(oct, &nctrl); in liquidio_set_vf_link_state()