/linux-2.4.37.9/drivers/scsi/ |
D | scsi_merge.c | 103 bh->b_size >> 9, in dump_stats() 205 if( reqsize + bh->b_size > PAGE_SIZE ) { in __count_segments() 207 reqsize = bh->b_size; in __count_segments() 209 reqsize += bh->b_size; in __count_segments() 212 reqsize += bh->b_size; in __count_segments() 227 reqsize = bhnext->b_size; in __count_segments() 243 && reqsize + bhnext->b_size > PAGE_SIZE ) in __count_segments() 246 reqsize = bhnext->b_size; in __count_segments() 250 reqsize += bhnext->b_size; in __count_segments() 254 reqsize = bhnext->b_size; in __count_segments() [all …]
|
D | st.c | 3407 int i, priority, b_size, order, got = 0, segs = 0; in new_tape_buffer() local 3434 for (b_size = PAGE_SIZE, order=0; in new_tape_buffer() 3435 b_size < st_buffer_size && order < ST_FIRST_ORDER; in new_tape_buffer() 3436 order++, b_size *= 2) in new_tape_buffer() 3438 for ( ; b_size >= PAGE_SIZE; order--, b_size /= 2) { in new_tape_buffer() 3442 tb->sg_lengths[0] = b_size; in new_tape_buffer() 3452 for (b_size = PAGE_SIZE, order=0; in new_tape_buffer() 3454 tb->sg_lengths[0] + (ST_FIRST_SG - 1) * b_size; in new_tape_buffer() 3455 order++, b_size *= 2) in new_tape_buffer() 3464 (ST_FIRST_SG - segs) * b_size / 2) { in new_tape_buffer() [all …]
|
D | osst.c | 4269 int i, b_size, need_dma_buffer, new_session = FALSE, retval = 0; in os_scsi_tape_open() local 4562 for (i = 0, b_size = 0; in os_scsi_tape_open() 4563 i < STp->buffer->sg_segs && (b_size + STp->buffer->sg[i].length) <= OS_DATA_SIZE; in os_scsi_tape_open() 4564 b_size += STp->buffer->sg[i++].length); in os_scsi_tape_open() 4565 STp->buffer->aux = (os_aux_t *) (STp->buffer->sg[i].address + OS_DATA_SIZE - b_size); in os_scsi_tape_open() 5121 int i, priority, b_size, order, got = 0, segs = 0; in new_tape_buffer() local 5141 for (b_size = PAGE_SIZE, order = 0; in new_tape_buffer() 5142 b_size < osst_buffer_size && order < OSST_FIRST_ORDER; in new_tape_buffer() 5143 b_size *= 2, order++ ); in new_tape_buffer() 5145 for ( ; b_size >= PAGE_SIZE; order--, b_size /= 2) { in new_tape_buffer() [all …]
|
/linux-2.4.37.9/fs/reiserfs/ |
D | lbalance.c | 123 if (!dest_nr_item || (!op_is_left_mergeable (&(ih->ih_key), src->b_size))) in leaf_copy_boundary_item() 180 if (!dest_nr_item || !op_is_left_mergeable (&(dih->ih_key), src->b_size)) in leaf_copy_boundary_item() 206 le_ih_k_offset (ih) + op_bytes_number (ih, src->b_size), in leaf_copy_boundary_item() 228 (bytes_or_entries / UNFM_P_SIZE) * dest->b_size, in leaf_copy_boundary_item() 230 dih, (bytes_or_entries/UNFM_P_SIZE)*dest->b_size); in leaf_copy_boundary_item() 231 …set_le_ih_k_offset (dih, le_ih_k_offset (dih) - ((bytes_or_entries / UNFM_P_SIZE) * dest->b_size)); in leaf_copy_boundary_item() 294 j = location = (dest_before == 0) ? dest->b_size : ih_location(ih-1); in leaf_copy_items_entirely() 367 RFALSE( op_is_left_mergeable (&(ih->ih_key), src->b_size), in leaf_item_bottle() 395 …k_offset (&n_ih, le_ih_k_offset (ih) + (ih_item_len(ih) - cpy_bytes) / UNFM_P_SIZE * dest->b_size); in leaf_item_bottle() 622 (!op_is_left_mergeable (B_N_PKEY (S0, 0), S0->b_size)), in leaf_shift_left() [all …]
|
D | prints.c | 142 kdevname (bh->b_dev), bh->b_size, bh->b_blocknr, atomic_read (&(bh->b_count)), bh->b_list, in sprintf_buffer_head() 675 if ( nr > (bh->b_size - BLKH_SIZE) / IH_SIZE) in check_leaf_block_head() 678 bh->b_size - BLKH_SIZE - IH_SIZE * nr ) in check_leaf_block_head() 691 if (B_NR_ITEMS (bh) > (bh->b_size - BLKH_SIZE) / IH_SIZE) in check_internal_block_head() 695 bh->b_size - BLKH_SIZE - KEY_SIZE * B_NR_ITEMS (bh) - DC_SIZE * (B_NR_ITEMS (bh) + 1)) in check_internal_block_head()
|
/linux-2.4.37.9/drivers/message/i2o/ |
D | i2o_block.c | 311 size += bh->b_size; in i2ob_send() 312 last += bh->b_size; in i2ob_send() 321 __raw_writel(0x10000000|(bh->b_size), mptr); in i2ob_send() 323 __raw_writel(0xD0000000|(bh->b_size), mptr); in i2ob_send() 326 size = bh->b_size; in i2ob_send() 330 count -= bh->b_size; in i2ob_send() 357 size += bh->b_size; in i2ob_send() 358 last += bh->b_size; in i2ob_send() 367 __raw_writel(0x14000000|(bh->b_size), mptr); in i2ob_send() 369 __raw_writel(0xD4000000|(bh->b_size), mptr); in i2ob_send() [all …]
|
/linux-2.4.37.9/drivers/ide/raid/ |
D | ataraid.c | 186 bh2->b_rsector += bh->b_size >> 10; in ataraid_split_request() 187 bh1->b_size /= 2; in ataraid_split_request() 188 bh2->b_size /= 2; in ataraid_split_request() 195 bh2->b_data += bh->b_size/2; in ataraid_split_request()
|
D | hptraid.c | 259 if(rsect+bh->b_size/512 >= thisraid->disk[disk].sectors) in hptraidspan_make_request() 307 ((bh->b_rsector+(bh->b_size/512)-1)/thisraid->stride)) { in hptraid0_compute_request() 434 raid[device].disk[bestsofar].last_pos = bh->b_rsector+(bh->b_size>>9); in hptraid1_read_request() 478 raid[device].disk[i].last_pos = bh1->b_rsector+(bh1->b_size>>9); in hptraid1_write_request()
|
/linux-2.4.37.9/mm/ |
D | highmem.c | 224 memcpy(to->b_data, vfrom + bh_offset(from), to->b_size); in copy_from_high_bh() 239 memcpy(vto + bh_offset(to), from->b_data, to->b_size); in copy_to_high_bh_irq() 426 bh->b_size = bh_orig->b_size; in create_bounce()
|
/linux-2.4.37.9/drivers/block/ |
D | rd.c | 120 memset(address, 0, tmp->b_size); in ramdisk_updatepage() 123 address += tmp->b_size; in ramdisk_updatepage() 181 size = sbh->b_size; in rd_blkdev_pagecache_IO() 252 len = sbh->b_size; in rd_make_request()
|
D | acsi.c | 880 memcpy( dst, src, bh->b_size ); in copy_to_acsibuffer() 881 dst += bh->b_size; in copy_to_acsibuffer() 902 memcpy( dst, src, bh->b_size ); in copy_from_acsibuffer() 903 src += bh->b_size; in copy_from_acsibuffer() 923 n = CURRENT->bh->b_size >> 9; in do_end_requests() 1034 if (nsect + (bh->b_size>>9) > ACSI_BUFFER_SECTORS) break; in redo_acsi_request() 1035 nsect += bh->b_size >> 9; in redo_acsi_request() 1048 nsect += bh->b_size >> 9; in redo_acsi_request() 1049 pendadr = pnewadr + bh->b_size; in redo_acsi_request()
|
D | elevator.c | 84 unsigned int count = bh->b_size >> 9, ret = ELEVATOR_NO_MERGE; in elevator_linus_merge() 151 unsigned int count = bh->b_size >> 9; in elevator_noop_merge()
|
D | ll_rw_blk.c | 1003 count = bh->b_size >> 9; in __make_request() 1230 unsigned int count = bh->b_size >> 9; in generic_make_request() 1287 int count = bh->b_size >> 9; in submit_bh() 1372 if (bh->b_size % correct_size) { in ll_rw_block() 1376 correct_size, bh->b_size); in ll_rw_block() 1467 nsect = bh->b_size >> 9; in end_that_request_first() 1479 req->current_nr_sectors = bh->b_size >> 9; in end_that_request_first()
|
D | loop.c | 189 len = bh->b_size; in lo_send() 282 desc.count = bh->b_size; in lo_receive() 428 bh->b_size = rbh->b_size; in loop_get_buffer() 514 bh->b_size, IV)) in loop_make_request() 550 bh->b_size, IV); in loop_handle_bh()
|
D | umem.c | 421 bh->b_size, in add_bh() 436 desc->transfer_size = cpu_to_le32(bh->b_size); in add_bh() 484 pci_unmap_page(card->dev, desc->data_dma_handle, bh->b_size, in process_page() 496 card->card_number, bh->b_rsector, bh->b_size); in process_page() 544 PRINTK("mm_make_request %d %ld %d\n", rw, bh->b_rsector, bh->b_size); in mm_make_request() 988 bh->b_size = PAGE_SIZE; in mm_init_mem()
|
/linux-2.4.37.9/drivers/md/ |
D | raid1.c | 480 const int sectors = bh->b_size >> 9; in raid1_read_balance() 703 mbh->b_size = bh->b_size; in raid1_make_request() 1250 mbh->b_size = bh->b_size; in raid1d() 1272 md_done_sync(mddev, bh->b_size>>9, 0); in raid1d() 1279 md_sync_acct(bh1->b_dev, bh1->b_size/512); in raid1d() 1287 md_done_sync(mddev, bh->b_size>>9, 0); in raid1d() 1482 bh->b_size = bsize; in raid1_sync_request() 1500 md_sync_acct(bh->b_dev, bh->b_size/512); in raid1_sync_request() 1533 int size = bh->b_size; in end_sync_write()
|
D | raid0.c | 242 if (chunk_size < (block % chunk_size) + (bh->b_size >> 10)) in raid0_make_request() 277 …ert block across chunks or bigger than %dk %ld %d\n", chunk_size, bh->b_rsector, bh->b_size >> 10); in raid0_make_request()
|
D | raid5.c | 158 static int grow_buffers(struct stripe_head *sh, int num, int b_size, int priority) in grow_buffers() argument 417 memcpy(buffer->b_data, bh->b_data, bh->b_size); in raid5_end_read_request() 475 bh->b_size = sh->size; in raid5_build_block() 858 memcpy(bdata, bh->b_data, bh->b_size); in handle_stripe() 980 md_sync_acct(conf->disks[i].dev, bh->b_size>>9); in handle_stripe() 1086 !memcmp(bh->b_data, bh->b_data+4, bh->b_size-4)) { in handle_stripe() 1110 md_sync_acct(conf->disks[failed_num].dev, bh->b_size>>9); in handle_stripe() 1112 md_sync_acct(spare->dev, bh->b_size>>9); in handle_stripe() 1152 bh->b_rsector = bh->b_blocknr * (bh->b_size>>9); in handle_stripe() 1223 sh = get_active_stripe(conf, new_sector, bh->b_size, read_ahead); in raid5_make_request()
|
/linux-2.4.37.9/drivers/ide/pci/ |
D | sgiioc4.c | 711 sg[nents - 1].length += bh->b_size; in sgiioc4_ide_build_sglist() 712 lastdataend += bh->b_size; in sgiioc4_ide_build_sglist() 724 lastdataend = bh_phys(bh) + bh->b_size; in sgiioc4_ide_build_sglist() 730 lastdataend = (unsigned long) bh->b_data + bh->b_size; in sgiioc4_ide_build_sglist() 733 sg[nents].length = bh->b_size; in sgiioc4_ide_build_sglist()
|
/linux-2.4.37.9/drivers/s390/block/ |
D | dasd_fba.c | 313 if (bh->b_size < byt_per_blk) { in dasd_fba_build_cp_from_req() 316 bhct += bh->b_size >> (device->sizes.s2b_shift+9); in dasd_fba_build_cp_from_req() 356 for (size = 0; size < bh->b_size; size += byt_per_blk) { in dasd_fba_build_cp_from_req()
|
D | dasd_diag.c | 473 if (bh->b_size < byt_per_blk) in dasd_diag_build_cp_from_req() 475 bhct += bh->b_size >> (device->sizes.s2b_shift+9); in dasd_diag_build_cp_from_req() 487 for (size = 0; size < bh->b_size; size += byt_per_blk) { in dasd_diag_build_cp_from_req()
|
D | dasd_eckd.c | 1214 if (bh->b_size < byt_per_blk) { in dasd_eckd_build_cp_from_req() 1216 bh->b_size, byt_per_blk); in dasd_eckd_build_cp_from_req() 1219 bhct+= bh->b_size >> (device->sizes.s2b_shift+9); in dasd_eckd_build_cp_from_req() 1245 for (size = 0; size < bh->b_size; size += byt_per_blk) { in dasd_eckd_build_cp_from_req() 1330 if (bh->b_size > byt_per_blk) { 1331 for (size = 0; size < bh->b_size; size += byt_per_blk) { 1345 ccw->count = bh->b_size; 1347 size += bh->b_size;
|
/linux-2.4.37.9/drivers/ide/ |
D | ide-dma.c | 274 sg[nents - 1].length += bh->b_size; in ide_build_sglist() 275 lastdataend += bh->b_size; in ide_build_sglist() 287 lastdataend = bh_phys(bh) + bh->b_size; in ide_build_sglist() 293 lastdataend = (unsigned long) bh->b_data + bh->b_size; in ide_build_sglist() 296 sg[nents].length = bh->b_size; in ide_build_sglist()
|
/linux-2.4.37.9/include/linux/ |
D | blkdev.h | 207 #define BH_CONTIG(b1, b2) (bh_phys((b1)) + (b1)->b_size == bh_phys((b2))) 208 #define BH_PHYS_4G(b1, b2) ((bh_phys((b1)) | 0xffffffff) == ((bh_phys((b2)) + (b2)->b_size - 1) | 0…
|
/linux-2.4.37.9/fs/xfs/linux-2.4/ |
D | xfs_aops.c | 261 p_offset += bh->b_size; in xfs_probe_unwritten_page() 298 ret += bh->b_size; in xfs_probe_unmapped_page() 325 total += bh->b_size; in xfs_probe_unmapped_cluster() 444 p_offset += bh->b_size; in xfs_map_unwritten() 703 len = bh->b_size; in xfs_page_state_convert()
|