/linux-5.19.10/drivers/net/phy/ |
D | sfp.c | 216 struct sfp { struct 226 unsigned int (*get_state)(struct sfp *); argument 227 void (*set_state)(struct sfp *, unsigned int); argument 228 int (*read)(struct sfp *, bool, u8, void *, size_t); argument 229 int (*write)(struct sfp *, bool, u8, void *, size_t); argument 313 static unsigned int sfp_gpio_get_state(struct sfp *sfp) in sfp_gpio_get_state() argument 318 if (gpio_flags[i] != GPIOD_IN || !sfp->gpio[i]) in sfp_gpio_get_state() 321 v = gpiod_get_value_cansleep(sfp->gpio[i]); in sfp_gpio_get_state() 329 static unsigned int sff_gpio_get_state(struct sfp *sfp) in sff_gpio_get_state() argument 331 return sfp_gpio_get_state(sfp) | SFP_F_PRESENT; in sff_gpio_get_state() [all …]
|
D | sfp.h | 7 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, 17 int (*module_eeprom_by_page)(struct sfp *sfp, 31 struct sfp_bus *sfp_register_socket(struct device *dev, struct sfp *sfp,
|
D | sfp-bus.c | 30 struct sfp *sfp; member 446 struct sfp_bus *sfp, *new, *found = NULL; in sfp_bus_get() local 452 list_for_each_entry(sfp, &sfp_buses, node) { in sfp_bus_get() 453 if (sfp->fwnode == fwnode) { in sfp_bus_get() 454 kref_get(&sfp->kref); in sfp_bus_get() 455 found = sfp; in sfp_bus_get() 513 bus->socket_ops->attach(bus->sfp); in sfp_register_bus() 515 bus->socket_ops->start(bus->sfp); in sfp_register_bus() 527 bus->socket_ops->stop(bus->sfp); in sfp_unregister_bus() 528 bus->socket_ops->detach(bus->sfp); in sfp_unregister_bus() [all …]
|
D | Makefile | 29 obj-$(CONFIG_SFP) += sfp.o 30 sfp-obj-$(CONFIG_SFP) += sfp-bus.o 31 obj-y += $(sfp-obj-y) $(sfp-obj-m)
|
/linux-5.19.10/drivers/media/usb/pvrusb2/ |
D | pvrusb2-sysfs.c | 286 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-5.19.10/drivers/pinctrl/ |
D | pinctrl-starfive.c | 212 static inline unsigned int starfive_pin_to_gpio(const struct starfive_pinctrl *sfp, in starfive_pin_to_gpio() argument 215 return pin - sfp->gpios.pin_base; in starfive_pin_to_gpio() 218 static inline unsigned int starfive_gpio_to_pin(const struct starfive_pinctrl *sfp, in starfive_gpio_to_pin() argument 221 return sfp->gpios.pin_base + gpio; in starfive_gpio_to_pin() 452 struct starfive_pinctrl *sfp = pinctrl_dev_get_drvdata(pctldev); in starfive_pin_dbg_show() local 453 unsigned int gpio = starfive_pin_to_gpio(sfp, pin); in starfive_pin_dbg_show() 460 reg = sfp->base + GPON_DOUT_CFG + 8 * gpio; in starfive_pin_dbg_show() 477 struct starfive_pinctrl *sfp = pinctrl_dev_get_drvdata(pctldev); in starfive_dt_node_to_map() local 478 struct device *dev = sfp->gc.parent; in starfive_dt_node_to_map() 557 pins[i] = starfive_gpio_to_pin(sfp, gpio); in starfive_dt_node_to_map() [all …]
|
/linux-5.19.10/fs/xfs/libxfs/ |
D | xfs_dir2_sf.c | 268 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 …]
|
/linux-5.19.10/drivers/scsi/ |
D | sg.c | 183 static int sg_build_indirect(Sg_scatter_hold * schp, Sg_fd * sfp, int buff_size); 184 static ssize_t sg_new_read(Sg_fd * sfp, char __user *buf, size_t count, 186 static ssize_t sg_new_write(Sg_fd *sfp, struct file *file, 189 static int sg_common_write(Sg_fd * sfp, Sg_request * srp, 192 static void sg_remove_scat(Sg_fd * sfp, Sg_scatter_hold * schp); 193 static void sg_build_reserve(Sg_fd * sfp, int req_size); 194 static void sg_link_reserve(Sg_fd * sfp, Sg_request * srp, int size); 195 static void sg_unlink_reserve(Sg_fd * sfp, Sg_request * srp); 198 static Sg_request *sg_get_rq_mark(Sg_fd * sfp, int pack_id, bool *busy); 199 static Sg_request *sg_add_request(Sg_fd * sfp); [all …]
|
/linux-5.19.10/net/hsr/ |
D | hsr_debugfs.c | 28 hsr_node_table_show(struct seq_file *sfp, void *data) in hsr_node_table_show() argument 30 struct hsr_priv *priv = (struct hsr_priv *)sfp->private; in hsr_node_table_show() 34 seq_printf(sfp, "Node Table entries for (%s) device\n", in hsr_node_table_show() 36 seq_puts(sfp, "MAC-Address-A, MAC-Address-B, time_in[A], "); in hsr_node_table_show() 37 seq_puts(sfp, "time_in[B], Address-B port, "); in hsr_node_table_show() 39 seq_puts(sfp, "SAN-A, SAN-B, DAN-P\n"); in hsr_node_table_show() 41 seq_puts(sfp, "DAN-H\n"); in hsr_node_table_show() 50 seq_printf(sfp, "%pM ", &node->macaddress_A[0]); in hsr_node_table_show() 51 seq_printf(sfp, "%pM ", &node->macaddress_B[0]); in hsr_node_table_show() 52 seq_printf(sfp, "%10lx, ", in hsr_node_table_show() [all …]
|
/linux-5.19.10/arch/arm64/boot/dts/microchip/ |
D | sparx5_pcb134_board.dtsi | 548 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 …]
|
D | sparx5_pcb135_board.dtsi | 172 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 …]
|
/linux-5.19.10/arch/arm64/boot/dts/freescale/ |
D | fsl-lx2160a-clearfog-itx.dtsi | 34 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 …]
|
/linux-5.19.10/drivers/scsi/snic/ |
D | snic_debugfs.c | 179 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-5.19.10/drivers/scsi/bfa/ |
D | bfa_ioc.c | 3631 static void bfa_sfp_getdata_send(struct bfa_sfp_s *sfp); 3632 static void bfa_sfp_media_get(struct bfa_sfp_s *sfp); 3633 static bfa_status_t bfa_sfp_speed_valid(struct bfa_sfp_s *sfp, 3637 bfa_cb_sfp_show(struct bfa_sfp_s *sfp) in bfa_cb_sfp_show() argument 3639 bfa_trc(sfp, sfp->lock); in bfa_cb_sfp_show() 3640 if (sfp->cbfn) in bfa_cb_sfp_show() 3641 sfp->cbfn(sfp->cbarg, sfp->status); in bfa_cb_sfp_show() 3642 sfp->lock = 0; in bfa_cb_sfp_show() 3643 sfp->cbfn = NULL; in bfa_cb_sfp_show() 3647 bfa_cb_sfp_state_query(struct bfa_sfp_s *sfp) in bfa_cb_sfp_state_query() argument [all …]
|
/linux-5.19.10/Documentation/devicetree/bindings/nvmem/ |
D | fsl,layerscape-sfp.yaml | 4 $id: http://devicetree.org/schemas/nvmem/fsl,layerscape-sfp.yaml# 24 - const: fsl,ls1021a-sfp 27 - const: fsl,ls1028a-sfp 38 const: sfp 40 ta-prog-sfp-supply: 57 compatible = "fsl,ls1028a-sfp"; 61 clock-names = "sfp";
|
/linux-5.19.10/fs/freevxfs/ |
D | vxfs_fshead.c | 87 struct vxfs_fsh *pfp, *sfp; in vxfs_read_fshead() local 108 sfp = vxfs_getfsh(infp->vsi_fship, 0); in vxfs_read_fshead() 109 if (!sfp) { in vxfs_read_fshead() 115 vxfs_dumpfsh(sfp); in vxfs_read_fshead() 129 fs32_to_cpu(infp, sfp->fsh_ilistino[0])); in vxfs_read_fshead() 152 kfree(sfp); in vxfs_read_fshead() 162 kfree(sfp); in vxfs_read_fshead()
|
/linux-5.19.10/Documentation/devicetree/bindings/net/ |
D | sff,sfp.txt | 7 "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>;
|
D | microchip,sparx5-switch.yaml | 111 sfp: 138 - sfp 184 sfp = <&sfp_eth60>; 193 sfp = <&sfp_eth61>; 202 sfp = <&sfp_eth62>; 211 sfp = <&sfp_eth63>;
|
/linux-5.19.10/arch/arm64/boot/dts/marvell/ |
D | armada-3720-uDPU.dts | 65 sfp_eth0: sfp-eth0 { 66 compatible = "sff,sfp"; 75 sfp_eth1: sfp-eth1 { 76 compatible = "sff,sfp"; 174 sfp = <&sfp_eth0>; 182 sfp = <&sfp_eth1>;
|
D | armada-3720-turris-mox.dts | 100 sfp: sfp { label 101 compatible = "sff,sfp"; 418 port-sfp@a { 420 label = "sfp"; 421 sfp = <&sfp>; 610 port-sfp@a { 612 label = "sfp"; 613 sfp = <&sfp>; 793 port-sfp@a { 795 label = "sfp"; [all …]
|
D | armada-8040-mcbin.dtsi | 64 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 {
|
/linux-5.19.10/arch/arm/boot/dts/ |
D | lan966x-kontron-kswitch-d10-mmt-6g-2gs.dts | 20 compatible = "sff,sfp"; 32 compatible = "sff,sfp"; 82 sfp = <&sfp0>; 90 sfp = <&sfp1>;
|
D | bcm958625hr.dts | 58 sfp: sfp { label 59 compatible = "sff,sfp"; 225 label = "sfp"; 228 sfp = <&sfp>;
|
D | vf610-zii-scu4-aib.dts | 191 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>;
|
/linux-5.19.10/fs/xfs/ |
D | xfs_dir2_readdir.c | 54 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()
|