Lines Matching refs:hw_free
574 sc->hw_free = &sc->dd->cr_base[sc->node].va[gc].cr[index]; in cr_group_addresses()
1299 *sc->hw_free = 0; in sc_enable()
1660 static inline int fill_code(u64 hw_free) in fill_code() argument
1664 if (hw_free & CR_STATUS_SMASK) in fill_code()
1666 if (hw_free & CR_CREDIT_RETURN_DUE_TO_PBC_SMASK) in fill_code()
1668 if (hw_free & CR_CREDIT_RETURN_DUE_TO_THRESHOLD_SMASK) in fill_code()
1670 if (hw_free & CR_CREDIT_RETURN_DUE_TO_ERR_SMASK) in fill_code()
1672 if (hw_free & CR_CREDIT_RETURN_DUE_TO_FORCE_SMASK) in fill_code()
1686 u64 hw_free; in sc_release_update() local
1699 hw_free = le64_to_cpu(*sc->hw_free); /* volatile read */ in sc_release_update()
1701 extra = (((hw_free & CR_COUNTER_SMASK) >> CR_COUNTER_SHIFT) in sc_release_update()
1720 code = fill_code(hw_free); in sc_release_update()