/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo_devlink.c | 531 cp = get_string(hdp, DB_NUM(hdp, DB_STR) - 1); in invalid_db() 1057 subtree_free(hdp, &(CACHE_ROOT(hdp))); in cache_free() 1736 (!HDL_RDWR(hdp) && !HDL_RDONLY(hdp))) { in rm_link() 1757 if (hdp == NULL || !HDL_RDWR(hdp)) { in di_devlink_rm_link() 1836 (!HDL_RDWR(hdp) && !HDL_RDONLY(hdp))) { in add_link() 1896 if (hdp == NULL || !HDL_RDWR(hdp) || DB_ERR(hdp)) { in di_devlink_update() 2053 if (hdp == NULL || !HDL_RDONLY(hdp)) { in di_devlink_walk() 2154 if (hdp == NULL || !HDL_RDONLY(hdp)) { in cache_dev() 2180 if (hdp == NULL || !HDL_RDONLY(hdp) || DB_OPEN(hdp)) { in walk_dev() 2206 assert(HDL_RDWR(hdp) || HDL_RDONLY(hdp)); in cache_dev_link() [all …]
|
H A D | devinfo_devlink.h | 288 static int cache_alloc(struct di_devlink_handle *hdp); 289 static int open_db(struct di_devlink_handle *hdp, int flags); 301 static size_t seg_size(struct di_devlink_handle *hdp, int seg); 303 static cache_node_t *node_insert(struct di_devlink_handle *hdp, 308 static cache_link_t *link_insert(struct di_devlink_handle *hdp, 323 static int close_db(struct di_devlink_handle *hdp); 324 static void cache_free(struct di_devlink_handle *hdp); 370 static int walk_matching_links(struct di_devlink_handle *hdp, 395 static void *get_last_minor(struct di_devlink_handle *hdp, 401 static void exit_db_lock(struct di_devlink_handle *hdp); [all …]
|
H A D | libdevinfo.h | 468 extern int di_devlink_rm_link(di_devlink_handle_t hdp, const char *link); 469 extern int di_devlink_add_link(di_devlink_handle_t hdp, const char *link, 471 extern int di_devlink_update(di_devlink_handle_t hdp); 474 extern int di_devlink_cache_walk(di_devlink_handle_t hdp, const char *re,
|
/illumos-gate/usr/src/uts/common/fs/hsfs/ |
H A D | hsfs_rrip.c | 123 struct hs_direntry *hdp = sig_args_p->hdp; in rrip_file_attr() local 127 hdp->uid = RRIP_UID(px_ptr); in rrip_file_attr() 128 hdp->gid = RRIP_GID(px_ptr); in rrip_file_attr() 133 hdp->inode = 0; in rrip_file_attr() 135 hdp->type = IFTOVT(hdp->mode); in rrip_file_attr() 178 &sig_args_p->hdp->adate); in rrip_file_time() 183 &sig_args_p->hdp->mdate); in rrip_file_time() 189 &sig_args_p->hdp->cdate); in rrip_file_time() 342 struct hs_direntry *hdp = sig_args_p->hdp; in rrip_sym_link() local 346 if (hdp->type != VLNK) in rrip_sym_link() [all …]
|
H A D | hsfs_node.c | 957 hdp->type = VREG; in hs_parsedir() 959 hdp->nlink = 1; in hs_parsedir() 963 hdp->nlink = 2; in hs_parsedir() 971 hdp->mode = hdp-> mode | (fsp -> hsfs_vol.vol_prot & 0777); in hs_parsedir() 989 hdp->nlink = 1; in hs_parsedir() 993 hdp->nlink = 2; in hs_parsedir() 1001 hdp->mode = hdp-> mode | (fsp -> hsfs_vol.vol_prot & 0777); in hs_parsedir() 1033 if (hdp->intlf_sz + hdp->intlf_sk) { in hs_parsedir() 1034 if ((hdp->intlf_sz == 0) || (hdp->intlf_sk == 0)) { in hs_parsedir() 1412 secno = LBN_TO_SEC(hdp->ext_lbn+hdp->xar_len, vp->v_vfsp); in hs_filldirent() [all …]
|
H A D | hsfs_susp_subr.c | 86 struct hs_direntry *hdp, /* loc to store dir info */ in parse_sua() argument 132 sig_args.hdp = hdp; in parse_sua() 359 hs_check_root_dirent(struct vnode *vp, struct hs_direntry *hdp) in hs_check_root_dirent() argument 380 secno = LBN_TO_SEC(hdp->ext_lbn+hdp->xar_len, vp->v_vfsp); in hs_check_root_dirent() 381 secoff = LBN_TO_BYTE(hdp->ext_lbn+hdp->xar_len, vp->v_vfsp) & in hs_check_root_dirent() 396 if (hdp->ext_lbn != HDE_EXT_LBN(root_ptr)) { in hs_check_root_dirent() 443 if (hs_parsedir(fsp, root_ptr, hdp, (char *)NULL, (int *)NULL, in hs_check_root_dirent() 445 (void) hs_parsedir(fsp, root_ptr, hdp, (char *)NULL, in hs_check_root_dirent()
|
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | sbd_cpu.c | 242 sbdp_handle_t *hdp; in sbd_cpu_flags() local 334 sbd_release_sbdp_handle(hdp); in sbd_cpu_flags() 350 sbdp_handle_t *hdp; in sbd_pre_release_cpu() local 468 sbdp_handle_t *hdp; in sbd_pre_attach_cpu() local 540 sbdp_handle_t *hdp; in sbd_post_attach_cpu() local 622 SBD_GET_PERR(hdp->h_err, in sbd_post_attach_cpu() 654 sbdp_handle_t *hdp; in sbd_pre_detach_cpu() local 758 sbdp_handle_t *hdp; in sbd_post_detach_cpu() local 797 SBD_GET_PERR(hdp->h_err, in sbd_post_detach_cpu() 964 sbdp_handle_t *hdp; in sbd_connect_cpu() local [all …]
|
H A D | sbd_mem.c | 82 sbdp_handle_t *hdp; in sbd_get_memlist() local 141 sbdp_handle_t *hdp; in sbd_pre_attach_mem() local 266 sbdp_handle_t *hdp; in sbd_post_attach_mem() local 372 sbdp_handle_t *hdp; in sbd_pre_detach_mem() local 415 sbdp_handle_t *hdp; in sbd_post_detach_mem() local 478 sbdp_handle_t *hdp; in sbd_add_memory_spans() local 539 sbdp_handle_t *hdp; in sbd_post_detach_mem_unit() local 1426 sbdp_handle_t *hdp; in sbd_init_mem_unit_data() local 1616 sbdp_handle_t *hdp; in sbd_select_mem_target() local 2052 sbdp_handle_t *hdp; in sbd_move_memory() local [all …]
|
H A D | sbd.c | 854 sbdp_handle_t *hdp; in sbd_dev_configure() local 931 sbdp_handle_t *hdp; in sbd_dev_release() local 999 sbdp_handle_t *hdp; in sbd_dev_unconfigure() local 1109 sbdp_handle_t *hdp; in sbd_attach_cpu() local 1187 sbdp_handle_t *hdp; in sbd_detach_cpu() local 1196 spe = hdp->h_err; in sbd_detach_cpu() 1554 hdp->h_flags = 0; in sbd_get_sbdp_handle() 1561 return (hdp); in sbd_get_sbdp_handle() 1567 if (hdp == NULL) in sbd_release_sbdp_handle() 1577 if ((hdp != NULL) && (hdp->h_err != NULL)) { in sbd_reset_error_sbdph() [all …]
|
H A D | sbd_io.c | 187 sbdp_handle_t *hdp; in sbd_io_status() local 198 hdp = sbd_get_sbdp_handle(sbp, hp); in sbd_io_status() 238 isp->is_unit = sbdp_get_unit_num(hdp, dip); in sbd_io_status() 243 SBD_GET_PERR(hdp->h_err, SBD_HD2ERR(hp)); in sbd_io_status() 290 sbd_release_sbdp_handle(hdp); in sbd_io_status()
|
/illumos-gate/usr/src/stand/lib/fs/hsfs/ |
H A D | hsfsops.c | 750 hdp->ext_lbn = IDE_EXT_LBN(bufp); in parse_dir() 756 hdp->sym_link = NULL; in parse_dir() 758 udp->d_ino = hdp->ext_lbn; in parse_dir() 762 hdp->type = VREG; in parse_dir() 763 hdp->mode = IFREG; in parse_dir() 764 hdp->nlink = 1; in parse_dir() 766 hdp->type = VDIR; in parse_dir() 767 hdp->mode = IFDIR; in parse_dir() 768 hdp->nlink = 2; in parse_dir() 1002 struct hs_direct *hdp; in boot_hsfs_getdents() local [all …]
|
/illumos-gate/usr/src/common/fs/ |
H A D | hsfs.c | 658 hdp->ext_lbn = IDE_EXT_LBN(bufp); in parse_dir() 659 hdp->ext_size = IDE_EXT_SIZE(bufp); in parse_dir() 660 hdp->xar_len = IDE_XAR_LEN(bufp); in parse_dir() 663 hdp->sym_link = NULL; in parse_dir() 666 udp->d_ino = hdp->ext_lbn; in parse_dir() 670 hdp->type = VREG; in parse_dir() 671 hdp->mode = IFREG; in parse_dir() 672 hdp->nlink = 1; in parse_dir() 674 hdp->type = VDIR; in parse_dir() 675 hdp->mode = IFDIR; in parse_dir() [all …]
|
/illumos-gate/usr/src/uts/common/io/usb/hcd/xhci/ |
H A D | xhci_hub.c | 754 usb_ss_hub_descr_t *hdp = &xhcip->xhci_usba.xa_hub_descr; in xhci_root_hub_fill_hub_desc() local 756 bzero(hdp, sizeof (usb_ss_hub_descr_t)); in xhci_root_hub_fill_hub_desc() 758 hdp->bDescLength = sizeof (usb_ss_hub_descr_t); in xhci_root_hub_fill_hub_desc() 759 hdp->bDescriptorType = ROOT_HUB_SS_DESCRIPTOR_TYPE; in xhci_root_hub_fill_hub_desc() 760 hdp->bNbrPorts = xhcip->xhci_caps.xcap_max_ports; in xhci_root_hub_fill_hub_desc() 766 hdp->wHubCharacteristics = LE_16(chars); in xhci_root_hub_fill_hub_desc() 767 hdp->bPwrOn2PwrGood = XHCI_POWER_GOOD; in xhci_root_hub_fill_hub_desc() 768 hdp->bHubContrCurrent = 0; in xhci_root_hub_fill_hub_desc() 776 hdp->bHubHdrDecLat = 0; in xhci_root_hub_fill_hub_desc() 777 hdp->wHubDelay = 0; in xhci_root_hub_fill_hub_desc() [all …]
|
/illumos-gate/usr/src/cmd/geniconvtbl/ |
H A D | itmcomp.c | 843 char *hdp; in data_to_hexadecimal() local 856 hdp = ptr[index]; in data_to_hexadecimal() 867 *hdp = '0' + val; in data_to_hexadecimal() 869 *hdp = 'a' + val - 10; in data_to_hexadecimal() 871 hdp++; in data_to_hexadecimal() 875 *hdp = '0' + val; in data_to_hexadecimal() 877 *hdp = 'a' + val - 10; in data_to_hexadecimal() 879 hdp++; in data_to_hexadecimal() 881 *hdp = '\0'; in data_to_hexadecimal()
|
/illumos-gate/usr/src/uts/common/sys/fs/ |
H A D | hsfs_impl.h | 62 struct hs_direntry *hdp, char *dnp, int *dnlen, int last_offset); 69 extern void hs_filldirent(struct vnode *vp, struct hs_direntry *hdp);
|
H A D | hsfs_rrip.h | 298 extern void hs_check_root_dirent(struct vnode *vp, struct hs_direntry *hdp); 301 struct hsfs *fsp, struct hs_direntry *hdp);
|
H A D | hsfs_susp.h | 229 struct hs_direntry *hdp; /* directory entry */ member
|
/illumos-gate/usr/src/uts/common/fs/pcfs/ |
H A D | pc_node.c | 73 struct pchead *hdp, *hfp; in pc_init() local 76 hdp = &pcdhead[i]; in pc_init() 78 hdp->pch_forw = (struct pcnode *)hdp; in pc_init() 79 hdp->pch_back = (struct pcnode *)hdp; in pc_init()
|
/illumos-gate/usr/src/stand/lib/fs/common/ |
H A D | cache.c | 602 static head_t *hdp[] = { &ic_head, &dc_head, &bc_head, 0}; in print_cache_data() local 611 head_t *hp = hdp[j]; in print_cache_data()
|
/illumos-gate/usr/src/lib/librcm/ |
H A D | librcm.c | 53 rcm_alloc_handle(char *modname, uint_t flag, void *arg, rcm_handle_t **hdp) in rcm_alloc_handle() argument 59 if ((hdp == NULL) || (flag & ~RCM_ALLOC_HDL_MASK)) { in rcm_alloc_handle() 98 *hdp = hd; in rcm_alloc_handle()
|
/illumos-gate/usr/src/cmd/acct/ |
H A D | acctcms.c | 743 char hdp[] = variable 751 if( pflg && oflg ) printf(hdp); in outputa()
|