Lines Matching refs:param

1171 	u_short param[6];  in isp1020_abort()  local
1190 param[0] = MBOX_ABORT; in isp1020_abort()
1191 param[1] = (((u_short) Cmnd->target) << 8) | Cmnd->lun; in isp1020_abort()
1192 param[2] = cmd_cookie >> 16; in isp1020_abort()
1193 param[3] = cmd_cookie & 0xffff; in isp1020_abort()
1195 isp1020_mbox_command(host, param); in isp1020_abort()
1197 if (param[0] != MBOX_COMMAND_COMPLETE) { in isp1020_abort()
1198 printk("qlogicisp : scsi abort failure: %x\n", param[0]); in isp1020_abort()
1212 u_short param[6]; in isp1020_reset() local
1222 param[0] = MBOX_BUS_RESET; in isp1020_reset()
1223 param[1] = hostdata->host_param.bus_reset_delay; in isp1020_reset()
1227 isp1020_mbox_command(host, param); in isp1020_reset()
1229 if (param[0] != MBOX_COMMAND_COMPLETE) { in isp1020_reset()
1230 printk("qlogicisp : scsi bus reset failure: %x\n", param[0]); in isp1020_reset()
1269 u_short param[6]; in isp1020_reset_hardware() local
1300 param[0] = MBOX_NO_OP; in isp1020_reset_hardware()
1301 isp1020_mbox_command(host, param); in isp1020_reset_hardware()
1302 if (param[0] != MBOX_COMMAND_COMPLETE) { in isp1020_reset_hardware()
1311 param[0] = MBOX_WRITE_RAM_WORD; in isp1020_reset_hardware()
1312 param[1] = risc_code_addr01 + loop_count; in isp1020_reset_hardware()
1313 param[2] = risc_code01[loop_count]; in isp1020_reset_hardware()
1314 isp1020_mbox_command(host, param); in isp1020_reset_hardware()
1315 if (param[0] != MBOX_COMMAND_COMPLETE) { in isp1020_reset_hardware()
1325 param[0] = MBOX_VERIFY_CHECKSUM; in isp1020_reset_hardware()
1326 param[1] = risc_code_addr01; in isp1020_reset_hardware()
1328 isp1020_mbox_command(host, param); in isp1020_reset_hardware()
1330 if (param[0] != MBOX_COMMAND_COMPLETE) { in isp1020_reset_hardware()
1337 param[0] = MBOX_EXEC_FIRMWARE; in isp1020_reset_hardware()
1338 param[1] = risc_code_addr01; in isp1020_reset_hardware()
1340 isp1020_mbox_command(host, param); in isp1020_reset_hardware()
1342 param[0] = MBOX_ABOUT_FIRMWARE; in isp1020_reset_hardware()
1344 isp1020_mbox_command(host, param); in isp1020_reset_hardware()
1346 if (param[0] != MBOX_COMMAND_COMPLETE) { in isp1020_reset_hardware()
1351 DEBUG(printk("qlogicisp : firmware major revision %d\n", param[1])); in isp1020_reset_hardware()
1352 DEBUG(printk("qlogicisp : firmware minor revision %d\n", param[2])); in isp1020_reset_hardware()
1697 u_short param[8]; in isp1020_load_parameters() local
1700 u_short param[6]; in isp1020_load_parameters() local
1723 param[0] = MBOX_SET_INIT_SCSI_ID; in isp1020_load_parameters()
1724 param[1] = hostdata->host_param.initiator_scsi_id; in isp1020_load_parameters()
1726 isp1020_mbox_command(host, param); in isp1020_load_parameters()
1728 if (param[0] != MBOX_COMMAND_COMPLETE) { in isp1020_load_parameters()
1734 param[0] = MBOX_SET_RETRY_COUNT; in isp1020_load_parameters()
1735 param[1] = hostdata->host_param.retry_count; in isp1020_load_parameters()
1736 param[2] = hostdata->host_param.retry_delay; in isp1020_load_parameters()
1738 isp1020_mbox_command(host, param); in isp1020_load_parameters()
1740 if (param[0] != MBOX_COMMAND_COMPLETE) { in isp1020_load_parameters()
1746 param[0] = MBOX_SET_ASYNC_DATA_SETUP_TIME; in isp1020_load_parameters()
1747 param[1] = hostdata->host_param.async_data_setup_time; in isp1020_load_parameters()
1749 isp1020_mbox_command(host, param); in isp1020_load_parameters()
1751 if (param[0] != MBOX_COMMAND_COMPLETE) { in isp1020_load_parameters()
1757 param[0] = MBOX_SET_ACTIVE_NEG_STATE; in isp1020_load_parameters()
1758 param[1] = (hostdata->host_param.req_ack_active_negation << 4) in isp1020_load_parameters()
1761 isp1020_mbox_command(host, param); in isp1020_load_parameters()
1763 if (param[0] != MBOX_COMMAND_COMPLETE) { in isp1020_load_parameters()
1769 param[0] = MBOX_SET_PCI_CONTROL_PARAMS; in isp1020_load_parameters()
1770 param[1] = hostdata->host_param.data_dma_burst_enable << 1; in isp1020_load_parameters()
1771 param[2] = hostdata->host_param.command_dma_burst_enable << 1; in isp1020_load_parameters()
1773 isp1020_mbox_command(host, param); in isp1020_load_parameters()
1775 if (param[0] != MBOX_COMMAND_COMPLETE) { in isp1020_load_parameters()
1781 param[0] = MBOX_SET_TAG_AGE_LIMIT; in isp1020_load_parameters()
1782 param[1] = hostdata->host_param.tag_aging; in isp1020_load_parameters()
1784 isp1020_mbox_command(host, param); in isp1020_load_parameters()
1786 if (param[0] != MBOX_COMMAND_COMPLETE) { in isp1020_load_parameters()
1792 param[0] = MBOX_SET_SELECT_TIMEOUT; in isp1020_load_parameters()
1793 param[1] = hostdata->host_param.selection_timeout; in isp1020_load_parameters()
1795 isp1020_mbox_command(host, param); in isp1020_load_parameters()
1797 if (param[0] != MBOX_COMMAND_COMPLETE) { in isp1020_load_parameters()
1808 param[0] = MBOX_SET_TARGET_PARAMS; in isp1020_load_parameters()
1809 param[1] = i << 8; in isp1020_load_parameters()
1810 param[2] = hostdata->dev_param[i].device_flags << 8; in isp1020_load_parameters()
1811 param[3] = (hostdata->dev_param[i].synchronous_offset << 8) in isp1020_load_parameters()
1814 isp1020_mbox_command(host, param); in isp1020_load_parameters()
1816 if (param[0] != MBOX_COMMAND_COMPLETE) { in isp1020_load_parameters()
1824 param[0] = MBOX_SET_DEV_QUEUE_PARAMS; in isp1020_load_parameters()
1825 param[1] = (i << 8) | k; in isp1020_load_parameters()
1826 param[2] = hostdata->host_param.max_queue_depth; in isp1020_load_parameters()
1827 param[3] = hostdata->dev_param[i].execution_throttle; in isp1020_load_parameters()
1829 isp1020_mbox_command(host, param); in isp1020_load_parameters()
1831 if (param[0] != MBOX_COMMAND_COMPLETE) { in isp1020_load_parameters()
1842 param[0] = MBOX_CMD_INIT_RESPONSE_QUEUE_64; in isp1020_load_parameters()
1844 param[0] = MBOX_INIT_RES_QUEUE; in isp1020_load_parameters()
1846 param[1] = RES_QUEUE_LEN + 1; in isp1020_load_parameters()
1847 param[2] = (u_short) (queue_addr >> 16); in isp1020_load_parameters()
1848 param[3] = (u_short) (queue_addr & 0xffff); in isp1020_load_parameters()
1849 param[4] = 0; in isp1020_load_parameters()
1850 param[5] = 0; in isp1020_load_parameters()
1852 param[6] = (u_short) (queue_addr >> 48); in isp1020_load_parameters()
1853 param[7] = (u_short) (queue_addr >> 32); in isp1020_load_parameters()
1856 isp1020_mbox_command(host, param); in isp1020_load_parameters()
1858 if (param[0] != MBOX_COMMAND_COMPLETE) { in isp1020_load_parameters()
1866 param[0] = MBOX_CMD_INIT_REQUEST_QUEUE_64; in isp1020_load_parameters()
1868 param[0] = MBOX_INIT_REQ_QUEUE; in isp1020_load_parameters()
1870 param[1] = QLOGICISP_REQ_QUEUE_LEN + 1; in isp1020_load_parameters()
1871 param[2] = (u_short) (queue_addr >> 16); in isp1020_load_parameters()
1872 param[3] = (u_short) (queue_addr & 0xffff); in isp1020_load_parameters()
1873 param[4] = 0; in isp1020_load_parameters()
1876 param[5] = 0; in isp1020_load_parameters()
1877 param[6] = (u_short) (queue_addr >> 48); in isp1020_load_parameters()
1878 param[7] = (u_short) (queue_addr >> 32); in isp1020_load_parameters()
1881 isp1020_mbox_command(host, param); in isp1020_load_parameters()
1883 if (param[0] != MBOX_COMMAND_COMPLETE) { in isp1020_load_parameters()
1901 static int isp1020_mbox_command(struct Scsi_Host *host, u_short param[]) in isp1020_mbox_command() argument
1905 if (mbox_param[param[0]] == 0) in isp1020_mbox_command()
1916 switch(mbox_param[param[0]] >> 4) { in isp1020_mbox_command()
1917 case 8: isp_outw(param[7], host, MBOX7); in isp1020_mbox_command()
1918 case 7: isp_outw(param[6], host, MBOX6); in isp1020_mbox_command()
1919 case 6: isp_outw(param[5], host, MBOX5); in isp1020_mbox_command()
1920 case 5: isp_outw(param[4], host, MBOX4); in isp1020_mbox_command()
1921 case 4: isp_outw(param[3], host, MBOX3); in isp1020_mbox_command()
1922 case 3: isp_outw(param[2], host, MBOX2); in isp1020_mbox_command()
1923 case 2: isp_outw(param[1], host, MBOX1); in isp1020_mbox_command()
1924 case 1: isp_outw(param[0], host, MBOX0); in isp1020_mbox_command()
1947 switch(mbox_param[param[0]] & 0xf) { in isp1020_mbox_command()
1948 case 8: param[7] = isp_inw(host, MBOX7); in isp1020_mbox_command()
1949 case 7: param[6] = isp_inw(host, MBOX6); in isp1020_mbox_command()
1950 case 6: param[5] = isp_inw(host, MBOX5); in isp1020_mbox_command()
1951 case 5: param[4] = isp_inw(host, MBOX4); in isp1020_mbox_command()
1952 case 4: param[3] = isp_inw(host, MBOX3); in isp1020_mbox_command()
1953 case 3: param[2] = isp_inw(host, MBOX2); in isp1020_mbox_command()
1954 case 2: param[1] = isp_inw(host, MBOX1); in isp1020_mbox_command()
1955 case 1: param[0] = isp_inw(host, MBOX0); in isp1020_mbox_command()