/freebsd-current/tools/bus_space/ |
H A D | bus.h | 31 int bs_read(int rid, off_t ofs, void *buf, ssize_t bufsz); 33 int bs_unmap(int rid); 34 int bs_write(int rid, off_t ofs, void *buf, ssize_t bufsz);
|
H A D | bus.c | 42 int rid; member in struct:resource 57 int rid; local 59 for (rid = 0; rid < nrids; rid++) { 60 if (ridtbl[rid].fd == -1) 63 if (rid == nrids) { 72 ridtbl[rid].fd = INT_MAX; 73 return (rid); 77 rid_lookup(int rid) argument 99 int len, rid; local 130 bs_read(int rid, off_t ofs, void *buf, ssize_t bufsz) argument 178 int fd0, rid; local 211 bs_unmap(int rid) argument 228 bs_write(int rid, off_t ofs, void *buf, ssize_t bufsz) argument [all...] |
/freebsd-current/sys/x86/isa/ |
H A D | isa.c | 87 isa_alloc_resource(device_t bus, device_t child, int type, int *rid, argument 100 rle = resource_list_find(rl, type, *rid); 102 if (*rid < 0) 106 if (*rid >= ISA_NIRQ) 110 if (*rid >= ISA_NDRQ) 114 if (*rid >= ISA_NMEM) 118 if (*rid >= ISA_NPORT) 124 resource_list_add(rl, type, *rid, start, end, count); 128 return resource_list_alloc(rl, bus, child, type, rid,
|
H A D | orm.c | 65 int rid[MAX_ROMS]; member in struct:orm_softc 89 int rid; local 106 rid = sc->rnum; 107 res = bus_alloc_resource_any(child, SYS_RES_MEMORY, &rid, 129 bus_release_resource(child, SYS_RES_MEMORY, rid, res); 138 rid = sc->rnum; 139 res = bus_alloc_resource_any(child, SYS_RES_MEMORY, &rid, 0); 145 sc->rid[sc->rnum] = rid; 166 bus_release_resource(dev, SYS_RES_MEMORY, sc->rid[ [all...] |
/freebsd-current/tools/bus_space/C/ |
H A D | lang.c | 35 bus_read_1(int rid, long ofs) argument 39 return ((!bs_read(rid, ofs, &val, sizeof(val))) ? -1 : (int)val); 43 bus_read_2(int rid, long ofs) argument 47 return ((!bs_read(rid, ofs, &val, sizeof(val))) ? -1 : (int)val); 51 bus_read_4(int rid, long ofs) argument 55 return ((!bs_read(rid, ofs, &val, sizeof(val))) ? -1 : (int64_t)val); 59 bus_write_1(int rid, long ofs, uint8_t val) argument 62 return ((!bs_write(rid, ofs, &val, sizeof(val))) ? errno : 0); 66 bus_write_2(int rid, long ofs, uint16_t val) argument 69 return ((!bs_write(rid, of 73 bus_write_4(int rid, long ofs, uint32_t val) argument 87 bus_unmap(int rid) argument 94 bus_subregion(int rid, long ofs, long sz) argument [all...] |
H A D | libbus.h | 31 int16_t bus_read_1(int rid, long ofs); 32 int32_t bus_read_2(int rid, long ofs); 33 int64_t bus_read_4(int rid, long ofs); 34 int bus_subregion(int rid, long ofs, long sz); 35 int bus_unmap(int rid); 36 int bus_write_1(int rid, long ofs, uint8_t val); 37 int bus_write_2(int rid, long ofs, uint16_t val); 38 int bus_write_4(int rid, long ofs, uint32_t val);
|
/freebsd-current/sys/dev/proto/ |
H A D | proto_bus_isa.c | 67 int rid, type; local 69 rid = 0; 71 res = bus_alloc_resource_any(dev, type, &rid, RF_ACTIVE); 74 res = bus_alloc_resource_any(dev, type, &rid, RF_ACTIVE); 84 bus_release_resource(dev, type, rid, res); 93 int count, rid; local 97 for (rid = 0; rid < nrids; rid++) { 98 res = bus_alloc_resource_any(dev, type, &rid, RF_ACTIV [all...] |
H A D | proto_bus_pci.c | 85 int bar, rid, type; local 93 rid = PCIR_BAR(bar); 94 val = pci_read_config(dev, rid, 4); 96 res = bus_alloc_resource_any(dev, type, &rid, RF_ACTIVE); 99 proto_add_resource(sc, type, rid, res); 107 rid = 0; 109 res = bus_alloc_resource_any(dev, type, &rid, RF_ACTIVE | RF_SHAREABLE); 111 proto_add_resource(sc, type, rid, res);
|
/freebsd-current/sys/powerpc/mpc85xx/ |
H A D | isa.c | 47 isa_alloc_resource(device_t bus, device_t child, int type, int *rid, argument 58 resource_list_find(rl, type, *rid) == NULL) { 65 if (*rid < 0 || *rid >= rids) 68 resource_list_add(rl, type, *rid, start, end, count); 71 return (resource_list_alloc(rl, bus, child, type, rid, start, end,
|
/freebsd-current/sys/dev/bhnd/cores/pmu/ |
H A D | bhnd_pmu_core.c | 84 int rid; local 89 rid = 0; 90 res = bhnd_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE); 106 bhnd_release_resource(dev, SYS_RES_MEMORY, rid, res); 110 sc->rid = rid; 126 bhnd_release_resource(dev, SYS_RES_MEMORY, sc->rid, sc->res);
|
/freebsd-current/tools/bus_space/Python/ |
H A D | lang.c | 37 int rid; local 40 if (!PyArg_ParseTuple(args, "il", &rid, &ofs)) 42 if (!bs_read(rid, ofs, &val, sizeof(val))) { 53 int rid; local 56 if (!PyArg_ParseTuple(args, "il", &rid, &ofs)) 58 if (!bs_read(rid, ofs, &val, sizeof(val))) { 69 int rid; local 72 if (!PyArg_ParseTuple(args, "il", &rid, &ofs)) 74 if (!bs_read(rid, ofs, &val, sizeof(val))) { 85 int rid; local 101 int rid; local 117 int rid; local 133 int rid; local 148 int rid; local 163 int rid0, rid; local [all...] |
/freebsd-current/sys/dev/atkbdc/ |
H A D | atkbdc_isa.c | 53 int type, int *rid, rman_res_t start, rman_res_t end, 102 int rid; local 128 rid = 0; 129 if (bus_get_resource(dev, SYS_RES_IOPORT, rid, &start, &count) != 0) 136 bus_set_resource(dev, SYS_RES_IOPORT, rid, start, 1); 137 port0 = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE); 140 rid = 1; 141 if (bus_get_resource(dev, SYS_RES_IOPORT, rid, NULL, NULL) != 0) 144 port1 = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE); 192 int rid; local 296 atkbdc_isa_alloc_resource(device_t dev, device_t child, int type, int *rid, rman_res_t start, rman_res_t end, rman_res_t count, u_int flags) argument [all...] |
H A D | atkbd_atkbdc.c | 87 int rid; local 95 rid = KBDC_RID_KBD; 96 res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE); 103 bus_release_resource(dev, SYS_RES_IRQ, rid, res); 116 int rid; local 121 rid = KBDC_RID_KBD; 122 irq = bus_get_resource_start(dev, SYS_RES_IRQ, rid); 129 sc->intr = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE); 135 bus_release_resource(dev, SYS_RES_IRQ, rid, sc->intr);
|
/freebsd-current/sys/amd64/vmm/io/ |
H A D | iommu.h | 42 typedef void (*iommu_add_device_t)(void *domain, uint16_t rid); 43 typedef void (*iommu_remove_device_t)(void *dom, uint16_t rid); 71 void iommu_add_device(void *dom, uint16_t rid); 72 void iommu_remove_device(void *dom, uint16_t rid);
|
/freebsd-current/sys/dev/pci/ |
H A D | pcib_support.c | 75 pcib_decode_rid(device_t pcib, uint16_t rid, int *bus, int *slot, argument 79 *bus = PCI_RID2BUS(rid); 80 *slot = PCI_RID2SLOT(rid); 81 *func = PCI_RID2FUNC(rid);
|
/freebsd-current/sys/dev/cfe/ |
H A D | cfe_resource.c | 55 int rid[MAX_CFE_RESERVATIONS]; member in struct:cferes_softc 80 int rid; local 102 rid = sc->rnum; 103 res = bus_alloc_resource_any(child, SYS_RES_MEMORY, &rid, 0); 108 sc->rid[sc->rnum] = rid; 131 bus_release_resource(dev, SYS_RES_MEMORY, sc->rid[i],
|
/freebsd-current/sys/dev/ata/ |
H A D | ata-isa.c | 63 int rid; local 70 rid = ATA_IOADDR_RID; 71 if (!(io = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid, 82 rid = ATA_CTLADDR_RID; 83 if (!(ctlio = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid, 103 int i, rid; local 110 rid = ATA_IOADDR_RID; 111 if (!(io = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid, 122 rid = ATA_CTLADDR_RID; 123 if (!(ctlio = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid, [all...] |
/freebsd-current/usr.bin/usbhidctl/ |
H A D | usbhid.c | 204 printf("%s rid=%d pos=%d size=%d count=%d page=%s usage=%s%s%s", label, 304 int dlen, havedata, i, match, r, rid, use_rid; local 309 rid = -1; 313 if (++rid >= 256) { 314 rid = 0; 318 rid = -1; 320 if (rid == var->h.report_ID && 327 dlen = hid_report_size(rd, kind < 3 ? kind : hid_input, rid); 333 dbuf[0] = rid; 336 warn("hid_get_report(rid 381 int dlen, i, r, rid; local [all...] |
/freebsd-current/sys/arm64/iommu/ |
H A D | smmu_fdt.c | 84 int rid; local 91 rid = 0; 92 sc->res[0] = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, 105 &rid); 112 sc->res[1] = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE); 126 &rid); 133 sc->res[3] = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE); 141 &rid); 148 sc->res[4] = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE);
|
/freebsd-current/sys/cddl/compat/opensolaris/sys/ |
H A D | sid.h | 79 #define kidmap_getsidbyuid(zone, uid, sid_prefix, rid) (1) 80 #define kidmap_getsidbygid(zone, gid, sid_prefix, rid) (1)
|
/freebsd-current/sys/amd64/vmm/amd/ |
H A D | amdv.c | 98 amd_iommu_add_device(void *domain, uint16_t rid) argument 105 amd_iommu_remove_device(void *domain, uint16_t rid) argument
|
/freebsd-current/sys/dev/usb/controller/ |
H A D | dwc_otg_fdt.c | 81 dwc_otg_irq_index(device_t dev, int *rid) argument 90 *rid = idx; 100 int rid; local 120 rid = 0; 122 bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE); 136 if (dwc_otg_irq_index(dev, &rid) != 0) 137 rid = ofw_bus_is_compatible(dev, "brcm,bcm2708-usb") ? 1 : 0; 139 bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE);
|
/freebsd-current/sys/contrib/libsodium/packaging/dotnet-core/ |
H A D | prepare.py | 59 def __init__(self, version, rid, platform): 62 self.packfile = os.path.join(version.builddir, 'runtimes', rid, 'native', LIBRARY + '.dll') 64 self.tempdir = os.path.join(version.tempdir, rid) 83 def __init__(self, version, rid, codename): 86 self.packfile = os.path.join(version.builddir, 'runtimes', rid, 'native', LIBRARY + '.dylib') 88 self.tempdir = os.path.join(version.tempdir, rid) 107 def __init__(self, version, rid, docker_image): 110 self.packfile = os.path.join(version.builddir, 'runtimes', rid, 'native', LIBRARY + '.so') 111 self.tempdir = os.path.join(version.tempdir, rid) 114 self.recipe = rid [all...] |
/freebsd-current/sys/dev/ppc/ |
H A D | ppcvar.h | 31 int ppc_probe(device_t dev, int rid); 44 int *rid, rman_res_t start, rman_res_t end, rman_res_t count, u_int flags);
|
/freebsd-current/sys/x86/bios/ |
H A D | vpd.c | 74 int rid; member in struct:vpd_softc 134 int rid; local 141 rid = 0; 146 bus_set_resource(child, SYS_RES_MEMORY, rid, addr, length); 157 int rid; local 161 rid = 0; 162 res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE); 174 bus_release_resource(dev, SYS_RES_MEMORY, rid, res); 189 sc->rid = 0; 190 sc->res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &sc->rid, [all...] |