Lines Matching full:oct
44 lio_send_data_pkt(struct octeon_device *oct, struct lio_data_pkt *ndata) in lio_send_data_pkt() argument
48 return (lio_send_command(oct, ndata->q_no, ring_doorbell, &ndata->cmd, in lio_send_data_pkt()
53 lio_ctrl_callback(struct octeon_device *oct, uint32_t status, void *sc_ptr) in lio_ctrl_callback() argument
70 lio_free_soft_command(oct, sc); in lio_ctrl_callback()
74 lio_alloc_ctrl_pkt_sc(struct octeon_device *oct, struct lio_ctrl_pkt *nctrl) in lio_alloc_ctrl_pkt_sc() argument
85 sc = lio_alloc_soft_command(oct, datasize, rdatasize, in lio_alloc_ctrl_pkt_sc()
105 lio_prepare_soft_command(oct, sc, LIO_OPCODE_NIC, LIO_OPCODE_NIC_CMD, 0, in lio_alloc_ctrl_pkt_sc()
116 lio_send_ctrl_pkt(struct octeon_device *oct, struct lio_ctrl_pkt *nctrl) in lio_send_ctrl_pkt() argument
121 mtx_lock(&oct->cmd_resp_wqlock); in lio_send_ctrl_pkt()
126 if ((oct->cmd_resp_state == LIO_DRV_OFFLINE) && in lio_send_ctrl_pkt()
128 mtx_unlock(&oct->cmd_resp_wqlock); in lio_send_ctrl_pkt()
129 lio_dev_err(oct, "%s cmd:%d not processed since driver offline\n", in lio_send_ctrl_pkt()
134 sc = lio_alloc_ctrl_pkt_sc(oct, nctrl); in lio_send_ctrl_pkt()
136 lio_dev_err(oct, "%s soft command alloc failed\n", __func__); in lio_send_ctrl_pkt()
137 mtx_unlock(&oct->cmd_resp_wqlock); in lio_send_ctrl_pkt()
141 retval = lio_send_soft_command(oct, sc); in lio_send_ctrl_pkt()
143 lio_free_soft_command(oct, sc); in lio_send_ctrl_pkt()
144 lio_dev_err(oct, "%s pf_num:%d soft command:%d send failed status: %x\n", in lio_send_ctrl_pkt()
145 __func__, oct->pf_num, nctrl->ncmd.s.cmd, retval); in lio_send_ctrl_pkt()
146 mtx_unlock(&oct->cmd_resp_wqlock); in lio_send_ctrl_pkt()
150 mtx_unlock(&oct->cmd_resp_wqlock); in lio_send_ctrl_pkt()