Lines Matching +full:resource +full:- +full:files

1 // SPDX-License-Identifier: GPL-2.0
4 By David Huggins-Daines <dhd@debian.org>
15 contain subdirectories. Each slot resource is a file. Unrecognized
16 resources are empty files, since every resource ID requires a special
17 case (e.g. if the resource ID implies a directory or block, then its
43 fres->board->slot, fres->category, fres->type, in nubus_devices_proc_show()
44 fres->dr_sw, fres->dr_hw, fres->board->slot_addr); in nubus_devices_proc_show()
60 snprintf(name, sizeof(name), "%x", board->slot); in nubus_proc_add_board()
73 int lanes = board->lanes; in nubus_proc_add_rsrc_dir()
77 snprintf(name, sizeof(name), "%x", ent->type); in nubus_proc_add_rsrc_dir()
84 * of the resource data in the slot ROM. For slot resources which hold only a
86 * A NULL private data pointer indicates an unrecognized resource.
103 pded->res_ptr = ptr; in nubus_proc_alloc_pde_data()
104 pded->res_size = size; in nubus_proc_alloc_pde_data()
110 struct inode *inode = m->private; in nubus_proc_rsrc_show()
117 if (pded->res_size > m->size) in nubus_proc_rsrc_show()
118 return -EFBIG; in nubus_proc_rsrc_show()
120 if (pded->res_size) { in nubus_proc_rsrc_show()
128 ent.base = pded->res_ptr; in nubus_proc_rsrc_show()
130 nubus_seq_write_rsrc_mem(m, &ent, pded->res_size); in nubus_proc_rsrc_show()
132 unsigned int data = (unsigned int)pded->res_ptr; in nubus_proc_rsrc_show()
163 snprintf(name, sizeof(name), "%x", ent->type); in nubus_proc_add_rsrc_mem()
177 unsigned char *data = (unsigned char *)ent->data; in nubus_proc_add_rsrc()
182 snprintf(name, sizeof(name), "%x", ent->type); in nubus_proc_add_rsrc()