Lines Matching refs:nctrl
96 struct octnic_ctrl_pkt *nctrl) in octnic_alloc_ctrl_pkt_sc() argument
103 uddsize = (u32)(nctrl->ncmd.s.more * 8); in octnic_alloc_ctrl_pkt_sc()
116 memcpy(data, &nctrl->ncmd, OCTNET_CMD_SIZE); in octnic_alloc_ctrl_pkt_sc()
122 memcpy(data + OCTNET_CMD_SIZE, nctrl->udd, uddsize); in octnic_alloc_ctrl_pkt_sc()
125 sc->iq_no = (u32)nctrl->iq_no; in octnic_alloc_ctrl_pkt_sc()
138 struct octnic_ctrl_pkt *nctrl) in octnet_send_nic_ctrl_pkt() argument
148 (nctrl->ncmd.s.cmd != OCTNET_CMD_RX_CTL)) { in octnet_send_nic_ctrl_pkt()
152 __func__, nctrl->ncmd.s.cmd); in octnet_send_nic_ctrl_pkt()
156 sc = octnic_alloc_ctrl_pkt_sc(oct, nctrl); in octnet_send_nic_ctrl_pkt()
168 __func__, oct->pf_num, nctrl->ncmd.s.cmd, retval); in octnet_send_nic_ctrl_pkt()
175 if (nctrl->ncmd.s.cmdgroup == 0) { in octnet_send_nic_ctrl_pkt()
176 switch (nctrl->ncmd.s.cmd) { in octnet_send_nic_ctrl_pkt()
190 nctrl->sc_status = sc->sc_status; in octnet_send_nic_ctrl_pkt()
191 retval = nctrl->sc_status; in octnet_send_nic_ctrl_pkt()
192 if (nctrl->cb_fn) in octnet_send_nic_ctrl_pkt()
193 nctrl->cb_fn(nctrl); in octnet_send_nic_ctrl_pkt()