Lines Matching refs:flashfw
1610 pt->CoppCP.cmd.flashfw.op_code == in ips_make_passthru()
1642 if (IPS_IS_TROMBONE(ha) && pt->CoppCP.cmd.flashfw.type == IPS_FW_IMAGE) { in ips_flash_copperhead()
1653 if (pt->CoppCP.cmd.flashfw.type == IPS_BIOS_IMAGE && in ips_flash_copperhead()
1654 pt->CoppCP.cmd.flashfw.direction == IPS_ERASE_BIOS) { in ips_flash_copperhead()
1657 } else if (pt->CoppCP.cmd.flashfw.packet_num == 0) { in ips_flash_copperhead()
1664 datasize = pt->CoppCP.cmd.flashfw.total_packets * in ips_flash_copperhead()
1665 pt->CoppCP.cmd.flashfw.count; in ips_flash_copperhead()
1677 if (pt->CoppCP.cmd.flashfw.count + ha->flash_datasize > in ips_flash_copperhead()
1689 pt->CoppCP.cmd.flashfw.count); in ips_flash_copperhead()
1690 ha->flash_datasize += pt->CoppCP.cmd.flashfw.count; in ips_flash_copperhead()
1691 if (pt->CoppCP.cmd.flashfw.packet_num == in ips_flash_copperhead()
1692 pt->CoppCP.cmd.flashfw.total_packets - 1) { in ips_flash_copperhead()
1693 if (pt->CoppCP.cmd.flashfw.type == IPS_BIOS_IMAGE) in ips_flash_copperhead()
1695 else if (pt->CoppCP.cmd.flashfw.type == IPS_FW_IMAGE) in ips_flash_copperhead()
1710 if (pt->CoppCP.cmd.flashfw.type == IPS_BIOS_IMAGE && in ips_flash_bios()
1711 pt->CoppCP.cmd.flashfw.direction == IPS_WRITE_BIOS) { in ips_flash_bios()
1743 } else if (pt->CoppCP.cmd.flashfw.type == IPS_BIOS_IMAGE && in ips_flash_bios()
1744 pt->CoppCP.cmd.flashfw.direction == IPS_ERASE_BIOS) { in ips_flash_bios()
1814 if (pt->CoppCP.cmd.flashfw.type == IPS_FW_IMAGE && in ips_flash_firmware()
1815 pt->CoppCP.cmd.flashfw.direction == IPS_WRITE_FW) { in ips_flash_firmware()
1817 pt->CoppCP.cmd.flashfw.op_code = IPS_CMD_DOWNLOAD; in ips_flash_firmware()
1818 pt->CoppCP.cmd.flashfw.count = cpu_to_le32(ha->flash_datasize); in ips_flash_firmware()
1848 scb->cmd.flashfw.command_id = IPS_COMMAND_ID(ha, scb); in ips_flash_firmware()
1849 scb->cmd.flashfw.buffer_addr = cpu_to_le32(scb->data_busaddr); in ips_flash_firmware()
1993 (scb->cmd.flashfw.op_code == IPS_CMD_DOWNLOAD || in ips_cleanup_passthru()
1994 scb->cmd.flashfw.op_code == IPS_CMD_RW_BIOSFW)) in ips_cleanup_passthru()
2321 scb->cmd.flashfw.op_code = IPS_CMD_RW_BIOSFW; in ips_get_bios_version()
2322 scb->cmd.flashfw.command_id = IPS_COMMAND_ID(ha, scb); in ips_get_bios_version()
2323 scb->cmd.flashfw.type = 1; in ips_get_bios_version()
2324 scb->cmd.flashfw.direction = 0; in ips_get_bios_version()
2325 scb->cmd.flashfw.count = cpu_to_le32(0x800); in ips_get_bios_version()
2326 scb->cmd.flashfw.total_packets = 1; in ips_get_bios_version()
2327 scb->cmd.flashfw.packet_num = 0; in ips_get_bios_version()
2329 scb->cmd.flashfw.buffer_addr = ha->ioctl_busaddr; in ips_get_bios_version()