Lines Matching refs:opp_p
57 * structure will be placed in "*opp_p". Return value is the length
60 static int copyin(struct openpromio __user *info, struct openpromio **opp_p)
64 if (!info || !opp_p)
79 if (!(*opp_p = kzalloc(sizeof(int) + bufsize + 1, GFP_KERNEL)))
82 if (copy_from_user(&(*opp_p)->oprom_array,
84 kfree(*opp_p);
90 static int getstrings(struct openpromio __user *info, struct openpromio **opp_p)
95 if (!info || !opp_p)
98 if (!(*opp_p = kzalloc(sizeof(int) + OPROMMAXPARAM + 1, GFP_KERNEL)))
101 (*opp_p)->oprom_size = 0;
106 kfree(*opp_p);
111 (*opp_p)->oprom_array[bufsize++] = c;
114 kfree(*opp_p);