Lines Matching refs:cfgtable

7055 static int write_driver_ver_to_cfgtable(struct CfgTable __iomem *cfgtable)  in write_driver_ver_to_cfgtable()  argument
7058 int i, size = sizeof(cfgtable->driver_version); in write_driver_ver_to_cfgtable()
7066 writeb(driver_version[i], &cfgtable->driver_version[i]); in write_driver_ver_to_cfgtable()
7071 static void read_driver_ver_from_cfgtable(struct CfgTable __iomem *cfgtable, in read_driver_ver_from_cfgtable() argument
7076 for (i = 0; i < sizeof(cfgtable->driver_version); i++) in read_driver_ver_from_cfgtable()
7077 driver_ver[i] = readb(&cfgtable->driver_version[i]); in read_driver_ver_from_cfgtable()
7080 static int controller_reset_failed(struct CfgTable __iomem *cfgtable) in controller_reset_failed() argument
7084 int rc, size = sizeof(cfgtable->driver_version); in controller_reset_failed()
7095 read_driver_ver_from_cfgtable(cfgtable, driver_ver); in controller_reset_failed()
7112 struct CfgTable __iomem *cfgtable; in hpsa_kdump_hard_reset_controller() local
7155 cfgtable = remap_pci_mem(pci_resource_start(pdev, in hpsa_kdump_hard_reset_controller()
7156 cfg_base_addr_index) + cfg_offset, sizeof(*cfgtable)); in hpsa_kdump_hard_reset_controller()
7157 if (!cfgtable) { in hpsa_kdump_hard_reset_controller()
7161 rc = write_driver_ver_to_cfgtable(cfgtable); in hpsa_kdump_hard_reset_controller()
7168 misc_fw_support = readl(&cfgtable->misc_fw_support); in hpsa_kdump_hard_reset_controller()
7212 iounmap(cfgtable); in hpsa_kdump_hard_reset_controller()
7446 if (h->cfgtable) { in hpsa_free_cfgtables()
7447 iounmap(h->cfgtable); in hpsa_free_cfgtables()
7448 h->cfgtable = NULL; in hpsa_free_cfgtables()
7467 h->cfgtable = remap_pci_mem(pci_resource_start(h->pdev, in hpsa_find_cfgtables()
7468 cfg_base_addr_index) + cfg_offset, sizeof(*h->cfgtable)); in hpsa_find_cfgtables()
7469 if (!h->cfgtable) { in hpsa_find_cfgtables()
7473 rc = write_driver_ver_to_cfgtable(h->cfgtable); in hpsa_find_cfgtables()
7477 trans_offset = readl(&h->cfgtable->TransMethodOffset); in hpsa_find_cfgtables()
7494 h->max_commands = readl(&h->cfgtable->MaxPerformantModeCommands); in hpsa_get_max_perf_mode_cmds()
7526 h->maxsgentries = readl(&(h->cfgtable->MaxScatterGatherElements)); in hpsa_find_board_params()
7527 h->fw_support = readl(&(h->cfgtable->misc_fw_support)); in hpsa_find_board_params()
7545 h->TMFSupportFlags = readl(&(h->cfgtable->TMFSupportFlags)); in hpsa_find_board_params()
7556 if (!check_signature(h->cfgtable->Signature, "CISS", 4)) { in hpsa_CISS_signature_present()
7567 driver_support = readl(&(h->cfgtable->driver_support)); in hpsa_set_driver_support_bits()
7573 writel(driver_support, &(h->cfgtable->driver_support)); in hpsa_set_driver_support_bits()
7641 trans_support = readl(&(h->cfgtable->TransportSupport)); in hpsa_enter_simple_mode()
7645 h->max_commands = readl(&(h->cfgtable->CmdsOutMax)); in hpsa_enter_simple_mode()
7648 writel(CFGTBL_Trans_Simple, &(h->cfgtable->HostWrite.TransportRequest)); in hpsa_enter_simple_mode()
7649 writel(0, &h->cfgtable->HostWrite.command_pool_addr_hi); in hpsa_enter_simple_mode()
7653 print_cfg_table(&h->pdev->dev, h->cfgtable); in hpsa_enter_simple_mode()
7654 if (!(readl(&(h->cfgtable->TransportActive)) & CFGTBL_Trans_Simple)) in hpsa_enter_simple_mode()
8127 heartbeat = readl(&h->cfgtable->HeartBeat); in detect_controller_lockup()
8167 writel(h->events, &(h->cfgtable->clear_event_notify)); in hpsa_ack_ctlr_events()
8175 writel(h->events, &(h->cfgtable->clear_event_notify)); in hpsa_ack_ctlr_events()
8201 h->events = readl(&(h->cfgtable->event_notify)); in hpsa_ctlr_needs_rescan()
8514 rc = controller_reset_failed(h->cfgtable); in hpsa_init_one()
8903 writel(0, &h->cfgtable->HostWrite.command_pool_addr_hi); in hpsa_enter_performant_mode()
8904 writel(transMethod, &(h->cfgtable->HostWrite.TransportRequest)); in hpsa_enter_performant_mode()
8910 writel(10, &h->cfgtable->HostWrite.CoalIntDelay); in hpsa_enter_performant_mode()
8911 writel(4, &h->cfgtable->HostWrite.CoalIntCount); in hpsa_enter_performant_mode()
8915 writel(10, &h->cfgtable->HostWrite.CoalIntDelay); in hpsa_enter_performant_mode()
8916 writel(4, &h->cfgtable->HostWrite.CoalIntCount); in hpsa_enter_performant_mode()
8925 register_value = readl(&(h->cfgtable->TransportActive)); in hpsa_enter_performant_mode()
8988 bft2_offset = readl(&h->cfgtable->io_accel_request_size_offset); in hpsa_enter_performant_mode()
9028 readl(&(h->cfgtable->io_accel_max_embedded_sg_count)); in hpsa_alloc_ioaccel1_cmd_and_bft()
9085 readl(&(h->cfgtable->io_accel_max_embedded_sg_count)); in hpsa_alloc_ioaccel2_cmd_and_bft()
9142 trans_support = readl(&(h->cfgtable->TransportSupport)); in hpsa_put_ctlr_into_performant_mode()