Home
last modified time | relevance | path

Searched refs:sfp (Results 1 – 25 of 89) sorted by relevance

1234

/freebsd/lib/libifconfig/
H A Dlibifconfig_sfp.c145 get_sfp_info(struct i2c_info *ii, struct ifconfig_sfp_info *sfp) in get_sfp_info() argument
149 read_i2c(ii, SFF_8472_BASE, SFF_8472_ID, 1, &sfp->sfp_id); in get_sfp_info()
150 read_i2c(ii, SFF_8472_BASE, SFF_8472_CONNECTOR, 1, &sfp->sfp_conn); in get_sfp_info()
153 read_i2c(ii, SFF_8472_BASE, SFF_8472_TRANS, 1, &sfp->sfp_eth_ext); in get_sfp_info()
154 if (sfp->sfp_eth_ext == 0) { in get_sfp_info()
157 sfp->sfp_eth_10g = find_zero_bit(sfp_eth_10g_table, code, 1); in get_sfp_info()
158 if (sfp->sfp_eth_10g == 0) { in get_sfp_info()
162 sfp->sfp_eth = find_zero_bit(sfp_eth_table, code, 1); in get_sfp_info()
170 get_qsfp_info(struct i2c_info *ii, struct ifconfig_sfp_info *sfp) in get_qsfp_info() argument
174 read_i2c(ii, SFF_8436_BASE, SFF_8436_ID, 1, &sfp->sfp_id); in get_qsfp_info()
[all …]
H A Dlibifconfig_sfp.h102 struct ifconfig_sfp_info *sfp);
108 size_t ifconfig_sfp_channel_count(const struct ifconfig_sfp_info *sfp);
136 void ifconfig_sfp_get_sfp_info_strings(const struct ifconfig_sfp_info *sfp,
147 const char *ifconfig_sfp_physical_spec(const struct ifconfig_sfp_info *sfp,
H A Dlibifconfig_sfp_tables_internal.tpl.h26 {# THIS IS A TEMPLATE PROCESSED BY lib/libifconfig/sfp.lua #}
50 get_sfp_info_strings(const struct ifconfig_sfp_info *sfp,
59 strings->{*name*} = ifconfig_{*name*}_description(sfp->{*name*});
/freebsd/lib/libc/i386/gen/
H A Dsignalcontext.c44 struct sigframe *sfp; in __signalcontext() local
58 sfp = (struct sigframe *)p; in __signalcontext()
59 bzero(sfp, sizeof(struct sigframe)); in __signalcontext()
60 sfp->sf_signum = sig; in __signalcontext()
61 sfp->sf_siginfo = (register_t)(intptr_t)&sfp->sf_si; in __signalcontext()
62 sfp->sf_ucontext = (register_t)(intptr_t)&sfp->sf_uc; in __signalcontext()
63 sfp->sf_ahu.sf_action = (__siginfohandler_t *)func; in __signalcontext()
64 bcopy(ucp, &sfp->sf_uc, sizeof(ucontext_t)); in __signalcontext()
65 sfp->sf_si.si_signo = sig; in __signalcontext()
75 ucp->uc_link = &sfp->sf_uc; in __signalcontext()
/freebsd/lib/libc/arm/gen/
H A Dsignalcontext.c50 struct sigframe *sfp; in __signalcontext() local
56 sfp = (struct sigframe *)sp - 1; in __signalcontext()
58 bzero(sfp, sizeof(*sfp)); in __signalcontext()
59 bcopy(ucp, &sfp->sf_uc, sizeof(*ucp)); in __signalcontext()
60 sfp->sf_si.si_signo = sig; in __signalcontext()
62 gr[_REG_SP] = (__greg_t)sfp; in __signalcontext()
70 gr[_REG_R1] = (__greg_t)&sfp->sf_si; in __signalcontext()
71 gr[_REG_R2] = (__greg_t)&sfp->sf_uc; in __signalcontext()
73 ucp->uc_link = &sfp->sf_uc; in __signalcontext()
/freebsd/sys/contrib/device-tree/src/arm64/microchip/
H A Dsparx5_pcb134_board.dtsi548 sfp_eth12: sfp-eth12 {
549 compatible = "sff,sfp";
556 sfp_eth13: sfp-eth13 {
557 compatible = "sff,sfp";
564 sfp_eth14: sfp-eth14 {
565 compatible = "sff,sfp";
572 sfp_eth15: sfp-eth15 {
573 compatible = "sff,sfp";
580 sfp_eth48: sfp-eth48 {
581 compatible = "sff,sfp";
[all …]
H A Dsparx5_pcb135_board.dtsi172 sfp_eth60: sfp-eth60 {
173 compatible = "sff,sfp";
181 sfp_eth61: sfp-eth61 {
182 compatible = "sff,sfp";
190 sfp_eth62: sfp-eth62 {
191 compatible = "sff,sfp";
199 sfp_eth63: sfp-eth63 {
200 compatible = "sff,sfp";
716 sfp = <&sfp_eth60>;
724 sfp = <&sfp_eth61>;
[all …]
/freebsd/sys/contrib/device-tree/src/arm64/freescale/
H A Dfsl-lx2160a-clearfog-itx.dtsi34 sfp0: sfp-0 {
35 compatible = "sff,sfp";
41 sfp1: sfp-1 {
42 compatible = "sff,sfp";
48 sfp2: sfp-2 {
49 compatible = "sff,sfp";
55 sfp3: sfp-3 {
56 compatible = "sff,sfp";
64 sfp = <&sfp0>;
70 sfp = <&sfp1>;
[all …]
H A Dfsl-ls1088a-ten64.dts71 sfp_xg0: dpmac2-sfp {
72 compatible = "sff,sfp";
81 sfp_xg1: dpmac1-sfp {
82 compatible = "sff,sfp";
94 sfp = <&sfp_xg1>;
102 sfp = <&sfp_xg0>;
/freebsd/bin/ed/
H A Dbuf.c36 static FILE *sfp; /* scratch file pointer */ variable
57 if (fseeko(sfp, sfseek, SEEK_SET) < 0) { in get_sbuf_line()
65 if (fread(sfbuf, sizeof(char), len, sfp) != len) { in get_sbuf_line()
101 if (fseeko(sfp, (off_t)0, SEEK_END) < 0) { in put_sbuf_line()
107 sfseek = ftello(sfp); in put_sbuf_line()
111 if (fwrite(cs, sizeof(char), len, sfp) != len) { in put_sbuf_line()
199 (sfp = fdopen(fd, "w+")) == NULL) { in open_sbuf()
216 if (sfp) { in close_sbuf()
217 if (fclose(sfp) < 0) { in close_sbuf()
222 sfp = NULL; in close_sbuf()
[all …]
/freebsd/sys/dev/sfxge/common/
H A Defx_filter.c927 __inout siena_filter_t *sfp, in siena_filter_reset_search_depth() argument
932 sfp->sf_depth[EFX_SIENA_FILTER_RX_TCP_FULL] = 0; in siena_filter_reset_search_depth()
933 sfp->sf_depth[EFX_SIENA_FILTER_RX_TCP_WILD] = 0; in siena_filter_reset_search_depth()
934 sfp->sf_depth[EFX_SIENA_FILTER_RX_UDP_FULL] = 0; in siena_filter_reset_search_depth()
935 sfp->sf_depth[EFX_SIENA_FILTER_RX_UDP_WILD] = 0; in siena_filter_reset_search_depth()
939 sfp->sf_depth[EFX_SIENA_FILTER_RX_MAC_FULL] = 0; in siena_filter_reset_search_depth()
940 sfp->sf_depth[EFX_SIENA_FILTER_RX_MAC_WILD] = 0; in siena_filter_reset_search_depth()
944 sfp->sf_depth[EFX_SIENA_FILTER_TX_TCP_FULL] = 0; in siena_filter_reset_search_depth()
945 sfp->sf_depth[EFX_SIENA_FILTER_TX_TCP_WILD] = 0; in siena_filter_reset_search_depth()
946 sfp->sf_depth[EFX_SIENA_FILTER_TX_UDP_FULL] = 0; in siena_filter_reset_search_depth()
[all …]
/freebsd/sbin/mount/
H A Dmount.c646 prmount(struct statfs *sfp) in prmount() argument
654 xo_emit("{:special/%hs}{L: on }{:node/%hs}{L: (}{:fstype}", sfp->f_mntfromname, in prmount()
655 sfp->f_mntonname, sfp->f_fstypename); in prmount()
657 flags = sfp->f_flags & MNT_VISFLAGMASK; in prmount()
667 if ((flags & MNT_USER) != 0 || sfp->f_owner != 0) { in prmount()
669 if ((pw = getpwuid(sfp->f_owner)) != NULL) in prmount()
672 xo_emit("{:mounter/%hs}", sfp->f_owner); in prmount()
675 if (sfp->f_syncwrites != 0 || sfp->f_asyncwrites != 0) { in prmount()
678 (uintmax_t)sfp->f_syncwrites, in prmount()
679 (uintmax_t)sfp->f_asyncwrites); in prmount()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/net/
H A Dsff,sfp.txt7 "sff,sfp" for SFP modules
42 sfp_eth3: sfp-eth3 {
43 compatible = "sff,sfp";
57 sfp = <&sfp_eth3>;
62 sfp_eth0: sfp-eth0 {
63 compatible = "sff,sfp";
79 sfp = <&sfp_eth0>;
/freebsd/sys/dev/dpaa2/
H A Ddpaa2_mc_fdt.c63 phandle_t sfp; member
75 sfp = <0x14>;
142 s = device_get_property(dev, "sfp", &sc->sfp, sizeof(sc->sfp), in dpaa2_mac_fdt_attach()
151 sc->reg, sc->sfp, sc->pcs_handle, sc->phy_handle, in dpaa2_mac_fdt_attach()
181 if (sc->phy_handle == 0 && sc->sfp == 0) in dpaa2_mac_fdt_get_phy_dev()
185 if (sc->sfp != 0) { in dpaa2_mac_fdt_get_phy_dev()
188 xdev = OF_device_from_xref(OF_xref_from_node(sc->sfp)); in dpaa2_mac_fdt_get_phy_dev()
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dvm.h45 zfs_map_page(vm_page_t pp, struct sf_buf **sfp) in zfs_map_page() argument
47 *sfp = sf_buf_alloc(pp, 0); in zfs_map_page()
48 return ((caddr_t)sf_buf_kva(*sfp)); in zfs_map_page()
/freebsd/sys/cddl/compat/opensolaris/sys/
H A Dvm.h45 zfs_map_page(vm_page_t pp, struct sf_buf **sfp) in zfs_map_page() argument
47 *sfp = sf_buf_alloc(pp, 0); in zfs_map_page()
48 return ((caddr_t)sf_buf_kva(*sfp)); in zfs_map_page()
/freebsd/sys/kern/
H A Dsys_generic.c1387 struct selfd *sfp; in selrescan() local
1399 STAILQ_FOREACH_SAFE(sfp, &stp->st_selq, sf_link, sfn) { in selrescan()
1400 fd = (int)(uintptr_t)sfp->sf_cookie; in selrescan()
1401 si = sfp->sf_si; in selrescan()
1402 selfdfree(stp, sfp); in selrescan()
1640 struct selfd *sfp; in pollrescan() local
1653 STAILQ_FOREACH_SAFE(sfp, &stp->st_selq, sf_link, sfn) { in pollrescan()
1654 fd = (struct pollfd *)sfp->sf_cookie; in pollrescan()
1655 si = sfp->sf_si; in pollrescan()
1656 selfdfree(stp, sfp); in pollrescan()
1834 selfdfree(struct seltd * stp,struct selfd * sfp) selfdfree() argument
1872 struct selfd *sfp; selrecord() local
1936 struct selfd *sfp; doselwakeup() local
2048 struct selfd *sfp; seltdclear() local
[all...]
/freebsd/sys/contrib/device-tree/src/arm/microchip/
H A Dlan966x-pcb8309.dts36 i2c102: i2c-sfp@1 {
40 i2c103: i2c-sfp@2 {
82 compatible = "sff,sfp";
91 compatible = "sff,sfp";
193 sfp = <&sfp2>;
201 sfp = <&sfp3>;
H A Dlan966x-kontron-kswitch-d10-mmt-6g-2gs.dts20 compatible = "sff,sfp";
32 compatible = "sff,sfp";
82 sfp = <&sfp0>;
90 sfp = <&sfp1>;
/freebsd/sys/contrib/device-tree/src/arm64/marvell/
H A Darmada-3720-uDPU.dts11 sfp_eth0: sfp-eth0 {
12 compatible = "sff,sfp";
41 sfp = <&sfp_eth0>;
H A Darmada-8040-mcbin.dtsi64 sfp_eth0: sfp-eth0 {
66 compatible = "sff,sfp";
77 sfp_eth1: sfp-eth1 {
79 compatible = "sff,sfp";
90 sfp_eth3: sfp-eth3 {
92 compatible = "sff,sfp";
214 cp0_sfp_1g_pins: sfp-1g-pins {
309 sfp = <&sfp_eth3>;
325 cp1_sfp_1g_pins: sfp-1g-pins {
H A Darmada-3720-turris-mox.dts100 sfp: sfp { label
101 compatible = "sff,sfp";
428 port-sfp@a {
430 label = "sfp";
431 sfp = <&sfp>;
622 port-sfp@a {
624 label = "sfp";
625 sfp
[all...]
/freebsd/sys/contrib/device-tree/src/arm/broadcom/
H A Dbcm958625hr.dts58 sfp: sfp { label
59 compatible = "sff,sfp";
225 label = "sfp";
228 sfp = <&sfp>;
/freebsd/sys/contrib/device-tree/src/arm/marvell/
H A Darmada-388-clearfog.dtsi80 sfp: sfp { label
81 compatible = "sff,sfp";
109 sfp = <&sfp>;
/freebsd/sys/amd64/ia32/
H A Dia32_signal.c441 struct ia32_freebsd4_sigframe sf, *sfp; in freebsd4_ia32_sendsig() local
497 sfp = (struct ia32_freebsd4_sigframe *)((uintptr_t)td->td_sigstk.ss_sp + in freebsd4_ia32_sendsig()
500 sfp = (struct ia32_freebsd4_sigframe *)regs->tf_rsp - 1; in freebsd4_ia32_sendsig()
505 sf.sf_ucontext = (register_t)&sfp->sf_uc; in freebsd4_ia32_sendsig()
509 sf.sf_siginfo = (u_int32_t)(uintptr_t)&sfp->sf_si; in freebsd4_ia32_sendsig()
526 if (copyout(&sf, sfp, sizeof(*sfp)) != 0) { in freebsd4_ia32_sendsig()
534 regs->tf_rsp = (uintptr_t)sfp; in freebsd4_ia32_sendsig()
552 struct ia32_sigframe sf, *sfp; in ia32_sendsig() local
631 sfp = (struct ia32_sigframe *)((uintptr_t)sp & ~0xF); in ia32_sendsig()
636 sf.sf_ucontext = (register_t)&sfp->sf_uc; in ia32_sendsig()
[all …]

1234