Lines Matching refs:cfgtable

5688 static int write_driver_ver_to_cfgtable(struct CfgTable __iomem *cfgtable)  in write_driver_ver_to_cfgtable()  argument
5691 int i, size = sizeof(cfgtable->driver_version); in write_driver_ver_to_cfgtable()
5699 writeb(driver_version[i], &cfgtable->driver_version[i]); in write_driver_ver_to_cfgtable()
5704 static void read_driver_ver_from_cfgtable(struct CfgTable __iomem *cfgtable, in read_driver_ver_from_cfgtable() argument
5709 for (i = 0; i < sizeof(cfgtable->driver_version); i++) in read_driver_ver_from_cfgtable()
5710 driver_ver[i] = readb(&cfgtable->driver_version[i]); in read_driver_ver_from_cfgtable()
5713 static int controller_reset_failed(struct CfgTable __iomem *cfgtable) in controller_reset_failed() argument
5717 int rc, size = sizeof(cfgtable->driver_version); in controller_reset_failed()
5728 read_driver_ver_from_cfgtable(cfgtable, driver_ver); in controller_reset_failed()
5745 struct CfgTable __iomem *cfgtable; in hpsa_kdump_hard_reset_controller() local
5794 cfgtable = remap_pci_mem(pci_resource_start(pdev, in hpsa_kdump_hard_reset_controller()
5795 cfg_base_addr_index) + cfg_offset, sizeof(*cfgtable)); in hpsa_kdump_hard_reset_controller()
5796 if (!cfgtable) { in hpsa_kdump_hard_reset_controller()
5800 rc = write_driver_ver_to_cfgtable(cfgtable); in hpsa_kdump_hard_reset_controller()
5807 misc_fw_support = readl(&cfgtable->misc_fw_support); in hpsa_kdump_hard_reset_controller()
5851 iounmap(cfgtable); in hpsa_kdump_hard_reset_controller()
6079 h->cfgtable = remap_pci_mem(pci_resource_start(h->pdev, in hpsa_find_cfgtables()
6080 cfg_base_addr_index) + cfg_offset, sizeof(*h->cfgtable)); in hpsa_find_cfgtables()
6081 if (!h->cfgtable) { in hpsa_find_cfgtables()
6085 rc = write_driver_ver_to_cfgtable(h->cfgtable); in hpsa_find_cfgtables()
6089 trans_offset = readl(&h->cfgtable->TransMethodOffset); in hpsa_find_cfgtables()
6100 h->max_commands = readl(&(h->cfgtable->MaxPerformantModeCommands)); in hpsa_get_max_perf_mode_cmds()
6132 h->maxsgentries = readl(&(h->cfgtable->MaxScatterGatherElements)); in hpsa_find_board_params()
6133 h->fw_support = readl(&(h->cfgtable->misc_fw_support)); in hpsa_find_board_params()
6151 h->TMFSupportFlags = readl(&(h->cfgtable->TMFSupportFlags)); in hpsa_find_board_params()
6160 if (!check_signature(h->cfgtable->Signature, "CISS", 4)) { in hpsa_CISS_signature_present()
6171 driver_support = readl(&(h->cfgtable->driver_support)); in hpsa_set_driver_support_bits()
6177 writel(driver_support, &(h->cfgtable->driver_support)); in hpsa_set_driver_support_bits()
6243 trans_support = readl(&(h->cfgtable->TransportSupport)); in hpsa_enter_simple_mode()
6247 h->max_commands = readl(&(h->cfgtable->CmdsOutMax)); in hpsa_enter_simple_mode()
6250 writel(CFGTBL_Trans_Simple, &(h->cfgtable->HostWrite.TransportRequest)); in hpsa_enter_simple_mode()
6251 writel(0, &h->cfgtable->HostWrite.command_pool_addr_hi); in hpsa_enter_simple_mode()
6255 print_cfg_table(&h->pdev->dev, h->cfgtable); in hpsa_enter_simple_mode()
6256 if (!(readl(&(h->cfgtable->TransportActive)) & CFGTBL_Trans_Simple)) in hpsa_enter_simple_mode()
6324 if (h->cfgtable) in hpsa_pci_init()
6325 iounmap(h->cfgtable); in hpsa_pci_init()
6608 if (h->cfgtable) in hpsa_undo_allocations_after_kdump_soft_reset()
6609 iounmap(h->cfgtable); in hpsa_undo_allocations_after_kdump_soft_reset()
6690 heartbeat = readl(&h->cfgtable->HeartBeat); in detect_controller_lockup()
6729 writel(h->events, &(h->cfgtable->clear_event_notify)); in hpsa_ack_ctlr_events()
6737 writel(h->events, &(h->cfgtable->clear_event_notify)); in hpsa_ack_ctlr_events()
6758 h->events = readl(&(h->cfgtable->event_notify)); in hpsa_ctlr_needs_rescan()
6984 rc = controller_reset_failed(h->cfgtable); in hpsa_init_one()
7115 iounmap(h->cfgtable); in hpsa_remove_one()
7267 writel(0, &h->cfgtable->HostWrite.command_pool_addr_hi); in hpsa_enter_performant_mode()
7268 writel(transMethod, &(h->cfgtable->HostWrite.TransportRequest)); in hpsa_enter_performant_mode()
7274 writel(10, &h->cfgtable->HostWrite.CoalIntDelay); in hpsa_enter_performant_mode()
7275 writel(4, &h->cfgtable->HostWrite.CoalIntCount); in hpsa_enter_performant_mode()
7279 writel(10, &h->cfgtable->HostWrite.CoalIntDelay); in hpsa_enter_performant_mode()
7280 writel(4, &h->cfgtable->HostWrite.CoalIntCount); in hpsa_enter_performant_mode()
7289 register_value = readl(&(h->cfgtable->TransportActive)); in hpsa_enter_performant_mode()
7352 bft2_offset = readl(&h->cfgtable->io_accel_request_size_offset); in hpsa_enter_performant_mode()
7376 readl(&(h->cfgtable->io_accel_max_embedded_sg_count)); in hpsa_alloc_ioaccel_cmd_and_bft()
7417 readl(&(h->cfgtable->io_accel_max_embedded_sg_count)); in ioaccel2_alloc_cmds_and_bft()
7459 trans_support = readl(&(h->cfgtable->TransportSupport)); in hpsa_put_ctlr_into_performant_mode()