Lines Matching defs:buf
43 char buf[32];
72 if (parent && OF_getprop(parent, "device_type", buf,
73 sizeof(buf)) > 0 && strcmp(buf, "scsi-sas") == 0)
109 char buf[32];
112 if (OF_getprop(node, "device_type", buf, sizeof(buf)) > 0)
113 printf("type %s ", buf);
114 if (OF_getprop(node, "name", buf, sizeof(buf)) > 0)
115 printf("name %s ", buf);
128 char buf[32];
150 if ((OF_getprop(node, "device_type", buf, sizeof(buf)) > 0 &&
151 strcmp(buf, "block") == 0 &&
152 OF_getprop(node, "name", buf, sizeof(buf)) > 0 &&
153 strcmp(buf, "disk") == 0)) {