Lines Matching refs:len

924 	int len, size, entries = 0;
935 len = DI_NODE(node)->compat_length;
936 while (len > 0) {
939 len -= size;
1075 int depth = 0, len = 0;
1088 len += strlen(name[depth]) + 1; /* 1 for '/' */
1091 len += strlen(addr[depth]) + 1; /* 1 for '@' */
1102 len += strlen(name[depth]) + 1;
1107 if ((buf = malloc(len)) == NULL) {
1112 len = strlen(buf);
1113 if (buf[len - 1] == '/')
1114 len--; /* delete trailing '/' */
1118 buf[len] = '/';
1119 (void) strcpy(buf + len + 1, name[depth]);
1120 len += strlen(name[depth]) + 1;
1122 buf[len] = '@';
1123 (void) strcpy(buf + len + 1, addr[depth]);
1124 len += strlen(addr[depth]) + 1;
1227 is_generic(const char *name, int len)
1267 if ((strncmp(*gp, name, len) == 0) &&
1268 (strlen(*gp) == len))
1543 extern int di_prop_decode_common(void *prop_data, int len,
2820 int len;
2952 prop->len = opp->oprom_size;
2954 if (prop->len == 0)
2956 else if ((prop->data = malloc(prop->len)) == NULL) {
2962 bcopy(opp->oprom_array, prop->data, prop->len);
3036 return (((struct di_prom_prop *)prom_prop)->len);
3100 prop->len = opp->oprom_len;
3102 if (prop->len == 0) { /* boolean property */
3128 if ((prop->data = malloc(prop->len)) == NULL) {
3134 bcopy(opp->oprom_array, prop->data, prop->len);
3147 int len;
3157 if (prop->len == 0) { /* boolean property */
3162 len = di_prop_decode_common((void *)&prop->data, prop->len,
3166 return (len);
3173 int len;
3183 if (prop->len == 0) { /* boolean property */
3192 if (((char *)prop->data)[prop->len - 1] != '\0') {
3194 prop->len++;
3195 if ((tmp = realloc(prop->data, prop->len)) == NULL)
3199 ((char *)prop->data)[prop->len - 1] = '\0';
3205 len = di_prop_decode_common((void *)&prop->data, prop->len,
3209 return (len);
3216 int len;
3226 if (prop->len == 0) { /* boolean property */
3231 len = di_prop_decode_common((void *)&prop->data, prop->len,
3235 return (len);