• Home
  • Raw
  • Download

Lines Matching refs: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
441 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t266()
446 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t267() argument
448 uint offset = ent->t267.pci_offset; in qla27xx_fwdt_entry_t267()
449 ulong data = le32_to_cpu(ent->t267.data); in qla27xx_fwdt_entry_t267()
455 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t267()
460 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t268() argument
463 "%s: gethb(%x) [%lx]\n", __func__, ent->t268.buf_type, *len); in qla27xx_fwdt_entry_t268()
464 switch (ent->t268.buf_type) { in qla27xx_fwdt_entry_t268()
468 ent->t268.buf_size = EFT_SIZE; in qla27xx_fwdt_entry_t268()
469 ent->t268.start_addr = vha->hw->eft_dma; in qla27xx_fwdt_entry_t268()
475 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t268()
481 ent->t268.buf_size = vha->hw->exchoffld_size; in qla27xx_fwdt_entry_t268()
482 ent->t268.start_addr = in qla27xx_fwdt_entry_t268()
490 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t268()
496 ent->t268.buf_size = vha->hw->exlogin_size; in qla27xx_fwdt_entry_t268()
497 ent->t268.start_addr = in qla27xx_fwdt_entry_t268()
505 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t268()
516 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t268()
520 "%s: unknown buffer %x\n", __func__, ent->t268.buf_type); in qla27xx_fwdt_entry_t268()
521 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t268()
525 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t268()
530 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t269() argument
540 ent->t269.scratch_size = 5 * sizeof(uint32_t); in qla27xx_fwdt_entry_t269()
542 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t269()
547 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t270() argument
549 ulong addr = le32_to_cpu(ent->t270.addr); in qla27xx_fwdt_entry_t270()
550 ulong dwords = le32_to_cpu(ent->t270.count); in qla27xx_fwdt_entry_t270()
562 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t270()
567 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t271() argument
569 ulong addr = le32_to_cpu(ent->t271.addr); in qla27xx_fwdt_entry_t271()
570 ulong data = le32_to_cpu(ent->t271.data); in qla27xx_fwdt_entry_t271()
578 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t271()
583 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t272() argument
585 ulong dwords = le32_to_cpu(ent->t272.count); in qla27xx_fwdt_entry_t272()
586 ulong start = le32_to_cpu(ent->t272.addr); in qla27xx_fwdt_entry_t272()
598 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t272()
603 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t273() argument
605 ulong dwords = le32_to_cpu(ent->t273.count); in qla27xx_fwdt_entry_t273()
606 ulong addr = le32_to_cpu(ent->t273.addr); in qla27xx_fwdt_entry_t273()
621 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t273()
626 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t274() argument
628 ulong type = ent->t274.queue_type; in qla27xx_fwdt_entry_t274()
659 ent->t274.queue_type == T274_QUEUE_TYPE_ATIO_SHAD) { in qla27xx_fwdt_entry_t274()
673 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t274()
678 ent->t274.num_queues = count; in qla27xx_fwdt_entry_t274()
680 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t274()
683 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t274()
688 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t275() argument
690 ulong offset = offsetof(typeof(*ent), t275.buffer); in qla27xx_fwdt_entry_t275()
691 ulong length = le32_to_cpu(ent->t275.length); in qla27xx_fwdt_entry_t275()
692 ulong size = le32_to_cpu(ent->hdr.size); in qla27xx_fwdt_entry_t275()
693 void *buffer = ent->t275.buffer; in qla27xx_fwdt_entry_t275()
700 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t275()
707 ent->t275.length = cpu_to_le32(length); in qla27xx_fwdt_entry_t275()
712 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t275()
717 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t276() argument
723 ulong cond1 = le32_to_cpu(ent->t276.cond1); in qla27xx_fwdt_entry_t276()
724 ulong cond2 = le32_to_cpu(ent->t276.cond2); in qla27xx_fwdt_entry_t276()
732 ent = qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t276()
733 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t276()
737 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t276()
742 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t277() argument
744 ulong cmd_addr = le32_to_cpu(ent->t277.cmd_addr); in qla27xx_fwdt_entry_t277()
745 ulong wr_cmd_data = le32_to_cpu(ent->t277.wr_cmd_data); in qla27xx_fwdt_entry_t277()
746 ulong data_addr = le32_to_cpu(ent->t277.data_addr); in qla27xx_fwdt_entry_t277()
754 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t277()
759 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t278() argument
761 ulong cmd_addr = le32_to_cpu(ent->t278.cmd_addr); in qla27xx_fwdt_entry_t278()
762 ulong wr_cmd_data = le32_to_cpu(ent->t278.wr_cmd_data); in qla27xx_fwdt_entry_t278()
763 ulong data_addr = le32_to_cpu(ent->t278.data_addr); in qla27xx_fwdt_entry_t278()
764 ulong wr_data = le32_to_cpu(ent->t278.wr_data); in qla27xx_fwdt_entry_t278()
771 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t278()
776 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_other() argument
778 ulong type = le32_to_cpu(ent->hdr.type); in qla27xx_fwdt_entry_other()
782 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_other()
784 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_other()
836 struct qla27xx_fwdt_entry *ent = (void *)tmp + in qla27xx_walk_template() local
843 while (ent && tmp->count--) { in qla27xx_walk_template()
844 type = le32_to_cpu(ent->hdr.type); in qla27xx_walk_template()
845 ent = qla27xx_find_entry(type)(vha, ent, buf, len); in qla27xx_walk_template()
846 if (!ent) in qla27xx_walk_template()
849 if (ent == INVALID_ENTRY) { in qla27xx_walk_template()
861 if (ent) in qla27xx_walk_template()