/linux/drivers/net/phy/ |
H A D | sfp.c | 850 state = sfp->get_state(sfp) & sfp->state_hw_mask; in sfp_get_state() 864 sfp->set_state(sfp, state); in sfp_set_state() 895 const struct sfp *sfp = data; in sfp_hwmon_is_visible() local 1618 sfp->hwmon_name, sfp, in sfp_hwmon_probe() 1695 struct sfp *sfp = s->private; in sfp_debug_state_show() local 2375 sfp->quirk->fixup(sfp); in sfp_sm_mod_probe() 2911 struct sfp *sfp = data; in sfp_irq() local 2933 struct sfp *sfp; in sfp_alloc() local 2954 struct sfp *sfp = data; in sfp_cleanup() local 2999 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() 819 bus->sfp = NULL; in sfp_socket_clear() 823 struct sfp_bus *sfp_register_socket(struct device *dev, struct sfp *sfp, in sfp_register_socket() argument [all …]
|
/linux/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/drivers/pinctrl/starfive/ |
H A D | pinctrl-starfive-jh7110.c | 681 sfp->gpios.name = sfp->gc.label; in jh7110_gpio_add_pin_ranges() 682 sfp->gpios.base = sfp->gc.base; in jh7110_gpio_add_pin_ranges() 684 sfp->gpios.npins = sfp->gc.ngpio; in jh7110_gpio_add_pin_ranges() 685 sfp->gpios.gc = &sfp->gc; in jh7110_gpio_add_pin_ranges() 686 pinctrl_add_gpio_range(sfp->pctl, &sfp->gpios); in jh7110_gpio_add_pin_ranges() 861 sfp = devm_kzalloc(dev, sizeof(*sfp), GFP_KERNEL); in jh7110_pinctrl_probe() 862 if (!sfp) in jh7110_pinctrl_probe() 926 sfp, &sfp->pctl); in jh7110_pinctrl_probe() 963 ret = devm_gpiochip_add_data(dev, &sfp->gc, sfp); in jh7110_pinctrl_probe() 981 sfp->saved_regs[i] = readl_relaxed(sfp->base + 4 * i); in jh7110_pinctrl_suspend() [all …]
|
H A D | pinctrl-starfive-jh7100.c | 938 starfive_padctl_rmw(sfp, starfive_gpio_to_pin(sfp, gpio), in starfive_gpio_direction_input() 962 starfive_padctl_rmw(sfp, starfive_gpio_to_pin(sfp, gpio), in starfive_gpio_direction_output() 1036 sfp->gpios.name = sfp->gc.label; in starfive_gpio_add_pin_ranges() 1037 sfp->gpios.base = sfp->gc.base; in starfive_gpio_add_pin_ranges() 1043 sfp->gpios.gc = &sfp->gc; in starfive_gpio_add_pin_ranges() 1044 pinctrl_add_gpio_range(sfp->pctl, &sfp->gpios); in starfive_gpio_add_pin_ranges() 1227 sfp = devm_kzalloc(dev, sizeof(*sfp), GFP_KERNEL); in starfive_probe() 1228 if (!sfp) in starfive_probe() 1311 sfp->gc.base = -1; in starfive_probe() 1317 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/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/drivers/scsi/ |
H A D | sg.c | 290 Sg_fd *sfp; in sg_open() local 388 Sg_fd *sfp; in sg_release() local 447 Sg_fd *sfp; in sg_read() local 608 Sg_fd *sfp; in sg_write() local 1041 sg_remove_scat(sfp, &sfp->reserve); in sg_ioctl_common() 1157 Sg_fd *sfp; in sg_ioctl() local 1174 Sg_fd *sfp; in sg_poll() local 1180 if (!sfp) in sg_poll() 2139 if (!sfp || !srp || list_empty(&sfp->rq_list)) in sg_remove_request() 2168 if (!sfp) in sg_add_sfp() [all …]
|
/linux/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/arch/arm64/boot/dts/microchip/ |
H A D | sparx5_pcb134_board.dtsi | 712 sfp = <&sfp_eth12>; 722 sfp = <&sfp_eth13>; 731 sfp = <&sfp_eth14>; 740 sfp = <&sfp_eth15>; 749 sfp = <&sfp_eth48>; 758 sfp = <&sfp_eth49>; 767 sfp = <&sfp_eth50>; 776 sfp = <&sfp_eth51>; 785 sfp = <&sfp_eth52>; 794 sfp = <&sfp_eth53>; [all …]
|
/linux/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/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/drivers/scsi/bfa/ |
H A D | bfa_ioc.c | 3638 bfa_trc(sfp, sfp->lock); in bfa_cb_sfp_show() 3640 sfp->cbfn(sfp->cbarg, sfp->status); in bfa_cb_sfp_show() 3658 sfp->status = bfa_sfp_speed_valid(sfp, sfp->portspeed); in bfa_cb_sfp_state_query() 3678 bfa_trc(sfp, sfp->lock); in bfa_sfp_notify() 3775 bfa_trc(sfp, sfp->state); in bfa_sfp_getdata() 3843 bfa_trc(sfp, sfp->lock); in bfa_sfp_show_comp() 3855 bfa_trc(sfp, sfp->state); in bfa_sfp_show_comp() 3896 bfa_trc(sfp, sfp->state); in bfa_sfp_state_query() 3948 bfa_trc(sfp, sfp->state); in bfa_sfp_media_get() 4158 bfa_trc(sfp, sfp->state); in bfa_sfp_speed() [all …]
|
/linux/Documentation/devicetree/bindings/nvmem/ |
H A 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";
|
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/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/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/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>;
|
H A D | lan966x-kontron-kswitch-d10-mmt-6g-2gs.dts | 20 compatible = "sff,sfp"; 32 compatible = "sff,sfp"; 82 sfp = <&sfp0>; 90 sfp = <&sfp1>;
|
/linux/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>;
|
/linux/arch/arm64/boot/dts/marvell/ |
H A D | armada-3720-uDPU.dts | 11 sfp_eth0: sfp-eth0 { 12 compatible = "sff,sfp"; 41 sfp = <&sfp_eth0>;
|