Home
last modified time | relevance | path

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

123

/linux/drivers/net/phy/
H A Dsfp.c241 struct sfp { struct
253 unsigned int (*get_state)(struct sfp *); argument
254 void (*set_state)(struct sfp *, unsigned int); argument
255 int (*read)(struct sfp *, bool, u8, void *, size_t); argument
256 int (*write)(struct sfp *, bool, u8, void *, size_t); argument
321 static void sfp_schedule_poll(struct sfp *sfp) in sfp_schedule_poll() argument
323 mod_delayed_work(system_percpu_wq, &sfp->poll, SFP_POLL_INTERVAL); in sfp_schedule_poll()
369 static void sfp_fixup_long_startup(struct sfp *sfp) in sfp_fixup_long_startup() argument
371 sfp->module_t_start_up = T_START_UP_BAD_GPON; in sfp_fixup_long_startup()
374 static void sfp_fixup_ignore_los(struct sfp *sfp) in sfp_fixup_ignore_los() argument
[all …]
H A Dsfp.h7 struct sfp;
14 void (*fixup)(struct sfp *sfp);
19 void (*attach)(struct sfp *sfp);
20 void (*detach)(struct sfp *sfp);
21 void (*start)(struct sfp *sfp);
22 void (*stop)(struct sfp *sfp);
23 void (*set_signal_rate)(struct sfp *sfp, unsigned int rate_kbd);
24 int (*module_info)(struct sfp *sfp, struct ethtool_modinfo *modinfo);
25 int (*module_eeprom)(struct sfp *sfp, struct ethtool_eeprom *ee,
27 int (*module_eeprom_by_page)(struct sfp *sfp,
[all …]
H A Dsfp-bus.c24 struct sfp *sfp; member
389 struct sfp_bus *sfp, *new, *found = NULL; in sfp_bus_get() local
395 list_for_each_entry(sfp, &sfp_buses, node) { in sfp_bus_get()
396 if (sfp->fwnode == fwnode) { in sfp_bus_get()
397 kref_get(&sfp->kref); in sfp_bus_get()
398 found = sfp; in sfp_bus_get()
456 bus->socket_ops->attach(bus->sfp); in sfp_register_bus()
458 bus->socket_ops->start(bus->sfp); in sfp_register_bus()
470 bus->socket_ops->stop(bus->sfp); in sfp_unregister_bus()
471 bus->socket_ops->detach(bus->sfp); in sfp_unregister_bus()
[all …]
H A DMakefile26 obj-$(CONFIG_SFP) += sfp.o
27 sfp-obj-$(CONFIG_SFP) += sfp-bus.o
28 obj-y += $(sfp-obj-y) $(sfp-obj-m)
/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.c98 struct jh7110_pinctrl *sfp = pinctrl_dev_get_drvdata(pctldev); in jh7110_pin_dbg_show() local
99 const struct jh7110_pinctrl_soc_info *info = sfp->info; in jh7110_pin_dbg_show()
103 if (pin < sfp->gc.ngpio) { in jh7110_pin_dbg_show()
106 u32 dout = readl_relaxed(sfp->base + info->dout_reg_base + offset); in jh7110_pin_dbg_show()
107 u32 doen = readl_relaxed(sfp->base + info->doen_reg_base + offset); in jh7110_pin_dbg_show()
108 u32 gpi = readl_relaxed(sfp->base + info->gpi_reg_base + offset); in jh7110_pin_dbg_show()
126 struct jh7110_pinctrl *sfp = pinctrl_dev_get_drvdata(pctldev); in jh7110_dt_node_to_map() local
127 struct device *dev = sfp->gc.parent; in jh7110_dt_node_to_map()
151 mutex_lock(&sfp->mutex); in jh7110_dt_node_to_map()
229 mutex_unlock(&sfp->mutex); in jh7110_dt_node_to_map()
[all …]
H A Dpinctrl-starfive-jh7100.c215 static inline unsigned int starfive_pin_to_gpio(const struct starfive_pinctrl *sfp, in starfive_pin_to_gpio() argument
218 return pin - sfp->gpios.pin_base; in starfive_pin_to_gpio()
221 static inline unsigned int starfive_gpio_to_pin(const struct starfive_pinctrl *sfp, in starfive_gpio_to_pin() argument
224 return sfp->gpios.pin_base + gpio; in starfive_gpio_to_pin()
455 struct starfive_pinctrl *sfp = pinctrl_dev_get_drvdata(pctldev); in starfive_pin_dbg_show() local
456 unsigned int gpio = starfive_pin_to_gpio(sfp, pin); in starfive_pin_dbg_show()
463 reg = sfp->base + GPON_DOUT_CFG + 8 * gpio; in starfive_pin_dbg_show()
480 struct starfive_pinctrl *sfp = pinctrl_dev_get_drvdata(pctldev); in starfive_dt_node_to_map() local
481 struct device *dev = sfp->gc.parent; in starfive_dt_node_to_map()
525 mutex_lock(&sfp->mutex); in starfive_dt_node_to_map()
[all …]
H A Dpinctrl-starfive-jh7110-sys.c285 static void jh7110_set_function(struct jh7110_pinctrl *sfp, in jh7110_set_function() argument
299 reg = sfp->base + fs->offset; in jh7110_set_function()
303 raw_spin_lock_irqsave(&sfp->lock, flags); in jh7110_set_function()
306 raw_spin_unlock_irqrestore(&sfp->lock, flags); in jh7110_set_function()
309 static void jh7110_set_vin_group(struct jh7110_pinctrl *sfp, in jh7110_set_vin_group() argument
321 reg = sfp->base + gs->offset; in jh7110_set_vin_group()
325 raw_spin_lock_irqsave(&sfp->lock, flags); in jh7110_set_vin_group()
328 raw_spin_unlock_irqrestore(&sfp->lock, flags); in jh7110_set_vin_group()
331 static int jh7110_sys_set_one_pin_mux(struct jh7110_pinctrl *sfp, in jh7110_sys_set_one_pin_mux() argument
336 if (pin < sfp->gc.ngpio && func == 0) in jh7110_sys_set_one_pin_mux()
[all …]
H A Dpinctrl-starfive-jh7110-aon.c74 static int jh7110_aon_set_one_pin_mux(struct jh7110_pinctrl *sfp, in jh7110_aon_set_one_pin_mux() argument
79 if (pin < sfp->gc.ngpio && func == 0) in jh7110_aon_set_one_pin_mux()
80 jh7110_set_gpiomux(sfp, pin, din, dout, doen); in jh7110_aon_set_one_pin_mux()
85 static int jh7110_aon_get_padcfg_base(struct jh7110_pinctrl *sfp, in jh7110_aon_get_padcfg_base() argument
96 struct jh7110_pinctrl *sfp = jh7110_from_irq_desc(desc); in jh7110_aon_irq_handler() local
103 mis = readl_relaxed(sfp->base + JH7110_AON_GPIOMIS); in jh7110_aon_irq_handler()
105 generic_handle_domain_irq(sfp->gc.irq.domain, pin); in jh7110_aon_irq_handler()
112 struct jh7110_pinctrl *sfp = container_of(gc, in jh7110_aon_init_hw() local
116 writel_relaxed(0, sfp->base + JH7110_AON_GPIOIE); in jh7110_aon_init_hw()
118 writel_relaxed(0, sfp->base + JH7110_AON_GPIOIC); in jh7110_aon_init_hw()
[all …]
/linux/drivers/scsi/
H A Dsg.c184 static int sg_build_indirect(Sg_scatter_hold * schp, Sg_fd * sfp, int buff_size);
185 static ssize_t sg_new_read(Sg_fd * sfp, char __user *buf, size_t count,
187 static ssize_t sg_new_write(Sg_fd *sfp, struct file *file,
190 static int sg_common_write(Sg_fd * sfp, Sg_request * srp,
193 static void sg_remove_scat(Sg_fd * sfp, Sg_scatter_hold * schp);
194 static void sg_build_reserve(Sg_fd * sfp, int req_size);
195 static void sg_link_reserve(Sg_fd * sfp, Sg_request * srp, int size);
196 static void sg_unlink_reserve(Sg_fd * sfp, Sg_request * srp);
199 static Sg_request *sg_get_rq_mark(Sg_fd * sfp, int pack_id, bool *busy);
200 static Sg_request *sg_add_request(Sg_fd * sfp);
[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 …]
H A Dsparx5_pcb135_board.dtsi67 sfp_eth60: sfp-eth60 {
68 compatible = "sff,sfp";
77 sfp_eth61: sfp-eth61 {
78 compatible = "sff,sfp";
87 sfp_eth62: sfp-eth62 {
88 compatible = "sff,sfp";
97 sfp_eth63: sfp-eth63 {
98 compatible = "sff,sfp";
706 sfp = <&sfp_eth60>;
714 sfp = <&sfp_eth61>;
[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/arch/arm/boot/dts/microchip/
H A Dlan966x-pcb8309.dts36 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 Dlan966x-kontron-kswitch-d10-mmt-6g-2gs.dts20 compatible = "sff,sfp";
32 compatible = "sff,sfp";
82 sfp = <&sfp0>;
90 sfp = <&sfp1>;
/linux/arch/arm/boot/dts/marvell/
H A Darmada-385-clearfog-gtr-l8.dts11 sfp1: sfp-1 {
12 compatible = "sff,sfp";
83 label = "lan-sfp";
85 sfp = <&sfp1>;
H A Darmada-388-clearfog.dtsi80 sfp: sfp { label
81 compatible = "sff,sfp";
109 sfp = <&sfp>;
/linux/arch/arm64/boot/dts/marvell/
H A Darmada-3720-uDPU.dts11 sfp_eth0: sfp-eth0 {
12 compatible = "sff,sfp";
41 sfp = <&sfp_eth0>;
H 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 {
H A Dcn9130-cf.dtsi27 sfp: sfp { label
28 compatible = "sff,sfp";
43 sfp = <&sfp>;
H A Darmada-8040-mcbin.dts23 sfp = <&sfp_eth0>;
29 sfp = <&sfp_eth1>;
H A Darmada-8040-mcbin-singleshot.dts36 sfp = <&sfp_eth0>;
43 sfp = <&sfp_eth1>;
/linux/arch/arm64/boot/dts/freescale/
H A Dfsl-lx2160a-tqmlx2160a-mblx2160a_x_8_x.dtso12 sfp = <&sfp_xfi1>;
17 sfp = <&sfp_xfi2>;
H A Dfsl-lx2160a-tqmlx2160a-mblx2160a_x_7_x.dtso18 sfp = <&sfp_xfi1>;
23 sfp = <&sfp_xfi2>;
/linux/arch/arm/boot/dts/nxp/vf/
H A Dvf610-zii-scu4-aib.dts206 sfp = <&sff1>;
214 sfp = <&sff2>;
222 sfp = <&sff3>;
230 sfp = <&sff4>;
238 sfp = <&sff5>;
246 sfp = <&sff6>;
254 sfp = <&sff0>;
294 sfp = <&sff7>;
302 sfp = <&sff8>;
310 sfp = <&sff9>;

123