Lines Matching refs:hv_err
514 unsigned long hv_err; in ldc_abort() local
522 hv_err = sun4v_ldc_tx_qconf(lp->id, lp->tx_ra, lp->tx_num_entries); in ldc_abort()
523 if (hv_err) in ldc_abort()
526 lp->id, lp->tx_ra, lp->tx_num_entries, hv_err); in ldc_abort()
528 hv_err = sun4v_ldc_tx_get_state(lp->id, in ldc_abort()
532 if (hv_err) in ldc_abort()
535 lp->id, hv_err); in ldc_abort()
537 hv_err = sun4v_ldc_rx_qconf(lp->id, lp->rx_ra, lp->rx_num_entries); in ldc_abort()
538 if (hv_err) in ldc_abort()
541 lp->id, lp->rx_ra, lp->rx_num_entries, hv_err); in ldc_abort()
546 hv_err = sun4v_ldc_rx_get_state(lp->id, in ldc_abort()
550 if (hv_err) in ldc_abort()
553 lp->id, hv_err); in ldc_abort()
1047 unsigned long hv_err; in ldc_iommu_init() local
1081 hv_err = sun4v_ldc_set_map_table(lp->id, __pa(table), in ldc_iommu_init()
1084 if (hv_err) in ldc_iommu_init()
1126 unsigned long dummy1, dummy2, hv_err; in ldc_alloc() local
1163 hv_err = sun4v_ldc_tx_qinfo(id, &dummy1, &dummy2); in ldc_alloc()
1165 if (hv_err == HV_ECHANNEL) in ldc_alloc()
1306 unsigned long hv_err, flags; in ldc_bind() local
1320 hv_err = sun4v_ldc_tx_qconf(lp->id, 0, 0); in ldc_bind()
1321 if (hv_err) in ldc_bind()
1324 hv_err = sun4v_ldc_tx_qconf(lp->id, lp->tx_ra, lp->tx_num_entries); in ldc_bind()
1325 if (hv_err) in ldc_bind()
1328 hv_err = sun4v_ldc_rx_qconf(lp->id, 0, 0); in ldc_bind()
1329 if (hv_err) in ldc_bind()
1332 hv_err = sun4v_ldc_rx_qconf(lp->id, lp->rx_ra, lp->rx_num_entries); in ldc_bind()
1333 if (hv_err) in ldc_bind()
1338 hv_err = sun4v_ldc_tx_get_state(lp->id, in ldc_bind()
1343 if (hv_err) in ldc_bind()
1406 unsigned long hv_err, flags; in ldc_disconnect() local
1419 hv_err = sun4v_ldc_tx_qconf(lp->id, 0, 0); in ldc_disconnect()
1420 if (hv_err) in ldc_disconnect()
1423 hv_err = sun4v_ldc_tx_qconf(lp->id, lp->tx_ra, lp->tx_num_entries); in ldc_disconnect()
1424 if (hv_err) in ldc_disconnect()
1427 hv_err = sun4v_ldc_rx_qconf(lp->id, 0, 0); in ldc_disconnect()
1428 if (hv_err) in ldc_disconnect()
1431 hv_err = sun4v_ldc_rx_qconf(lp->id, lp->rx_ra, lp->rx_num_entries); in ldc_disconnect()
1432 if (hv_err) in ldc_disconnect()
1503 unsigned long new_tail, hv_err; in write_raw() local
1506 hv_err = sun4v_ldc_tx_get_state(lp->id, &lp->tx_head, &lp->tx_tail, in write_raw()
1508 if (unlikely(hv_err)) in write_raw()
1533 unsigned long hv_err, new; in read_raw() local
1539 hv_err = sun4v_ldc_rx_get_state(lp->id, in read_raw()
1543 if (hv_err) in read_raw()
1576 unsigned long hv_err, tail; in write_nonraw() local
1581 hv_err = sun4v_ldc_tx_get_state(lp->id, &lp->tx_head, &lp->tx_tail, in write_nonraw()
1583 if (unlikely(hv_err)) in write_nonraw()
1681 unsigned long hv_err; in rx_data_wait() local
1683 hv_err = sun4v_ldc_rx_get_state(lp->id, in rx_data_wait()
1687 if (hv_err) in rx_data_wait()
1742 unsigned long hv_err, new; in read_nonraw() local
1745 hv_err = sun4v_ldc_rx_get_state(lp->id, in read_nonraw()
1749 if (hv_err) in read_nonraw()
2315 unsigned long hv_err; in ldc_copy() local
2317 hv_err = sun4v_ldc_copy(lp->id, copy_dir, in ldc_copy()
2320 if (unlikely(hv_err)) { in ldc_copy()
2323 lp->id, hv_err); in ldc_copy()