Lines Matching refs:cfgtable
7215 static int write_driver_ver_to_cfgtable(struct CfgTable __iomem *cfgtable) in write_driver_ver_to_cfgtable() argument
7218 int i, size = sizeof(cfgtable->driver_version); in write_driver_ver_to_cfgtable()
7226 writeb(driver_version[i], &cfgtable->driver_version[i]); in write_driver_ver_to_cfgtable()
7231 static void read_driver_ver_from_cfgtable(struct CfgTable __iomem *cfgtable, in read_driver_ver_from_cfgtable() argument
7236 for (i = 0; i < sizeof(cfgtable->driver_version); i++) in read_driver_ver_from_cfgtable()
7237 driver_ver[i] = readb(&cfgtable->driver_version[i]); in read_driver_ver_from_cfgtable()
7240 static int controller_reset_failed(struct CfgTable __iomem *cfgtable) in controller_reset_failed() argument
7244 int rc, size = sizeof(cfgtable->driver_version); in controller_reset_failed()
7255 read_driver_ver_from_cfgtable(cfgtable, driver_ver); in controller_reset_failed()
7272 struct CfgTable __iomem *cfgtable; in hpsa_kdump_hard_reset_controller() local
7315 cfgtable = remap_pci_mem(pci_resource_start(pdev, in hpsa_kdump_hard_reset_controller()
7316 cfg_base_addr_index) + cfg_offset, sizeof(*cfgtable)); in hpsa_kdump_hard_reset_controller()
7317 if (!cfgtable) { in hpsa_kdump_hard_reset_controller()
7321 rc = write_driver_ver_to_cfgtable(cfgtable); in hpsa_kdump_hard_reset_controller()
7328 misc_fw_support = readl(&cfgtable->misc_fw_support); in hpsa_kdump_hard_reset_controller()
7372 iounmap(cfgtable); in hpsa_kdump_hard_reset_controller()
7608 if (h->cfgtable) { in hpsa_free_cfgtables()
7609 iounmap(h->cfgtable); in hpsa_free_cfgtables()
7610 h->cfgtable = NULL; in hpsa_free_cfgtables()
7629 h->cfgtable = remap_pci_mem(pci_resource_start(h->pdev, in hpsa_find_cfgtables()
7630 cfg_base_addr_index) + cfg_offset, sizeof(*h->cfgtable)); in hpsa_find_cfgtables()
7631 if (!h->cfgtable) { in hpsa_find_cfgtables()
7635 rc = write_driver_ver_to_cfgtable(h->cfgtable); in hpsa_find_cfgtables()
7639 trans_offset = readl(&h->cfgtable->TransMethodOffset); in hpsa_find_cfgtables()
7656 h->max_commands = readl(&h->cfgtable->MaxPerformantModeCommands); in hpsa_get_max_perf_mode_cmds()
7688 h->maxsgentries = readl(&(h->cfgtable->MaxScatterGatherElements)); in hpsa_find_board_params()
7689 h->fw_support = readl(&(h->cfgtable->misc_fw_support)); in hpsa_find_board_params()
7707 h->TMFSupportFlags = readl(&(h->cfgtable->TMFSupportFlags)); in hpsa_find_board_params()
7718 if (!check_signature(h->cfgtable->Signature, "CISS", 4)) { in hpsa_CISS_signature_present()
7729 driver_support = readl(&(h->cfgtable->driver_support)); in hpsa_set_driver_support_bits()
7735 writel(driver_support, &(h->cfgtable->driver_support)); in hpsa_set_driver_support_bits()
7803 trans_support = readl(&(h->cfgtable->TransportSupport)); in hpsa_enter_simple_mode()
7807 h->max_commands = readl(&(h->cfgtable->CmdsOutMax)); in hpsa_enter_simple_mode()
7810 writel(CFGTBL_Trans_Simple, &(h->cfgtable->HostWrite.TransportRequest)); in hpsa_enter_simple_mode()
7811 writel(0, &h->cfgtable->HostWrite.command_pool_addr_hi); in hpsa_enter_simple_mode()
7815 print_cfg_table(&h->pdev->dev, h->cfgtable); in hpsa_enter_simple_mode()
7816 if (!(readl(&(h->cfgtable->TransportActive)) & CFGTBL_Trans_Simple)) in hpsa_enter_simple_mode()
8292 heartbeat = readl(&h->cfgtable->HeartBeat); in detect_controller_lockup()
8412 writel(h->events, &(h->cfgtable->clear_event_notify)); in hpsa_ack_ctlr_events()
8420 writel(h->events, &(h->cfgtable->clear_event_notify)); in hpsa_ack_ctlr_events()
8442 h->events = readl(&(h->cfgtable->event_notify)); in hpsa_ctlr_needs_rescan()
8821 rc = controller_reset_failed(h->cfgtable); in hpsa_init_one()
9229 writel(0, &h->cfgtable->HostWrite.command_pool_addr_hi); in hpsa_enter_performant_mode()
9230 writel(transMethod, &(h->cfgtable->HostWrite.TransportRequest)); in hpsa_enter_performant_mode()
9236 writel(10, &h->cfgtable->HostWrite.CoalIntDelay); in hpsa_enter_performant_mode()
9237 writel(4, &h->cfgtable->HostWrite.CoalIntCount); in hpsa_enter_performant_mode()
9247 register_value = readl(&(h->cfgtable->TransportActive)); in hpsa_enter_performant_mode()
9310 bft2_offset = readl(&h->cfgtable->io_accel_request_size_offset); in hpsa_enter_performant_mode()
9350 readl(&(h->cfgtable->io_accel_max_embedded_sg_count)); in hpsa_alloc_ioaccel1_cmd_and_bft()
9407 readl(&(h->cfgtable->io_accel_max_embedded_sg_count)); in hpsa_alloc_ioaccel2_cmd_and_bft()
9464 trans_support = readl(&(h->cfgtable->TransportSupport)); in hpsa_put_ctlr_into_performant_mode()