/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | zio_compress.h | 127 size_t s_len, size_t d_len, int); 130 size_t s_len, size_t d_len, int); 133 size_t s_len, size_t d_len, uint8_t *level); 158 size_t d_len, int level); 160 size_t d_len, int level); 162 size_t d_len, int level); 164 size_t d_len, int level); 166 size_t d_len, int level); 168 size_t d_len, int level); 170 size_t d_len, int level); [all …]
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | gzip.c | 52 size_t d_len, int n) in zfs_gzip_compress_buf() argument 55 zlen_t dstlen = d_len; in zfs_gzip_compress_buf() 57 ASSERT(d_len <= s_len); in zfs_gzip_compress_buf() 62 d_len, &dstlen); in zfs_gzip_compress_buf() 66 if (d_len != s_len) in zfs_gzip_compress_buf() 76 if (d_len != s_len) in zfs_gzip_compress_buf() 88 size_t d_len, int n) in zfs_gzip_decompress_buf() argument 91 zlen_t dstlen = d_len; in zfs_gzip_decompress_buf() 93 ASSERT(d_len >= s_len); in zfs_gzip_decompress_buf() 96 if (qat_dc_use_accel(d_len)) { in zfs_gzip_decompress_buf() [all …]
|
H A D | ddt_zap.c | 46 ddt_zap_compress(const void *src, uchar_t *dst, size_t s_len, size_t d_len) in ddt_zap_compress() argument 53 ASSERT3U(d_len, >=, s_len + 1); /* no compression plus version byte */ in ddt_zap_compress() 58 abd_get_from_buf_struct(&dabd, dst, d_len); in ddt_zap_compress() 59 c_len = ci->ci_compress(&sabd, &dabd, s_len, d_len - 1, ci->ci_level); in ddt_zap_compress() 76 ddt_zap_decompress(uchar_t *src, void *dst, size_t s_len, size_t d_len) in ddt_zap_decompress() argument 82 memcpy(dst, src, d_len); in ddt_zap_decompress() 88 abd_get_from_buf_struct(&dabd, dst, d_len); in ddt_zap_decompress() 89 VERIFY0(zio_decompress_data(cpfunc, &sabd, &dabd, s_len, d_len, NULL)); in ddt_zap_decompress() 95 byteswap_uint64_array(dst, d_len); in ddt_zap_decompress()
|
H A D | zio_compress.c | 128 size_t d_len, uint8_t level) in zio_compress_data() argument 155 c_len = ci->ci_compress(src, *dst, s_len, d_len, complevel); in zio_compress_data() 157 if (c_len > d_len) in zio_compress_data() 165 size_t s_len, size_t d_len, uint8_t *level) in zio_decompress_data() argument 173 err = ci->ci_decompress_level(src, dst, s_len, d_len, level); in zio_decompress_data() 175 err = ci->ci_decompress(src, dst, s_len, d_len, ci->ci_level); in zio_decompress_data()
|
H A D | zle.c | 39 size_t d_len, int n) in zfs_zle_compress_buf() argument 44 uchar_t *d_end = dst + d_len; in zfs_zle_compress_buf() 70 size_t d_len, int n) in zfs_zle_decompress_buf() argument 75 uchar_t *d_end = dst + d_len; in zfs_zle_decompress_buf()
|
H A D | lzjb.c | 50 size_t d_len, int n) in zfs_lzjb_compress_buf() argument 65 if (dst >= (uchar_t *)d_start + d_len - 1 - 2 * NBBY) { in zfs_lzjb_compress_buf() 106 size_t s_len, size_t d_len, int n) in zfs_lzjb_decompress_buf() argument 111 uchar_t *d_end = (uchar_t *)d_start + d_len; in zfs_lzjb_decompress_buf()
|
H A D | lz4_zfs.c | 58 size_t d_len, int n) in zfs_lz4_compress_buf() argument 64 ASSERT(d_len >= sizeof (bufsiz)); in zfs_lz4_compress_buf() 67 d_len - sizeof (bufsiz)); in zfs_lz4_compress_buf() 86 size_t d_len, int n) in zfs_lz4_decompress_buf() argument 101 d_start, bufsiz, d_len) < 0); in zfs_lz4_decompress_buf()
|
/freebsd/sys/contrib/openzfs/module/zstd/ |
H A D | zfs_zstd.c | 444 zfs_zstd_compress_wrap(void *s_start, void *d_start, size_t s_len, size_t d_len, in zfs_zstd_compress_wrap() argument 476 pass_len = zfs_lz4_compress(s_start, d_start, s_len, d_len, 0); in zfs_zstd_compress_wrap() 477 if (pass_len < d_len) { in zfs_zstd_compress_wrap() 483 pass_len = zfs_zstd_compress(s_start, d_start, s_len, d_len, in zfs_zstd_compress_wrap() 485 if (pass_len == s_len || pass_len <= 0 || pass_len > d_len) { in zfs_zstd_compress_wrap() 497 return (zfs_zstd_compress(s_start, d_start, s_len, d_len, level)); in zfs_zstd_compress_wrap() 503 zfs_zstd_compress_impl(void *s_start, void *d_start, size_t s_len, size_t d_len, in zfs_zstd_compress_impl() argument 519 ASSERT3U(d_len, >=, sizeof (*hdr)); in zfs_zstd_compress_impl() 520 ASSERT3U(d_len, <=, s_len); in zfs_zstd_compress_impl() 549 d_len - sizeof (*hdr), in zfs_zstd_compress_impl() [all …]
|
/freebsd/contrib/ntp/sntp/libopts/ |
H A D | nested.c | 141 char const * val, size_t d_len) in add_string() argument 144 size_t sz = nm_len + d_len + sizeof(*pNV); in add_string() 154 if (d_len > 0) { in add_string() 157 int ct = (int)d_len; in add_string() 172 pNV->pzName = pNV->v.strVal + d_len + 1; in add_string() 194 char const * val, size_t d_len) in add_bool() argument 202 while (IS_WHITESPACE_CHAR(*val) && (d_len > 0)) { in add_bool() 203 d_len--; val++; in add_bool() 206 if (d_len == 0) in add_bool() 235 char const * val, size_t d_len) in add_number() argument [all …]
|
H A D | proto.h | 309 char const * val, size_t d_len); 313 char const * val, size_t d_len); 317 char const * val, size_t d_len); 321 char * val, size_t d_len);
|
/freebsd/sys/dev/hid/ |
H A D | hms.c | 186 hid_size_t d_len; in hms_identify() local 193 error = hid_get_report_descr(parent, &d_ptr, &d_len); in hms_identify() 196 hid_is_mouse(d_ptr, d_len))) in hms_identify() 242 hid_size_t d_len; in hms_attach() local 253 error = hid_get_report_descr(dev, &d_ptr, &d_len); in hms_attach() 254 set_report_proto = !(error == 0 && d_len == sizeof(hms_boot_desc) && in hms_attach() 271 sc->isize = hid_report_size_max(d_ptr, d_len, hid_input, NULL); in hms_attach()
|
H A D | hconf.c | 211 uint16_t usage, void *d_ptr, hid_size_t d_len) in hconf_parse_feature() argument 215 if (!hidbus_locate(d_ptr, d_len, HID_USAGE2(HUP_DIGITIZERS, usage), in hconf_parse_feature() 222 fc->rlen = hid_report_size(d_ptr, d_len, hid_feature, fc->rid); in hconf_parse_feature() 247 hid_size_t d_len; in hconf_attach() local 252 error = hid_get_report_descr(dev, &d_ptr, &d_len); in hconf_attach() 265 feature_control_descrs[i].usage, d_ptr, d_len); in hconf_attach()
|
H A D | hmt.c | 267 hid_size_t d_len; in hmt_probe() local 274 err = hid_get_report_descr(dev, &d_ptr, &d_len); in hmt_probe() 283 sc->type = hmt_hid_parse(sc, d_ptr, d_len, in hmt_probe() 301 hid_size_t d_len, fsize, rsize; in hmt_attach() local 307 err = hid_get_report_descr(dev, &d_ptr, &d_len); in hmt_attach() 316 fsize = hid_report_size_max(d_ptr, d_len, hid_feature, NULL); in hmt_attach() 655 hmt_hid_parse(struct hmt_softc *sc, const void *d_ptr, hid_size_t d_len, in hmt_hid_parse() argument 703 if (!hidbus_locate(d_ptr, d_len, in hmt_hid_parse() 712 if (hidbus_locate(d_ptr, d_len, in hmt_hid_parse() 719 hidbus_locate(d_ptr, d_len, HID_USAGE2(HUP_MICROSOFT, HUMS_THQA_CERT), in hmt_hid_parse() [all …]
|
H A D | hpen.c | 177 hid_size_t d_len; in hpen_probe() local 193 if (hid_get_report_descr(dev, &d_ptr, &d_len) != 0) in hpen_probe() 196 if (hidbus_is_collection(d_ptr, d_len, in hpen_probe()
|
H A D | hidmap.c | 443 hidmap_probe_hid_descr(void *d_ptr, hid_size_t d_len, uint8_t tlc_index, in hidmap_probe_hid_descr() argument 459 hd = hid_start_parse(d_ptr, d_len, 1 << hid_input); in hidmap_probe_hid_descr() 506 hid_size_t d_len; in hidmap_add_map() local 514 error = hid_get_report_descr(hm->dev, &d_ptr, &d_len); in hidmap_add_map() 522 items = hidmap_probe_hid_descr(d_ptr, d_len, tlc_index, map, in hidmap_add_map() 664 hid_size_t d_len; in hidmap_parse_hid_descr() local 666 error = hid_get_report_descr(hm->dev, &d_ptr, &d_len); in hidmap_parse_hid_descr() 674 hd = hid_start_parse(d_ptr, d_len, 1 << hid_input); in hidmap_parse_hid_descr()
|
H A D | ietp.c | 249 hid_size_t d_len; in ietp_attach() local 260 error = hid_get_report_descr(sc->dev, &d_ptr, &d_len); in ietp_attach() 266 if (hidbus_locate(d_ptr, d_len, HID_USAGE2(HUP_BUTTON, 3), in ietp_attach() 424 hid_size_t d_len; in ietp_iic_identify() local 430 if (hid_get_report_descr(parent, &d_ptr, &d_len) != 0) in ietp_iic_identify() 439 isize = hid_report_size_max(d_ptr, d_len, hid_input, &iid); in ietp_iic_identify()
|
H A D | hidbus.c | 349 hid_size_t d_len; in hidbus_attach() local 361 d_len = devinfo->rdescsize; in hidbus_attach() 362 if (d_len != 0) { in hidbus_attach() 363 d_ptr = malloc(d_len, M_DEVBUF, M_ZERO | M_WAITOK); in hidbus_attach() 364 error = hid_get_rdesc(dev, d_ptr, d_len); in hidbus_attach() 367 d_len = 0; in hidbus_attach() 372 hidbus_fill_rdesc_info(&sc->rdesc, d_ptr, d_len); in hidbus_attach()
|
/freebsd/sys/cddl/boot/zfs/ |
H A D | gzip.c | 85 gzip_decompress(void *s_start, void *d_start, size_t s_len, size_t d_len, in gzip_decompress() argument 88 size_t dstlen = d_len; in gzip_decompress() 90 ASSERT(d_len >= s_len); in gzip_decompress()
|
H A D | zle.c | 35 zle_decompress(void *s_start, void *d_start, size_t s_len, size_t d_len, int n) in zle_decompress() argument 40 unsigned char *d_end = dst + d_len; in zle_decompress()
|
H A D | lzjb.c | 48 lzjb_decompress(void *s_start, void *d_start, size_t s_len, size_t d_len, int n) in lzjb_decompress() argument 52 unsigned char *d_end = (unsigned char *)d_start + d_len; in lzjb_decompress()
|
/freebsd/sys/contrib/openzfs/include/sys/zstd/ |
H A D | zstd.h | 94 size_t d_len, int level); 97 size_t d_len, uint8_t *level); 99 size_t d_len, int n);
|
/freebsd/sys/dev/usb/input/ |
H A D | wmt.c | 287 uint16_t d_len; in wmt_probe() local 300 &d_ptr, &d_len, M_TEMP, uaa->info.bIfaceIndex); in wmt_probe() 306 sc->type = wmt_hid_parse(sc, d_ptr, d_len); in wmt_probe() 730 wmt_hid_parse(struct wmt_softc *sc, const void *d_ptr, uint16_t d_len) in wmt_hid_parse() argument 751 hd = hid_start_parse(d_ptr, d_len, 1 << hid_feature); in wmt_hid_parse() 807 hd = hid_start_parse(d_ptr, d_len, 1 << hid_input); in wmt_hid_parse() 935 sc->isize = hid_report_size_max(d_ptr, d_len, hid_input, NULL); in wmt_hid_parse() 936 sc->report_len = hid_report_size(d_ptr, d_len, hid_input, in wmt_hid_parse() 938 sc->cont_max_rlen = hid_report_size(d_ptr, d_len, hid_feature, in wmt_hid_parse() 941 sc->btn_type_rlen = hid_report_size(d_ptr, d_len, in wmt_hid_parse() [all …]
|
H A D | ums.c | 428 uint16_t d_len; in ums_probe() 446 &d_ptr, &d_len, M_TEMP, uaa->info.bIfaceIndex); in ums_probe() 451 if (hid_is_mouse(d_ptr, d_len)) in ums_probe() 579 uint16_t d_len; in ums_attach() 613 &d_len, M_TEMP, uaa->info.bIfaceIndex); in ums_attach() 620 isize = hid_report_size_max(d_ptr, d_len, hid_input, &sc->sc_iid); in ums_attach() 663 ums_hid_parse(sc, dev, d_ptr, d_len, i); in ums_attach() 427 uint16_t d_len; ums_probe() local 578 uint16_t d_len; ums_attach() local
|
/freebsd/sys/dev/usb/misc/ |
H A D | ugold.c | 194 uint16_t d_len; in ugold_attach() local 223 &d_ptr, &d_len, M_TEMP, uaa->info.bIfaceIndex); in ugold_attach() 228 (void)hid_report_size_max(d_ptr, d_len, hid_input, &sc->sc_report_id); in ugold_attach()
|
/freebsd/sys/cddl/contrib/opensolaris/common/lz4/ |
H A D | lz4.c | 75 lz4_compress(void *s_start, void *d_start, size_t s_len, size_t d_len, in lz4_compress() argument 81 ASSERT(d_len >= sizeof (bufsiz)); in lz4_compress() 84 d_len - sizeof (bufsiz)); in lz4_compress() 106 lz4_decompress(void *s_start, void *d_start, size_t s_len, size_t d_len, in lz4_decompress() argument 125 d_start, bufsiz, d_len) < 0); in lz4_decompress()
|