Lines Matching full:ent

123 qla27xx_skip_entry(struct qla27xx_fwdt_entry *ent, void *buf)  in qla27xx_skip_entry()  argument
126 ent->hdr.driver_flags |= DRIVER_FLAG_SKIP_ENTRY; in qla27xx_skip_entry()
130 qla27xx_next_entry(struct qla27xx_fwdt_entry *ent) in qla27xx_next_entry() argument
132 return (void *)ent + le32_to_cpu(ent->hdr.size); in qla27xx_next_entry()
137 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t0() argument
141 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t0()
143 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t0()
148 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t255() argument
152 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t255()
160 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t256() argument
162 ulong addr = le32_to_cpu(ent->t256.base_addr); in qla27xx_fwdt_entry_t256()
163 uint offset = ent->t256.pci_offset; in qla27xx_fwdt_entry_t256()
164 ulong count = le16_to_cpu(ent->t256.reg_count); in qla27xx_fwdt_entry_t256()
165 uint width = ent->t256.reg_width; in qla27xx_fwdt_entry_t256()
171 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t256()
176 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t257() argument
178 ulong addr = le32_to_cpu(ent->t257.base_addr); in qla27xx_fwdt_entry_t257()
179 uint offset = ent->t257.pci_offset; in qla27xx_fwdt_entry_t257()
180 ulong data = le32_to_cpu(ent->t257.write_data); in qla27xx_fwdt_entry_t257()
187 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t257()
192 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t258() argument
194 uint banksel = ent->t258.banksel_offset; in qla27xx_fwdt_entry_t258()
195 ulong bank = le32_to_cpu(ent->t258.bank); in qla27xx_fwdt_entry_t258()
196 ulong addr = le32_to_cpu(ent->t258.base_addr); in qla27xx_fwdt_entry_t258()
197 uint offset = ent->t258.pci_offset; in qla27xx_fwdt_entry_t258()
198 uint count = le16_to_cpu(ent->t258.reg_count); in qla27xx_fwdt_entry_t258()
199 uint width = ent->t258.reg_width; in qla27xx_fwdt_entry_t258()
206 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t258()
211 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t259() argument
213 ulong addr = le32_to_cpu(ent->t259.base_addr); in qla27xx_fwdt_entry_t259()
214 uint banksel = ent->t259.banksel_offset; in qla27xx_fwdt_entry_t259()
215 ulong bank = le32_to_cpu(ent->t259.bank); in qla27xx_fwdt_entry_t259()
216 uint offset = ent->t259.pci_offset; in qla27xx_fwdt_entry_t259()
217 ulong data = le32_to_cpu(ent->t259.write_data); in qla27xx_fwdt_entry_t259()
225 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t259()
230 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t260() argument
232 uint offset = ent->t260.pci_offset; in qla27xx_fwdt_entry_t260()
239 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t260()
244 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t261() argument
246 uint offset = ent->t261.pci_offset; in qla27xx_fwdt_entry_t261()
247 ulong data = le32_to_cpu(ent->t261.write_data); in qla27xx_fwdt_entry_t261()
253 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t261()
258 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t262() argument
260 uint area = ent->t262.ram_area; in qla27xx_fwdt_entry_t262()
261 ulong start = le32_to_cpu(ent->t262.start_addr); in qla27xx_fwdt_entry_t262()
262 ulong end = le32_to_cpu(ent->t262.end_addr); in qla27xx_fwdt_entry_t262()
267 "%s: rdram(%x) [%lx]\n", __func__, ent->t262.ram_area, *len); in qla27xx_fwdt_entry_t262()
274 ent->t262.end_addr = cpu_to_le32(end); in qla27xx_fwdt_entry_t262()
279 ent->t262.start_addr = cpu_to_le32(start); in qla27xx_fwdt_entry_t262()
280 ent->t262.end_addr = cpu_to_le32(end); in qla27xx_fwdt_entry_t262()
286 ent->t262.start_addr = cpu_to_le32(start); in qla27xx_fwdt_entry_t262()
287 ent->t262.end_addr = cpu_to_le32(end); in qla27xx_fwdt_entry_t262()
291 ent->t262.start_addr = cpu_to_le32(start); in qla27xx_fwdt_entry_t262()
292 ent->t262.end_addr = cpu_to_le32(end); in qla27xx_fwdt_entry_t262()
297 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t262()
305 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t262()
322 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t262()
327 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t263() argument
329 uint type = ent->t263.queue_type; in qla27xx_fwdt_entry_t263()
365 ent->t263.queue_type == T263_QUEUE_TYPE_ATIO) { in qla27xx_fwdt_entry_t263()
379 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t263()
384 ent->t263.num_queues = count; in qla27xx_fwdt_entry_t263()
386 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t263()
389 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t263()
394 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t264() argument
400 ent->t264.fce_trace_size = FCE_SIZE; in qla27xx_fwdt_entry_t264()
401 ent->t264.write_pointer = vha->hw->fce_wr; in qla27xx_fwdt_entry_t264()
402 ent->t264.base_pointer = vha->hw->fce_dma; in qla27xx_fwdt_entry_t264()
403 ent->t264.fce_enable_mb0 = vha->hw->fce_mb[0]; in qla27xx_fwdt_entry_t264()
404 ent->t264.fce_enable_mb2 = vha->hw->fce_mb[2]; in qla27xx_fwdt_entry_t264()
405 ent->t264.fce_enable_mb3 = vha->hw->fce_mb[3]; in qla27xx_fwdt_entry_t264()
406 ent->t264.fce_enable_mb4 = vha->hw->fce_mb[4]; in qla27xx_fwdt_entry_t264()
407 ent->t264.fce_enable_mb5 = vha->hw->fce_mb[5]; in qla27xx_fwdt_entry_t264()
408 ent->t264.fce_enable_mb6 = vha->hw->fce_mb[6]; in qla27xx_fwdt_entry_t264()
414 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t264()
417 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t264()
422 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t265() argument
429 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t265()
434 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t266() argument
446 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t266()
451 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t267() argument
453 uint offset = ent->t267.pci_offset; in qla27xx_fwdt_entry_t267()
454 ulong data = le32_to_cpu(ent->t267.data); in qla27xx_fwdt_entry_t267()
460 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t267()
465 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t268() argument
468 "%s: gethb(%x) [%lx]\n", __func__, ent->t268.buf_type, *len); in qla27xx_fwdt_entry_t268()
469 switch (ent->t268.buf_type) { in qla27xx_fwdt_entry_t268()
473 ent->t268.buf_size = EFT_SIZE; in qla27xx_fwdt_entry_t268()
474 ent->t268.start_addr = vha->hw->eft_dma; in qla27xx_fwdt_entry_t268()
480 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t268()
486 ent->t268.buf_size = vha->hw->exchoffld_size; in qla27xx_fwdt_entry_t268()
487 ent->t268.start_addr = in qla27xx_fwdt_entry_t268()
495 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t268()
501 ent->t268.buf_size = vha->hw->exlogin_size; in qla27xx_fwdt_entry_t268()
502 ent->t268.start_addr = in qla27xx_fwdt_entry_t268()
510 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t268()
521 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t268()
525 "%s: unknown buffer %x\n", __func__, ent->t268.buf_type); in qla27xx_fwdt_entry_t268()
526 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t268()
530 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t268()
535 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t269() argument
545 ent->t269.scratch_size = 5 * sizeof(uint32_t); in qla27xx_fwdt_entry_t269()
547 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t269()
552 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t270() argument
554 ulong addr = le32_to_cpu(ent->t270.addr); in qla27xx_fwdt_entry_t270()
555 ulong dwords = le32_to_cpu(ent->t270.count); in qla27xx_fwdt_entry_t270()
567 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t270()
572 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t271() argument
574 ulong addr = le32_to_cpu(ent->t271.addr); in qla27xx_fwdt_entry_t271()
575 ulong data = le32_to_cpu(ent->t271.data); in qla27xx_fwdt_entry_t271()
583 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t271()
588 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t272() argument
590 ulong dwords = le32_to_cpu(ent->t272.count); in qla27xx_fwdt_entry_t272()
591 ulong start = le32_to_cpu(ent->t272.addr); in qla27xx_fwdt_entry_t272()
603 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t272()
608 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t273() argument
610 ulong dwords = le32_to_cpu(ent->t273.count); in qla27xx_fwdt_entry_t273()
611 ulong addr = le32_to_cpu(ent->t273.addr); in qla27xx_fwdt_entry_t273()
626 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t273()
631 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t274() argument
633 ulong type = ent->t274.queue_type; in qla27xx_fwdt_entry_t274()
664 ent->t274.queue_type == T274_QUEUE_TYPE_ATIO_SHAD) { in qla27xx_fwdt_entry_t274()
678 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t274()
683 ent->t274.num_queues = count; in qla27xx_fwdt_entry_t274()
685 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t274()
688 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t274()
693 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t275() argument
695 ulong offset = offsetof(typeof(*ent), t275.buffer); in qla27xx_fwdt_entry_t275()
696 ulong length = le32_to_cpu(ent->t275.length); in qla27xx_fwdt_entry_t275()
697 ulong size = le32_to_cpu(ent->hdr.size); in qla27xx_fwdt_entry_t275()
698 void *buffer = ent->t275.buffer; in qla27xx_fwdt_entry_t275()
705 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t275()
712 ent->t275.length = cpu_to_le32(length); in qla27xx_fwdt_entry_t275()
717 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t275()
722 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t276() argument
728 ulong cond1 = le32_to_cpu(ent->t276.cond1); in qla27xx_fwdt_entry_t276()
729 ulong cond2 = le32_to_cpu(ent->t276.cond2); in qla27xx_fwdt_entry_t276()
737 ent = qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t276()
738 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t276()
742 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t276()
747 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t277() argument
749 ulong cmd_addr = le32_to_cpu(ent->t277.cmd_addr); in qla27xx_fwdt_entry_t277()
750 ulong wr_cmd_data = le32_to_cpu(ent->t277.wr_cmd_data); in qla27xx_fwdt_entry_t277()
751 ulong data_addr = le32_to_cpu(ent->t277.data_addr); in qla27xx_fwdt_entry_t277()
759 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t277()
764 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t278() argument
766 ulong cmd_addr = le32_to_cpu(ent->t278.cmd_addr); in qla27xx_fwdt_entry_t278()
767 ulong wr_cmd_data = le32_to_cpu(ent->t278.wr_cmd_data); in qla27xx_fwdt_entry_t278()
768 ulong data_addr = le32_to_cpu(ent->t278.data_addr); in qla27xx_fwdt_entry_t278()
769 ulong wr_data = le32_to_cpu(ent->t278.wr_data); in qla27xx_fwdt_entry_t278()
776 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t278()
781 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_other() argument
783 ulong type = le32_to_cpu(ent->hdr.type); in qla27xx_fwdt_entry_other()
787 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_other()
789 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_other()
841 struct qla27xx_fwdt_entry *ent = (void *)tmp + in qla27xx_walk_template() local
848 while (ent && tmp->count--) { in qla27xx_walk_template()
849 type = le32_to_cpu(ent->hdr.type); in qla27xx_walk_template()
850 ent = qla27xx_find_entry(type)(vha, ent, buf, len); in qla27xx_walk_template()
851 if (!ent) in qla27xx_walk_template()
854 if (ent == INVALID_ENTRY) { in qla27xx_walk_template()
866 if (ent) in qla27xx_walk_template()