Home
last modified time | relevance | path

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

123

/OK3568_Linux_fs/kernel/drivers/net/phy/
H A Dsfp.c215 struct sfp { struct
225 unsigned int (*get_state)(struct sfp *); argument
226 void (*set_state)(struct sfp *, unsigned int); argument
227 int (*read)(struct sfp *, bool, u8, void *, size_t); argument
228 int (*write)(struct sfp *, bool, u8, void *, size_t); argument
309 static unsigned int sfp_gpio_get_state(struct sfp *sfp) in sfp_gpio_get_state() argument
314 if (gpio_flags[i] != GPIOD_IN || !sfp->gpio[i]) in sfp_gpio_get_state()
317 v = gpiod_get_value_cansleep(sfp->gpio[i]); in sfp_gpio_get_state()
325 static unsigned int sff_gpio_get_state(struct sfp *sfp) in sff_gpio_get_state() argument
327 return sfp_gpio_get_state(sfp) | SFP_F_PRESENT; in sff_gpio_get_state()
[all …]
H A Dsfp.h7 struct sfp;
10 void (*attach)(struct sfp *sfp);
11 void (*detach)(struct sfp *sfp);
12 void (*start)(struct sfp *sfp);
13 void (*stop)(struct sfp *sfp);
14 int (*module_info)(struct sfp *sfp, struct ethtool_modinfo *modinfo);
15 int (*module_eeprom)(struct sfp *sfp, struct ethtool_eeprom *ee,
28 struct sfp_bus *sfp_register_socket(struct device *dev, struct sfp *sfp,
H A Dsfp-bus.c30 struct sfp *sfp; member
424 struct sfp_bus *sfp, *new, *found = NULL; in sfp_bus_get() local
430 list_for_each_entry(sfp, &sfp_buses, node) { in sfp_bus_get()
431 if (sfp->fwnode == fwnode) { in sfp_bus_get()
432 kref_get(&sfp->kref); in sfp_bus_get()
433 found = sfp; in sfp_bus_get()
491 bus->socket_ops->attach(bus->sfp); in sfp_register_bus()
493 bus->socket_ops->start(bus->sfp); in sfp_register_bus()
505 bus->socket_ops->stop(bus->sfp); in sfp_unregister_bus()
506 bus->socket_ops->detach(bus->sfp); in sfp_unregister_bus()
[all …]
H A DMakefile29 obj-$(CONFIG_SFP) += sfp.o
30 sfp-obj-$(CONFIG_SFP) += sfp-bus.o
31 obj-y += $(sfp-obj-y) $(sfp-obj-m)
/OK3568_Linux_fs/kernel/drivers/media/usb/pvrusb2/
H A Dpvrusb2-sysfs.c286 static void pvr2_sysfs_add_control(struct pvr2_sysfs *sfp,int ctl_id) in pvr2_sysfs_add_control() argument
293 cptr = pvr2_hdw_get_ctrl_by_index(sfp->channel.hdw,ctl_id); in pvr2_sysfs_add_control()
303 cip->chptr = sfp; in pvr2_sysfs_add_control()
305 if (sfp->item_last) { in pvr2_sysfs_add_control()
306 sfp->item_last->item_next = cip; in pvr2_sysfs_add_control()
308 sfp->item_first = cip; in pvr2_sysfs_add_control()
310 sfp->item_last = cip; in pvr2_sysfs_add_control()
395 ret = sysfs_create_group(&sfp->class_dev->kobj,&cip->grp); in pvr2_sysfs_add_control()
413 static void pvr2_sysfs_add_debugifc(struct pvr2_sysfs *sfp) in pvr2_sysfs_add_debugifc() argument
429 sfp->debugifc = dip; in pvr2_sysfs_add_debugifc()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/nxp/mlinux/
H A Dmoal_proc.c79 static int woal_info_proc_read(struct seq_file *sfp, void *data) in woal_info_proc_read() argument
81 struct net_device *netdev = (struct net_device *)sfp->private; in woal_info_proc_read()
130 seq_printf(sfp, "driver_name = " in woal_info_proc_read()
151 seq_printf(sfp, "driver_name = " in woal_info_proc_read()
155 seq_printf(sfp, "driver_version = %s", fmt); in woal_info_proc_read()
156 seq_printf(sfp, "\ninterface_name=\"%s\"\n", netdev->name); in woal_info_proc_read()
158 seq_printf(sfp, "firmware_major_version=%u.%u.%u\n", ver.c[2], ver.c[1], in woal_info_proc_read()
163 seq_printf(sfp, "uuid = %llx%llx\n", fw_info.uuid_lo, in woal_info_proc_read()
168 seq_printf(sfp, "bss_mode = \"WIFIDIRECT-Client\"\n"); in woal_info_proc_read()
170 seq_printf(sfp, "bss_mode = \"WIFIDIRECT-GO\"\n"); in woal_info_proc_read()
[all …]
H A Dmoal_debug.c569 static int woal_histogram_info(struct seq_file *sfp, void *data) in woal_histogram_info() argument
579 wlan_hist_proc_data *hist_data = (wlan_hist_proc_data *)sfp->private; in woal_histogram_info()
589 seq_printf(sfp, "total samples = %d \n", in woal_histogram_info()
591 seq_printf(sfp, "rx rates (in Mbps):\n"); in woal_histogram_info()
592 seq_printf(sfp, "\t0-3: B-MCS 0-3\n"); in woal_histogram_info()
593 seq_printf(sfp, "\t4-11: G-MCS 0-7\n"); in woal_histogram_info()
595 sfp, in woal_histogram_info()
598 sfp, in woal_histogram_info()
601 sfp, in woal_histogram_info()
604 sfp, in woal_histogram_info()
[all …]
/OK3568_Linux_fs/kernel/fs/xfs/libxfs/
H A Dxfs_dir2_sf.c268 struct xfs_dir2_sf_hdr *sfp; /* shortform directory header */ in xfs_dir2_block_to_sf() local
279 sfp = kmem_alloc(mp->m_sb.sb_inodesize, 0); in xfs_dir2_block_to_sf()
280 memcpy(sfp, sfhp, xfs_dir2_sf_hdr_size(sfhp->i8count)); in xfs_dir2_block_to_sf()
287 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_block_to_sf()
311 xfs_dir2_sf_get_parent_ino(sfp)); in xfs_dir2_block_to_sf()
319 xfs_dir2_sf_put_ino(mp, sfp, sfep, in xfs_dir2_block_to_sf()
324 sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep); in xfs_dir2_block_to_sf()
328 ASSERT((char *)sfep - (char *)sfp == size); in xfs_dir2_block_to_sf()
345 xfs_init_local_fork(dp, XFS_DATA_FORK, sfp, size); in xfs_dir2_block_to_sf()
353 kmem_free(sfp); in xfs_dir2_block_to_sf()
[all …]
H A Dxfs_dir2_block.c1093 xfs_dir2_sf_hdr_t *sfp; /* shortform header */ in xfs_dir2_sf_to_block() local
1113 sfp = kmem_alloc(ifp->if_bytes, 0); in xfs_dir2_sf_to_block()
1114 memcpy(sfp, oldsfp, ifp->if_bytes); in xfs_dir2_sf_to_block()
1139 (sfp->count + 2) * (uint)sizeof(xfs_dir2_leaf_entry_t); in xfs_dir2_sf_to_block()
1155 btp->count = cpu_to_be32(sfp->count + 2); /* ., .. */ in xfs_dir2_sf_to_block()
1187 dep->inumber = cpu_to_be64(xfs_dir2_sf_get_parent_ino(sfp)); in xfs_dir2_sf_to_block()
1202 if (!sfp->count) in xfs_dir2_sf_to_block()
1205 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_sf_to_block()
1238 dep->inumber = cpu_to_be64(xfs_dir2_sf_get_ino(mp, sfp, sfep)); in xfs_dir2_sf_to_block()
1252 if (++i == sfp->count) in xfs_dir2_sf_to_block()
[all …]
/OK3568_Linux_fs/kernel/drivers/scsi/
H A Dsg.c178 static int sg_build_indirect(Sg_scatter_hold * schp, Sg_fd * sfp, int buff_size);
179 static ssize_t sg_new_read(Sg_fd * sfp, char __user *buf, size_t count,
181 static ssize_t sg_new_write(Sg_fd *sfp, struct file *file,
184 static int sg_common_write(Sg_fd * sfp, Sg_request * srp,
187 static void sg_remove_scat(Sg_fd * sfp, Sg_scatter_hold * schp);
188 static void sg_build_reserve(Sg_fd * sfp, int req_size);
189 static void sg_link_reserve(Sg_fd * sfp, Sg_request * srp, int size);
190 static void sg_unlink_reserve(Sg_fd * sfp, Sg_request * srp);
193 static Sg_request *sg_get_rq_mark(Sg_fd * sfp, int pack_id, bool *busy);
194 static Sg_request *sg_add_request(Sg_fd * sfp);
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/mvl88w8977/mlinux/
H A Dmoal_debug.c462 woal_histogram_info(struct seq_file *sfp, void *data) in woal_histogram_info() argument
478 seq_printf(sfp, "total samples = %d \n", in woal_histogram_info()
480 seq_printf(sfp, "rx rates (in Mbps):\n"); in woal_histogram_info()
481 seq_printf(sfp, "\t0-3: B-MCS 0-3\n"); in woal_histogram_info()
482 seq_printf(sfp, "\t4-11: G-MCS 0-7\n"); in woal_histogram_info()
483 seq_printf(sfp, in woal_histogram_info()
485 seq_printf(sfp, in woal_histogram_info()
487 seq_printf(sfp, "\n"); in woal_histogram_info()
493 seq_printf(sfp, "rx_rate[%03d] = %d\n", i, in woal_histogram_info()
499 seq_printf(sfp, in woal_histogram_info()
[all …]
H A Dmoal_proc.c77 woal_info_proc_read(struct seq_file *sfp, void *data) in woal_info_proc_read() argument
79 struct net_device *netdev = (struct net_device *)sfp->private; in woal_info_proc_read()
120 seq_printf(sfp, "driver_name = " "\"uap\"\n"); in woal_info_proc_read()
140 seq_printf(sfp, "driver_name = " "\"wlan\"\n"); in woal_info_proc_read()
143 seq_printf(sfp, "driver_version = %s", fmt); in woal_info_proc_read()
144 seq_printf(sfp, "\ninterface_name=\"%s\"\n", netdev->name); in woal_info_proc_read()
148 seq_printf(sfp, "bss_mode = \"WIFIDIRECT-Client\"\n"); in woal_info_proc_read()
150 seq_printf(sfp, "bss_mode = \"WIFIDIRECT-GO\"\n"); in woal_info_proc_read()
155 seq_printf(sfp, "bss_mode =\"%s\"\n", szModes[info.bss_mode]); in woal_info_proc_read()
157 seq_printf(sfp, "media_state=\"%s\"\n", in woal_info_proc_read()
[all …]
/OK3568_Linux_fs/kernel/net/hsr/
H A Dhsr_debugfs.c27 hsr_node_table_show(struct seq_file *sfp, void *data) in hsr_node_table_show() argument
29 struct hsr_priv *priv = (struct hsr_priv *)sfp->private; in hsr_node_table_show()
32 seq_printf(sfp, "Node Table entries for (%s) device\n", in hsr_node_table_show()
34 seq_puts(sfp, "MAC-Address-A, MAC-Address-B, time_in[A], "); in hsr_node_table_show()
35 seq_puts(sfp, "time_in[B], Address-B port, "); in hsr_node_table_show()
37 seq_puts(sfp, "SAN-A, SAN-B, DAN-P\n"); in hsr_node_table_show()
39 seq_puts(sfp, "DAN-H\n"); in hsr_node_table_show()
46 seq_printf(sfp, "%pM ", &node->macaddress_A[0]); in hsr_node_table_show()
47 seq_printf(sfp, "%pM ", &node->macaddress_B[0]); in hsr_node_table_show()
48 seq_printf(sfp, "%10lx, ", node->time_in[HSR_PT_SLAVE_A]); in hsr_node_table_show()
[all …]
/OK3568_Linux_fs/kernel/drivers/scsi/snic/
H A Dsnic_debugfs.c179 snic_stats_show(struct seq_file *sfp, void *data) in snic_stats_show() argument
181 struct snic *snic = (struct snic *) sfp->private; in snic_stats_show()
188 seq_printf(sfp, in snic_stats_show()
194 seq_printf(sfp, in snic_stats_show()
225 seq_puts(sfp, "\nSGL Counters\n"); in snic_stats_show()
228 seq_printf(sfp, in snic_stats_show()
233 seq_puts(sfp, "\n"); in snic_stats_show()
237 seq_printf(sfp, in snic_stats_show()
242 seq_printf(sfp, in snic_stats_show()
257 seq_printf(sfp, in snic_stats_show()
[all …]
/OK3568_Linux_fs/kernel/drivers/scsi/bfa/
H A Dbfa_ioc.c3630 static void bfa_sfp_getdata_send(struct bfa_sfp_s *sfp);
3631 static void bfa_sfp_media_get(struct bfa_sfp_s *sfp);
3632 static bfa_status_t bfa_sfp_speed_valid(struct bfa_sfp_s *sfp,
3636 bfa_cb_sfp_show(struct bfa_sfp_s *sfp) in bfa_cb_sfp_show() argument
3638 bfa_trc(sfp, sfp->lock); in bfa_cb_sfp_show()
3639 if (sfp->cbfn) in bfa_cb_sfp_show()
3640 sfp->cbfn(sfp->cbarg, sfp->status); in bfa_cb_sfp_show()
3641 sfp->lock = 0; in bfa_cb_sfp_show()
3642 sfp->cbfn = NULL; in bfa_cb_sfp_show()
3646 bfa_cb_sfp_state_query(struct bfa_sfp_s *sfp) in bfa_cb_sfp_state_query() argument
[all …]
/OK3568_Linux_fs/kernel/fs/freevxfs/
H A Dvxfs_fshead.c111 struct vxfs_fsh *pfp, *sfp; in vxfs_read_fshead() local
132 sfp = vxfs_getfsh(infp->vsi_fship, 0); in vxfs_read_fshead()
133 if (!sfp) { in vxfs_read_fshead()
139 vxfs_dumpfsh(sfp); in vxfs_read_fshead()
153 fs32_to_cpu(infp, sfp->fsh_ilistino[0])); in vxfs_read_fshead()
176 kfree(sfp); in vxfs_read_fshead()
186 kfree(sfp); in vxfs_read_fshead()
/OK3568_Linux_fs/kernel/Documentation/devicetree/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>;
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/marvell/
H A Darmada-3720-uDPU.dts65 sfp_eth0: sfp-eth0 {
66 compatible = "sff,sfp";
75 sfp_eth1: sfp-eth1 {
76 compatible = "sff,sfp";
169 sfp = <&sfp_eth0>;
177 sfp = <&sfp_eth1>;
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 {
299 sfp = <&sfp_eth3>;
315 cp1_sfp_1g_pins: sfp-1g-pins {
H A Darmada-3720-turris-mox.dts100 sfp: sfp { label
101 compatible = "sff,sfp";
417 port-sfp@a {
419 label = "sfp";
420 sfp = <&sfp>;
609 port-sfp@a {
611 label = "sfp";
612 sfp = <&sfp>;
792 port-sfp@a {
794 label = "sfp";
[all …]
H A Dcn9131-db.dts38 cp1_sfp_eth1: sfp-eth1 {
39 compatible = "sff,sfp";
93 sfp = <&cp1_sfp_eth1>;
184 cp1_sfp_pins: sfp-pins {
/OK3568_Linux_fs/kernel/arch/arm/boot/dts/
H A Dbcm958625hr.dts58 sfp: sfp { label
59 compatible = "sff,sfp";
227 label = "sfp";
230 sfp = <&sfp>;
H A Dvf610-zii-scu4-aib.dts191 sfp = <&sff1>;
199 sfp = <&sff2>;
207 sfp = <&sff3>;
215 sfp = <&sff4>;
223 sfp = <&sff5>;
231 sfp = <&sff6>;
239 sfp = <&sff0>;
274 sfp = <&sff7>;
282 sfp = <&sff8>;
290 sfp = <&sff9>;
H A Darmada-388-clearfog.dtsi80 sfp: sfp { label
81 compatible = "sff,sfp";
109 sfp = <&sfp>;
/OK3568_Linux_fs/kernel/fs/xfs/
H A Dxfs_dir2_readdir.c54 xfs_dir2_sf_hdr_t *sfp; /* shortform structure */ in xfs_dir2_sf_getdents() local
64 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir2_sf_getdents()
96 ino = xfs_dir2_sf_get_parent_ino(sfp); in xfs_dir2_sf_getdents()
105 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_sf_getdents()
106 for (i = 0; i < sfp->count; i++) { in xfs_dir2_sf_getdents()
113 sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep); in xfs_dir2_sf_getdents()
117 ino = xfs_dir2_sf_get_ino(mp, sfp, sfep); in xfs_dir2_sf_getdents()
127 sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep); in xfs_dir2_sf_getdents()

123