tag | line | file | source code |
block | 901 | arch/sparc/mm/srmmu.c | int set, block; |
block | 910 | arch/sparc/mm/srmmu.c | for (block = 0; block < 4; block++) { |
block | 912 | arch/sparc/mm/srmmu.c | viking_get_dcache_ptag(set, block, ptag); |
block | 1246 | drivers/block/amiflop.c | unsigned int block, track, sector; |
block | 1303 | drivers/block/amiflop.c | block = CURRENT->sector + cnt; |
block | 1304 | drivers/block/amiflop.c | if ((int)block > floppy->blocks) { |
block | 1309 | drivers/block/amiflop.c | track = block / floppy->sects; |
block | 1310 | drivers/block/amiflop.c | sector = block % floppy->sects; |
block | 1399 | drivers/block/ataflop.c | int block = ReqBlock + ReqCnt; |
block | 1401 | drivers/block/ataflop.c | ReqTrack = block / UDT->spt; |
block | 1402 | drivers/block/ataflop.c | ReqSector = block - ReqTrack * UDT->spt + 1; |
block | 2179 | drivers/block/floppy.c | int block; |
block | 2192 | drivers/block/floppy.c | block = current_count_sectors + CURRENT->sector; |
block | 2193 | drivers/block/floppy.c | INFBOUND(DRS->maxblock, block); |
block | 2194 | drivers/block/floppy.c | if (block > _floppy->sect) |
block | 3516 | drivers/block/floppy.c | int block; |
block | 3527 | drivers/block/floppy.c | block = (filp->f_pos + count) >> 9; |
block | 3528 | drivers/block/floppy.c | INFBOUND(UDRS->maxblock, block); |
block | 696 | drivers/block/hd.c | unsigned int dev, block, nsect, sec, track, head, cyl; |
block | 711 | drivers/block/hd.c | block = CURRENT->sector; |
block | 713 | drivers/block/hd.c | if (dev >= (NR_HD<<6) || block >= hd[dev].nr_sects || ((block+nsect) > hd[dev].nr_sects)) { |
block | 720 | drivers/block/hd.c | (MINOR(CURRENT->rq_dev)>>6)+'a', block, nsect); |
block | 725 | drivers/block/hd.c | block += hd[dev].start_sect; |
block | 732 | drivers/block/hd.c | sec = block % hd_info[dev].sect + 1; |
block | 733 | drivers/block/hd.c | track = block / hd_info[dev].sect; |
block | 1158 | drivers/block/ide-cd.c | static void cdrom_start_read (ide_drive_t *drive, unsigned int block) |
block | 1166 | drivers/block/ide-cd.c | rq->sector = block; |
block | 1415 | drivers/block/ide-cd.c | void ide_do_rw_cdrom (ide_drive_t *drive, unsigned long block) |
block | 1429 | drivers/block/ide-cd.c | cdrom_start_read (drive, block); |
block | 854 | drivers/block/ide-tape.c | void idetape_create_locate_cmd (idetape_packet_command_t *pc,unsigned long block,byte partition); |
block | 933 | drivers/block/ide-tape.c | int idetape_position_tape (ide_drive_t *drive,unsigned long block); |
block | 2483 | drivers/block/ide-tape.c | void idetape_create_locate_cmd (idetape_packet_command_t *pc,unsigned long block,byte partition) |
block | 2503 | drivers/block/ide-tape.c | *ptr=idetape_swap_long (block); |
block | 2900 | drivers/block/ide-tape.c | void idetape_do_request (ide_drive_t *drive, struct request *rq, unsigned long block) |
block | 4210 | drivers/block/ide-tape.c | int idetape_position_tape (ide_drive_t *drive,unsigned long block) |
block | 4216 | drivers/block/ide-tape.c | idetape_create_locate_cmd (&pc,block,0); |
block | 1252 | drivers/block/ide.c | static inline void do_rw_disk (ide_drive_t *drive, struct request *rq, unsigned long block) |
block | 1275 | drivers/block/ide.c | block, rq->nr_sectors, (unsigned long) rq->buffer); |
block | 1277 | drivers/block/ide.c | OUT_BYTE(block,io_base+IDE_SECTOR_OFFSET); |
block | 1278 | drivers/block/ide.c | OUT_BYTE(block>>=8,io_base+IDE_LCYL_OFFSET); |
block | 1279 | drivers/block/ide.c | OUT_BYTE(block>>=8,io_base+IDE_HCYL_OFFSET); |
block | 1280 | drivers/block/ide.c | OUT_BYTE(((block>>8)&0x0f)|drive->select.all,io_base+IDE_SELECT_OFFSET); |
block | 1283 | drivers/block/ide.c | track = block / drive->sect; |
block | 1284 | drivers/block/ide.c | sect = block % drive->sect + 1; |
block | 1373 | drivers/block/ide.c | unsigned long block, blockend; |
block | 1394 | drivers/block/ide.c | block = rq->sector; |
block | 1395 | drivers/block/ide.c | blockend = block + rq->nr_sectors; |
block | 1396 | drivers/block/ide.c | if ((blockend < block) || (blockend > drive->part[minor&PARTN_MASK].nr_sects)) { |
block | 1398 | drivers/block/ide.c | (minor&PARTN_MASK)?'0'+(minor&PARTN_MASK):' ', block, rq->nr_sectors); |
block | 1401 | drivers/block/ide.c | block += drive->part[minor&PARTN_MASK].start_sect + drive->sect0; |
block | 1403 | drivers/block/ide.c | if (block == 0 && drive->remap_0_to_1) |
block | 1404 | drivers/block/ide.c | block = 1; /* redirect MBR access to EZ-Drive partn table */ |
block | 1429 | drivers/block/ide.c | do_rw_disk (drive, rq, block); |
block | 1433 | drivers/block/ide.c | ide_do_rw_cdrom (drive, block); |
block | 1438 | drivers/block/ide.c | idetape_do_request (drive, rq, block); |
block | 1448 | drivers/block/ide.c | do_rw_disk (drive, rq, block); /* simpler and faster */ |
block | 647 | drivers/block/ide.h | void idetape_do_request (ide_drive_t *drive, struct request *rq, unsigned long block); |
block | 112 | drivers/block/linear.c | long block; |
block | 114 | drivers/block/linear.c | block=*rsector >> 1; |
block | 115 | drivers/block/linear.c | hash=data->hash_table+(block/data->smallest->size); |
block | 117 | drivers/block/linear.c | if (block >= (hash->dev0->size + hash->dev0->offset)) |
block | 121 | drivers/block/linear.c | printk ("linear_map : hash->dev1==NULL for block %ld\n", block); |
block | 130 | drivers/block/linear.c | if (block >= (tmp_dev->size + tmp_dev->offset) || block < tmp_dev->offset) |
block | 131 | drivers/block/linear.c | printk ("Block %ld out of bounds on dev %04x size %d offset %d\n", block, tmp_dev->dev, tmp_dev->size, tmp_dev->offset); |
block | 134 | drivers/block/linear.c | *rsector=(block-(tmp_dev->offset)) << 1; |
block | 150 | drivers/block/loop.c | int real_block, block, offset, len, blksize, size; |
block | 173 | drivers/block/loop.c | block = CURRENT->sector * (512/blksize); |
block | 176 | drivers/block/loop.c | block = CURRENT->sector / (blksize >> 9); |
block | 179 | drivers/block/loop.c | block += lo->lo_offset / blksize; |
block | 182 | drivers/block/loop.c | block++; |
block | 194 | drivers/block/loop.c | real_block = block; |
block | 196 | drivers/block/loop.c | real_block = bmap(lo->lo_inode, block); |
block | 198 | drivers/block/loop.c | printk("loop: block %d not present\n", block); |
block | 206 | drivers/block/loop.c | block, blksize); |
block | 224 | drivers/block/loop.c | printk("loop: transfer error block %d\n", block); |
block | 234 | drivers/block/loop.c | block++; |
block | 187 | drivers/block/raid0.c | long block, rblock; |
block | 191 | drivers/block/raid0.c | block=*rsector >> 1; |
block | 192 | drivers/block/raid0.c | hash=data->hash_table+(block/data->smallest->size); |
block | 201 | drivers/block/raid0.c | if (block >= (hash->zone0->size + |
block | 206 | drivers/block/raid0.c | printk ("raid0_convert : hash->zone1==NULL for block %ld\n", block); |
block | 215 | drivers/block/raid0.c | blk_in_chunk=block & (chunk_size -1); |
block | 216 | drivers/block/raid0.c | chunk=(block - zone->zone_offset) / (zone->nb_dev<<FACTOR_SHIFT(factor)); |
block | 217 | drivers/block/raid0.c | tmp_dev=zone->dev[(block >> FACTOR_SHIFT(factor)) % zone->nb_dev]; |
block | 220 | drivers/block/xd.c | u_int block,count,retry; |
block | 230 | drivers/block/xd.c | block = CURRENT->sector + xd[MINOR(CURRENT->rq_dev)].start_sect; |
block | 237 | drivers/block/xd.c | code = xd_readwrite(CURRENT->cmd,CURRENT_DEV,CURRENT->buffer,block,count); |
block | 342 | drivers/block/xd.c | static int xd_readwrite (u_char operation,u_char drive,char *buffer,u_int block,u_int count) |
block | 349 | drivers/block/xd.c | printk("xd_readwrite: operation = %s, drive = %d, buffer = 0x%X, block = %d, count = %d\n",operation == READ ? "read" : "write",drive,buffer,block,count); |
block | 356 | drivers/block/xd.c | track = block / xd_info[drive].sectors; |
block | 359 | drivers/block/xd.c | sector = block % xd_info[drive].sectors; |
block | 386 | drivers/block/xd.c | count -= temp, buffer += temp * 0x200, block += temp; |
block | 1268 | drivers/cdrom/cdu31a.c | unsigned int block, |
block | 1287 | drivers/cdrom/cdu31a.c | if (((block % 4) * 512) != ((2048 - readahead_dataleft) % 2048)) |
block | 1289 | drivers/cdrom/cdu31a.c | sony_next_block += block % 4; |
block | 1290 | drivers/cdrom/cdu31a.c | sony_blocks_left -= block % 4; |
block | 1291 | drivers/cdrom/cdu31a.c | skip = (block % 4) * 512; |
block | 1475 | drivers/cdrom/cdu31a.c | int block; |
block | 1559 | drivers/cdrom/cdu31a.c | block = CURRENT->sector; |
block | 1573 | drivers/cdrom/cdu31a.c | if (block < 80) |
block | 1576 | drivers/cdrom/cdu31a.c | block += (sony_toc.start_track_lba * 4); |
block | 1587 | drivers/cdrom/cdu31a.c | if ((block / 4) < sony_toc.start_track_lba) |
block | 1594 | drivers/cdrom/cdu31a.c | if ((block / 4) >= sony_toc.lead_out_start_lba) |
block | 1600 | drivers/cdrom/cdu31a.c | if (((block + nblock) / 4) >= sony_toc.lead_out_start_lba) |
block | 1624 | drivers/cdrom/cdu31a.c | if (start_request(block / 4, CDU31A_READAHEAD / 4, 0)) |
block | 1633 | drivers/cdrom/cdu31a.c | else if (block != sony_next_block) |
block | 1637 | drivers/cdrom/cdu31a.c | block, |
block | 1647 | drivers/cdrom/cdu31a.c | if (start_request(block / 4, CDU31A_READAHEAD / 4, 0)) |
block | 1655 | drivers/cdrom/cdu31a.c | read_data_block(CURRENT->buffer, block, nblock, res_reg, &res_size); |
block | 261 | drivers/cdrom/gscd.c | unsigned int block,dev; |
block | 268 | drivers/cdrom/gscd.c | block = CURRENT->sector; |
block | 299 | drivers/cdrom/gscd.c | printk ("GSCD: dev %d, block %d, nsect %d\n", dev, block, nsect ); |
block | 315 | drivers/cdrom/gscd.c | long block; |
block | 337 | drivers/cdrom/gscd.c | block = CURRENT -> sector / 4; |
block | 338 | drivers/cdrom/gscd.c | gscd_hsg2msf(block, &gscdcmd.start); /* cvt to msf format */ |
block | 2752 | drivers/cdrom/sbpcd.c | int block, checksum; |
block | 2764 | drivers/cdrom/sbpcd.c | for (block=CD_MSF_OFFSET+1;block<CD_MSF_OFFSET+200;block++) |
block | 2772 | drivers/cdrom/sbpcd.c | drvcmd[1]=(block>>16)&0xFF; |
block | 2773 | drivers/cdrom/sbpcd.c | drvcmd[2]=(block>>8)&0xFF; |
block | 2774 | drivers/cdrom/sbpcd.c | drvcmd[3]=block&0xFF; |
block | 2783 | drivers/cdrom/sbpcd.c | drvcmd[2]=(block>>16)&0xFF; |
block | 2784 | drivers/cdrom/sbpcd.c | drvcmd[3]=(block>>8)&0xFF; |
block | 2785 | drivers/cdrom/sbpcd.c | drvcmd[4]=block&0xFF; |
block | 4146 | drivers/cdrom/sbpcd.c | int i=0, j=0, frame, block; |
block | 4171 | drivers/cdrom/sbpcd.c | block=msf2lba(&read_audio.addr.msf.minute); |
block | 4173 | drivers/cdrom/sbpcd.c | block=read_audio.addr.lba; |
block | 4180 | drivers/cdrom/sbpcd.c | block, blk2msf(block)); |
block | 4212 | drivers/cdrom/sbpcd.c | drvcmd[1]=(block>>16)&0x000000ff; |
block | 4213 | drivers/cdrom/sbpcd.c | drvcmd[2]=(block>>8)&0x000000ff; |
block | 4214 | drivers/cdrom/sbpcd.c | drvcmd[3]=block&0x000000ff; |
block | 4222 | drivers/cdrom/sbpcd.c | lba2msf(block,&drvcmd[1]); /* msf-bin format required */ |
block | 4230 | drivers/cdrom/sbpcd.c | lba2msf(block,&drvcmd[1]); /* msf-bin format required */ |
block | 4412 | drivers/cdrom/sbpcd.c | u_int block; |
block | 4442 | drivers/cdrom/sbpcd.c | block = CURRENT->sector; /* always numbered as 512-byte-pieces */ |
block | 4445 | drivers/cdrom/sbpcd.c | msg(DBG_BSZ,"read sector %d (%d sectors)\n", block, nsect); |
block | 4447 | drivers/cdrom/sbpcd.c | msg(DBG_MUL,"read LBA %d\n", block/4); |
block | 4506 | drivers/cdrom/sbpcd.c | int block; |
block | 4510 | drivers/cdrom/sbpcd.c | block=CURRENT->sector/4; |
block | 4511 | drivers/cdrom/sbpcd.c | if (block+D_S[d].sbp_bufsiz <= D_S[d].CDsize_frm) |
block | 4515 | drivers/cdrom/sbpcd.c | D_S[d].sbp_read_frames=D_S[d].CDsize_frm-block; |
block | 4520 | drivers/cdrom/sbpcd.c | block, D_S[d].CDsize_frm); |
block | 4530 | drivers/cdrom/sbpcd.c | lba2msf(block,&drvcmd[1]); /* msf-bcd format required */ |
block | 4545 | drivers/cdrom/sbpcd.c | drvcmd[1]=(block>>16)&0x0ff; |
block | 4546 | drivers/cdrom/sbpcd.c | drvcmd[2]=(block>>8)&0x0ff; |
block | 4547 | drivers/cdrom/sbpcd.c | drvcmd[3]=block&0x0ff; |
block | 4556 | drivers/cdrom/sbpcd.c | lba2msf(block,&drvcmd[1]); /* msf-bcd format required */ |
block | 4563 | drivers/cdrom/sbpcd.c | drvcmd[1]=(block>>16)&0x0ff; |
block | 4564 | drivers/cdrom/sbpcd.c | drvcmd[2]=(block>>8)&0x0ff; |
block | 4565 | drivers/cdrom/sbpcd.c | drvcmd[3]=block&0x0ff; |
block | 4575 | drivers/cdrom/sbpcd.c | lba2msf(block,&drvcmd[1]); /* msf-bin format required */ |
block | 4582 | drivers/cdrom/sbpcd.c | lba2msf(block,&drvcmd[1]); /* msf-bin format required */ |
block | 4590 | drivers/cdrom/sbpcd.c | drvcmd[2]=(block>>24)&0x0ff; |
block | 4591 | drivers/cdrom/sbpcd.c | drvcmd[3]=(block>>16)&0x0ff; |
block | 4592 | drivers/cdrom/sbpcd.c | drvcmd[4]=(block>>8)&0x0ff; |
block | 4593 | drivers/cdrom/sbpcd.c | drvcmd[5]=block&0x0ff; |
block | 787 | drivers/cdrom/sonycd535.c | int block; |
block | 808 | drivers/cdrom/sonycd535.c | block = CURRENT->sector; |
block | 821 | drivers/cdrom/sonycd535.c | if (sony_toc->lead_out_start_lba <= (block / 4)) { |
block | 825 | drivers/cdrom/sonycd535.c | if (sony_toc->lead_out_start_lba <= ((block + nsect) / 4)) { |
block | 834 | drivers/cdrom/sonycd535.c | if ((block < sony_first_block) || (sony_last_block < block)) { |
block | 835 | drivers/cdrom/sonycd535.c | sony_first_block = (block / 4) * 4; |
block | 836 | drivers/cdrom/sonycd535.c | log_to_msf(block / 4, params); |
block | 842 | drivers/cdrom/sonycd535.c | if (sony_toc->lead_out_start_lba <= ((block / 4) + sony_buffer_sectors)) { |
block | 844 | drivers/cdrom/sonycd535.c | read_size = sony_toc->lead_out_start_lba - (block / 4); |
block | 909 | drivers/cdrom/sonycd535.c | copyoff = block - sony_first_block; |
block | 913 | drivers/cdrom/sonycd535.c | block += 1; |
block | 52 | drivers/char/ftape/ftape-eof.h | extern int ftape_file_no(daddr_t * file, daddr_t * block); |
block | 4773 | drivers/scsi/advansys.c | (unsigned) s->hostt, (unsigned) s->block); |
block | 343 | drivers/scsi/hosts.c | retval->block = NULL; |
block | 267 | drivers/scsi/hosts.h | struct Scsi_Host * block; |
block | 111 | drivers/scsi/scsi.c | #define SCSI_BLOCK(HOST) ((HOST->block && host_active && HOST != host_active) \ |
block | 357 | drivers/scsi/scsi.c | if (block_count == 1) sh[0]->block = NULL; |
block | 362 | drivers/scsi/scsi.c | sh[index]->block = sh[index + 1]; |
block | 367 | drivers/scsi/scsi.c | sh[block_count - 1]->block = sh[0]; |
block | 1342 | drivers/scsi/scsi.c | if (host->block) host_active = host; |
block | 1797 | drivers/scsi/scsi.c | if (host->block && host->host_busy == 0) { |
block | 1805 | drivers/scsi/scsi.c | for (next = host->block; next != host; next = next->block) |
block | 2083 | drivers/scsi/scsi.c | if (!host->block) host->host_busy++; |
block | 2089 | drivers/scsi/scsi.c | if (!host->block) host->host_busy--; |
block | 530 | drivers/scsi/scsi.h | if (SCpnt->host->block) { |
block | 533 | drivers/scsi/scsi.h | for (next = SCpnt->host->block; next != SCpnt->host; |
block | 534 | drivers/scsi/scsi.h | next = next->block) |
block | 87 | drivers/scsi/scsi_debug.c | if ((bh->b_blocknr << 1) + start != block) \ |
block | 88 | drivers/scsi/scsi_debug.c | { printk("Wrong bh block# %d %d ",bh->b_blocknr, block); \ |
block | 101 | drivers/scsi/scsi_debug.c | if (SCpnt->request.sector + start != block) panic("Wrong block."); \ |
block | 105 | drivers/scsi/scsi_debug.c | if ((SCpnt->request.bh->b_blocknr << 1) + start != block) \ |
block | 106 | drivers/scsi/scsi_debug.c | { printk("Wrong bh block# %d %d ",SCpnt->request.bh->b_blocknr, block); \ |
block | 177 | drivers/scsi/scsi_debug.c | int block, start; |
block | 266 | drivers/scsi/scsi_debug.c | block = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); |
block | 268 | drivers/scsi/scsi_debug.c | block = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16); |
block | 302 | drivers/scsi/scsi_debug.c | if(block == 0 && target == 0) { |
block | 318 | drivers/scsi/scsi_debug.c | if (SCpnt->use_sg) printk("Block %x (%d %d)\n",block, SCpnt->request.nr_sectors, |
block | 324 | drivers/scsi/scsi_debug.c | if(block == 0xfff0) { |
block | 347 | drivers/scsi/scsi_debug.c | memcpy(buff+60, &block, sizeof(block)); |
block | 355 | drivers/scsi/scsi_debug.c | block += bufflen >> 9; |
block | 379 | drivers/scsi/scsi_debug.c | block = cmd[5] + (cmd[4] << 8) + (cmd[3] << 16) + (cmd[2] << 24); |
block | 381 | drivers/scsi/scsi_debug.c | block = cmd[3] + (cmd[2] << 8) + ((cmd[1] & 0x1f) << 16); |
block | 391 | drivers/scsi/scsi_debug.c | if (block != *((unsigned long *) (buff+60))) { |
block | 392 | drivers/scsi/scsi_debug.c | printk("%x %x :",block, *((unsigned long *) (buff+60))); |
block | 508 | drivers/scsi/sd.c | int dev, devm, block, this_count; |
block | 525 | drivers/scsi/sd.c | block = SCpnt->request.sector; |
block | 529 | drivers/scsi/sd.c | printk("Doing sd request, dev = %d, block = %d\n", devm, block); |
block | 534 | drivers/scsi/sd.c | block + SCpnt->request.nr_sectors > sd[devm].nr_sects) |
block | 540 | drivers/scsi/sd.c | block += sd[devm].start_sect; |
block | 555 | drivers/scsi/sd.c | 'a' + devm, dev, block); |
block | 570 | drivers/scsi/sd.c | if((block & 1) || (SCpnt->request.nr_sectors & 1)) { |
block | 843 | drivers/scsi/sd.c | if(block & 1) panic("sd.c:Bad block number requested"); |
block | 845 | drivers/scsi/sd.c | block = block >> 1; |
block | 850 | drivers/scsi/sd.c | block = block << 1; |
block | 854 | drivers/scsi/sd.c | if (((this_count > 0xff) || (block > 0x1fffff)) && rscsi_disks[dev].ten) |
block | 860 | drivers/scsi/sd.c | cmd[2] = (unsigned char) (block >> 24) & 0xff; |
block | 861 | drivers/scsi/sd.c | cmd[3] = (unsigned char) (block >> 16) & 0xff; |
block | 862 | drivers/scsi/sd.c | cmd[4] = (unsigned char) (block >> 8) & 0xff; |
block | 863 | drivers/scsi/sd.c | cmd[5] = (unsigned char) block & 0xff; |
block | 873 | drivers/scsi/sd.c | cmd[1] |= (unsigned char) ((block >> 16) & 0x1f); |
block | 874 | drivers/scsi/sd.c | cmd[2] = (unsigned char) ((block >> 8) & 0xff); |
block | 875 | drivers/scsi/sd.c | cmd[3] = (unsigned char) block & 0xff; |
block | 646 | drivers/scsi/sr.c | unsigned int dev, block, realcount; |
block | 659 | drivers/scsi/sr.c | block = SCpnt->request.sector; |
block | 838 | drivers/scsi/sr.c | start = block % 4; |
block | 860 | drivers/scsi/sr.c | block = block >> 2; /* These are the sectors that the cdrom uses */ |
block | 862 | drivers/scsi/sr.c | block = block & 0xfffffffc; |
block | 868 | drivers/scsi/sr.c | if (((realcount > 0xff) || (block > 0x1fffff)) && scsi_CDs[dev].ten) |
block | 877 | drivers/scsi/sr.c | cmd[2] = (unsigned char) (block >> 24) & 0xff; |
block | 878 | drivers/scsi/sr.c | cmd[3] = (unsigned char) (block >> 16) & 0xff; |
block | 879 | drivers/scsi/sr.c | cmd[4] = (unsigned char) (block >> 8) & 0xff; |
block | 880 | drivers/scsi/sr.c | cmd[5] = (unsigned char) block & 0xff; |
block | 893 | drivers/scsi/sr.c | cmd[1] |= (unsigned char) ((block >> 16) & 0x1f); |
block | 894 | drivers/scsi/sr.c | cmd[2] = (unsigned char) ((block >> 8) & 0xff); |
block | 895 | drivers/scsi/sr.c | cmd[3] = (unsigned char) block & 0xff; |
block | 903 | drivers/scsi/sr.c | printk("ReadCD: %d %d %d %d\n",block, realcount, buffer, this_count); |
block | 2130 | drivers/scsi/st.c | get_location(struct inode * inode, unsigned int *block, int *partition, |
block | 2159 | drivers/scsi/st.c | *block = *partition = 0; |
block | 2169 | drivers/scsi/st.c | *block = ((STp->buffer)->b_data[0] << 16) |
block | 2175 | drivers/scsi/st.c | *block = ((STp->buffer)->b_data[4] << 24) |
block | 2187 | drivers/scsi/st.c | *block, *partition); |
block | 2200 | drivers/scsi/st.c | set_location(struct inode * inode, unsigned int block, int partition, |
block | 2220 | drivers/scsi/st.c | dev, block, partition); |
block | 2246 | drivers/scsi/st.c | scmd[2] = (block >> 16); |
block | 2247 | drivers/scsi/st.c | scmd[3] = (block >> 8); |
block | 2248 | drivers/scsi/st.c | scmd[4] = block; |
block | 2253 | drivers/scsi/st.c | scmd[3] = (block >> 24); |
block | 2254 | drivers/scsi/st.c | scmd[4] = (block >> 16); |
block | 2255 | drivers/scsi/st.c | scmd[5] = (block >> 8); |
block | 2256 | drivers/scsi/st.c | scmd[6] = block; |
block | 2291 | drivers/scsi/st.c | STps->last_block_visited != block) { |
block | 2299 | drivers/scsi/st.c | if (block == 0) |
block | 2315 | drivers/scsi/st.c | unsigned int block; |
block | 2317 | drivers/scsi/st.c | if ((i = get_location(inode, &block, &partition, 1)) < 0) |
block | 90 | drivers/sound/opl3.c | static void freq_to_fnum (int freq, int *block, int *fnum); |
block | 529 | drivers/sound/opl3.c | int block, fnum, freq, voice_mode; |
block | 706 | drivers/sound/opl3.c | freq_to_fnum (freq, &block, &fnum); |
block | 717 | drivers/sound/opl3.c | data = 0x20 | ((block & 0x7) << 2) | ((fnum >> 8) & 0x3); |
block | 727 | drivers/sound/opl3.c | freq_to_fnum (int freq, int *block, int *fnum) |
block | 765 | drivers/sound/opl3.c | *block = octave; |
block | 995 | drivers/sound/opl3.c | int block, fnum, freq; |
block | 1014 | drivers/sound/opl3.c | freq_to_fnum (freq, &block, &fnum); |
block | 1021 | drivers/sound/opl3.c | data = 0x20 | ((block & 0x7) << 2) | ((fnum >> 8) & 0x3); /* |
block | 240 | drivers/sound/pss.c | pss_download_boot (pss_config * devc, unsigned char *block, int size, int flags) |
block | 255 | drivers/sound/pss.c | outw (*block++, REG (PSS_DATA)); |
block | 285 | drivers/sound/pss.c | outw (*block++, REG (PSS_DATA)); |
block | 438 | drivers/sound/sscape.c | sscape_download_boot (struct sscape_info *devc, unsigned char *block, int size, int flag) |
block | 484 | drivers/sound/sscape.c | memcpy (audio_devs[devc->my_audiodev]->dmap_out->raw_buf, block, size); |
block | 53 | fs/affs/bitmap.c | affs_free_block(struct super_block *sb, LONG block) |
block | 60 | fs/affs/bitmap.c | pr_debug("AFFS: free_block(%d)\n",block); |
block | 62 | fs/affs/bitmap.c | blk = block - sb->u.affs_sb.s_reserved; |
block | 67 | fs/affs/bitmap.c | printk("AFFS: free_block(): block %d outside partition.\n",block); |
block | 75 | fs/affs/bitmap.c | printk("AFFS: free_block(): block %d is already free.\n",block); |
block | 93 | fs/affs/bitmap.c | ULONG block; |
block | 125 | fs/affs/bitmap.c | block = fwb + fb; |
block | 150 | fs/affs/bitmap.c | return block; |
block | 208 | fs/affs/bitmap.c | LONG block; |
block | 223 | fs/affs/bitmap.c | if (!(block = affs_balloc(inode,0))) { |
block | 226 | fs/affs/bitmap.c | if (!(block = affs_balloc(inode,0))) { |
block | 229 | fs/affs/bitmap.c | if (!(block = affs_balloc(inode,0))) |
block | 233 | fs/affs/bitmap.c | if (!(bh = getblk(inode->i_dev,block,sb->s_blocksize))) { |
block | 234 | fs/affs/bitmap.c | printk("AFFS: balloc(): cannot read block %d\n",block); |
block | 242 | fs/affs/bitmap.c | return block; |
block | 254 | fs/affs/bitmap.c | LONG block; |
block | 263 | fs/affs/bitmap.c | block = inode->u.affs_i.i_data[inode->u.affs_i.i_pa_next++]; |
block | 298 | fs/affs/bitmap.c | if (!(block = affs_balloc(inode,i))) { /* Zone is full */ |
block | 306 | fs/affs/bitmap.c | if (!(bh = getblk(inode->i_dev,block,sb->s_blocksize))) { |
block | 307 | fs/affs/bitmap.c | printk("AFFS: balloc(): cannot read block %u\n",block); |
block | 315 | fs/affs/bitmap.c | return block; |
block | 107 | fs/affs/file.c | affs_bmap(struct inode *inode, LONG block) |
block | 113 | fs/affs/file.c | pr_debug("AFFS: bmap(%lu,%d)\n",inode->i_ino,block); |
block | 115 | fs/affs/file.c | if (block < 0) { |
block | 124 | fs/affs/file.c | ext = block / AFFS_I2HSIZE(inode); |
block | 130 | fs/affs/file.c | block -= ext * AFFS_I2HSIZE(inode); |
block | 142 | fs/affs/file.c | if (block < AFFS_I2HSIZE(inode)) |
block | 144 | fs/affs/file.c | block -= AFFS_I2HSIZE(inode); |
block | 152 | fs/affs/file.c | key = AFFS_GET_HASHENTRY(bh->b_data,(AFFS_I2HSIZE(inode) - 1) - block); |
block | 158 | fs/affs/file.c | affs_getblock(struct inode *inode, LONG block) |
block | 166 | fs/affs/file.c | pr_debug("AFFS: getblock(%lu,%d)\n",inode->i_ino,block); |
block | 168 | fs/affs/file.c | if (block < 0) |
block | 173 | fs/affs/file.c | ext = block / AFFS_I2HSIZE(inode); |
block | 179 | fs/affs/file.c | block -= ext * AFFS_I2HSIZE(inode); |
block | 196 | fs/affs/file.c | while (j < AFFS_I2HSIZE(inode) && j <= block) { |
block | 219 | fs/affs/file.c | if (block < j) |
block | 226 | fs/affs/file.c | block -= AFFS_I2HSIZE(inode); |
block | 257 | fs/affs/file.c | key = htonl(AFFS_BLOCK(bh->b_data,inode,block)); |
block | 410 | fs/affs/file.c | LONG block; |
block | 455 | fs/affs/file.c | for ( block = first; block < AFFS_I2HSIZE(inode); block++) { |
block | 456 | fs/affs/file.c | keyp = &AFFS_BLOCK(bh->b_data,inode,block); |
block | 462 | fs/affs/file.c | block = AFFS_I2HSIZE(inode); |
block | 495 | fs/affs/file.c | LONG block; |
block | 540 | fs/affs/file.c | for ( block = first; block < AFFS_I2HSIZE(inode); block++) { |
block | 542 | fs/affs/file.c | blocks[AFFS_I2HSIZE(inode) - 1 - block]; |
block | 548 | fs/affs/file.c | block = AFFS_I2HSIZE(inode); |
block | 595 | fs/affs/inode.c | LONG block; |
block | 602 | fs/affs/inode.c | block = inode->i_ino; |
block | 603 | fs/affs/inode.c | if (!(bh = affs_bread(inode->i_dev,block,AFFS_I2BSIZE(inode)))) { |
block | 604 | fs/affs/inode.c | printk("AFFS: unable to read i-node block %d\n",block); |
block | 609 | fs/affs/inode.c | ptype, block); |
block | 815 | fs/affs/inode.c | ULONG block; |
block | 824 | fs/affs/inode.c | if (!(block = affs_new_header((struct inode *)dir))) { |
block | 835 | fs/affs/inode.c | inode->i_ino = block; |
block | 26 | fs/block_dev.c | int block, blocks; |
block | 56 | fs/block_dev.c | block = filp->f_pos >> blocksize_bits; |
block | 64 | fs/block_dev.c | if (block >= size) |
block | 72 | fs/block_dev.c | bh = getblk(dev, block, blocksize); |
block | 74 | fs/block_dev.c | bh = breada(dev,block,block+1,block+2,-1); |
block | 77 | fs/block_dev.c | for(i=0; i<blocks_per_cluster; i++) cluster_list[i] = block+i; |
block | 78 | fs/block_dev.c | if((block % blocks_per_cluster) == 0) |
block | 80 | fs/block_dev.c | bh = getblk(dev, block, blocksize); |
block | 87 | fs/block_dev.c | bh = bread(dev,block,blocksize); |
block | 91 | fs/block_dev.c | if (block + blocks > size) blocks = size - block; |
block | 93 | fs/block_dev.c | excess = (block + blocks) % blocks_per_cluster; |
block | 98 | fs/block_dev.c | if(((i+block) % blocks_per_cluster) == 0) { |
block | 99 | fs/block_dev.c | for(j=0; j<blocks_per_cluster; j++) cluster_list[j] = block+i+j; |
block | 102 | fs/block_dev.c | bhlist[i] = getblk (dev, block+i, blocksize); |
block | 115 | fs/block_dev.c | block++; |
block | 162 | fs/block_dev.c | unsigned int block; |
block | 210 | fs/block_dev.c | block = offset >> blocksize_bits; |
block | 218 | fs/block_dev.c | excess = (block + blocks) % blocks_per_cluster; |
block | 225 | fs/block_dev.c | if (block + blocks > size) |
block | 226 | fs/block_dev.c | blocks = size - block; |
block | 244 | fs/block_dev.c | if((block % blocks_per_cluster) == 0) { |
block | 245 | fs/block_dev.c | for(i=0; i<blocks_per_cluster; i++) cluster_list[i] = block+i; |
block | 249 | fs/block_dev.c | *bhb = getblk(dev, block++, blocksize); |
block | 314 | fs/buffer.c | #define _hashfn(dev,block) (((unsigned)(HASHDEV(dev)^block))%nr_hash) |
block | 315 | fs/buffer.c | #define hash(dev,block) hash_table[_hashfn(dev,block)] |
block | 463 | fs/buffer.c | static inline struct buffer_head * find_buffer(kdev_t dev, int block, int size) |
block | 467 | fs/buffer.c | for (tmp = hash(dev,block) ; tmp != NULL ; tmp = tmp->b_next) |
block | 468 | fs/buffer.c | if (tmp->b_blocknr == block && tmp->b_dev == dev) |
block | 486 | fs/buffer.c | struct buffer_head * get_hash_table(kdev_t dev, int block, int size) |
block | 491 | fs/buffer.c | if (!(bh=find_buffer(dev,block,size))) |
block | 495 | fs/buffer.c | if (bh->b_dev == dev && bh->b_blocknr == block |
block | 748 | fs/buffer.c | struct buffer_head * getblk(kdev_t dev, int block, int size) |
block | 760 | fs/buffer.c | bh = get_hash_table(dev, block, size); |
block | 773 | fs/buffer.c | if (find_buffer(dev,block,size)) |
block | 785 | fs/buffer.c | bh->b_blocknr=block; |
block | 883 | fs/buffer.c | struct buffer_head * bread(kdev_t dev, int block, int size) |
block | 887 | fs/buffer.c | if (!(bh = getblk(dev, block, size))) { |
block | 909 | fs/buffer.c | struct buffer_head * breada(kdev_t dev, int block, int bufsize, |
block | 921 | fs/buffer.c | if (block < 0 || !(bh = getblk(dev,block,bufsize))) |
block | 943 | fs/buffer.c | bh = getblk(dev,block+i,bufsize); |
block | 1141 | fs/buffer.c | int block, nr; |
block | 1163 | fs/buffer.c | block = *(b++); |
block | 1168 | fs/buffer.c | next->b_blocknr = block; |
block | 1178 | fs/buffer.c | if (bmap && !block) { |
block | 1183 | fs/buffer.c | tmp = get_hash_table(dev, block, size); |
block | 1294 | fs/buffer.c | unsigned long block, address; |
block | 1304 | fs/buffer.c | block = page->offset >> inode->i_sb->s_blocksize_bits; |
block | 1307 | fs/buffer.c | *p = inode->i_op->bmap(inode, block); |
block | 1309 | fs/buffer.c | block++; |
block | 1727 | fs/buffer.c | static unsigned long try_to_generate_cluster(kdev_t dev, int block, int size) |
block | 1743 | fs/buffer.c | nblock = block; |
block | 1757 | fs/buffer.c | bh->b_blocknr = block++; |
block | 78 | fs/ext/file.c | int block, blocks, offset; |
block | 104 | fs/ext/file.c | block = offset >> BLOCK_SIZE_BITS; |
block | 112 | fs/ext/file.c | if (block + blocks > size) |
block | 113 | fs/ext/file.c | blocks = size - block; |
block | 131 | fs/ext/file.c | *bhb = ext_getblk(inode, block++, 0); |
block | 40 | fs/ext/freelists.c | void ext_free_block(struct super_block * sb, int block) |
block | 50 | fs/ext/freelists.c | if (block < sb->u.ext_sb.s_firstdatazone || |
block | 51 | fs/ext/freelists.c | block >= sb->u.ext_sb.s_nzones) { |
block | 55 | fs/ext/freelists.c | bh = get_hash_table(sb->s_dev, block, sb->s_blocksize); |
block | 63 | fs/ext/freelists.c | printk("ext_free_block: block full, skipping to %d\n", block); |
block | 68 | fs/ext/freelists.c | block, sb->s_blocksize))) |
block | 73 | fs/ext/freelists.c | sb->u.ext_sb.s_firstfreeblocknumber = block; |
block | 75 | fs/ext/freelists.c | efb->free[efb->count++] = block; |
block | 145 | fs/ext/freelists.c | unsigned long count, block; |
block | 153 | fs/ext/freelists.c | block = efb->next; |
block | 154 | fs/ext/freelists.c | while (block) { |
block | 155 | fs/ext/freelists.c | if (!(bh = bread (sb->s_dev, block, sb->s_blocksize))) { |
block | 157 | fs/ext/freelists.c | block = 0; |
block | 161 | fs/ext/freelists.c | block = efb->next; |
block | 180 | fs/ext/freelists.c | unsigned long block; |
block | 221 | fs/ext/freelists.c | block = 2 + (ino - 1) / EXT_INODES_PER_BLOCK; |
block | 222 | fs/ext/freelists.c | if (!(bh = bread(dev, block, sb->s_blocksize))) |
block | 244 | fs/ext/freelists.c | unsigned long block; |
block | 270 | fs/ext/freelists.c | block = 2 + (((unsigned long) efi->next) - 1) / EXT_INODES_PER_BLOCK; |
block | 276 | fs/ext/freelists.c | bread(sb->s_dev, block, sb->s_blocksize))) |
block | 305 | fs/ext/freelists.c | unsigned long count, block, ino; |
block | 321 | fs/ext/freelists.c | block = 2 + ((ino - 1) / EXT_INODES_PER_BLOCK); |
block | 322 | fs/ext/freelists.c | if (!(bh = bread (sb->s_dev, block, sb->s_blocksize))) { |
block | 324 | fs/ext/freelists.c | block = 0; |
block | 30 | fs/ext/fsync.c | static int sync_block (struct inode * inode, unsigned long * block, int wait) |
block | 35 | fs/ext/fsync.c | if (!*block) |
block | 37 | fs/ext/fsync.c | tmp = *block; |
block | 38 | fs/ext/fsync.c | bh = get_hash_table(inode->i_dev, *block, blocksize); |
block | 41 | fs/ext/fsync.c | if (*block != tmp) { |
block | 66 | fs/ext/inode.c | int block; |
block | 115 | fs/ext/inode.c | block = 2 + (s->u.ext_sb.s_firstfreeinodenumber - 1) / EXT_INODES_PER_BLOCK; |
block | 116 | fs/ext/inode.c | if (!(s->u.ext_sb.s_firstfreeinodeblock = bread(dev, block, BLOCK_SIZE))) { |
block | 185 | fs/ext/inode.c | int ext_bmap(struct inode * inode,int block) |
block | 189 | fs/ext/inode.c | if (block<0) { |
block | 193 | fs/ext/inode.c | if (block >= 9+256+256*256+256*256*256) { |
block | 197 | fs/ext/inode.c | if (block<9) |
block | 198 | fs/ext/inode.c | return inode_bmap(inode,block); |
block | 199 | fs/ext/inode.c | block -= 9; |
block | 200 | fs/ext/inode.c | if (block<256) { |
block | 204 | fs/ext/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block); |
block | 206 | fs/ext/inode.c | block -= 256; |
block | 207 | fs/ext/inode.c | if (block<256*256) { |
block | 211 | fs/ext/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>8); |
block | 214 | fs/ext/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 255); |
block | 216 | fs/ext/inode.c | block -= 256*256; |
block | 220 | fs/ext/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>16); |
block | 223 | fs/ext/inode.c | i = block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),(block>>8) & 255); |
block | 226 | fs/ext/inode.c | return block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 255); |
block | 312 | fs/ext/inode.c | struct buffer_head * ext_getblk(struct inode * inode, int block, int create) |
block | 316 | fs/ext/inode.c | if (block<0) { |
block | 320 | fs/ext/inode.c | if (block >= 9+256+256*256+256*256*256) { |
block | 324 | fs/ext/inode.c | if (block<9) |
block | 325 | fs/ext/inode.c | return inode_getblk(inode,block,create); |
block | 326 | fs/ext/inode.c | block -= 9; |
block | 327 | fs/ext/inode.c | if (block<256) { |
block | 329 | fs/ext/inode.c | return block_getblk(inode,bh,block,create); |
block | 331 | fs/ext/inode.c | block -= 256; |
block | 332 | fs/ext/inode.c | if (block<256*256) { |
block | 334 | fs/ext/inode.c | bh = block_getblk(inode,bh,block>>8,create); |
block | 335 | fs/ext/inode.c | return block_getblk(inode,bh,block & 255,create); |
block | 337 | fs/ext/inode.c | block -= 256*256; |
block | 339 | fs/ext/inode.c | bh = block_getblk(inode,bh,block>>16,create); |
block | 340 | fs/ext/inode.c | bh = block_getblk(inode,bh,(block>>8) & 255,create); |
block | 341 | fs/ext/inode.c | return block_getblk(inode,bh,block & 255,create); |
block | 344 | fs/ext/inode.c | struct buffer_head * ext_bread(struct inode * inode, int block, int create) |
block | 348 | fs/ext/inode.c | bh = ext_getblk(inode,block,create); |
block | 363 | fs/ext/inode.c | int block; |
block | 365 | fs/ext/inode.c | block = 2 + (inode->i_ino-1)/EXT_INODES_PER_BLOCK; |
block | 366 | fs/ext/inode.c | if (!(bh=bread(inode->i_dev, block, BLOCK_SIZE))) |
block | 379 | fs/ext/inode.c | else for (block = 0; block < 12; block++) |
block | 380 | fs/ext/inode.c | inode->u.ext_i.i_data[block] = raw_inode->i_zone[block]; |
block | 401 | fs/ext/inode.c | int block; |
block | 403 | fs/ext/inode.c | block = 2 + (inode->i_ino-1)/EXT_INODES_PER_BLOCK; |
block | 404 | fs/ext/inode.c | if (!(bh=bread(inode->i_dev, block, BLOCK_SIZE))) |
block | 416 | fs/ext/inode.c | else for (block = 0; block < 12; block++) |
block | 417 | fs/ext/inode.c | raw_inode->i_zone[block] = inode->u.ext_i.i_data[block]; |
block | 168 | fs/ext2/balloc.c | void ext2_free_blocks (const struct inode * inode, unsigned long block, |
block | 188 | fs/ext2/balloc.c | if (block < es->s_first_data_block || |
block | 189 | fs/ext2/balloc.c | (block + count) > es->s_blocks_count) { |
block | 192 | fs/ext2/balloc.c | "block = %lu, count = %lu", block, count); |
block | 197 | fs/ext2/balloc.c | ext2_debug ("freeing block %lu\n", block); |
block | 199 | fs/ext2/balloc.c | block_group = (block - es->s_first_data_block) / |
block | 201 | fs/ext2/balloc.c | bit = (block - es->s_first_data_block) % EXT2_BLOCKS_PER_GROUP(sb); |
block | 206 | fs/ext2/balloc.c | block, count); |
block | 212 | fs/ext2/balloc.c | (in_range (gdp->bg_block_bitmap, block, count) || |
block | 213 | fs/ext2/balloc.c | in_range (gdp->bg_inode_bitmap, block, count) || |
block | 214 | fs/ext2/balloc.c | in_range (block, gdp->bg_inode_table, |
block | 216 | fs/ext2/balloc.c | in_range (block + count - 1, gdp->bg_inode_table, |
block | 221 | fs/ext2/balloc.c | block, count); |
block | 227 | fs/ext2/balloc.c | block); |
block | 530 | fs/ext2/balloc.c | static inline int block_in_use (unsigned long block, |
block | 534 | fs/ext2/balloc.c | return test_bit ((block - sb->u.ext2_sb.s_es->s_first_data_block) % |
block | 89 | fs/ext2/file.c | long block; |
block | 127 | fs/ext2/file.c | block = pos2 >> EXT2_BLOCK_SIZE_BITS(sb); |
block | 137 | fs/ext2/file.c | bh = ext2_getblk (inode, block, 1, &err); |
block | 180 | fs/ext2/file.c | block++; |
block | 30 | fs/ext2/fsync.c | static int sync_block (struct inode * inode, u32 * block, int wait) |
block | 35 | fs/ext2/fsync.c | if (!*block) |
block | 37 | fs/ext2/fsync.c | tmp = *block; |
block | 38 | fs/ext2/fsync.c | bh = get_hash_table (inode->i_dev, *block, blocksize); |
block | 41 | fs/ext2/fsync.c | if (*block != tmp) { |
block | 132 | fs/ext2/inode.c | int ext2_bmap (struct inode * inode, int block) |
block | 138 | fs/ext2/inode.c | if (block < 0) { |
block | 142 | fs/ext2/inode.c | if (block >= EXT2_NDIR_BLOCKS + addr_per_block + |
block | 148 | fs/ext2/inode.c | if (block < EXT2_NDIR_BLOCKS) |
block | 149 | fs/ext2/inode.c | return inode_bmap (inode, block); |
block | 150 | fs/ext2/inode.c | block -= EXT2_NDIR_BLOCKS; |
block | 151 | fs/ext2/inode.c | if (block < addr_per_block) { |
block | 156 | fs/ext2/inode.c | inode->i_sb->s_blocksize), block); |
block | 158 | fs/ext2/inode.c | block -= addr_per_block; |
block | 159 | fs/ext2/inode.c | if (block < (1 << (addr_per_block_bits * 2))) { |
block | 165 | fs/ext2/inode.c | block >> addr_per_block_bits); |
block | 170 | fs/ext2/inode.c | block & (addr_per_block - 1)); |
block | 172 | fs/ext2/inode.c | block -= (1 << (addr_per_block_bits * 2)); |
block | 177 | fs/ext2/inode.c | block >> (addr_per_block_bits * 2)); |
block | 181 | fs/ext2/inode.c | (block >> addr_per_block_bits) & (addr_per_block - 1)); |
block | 185 | fs/ext2/inode.c | block & (addr_per_block - 1)); |
block | 366 | fs/ext2/inode.c | struct buffer_head * ext2_getblk (struct inode * inode, long block, |
block | 375 | fs/ext2/inode.c | if (block < 0) { |
block | 379 | fs/ext2/inode.c | if (block > EXT2_NDIR_BLOCKS + addr_per_block + |
block | 391 | fs/ext2/inode.c | ext2_debug ("block %lu, next %lu, goal %lu.\n", block, |
block | 395 | fs/ext2/inode.c | if (block == inode->u.ext2_i.i_next_alloc_block + 1) { |
block | 401 | fs/ext2/inode.c | b = block; |
block | 402 | fs/ext2/inode.c | if (block < EXT2_NDIR_BLOCKS) |
block | 403 | fs/ext2/inode.c | return inode_getblk (inode, block, create, b, err); |
block | 404 | fs/ext2/inode.c | block -= EXT2_NDIR_BLOCKS; |
block | 405 | fs/ext2/inode.c | if (block < addr_per_block) { |
block | 407 | fs/ext2/inode.c | return block_getblk (inode, bh, block, create, |
block | 410 | fs/ext2/inode.c | block -= addr_per_block; |
block | 411 | fs/ext2/inode.c | if (block < (1 << (addr_per_block_bits * 2))) { |
block | 413 | fs/ext2/inode.c | bh = block_getblk (inode, bh, block >> addr_per_block_bits, |
block | 415 | fs/ext2/inode.c | return block_getblk (inode, bh, block & (addr_per_block - 1), |
block | 418 | fs/ext2/inode.c | block -= (1 << (addr_per_block_bits * 2)); |
block | 420 | fs/ext2/inode.c | bh = block_getblk (inode, bh, block >> (addr_per_block_bits * 2), |
block | 422 | fs/ext2/inode.c | bh = block_getblk (inode, bh, (block >> addr_per_block_bits) & (addr_per_block - 1), |
block | 424 | fs/ext2/inode.c | return block_getblk (inode, bh, block & (addr_per_block - 1), create, |
block | 428 | fs/ext2/inode.c | int ext2_getcluster (struct inode * inode, long block) |
block | 438 | fs/ext2/inode.c | if (block < 0) { |
block | 442 | fs/ext2/inode.c | if (block > EXT2_NDIR_BLOCKS + addr_per_block + |
block | 450 | fs/ext2/inode.c | b = block; |
block | 451 | fs/ext2/inode.c | if (block < EXT2_NDIR_BLOCKS) return 0; |
block | 453 | fs/ext2/inode.c | block -= EXT2_NDIR_BLOCKS; |
block | 455 | fs/ext2/inode.c | if (block < addr_per_block) { |
block | 457 | fs/ext2/inode.c | return block_getcluster (inode, bh, block, |
block | 460 | fs/ext2/inode.c | block -= addr_per_block; |
block | 461 | fs/ext2/inode.c | if (block < (1 << (addr_per_block_bits * 2))) { |
block | 463 | fs/ext2/inode.c | bh = block_getblk (inode, bh, block >> addr_per_block_bits, |
block | 465 | fs/ext2/inode.c | return block_getcluster (inode, bh, block & (addr_per_block - 1), |
block | 468 | fs/ext2/inode.c | block -= (1 << (addr_per_block_bits * 2)); |
block | 470 | fs/ext2/inode.c | bh = block_getblk (inode, bh, block >> (addr_per_block_bits * 2), |
block | 472 | fs/ext2/inode.c | bh = block_getblk (inode, bh, (block >> addr_per_block_bits) & (addr_per_block - 1), |
block | 474 | fs/ext2/inode.c | return block_getcluster (inode, bh, block & (addr_per_block - 1), |
block | 478 | fs/ext2/inode.c | struct buffer_head * ext2_bread (struct inode * inode, int block, |
block | 483 | fs/ext2/inode.c | bh = ext2_getblk (inode, block, create, err); |
block | 502 | fs/ext2/inode.c | unsigned long block; |
block | 530 | fs/ext2/inode.c | block = gdp[desc].bg_inode_table + |
block | 532 | fs/ext2/inode.c | if (!(bh = bread (inode->i_dev, block, inode->i_sb->s_blocksize))) |
block | 535 | fs/ext2/inode.c | "inode=%lu, block=%lu", inode->i_ino, block); |
block | 568 | fs/ext2/inode.c | else for (block = 0; block < EXT2_N_BLOCKS; block++) |
block | 569 | fs/ext2/inode.c | inode->u.ext2_i.i_data[block] = raw_inode->i_block[block]; |
block | 602 | fs/ext2/inode.c | unsigned long block; |
block | 630 | fs/ext2/inode.c | block = gdp[desc].bg_inode_table + |
block | 632 | fs/ext2/inode.c | if (!(bh = bread (inode->i_dev, block, inode->i_sb->s_blocksize))) |
block | 635 | fs/ext2/inode.c | "inode=%lu, block=%lu", inode->i_ino, block); |
block | 658 | fs/ext2/inode.c | else for (block = 0; block < EXT2_N_BLOCKS; block++) |
block | 659 | fs/ext2/inode.c | raw_inode->i_block[block] = inode->u.ext2_i.i_data[block]; |
block | 76 | fs/ext2/namei.c | int block, toread, i, err; |
block | 93 | fs/ext2/namei.c | for (block = 0; block < NAMEI_RA_SIZE; ++block) { |
block | 96 | fs/ext2/namei.c | if ((block << EXT2_BLOCK_SIZE_BITS (sb)) >= dir->i_size) |
block | 98 | fs/ext2/namei.c | bh = ext2_getblk (dir, block, 0, &err); |
block | 99 | fs/ext2/namei.c | bh_use[block] = bh; |
block | 104 | fs/ext2/namei.c | for (block = 0, offset = 0; offset < dir->i_size; block++) { |
block | 109 | fs/ext2/namei.c | if ((block % NAMEI_RA_BLOCKS) == 0 && toread) { |
block | 113 | fs/ext2/namei.c | bh = bh_use[block % NAMEI_RA_SIZE]; |
block | 149 | fs/ext2/namei.c | if (((block + NAMEI_RA_SIZE) << EXT2_BLOCK_SIZE_BITS (sb)) >= |
block | 153 | fs/ext2/namei.c | bh = ext2_getblk (dir, block + NAMEI_RA_SIZE, 0, &err); |
block | 154 | fs/ext2/namei.c | bh_use[block % NAMEI_RA_SIZE] = bh; |
block | 320 | fs/ext2/super.c | unsigned long block = sb->u.ext2_sb.s_es->s_first_data_block; |
block | 329 | fs/ext2/super.c | if (gdp->bg_block_bitmap < block || |
block | 330 | fs/ext2/super.c | gdp->bg_block_bitmap >= block + EXT2_BLOCKS_PER_GROUP(sb)) |
block | 338 | fs/ext2/super.c | if (gdp->bg_inode_bitmap < block || |
block | 339 | fs/ext2/super.c | gdp->bg_inode_bitmap >= block + EXT2_BLOCKS_PER_GROUP(sb)) |
block | 347 | fs/ext2/super.c | if (gdp->bg_inode_table < block || |
block | 349 | fs/ext2/super.c | block + EXT2_BLOCKS_PER_GROUP(sb)) |
block | 357 | fs/ext2/super.c | block += EXT2_BLOCKS_PER_GROUP(sb); |
block | 15 | fs/fat/buffer.c | int block) |
block | 20 | fs/fat/buffer.c | ret = breada (sb->s_dev,block,512,0,18*1024); |
block | 23 | fs/fat/buffer.c | struct buffer_head *real = breada (sb->s_dev,block>>1,1024,0,18*1024); |
block | 59 | fs/fat/buffer.c | if (block & 1) ret->b_data += 512; |
block | 70 | fs/fat/buffer.c | int block) |
block | 74 | fs/fat/buffer.c | ret = getblk (sb->s_dev,block,512); |
block | 82 | fs/fat/buffer.c | ret = fat_bread (sb,block); |
block | 354 | fs/fat/inode.c | int fat_bmap(struct inode *inode,int block) |
block | 361 | fs/fat/inode.c | return sb->dir_start + block; |
block | 363 | fs/fat/inode.c | cluster = block/sb->cluster_size; |
block | 364 | fs/fat/inode.c | offset = block % sb->cluster_size; |
block | 4 | fs/fat/msbuffer.h | struct buffer_head *fat_bread (struct super_block *sb, int block); |
block | 5 | fs/fat/msbuffer.h | struct buffer_head *fat_getblk (struct super_block *sb, int block); |
block | 886 | fs/hpfs/hpfs_fs.c | char *block; |
block | 917 | fs/hpfs/hpfs_fs.c | block = map_sector(inode->i_dev, hpfs_bmap(inode, q), &bh); |
block | 918 | fs/hpfs/hpfs_fs.c | if (!block) |
block | 926 | fs/hpfs/hpfs_fs.c | inode->i_hpfs_conv = choose_conv(block + r, n); |
block | 933 | fs/hpfs/hpfs_fs.c | memcpy_tofs(buf, block + r, n); |
block | 940 | fs/hpfs/hpfs_fs.c | n0 = convcpy_tofs(buf, block + r, n); |
block | 375 | fs/inode.c | int bmap(struct inode * inode, int block) |
block | 378 | fs/inode.c | return inode->i_op->bmap(inode,block); |
block | 20 | fs/ioctl.c | int block; |
block | 31 | fs/ioctl.c | block = get_fs_long((long *) arg); |
block | 32 | fs/ioctl.c | block = filp->f_inode->i_op->bmap(filp->f_inode,block); |
block | 33 | fs/ioctl.c | put_fs_long(block,(long *) arg); |
block | 114 | fs/isofs/dir.c | unsigned int block, offset; |
block | 123 | fs/isofs/dir.c | block = isofs_bmap(inode, filp->f_pos >> bufbits); |
block | 125 | fs/isofs/dir.c | if (!block) |
block | 128 | fs/isofs/dir.c | if (!(bh = breada(inode->i_dev, block, bufsize, filp->f_pos, inode->i_size))) |
block | 135 | fs/isofs/dir.c | block, offset, filp->f_pos); |
block | 141 | fs/isofs/dir.c | block = isofs_bmap(inode, (filp->f_pos) >> bufbits); |
block | 142 | fs/isofs/dir.c | if (!block) |
block | 144 | fs/isofs/dir.c | bh = breada(inode->i_dev, block, bufsize, filp->f_pos, inode->i_size); |
block | 151 | fs/isofs/dir.c | inode_number = (block << bufbits) + (offset & (bufsize - 1)); |
block | 164 | fs/isofs/dir.c | block = isofs_bmap(inode, (filp->f_pos) >> bufbits); |
block | 165 | fs/isofs/dir.c | if (!block) |
block | 167 | fs/isofs/dir.c | bh = breada(inode->i_dev, block, bufsize, filp->f_pos, inode->i_size); |
block | 181 | fs/isofs/dir.c | block = isofs_bmap(inode, (filp->f_pos + de_len) >> bufbits); |
block | 182 | fs/isofs/dir.c | if (!block) |
block | 184 | fs/isofs/dir.c | bh = breada(inode->i_dev, block, bufsize, filp->f_pos+de_len, inode->i_size); |
block | 448 | fs/isofs/inode.c | int isofs_bmap(struct inode * inode,int block) |
block | 451 | fs/isofs/inode.c | if (block<0) { |
block | 455 | fs/isofs/inode.c | return (inode->u.isofs_i.i_first_extent >> ISOFS_BUFFER_BITS(inode)) + block; |
block | 466 | fs/isofs/inode.c | int block; |
block | 470 | fs/isofs/inode.c | block = inode->i_ino >> ISOFS_BUFFER_BITS(inode); |
block | 471 | fs/isofs/inode.c | if (!(bh=bread(inode->i_dev,block, bufsize))) { |
block | 494 | fs/isofs/inode.c | if (!(bh = bread(inode->i_dev,++block, bufsize))) { |
block | 566 | fs/isofs/inode.c | printk("Get inode %d: %d %d: %d\n",inode->i_ino, block, |
block | 682 | fs/isofs/inode.c | unsigned int block,offset; |
block | 692 | fs/isofs/inode.c | block = extent << (ISOFS_ZONE_BITS(parent) - bufbits); |
block | 693 | fs/isofs/inode.c | if (!(bh = bread(parent->i_dev, block, bufsize))) return -1; |
block | 730 | fs/isofs/inode.c | block = parent_dir << (ISOFS_ZONE_BITS(parent) - bufbits); |
block | 731 | fs/isofs/inode.c | if (!block || !(bh = bread(parent->i_dev,block, bufsize))) |
block | 739 | fs/isofs/inode.c | inode_number = (block << bufbits)+(offset & (bufsize - 1)); |
block | 749 | fs/isofs/inode.c | block++; |
block | 752 | fs/isofs/inode.c | if((block & 1) && (ISOFS_ZONE_BITS(parent) - bufbits) == 1) |
block | 756 | fs/isofs/inode.c | if((block & 3) && (ISOFS_ZONE_BITS(parent) - bufbits) == 2) |
block | 760 | fs/isofs/inode.c | if (!block |
block | 761 | fs/isofs/inode.c | || !(bh = bread(parent->i_dev,block, bufsize))) |
block | 791 | fs/isofs/inode.c | block++; |
block | 792 | fs/isofs/inode.c | if(!(bh = bread(parent->i_dev,block,bufsize))) { |
block | 843 | fs/isofs/inode.c | struct buffer_head * leak_check_bread(int dev, int block, int size){ |
block | 845 | fs/isofs/inode.c | return bread(dev, block, size); |
block | 66 | fs/isofs/namei.c | unsigned int block, i, f_pos, offset, inode_number; |
block | 79 | fs/isofs/namei.c | if (!(block = dir->u.isofs_i.i_first_extent)) return NULL; |
block | 84 | fs/isofs/namei.c | block = isofs_bmap(dir,f_pos >> bufbits); |
block | 86 | fs/isofs/namei.c | if (!block || !(bh = bread(dir->i_dev,block,bufsize))) return NULL; |
block | 91 | fs/isofs/namei.c | inode_number = (block << bufbits) + (offset & (bufsize - 1)); |
block | 101 | fs/isofs/namei.c | block = isofs_bmap(dir,f_pos>>bufbits); |
block | 102 | fs/isofs/namei.c | if (!block || !(bh = bread(dir->i_dev,block,bufsize))) |
block | 123 | fs/isofs/namei.c | block = isofs_bmap(dir,f_pos>>bufbits); |
block | 124 | fs/isofs/namei.c | if (!block || !(bh = bread(dir->i_dev,block,bufsize))) { |
block | 56 | fs/isofs/rock.c | int block, offset, offset1; \ |
block | 60 | fs/isofs/rock.c | block = cont_extent; \ |
block | 64 | fs/isofs/rock.c | block <<= 1; \ |
block | 65 | fs/isofs/rock.c | if (offset >= 1024) block++; \ |
block | 68 | fs/isofs/rock.c | bh = bread(DEV->i_dev, block++, ISOFS_BUFFER_SIZE(DEV)); \ |
block | 79 | fs/isofs/rock.c | bh = bread(DEV->i_dev, block, ISOFS_BUFFER_SIZE(DEV)); \ |
block | 414 | fs/isofs/rock.c | int block; |
block | 426 | fs/isofs/rock.c | block = inode->i_ino >> bufbits; |
block | 427 | fs/isofs/rock.c | if (!(bh=bread(inode->i_dev,block, bufsize))) { |
block | 445 | fs/isofs/rock.c | if (!(bh = bread(inode->i_dev,++block, bufsize))) { |
block | 34 | fs/minix/bitmap.c | void minix_free_block(struct super_block * sb, int block) |
block | 43 | fs/minix/bitmap.c | if (block < sb->u.minix_sb.s_firstdatazone || |
block | 44 | fs/minix/bitmap.c | block >= sb->u.minix_sb.s_nzones) { |
block | 48 | fs/minix/bitmap.c | bh = get_hash_table(sb->s_dev,block,BLOCK_SIZE); |
block | 52 | fs/minix/bitmap.c | zone = block - sb->u.minix_sb.s_firstdatazone + 1; |
block | 62 | fs/minix/bitmap.c | kdevname(sb->s_dev), block); |
block | 114 | fs/minix/bitmap.c | int ino, block; |
block | 122 | fs/minix/bitmap.c | block = (2 + inode->i_sb->u.minix_sb.s_imap_blocks + |
block | 125 | fs/minix/bitmap.c | bh = bread(inode->i_dev, block, BLOCK_SIZE); |
block | 142 | fs/minix/bitmap.c | int ino, block; |
block | 150 | fs/minix/bitmap.c | block = (2 + inode->i_sb->u.minix_sb.s_imap_blocks + |
block | 153 | fs/minix/bitmap.c | bh = bread(inode->i_dev, block, BLOCK_SIZE); |
block | 31 | fs/minix/fsync.c | static int V1_sync_block (struct inode * inode, unsigned short * block, int wait) |
block | 36 | fs/minix/fsync.c | if (!*block) |
block | 38 | fs/minix/fsync.c | tmp = *block; |
block | 39 | fs/minix/fsync.c | bh = get_hash_table(inode->i_dev, *block, blocksize); |
block | 42 | fs/minix/fsync.c | if (*block != tmp) { |
block | 168 | fs/minix/fsync.c | static int V2_sync_block (struct inode * inode, unsigned long * block, int wait) |
block | 173 | fs/minix/fsync.c | if (!*block) |
block | 175 | fs/minix/fsync.c | tmp = *block; |
block | 176 | fs/minix/fsync.c | bh = get_hash_table(inode->i_dev, *block, blocksize); |
block | 179 | fs/minix/fsync.c | if (*block != tmp) { |
block | 169 | fs/minix/inode.c | int i, block; |
block | 243 | fs/minix/inode.c | block=2; |
block | 245 | fs/minix/inode.c | if ((s->u.minix_sb.s_imap[i]=bread(dev,block,BLOCK_SIZE)) != NULL) |
block | 246 | fs/minix/inode.c | block++; |
block | 250 | fs/minix/inode.c | if ((s->u.minix_sb.s_zmap[i]=bread(dev,block,BLOCK_SIZE)) != NULL) |
block | 251 | fs/minix/inode.c | block++; |
block | 254 | fs/minix/inode.c | if (block != 2+s->u.minix_sb.s_imap_blocks+s->u.minix_sb.s_zmap_blocks) { |
block | 338 | fs/minix/inode.c | static int V1_minix_bmap(struct inode * inode,int block) |
block | 342 | fs/minix/inode.c | if (block<0) { |
block | 346 | fs/minix/inode.c | if (block >= (inode->i_sb->u.minix_sb.s_max_size/BLOCK_SIZE)) { |
block | 350 | fs/minix/inode.c | if (block < 7) |
block | 351 | fs/minix/inode.c | return V1_inode_bmap(inode,block); |
block | 352 | fs/minix/inode.c | block -= 7; |
block | 353 | fs/minix/inode.c | if (block < 512) { |
block | 357 | fs/minix/inode.c | return V1_block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block); |
block | 359 | fs/minix/inode.c | block -= 512; |
block | 363 | fs/minix/inode.c | i = V1_block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block>>9); |
block | 366 | fs/minix/inode.c | return V1_block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 511); |
block | 384 | fs/minix/inode.c | static int V2_minix_bmap(struct inode * inode,int block) |
block | 388 | fs/minix/inode.c | if (block<0) { |
block | 392 | fs/minix/inode.c | if (block >= (inode->i_sb->u.minix_sb.s_max_size/BLOCK_SIZE)) { |
block | 396 | fs/minix/inode.c | if (block < 7) |
block | 397 | fs/minix/inode.c | return V2_inode_bmap(inode,block); |
block | 398 | fs/minix/inode.c | block -= 7; |
block | 399 | fs/minix/inode.c | if (block < 256) { |
block | 403 | fs/minix/inode.c | return V2_block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block); |
block | 405 | fs/minix/inode.c | block -= 256; |
block | 406 | fs/minix/inode.c | if (block < 256*256) { |
block | 410 | fs/minix/inode.c | i = V2_block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block >> 8); |
block | 413 | fs/minix/inode.c | return V2_block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 255); |
block | 415 | fs/minix/inode.c | block -= 256*256; |
block | 419 | fs/minix/inode.c | i = V2_block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block >> 16); |
block | 422 | fs/minix/inode.c | i = V2_block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),(block >> 8) & 255); |
block | 425 | fs/minix/inode.c | return V2_block_bmap(bread(inode->i_dev,i,BLOCK_SIZE),block & 255); |
block | 431 | fs/minix/inode.c | int minix_bmap(struct inode * inode,int block) |
block | 434 | fs/minix/inode.c | return V1_minix_bmap(inode, block); |
block | 436 | fs/minix/inode.c | return V2_minix_bmap(inode, block); |
block | 526 | fs/minix/inode.c | static struct buffer_head * V1_minix_getblk(struct inode * inode, int block, |
block | 531 | fs/minix/inode.c | if (block<0) { |
block | 535 | fs/minix/inode.c | if (block >= inode->i_sb->u.minix_sb.s_max_size/BLOCK_SIZE) { |
block | 539 | fs/minix/inode.c | if (block < 7) |
block | 540 | fs/minix/inode.c | return V1_inode_getblk(inode,block,create); |
block | 541 | fs/minix/inode.c | block -= 7; |
block | 542 | fs/minix/inode.c | if (block < 512) { |
block | 544 | fs/minix/inode.c | return V1_block_getblk(inode, bh, block, create); |
block | 546 | fs/minix/inode.c | block -= 512; |
block | 548 | fs/minix/inode.c | bh = V1_block_getblk(inode, bh, (block>>9) & 511, create); |
block | 549 | fs/minix/inode.c | return V1_block_getblk(inode, bh, block & 511, create); |
block | 639 | fs/minix/inode.c | static struct buffer_head * V2_minix_getblk(struct inode * inode, int block, |
block | 644 | fs/minix/inode.c | if (block<0) { |
block | 648 | fs/minix/inode.c | if (block >= inode->i_sb->u.minix_sb.s_max_size/BLOCK_SIZE) { |
block | 652 | fs/minix/inode.c | if (block < 7) |
block | 653 | fs/minix/inode.c | return V2_inode_getblk(inode,block,create); |
block | 654 | fs/minix/inode.c | block -= 7; |
block | 655 | fs/minix/inode.c | if (block < 256) { |
block | 657 | fs/minix/inode.c | return V2_block_getblk(inode, bh, block, create); |
block | 659 | fs/minix/inode.c | block -= 256; |
block | 660 | fs/minix/inode.c | if (block < 256*256) { |
block | 662 | fs/minix/inode.c | bh = V2_block_getblk(inode, bh, (block>>8) & 255, create); |
block | 663 | fs/minix/inode.c | return V2_block_getblk(inode, bh, block & 255, create); |
block | 665 | fs/minix/inode.c | block -= 256*256; |
block | 667 | fs/minix/inode.c | bh = V2_block_getblk(inode, bh, (block >> 16) & 255, create); |
block | 668 | fs/minix/inode.c | bh = V2_block_getblk(inode, bh, (block >> 8) & 255, create); |
block | 669 | fs/minix/inode.c | return V2_block_getblk(inode, bh, block & 255, create); |
block | 675 | fs/minix/inode.c | struct buffer_head * minix_getblk(struct inode * inode, int block, int create) |
block | 678 | fs/minix/inode.c | return V1_minix_getblk(inode,block,create); |
block | 680 | fs/minix/inode.c | return V2_minix_getblk(inode,block,create); |
block | 683 | fs/minix/inode.c | struct buffer_head * minix_bread(struct inode * inode, int block, int create) |
block | 687 | fs/minix/inode.c | bh = minix_getblk(inode,block,create); |
block | 705 | fs/minix/inode.c | int block, ino; |
block | 716 | fs/minix/inode.c | block = 2 + inode->i_sb->u.minix_sb.s_imap_blocks + |
block | 719 | fs/minix/inode.c | if (!(bh=bread(inode->i_dev,block, BLOCK_SIZE))) { |
block | 735 | fs/minix/inode.c | else for (block = 0; block < 9; block++) |
block | 736 | fs/minix/inode.c | inode->u.minix_i.u.i1_data[block] = raw_inode->i_zone[block]; |
block | 759 | fs/minix/inode.c | int block, ino; |
block | 770 | fs/minix/inode.c | block = 2 + inode->i_sb->u.minix_sb.s_imap_blocks + |
block | 773 | fs/minix/inode.c | if (!(bh=bread(inode->i_dev,block, BLOCK_SIZE))) { |
block | 791 | fs/minix/inode.c | else for (block = 0; block < 10; block++) |
block | 792 | fs/minix/inode.c | inode->u.minix_i.u.i2_data[block] = raw_inode->i_zone[block]; |
block | 826 | fs/minix/inode.c | int ino, block; |
block | 836 | fs/minix/inode.c | block = 2 + inode->i_sb->u.minix_sb.s_imap_blocks + inode->i_sb->u.minix_sb.s_zmap_blocks + |
block | 838 | fs/minix/inode.c | if (!(bh=bread(inode->i_dev, block, BLOCK_SIZE))) { |
block | 853 | fs/minix/inode.c | else for (block = 0; block < 9; block++) |
block | 854 | fs/minix/inode.c | raw_inode->i_zone[block] = inode->u.minix_i.u.i1_data[block]; |
block | 867 | fs/minix/inode.c | int ino, block; |
block | 877 | fs/minix/inode.c | block = 2 + inode->i_sb->u.minix_sb.s_imap_blocks + inode->i_sb->u.minix_sb.s_zmap_blocks + |
block | 879 | fs/minix/inode.c | if (!(bh=bread(inode->i_dev, block, BLOCK_SIZE))) { |
block | 896 | fs/minix/inode.c | else for (block = 0; block < 10; block++) |
block | 897 | fs/minix/inode.c | raw_inode->i_zone[block] = inode->u.minix_i.u.i2_data[block]; |
block | 67 | fs/minix/namei.c | unsigned long block, offset; |
block | 83 | fs/minix/namei.c | block = offset = 0; |
block | 84 | fs/minix/namei.c | while (block*BLOCK_SIZE+offset < dir->i_size) { |
block | 86 | fs/minix/namei.c | bh = minix_bread(dir,block,0); |
block | 88 | fs/minix/namei.c | block++; |
block | 100 | fs/minix/namei.c | block++; |
block | 151 | fs/minix/namei.c | unsigned long block, offset; |
block | 171 | fs/minix/namei.c | block = offset = 0; |
block | 174 | fs/minix/namei.c | bh = minix_bread(dir,block,1); |
block | 180 | fs/minix/namei.c | if (block*bh->b_size + offset > dir->i_size) { |
block | 182 | fs/minix/namei.c | dir->i_size = block*bh->b_size + offset; |
block | 205 | fs/minix/namei.c | block++; |
block | 376 | fs/minix/namei.c | unsigned int block, offset; |
block | 384 | fs/minix/namei.c | block = 0; |
block | 400 | fs/minix/namei.c | while (block*BLOCK_SIZE+offset < inode->i_size) { |
block | 402 | fs/minix/namei.c | bh = minix_bread(inode,block,0); |
block | 404 | fs/minix/namei.c | block++; |
block | 419 | fs/minix/namei.c | block++; |
block | 32 | fs/sysv/balloc.c | void sysv_free_block(struct super_block * sb, unsigned int block) |
block | 41 | fs/sysv/balloc.c | if (block < sb->sv_firstdatazone || block >= sb->sv_nzones) { |
block | 58 | fs/sysv/balloc.c | bh = sv_getblk(sb, sb->s_dev, block); |
block | 95 | fs/sysv/balloc.c | bh = sv_getblk(sb, sb->s_dev, block); |
block | 109 | fs/sysv/balloc.c | bh = sv_get_hash_table(sb, sb->s_dev, block); |
block | 115 | fs/sysv/balloc.c | block = to_coh_ulong(block); |
block | 116 | fs/sysv/balloc.c | sb->sv_sb_flc_blocks[(*sb->sv_sb_flc_count)++] = block; |
block | 130 | fs/sysv/balloc.c | unsigned int block; |
block | 143 | fs/sysv/balloc.c | block = sb->sv_sb_flc_blocks[(*sb->sv_sb_flc_count)-1]; |
block | 145 | fs/sysv/balloc.c | block = from_coh_ulong(block); |
block | 146 | fs/sysv/balloc.c | if (block == 0) { /* Applies only to Xenix FS, SystemV FS */ |
block | 151 | fs/sysv/balloc.c | if (block < sb->sv_firstdatazone || block >= sb->sv_nzones) { |
block | 152 | fs/sysv/balloc.c | printk("sysv_new_block: new block %d is not in data zone\n",block); |
block | 160 | fs/sysv/balloc.c | if (!(bh = sv_bread(sb, sb->s_dev, block))) { |
block | 198 | fs/sysv/balloc.c | bh = sv_getblk(sb, sb->s_dev, block); |
block | 222 | fs/sysv/balloc.c | return block; |
block | 229 | fs/sysv/balloc.c | unsigned int block; |
block | 239 | fs/sysv/balloc.c | block = sb->sv_sb_flc_blocks[--i]; |
block | 241 | fs/sysv/balloc.c | block = from_coh_ulong(block); |
block | 242 | fs/sysv/balloc.c | if (block == 0) /* block 0 terminates list */ |
block | 253 | fs/sysv/balloc.c | if (block < sb->sv_firstdatazone || block >= sb->sv_nzones) { |
block | 254 | fs/sysv/balloc.c | printk("sysv_count_free_blocks: new block %d is not in data zone\n",block); |
block | 257 | fs/sysv/balloc.c | if (!(bh = sv_bread(sb, sb->s_dev, block))) { |
block | 291 | fs/sysv/balloc.c | block = flc_blocks[--i]; |
block | 293 | fs/sysv/balloc.c | block = from_coh_ulong(block); |
block | 294 | fs/sysv/balloc.c | if (block == 0) /* block 0 terminates list */ |
block | 302 | fs/sysv/balloc.c | if (block == 0) /* Applies only to Xenix FS and SystemV FS */ |
block | 79 | fs/sysv/file.c | unsigned int block; |
block | 106 | fs/sysv/file.c | block = offset >> sb->sv_block_size_bits; |
block | 113 | fs/sysv/file.c | if (block + blocks > size) |
block | 114 | fs/sysv/file.c | blocks = size - block; |
block | 133 | fs/sysv/file.c | *bhb = sysv_getblk(inode, block++, 0); |
block | 32 | fs/sysv/fsync.c | unsigned long tmp, block; |
block | 35 | fs/sysv/fsync.c | block = tmp = *blockp; |
block | 37 | fs/sysv/fsync.c | block = from_coh_ulong(block); |
block | 38 | fs/sysv/fsync.c | if (!block) |
block | 41 | fs/sysv/fsync.c | bh = sv_get_hash_table(sb, inode->i_dev, block); |
block | 66 | fs/sysv/fsync.c | unsigned long tmp, block; |
block | 69 | fs/sysv/fsync.c | block = tmp = *iblockp; |
block | 71 | fs/sysv/fsync.c | block = from_coh_ulong(block); |
block | 72 | fs/sysv/fsync.c | if (!block) |
block | 77 | fs/sysv/fsync.c | *bh = sv_bread(inode->i_sb, inode->i_dev, block); |
block | 109 | fs/sysv/ialloc.c | int i,j,ino,block; |
block | 127 | fs/sysv/ialloc.c | for (i = 0, ino = SYSV_ROOT_INO+1, block = sb->sv_firstinodezone, j = SYSV_ROOT_INO ; i < sb->sv_fic_size && block < sb->sv_firstdatazone ; block++, j = 0) { |
block | 128 | fs/sysv/ialloc.c | if (!(bh = sv_bread(sb, sb->s_dev, block))) { |
block | 182 | fs/sysv/ialloc.c | int j,block,count; |
block | 193 | fs/sysv/ialloc.c | for (block = sb->sv_firstinodezone, j = SYSV_ROOT_INO ; block < sb->sv_firstdatazone ; block++, j = 0) { |
block | 194 | fs/sysv/ialloc.c | if (!(bh = sv_bread(sb, sb->s_dev, block))) { |
block | 579 | fs/sysv/inode.c | unsigned int block = block_nr; |
block | 585 | fs/sysv/inode.c | if (block < 10) |
block | 586 | fs/sysv/inode.c | return inode_bmap(sb,inode,block); |
block | 587 | fs/sysv/inode.c | block -= 10; |
block | 589 | fs/sysv/inode.c | if (block < sb->sv_ind_per_block) { |
block | 594 | fs/sysv/inode.c | return block_bmap(sb, bh, block, convert); |
block | 596 | fs/sysv/inode.c | block -= sb->sv_ind_per_block; |
block | 597 | fs/sysv/inode.c | if (block < sb->sv_ind_per_block_2) { |
block | 602 | fs/sysv/inode.c | i = block_bmap(sb, bh, block >> sb->sv_ind_per_block_bits, convert); |
block | 606 | fs/sysv/inode.c | return block_bmap(sb, bh, block & sb->sv_ind_per_block_1, convert); |
block | 608 | fs/sysv/inode.c | block -= sb->sv_ind_per_block_2; |
block | 609 | fs/sysv/inode.c | if (block < sb->sv_ind_per_block_3) { |
block | 614 | fs/sysv/inode.c | i = block_bmap(sb, bh, block >> sb->sv_ind_per_block_2_bits, convert); |
block | 618 | fs/sysv/inode.c | i = block_bmap(sb, bh, (block >> sb->sv_ind_per_block_bits) & sb->sv_ind_per_block_1,convert); |
block | 622 | fs/sysv/inode.c | return block_bmap(sb, bh, block & sb->sv_ind_per_block_1, convert); |
block | 624 | fs/sysv/inode.c | if ((int)block<0) { |
block | 676 | fs/sysv/inode.c | unsigned long tmp, block; |
block | 693 | fs/sysv/inode.c | block = tmp = *p; |
block | 695 | fs/sysv/inode.c | block = from_coh_ulong(block); |
block | 697 | fs/sysv/inode.c | result = sv_getblk(sb, bh->b_dev, block); |
block | 709 | fs/sysv/inode.c | block = sysv_new_block(sb); |
block | 710 | fs/sysv/inode.c | if (!block) { |
block | 714 | fs/sysv/inode.c | result = sv_getblk(sb, bh->b_dev, block); |
block | 716 | fs/sysv/inode.c | sysv_free_block(sb,block); |
block | 720 | fs/sysv/inode.c | *p = (sb->sv_convert ? to_coh_ulong(block) : block); |
block | 726 | fs/sysv/inode.c | struct buffer_head * sysv_getblk(struct inode * inode, unsigned int block, int create) |
block | 731 | fs/sysv/inode.c | if (block < 10) |
block | 732 | fs/sysv/inode.c | return inode_getblk(inode,block,create); |
block | 733 | fs/sysv/inode.c | block -= 10; |
block | 734 | fs/sysv/inode.c | if (block < sb->sv_ind_per_block) { |
block | 736 | fs/sysv/inode.c | return block_getblk(inode, bh, block, create); |
block | 738 | fs/sysv/inode.c | block -= sb->sv_ind_per_block; |
block | 739 | fs/sysv/inode.c | if (block < sb->sv_ind_per_block_2) { |
block | 741 | fs/sysv/inode.c | bh = block_getblk(inode, bh, block >> sb->sv_ind_per_block_bits, create); |
block | 742 | fs/sysv/inode.c | return block_getblk(inode, bh, block & sb->sv_ind_per_block_1, create); |
block | 744 | fs/sysv/inode.c | block -= sb->sv_ind_per_block_2; |
block | 745 | fs/sysv/inode.c | if (block < sb->sv_ind_per_block_3) { |
block | 747 | fs/sysv/inode.c | bh = block_getblk(inode, bh, block >> sb->sv_ind_per_block_2_bits, create); |
block | 748 | fs/sysv/inode.c | bh = block_getblk(inode, bh, (block >> sb->sv_ind_per_block_bits) & sb->sv_ind_per_block_1, create); |
block | 749 | fs/sysv/inode.c | return block_getblk(inode, bh, block & sb->sv_ind_per_block_1, create); |
block | 751 | fs/sysv/inode.c | if ((int)block<0) { |
block | 759 | fs/sysv/inode.c | struct buffer_head * sysv_file_bread(struct inode * inode, int block, int create) |
block | 763 | fs/sysv/inode.c | bh = sysv_getblk(inode,block,create); |
block | 804 | fs/sysv/inode.c | unsigned int block, ino; |
block | 816 | fs/sysv/inode.c | block = sb->sv_firstinodezone + ((ino-1) >> sb->sv_inodes_per_block_bits); |
block | 817 | fs/sysv/inode.c | if (!(bh = sv_bread(sb,inode->i_dev,block))) { |
block | 848 | fs/sysv/inode.c | for (block = 0; block < 10+1+1+1; block++) |
block | 849 | fs/sysv/inode.c | inode->u.sysv_i.i_data[block] = |
block | 850 | fs/sysv/inode.c | coh_read3byte(&raw_inode->i_a.i_addb[3*block]); |
block | 852 | fs/sysv/inode.c | for (block = 0; block < 10+1+1+1; block++) |
block | 853 | fs/sysv/inode.c | inode->u.sysv_i.i_data[block] = |
block | 854 | fs/sysv/inode.c | read3byte(&raw_inode->i_a.i_addb[3*block]); |
block | 893 | fs/sysv/inode.c | unsigned int ino, block; |
block | 904 | fs/sysv/inode.c | block = sb->sv_firstinodezone + ((ino-1) >> sb->sv_inodes_per_block_bits); |
block | 905 | fs/sysv/inode.c | if (!(bh = sv_bread(sb,inode->i_dev,block))) { |
block | 933 | fs/sysv/inode.c | for (block = 0; block < 10+1+1+1; block++) |
block | 934 | fs/sysv/inode.c | coh_write3byte(&raw_inode->i_a.i_addb[3*block],inode->u.sysv_i.i_data[block]); |
block | 936 | fs/sysv/inode.c | for (block = 0; block < 10+1+1+1; block++) |
block | 937 | fs/sysv/inode.c | write3byte(&raw_inode->i_a.i_addb[3*block],inode->u.sysv_i.i_data[block]); |
block | 64 | fs/sysv/namei.c | unsigned long pos, block, offset; /* pos = block * block_size + offset */ |
block | 77 | fs/sysv/namei.c | pos = block = offset = 0; |
block | 80 | fs/sysv/namei.c | bh = sysv_file_bread(dir,block,0); |
block | 82 | fs/sysv/namei.c | /* offset = 0; */ block++; |
block | 96 | fs/sysv/namei.c | offset = 0; block++; |
block | 148 | fs/sysv/namei.c | unsigned long pos, block, offset; /* pos = block * block_size + offset */ |
block | 165 | fs/sysv/namei.c | pos = block = offset = 0; |
block | 168 | fs/sysv/namei.c | bh = sysv_file_bread(dir,block,1); |
block | 198 | fs/sysv/namei.c | offset = 0; block++; |
block | 368 | fs/sysv/namei.c | unsigned long pos, block, offset; /* pos = block * block_size + offset */ |
block | 374 | fs/sysv/namei.c | block = 0; |
block | 393 | fs/sysv/namei.c | bh = sysv_file_bread(inode,block,0); |
block | 395 | fs/sysv/namei.c | /* offset = 0; */ block++; |
block | 411 | fs/sysv/namei.c | offset = 0; block++; |
block | 45 | fs/sysv/truncate.c | unsigned long block; |
block | 53 | fs/sysv/truncate.c | block = *p; |
block | 54 | fs/sysv/truncate.c | if (!block) |
block | 56 | fs/sysv/truncate.c | bh = sv_get_hash_table(sb, inode->i_dev, block); |
block | 61 | fs/sysv/truncate.c | if ((bh && bh->b_count != 1) || (block != *p)) { |
block | 69 | fs/sysv/truncate.c | sysv_free_block(sb,block); |
block | 81 | fs/sysv/truncate.c | unsigned long tmp, block; |
block | 108 | fs/sysv/truncate.c | block = tmp = *ind; |
block | 110 | fs/sysv/truncate.c | block = from_coh_ulong(block); |
block | 111 | fs/sysv/truncate.c | if (!block) |
block | 113 | fs/sysv/truncate.c | bh = sv_get_hash_table(sb, inode->i_dev, block); |
block | 126 | fs/sysv/truncate.c | sysv_free_block(sb,block); |
block | 150 | fs/sysv/truncate.c | unsigned long tmp, block; |
block | 176 | fs/sysv/truncate.c | block = tmp = *ind; |
block | 178 | fs/sysv/truncate.c | block = from_coh_ulong(block); |
block | 179 | fs/sysv/truncate.c | if (!block) |
block | 207 | fs/sysv/truncate.c | unsigned long tmp, block; |
block | 233 | fs/sysv/truncate.c | block = tmp = *ind; |
block | 235 | fs/sysv/truncate.c | block = from_coh_ulong(block); |
block | 236 | fs/sysv/truncate.c | if (!block) |
block | 20 | fs/ufs/ufs_file.c | int ufs_bmap (struct inode * inode, int block) |
block | 55 | fs/ufs/ufs_file.c | lfsblkno = block>>3; |
block | 57 | fs/ufs/ufs_file.c | if (block < UFS_NDADDR) { |
block | 64 | fs/ufs/ufs_file.c | phys_block = fsblkno + ((block & 0x7)<<10); /* XXX */ |
block | 67 | fs/ufs/ufs_file.c | inode->i_ino, block, fsblkno, phys_block); |
block | 73 | fs/ufs/ufs_file.c | block -= UFS_NDADDR; |
block | 74 | fs/ufs/ufs_file.c | if (block < (inode->i_sb->s_blocksize/sizeof(__u32))) { |
block | 79 | fs/ufs/ufs_file.c | block + UFS_NDADDR, inode->i_ino); |
block | 82 | fs/ufs/ufs_file.c | phys_block = ((__u32 *)bh->b_data)[block]; |
block | 85 | fs/ufs/ufs_file.c | inode->i_ino, block + UFS_NDADDR, phys_block); |
block | 15 | fs/ufs/ufs_namei.c | extern unsigned int ufs_bmap(struct inode * inode, int block); /* XXX */ |
block | 23 | fs/ufs/ufs_symlink.c | unsigned long int block; |
block | 42 | fs/ufs/ufs_symlink.c | block = ufs_bmap(inode, 0); |
block | 45 | fs/ufs/ufs_symlink.c | block, inode->i_ino); |
block | 47 | fs/ufs/ufs_symlink.c | bh = bread(inode->i_dev, block, BLOCK_SIZE); |
block | 78 | fs/ufs/ufs_symlink.c | unsigned long int block; |
block | 112 | fs/ufs/ufs_symlink.c | block = ufs_bmap(inode, 0); |
block | 113 | fs/ufs/ufs_symlink.c | bh = bread(inode->i_dev, block, BLOCK_SIZE); |
block | 29 | fs/xiafs/fsync.c | static int sync_block (struct inode * inode, unsigned long * block, int wait) |
block | 34 | fs/xiafs/fsync.c | if (!*block) |
block | 36 | fs/xiafs/fsync.c | tmp = *block; |
block | 37 | fs/xiafs/fsync.c | bh = get_hash_table(inode->i_dev, *block, blocksize); |
block | 40 | fs/xiafs/fsync.c | if (*block != tmp) { |
block | 149 | include/asm-sparc/viking.h | extern inline void viking_get_dcache_ptag(int set, int block, |
block | 152 | include/asm-sparc/viking.h | unsigned long ptag = ((set & 0x7f) << 5) | ((block & 0x3) << 26) | |
block | 44 | include/linux/affs_fs.h | extern void affs_free_block(struct super_block *sb, LONG block); |
block | 69 | include/linux/affs_fs.h | extern struct buffer_head *affs_bread(kdev_t dev, int block, int size); |
block | 85 | include/linux/affs_fs.h | extern int affs_bmap(struct inode *inode, int block); |
block | 86 | include/linux/affs_fs.h | extern struct buffer_head *affs_getblock(struct inode *inode, int block); |
block | 38 | include/linux/blk.h | #define SUBSECTOR(block) (CURRENT->current_nr_sectors > 0) |
block | 479 | include/linux/ext2_fs.h | extern int ext2_getcluster (struct inode * inode, long block); |
block | 82 | include/linux/ext_fs.h | extern void ext_free_block(struct super_block * sb, int block); |
block | 604 | include/linux/fs.h | extern int bmap(struct inode * inode,int block); |
block | 623 | include/linux/fs.h | extern struct buffer_head * get_hash_table(kdev_t dev, int block, int size); |
block | 624 | include/linux/fs.h | extern struct buffer_head * getblk(kdev_t dev, int block, int size); |
block | 642 | include/linux/fs.h | extern struct buffer_head * bread(kdev_t dev, int block, int size); |
block | 643 | include/linux/fs.h | extern struct buffer_head * breada(kdev_t dev,int block, int size, |
block | 174 | include/linux/iso_fs.h | extern int isofs_free_block(int dev, int block); |
block | 203 | include/linux/iso_fs.h | extern struct buffer_head * leak_check_bread(int dev, int block, int size); |
block | 108 | include/linux/minix_fs.h | extern void minix_free_block(struct super_block * sb, int block); |
block | 201 | include/linux/msdos_fs.h | extern int fat_bmap(struct inode *inode,int block); |
block | 340 | include/linux/sysv_fs.h | sv_get_hash_table (struct super_block *sb, kdev_t dev, unsigned int block) |
block | 342 | include/linux/sysv_fs.h | return get_hash_table (dev, block + sb->sv_block_base, sb->sv_block_size); |
block | 347 | include/linux/sysv_fs.h | sv_getblk (struct super_block *sb, kdev_t dev, unsigned int block) |
block | 349 | include/linux/sysv_fs.h | return getblk (dev, block + sb->sv_block_base, sb->sv_block_size); |
block | 354 | include/linux/sysv_fs.h | sv_bread (struct super_block *sb, kdev_t dev, unsigned int block) |
block | 356 | include/linux/sysv_fs.h | return bread (dev, block + sb->sv_block_base, sb->sv_block_size); |
block | 381 | include/linux/sysv_fs.h | extern void sysv_free_block(struct super_block * sb, unsigned int block); |
block | 117 | include/linux/xd.h | static int xd_readwrite (u_char operation,u_char drive,char *buffer,u_int block,u_int count); |
block | 87 | include/linux/xia_fs.h | extern void xiafs_free_zone(struct super_block * sb, int block); |
block | 112 | mm/page_io.c | unsigned int block = offset << 3; |
block | 115 | mm/page_io.c | if (!(zones[i] = swapf->i_op->smap(swapf,block++))) { |
block | 122 | mm/page_io.c | unsigned int block = offset |
block | 126 | mm/page_io.c | if (!(zones[i] = bmap(swapf,block++))) { |
block | 167 | mm/page_io.c | int block = page; |
block | 184 | mm/page_io.c | brw_page(rw, (unsigned long) buffer, dev, &block, PAGE_SIZE, 0); |