| /freebsd-12-stable/cddl/contrib/opensolaris/lib/libzfs/common/ |
| D | libzfs_util.c | 64 libzfs_errno(libzfs_handle_t *hdl) in libzfs_errno() argument 66 return (hdl->libzfs_error); in libzfs_errno() 70 libzfs_error_action(libzfs_handle_t *hdl) in libzfs_error_action() argument 72 return (hdl->libzfs_action); in libzfs_error_action() 76 libzfs_error_description(libzfs_handle_t *hdl) in libzfs_error_description() argument 78 if (hdl->libzfs_desc[0] != '\0') in libzfs_error_description() 79 return (hdl->libzfs_desc); in libzfs_error_description() 81 switch (hdl->libzfs_error) { in libzfs_error_description() 273 assert(hdl->libzfs_error == 0); in libzfs_error_description() 280 zfs_error_aux(libzfs_handle_t *hdl, const char *fmt, ...) in zfs_error_aux() argument [all …]
|
| D | libzfs_fru.c | 106 libzfs_handle_t *hdl = arg; in libzfs_fru_gather() local 117 if (hdl->libzfs_chassis_id[0] == '\0' && in libzfs_fru_gather() 121 (void) strlcpy(hdl->libzfs_chassis_id, devpath, in libzfs_fru_gather() 122 sizeof (hdl->libzfs_chassis_id)); in libzfs_fru_gather() 137 if (libzfs_fru_lookup(hdl, devpath) != NULL) { in libzfs_fru_gather() 180 frup->zf_chain = hdl->libzfs_fru_hash[idx]; in libzfs_fru_gather() 181 hdl->libzfs_fru_hash[idx] = frup; in libzfs_fru_gather() 182 frup->zf_next = hdl->libzfs_fru_list; in libzfs_fru_gather() 183 hdl->libzfs_fru_list = frup; in libzfs_fru_gather() 257 libzfs_fru_refresh(libzfs_handle_t *hdl) in libzfs_fru_refresh() argument [all …]
|
| D | libzfs_config.c | 79 namespace_clear(libzfs_handle_t *hdl) in namespace_clear() argument 81 if (hdl->libzfs_ns_avl) { in namespace_clear() 85 while ((cn = uu_avl_teardown(hdl->libzfs_ns_avl, in namespace_clear() 92 uu_avl_destroy(hdl->libzfs_ns_avl); in namespace_clear() 93 hdl->libzfs_ns_avl = NULL; in namespace_clear() 96 if (hdl->libzfs_ns_avlpool) { in namespace_clear() 97 uu_avl_pool_destroy(hdl->libzfs_ns_avlpool); in namespace_clear() 98 hdl->libzfs_ns_avlpool = NULL; in namespace_clear() 106 namespace_reload(libzfs_handle_t *hdl) in namespace_reload() argument 114 if (hdl->libzfs_ns_gen == 0) { in namespace_reload() [all …]
|
| D | libzfs_dataset.c | 103 zfs_validate_name(libzfs_handle_t *hdl, const char *path, int type, in zfs_validate_name() argument 110 if (hdl != NULL) { in zfs_validate_name() 113 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_validate_name() 118 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_validate_name() 123 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_validate_name() 128 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_validate_name() 133 zfs_error_aux(hdl, in zfs_validate_name() 139 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_validate_name() 145 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_validate_name() 150 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_validate_name() [all …]
|
| D | libzfs_pool.c | 73 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_get_all_props() local 77 if (zcmd_alloc_dst_nvlist(hdl, &zc, 0) != 0) in zpool_get_all_props() 80 while (ioctl(hdl->libzfs_fd, ZFS_IOC_POOL_GET_PROPS, &zc) != 0) { in zpool_get_all_props() 82 if (zcmd_expand_dst_nvlist(hdl, &zc) != 0) { in zpool_get_all_props() 92 if (zcmd_read_dst_nvlist(hdl, &zc, &zhp->zpool_props) != 0) { in zpool_get_all_props() 429 zpool_valid_proplist(libzfs_handle_t *hdl, const char *poolname, in zpool_valid_proplist() argument 442 (void) no_memory(hdl); in zpool_valid_proplist() 458 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zpool_valid_proplist() 460 (void) zfs_error(hdl, EZFS_BADPROP, errbuf); in zpool_valid_proplist() 465 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zpool_valid_proplist() [all …]
|
| D | libzfs_sendrecv.c | 142 ddt_hash_append(libzfs_handle_t *hdl, dedup_table_t *ddt, dedup_entry_t **ddepp, in ddt_hash_append() argument 149 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in ddt_hash_append() 180 ddt_update(libzfs_handle_t *hdl, dedup_table_t *ddt, zio_cksum_t *cs, in ddt_update() argument 196 ddt_hash_append(hdl, ddt, ddepp, cs, prop, dr); in ddt_update() 764 get_snap_txg(libzfs_handle_t *hdl, const char *fs, const char *snap) in get_snap_txg() argument 773 if (zfs_dataset_exists(hdl, name, ZFS_TYPE_SNAPSHOT)) { in get_snap_txg() 774 zfs_handle_t *zhp = zfs_open(hdl, name, ZFS_TYPE_SNAPSHOT); in get_snap_txg() 896 gather_nvlist(libzfs_handle_t *hdl, const char *fsname, const char *fromsnap, in gather_nvlist() argument 904 zhp = zfs_open(hdl, fsname, ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME); in gather_nvlist() 964 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_send_space() local [all …]
|
| D | libzfs_mount.c | 135 is_shared(libzfs_handle_t *hdl, const char *mountpoint, zfs_share_proto_t proto) in is_shared() argument 140 if (hdl->libzfs_sharetab == NULL) in is_shared() 143 (void) fseek(hdl->libzfs_sharetab, 0, SEEK_SET); in is_shared() 145 while (fgets(buf, sizeof (buf), hdl->libzfs_sharetab) != NULL) { in is_shared() 368 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_mount_at() local 387 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_mount_at() 389 return (zfs_error_fmt(hdl, EZFS_MOUNTFAILED, in zfs_mount_at() 405 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_mount_at() 407 return (zfs_error_fmt(hdl, EZFS_MOUNTFAILED, in zfs_mount_at() 421 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_mount_at() [all …]
|
| D | libzfs_import.c | 218 add_config(libzfs_handle_t *hdl, pool_list_t *pl, const char *path, in add_config() argument 236 if ((ne = zfs_alloc(hdl, sizeof (name_entry_t))) == NULL) in add_config() 239 if ((ne->ne_name = zfs_strdup(hdl, path)) == NULL) { in add_config() 280 if ((pe = zfs_alloc(hdl, sizeof (pool_entry_t))) == NULL) { in add_config() 298 if ((ve = zfs_alloc(hdl, sizeof (vdev_entry_t))) == NULL) { in add_config() 317 if ((ce = zfs_alloc(hdl, sizeof (config_entry_t))) == NULL) { in add_config() 332 if ((ne = zfs_alloc(hdl, sizeof (name_entry_t))) == NULL) in add_config() 335 if ((ne->ne_name = zfs_strdup(hdl, path)) == NULL) { in add_config() 351 pool_active(libzfs_handle_t *hdl, const char *name, uint64_t guid, in pool_active() argument 357 if (zpool_open_silent(hdl, name, &zhp) != 0) in pool_active() [all …]
|
| D | libzfs_diff.c | 510 libzfs_handle_t *hdl = di->zhp->zfs_hdl; in make_temp_snapshot() local 518 if (ioctl(hdl->libzfs_fd, ZFS_IOC_TMP_SNAPSHOT, &zc) != 0) { in make_temp_snapshot() 525 return (zfs_error(hdl, EZFS_DIFF, di->errbuf)); in make_temp_snapshot() 530 return (zfs_standard_error(hdl, err, di->errbuf)); in make_temp_snapshot() 534 di->tmpsnap = zfs_strdup(hdl, zc.zc_value); in make_temp_snapshot() 535 di->tosnap = zfs_asprintf(hdl, "%s@%s", di->ds, di->tmpsnap); in make_temp_snapshot() 556 libzfs_handle_t *hdl = di->zhp->zfs_hdl; in get_snapshot_names() local 576 if (!zfs_validate_name(hdl, fromsnap, ZFS_TYPE_SNAPSHOT, in get_snapshot_names() 578 return (zfs_error(hdl, EZFS_INVALIDNAME, in get_snapshot_names() 586 di->fromsnap = zfs_strdup(hdl, fromsnap); in get_snapshot_names() [all …]
|
| D | libzfs_changelist.c | 168 libzfs_handle_t *hdl; in changelist_postfix() local 197 hdl = cn->cn_handle->zfs_hdl; in changelist_postfix() 198 assert(hdl != NULL); in changelist_postfix() 199 zfs_uninit_libshare(hdl); in changelist_postfix() 212 zhandle_arr = zfs_alloc(hdl, in changelist_postfix() 222 errors = zfs_init_libshare_arg(hdl, SA_INIT_SHARE_API_SELECTIVE, in changelist_postfix()
|
| /freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
| D | sa.c | 133 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, 214 sa_handle_t *hdl = buf; in sa_cache_constructor() local 216 mutex_init(&hdl->sa_lock, NULL, MUTEX_DEFAULT, NULL); in sa_cache_constructor() 224 sa_handle_t *hdl = buf; in sa_cache_destructor() local 225 mutex_destroy(&hdl->sa_lock); in sa_cache_destructor() 295 sa_get_spill(sa_handle_t *hdl) in sa_get_spill() argument 298 if (hdl->sa_spill == NULL) { in sa_get_spill() 299 if ((rc = dmu_spill_hold_existing(hdl->sa_bonus, NULL, in sa_get_spill() 300 &hdl->sa_spill)) == 0) in sa_get_spill() [all …]
|
| D | zfs_znode.c | 635 dmu_object_type_t obj_type, sa_handle_t *hdl) in zfs_znode_alloc() argument 675 zfs_znode_sa_init(zfsvfs, zp, db, obj_type, hdl); in zfs_znode_alloc() 694 if (hdl == NULL) in zfs_znode_alloc() 1154 sa_handle_t *hdl; in zfs_zget() local 1185 hdl = dmu_buf_get_user(db); in zfs_zget() 1186 if (hdl != NULL) { in zfs_zget() 1187 zp = sa_get_userdata(hdl); in zfs_zget() 2057 zfs_release_sa_handle(sa_handle_t *hdl, dmu_buf_t *db, void *tag) in zfs_release_sa_handle() argument 2059 sa_handle_destroy(hdl); in zfs_release_sa_handle() 2068 zfs_obj_to_pobj(objset_t *osp, sa_handle_t *hdl, sa_attr_type_t *sa_table, in zfs_obj_to_pobj() argument [all …]
|
| D | zfs_sa.c | 194 zfs_sa_upgrade(sa_handle_t *hdl, dmu_tx_t *tx) in zfs_sa_upgrade() argument 196 dmu_buf_t *db = sa_get_db(hdl); in zfs_sa_upgrade() 197 znode_t *zp = sa_get_userdata(hdl); in zfs_sa_upgrade() 242 if (sa_bulk_lookup_locked(hdl, bulk, count) != 0) in zfs_sa_upgrade() 300 VERIFY(sa_replace_all_by_template_locked(hdl, sa_attrs, in zfs_sa_upgrade()
|
| /freebsd-12-stable/usr.sbin/bluetooth/ath3kfw/ |
| D | ath3k_hw.c | 52 ath3k_load_fwfile(struct libusb_device_handle *hdl, in ath3k_load_fwfile() argument 68 ret = libusb_control_transfer(hdl, in ath3k_load_fwfile() 94 ret = libusb_bulk_transfer(hdl, in ath3k_load_fwfile() 114 ath3k_get_state(struct libusb_device_handle *hdl, unsigned char *state) in ath3k_get_state() argument 118 ret = libusb_control_transfer(hdl, in ath3k_get_state() 139 ath3k_get_version(struct libusb_device_handle *hdl, in ath3k_get_version() argument 144 ret = libusb_control_transfer(hdl, in ath3k_get_version() 167 ath3k_load_patch(libusb_device_handle *hdl, const char *fw_path) in ath3k_load_patch() argument 176 ret = ath3k_get_state(hdl, &fw_state); in ath3k_load_patch() 188 ret = ath3k_get_version(hdl, &fw_ver); in ath3k_load_patch() [all …]
|
| D | main.c | 151 ath3k_init_ar3012(libusb_device_handle *hdl, const char *fw_path) in ath3k_init_ar3012() argument 155 ret = ath3k_load_patch(hdl, fw_path); in ath3k_init_ar3012() 161 ret = ath3k_load_syscfg(hdl, fw_path); in ath3k_init_ar3012() 167 ret = ath3k_set_normal_mode(hdl); in ath3k_init_ar3012() 173 ath3k_switch_pid(hdl); in ath3k_init_ar3012() 178 ath3k_init_firmware(libusb_device_handle *hdl, const char *file_prefix) in ath3k_init_firmware() argument 197 ret = ath3k_load_fwfile(hdl, &fw); in ath3k_init_firmware() 246 libusb_device_handle *hdl; in main() local 341 r = libusb_open(dev, &hdl); in main() 351 r = ath3k_get_state(hdl, &state); in main() [all …]
|
| D | ath3k_hw.h | 55 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);
|
| /freebsd-12-stable/usr.sbin/bluetooth/iwmbtfw/ |
| D | main.c | 206 iwmbt_patch_firmware(libusb_device_handle *hdl, const char *firmware_path) in iwmbt_patch_firmware() argument 220 ret = iwmbt_patch_fwfile(hdl, &fw); in iwmbt_patch_firmware() 231 iwmbt_init_firmware(libusb_device_handle *hdl, const char *firmware_path, in iwmbt_init_firmware() argument 246 ret = iwmbt_load_fwfile(hdl, &fw, boot_param); in iwmbt_init_firmware() 257 iwmbt_init_ddc(libusb_device_handle *hdl, const char *ddc_path) in iwmbt_init_ddc() argument 271 ret = iwmbt_load_ddc(hdl, &ddc); in iwmbt_init_ddc() 321 libusb_device_handle *hdl = NULL; in main() local 388 r = libusb_open(dev, &hdl); in main() 395 r = libusb_kernel_driver_active(hdl, 0); in main() 407 r = iwmbt_get_version(hdl, &ver); in main() [all …]
|
| D | iwmbt_hw.c | 51 iwmbt_send_fragment(struct libusb_device_handle *hdl, in iwmbt_send_fragment() argument 64 ret = libusb_bulk_transfer(hdl, in iwmbt_send_fragment() 78 ret = libusb_bulk_transfer(hdl, in iwmbt_send_fragment() 95 iwmbt_hci_command(struct libusb_device_handle *hdl, struct iwmbt_hci_cmd *cmd, in iwmbt_hci_command() argument 100 ret = libusb_control_transfer(hdl, in iwmbt_hci_command() 115 ret = libusb_interrupt_transfer(hdl, in iwmbt_hci_command() 130 iwmbt_patch_fwfile(struct libusb_device_handle *hdl, in iwmbt_patch_fwfile() argument 190 ret = libusb_control_transfer(hdl, in iwmbt_patch_fwfile() 244 ret = libusb_interrupt_transfer(hdl, in iwmbt_patch_fwfile() 273 iwmbt_load_fwfile(struct libusb_device_handle *hdl, in iwmbt_load_fwfile() argument [all …]
|
| D | iwmbt_hw.h | 76 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);
|
| /freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/ |
| D | sa_impl.h | 224 #define SA_GET_DB(hdl, type) \ argument 225 (dmu_buf_impl_t *)((type == SA_BONUS) ? hdl->sa_bonus : hdl->sa_spill) 227 #define SA_GET_HDR(hdl, type) \ argument 228 ((sa_hdr_phys_t *)((dmu_buf_impl_t *)(SA_GET_DB(hdl, \ 231 #define SA_IDX_TAB_GET(hdl, type) \ argument 232 (type == SA_BONUS ? hdl->sa_bonus_tab : hdl->sa_spill_tab) 259 #define SA_ATTR_INFO(sa, idx, hdr, attr, bulk, type, hdl) \ argument
|
| /freebsd-12-stable/sbin/zfsbootcfg/ |
| D | zfsbootcfg.c | 46 libzfs_handle_t *hdl; in main() local 83 if ((hdl = libzfs_init()) == NULL) { in main() 89 if (zpool_nextboot(hdl, pool_guid, vdev_guid, argv[1]) != 0) { in main() 91 libzfs_fini(hdl); in main() 95 libzfs_fini(hdl); in main()
|
| /freebsd-12-stable/cddl/usr.sbin/zfsd/ |
| D | zfsd_event.cc | 392 zpool_handle_t* hdl; in CleanupSpares() local 394 hdl = zpl.front(); in CleanupSpares() 395 VdevIterator(hdl).Each(TryDetach, (void*)hdl); in CleanupSpares() 448 zpool_handle_t *hdl(static_cast<zpool_handle_t*>(cbArg)); in TryDetach() local 473 vdev.Path().c_str(), zpool_get_name(hdl)); in TryDetach() 474 zpool_vdev_detach(hdl, vdev.Path().c_str()); in TryDetach()
|
| /freebsd-12-stable/sys/dev/isp/ |
| D | ispvar.h | 317 #define ISP_H2HT(hdl) ((hdl & ISP_HANDLE_USAGE_MASK) >> ISP_HANDLE_USAGE_SHIFT) argument 324 #define ISP_H2SEQ(hdl) ((hdl & ISP_HANDLE_SEQ_MASK) >> ISP_HANDLE_SEQ_SHIFT) argument 325 #define ISP_VALID_HANDLE(c, hdl) \ argument 326 ((ISP_H2HT(hdl) == ISP_HANDLE_INITIATOR || \ 327 ISP_H2HT(hdl) == ISP_HANDLE_TARGET || \ 328 ISP_H2HT(hdl) == ISP_HANDLE_CTRL) && \ 329 ((hdl) & ISP_HANDLE_CMD_MASK) < (c)->isp_maxcmds && \ 330 (hdl) == ((c)->isp_xflist[(hdl) & ISP_HANDLE_CMD_MASK].handle))
|
| /freebsd-12-stable/sys/cddl/compat/opensolaris/sys/ |
| D | kidmap.h | 38 #define kidmap_get_destroy(hdl) do { } while (0) argument 39 #define kidmap_get_mappings(hdl) (NULL) argument
|
| /freebsd-12-stable/contrib/ncurses/ncurses/win32con/ |
| D | win_driver.c | 48 #define okConsoleHandle(TCB) (TCB != 0 && !InvalidConsoleHandle(TCB->hdl)) 205 return WriteConsoleOutputW(TCB->hdl, ci, siz, loc, &rec); in con_write16() 246 return WriteConsoleOutput(TCB->hdl, ci, siz, loc, &rec); in con_write8() 333 if (PropOf(TCB)->lastOut != TCB->hdl) { in selectActiveHandle() 334 PropOf(TCB)->lastOut = TCB->hdl; in selectActiveHandle() 554 if (GetConsoleScreenBufferInfo(TCB->hdl, &(p->SBI))) { in get_SBI() 596 SetConsoleTextAttribute(TCB->hdl, a); in drv_setcolor() 609 SetConsoleTextAttribute(TCB->hdl, a); in drv_rescol() 742 PropOf(TCB)->lastOut = progFlag ? TCB->hdl : TCB->out; in drv_mode() 883 if (ReadConsoleOutput(TCB->hdl, in save_original_screen() [all …]
|