Home
last modified time | relevance | path

Searched refs:pm8001_ha (Results 1 – 6 of 6) sorted by relevance

/drivers/scsi/pm8001/
Dpm8001_init.c107 static void __devinit pm8001_phy_init(struct pm8001_hba_info *pm8001_ha, in pm8001_phy_init() argument
110 struct pm8001_phy *phy = &pm8001_ha->phy[phy_id]; in pm8001_phy_init()
113 phy->pm8001_ha = pm8001_ha; in pm8001_phy_init()
114 sas_phy->enabled = (phy_id < pm8001_ha->chip->n_phy) ? 1 : 0; in pm8001_phy_init()
123 sas_phy->sas_addr = &pm8001_ha->sas_addr[0]; in pm8001_phy_init()
125 sas_phy->ha = (struct sas_ha_struct *)pm8001_ha->shost->hostdata; in pm8001_phy_init()
134 static void pm8001_free(struct pm8001_hba_info *pm8001_ha) in pm8001_free() argument
138 if (!pm8001_ha) in pm8001_free()
142 if (pm8001_ha->memoryMap.region[i].virt_ptr != NULL) { in pm8001_free()
143 pci_free_consistent(pm8001_ha->pdev, in pm8001_free()
[all …]
Dpm8001_hwi.c50 static void __devinit read_main_config_table(struct pm8001_hba_info *pm8001_ha) in read_main_config_table() argument
52 void __iomem *address = pm8001_ha->main_cfg_tbl_addr; in read_main_config_table()
53 pm8001_ha->main_cfg_tbl.signature = pm8001_mr32(address, 0x00); in read_main_config_table()
54 pm8001_ha->main_cfg_tbl.interface_rev = pm8001_mr32(address, 0x04); in read_main_config_table()
55 pm8001_ha->main_cfg_tbl.firmware_rev = pm8001_mr32(address, 0x08); in read_main_config_table()
56 pm8001_ha->main_cfg_tbl.max_out_io = pm8001_mr32(address, 0x0C); in read_main_config_table()
57 pm8001_ha->main_cfg_tbl.max_sgl = pm8001_mr32(address, 0x10); in read_main_config_table()
58 pm8001_ha->main_cfg_tbl.ctrl_cap_flag = pm8001_mr32(address, 0x14); in read_main_config_table()
59 pm8001_ha->main_cfg_tbl.gst_offset = pm8001_mr32(address, 0x18); in read_main_config_table()
60 pm8001_ha->main_cfg_tbl.inbound_queue_offset = in read_main_config_table()
[all …]
Dpm8001_sas.c65 static void pm8001_tag_clear(struct pm8001_hba_info *pm8001_ha, u32 tag) in pm8001_tag_clear() argument
67 void *bitmap = pm8001_ha->tags; in pm8001_tag_clear()
71 static void pm8001_tag_free(struct pm8001_hba_info *pm8001_ha, u32 tag) in pm8001_tag_free() argument
73 pm8001_tag_clear(pm8001_ha, tag); in pm8001_tag_free()
76 static void pm8001_tag_set(struct pm8001_hba_info *pm8001_ha, u32 tag) in pm8001_tag_set() argument
78 void *bitmap = pm8001_ha->tags; in pm8001_tag_set()
87 inline int pm8001_tag_alloc(struct pm8001_hba_info *pm8001_ha, u32 *tag_out) in pm8001_tag_alloc() argument
90 void *bitmap = pm8001_ha->tags; in pm8001_tag_alloc()
92 index = find_first_zero_bit(bitmap, pm8001_ha->tags_num); in pm8001_tag_alloc()
94 if (tag >= pm8001_ha->tags_num) in pm8001_tag_alloc()
[all …]
Dpm8001_ctl.c59 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_ctl_mpi_interface_rev_show() local
62 pm8001_ha->main_cfg_tbl.interface_rev); in pm8001_ctl_mpi_interface_rev_show()
79 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_ctl_fw_version_show() local
82 (u8)(pm8001_ha->main_cfg_tbl.firmware_rev >> 24), in pm8001_ctl_fw_version_show()
83 (u8)(pm8001_ha->main_cfg_tbl.firmware_rev >> 16), in pm8001_ctl_fw_version_show()
84 (u8)(pm8001_ha->main_cfg_tbl.firmware_rev >> 8), in pm8001_ctl_fw_version_show()
85 (u8)(pm8001_ha->main_cfg_tbl.firmware_rev)); in pm8001_ctl_fw_version_show()
100 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_ctl_max_out_io_show() local
103 pm8001_ha->main_cfg_tbl.max_out_io); in pm8001_ctl_max_out_io_show()
118 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha; in pm8001_ctl_max_devices_show() local
[all …]
Dpm8001_sas.h133 int (*chip_init)(struct pm8001_hba_info *pm8001_ha);
134 int (*chip_soft_rst)(struct pm8001_hba_info *pm8001_ha, u32 signature);
135 void (*chip_rst)(struct pm8001_hba_info *pm8001_ha);
136 int (*chip_ioremap)(struct pm8001_hba_info *pm8001_ha);
137 void (*chip_iounmap)(struct pm8001_hba_info *pm8001_ha);
138 irqreturn_t (*isr)(struct pm8001_hba_info *pm8001_ha);
139 u32 (*is_our_interupt)(struct pm8001_hba_info *pm8001_ha);
140 int (*isr_process_oq)(struct pm8001_hba_info *pm8001_ha);
141 void (*interrupt_enable)(struct pm8001_hba_info *pm8001_ha);
142 void (*interrupt_disable)(struct pm8001_hba_info *pm8001_ha);
[all …]
Dpm8001_chips.h54 static inline u32 pm8001_cr32(struct pm8001_hba_info *pm8001_ha, u32 bar, in pm8001_cr32() argument
57 return readl(pm8001_ha->io_mem[bar].memvirtaddr + offset); in pm8001_cr32()
60 static inline void pm8001_cw32(struct pm8001_hba_info *pm8001_ha, u32 bar, in pm8001_cw32() argument
63 writel(val, pm8001_ha->io_mem[bar].memvirtaddr + addr); in pm8001_cw32()