Home
last modified time | relevance | path

Searched refs:ph (Results 1 – 25 of 137) sorted by relevance

123456

/illumos-gate/usr/src/uts/common/io/mii/
H A Dmii.c1225 ph->phy_adv_aneg = ph->phy_en_aneg; in phy_start()
1229 ph->phy_adv_100_t4 = ph->phy_en_100_t4; in phy_start()
1231 ph->phy_adv_10_fdx = ph->phy_en_10_fdx; in phy_start()
1232 ph->phy_adv_10_hdx = ph->phy_en_10_hdx; in phy_start()
1233 ph->phy_adv_pause = ph->phy_en_pause; in phy_start()
1291 if (ph->phy_adv_1000_fdx || ph->phy_adv_100_fdx || ph->phy_adv_10_fdx) { in phy_start()
1840 bzero(ph, sizeof (*ph)); in _mii_probe()
1927 ph->phy_stop(ph); in _mii_reset()
1941 if (ph->phy_reset(ph) != DDI_SUCCESS) { in _mii_reset()
1974 if (ph->phy_loop(ph) != DDI_SUCCESS) { in _mii_loopback()
[all …]
H A Dmii_marvell.c154 rv = phy_reset(ph); in mvphy_reset_88e3016()
187 rv = phy_loop(ph); in mvphy_loop_88e3016()
213 rv = phy_reset(ph); in mvphy_reset_88e3082()
241 rv = phy_reset(ph); in mvphy_reset_88e1149()
318 return (phy_reset(ph)); in mvphy_reset_88e1116()
334 return (phy_reset(ph)); in mvphy_reset_88e1118()
355 return (phy_reset(ph)); in mvphy_reset_88e1111()
391 return (phy_reset(ph)); in mvphy_reset_88e1112()
414 return (phy_reset(ph)); in mvphy_reset_88e1011()
440 rv = phy_start(ph); in mvphy_start()
[all …]
H A Dmii_realtek.c50 if ((ph->phy_id == 0) && in phy_realtek_probe()
52 ph->phy_vendor = "Realtek"; in phy_realtek_probe()
57 ph->phy_vendor = "Realtek"; in phy_realtek_probe()
58 ph->phy_model = "RTL8201"; in phy_realtek_probe()
67 rtl8139_check(phy_handle_t *ph) in rtl8139_check() argument
72 rv = phy_check(ph); in rtl8139_check()
84 ph->phy_speed = 10; in rtl8139_check()
86 ph->phy_speed = 100; in rtl8139_check()
99 rv = phy_check(ph); in rtl8201_check()
108 ph->phy_speed = 100; in rtl8201_check()
[all …]
H A Dmii_qualsemi.c42 qs6612_reset(phy_handle_t *ph) in qs6612_reset() argument
50 phy_write(ph, QS_IMASK_REG, 0); in qs6612_reset()
56 qs6612_check(phy_handle_t *ph) in qs6612_check() argument
75 link = ph->phy_link; in qs6612_check()
77 rv = phy_check(ph); in qs6612_check()
80 (ph->phy_speed == 100)) { in qs6612_check()
82 val = phy_read(ph, QS_BTXPC); in qs6612_check()
85 phy_write(ph, QS_BTXPC, val); in qs6612_check()
97 ph->phy_model = "QS6612"; in phy_qualsemi_probe()
98 ph->phy_reset = qs6612_reset; in phy_qualsemi_probe()
[all …]
H A Dmii_natsemi.c38 ns83840_reset(phy_handle_t *ph) in ns83840_reset() argument
41 if (phy_reset(ph) != DDI_SUCCESS) { in ns83840_reset()
57 PHY_SET(ph, MII_VENDOR(7), (1<<10) | (1<<8) | (1<<5)); in ns83840_reset()
62 phy_natsemi_probe(phy_handle_t *ph) in phy_natsemi_probe() argument
69 ph->phy_vendor = "National Semiconductor"; in phy_natsemi_probe()
71 switch (MII_PHY_MODEL(ph->phy_id)) { in phy_natsemi_probe()
73 ph->phy_model = "DP83840"; in phy_natsemi_probe()
74 ph->phy_reset = ns83840_reset; in phy_natsemi_probe()
78 ph->phy_model = "DP83843"; in phy_natsemi_probe()
82 ph->phy_model = "DP83847"; in phy_natsemi_probe()
[all …]
H A Dmii_intel.c58 i82555_start(phy_handle_t *ph) in i82555_start() argument
62 if ((rv = phy_start(ph)) != DDI_SUCCESS) { in i82555_start()
82 if (phy_get_prop(ph, "AutoPolarity", 0) == 0) { in i82555_start()
84 PHY_SET(ph, MII_82555_SPCL_CONTROL, I82555_AUTOPOL_DIS); in i82555_start()
87 PHY_CLR(ph, MII_82555_SPCL_CONTROL, I82555_AUTOPOL_DIS); in i82555_start()
94 phy_intel_probe(phy_handle_t *ph) in phy_intel_probe() argument
98 if (MII_PHY_MFG(ph->phy_id) != MII_OUI_INTEL) { in phy_intel_probe()
102 switch (MII_PHY_MODEL(ph->phy_id)) { in phy_intel_probe()
107 ph->phy_start = i82555_start; in phy_intel_probe()
123 ph->phy_vendor = "Intel"; in phy_intel_probe()
[all …]
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo_prop_decode.c84 ph->ph_cur_pos = ph->ph_data; in di_prop_reset_pos()
85 ph->ph_save_pos = ph->ph_data; in di_prop_reset_pos()
95 ph->ph_save_pos = ph->ph_cur_pos; in di_prop_save_pos()
104 ph->ph_cur_pos = ph->ph_save_pos; in di_prop_restore_pos()
447 (caddr_t)ph->ph_data + ph->ph_size) { in di_prop_1275_int()
450 (caddr_t)ph->ph_data + ph->ph_size) { in di_prop_1275_int()
551 (caddr_t)ph->ph_data + ph->ph_size) { in di_prop_int64_op()
663 end = (char *)ph->ph_data + ph->ph_size; in di_prop_1275_string()
697 end = (char *)ph->ph_data + ph->ph_size; in di_prop_1275_string()
903 ph.ph_cur_pos = ph.ph_data; in di_prop_decode_common()
[all …]
/illumos-gate/usr/src/cmd/sgs/demo_rdb/sparcv9/
H A Dregs.c45 if (ph->pp_dmodel == PR_MODEL_LP64) { in disp_reg_line()
77 disp_reg_line(ph, prst, "l0", R_L0, "l4", R_L4); in display_local_regs()
78 disp_reg_line(ph, prst, "l1", R_L1, "l5", R_L5); in display_local_regs()
79 disp_reg_line(ph, prst, "l2", R_L2, "l6", R_L6); in display_local_regs()
117 if (ph->pp_dmodel == PR_MODEL_LP64) { in display_special_regs()
170 display_all_regs(struct ps_prochandle *ph) in display_all_regs() argument
179 display_global_regs(ph, &pstatus); in display_all_regs()
180 display_in_regs(ph, &pstatus); in display_all_regs()
181 display_local_regs(ph, &pstatus); in display_all_regs()
182 display_out_regs(ph, &pstatus); in display_all_regs()
[all …]
/illumos-gate/usr/src/cmd/sgs/demo_rdb/sparc/
H A Dregs.c64 disp_reg_line(ph, prst, "l0", R_L0, "l4", R_L4); in display_local_regs()
65 disp_reg_line(ph, prst, "l1", R_L1, "l5", R_L5); in display_local_regs()
66 disp_reg_line(ph, prst, "l2", R_L2, "l6", R_L6); in display_local_regs()
67 disp_reg_line(ph, prst, "l3", R_L3, "l7", R_L7); in display_local_regs()
84 disp_reg_line(ph, prst, "o0", R_O0, "o4", R_O4); in display_out_regs()
151 display_all_regs(struct ps_prochandle *ph) in display_all_regs() argument
160 display_global_regs(ph, &pstatus); in display_all_regs()
161 display_in_regs(ph, &pstatus); in display_all_regs()
162 display_local_regs(ph, &pstatus); in display_all_regs()
163 display_out_regs(ph, &pstatus); in display_all_regs()
[all …]
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_door.h90 (ph)->p_status = st; \
92 (ph)->p_errno = e; \
96 (ph)->p_herrno = herrno;
101 (ph)->p_errno = 0;
106 (ph)->p_status = st; \
108 (ph)->p_errno = e; \
109 (ph)->nscdpriv = n2nst; \
121 #define NSCD_GET_ERRNO(ph) \ argument
131 (ph)->p_status = 0; \
132 (ph)->p_errno = 0; \
[all …]
/illumos-gate/usr/src/cmd/sgs/demo_rdb/common/
H A Dbpt.c88 ph->pp_breakpoints = new; in set_breakpoint()
102 for (cur = ph->pp_breakpoints; in find_bp()
202 ph->pp_breakpoints = NULL; in delete_all_breakpoints()
219 return (delete_bp(ph, addr)); in delete_breakpoint()
297 set_breaks(ph); in continue_to_break()
320 (void) ps_close(ph); in continue_to_break()
360 clear_breaks(ph); in continue_to_break()
376 handle_sp_break(ph); in continue_to_break()
434 handle_sp_break(ph); in step_n()
438 disasm(ph, 1); in step_n()
[all …]
H A Dmaps.c84 if (ph->pp_lmaplist.ml_head == NULL) { in addr_to_map()
90 (addr <= ph->pp_ldsomap.mi_end)) in addr_to_map()
94 (addr <= ph->pp_execmap.mi_end)) in addr_to_map()
165 if (ph->pp_dmodel == PR_MODEL_LP64) in display_maps()
175 if (ph->pp_dmodel == PR_MODEL_LP64) in display_maps()
184 if ((mip = addr_to_map(ph, in display_maps()
404 ph->pp_lmaplist.ml_head = ph->pp_lmaplist.ml_tail = mip; in map_iter()
409 ph->pp_lmaplist.ml_tail = mip; in map_iter()
438 ph->pp_lmaplist.ml_head = ph->pp_lmaplist.ml_tail = NULL; in free_linkmaps()
444 free_linkmaps(ph); in get_linkmaps()
[all …]
H A Ddis.c74 if (addr_to_sym(ph, address, &sym, &str) == RET_OK) { in print_address_ps()
82 if ((mip = addr_to_map(ph, address)) != 0) { in print_address_ps()
91 (pltbase = is_plt(ph, address)) != 0) { in print_address_ps()
95 if (pread(ph->pp_statusfd, &pstatus, in print_address_ps()
99 if (rd_plt_resolution(ph->pp_rap, address, in print_address_ps()
106 if (addr_to_sym(ph, rp.pi_baddr, in print_address_ps()
152 if (ph->pp_dmodel == PR_MODEL_LP64) in disasm_addr()
160 if (ps_pread(ph, offset, (char *)&instr, in disasm_addr()
164 cur_ph = ph; in disasm_addr()
174 disasm(struct ps_prochandle *ph, int num_inst) in disasm() argument
[all …]
H A Dutils.c62 proc_string_read(struct ps_prochandle *ph, ulong_t addr, char *buf, int bufsiz) in proc_string_read() argument
68 if (lseek(ph->pp_asfd, addr, SEEK_SET) == -1) in proc_string_read()
72 if ((bufbytes = read(ph->pp_asfd, intbuf, in proc_string_read()
87 print_varstring(struct ps_prochandle *ph, const char *varname) in print_varstring() argument
91 (void) display_all_regs(ph); in print_varstring()
94 print_mach_varstring(ph, varname); in print_varstring()
98 print_mem(struct ps_prochandle *ph, ulong_t address, int count, char *format) in print_mem() argument
100 (void) printf("\n%17s:", print_address_ps(ph, address, FLG_PAP_SONAME)); in print_mem()
110 if (ps_pread(ph, address, (char *)&word, in print_mem()
132 if (ps_pread(ph, address, (char *)&byte, in print_mem()
[all …]
/illumos-gate/usr/src/uts/common/io/usb/hcd/uhci/
H A Duhcitgt.c76 ASSERT(ph); in uhci_hcdi_pipe_open()
179 mutex_exit(&ph->p_mutex); in uhci_hcdi_pipe_open()
219 pp->pp_pipe_handle = ph; in uhci_hcdi_pipe_open()
222 mutex_enter(&ph->p_mutex); in uhci_hcdi_pipe_open()
227 mutex_exit(&ph->p_mutex); in uhci_hcdi_pipe_open()
281 ph->p_usba_device, ph->p_ep.bEndpointAddress); in uhci_hcdi_pipe_open()
282 mutex_exit(&ph->p_mutex); in uhci_hcdi_pipe_open()
434 ph->p_hcd_private = NULL; in uhci_hcdi_pipe_close()
435 mutex_exit(&ph->p_mutex); in uhci_hcdi_pipe_close()
599 usba_hcdi_set_data_toggle(ph->p_usba_device, ph->p_ep.bEndpointAddress, in uhci_hcdi_pipe_reset_data_toggle()
[all …]
/illumos-gate/usr/src/uts/common/io/usb/hcd/ehci/
H A Dehci.c837 if (ph->p_hcd_private) { in ehci_hcdi_pipe_open()
876 mutex_exit(&ph->p_mutex); in ehci_hcdi_pipe_open()
921 pp->pp_pipe_handle = ph; in ehci_hcdi_pipe_open()
923 mutex_enter(&ph->p_mutex); in ehci_hcdi_pipe_open()
931 mutex_exit(&ph->p_mutex); in ehci_hcdi_pipe_open()
1080 ph->p_hcd_private = NULL; in ehci_hcdi_pipe_close()
1082 mutex_exit(&ph->p_mutex); in ehci_hcdi_pipe_close()
1150 usba_hcdi_set_data_toggle(ph->p_usba_device, ph->p_ep.bEndpointAddress, in ehci_hcdi_pipe_reset_data_toggle()
1152 mutex_exit(&ph->p_mutex); in ehci_hcdi_pipe_reset_data_toggle()
1394 (void *)ph, flags); in ehci_hcdi_pipe_stop_intr_polling()
[all …]
H A Dehci_xfer.c50 usba_pipe_handle_data_t *ph,
54 usba_pipe_handle_data_t *ph,
320 if (ph) { in ehci_alloc_qh()
363 if (ph) { in ehci_alloc_qh()
874 ehci_insert_qh(ehcip, ph); in ehci_halt_hs_qh()
926 ehci_insert_qh(ehcip, ph); in ehci_halt_fls_ctrl_and_bulk_qh()
959 eptd = &ph->p_ep; in ehci_clear_tt_buffer()
3629 ph->p_req_count++; in ehci_allocate_intr_in_resource()
3910 usba_hcdi_set_data_toggle(ph->p_usba_device, ph->p_ep.bEndpointAddress, in ehci_save_data_toggle()
3947 usba_hcdi_set_data_toggle(ph->p_usba_device, ph->p_ep.bEndpointAddress, in ehci_restore_data_toggle()
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dmdi_impldefs.h364 #define MDI_PHCI_UNSTABLE(ph) (ph)->ph_unstable++; argument
365 #define MDI_PHCI_STABLE(ph) { \ argument
366 (ph)->ph_unstable--; \
367 if ((ph)->ph_unstable == 0) { \
375 #define MDI_PHCI_LOCK(ph) mutex_enter(&(ph)->ph_mutex) argument
376 #define MDI_PHCI_TRYLOCK(ph) mutex_tryenter(&(ph)->ph_mutex) argument
377 #define MDI_PHCI_UNLOCK(ph) mutex_exit(&(ph)->ph_mutex) argument
398 #define MDI_PHCI_IS_READY(ph) \ argument
402 ASSERT(MDI_PHCI_LOCKED(ph)); \
405 ASSERT(MDI_PHCI_LOCKED(ph)); \
[all …]
H A Dddipropdefs.h89 int (*op_prop_int)(prop_handle_t *ph, uint_t cmd, int *data);
90 int (*op_prop_str)(prop_handle_t *ph, uint_t cmd, char *data);
91 int (*op_prop_bytes)(prop_handle_t *ph, uint_t cmd,
110 #define DDI_PROP_INT(ph, cmd, data) \ argument
111 (*(ph)->ph_ops->op_prop_int)((ph), (cmd), (data))
112 #define DDI_PROP_STR(ph, cmd, data) \ argument
113 (*(ph)->ph_ops->op_prop_str)((ph), (cmd), (data))
114 #define DDI_PROP_BYTES(ph, cmd, data, size) \ argument
115 (*(ph)->ph_ops->op_prop_bytes)((ph), (cmd), (data), (size))
120 #define DDI_PROP_INT64(ph, cmd, data) \ argument
[all …]
/illumos-gate/usr/src/cmd/sgs/demo_rdb/i386/
H A Dregs.c51 display_all_regs(struct ps_prochandle *ph) in display_all_regs() argument
55 if (pread(ph->pp_statusfd, &pstatus, sizeof (pstatus), in display_all_regs()
61 disp_reg_line(ph, &pstatus, "gs", GS, "fs", FS); in display_all_regs()
62 disp_reg_line(ph, &pstatus, "es", ES, "ds", DS); in display_all_regs()
63 disp_reg_line(ph, &pstatus, "edi", EDI, "esi", ESI); in display_all_regs()
64 disp_reg_line(ph, &pstatus, "ebp", EBP, "esp", ESP); in display_all_regs()
65 disp_reg_line(ph, &pstatus, "ebx", EBX, "edx", EDX); in display_all_regs()
66 disp_reg_line(ph, &pstatus, "ecx", ECX, "eax", EAX); in display_all_regs()
67 disp_reg_line(ph, &pstatus, "trapno", TRAPNO, "err", ERR); in display_all_regs()
68 disp_reg_line(ph, &pstatus, "eip", EIP, "cs", CS); in display_all_regs()
[all …]
/illumos-gate/usr/src/cmd/sgs/demo_rdb/amd64/
H A Dregs.c41 (void) strcpy(str1, print_address_ps(ph, prst->pr_lwp.pr_reg[ind1], in disp_reg_line()
53 display_all_regs(struct ps_prochandle *ph) in display_all_regs() argument
57 if (pread(ph->pp_statusfd, &pstatus, sizeof (pstatus), in display_all_regs()
63 disp_reg_line(ph, &pstatus, "gs", REG_GS, "fs", REG_FS); in display_all_regs()
64 disp_reg_line(ph, &pstatus, "es", REG_ES, "ds", REG_DS); in display_all_regs()
65 disp_reg_line(ph, &pstatus, "rdi", REG_RDI, "rsi", REG_RSI); in display_all_regs()
66 disp_reg_line(ph, &pstatus, "rbp", REG_RBP, "rsp", REG_RSP); in display_all_regs()
67 disp_reg_line(ph, &pstatus, "rbx", REG_RBX, "rdx", REG_RDX); in display_all_regs()
68 disp_reg_line(ph, &pstatus, "rcx", REG_RCX, "rax", REG_RAX); in display_all_regs()
70 disp_reg_line(ph, &pstatus, "rip", REG_RIP, "cs", REG_CS); in display_all_regs()
[all …]
/illumos-gate/usr/src/cmd/ldmad/
H A Dldma_dio.c147 add_prom_string_prop(di_prom_handle_t ph, in add_prom_string_prop() argument
178 add_prom_int_prop(di_prom_handle_t ph, in add_prom_int_prop() argument
224 if (add_prom_int_prop(ph, in link_device_node()
228 if (add_prom_int_prop(ph, in link_device_node()
232 if (add_prom_int_prop(ph, in link_device_node()
267 ph, di_child, md_node, path); in create_children()
304 di_prom_handle_t ph; in device_tree_to_md() local
314 ph = di_prom_init(); in device_tree_to_md()
315 if (ph == DI_PROM_HANDLE_NIL) { in device_tree_to_md()
323 if (is_root_complex(ph, node)) { in device_tree_to_md()
[all …]
/illumos-gate/usr/src/uts/common/io/1394/targets/av1394/
H A Dav1394_cmp.c202 int ph; in av1394_ioctl_plug_fini() local
206 if (av1394_pcr_ph_is_remote(ph) || av1394_pcr_ph_is_mpr(ph)) { in av1394_ioctl_plug_fini()
231 int ph; in av1394_ioctl_plug_reg_read() local
237 ph = pr.pr_handle; in av1394_ioctl_plug_reg_read()
280 int ph; in av1394_ioctl_plug_reg_cas() local
286 ph = pl.pl_handle; in av1394_ioctl_plug_reg_cas()
421 int ph; in av1394_ioctl_plug_init_remote() local
433 pip->pi_handle = ph; in av1394_ioctl_plug_init_remote()
537 int ph; in av1394_pcr_make_ph() local
547 ph = AV1394_IMPR_IDX; in av1394_pcr_make_ph()
[all …]
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_asconf.c228 ASSERT(ph); in sctp_asconf_ack_unrec_parm()
445 ph = (sctp_parm_hdr_t *)((char *)ph + ntohs(ph->sph_len)); in sctp_input_asconf()
561 ph = sctp_next_parm(ph, &rlen); in sctp_input_asconf()
604 return (ph); in sctp_lookup_asconf_param()
606 ph = sctp_next_parm(ph, &rlen); in sctp_lookup_asconf_param()
738 ph = sctp_next_parm(ph, &rlen); in sctp_input_asconf_ack()
1175 if (ntohs(ph->sph_len) < (sizeof (*ph) * 2)) { in sctp_addip_req()
1308 if (ph != NULL && ph->sph_type != htons(PARM_SUCCESS)) { in sctp_addip_ack()
1371 if (ntohs(ph->sph_len) < (sizeof (*ph) * 2)) { in sctp_setprim_req()
1379 oph = ph; in sctp_setprim_req()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dsunmdi.c786 return (ph); in i_devi_get_phci()
943 mdi_phci_t *ph; in mdi_devi_get_vdip() local
946 if (ph && ph->ph_vhci) in mdi_devi_get_vdip()
968 while (ph) { in mdi_devi_pdip_entered()
969 if (ph->ph_dip && DEVI_BUSY_OWNED(ph->ph_dip)) { in mdi_devi_pdip_entered()
973 ph = ph->ph_next; in mdi_devi_pdip_entered()
1013 ph = ph->ph_next; in mdi_phci_path2devinfo()
3439 ASSERT(ph); in i_mdi_pi_state_change()
4217 if (ph) in mdi_pi_get_phci()
9541 while (ph) { in mdi_vhci_walk_phcis()
[all …]

123456