Lines Matching refs:cfgtable
7243 static int write_driver_ver_to_cfgtable(struct CfgTable __iomem *cfgtable) in write_driver_ver_to_cfgtable() argument
7246 int i, size = sizeof(cfgtable->driver_version); in write_driver_ver_to_cfgtable()
7254 writeb(driver_version[i], &cfgtable->driver_version[i]); in write_driver_ver_to_cfgtable()
7259 static void read_driver_ver_from_cfgtable(struct CfgTable __iomem *cfgtable, in read_driver_ver_from_cfgtable() argument
7264 for (i = 0; i < sizeof(cfgtable->driver_version); i++) in read_driver_ver_from_cfgtable()
7265 driver_ver[i] = readb(&cfgtable->driver_version[i]); in read_driver_ver_from_cfgtable()
7268 static int controller_reset_failed(struct CfgTable __iomem *cfgtable) in controller_reset_failed() argument
7272 int rc, size = sizeof(cfgtable->driver_version); in controller_reset_failed()
7283 read_driver_ver_from_cfgtable(cfgtable, driver_ver); in controller_reset_failed()
7300 struct CfgTable __iomem *cfgtable; in hpsa_kdump_hard_reset_controller() local
7343 cfgtable = remap_pci_mem(pci_resource_start(pdev, in hpsa_kdump_hard_reset_controller()
7344 cfg_base_addr_index) + cfg_offset, sizeof(*cfgtable)); in hpsa_kdump_hard_reset_controller()
7345 if (!cfgtable) { in hpsa_kdump_hard_reset_controller()
7349 rc = write_driver_ver_to_cfgtable(cfgtable); in hpsa_kdump_hard_reset_controller()
7356 misc_fw_support = readl(&cfgtable->misc_fw_support); in hpsa_kdump_hard_reset_controller()
7400 iounmap(cfgtable); in hpsa_kdump_hard_reset_controller()
7635 if (h->cfgtable) { in hpsa_free_cfgtables()
7636 iounmap(h->cfgtable); in hpsa_free_cfgtables()
7637 h->cfgtable = NULL; in hpsa_free_cfgtables()
7656 h->cfgtable = remap_pci_mem(pci_resource_start(h->pdev, in hpsa_find_cfgtables()
7657 cfg_base_addr_index) + cfg_offset, sizeof(*h->cfgtable)); in hpsa_find_cfgtables()
7658 if (!h->cfgtable) { in hpsa_find_cfgtables()
7662 rc = write_driver_ver_to_cfgtable(h->cfgtable); in hpsa_find_cfgtables()
7666 trans_offset = readl(&h->cfgtable->TransMethodOffset); in hpsa_find_cfgtables()
7683 h->max_commands = readl(&h->cfgtable->MaxPerformantModeCommands); in hpsa_get_max_perf_mode_cmds()
7715 h->maxsgentries = readl(&(h->cfgtable->MaxScatterGatherElements)); in hpsa_find_board_params()
7716 h->fw_support = readl(&(h->cfgtable->misc_fw_support)); in hpsa_find_board_params()
7734 h->TMFSupportFlags = readl(&(h->cfgtable->TMFSupportFlags)); in hpsa_find_board_params()
7745 if (!check_signature(h->cfgtable->Signature, "CISS", 4)) { in hpsa_CISS_signature_present()
7756 driver_support = readl(&(h->cfgtable->driver_support)); in hpsa_set_driver_support_bits()
7762 writel(driver_support, &(h->cfgtable->driver_support)); in hpsa_set_driver_support_bits()
7830 trans_support = readl(&(h->cfgtable->TransportSupport)); in hpsa_enter_simple_mode()
7834 h->max_commands = readl(&(h->cfgtable->CmdsOutMax)); in hpsa_enter_simple_mode()
7837 writel(CFGTBL_Trans_Simple, &(h->cfgtable->HostWrite.TransportRequest)); in hpsa_enter_simple_mode()
7838 writel(0, &h->cfgtable->HostWrite.command_pool_addr_hi); in hpsa_enter_simple_mode()
7842 print_cfg_table(&h->pdev->dev, h->cfgtable); in hpsa_enter_simple_mode()
7843 if (!(readl(&(h->cfgtable->TransportActive)) & CFGTBL_Trans_Simple)) in hpsa_enter_simple_mode()
8317 heartbeat = readl(&h->cfgtable->HeartBeat); in detect_controller_lockup()
8437 writel(h->events, &(h->cfgtable->clear_event_notify)); in hpsa_ack_ctlr_events()
8445 writel(h->events, &(h->cfgtable->clear_event_notify)); in hpsa_ack_ctlr_events()
8467 h->events = readl(&(h->cfgtable->event_notify)); in hpsa_ctlr_needs_rescan()
8842 rc = controller_reset_failed(h->cfgtable); in hpsa_init_one()
9251 writel(0, &h->cfgtable->HostWrite.command_pool_addr_hi); in hpsa_enter_performant_mode()
9252 writel(transMethod, &(h->cfgtable->HostWrite.TransportRequest)); in hpsa_enter_performant_mode()
9258 writel(10, &h->cfgtable->HostWrite.CoalIntDelay); in hpsa_enter_performant_mode()
9259 writel(4, &h->cfgtable->HostWrite.CoalIntCount); in hpsa_enter_performant_mode()
9269 register_value = readl(&(h->cfgtable->TransportActive)); in hpsa_enter_performant_mode()
9331 bft2_offset = readl(&h->cfgtable->io_accel_request_size_offset); in hpsa_enter_performant_mode()
9371 readl(&(h->cfgtable->io_accel_max_embedded_sg_count)); in hpsa_alloc_ioaccel1_cmd_and_bft()
9428 readl(&(h->cfgtable->io_accel_max_embedded_sg_count)); in hpsa_alloc_ioaccel2_cmd_and_bft()
9483 trans_support = readl(&(h->cfgtable->TransportSupport)); in hpsa_put_ctlr_into_performant_mode()