Home | History | Annotate | Download | only in ofw

Lines Matching defs:proplen

204 	int proplen, match = 0;
206 proplen = OF_getproplen(phandle, "compatible");
207 if (proplen <= 0) {
211 prop = kmem_tmpbuf_alloc(proplen, propbuf, sizeof(propbuf), KM_SLEEP);
213 if (OF_getprop(phandle, "compatible", prop, proplen) != proplen) {
218 if ((match = strlist_match(prop, proplen, cp)) != 0) {
224 kmem_tmpbuf_free(prop, proplen, propbuf);
261 int proplen, match = 0;
263 proplen = OF_getproplen(phandle, "compatible");
264 if (proplen <= 0) {
268 prop = kmem_tmpbuf_alloc(proplen, propbuf, sizeof(propbuf), KM_SLEEP);
270 if (OF_getprop(phandle, "compatible", prop, proplen) != proplen) {
274 match = device_compatible_match_strlist(prop, proplen, compat_data);
277 kmem_tmpbuf_free(prop, proplen, propbuf);
309 int proplen;
311 proplen = OF_getproplen(phandle, "compatible");
312 if (proplen <= 0) {
316 prop = kmem_tmpbuf_alloc(proplen, propbuf, sizeof(propbuf), KM_SLEEP);
318 if (OF_getprop(phandle, "compatible", prop, proplen) != proplen) {
322 match = device_compatible_lookup_strlist(prop, proplen, compat_data);
325 kmem_tmpbuf_free(prop, proplen, propbuf);