Searched refs:_r (Results 1 - 25 of 105) sorted by relevance

12345

/freebsd-current/contrib/ntp/libntp/lib/isc/include/isc/
H A Dregion.h58 isc_region_t *_r = (r); \
60 INSIST(_r->length >= _l); \
61 _r->base += _l; \
62 _r->length -= _l; \
67 isc_textregion_t *_r = (r); \
69 INSIST(_r->length >= _l); \
70 _r->base += _l; \
71 _r->length -= _l; \
76 isc_constregion_t *_r = (r); \
78 INSIST(_r
[all...]
H A Dbuffer.h711 #define ISC__BUFFER_REGION(_b, _r) \
713 (_r)->base = (_b)->base; \
714 (_r)->length = (_b)->length; \
717 #define ISC__BUFFER_USEDREGION(_b, _r) \
719 (_r)->base = (_b)->base; \
720 (_r)->length = (_b)->used; \
723 #define ISC__BUFFER_AVAILABLEREGION(_b, _r) \
725 (_r)->base = isc_buffer_used(_b); \
726 (_r)->length = isc_buffer_availablelength(_b); \
750 #define ISC__BUFFER_CONSUMEDREGION(_b, _r) \
[all...]
/freebsd-current/sys/dev/ath/ath_rate/sample/
H A Dtx_schedules.h43 #define A(_r) \
44 (((_r) == 6) ? 0 : (((_r) == 9) ? 1 : (((_r) == 12) ? 2 : \
45 (((_r) == 18) ? 3 : (((_r) == 24) ? 4 : (((_r) == 36) ? 5 : \
46 (((_r) == 48) ? 6 : (((_r) == 54) ? 7 : 0))))))))
58 #define NA1(_r) \
[all...]
/freebsd-current/sys/contrib/xen/io/
H A Dring.h178 #define FRONT_RING_ATTACH(_r, _s, _i, __size) do { \
179 (_r)->req_prod_pvt = (_i); \
180 (_r)->rsp_cons = (_i); \
181 (_r)->nr_ents = __RING_SIZE(_s, __size); \
182 (_r)->sring = (_s); \
185 #define FRONT_RING_INIT(_r, _s, __size) FRONT_RING_ATTACH(_r, _s, 0, __size)
187 #define BACK_RING_ATTACH(_r, _s, _i, __size) do { \
188 (_r)->rsp_prod_pvt = (_i); \
189 (_r)
[all...]
/freebsd-current/lib/libc/stdio/
H A Drget.c47 fp->_r--;
H A Dfread.c92 if (fp->_r < 0)
93 fp->_r = 0;
113 p += fp->_r;
114 resid -= fp->_r;
120 fp->_r = 0;
125 while (resid > (r = fp->_r)) {
129 /* fp->_r = 0 ... done in __srefill */
139 fp->_r -= resid;
H A Dfgetws.c68 if (fp->_r <= 0 && __srefill(fp))
75 nl = memchr(fp->_p, '\n', fp->_r);
77 nl != NULL ? (nl - fp->_p + 1) : fp->_r,
92 src = memchr(fp->_p, '\0', fp->_r);
95 fp->_r -= (unsigned char *)src - fp->_p;
99 } while ((wsp == ws || wsp[-1] != L'\n') && n > 1 && (fp->_r > 0 ||
H A Drefill.c73 fp->_r = 0; /* largely a convenience for callers */
104 if ((fp->_r = fp->_ur) != 0) {
130 fp->_r = _sread(fp, (char *)fp->_p, fp->_bf._size);
132 if (fp->_r <= 0) {
133 if (fp->_r == 0)
136 fp->_r = 0;
H A Dfgetwc.c82 if (fp->_r <= 0 && __srefill(fp))
85 nconv = l->__mbrtowc(&wc, fp->_p, fp->_r, mbs);
93 fp->_r--;
98 fp->_r -= nconv;
H A Dfgets.c73 if ((len = fp->_r) <= 0) {
82 len = fp->_r;
97 fp->_r -= len;
104 fp->_r -= len;
H A Dfgetln.c84 if (fp->_r <= 0 && __srefill(fp)) {
91 if ((p = memchr((void *)fp->_p, '\n', (size_t)fp->_r)) != NULL) {
101 fp->_r -= len;
116 for (len = fp->_r, off = 0;; len += fp->_r) {
134 if ((p = memchr((void *)fp->_p, '\n', (size_t)fp->_r)) == NULL)
145 fp->_r -= diff;
H A Dungetc.c132 if (fp->_r >= fp->_ub._size && __submore(fp))
135 fp->_r++;
148 fp->_r++;
156 fp->_ur = fp->_r;
162 fp->_r = 1;
H A Dgetdelim.c126 if (fp->_r <= 0 && __srefill(fp)) {
136 while ((endp = memchr(fp->_p, delim, fp->_r)) == NULL) {
137 if (sappend(linep, &linelen, linecapp, fp->_p, fp->_r))
168 fp->_r -= endp - fp->_p;
H A Dfpurge.c59 fp->_r = 0;
H A Dfseek.c221 curoff += fp->_r; /* kill off ungetc */
228 n += fp->_r;
240 fp->_r = n - o;
260 fp->_r = 0;
266 if (__srefill(fp) || fp->_r < n)
269 fp->_r -= n;
292 fp->_r = 0;
H A Dvfscanf.c124 if ((n = fp->_r) < width) {
135 fp->_r -= width;
179 n++, fp->_r--, fp->_p++;
182 if (fp->_r <= 0 && __srefill(fp)) {
191 fp->_r--;
195 if (fp->_r <= 0 && __srefill(fp)) {
249 n++, fp->_r--, fp->_p++;
252 if (fp->_r <= 0 && __srefill(fp))
258 fp->_r--;
262 if (fp->_r <
[all...]
/freebsd-current/sys/dev/uart/
H A Duart_dev_imx.h198 #define REG(_r) IMXUART_ ## _r ## _REG
199 #define FLD(_r, _v) IMXUART_ ## _r ## _ ## _v
206 #define CLR(_bas, _r, _b) \
207 SETREG((_bas), (_r), GETREG((_bas), (_r)) & ~(_b))
208 #define SET(_bas, _r, _b) \
209 SETREG((_bas), (_r), GETREG((_bas), (_r)) | (_
[all...]
/freebsd-current/sys/dev/etherswitch/rtl8366/
H A Drtl8366rbvar.h102 #define RTL8366_VMCR_VID(_r) \
103 (_r[RTL8366_VMCR_DOT1Q_REG] & RTL8366_VMCR_DOT1Q_VID_MASK)
105 #define RTL8366_VMCR_PCP(_r) \
106 ((_r[RTL8366_VMCR_DOT1Q_REG] & RTL8366_VMCR_DOT1Q_PCP_MASK) \
109 #define RTL8366_VMCR_MEMBER(_r) \
110 (_r[RTL8366_VMCR_MU_REG] & RTL8366_VMCR_MU_MEMBER_MASK)
112 #define RTL8366_VMCR_UNTAG(_r) \
113 ((_r[RTL8366_VMCR_MU_REG] & RTL8366_VMCR_MU_UNTAG_MASK) \
116 #define RTL8366_VMCR_FID(_r) \
117 (sc->chip_type == 0 ? (_r[RTL8366_VMCR_FID_RE
[all...]
/freebsd-current/usr.sbin/bluetooth/bluetooth-config/
H A Dbluetooth-config.sh170 read -p "Enter friendly name. [${friendlyname}]: " _r
171 : ${_r:="${friendlyname}"}
173 if [ "${_r}" ]; then
175 bdname=$( printf "%s" "${_r}" | tr -c '[:alnum:]-,.' _ )
176 if [ "${_r}" != "${bdname}" ]; then
200 read -p "Enable hcsecd? [yes]: " _r
201 case "${_r}" in
216 read -p "Continue? [yes]: " _r
217 case "${_r}" in no|n|NO|N|No|nO) exit;; esac
246 read -p "Set it up? [yes]: " _r
[all...]
/freebsd-current/sys/sys/
H A Drman.h151 void rman_set_bushandle(struct resource *_r, bus_space_handle_t _h);
152 void rman_set_bustag(struct resource *_r, bus_space_tag_t _t);
153 void rman_set_device(struct resource *_r, device_t _dev);
154 void rman_set_irq_cookie(struct resource *_r, void *_c);
156 void rman_set_rid(struct resource *_r, int _rid);
157 void rman_set_type(struct resource *_r, int _type);
158 void rman_set_virtual(struct resource *_r, void *_v);
H A Dcapsicum.h353 cap_rights_t *_r = (r); \
354 CAP_NONE(_r); \
355 _r; \
360 cap_rights_t *_r = (r); \
361 CAP_NONE(_r); \
362 _r->cr_rights[CAPIDXBIT(right) - 1] |= right; \
363 _r; \
368 cap_rights_t *_r = (r); \
369 _r->cr_rights[CAPIDXBIT(right) - 1] |= right; \
370 _r; \
[all...]
H A Dqmath.h221 char *_r, *_s = s; \
226 _r = _s; \
232 _r = NULL; \
233 } while (_part > 0 && _r != NULL); \
235 _r = NULL; \
236 _i = (_s - _r) >> 1; /* N digits requires int(N/2) swaps. */ \
237 while (_i-- > 0 && _r != NULL) { \
239 *_s = *(_r + _i); /* Stash LHS char temporarily. */ \
240 *(_r + _i) = *(_s - _i - 1); /* Copy RHS char to LHS. */\
244 if (_i != 0 && _r !
[all...]
/freebsd-current/sys/netipsec/
H A Dkeydb.h222 #define SECREPLAY_LOCK(_r) mtx_lock(&(_r)->lock)
223 #define SECREPLAY_UNLOCK(_r) mtx_unlock(&(_r)->lock)
224 #define SECREPLAY_ASSERT(_r) mtx_assert(&(_r)->lock, MA_OWNED)
/freebsd-current/sys/arm/freescale/imx/
H A Dimx_gpt.c50 #define WRITE4(_sc, _r, _v) \
51 bus_space_write_4((_sc)->sc_iot, (_sc)->sc_ioh, (_r), (_v))
52 #define READ4(_sc, _r) \
53 bus_space_read_4((_sc)->sc_iot, (_sc)->sc_ioh, (_r))
54 #define SET4(_sc, _r, _m) \
55 WRITE4((_sc), (_r), READ4((_sc), (_r)) | (_m))
56 #define CLEAR4(_sc, _r, _m) \
57 WRITE4((_sc), (_r), READ4((_sc), (_r))
[all...]
/freebsd-current/sys/dev/ath/ath_hal/
H A Dah_internal.h492 #define ath_hal_eepromDiag(_ah, _request, _a, _asize, _r, _rsize) \
493 AH_PRIVATE(_ah)->ah_eepromDiag(_ah, _request, _a, _asize, _r, _rsize)
587 #define OS_REG_RMW(_a, _r, _set, _clr) \
588 OS_REG_WRITE(_a, _r, (OS_REG_READ(_a, _r) & ~(_clr)) | (_set))
589 #define OS_REG_RMW_FIELD(_a, _r, _f, _v) \
590 OS_REG_WRITE(_a, _r, \
591 (OS_REG_READ(_a, _r) &~ (_f)) | (((_v) << _f##_S) & (_f)))
592 #define OS_REG_SET_BIT(_a, _r, _f) \
593 OS_REG_WRITE(_a, _r, OS_REG_REA
[all...]

Completed in 298 milliseconds

12345