Lines Matching defs:node
57 nodetype(mcamd_node_t *node)
59 mc_hdr_t *mch = (mc_hdr_t *)node;
64 node2type(mcamd_node_t *node, int type)
66 mc_hdr_t *mch = (mc_hdr_t *)node;
92 * depending on the node type of 'node'. In the DIMM case we do not
98 mcamd_cs_next(mcamd_hdl_t *hdl, mcamd_node_t *node, mcamd_node_t *last)
100 uint_t nt = nodetype(node);
112 mc = node2type(node, MC_NT_MC);
116 mcd = node2type(node, MC_NT_DIMM);
128 mcd = node2type(node, MC_NT_DIMM);
150 * on the node type of 'node'. In the chip-select case we do not have
155 mcamd_dimm_next(mcamd_hdl_t *hdl, mcamd_node_t *node, mcamd_node_t *last)
157 uint_t nt = nodetype(node);
169 mc = node2type(node, MC_NT_MC);
173 mccs = node2type(node, MC_NT_CS);
185 mccs = node2type(node, MC_NT_CS);
223 * we search these tables for a match (choosing table from node type) and
224 * return the uint64_t property at the indicated offset into the node
272 findoffset(mcamd_hdl_t *hdl, mcamd_node_t *node, struct nt_offmap *arr,
276 mc_hdr_t *mch = (mc_hdr_t *)node;
295 mcamd_get_numprop(mcamd_hdl_t *hdl, mcamd_node_t *node,
310 found = findoffset(hdl, node, &props[0], code, &offset);
314 *valp = *(uint64_t *)((uintptr_t)node + offset);
323 mcamd_node_t *node;
328 while ((node = va_arg(ap, mcamd_node_t *)) != NULL) {
331 if (!mcamd_get_numprop(hdl, node, code, valp))
353 mcamd_get_cfgreg(struct mcamd_hdl *hdl, mcamd_node_t *node,
367 found = findoffset(hdl, node, ®s[0], code, &offset);
372 *valp = *(uint32_t *)((uintptr_t)node + offset);
381 mcamd_node_t *node;
386 while ((node = va_arg(ap, mcamd_node_t *)) != NULL) {
389 if (!mcamd_get_cfgreg(hdl, node, code, valp))
621 * topology node.