Lines Matching refs:cfgtable

7247 static int write_driver_ver_to_cfgtable(struct CfgTable __iomem *cfgtable)  in write_driver_ver_to_cfgtable()  argument
7250 int i, size = sizeof(cfgtable->driver_version); in write_driver_ver_to_cfgtable()
7258 writeb(driver_version[i], &cfgtable->driver_version[i]); in write_driver_ver_to_cfgtable()
7263 static void read_driver_ver_from_cfgtable(struct CfgTable __iomem *cfgtable, in read_driver_ver_from_cfgtable() argument
7268 for (i = 0; i < sizeof(cfgtable->driver_version); i++) in read_driver_ver_from_cfgtable()
7269 driver_ver[i] = readb(&cfgtable->driver_version[i]); in read_driver_ver_from_cfgtable()
7272 static int controller_reset_failed(struct CfgTable __iomem *cfgtable) in controller_reset_failed() argument
7276 int rc, size = sizeof(cfgtable->driver_version); in controller_reset_failed()
7287 read_driver_ver_from_cfgtable(cfgtable, driver_ver); in controller_reset_failed()
7304 struct CfgTable __iomem *cfgtable; in hpsa_kdump_hard_reset_controller() local
7347 cfgtable = remap_pci_mem(pci_resource_start(pdev, in hpsa_kdump_hard_reset_controller()
7348 cfg_base_addr_index) + cfg_offset, sizeof(*cfgtable)); in hpsa_kdump_hard_reset_controller()
7349 if (!cfgtable) { in hpsa_kdump_hard_reset_controller()
7353 rc = write_driver_ver_to_cfgtable(cfgtable); in hpsa_kdump_hard_reset_controller()
7360 misc_fw_support = readl(&cfgtable->misc_fw_support); in hpsa_kdump_hard_reset_controller()
7404 iounmap(cfgtable); in hpsa_kdump_hard_reset_controller()
7639 if (h->cfgtable) { in hpsa_free_cfgtables()
7640 iounmap(h->cfgtable); in hpsa_free_cfgtables()
7641 h->cfgtable = NULL; in hpsa_free_cfgtables()
7660 h->cfgtable = remap_pci_mem(pci_resource_start(h->pdev, in hpsa_find_cfgtables()
7661 cfg_base_addr_index) + cfg_offset, sizeof(*h->cfgtable)); in hpsa_find_cfgtables()
7662 if (!h->cfgtable) { in hpsa_find_cfgtables()
7666 rc = write_driver_ver_to_cfgtable(h->cfgtable); in hpsa_find_cfgtables()
7670 trans_offset = readl(&h->cfgtable->TransMethodOffset); in hpsa_find_cfgtables()
7687 h->max_commands = readl(&h->cfgtable->MaxPerformantModeCommands); in hpsa_get_max_perf_mode_cmds()
7719 h->maxsgentries = readl(&(h->cfgtable->MaxScatterGatherElements)); in hpsa_find_board_params()
7720 h->fw_support = readl(&(h->cfgtable->misc_fw_support)); in hpsa_find_board_params()
7738 h->TMFSupportFlags = readl(&(h->cfgtable->TMFSupportFlags)); in hpsa_find_board_params()
7749 if (!check_signature(h->cfgtable->Signature, "CISS", 4)) { in hpsa_CISS_signature_present()
7760 driver_support = readl(&(h->cfgtable->driver_support)); in hpsa_set_driver_support_bits()
7766 writel(driver_support, &(h->cfgtable->driver_support)); in hpsa_set_driver_support_bits()
7834 trans_support = readl(&(h->cfgtable->TransportSupport)); in hpsa_enter_simple_mode()
7838 h->max_commands = readl(&(h->cfgtable->CmdsOutMax)); in hpsa_enter_simple_mode()
7841 writel(CFGTBL_Trans_Simple, &(h->cfgtable->HostWrite.TransportRequest)); in hpsa_enter_simple_mode()
7842 writel(0, &h->cfgtable->HostWrite.command_pool_addr_hi); in hpsa_enter_simple_mode()
7846 print_cfg_table(&h->pdev->dev, h->cfgtable); in hpsa_enter_simple_mode()
7847 if (!(readl(&(h->cfgtable->TransportActive)) & CFGTBL_Trans_Simple)) in hpsa_enter_simple_mode()
8323 heartbeat = readl(&h->cfgtable->HeartBeat); in detect_controller_lockup()
8443 writel(h->events, &(h->cfgtable->clear_event_notify)); in hpsa_ack_ctlr_events()
8451 writel(h->events, &(h->cfgtable->clear_event_notify)); in hpsa_ack_ctlr_events()
8473 h->events = readl(&(h->cfgtable->event_notify)); in hpsa_ctlr_needs_rescan()
8848 rc = controller_reset_failed(h->cfgtable); in hpsa_init_one()
9258 writel(0, &h->cfgtable->HostWrite.command_pool_addr_hi); in hpsa_enter_performant_mode()
9259 writel(transMethod, &(h->cfgtable->HostWrite.TransportRequest)); in hpsa_enter_performant_mode()
9265 writel(10, &h->cfgtable->HostWrite.CoalIntDelay); in hpsa_enter_performant_mode()
9266 writel(4, &h->cfgtable->HostWrite.CoalIntCount); in hpsa_enter_performant_mode()
9276 register_value = readl(&(h->cfgtable->TransportActive)); in hpsa_enter_performant_mode()
9338 bft2_offset = readl(&h->cfgtable->io_accel_request_size_offset); in hpsa_enter_performant_mode()
9378 readl(&(h->cfgtable->io_accel_max_embedded_sg_count)); in hpsa_alloc_ioaccel1_cmd_and_bft()
9435 readl(&(h->cfgtable->io_accel_max_embedded_sg_count)); in hpsa_alloc_ioaccel2_cmd_and_bft()
9492 trans_support = readl(&(h->cfgtable->TransportSupport)); in hpsa_put_ctlr_into_performant_mode()