Lines Matching defs:fwdt

3394 		struct fwdt *fwdt = ha->fwdt;
3397 for (j = 0; j < 2; j++, fwdt++) {
3398 if (!fwdt->template) {
3400 "-> fwdt%u no template\n", j);
3404 "-> fwdt%u calculating fwdump size...\n", j);
3405 fwdt->dump_size = qla27xx_fwdt_calculate_dump_size(
3406 vha, fwdt->template);
3408 "-> fwdt%u calculated fwdump size = %#lx bytes\n",
3409 j, fwdt->dump_size);
3410 dump_size += fwdt->dump_size;
3413 dump_size += ha->fwdt[1].dump_size;
3465 ha->fwdt[1].dump_size;
7925 struct fwdt *fwdt = ha->fwdt;
7988 for (j = 0; j < templates; j++, fwdt++) {
7989 if (fwdt->template)
7990 vfree(fwdt->template);
7991 fwdt->template = NULL;
7992 fwdt->length = 0;
7998 "-> fwdt%u template array at %#x (%#x dwords)\n",
8002 "-> fwdt%u failed to read array\n", j);
8011 "-> fwdt%u template allocate template %#x words...\n",
8013 fwdt->template = vmalloc(risc_size * sizeof(*dcode));
8014 if (!fwdt->template) {
8016 "-> fwdt%u failed allocate template.\n", j);
8020 dcode = fwdt->template;
8025 "-> fwdt%u failed template validate\n", j);
8031 "-> fwdt%u template size %#lx bytes (%#lx words)\n",
8035 "-> fwdt%u template exceeds array (%-lu bytes)\n",
8040 fwdt->length = dlen;
8042 "-> fwdt%u loaded template ok\n", j);
8050 if (fwdt->template)
8051 vfree(fwdt->template);
8052 fwdt->template = NULL;
8053 fwdt->length = 0;
8174 struct fwdt *fwdt = ha->fwdt;
8246 for (j = 0; j < templates; j++, fwdt++) {
8247 if (fwdt->template)
8248 vfree(fwdt->template);
8249 fwdt->template = NULL;
8250 fwdt->length = 0;
8254 "-> fwdt%u template array at %#x (%#x dwords)\n",
8259 "-> fwdt%u failed to read array\n", j);
8268 "-> fwdt%u template allocate template %#x words...\n",
8270 fwdt->template = vmalloc(risc_size * sizeof(*dcode));
8271 if (!fwdt->template) {
8273 "-> fwdt%u failed allocate template.\n", j);
8277 dcode = fwdt->template;
8283 "-> fwdt%u failed template validate\n", j);
8289 "-> fwdt%u template size %#lx bytes (%#lx words)\n",
8293 "-> fwdt%u template exceeds array (%-lu bytes)\n",
8298 fwdt->length = dlen;
8300 "-> fwdt%u loaded template ok\n", j);
8308 if (fwdt->template)
8309 vfree(fwdt->template);
8310 fwdt->template = NULL;
8311 fwdt->length = 0;