Home
last modified time | relevance | path

Searched refs:hdp (Results 1 – 21 of 21) sorted by relevance

/titanic_50/usr/src/lib/libdevinfo/
H A Ddevinfo_devlink.c128 struct di_devlink_handle *hdp; in di_devlink_open() local
136 if ((hdp = handle_alloc(root_dir, OPEN_RDWR)) == NULL) { in di_devlink_open()
140 err = open_db(hdp, OPEN_RDONLY); in di_devlink_open()
150 get_db_path(hdp, DB_FILE, path, sizeof (path)); in di_devlink_open()
156 handle_free(&hdp); /* also closes the DB */ in di_devlink_open()
161 if (cache_alloc(hdp) != 0) { in di_devlink_open()
162 handle_free(&hdp); in di_devlink_open()
174 (void) di_devlink_close(&hdp, 0); in di_devlink_open()
183 return (hdp); in di_devlink_open()
187 CACHE(hdp)->update_count = DB_HDR(hdp)->update_count; in di_devlink_open()
[all …]
H A Ddevinfo_devlink.h288 static int cache_alloc(struct di_devlink_handle *hdp);
289 static int open_db(struct di_devlink_handle *hdp, int flags);
290 static int invalid_db(struct di_devlink_handle *hdp, size_t fsize, long pg_sz);
291 static int read_nodes(struct di_devlink_handle *hdp, cache_node_t *pcnp,
293 static int read_minors(struct di_devlink_handle *hdp, cache_node_t *pcnp,
295 static int read_links(struct di_devlink_handle *hdp, cache_minor_t *pcmp,
297 static int init_hdr(struct di_devlink_handle *hdp, long page_sz,
299 static size_t size_db(struct di_devlink_handle *hdp, long page_sz,
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,
[all …]
H A Dlibdevinfo.h468 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,
/titanic_50/usr/src/uts/common/fs/hsfs/
H A Dhsfs_rrip.c105 sig_args_p->hdp->r_dev = makedevice(major_dev, minor_dev); in rrip_dev_nodes()
123 struct hs_direntry *hdp = sig_args_p->hdp; in rrip_file_attr() local
125 hdp->mode = RRIP_MODE(px_ptr); in rrip_file_attr()
126 hdp->nlink = RRIP_NLINK(px_ptr); in rrip_file_attr()
127 hdp->uid = RRIP_UID(px_ptr); in rrip_file_attr()
128 hdp->gid = RRIP_GID(px_ptr); in rrip_file_attr()
131 hdp->inode = (ino64_t)RRIP_INO(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()
[all …]
H A Dhsfs_node.c926 struct hs_direntry *hdp, in hs_parsedir() argument
939 hdp->ext_lbn = HDE_EXT_LBN(dirp); in hs_parsedir()
940 hdp->ext_size = HDE_EXT_SIZE(dirp); in hs_parsedir()
941 hdp->xar_len = HDE_XAR_LEN(dirp); in hs_parsedir()
942 hdp->intlf_sz = HDE_INTRLV_SIZE(dirp); in hs_parsedir()
943 hdp->intlf_sk = HDE_INTRLV_SKIP(dirp); in hs_parsedir()
944 hdp->sym_link = (char *)NULL; in hs_parsedir()
948 hs_parse_dirdate(HDE_cdate(dirp), &hdp->cdate); in hs_parsedir()
949 hs_parse_dirdate(HDE_cdate(dirp), &hdp->adate); in hs_parsedir()
950 hs_parse_dirdate(HDE_cdate(dirp), &hdp->mdate); in hs_parsedir()
[all …]
H A Dhsfs_susp_subr.c88 struct hs_direntry *hdp, /* loc to store dir info */ in parse_sua() argument
134 sig_args.hdp = hdp; in parse_sua()
361 hs_check_root_dirent(struct vnode *vp, struct hs_direntry *hdp) in hs_check_root_dirent() argument
382 secno = LBN_TO_SEC(hdp->ext_lbn+hdp->xar_len, vp->v_vfsp); in hs_check_root_dirent()
383 secoff = LBN_TO_BYTE(hdp->ext_lbn+hdp->xar_len, vp->v_vfsp) & in hs_check_root_dirent()
398 if (hdp->ext_lbn != HDE_EXT_LBN(root_ptr)) { in hs_check_root_dirent()
445 if (hs_parsedir(fsp, root_ptr, hdp, (char *)NULL, (int *)NULL, in hs_check_root_dirent()
447 (void) hs_parsedir(fsp, root_ptr, hdp, (char *)NULL, in hs_check_root_dirent()
/titanic_50/usr/src/uts/sun4u/io/
H A Dsbd_cpu.c240 sbdp_handle_t *hdp; in sbd_cpu_flags() local
244 hdp = sbd_get_sbdp_handle(sbp, hp); in sbd_cpu_flags()
332 sbd_release_sbdp_handle(hdp); in sbd_cpu_flags()
348 sbdp_handle_t *hdp; in sbd_pre_release_cpu() local
350 hdp = sbd_get_sbdp_handle(sbp, hp); in sbd_pre_release_cpu()
359 cpuid = sbdp_get_cpuid(hdp, dip); in sbd_pre_release_cpu()
367 SBD_GET_PERR(hdp->h_err, SBD_HD2ERR(hp)); in sbd_pre_release_cpu()
373 unit = sbdp_get_unit_num(hdp, dip); in sbd_pre_release_cpu()
381 SBD_GET_PERR(hdp->h_err, SBD_HD2ERR(hp)); in sbd_pre_release_cpu()
414 if (sbdp_release_component(hdp, dip)) { in sbd_pre_release_cpu()
[all …]
H A Dsbd_mem.c82 sbdp_handle_t *hdp; in sbd_get_memlist() local
111 hdp = sbd_get_sbdp_handle(sbp, hp); in sbd_get_memlist()
112 mlist = sbdp_get_memlist(hdp, mp->sbm_cm.sbdev_dip); in sbd_get_memlist()
114 SBD_GET_PERR(hdp->h_err, ep); in sbd_get_memlist()
119 sbd_release_sbdp_handle(hdp); in sbd_get_memlist()
122 sbd_release_sbdp_handle(hdp); in sbd_get_memlist()
141 sbdp_handle_t *hdp; in sbd_pre_attach_mem() local
147 hdp = sbd_get_sbdp_handle(sbp, hp); in sbd_pre_attach_mem()
160 unit = sbdp_get_unit_num(hdp, dip); in sbd_pre_attach_mem()
165 SBD_GET_PERR(hdp->h_err, ep); in sbd_pre_attach_mem()
[all …]
H A Dsbd.c757 sbdp_handle_t *hdp; in sbd_exec_op() local
768 hdp = sbd_get_sbdp_handle(sbp, hp); in sbd_exec_op()
769 rv = sbdp_ioctl(hdp, iap); in sbd_exec_op()
771 SBD_GET_PERR(hdp->h_err, SBD_HD2ERR(hp)); in sbd_exec_op()
774 sbd_release_sbdp_handle(hdp); in sbd_exec_op()
855 sbdp_handle_t *hdp; in sbd_dev_configure() local
861 hdp = sbd_get_sbdp_handle(sbp, hp); in sbd_dev_configure()
882 unit = sbdp_get_unit_num(hdp, dip); in sbd_dev_configure()
884 SBD_GET_PERR(hdp->h_err, SBD_HD2ERR(hp)); in sbd_dev_configure()
894 sbd_release_sbdp_handle(hdp); in sbd_dev_configure()
[all …]
H A Dsbd_io.c187 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()
/titanic_50/usr/src/stand/lib/fs/hsfs/
H A Dhsfsops.c739 struct hs_direntry *hdp = &hsdep->hs_dir; in parse_dir() local
750 hdp->ext_lbn = IDE_EXT_LBN(bufp); in parse_dir()
751 hdp->ext_size = IDE_EXT_SIZE(bufp); in parse_dir()
752 hs_dodates(HS_VOL_TYPE_ISO, hdp, bufp); in parse_dir()
753 hdp->xar_len = IDE_XAR_LEN(bufp); in parse_dir()
754 hdp->intlf_sz = IDE_INTRLV_SIZE(bufp); in parse_dir()
755 hdp->intlf_sk = IDE_INTRLV_SKIP(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()
[all …]
/titanic_50/usr/src/common/fs/
H A Dhsfs.c645 struct hs_direntry *hdp = &hsdep->hs_dir; /* hsfs-style dir info */ in parse_dir() local
659 hdp->ext_lbn = IDE_EXT_LBN(bufp); in parse_dir()
660 hdp->ext_size = IDE_EXT_SIZE(bufp); in parse_dir()
661 hdp->xar_len = IDE_XAR_LEN(bufp); in parse_dir()
662 hdp->intlf_sz = IDE_INTRLV_SIZE(bufp); in parse_dir()
663 hdp->intlf_sk = IDE_INTRLV_SKIP(bufp); in parse_dir()
664 hdp->sym_link = NULL; in parse_dir()
667 udp->d_ino = hdp->ext_lbn; in parse_dir()
671 hdp->type = VREG; in parse_dir()
672 hdp->mode = IFREG; in parse_dir()
[all …]
/titanic_50/usr/src/lib/libdscfg/common/
H A Dcfg_cluster.c508 hash_data_t *hdp; in init_sc_entry() local
571 hdp = (hash_data_t *)malloc(sizeof (hash_data_t)); in init_sc_entry()
572 hdp->scstat_node_name = strdup(dsn->scstat_node_name); in init_sc_entry()
573 nsc_insert_node(schash, hdp, dsp->scstat_ds_name); in init_sc_entry()
/titanic_50/usr/src/cmd/geniconvtbl/
H A Ditmcomp.c856 char *hdp; in data_to_hexadecimal() local
869 hdp = ptr[index]; in data_to_hexadecimal()
880 *hdp = '0' + val; in data_to_hexadecimal()
882 *hdp = 'a' + val - 10; in data_to_hexadecimal()
884 hdp++; in data_to_hexadecimal()
888 *hdp = '0' + val; in data_to_hexadecimal()
890 *hdp = 'a' + val - 10; in data_to_hexadecimal()
892 hdp++; in data_to_hexadecimal()
894 *hdp = '\0'; in data_to_hexadecimal()
/titanic_50/usr/src/uts/common/sys/fs/
H A Dhsfs_impl.h62 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 Dhsfs_rrip.h300 extern void hs_check_root_dirent(struct vnode *vp, struct hs_direntry *hdp);
303 struct hsfs *fsp, struct hs_direntry *hdp);
H A Dhsfs_susp.h231 struct hs_direntry *hdp; /* directory entry */ member
/titanic_50/usr/src/uts/common/fs/pcfs/
H A Dpc_node.c70 struct pchead *hdp, *hfp; in pc_init() local
73 hdp = &pcdhead[i]; in pc_init()
75 hdp->pch_forw = (struct pcnode *)hdp; in pc_init()
76 hdp->pch_back = (struct pcnode *)hdp; in pc_init()
/titanic_50/usr/src/stand/lib/fs/common/
H A Dcache.c602 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()
/titanic_50/usr/src/lib/librcm/
H A Dlibrcm.c53 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()
/titanic_50/usr/src/cmd/acct/
H A Dacctcms.c746 char hdp[] = variable
754 if( pflg && oflg ) printf(hdp); in outputa()