Lines Matching refs:hdl

44 mcamd_unumtopa(struct mcamd_hdl *hdl, mcamd_node_t *root, mc_unum_t *unump,  in mcamd_unumtopa()  argument
50 mcamd_dprintf(hdl, MCAMD_DBG_FLOW, "mcamd_unumtopa: chip %d " in mcamd_unumtopa()
55 mcamd_dprintf(hdl, MCAMD_DBG_FLOW, "mcamd_unumtopa: offset " in mcamd_unumtopa()
57 return (mcamd_set_errno(hdl, EMCAMD_NOADDR)); in mcamd_unumtopa()
64 for (mc = mcamd_mc_next(hdl, root, NULL); mc != NULL; in mcamd_unumtopa()
65 mc = mcamd_mc_next(hdl, root, mc)) { in mcamd_unumtopa()
66 if (!mcamd_get_numprops(hdl, in mcamd_unumtopa()
70 mcamd_dprintf(hdl, MCAMD_DBG_ERR, "mcamd_unumtopa: " in mcamd_unumtopa()
72 return (mcamd_set_errno(hdl, EMCAMD_TREEINVALID)); in mcamd_unumtopa()
78 mcamd_dprintf(hdl, MCAMD_DBG_FLOW, "mcamd_unumtopa; " in mcamd_unumtopa()
80 return (mcamd_set_errno(hdl, EMCAMD_NOADDR)); in mcamd_unumtopa()
89 for (dimm = mcamd_dimm_next(hdl, mc, NULL); dimm != NULL; in mcamd_unumtopa()
90 dimm = mcamd_dimm_next(hdl, mc, dimm)) { in mcamd_unumtopa()
91 if (!mcamd_get_numprop(hdl, dimm, MCAMD_PROP_NUM, &num)) { in mcamd_unumtopa()
92 mcamd_dprintf(hdl, MCAMD_DBG_ERR, "mcamd_unumtopa: " in mcamd_unumtopa()
95 return (mcamd_set_errno(hdl, EMCAMD_TREEINVALID)); in mcamd_unumtopa()
101 mcamd_dprintf(hdl, MCAMD_DBG_FLOW, "mcamd_unumtopa; " in mcamd_unumtopa()
104 return (mcamd_set_errno(hdl, EMCAMD_NOADDR)); in mcamd_unumtopa()
107 mcamd_dprintf(hdl, MCAMD_DBG_FLOW, "mcamd_unumtopa: matched " in mcamd_unumtopa()
111 if (mc_offset_to_pa(hdl, mc, dimm, unump->unum_offset, pa) < 0) { in mcamd_unumtopa()
112 mcamd_dprintf(hdl, MCAMD_DBG_FLOW, "mcamd_unumtopa: " in mcamd_unumtopa()
113 "mc_offset_to_pa failed: %s\n", mcamd_errmsg(hdl)); in mcamd_unumtopa()
117 mcamd_dprintf(hdl, MCAMD_DBG_FLOW, "mcamd_unumtopa: " in mcamd_unumtopa()
128 mcamd_dprintf(hdl, MCAMD_DBG_FLOW, "mcamd_untopa: hoist " in mcamd_unumtopa()