Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/drivers/net/phy/
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 …]
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,
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 …]
DMakefile29 obj-$(CONFIG_SFP) += sfp.o
30 sfp-obj-$(CONFIG_SFP) += sfp-bus.o
31 obj-y += $(sfp-obj-y) $(sfp-obj-m)
/kernel/linux/linux-5.10/drivers/media/usb/pvrusb2/
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 …]
/kernel/linux/linux-5.10/fs/xfs/libxfs/
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 …]
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 …]
Dxfs_symlink_remote.c208 char *sfp = (char *)ifp->if_u1.if_data; in xfs_symlink_shortform_verify() local
210 char *endp = sfp + size; in xfs_symlink_shortform_verify()
226 if (memchr(sfp, 0, size - 1)) in xfs_symlink_shortform_verify()
/kernel/linux/linux-5.10/drivers/scsi/
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 …]
/kernel/linux/linux-5.10/net/hsr/
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 …]
/kernel/linux/linux-5.10/drivers/scsi/snic/
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 …]
/kernel/linux/linux-5.10/drivers/scsi/bfa/
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 …]
/kernel/linux/linux-5.10/fs/freevxfs/
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()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/net/
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>;
/kernel/linux/linux-5.10/arch/arm64/boot/dts/marvell/
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>;
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 {
Darmada-3720-turris-mox.dts100 sfp: sfp { label
101 compatible = "sff,sfp";
420 port-sfp@a {
422 label = "sfp";
423 sfp = <&sfp>;
612 port-sfp@a {
614 label = "sfp";
615 sfp = <&sfp>;
795 port-sfp@a {
797 label = "sfp";
[all …]
Darmada-8040-mcbin-singleshot.dts21 sfp = <&sfp_eth0>;
28 sfp = <&sfp_eth1>;
Darmada-8040-mcbin.dts23 sfp = <&sfp_eth0>;
29 sfp = <&sfp_eth1>;
Dcn9131-db.dts38 cp1_sfp_eth1: sfp-eth1 {
39 compatible = "sff,sfp";
93 sfp = <&cp1_sfp_eth1>;
184 cp1_sfp_pins: sfp-pins {
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dbcm958625hr.dts58 sfp: sfp { label
59 compatible = "sff,sfp";
227 label = "sfp";
230 sfp = <&sfp>;
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>;
Darmada-388-clearfog.dtsi80 sfp: sfp { label
81 compatible = "sff,sfp";
109 sfp = <&sfp>;
/kernel/linux/linux-5.10/fs/xfs/
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()
/kernel/linux/linux-5.10/drivers/scsi/qla2xxx/
Dqla_bsg.c1550 void *sfp = dma_pool_alloc(ha->s_dma_pool, GFP_KERNEL, &sfp_dma); in qla2x00_update_fru_versions() local
1552 if (!sfp) { in qla2x00_update_fru_versions()
1564 memcpy(sfp, &image->field_info, sizeof(image->field_info)); in qla2x00_update_fru_versions()
1565 rval = qla2x00_write_sfp(vha, sfp_dma, sfp, in qla2x00_update_fru_versions()
1579 dma_pool_free(ha->s_dma_pool, sfp, sfp_dma); in qla2x00_update_fru_versions()
1601 uint8_t *sfp = dma_pool_alloc(ha->s_dma_pool, GFP_KERNEL, &sfp_dma); in qla2x00_read_fru_status() local
1603 if (!sfp) { in qla2x00_read_fru_status()
1612 rval = qla2x00_read_sfp(vha, sfp_dma, sfp, in qla2x00_read_fru_status()
1615 sr->status_reg = *sfp; in qla2x00_read_fru_status()
1629 dma_pool_free(ha->s_dma_pool, sfp, sfp_dma); in qla2x00_read_fru_status()
[all …]

123