Searched defs:ph (Results 1 - 25 of 111) sorted by relevance

12345

/illumos-gate/usr/src/cmd/sgs/librtld_db/demo/i386/
H A Dm_utils.c30 print_mach_varstring(struct ps_prochandle *ph, const char *varname) argument
H A Dregs.c35 disp_reg_line(struct ps_prochandle *ph, pstatus_t *prst, char *r1, int ind1, argument
40 (void) strcpy(str1, print_address_ps(ph, prst->pr_lwp.pr_reg[ind1],
42 (void) strcpy(str2, print_address_ps(ph, prst->pr_lwp.pr_reg[ind2],
51 display_all_regs(struct ps_prochandle *ph) argument
55 if (pread(ph->pp_statusfd, &pstatus, sizeof (pstatus),
61 disp_reg_line(ph, &pstatus, "gs", GS, "fs", FS);
62 disp_reg_line(ph, &pstatus, "es", ES, "ds", DS);
63 disp_reg_line(ph, &pstatus, "edi", EDI, "esi", ESI);
64 disp_reg_line(ph, &pstatus, "ebp", EBP, "esp", ESP);
65 disp_reg_line(ph,
[all...]
/illumos-gate/usr/src/cmd/sgs/librtld_db/demo/sparc/
H A Dm_utils.c32 print_mach_varstring(struct ps_prochandle *ph, const char *varname) argument
35 display_in_regs(ph, NULL);
39 display_global_regs(ph, NULL);
43 display_out_regs(ph, NULL);
47 display_local_regs(ph, NULL);
51 display_special_regs(ph, NULL);
H A Dregs.c34 disp_reg_line(struct ps_prochandle *ph, pstatus_t *prst, char *r1, int ind1, argument
39 (void) strcpy(str1, print_address_ps(ph, prst->pr_lwp.pr_reg[ind1],
42 (void) strcpy(str2, print_address_ps(ph, prst->pr_lwp.pr_reg[ind2],
51 display_local_regs(struct ps_prochandle *ph, pstatus_t *prst) argument
56 if (pread(ph->pp_statusfd, &pstatus, sizeof (pstatus),
64 disp_reg_line(ph, prst, "l0", R_L0, "l4", R_L4);
65 disp_reg_line(ph, prst, "l1", R_L1, "l5", R_L5);
66 disp_reg_line(ph, prst, "l2", R_L2, "l6", R_L6);
67 disp_reg_line(ph, prst, "l3", R_L3, "l7", R_L7);
71 display_out_regs(struct ps_prochandle *ph, pstatus_ argument
91 display_special_regs(struct ps_prochandle *ph, pstatus_t *prst) argument
110 display_global_regs(struct ps_prochandle *ph, pstatus_t *prst) argument
130 display_in_regs(struct ps_prochandle *ph, pstatus_t *prst) argument
151 display_all_regs(struct ps_prochandle *ph) argument
[all...]
/illumos-gate/usr/src/cmd/sgs/librtld_db/demo/sparcv9/
H A Dm_utils.c32 print_mach_varstring(struct ps_prochandle *ph, const char *varname) argument
35 display_in_regs(ph, NULL);
39 display_global_regs(ph, NULL);
43 display_out_regs(ph, NULL);
47 display_local_regs(ph, NULL);
51 display_special_regs(ph, NULL);
H A Dregs.c34 disp_reg_line(struct ps_prochandle *ph, pstatus_t *prst, char *r1, int ind1, argument
39 (void) strcpy(str1, print_address_ps(ph, prst->pr_lwp.pr_reg[ind1],
42 (void) strcpy(str2, print_address_ps(ph, prst->pr_lwp.pr_reg[ind2],
45 if (ph->pp_dmodel == PR_MODEL_LP64) {
64 display_local_regs(struct ps_prochandle *ph, pstatus_t *prst) argument
69 if (pread(ph->pp_statusfd, &pstatus, sizeof (pstatus),
77 disp_reg_line(ph, prst, "l0", R_L0, "l4", R_L4);
78 disp_reg_line(ph, prst, "l1", R_L1, "l5", R_L5);
79 disp_reg_line(ph, prst, "l2", R_L2, "l6", R_L6);
80 disp_reg_line(ph, prs
84 display_out_regs(struct ps_prochandle *ph, pstatus_t *prst) argument
104 display_special_regs(struct ps_prochandle *ph, pstatus_t *prst) argument
129 display_global_regs(struct ps_prochandle *ph, pstatus_t *prst) argument
149 display_in_regs(struct ps_prochandle *ph, pstatus_t *prst) argument
170 display_all_regs(struct ps_prochandle *ph) argument
[all...]
/illumos-gate/usr/src/uts/common/io/mii/
H A Dmii_natsemi.c38 ns83840_reset(phy_handle_t *ph) argument
41 if (phy_reset(ph) != DDI_SUCCESS) {
57 PHY_SET(ph, MII_VENDOR(7), (1<<10) | (1<<8) | (1<<5));
62 phy_natsemi_probe(phy_handle_t *ph) argument
65 if ((MII_PHY_MFG(ph->phy_id) != MII_OUI_NATIONAL_SEMI) &&
66 (MII_PHY_MFG(ph->phy_id) != MII_OUI_NATIONAL_SEMI_2)) {
69 ph->phy_vendor = "National Semiconductor";
71 switch (MII_PHY_MODEL(ph->phy_id)) {
73 ph->phy_model = "DP83840";
74 ph
[all...]
H A Dmii_intel.c58 i82555_start(phy_handle_t *ph) argument
62 if ((rv = phy_start(ph)) != DDI_SUCCESS) {
82 if (phy_get_prop(ph, "AutoPolarity", 0) == 0) {
84 PHY_SET(ph, MII_82555_SPCL_CONTROL, I82555_AUTOPOL_DIS);
87 PHY_CLR(ph, MII_82555_SPCL_CONTROL, I82555_AUTOPOL_DIS);
94 phy_intel_probe(phy_handle_t *ph) argument
98 if (MII_PHY_MFG(ph->phy_id) != MII_OUI_INTEL) {
102 switch (MII_PHY_MODEL(ph->phy_id)) {
107 ph->phy_start = i82555_start;
123 ph
[all...]
H A Dmii_realtek.c48 phy_realtek_probe(phy_handle_t *ph) argument
50 if ((ph->phy_id == 0) &&
51 (strcmp(phy_get_driver(ph), "rtls") == 0)) {
52 ph->phy_vendor = "Realtek";
53 ph->phy_model = "Internal RTL8139";
54 ph->phy_check = rtl8139_check;
56 } else if (ph->phy_id == 0x8201) {
57 ph->phy_vendor = "Realtek";
58 ph->phy_model = "RTL8201";
59 ph
67 rtl8139_check(phy_handle_t *ph) argument
94 rtl8201_check(phy_handle_t *ph) argument
[all...]
H A Dmii_qualsemi.c42 qs6612_reset(phy_handle_t *ph) argument
45 if (phy_reset(ph) != DDI_SUCCESS) {
50 phy_write(ph, QS_IMASK_REG, 0);
56 qs6612_check(phy_handle_t *ph) argument
75 link = ph->phy_link;
77 rv = phy_check(ph);
79 if ((ph->phy_link == LINK_STATE_UP) && (link != LINK_STATE_UP) &&
80 (ph->phy_speed == 100)) {
82 val = phy_read(ph, QS_BTXPC);
83 phy_write(ph, QS_BTXP
92 phy_qualsemi_probe(phy_handle_t *ph) argument
[all...]
H A Dmii_cicada.c73 phy_cicada_probe(phy_handle_t *ph) argument
75 switch (MII_PHY_MFG(ph->phy_id)) {
78 switch (MII_PHY_MODEL(ph->phy_id)) {
82 ph->phy_vendor = "Cicada";
83 ph->phy_model = "CS8201";
H A Dmii_other.c125 phy_other_probe(phy_handle_t *ph) argument
127 uint32_t vid = MII_PHY_MFG(ph->phy_id);
128 uint32_t pid = MII_PHY_MODEL(ph->phy_id);
130 if ((ph->phy_id == 0) || (ph->phy_id == 0xffffffffU)) {
135 ph->phy_vendor = "Internal";
136 ph->phy_model = "PHY";
140 ph->phy_vendor = other_vendors[i].vendor;
145 ph->phy_model = other_phys[j].desc;
/illumos-gate/usr/src/cmd/sgs/librtld_db/demo/common/
H A Dcallstack.c43 get_frame(struct ps_prochandle *ph, psaddr_t fp, struct frame *frm) argument
50 if (ph->pp_dmodel == PR_MODEL_ILP32) {
53 if (ps_pread(ph, (psaddr_t)fp, (char *)&frm32,
70 if (ps_pread(ph, (psaddr_t)fp + STACK_BIAS, (char *)frm,
82 CallStack(struct ps_prochandle *ph) argument
89 if (pread(ph->pp_statusfd, &pstatus, sizeof (pstatus), 0) == -1)
92 symstr = print_address_ps(ph, (ulong_t)pstatus.pr_lwp.pr_reg[R_PC],
100 if (get_frame(ph, (psaddr_t)fp, &frm) == -1)
103 symstr = print_address_ps(ph, (ulong_t)frm.fr_savpc,
H A Ddis.c67 print_address_ps(struct ps_prochandle *ph, ulong_t address, unsigned flags) argument
74 if (addr_to_sym(ph, address, &sym, &str) == RET_OK) {
82 if ((mip = addr_to_map(ph, address)) != 0) {
91 (pltbase = is_plt(ph, address)) != 0) {
95 if (pread(ph->pp_statusfd, &pstatus,
99 if (rd_plt_resolution(ph->pp_rap, address,
106 if (addr_to_sym(ph, rp.pi_baddr,
147 disasm_addr(struct ps_prochandle *ph, ulong_t addr, int num_inst) argument
152 if (ph->pp_dmodel == PR_MODEL_LP64)
160 if (ps_pread(ph, offse
174 disasm(struct ps_prochandle *ph, int num_inst) argument
[all...]
H A Dutils.c62 proc_string_read(struct ps_prochandle *ph, ulong_t addr, char *buf, int bufsiz) argument
68 if (lseek(ph->pp_asfd, addr, SEEK_SET) == -1)
72 if ((bufbytes = read(ph->pp_asfd, intbuf,
87 print_varstring(struct ps_prochandle *ph, const char *varname) argument
91 (void) display_all_regs(ph);
94 print_mach_varstring(ph, varname);
98 print_mem(struct ps_prochandle *ph, ulong_t address, int count, char *format) argument
100 (void) printf("\n%17s:", print_address_ps(ph, address, FLG_PAP_SONAME));
110 if (ps_pread(ph, address, (char *)&word,
132 if (ps_pread(ph, addres
[all...]
H A Dsyms.c208 addr_to_sym(struct ps_prochandle *ph, ulong_t addr, argument
213 if ((mip = addr_to_map(ph, addr)) == NULL)
220 str_to_sym(struct ps_prochandle *ph, const char *name, GElf_Sym *symp) argument
224 if (ph->pp_lmaplist.ml_head == NULL) {
225 if (str_map_sym(name, &(ph->pp_ldsomap), symp, NULL) == RET_OK)
228 return (str_map_sym(name, &(ph->pp_execmap), symp, NULL));
231 for (mip = ph->pp_lmaplist.ml_head; mip; mip = mip->mi_next)
/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Dnewphdr.c69 Elf_Void * ph; local
116 if ((ph = malloc(sz)) == 0) {
128 (void) memset(ph, 0, sz);
136 elf->ed_phdr = rc = ph;
/illumos-gate/usr/src/cmd/sgs/librtld_db/demo/amd64/
H A Dregs.c36 disp_reg_line(struct ps_prochandle *ph, pstatus_t *prst, char *r1, int ind1, argument
41 (void) strcpy(str1, print_address_ps(ph, prst->pr_lwp.pr_reg[ind1],
44 (void) strcpy(str2, print_address_ps(ph, prst->pr_lwp.pr_reg[ind2],
53 display_all_regs(struct ps_prochandle *ph) argument
57 if (pread(ph->pp_statusfd, &pstatus, sizeof (pstatus),
63 disp_reg_line(ph, &pstatus, "gs", REG_GS, "fs", REG_FS);
64 disp_reg_line(ph, &pstatus, "es", REG_ES, "ds", REG_DS);
65 disp_reg_line(ph, &pstatus, "rdi", REG_RDI, "rsi", REG_RSI);
66 disp_reg_line(ph, &pstatus, "rbp", REG_RBP, "rsp", REG_RSP);
67 disp_reg_line(ph,
[all...]
/illumos-gate/usr/src/lib/libprtdiag/common/
H A Dlibdevinfo_sun4u.c62 di_prom_handle_t ph; /* Handle for using di_prom interface */ variable
340 for (p_prop = di_prom_prop_next(ph, di_node, DI_PROM_PROP_NIL);
342 p_prop = di_prom_prop_next(ph, di_node, p_prop)) {
441 if ((ph = di_prom_init()) == NULL) {
458 di_prom_fini(ph);
/illumos-gate/usr/src/lib/libm/common/m9x/
H A D__fex_sym.c65 static Elf_Phdr *ph = NULL; /* program header array */ variable
66 static int phsize = 0; /* size of ph */
67 static int nph; /* number of entries in ph */
131 if (ph)
132 free(ph);
134 if ((ph = (Elf_Phdr*)malloc(size)) == NULL)
141 read(fd, ph, size) != (ssize_t)size)
260 if (ph[i].p_type == PT_LOAD && fo >= ph[i].p_offset &&
261 fo < ph[
[all...]
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dipft_pc.c102 pcaphdr_t ph; local
113 if (read(fd, (char *)&ph, sizeof(ph)) != sizeof(ph))
116 if (ph.pc_id != TCPDUMP_MAGIC) {
117 if (SWAPLONG(ph.pc_id) != TCPDUMP_MAGIC) {
122 swap_hdr(&ph);
125 if (ph.pc_v_maj != PCAP_VERSION_MAJ) {
131 if (llcs[i].lc_type == ph.pc_type) {
144 ph
[all...]
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo_prop_decode.c82 di_prop_reset_pos(prop_handle_t *ph) argument
84 ph->ph_cur_pos = ph->ph_data;
85 ph->ph_save_pos = ph->ph_data;
93 di_prop_save_pos(prop_handle_t *ph) argument
95 ph->ph_save_pos = ph->ph_cur_pos;
102 di_prop_restore_pos(prop_handle_t *ph) argument
104 ph
115 di_prop_fm_decode_ints(prop_handle_t *ph, void *data, uint_t *nelements) argument
191 di_prop_fm_decode_strings(prop_handle_t *ph, void *data, uint_t *nelements) argument
271 di_prop_fm_decode_bytes(prop_handle_t *ph, void *data, uint_t *nelements) argument
371 di_prop_1275_int(prop_handle_t *ph, uint_t cmd, int *data) argument
486 di_prop_int64_op(prop_handle_t *ph, uint_t cmd, int64_t *data) argument
589 di_prop_1275_string(prop_handle_t *ph, uint_t cmd, char *data) argument
726 di_prop_1275_bytes(prop_handle_t *ph, uint_t cmd, uchar_t *data, uint_t nelements) argument
831 prop_handle_t ph; local
[all...]
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/mdesc/
H A Ddr.c31 static di_prom_handle_t ph = DI_PROM_HANDLE_NIL; variable
267 dlen = di_prom_prop_lookup_ints(ph, dn, OBP_REG, &pdata);
318 if (!ph)
320 dret = di_prom_prop_lookup_ints(ph, dn, OBP_REG, pdata);
532 if ((ph = di_prom_init()) == NULL)
546 di_prom_fini(ph);
/illumos-gate/usr/src/cmd/power/
H A Dparse.c162 di_prom_handle_t ph; local
171 } else if ((ph = di_prom_init()) == DI_PROM_HANDLE_NIL) {
179 if (di_prom_prop_lookup_bytes(ph, node,
187 di_prom_fini(ph);
/illumos-gate/usr/src/cmd/prtconf/
H A Dprt_xxx.c412 #define LOOKUP_PROP(proptype, ph, nodetype, dev, node, name, data) \
414 di_prom_prop_lookup_##proptype(ph, node, name, data) : \
423 print_pciid(di_node_t node, di_prom_handle_t ph, pcidb_hdl_t *pci) argument
431 if (LOOKUP_PROP(strings, ph, type, DDI_DEV_T_ANY, pnode,
439 if (LOOKUP_PROP(ints, ph, type, DDI_DEV_T_ANY, node,
446 if (LOOKUP_PROP(ints, ph, type, DDI_DEV_T_ANY, node,

Completed in 109 milliseconds

12345