Lines Matching refs:hv_ret
124 unsigned long off, new_head, hv_ret; in cwq_intr() local
132 hv_ret = sun4v_ncs_gethead(q->qhandle, &new_head); in cwq_intr()
135 smp_processor_id(), new_head, hv_ret); in cwq_intr()
141 hv_ret = sun4v_ncs_sethead_marker(q->qhandle, new_head); in cwq_intr()
142 if (hv_ret == HV_EOK) in cwq_intr()
153 unsigned long head, hv_ret; in mau_intr() local
160 hv_ret = sun4v_ncs_gethead(q->qhandle, &head); in mau_intr()
163 smp_processor_id(), head, hv_ret); in mau_intr()
204 unsigned long hv_ret, new_tail; in spu_queue_submit() local
208 hv_ret = sun4v_ncs_settail(q->qhandle, new_tail); in spu_queue_submit()
209 if (hv_ret == HV_EOK) in spu_queue_submit()
211 return hv_ret; in spu_queue_submit()
493 unsigned long head, hv_ret; in wait_for_tail() local
496 hv_ret = sun4v_ncs_gethead(qp->qhandle, &head); in wait_for_tail()
497 if (hv_ret != HV_EOK) { in wait_for_tail()
506 return hv_ret; in wait_for_tail()
512 unsigned long hv_ret = spu_queue_submit(qp, ent); in submit_and_wait_for_tail() local
514 if (hv_ret == HV_EOK) in submit_and_wait_for_tail()
515 hv_ret = wait_for_tail(qp); in submit_and_wait_for_tail()
517 return hv_ret; in submit_and_wait_for_tail()
947 unsigned long flags, hv_ret; in n2_do_ecb() local
969 hv_ret = wait_for_tail(qp); in n2_do_ecb()
970 if (hv_ret != HV_EOK) in n2_do_ecb()
997 unsigned long flags, hv_ret, iv_paddr; in n2_do_chaining() local
1059 hv_ret = wait_for_tail(qp); in n2_do_chaining()
1060 if (hv_ret != HV_EOK) in n2_do_chaining()
1584 unsigned long hv_ret; in spu_queue_register_workfn() local
1586 hv_ret = sun4v_ncs_qconf(q_type, __pa(p->q), in spu_queue_register_workfn()
1588 if (!hv_ret) in spu_queue_register_workfn()
1591 return hv_ret ? -EINVAL : 0; in spu_queue_register_workfn()
1621 unsigned long hv_ret; in spu_queue_destroy() local
1626 hv_ret = sun4v_ncs_qconf(p->q_type, p->qhandle, 0, &p->qhandle); in spu_queue_destroy()
1628 if (!hv_ret) in spu_queue_destroy()