/titanic_44/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_serd.c | 39 fmd_serd_eng_t *sgp = fmd_zalloc(sizeof (fmd_serd_eng_t), FMD_SLEEP); in fmd_serd_eng_alloc() local 41 sgp->sg_name = fmd_strdup(name, FMD_SLEEP); in fmd_serd_eng_alloc() 42 sgp->sg_flags = FMD_SERD_DIRTY; in fmd_serd_eng_alloc() 43 sgp->sg_n = n; in fmd_serd_eng_alloc() 44 sgp->sg_t = t; in fmd_serd_eng_alloc() 46 return (sgp); in fmd_serd_eng_alloc() 50 fmd_serd_eng_free(fmd_serd_eng_t *sgp) in fmd_serd_eng_free() argument 52 fmd_serd_eng_reset(sgp); in fmd_serd_eng_free() 53 fmd_strfree(sgp->sg_name); in fmd_serd_eng_free() 54 fmd_free(sgp, sizeof (fmd_serd_eng_t)); in fmd_serd_eng_free() [all …]
|
H A D | fmd_rpc_adm.c | 553 fmd_adm_serdlist_measure(fmd_serd_eng_t *sgp, void *arg) in fmd_adm_serdlist_measure() argument 557 rsl->rsl_len += strlen(sgp->sg_name) + 1; in fmd_adm_serdlist_measure() 562 fmd_adm_serdlist_record(fmd_serd_eng_t *sgp, void *arg) in fmd_adm_serdlist_record() argument 566 bcopy(sgp->sg_name, rsl->rsl_buf.rsl_buf_val + rsl->rsl_len, in fmd_adm_serdlist_record() 567 strlen(sgp->sg_name)); in fmd_adm_serdlist_record() 568 rsl->rsl_len += strlen(sgp->sg_name) + 1; in fmd_adm_serdlist_record() 621 fmd_adm_serdinfo_record(fmd_serd_eng_t *sgp, struct fmd_rpc_serdinfo *rsi) in fmd_adm_serdinfo_record() argument 626 if ((rsi->rsi_name = strdup(sgp->sg_name)) == NULL) { in fmd_adm_serdinfo_record() 631 if ((oep = fmd_list_next(&sgp->sg_list)) != NULL) in fmd_adm_serdinfo_record() 637 rsi->rsi_count = sgp->sg_count; in fmd_adm_serdinfo_record() [all …]
|
H A D | fmd_ckpt.c | 548 fmd_ckpt_resv_serd(fmd_serd_eng_t *sgp, fmd_ckpt_t *ckp) in fmd_ckpt_resv_serd() argument 551 sizeof (fcf_event_t) * sgp->sg_count, sizeof (uint64_t)); in fmd_ckpt_resv_serd() 553 ckp->ckp_strn += strlen(sgp->sg_name) + 1; in fmd_ckpt_resv_serd() 557 fmd_ckpt_save_serd(fmd_serd_eng_t *sgp, fmd_ckpt_t *ckp) in fmd_ckpt_save_serd() argument 563 if (sgp->sg_count != 0) { in fmd_ckpt_save_serd() 565 sizeof (fcf_event_t) * sgp->sg_count); in fmd_ckpt_save_serd() 567 for (sep = fmd_list_next(&sgp->sg_list); in fmd_ckpt_save_serd() 572 fcfd->fcfd_name = fmd_ckpt_string(ckp, sgp->sg_name); in fmd_ckpt_save_serd() 575 fcfd->fcfd_n = sgp->sg_n; in fmd_ckpt_save_serd() 576 fcfd->fcfd_t = sgp->sg_t; in fmd_ckpt_save_serd()
|
H A D | fmd_api.c | 1278 fmd_serd_eng_t *sgp; in fmd_case_add_serd() local 1280 if ((sgp = fmd_serd_eng_lookup(&mp->mod_serds, name)) == NULL) { in fmd_case_add_serd() 1287 for (sep = fmd_list_next(&sgp->sg_list); in fmd_case_add_serd() 1667 fmd_serd_eng_t *sgp; in fmd_serd_reset() local 1669 if ((sgp = fmd_serd_eng_lookup(&mp->mod_serds, name)) == NULL) { in fmd_serd_reset() 1674 fmd_serd_eng_reset(sgp); in fmd_serd_reset() 1683 fmd_serd_eng_t *sgp; in fmd_serd_record() local 1686 if ((sgp = fmd_serd_eng_lookup(&mp->mod_serds, name)) == NULL) { in fmd_serd_record() 1691 err = fmd_serd_eng_record(sgp, ep); in fmd_serd_record() 1693 if (sgp->sg_flags & FMD_SERD_DIRTY) in fmd_serd_record() [all …]
|
/titanic_44/usr/src/cmd/sgs/libld/common/ |
H A D | map.c | 170 map_equal_flags(Mapfile *mf, Sg_desc *sgp, Boolean *b_flags, in map_equal_flags() argument 200 sgp->sg_flags |= FLG_SG_EMPTY; in map_equal_flags() 207 if (aplist_nitems(sgp->sg_is_order) > 0) { in map_equal_flags() 209 sgp->sg_name); in map_equal_flags() 217 sgp->sg_flags |= FLG_SG_IS_ORDER; in map_equal_flags() 224 sgp->sg_flags |= FLG_SG_NOHDR; in map_equal_flags() 237 if ((sgp->sg_flags & FLG_SG_P_FLAGS) && in map_equal_flags() 238 (sgp->sg_phdr.p_flags != tmp_flags) && in map_equal_flags() 239 !(sgp->sg_phdr.p_type == PT_LOAD && in map_equal_flags() 241 (tmp_flags ^ sgp->sg_phdr.p_flags) == PF_X)) in map_equal_flags() [all …]
|
H A D | map_support.c | 353 ld_map_seg_index(Mapfile *mf, Sg_desc *sgp) in ld_map_seg_index() argument 360 if (sgp == sgp2) in ld_map_seg_index() 379 ld_map_seg_os_order_add(Mapfile *mf, Sg_desc *sgp, const char *sec_name) in ld_map_seg_os_order_add() argument 387 for (ALIST_TRAVERSE(sgp->sg_os_order, idx, scop)) in ld_map_seg_os_order_add() 394 scop = alist_append(&sgp->sg_os_order, NULL, sizeof (Sec_order), in ld_map_seg_os_order_add() 401 DBG_CALL(Dbg_map_seg_os_order(mf->mf_ofl->ofl_lml, sgp, sec_name, in ld_map_seg_os_order_add() 402 alist_nitems(sgp->sg_os_order), mf->mf_lineno)); in ld_map_seg_os_order_add() 435 ld_map_seg_size_symbol(Mapfile *mf, Sg_desc *sgp, Token eq_tok, in ld_map_seg_size_symbol() argument 457 if ((eq_tok == TK_EQUAL) && (aplist_nitems(sgp->sg_sizesym) > 0)) { in ld_map_seg_size_symbol() 458 mf_fatal(mf, MSG_INTL(MSG_MAP_SEGSIZE), sgp->sg_name); in ld_map_seg_size_symbol() [all …]
|
H A D | outfile.c | 190 Sg_desc *sgp; in pad_outfile() local 217 for (APLIST_TRAVERSE(ofl->ofl_segs, idx1, sgp)) { in pad_outfile() 218 Phdr *phdr = &(sgp->sg_phdr); in pad_outfile() 255 for (APLIST_TRAVERSE(sgp->sg_osdescs, idx2, osp)) { in pad_outfile() 287 create_outsec(Ofl_desc *ofl, Sg_desc *sgp, Os_desc *osp, Word ptype, int shidx, in create_outsec() argument 320 sgp->sg_fscn = scn; in create_outsec() 370 Sg_desc *sgp; in ld_create_outfile() local 428 for (APLIST_TRAVERSE(ofl->ofl_segs, idx1, sgp)) { in ld_create_outfile() 430 Phdr *phdr = &(sgp->sg_phdr); in ld_create_outfile() 482 if ((sgp->sg_flags & FLG_SG_DISABLED) == 0) in ld_create_outfile() [all …]
|
H A D | map_v2.c | 1409 Sg_desc *sgp; in dir_phdr_add_null() local 1423 if ((sgp = ld_map_seg_alloc(NULL, PT_NULL, in dir_phdr_add_null() 1426 if (ld_map_seg_insert(mf, DBG_STATE_NEW, sgp, 0) == in dir_phdr_add_null() 1443 Sg_desc *sgp = uvalue; in at_seg_align() local 1450 sgp->sg_phdr.p_align = tkv.tkv_int.tkvi_value; in at_seg_align() 1451 sgp->sg_flags |= FLG_SG_P_ALIGN; in at_seg_align() 1805 Sg_desc *sgp = uvalue; in at_seg_assign() local 1828 if ((enp = ld_map_seg_ent_add(mf, sgp, name)) == NULL) in at_seg_assign() 1871 Sg_desc *sgp = uvalue; in at_seg_disable() local 1874 if (sgp->sg_flags & FLG_SG_NODISABLE) { in at_seg_disable() [all …]
|
H A D | entry.c | 357 Sg_desc *sgp; in ld_ent_setup() local 395 sgp = (Sg_desc *) psegs; in ld_ent_setup() 447 &sgp[(enp->ec_segment - (Sg_desc *) &sg_desc)]; in ld_ent_setup() 456 for (idx = 0; idx < predef_seg_nelts; idx++, sgp++) { in ld_ent_setup() 457 Phdr *phdr = &(sgp->sg_phdr); in ld_ent_setup() 461 switch (sgp->sg_id) { in ld_ent_setup() 471 if ((aplist_append(&ofl->ofl_segs, sgp, in ld_ent_setup() 486 assert(sgp->sg_name != NULL); in ld_ent_setup() 489 assert(sgp->sg_name == NULL); in ld_ent_setup() 498 if (sgp->sg_name != NULL) in ld_ent_setup() [all …]
|
H A D | place.c | 609 Sg_desc *sgp; in eh_frame_muldef() local 619 for (APLIST_TRAVERSE(ofl->ofl_segs, idx1, sgp)) { in eh_frame_muldef() 620 for (APLIST_TRAVERSE(sgp->sg_osdescs, idx2, osp)) { in eh_frame_muldef() 664 Sg_desc *sgp; in ld_place_section() local 752 sgp = NULL; in ld_place_section() 775 sgp = enp->ec_segment; in ld_place_section() 795 sgp = enp->ec_segment; in ld_place_section() 805 assert(sgp != NULL); in ld_place_section() 852 (sgp->sg_flags & FLG_SG_IS_ORDER)) { in ld_place_section() 958 if (alist_nitems(sgp->sg_os_order) > 0) { in ld_place_section() [all …]
|
H A D | update.c | 174 Sg_desc *sgp, *tsgp = NULL, *dsgp = NULL, *esgp = NULL; in update_osym() local 380 for (APLIST_TRAVERSE(ofl->ofl_segs, idx1, sgp)) { in update_osym() 381 Phdr *phd = &(sgp->sg_phdr); in update_osym() 386 if (sgp->sg_osdescs != NULL) { in update_osym() 390 tsgp = sgp; in update_osym() 392 dsgp = sgp; in update_osym() 393 } else if (sgp->sg_flags & FLG_SG_EMPTY) in update_osym() 394 esgp = sgp; in update_osym() 400 for (APLIST_TRAVERSE(sgp->sg_osdescs, idx2, osp)) { in update_osym() 429 osp->os_identndx, sgp, osp)); in update_osym() [all …]
|
H A D | order.c | 392 Sg_desc *sgp; in ld_sec_validate() local 395 for (APLIST_TRAVERSE(ofl->ofl_segs, idx1, sgp)) { in ld_sec_validate() 400 for (ALIST_TRAVERSE(sgp->sg_os_order, idx2, scop)) { in ld_sec_validate() 404 sgp->sg_name, scop->sco_secname); in ld_sec_validate() 407 if ((sgp->sg_flags & FLG_SG_KEY) == 0) in ld_sec_validate() 410 for (APLIST_TRAVERSE(sgp->sg_osdescs, idx2, osp)) { in ld_sec_validate()
|
H A D | ldentry.c | 56 Sg_desc *sgp; in ld_map_out() local 82 for (APLIST_TRAVERSE(ofl->ofl_segs, idx1, sgp)) { in ld_map_out() 86 if (sgp->sg_phdr.p_type != PT_LOAD) in ld_map_out() 89 for (APLIST_TRAVERSE(sgp->sg_osdescs, idx2, osp)) { in ld_map_out()
|
H A D | map_core.c | 2613 Sg_desc *sgp; in ld_map_post_process() local 2625 for (APLIST_TRAVERSE(ofl->ofl_segs, idx, sgp)) { in ld_map_post_process() 2632 if (sgp->sg_name == NULL) in ld_map_post_process() 2636 if ((first_seg == NULL) && !(sgp->sg_flags & FLG_SG_DISABLED)) in ld_map_post_process() 2637 first_seg = sgp; in ld_map_post_process() 2643 if (sgp->sg_flags & FLG_SG_P_VADDR) in ld_map_post_process() 2651 if (alist_nitems(sgp->sg_os_order) > 0) in ld_map_post_process() 2702 if (sgp->sg_flags & FLG_SG_IS_ORDER) { in ld_map_post_process() 2707 sgp->sg_name)); in ld_map_post_process() 2715 if ((enp->ec_segment == sgp) && in ld_map_post_process() [all …]
|
H A D | sections.c | 206 Sg_desc *sgp; in adjust_os_count() local 219 for (APLIST_TRAVERSE(ofl->ofl_segs, idx1, sgp)) { in adjust_os_count() 222 for (APLIST_TRAVERSE(sgp->sg_osdescs, idx2, osp)) { in adjust_os_count() 273 Sg_desc *sgp; in ignore_section_processing() local 306 ((sgp = osp->os_sgdesc) != NULL) && in ignore_section_processing() 307 (sgp->sg_phdr.p_type == PT_LOAD)) { in ignore_section_processing() 1120 Sg_desc *sgp; in make_dynamic() local 1244 if (((sgp = osp->os_sgdesc) != NULL) && in make_dynamic() 1245 (sgp->sg_phdr.p_flags & PF_W) && ofl->ofl_osinterp) in make_dynamic() 3118 Sg_desc *sgp; in ld_make_sections() local [all …]
|
/titanic_44/usr/src/cmd/sgs/liblddbg/common/ |
H A D | segments.c | 37 Sg_desc *sgp, Boolean space_nl) in Dbg_seg_desc_entry() argument 46 if (sgp->sg_name) in Dbg_seg_desc_entry() 47 dbg_print(lml, MSG_ORIG(MSG_SEG_NAME), sgp->sg_name); in Dbg_seg_desc_entry() 50 conv_seg_flags(sgp->sg_flags, &seg_flags_buf)); in Dbg_seg_desc_entry() 52 Elf_phdr(lml, osabi, mach, &sgp->sg_phdr); in Dbg_seg_desc_entry() 54 if (sgp->sg_flags & FLG_SG_P_ALIGN) in Dbg_seg_desc_entry() 56 EC_ADDR(sgp->sg_align)); in Dbg_seg_desc_entry() 58 if (sgp->sg_flags & FLG_SG_LENGTH) in Dbg_seg_desc_entry() 60 EC_ADDR(sgp->sg_length)); in Dbg_seg_desc_entry() 62 if (sgp->sg_flags & FLG_SG_ROUND) in Dbg_seg_desc_entry() [all …]
|
H A D | map.c | 187 Dbg_map_sort_seg(Lm_list *lml, uchar_t osabi, Half mach, Sg_desc *sgp) in Dbg_map_sort_seg() argument 197 type_str = conv_phdr_type(osabi, mach, sgp->sg_phdr.p_type, in Dbg_map_sort_seg() 200 if (sgp->sg_name) { in Dbg_map_sort_seg() 201 if (sgp->sg_flags & FLG_SG_P_VADDR) { in Dbg_map_sort_seg() 203 type_str, sgp->sg_name, in Dbg_map_sort_seg() 204 EC_ADDR(sgp->sg_phdr.p_vaddr)); in Dbg_map_sort_seg() 205 } else if (sgp->sg_flags & FLG_SG_ORDERED) { in Dbg_map_sort_seg() 212 type_str, sgp->sg_name, in Dbg_map_sort_seg() 213 EC_WORD(sgp->sg_id - SGID_TEXT)); in Dbg_map_sort_seg() 216 type_str, sgp->sg_name); in Dbg_map_sort_seg() [all …]
|
H A D | sections.c | 232 Dbg_sec_added(Lm_list *lml, Os_desc *osp, Sg_desc *sgp) in Dbg_sec_added() argument 238 (sgp->sg_name ? sgp->sg_name : MSG_INTL(MSG_STR_NULL))); in Dbg_sec_added() 242 Dbg_sec_created(Lm_list *lml, Os_desc *osp, Sg_desc *sgp) in Dbg_sec_created() argument 248 (sgp->sg_name ? sgp->sg_name : MSG_INTL(MSG_STR_NULL))); in Dbg_sec_created()
|
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/ |
H A D | ilbadm_sg.c | 320 i_new_sg_elem(ilbadm_sgroup_t *sgp) in i_new_sg_elem() argument 326 list_insert_tail(&sgp->sg_serv_list, s); in i_new_sg_elem() 327 sgp->sg_count++; in i_new_sg_elem() 333 i_parse_servrange_list(char *arg, ilbadm_sgroup_t *sgp) in i_parse_servrange_list() argument 338 rc = i_parse_optstring(arg, (void *) sgp, servrange_keys, in i_parse_servrange_list() 344 i_parse_serverIDs(char *arg, ilbadm_sgroup_t *sgp) in i_parse_serverIDs() argument 349 rc = i_parse_optstring(arg, (void *) sgp, serverID_keys, in i_parse_serverIDs() 355 i_mod_sg(ilb_handle_t h, ilbadm_sgroup_t *sgp, ilbadm_cmd_t cmd, in i_mod_sg() argument 367 sn = list_head(&sgp->sg_serv_list); in i_mod_sg() 373 rclib = ilb_add_server_to_group(h, sgp->sg_name, in i_mod_sg() [all …]
|
/titanic_44/usr/src/uts/sun4u/opl/sys/scfd/ |
H A D | scfdscpif.h | 74 uint32_t num_sg, mscat_gath_t *sgp, clock_t timeout); 79 uint32_t num_sg, mscat_gath_t *sgp, clock_t timeout);
|
/titanic_44/usr/src/uts/sun4u/opl/io/ |
H A D | dm2s.c | 133 mscat_gath_t *sgp, int maxsg); 1186 dm2s_prep_scatgath(mblk_t *mp, uint32_t *numsg, mscat_gath_t *sgp, int maxsg) in dm2s_prep_scatgath() argument 1192 sgp[num].msc_dptr = (caddr_t)tmp->b_rptr; in dm2s_prep_scatgath() 1193 sgp[num].msc_len = MBLKL(tmp); in dm2s_prep_scatgath() 1206 sgp[0].msc_dptr = (caddr_t)mp->b_rptr; in dm2s_prep_scatgath() 1207 sgp[0].msc_len = MBLKL(mp); in dm2s_prep_scatgath() 1244 uint32_t num_sg, mscat_gath_t *sgp) in dm2s_dump_bytes() argument 1260 tp = &sgp[nsg]; in dm2s_dump_bytes() 1274 tp = &sgp[nsg]; in dm2s_dump_bytes()
|
/titanic_44/usr/src/cmd/krb5/krb5kdc/ |
H A D | network.c | 183 sg_buf *sgp; member 951 nwrote = SOCKET_WRITEV(conn->fd, conn->u.tcp.sgp, conn->u.tcp.sgnum, in process_tcp_connection() 960 sg_buf *sgp = conn->u.tcp.sgp; in process_tcp_connection() local 961 if (nwrote < SG_LEN(sgp)) { in process_tcp_connection() 962 SG_ADVANCE(sgp, nwrote); in process_tcp_connection() 965 nwrote -= SG_LEN(sgp); in process_tcp_connection() 966 conn->u.tcp.sgp++; in process_tcp_connection() 1058 conn->u.tcp.sgp = conn->u.tcp.sgbuf; in process_tcp_connection()
|
/titanic_44/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | sendto_kdc.c | 687 state->x.out.sgp = state->x.out.sgbuf; in setup_connection() 1030 ((conn->x.out.sg_count == 2 ? SG_LEN(&conn->x.out.sgp[1]) : 0) in service_tcp_fd() 1032 + SG_LEN(&conn->x.out.sgp[0])), in service_tcp_fd() 1034 nwritten = SOCKET_WRITEV(conn->fd, conn->x.out.sgp, in service_tcp_fd() 1045 sg_buf *sgp = conn->x.out.sgp; in service_tcp_fd() local 1046 if (nwritten < SG_LEN(sgp)) { in service_tcp_fd() 1048 SG_ADVANCE(sgp, nwritten); in service_tcp_fd() 1051 nwritten -= SG_LEN(conn->x.out.sgp); in service_tcp_fd() 1052 conn->x.out.sgp++; in service_tcp_fd()
|
/titanic_44/usr/src/lib/gss_mechs/mech_krb5/include/ |
H A D | cm.h | 67 sg_buf *sgp; member
|
/titanic_44/usr/src/uts/sun4u/opl/sys/ |
H A D | dm2s.h | 94 uint32_t num_sg, mscat_gath_t *sgp);
|