/freebsd-11-stable/sys/dev/iir/ |
H A D | iir_pci.c | 185 struct gdt_softc *gdt; local 191 gdt = device_get_softc(dev); 192 mtx_init(&gdt->sc_lock, "iir", NULL, MTX_DEF); 196 gdt->sc_dpmem = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE); 197 if (gdt->sc_dpmem == NULL) { 213 gdt->sc_devnode = dev; 214 gdt->sc_init_level = 0; 215 gdt->sc_hanum = device_get_unit(dev); 216 gdt->sc_bus = pci_get_bus(dev); 217 gdt 353 gdt_pci_enable_intr(struct gdt_softc *gdt) argument 372 gdt_mpr_copy_cmd(struct gdt_softc *gdt, struct gdt_ccb *gccb) argument 393 gdt_mpr_get_status(struct gdt_softc *gdt) argument 401 gdt_mpr_intr(struct gdt_softc *gdt, struct gdt_intr_ctx *ctx) argument 436 gdt_mpr_release_event(struct gdt_softc *gdt) argument 444 gdt_mpr_set_sema0(struct gdt_softc *gdt) argument 452 gdt_mpr_test_busy(struct gdt_softc *gdt) argument [all...] |
H A D | iir.c | 150 static int iir_intr_locked(struct gdt_softc *gdt); 157 static int gdt_internal_cmd(struct gdt_softc *gdt, struct gdt_ccb *gccb, 160 static int gdt_wait(struct gdt_softc *gdt, struct gdt_ccb *ccb, 163 static struct gdt_ccb *gdt_get_ccb(struct gdt_softc *gdt); 165 static int gdt_sync_event(struct gdt_softc *gdt, int service, 167 static int gdt_async_event(struct gdt_softc *gdt, int service); 168 static struct gdt_ccb *gdt_raw_cmd(struct gdt_softc *gdt, 170 static struct gdt_ccb *gdt_cache_cmd(struct gdt_softc *gdt, 172 static struct gdt_ccb *gdt_ioctl_cmd(struct gdt_softc *gdt, 174 static void gdt_internal_cache_cmd(struct gdt_softc *gdt, unio 182 iir_init(struct gdt_softc *gdt) argument 461 iir_free(struct gdt_softc *gdt) argument 493 iir_attach(struct gdt_softc *gdt) argument 563 gdt_wait(struct gdt_softc *gdt, struct gdt_ccb *gccb, int timeout) argument 588 gdt_internal_cmd(struct gdt_softc *gdt, struct gdt_ccb *gccb, u_int8_t service, u_int16_t opcode, u_int32_t arg1, u_int32_t arg2, u_int32_t arg3) argument 654 gdt_get_ccb(struct gdt_softc *gdt) argument 673 gdt_free_ccb(struct gdt_softc *gdt, struct gdt_ccb *gccb) argument 688 gdt_next(struct gdt_softc *gdt) argument 796 gdt_raw_cmd(struct gdt_softc *gdt, union ccb *ccb) argument 864 gdt_cache_cmd(struct gdt_softc *gdt, union ccb *ccb) argument 934 gdt_ioctl_cmd(struct gdt_softc *gdt, gdt_ucmd_t *ucmd) argument 1070 gdt_internal_cache_cmd(struct gdt_softc *gdt,union ccb *ccb) argument 1179 struct gdt_softc *gdt; local 1248 struct gdt_softc *gdt; local 1397 struct gdt_softc *gdt; local 1413 struct gdt_softc *gdt; local 1463 struct gdt_softc *gdt = arg; local 1471 iir_intr_locked(struct gdt_softc *gdt) argument 1576 gdt_async_event(struct gdt_softc *gdt, int service) argument 1634 gdt_sync_event(struct gdt_softc *gdt, int service, u_int8_t index, struct gdt_ccb *gccb) argument [all...] |
H A D | iir_ctrl.c | 94 gdt_make_dev(struct gdt_softc *gdt) argument 101 dev->si_drv1 = gdt; 196 struct gdt_softc *gdt; local 199 gdt = gdt_minor2softc(dev, ucmd->io_node); 200 if (gdt == NULL) 202 mtx_lock(&gdt->sc_lock); 203 TAILQ_INSERT_TAIL(&gdt->sc_ucmd_queue, ucmd, links); 205 gdt_next(gdt); 207 (void) mtx_sleep(ucmd, &gdt->sc_lock, PCATCH | PRIBIO, "iirucw", 209 mtx_unlock(&gdt 223 struct gdt_softc *gdt; local [all...] |
H A D | iir.h | 600 #define GDT_CLASS(gdt) ((gdt)->sc_class & GDT_CLASS_MASK) 741 struct cdev *gdt_make_dev(struct gdt_softc *gdt); 743 void gdt_next(struct gdt_softc *gdt); 744 void gdt_free_ccb(struct gdt_softc *gdt, struct gdt_ccb *gccb);
|
/freebsd-11-stable/sys/amd64/amd64/ |
H A D | mpboot.S | 50 * Find relocation base and patch the gdt descript and ljmp targets 72 * %cs to be loaded from the gdt. 75 * ljmpl $bootcode-gdt, $protmode-mptramp_start 83 .word bootcode-gdt /* index in gdt for 32 bit code */ 90 mov $bootdata-gdt, %eax 140 * ljmp $kernelcode-gdt, $tramp_64-mptramp_start 147 .word kernelcode-gdt /* index in gdt for 64 bit code */ 164 gdt label [all...] |
H A D | mp_machdep.c | 242 ssdtosd(&gdt_segs[x], &gdt[NGDT * cpu + x]); 245 (struct system_segment_descriptor *)&gdt[NGDT * cpu + GPROC0_SEL]); 246 ap_gdt.rd_limit = NGDT * sizeof(gdt[0]) - 1; 247 ap_gdt.rd_base = (long) &gdt[NGDT * cpu]; 264 pc->pc_tss = (struct system_segment_descriptor *)&gdt[NGDT * cpu + 266 pc->pc_fs32p = &gdt[NGDT * cpu + GUFS32_SEL]; 267 pc->pc_gs32p = &gdt[NGDT * cpu + GUGS32_SEL]; 268 pc->pc_ldt = (struct system_segment_descriptor *)&gdt[NGDT * cpu +
|
H A D | machdep.c | 678 struct user_segment_descriptor gdt[NGDT * MAXCPU];/* global descriptor tables */ variable in typeref:struct:user_segment_descriptor 1611 * make gdt memory segments 1616 ssdtosd(&gdt_segs[x], &gdt[x]); 1620 (struct system_segment_descriptor *)&gdt[GPROC0_SEL]); 1622 r_gdt.rd_limit = NGDT * sizeof(gdt[0]) - 1; 1623 r_gdt.rd_base = (long) gdt; 1639 PCPU_SET(tss, (struct system_segment_descriptor *)&gdt[GPROC0_SEL]); 1640 PCPU_SET(ldt, (struct system_segment_descriptor *)&gdt[GUSERLDT_SEL]); 1641 PCPU_SET(fs32p, &gdt[GUFS32_SEL]); 1642 PCPU_SET(gs32p, &gdt[GUGS32_SE [all...] |
/freebsd-11-stable/stand/i386/libi386/ |
H A D | amd64_tramp.S | 58 .word gdtend - gdt 59 .long VTOP(gdt) # low 62 gdt: label
|
H A D | relocater_tramp.S | 76 /* set up gdt */ 77 lea (gdt-relocater) (%esi), %eax 80 /* load gdt */ 325 gdt: .word 0x0, 0x0 /* null entry */ label 335 gdt.1: 337 gdtdesc: .word gdt.1 - gdt - 1 /* limit */
|
/freebsd-11-stable/sys/amd64/vmm/ |
H A D | vmm_host.h | 70 return ((uint64_t)&gdt[NGDT * curcpu]);
|
/freebsd-11-stable/sys/i386/include/ |
H A D | segments.h | 66 * region descriptors, used to load gdt/idt tables before segments yet exist. 85 extern union descriptor gdt[];
|
/freebsd-11-stable/stand/i386/pxeldr/ |
H A D | pxeldr.S | 148 lgdt gdtdesc # setup our own gdt 282 gdt: .word 0x0,0x0,0x0,0x0 # Null entry label 287 gdt.1: 291 gdtdesc: .word gdt.1-gdt-1 # Limit 292 .long gdt # Base
|
/freebsd-11-stable/sys/amd64/include/ |
H A D | segments.h | 82 * region descriptors, used to load gdt/idt tables before segments yet exist. 90 extern struct user_segment_descriptor gdt[];
|
/freebsd-11-stable/lib/libvmmapi/ |
H A D | vmmapi_freebsd.c | 78 struct segment_descriptor *gdt; local 103 gdt = vm_map_gpa(vmctx, gdtbase, 0x1000); 104 if (gdt == NULL) 106 memcpy(gdt, i386_gdt, sizeof(i386_gdt)); 116 gdt[3].sd_lobase = tssbase;
|
/freebsd-11-stable/sys/i386/i386/ |
H A D | mp_machdep.c | 252 ssdtosd(&gdt_segs[x], &gdt[myid * NGDT + x].sd); 255 r_gdt.rd_limit = NGDT * sizeof(gdt[0]) - 1; 256 r_gdt.rd_base = (int) &gdt[myid * NGDT]; 265 gdt[myid * NGDT + GPROC0_SEL].sd.sd_type = SDT_SYS386TSS; 269 PCPU_SET(tss_gdt, &gdt[myid * NGDT + GPROC0_SEL].sd); 273 PCPU_SET(fsgs_gdt, &gdt[myid * NGDT + GUFS_SEL].sd);
|
H A D | db_interface.c | 157 sdp = &gdt[PCPU_GET(cpuid) * NGDT].sd;
|
H A D | bios.c | 269 p_gdt = &gdt[PCPU_GET(cpuid) * NGDT]; 271 p_gdt = gdt;
|
H A D | machdep.c | 1254 union descriptor gdt[NGDT * MAXCPU]; /* global descriptor table */ variable in typeref:union:descriptor 2506 * Make gdt memory segments. All segments cover the full 4GB 2522 ssdtosd(&gdt_segs[x], &gdt[x].sd); 2524 r_gdt.rd_limit = NGDT * sizeof(gdt[0]) - 1; 2525 r_gdt.rd_base = (int) gdt; 2652 PCPU_SET(fsgs_gdt, &gdt[GUFS_SEL].sd); 2676 PCPU_SET(tss_gdt, &gdt[GPROC0_SEL].sd); 2753 gdt[GPROC0_SEL].sd.sd_type = SDT_SYS386TSS; /* clear busy bit */
|
H A D | sys_machdep.c | 419 gdt[gdt_idx].sd = pldt->ldt_sd;
|
/freebsd-11-stable/stand/i386/cdboot/ |
H A D | cdboot.S | 214 lgdt gdtdesc # setup our own gdt 544 gdt: .word 0x0,0x0,0x0,0x0 # Null entry label 549 gdt.1: 553 gdtdesc: .word gdt.1-gdt-1 # Limit 554 .long gdt # Base
|
/freebsd-11-stable/sys/compat/ndis/ |
H A D | kern_windrv.c | 811 struct gdt { struct 821 extern void x86_getldt(struct gdt *, uint16_t *); 822 extern void x86_setldt(struct gdt *, uint16_t); 1086 struct x86desc *gdt; local 1087 struct gdt gtable; 1098 gdt = gtable.base; 1099 gdt += FREEBSD_EMPTYSEL; 1103 bzero((char *)gdt, sizeof(struct x86desc)); 1116 struct gdt gtable;
|
/freebsd-11-stable/stand/efi/loader/arch/amd64/ |
H A D | trap.c | 132 * corruption of that gdt entry. On the other hand, allocating 133 * our own descriptor might be not much better, if gdt is corrupted. 173 efi_setup_tss(struct region_descriptor *gdt, uint32_t loader_tss_idx, argument 179 tss_desc = (struct system_segment_descriptor *)(gdt->rd_base + 258 "in gdt are used\n"); 273 printf("efi_setup_tss: AllocatePages gdt error "
|
/freebsd-11-stable/stand/pc98/cdboot/ |
H A D | cdboot.S | 459 lgdt gdtdesc # setup our own gdt 753 gdt: .word 0x0,0x0,0x0,0x0 # Null entry label 758 gdt.1: 762 gdtdesc: .word gdt.1-gdt-1 # Limit 763 .long LOAD_SEG<<4 + gdt # Base
|
/freebsd-11-stable/sys/amd64/vmm/amd/ |
H A D | vmcb.c | 92 seg = &state->gdt;
|
H A D | vmcb.h | 291 struct vmcb_segment gdt; member in struct:vmcb_state
|