Lines Matching refs:oct
30 octeon_alloc_soft_command_resp(struct octeon_device *oct, in octeon_alloc_soft_command_resp() argument
41 octeon_alloc_soft_command(oct, 0, rdatasize, 0); in octeon_alloc_soft_command_resp()
52 if (OCTEON_CN23XX_PF(oct) || OCTEON_CN23XX_VF(oct)) { in octeon_alloc_soft_command_resp()
68 rdp->pcie_port = oct->pcie_port; in octeon_alloc_soft_command_resp()
73 if (OCTEON_CN23XX_PF(oct) || OCTEON_CN23XX_VF(oct)) in octeon_alloc_soft_command_resp()
83 int octnet_send_nic_data_pkt(struct octeon_device *oct, in octnet_send_nic_data_pkt() argument
89 return octeon_send_command(oct, ndata->q_no, ring_doorbell, &ndata->cmd, in octnet_send_nic_data_pkt()
95 *octnic_alloc_ctrl_pkt_sc(struct octeon_device *oct, in octnic_alloc_ctrl_pkt_sc() argument
109 octeon_alloc_soft_command(oct, datasize, rdatasize, 0); in octnic_alloc_ctrl_pkt_sc()
127 octeon_prepare_soft_command(oct, sc, OPCODE_NIC, OPCODE_NIC_CMD, in octnic_alloc_ctrl_pkt_sc()
137 octnet_send_nic_ctrl_pkt(struct octeon_device *oct, in octnet_send_nic_ctrl_pkt() argument
143 spin_lock_bh(&oct->cmd_resp_wqlock); in octnet_send_nic_ctrl_pkt()
147 if ((oct->cmd_resp_state == OCT_DRV_OFFLINE) && in octnet_send_nic_ctrl_pkt()
149 spin_unlock_bh(&oct->cmd_resp_wqlock); in octnet_send_nic_ctrl_pkt()
150 dev_err(&oct->pci_dev->dev, in octnet_send_nic_ctrl_pkt()
156 sc = octnic_alloc_ctrl_pkt_sc(oct, nctrl); in octnet_send_nic_ctrl_pkt()
158 dev_err(&oct->pci_dev->dev, "%s soft command alloc failed\n", in octnet_send_nic_ctrl_pkt()
160 spin_unlock_bh(&oct->cmd_resp_wqlock); in octnet_send_nic_ctrl_pkt()
164 retval = octeon_send_soft_command(oct, sc); in octnet_send_nic_ctrl_pkt()
166 octeon_free_soft_command(oct, sc); in octnet_send_nic_ctrl_pkt()
167 dev_err(&oct->pci_dev->dev, "%s pf_num:%d soft command:%d send failed status: %x\n", in octnet_send_nic_ctrl_pkt()
168 __func__, oct->pf_num, nctrl->ncmd.s.cmd, retval); in octnet_send_nic_ctrl_pkt()
169 spin_unlock_bh(&oct->cmd_resp_wqlock); in octnet_send_nic_ctrl_pkt()
173 spin_unlock_bh(&oct->cmd_resp_wqlock); in octnet_send_nic_ctrl_pkt()
186 retval = wait_for_sc_completion_timeout(oct, sc, 0); in octnet_send_nic_ctrl_pkt()