Lines Matching defs:proc
300 static __init_or_acpilib bool has_handler(struct acpi_subtable_proc *proc)
302 return proc->handler || proc->handler_arg;
305 static __init_or_acpilib int call_handler(struct acpi_subtable_proc *proc,
309 if (proc->handler)
310 return proc->handler(hdr, end);
311 if (proc->handler_arg)
312 return proc->handler_arg(hdr, proc->arg, end);
322 * @proc: array of acpi_subtable_proc struct containing entry id
324 * @proc_num: how big proc is?
327 * For each proc_num find a subtable with proc->id and run proc->handler
336 * On success returns sum of all matching entries for all proc handlers.
341 struct acpi_table_header *table_header, struct acpi_subtable_proc *proc,
364 if (acpi_get_entry_type(&entry) != proc[i].id)
366 if (!has_handler(&proc[i]) ||
368 call_handler(&proc[i], entry.hdr, table_end))) {
373 proc[i].count++;
385 pr_err("[%4.4s:0x%02x] Invalid zero length\n", id, proc->id);
395 id, proc->id, count);
402 char *id, unsigned long table_size, struct acpi_subtable_proc *proc,
428 proc, proc_num, max_entries);
439 struct acpi_subtable_proc proc = {
446 return acpi_table_parse_entries_array(id, table_size, &proc, 1,