Lines Matching refs:cfgtable

7193 static int write_driver_ver_to_cfgtable(struct CfgTable __iomem *cfgtable)  in write_driver_ver_to_cfgtable()  argument
7196 int i, size = sizeof(cfgtable->driver_version); in write_driver_ver_to_cfgtable()
7204 writeb(driver_version[i], &cfgtable->driver_version[i]); in write_driver_ver_to_cfgtable()
7209 static void read_driver_ver_from_cfgtable(struct CfgTable __iomem *cfgtable, in read_driver_ver_from_cfgtable() argument
7214 for (i = 0; i < sizeof(cfgtable->driver_version); i++) in read_driver_ver_from_cfgtable()
7215 driver_ver[i] = readb(&cfgtable->driver_version[i]); in read_driver_ver_from_cfgtable()
7218 static int controller_reset_failed(struct CfgTable __iomem *cfgtable) in controller_reset_failed() argument
7222 int rc, size = sizeof(cfgtable->driver_version); in controller_reset_failed()
7233 read_driver_ver_from_cfgtable(cfgtable, driver_ver); in controller_reset_failed()
7250 struct CfgTable __iomem *cfgtable; in hpsa_kdump_hard_reset_controller() local
7293 cfgtable = remap_pci_mem(pci_resource_start(pdev, in hpsa_kdump_hard_reset_controller()
7294 cfg_base_addr_index) + cfg_offset, sizeof(*cfgtable)); in hpsa_kdump_hard_reset_controller()
7295 if (!cfgtable) { in hpsa_kdump_hard_reset_controller()
7299 rc = write_driver_ver_to_cfgtable(cfgtable); in hpsa_kdump_hard_reset_controller()
7306 misc_fw_support = readl(&cfgtable->misc_fw_support); in hpsa_kdump_hard_reset_controller()
7350 iounmap(cfgtable); in hpsa_kdump_hard_reset_controller()
7586 if (h->cfgtable) { in hpsa_free_cfgtables()
7587 iounmap(h->cfgtable); in hpsa_free_cfgtables()
7588 h->cfgtable = NULL; in hpsa_free_cfgtables()
7607 h->cfgtable = remap_pci_mem(pci_resource_start(h->pdev, in hpsa_find_cfgtables()
7608 cfg_base_addr_index) + cfg_offset, sizeof(*h->cfgtable)); in hpsa_find_cfgtables()
7609 if (!h->cfgtable) { in hpsa_find_cfgtables()
7613 rc = write_driver_ver_to_cfgtable(h->cfgtable); in hpsa_find_cfgtables()
7617 trans_offset = readl(&h->cfgtable->TransMethodOffset); in hpsa_find_cfgtables()
7634 h->max_commands = readl(&h->cfgtable->MaxPerformantModeCommands); in hpsa_get_max_perf_mode_cmds()
7666 h->maxsgentries = readl(&(h->cfgtable->MaxScatterGatherElements)); in hpsa_find_board_params()
7667 h->fw_support = readl(&(h->cfgtable->misc_fw_support)); in hpsa_find_board_params()
7685 h->TMFSupportFlags = readl(&(h->cfgtable->TMFSupportFlags)); in hpsa_find_board_params()
7696 if (!check_signature(h->cfgtable->Signature, "CISS", 4)) { in hpsa_CISS_signature_present()
7707 driver_support = readl(&(h->cfgtable->driver_support)); in hpsa_set_driver_support_bits()
7713 writel(driver_support, &(h->cfgtable->driver_support)); in hpsa_set_driver_support_bits()
7781 trans_support = readl(&(h->cfgtable->TransportSupport)); in hpsa_enter_simple_mode()
7785 h->max_commands = readl(&(h->cfgtable->CmdsOutMax)); in hpsa_enter_simple_mode()
7788 writel(CFGTBL_Trans_Simple, &(h->cfgtable->HostWrite.TransportRequest)); in hpsa_enter_simple_mode()
7789 writel(0, &h->cfgtable->HostWrite.command_pool_addr_hi); in hpsa_enter_simple_mode()
7793 print_cfg_table(&h->pdev->dev, h->cfgtable); in hpsa_enter_simple_mode()
7794 if (!(readl(&(h->cfgtable->TransportActive)) & CFGTBL_Trans_Simple)) in hpsa_enter_simple_mode()
8270 heartbeat = readl(&h->cfgtable->HeartBeat); in detect_controller_lockup()
8377 writel(h->events, &(h->cfgtable->clear_event_notify)); in hpsa_ack_ctlr_events()
8385 writel(h->events, &(h->cfgtable->clear_event_notify)); in hpsa_ack_ctlr_events()
8407 h->events = readl(&(h->cfgtable->event_notify)); in hpsa_ctlr_needs_rescan()
8786 rc = controller_reset_failed(h->cfgtable); in hpsa_init_one()
9192 writel(0, &h->cfgtable->HostWrite.command_pool_addr_hi); in hpsa_enter_performant_mode()
9193 writel(transMethod, &(h->cfgtable->HostWrite.TransportRequest)); in hpsa_enter_performant_mode()
9199 writel(10, &h->cfgtable->HostWrite.CoalIntDelay); in hpsa_enter_performant_mode()
9200 writel(4, &h->cfgtable->HostWrite.CoalIntCount); in hpsa_enter_performant_mode()
9210 register_value = readl(&(h->cfgtable->TransportActive)); in hpsa_enter_performant_mode()
9273 bft2_offset = readl(&h->cfgtable->io_accel_request_size_offset); in hpsa_enter_performant_mode()
9313 readl(&(h->cfgtable->io_accel_max_embedded_sg_count)); in hpsa_alloc_ioaccel1_cmd_and_bft()
9370 readl(&(h->cfgtable->io_accel_max_embedded_sg_count)); in hpsa_alloc_ioaccel2_cmd_and_bft()
9427 trans_support = readl(&(h->cfgtable->TransportSupport)); in hpsa_put_ctlr_into_performant_mode()