• Home
  • Raw
  • Download

Lines Matching refs:hw_prof

236 		asd_ha->hw_prof.bios.present = 1;  in asd_get_bios_chim()
237 asd_ha->hw_prof.bios.maj = bc_struct->bios_major; in asd_get_bios_chim()
238 asd_ha->hw_prof.bios.min = bc_struct->bios_minor; in asd_get_bios_chim()
239 asd_ha->hw_prof.bios.bld = le32_to_cpu(bc_struct->bios_build); in asd_get_bios_chim()
241 asd_ha->hw_prof.bios.maj, in asd_get_bios_chim()
242 asd_ha->hw_prof.bios.min, in asd_get_bios_chim()
243 asd_ha->hw_prof.bios.bld); in asd_get_bios_chim()
245 asd_ha->hw_prof.ue.num = le16_to_cpu(bc_struct->ue_num); in asd_get_bios_chim()
246 asd_ha->hw_prof.ue.size= le16_to_cpu(bc_struct->ue_size); in asd_get_bios_chim()
247 ASD_DPRINTK("ue num:%d, ue size:%d\n", asd_ha->hw_prof.ue.num, in asd_get_bios_chim()
248 asd_ha->hw_prof.ue.size); in asd_get_bios_chim()
249 size = asd_ha->hw_prof.ue.num * asd_ha->hw_prof.ue.size; in asd_get_bios_chim()
252 asd_ha->hw_prof.ue.area = kmalloc(size, GFP_KERNEL); in asd_get_bios_chim()
253 if (!asd_ha->hw_prof.ue.area) in asd_get_bios_chim()
255 err = asd_read_ocm_seg(asd_ha, (void *)asd_ha->hw_prof.ue.area, in asd_get_bios_chim()
258 kfree(asd_ha->hw_prof.ue.area); in asd_get_bios_chim()
259 asd_ha->hw_prof.ue.area = NULL; in asd_get_bios_chim()
260 asd_ha->hw_prof.ue.num = 0; in asd_get_bios_chim()
261 asd_ha->hw_prof.ue.size = 0; in asd_get_bios_chim()
554 d = asd_read_reg_byte(asd_ha, asd_ha->hw_prof.flash.bar); in asd_poll_flash()
555 d ^= asd_read_reg_byte(asd_ha, asd_ha->hw_prof.flash.bar); in asd_poll_flash()
570 asd_write_reg_byte(asd_ha, asd_ha->hw_prof.flash.bar, FLASH_RESET); in asd_reset_flash()
579 asd_read_reg_string(asd_ha, buffer, asd_ha->hw_prof.flash.bar+offs, in asd_read_flash_seg()
601 asd_ha->hw_prof.flash.dir_offs = v; in asd_find_flash_dir()
618 &asd_ha->hw_prof.flash.bar)) { in asd_flash_getid()
623 asd_ha->hw_prof.flash.present = 1; in asd_flash_getid()
624 asd_ha->hw_prof.flash.wide = reg & FLASHW ? 1 : 0; in asd_flash_getid()
691 memcpy(asd_ha->hw_prof.sas_addr, ms->sas_addr, SAS_ADDR_SIZE); in asd_ms_get_sas_addr()
698 memcpy(asd_ha->hw_prof.pcba_sn, ms->pcba_sn, ASD_PCBA_SN_SIZE); in asd_ms_get_pcba_sn()
699 asd_ha->hw_prof.pcba_sn[ASD_PCBA_SN_SIZE] = '\0'; in asd_ms_get_pcba_sn()
791 asd_ha->hw_prof.enabled_phys = 0; in asd_ms_get_phy_params()
800 asd_ha->hw_prof.enabled_phys &= ~(1 << i); in asd_ms_get_phy_params()
805 asd_ha->hw_prof.enabled_phys |= (1 << i); in asd_ms_get_phy_params()
809 asd_ha->hw_prof.phy_desc[i].phy_control_0 = pd->phy_control_0; in asd_ms_get_phy_params()
810 asd_ha->hw_prof.phy_desc[i].phy_control_1 = pd->phy_control_1; in asd_ms_get_phy_params()
811 asd_ha->hw_prof.phy_desc[i].phy_control_2 = pd->phy_control_2; in asd_ms_get_phy_params()
812 asd_ha->hw_prof.phy_desc[i].phy_control_3 = pd->phy_control_3; in asd_ms_get_phy_params()
814 asd_ha->hw_prof.max_phys = rep_phys + en_phys; in asd_ms_get_phy_params()
815 asd_ha->hw_prof.num_phys = en_phys; in asd_ms_get_phy_params()
817 asd_ha->hw_prof.max_phys, asd_ha->hw_prof.num_phys); in asd_ms_get_phy_params()
818 ASD_DPRINTK("ms: enabled_phys:0x%x\n", asd_ha->hw_prof.enabled_phys); in asd_ms_get_phy_params()
892 SAS_ADDR(asd_ha->hw_prof.sas_addr)); in asd_process_ms()
899 ASD_DPRINTK("manuf sect PCBA SN %s\n", asd_ha->hw_prof.pcba_sn); in asd_process_ms()
929 asd_ha->hw_prof.enabled_phys &= ~(1 << i); in asd_process_ctrla_phy_settings()
933 memcpy(asd_ha->hw_prof.phy_desc[i].sas_addr, pe->sas_addr, in asd_process_ctrla_phy_settings()
935 asd_ha->hw_prof.phy_desc[i].max_sas_lrate = in asd_process_ctrla_phy_settings()
937 asd_ha->hw_prof.phy_desc[i].min_sas_lrate = in asd_process_ctrla_phy_settings()
939 asd_ha->hw_prof.phy_desc[i].max_sata_lrate = in asd_process_ctrla_phy_settings()
941 asd_ha->hw_prof.phy_desc[i].min_sata_lrate = in asd_process_ctrla_phy_settings()
943 asd_ha->hw_prof.phy_desc[i].flags = pe->flags; in asd_process_ctrla_phy_settings()
947 SAS_ADDR(asd_ha->hw_prof.phy_desc[i].sas_addr), in asd_process_ctrla_phy_settings()
948 asd_ha->hw_prof.phy_desc[i].max_sas_lrate, in asd_process_ctrla_phy_settings()
949 asd_ha->hw_prof.phy_desc[i].min_sas_lrate, in asd_process_ctrla_phy_settings()
950 asd_ha->hw_prof.phy_desc[i].max_sata_lrate, in asd_process_ctrla_phy_settings()
951 asd_ha->hw_prof.phy_desc[i].min_sata_lrate, in asd_process_ctrla_phy_settings()
952 asd_ha->hw_prof.phy_desc[i].flags); in asd_process_ctrla_phy_settings()
981 asd_ha->hw_prof.sas_addr, SAS_ADDR_SIZE); in asd_process_ctrl_a_user()
1087 reg = asd_ha->hw_prof.flash.bar; in asd_verify_flash_seg()
1117 reg = asd_ha->hw_prof.flash.bar; in asd_write_flash_seg()
1143 switch (asd_ha->hw_prof.flash.method) { in asd_write_flash_seg()
1201 reg = asd_ha->hw_prof.flash.bar; in asd_chk_write_status()
1257 reg = asd_ha->hw_prof.flash.bar; in asd_erase_nv_sector()
1267 switch (asd_ha->hw_prof.flash.method) { in asd_erase_nv_sector()
1307 reg = asd_ha->hw_prof.flash.bar; in asd_check_flash_type()
1316 asd_ha->hw_prof.flash.method = FLASH_METHOD_UNKNOWN; in asd_check_flash_type()
1317 asd_ha->hw_prof.flash.manuf = FLASH_MANUF_ID_UNKNOWN; in asd_check_flash_type()
1318 asd_ha->hw_prof.flash.dev_id = FLASH_DEV_ID_UNKNOWN; in asd_check_flash_type()
1324 inc = asd_ha->hw_prof.flash.wide ? 2 : 1; in asd_check_flash_type()
1349 asd_ha->hw_prof.flash.method = FLASH_METHOD_A; in asd_check_flash_type()
1359 asd_ha->hw_prof.flash.method = FLASH_METHOD_A; in asd_check_flash_type()
1369 asd_ha->hw_prof.flash.method = FLASH_METHOD_A; in asd_check_flash_type()
1376 asd_ha->hw_prof.flash.method = FLASH_METHOD_A; in asd_check_flash_type()
1382 if (asd_ha->hw_prof.flash.method == FLASH_METHOD_UNKNOWN) { in asd_check_flash_type()
1410 asd_ha->hw_prof.flash.method = FLASH_METHOD_B; in asd_check_flash_type()
1419 asd_ha->hw_prof.flash.method = FLASH_METHOD_B; in asd_check_flash_type()
1428 asd_ha->hw_prof.flash.method = FLASH_METHOD_B; in asd_check_flash_type()
1435 asd_ha->hw_prof.flash.method = FLASH_METHOD_B; in asd_check_flash_type()
1442 asd_ha->hw_prof.flash.method = FLASH_METHOD_B; in asd_check_flash_type()
1451 if (asd_ha->hw_prof.flash.method == FLASH_METHOD_UNKNOWN) in asd_check_flash_type()
1454 asd_ha->hw_prof.flash.manuf = manuf_id; in asd_check_flash_type()
1455 asd_ha->hw_prof.flash.dev_id = dev_id; in asd_check_flash_type()
1456 asd_ha->hw_prof.flash.sec_prot = sec_prot; in asd_check_flash_type()