tag | line | file | source code |
sector | 1246 | drivers/block/amiflop.c | unsigned int block, track, sector; |
sector | 1301 | drivers/block/amiflop.c | printk("fd: sector %d + %d requested\n",CURRENT->sector,cnt); |
sector | 1303 | drivers/block/amiflop.c | block = CURRENT->sector + cnt; |
sector | 1310 | drivers/block/amiflop.c | sector = block % floppy->sects; |
sector | 1340 | drivers/block/amiflop.c | copy_buffer(trackdata + sector * 512, data); |
sector | 1357 | drivers/block/amiflop.c | copy_buffer(data, trackdata + sector * 512); |
sector | 1383 | drivers/block/amiflop.c | CURRENT->sector += CURRENT->current_nr_sectors; |
sector | 736 | drivers/block/ataflop.c | CURRENT->sector += CURRENT->current_nr_sectors; |
sector | 1138 | drivers/block/ataflop.c | CURRENT->sector += CURRENT->current_nr_sectors; |
sector | 1423 | drivers/block/ataflop.c | CURRENT ? CURRENT->sector : 0 )); |
sector | 1479 | drivers/block/ataflop.c | if (CURRENT->sector + 1 > UDT->blocks) { |
sector | 1489 | drivers/block/ataflop.c | ReqBlock = CURRENT->sector; |
sector | 2177 | drivers/block/floppy.c | block = current_count_sectors + CURRENT->sector; |
sector | 2187 | drivers/block/floppy.c | CURRENT->sector += CURRENT->current_nr_sectors; |
sector | 2195 | drivers/block/floppy.c | CURRENT->sector += current_count_sectors; |
sector | 2207 | drivers/block/floppy.c | DRWE->first_error_sector = CURRENT->sector; |
sector | 2210 | drivers/block/floppy.c | DRWE->last_error_sector = CURRENT->sector; |
sector | 2457 | drivers/block/floppy.c | TRACK = CURRENT->sector / max_sector; |
sector | 2458 | drivers/block/floppy.c | sector_t = CURRENT->sector % max_sector; |
sector | 297 | drivers/block/genhd.c | if (NR_SECTS(q) && q->sector == 1 && q->end_sector == 63) { |
sector | 163 | drivers/block/hd.c | printk(", sector=%ld", CURRENT->sector); |
sector | 500 | drivers/block/hd.c | CURRENT->sector += nsect; |
sector | 507 | drivers/block/hd.c | dev+'a', CURRENT->sector, CURRENT->sector+nsect, |
sector | 601 | drivers/block/hd.c | CURRENT->sector++; |
sector | 711 | drivers/block/hd.c | block = CURRENT->sector; |
sector | 539 | drivers/block/ide-cd.c | rq->sector -= n; |
sector | 597 | drivers/block/ide-cd.c | rq->sector += adj; |
sector | 837 | drivers/block/ide-cd.c | static void cdrom_buffer_sectors (ide_drive_t *drive, unsigned long sector, |
sector | 864 | drivers/block/ide-cd.c | info->sector_buffered = sector; |
sector | 998 | drivers/block/ide-cd.c | rq->sector, sectors_to_transfer); |
sector | 1015 | drivers/block/ide-cd.c | ++rq->sector; |
sector | 1043 | drivers/block/ide-cd.c | rq->sector >= info->sector_buffered && |
sector | 1044 | drivers/block/ide-cd.c | rq->sector < info->sector_buffered + info->nsectors_buffered) { |
sector | 1050 | drivers/block/ide-cd.c | (rq->sector - info->sector_buffered) * SECTOR_SIZE, |
sector | 1055 | drivers/block/ide-cd.c | ++rq->sector; |
sector | 1074 | drivers/block/ide-cd.c | (rq->sector % SECTORS_PER_FRAME) != 0) { |
sector | 1076 | drivers/block/ide-cd.c | drive->name, rq->sector); |
sector | 1097 | drivers/block/ide-cd.c | int nsect, sector, nframes, frame, nskip; |
sector | 1103 | drivers/block/ide-cd.c | sector = rq->sector; |
sector | 1112 | drivers/block/ide-cd.c | nskip = (sector % SECTORS_PER_FRAME); |
sector | 1123 | drivers/block/ide-cd.c | sector -= nskip; |
sector | 1131 | drivers/block/ide-cd.c | frame = sector / SECTORS_PER_FRAME; |
sector | 1164 | drivers/block/ide-cd.c | rq->sector = block; |
sector | 2911 | drivers/block/ide-tape.c | printk ("sector: %ld, nr_sectors: %ld, current_nr_sectors: %ld\n",rq->sector,rq->nr_sectors,rq->current_nr_sectors); |
sector | 3189 | drivers/block/ide-tape.c | rq.sector = tape->block_address; |
sector | 3216 | drivers/block/ide-tape.c | rq.sector = tape->block_address; |
sector | 3318 | drivers/block/ide-tape.c | rq->sector = tape->block_address; /* Doesn't actually matter - We always assume sequential access */ |
sector | 856 | drivers/block/ide.c | printk(", sector=%ld", HWGROUP(drive)->rq->sector); |
sector | 965 | drivers/block/ide.c | drive->name, rq->sector, rq->sector+nsect-1, |
sector | 968 | drivers/block/ide.c | rq->sector += nsect; |
sector | 994 | drivers/block/ide.c | drive->name, rq->sector, (unsigned long) rq->buffer, |
sector | 998 | drivers/block/ide.c | rq->sector++; |
sector | 1032 | drivers/block/ide.c | drive->name, rq->sector, (unsigned long) rq->buffer, |
sector | 1389 | drivers/block/ide.c | block = rq->sector; |
sector | 1686 | drivers/block/ide.c | rq->sector = 0; |
sector | 283 | drivers/block/ll_rw_blk.c | unsigned int sector, count; |
sector | 288 | drivers/block/ll_rw_blk.c | sector = bh->b_rsector; |
sector | 290 | drivers/block/ll_rw_blk.c | if (blk_size[major][MINOR(bh->b_rdev)] < (sector + count)>>1) { |
sector | 294 | drivers/block/ll_rw_blk.c | rw, (sector + count)>>1, blk_size[major][MINOR(bh->b_rdev)]); |
sector | 382 | drivers/block/ll_rw_blk.c | if (req->sector + req->nr_sectors == sector) { |
sector | 386 | drivers/block/ll_rw_blk.c | } else if (req->sector - count == sector) { |
sector | 391 | drivers/block/ll_rw_blk.c | req->sector = sector; |
sector | 418 | drivers/block/ll_rw_blk.c | req->sector = sector; |
sector | 566 | drivers/block/ll_rw_blk.c | req[j]->sector = rsector; |
sector | 173 | drivers/block/loop.c | block = CURRENT->sector * (512/blksize); |
sector | 176 | drivers/block/loop.c | block = CURRENT->sector / (blksize >> 9); |
sector | 177 | drivers/block/loop.c | offset = CURRENT->sector % (blksize >> 9); |
sector | 223 | drivers/block/promise.c | "remaining=%ld\n", drive->name, rq->sector, rq->sector+nsect-1, |
sector | 226 | drivers/block/promise.c | rq->sector += nsect; |
sector | 122 | drivers/block/rd.c | offset = CURRENT->sector << 9; |
sector | 220 | drivers/block/xd.c | && CURRENT->sector + CURRENT->nr_sectors |
sector | 222 | drivers/block/xd.c | block = CURRENT->sector + xd[MINOR(CURRENT->rq_dev)].start_sect; |
sector | 338 | drivers/block/xd.c | u_char head,sector,control,mode,temp; |
sector | 351 | drivers/block/xd.c | sector = block % xd_info[drive].sectors; |
sector | 354 | drivers/block/xd.c | printk("xd_readwrite: drive = %d, head = %d, cylinder = %d, sector = %d, count = %d\n",drive,head,cylinder,sector,temp); |
sector | 358 | drivers/block/xd.c | xd_build(cmdblk,operation == READ ? CMD_READ : CMD_WRITE,drive,head,cylinder,sector,temp & 0xFF,control); |
sector | 432 | drivers/block/xd.c | static u_char *xd_build (u_char *cmdblk,u_char command,u_char drive,u_char head,u_short cylinder,u_char sector,u_char count,u_char control) |
sector | 436 | drivers/block/xd.c | cmdblk[2] = ((cylinder & 0x300) >> 2) | (sector & 0x3F); |
sector | 196 | drivers/cdrom/aztcd.c | && CURRENT -> sector != -1) |
sector | 965 | drivers/cdrom/aztcd.c | int bn = CURRENT -> sector / 4; |
sector | 970 | drivers/cdrom/aztcd.c | int offs = (i * 4 + (CURRENT -> sector & 3)) * 512; |
sector | 971 | drivers/cdrom/aztcd.c | int nr_sectors = 4 - (CURRENT -> sector & 3); |
sector | 983 | drivers/cdrom/aztcd.c | CURRENT -> sector += nr_sectors; |
sector | 997 | drivers/cdrom/aztcd.c | printk(" do_aztcd_request(%ld+%ld) Time:%li\n", CURRENT -> sector, CURRENT -> nr_sectors,jiffies); |
sector | 1183 | drivers/cdrom/aztcd.c | azt_next_bn = CURRENT -> sector / 4; |
sector | 1336 | drivers/cdrom/aztcd.c | && (CURRENT -> sector / 4 < azt_next_bn || |
sector | 1337 | drivers/cdrom/aztcd.c | CURRENT -> sector / 4 > azt_next_bn + AZT_BUF_SIZ)) { |
sector | 1078 | drivers/cdrom/cdu31a.c | start_request(unsigned int sector, |
sector | 1087 | drivers/cdrom/cdu31a.c | log_to_msf(sector, params); |
sector | 1097 | drivers/cdrom/cdu31a.c | else if ((sector + nsect) >= sony_toc.lead_out_start_lba) |
sector | 1099 | drivers/cdrom/cdu31a.c | read_size = sony_toc.lead_out_start_lba - sector; |
sector | 1139 | drivers/cdrom/cdu31a.c | sony_next_block = sector * 4; |
sector | 1559 | drivers/cdrom/cdu31a.c | block = CURRENT->sector; |
sector | 156 | drivers/cdrom/cm206.c | ush sector[READ_AHEAD*RAW_SECTOR_SIZE/2]; /* buffered cd-sector */ |
sector | 465 | drivers/cdrom/cm206.c | insw(r_fifo_output_buffer, cd->sector, READ_AHEAD*RAW_SECTOR_SIZE/2); |
sector | 590 | drivers/cdrom/cm206.c | insw(r_fifo_output_buffer, cd->sector + cd->fifo_overflowed, |
sector | 604 | drivers/cdrom/cm206.c | int try_adapter(int sector) |
sector | 606 | drivers/cdrom/cm206.c | if (cd->adapter_first <= sector && sector < cd->adapter_last) { |
sector | 608 | drivers/cdrom/cm206.c | empty_buffer(sector - cd->adapter_first); |
sector | 611 | drivers/cdrom/cm206.c | else if (cd->background==1 && cd->adapter_first <= sector |
sector | 612 | drivers/cdrom/cm206.c | && sector < cd->adapter_first+cd->max_sectors) { |
sector | 615 | drivers/cdrom/cm206.c | while (sector >= cd->adapter_last) { |
sector | 617 | drivers/cdrom/cm206.c | debug(("Timed out during background wait: %d %d %d %d\n", sector, |
sector | 625 | drivers/cdrom/cm206.c | empty_buffer(sector - cd->adapter_first); |
sector | 651 | drivers/cdrom/cm206.c | cd_sec_no = (CURRENT->sector+i)/4; /* 4 times 512 bytes */ |
sector | 652 | drivers/cdrom/cm206.c | quarter = (CURRENT->sector+i) % 4; |
sector | 656 | drivers/cdrom/cm206.c | source = ((uch *) cd->sector) + 16 + |
sector | 661 | drivers/cdrom/cm206.c | source = ((uch *) cd->sector)+16+quarter*512; |
sector | 244 | drivers/cdrom/gscd.c | while (CURRENT -> nr_sectors > 0 && gscd_bn == CURRENT -> sector / 4) |
sector | 246 | drivers/cdrom/gscd.c | offs = (CURRENT -> sector & 3) * 512; |
sector | 249 | drivers/cdrom/gscd.c | CURRENT -> sector++; |
sector | 268 | drivers/cdrom/gscd.c | block = CURRENT->sector; |
sector | 271 | drivers/cdrom/gscd.c | if (CURRENT == NULL || CURRENT -> sector == -1) |
sector | 337 | drivers/cdrom/gscd.c | block = CURRENT -> sector / 4; |
sector | 349 | drivers/cdrom/gscd.c | gscd_bn = CURRENT -> sector / 4; |
sector | 135 | drivers/cdrom/mcd.c | && CURRENT -> sector != -1) |
sector | 598 | drivers/cdrom/mcd.c | int bn = CURRENT -> sector / 4; |
sector | 603 | drivers/cdrom/mcd.c | int offs = (i * 4 + (CURRENT -> sector & 3)) * 512; |
sector | 604 | drivers/cdrom/mcd.c | int nr_sectors = 4 - (CURRENT -> sector & 3); |
sector | 616 | drivers/cdrom/mcd.c | CURRENT -> sector += nr_sectors; |
sector | 657 | drivers/cdrom/mcd.c | printk(" do_mcd_request(%ld+%ld)\n", CURRENT -> sector, CURRENT -> nr_sectors); |
sector | 863 | drivers/cdrom/mcd.c | mcd_next_bn = CURRENT -> sector / 4; |
sector | 937 | drivers/cdrom/mcd.c | && (CURRENT -> sector / 4 < mcd_next_bn || |
sector | 938 | drivers/cdrom/mcd.c | CURRENT -> sector / 4 > mcd_next_bn + 16)) { |
sector | 222 | drivers/cdrom/mcdx.c | static int mcdx_transfer(struct s_drive_stuff*, char* buf, int sector, int nr_sectors); |
sector | 223 | drivers/cdrom/mcdx.c | static int mcdx_xfer(struct s_drive_stuff*, char* buf, int sector, int nr_sectors); |
sector | 592 | drivers/cdrom/mcdx.c | CURRENT->sector, |
sector | 597 | drivers/cdrom/mcdx.c | CURRENT->sector += CURRENT->nr_sectors; |
sector | 604 | drivers/cdrom/mcdx.c | CURRENT->sector += i; |
sector | 1266 | drivers/cdrom/mcdx.c | char *p, int sector, int nr_sectors) |
sector | 1275 | drivers/cdrom/mcdx.c | ans = mcdx_xfer(stuffp, p, sector, nr_sectors); |
sector | 1289 | drivers/cdrom/mcdx.c | return mcdx_transfer(stuffp, p, sector, nr_sectors); |
sector | 1296 | drivers/cdrom/mcdx.c | char *p, int sector, int nr_sectors) |
sector | 1305 | drivers/cdrom/mcdx.c | nr_sectors, sector)); |
sector | 1319 | drivers/cdrom/mcdx.c | && (sector >= stuffp->pending) |
sector | 1320 | drivers/cdrom/mcdx.c | && (sector < stuffp->off_direct)) { |
sector | 1323 | drivers/cdrom/mcdx.c | off = stuffp->off_requested < (off = sector + nr_sectors) |
sector | 1383 | drivers/cdrom/mcdx.c | if (stuffp->pending == sector) { |
sector | 1386 | drivers/cdrom/mcdx.c | sector++; |
sector | 1404 | drivers/cdrom/mcdx.c | stuffp->pending = sector & ~3; |
sector | 968 | drivers/cdrom/optcd.c | && CURRENT -> cmd == READ && CURRENT -> sector != -1) |
sector | 1001 | drivers/cdrom/optcd.c | int bn = CURRENT -> sector / 4; |
sector | 1012 | drivers/cdrom/optcd.c | offs = (i * 4 + (CURRENT -> sector & 3)) * 512; |
sector | 1013 | drivers/cdrom/optcd.c | nr_sectors = 4 - (CURRENT -> sector & 3); |
sector | 1027 | drivers/cdrom/optcd.c | CURRENT -> sector += nr_sectors; |
sector | 1157 | drivers/cdrom/optcd.c | next_bn = CURRENT -> sector / 4; |
sector | 1273 | drivers/cdrom/optcd.c | && (CURRENT -> sector / 4 < next_bn || |
sector | 1274 | drivers/cdrom/optcd.c | CURRENT -> sector / 4 > |
sector | 1349 | drivers/cdrom/optcd.c | CURRENT -> sector, CURRENT -> nr_sectors)); |
sector | 4396 | drivers/cdrom/sbpcd.c | (CURRENT->sector/4 >= D_S[d].sbp_first_frame) && |
sector | 4397 | drivers/cdrom/sbpcd.c | (CURRENT->sector/4 <= D_S[d].sbp_last_frame) ) |
sector | 4399 | drivers/cdrom/sbpcd.c | offs = (CURRENT->sector - D_S[d].sbp_first_frame * 4) * 512; |
sector | 4402 | drivers/cdrom/sbpcd.c | CURRENT->sector++; |
sector | 4422 | drivers/cdrom/sbpcd.c | if (CURRENT -> sector == -1) |
sector | 4442 | drivers/cdrom/sbpcd.c | block = CURRENT->sector; /* always numbered as 512-byte-pieces */ |
sector | 4510 | drivers/cdrom/sbpcd.c | block=CURRENT->sector/4; |
sector | 4871 | drivers/cdrom/sbpcd.c | D_S[d].sbp_first_frame = CURRENT -> sector / 4; |
sector | 921 | drivers/cdrom/sjcd.c | CURRENT->cmd == READ && CURRENT->sector != -1 ) |
sector | 929 | drivers/cdrom/sjcd.c | int i, bn = CURRENT->sector / 4; |
sector | 932 | drivers/cdrom/sjcd.c | int offs = ( i * 4 + ( CURRENT->sector & 3 ) ) * 512; |
sector | 933 | drivers/cdrom/sjcd.c | int nr_sectors = 4 - ( CURRENT->sector & 3 ); |
sector | 948 | drivers/cdrom/sjcd.c | CURRENT->sector += nr_sectors; |
sector | 1065 | drivers/cdrom/sjcd.c | sjcd_next_bn = CURRENT->sector / 4; |
sector | 1181 | drivers/cdrom/sjcd.c | ( CURRENT->sector / 4 < sjcd_next_bn || |
sector | 1182 | drivers/cdrom/sjcd.c | CURRENT->sector / 4 > sjcd_next_bn + SJCD_BUF_SIZ ) ){ |
sector | 1270 | drivers/cdrom/sjcd.c | CURRENT->sector, CURRENT->nr_sectors ); |
sector | 808 | drivers/cdrom/sonycd535.c | block = CURRENT->sector; |
sector | 39 | drivers/char/ftape/ecc.h | #define BAD_SET(entry,sector) ((entry)|=(1<<(sector))) |
sector | 40 | drivers/char/ftape/ecc.h | #define BAD_CHECK(entry,sector) ((entry)&(1<<(sector))) |
sector | 60 | drivers/char/ftape/ftape-bsm.c | unsigned sector = 1; |
sector | 68 | drivers/char/ftape/ftape-bsm.c | *(unsigned long *) dst_ptr = 0x800000 + sector; |
sector | 70 | drivers/char/ftape/ftape-bsm.c | sector += SECTORS_PER_SEGMENT; |
sector | 74 | drivers/char/ftape/ftape-bsm.c | *(unsigned long *) dst_ptr = sector; |
sector | 78 | drivers/char/ftape/ftape-bsm.c | ++sector; |
sector | 121 | drivers/char/ftape/ftape-bsm.c | void put_sector(byte ** ptr, unsigned long sector) |
sector | 123 | drivers/char/ftape/ftape-bsm.c | *(*ptr)++ = sector & 0xff; |
sector | 124 | drivers/char/ftape/ftape-bsm.c | sector >>= 8; |
sector | 125 | drivers/char/ftape/ftape-bsm.c | *(*ptr)++ = sector & 0xff; |
sector | 126 | drivers/char/ftape/ftape-bsm.c | sector >>= 8; |
sector | 127 | drivers/char/ftape/ftape-bsm.c | *(*ptr)++ = sector & 0xff; |
sector | 132 | drivers/char/ftape/ftape-bsm.c | unsigned long sector; |
sector | 135 | drivers/char/ftape/ftape-bsm.c | sector = *(*ptr)++; |
sector | 136 | drivers/char/ftape/ftape-bsm.c | sector += *(*ptr)++ << 8; |
sector | 137 | drivers/char/ftape/ftape-bsm.c | sector += *(*ptr)++ << 16; |
sector | 139 | drivers/char/ftape/ftape-bsm.c | sector = *--(*ptr) << 16; |
sector | 140 | drivers/char/ftape/ftape-bsm.c | sector += *--(*ptr) << 8; |
sector | 141 | drivers/char/ftape/ftape-bsm.c | sector += *--(*ptr); |
sector | 143 | drivers/char/ftape/ftape-bsm.c | return sector; |
sector | 207 | drivers/char/ftape/ftape-bsm.c | unsigned sector; |
sector | 210 | drivers/char/ftape/ftape-bsm.c | sector = get_sector(&ptr, forward); |
sector | 211 | drivers/char/ftape/ftape-bsm.c | if (sector != 0) { |
sector | 212 | drivers/char/ftape/ftape-bsm.c | if (format_code == 4 && sector & 0x800000) { |
sector | 214 | drivers/char/ftape/ftape-bsm.c | TRACEx1(6, "bad segment at sector: %6d", sector & 0x7fffff); |
sector | 217 | drivers/char/ftape/ftape-bsm.c | TRACEx1(6, "bad sector: %6d", sector); |
sector | 220 | drivers/char/ftape/ftape-bsm.c | } while (sector != 0); |
sector | 224 | drivers/char/ftape/ftape-bsm.c | sector = *((unsigned short *) ptr)++; |
sector | 225 | drivers/char/ftape/ftape-bsm.c | if (sector) { |
sector | 226 | drivers/char/ftape/ftape-bsm.c | TRACEx2(4, "eof mark: %4d/%2d", sector, |
sector | 229 | drivers/char/ftape/ftape-bsm.c | } while (sector); |
sector | 257 | drivers/char/ftape/ftape-bsm.c | unsigned long cvt2map(int sector) |
sector | 259 | drivers/char/ftape/ftape-bsm.c | return 1 << (((sector & 0x7fffff) - 1) % SECTORS_PER_SEGMENT); |
sector | 262 | drivers/char/ftape/ftape-bsm.c | int cvt2segment(int sector) |
sector | 264 | drivers/char/ftape/ftape-bsm.c | return ((sector & 0x7fffff) - 1) / SECTORS_PER_SEGMENT; |
sector | 270 | drivers/char/ftape/ftape-bsm.c | unsigned long sector; |
sector | 275 | drivers/char/ftape/ftape-bsm.c | sector = get_sector(ptr, forward); |
sector | 276 | drivers/char/ftape/ftape-bsm.c | segment = cvt2segment(sector); |
sector | 277 | drivers/char/ftape/ftape-bsm.c | } while (sector != 0 && segment < segment_id); |
sector | 281 | drivers/char/ftape/ftape-bsm.c | if (format_code == 4 && (sector & 0x800000) && segment == segment_id) { |
sector | 287 | drivers/char/ftape/ftape-bsm.c | while (sector != 0 && segment == segment_id) { |
sector | 288 | drivers/char/ftape/ftape-bsm.c | *map |= cvt2map(sector); |
sector | 289 | drivers/char/ftape/ftape-bsm.c | sector = get_sector(ptr, forward); |
sector | 290 | drivers/char/ftape/ftape-bsm.c | segment = cvt2segment(sector); |
sector | 300 | drivers/char/ftape/ftape-bsm.c | unsigned long sector; |
sector | 307 | drivers/char/ftape/ftape-bsm.c | sector = get_sector(ptr, backward); |
sector | 308 | drivers/char/ftape/ftape-bsm.c | segment = cvt2segment(sector); |
sector | 318 | drivers/char/ftape/ftape-bsm.c | if (format_code == 4 && (sector & 0x800000)) { |
sector | 323 | drivers/char/ftape/ftape-bsm.c | *map |= cvt2map(sector); |
sector | 328 | drivers/char/ftape/ftape-bsm.c | sector = get_sector(ptr, backward); |
sector | 329 | drivers/char/ftape/ftape-bsm.c | segment = cvt2segment(sector); |
sector | 51 | drivers/char/ftape/ftape-eof.c | unsigned short sector; |
sector | 177 | drivers/char/ftape/ftape-eof.c | eof_map[eof_index].mark.segment, eof_map[eof_index].mark.sector, |
sector | 179 | drivers/char/ftape/ftape-eof.c | if (eof_mark_ptr->sector >= SECTORS_PER_SEGMENT) { |
sector | 181 | drivers/char/ftape/ftape-eof.c | eof_mark_ptr->segment, eof_mark_ptr->sector); |
sector | 184 | drivers/char/ftape/ftape-eof.c | result = eof_mark_ptr->sector; |
sector | 198 | drivers/char/ftape/ftape-eof.c | byte_count >= eof_mark_ptr->sector * SECTOR_SIZE) { |
sector | 200 | drivers/char/ftape/ftape-eof.c | eof_mark_ptr->segment, eof_mark_ptr->sector, eof_index); |
sector | 209 | drivers/char/ftape/ftape-eof.c | void put_file_mark_in_map(unsigned segment, unsigned sector) |
sector | 218 | drivers/char/ftape/ftape-eof.c | new.mark.sector = sector; |
sector | 226 | drivers/char/ftape/ftape-eof.c | if (ptr->mark.sector == sector) { |
sector | 228 | drivers/char/ftape/ftape-eof.c | new.mark.segment, new.mark.sector); |
sector | 231 | drivers/char/ftape/ftape-eof.c | ptr->mark.segment, ptr->mark.sector, index, |
sector | 232 | drivers/char/ftape/ftape-eof.c | new.mark.segment, new.mark.sector); |
sector | 239 | drivers/char/ftape/ftape-eof.c | new.mark.segment, new.mark.sector, index, |
sector | 240 | drivers/char/ftape/ftape-eof.c | ptr->mark.segment, ptr->mark.sector); |
sector | 249 | drivers/char/ftape/ftape-eof.c | new.mark.segment, new.mark.sector, index); |
sector | 262 | drivers/char/ftape/ftape-eof.c | int ftape_weof(unsigned count, unsigned segment, unsigned sector) |
sector | 270 | drivers/char/ftape/ftape-eof.c | if (sector < 1 || sector > 29 || |
sector | 272 | drivers/char/ftape/ftape-eof.c | TRACEx3(5, "parameter out of range: %d, %d, %d", count, segment, sector); |
sector | 294 | drivers/char/ftape/ftape-eof.c | } while (--sector); |
sector | 300 | drivers/char/ftape/ftape-eof.c | sector = 1; /* first sector */ |
sector | 401 | drivers/char/ftape/ftape-eof.c | eof_map[i].mark.segment = eof_map[i].mark.sector; |
sector | 402 | drivers/char/ftape/ftape-eof.c | eof_map[i].mark.sector = tmp; |
sector | 407 | drivers/char/ftape/ftape-eof.c | eof_map[i].mark.segment, eof_map[i].mark.sector); |
sector | 468 | drivers/char/ftape/ftape-eof.c | if (eof_mark_ptr->sector == 1) { |
sector | 550 | drivers/char/ftape/ftape-eof.c | eof_map[i].mark.segment, eof_map[i].mark.sector); |
sector | 45 | drivers/char/ftape/ftape-eof.h | extern int ftape_weof(unsigned count, unsigned segment, unsigned sector); |
sector | 47 | drivers/char/ftape/ftape-eof.h | extern void put_file_mark_in_map(unsigned segment, unsigned sector); |
sector | 250 | drivers/char/ftape/ftape-rw.c | location.sector = -1; |
sector | 304 | drivers/char/ftape/ftape-rw.c | location.sector = (fdc_sect - 1) % SECTORS_PER_SEGMENT; |
sector | 330 | drivers/char/ftape/ftape-rw.c | if (location.sector == 0) { |
sector | 331 | drivers/char/ftape/ftape-rw.c | TRACEx2(5, "passing segment %d/%d", location.segment, location.sector); |
sector | 333 | drivers/char/ftape/ftape-rw.c | TRACEx2(6, "passing segment %d/%d", location.segment, location.sector); |
sector | 569 | drivers/char/ftape/ftape-rw.c | location.sector, segment_id, margin); |
sector | 598 | drivers/char/ftape/ftape-rw.c | location.sector, overshoot, inhibit_correction); |
sector | 629 | drivers/char/ftape/ftape-rw.c | location.segment, location.sector); |
sector | 661 | drivers/char/ftape/ftape-rw.c | location.segment, location.sector, segment_id, margin); |
sector | 690 | drivers/char/ftape/ftape-rw.c | location.sector, min_rewind, overshoot, inhibit_correction); |
sector | 735 | drivers/char/ftape/ftape-rw.c | TRACEx2(4, "current location: %d/%d", location.segment, location.sector); |
sector | 927 | drivers/char/ftape/ftape-rw.c | TRACEx2(4, "current segment: %d/%d", location.segment, location.sector); |
sector | 131 | drivers/char/ftape/ftape-rw.h | volatile int sector; /* sector offset within current segment */ |
sector | 948 | drivers/scsi/scsi.c | req->sector += bh->b_size >> 9; |
sector | 1114 | drivers/scsi/scsi.c | req->sector += bh->b_size >> 9; |
sector | 2334 | drivers/scsi/scsi.c | unsigned int page, sector, nbits, mask; |
sector | 2346 | drivers/scsi/scsi.c | sector = (((unsigned long) obj) - page_addr) >> 9; |
sector | 2351 | drivers/scsi/scsi.c | if ((mask << sector) >= (1 << SECTORS_PER_PAGE)) |
sector | 2356 | drivers/scsi/scsi.c | if((dma_malloc_freelist[page] & (mask << sector)) != (mask<<sector)) |
sector | 2360 | drivers/scsi/scsi.c | dma_malloc_freelist[page] &= ~(mask << sector); |
sector | 3312 | drivers/scsi/scsi.c | SCpnt->request.sector, |
sector | 3339 | drivers/scsi/scsi.c | req->sector, |
sector | 500 | drivers/scsi/scsi.h | kdevname(req->rq_dev), req->sector); |
sector | 507 | drivers/scsi/scsi.h | req->sector += bh->b_size >> 9; |
sector | 101 | drivers/scsi/scsi_debug.c | if (SCpnt->request.sector + start != block) panic("Wrong block."); \ |
sector | 102 | drivers/scsi/scsicam.c | cyl = p->cyl + ((p->sector & 0xc0) << 2); |
sector | 290 | drivers/scsi/sd.c | SCpnt->request.sector, this_count); |
sector | 525 | drivers/scsi/sd.c | block = SCpnt->request.sector; |
sector | 164 | drivers/scsi/sr.c | offset = (SCpnt->request.sector % 4) << 9; |
sector | 198 | drivers/scsi/sr.c | if(SCpnt->request.sector % 4) this_count -= 2; |
sector | 213 | drivers/scsi/sr.c | SCpnt->request.sector, this_count); |
sector | 321 | drivers/scsi/sr.c | unsigned long sector,min,sec,frame; |
sector | 349 | drivers/scsi/sr.c | sector = 0; |
sector | 381 | drivers/scsi/sr.c | sector = min*CD_SECS*CD_FRAMES + sec*CD_FRAMES + frame; |
sector | 384 | drivers/scsi/sr.c | if (sector) { |
sector | 385 | drivers/scsi/sr.c | printk(KERN_DEBUG "sr_photocd: multisession CD detected. start: %lu\n",sector); |
sector | 423 | drivers/scsi/sr.c | sector = min*CD_SECS*CD_FRAMES + sec*CD_FRAMES + frame; |
sector | 424 | drivers/scsi/sr.c | if (sector) { |
sector | 425 | drivers/scsi/sr.c | sector -= CD_BLOCK_OFFSET; |
sector | 427 | drivers/scsi/sr.c | printk(KERN_DEBUG "sr_photocd: multisession CD detected: start: %lu\n",sector); |
sector | 498 | drivers/scsi/sr.c | sector = rec[11] + (rec[10] << 8) + (rec[9] << 16) + (rec[8] << 24); |
sector | 499 | drivers/scsi/sr.c | is_xa = !!sector; |
sector | 501 | drivers/scsi/sr.c | if (sector) |
sector | 502 | drivers/scsi/sr.c | printk (KERN_DEBUG "sr_photocd: multisession CD detected. start: %lu\n",sector); |
sector | 509 | drivers/scsi/sr.c | sector = 0; |
sector | 513 | drivers/scsi/sr.c | scsi_CDs[MINOR(inode->i_rdev)].mpcd_sector = sector; |
sector | 659 | drivers/scsi/sr.c | block = SCpnt->request.sector; |
sector | 734 | drivers/scsi/sr.c | this_count = SCpnt->request.sector % 4; |
sector | 767 | drivers/scsi/sr.c | if(SCpnt->request.sector % 4) { |
sector | 768 | drivers/scsi/sr.c | sgpnt[count].length = (SCpnt->request.sector % 4) << 9; |
sector | 818 | drivers/scsi/sr.c | printk("SR: %d %d %d %d %d *** ",SCpnt->use_sg, SCpnt->request.sector, |
sector | 125 | fs/affs/file.c | int left, offset, size, sector; |
sector | 148 | fs/affs/file.c | sector = affs_smap (inode, filp->f_pos >> AFFS_BLOCK_BITS); |
sector | 149 | fs/affs/file.c | if (!sector) |
sector | 152 | fs/affs/file.c | bh = affs_pread (inode, sector, &data); |
sector | 242 | fs/fat/cache.c | int fat_smap(struct inode *inode,int sector) |
sector | 250 | fs/fat/cache.c | if (sector >= sb->dir_entries >> MSDOS_DPS_BITS) return 0; |
sector | 251 | fs/fat/cache.c | return sector+sb->dir_start; |
sector | 253 | fs/fat/cache.c | cluster = sector/sb->cluster_size; |
sector | 254 | fs/fat/cache.c | offset = sector % sb->cluster_size; |
sector | 134 | fs/fat/file.c | int sector = fat_smap(inode,pre->file_sector); |
sector | 135 | fs/fat/file.c | if (sector != 0){ |
sector | 137 | fs/fat/file.c | PRINTK (("fsector2 %d -> %d\n",pre->file_sector-1,sector)); |
sector | 139 | fs/fat/file.c | bh = getblk(inode->i_dev,sector,SECTOR_SIZE); |
sector | 275 | fs/fat/file.c | int sector,offset,size,left,written; |
sector | 301 | fs/fat/file.c | while (!(sector = fat_smap(inode,filp->f_pos >> SECTOR_BITS))) |
sector | 316 | fs/fat/file.c | if (!(bh = getblk(inode->i_dev,sector,SECTOR_SIZE))){ |
sector | 320 | fs/fat/file.c | }else if (!(bh = bread(inode->i_dev,sector,SECTOR_SIZE))) { |
sector | 119 | fs/fat/misc.c | int count,nr,limit,last,curr,sector,last_sector,file_cluster; |
sector | 188 | fs/fat/misc.c | sector = MSDOS_SB(inode->i_sb)->data_start+(nr-2)*cluster_size; |
sector | 189 | fs/fat/misc.c | last_sector = sector + cluster_size; |
sector | 190 | fs/fat/misc.c | for ( ; sector < last_sector; sector++) { |
sector | 192 | fs/fat/misc.c | printk("zeroing sector %d\n",sector); |
sector | 194 | fs/fat/misc.c | if (!(bh = getblk(inode->i_dev,sector,SECTOR_SIZE))) |
sector | 287 | fs/fat/misc.c | int sector,offset; |
sector | 292 | fs/fat/misc.c | if ((sector = fat_smap(dir,offset >> SECTOR_BITS)) == -1) |
sector | 294 | fs/fat/misc.c | PRINTK (("get_entry sector %d %p\n",sector,*bh)); |
sector | 295 | fs/fat/misc.c | if (!sector) |
sector | 301 | fs/fat/misc.c | if (!(*bh = bread(dir->i_dev,sector,SECTOR_SIZE))) { |
sector | 302 | fs/fat/misc.c | printk("Directory sread (sector %d) failed\n",sector); |
sector | 308 | fs/fat/misc.c | return (sector << MSDOS_DPS_BITS)+((offset & (SECTOR_SIZE-1)) >> |
sector | 350 | fs/fat/misc.c | inode = iget(sb,sector*MSDOS_DPS+entry); \ |
sector | 366 | fs/fat/misc.c | static int raw_scan_sector(struct super_block *sb,int sector,const char *name, |
sector | 375 | fs/fat/misc.c | if (!(bh = bread(sb->s_dev,sector,SECTOR_SIZE))) return -EIO; |
sector | 394 | fs/fat/misc.c | if (ino) *ino = sector*MSDOS_DPS+entry; |
sector | 25 | include/linux/affs_fs.h | static inline struct buffer_head *affs_sread(int dev,int sector,void **start) |
sector | 30 | include/linux/affs_fs.h | bh = bread (dev, sector >> (BLOCK_SIZE_BITS - AFFS_BLOCK_BITS), 1024); |
sector | 34 | include/linux/affs_fs.h | *start = bh->b_data + ((sector & mask) << AFFS_BLOCK_BITS); |
sector | 42 | include/linux/affs_fs.h | int sector, void **start) |
sector | 45 | include/linux/affs_fs.h | return affs_sread (inode->i_dev, sector + offset, start); |
sector | 23 | include/linux/blk.h | (s1)->sector < (s2)->sector))) |
sector | 387 | include/linux/blk.h | kdevname(req->rq_dev), req->sector); |
sector | 390 | include/linux/blk.h | req->sector += (BLOCK_SIZE / 512); |
sector | 391 | include/linux/blk.h | req->sector &= ~SECTOR_MASK; |
sector | 26 | include/linux/blkdev.h | unsigned long sector; |
sector | 35 | include/linux/genhd.h | unsigned char sector; /* starting sector */ |
sector | 191 | include/linux/msdos_fs.h | extern int fat_smap(struct inode *inode,int sector); |
sector | 122 | include/linux/xd.h | static u_char *xd_build (u_char *cmdblk,u_char command,u_char drive,u_char head,u_short cylinder,u_char sector,u_char count,u_char control); |