Searched refs:res (Results 251 - 275 of 2025) sorted by relevance

<<11121314151617181920>>

/freebsd-11-stable/contrib/ntp/sntp/libopts/
H A Dcook.c66 unsigned int res = 1; local
74 res++;
78 return res;
135 return res;
/freebsd-11-stable/sys/x86/bios/
H A Dsmbios.c56 struct resource * res; member in struct:smbios_softc
62 #define RES2EPS(res) ((struct smbios_eps *)rman_get_virtual(res))
117 struct resource *res; local
123 res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE);
124 if (res == NULL) {
130 if (smbios_cksum(RES2EPS(res))) {
137 if (res)
138 bus_release_resource(dev, SYS_RES_MEMORY, rid, res);
153 sc->res
[all...]
H A Dvpd.c73 struct resource * res; member in struct:vpd_softc
93 #define RES2VPD(res) ((struct vpd *)rman_get_virtual(res))
143 struct resource *res; local
149 res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE);
150 if (res == NULL) {
156 if (vpd_cksum(RES2VPD(res)))
160 if (res)
161 bus_release_resource(dev, SYS_RES_MEMORY, rid, res);
177 sc->res
[all...]
/freebsd-11-stable/tools/bus_space/
H A Dbus.h32 int bs_map(const char *dev, const char *res);
/freebsd-11-stable/sys/i386/bios/
H A Dsmapi.c58 #define RES2HDR(res) ((struct smapi_bios_header *)rman_get_virtual(res))
64 struct resource * res; member in struct:smapi_softc
177 struct resource *res; local
183 res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE);
184 if (res == NULL) {
190 if (smapi_header_cksum(RES2HDR(res))) {
197 if (res)
198 bus_release_resource(dev, SYS_RES_MEMORY, rid, res);
213 sc->res
[all...]
/freebsd-11-stable/sys/dev/snc/
H A Dif_snc.c73 struct resource *res; local
75 res = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid,
77 if (res) {
78 sc->ioport = res;
80 sc->sc_iot = rman_get_bustag(res);
81 sc->sc_ioh = rman_get_bushandle(res);
96 struct resource *res; local
98 res = bus_alloc_resource_anywhere(dev, SYS_RES_MEMORY, &rid,
100 if (res) {
101 sc->iomem = res;
119 struct resource *res; local
[all...]
/freebsd-11-stable/sys/dev/joy/
H A Djoyvar.h36 struct resource *res; member in struct:joy_softc
/freebsd-11-stable/usr.sbin/fmtree/test/
H A Dtest05.sh16 res=$?
18 if [ $res -ne 0 ] ; then
/freebsd-11-stable/usr.sbin/timed/timed/
H A Dmeasure.c293 mstotvround(struct timeval *res, long x) argument
300 res->tv_sec = x/1000;
301 res->tv_usec = (x-res->tv_sec*1000)*1000;
302 if (res->tv_usec < 0) {
303 res->tv_usec += 1000000;
304 res->tv_sec--;
324 timevalsub(struct timeval *res, struct timeval *tv1, struct timeval *tv2) argument
326 res->tv_sec = tv1->tv_sec - tv2->tv_sec;
327 res
[all...]
/freebsd-11-stable/contrib/wpa/src/utils/
H A Dedit_simple.c30 int res; local
32 res = read(sock, buf, 1);
33 if (res < 0)
35 if (res <= 0) {
/freebsd-11-stable/sys/dev/gpio/
H A Dgpioc.c124 int max_pin, res; local
138 res = GPIO_PIN_MAX(sc->sc_pdev, &max_pin);
144 res = GPIO_PIN_GETFLAGS(sc->sc_pdev, pin.gp_pin,
147 if (res)
156 res = GPIO_PIN_GETCAPS(sc->sc_pdev, pin.gp_pin, &caps);
157 if (res == 0)
158 res = gpio_check_flags(caps, pin.gp_flags);
159 if (res == 0)
160 res = GPIO_PIN_SETFLAGS(sc->sc_pdev, pin.gp_pin,
165 res
[all...]
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_interceptors_netbsd_compat.inc40 int res = REAL(statvfs)(path, buf);
41 if (!res) COMMON_INTERCEPTOR_WRITE_RANGE(ctx, buf, struct_statvfs90_sz);
42 return res;
52 int res = REAL(fstatvfs)(fd, buf);
53 if (!res) {
58 return res;
103 int res = REAL(statvfs1)(path, buf, flags);
104 if (!res) COMMON_INTERCEPTOR_WRITE_RANGE(ctx, buf, struct_statvfs90_sz);
105 return res;
112 int res
[all...]
H A Dsanitizer_allocator_bytemap.h91 u8 *res = Get(idx); local
92 if (!res) {
94 if (!(res = Get(idx))) {
95 res = (u8*)MmapOrDie(kSize2, "TwoLevelByteMap");
96 MapUnmapCallback().OnMap(reinterpret_cast<uptr>(res), kSize2);
97 atomic_store(&map1_[idx], reinterpret_cast<uptr>(res),
101 return res;
H A Dsanitizer_bitvector.h152 bool res = l2_[i0][i1].setBit(i2); local
154 // idx, i0, i1, i2, res);
155 return res;
163 bool res = false; local
165 res = l2_[i0][i1].clearBit(i2);
169 return res;
188 uptr res = i0 * BV::kSize * BV::kSize + i1 * BV::kSize + i2; local
189 // Printf("getAndClearFirstOne: %zd %zd %zd => %zd\n", i0, i1, i2, res);
190 return res;
198 bool res local
214 bool res = false; local
234 bool res = false; local
309 uptr res = i0_ * BV::kSize * BV::kSize + i1_ * BV::kSize + i2; local
327 uptr res = idx / (BV::kSize * BV::kSize); local
333 uptr res = (idx / BV::kSize) % BV::kSize; local
339 uptr res = idx % BV::kSize; local
[all...]
/freebsd-11-stable/contrib/netbsd-tests/crypto/opencrypto/
H A Dh_gcm.c54 int fd, res; local
71 res = ioctl(fd, CIOCGSESSION, &cs);
72 if (res < 0)
85 res = ioctl(fd, CIOCCRYPT, &co);
86 if (res < 0)
116 res = ioctl(fd, CIOCCRYPT, &co);
117 if (res < 0)
H A Dh_md5.c73 int fd, res; local
86 res = ioctl(fd, CIOCGSESSION, &cs);
87 if (res < 0)
97 res = ioctl(fd, CIOCCRYPT, &co);
98 if (res < 0)
104 res = ioctl(fd, CIOCFSESSION, &cs.ses);
105 if (res < 0)
/freebsd-11-stable/contrib/apr-util/dbd/
H A Dapr_dbd_sqlite2.c47 char **res; member in struct:apr_dbd_results_t
57 apr_dbd_results_t *res; member in struct:apr_dbd_row_t
102 (*results)->res = result;
123 static const char *dbd_sqlite_get_name(const apr_dbd_results_t *res, int n) argument
125 if ((n < 0) || (n >= res->sz)) {
129 return res->res[n];
132 static int dbd_sqlite_get_row(apr_pool_t * pool, apr_dbd_results_t * res, argument
136 int sequential = ((rownum >= 0) && res->random) ? 0 : 1;
141 row->res
523 dbd_sqlite_num_cols(apr_dbd_results_t * res) argument
528 dbd_sqlite_num_tuples(apr_dbd_results_t * res) argument
[all...]
/freebsd-11-stable/sys/dev/cfe/
H A Dcfe_resource.c57 struct resource *res[MAX_CFE_RESERVATIONS]; member in struct:cferes_softc
79 struct resource *res; local
104 res = bus_alloc_resource_any(child, SYS_RES_MEMORY, &rid, 0);
105 if (res == NULL) {
110 sc->res[sc->rnum] = res;
133 sc->res[i]);
/freebsd-11-stable/sys/dev/proto/
H A Dproto_bus_pci.c86 struct resource *res; local
99 res = bus_alloc_resource_any(dev, type, &rid, RF_ACTIVE);
100 if (res == NULL)
102 proto_add_resource(sc, type, rid, res);
112 res = bus_alloc_resource_any(dev, type, &rid, RF_ACTIVE | RF_SHAREABLE);
113 if (res != NULL)
114 proto_add_resource(sc, type, rid, res);
/freebsd-11-stable/sys/mips/broadcom/
H A Dbcm_mipscore.c83 struct resource *res; local
96 error = bhnd_alloc_resources(dev, sc->rspec, sc->res);
100 res = sc->res[0]->res;
101 if (res == NULL)
107 bus_write_4(res, offsetof(struct mipscore_regs, intmask[5]),
/freebsd-11-stable/sys/mips/sibyte/
H A Dsb_zbpci.c90 struct resource *res; local
96 res = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid,
100 if (res == NULL)
118 res = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, CFG_PADDR_BASE,
120 if (res == NULL)
128 res = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid,
132 if (res == NULL)
169 struct resource *res; local
175 res = bus_generic_alloc_resource(bus, child, type, rid,
177 return (res);
199 zbpci_activate_resource(device_t bus, device_t child, int type, int rid, struct resource *res) argument
[all...]
/freebsd-11-stable/sys/dev/exca/
H A Dexcavar.h109 int exca_io_unmap_res(struct exca_softc *sc, struct resource *res);
111 int exca_mem_map(struct exca_softc *sc, int kind, struct resource *res);
112 int exca_mem_set_flags(struct exca_softc *sc, struct resource *res,
114 int exca_mem_set_offset(struct exca_softc *sc, struct resource *res,
116 int exca_mem_unmap_res(struct exca_softc *sc, struct resource *res);
124 int rid, struct resource *res);
126 int rid, struct resource *res);
/freebsd-11-stable/sys/dev/tx/
H A Dif_txvar.h74 struct resource *res; member in struct:__anon11764
131 bus_write_4((sc)->res, (reg), (val))
133 bus_write_2((sc)->res, (reg), (val))
135 bus_write_1((sc)->res, (reg), (val))
137 bus_read_4((sc)->res, (reg))
139 bus_read_2((sc)->res, (reg))
141 bus_read_1((sc)->res, (reg))
/freebsd-11-stable/sys/dev/siis/
H A Dsiis.h434 #define ATA_INB(res, offset) \
435 bus_read_1((res), (offset))
436 #define ATA_INW(res, offset) \
437 bus_read_2((res), (offset))
438 #define ATA_INL(res, offset) \
439 bus_read_4((res), (offset))
440 #define ATA_INSW(res, offset, addr, count) \
441 bus_read_multi_2((res), (offset), (addr), (count))
442 #define ATA_INSW_STRM(res, offset, addr, count) \
443 bus_read_multi_stream_2((res), (offse
[all...]
/freebsd-11-stable/contrib/wpa/src/p2p/
H A Dp2p_utils.c81 struct p2p_reg_class *res)
85 res->reg_class = a->reg_class;
91 res->channel[res->channels] = a->channel[i];
92 res->channels++;
93 if (res->channels == P2P_MAX_REG_CLASS_CHANNELS)
104 * @res: Data structure for returning the intersection of support channels
113 struct p2p_channels *res)
117 os_memset(res, 0, sizeof(*res));
79 p2p_reg_class_intersect(const struct p2p_reg_class *a, const struct p2p_reg_class *b, struct p2p_reg_class *res) argument
111 p2p_channels_intersect(const struct p2p_channels *a, const struct p2p_channels *b, struct p2p_channels *res) argument
162 p2p_channels_union_inplace(struct p2p_channels *res, const struct p2p_channels *b) argument
202 p2p_channels_union(const struct p2p_channels *a, const struct p2p_channels *b, struct p2p_channels *res) argument
[all...]

Completed in 378 milliseconds

<<11121314151617181920>>