/freebsd/sys/sys/ |
H A D | bitset.h | 41 #define __bitset_mask(_s, n) \ argument 42 (1UL << (__constexpr_cond(__bitset_words((_s)) == 1) ? \ 45 #define __bitset_word(_s, n) \ argument 46 (__constexpr_cond(__bitset_words((_s)) == 1) ? \ 49 #define __BIT_CLR(_s, n, p) \ argument 50 ((p)->__bits[__bitset_word(_s, n)] &= ~__bitset_mask((_s), (n))) 52 #define __BIT_COPY(_s, f, t) (void)(*(t) = *(f)) argument 54 #define __BIT_ISSET(_s, n, p) \ argument 55 ((((p)->__bits[__bitset_word(_s, n)] & __bitset_mask((_s), (n))) != 0)) 57 #define __BIT_SET(_s, n, p) \ argument [all …]
|
H A D | cpuset.h | 77 #define CPU_ALLOC_SIZE(_s) __BITSET_SIZE(_s) argument 78 #define CPU_ALLOC(_s) __cpuset_alloc(_s) 81 #define CPU_ISSET_S(n, _s, p) __BIT_ISSET((_s) * 8, n, p) argument 82 #define CPU_SET_S(n, _s, p) __BIT_SET((_s) * 8, n, p) argument 83 #define CPU_CLR_S(n, _s, p) __BIT_CLR((_s) * argument 76 CPU_ALLOC_SIZE(_s) global() argument 80 CPU_ISSET_S(n,_s,p) global() argument 85 CPU_OR_S(_s,d,s1,s2) global() argument 86 CPU_AND_S(_s,d,s1,s2) global() argument 87 CPU_XOR_S(_s,d,s1,s2) global() argument 89 CPU_COUNT_S(_s,p) global() argument 90 CPU_EQUAL_S(_s,p,c) global() argument [all...] |
H A D | _bitset.h | 43 #define __bitset_words(_s) (__howmany(_s, _BITSET_BITS)) argument 45 #define __BITSET_DEFINE(_t, _s) \ argument 47 unsigned long __bits[__bitset_words((_s))]; \ 66 #define BITSET_DEFINE(_t, _s) __BITSET_DEFINE(_t, _s) argument
|
H A D | qmath.h | 221 char *_r, *_s = s; \ 224 *_s++ = '-'; \ 226 _r = _s; \ 229 if ((_s - (s)) < ((ptrdiff_t)(slen))) \ 230 *_s++ = Q_IBITS2CH(q, _part, base); \ 234 if (!((_s - (s)) < ((ptrdiff_t)(slen)))) \ 236 _i = (_s - _r) >> 1; /* N digits requires int(N/2) swaps. */ \ 239 *_s = *(_r + _i); /* Stash LHS char temporarily. */ \ 240 *(_r + _i) = *(_s - _i - 1); /* Copy RHS char to LHS. */\ 241 *(_s - _i - 1) = *_s; /* Copy LHS char to RHS. */ \ [all …]
|
/freebsd/contrib/ntp/sntp/libopts/ |
H A D | ag-char-map.h | 117 #define SPN_NEWLINE_CHARS(_s) spn_ag_char_map_chars(_s, 0) argument 118 #define BRK_NEWLINE_CHARS(_s) brk_ag_char_map_chars(_s, 0) argument 122 #define SPN_NUL_BYTE_CHARS(_s) spn_ag_char_map_chars(_s, 1) argument 123 #define BRK_NUL_BYTE_CHARS(_s) brk_ag_char_map_chars(_s, 1) argument 127 #define SPN_DIR_SEP_CHARS(_s) spn_ag_char_map_chars(_s, 2) argument 128 #define BRK_DIR_SEP_CHARS(_s) brk_ag_char_map_chars(_s, 2) argument 132 #define SPN_PERCENT_CHARS(_s) spn_ag_char_map_chars(_s, 3) argument 133 #define BRK_PERCENT_CHARS(_s) brk_ag_char_map_chars(_s, 3) argument 137 #define SPN_COMMA_CHARS(_s) spn_ag_char_map_chars(_s, 4) argument 138 #define BRK_COMMA_CHARS(_s) brk_ag_char_map_chars(_s, 4) argument [all …]
|
H A D | autoopts.c | 52 # define strdup(_s) option_strdup(_s) argument 57 # define strrchr(_s, _c) option_strrchr(_s, _c) argument 58 # define strchr(_s, _c) option_strchr(_s, _c) argument
|
/freebsd/sys/contrib/xen/io/ |
H A D | ring.h | 68 #define __CONST_RING_SIZE(_s, _sz) \ argument 69 (__RD32(((_sz) - offsetof(struct _s##_sring, ring)) / \ 70 sizeof(((struct _s##_sring *)0)->ring[0]))) 74 #define __RING_SIZE(_s, _sz) \ argument 75 (__RD32(((_sz) - (long)(_s)->ring + (long)(_s)) / sizeof((_s)->ring[0]))) 171 #define SHARED_RING_INIT(_s) do { \ argument 172 (_s)->req_prod = (_s)->rsp_prod = 0; \ 173 (_s)->req_event = (_s)->rsp_event = 1; \ 174 (void)memset((_s)->pvt.pvt_pad, 0, sizeof((_s)->pvt.pvt_pad)); \ 175 (void)memset((_s)->__pad, 0, sizeof((_s)->__pad)); \ [all …]
|
/freebsd/sys/dev/mgb/ |
H A D | if_mgb.h | 101 #define MGB_DMAC_CMD_RESET(_s, _ch) MGB_DMAC_CMD_VAL(_s, 8, _ch) argument 102 #define MGB_DMAC_CMD_START(_s, _ch) MGB_DMAC_CMD_VAL(_s, 4, _ch) argument 103 #define MGB_DMAC_CMD_STOP( _s, _ch) MGB_DMAC_CMD_VAL(_s, 0, _ch) argument 110 #define MGB_DMAC_CMD_STATE(sc, _s, _ch) \ argument 112 CSR_READ_REG(sc, MGB_DMAC_CMD) & MGB_DMAC_CMD_START(_s, _ch), \ 113 CSR_READ_REG(sc, MGB_DMAC_CMD) & MGB_DMAC_CMD_STOP(_s, _ch))) 114 #define MGB_DMAC_STATE_IS_INITIAL(sc, _s, _ch) \ argument 115 (MGB_DMAC_CMD_STATE(sc, _s, _ch) == MGB_DMAC_STATE_INITIAL)
|
/freebsd/contrib/ldns/ldns/ |
H A D | config.h | 753 #define close_socket(_s) do { if (_s != SOCK_INVALID) {closesocket(_s); _s = -1;} } while(0) argument 756 #define close_socket(_s) do { if (_s != SOCK_INVALID) {close(_s); _s = -1;} } while(0) argument
|
/freebsd/contrib/ofed/libibverbs/ |
H A D | alloca.h | 7 #define strdupa(_s) \ argument 12 _len = strlen(_s) + 1; \ 15 memcpy(_d, _s, _len); \
|
/freebsd/libexec/rc/rc.d/ |
H A D | syslogd | 66 local _s _socketargs 69 for _s in `cat $sockfile | tr '\n' ' '` ; do 70 _socketargs="-l $_s $_socketargs"
|
/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | overflow.h | 123 typeof(s) _s = s; \ 127 is_non_negative(_s) && _s < 8 * sizeof(*d) ? _s : 0; \ 129 (_to_shift != _s || is_negative(*_d) || is_negative(_a) || \
|
H A D | kfifo.h | 100 #define kfifo_alloc(_kf, _s, _gfp) \ argument 104 (_kf)->head = kmalloc(sizeof(__typeof(*(_kf)->head)) * (_s), _gfp); \ 108 (_kf)->total = (_s); \
|
H A D | skbuff.h | 71 #define SKB_TRACE(_s) \ argument 73 printf("SKB_TRACE %s:%d %p\n", __func__, __LINE__, _s) 74 #define SKB_TRACE2(_s, _p) \ argument 76 printf("SKB_TRACE %s:%d %p, %p\n", __func__, __LINE__, _s, _p) 77 #define SKB_TRACE_FMT(_s, _fmt, ...) \ argument 79 printf("SKB_TRACE %s:%d %p " _fmt "\n", __func__, __LINE__, _s, \ 84 #define SKB_TRACE(_s) do { } while(0) argument 85 #define SKB_TRACE2(_s, _p) do { } while(0) argument 86 #define SKB_TRACE_FMT(_s, ...) do { } while(0) argument 1100 #define SKB_WITH_OVERHEAD(_s) \ argument [all …]
|
H A D | compiler.h | 128 #define sizeof_field(_s, _m) sizeof(((_s *)0)->_m) argument
|
/freebsd/sys/contrib/dpdk_rte_lpm/ |
H A D | rte_shim.h | 7 #define rte_zmalloc_socket(_type, _size, _align, _s) malloc(_size, M_TEMP, M_NOWAIT | M_ZERO) argument 14 #define assert(_s) KASSERT((_s), ("DPDK: assert failed")) argument
|
/freebsd/crypto/openssh/ |
H A D | atomicio.c | 51 atomicio6(ssize_t (*f) (int, void *, size_t), int fd, void *_s, size_t n, in atomicio6() argument 54 char *s = _s; in atomicio6() 96 atomicio(ssize_t (*f) (int, void *, size_t), int fd, void *_s, size_t n) in atomicio() argument 98 return atomicio6(f, fd, _s, n, NULL, NULL); in atomicio()
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | zfs_context.h | 417 #define kmem_alloc(_s, _f) umem_alloc(_s, _f) 418 #define kmem_zalloc(_s, _f) umem_zalloc(_s, _f) 419 #define kmem_free(_b, _s) umem_free(_b, _s) 420 #define vmem_alloc(_s, _f) kmem_alloc(_s, _f) 421 #define vmem_zalloc(_s, _f) kmem_zalloc(_s, _f) 422 #define vmem_free(_b, _s) kmem_free(_b, _s)
|
/freebsd/sys/dev/iavf/ |
H A D | iavf_osdep.h | 97 #define UNREFERENCED_4PARAMETER(_p, _q, _r, _s) do { \ argument 101 UNREFERENCED_PARAMETER(_s); \ 103 #define UNREFERENCED_5PARAMETER(_p, _q, _r, _s, _t) do { \ argument 107 UNREFERENCED_PARAMETER(_s); \
|
/freebsd/sys/dev/ice/ |
H A D | ice_osdep.h | 183 #define UNREFERENCED_4PARAMETER(_p, _q, _r, _s) do { \ argument 187 UNREFERENCED_PARAMETER(_s); \ 189 #define UNREFERENCED_5PARAMETER(_p, _q, _r, _s, _t) do { \ argument 193 UNREFERENCED_PARAMETER(_s); \ 199 #define MAKEMASK(_m, _s) ((_m) << (_s)) argument
|
/freebsd/contrib/netcat/ |
H A D | atomicio.c | 39 atomicio(ssize_t (*f) (int, void *, size_t), int fd, void *_s, size_t n) in atomicio() argument 41 char *s = _s; in atomicio()
|
/freebsd/sys/contrib/dev/rtw89/ |
H A D | sar.c | 143 typeof(_src) _s = (_src); \ 145 BUILD_BUG_ON(!rtw89_sar_handlers[_s].descr_sar_source); \ 146 BUILD_BUG_ON(!rtw89_sar_handlers[_s].query_sar_config); \ 149 _d->sar.src = _s; \ in rtw89_txpwr_sar_to_mac()
|
/freebsd/contrib/elftoolchain/libelf/ |
H A D | _libelf.h | 207 struct _Libelf_Data *_libelf_allocate_data(Elf_Scn *_s); 238 Elf_Scn *_libelf_release_scn(Elf_Scn *_s); 243 Elf_Data *_libelf_xlate(Elf_Data *_d, const Elf_Data *_s,
|
/freebsd/sys/dev/ath/ |
H A D | ah_osdep.h | 71 #define OS_MEMCPY(_d, _s, _n) memcpy(_d,_s,_n) argument
|
/freebsd/contrib/wpa/src/fst/ |
H A D | fst_session.c | 817 struct fst_session *_s; in fst_session_initiate_setup() local 864 _s = fst_find_session_in_progress(s->data.old_peer_addr, s->group); in fst_session_initiate_setup() 865 if (_s) { in fst_session_initiate_setup() 868 _s->id); in fst_session_initiate_setup() 872 _s = fst_find_session_in_progress(s->data.new_peer_addr, s->group); in fst_session_initiate_setup() 873 if (_s) { in fst_session_initiate_setup() 876 _s->id); in fst_session_initiate_setup() 1412 struct fst_session *_s; in fst_test_req_send_fst_response() local 1438 _s = fst_find_session_in_progress(fst_session_get_peer_addr(&s, true), in fst_test_req_send_fst_response() 1440 res.dialog_token = (_s && fst_session_is_ready_pending(_s)) ? in fst_test_req_send_fst_response() [all …]
|