Lines Matching defs:switch_fn
22 int (*switch_fn)(int current_child, int desired_child, void *data);
36 * The parent bus' lock is used to order access to the switch_fn.
45 r = pb->switch_fn(pb->current_child, cb->bus_number, pb->switch_data);
66 r = pb->switch_fn(pb->current_child, cb->bus_number, pb->switch_data);
80 * The parent bus' lock is used to order access to the switch_fn.
91 r = pb->switch_fn(pb->current_child, cb->bus_number, pb->switch_data);
113 r = pb->switch_fn(pb->current_child, cb->bus_number, pb->switch_data);
141 int (*switch_fn)(int cur, int desired, void *data),
181 pb->switch_fn = switch_fn;