Lines Matching defs:pc
330 init_synced_pc(ide_synced_pc *pc, ide_synced_pc_func func)
332 pc->func = func;
333 pc->registered = false;
338 uninit_synced_pc(ide_synced_pc *pc)
340 if (pc->registered)
345 /** schedule a synced pc
346 * a synced pc gets executed as soon as the bus becomes idle
350 schedule_synced_pc(ide_bus_info *bus, ide_synced_pc *pc, void *arg)
356 if (pc->registered) {
364 pc->next = bus->synced_pc_list;
365 bus->synced_pc_list = pc;
366 pc->arg = arg;
367 pc->registered = true;
382 pc->func(bus, arg);
403 ide_synced_pc *pc;
407 for (pc = pc_list; pc; pc = pc->next) {
408 pc->func(bus, pc->arg);
415 for (pc = pc_list; pc; pc = pc->next) {
416 pc->registered = false;