Home
last modified time | relevance | path

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

12

/Linux-v5.4/drivers/net/phy/
Dsfp.c173 struct sfp { struct
182 unsigned int (*get_state)(struct sfp *); argument
183 void (*set_state)(struct sfp *, unsigned int); argument
184 int (*read)(struct sfp *, bool, u8, void *, size_t); argument
185 int (*write)(struct sfp *, bool, u8, void *, size_t); argument
242 static unsigned int sfp_gpio_get_state(struct sfp *sfp) in sfp_gpio_get_state() argument
247 if (gpio_flags[i] != GPIOD_IN || !sfp->gpio[i]) in sfp_gpio_get_state()
250 v = gpiod_get_value_cansleep(sfp->gpio[i]); in sfp_gpio_get_state()
258 static unsigned int sff_gpio_get_state(struct sfp *sfp) in sff_gpio_get_state() argument
260 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,
26 struct sfp_bus *sfp_register_socket(struct device *dev, struct sfp *sfp,
Dsfp-bus.c23 struct sfp *sfp; member
293 struct sfp_bus *sfp, *new, *found = NULL; in sfp_bus_get() local
299 list_for_each_entry(sfp, &sfp_buses, node) { in sfp_bus_get()
300 if (sfp->fwnode == fwnode) { in sfp_bus_get()
301 kref_get(&sfp->kref); in sfp_bus_get()
302 found = sfp; in sfp_bus_get()
350 bus->socket_ops->attach(bus->sfp); in sfp_register_bus()
352 bus->socket_ops->start(bus->sfp); in sfp_register_bus()
365 bus->socket_ops->stop(bus->sfp); in sfp_unregister_bus()
366 bus->socket_ops->detach(bus->sfp); in sfp_unregister_bus()
[all …]
DMakefile46 obj-$(CONFIG_SFP) += sfp.o
47 sfp-obj-$(CONFIG_SFP) += sfp-bus.o
48 obj-y += $(sfp-obj-y) $(sfp-obj-m)
/Linux-v5.4/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 …]
/Linux-v5.4/fs/xfs/libxfs/
Dxfs_dir2_sf.c153 xfs_dir2_sf_hdr_t *sfp; /* shortform directory header */ in xfs_dir2_block_to_sf() local
173 sfp = (xfs_dir2_sf_hdr_t *)dst; in xfs_dir2_block_to_sf()
174 memcpy(sfp, sfhp, xfs_dir2_sf_hdr_size(sfhp->i8count)); in xfs_dir2_block_to_sf()
181 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_block_to_sf()
207 dp->d_ops->sf_get_parent_ino(sfp)); in xfs_dir2_block_to_sf()
217 dp->d_ops->sf_put_ino(sfp, sfep, in xfs_dir2_block_to_sf()
222 sfep = dp->d_ops->sf_nextentry(sfp, sfep); in xfs_dir2_block_to_sf()
226 ASSERT((char *)sfep - (char *)sfp == size); in xfs_dir2_block_to_sf()
272 xfs_dir2_sf_hdr_t *sfp; /* shortform structure */ in xfs_dir2_sf_addname() local
289 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir2_sf_addname()
[all …]
Dxfs_symlink_remote.c207 char *sfp; in xfs_symlink_shortform_verify() local
214 sfp = (char *)ifp->if_u1.if_data; in xfs_symlink_shortform_verify()
216 endp = sfp + size; in xfs_symlink_shortform_verify()
230 if (memchr(sfp, 0, size - 1)) in xfs_symlink_shortform_verify()
Dxfs_dir2_block.c1063 xfs_dir2_sf_hdr_t *sfp; /* shortform header */ in xfs_dir2_sf_to_block() local
1095 sfp = kmem_alloc(ifp->if_bytes, 0); in xfs_dir2_sf_to_block()
1096 memcpy(sfp, oldsfp, ifp->if_bytes); in xfs_dir2_sf_to_block()
1121 (sfp->count + 2) * (uint)sizeof(xfs_dir2_leaf_entry_t); in xfs_dir2_sf_to_block()
1137 btp->count = cpu_to_be32(sfp->count + 2); /* ., .. */ in xfs_dir2_sf_to_block()
1167 dep->inumber = cpu_to_be64(dp->d_ops->sf_get_parent_ino(sfp)); in xfs_dir2_sf_to_block()
1182 if (!sfp->count) in xfs_dir2_sf_to_block()
1185 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_sf_to_block()
1218 dep->inumber = cpu_to_be64(dp->d_ops->sf_get_ino(sfp, sfep)); in xfs_dir2_sf_to_block()
1232 if (++i == sfp->count) in xfs_dir2_sf_to_block()
[all …]
/Linux-v5.4/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);
194 static Sg_request *sg_add_request(Sg_fd * sfp);
[all …]
/Linux-v5.4/net/hsr/
Dhsr_debugfs.c23 static void print_mac_address(struct seq_file *sfp, unsigned char *mac) in print_mac_address() argument
25 seq_printf(sfp, "%02x:%02x:%02x:%02x:%02x:%02x:", in print_mac_address()
31 hsr_node_table_show(struct seq_file *sfp, void *data) in hsr_node_table_show() argument
33 struct hsr_priv *priv = (struct hsr_priv *)sfp->private; in hsr_node_table_show()
36 seq_puts(sfp, "Node Table entries\n"); in hsr_node_table_show()
37 seq_puts(sfp, "MAC-Address-A, MAC-Address-B, time_in[A], "); in hsr_node_table_show()
38 seq_puts(sfp, "time_in[B], Address-B port\n"); in hsr_node_table_show()
44 print_mac_address(sfp, &node->macaddress_A[0]); in hsr_node_table_show()
45 seq_puts(sfp, " "); in hsr_node_table_show()
46 print_mac_address(sfp, &node->macaddress_B[0]); in hsr_node_table_show()
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/drivers/scsi/bfa/
Dbfa_ioc.c3635 static void bfa_sfp_getdata_send(struct bfa_sfp_s *sfp);
3636 static void bfa_sfp_media_get(struct bfa_sfp_s *sfp);
3637 static bfa_status_t bfa_sfp_speed_valid(struct bfa_sfp_s *sfp,
3641 bfa_cb_sfp_show(struct bfa_sfp_s *sfp) in bfa_cb_sfp_show() argument
3643 bfa_trc(sfp, sfp->lock); in bfa_cb_sfp_show()
3644 if (sfp->cbfn) in bfa_cb_sfp_show()
3645 sfp->cbfn(sfp->cbarg, sfp->status); in bfa_cb_sfp_show()
3646 sfp->lock = 0; in bfa_cb_sfp_show()
3647 sfp->cbfn = NULL; in bfa_cb_sfp_show()
3651 bfa_cb_sfp_state_query(struct bfa_sfp_s *sfp) in bfa_cb_sfp_state_query() argument
[all …]
/Linux-v5.4/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()
/Linux-v5.4/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>;
/Linux-v5.4/arch/arm64/boot/dts/marvell/
Darmada-3720-uDPU.dts65 sfp_eth0: sfp-eth0 {
66 compatible = "sff,sfp";
74 sfp_eth1: sfp-eth1 {
75 compatible = "sff,sfp";
146 sfp = <&sfp_eth0>;
153 sfp = <&sfp_eth1>;
Darmada-3720-turris-mox.dts97 sfp: sfp { label
98 compatible = "sff,sfp+";
389 port-sfp@a {
391 label = "sfp";
392 sfp = <&sfp>;
581 port-sfp@a {
583 label = "sfp";
584 sfp = <&sfp>;
764 port-sfp@a {
766 label = "sfp";
[all …]
Darmada-8040-mcbin.dtsi64 sfp_eth0: sfp-eth0 {
66 compatible = "sff,sfp";
76 sfp_eth1: sfp-eth1 {
78 compatible = "sff,sfp";
88 sfp_eth3: sfp-eth3 {
90 compatible = "sff,sfp";
212 cp0_sfp_1g_pins: sfp-1g-pins {
297 sfp = <&sfp_eth3>;
313 cp1_sfp_1g_pins: sfp-1g-pins {
Darmada-8040-mcbin-singleshot.dts21 sfp = <&sfp_eth0>;
28 sfp = <&sfp_eth1>;
Darmada-8040-mcbin.dts23 sfp = <&sfp_eth0>;
29 sfp = <&sfp_eth1>;
/Linux-v5.4/fs/xfs/
Dxfs_dir2_readdir.c52 xfs_dir2_sf_hdr_t *sfp; /* shortform structure */ in xfs_dir2_sf_getdents() local
62 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir2_sf_getdents()
94 ino = dp->d_ops->sf_get_parent_ino(sfp); in xfs_dir2_sf_getdents()
103 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_sf_getdents()
104 for (i = 0; i < sfp->count; i++) { in xfs_dir2_sf_getdents()
111 sfep = dp->d_ops->sf_nextentry(sfp, sfep); in xfs_dir2_sf_getdents()
115 ino = dp->d_ops->sf_get_ino(sfp, sfep); in xfs_dir2_sf_getdents()
121 sfep = dp->d_ops->sf_nextentry(sfp, sfep); in xfs_dir2_sf_getdents()
/Linux-v5.4/arch/arm/boot/dts/
Dbcm958625hr.dts67 sfp: sfp { label
68 compatible = "sff,sfp";
228 label = "sfp";
231 sfp = <&sfp>;
Dvf610-zii-scu4-aib.dts196 sfp = <&sff1>;
204 sfp = <&sff2>;
212 sfp = <&sff3>;
220 sfp = <&sff4>;
228 sfp = <&sff5>;
236 sfp = <&sff6>;
244 sfp = <&sff0>;
284 sfp = <&sff7>;
292 sfp = <&sff8>;
300 sfp = <&sff9>;
Darmada-388-clearfog.dtsi80 sfp: sfp { label
81 compatible = "sff,sfp";
109 sfp = <&sfp>;
/Linux-v5.4/drivers/scsi/qla2xxx/
Dqla_bsg.c1534 void *sfp = dma_pool_alloc(ha->s_dma_pool, GFP_KERNEL, &sfp_dma); in qla2x00_update_fru_versions() local
1536 if (!sfp) { in qla2x00_update_fru_versions()
1548 memcpy(sfp, &image->field_info, sizeof(image->field_info)); in qla2x00_update_fru_versions()
1549 rval = qla2x00_write_sfp(vha, sfp_dma, sfp, in qla2x00_update_fru_versions()
1563 dma_pool_free(ha->s_dma_pool, sfp, sfp_dma); in qla2x00_update_fru_versions()
1585 uint8_t *sfp = dma_pool_alloc(ha->s_dma_pool, GFP_KERNEL, &sfp_dma); in qla2x00_read_fru_status() local
1587 if (!sfp) { in qla2x00_read_fru_status()
1596 rval = qla2x00_read_sfp(vha, sfp_dma, sfp, in qla2x00_read_fru_status()
1599 sr->status_reg = *sfp; in qla2x00_read_fru_status()
1613 dma_pool_free(ha->s_dma_pool, sfp, sfp_dma); in qla2x00_read_fru_status()
[all …]
/Linux-v5.4/Documentation/networking/
Dkapi.rst164 .. kernel-doc:: drivers/net/phy/sfp-bus.c
167 .. kernel-doc:: include/linux/sfp.h
170 .. kernel-doc:: drivers/net/phy/sfp-bus.c

12