| /linux-6.15/drivers/net/phy/ |
| H A D | sfp.c | 912 state = sfp->get_state(sfp) & sfp->state_hw_mask; in sfp_get_state() 926 sfp->set_state(sfp, state); in sfp_set_state() 957 const struct sfp *sfp = data; in sfp_hwmon_is_visible() local 1680 sfp->hwmon_name, sfp, in sfp_hwmon_probe() 1757 struct sfp *sfp = s->private; in sfp_debug_state_show() local 2437 sfp->quirk->fixup(sfp); in sfp_sm_mod_probe() 2973 struct sfp *sfp = data; in sfp_irq() local 2995 struct sfp *sfp; in sfp_alloc() local 3015 struct sfp *sfp = data; in sfp_cleanup() local 3060 struct sfp *sfp; in sfp_probe() local [all …]
|
| H A D | 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, 26 int (*module_eeprom_by_page)(struct sfp *sfp, [all …]
|
| H A D | sfp-bus.c | 24 struct sfp *sfp; member 413 if (sfp->fwnode == fwnode) { in sfp_bus_get() 414 kref_get(&sfp->kref); in sfp_bus_get() 415 found = sfp; in sfp_bus_get() 473 bus->socket_ops->attach(bus->sfp); in sfp_register_bus() 578 bus->socket_ops->stop(bus->sfp); in sfp_upstream_stop() 688 if (bus->sfp) { in sfp_bus_add_upstream() 715 if (bus->sfp) in sfp_bus_del_upstream() 841 bus->sfp = NULL; in sfp_socket_clear() 845 struct sfp_bus *sfp_register_socket(struct device *dev, struct sfp *sfp, in sfp_register_socket() argument [all …]
|
| /linux-6.15/drivers/media/usb/pvrusb2/ |
| H A D | pvrusb2-sysfs.c | 299 cip->chptr = sfp; in pvr2_sysfs_add_control() 301 if (sfp->item_last) { in pvr2_sysfs_add_control() 306 sfp->item_last = cip; in pvr2_sysfs_add_control() 425 sfp->debugifc = dip; in pvr2_sysfs_add_debugifc() 456 kfree(sfp->debugifc); in pvr2_sysfs_tear_down_debugifc() 457 sfp->debugifc = NULL; in pvr2_sysfs_tear_down_debugifc() 537 sfp->class_dev = NULL; in class_dev_destroy() 675 ret = device_create_file(sfp->class_dev,&sfp->attr_unit_number); in class_dev_create() 744 kfree(sfp); in pvr2_sysfs_internal_check() 751 sfp = kzalloc(sizeof(*sfp),GFP_KERNEL); in pvr2_sysfs_create() [all …]
|
| /linux-6.15/drivers/pinctrl/starfive/ |
| H A D | pinctrl-starfive-jh7110.c | 679 sfp->gpios.name = sfp->gc.label; in jh7110_gpio_add_pin_ranges() 680 sfp->gpios.base = sfp->gc.base; in jh7110_gpio_add_pin_ranges() 682 sfp->gpios.npins = sfp->gc.ngpio; in jh7110_gpio_add_pin_ranges() 683 sfp->gpios.gc = &sfp->gc; in jh7110_gpio_add_pin_ranges() 684 pinctrl_add_gpio_range(sfp->pctl, &sfp->gpios); in jh7110_gpio_add_pin_ranges() 859 sfp = devm_kzalloc(dev, sizeof(*sfp), GFP_KERNEL); in jh7110_pinctrl_probe() 860 if (!sfp) in jh7110_pinctrl_probe() 924 sfp, &sfp->pctl); in jh7110_pinctrl_probe() 961 ret = devm_gpiochip_add_data(dev, &sfp->gc, sfp); in jh7110_pinctrl_probe() 979 sfp->saved_regs[i] = readl_relaxed(sfp->base + 4 * i); in jh7110_pinctrl_suspend() [all …]
|
| H A D | pinctrl-starfive-jh7100.c | 933 starfive_padctl_rmw(sfp, starfive_gpio_to_pin(sfp, gpio), in starfive_gpio_direction_input() 957 starfive_padctl_rmw(sfp, starfive_gpio_to_pin(sfp, gpio), in starfive_gpio_direction_output() 1031 sfp->gpios.name = sfp->gc.label; in starfive_gpio_add_pin_ranges() 1032 sfp->gpios.base = sfp->gc.base; in starfive_gpio_add_pin_ranges() 1038 sfp->gpios.gc = &sfp->gc; in starfive_gpio_add_pin_ranges() 1039 pinctrl_add_gpio_range(sfp->pctl, &sfp->gpios); in starfive_gpio_add_pin_ranges() 1222 sfp = devm_kzalloc(dev, sizeof(*sfp), GFP_KERNEL); in starfive_probe() 1223 if (!sfp) in starfive_probe() 1306 sfp->gc.base = -1; in starfive_probe() 1312 sfp->gc.irq.parents = devm_kcalloc(dev, sfp->gc.irq.num_parents, in starfive_probe() [all …]
|
| H A D | pinctrl-starfive-jh7110-sys.c | 304 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 …]
|
| H A D | pinctrl-starfive-jh7110-aon.c | 76 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() 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() 121 writel_relaxed(0x0f, sfp->base + JH7110_AON_GPIOIC); in jh7110_aon_init_hw() [all …]
|
| H A D | pinctrl-starfive-jh7110.h | 57 int (*jh7110_set_one_pin_mux)(struct jh7110_pinctrl *sfp, 62 int (*jh7110_get_padcfg_base)(struct jh7110_pinctrl *sfp, 68 void jh7110_set_gpiomux(struct jh7110_pinctrl *sfp, unsigned int pin,
|
| /linux-6.15/fs/xfs/libxfs/ |
| H A D | xfs_dir2_sf.c | 353 kfree(sfp); in xfs_dir2_block_to_sf() 487 sfp->count++; in xfs_dir2_sf_addname_easy() 489 sfp->i8count++; in xfs_dir2_sf_addname_easy() 569 sfp->count++; in xfs_dir2_sf_addname_hard() 571 sfp->i8count++; in xfs_dir2_sf_addname_hard() 830 sfp->count = 0; in xfs_dir2_sf_create() 885 for (i = 0, sfep = xfs_dir2_sf_firstentry(sfp); i < sfp->count; in xfs_dir2_sf_lookup() 942 for (i = 0, sfep = xfs_dir2_sf_firstentry(sfp); i < sfp->count; in xfs_dir2_sf_removename() 966 memmove((char *)sfp + byteoff, (char *)sfp + byteoff + entsize, in xfs_dir2_sf_removename() 971 sfp->count--; in xfs_dir2_sf_removename() [all …]
|
| /linux-6.15/drivers/scsi/ |
| H A D | sg.c | 290 Sg_fd *sfp; in sg_open() local 382 Sg_fd *sfp; in sg_release() local 440 Sg_fd *sfp; in sg_read() local 601 Sg_fd *sfp; in sg_write() local 1034 sg_remove_scat(sfp, &sfp->reserve); in sg_ioctl_common() 1150 Sg_fd *sfp; in sg_ioctl() local 1167 Sg_fd *sfp; in sg_poll() local 1173 if (!sfp) in sg_poll() 2131 if (!sfp || !srp || list_empty(&sfp->rq_list)) in sg_remove_request() 2160 if (!sfp) in sg_add_sfp() [all …]
|
| /linux-6.15/net/hsr/ |
| H A D | hsr_debugfs.c | 19 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.15/arch/arm64/boot/dts/microchip/ |
| H A D | sparx5_pcb134_board.dtsi | 266 sfp_eth12: sfp-eth12 { 275 sfp_eth13: sfp-eth13 { 284 sfp_eth14: sfp-eth14 { 293 sfp_eth15: sfp-eth15 { 302 sfp_eth48: sfp-eth48 { 311 sfp_eth49: sfp-eth49 { 320 sfp_eth50: sfp-eth50 { 329 sfp_eth51: sfp-eth51 { 338 sfp_eth52: sfp-eth52 { 347 sfp_eth53: sfp-eth53 { [all …]
|
| /linux-6.15/arch/arm64/boot/dts/freescale/ |
| H A 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 { 64 sfp = <&sfp0>; 70 sfp = <&sfp1>; 76 sfp = <&sfp2>; [all …]
|
| H A D | fsl-lx2162a-clearfog.dts | 41 led_sfp_at: led-sfp-at { 46 led_sfp_ab: led-sfp-ab { 62 sfp_at: sfp-at { 63 compatible = "sff,sfp"; 69 sfp_ab: sfp-ab { 76 sfp_bt: sfp-bt { 83 sfp_bb: sfp-bb { 92 sfp = <&sfp_at>; 98 sfp = <&sfp_ab>; 104 sfp = <&sfp_bt>; [all …]
|
| /linux-6.15/drivers/scsi/snic/ |
| H A D | snic_debugfs.c | 174 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.15/drivers/scsi/bfa/ |
| H A D | bfa_ioc.c | 3617 bfa_trc(sfp, sfp->lock); in bfa_cb_sfp_show() 3619 sfp->cbfn(sfp->cbarg, sfp->status); in bfa_cb_sfp_show() 3637 sfp->status = bfa_sfp_speed_valid(sfp, sfp->portspeed); in bfa_cb_sfp_state_query() 3657 bfa_trc(sfp, sfp->lock); in bfa_sfp_notify() 3754 bfa_trc(sfp, sfp->state); in bfa_sfp_getdata() 3822 bfa_trc(sfp, sfp->lock); in bfa_sfp_show_comp() 3834 bfa_trc(sfp, sfp->state); in bfa_sfp_show_comp() 3875 bfa_trc(sfp, sfp->state); in bfa_sfp_state_query() 3927 bfa_trc(sfp, sfp->state); in bfa_sfp_media_get() 4137 bfa_trc(sfp, sfp->state); in bfa_sfp_speed() [all …]
|
| /linux-6.15/Documentation/devicetree/bindings/nvmem/ |
| H A D | fsl,layerscape-sfp.yaml | 4 $id: http://devicetree.org/schemas/nvmem/fsl,layerscape-sfp.yaml# 25 - const: fsl,ls1021a-sfp 28 - const: fsl,ls1028a-sfp 39 const: sfp 41 ta-prog-sfp-supply: 58 compatible = "fsl,ls1028a-sfp"; 62 clock-names = "sfp";
|
| H A D | fsl,t1023-sfp.yaml | 4 $id: http://devicetree.org/schemas/nvmem/fsl,t1023-sfp.yaml# 20 const: fsl,t1023-sfp 34 compatible = "fsl,t1023-sfp";
|
| /linux-6.15/fs/freevxfs/ |
| H A 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-6.15/Documentation/devicetree/bindings/net/ |
| H A D | sff,sfp.yaml | 4 $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.15/arch/arm/boot/dts/microchip/ |
| H A D | lan966x-pcb8309.dts | 36 i2c102: i2c-sfp@1 { 40 i2c103: i2c-sfp@2 { 82 compatible = "sff,sfp"; 91 compatible = "sff,sfp"; 193 sfp = <&sfp2>; 201 sfp = <&sfp3>;
|
| /linux-6.15/arch/arm64/boot/dts/marvell/ |
| H A 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 {
|
| H A D | armada-3720-uDPU.dts | 11 sfp_eth0: sfp-eth0 { 12 compatible = "sff,sfp"; 41 sfp = <&sfp_eth0>;
|
| /linux-6.15/arch/arm/boot/dts/marvell/ |
| H A D | armada-385-clearfog-gtr-l8.dts | 11 sfp1: sfp-1 { 12 compatible = "sff,sfp"; 83 label = "lan-sfp"; 85 sfp = <&sfp1>;
|