Lines Matching defs:table
240 struct resource_table *table = NULL;
249 /* look for the resource table and handle it */
252 /* Compute name table section header entry in shdr array */
254 /* Finally, compute the name table section address in elf */
265 table = (struct resource_table *)(elf_data + offset);
267 /* make sure we have the entire table */
269 dev_err(dev, "resource table truncated\n");
273 /* make sure table has at least the header */
275 dev_err(dev, "header-less resource table\n");
280 if (table->ver != 1) {
281 dev_err(dev, "unsupported fw ver: %d\n", table->ver);
286 if (table->reserved[0] || table->reserved[1]) {
292 if (struct_size(table, offset, table->num) > size) {
293 dev_err(dev, "resource table incomplete\n");
304 * rproc_elf_load_rsc_table() - load the resource table
308 * This function finds the resource table inside the remote processor's
317 struct resource_table *table = NULL;
328 table = (struct resource_table *)(elf_data + sh_offset);
332 * Create a copy of the resource table. When a virtio device starts
337 rproc->cached_table = kmemdup(table, tablesz, GFP_KERNEL);
349 * rproc_elf_find_loaded_rsc_table() - find the loaded resource table
353 * This function finds the location of the loaded resource table. Don't
354 * call this function if the table wasn't loaded yet - it's a bug if you do.
356 * Returns the pointer to the resource table if it is found or NULL otherwise.
357 * If the table wasn't loaded yet the result is unspecified.