Lines Matching defs:addrcells

3076 encode_default_unitaddr(char *buf, int sz, uint32_t *regprop, uint_t addrcells)
3083 if (addrcells < 1)
3087 for (i = 1; i < addrcells && len < sz; i++)
3098 encode_optional_unitaddr(char *buf, int sz, uint32_t *regprop, uint_t addrcells)
3106 if (addrcells > 1 && regprop[addrcells-1] == 0)
3107 retval = encode_default_unitaddr(buf, sz, regprop, addrcells-1);
3109 retval = encode_default_unitaddr(buf, sz, regprop, addrcells);
3119 encode_scsi_unitaddr(char *buf, int sz, uint32_t *regprop, uint_t addrcells)
3131 if (addrcells == 2) {
3132 retval = encode_optional_unitaddr(buf, sz, regprop, addrcells);
3133 } else if (addrcells == 4) {
3147 encode_upa_unitaddr(char *buf, int sz, uint32_t *regprop, uint_t addrcells)
3151 if (addrcells != 2)
3163 uint_t addrcells)
3168 if (addrcells != 2)
3188 encode_pci_unitaddr(char *buf, int sz, uint32_t *regprop, uint_t addrcells)
3207 if (addrcells != 3)
3241 uint32_t addrcells;
3254 len <= sizeof (addrcells)) {
3255 err = ptree_get_propval(proph, &addrcells, len);
3258 addrcells = *(uint8_t *)&addrcells;
3260 addrcells = *(uint16_t *)&addrcells;
3262 addrcells = DEFAULT_ADDRESS_CELLS;
3264 addrcells = DEFAULT_ADDRESS_CELLS;
3266 return (addrcells);
3299 add_unitaddr_prop(picl_nodehdl_t nodeh, unitaddr_map_t *uamap, uint_t addrcells)
3315 if (pinfo.piclinfo.size < (addrcells * sizeof (uint32_t)))
3325 (uamap->addrcellcnt && uamap->addrcellcnt != addrcells) ||
3327 addrcells) != 0) {
3352 uint32_t addrcells;
3354 addrcells = get_addrcells_prop(parh);
3365 if (pinfo.piclinfo.size < (addrcells * sizeof (uint32_t)))
3375 (uamap->addrcellcnt && uamap->addrcellcnt != addrcells) ||
3376 (uamap->func)(unitaddr, ualen, regbuf, addrcells) != 0) {
3391 uint32_t addrcells;
3397 addrcells = get_addrcells_prop(nodeh);
3407 (void) add_unitaddr_prop(chdh, uamap, addrcells);