Lines Matching defs:table
253 struct resource_table *table = NULL;
262 /* look for the resource table and handle it */
265 /* Compute name table section header entry in shdr array */
267 /* Finally, compute the name table section address in elf */
278 table = (struct resource_table *)(elf_data + offset);
280 /* make sure we have the entire table */
282 dev_err(dev, "resource table truncated\n");
286 /* make sure table has at least the header */
288 dev_err(dev, "header-less resource table\n");
293 if (table->ver != 1) {
294 dev_err(dev, "unsupported fw ver: %d\n", table->ver);
299 if (table->reserved[0] || table->reserved[1]) {
305 if (struct_size(table, offset, table->num) > size) {
306 dev_err(dev, "resource table incomplete\n");
317 * rproc_elf_load_rsc_table() - load the resource table
321 * This function finds the resource table inside the remote processor's
330 struct resource_table *table = NULL;
341 table = (struct resource_table *)(elf_data + sh_offset);
345 * Create a copy of the resource table. When a virtio device starts
350 rproc->cached_table = kmemdup(table, tablesz, GFP_KERNEL);
362 * rproc_elf_find_loaded_rsc_table() - find the loaded resource table
366 * This function finds the location of the loaded resource table. Don't
367 * call this function if the table wasn't loaded yet - it's a bug if you do.
369 * Return: pointer to the resource table if it is found or NULL otherwise.
370 * If the table wasn't loaded yet the result is unspecified.