Lines Matching defs:proplen
362 int proplen, match = 0;
364 proplen = OF_getproplen(phandle, "compatible");
365 if (proplen <= 0) {
369 prop = kmem_tmpbuf_alloc(proplen, propbuf, sizeof(propbuf), KM_SLEEP);
371 if (OF_getprop(phandle, "compatible", prop, proplen) != proplen) {
376 if ((match = strlist_match(prop, proplen, cp)) != 0) {
382 kmem_tmpbuf_free(prop, proplen, propbuf);
419 int proplen, match = 0;
421 proplen = OF_getproplen(phandle, "compatible");
422 if (proplen <= 0) {
426 prop = kmem_tmpbuf_alloc(proplen, propbuf, sizeof(propbuf), KM_SLEEP);
428 if (OF_getprop(phandle, "compatible", prop, proplen) != proplen) {
432 match = device_compatible_match_strlist(prop, proplen, compat_data);
435 kmem_tmpbuf_free(prop, proplen, propbuf);
467 int proplen;
469 proplen = OF_getproplen(phandle, "compatible");
470 if (proplen <= 0) {
474 prop = kmem_tmpbuf_alloc(proplen, propbuf, sizeof(propbuf), KM_SLEEP);
476 if (OF_getprop(phandle, "compatible", prop, proplen) != proplen) {
480 match = device_compatible_lookup_strlist(prop, proplen, compat_data);
483 kmem_tmpbuf_free(prop, proplen, propbuf);