Lines Matching defs:hdl
46 mcamd_unumtopa(struct mcamd_hdl *hdl, mcamd_node_t *root, mc_unum_t *unump,
52 mcamd_dprintf(hdl, MCAMD_DBG_FLOW, "mcamd_unumtopa: chip %d "
57 mcamd_dprintf(hdl, MCAMD_DBG_FLOW, "mcamd_unumtopa: offset "
59 return (mcamd_set_errno(hdl, EMCAMD_NOADDR));
66 for (mc = mcamd_mc_next(hdl, root, NULL); mc != NULL;
67 mc = mcamd_mc_next(hdl, root, mc)) {
68 if (!mcamd_get_numprops(hdl,
72 mcamd_dprintf(hdl, MCAMD_DBG_ERR, "mcamd_unumtopa: "
74 return (mcamd_set_errno(hdl, EMCAMD_TREEINVALID));
80 mcamd_dprintf(hdl, MCAMD_DBG_FLOW, "mcamd_unumtopa; "
82 return (mcamd_set_errno(hdl, EMCAMD_NOADDR));
91 for (dimm = mcamd_dimm_next(hdl, mc, NULL); dimm != NULL;
92 dimm = mcamd_dimm_next(hdl, mc, dimm)) {
93 if (!mcamd_get_numprop(hdl, dimm, MCAMD_PROP_NUM, &num)) {
94 mcamd_dprintf(hdl, MCAMD_DBG_ERR, "mcamd_unumtopa: "
97 return (mcamd_set_errno(hdl, EMCAMD_TREEINVALID));
103 mcamd_dprintf(hdl, MCAMD_DBG_FLOW, "mcamd_unumtopa; "
106 return (mcamd_set_errno(hdl, EMCAMD_NOADDR));
109 mcamd_dprintf(hdl, MCAMD_DBG_FLOW, "mcamd_unumtopa: matched "
113 if (mc_offset_to_pa(hdl, mc, dimm, unump->unum_offset, pa) < 0) {
114 mcamd_dprintf(hdl, MCAMD_DBG_FLOW, "mcamd_unumtopa: "
115 "mc_offset_to_pa failed: %s\n", mcamd_errmsg(hdl));
119 mcamd_dprintf(hdl, MCAMD_DBG_FLOW, "mcamd_unumtopa: "
130 mcamd_dprintf(hdl, MCAMD_DBG_FLOW, "mcamd_untopa: hoist "