Home
last modified time | relevance | path

Searched refs:typeof (Results 1 – 25 of 94) sorted by relevance

1234

/freebsd/sys/contrib/openzfs/contrib/pyzfs/libzfs_core/
H A Dctypes.py26 type_info = _ffi.typeof(type_name)
58 _ffi.typeof('uint8_t'): ('uint8', 'uint8'),
59 _ffi.typeof('int8_t'): ('int8', 'int8'),
60 _ffi.typeof('uint16_t'): ('uint16', 'uint16'),
61 _ffi.typeof('int16_t'): ('int16', 'int16'),
62 _ffi.typeof('uint32_t'): ('uint32', 'uint32'),
63 _ffi.typeof('int32_t'): ('int32', 'int32'),
64 _ffi.typeof('uint64_t'): ('uint64', 'uint64'),
65 _ffi.typeof('int64_t'): ('int64', 'int64'),
66 _ffi.typeof('boolean_t'): ('boolean_value', 'boolean'),
[all …]
H A D_nvlist.py179 specimen_ctype = _ffi.typeof(specimen)
190 ctype = _ffi.typeof(element)
193 _ffi.typeof(specimen).cname +
195 _ffi.typeof(element).cname)
222 specimen, _ffi.CData) and _ffi.typeof(specimen) in _type_to_suffix:
223 suffix = _type_to_suffix[_ffi.typeof(specimen)][True]
285 elif isinstance(v, _ffi.CData) and _ffi.typeof(v) in _type_to_suffix:
286 suffix = _type_to_suffix[_ffi.typeof(v)][False]
/freebsd/sys/contrib/dpdk_rte_lpm/
H A Drte_common.h24 #ifndef typeof
25 #define typeof __typeof__ macro
248 (typeof(val))((val) & (~((typeof(val))((align) - 1))))
292 (((v + (typeof(v))(mul) - 1) / ((typeof(v))(mul))) * (typeof(v))(mul))
300 ((v / ((typeof(v))(mul))) * (typeof(v))(mul))
309 typeof(v) ceil = RTE_ALIGN_MUL_CEIL(v, mul); \
310 typeof(v) floor = RTE_ALIGN_MUL_FLOOR(v, mul); \
536 typeof (a) _a = (a); \
537 typeof (b) _b = (b); \
546 typeof (a) _a = (a); \
[all …]
/freebsd/lib/libpmc/pmu-events/
H A Dlist.h161 list_entry(((ptr)->member.next), typeof(*(ptr)), member)
167 list_entry(((ptr)->member.prev), typeof(*(ptr)), member)
177 p = list_entry((p)->field.next, typeof(*p), field))
180 for (p = list_entry((h)->next, typeof(*p), field), \
182 p = n, n = list_entry(n->field.next, typeof(*n), field))
186 p = list_entry((p)->field.next, typeof(*p), field))
199 p = list_entry((p)->field.prev, typeof(*p), field))
202 for (p = list_entry((h)->prev, typeof(*p), field), \
204 p = n, n = list_entry(n->field.prev, typeof(*n), field))
208 p = list_entry((p)->field.prev, typeof(*p), field))
[all …]
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dlist.h177 list_entry(((ptr)->member.next), typeof(*(ptr)), member)
183 list_entry(((ptr)->member.prev), typeof(*(ptr)), member)
193 p = list_entry((p)->field.next, typeof(*p), field))
196 for (p = list_entry((h)->next, typeof(*p), field), \
198 p = n, n = list_entry(n->field.next, typeof(*n), field))
202 p = list_entry((p)->field.next, typeof(*p), field))
215 p = list_entry((p)->field.prev, typeof(*p), field))
218 for (p = list_entry((h)->prev, typeof(*p), field), \
220 p = n, n = list_entry(n->field.prev, typeof(*n), field))
224 p = list_entry((p)->field.prev, typeof(*p), field))
[all …]
H A Doverflow.h122 typeof(a) _a = a; \
123 typeof(s) _s = s; \
124 typeof(d) _d = d; \
134 is_unsigned_type(typeof(x)) ? \
135 (x) > type_max(typeof(T)) : \
136 is_unsigned_type(typeof(T)) ? \
137 (x) < 0 || (x) > type_max(typeof(T)) : \
138 (x) < type_min(typeof(T)) || (x) > type_max(typeof(T)))
141 typeof(T) v = 0; \
H A Drculist.h41 for (pos = list_entry_rcu((head)->next, typeof(*(pos)), member); \
43 pos = list_entry_rcu((pos)->member.next, typeof(*(pos)), member))
48 pos = list_entry_rcu((pos)->member.next, typeof(*(pos)), member))
110 typeof(*(pos)), member); \
113 &(pos)->member)), typeof(*(pos)), member))
H A Dbitfield.h129 (!(((typeof(_mask))(_value) << __bf_shf(_mask)) & ~(_mask)))
132 (((typeof(_mask))(_value) << __bf_shf(_mask)) & (_mask))
136 (((typeof(_mask))(_value) << __bf_shf(_mask)) & (_mask))
139 ((typeof(_mask))(((_value) & (_mask)) >> __bf_shf(_mask)))
H A Dcompiler.h83 #define typeof(x) __typeof(x) macro
119 #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
H A Drcupdate.h103 typeof(ptr) __tmp = rcu_dereference_protected(rcu, c); \
109 typeof(ptr) p = rcu_dereference_protected(rcu, c); \
/freebsd/tools/tools/drm/radeon/mkregtable/
H A Dmkregtable.c28 const typeof(((type *)0)->member)*__mptr = (ptr); \
425 for (pos = list_entry((head)->next, typeof(*pos), member); \
427 pos = list_entry(pos->member.next, typeof(*pos), member))
436 for (pos = list_entry((head)->prev, typeof(*pos), member); \
438 pos = list_entry(pos->member.prev, typeof(*pos), member))
449 ((pos) ? : list_entry(head, typeof(*pos), member))
499 for (pos = list_entry((head)->next, typeof(*pos), member), \
500 n = list_entry(pos->member.next, typeof(*pos), member); \
516 n = list_entry(pos->member.next, typeof(*pos), member); \
546 for (pos = list_entry((head)->prev, typeof(*pos), member), \
[all …]
/freebsd/sys/dev/qat/qat_common/
H A Dadf_cfg_bundle.h18 typeof(bund) b = (bund); \
19 typeof(index) i = (index); \
20 typeof(base) s = (base); \
21 typeof(stype) t = (stype); \
22 typeof(rng_per_srv) rps = (rng_per_srv); \
H A Dadf_pfvf_vf_proto.c13 #define FIELD_MAX(_mask) ({ (typeof(_mask))((_mask) >> __bf_shf(_mask)); })
16 ({ ((typeof(_mask))(_val) << __bf_shf(_mask)) & (_mask); })
19 ({ (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); })
/freebsd/sys/contrib/vchiq/interface/compat/
H A Dlist.h207 list_entry(list_next(&(ENTRY)->FIELD), typeof(*(ENTRY)), FIELD)
209 list_entry(list_prev(&(ENTRY)->FIELD), typeof(*(ENTRY)), FIELD)
222 for ((VAR) = list_entry(list_first((HEAD)), typeof(*(VAR)), FIELD); \
224 (VAR) = list_entry(list_next(&(VAR)->FIELD), typeof(*(VAR)), \
228 for ((VAR) = list_entry(list_last((HEAD)), typeof(*(VAR)), FIELD); \
230 (VAR) = list_entry(list_prev(&(VAR)->FIELD), typeof(*(VAR)), \
234 for ((VAR) = list_entry(list_first((HEAD)), typeof(*(VAR)), FIELD); \
237 typeof(*(VAR)), FIELD), 1); \
/freebsd/sys/contrib/libsodium/dist-build/
H A Demscripten.sh84 if (typeof Module === 'undefined') {
88 if (typeof root['sodium'] !== 'object') {
89 if (typeof global === 'object') {
91 } else if (typeof window === 'object') {
95 if (typeof root['sodium'] === 'object' && typeof root['sodium']['totalMemory'] === 'number') {
/freebsd/sys/dev/qat/qat_api/common/include/
H A Dlac_sal.h94 typeof(type) *process = NULL; \
97 (typeof(type) *)SalList_getObject(curr_element); \
146 typeof(type) *process = NULL; \
149 (typeof(type) *)SalList_getObject(curr_element); \
/freebsd/sys/netlink/
H A Dnetlink_ctl.h56 #ifndef typeof
57 #define typeof __typeof macro
63 for (typeof(_attr) _end = (typeof(_attr))_NLA_END(_start, _len), _attr = (_start); \
/freebsd/sys/dev/qat/include/common/
H A Dicp_qat_hal.h165 typeof(handle) handle_ = (handle); \
166 typeof(csr) csr_ = (csr); \
167 typeof(val) val_ = (val); \
181 typeof(handle) handle_ = (handle); \
182 typeof(csr) csr_ = (csr); \
/freebsd/sys/net/route/
H A Dnhop_utils.h58 #ifndef typeof
59 #define typeof __typeof macro
117 typeof(*(_head)->ptr) _tmp; \
147 typeof((_head)->ptr) _new_ptr = (void *)_new_void_ptr; \
148 typeof(*(_head)->ptr) _x, _y; \
/freebsd/sys/contrib/libsodium/test/default/
H A Dpre.js.inc7 if (typeof process === 'object') {
8 if (typeof(FS) === 'object') {
/freebsd/sys/dev/qat/include/
H A Dadf_cfg_device.h43 typeof(id) id_ = (id); \
44 typeof(str) str_; \
/freebsd/sys/dev/enic/
H A Denic_compat.h24 #define typeof __typeof__ macro
39 #define VNIC_ALIGN(x, a) __ALIGN_MASK(x, (typeof(x))(a)-1)
/freebsd/sys/contrib/dev/rtw89/
H A Dcoex.h75 ({typeof(_rssi_) __rssi = (_rssi_); \
80 ({typeof(_rssi_) __rssi = (_rssi_); \
85 ({typeof(_rssi_) __rssi = (_rssi_); \
/freebsd/sys/dev/drm2/
H A Ddrm_linux_list.h283 p ? (tp = hlist_entry(p, typeof(*tp), field)): NULL; p = p->next)
287 p ? (tp = hlist_entry(p, typeof(*tp), field)): NULL; p = p->next)
290 for (; p ? (tp = hlist_entry(p, typeof(*tp), field)): NULL; p = p->next)
295 tpos = hlist_entry((pos), typeof(*(tpos)), member); 1;}); \
/freebsd/sys/contrib/libsodium/src/libsodium/randombytes/
H A Drandombytes.c97 var window_ = 'object' === typeof window ? window : self; in randombytes_stir()
98 … var crypto_ = typeof window_.crypto !== 'undefined' ? window_.crypto : window_.msCrypto; in randombytes_stir()

1234