Home
last modified time | relevance | path

Searched refs:uchar_t (Results 1 – 25 of 89) sorted by relevance

1234

/freebsd-13-stable/sys/contrib/openzfs/lib/libspl/include/
HDatomic.h42 extern void atomic_inc_uchar(volatile uchar_t *);
56 extern void atomic_dec_uchar(volatile uchar_t *);
70 extern void atomic_add_char(volatile uchar_t *, signed char);
85 extern void atomic_sub_char(volatile uchar_t *, signed char);
100 extern void atomic_or_uchar(volatile uchar_t *, uchar_t);
114 extern void atomic_and_uchar(volatile uchar_t *, uchar_t);
136 extern uchar_t atomic_inc_uchar_nv(volatile uchar_t *);
150 extern uchar_t atomic_dec_uchar_nv(volatile uchar_t *);
164 extern uchar_t atomic_add_char_nv(volatile uchar_t *, signed char);
179 extern uchar_t atomic_sub_char_nv(volatile uchar_t *, signed char);
[all …]
/freebsd-13-stable/sys/contrib/openzfs/module/zfs/
HDlzjb.c52 uchar_t *src = s_start; in lzjb_compress()
53 uchar_t *dst = d_start; in lzjb_compress()
54 uchar_t *cpy; in lzjb_compress()
55 uchar_t *copymap = NULL; in lzjb_compress()
62 while (src < (uchar_t *)s_start + s_len) { in lzjb_compress()
64 if (dst >= (uchar_t *)d_start + d_len - 1 - 2 * NBBY) { in lzjb_compress()
73 if (src > (uchar_t *)s_start + s_len - MATCH_MAX) { in lzjb_compress()
84 if (cpy >= (uchar_t *)s_start && cpy != src && in lzjb_compress()
92 *dst++ = (uchar_t)offset; in lzjb_compress()
100 return (dst - (uchar_t *)d_start); in lzjb_compress()
[all …]
HDzle.c40 uchar_t *src = s_start; in zle_compress()
41 uchar_t *dst = d_start; in zle_compress()
42 uchar_t *s_end = src + s_len; in zle_compress()
43 uchar_t *d_end = dst + d_len; in zle_compress()
46 uchar_t *first = src; in zle_compress()
47 uchar_t *len = dst++; in zle_compress()
49 uchar_t *last = src + (256 - n); in zle_compress()
54 uchar_t *last = src + n; in zle_compress()
64 return (src == s_end ? dst - (uchar_t *)d_start : s_len); in zle_compress()
70 uchar_t *src = s_start; in zle_decompress()
[all …]
HDddt_zap.c61 uchar_t *cbuf; in ddt_zap_lookup()
97 uchar_t cbuf[sizeof (dde->dde_phys) + 1]; in ddt_zap_update()
134 uchar_t cbuf[sizeof (dde->dde_phys) + 1]; in ddt_zap_walk()
/freebsd-13-stable/sys/contrib/openzfs/module/unicode/
HDu8_textprep.c112 (s)[(i)] = (uchar_t)(0xE0U | ((uint32_t)(b) & 0xF000U) >> 12); \
113 (s)[(j)] = (uchar_t)(0x80U | ((uint32_t)(b) & 0x0FC0U) >> 6); \
114 (s)[(k)] = (uchar_t)(0x80U | ((uint32_t)(b) & 0x003FU));
161 #define U8_ISASCII(c) (((uchar_t)(c)) < 0x80U)
338 uchar_t *ib; in u8_validate()
339 uchar_t *ibtail; in u8_validate()
340 uchar_t **p; in u8_validate()
341 uchar_t *s1; in u8_validate()
342 uchar_t *s2; in u8_validate()
343 uchar_t f; in u8_validate()
[all …]
HDuconv.c110 static const uchar_t remaining_bytes_tbl[0x100] = {
143 const uchar_t u8_masks_tbl[6] = { 0x00, 0x1f, 0x0f, 0x07, 0x03, 0x01 };
145 static const uchar_t u8_masks_tbl[6] = { 0x00, 0x1f, 0x0f, 0x07, 0x03, 0x01 };
154 static const uchar_t valid_min_2nd_byte[0x100] = {
204 static const uchar_t valid_max_2nd_byte[0x100] = {
425 uchar_t *u8s, size_t *utf8len, int flag) in uconv_u16tou8()
484 u8s[u8l++] = (uchar_t)lo; in uconv_u16tou8()
488 u8s[u8l++] = (uchar_t)(0xc0 | ((lo & 0x07c0) >> 6)); in uconv_u16tou8()
489 u8s[u8l++] = (uchar_t)(0x80 | (lo & 0x003f)); in uconv_u16tou8()
493 u8s[u8l++] = (uchar_t)(0xe0 | ((lo & 0x0f000) >> 12)); in uconv_u16tou8()
[all …]
/freebsd-13-stable/sys/contrib/openzfs/lib/libspl/include/sys/
HDdklabel.h229 uchar_t fkl_type;
230 uchar_t fkl_magich;
231 uchar_t fkl_magicl;
232 uchar_t filler;
239 #define DK_DEVID_SIZE (DK_DEVID_BLKSIZE - ((sizeof (uchar_t) * 7)))
244 uchar_t dkd_rev_hi; /* revision (MSB) */
245 uchar_t dkd_rev_lo; /* revision (LSB) */
246 uchar_t dkd_flags; /* flags (not used yet) */
247 uchar_t dkd_devid[DK_DEVID_SIZE]; /* devid stored here */
248 uchar_t dkd_checksum3; /* checksum (MSB) */
[all …]
HDkstat.h76 uchar_t ks_resv; /* reserved, currently just padding */
79 uchar_t ks_type; /* kstat data type */
81 uchar_t ks_flags; /* kstat flags */
447 uchar_t data_type; /* data type */
692 uchar_t resv; /* reserved */
788 uchar_t, uint_t, uchar_t);
790 const char *, uchar_t, uint_t, uchar_t, zoneid_t);
797 extern void kstat_named_init(kstat_named_t *, const char *, uchar_t);
/freebsd-13-stable/sys/contrib/openzfs/include/sys/crypto/
HDcommon.h76 uchar_t *nonce;
77 uchar_t *authData;
82 uchar_t *pIv;
85 uchar_t *pAAD;
92 uchar_t *pIv;
93 uchar_t *pAAD;
104 uchar_t *pSharedData;
106 uchar_t *pPublicData;
224 uchar_t arr[256];
225 uchar_t i, j;
[all …]
/freebsd-13-stable/sys/contrib/openzfs/lib/libspl/
HDatomic.c40 ATOMIC_INC(uchar, uchar_t) in ATOMIC_INC() argument
56 ATOMIC_DEC(uchar, uchar_t)
72 ATOMIC_ADD(char, uchar_t, signed char)
94 ATOMIC_SUB(char, uchar_t, signed char) in ATOMIC_SUB() argument
116 ATOMIC_OR(uchar, uchar_t) in ATOMIC_OR() argument
132 ATOMIC_AND(uchar, uchar_t)
152 ATOMIC_INC_NV(uchar, uchar_t)
168 ATOMIC_DEC_NV(uchar, uchar_t)
184 ATOMIC_ADD_NV(char, uchar_t, signed char)
206 ATOMIC_SUB_NV(char, uchar_t, signed char) in ATOMIC_SUB_NV() argument
[all …]
/freebsd-13-stable/sys/cddl/compat/opensolaris/sys/
HDkstat.h69 uchar_t data_type;
78 uchar_t type, ulong_t ndata, uchar_t flags);
82 void kstat_named_init(kstat_named_t *, const char *, uchar_t);
/freebsd-13-stable/sys/contrib/openzfs/include/sys/
HDu8_textprep.h54 extern int uconv_u16tou8(const uint16_t *, size_t *, uchar_t *, size_t *, int);
57 extern int uconv_u32tou8(const uint32_t *, size_t *, uchar_t *, size_t *, int);
58 extern int uconv_u8tou16(const uchar_t *, size_t *, uint16_t *, size_t *, int);
59 extern int uconv_u8tou32(const uchar_t *, size_t *, uint32_t *, size_t *, int);
HDnvpair.h170 int nvlist_add_byte(nvlist_t *, const char *, uchar_t);
182 int nvlist_add_byte_array(nvlist_t *, const char *, uchar_t *, uint_t);
204 int nvlist_lookup_byte(nvlist_t *, const char *, uchar_t *);
217 int nvlist_lookup_byte_array(nvlist_t *, const char *, uchar_t **, uint_t *);
248 int nvpair_value_byte(nvpair_t *, uchar_t *);
260 int nvpair_value_byte_array(nvpair_t *, uchar_t **, uint_t *);
288 void fnvlist_add_byte(nvlist_t *, const char *, uchar_t);
301 void fnvlist_add_byte_array(nvlist_t *, const char *, uchar_t *, uint_t);
319 uchar_t fnvlist_lookup_byte(nvlist_t *, const char *);
331 uchar_t *fnvlist_lookup_byte_array(nvlist_t *, const char *, uint_t *);
[all …]
/freebsd-13-stable/sys/cddl/contrib/opensolaris/uts/common/sys/
HDu8_textprep.h55 extern int uconv_u16tou8(const uint16_t *, size_t *, uchar_t *, size_t *, int);
58 extern int uconv_u32tou8(const uint32_t *, size_t *, uchar_t *, size_t *, int);
59 extern int uconv_u8tou16(const uchar_t *, size_t *, uint16_t *, size_t *, int);
60 extern int uconv_u8tou32(const uchar_t *, size_t *, uint32_t *, size_t *, int);
/freebsd-13-stable/sys/contrib/openzfs/module/icp/core/
HDkcf_prov_lib.c40 crypto_uio_data(crypto_data_t *data, uchar_t *buf, int len, cmd_type_t cmd, in crypto_uio_data()
48 uchar_t *datap; in crypto_uio_data()
73 datap = (uchar_t *)(zfs_uio_iovbase(uiop, vec_idx) + offset); in crypto_uio_data()
118 crypto_put_output_data(uchar_t *buf, crypto_data_t *output, int len) in crypto_put_output_data()
126 bcopy(buf, (uchar_t *)(output->cd_raw.iov_base + in crypto_put_output_data()
/freebsd-13-stable/sys/contrib/openzfs/include/os/linux/spl/sys/
HDkstat.h115 uchar_t ks_type; /* kstat data type */
116 uchar_t ks_flags; /* kstat flags */
132 uchar_t data_type; /* data type */
198 const char *ks_name, const char *ks_class, uchar_t ks_type,
199 uint_t ks_ndata, uchar_t ks_flags);
/freebsd-13-stable/sys/contrib/openzfs/include/os/freebsd/spl/sys/
HDkstat.h119 uchar_t ks_type; /* kstat data type */
120 uchar_t ks_flags; /* kstat flags */
142 uchar_t data_type; /* data type */
208 const char *ks_name, const char *ks_class, uchar_t ks_type,
209 uint_t ks_ndata, uchar_t ks_flags);
/freebsd-13-stable/sys/contrib/openzfs/contrib/pyzfs/libzfs_core/test/
HDtest_nvlist.py31 uint64_t, int64_t, boolean_t, uchar_t
223 props = {b"key": uchar_t(1)}
228 props = {b"key": uchar_t(2 ** 8 - 1)}
234 props = {b"key": uchar_t(2 ** 8)}
239 props = {b"key": uchar_t(-1)}
463 props = {b"key": [uchar_t(0), uchar_t(1), uchar_t(2 ** 8 - 1)]}
469 props = {b"key": [uchar_t(0), uchar_t(2 ** 8)]}
474 props = {b"key": [uchar_t(0), uchar_t(-1)]}
/freebsd-13-stable/cddl/contrib/opensolaris/lib/libdtrace/common/
HDdt_buf.h40 uchar_t *dbu_buf; /* buffer base address */
41 uchar_t *dbu_ptr; /* current buffer location */
/freebsd-13-stable/sys/contrib/openzfs/module/nvpair/
HDfnvpair.c143 fnvlist_add_byte(nvlist_t *nvl, const char *name, uchar_t val) in fnvlist_add_byte()
222 fnvlist_add_byte_array(nvlist_t *nvl, const char *name, uchar_t *val, uint_t n) in fnvlist_add_byte_array()
327 uchar_t
330 uchar_t rv; in fnvlist_lookup_byte()
422 uchar_t *
425 uchar_t *rv; in fnvlist_lookup_byte_array()
502 uchar_t
505 uchar_t rv; in fnvpair_value_byte()
/freebsd-13-stable/sys/contrib/openzfs/lib/libnvpair/
HDlibnvpair.c64 DEFINEOP(print_byte, uchar_t);
78 DEFINEARROP(print_byte_array, uchar_t *);
216 NVLIST_PRTFUNC(byte, uchar_t, uchar_t, "0x%2.2x")
261 NVLIST_ARRPRTFUNC(byte_array, uchar_t, uchar_t, "0x%2.2x")
447 NVLIST_PRINTCTL_REPLACE(byte, uchar_t)
472 NVLIST_PRINTCTL_AREPLACE(byte_array, uchar_t *)
614 uchar_t val; in nvlist_print_with_indent()
686 uchar_t *val; in nvlist_print_with_indent()
834 NVP(elem, byte, uchar_t, int, "%u"); in dump_nvlist()
874 NVPA(elem, byte_array, uchar_t, int, "%u"); in dump_nvlist()
[all …]
/freebsd-13-stable/sys/contrib/openzfs/module/icp/include/sys/crypto/
HDioctl.h1195 uchar_t pd_prov_desc[CRYPTO_PROVIDER_DESCR_MAX_LEN];
1196 uchar_t pd_label[CRYPTO_EXT_SIZE_LABEL];
1197 uchar_t pd_manufacturerID[CRYPTO_EXT_SIZE_MANUF];
1198 uchar_t pd_model[CRYPTO_EXT_SIZE_MODEL];
1199 uchar_t pd_serial_number[CRYPTO_EXT_SIZE_SERIAL];
1213 uchar_t pd_time[CRYPTO_EXT_SIZE_TIME];
1272 uchar_t cv_major;
1273 uchar_t cv_minor;
1277 uchar_t pd_prov_desc[CRYPTO_PROVIDER_DESCR_MAX_LEN];
1278 uchar_t pd_label[CRYPTO_EXT_SIZE_LABEL];
[all …]
/freebsd-13-stable/cddl/contrib/opensolaris/lib/libctf/common/
HDctf_lib.c54 int (*z_uncompress)(uchar_t *, ulong_t *, const uchar_t *, ulong_t);
103 …zlib.z_uncompress = (int (*)(uchar_t *, ulong_t *, const uchar_t *, ulong_t)) dlsym(zlib.z_dlp, "u… in ctf_zopen()
280 uchar_t order = ELFDATA2MSB; in ctf_fdopen()
282 uchar_t order = ELFDATA2LSB; in ctf_fdopen()
494 const uchar_t *buf = fp->ctf_base; in ctf_write()
/freebsd-13-stable/sys/contrib/openzfs/include/sys/fm/
HDprotocol.h357 extern uint64_t fm_ena_generate(uint64_t, uchar_t);
358 extern uint64_t fm_ena_generate_cpu(uint64_t, processorid_t, uchar_t);
360 extern uchar_t fm_ena_format_get(uint64_t);
/freebsd-13-stable/sys/contrib/openzfs/include/
HDlibnvpair.h148 NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_byte, uchar_t);
178 NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_byte_array, uchar_t *);

1234