• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/ide/

Lines Matching refs:b_count

337 	atomic_t b_count;
354 int b_count;
586 int b_count;
1010 count = min((unsigned int)(bh->b_size - atomic_read(&bh->b_count)), bcount);
1011 HWIF(drive)->atapi_input_bytes(drive, bh->b_data + atomic_read(&bh->b_count), count);
1013 atomic_add(count, &bh->b_count);
1014 if (atomic_read(&bh->b_count) == bh->b_size) {
1017 atomic_set(&bh->b_count, 0);
1036 count = min((unsigned int)pc->b_count, (unsigned int)bcount);
1040 pc->b_count -= count;
1041 if (!pc->b_count) {
1045 pc->b_count = atomic_read(&bh->b_count);
1068 atomic_set(&bh->b_count, count);
1069 if (atomic_read(&bh->b_count) == bh->b_size)
2045 atomic_set(&bh->b_count, 0);
2064 atomic_set(&bh->b_count, 0);
2067 atomic_set(&p->b_count, 0);
2083 pc->b_count = atomic_read(&bh->b_count);
2261 atomic_set(&bh->b_count, full ? bh->b_size : 0);
2272 atomic_add(PAGE_SIZE, &bh->b_count);
2278 atomic_add(PAGE_SIZE, &bh->b_count);
2289 atomic_set(&bh->b_count, full ? bh->b_size : 0);
2294 atomic_sub(tape->excess_bh_size, &bh->b_count);
2333 count = min((unsigned int)(bh->b_size - atomic_read(&bh->b_count)), (unsigned int)n);
2334 if (copy_from_user(bh->b_data + atomic_read(&bh->b_count), buf, count))
2337 atomic_add(count, &bh->b_count);
2339 if (atomic_read(&bh->b_count) == bh->b_size) {
2342 atomic_set(&bh->b_count, 0);
2363 count = min(tape->b_count, n);
2368 tape->b_count -= count;
2370 if (!tape->b_count) {
2374 tape->b_count = atomic_read(&bh->b_count);
2387 atomic_set(&bh->b_count, 0);
2390 tape->b_count = atomic_read(&bh->b_count);
2976 atomic_set(&bh->b_count, 0);
2986 min = min(i, (unsigned int)(bh->b_size - atomic_read(&bh->b_count)));
2987 memset(bh->b_data + atomic_read(&bh->b_count), 0, min);
2988 atomic_add(min, &bh->b_count);
3185 atomic_set(&bh->b_count, min(count, (unsigned int)bh->b_size));
3186 memset(bh->b_data, 0, atomic_read(&bh->b_count));
3187 count -= atomic_read(&bh->b_count);