Lines Matching refs:fres

230 int nubus_get_func_dir(const struct nubus_rsrc *fres, struct nubus_dir *dir)  in nubus_get_func_dir()  argument
232 dir->ptr = dir->base = fres->directory; in nubus_get_func_dir()
234 dir->mask = fres->board->lanes; in nubus_get_func_dir()
390 static int __init nubus_get_display_resource(struct nubus_rsrc *fres, in nubus_get_display_resource() argument
397 nubus_get_block_rsrc_dir(fres->board, procdir, ent); in nubus_get_display_resource()
402 nubus_get_display_vidmode(fres->board, procdir, ent); in nubus_get_display_resource()
412 static int __init nubus_get_network_resource(struct nubus_rsrc *fres, in nubus_get_network_resource() argument
434 static int __init nubus_get_cpu_resource(struct nubus_rsrc *fres, in nubus_get_cpu_resource() argument
467 static int __init nubus_get_private_resource(struct nubus_rsrc *fres, in nubus_get_private_resource() argument
471 switch (fres->category) { in nubus_get_private_resource()
473 nubus_get_display_resource(fres, procdir, ent); in nubus_get_private_resource()
476 nubus_get_network_resource(fres, procdir, ent); in nubus_get_private_resource()
479 nubus_get_cpu_resource(fres, procdir, ent); in nubus_get_private_resource()
495 struct nubus_rsrc *fres; in nubus_get_functional_resource() local
502 fres = kzalloc(sizeof(*fres), GFP_ATOMIC); in nubus_get_functional_resource()
503 if (!fres) in nubus_get_functional_resource()
505 fres->resid = parent->type; in nubus_get_functional_resource()
506 fres->directory = dir.base; in nubus_get_functional_resource()
507 fres->board = board; in nubus_get_functional_resource()
516 fres->category = nbtdata[0]; in nubus_get_functional_resource()
517 fres->type = nbtdata[1]; in nubus_get_functional_resource()
518 fres->dr_sw = nbtdata[2]; in nubus_get_functional_resource()
519 fres->dr_hw = nbtdata[3]; in nubus_get_functional_resource()
577 nubus_get_private_resource(fres, dir.procdir, &ent); in nubus_get_functional_resource()
581 return fres; in nubus_get_functional_resource()
807 struct nubus_rsrc *fres; in nubus_add_board() local
809 fres = nubus_get_functional_resource(board, slot, &ent); in nubus_add_board()
810 if (fres == NULL) in nubus_add_board()
816 if (fres->resid <= prev_resid) { in nubus_add_board()
817 kfree(fres); in nubus_add_board()
820 prev_resid = fres->resid; in nubus_add_board()
822 list_add_tail(&fres->list, &nubus_func_rsrcs); in nubus_add_board()