Home
last modified time | relevance | path

Searched full:sfp (Results 1 – 25 of 252) sorted by relevance

1234567891011

/linux/drivers/media/usb/pvrusb2/
H A Dpvrusb2-sysfs.c282 static void pvr2_sysfs_add_control(struct pvr2_sysfs *sfp,int ctl_id) in pvr2_sysfs_add_control() argument
289 cptr = pvr2_hdw_get_ctrl_by_index(sfp->channel.hdw,ctl_id); in pvr2_sysfs_add_control()
299 cip->chptr = sfp; in pvr2_sysfs_add_control()
301 if (sfp->item_last) { in pvr2_sysfs_add_control()
302 sfp->item_last->item_next = cip; in pvr2_sysfs_add_control()
304 sfp->item_first = cip; in pvr2_sysfs_add_control()
306 sfp->item_last = cip; in pvr2_sysfs_add_control()
391 ret = sysfs_create_group(&sfp->class_dev->kobj,&cip->grp); in pvr2_sysfs_add_control()
409 static void pvr2_sysfs_add_debugifc(struct pvr2_sysfs *sfp) in pvr2_sysfs_add_debugifc() argument
425 sfp->debugifc = dip; in pvr2_sysfs_add_debugifc()
[all …]
/linux/drivers/pinctrl/starfive/
H A Dpinctrl-starfive-jh7110.c99 struct jh7110_pinctrl *sfp = pinctrl_dev_get_drvdata(pctldev); in jh7110_pin_dbg_show() local
100 const struct jh7110_pinctrl_soc_info *info = sfp->info; in jh7110_pin_dbg_show()
104 if (pin < sfp->gc.ngpio) { in jh7110_pin_dbg_show()
107 u32 dout = readl_relaxed(sfp->base + info->dout_reg_base + offset); in jh7110_pin_dbg_show()
108 u32 doen = readl_relaxed(sfp->base + info->doen_reg_base + offset); in jh7110_pin_dbg_show()
109 u32 gpi = readl_relaxed(sfp->base + info->gpi_reg_base + offset); in jh7110_pin_dbg_show()
127 struct jh7110_pinctrl *sfp = pinctrl_dev_get_drvdata(pctldev); in jh7110_dt_node_to_map() local
128 struct device *dev = sfp->gc.parent; in jh7110_dt_node_to_map()
152 mutex_lock(&sfp->mutex); in jh7110_dt_node_to_map()
230 mutex_unlock(&sfp->mutex); in jh7110_dt_node_to_map()
[all …]
H A Dpinctrl-starfive-jh7100.c151 * sfp->gpio.pin_base = PAD_INVALID_GPIO then
152 * starfive_pin_to_gpio(sfp, validpin) is never a valid GPIO number.
216 static inline unsigned int starfive_pin_to_gpio(const struct starfive_pinctrl *sfp, in starfive_pin_to_gpio() argument
219 return pin - sfp->gpios.pin_base; in starfive_pin_to_gpio()
222 static inline unsigned int starfive_gpio_to_pin(const struct starfive_pinctrl *sfp, in starfive_gpio_to_pin() argument
225 return sfp->gpios.pin_base + gpio; in starfive_gpio_to_pin()
456 struct starfive_pinctrl *sfp = pinctrl_dev_get_drvdata(pctldev); in starfive_pin_dbg_show() local
457 unsigned int gpio = starfive_pin_to_gpio(sfp, pin); in starfive_pin_dbg_show()
464 reg = sfp->base + GPON_DOUT_CFG + 8 * gpio; in starfive_pin_dbg_show()
481 struct starfive_pinctrl *sfp = pinctrl_dev_get_drvdata(pctldev); in starfive_dt_node_to_map() local
[all …]
H A Dpinctrl-starfive-jh7110-sys.c290 static void jh7110_set_function(struct jh7110_pinctrl *sfp, in jh7110_set_function() argument
304 reg = sfp->base + fs->offset; in jh7110_set_function()
308 raw_spin_lock_irqsave(&sfp->lock, flags); in jh7110_set_function()
311 raw_spin_unlock_irqrestore(&sfp->lock, flags); in jh7110_set_function()
314 static void jh7110_set_vin_group(struct jh7110_pinctrl *sfp, in jh7110_set_vin_group() argument
326 reg = sfp->base + gs->offset; in jh7110_set_vin_group()
330 raw_spin_lock_irqsave(&sfp->lock, flags); in jh7110_set_vin_group()
333 raw_spin_unlock_irqrestore(&sfp->lock, flags); in jh7110_set_vin_group()
336 static int jh7110_sys_set_one_pin_mux(struct jh7110_pinctrl *sfp, in jh7110_sys_set_one_pin_mux() argument
341 if (pin < sfp->gc.ngpio && func == 0) in jh7110_sys_set_one_pin_mux()
[all …]
H A Dpinctrl-starfive-jh7110-aon.c76 static int jh7110_aon_set_one_pin_mux(struct jh7110_pinctrl *sfp, in jh7110_aon_set_one_pin_mux() argument
81 if (pin < sfp->gc.ngpio && func == 0) in jh7110_aon_set_one_pin_mux()
82 jh7110_set_gpiomux(sfp, pin, din, dout, doen); in jh7110_aon_set_one_pin_mux()
87 static int jh7110_aon_get_padcfg_base(struct jh7110_pinctrl *sfp, in jh7110_aon_get_padcfg_base() argument
98 struct jh7110_pinctrl *sfp = jh7110_from_irq_desc(desc); in jh7110_aon_irq_handler() local
105 mis = readl_relaxed(sfp->base + JH7110_AON_GPIOMIS); in jh7110_aon_irq_handler()
107 generic_handle_domain_irq(sfp->gc.irq.domain, pin); in jh7110_aon_irq_handler()
114 struct jh7110_pinctrl *sfp = container_of(gc, in jh7110_aon_init_hw() local
118 writel_relaxed(0, sfp->base + JH7110_AON_GPIOIE); in jh7110_aon_init_hw()
120 writel_relaxed(0, sfp->base + JH7110_AON_GPIOIC); in jh7110_aon_init_hw()
[all …]
/linux/drivers/net/phy/
H A Dsfp.h5 #include <linux/sfp.h>
7 struct sfp;
14 void (*fixup)(struct sfp *sfp);
18 void (*attach)(struct sfp *sfp);
19 void (*detach)(struct sfp *sfp);
20 void (*start)(struct sfp *sfp);
21 void (*stop)(struct sfp *sfp);
22 void (*set_signal_rate)(struct sfp *sfp, unsigned int rate_kbd);
23 int (*module_info)(struct sfp *sfp, struct ethtool_modinfo *modinfo);
24 int (*module_eeprom)(struct sfp *sfp, struct ethtool_eeprom *ee,
[all …]
H A Dsfp-bus.c11 #include "sfp.h"
14 * struct sfp_bus - internal representation of a sfp bus
24 struct sfp *sfp; member
37 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
88 dev_warn(bus->sfp_dev, "SFP: unknown connector id 0x%02x\n", in sfp_parse_port()
112 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
139 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
304 /* For fibre channel SFP, derive possible BaseX modes */ in sfp_parse_support()
351 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
354 * Derive the phy_interface_t mode for the SFP module from the link
[all …]
/linux/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 = kmalloc(mp->m_sb.sb_inodesize, GFP_KERNEL | __GFP_NOFAIL); 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 kfree(sfp); in xfs_dir2_block_to_sf()
[all …]
/linux/arch/arm64/boot/dts/microchip/
H A Dsparx5_pcb134_board.dtsi266 sfp_eth12: sfp-eth12 {
267 compatible = "sff,sfp";
275 sfp_eth13: sfp-eth13 {
276 compatible = "sff,sfp";
284 sfp_eth14: sfp-eth14 {
285 compatible = "sff,sfp";
293 sfp_eth15: sfp-eth15 {
294 compatible = "sff,sfp";
302 sfp_eth48: sfp-eth48 {
303 compatible = "sff,sfp";
[all …]
/linux/net/hsr/
H A Dhsr_debugfs.c19 hsr_node_table_show(struct seq_file *sfp, void *data) in hsr_node_table_show() argument
21 struct hsr_priv *priv = (struct hsr_priv *)sfp->private; in hsr_node_table_show()
24 seq_printf(sfp, "Node Table entries for (%s) device\n", in hsr_node_table_show()
26 seq_puts(sfp, "MAC-Address-A, MAC-Address-B, time_in[A], "); in hsr_node_table_show()
27 seq_puts(sfp, "time_in[B], Address-B port, "); in hsr_node_table_show()
29 seq_puts(sfp, "SAN-A, SAN-B, DAN-P\n"); in hsr_node_table_show()
31 seq_puts(sfp, "DAN-H\n"); in hsr_node_table_show()
38 seq_printf(sfp, "%pM ", &node->macaddress_A[0]); in hsr_node_table_show()
39 seq_printf(sfp, "%pM ", &node->macaddress_B[0]); in hsr_node_table_show()
40 seq_printf(sfp, "%10lx, ", node->time_in[HSR_PT_SLAVE_A]); in hsr_node_table_show()
[all …]
/linux/arch/arm64/boot/dts/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-lx2162a-clearfog.dts41 led_sfp_at: led-sfp-at {
46 led_sfp_ab: led-sfp-ab {
51 led_sfp_bt: led-sfp-bt {
56 led_sfp_bb: led-sfp-bb {
62 sfp_at: sfp-at {
63 compatible = "sff,sfp";
69 sfp_ab: sfp-ab {
70 compatible = "sff,sfp";
76 sfp_bt: sfp-bt {
77 compatible = "sff,sfp";
[all …]
/linux/Documentation/devicetree/bindings/net/
H A Dsff,sfp.yaml4 $id: http://devicetree.org/schemas/net/sff,sfp.yaml#
7 title: Small Form Factor (SFF) Committee Small Form-factor Pluggable (SFP)
16 - sff,sfp # for SFP modules
22 phandle of an I2C bus controller for the SFP two wire serial
68 output gpio signal (SFP+ only), low - low Tx rate, high - high Tx rate. Must
90 - | # Direct serdes to SFP connection
93 sfp1: sfp {
94 compatible = "sff,sfp";
108 sfp = <&sfp1>;
111 - | # Serdes to PHY to SFP connection
[all …]
/linux/drivers/pinctrl/
H A Dpinctrl-ocelot.c273 [FUNC_SFP] = "sfp",
366 LUTON_P(10, SFP, PHY_LED);
367 LUTON_P(11, SFP, PHY_LED);
368 LUTON_P(12, SFP, PHY_LED);
369 LUTON_P(13, SFP, PHY_LED);
373 LUTON_P(17, SFP, PHY_LED);
374 LUTON_P(18, SFP, PHY_LED);
375 LUTON_P(19, SFP, PHY_LED);
376 LUTON_P(20, SFP, PHY_LED);
377 LUTON_P(21, SFP, PHY_LED);
[all …]
/linux/drivers/scsi/bfa/
H A Dbfa_ioc.c3626 * SFP module specific
3630 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()
[all …]
/linux/Documentation/networking/
H A Dphy-link-topology.rst29 for example, using SFP transceivers (although that's not the only specific case).
32 interface, that can directly be fed to an SFP cage, such as SGMII, 1000BaseX,
35 The link topology then looks like this (when an SFP module is inserted) ::
38 | MAC | ------- | SFP Module |
44 | MAC | -------- | PHY (on SFP) |
47 In this case, the SFP PHY is handled by phylib, and registered by phylink through
48 its SFP upstream ops.
51 we can't directly connect them to an SFP cage. However, some PHYs can be used
53 serialized MII interface fed to the SFP ::
56 | MAC | ------- | PHY (media converter) | ------- | PHY (on SFP) |
[all …]
/linux/drivers/net/ethernet/intel/ice/
H A Dice_devids.h11 /* Intel(R) Ethernet Connection E823-L for SFP */
23 /* Intel(R) Ethernet Controller E830-CC for SFP */
25 /* Intel(R) Ethernet Controller E830-CC for SFP-DD */
31 /* Intel(R) Ethernet Controller E830-C for SFP */
37 /* Intel(R) Ethernet Controller E830-XXV for SFP */
43 /* Intel(R) Ethernet Controller E810-C for SFP */
56 /* Intel(R) Ethernet Controller E810-XXV for SFP */
62 /* Intel(R) Ethernet Connection E823-C for SFP */
72 /* Intel(R) Ethernet Connection E822-C for SFP */
80 /* Intel(R) Ethernet Connection E822-L for SFP */
[all …]
/linux/arch/arm64/boot/dts/marvell/
H A Darmada-7040-mochabin.dts33 /* SFP+ 10G */
34 sfp_eth0: sfp-eth0 {
35 compatible = "sff,sfp";
43 /* SFP 1G */
44 sfp_eth2: sfp-eth2 {
45 compatible = "sff,sfp";
190 /* mikroBUS, 1G SFP and GPIO expander */
213 * IO0_0: SFP+_TX_FAULT
214 * IO0_1: SFP+_TX_DISABLE
215 * IO0_2: SFP+_PRSNT
[all …]
H A Dcn9130-cf.dtsi27 sfp: sfp { label
28 compatible = "sff,sfp";
38 /* SRDS #2 - SFP+ 10GE */
43 sfp = <&sfp>;
104 * Routed to SFP, M.2, mikrobus, and miniPCIe
105 * SFP limits this to 100kHz, and requires an AT24C01A/02/04 with
H A Darmada-8040-puzzle-m801.dts67 sfp_cp0_eth0: sfp-cp0-eth0 {
68 compatible = "sff,sfp";
77 sfp_cp1_eth0: sfp-cp1-eth0 {
78 compatible = "sff,sfp";
94 /* SFP+ port 2: Activity */
101 /* SFP+ port 1: Activity */
108 /* SFP+ port 2: 10 Gbps indicator */
115 /* SFP+ port 2: 1 Gbps indicator */
122 /* SFP+ port 1: 10 Gbps indicator */
129 /* SFP+ port 1: 1 Gbps indicator */
[all …]
/linux/drivers/scsi/snic/
H A Dsnic_debugfs.c165 snic_stats_show(struct seq_file *sfp, void *data) in snic_stats_show() argument
167 struct snic *snic = (struct snic *) sfp->private; in snic_stats_show()
174 seq_printf(sfp, in snic_stats_show()
180 seq_printf(sfp, in snic_stats_show()
211 seq_puts(sfp, "\nSGL Counters\n"); in snic_stats_show()
214 seq_printf(sfp, in snic_stats_show()
219 seq_puts(sfp, "\n"); in snic_stats_show()
223 seq_printf(sfp, in snic_stats_show()
228 seq_printf(sfp, in snic_stats_show()
243 seq_printf(sfp, in snic_stats_show()
[all …]
/linux/fs/reiserfs/
H A Dprocfs.c51 #define SFP( x ) SF( s_proc_info_data.x ) macro
52 #define SFPL( x ) SFP( x[ level ] )
53 #define SFPF( x ) SFP( scan_bitmap.x )
54 #define SFPJ( x ) SFP( journal.x )
122 SF(s_indirect2direct), SFP(max_hash_collisions), SFP(breads), in show_super()
123 SFP(bread_miss), SFP(search_by_key), in show_super()
124 SFP(search_by_key_fs_changed), SFP(search_by_key_restarted), in show_super()
125 SFP(insert_item_restarted), SFP(paste_into_item_restarted), in show_super()
126 SFP(cut_from_item_restarted), in show_super()
127 SFP(delete_solid_item_restarted), SFP(delete_item_restarted), in show_super()
[all …]
/linux/fs/freevxfs/
H A Dvxfs_fshead.c87 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/arch/arm/boot/dts/marvell/
H A Darmada-388-clearfog.dtsi80 sfp: sfp { label
81 compatible = "sff,sfp";
109 sfp = <&sfp>;
191 * Routed to SFP, mikrobus, and PCIe.
192 * SFP limits this to 100kHz, and requires an AT24C01A/02/04 with
205 /* SFP, PCIe, mSATA, mikrobus */
H A Darmada-385-turris-omnia.dts97 sfp: sfp { label
98 compatible = "sff,sfp";
109 * a SFP module is present. Read more in the comment in the
199 * eth2 is connected via a multiplexor to both the SFP cage and to
200 * ethernet-phy@1. The multiplexor switches the signal to SFP cage when
201 * a SFP module is present, as determined by the mode-def0 GPIO.
203 * Until kernel supports this configuration properly, in case SFP module
204 * is present, U-Boot has to enable the sfp node above, remove phy
211 sfp = <&sfp>;
402 /* routed to SFP+ */
[all …]

1234567891011