Searched refs:hdl (Results 1 - 25 of 52) sorted by relevance

123

/freebsd-13-stable/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dkidmap.h38 #define kidmap_get_destroy(hdl) do { } while (0)
39 #define kidmap_get_mappings(hdl) (NULL)
/freebsd-13-stable/sys/cddl/compat/opensolaris/sys/
H A Dkidmap.h38 #define kidmap_get_destroy(hdl) do { } while (0)
39 #define kidmap_get_mappings(hdl) (NULL)
/freebsd-13-stable/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_util.c70 libzfs_errno(libzfs_handle_t *hdl) argument
72 return (hdl->libzfs_error);
76 libzfs_error_action(libzfs_handle_t *hdl) argument
78 return (hdl->libzfs_action);
82 libzfs_error_description(libzfs_handle_t *hdl) argument
84 if (hdl->libzfs_desc[0] != '\0')
85 return (hdl->libzfs_desc);
87 switch (hdl->libzfs_error) {
299 assert(hdl->libzfs_error == 0);
306 zfs_error_aux(libzfs_handle_t *hdl, cons argument
320 zfs_verror(libzfs_handle_t *hdl, int error, const char *fmt, va_list ap) argument
347 zfs_error(libzfs_handle_t *hdl, int error, const char *msg) argument
354 zfs_error_fmt(libzfs_handle_t *hdl, int error, const char *fmt, ...) argument
368 zfs_common_error(libzfs_handle_t *hdl, int error, const char *fmt, va_list ap) argument
398 zfs_standard_error(libzfs_handle_t *hdl, int error, const char *msg) argument
405 zfs_standard_error_fmt(libzfs_handle_t *hdl, int error, const char *fmt, ...) argument
496 zfs_setprop_error(libzfs_handle_t *hdl, zfs_prop_t prop, int err, char *errbuf) argument
608 zpool_standard_error(libzfs_handle_t *hdl, int error, const char *msg) argument
615 zpool_standard_error_fmt(libzfs_handle_t *hdl, int error, const char *fmt, ...) argument
749 no_memory(libzfs_handle_t *hdl) argument
758 zfs_alloc(libzfs_handle_t *hdl, size_t size) argument
773 zfs_asprintf(libzfs_handle_t *hdl, const char *fmt, ...) argument
797 zfs_realloc(libzfs_handle_t *hdl, void *ptr, size_t oldsize, size_t newsize) argument
814 zfs_strdup(libzfs_handle_t *hdl, const char *str) argument
825 libzfs_print_on_error(libzfs_handle_t *hdl, boolean_t printerr) argument
1007 libzfs_handle_t *hdl; local
1089 libzfs_fini(libzfs_handle_t *hdl) argument
1132 zfs_path_to_zhandle(libzfs_handle_t *hdl, const char *path, zfs_type_t argtype) argument
1165 zcmd_alloc_dst_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, size_t len) argument
1184 zcmd_expand_dst_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc) argument
1210 zcmd_write_nvlist_com(libzfs_handle_t *hdl, uint64_t *outnv, uint64_t *outlen, nvlist_t *nvl) argument
1230 zcmd_write_conf_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, nvlist_t *nvl) argument
1237 zcmd_write_src_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, nvlist_t *nvl) argument
1247 zcmd_read_dst_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, nvlist_t **nvlp) argument
1478 str2shift(libzfs_handle_t *hdl, const char *buf) argument
1519 zfs_nicestrtonum(libzfs_handle_t *hdl, const char *value, uint64_t *num) argument
1604 zprop_parse_value(libzfs_handle_t *hdl, nvpair_t *elem, int prop, zfs_type_t type, nvlist_t *ret, char **svalp, uint64_t *ivalp, const char *errbuf) argument
1757 addlist(libzfs_handle_t *hdl, char *propname, zprop_list_t **listp, zfs_type_t type) argument
1812 zprop_get_list(libzfs_handle_t *hdl, char *props, zprop_list_t **listp, zfs_type_t type) argument
1907 libzfs_handle_t *hdl; member in struct:expand_data
1931 zprop_expand_list(libzfs_handle_t *hdl, zprop_list_t **plp, zfs_type_t type) argument
[all...]
H A Dlibzfs_config.c79 namespace_clear(libzfs_handle_t *hdl) argument
81 if (hdl->libzfs_ns_avl) {
85 while ((cn = uu_avl_teardown(hdl->libzfs_ns_avl,
92 uu_avl_destroy(hdl->libzfs_ns_avl);
93 hdl->libzfs_ns_avl = NULL;
96 if (hdl->libzfs_ns_avlpool) {
97 uu_avl_pool_destroy(hdl->libzfs_ns_avlpool);
98 hdl->libzfs_ns_avlpool = NULL;
106 namespace_reload(libzfs_handle_t *hdl) argument
114 if (hdl
270 libzfs_handle_t *hdl = zhp->zpool_hdl; local
389 zpool_iter(libzfs_handle_t *hdl, zpool_iter_f func, void *data) argument
434 zfs_iter_root(libzfs_handle_t *hdl, zfs_iter_f func, void *data) argument
[all...]
H A Dlibzfs_dataset.c105 zfs_validate_name(libzfs_handle_t *hdl, const char *path, int type, argument
112 if (hdl != NULL)
113 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
119 if (hdl != NULL)
120 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
126 if (hdl != NULL)
127 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
133 if (hdl != NULL)
134 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
140 if (hdl !
235 libzfs_handle_t *hdl = zhp->zfs_hdl; local
264 libzfs_handle_t *hdl = zhp->zfs_hdl; local
278 libzfs_handle_t *hdl = zhp->zfs_hdl; local
312 zpool_free_handles(libzfs_handle_t *hdl) argument
330 libzfs_handle_t *hdl = zhp->zfs_hdl; local
352 libzfs_handle_t *hdl = zhp->zfs_hdl; local
477 make_dataset_handle(libzfs_handle_t *hdl, const char *path) argument
506 make_dataset_handle_zc(libzfs_handle_t *hdl, zfs_cmd_t *zc) argument
683 zfs_open(libzfs_handle_t *hdl, const char *path, int types) argument
800 libzfs_mnttab_init(libzfs_handle_t *hdl) argument
809 libzfs_mnttab_update(libzfs_handle_t *hdl) argument
847 libzfs_mnttab_fini(libzfs_handle_t *hdl) argument
865 libzfs_mnttab_cache(libzfs_handle_t *hdl, boolean_t enable) argument
871 libzfs_mnttab_find(libzfs_handle_t *hdl, const char *fsname, struct mnttab *entry) argument
917 libzfs_mnttab_add(libzfs_handle_t *hdl, const char *special, const char *mountp, const char *mntopts) argument
947 libzfs_mnttab_remove(libzfs_handle_t *hdl, const char *fsname) argument
1004 zfs_valid_proplist(libzfs_handle_t *hdl, zfs_type_t type, nvlist_t *nvl, uint64_t zoned, zfs_handle_t *zhp, zpool_handle_t *zpool_hdl, boolean_t key_params_ok, const char *errbuf) argument
1717 libzfs_handle_t *hdl = zhp->zfs_hdl; local
1751 libzfs_handle_t *hdl = zhp->zfs_hdl; local
1931 libzfs_handle_t *hdl = zhp->zfs_hdl; local
2184 libzfs_handle_t *hdl = zhp->zfs_hdl; local
3391 check_parents(libzfs_handle_t *hdl, const char *path, uint64_t *zoned, boolean_t accept_ancestor, int *prefixlen) argument
3472 zfs_dataset_exists(libzfs_handle_t *hdl, const char *path, zfs_type_t types) argument
3498 create_parents(libzfs_handle_t *hdl, char *target, int prefixlen) argument
3572 zfs_create_ancestors(libzfs_handle_t *hdl, const char *path) argument
3609 zfs_create(libzfs_handle_t *hdl, const char *path, zfs_type_t type, nvlist_t *props) argument
3876 zfs_destroy_snaps_nvl(libzfs_handle_t *hdl, nvlist_t *snaps, boolean_t defer) argument
3928 libzfs_handle_t *hdl = zhp->zfs_hdl; local
4011 libzfs_handle_t *hdl = zhp->zfs_hdl; local
4093 zfs_snapshot_nvl(libzfs_handle_t *hdl, nvlist_t *snaps, nvlist_t *props) argument
4173 zfs_snapshot(libzfs_handle_t *hdl, const char *path, boolean_t recursive, nvlist_t *props) argument
4382 libzfs_handle_t *hdl = zhp->zfs_hdl; local
4613 libzfs_handle_t *hdl = zhp->zfs_hdl; local
4739 zfs_smb_acl_mgmt(libzfs_handle_t *hdl, char *dataset, char *path, zfs_smb_acl_op_t cmd, char *resource1, char *resource2) argument
4789 zfs_smb_acl_add(libzfs_handle_t *hdl, char *dataset, char *path, char *resource) argument
4797 zfs_smb_acl_remove(libzfs_handle_t *hdl, char *dataset, char *path, char *resource) argument
4805 zfs_smb_acl_purge(libzfs_handle_t *hdl, char *dataset, char *path) argument
4812 zfs_smb_acl_rename(libzfs_handle_t *hdl, char *dataset, char *path, char *oldname, char *newname) argument
4825 libzfs_handle_t *hdl = zhp->zfs_hdl; local
4933 libzfs_handle_t *hdl = zhp->zfs_hdl; local
5035 libzfs_handle_t *hdl = zhp->zfs_hdl; local
5112 libzfs_handle_t *hdl = zhp->zfs_hdl; local
5178 libzfs_handle_t *hdl = zhp->zfs_hdl; local
5237 libzfs_handle_t *hdl = zhp->zfs_hdl; local
[all...]
H A Dlibzfs_pool.c76 libzfs_handle_t *hdl = zhp->zpool_hdl; local
80 if (zcmd_alloc_dst_nvlist(hdl, &zc, 0) != 0)
83 while (zfs_ioctl(hdl, ZFS_IOC_POOL_GET_PROPS, &zc) != 0) {
85 if (zcmd_expand_dst_nvlist(hdl, &zc) != 0) {
95 if (zcmd_read_dst_nvlist(hdl, &zc, &zhp->zpool_props) != 0) {
459 zpool_valid_proplist(libzfs_handle_t *hdl, const char *poolname, argument
473 (void) no_memory(hdl);
489 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
492 (void) zfs_error(hdl, EZFS_BADPROP, errbuf);
497 zfs_error_aux(hdl, dgettex
811 libzfs_handle_t *hdl = zhp->zpool_hdl; local
968 zpool_name_valid(libzfs_handle_t *hdl, boolean_t isopen, const char *pool) argument
1067 zpool_open_canfail(libzfs_handle_t *hdl, const char *pool) argument
1109 zpool_open_silent(libzfs_handle_t *hdl, const char *pool, zpool_handle_t **ret) argument
1140 zpool_open(libzfs_handle_t *hdl, const char *pool) argument
1273 zpool_create(libzfs_handle_t *hdl, const char *pool, nvlist_t *nvroot, nvlist_t *props, nvlist_t *fsprops) argument
1456 libzfs_handle_t *hdl = zhp->zpool_hdl; local
1497 libzfs_handle_t *hdl = zhp->zpool_hdl; local
1518 libzfs_handle_t *hdl = zhp->zpool_hdl; local
1542 libzfs_handle_t *hdl = zhp->zpool_hdl; local
1692 zpool_rewind_exclaim(libzfs_handle_t *hdl, const char *name, boolean_t dryrun, nvlist_t *config) argument
1744 zpool_explain_recover(libzfs_handle_t *hdl, const char *name, int reason, nvlist_t *config) argument
1831 zpool_import(libzfs_handle_t *hdl, nvlist_t *config, const char *newname, char *altroot) argument
1862 print_vdev_tree(libzfs_handle_t *hdl, const char *name, nvlist_t *nv, int indent) argument
1920 zpool_import_props(libzfs_handle_t *hdl, nvlist_t *config, const char *newname, nvlist_t *props, int flags) argument
2486 libzfs_handle_t *hdl = zhp->zpool_hdl; local
3036 libzfs_handle_t *hdl = zhp->zpool_hdl; local
3121 libzfs_handle_t *hdl = zhp->zpool_hdl; local
3169 libzfs_handle_t *hdl = zhp->zpool_hdl; local
3204 libzfs_handle_t *hdl = zhp->zpool_hdl; local
3267 libzfs_handle_t *hdl = zhp->zpool_hdl; local
3433 libzfs_handle_t *hdl = zhp->zpool_hdl; local
3532 libzfs_handle_t *hdl = zhp->zpool_hdl; local
3774 libzfs_handle_t *hdl = zhp->zpool_hdl; local
3844 libzfs_handle_t *hdl = zhp->zpool_hdl; local
3866 libzfs_handle_t *hdl = zhp->zpool_hdl; local
3900 libzfs_handle_t *hdl = zhp->zpool_hdl; local
3973 libzfs_handle_t *hdl = zhp->zpool_hdl; local
3996 libzfs_handle_t *hdl = zhp->zpool_hdl; local
4015 libzfs_handle_t *hdl = zpool_get_handle(zhp); local
4034 libzfs_handle_t *hdl = zpool_get_handle(zhp); local
4068 zpool_vdev_name(libzfs_handle_t *hdl, zpool_handle_t *zhp, nvlist_t *nv, int name_flags) argument
4196 libzfs_handle_t *hdl = zhp->zpool_hdl; local
4295 libzfs_handle_t *hdl = zhp->zpool_hdl; local
4320 zpool_log_history(libzfs_handle_t *hdl, const char *message) argument
4349 libzfs_handle_t *hdl = zhp->zpool_hdl; local
4459 zpool_events_next(libzfs_handle_t *hdl, nvlist_t **nvp, int *dropped, unsigned flags, int zevent_fd) argument
4519 zpool_events_clear(libzfs_handle_t *hdl, int *count) argument
4539 zpool_events_seek(libzfs_handle_t *hdl, uint64_t eid, int zevent_fd) argument
[all...]
H A Dlibzfs_sendrecv.c74 static int guid_to_name_redact_snaps(libzfs_handle_t *hdl, const char *parent,
446 get_snap_txg(libzfs_handle_t *hdl, const char *fs, const char *snap) argument
455 if (zfs_dataset_exists(hdl, name, ZFS_TYPE_SNAPSHOT)) {
456 zfs_handle_t *zhp = zfs_open(hdl, name, ZFS_TYPE_SNAPSHOT);
657 gather_nvlist(libzfs_handle_t *hdl, const char *fsname, const char *fromsnap, argument
667 zhp = zfs_open(hdl, fsname, ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME);
733 libzfs_handle_t *hdl = zhp->zfs_hdl; local
746 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
748 return (zfs_error(hdl, EZFS_CROSSTARGET, errbuf));
751 if (zfs_dataset_exists(hdl, snapnam
792 libzfs_handle_t *hdl = zhp->zfs_hdl; local
1370 zfs_send_resume_token_to_nvlist(libzfs_handle_t *hdl, const char *token) argument
1558 find_redact_book(libzfs_handle_t *hdl, const char *path, const uint64_t *redact_snap_guids, int num_redact_snaps, char **bookname) argument
1626 zfs_send_resume_impl(libzfs_handle_t *hdl, sendflags_t *flags, int outfd, nvlist_t *resume_nvl) argument
1843 zfs_send_resume(libzfs_handle_t *hdl, sendflags_t *flags, int outfd, const char *resume_token) argument
1873 libzfs_handle_t *hdl = zhp->zfs_hdl; local
2319 name_to_dir_handle(libzfs_handle_t *hdl, const char *snapname) argument
2400 libzfs_handle_t *hdl = zhp->zfs_hdl; local
2592 recv_read(libzfs_handle_t *hdl, int fd, void *buf, int ilen, boolean_t byteswap, zio_cksum_t *zc) argument
2622 recv_read_nvlist(libzfs_handle_t *hdl, int fd, int len, nvlist_t **nvp, boolean_t byteswap, zio_cksum_t *zc) argument
2712 recv_rename(libzfs_handle_t *hdl, const char *name, const char *tryname, int baselen, char *newname, recvflags_t *flags) argument
2785 recv_promote(libzfs_handle_t *hdl, const char *fsname, const char *origin_fsname, recvflags_t *flags) argument
2835 recv_destroy(libzfs_handle_t *hdl, const char *name, int baselen, char *newname, recvflags_t *flags) argument
2972 guid_to_name_redact_snaps(libzfs_handle_t *hdl, const char *parent, uint64_t guid, boolean_t bookmark_ok, uint64_t *redact_snap_guids, uint64_t num_redact_snaps, char *name) argument
3024 guid_to_name(libzfs_handle_t *hdl, const char *parent, uint64_t guid, boolean_t bookmark_ok, char *name) argument
3036 created_before(libzfs_handle_t *hdl, avl_tree_t *avl, uint64_t guid1, uint64_t guid2) argument
3090 recv_fix_encryption_hierarchy(libzfs_handle_t *hdl, const char *top_zfs, nvlist_t *stream_nv, avl_tree_t *stream_avl) argument
3219 recv_incremental_replication(libzfs_handle_t *hdl, const char *tofs, recvflags_t *flags, nvlist_t *stream_nv, avl_tree_t *stream_avl, nvlist_t *renamed) argument
3522 zfs_receive_package(libzfs_handle_t *hdl, int fd, const char *destname, recvflags_t *flags, dmu_replay_record_t *drr, zio_cksum_t *zc, char **top_zfs, nvlist_t *cmdprops) argument
3745 recv_skip(libzfs_handle_t *hdl, int fd, boolean_t byteswap) argument
3849 recv_ecksum_set_aux(libzfs_handle_t *hdl, const char *target_snap, boolean_t resumable, boolean_t checksum) argument
3892 zfs_setup_cmdline_props(libzfs_handle_t *hdl, zfs_type_t type, char *fsname, boolean_t zoned, boolean_t recursive, boolean_t newfs, boolean_t raw, boolean_t toplevel, nvlist_t *recvprops, nvlist_t *cmdprops, nvlist_t *origprops, nvlist_t **oxprops, uint8_t **wkeydata_out, uint_t *wkeylen_out, const char *errbuf) argument
4093 zfs_receive_one(libzfs_handle_t *hdl, int infd, const char *tosnap, const char *originsnap, recvflags_t *flags, dmu_replay_record_t *drr, dmu_replay_record_t *drr_noswap, const char *sendfs, nvlist_t *stream_nv, avl_tree_t *stream_avl, char **top_zfs, const char *finalsnap, nvlist_t *cmdprops) argument
4951 zfs_receive_checkprops(libzfs_handle_t *hdl, nvlist_t *props, const char *errbuf) argument
4999 zfs_receive_impl(libzfs_handle_t *hdl, const char *tosnap, const char *originsnap, recvflags_t *flags, int infd, const char *sendfs, nvlist_t *stream_nv, avl_tree_t *stream_avl, char **top_zfs, const char *finalsnap, nvlist_t *cmdprops) argument
5129 zfs_receive(libzfs_handle_t *hdl, const char *tosnap, nvlist_t *props, recvflags_t *flags, int infd, avl_tree_t *stream_avl) argument
[all...]
H A Dlibzfs_import.c47 pool_active(libzfs_handle_t *hdl, const char *name, uint64_t guid, argument
53 if (zpool_open_silent(hdl, name, &zhp) != 0)
71 refresh_config(libzfs_handle_t *hdl, nvlist_t *config) argument
77 if (zcmd_write_conf_nvlist(hdl, &zc, config) != 0)
82 if (zcmd_alloc_dst_nvlist(hdl, &zc, dstbuf_size) != 0) {
87 while ((err = zfs_ioctl(hdl, ZFS_IOC_POOL_TRYIMPORT,
89 if (zcmd_expand_dst_nvlist(hdl, &zc) != 0) {
100 if (zcmd_read_dst_nvlist(hdl, &zc, &nvl) != 0) {
300 zpool_in_use(libzfs_handle_t *hdl, int fd, pool_state_t *state, char **namestr, argument
316 (void) no_memory(hdl);
[all...]
/freebsd-13-stable/usr.sbin/bluetooth/ath3kfw/
H A Dath3k_hw.h55 extern int ath3k_load_fwfile(struct libusb_device_handle *hdl,
57 extern int ath3k_get_state(struct libusb_device_handle *hdl,
59 extern int ath3k_get_version(struct libusb_device_handle *hdl,
61 extern int ath3k_load_patch(libusb_device_handle *hdl, const char *fw_path);
62 extern int ath3k_load_syscfg(libusb_device_handle *hdl, const char *fw_path);
63 extern int ath3k_set_normal_mode(libusb_device_handle *hdl);
64 extern int ath3k_switch_pid(libusb_device_handle *hdl);
H A Dath3k_hw.c52 ath3k_load_fwfile(struct libusb_device_handle *hdl, argument
68 ret = libusb_control_transfer(hdl,
94 ret = libusb_bulk_transfer(hdl,
114 ath3k_get_state(struct libusb_device_handle *hdl, unsigned char *state) argument
118 ret = libusb_control_transfer(hdl,
139 ath3k_get_version(struct libusb_device_handle *hdl, argument
144 ret = libusb_control_transfer(hdl,
167 ath3k_load_patch(libusb_device_handle *hdl, const char *fw_path) argument
176 ret = ath3k_get_state(hdl, &fw_state);
188 ret = ath3k_get_version(hdl,
238 ath3k_load_syscfg(libusb_device_handle *hdl, const char *fw_path) argument
297 ath3k_set_normal_mode(libusb_device_handle *hdl) argument
338 ath3k_switch_pid(libusb_device_handle *hdl) argument
[all...]
H A Dmain.c151 ath3k_init_ar3012(libusb_device_handle *hdl, const char *fw_path) argument
155 ret = ath3k_load_patch(hdl, fw_path);
161 ret = ath3k_load_syscfg(hdl, fw_path);
167 ret = ath3k_set_normal_mode(hdl);
173 ath3k_switch_pid(hdl);
178 ath3k_init_firmware(libusb_device_handle *hdl, const char *file_prefix) argument
197 ret = ath3k_load_fwfile(hdl, &fw);
246 libusb_device_handle *hdl; local
341 r = libusb_open(dev, &hdl);
351 r = ath3k_get_state(hdl,
[all...]
/freebsd-13-stable/usr.sbin/bluetooth/iwmbtfw/
H A Diwmbt_hw.h76 extern int iwmbt_patch_fwfile(struct libusb_device_handle *hdl,
78 extern int iwmbt_load_fwfile(struct libusb_device_handle *hdl,
80 extern int iwmbt_enter_manufacturer(struct libusb_device_handle *hdl);
81 extern int iwmbt_exit_manufacturer(struct libusb_device_handle *hdl,
83 extern int iwmbt_get_version(struct libusb_device_handle *hdl,
85 extern int iwmbt_get_boot_params(struct libusb_device_handle *hdl,
87 extern int iwmbt_intel_reset(struct libusb_device_handle *hdl,
89 extern int iwmbt_load_ddc(struct libusb_device_handle *hdl,
91 extern int iwmbt_set_event_mask(struct libusb_device_handle *hdl);
H A Dmain.c206 iwmbt_patch_firmware(libusb_device_handle *hdl, const char *firmware_path) argument
220 ret = iwmbt_patch_fwfile(hdl, &fw);
231 iwmbt_init_firmware(libusb_device_handle *hdl, const char *firmware_path, argument
246 ret = iwmbt_load_fwfile(hdl, &fw, boot_param);
257 iwmbt_init_ddc(libusb_device_handle *hdl, const char *ddc_path) argument
271 ret = iwmbt_load_ddc(hdl, &ddc);
321 libusb_device_handle *hdl = NULL; local
388 r = libusb_open(dev, &hdl);
395 r = libusb_kernel_driver_active(hdl, 0);
407 r = iwmbt_get_version(hdl,
[all...]
H A Diwmbt_hw.c51 iwmbt_send_fragment(struct libusb_device_handle *hdl, argument
64 ret = libusb_bulk_transfer(hdl,
78 ret = libusb_bulk_transfer(hdl,
95 iwmbt_hci_command(struct libusb_device_handle *hdl, struct iwmbt_hci_cmd *cmd, argument
100 ret = libusb_control_transfer(hdl,
115 ret = libusb_interrupt_transfer(hdl,
130 iwmbt_patch_fwfile(struct libusb_device_handle *hdl, argument
190 ret = libusb_control_transfer(hdl,
244 ret = libusb_interrupt_transfer(hdl,
273 iwmbt_load_fwfile(struct libusb_device_handle *hdl, argument
364 iwmbt_enter_manufacturer(struct libusb_device_handle *hdl) argument
392 iwmbt_exit_manufacturer(struct libusb_device_handle *hdl, int mode) argument
432 iwmbt_get_version(struct libusb_device_handle *hdl, struct iwmbt_version *version) argument
466 iwmbt_get_boot_params(struct libusb_device_handle *hdl, struct iwmbt_boot_params *params) argument
500 iwmbt_intel_reset(struct libusb_device_handle *hdl, uint32_t boot_param) argument
539 iwmbt_load_ddc(struct libusb_device_handle *hdl, const struct iwmbt_firmware *ddc) argument
582 iwmbt_set_event_mask(struct libusb_device_handle *hdl) argument
[all...]
/freebsd-13-stable/sys/contrib/openzfs/cmd/zed/agents/
H A Dfmd_api.c98 fmd_hdl_register(fmd_hdl_t *hdl, int version, const fmd_hdl_info_t *mip) argument
100 fmd_module_t *mp = (fmd_module_t *)hdl;
114 fmd_hdl_debug(hdl, "register module");
120 fmd_hdl_unregister(fmd_hdl_t *hdl) argument
122 fmd_module_t *mp = (fmd_module_t *)hdl;
127 fmd_hdl_debug(hdl, "%s: %llu", msp->ms_accepted.fmds_name,
130 fmd_hdl_debug(hdl, "%s: %llu", msp->ms_caseopen.fmds_name,
132 fmd_hdl_debug(hdl, "%s: %llu", msp->ms_casesolved.fmds_name,
134 fmd_hdl_debug(hdl, "%s: %llu", msp->ms_caseclosed.fmds_name,
143 fmd_hdl_debug(hdl, "
160 fmd_hdl_setspecific(fmd_hdl_t *hdl, void *spec) argument
172 fmd_hdl_getspecific(fmd_hdl_t *hdl) argument
180 fmd_hdl_alloc(fmd_hdl_t *hdl, size_t size, int flags) argument
186 fmd_hdl_zalloc(fmd_hdl_t *hdl, size_t size, int flags) argument
192 fmd_hdl_free(fmd_hdl_t *hdl, void *data, size_t size) argument
201 fmd_hdl_debug(fmd_hdl_t *hdl, const char *format, ...) argument
218 fmd_prop_get_int32(fmd_hdl_t *hdl, const char *name) argument
235 fmd_prop_get_int64(fmd_hdl_t *hdl, const char *name) argument
254 fmd_stat_create(fmd_hdl_t *hdl, uint_t flags, uint_t nstats, fmd_stat_t *statv) argument
269 fmd_case_open(fmd_hdl_t *hdl, void *data) argument
294 fmd_case_solve(fmd_hdl_t *hdl, fmd_case_t *cp) argument
312 fmd_case_close(fmd_hdl_t *hdl, fmd_case_t *cp) argument
332 fmd_case_uuresolved(fmd_hdl_t *hdl, const char *uuid) argument
338 fmd_case_solved(fmd_hdl_t *hdl, fmd_case_t *cp) argument
344 fmd_case_add_ereport(fmd_hdl_t *hdl, fmd_case_t *cp, fmd_event_t *ep) argument
408 fmd_case_add_suspect(fmd_hdl_t *hdl, fmd_case_t *cp, nvlist_t *fault) argument
444 fmd_case_setspecific(fmd_hdl_t *hdl, fmd_case_t *cp, void *data) argument
450 fmd_case_getspecific(fmd_hdl_t *hdl, fmd_case_t *cp) argument
456 fmd_buf_create(fmd_hdl_t *hdl, fmd_case_t *cp, const char *name, size_t size) argument
467 fmd_buf_read(fmd_hdl_t *hdl, fmd_case_t *cp, const char *name, void *buf, size_t size) argument
478 fmd_buf_write(fmd_hdl_t *hdl, fmd_case_t *cp, const char *name, const void *buf, size_t size) argument
491 fmd_serd_create(fmd_hdl_t *hdl, const char *name, uint_t n, hrtime_t t) argument
505 fmd_serd_destroy(fmd_hdl_t *hdl, const char *name) argument
515 fmd_serd_exists(fmd_hdl_t *hdl, const char *name) argument
523 fmd_serd_reset(fmd_hdl_t *hdl, const char *name) argument
539 fmd_serd_record(fmd_hdl_t *hdl, const char *name, fmd_event_t *ep) argument
561 fmd_hdl_t *hdl = ftp->ft_hdl; local
583 fmd_timer_install(fmd_hdl_t *hdl, void *arg, fmd_event_t *ep, hrtime_t delta) argument
613 fmd_timer_remove(fmd_hdl_t *hdl, fmd_timer_t *ftp) argument
625 fmd_nvl_create_fault(fmd_hdl_t *hdl, const char *class, uint8_t certainty, nvlist_t *asru, nvlist_t *fru, nvlist_t *resource) argument
689 fmd_nvl_class_match(fmd_hdl_t *hdl, nvlist_t *nvl, const char *pattern) argument
699 fmd_nvl_alloc(fmd_hdl_t *hdl, int flags) argument
726 fmd_module_initialized(fmd_hdl_t *hdl) argument
739 fmd_module_recv(fmd_hdl_t *hdl, nvlist_t *nvl, const char *class) argument
[all...]
H A Dzfs_diagnosis.c122 zfs_case_serialize(fmd_hdl_t *hdl, zfs_case_t *zcp) argument
131 zfs_case_unserialize(fmd_hdl_t *hdl, fmd_case_t *cp) argument
135 zcp = fmd_hdl_zalloc(hdl, sizeof (zfs_case_t), FMD_SLEEP);
138 fmd_buf_read(hdl, cp, CASE_DATA, &zcp->zc_data,
142 fmd_hdl_free(hdl, zcp, sizeof (zfs_case_t));
153 zcp->zc_remove_timer = fmd_timer_install(hdl, zcp,
159 fmd_case_setspecific(hdl, cp, zcp);
311 zfs_purge_cases(fmd_hdl_t *hdl) argument
315 libzfs_handle_t *zhdl = fmd_hdl_getspecific(hdl);
352 fmd_case_close(hdl, zc
376 zfs_case_solve(fmd_hdl_t *hdl, zfs_case_t *zcp, const char *faultname, boolean_t checkunusable) argument
429 zfs_ereport_when(fmd_hdl_t *hdl, nvlist_t *nvl, er_timeval_t *when) argument
448 zfs_fm_recv(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, const char *class) argument
859 zfs_fm_timeout(fmd_hdl_t *hdl, id_t id, void *data) argument
872 zfs_fm_close(fmd_hdl_t *hdl, fmd_case_t *cs) argument
893 zfs_fm_gc(fmd_hdl_t *hdl) argument
920 _zfs_diagnosis_init(fmd_hdl_t *hdl) argument
957 _zfs_diagnosis_fini(fmd_hdl_t *hdl) argument
[all...]
H A Dzfs_retire.c60 zfs_retire_clear_data(fmd_hdl_t *hdl, zfs_retire_data_t *zdp) argument
66 fmd_hdl_free(hdl, zrp, sizeof (zfs_retire_repaired_t));
184 replace_with_spare(fmd_hdl_t *hdl, zpool_handle_t *zhp, nvlist_t *vdev) argument
210 replacement = fmd_nvl_alloc(hdl, FMD_SLEEP);
242 fmd_hdl_debug(hdl, "zpool_vdev_replace '%s' with spare '%s'",
266 zfs_vdev_repair(fmd_hdl_t *hdl, nvlist_t *nvl) argument
268 zfs_retire_data_t *zdp = fmd_hdl_getspecific(hdl);
293 zrp = fmd_hdl_alloc(hdl, sizeof (zfs_retire_repaired_t), FMD_SLEEP);
299 fmd_hdl_debug(hdl, "marking repaired vdev %llu on pool %llu",
305 zfs_retire_recv(fmd_hdl_t *hdl, fmd_event_ argument
535 _zfs_retire_init(fmd_hdl_t *hdl) argument
555 _zfs_retire_fini(fmd_hdl_t *hdl) argument
[all...]
/freebsd-13-stable/sys/contrib/openzfs/cmd/zstream/
H A Dzstream_token.c60 libzfs_handle_t *hdl = libzfs_init(); local
63 zfs_send_resume_token_to_nvlist(hdl, resume_token);
68 libzfs_error_description(hdl));
69 libzfs_fini(hdl);
76 libzfs_fini(hdl);
/freebsd-13-stable/sys/contrib/openzfs/lib/libzutil/
H A Dzutil_import.h51 int label_paths(libpc_handle_t *hdl, nvlist_t *label, char **path,
53 int zpool_find_import_blkid(libpc_handle_t *hdl, pthread_mutex_t *lock,
56 void * zutil_alloc(libpc_handle_t *hdl, size_t size);
57 char *zutil_strdup(libpc_handle_t *hdl, const char *str);
H A Dzutil_import.c74 zutil_error_aux(libpc_handle_t *hdl, const char *fmt, ...) argument
80 (void) vsnprintf(hdl->lpc_desc, sizeof (hdl->lpc_desc), fmt, ap);
81 hdl->lpc_desc_active = B_TRUE;
87 zutil_verror(libpc_handle_t *hdl, const char *error, const char *fmt, argument
94 if (hdl->lpc_desc_active)
95 hdl->lpc_desc_active = B_FALSE;
97 hdl->lpc_desc[0] = '\0';
99 if (hdl->lpc_printerr) {
100 if (hdl
109 zutil_error_fmt(libpc_handle_t *hdl, const char *error, const char *fmt, ...) argument
123 zutil_error(libpc_handle_t *hdl, const char *error, const char *msg) argument
129 zutil_no_memory(libpc_handle_t *hdl) argument
136 zutil_alloc(libpc_handle_t *hdl, size_t size) argument
147 zutil_strdup(libpc_handle_t *hdl, const char *str) argument
196 fix_paths(libpc_handle_t *hdl, nvlist_t *nv, name_entry_t *names) argument
277 add_config(libpc_handle_t *hdl, pool_list_t *pl, const char *path, int order, int num_labels, nvlist_t *config) argument
410 zutil_pool_active(libpc_handle_t *hdl, const char *name, uint64_t guid, boolean_t *isactive) argument
422 zutil_refresh_config(libpc_handle_t *hdl, nvlist_t *tryconfig) argument
455 get_configs(libpc_handle_t *hdl, pool_list_t *pl, boolean_t active_ok, nvlist_t *policy) argument
1124 label_paths_impl(libpc_handle_t *hdl, nvlist_t *nvroot, uint64_t pool_guid, uint64_t vdev_guid, char **path, char **devid) argument
1168 label_paths(libpc_handle_t *hdl, nvlist_t *label, char **path, char **devid) argument
1187 zpool_find_import_scan_add_slice(libpc_handle_t *hdl, pthread_mutex_t *lock, avl_tree_t *cache, const char *path, const char *name, int order) argument
1216 zpool_find_import_scan_dir(libpc_handle_t *hdl, pthread_mutex_t *lock, avl_tree_t *cache, const char *dir, int order) argument
1259 zpool_find_import_scan_path(libpc_handle_t *hdl, pthread_mutex_t *lock, avl_tree_t *cache, const char *dir, int order) argument
1304 zpool_find_import_scan(libpc_handle_t *hdl, pthread_mutex_t *lock, avl_tree_t **slice_cache, const char * const *dir, size_t dirs) argument
1369 zpool_find_import_impl(libpc_handle_t *hdl, importargs_t *iarg, pthread_mutex_t *lock, avl_tree_t *cache) argument
1494 discover_cached_paths(libpc_handle_t *hdl, nvlist_t *nv, avl_tree_t *cache, pthread_mutex_t *lock) argument
1525 zpool_find_import_cached(libpc_handle_t *hdl, importargs_t *iarg) argument
1699 zpool_find_import(libpc_handle_t *hdl, importargs_t *iarg) argument
1740 zpool_search_import(void *hdl, importargs_t *import, const pool_config_ops_t *pco) argument
1783 zpool_find_config(void *hdl, const char *target, nvlist_t **configp, importargs_t *args, const pool_config_ops_t *pco) argument
[all...]
/freebsd-13-stable/sys/contrib/openzfs/lib/libzfsbootenv/
H A Dlzbe_device.c30 libzfs_handle_t *hdl; local
40 if ((hdl = libzfs_init()) == NULL)
43 zphdl = zpool_open(hdl, pool);
45 libzfs_fini(hdl);
101 fprintf(stderr, "%s\n", libzfs_error_description(hdl));
105 libzfs_fini(hdl);
115 libzfs_handle_t *hdl; local
124 if ((hdl = libzfs_init()) == NULL)
127 zphdl = zpool_open(hdl, pool);
129 libzfs_fini(hdl);
[all...]
/freebsd-13-stable/sys/contrib/openzfs/module/zfs/
H A Dsa.c133 static int sa_build_index(sa_handle_t *hdl, sa_buf_type_t buftype);
140 static int sa_modify_attrs(sa_handle_t *hdl, sa_attr_type_t newattr,
219 sa_handle_t *hdl = buf; local
221 mutex_init(&hdl->sa_lock, NULL, MUTEX_DEFAULT, NULL);
229 sa_handle_t *hdl = buf; local
230 mutex_destroy(&hdl->sa_lock);
300 sa_get_spill(sa_handle_t *hdl) argument
303 if (hdl->sa_spill == NULL) {
304 if ((rc = dmu_spill_hold_existing(hdl->sa_bonus, NULL,
305 &hdl
321 sa_attr_op(sa_handle_t *hdl, sa_bulk_attr_t *bulk, int count, sa_data_op_t data_op, dmu_tx_t *tx) argument
492 sa_resize_spill(sa_handle_t *hdl, uint32_t size, dmu_tx_t *tx) argument
659 sa_build_layouts(sa_handle_t *hdl, sa_bulk_attr_t *attr_desc, int attr_count, dmu_tx_t *tx) argument
1226 sa_handle_t *hdl = userp; local
1233 sa_byteswap(sa_handle_t *hdl, sa_buf_type_t buftype) argument
1274 sa_build_index(sa_handle_t *hdl, sa_buf_type_t buftype) argument
1353 sa_spill_rele(sa_handle_t *hdl) argument
1366 sa_handle_destroy(sa_handle_t *hdl) argument
1465 sa_lookup_impl(sa_handle_t *hdl, sa_bulk_attr_t *bulk, int count) argument
1473 sa_lookup_locked(sa_handle_t *hdl, sa_attr_type_t attr, void *buf, uint32_t buflen) argument
1492 sa_lookup(sa_handle_t *hdl, sa_attr_type_t attr, void *buf, uint32_t buflen) argument
1505 sa_lookup_uio(sa_handle_t *hdl, sa_attr_type_t attr, zfs_uio_t *uio) argument
1532 sa_add_projid(sa_handle_t *hdl, dmu_tx_t *tx, uint64_t projid) argument
1774 sa_attr_register_sync(sa_handle_t *hdl, dmu_tx_t *tx) argument
1816 sa_replace_all_by_template_locked(sa_handle_t *hdl, sa_bulk_attr_t *attr_desc, int attr_count, dmu_tx_t *tx) argument
1827 sa_replace_all_by_template(sa_handle_t *hdl, sa_bulk_attr_t *attr_desc, int attr_count, dmu_tx_t *tx) argument
1847 sa_modify_attrs(sa_handle_t *hdl, sa_attr_type_t newattr, sa_data_op_t action, sa_data_locator_t *locator, void *datastart, uint16_t buflen, dmu_tx_t *tx) argument
1994 sa_bulk_update_impl(sa_handle_t *hdl, sa_bulk_attr_t *bulk, int count, dmu_tx_t *tx) argument
2041 sa_update(sa_handle_t *hdl, sa_attr_type_t type, void *buf, uint32_t buflen, dmu_tx_t *tx) argument
2065 sa_size(sa_handle_t *hdl, sa_attr_type_t attr, int *size) argument
2087 sa_bulk_lookup_locked(sa_handle_t *hdl, sa_bulk_attr_t *attrs, int count) argument
2095 sa_bulk_lookup(sa_handle_t *hdl, sa_bulk_attr_t *attrs, int count) argument
2107 sa_bulk_update(sa_handle_t *hdl, sa_bulk_attr_t *attrs, int count, dmu_tx_t *tx) argument
2119 sa_remove(sa_handle_t *hdl, sa_attr_type_t attr, dmu_tx_t *tx) argument
2131 sa_object_info(sa_handle_t *hdl, dmu_object_info_t *doi) argument
2137 sa_object_size(sa_handle_t *hdl, uint32_t *blksize, u_longlong_t *nblocks) argument
2144 sa_set_userp(sa_handle_t *hdl, void *ptr) argument
2150 sa_get_db(sa_handle_t *hdl) argument
2156 sa_get_userdata(sa_handle_t *hdl) argument
2178 sa_handle_object(sa_handle_t *hdl) argument
2211 sa_handle_lock(sa_handle_t *hdl) argument
2218 sa_handle_unlock(sa_handle_t *hdl) argument
[all...]
/freebsd-13-stable/sys/contrib/openzfs/lib/libzfs/os/linux/
H A Dlibzfs_pool_os.c61 zpool_relabel_disk(libzfs_handle_t *hdl, const char *path, const char *msg) argument
66 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, "cannot "
68 return (zfs_error(hdl, EZFS_OPENFAILED, msg));
84 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, "cannot "
86 return (zfs_error(hdl, EZFS_NOCAP, msg));
212 zpool_label_disk(libzfs_handle_t *hdl, zpool_handle_t *zhp, const char *name) argument
249 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, "cannot "
251 return (zfs_error(hdl, EZFS_OPENFAILED, errbuf));
260 (void) no_memory(hdl);
263 zfs_error_aux(hdl, dgettex
[all...]
/freebsd-13-stable/sys/contrib/openzfs/lib/libzfs/os/freebsd/
H A Dlibzfs_compat.c202 zfs_ioctl(libzfs_handle_t *hdl, int request, zfs_cmd_t *zc) argument
204 return (zfs_ioctl_fd(hdl->libzfs_fd, request, zc));
230 zpool_relabel_disk(libzfs_handle_t *hdl, const char *path, const char *msg) argument
236 zpool_label_disk(libzfs_handle_t *hdl, zpool_handle_t *zhp, const char *name) argument
253 libzfs_handle_t *hdl = zhp->zfs_hdl; local
269 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
271 return (zfs_error(hdl, EZFS_BADTYPE, errbuf));
273 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
275 return (zfs_error(hdl, EZFS_BADTYPE, errbuf));
277 zfs_error_aux(hdl, dgettex
302 zpool_nextboot(libzfs_handle_t *hdl, uint64_t pool_guid, uint64_t dev_guid, const char *command) argument
[all...]
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_events/
H A Dereports.c153 libzfs_handle_t *hdl; local
156 hdl = libzfs_init();
157 if (hdl == NULL) {
164 libzfs_fini(hdl);
168 ereports_dump(hdl, fd);
171 libzfs_fini(hdl);

Completed in 227 milliseconds

123