Home
last modified time | relevance | path

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

1234

/linux-6.3-rc2/drivers/net/phy/
A Dsfp.c691 state = sfp->get_state(sfp) & sfp->state_hw_mask; in sfp_get_state()
700 sfp->set_state(sfp, state); in sfp_set_state()
723 const struct sfp *sfp = data; in sfp_hwmon_is_visible() local
1446 sfp->hwmon_name, sfp, in sfp_hwmon_probe()
1535 struct sfp *sfp = s->private; in sfp_debug_state_show() local
2092 sfp->quirk->fixup(sfp); in sfp_sm_mod_probe()
2588 struct sfp *sfp = data; in sfp_irq() local
2608 struct sfp *sfp; in sfp_alloc() local
2628 struct sfp *sfp = data; in sfp_cleanup() local
2673 struct sfp *sfp; in sfp_probe() local
[all …]
A Dsfp.h7 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 int (*module_info)(struct sfp *sfp, struct ethtool_modinfo *modinfo);
23 int (*module_eeprom)(struct sfp *sfp, struct ethtool_eeprom *ee,
25 int (*module_eeprom_by_page)(struct sfp *sfp,
40 struct sfp_bus *sfp_register_socket(struct device *dev, struct sfp *sfp,
A Dsfp-bus.c24 struct sfp *sfp; member
402 if (sfp->fwnode == fwnode) { in sfp_bus_get()
403 kref_get(&sfp->kref); in sfp_bus_get()
404 found = sfp; in sfp_bus_get()
462 bus->socket_ops->attach(bus->sfp); in sfp_register_bus()
567 bus->socket_ops->stop(bus->sfp); in sfp_upstream_stop()
657 if (bus->sfp) { in sfp_bus_add_upstream()
684 if (bus->sfp) in sfp_bus_del_upstream()
788 bus->sfp = NULL; in sfp_socket_clear()
792 struct sfp_bus *sfp_register_socket(struct device *dev, struct sfp *sfp, in sfp_register_socket() argument
[all …]
A DMakefile29 obj-$(CONFIG_SFP) += sfp.o
30 sfp-obj-$(CONFIG_SFP) += sfp-bus.o
31 obj-y += $(sfp-obj-y) $(sfp-obj-m)
/linux-6.3-rc2/drivers/media/usb/pvrusb2/
A Dpvrusb2-sysfs.c303 cip->chptr = sfp; in pvr2_sysfs_add_control()
305 if (sfp->item_last) { in pvr2_sysfs_add_control()
310 sfp->item_last = cip; in pvr2_sysfs_add_control()
429 sfp->debugifc = dip; in pvr2_sysfs_add_debugifc()
460 kfree(sfp->debugifc); in pvr2_sysfs_tear_down_debugifc()
461 sfp->debugifc = NULL; in pvr2_sysfs_tear_down_debugifc()
683 ret = device_create_file(sfp->class_dev,&sfp->attr_unit_number); in class_dev_create()
752 kfree(sfp); in pvr2_sysfs_internal_check()
760 sfp = kzalloc(sizeof(*sfp),GFP_KERNEL); in pvr2_sysfs_create()
761 if (!sfp) return sfp; in pvr2_sysfs_create()
[all …]
/linux-6.3-rc2/drivers/pinctrl/starfive/
A Dpinctrl-starfive-jh7110.c692 sfp->gpios.name = sfp->gc.label; in jh7110_gpio_add_pin_ranges()
693 sfp->gpios.base = sfp->gc.base; in jh7110_gpio_add_pin_ranges()
695 sfp->gpios.npins = sfp->gc.ngpio; in jh7110_gpio_add_pin_ranges()
696 sfp->gpios.gc = &sfp->gc; in jh7110_gpio_add_pin_ranges()
697 pinctrl_add_gpio_range(sfp->pctl, &sfp->gpios); in jh7110_gpio_add_pin_ranges()
872 sfp = devm_kzalloc(dev, sizeof(*sfp), GFP_KERNEL); in jh7110_pinctrl_probe()
873 if (!sfp) in jh7110_pinctrl_probe()
922 sfp->dev = dev; in jh7110_pinctrl_probe()
930 sfp, &sfp->pctl); in jh7110_pinctrl_probe()
953 sfp->gc.irq.parents = devm_kcalloc(dev, sfp->gc.irq.num_parents, in jh7110_pinctrl_probe()
[all …]
A Dpinctrl-starfive-jh7100.c948 starfive_padctl_rmw(sfp, starfive_gpio_to_pin(sfp, gpio), in starfive_gpio_direction_input()
972 starfive_padctl_rmw(sfp, starfive_gpio_to_pin(sfp, gpio), in starfive_gpio_direction_output()
1046 sfp->gpios.name = sfp->gc.label; in starfive_gpio_add_pin_ranges()
1047 sfp->gpios.base = sfp->gc.base; in starfive_gpio_add_pin_ranges()
1053 sfp->gpios.gc = &sfp->gc; in starfive_gpio_add_pin_ranges()
1054 pinctrl_add_gpio_range(sfp->pctl, &sfp->gpios); in starfive_gpio_add_pin_ranges()
1237 sfp = devm_kzalloc(dev, sizeof(*sfp), GFP_KERNEL); in starfive_probe()
1238 if (!sfp) in starfive_probe()
1321 sfp->gc.base = -1; in starfive_probe()
1327 sfp->gc.irq.parents = devm_kcalloc(dev, sfp->gc.irq.num_parents, in starfive_probe()
[all …]
A Dpinctrl-starfive-jh7110-sys.c304 reg = sfp->base + fs->offset; in jh7110_set_function()
308 raw_spin_lock_irqsave(&sfp->lock, flags); in jh7110_set_function()
326 reg = sfp->base + gs->offset; in jh7110_set_vin_group()
330 raw_spin_lock_irqsave(&sfp->lock, flags); in jh7110_set_vin_group()
341 if (pin < sfp->gc.ngpio && func == 0) in jh7110_sys_set_one_pin_mux()
344 jh7110_set_function(sfp, pin, func); in jh7110_sys_set_one_pin_mux()
346 if (pin < sfp->gc.ngpio && func == 2) in jh7110_sys_set_one_pin_mux()
347 jh7110_set_vin_group(sfp, pin); in jh7110_sys_set_one_pin_mux()
389 writel(0U, sfp->base + JH7110_SYS_GPIOIE0); in jh7110_sys_init_hw()
390 writel(0U, sfp->base + JH7110_SYS_GPIOIE1); in jh7110_sys_init_hw()
[all …]
A Dpinctrl-starfive-jh7110-aon.c77 static int jh7110_aon_set_one_pin_mux(struct jh7110_pinctrl *sfp, in jh7110_aon_set_one_pin_mux() argument
82 if (pin < sfp->gc.ngpio && func == 0) in jh7110_aon_set_one_pin_mux()
83 jh7110_set_gpiomux(sfp, pin, din, dout, doen); in jh7110_aon_set_one_pin_mux()
99 struct jh7110_pinctrl *sfp = jh7110_from_irq_desc(desc); in jh7110_aon_irq_handler() local
106 mis = readl_relaxed(sfp->base + JH7110_AON_GPIOMIS); in jh7110_aon_irq_handler()
108 generic_handle_domain_irq(sfp->gc.irq.domain, pin); in jh7110_aon_irq_handler()
115 struct jh7110_pinctrl *sfp = container_of(gc, in jh7110_aon_init_hw() local
119 writel_relaxed(0, sfp->base + JH7110_AON_GPIOIE); in jh7110_aon_init_hw()
121 writel_relaxed(0, sfp->base + JH7110_AON_GPIOIC); in jh7110_aon_init_hw()
122 writel_relaxed(0x0f, sfp->base + JH7110_AON_GPIOIC); in jh7110_aon_init_hw()
[all …]
A Dpinctrl-starfive-jh7110.h54 int (*jh7110_set_one_pin_mux)(struct jh7110_pinctrl *sfp,
59 int (*jh7110_get_padcfg_base)(struct jh7110_pinctrl *sfp,
65 void jh7110_set_gpiomux(struct jh7110_pinctrl *sfp, unsigned int pin,
/linux-6.3-rc2/fs/xfs/libxfs/
A Dxfs_dir2_sf.c353 kmem_free(sfp); in xfs_dir2_block_to_sf()
492 sfp->count++; in xfs_dir2_sf_addname_easy()
494 sfp->i8count++; in xfs_dir2_sf_addname_easy()
578 sfp->count++; in xfs_dir2_sf_addname_hard()
580 sfp->i8count++; in xfs_dir2_sf_addname_hard()
850 sfp->count = 0; in xfs_dir2_sf_create()
906 for (i = 0, sfep = xfs_dir2_sf_firstentry(sfp); i < sfp->count; in xfs_dir2_sf_lookup()
964 for (i = 0, sfep = xfs_dir2_sf_firstentry(sfp); i < sfp->count; in xfs_dir2_sf_removename()
988 memmove((char *)sfp + byteoff, (char *)sfp + byteoff + entsize, in xfs_dir2_sf_removename()
993 sfp->count--; in xfs_dir2_sf_removename()
[all …]
/linux-6.3-rc2/drivers/scsi/
A Dsg.c289 Sg_fd *sfp; in sg_open() local
385 Sg_fd *sfp; in sg_release() local
444 Sg_fd *sfp; in sg_read() local
605 Sg_fd *sfp; in sg_write() local
1038 sg_remove_scat(sfp, &sfp->reserve); in sg_ioctl_common()
1153 Sg_fd *sfp; in sg_ioctl() local
1170 Sg_fd *sfp; in sg_poll() local
1176 if (!sfp) in sg_poll()
2126 if (!sfp || !srp || list_empty(&sfp->rq_list)) in sg_remove_request()
2155 if (!sfp) in sg_add_sfp()
[all …]
/linux-6.3-rc2/net/hsr/
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()
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()
42 seq_printf(sfp, "%14x, ", node->addr_B_port); in hsr_node_table_show()
45 seq_printf(sfp, "%5x, %5x, %5x\n", in hsr_node_table_show()
[all …]
/linux-6.3-rc2/arch/arm64/boot/dts/microchip/
A Dsparx5_pcb134_board.dtsi721 sfp = <&sfp_eth12>;
731 sfp = <&sfp_eth13>;
740 sfp = <&sfp_eth14>;
749 sfp = <&sfp_eth15>;
758 sfp = <&sfp_eth48>;
767 sfp = <&sfp_eth49>;
776 sfp = <&sfp_eth50>;
785 sfp = <&sfp_eth51>;
794 sfp = <&sfp_eth52>;
803 sfp = <&sfp_eth53>;
[all …]
/linux-6.3-rc2/arch/arm64/boot/dts/freescale/
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 {
64 sfp = <&sfp0>;
70 sfp = <&sfp1>;
76 sfp = <&sfp2>;
[all …]
/linux-6.3-rc2/drivers/scsi/snic/
A Dsnic_debugfs.c174 seq_printf(sfp, in snic_stats_show()
180 seq_printf(sfp, in snic_stats_show()
214 seq_printf(sfp, 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()
248 seq_printf(sfp, in snic_stats_show()
257 seq_printf(sfp, in snic_stats_show()
262 seq_printf(sfp, in snic_stats_show()
276 seq_printf(sfp, in snic_stats_show()
[all …]
/linux-6.3-rc2/drivers/scsi/bfa/
A Dbfa_ioc.c3639 bfa_trc(sfp, sfp->lock); in bfa_cb_sfp_show()
3641 sfp->cbfn(sfp->cbarg, sfp->status); in bfa_cb_sfp_show()
3659 sfp->status = bfa_sfp_speed_valid(sfp, sfp->portspeed); in bfa_cb_sfp_state_query()
3679 bfa_trc(sfp, sfp->lock); in bfa_sfp_notify()
3776 bfa_trc(sfp, sfp->state); in bfa_sfp_getdata()
3844 bfa_trc(sfp, sfp->lock); in bfa_sfp_show_comp()
3856 bfa_trc(sfp, sfp->state); in bfa_sfp_show_comp()
3897 bfa_trc(sfp, sfp->state); in bfa_sfp_state_query()
3949 bfa_trc(sfp, sfp->state); in bfa_sfp_media_get()
4159 bfa_trc(sfp, sfp->state); in bfa_sfp_speed()
[all …]
/linux-6.3-rc2/Documentation/devicetree/bindings/nvmem/
A Dfsl,layerscape-sfp.yaml4 $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-6.3-rc2/fs/freevxfs/
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-6.3-rc2/Documentation/devicetree/bindings/net/
A Dsff,sfp.yaml4 $id: "http://devicetree.org/schemas/net/sff,sfp.yaml#"
16 - sff,sfp # for SFP modules
93 sfp1: sfp {
94 compatible = "sff,sfp";
108 sfp = <&sfp1>;
115 sfp2: sfp {
116 compatible = "sff,sfp";
136 sfp = <&sfp2>;
/linux-6.3-rc2/arch/arm/boot/dts/
A Dlan966x-pcb8309.dts36 i2c102: i2c-sfp@1 {
40 i2c103: i2c-sfp@2 {
82 compatible = "sff,sfp";
91 compatible = "sff,sfp";
181 sfp = <&sfp2>;
189 sfp = <&sfp3>;
A Dlan966x-kontron-kswitch-d10-mmt-6g-2gs.dts20 compatible = "sff,sfp";
32 compatible = "sff,sfp";
82 sfp = <&sfp0>;
90 sfp = <&sfp1>;
/linux-6.3-rc2/arch/arm64/boot/dts/marvell/
A Darmada-3720-uDPU.dts11 sfp_eth0: sfp-eth0 {
12 compatible = "sff,sfp";
41 sfp = <&sfp_eth0>;
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 {
309 sfp = <&sfp_eth3>;
325 cp1_sfp_1g_pins: sfp-1g-pins {
A Darmada-3720-turris-mox.dts100 sfp: sfp { label
101 compatible = "sff,sfp";
422 port-sfp@a {
424 label = "sfp";
425 sfp = <&sfp>;
614 port-sfp@a {
616 label = "sfp";
617 sfp = <&sfp>;
797 port-sfp@a {
799 label = "sfp";
[all …]

Completed in 97 milliseconds

1234