/freebsd/sys/netlink/ |
H A D | netlink.h | 201 #define NL_ITEM_ALIGN(_len) roundup2(_len, NL_ITEM_ALIGN_SIZE) argument 205 #define NL_ITEM_OK(_ptr, _len, _hlen, _LEN_M) \ argument 206 ((_len) >= _hlen && _LEN_M(_ptr) >= _hlen && _LEN_M(_ptr) <= (_len)) 208 #define NL_ITEM_ITER(_ptr, _len, _LEN_MACRO) \ argument 209 ((_len) -= _LEN_MACRO(_ptr), NL_ITEM_NEXT(_ptr, _LEN_MACRO)) 215 #define NLMSG_ALIGN(_len) NL_ITEM_ALIGN(_len) argument 217 #define NLMSG_LENGTH(_len) ((_len) + NLMSG_HDRLEN) argument 218 #define NLMSG_SPACE(_len) NLMSG_ALIGN(NLMSG_LENGTH(_len)) argument 222 #define NLMSG_OK(_hdr, _len) NL_ITEM_OK(_hdr, _len, NLMSG_HDRLEN, _NLMSG_LEN) argument 223 #define NLMSG_PAYLOAD(_hdr,_len) (_NLMSG_LEN(_hdr) - NLMSG_SPACE((_len))) argument [all …]
|
H A D | netlink_ctl.h | 46 #define NETLINK_ALIGN(_len) _roundup2(_len, NETLINK_ALIGN_SIZE) argument 49 #define NLA_ALIGN(_len) _roundup2(_len, NLA_ALIGN_SIZE) argument 61 #define _NLA_END(_start, _len) ((char *)(_start) + (_len)) argument 62 #define NLA_FOREACH(_attr, _start, _len) \ argument 63 for (typeof(_attr) _end = (typeof(_attr))_NLA_END(_start, _len), _attr = (_start); \ 66 _attr = (_len -= NLA_ALIGN(_attr->nla_len), NLA_NEXT(_attr)))
|
/freebsd/sys/netlink/route/ |
H A D | route.h | 246 #define RTA_ALIGN(_len) NL_RTA_ALIGN(_len) argument 249 #define RTA_OK(_rta, _len) NL_ITEM_OK(_rta, _len, NL_RTA_HDRLEN, _RTA_LEN) argument 250 #define RTA_NEXT(_rta, _len) NL_ITEM_ITER(_rta, _len, _RTA_ALIGNED_LEN) argument 251 #define RTA_LENGTH(_len) (NL_RTA_HDRLEN + (_len)) argument 252 #define RTA_SPACE(_len) RTA_ALIGN(RTA_LENGTH(_len)) argument 354 #define RTNH_ALIGN(_len) NL_ITEM_ALIGN(_len) argument 358 #define RTNH_OK(_nh, _len) NL_ITEM_OK(_nh, _len, RTNH_HDRLEN, _RTNH_LEN) argument 360 #define RTNH_LENGTH(_len) (RTNH_HDRLEN + (_len)) argument 361 #define RTNH_SPACE(_len) RTNH_ALIGN(RTNH_LENGTH(_len)) argument
|
/freebsd/contrib/tcpdump/ |
H A D | print-resp.c | 67 #define LCHECK2(_tot_len, _len) \ argument 69 if (_tot_len < _len) \ 83 #define FIND_CRLF(_ptr, _len) \ argument 85 LCHECK2(_len, 2); \ 91 _len--; \ 98 #define CONSUME_CRLF(_ptr, _len) \ argument 100 _len -= 2; 110 #define FIND_CR_OR_LF(_ptr, _len) \ argument 112 LCHECK(_len); \ 117 _len--; \ [all …]
|
/freebsd/contrib/openpam/t/ |
H A D | t_openpam_straddch.c | 87 size_t size, _size, len, _len; in t_straddch_realloc_fail() local 103 _len = len; in t_straddch_realloc_fail() 109 _len = len; in t_straddch_realloc_fail() 116 ret &= t_compare_sz(_len, len); in t_straddch_realloc_fail() 126 size_t size, _size, len, _len; in t_straddch_realloc_ok() local 140 _len = len; in t_straddch_realloc_ok() 146 if (len != _len + 1) in t_straddch_realloc_ok() 148 _len = len; in t_straddch_realloc_ok() 153 ret &= t_compare_sz(_len + 1, len); in t_straddch_realloc_ok() 155 ret &= t_compare_i(i, str[_len]); in t_straddch_realloc_ok()
|
/freebsd/contrib/wpa/src/crypto/ |
H A D | sha1.c | 32 size_t _len[6], i; in hmac_sha1_vector() local 69 _len[0] = 64; in hmac_sha1_vector() 72 _len[i + 1] = len[i]; in hmac_sha1_vector() 74 if (sha1_vector(1 + num_elem, _addr, _len, mac)) in hmac_sha1_vector() 85 _len[0] = 64; in hmac_sha1_vector() 87 _len[1] = SHA1_MAC_LEN; in hmac_sha1_vector() 88 ret = sha1_vector(2, _addr, _len, mac); in hmac_sha1_vector()
|
H A D | sha512.c | 32 size_t _len[HMAC_VECTOR_MAX_ELEM + 1], i; in hmac_sha512_vector() local 68 _len[0] = 128; in hmac_sha512_vector() 71 _len[i + 1] = len[i]; in hmac_sha512_vector() 73 if (sha512_vector(1 + num_elem, _addr, _len, mac) < 0) in hmac_sha512_vector() 84 _len[0] = 128; in hmac_sha512_vector() 86 _len[1] = SHA512_MAC_LEN; in hmac_sha512_vector() 87 return sha512_vector(2, _addr, _len, mac); in hmac_sha512_vector()
|
H A D | sha384.c | 32 size_t _len[HMAC_VECTOR_MAX_ELEM + 1], i; in hmac_sha384_vector() local 68 _len[0] = 128; in hmac_sha384_vector() 71 _len[i + 1] = len[i]; in hmac_sha384_vector() 73 if (sha384_vector(1 + num_elem, _addr, _len, mac) < 0) in hmac_sha384_vector() 84 _len[0] = 128; in hmac_sha384_vector() 86 _len[1] = SHA384_MAC_LEN; in hmac_sha384_vector() 87 return sha384_vector(2, _addr, _len, mac); in hmac_sha384_vector()
|
H A D | md5.c | 32 size_t i, _len[6]; in hmac_md5_vector() local 70 _len[0] = 64; in hmac_md5_vector() 73 _len[i + 1] = len[i]; in hmac_md5_vector() 75 if (md5_vector(1 + num_elem, _addr, _len, mac)) in hmac_md5_vector() 86 _len[0] = 64; in hmac_md5_vector() 88 _len[1] = MD5_MAC_LEN; in hmac_md5_vector() 89 res = md5_vector(2, _addr, _len, mac); in hmac_md5_vector()
|
H A D | sha256.c | 32 size_t _len[HMAC_VECTOR_MAX_ELEM + 1], i; in hmac_sha256_vector() local 69 _len[0] = 64; in hmac_sha256_vector() 72 _len[i + 1] = len[i]; in hmac_sha256_vector() 74 ret = sha256_vector(1 + num_elem, _addr, _len, mac); in hmac_sha256_vector() 86 _len[0] = 64; in hmac_sha256_vector() 88 _len[1] = SHA256_MAC_LEN; in hmac_sha256_vector() 90 ret = sha256_vector(2, _addr, _len, mac); in hmac_sha256_vector()
|
H A D | aes-siv.c | 125 size_t _len[6]; in aes_siv_encrypt() local 141 _len[i] = len[i]; in aes_siv_encrypt() 144 _len[num_elem] = pwlen; in aes_siv_encrypt() 146 if (aes_s2v(k1, key_len, num_elem + 1, _addr, _len, v)) in aes_siv_encrypt() 168 size_t _len[6]; in aes_siv_decrypt() local 186 _len[i] = len[i]; in aes_siv_decrypt() 189 _len[num_elem] = crypt_len; in aes_siv_decrypt() 201 ret = aes_s2v(k1, key_len, num_elem + 1, _addr, _len, check); in aes_siv_decrypt()
|
/freebsd/contrib/ofed/libibverbs/ |
H A D | alloca.h | 10 int _len; \ 12 _len = strlen(_s) + 1; \ 13 _d = alloca(_len); \ 15 memcpy(_d, _s, _len); \
|
/freebsd/contrib/elftoolchain/libelftc/ |
H A D | _libelftc.h | 80 size_t _len); 81 char *vector_str_get_flat(const struct vector_str *_vs, size_t *_len); 85 size_t _len);
|
/freebsd/usr.bin/systat/ |
H A D | cmds.c | 74 int _col, _len; in command() local 78 _len = strlen(p->c_name); in command() 79 if (_col + _len > COLS) in command() 81 addstr(p->c_name); _col += _len; in command()
|
/freebsd/contrib/sendmail/include/sm/ |
H A D | string.h | 36 sm_strndup_x __P((const char *_str, size_t _len)); 69 sm_strlcpy __P((char *_dst, const char *_src, ssize_t _len)); 72 sm_strlcat __P((char *_dst, const char *_src, ssize_t _len));
|
/freebsd/sys/dev/rtwn/ |
H A D | if_rtwnvar.h | 454 #define rtwn_fw_write_block(_sc, _buf, _reg, _len) \ argument 455 (((_sc)->sc_fw_write_block)((_sc), (_buf), (_reg), (_len))) 549 #define rtwn_classify_intr(_sc, _buf, _len) \ argument 550 (((_sc)->sc_classify_intr)((_sc), (_buf), (_len))) 551 #define rtwn_handle_tx_report(_sc, _buf, _len) \ argument 552 (((_sc)->sc_handle_tx_report)((_sc), (_buf), (_len))) 553 #define rtwn_handle_c2h_report(_sc, _buf, _len) \ argument 554 (((_sc)->sc_handle_c2h_report)((_sc), (_buf), (_len)))
|
/freebsd/contrib/ofed/infiniband-diags/src/ |
H A D | smpdump.c | 211 int _len; \ 213 _len = strlen(_s) + 1; \ 214 _d = alloca(_len); \ 216 memcpy(_d, _s, _len); \
|
/freebsd/sys/dev/rtwn/usb/ |
H A D | rtwn_usb_var.h | 88 #define rtwn_usb_align_rx(_uc, _totlen, _len) \ argument 89 (((_uc)->uc_align_rx)((_totlen), (_len)))
|
/freebsd/sys/dev/iscsi/ |
H A D | icl_conn_if.m | 58 size_t _len; 66 size_t _len; 76 size_t _len; 84 size_t _len;
|
/freebsd/sys/dev/ath/ |
H A D | if_ath_descdma.c | 149 #define ATH_DESC_4KB_BOUND_CHECK(_daddr, _len) \ in ath_descdma_alloc_desc() argument 150 ((((u_int32_t)(_daddr) & 0xFFF) > (0x1000 - (_len))) ? 1 : 0) in ath_descdma_alloc_desc() 242 #define ATH_DESC_4KB_BOUND_CHECK(_daddr, _len) \ in ath_descdma_setup() argument 243 ((((u_int32_t)(_daddr) & 0xFFF) > (0x1000 - (_len))) ? 1 : 0) in ath_descdma_setup()
|
H A D | ah_osdep.h | 127 #define OS_BUS_BARRIER(_ah, _start, _len, _t) \ argument 129 (bus_space_handle_t)(_ah)->ah_sh, (_start), (_len), (_t))
|
/freebsd/sys/net80211/ |
H A D | ieee80211_input.h | 45 #define IEEE80211_VERIFY_LENGTH(_len, _minlen, _action) do { \ argument 46 if ((_len) < (_minlen)) { \ 49 (_len), (_minlen)); \
|
H A D | ieee80211_crypto_ccmp.c | 436 #define CCMP_ENCRYPT(_i, _b, _b0, _pos, _e, _len) do { \ argument 438 xor_block(_b, _pos, _len); \ 444 xor_block(_pos, _e, _len); \ 581 #define CCMP_DECRYPT(_i, _b, _b0, _pos, _a, _len) do { \ argument 586 xor_block(_pos, _b, _len); \ 588 xor_block(_a, _pos, _len); \
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | port-net.c | 309 sys_tun_infilter(struct ssh *ssh, struct Channel *c, char *buf, int _len) in sys_tun_infilter() argument 323 if (_len < 0) in sys_tun_infilter() 325 len = _len; in sys_tun_infilter()
|
/freebsd/sys/dev/sound/midi/ |
H A D | synth_if.m | 143 nosendsysex ( void /* X */ * _kobj, void * _buf, size_t _len) 157 nowriteraw ( void /* X */ * _kobjt, uint8_t * _buf, size_t _len) 266 size_t _len; 279 size_t _len;
|