Lines Matching refs:data_count
2116 int fifodata, data_count;
2151 data_count = fifodata>CURRENT_SC->SCp.this_residual ?
2154 fifodata -= data_count;
2156 if(data_count & 1) {
2165 if(data_count > 1) {
2166 DPRINTK(debug_datai, DEBUG_LEAD "16bit(%d)\n", CMDINFO(CURRENT_SC), data_count);
2167 data_count >>= 1;
2168 insw(DATAPORT, CURRENT_SC->SCp.ptr, data_count);
2169 CURRENT_SC->SCp.ptr += 2 * data_count;
2170 CURRENT_SC->SCp.this_residual -= 2 * data_count;
2171 DATA_LEN += 2 * data_count;
2256 int data_count;
2260 data_count = 128;
2261 if(data_count > CURRENT_SC->SCp.this_residual)
2262 data_count=CURRENT_SC->SCp.this_residual;
2270 if(data_count & 1) {
2278 if(data_count > 1) {
2279 data_count >>= 1;
2280 outsw(DATAPORT, CURRENT_SC->SCp.ptr, data_count);
2281 CURRENT_SC->SCp.ptr += 2 * data_count;
2282 CURRENT_SC->SCp.this_residual -= 2 * data_count;
2283 CMD_INC_RESID(CURRENT_SC, -2 * data_count);
2309 int data_count = (DATA_LEN - scsi_get_resid(CURRENT_SC)) -
2314 data_count,
2318 CMD_INC_RESID(CURRENT_SC, data_count);
2320 data_count -= CURRENT_SC->SCp.ptr -
2322 while(data_count>0) {
2325 data_count -= CURRENT_SC->SCp.buffer->length;
2328 data_count;
2330 data_count;