/freebsd/sys/contrib/openzfs/cmd/zed/agents/ |
H A D | fmd_api.c | 99 fmd_hdl_register(fmd_hdl_t *hdl, int version, const fmd_hdl_info_t *mip) in fmd_hdl_register() argument 102 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_hdl_register() 116 fmd_hdl_debug(hdl, "register module"); in fmd_hdl_register() 122 fmd_hdl_unregister(fmd_hdl_t *hdl) in fmd_hdl_unregister() argument 124 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_hdl_unregister() 129 fmd_hdl_debug(hdl, "%s: %llu", msp->ms_accepted.fmds_name, in fmd_hdl_unregister() 132 fmd_hdl_debug(hdl, "%s: %llu", msp->ms_caseopen.fmds_name, in fmd_hdl_unregister() 134 fmd_hdl_debug(hdl, "%s: %llu", msp->ms_casesolved.fmds_name, in fmd_hdl_unregister() 136 fmd_hdl_debug(hdl, "%s: %llu", msp->ms_caseclosed.fmds_name, in fmd_hdl_unregister() 145 fmd_hdl_debug(hdl, "%s: %llu", in fmd_hdl_unregister() [all …]
|
H A D | zfs_diagnosis.c | 136 static void zfs_purge_cases(fmd_hdl_t *hdl); 151 zfs_case_unserialize(fmd_hdl_t *hdl, fmd_case_t *cp) in zfs_case_unserialize() argument 155 zcp = fmd_hdl_zalloc(hdl, sizeof (zfs_case_t), FMD_SLEEP); in zfs_case_unserialize() 158 fmd_buf_read(hdl, cp, CASE_DATA, &zcp->zc_data, in zfs_case_unserialize() 162 fmd_hdl_free(hdl, zcp, sizeof (zfs_case_t)); in zfs_case_unserialize() 173 zcp->zc_remove_timer = fmd_timer_install(hdl, zcp, in zfs_case_unserialize() 179 fmd_case_setspecific(hdl, cp, zcp); in zfs_case_unserialize() 188 zfs_other_serd_cases(fmd_hdl_t *hdl, const zfs_case_data_t *zfs_case) in zfs_other_serd_cases() argument 203 fmd_serd_gc(hdl); in zfs_other_serd_cases() 204 zfs_purge_cases(hdl); in zfs_other_serd_cases() [all …]
|
H A D | zfs_retire.c | 62 zfs_retire_clear_data(fmd_hdl_t *hdl, zfs_retire_data_t *zdp) in zfs_retire_clear_data() argument 68 fmd_hdl_free(hdl, zrp, sizeof (zfs_retire_repaired_t)); in zfs_retire_clear_data() 246 replace_with_spare(fmd_hdl_t *hdl, zpool_handle_t *zhp, nvlist_t *vdev) in replace_with_spare() argument 272 replacement = fmd_nvl_alloc(hdl, FMD_SLEEP); in replace_with_spare() 304 fmd_hdl_debug(hdl, "zpool_vdev_replace '%s' with spare '%s'", in replace_with_spare() 327 zfs_vdev_repair(fmd_hdl_t *hdl, nvlist_t *nvl) in zfs_vdev_repair() argument 329 zfs_retire_data_t *zdp = fmd_hdl_getspecific(hdl); in zfs_vdev_repair() 354 zrp = fmd_hdl_alloc(hdl, sizeof (zfs_retire_repaired_t), FMD_SLEEP); in zfs_vdev_repair() 360 fmd_hdl_debug(hdl, "marking repaired vdev %llu on pool %llu", in zfs_vdev_repair() 365 zfs_retire_recv(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, in zfs_retire_recv() argument [all …]
|
/freebsd/sys/contrib/openzfs/lib/libzfs/ |
H A D | libzfs_util.c | 74 libzfs_errno(libzfs_handle_t *hdl) in libzfs_errno() argument 76 return (hdl->libzfs_error); in libzfs_errno() 80 libzfs_error_action(libzfs_handle_t *hdl) in libzfs_error_action() argument 82 return (hdl->libzfs_action); in libzfs_error_action() 86 libzfs_error_description(libzfs_handle_t *hdl) in libzfs_error_description() argument 88 if (hdl->libzfs_desc[0] != '\0') in libzfs_error_description() 89 return (hdl->libzfs_desc); in libzfs_error_description() 91 switch (hdl->libzfs_error) { in libzfs_error_description() 329 assert(hdl->libzfs_error == 0); in libzfs_error_description() 335 zfs_error_aux(libzfs_handle_t *hdl, const char *fmt, ...) in zfs_error_aux() argument [all …]
|
H A D | libzfs_config.c | 77 namespace_clear(libzfs_handle_t *hdl) in namespace_clear() argument 79 if (hdl->libzfs_ns_avl) { in namespace_clear() 83 while ((cn = uu_avl_teardown(hdl->libzfs_ns_avl, in namespace_clear() 90 uu_avl_destroy(hdl->libzfs_ns_avl); in namespace_clear() 91 hdl->libzfs_ns_avl = NULL; in namespace_clear() 94 if (hdl->libzfs_ns_avlpool) { in namespace_clear() 95 uu_avl_pool_destroy(hdl->libzfs_ns_avlpool); in namespace_clear() 96 hdl->libzfs_ns_avlpool = NULL; in namespace_clear() 104 namespace_reload(libzfs_handle_t *hdl) in namespace_reload() argument 112 if (hdl->libzfs_ns_gen == 0) { in namespace_reload() [all …]
|
H A D | libzfs_pool.c | 78 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_get_all_props() local 86 zcmd_write_src_nvlist(hdl, &zc, innvl); in zpool_get_all_props() 89 zcmd_alloc_dst_nvlist(hdl, &zc, 0); in zpool_get_all_props() 91 while (zfs_ioctl(hdl, ZFS_IOC_POOL_GET_PROPS, &zc) != 0) { in zpool_get_all_props() 93 zcmd_expand_dst_nvlist(hdl, &zc); in zpool_get_all_props() 100 if (zcmd_read_dst_nvlist(hdl, &zc, &zhp->zpool_props) != 0) { in zpool_get_all_props() 526 zpool_valid_proplist(libzfs_handle_t *hdl, const char *poolname, in zpool_valid_proplist() argument 541 (void) no_memory(hdl); in zpool_valid_proplist() 553 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, "'%s' " in zpool_valid_proplist() 555 (void) zfs_error(hdl, EZFS_PROPREADONLY, in zpool_valid_proplist() [all …]
|
H A D | libzfs_dataset.c | 108 zfs_validate_name(libzfs_handle_t *hdl, const char *path, int type, in zfs_validate_name() argument 115 if (hdl != NULL) in zfs_validate_name() 116 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_validate_name() 122 if (hdl != NULL) in zfs_validate_name() 123 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_validate_name() 129 if (hdl != NULL) in zfs_validate_name() 130 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_validate_name() 136 if (hdl != NULL) in zfs_validate_name() 137 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_validate_name() 143 if (hdl ! in zfs_validate_name() 238 libzfs_handle_t *hdl = zhp->zfs_hdl; process_user_props() local 266 libzfs_handle_t *hdl = zhp->zfs_hdl; zpool_add_handle() local 280 libzfs_handle_t *hdl = zhp->zfs_hdl; zpool_find_handle() local 314 zpool_free_handles(libzfs_handle_t * hdl) zpool_free_handles() argument 332 libzfs_handle_t *hdl = zhp->zfs_hdl; get_stats_ioctl() local 351 libzfs_handle_t *hdl = zhp->zfs_hdl; get_recvd_props_ioctl() local 478 make_dataset_handle(libzfs_handle_t * hdl,const char * path) make_dataset_handle() argument 505 make_dataset_handle_zc(libzfs_handle_t * hdl,zfs_cmd_t * zc) make_dataset_handle_zc() argument 706 zfs_open(libzfs_handle_t * hdl,const char * path,int types) zfs_open() argument 826 libzfs_mnttab_init(libzfs_handle_t * hdl) libzfs_mnttab_init() argument 835 libzfs_mnttab_update(libzfs_handle_t * hdl) libzfs_mnttab_update() argument 874 libzfs_mnttab_fini(libzfs_handle_t * hdl) libzfs_mnttab_fini() argument 892 libzfs_mnttab_cache(libzfs_handle_t * hdl,boolean_t enable) libzfs_mnttab_cache() argument 898 libzfs_mnttab_find(libzfs_handle_t * hdl,const char * fsname,struct mnttab * entry) libzfs_mnttab_find() argument 943 libzfs_mnttab_add(libzfs_handle_t * hdl,const char * special,const char * mountp,const char * mntopts) libzfs_mnttab_add() argument 973 libzfs_mnttab_remove(libzfs_handle_t * hdl,const char * fsname) libzfs_mnttab_remove() argument 1030 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) zfs_valid_proplist() argument 1758 libzfs_handle_t *hdl = zhp->zfs_hdl; zfs_prop_set() local 1802 libzfs_handle_t *hdl = zhp->zfs_hdl; zfs_prop_set_list_flags() local 1983 libzfs_handle_t *hdl = zhp->zfs_hdl; zfs_prop_inherit() local 2238 libzfs_handle_t *hdl = zhp->zfs_hdl; get_numeric_property() local 3503 check_parents(libzfs_handle_t * hdl,const char * path,uint64_t * zoned,boolean_t accept_ancestor,int * prefixlen) check_parents() argument 3584 zfs_dataset_exists(libzfs_handle_t * hdl,const char * path,zfs_type_t types) zfs_dataset_exists() argument 3610 create_parents(libzfs_handle_t * hdl,char * target,int prefixlen) create_parents() argument 3684 zfs_create_ancestors(libzfs_handle_t * hdl,const char * path) zfs_create_ancestors() argument 3721 zfs_create(libzfs_handle_t * hdl,const char * path,zfs_type_t type,nvlist_t * props) zfs_create() argument 3988 zfs_destroy_snaps_nvl(libzfs_handle_t * hdl,nvlist_t * snaps,boolean_t defer) zfs_destroy_snaps_nvl() argument 4043 libzfs_handle_t *hdl = zhp->zfs_hdl; zfs_clone() local 4123 libzfs_handle_t *hdl = zhp->zfs_hdl; zfs_promote() local 4205 zfs_snapshot_nvl(libzfs_handle_t * hdl,nvlist_t * snaps,nvlist_t * props) zfs_snapshot_nvl() argument 4287 zfs_snapshot(libzfs_handle_t * hdl,const char * path,boolean_t recursive,nvlist_t * props) zfs_snapshot() argument 4496 libzfs_handle_t *hdl = zhp->zfs_hdl; zfs_rename() local 4723 libzfs_handle_t *hdl = zhp->zfs_hdl; zfs_expand_proplist() local 4845 zfs_smb_acl_mgmt(libzfs_handle_t * hdl,char * dataset,char * path,zfs_smb_acl_op_t cmd,char * resource1,char * resource2) zfs_smb_acl_mgmt() argument 4892 zfs_smb_acl_add(libzfs_handle_t * hdl,char * dataset,char * path,char * resource) zfs_smb_acl_add() argument 4900 zfs_smb_acl_remove(libzfs_handle_t * hdl,char * dataset,char * path,char * resource) zfs_smb_acl_remove() argument 4908 zfs_smb_acl_purge(libzfs_handle_t * hdl,char * dataset,char * path) zfs_smb_acl_purge() argument 4915 zfs_smb_acl_rename(libzfs_handle_t * hdl,char * dataset,char * path,char * oldname,char * newname) zfs_smb_acl_rename() argument 4928 libzfs_handle_t *hdl = zhp->zfs_hdl; zfs_userspace() local 5036 libzfs_handle_t *hdl = zhp->zfs_hdl; zfs_hold_nvl() local 5138 libzfs_handle_t *hdl = zhp->zfs_hdl; zfs_release() local 5215 libzfs_handle_t *hdl = zhp->zfs_hdl; zfs_get_fsacl() local 5281 libzfs_handle_t *hdl = zhp->zfs_hdl; zfs_set_fsacl() local 5340 libzfs_handle_t *hdl = zhp->zfs_hdl; zfs_get_holds() local [all...] |
H A D | libzfs_sendrecv.c | 75 static int guid_to_name_redact_snaps(libzfs_handle_t *hdl, const char *parent, 448 get_snap_guid(libzfs_handle_t *hdl, const char *fs, const char *snap) in get_snap_guid() argument 457 zfs_handle_t *zhp = zfs_open(hdl, name, ZFS_TYPE_SNAPSHOT); in get_snap_guid() 471 get_snap_txg(libzfs_handle_t *hdl, const char *fs, const char *snap) in get_snap_txg() argument 480 if (zfs_dataset_exists(hdl, name, ZFS_TYPE_SNAPSHOT)) { in get_snap_txg() 481 zfs_handle_t *zhp = zfs_open(hdl, name, ZFS_TYPE_SNAPSHOT); in get_snap_txg() 682 gather_nvlist(libzfs_handle_t *hdl, const char *fsname, const char *fromsnap, in gather_nvlist() argument 692 zhp = zfs_open(hdl, fsname, ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME); in gather_nvlist() 769 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_send_space() local 772 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_send_space() [all …]
|
H A D | libzfs_crypto.c | 107 zfs_prop_parse_keylocation(libzfs_handle_t *restrict hdl, const char *str, in zfs_prop_parse_keylocation() argument 120 if (regexec(&hdl->libzfs_urire, str, ARRAY_SIZE(pmatch), in zfs_prop_parse_keylocation() 125 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_prop_parse_keylocation() 137 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_prop_parse_keylocation() 147 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, "Invalid keylocation")); in zfs_prop_parse_keylocation() 203 validate_key(libzfs_handle_t *hdl, zfs_keyformat_t keyformat, in validate_key() argument 210 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in validate_key() 217 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in validate_key() 226 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in validate_key() 233 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in validate_key() [all …]
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | sa.c | 134 static int sa_build_index(sa_handle_t *hdl, sa_buf_type_t buftype); 141 static int sa_modify_attrs(sa_handle_t *hdl, sa_attr_type_t newattr, 220 sa_handle_t *hdl = buf; in sa_cache_constructor() local 222 mutex_init(&hdl->sa_lock, NULL, MUTEX_DEFAULT, NULL); in sa_cache_constructor() 230 sa_handle_t *hdl = buf; in sa_cache_destructor() local 231 mutex_destroy(&hdl->sa_lock); in sa_cache_destructor() 300 sa_get_spill(sa_handle_t *hdl) in sa_get_spill() argument 303 if (hdl->sa_spill == NULL) { in sa_get_spill() 304 if ((rc = dmu_spill_hold_existing(hdl->sa_bonus, NULL, in sa_get_spill() 305 &hdl->sa_spill)) == 0) in sa_get_spill() [all …]
|
H A D | zfs_znode.c | 87 zfs_release_sa_handle(sa_handle_t *hdl, dmu_buf_t *db, const void *tag) in zfs_release_sa_handle() argument 89 sa_handle_destroy(hdl); in zfs_release_sa_handle() 98 zfs_obj_to_pobj(objset_t *osp, sa_handle_t *hdl, sa_attr_type_t *sa_table, in zfs_obj_to_pobj() argument 118 if ((error = sa_bulk_lookup(hdl, bulk, count)) != 0) in zfs_obj_to_pobj() 154 zfs_obj_to_stats_impl(sa_handle_t *hdl, sa_attr_type_t *sa_table, in zfs_obj_to_stats_impl() argument 169 return (sa_bulk_lookup(hdl, bulk, count)); in zfs_obj_to_stats_impl() 173 zfs_obj_to_path_impl(objset_t *osp, uint64_t obj, sa_handle_t *hdl, in zfs_obj_to_path_impl() argument 185 sa_hdl = hdl; in zfs_obj_to_path_impl() 236 if (sa_hdl != hdl) { in zfs_obj_to_path_impl() 248 if (sa_hdl != NULL && sa_hdl != hdl) { in zfs_obj_to_path_impl() [all …]
|
/freebsd/lib/libbe/ |
H A D | libbe.3 | 42 .Fn libbe_close "libbe_handle_t *hdl" 45 .Fn be_active_name "libbe_handle_t *hdl" 48 .Fn be_active_path "libbe_handle_t *hdl" 51 .Fn be_nextboot_name "libbe_handle_t *hdl" 54 .Fn be_nextboot_path "libbe_handle_t *hdl" 57 .Fn be_root_path "libbe_handle_t *hdl" 60 .Fn be_snapshot "libbe_handle_t *hdl" "const char *be_name" "const char *snap_name" "bool recursive… 63 .Fn be_is_auto_snapshot_name "libbe_handle_t *hdl" "const char *snap" 66 .Fn be_create "libbe_handle_t *hdl" "const char *be_name" 69 .Fn be_create_depth "libbe_handle_t *hdl" "const char *be_name" "const char *snap" "int depth" [all …]
|
/freebsd/sys/contrib/openzfs/lib/libzutil/ |
H A D | zutil_import.c | 75 libpc_error_description(libpc_handle_t *hdl) in libpc_error_description() argument 77 if (hdl->lpc_desc[0] != '\0') in libpc_error_description() 78 return (hdl->lpc_desc); in libpc_error_description() 80 switch (hdl->lpc_error) { in libpc_error_description() 93 assert(hdl->lpc_error == 0); in libpc_error_description() 99 zutil_error_aux(libpc_handle_t *hdl, const char *fmt, ...) in zutil_error_aux() argument 105 (void) vsnprintf(hdl->lpc_desc, sizeof (hdl->lpc_desc), fmt, ap); in zutil_error_aux() 106 hdl->lpc_desc_active = B_TRUE; in zutil_error_aux() 112 zutil_verror(libpc_handle_t *hdl, lpc_error_t error, const char *fmt, in zutil_verror() argument 118 hdl->lpc_error = error; in zutil_verror() [all …]
|
/freebsd/libexec/rtld-elf/tests/ |
H A D | dlopen_test.c | 16 void *hdl, *sym; in ATF_TC_BODY() local 18 hdl = dlopen("libthr.so", RTLD_NOW); in ATF_TC_BODY() 19 ATF_REQUIRE(hdl != NULL); in ATF_TC_BODY() 21 sym = dlsym(hdl, "pthread_create"); in ATF_TC_BODY() 24 dlclose(hdl); in ATF_TC_BODY() 26 sym = dlsym(hdl, "pthread_create"); in ATF_TC_BODY() 33 void *hdl; in ATF_TC_BODY() local 39 hdl = dlopen("libthr.so", RTLD_NOW | RTLD_GLOBAL); in ATF_TC_BODY() 40 ATF_REQUIRE(hdl != NULL); in ATF_TC_BODY() 42 dlclose(hdl); in ATF_TC_BODY()
|
/freebsd/sys/contrib/openzfs/lib/libzfs/os/freebsd/ |
H A D | libzfs_compat.c | 221 zfs_ioctl(libzfs_handle_t *hdl, int request, zfs_cmd_t *zc) in zfs_ioctl() argument 223 return (lzc_ioctl_fd(hdl->libzfs_fd, request, zc)); in zfs_ioctl() 249 zpool_relabel_disk(libzfs_handle_t *hdl, const char *path, const char *msg) in zpool_relabel_disk() argument 251 (void) hdl, (void) path, (void) msg; in zpool_relabel_disk() 256 zpool_label_disk(libzfs_handle_t *hdl, zpool_handle_t *zhp, const char *name) in zpool_label_disk() argument 258 (void) hdl, (void) zhp, (void) name; in zpool_label_disk() 270 zfs_destroy_snaps_nvl_os(libzfs_handle_t *hdl, nvlist_t *snaps) in zfs_destroy_snaps_nvl_os() argument 272 (void) hdl, (void) snaps; in zfs_destroy_snaps_nvl_os() 282 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_jail() local 297 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_jail() [all …]
|
/freebsd/sys/dev/irdma/ |
H A D | icrdma.c | 118 * irdma_find_handler - obtain hdl object to identify pf 124 struct irdma_handler *hdl; in irdma_find_handler() local 128 list_for_each_entry(hdl, &irdma_handlers, list) { in irdma_find_handler() 129 if (!hdl->iwdev->rf->peer_info) in irdma_find_handler() 131 if (hdl->iwdev->rf->peer_info->dev == p_dev->dev) { in irdma_find_handler() 133 return hdl; in irdma_find_handler() 148 struct irdma_handler *hdl; in peer_to_iwdev() local 150 hdl = irdma_find_handler(peer); in peer_to_iwdev() 151 if (!hdl) { in peer_to_iwdev() 156 return hdl->iwdev; in peer_to_iwdev() [all …]
|
/freebsd/contrib/ncurses/ncurses/tinfo/ |
H A D | lib_win32con.c | 169 IsConsoleHandle(HANDLE hdl) in IsConsoleHandle() argument 174 T((T_CALLED("lib_win32con::IsConsoleHandle(HANDLE=%p"), hdl)); in IsConsoleHandle() 178 if (!GetConsoleMode(hdl, &dwFlag)) { in IsConsoleHandle() 197 HANDLE hdl = INVALID_HANDLE_VALUE; in _nc_console_test() local 199 hdl = _nc_console_handle(fd); in _nc_console_test() 200 code = (int) IsConsoleHandle(hdl); in _nc_console_test() 204 #define OutHandle() ((WINCONSOLE.isTermInfoConsole || WINCONSOLE.progMode) ? WINCONSOLE.hdl : WINCO… 209 if (WINCONSOLE.lastOut != WINCONSOLE.hdl) { in _nc_console_selectActiveHandle() 210 WINCONSOLE.lastOut = WINCONSOLE.hdl; in _nc_console_selectActiveHandle() 218 HANDLE hdl = _nc_console_handle(fd); in _nc_console_fd2handle() local [all …]
|
/freebsd/sys/contrib/openzfs/lib/libzfs/os/linux/ |
H A D | libzfs_util_os.c | 56 zfs_ioctl(libzfs_handle_t *hdl, int request, zfs_cmd_t *zc) in zfs_ioctl() argument 58 return (ioctl(hdl->libzfs_fd, request, zc)); in zfs_ioctl() 182 zfs_destroy_snaps_nvl_os(libzfs_handle_t *hdl, nvlist_t *snaps) in zfs_destroy_snaps_nvl_os() argument 184 (void) hdl, (void) snaps; in zfs_destroy_snaps_nvl_os() 220 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_userns() local 238 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_userns() 240 return (zfs_error(hdl, EZFS_BADTYPE, errbuf)); in zfs_userns() 242 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_userns() 244 return (zfs_error(hdl, EZFS_BADTYPE, errbuf)); in zfs_userns() 246 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_userns() [all …]
|
H A D | libzfs_pool_os.c | 60 zpool_relabel_disk(libzfs_handle_t *hdl, const char *path, const char *msg) in zpool_relabel_disk() argument 65 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, "cannot " in zpool_relabel_disk() 67 return (zfs_error(hdl, EZFS_OPENFAILED, msg)); in zpool_relabel_disk() 83 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, "cannot " in zpool_relabel_disk() 85 return (zfs_error(hdl, EZFS_NOCAP, msg)); in zpool_relabel_disk() 211 zpool_label_disk(libzfs_handle_t *hdl, zpool_handle_t *zhp, const char *name) in zpool_label_disk() argument 246 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, "cannot " in zpool_label_disk() 248 return (zfs_error(hdl, EZFS_OPENFAILED, errbuf)); in zpool_label_disk() 257 (void) no_memory(hdl); in zpool_label_disk() 260 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, "cannot " in zpool_label_disk() [all …]
|
/freebsd/usr.sbin/bluetooth/ath3kfw/ |
H A D | ath3k_hw.c | 50 ath3k_load_fwfile(struct libusb_device_handle *hdl, in ath3k_load_fwfile() argument 66 ret = libusb_control_transfer(hdl, in ath3k_load_fwfile() 92 ret = libusb_bulk_transfer(hdl, in ath3k_load_fwfile() 112 ath3k_get_state(struct libusb_device_handle *hdl, unsigned char *state) in ath3k_get_state() argument 116 ret = libusb_control_transfer(hdl, in ath3k_get_state() 137 ath3k_get_version(struct libusb_device_handle *hdl, in ath3k_get_version() argument 142 ret = libusb_control_transfer(hdl, in ath3k_get_version() 165 ath3k_load_patch(libusb_device_handle *hdl, const char *fw_path) in ath3k_load_patch() argument 174 ret = ath3k_get_state(hdl, &fw_state); in ath3k_load_patch() 186 ret = ath3k_get_version(hdl, &fw_ver); in ath3k_load_patch() [all …]
|
H A D | ath3k_hw.h | 53 extern int ath3k_load_fwfile(struct libusb_device_handle *hdl, 55 extern int ath3k_get_state(struct libusb_device_handle *hdl, 57 extern int ath3k_get_version(struct libusb_device_handle *hdl, 59 extern int ath3k_load_patch(libusb_device_handle *hdl, const char *fw_path); 60 extern int ath3k_load_syscfg(libusb_device_handle *hdl, const char *fw_path); 61 extern int ath3k_set_normal_mode(libusb_device_handle *hdl); 62 extern int ath3k_switch_pid(libusb_device_handle *hdl);
|
/freebsd/usr.sbin/bluetooth/iwmbtfw/ |
H A D | iwmbt_hw.h | 84 extern int iwmbt_patch_fwfile(struct libusb_device_handle *hdl, 86 extern int iwmbt_load_rsa_header(struct libusb_device_handle *hdl, 88 extern int iwmbt_load_ecdsa_header(struct libusb_device_handle *hdl, 90 extern int iwmbt_load_fwfile(struct libusb_device_handle *hdl, 92 extern int iwmbt_enter_manufacturer(struct libusb_device_handle *hdl); 93 extern int iwmbt_exit_manufacturer(struct libusb_device_handle *hdl, 95 extern int iwmbt_get_version(struct libusb_device_handle *hdl, 97 extern int iwmbt_get_version_tlv(struct libusb_device_handle *hdl, 99 extern int iwmbt_get_boot_params(struct libusb_device_handle *hdl, 101 extern int iwmbt_intel_reset(struct libusb_device_handle *hdl, [all …]
|
H A D | main.c | 228 iwmbt_patch_firmware(libusb_device_handle *hdl, const char *firmware_path) in iwmbt_patch_firmware() argument 242 ret = iwmbt_patch_fwfile(hdl, &fw); in iwmbt_patch_firmware() 253 iwmbt_init_firmware(libusb_device_handle *hdl, const char *firmware_path, in iwmbt_init_firmware() argument 326 ret = iwmbt_load_rsa_header(hdl, &fw); in iwmbt_init_firmware() 328 ret = iwmbt_load_ecdsa_header(hdl, &fw); in iwmbt_init_firmware() 333 ret = iwmbt_load_fwfile(hdl, &fw, boot_param, header_len); in iwmbt_init_firmware() 343 iwmbt_init_ddc(libusb_device_handle *hdl, const char *ddc_path) in iwmbt_init_ddc() argument 357 ret = iwmbt_load_ddc(hdl, &ddc); in iwmbt_init_ddc() 407 libusb_device_handle *hdl = NULL; in main() local 475 r = libusb_open(dev, &hdl); in main() [all …]
|
H A D | iwmbt_hw.c | 54 iwmbt_send_fragment(struct libusb_device_handle *hdl, in iwmbt_send_fragment() argument 67 ret = libusb_bulk_transfer(hdl, in iwmbt_send_fragment() 81 ret = libusb_bulk_transfer(hdl, in iwmbt_send_fragment() 98 iwmbt_hci_command(struct libusb_device_handle *hdl, struct iwmbt_hci_cmd *cmd, in iwmbt_hci_command() argument 104 ret = libusb_control_transfer(hdl, in iwmbt_hci_command() 125 ret = libusb_interrupt_transfer(hdl, in iwmbt_hci_command() 163 iwmbt_patch_fwfile(struct libusb_device_handle *hdl, in iwmbt_patch_fwfile() argument 223 ret = libusb_control_transfer(hdl, in iwmbt_patch_fwfile() 277 ret = libusb_interrupt_transfer(hdl, in iwmbt_patch_fwfile() 308 ret = iwmbt_send_fragment(hdl, \ [all …]
|
/freebsd/sys/contrib/openzfs/lib/libzfsbootenv/ |
H A D | lzbe_device.c | 30 libzfs_handle_t *hdl; in lzbe_set_boot_device() local 40 if ((hdl = libzfs_init()) == NULL) in lzbe_set_boot_device() 43 zphdl = zpool_open(hdl, pool); in lzbe_set_boot_device() 45 libzfs_fini(hdl); in lzbe_set_boot_device() 102 fprintf(stderr, "%s\n", libzfs_error_description(hdl)); in lzbe_set_boot_device() 106 libzfs_fini(hdl); in lzbe_set_boot_device() 116 libzfs_handle_t *hdl; in lzbe_get_boot_device() local 125 if ((hdl = libzfs_init()) == NULL) in lzbe_get_boot_device() 128 zphdl = zpool_open(hdl, pool); in lzbe_get_boot_device() 130 libzfs_fini(hdl); in lzbe_get_boot_device() [all …]
|