Lines Matching defs:fw_ddb_index
15 uint32_t fw_ddb_index);
61 ha->fw_ddb_index_map[ddb_entry->fw_ddb_index] =
470 uint32_t fw_ddb_index,
490 if (qla4xxx_get_fwddb_entry(ha, fw_ddb_index, fw_ddb_entry,
495 "fw_ddb_index %d\n", ha->host_no, __func__,
496 fw_ddb_index));
502 __func__, fw_ddb_index));
519 fw_ddb_index));
521 ddb_entry = qla4xxx_alloc_ddb(ha, fw_ddb_index);
536 * @fw_ddb_index: index of the ddb entry in fw ddb table
540 * entry for the specified device. The ddb_entry->fw_ddb_index field
546 uint32_t fw_ddb_index)
571 if (qla4xxx_get_fwddb_entry(ha, fw_ddb_index, fw_ddb_entry,
578 "fw_ddb_index %d\n", ha->host_no, __func__,
579 fw_ddb_index));
596 ddb_entry->fw_ddb_index = fw_ddb_index;
597 ha->fw_ddb_index_map[fw_ddb_index] = ddb_entry;
633 __func__, fw_ddb_index,
642 __func__, fw_ddb_index,
659 * @fw_ddb_index: Firmware's device database index
665 uint32_t fw_ddb_index)
669 DEBUG2(printk("scsi%ld: %s: fw_ddb_index [%d]\n", ha->host_no,
670 __func__, fw_ddb_index));
675 "to add fw_ddb_index [%d]\n",
676 ha->host_no, __func__, fw_ddb_index));
680 ddb_entry->fw_ddb_index = fw_ddb_index;
686 ha->fw_ddb_index_map[fw_ddb_index] = ddb_entry;
737 uint32_t fw_ddb_index = 0;
757 for (fw_ddb_index = 0; fw_ddb_index < MAX_DDB_ENTRIES;
758 fw_ddb_index = next_fw_ddb_index) {
760 if (qla4xxx_get_fwddb_entry(ha, fw_ddb_index, fw_ddb_entry,
766 "fw_ddb_index %d failed", ha->host_no,
767 __func__, fw_ddb_index));
773 fw_ddb_index, ddb_state, next_fw_ddb_index));
780 ha->host_no, __func__, fw_ddb_index));
787 qla4xxx_set_ddb_entry(ha, fw_ddb_index, 0);
788 if (qla4xxx_get_fwddb_entry(ha, fw_ddb_index,
797 __func__, fw_ddb_index));
810 ha->host_no, __func__, fw_ddb_index));
813 ddb_entry = qla4xxx_get_ddb_entry(ha, fw_ddb_index, &new_tgt);
816 "for device at fw_ddb_index %d\n",
817 ha->host_no, __func__, fw_ddb_index));
821 if (qla4xxx_update_ddb_entry(ha, ddb_entry, fw_ddb_index) ==
823 ha->fw_ddb_index_map[fw_ddb_index] =
827 "for fw_ddb_index %d.\n",
828 ha->host_no, __func__, fw_ddb_index));
853 uint32_t fw_ddb_index;
870 rs->fw_ddb_index);
880 qla4xxx_set_ddb_entry(ha, rs->fw_ddb_index, 0);
893 for (rs->fw_ddb_index = 0; rs->fw_ddb_index < MAX_DDB_ENTRIES;
894 rs->fw_ddb_index = rs->next_fw_ddb_index) {
895 if (qla4xxx_get_fwddb_entry(ha, rs->fw_ddb_index, NULL, 0,
990 uint16_t fw_ddb_index;
997 for (fw_ddb_index = 0; fw_ddb_index < MAX_DDB_ENTRIES; fw_ddb_index++)
998 ha->fw_ddb_index_map[fw_ddb_index] =
1041 ddb_entry->fw_ddb_index);
1046 ddb_entry->fw_ddb_index));
1072 ddb_entry->fw_ddb_index, relogin_timer));
1074 qla4xxx_set_ddb_entry(ha, ddb_entry->fw_ddb_index, 0);
1461 * @fw_ddb_index: Firmware's device database index
1466 uint32_t fw_ddb_index)
1472 ddb_entry = qla4xxx_get_ddb_entry(ha, fw_ddb_index, &new_tgt);
1476 "fw_ddb_index %d\n", ha->host_no, fw_ddb_index));
1480 if (!new_tgt && (ddb_entry->fw_ddb_index != fw_ddb_index)) {
1481 /* Target has been bound to a new fw_ddb_index */
1483 ddb_entry = qla4xxx_alloc_ddb(ha, fw_ddb_index);
1487 " to add fw_ddb_index %d\n",
1488 ha->host_no, fw_ddb_index));
1492 if (qla4xxx_update_ddb_entry(ha, ddb_entry, fw_ddb_index) ==
1494 ha->fw_ddb_index_map[fw_ddb_index] =
1499 ha->host_no, fw_ddb_index));
1508 ha->host_no, fw_ddb_index));
1516 * @fw_ddb_index - Firmware's device database index
1521 int qla4xxx_process_ddb_changed(struct scsi_qla_host *ha, uint32_t fw_ddb_index,
1528 if (fw_ddb_index >= MAX_DDB_ENTRIES)
1532 ddb_entry = qla4xxx_lookup_ddb_by_fw_index(ha, fw_ddb_index);
1536 qla4xxx_add_device_dynamically(ha, fw_ddb_index);
1544 ddb_entry->fw_ddb_device_state, state, fw_ddb_index));
1607 ddb_entry->fw_ddb_index,
1614 ddb_entry->fw_ddb_index,