Lines Matching refs:reply
1801 int reply = -EINVAL; in do_scsi_command() local
1822 reply = check_command(common, 6, DATA_DIR_TO_HOST, in do_scsi_command()
1825 if (reply == 0) in do_scsi_command()
1826 reply = do_inquiry(common, bh); in do_scsi_command()
1831 reply = check_command(common, 6, DATA_DIR_FROM_HOST, in do_scsi_command()
1834 if (reply == 0) in do_scsi_command()
1835 reply = do_mode_select(common, bh); in do_scsi_command()
1841 reply = check_command(common, 10, DATA_DIR_FROM_HOST, in do_scsi_command()
1844 if (reply == 0) in do_scsi_command()
1845 reply = do_mode_select(common, bh); in do_scsi_command()
1850 reply = check_command(common, 6, DATA_DIR_TO_HOST, in do_scsi_command()
1853 if (reply == 0) in do_scsi_command()
1854 reply = do_mode_sense(common, bh); in do_scsi_command()
1860 reply = check_command(common, 10, DATA_DIR_TO_HOST, in do_scsi_command()
1863 if (reply == 0) in do_scsi_command()
1864 reply = do_mode_sense(common, bh); in do_scsi_command()
1869 reply = check_command(common, 6, DATA_DIR_NONE, in do_scsi_command()
1872 if (reply == 0) in do_scsi_command()
1873 reply = do_prevent_allow(common); in do_scsi_command()
1879 reply = check_command_size_in_blocks(common, 6, in do_scsi_command()
1883 if (reply == 0) in do_scsi_command()
1884 reply = do_read(common); in do_scsi_command()
1890 reply = check_command_size_in_blocks(common, 10, in do_scsi_command()
1894 if (reply == 0) in do_scsi_command()
1895 reply = do_read(common); in do_scsi_command()
1901 reply = check_command_size_in_blocks(common, 12, in do_scsi_command()
1905 if (reply == 0) in do_scsi_command()
1906 reply = do_read(common); in do_scsi_command()
1912 reply = check_command_size_in_blocks(common, 16, in do_scsi_command()
1916 if (reply == 0) in do_scsi_command()
1917 reply = do_read(common); in do_scsi_command()
1922 reply = check_command(common, 10, DATA_DIR_TO_HOST, in do_scsi_command()
1925 if (reply == 0) in do_scsi_command()
1926 reply = do_read_capacity(common, bh); in do_scsi_command()
1934 reply = check_command(common, 10, DATA_DIR_TO_HOST, in do_scsi_command()
1937 if (reply == 0) in do_scsi_command()
1938 reply = do_read_header(common, bh); in do_scsi_command()
1946 reply = check_command(common, 10, DATA_DIR_TO_HOST, in do_scsi_command()
1949 if (reply == 0) in do_scsi_command()
1950 reply = do_read_toc(common, bh); in do_scsi_command()
1956 reply = check_command(common, 10, DATA_DIR_TO_HOST, in do_scsi_command()
1959 if (reply == 0) in do_scsi_command()
1960 reply = do_read_format_capacities(common, bh); in do_scsi_command()
1965 reply = check_command(common, 6, DATA_DIR_TO_HOST, in do_scsi_command()
1968 if (reply == 0) in do_scsi_command()
1969 reply = do_request_sense(common, bh); in do_scsi_command()
1978 reply = check_command(common, 16, DATA_DIR_TO_HOST, in do_scsi_command()
1982 if (reply == 0) in do_scsi_command()
1983 reply = do_read_capacity_16(common, bh); in do_scsi_command()
1993 reply = check_command(common, 6, DATA_DIR_NONE, in do_scsi_command()
1996 if (reply == 0) in do_scsi_command()
1997 reply = do_start_stop(common); in do_scsi_command()
2002 reply = check_command(common, 10, DATA_DIR_NONE, in do_scsi_command()
2005 if (reply == 0) in do_scsi_command()
2006 reply = do_synchronize_cache(common); in do_scsi_command()
2011 reply = check_command(common, 6, DATA_DIR_NONE, in do_scsi_command()
2022 reply = check_command(common, 10, DATA_DIR_NONE, in do_scsi_command()
2025 if (reply == 0) in do_scsi_command()
2026 reply = do_verify(common); in do_scsi_command()
2032 reply = check_command_size_in_blocks(common, 6, in do_scsi_command()
2036 if (reply == 0) in do_scsi_command()
2037 reply = do_write(common); in do_scsi_command()
2043 reply = check_command_size_in_blocks(common, 10, in do_scsi_command()
2047 if (reply == 0) in do_scsi_command()
2048 reply = do_write(common); in do_scsi_command()
2054 reply = check_command_size_in_blocks(common, 12, in do_scsi_command()
2058 if (reply == 0) in do_scsi_command()
2059 reply = do_write(common); in do_scsi_command()
2065 reply = check_command_size_in_blocks(common, 16, in do_scsi_command()
2069 if (reply == 0) in do_scsi_command()
2070 reply = do_write(common); in do_scsi_command()
2088 reply = check_command(common, common->cmnd_size, in do_scsi_command()
2090 if (reply == 0) { in do_scsi_command()
2092 reply = -EINVAL; in do_scsi_command()
2098 if (reply == -EINTR || signal_pending(current)) in do_scsi_command()
2102 if (reply == -EINVAL) in do_scsi_command()
2103 reply = 0; /* Error reply length */ in do_scsi_command()
2104 if (reply >= 0 && common->data_dir == DATA_DIR_TO_HOST) { in do_scsi_command()
2105 reply = min((u32)reply, common->data_size_from_cmnd); in do_scsi_command()
2106 bh->inreq->length = reply; in do_scsi_command()
2108 common->residue -= reply; in do_scsi_command()