tag | line | file | source code |
segment | 114 | arch/i386/kernel/bios32.c | unsigned short segment; |
segment | 154 | arch/i386/kernel/bios32.c | unsigned short segment; |
segment | 105 | arch/i386/math-emu/fpu_emu.h | typedef struct { unsigned char address_size, operand_size, segment; } |
segment | 624 | arch/i386/math-emu/fpu_entry.c | override->segment = PREFIX_CS_; |
segment | 627 | arch/i386/math-emu/fpu_entry.c | override->segment = PREFIX_ES_; |
segment | 630 | arch/i386/math-emu/fpu_entry.c | override->segment = PREFIX_SS_; |
segment | 633 | arch/i386/math-emu/fpu_entry.c | override->segment = PREFIX_FS_; |
segment | 636 | arch/i386/math-emu/fpu_entry.c | override->segment = PREFIX_GS_; |
segment | 639 | arch/i386/math-emu/fpu_entry.c | override->segment = PREFIX_DS_; |
segment | 128 | arch/i386/math-emu/get_address.c | static unsigned long vm86_segment(unsigned char segment, |
segment | 131 | arch/i386/math-emu/get_address.c | segment--; |
segment | 133 | arch/i386/math-emu/get_address.c | if ( segment > PREFIX_SS_ ) |
segment | 139 | arch/i386/math-emu/get_address.c | *selector = VM86_REG_(segment); |
segment | 140 | arch/i386/math-emu/get_address.c | return (unsigned long)VM86_REG_(segment) << 4; |
segment | 145 | arch/i386/math-emu/get_address.c | static long pm_address(unsigned char FPU_modrm, unsigned char segment, |
segment | 151 | arch/i386/math-emu/get_address.c | segment--; |
segment | 153 | arch/i386/math-emu/get_address.c | if ( segment > PREFIX_SS_ ) |
segment | 160 | arch/i386/math-emu/get_address.c | *selector = PM_REG_(segment); |
segment | 162 | arch/i386/math-emu/get_address.c | descriptor = LDT_DESCRIPTOR(PM_REG_(segment)); |
segment | 227 | arch/i386/math-emu/get_address.c | && (addr_modes.override.segment == PREFIX_CS_) ) |
segment | 294 | arch/i386/math-emu/get_address.c | address += vm86_segment(addr_modes.override.segment, |
segment | 299 | arch/i386/math-emu/get_address.c | address = pm_address(FPU_modrm, addr_modes.override.segment, |
segment | 322 | arch/i386/math-emu/get_address.c | && (addr_modes.override.segment == PREFIX_CS_) ) |
segment | 376 | arch/i386/math-emu/get_address.c | if ( addr_modes.override.segment == PREFIX_DEFAULT ) |
segment | 377 | arch/i386/math-emu/get_address.c | addr_modes.override.segment = PREFIX_SS_; |
segment | 381 | arch/i386/math-emu/get_address.c | if ( addr_modes.override.segment == PREFIX_DEFAULT ) |
segment | 382 | arch/i386/math-emu/get_address.c | addr_modes.override.segment = PREFIX_SS_; |
segment | 392 | arch/i386/math-emu/get_address.c | if ( addr_modes.override.segment == PREFIX_DEFAULT ) |
segment | 393 | arch/i386/math-emu/get_address.c | addr_modes.override.segment = PREFIX_SS_; |
segment | 410 | arch/i386/math-emu/get_address.c | address += vm86_segment(addr_modes.override.segment, |
segment | 415 | arch/i386/math-emu/get_address.c | address = pm_address(FPU_modrm, addr_modes.override.segment, |
segment | 558 | arch/ppc/mm/init.c | int hash, page_index, segment, i, h, _h, api, vsid, perms; |
segment | 573 | arch/ppc/mm/init.c | segment = (unsigned int)va >> 28; |
segment | 575 | arch/ppc/mm/init.c | vsid = ((SEGREG *)tss->segs)[segment].vsid; |
segment | 16 | arch/sparc/prom/segment.c | prom_putsegment(int ctx, unsigned long vaddr, int segment) |
segment | 18 | arch/sparc/prom/segment.c | (*(romvec->pv_setctxt))(ctx, (char *) vaddr, segment); |
segment | 316 | drivers/char/apm_bios.c | unsigned short segment; |
segment | 1079 | drivers/char/apm_bios.c | apm_bios_entry.segment = APM_CS; |
segment | 315 | drivers/char/ftape/fdc-isr.c | static void pause_tape(unsigned segment, int retry, int fdc_mode) |
segment | 351 | drivers/char/ftape/fdc-isr.c | static void stop_tape(unsigned segment) |
segment | 271 | drivers/char/ftape/ftape-bsm.c | int segment; |
segment | 276 | drivers/char/ftape/ftape-bsm.c | segment = cvt2segment(sector); |
segment | 277 | drivers/char/ftape/ftape-bsm.c | } while (sector != 0 && segment < segment_id); |
segment | 281 | drivers/char/ftape/ftape-bsm.c | if (format_code == 4 && (sector & 0x800000) && segment == segment_id) { |
segment | 287 | drivers/char/ftape/ftape-bsm.c | while (sector != 0 && segment == segment_id) { |
segment | 290 | drivers/char/ftape/ftape-bsm.c | segment = cvt2segment(sector); |
segment | 301 | drivers/char/ftape/ftape-bsm.c | int segment; |
segment | 308 | drivers/char/ftape/ftape-bsm.c | segment = cvt2segment(sector); |
segment | 309 | drivers/char/ftape/ftape-bsm.c | } while (*ptr > bad_sector_map && segment > segment_id); |
segment | 311 | drivers/char/ftape/ftape-bsm.c | if (segment > segment_id) { |
segment | 313 | drivers/char/ftape/ftape-bsm.c | } else if (segment < segment_id) { |
segment | 329 | drivers/char/ftape/ftape-bsm.c | segment = cvt2segment(sector); |
segment | 330 | drivers/char/ftape/ftape-bsm.c | } while (segment == segment_id); |
segment | 331 | drivers/char/ftape/ftape-bsm.c | if (segment < segment_id) { |
segment | 57 | drivers/char/ftape/ftape-bsm.h | extern void add_segment_to_bad_sector_map(unsigned segment); |
segment | 50 | drivers/char/ftape/ftape-eof.c | unsigned short segment; |
segment | 161 | drivers/char/ftape/ftape-eof.c | int check_for_eof(unsigned segment) |
segment | 167 | drivers/char/ftape/ftape-eof.c | if (segment < last_reference) { |
segment | 170 | drivers/char/ftape/ftape-eof.c | last_reference = segment; |
segment | 171 | drivers/char/ftape/ftape-eof.c | while (eof_index < nr_of_eof_marks && segment > eof_mark_ptr->segment) { |
segment | 175 | drivers/char/ftape/ftape-eof.c | if (eof_index < nr_of_eof_marks && segment == eof_mark_ptr->segment) { |
segment | 177 | drivers/char/ftape/ftape-eof.c | eof_map[eof_index].mark.segment, eof_map[eof_index].mark.sector, |
segment | 181 | drivers/char/ftape/ftape-eof.c | eof_mark_ptr->segment, eof_mark_ptr->sector); |
segment | 193 | drivers/char/ftape/ftape-eof.c | void clear_eof_mark_if_set(unsigned segment, unsigned byte_count) |
segment | 197 | drivers/char/ftape/ftape-eof.c | check_for_eof(segment) > 0 && |
segment | 200 | drivers/char/ftape/ftape-eof.c | eof_mark_ptr->segment, eof_mark_ptr->sector, eof_index); |
segment | 209 | drivers/char/ftape/ftape-eof.c | void put_file_mark_in_map(unsigned segment, unsigned sector) |
segment | 217 | drivers/char/ftape/ftape-eof.c | new.mark.segment = segment; |
segment | 220 | drivers/char/ftape/ftape-eof.c | index < nr_of_eof_marks && ptr->mark.segment < segment; |
segment | 224 | drivers/char/ftape/ftape-eof.c | if (ptr->mark.segment == segment) { |
segment | 228 | drivers/char/ftape/ftape-eof.c | new.mark.segment, new.mark.sector); |
segment | 231 | drivers/char/ftape/ftape-eof.c | ptr->mark.segment, ptr->mark.sector, index, |
segment | 232 | drivers/char/ftape/ftape-eof.c | new.mark.segment, new.mark.sector); |
segment | 239 | drivers/char/ftape/ftape-eof.c | new.mark.segment, new.mark.sector, index, |
segment | 240 | drivers/char/ftape/ftape-eof.c | ptr->mark.segment, ptr->mark.sector); |
segment | 249 | drivers/char/ftape/ftape-eof.c | new.mark.segment, new.mark.sector, index); |
segment | 262 | drivers/char/ftape/ftape-eof.c | int ftape_weof(unsigned count, unsigned segment, unsigned sector) |
segment | 266 | drivers/char/ftape/ftape-eof.c | unsigned long mask = get_bad_sector_entry(segment); |
segment | 271 | drivers/char/ftape/ftape-eof.c | segment + count >= ftape_last_segment.id) { |
segment | 272 | drivers/char/ftape/ftape-eof.c | TRACEx3(5, "parameter out of range: %d, %d, %d", count, segment, sector); |
segment | 283 | drivers/char/ftape/ftape-eof.c | if (++segment >= ftape_last_segment.id) { |
segment | 284 | drivers/char/ftape/ftape-eof.c | TRACEx1(5, "segment out of range: %d", segment); |
segment | 288 | drivers/char/ftape/ftape-eof.c | mask = get_bad_sector_entry(segment); |
segment | 296 | drivers/char/ftape/ftape-eof.c | TRACEx2(5, "writing filemark %d/%d", segment, sector_nr); |
segment | 297 | drivers/char/ftape/ftape-eof.c | put_file_mark_in_map(segment, sector_nr); |
segment | 298 | drivers/char/ftape/ftape-eof.c | ++segment; /* next segment */ |
segment | 336 | drivers/char/ftape/ftape-eof.c | unsigned failing_segment = eof_map[i].mark.segment; |
segment | 400 | drivers/char/ftape/ftape-eof.c | unsigned short tmp = eof_map[i].mark.segment; |
segment | 401 | drivers/char/ftape/ftape-eof.c | eof_map[i].mark.segment = eof_map[i].mark.sector; |
segment | 407 | drivers/char/ftape/ftape-eof.c | eof_map[i].mark.segment, eof_map[i].mark.sector); |
segment | 469 | drivers/char/ftape/ftape-eof.c | if (eof_mark_ptr->segment == (eof_mark_ptr - 1)->segment + 1) { |
segment | 470 | drivers/char/ftape/ftape-eof.c | eom = eof_mark_ptr->segment; |
segment | 503 | drivers/char/ftape/ftape-eof.c | ftape_seg_pos <= eof_map[eof_index].mark.segment) { |
segment | 518 | drivers/char/ftape/ftape-eof.c | ftape_seg_pos = eof_map[eof_index - 1].mark.segment + 1; |
segment | 550 | drivers/char/ftape/ftape-eof.c | eof_map[i].mark.segment, eof_map[i].mark.sector); |
segment | 42 | drivers/char/ftape/ftape-eof.h | extern void clear_eof_mark_if_set(unsigned segment, unsigned byte_count); |
segment | 44 | drivers/char/ftape/ftape-eof.h | extern int check_for_eof(unsigned segment); |
segment | 45 | drivers/char/ftape/ftape-eof.h | extern int ftape_weof(unsigned count, unsigned segment, unsigned sector); |
segment | 47 | drivers/char/ftape/ftape-eof.h | extern void put_file_mark_in_map(unsigned segment, unsigned sector); |
segment | 41 | drivers/char/ftape/ftape-read.h | extern int read_segment(unsigned segment, byte * address, int *eof_mark, |
segment | 81 | drivers/char/ftape/ftape-rw.c | int valid_segment_no(unsigned segment) |
segment | 83 | drivers/char/ftape/ftape-rw.c | return (segment >= first_data_segment && segment <= ftape_last_segment.id); |
segment | 248 | drivers/char/ftape/ftape-rw.c | location.segment = (location.track + |
segment | 253 | drivers/char/ftape/ftape-rw.c | TRACEx1(5, "segment = %d", location.segment); |
segment | 301 | drivers/char/ftape/ftape-rw.c | location.segment = (segments_per_head * fdc_head |
segment | 331 | drivers/char/ftape/ftape-rw.c | TRACEx2(5, "passing segment %d/%d", location.segment, location.sector); |
segment | 333 | drivers/char/ftape/ftape-rw.c | TRACEx2(6, "passing segment %d/%d", location.segment, location.sector); |
segment | 566 | drivers/char/ftape/ftape-rw.c | int prev_segment = location.segment; |
segment | 568 | drivers/char/ftape/ftape-rw.c | TRACEx4(4, "from %d/%d to %d/0 - %d", location.segment, |
segment | 570 | drivers/char/ftape/ftape-rw.c | count = target - location.segment - overshoot; |
segment | 580 | drivers/char/ftape/ftape-rw.c | while (location.segment < segment_id) { |
segment | 597 | drivers/char/ftape/ftape-rw.c | TRACEx4(4, "ended at %d/%d (%d,%d)", location.segment, |
segment | 600 | drivers/char/ftape/ftape-rw.c | (location.segment < expected || |
segment | 601 | drivers/char/ftape/ftape-rw.c | location.segment > expected + margin)) { |
segment | 602 | drivers/char/ftape/ftape-rw.c | int error = location.segment - expected; |
segment | 621 | drivers/char/ftape/ftape-rw.c | if (location.segment > prev_segment + 1) { |
segment | 624 | drivers/char/ftape/ftape-rw.c | prev_segment = location.segment; |
segment | 627 | drivers/char/ftape/ftape-rw.c | if (location.segment > segment_id) { |
segment | 629 | drivers/char/ftape/ftape-rw.c | location.segment, location.sector); |
segment | 661 | drivers/char/ftape/ftape-rw.c | location.segment, location.sector, segment_id, margin); |
segment | 670 | drivers/char/ftape/ftape-rw.c | if (location.segment - target - (min_rewind - 1) < 1) { |
segment | 673 | drivers/char/ftape/ftape-rw.c | count = location.segment - target - overshoot; |
segment | 678 | drivers/char/ftape/ftape-rw.c | expected = location.segment - min_rewind; |
segment | 689 | drivers/char/ftape/ftape-rw.c | TRACEx5(4, "ended at %d/%d (%d,%d,%d)", location.segment, |
segment | 692 | drivers/char/ftape/ftape-rw.c | (location.segment < expected || |
segment | 693 | drivers/char/ftape/ftape-rw.c | location.segment > expected + margin)) { |
segment | 694 | drivers/char/ftape/ftape-rw.c | int error = expected - location.segment; |
segment | 732 | drivers/char/ftape/ftape-rw.c | } while (location.segment > segment_id && |
segment | 735 | drivers/char/ftape/ftape-rw.c | TRACEx2(4, "current location: %d/%d", location.segment, location.sector); |
segment | 833 | drivers/char/ftape/ftape-rw.c | TRACEx1(5, "tape is positioned at segment %d", location.segment); |
segment | 889 | drivers/char/ftape/ftape-rw.c | if (location.known && location.segment >= segment_id - |
segment | 927 | drivers/char/ftape/ftape-rw.c | TRACEx2(4, "current segment: %d/%d", location.segment, location.sector); |
segment | 933 | drivers/char/ftape/ftape-rw.c | if (location.segment < segment_id - |
segment | 942 | drivers/char/ftape/ftape-rw.c | location.segment != segment_id - (sector_offset > 0 ? 0 : 1)) { |
segment | 130 | drivers/char/ftape/ftape-rw.h | volatile int segment; /* current segment */ |
segment | 158 | drivers/char/ftape/ftape-rw.h | extern int valid_segment_no(unsigned segment); |
segment | 345 | drivers/char/ftape/ftape-write.c | int update_header_segment(unsigned segment, byte * buffer) |
segment | 367 | drivers/char/ftape/ftape-write.c | result = _write_segment(segment, buffer, 0); |
segment | 380 | drivers/char/ftape/ftape-write.c | result = read_segment(segment, scratch_buffer, &status, 0); |
segment | 43 | drivers/char/ftape/ftape-write.h | extern int write_segment(unsigned segment, byte * address, int flushing); |
segment | 212 | drivers/net/ibmtr.c | unsigned char segment=0, intr=0, irq=0, i=0, j=0, cardpresent=NOTOK,temp=0; |
segment | 248 | drivers/net/ibmtr.c | segment = inb(PIOaddr); |
segment | 250 | drivers/net/ibmtr.c | if (segment < 0x40 || segment > 0xe0) { |
segment | 257 | drivers/net/ibmtr.c | t_mmio=(((__u32)(segment & 0xfc) << 11) + 0x80000); |
segment | 258 | drivers/net/ibmtr.c | intr = segment & 0x03; /* low bits is coded interrupt # */ |
segment | 260 | drivers/net/ibmtr.c | DPRINTK("PIOaddr: %4hx seg/intr: %2x mmio base: %08X intr: %d\n", PIOaddr, (int)segment, t_mmio, (int)intr); |
segment | 377 | drivers/net/ibmtr.c | printk(", segment=%02X",segment); |
segment | 5699 | drivers/scsi/53c7,8xx.c | struct scatterlist *segment; |
segment | 5719 | drivers/scsi/53c7,8xx.c | segment = (struct scatterlist *) cmd->buffer; |
segment | 5720 | drivers/scsi/53c7,8xx.c | buffers && !((found = ((ptr >= segment->address) && |
segment | 5721 | drivers/scsi/53c7,8xx.c | (ptr < (segment->address + segment->length))))); |
segment | 5722 | drivers/scsi/53c7,8xx.c | --buffers, offset += segment->length, ++segment) |
segment | 5725 | drivers/scsi/53c7,8xx.c | cmd->host->host_no, saved, segment->address); |
segment | 5729 | drivers/scsi/53c7,8xx.c | offset += ptr - segment->address; |
segment | 167 | include/asm-i386/system.h | static inline unsigned long get_limit(unsigned long segment) |
segment | 171 | include/asm-i386/system.h | :"=r" (__limit):"r" (segment)); |