Lines Matching refs:ldg
36 hpi_fzc_ldg_num_set(hpi_handle_t handle, uint8_t ld, uint8_t ldg)
46 if (!LDG_VALID(ldg)) {
48 " hpi_fzc_ldg_num_set ldg <0x%x>", ldg));
53 gnum.bits.num = ldg;
64 hpi_ldsv_ldfs_get(hpi_handle_t handle, uint8_t ldg, uint32_t *vector0_p,
69 if ((status = hpi_ldsv_get(handle, ldg, VECTOR0, vector0_p))) {
72 if ((status = hpi_ldsv_get(handle, ldg, VECTOR1, vector1_p))) {
83 hpi_ldsv_get(hpi_handle_t handle, uint8_t ldg, ldsv_type_t vector,
88 if (!LDG_VALID(ldg)) {
90 " hpi_ldsv_get Invalid Input ldg <0x%x>", ldg));
91 return (HPI_FAILURE | HPI_VIR_LDG_INVALID(ldg));
96 offset = LDSV0 + LDSV_OFFSET(ldg);
100 offset = LDSV1 + LDSV_OFFSET(ldg);
144 hpi_intr_ldg_mgmt_set(hpi_handle_t handle, uint8_t ldg, boolean_t arm,
149 if (!LDG_VALID(ldg)) {
151 " hpi_intr_ldg_mgmt_set Invalid Input: ldg <0x%x>", ldg));
152 return (HPI_FAILURE | HPI_VIR_LDG_INVALID(ldg));
159 return (HPI_FAILURE | HPI_VIR_INTM_TM_INVALID(ldg));
165 HXGE_REG_RD32(handle, LD_INTR_MGMT + LDSV_OFFSET(ldg),
170 HXGE_REG_WR32(handle, LD_INTR_MGMT + LDSV_OFFSET(ldg), mgm.value);
173 " hpi_intr_ldg_mgmt_set: ldg %d reg offset 0x%x",
174 ldg, LD_INTR_MGMT + LDSV_OFFSET(ldg)));
210 if (!LDG_VALID(sid.ldg)) {
212 " hpi_fzc_sid_set Invalid Input: ldg <0x%x>", sid.ldg));
213 return (HPI_FAILURE | HPI_VIR_LDG_INVALID(sid.ldg));
226 HXGE_REG_WR32(handle, SID + LDG_SID_OFFSET(sid.ldg), sd.value);