Lines Matching defs:pl
3183 } *pl, *pl0, **plp;
3202 prop; plp = &pl->pl_next, prop = prop->prop_next) {
3203 pl = kmem_alloc(sizeof (*pl), KM_SLEEP);
3204 *plp = pl;
3205 pl->pl_next = NULL;
3207 pl->pl_name = i_ddi_strdup(prop->prop_name, KM_SLEEP);
3209 pl->pl_name = NULL;
3210 pl->pl_flags = prop->prop_flags;
3211 pl->pl_dev = prop->prop_dev;
3213 pl->pl_len = prop->prop_len;
3214 pl->pl_val = kmem_alloc(pl->pl_len, KM_SLEEP);
3215 bcopy(prop->prop_val, pl->pl_val, pl->pl_len);
3217 pl->pl_len = 0;
3218 pl->pl_val = NULL;
3230 for (pl = pl0; pl; pl = pl0) {
3231 pl0 = pl->pl_next;
3232 off = di_getprop_add(list, 0, st, dip, prop_op, pl->pl_name,
3233 pl->pl_dev, pl->pl_flags, pl->pl_len, pl->pl_val,
3235 if (pl->pl_val)
3236 kmem_free(pl->pl_val, pl->pl_len);
3237 if (pl->pl_name)
3238 kmem_free(pl->pl_name, strlen(pl->pl_name) + 1);
3239 kmem_free(pl, sizeof (*pl));