Home
last modified time | relevance | path

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

123456789

/linux/drivers/net/phy/
H A Dsfp.c20 #include "sfp.h"
170 * on board (for a copper SFP) time to initialise.
196 /* SFP module presence detection is poor: the three MOD DEF signals are
220 /* SFP modules appear to always have their PHY configured for bus address
222 * RollBall SFPs access phy via SFP Enhanced Digital Diagnostic Interface
229 * at a time. Some SFP modules and also some Linux I2C drivers do not like
241 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 *, boo argument
245 sfp_bussfp global() argument
256 writesfp global() argument
258 gpiosfp global() argument
259 gpio_irqsfp global() argument
261 need_pollsfp global() argument
266 i2c_presentsfp global() argument
267 i2c_present_naksfp global() argument
268 i2c_present_nextsfp global() argument
294 idsfp global() argument
306 quirksfp global() argument
309 diagsfp global() argument
321 sfp_schedule_poll(struct sfp * sfp) sfp_schedule_poll() argument
369 sfp_fixup_long_startup(struct sfp * sfp) sfp_fixup_long_startup() argument
374 sfp_fixup_ignore_los(struct sfp * sfp) sfp_fixup_ignore_los() argument
383 sfp_fixup_ignore_tx_fault(struct sfp * sfp) sfp_fixup_ignore_tx_fault() argument
388 sfp_fixup_ignore_tx_fault_and_los(struct sfp * sfp) sfp_fixup_ignore_tx_fault_and_los() argument
394 sfp_fixup_ignore_hw(struct sfp * sfp,unsigned int mask) sfp_fixup_ignore_hw() argument
399 sfp_fixup_nokia(struct sfp * sfp) sfp_fixup_nokia() argument
406 sfp_fixup_10gbaset_30m(struct sfp * sfp) sfp_fixup_10gbaset_30m() argument
412 sfp_fixup_rollball(struct sfp * sfp) sfp_fixup_rollball() argument
424 sfp_fixup_rollball_wait4s(struct sfp * sfp) sfp_fixup_rollball_wait4s() argument
435 sfp_fixup_fs_10gt(struct sfp * sfp) sfp_fixup_fs_10gt() argument
441 sfp_fixup_halny_gsfp(struct sfp * sfp) sfp_fixup_halny_gsfp() argument
450 sfp_fixup_potron(struct sfp * sfp) sfp_fixup_potron() argument
462 sfp_fixup_rollball_cc(struct sfp * sfp) sfp_fixup_rollball_cc() argument
686 sfp_gpio_get_state(struct sfp * sfp) sfp_gpio_get_state() argument
702 sff_gpio_get_state(struct sfp * sfp) sff_gpio_get_state() argument
707 sfp_gpio_set_state(struct sfp * sfp,unsigned int state) sfp_gpio_set_state() argument
743 sfp_i2c_read(struct sfp * sfp,bool a2,u8 dev_addr,void * buf,size_t len) sfp_i2c_read() argument
783 sfp_i2c_write(struct sfp * sfp,bool a2,u8 dev_addr,void * buf,size_t len) sfp_i2c_write() argument
810 sfp_smbus_read(struct sfp * sfp,bool a2,u8 dev_addr,void * buf,size_t len) sfp_smbus_read() argument
867 sfp_smbus_write(struct sfp * sfp,bool a2,u8 dev_addr,void * buf,size_t len) sfp_smbus_write() argument
922 sfp_i2c_configure(struct sfp * sfp,struct i2c_adapter * i2c) sfp_i2c_configure() argument
970 sfp_i2c_mdiobus_create(struct sfp * sfp) sfp_i2c_mdiobus_create() argument
993 sfp_i2c_mdiobus_destroy(struct sfp * sfp) sfp_i2c_mdiobus_destroy() argument
1001 sfp_read(struct sfp * sfp,bool a2,u8 addr,void * buf,size_t len) sfp_read() argument
1010 sfp_module_present_i2c(struct sfp * sfp) sfp_module_present_i2c() argument
1023 sfp_i2c_get_state(struct sfp * sfp) sfp_i2c_get_state() argument
1045 sfp_write(struct sfp * sfp,bool a2,u8 addr,void * buf,size_t len) sfp_write() argument
1050 sfp_modify_u8(struct sfp * sfp,bool a2,u8 addr,u8 mask,u8 val) sfp_modify_u8() argument
1066 sfp_soft_get_state(struct sfp * sfp) sfp_soft_get_state() argument
1089 sfp_soft_set_state(struct sfp * sfp,unsigned int state,unsigned int soft) sfp_soft_set_state() argument
1118 sfp_soft_start_poll(struct sfp * sfp) sfp_soft_start_poll() argument
1143 sfp_soft_stop_poll(struct sfp * sfp) sfp_soft_stop_poll() argument
1153 sfp_get_state(struct sfp * sfp) sfp_get_state() argument
1168 sfp_set_state(struct sfp * sfp,unsigned int state) sfp_set_state() argument
1179 sfp_mod_state(struct sfp * sfp,unsigned int mask,unsigned int set) sfp_mod_state() argument
1203 const struct sfp *sfp = data; sfp_hwmon_is_visible() local
1296 sfp_hwmon_read_sensor(struct sfp * sfp,int reg,long * value) sfp_hwmon_read_sensor() argument
1315 sfp_hwmon_calibrate(struct sfp * sfp,unsigned int slope,int offset,long * value) sfp_hwmon_calibrate() argument
1322 sfp_hwmon_calibrate_temp(struct sfp * sfp,long * value) sfp_hwmon_calibrate_temp() argument
1333 sfp_hwmon_calibrate_vcc(struct sfp * sfp,long * value) sfp_hwmon_calibrate_vcc() argument
1341 sfp_hwmon_calibrate_bias(struct sfp * sfp,long * value) sfp_hwmon_calibrate_bias() argument
1349 sfp_hwmon_calibrate_tx_power(struct sfp * sfp,long * value) sfp_hwmon_calibrate_tx_power() argument
1357 sfp_hwmon_read_temp(struct sfp * sfp,int reg,long * value) sfp_hwmon_read_temp() argument
1370 sfp_hwmon_read_vcc(struct sfp * sfp,int reg,long * value) sfp_hwmon_read_vcc() argument
1383 sfp_hwmon_read_bias(struct sfp * sfp,int reg,long * value) sfp_hwmon_read_bias() argument
1396 sfp_hwmon_read_tx_power(struct sfp * sfp,int reg,long * value) sfp_hwmon_read_tx_power() argument
1409 sfp_hwmon_read_rx_power(struct sfp * sfp,int reg,long * value) sfp_hwmon_read_rx_power() argument
1422 sfp_hwmon_temp(struct sfp * sfp,u32 attr,long * value) sfp_hwmon_temp() argument
1488 sfp_hwmon_vcc(struct sfp * sfp,u32 attr,long * value) sfp_hwmon_vcc() argument
1555 sfp_hwmon_bias(struct sfp * sfp,u32 attr,long * value) sfp_hwmon_bias() argument
1622 sfp_hwmon_tx_power(struct sfp * sfp,u32 attr,long * value) sfp_hwmon_tx_power() argument
1689 sfp_hwmon_rx_power(struct sfp * sfp,u32 attr,long * value) sfp_hwmon_rx_power() argument
1759 struct sfp *sfp = dev_get_drvdata(dev); sfp_hwmon_read() local
1890 struct sfp *sfp = container_of(work, struct sfp, hwmon_probe.work); sfp_hwmon_probe() local
1934 sfp_hwmon_insert(struct sfp * sfp) sfp_hwmon_insert() argument
1944 sfp_hwmon_remove(struct sfp * sfp) sfp_hwmon_remove() argument
1958 sfp_hwmon_init(struct sfp * sfp) sfp_hwmon_init() argument
1965 sfp_hwmon_exit(struct sfp * sfp) sfp_hwmon_exit() argument
1970 sfp_hwmon_insert(struct sfp * sfp) sfp_hwmon_insert() argument
1975 sfp_hwmon_remove(struct sfp * sfp) sfp_hwmon_remove() argument
1979 sfp_hwmon_init(struct sfp * sfp) sfp_hwmon_init() argument
1984 sfp_hwmon_exit(struct sfp * sfp) sfp_hwmon_exit() argument
1990 sfp_module_tx_disable(struct sfp * sfp) sfp_module_tx_disable() argument
1997 sfp_module_tx_enable(struct sfp * sfp) sfp_module_tx_enable() argument
2007 struct sfp *sfp = s->private; sfp_debug_state_show() local
2035 sfp_debugfs_init(struct sfp * sfp) sfp_debugfs_init() argument
2043 sfp_debugfs_exit(struct sfp * sfp) sfp_debugfs_exit() argument
2048 sfp_debugfs_init(struct sfp * sfp) sfp_debugfs_init() argument
2052 sfp_debugfs_exit(struct sfp * sfp) sfp_debugfs_exit() argument
2057 sfp_module_tx_fault_reset(struct sfp * sfp) sfp_module_tx_fault_reset() argument
2074 sfp_sm_set_timer(struct sfp * sfp,unsigned int timeout) sfp_sm_set_timer() argument
2083 sfp_sm_next(struct sfp * sfp,unsigned int state,unsigned int timeout) sfp_sm_next() argument
2090 sfp_sm_mod_next(struct sfp * sfp,unsigned int state,unsigned int timeout) sfp_sm_mod_next() argument
2097 sfp_sm_phy_detach(struct sfp * sfp) sfp_sm_phy_detach() argument
2105 sfp_sm_probe_phy(struct sfp * sfp,int addr,bool is_c45) sfp_sm_probe_phy() argument
2142 sfp_sm_link_up(struct sfp * sfp) sfp_sm_link_up() argument
2148 sfp_sm_link_down(struct sfp * sfp) sfp_sm_link_down() argument
2153 sfp_sm_link_check_los(struct sfp * sfp) sfp_sm_link_check_los() argument
2175 sfp_los_event_active(struct sfp * sfp,unsigned int event) sfp_los_event_active() argument
2185 sfp_los_event_inactive(struct sfp * sfp,unsigned int event) sfp_los_event_inactive() argument
2195 sfp_sm_fault(struct sfp * sfp,unsigned int next_state,bool warn) sfp_sm_fault() argument
2209 sfp_sm_add_mdio_bus(struct sfp * sfp) sfp_sm_add_mdio_bus() argument
2228 sfp_sm_probe_for_phy(struct sfp * sfp) sfp_sm_probe_for_phy() argument
2252 sfp_module_parse_power(struct sfp * sfp) sfp_module_parse_power() argument
2318 sfp_sm_mod_hpower(struct sfp * sfp,bool enable) sfp_sm_mod_hpower() argument
2339 sfp_module_parse_rate_select(struct sfp * sfp) sfp_module_parse_rate_select() argument
2439 sfp_id_needs_byte_io(struct sfp * sfp,void * buf,size_t len) sfp_id_needs_byte_io() argument
2454 sfp_cotsworks_fixup_check(struct sfp * sfp,struct sfp_eeprom_id * id) sfp_cotsworks_fixup_check() argument
2490 sfp_module_parse_sff8472(struct sfp * sfp) sfp_module_parse_sff8472() argument
2502 sfp_sm_mod_probe(struct sfp * sfp,bool report) sfp_sm_mod_probe() argument
2695 sfp_sm_mod_remove(struct sfp * sfp) sfp_sm_mod_remove() argument
2711 sfp_sm_device(struct sfp * sfp,unsigned int event) sfp_sm_device() argument
2738 sfp_sm_module(struct sfp * sfp,unsigned int event) sfp_sm_module() argument
2854 sfp_sm_main(struct sfp * sfp,unsigned int event) sfp_sm_main() argument
3028 __sfp_sm_event(struct sfp * sfp,unsigned int event) __sfp_sm_event() argument
3046 sfp_sm_event(struct sfp * sfp,unsigned int event) sfp_sm_event() argument
3053 sfp_attach(struct sfp * sfp) sfp_attach() argument
3058 sfp_detach(struct sfp * sfp) sfp_detach() argument
3063 sfp_start(struct sfp * sfp) sfp_start() argument
3068 sfp_stop(struct sfp * sfp) sfp_stop() argument
3073 sfp_set_signal_rate(struct sfp * sfp,unsigned int rate_kbd) sfp_set_signal_rate() argument
3087 sfp_module_info(struct sfp * sfp,struct ethtool_modinfo * modinfo) sfp_module_info() argument
3102 sfp_module_eeprom(struct sfp * sfp,struct ethtool_eeprom * ee,u8 * data) sfp_module_eeprom() argument
3139 sfp_module_eeprom_by_page(struct sfp * sfp,const struct ethtool_module_eeprom * page,struct netlink_ext_ack * extack) sfp_module_eeprom_by_page() argument
3179 struct sfp *sfp = container_of(work, struct sfp, timeout.work); sfp_timeout() local
3186 sfp_check_state(struct sfp * sfp) sfp_check_state() argument
3223 struct sfp *sfp = data; sfp_irq() local
3232 struct sfp *sfp = container_of(work, struct sfp, poll.work); sfp_poll() local
3245 struct sfp *sfp; sfp_alloc() local
3265 struct sfp *sfp = data; sfp_cleanup() local
3280 sfp_i2c_get(struct sfp * sfp) sfp_i2c_get() argument
3310 struct sfp *sfp; sfp_probe() local
3462 struct sfp *sfp = platform_get_drvdata(pdev); sfp_remove() local
3474 struct sfp *sfp = platform_get_drvdata(pdev); sfp_shutdown() local
[all...]
H A Dsfp.h5 #include <linux/sfp.h>
7 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,
[all …]
H A Dsfp-bus.c11 #include "sfp.h"
14 * struct sfp_bus - internal representation of a sfp bus
24 struct sfp *sfp; member
81 dev_warn(bus->sfp_dev, "SFP: unknown connector id 0x%02x\n", in sfp_module_parse_port()
279 /* For fibre channel SFP, derive possible BaseX modes */ in sfp_module_parse_support()
334 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
337 * Derive the phy_interface_t mode for the SFP module from the link
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()
[all …]
/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 in pvr2_sysfs_add_debugifc()
445 pvr2_sysfs_tear_down_debugifc(struct pvr2_sysfs * sfp) pvr2_sysfs_tear_down_debugifc() argument
462 pvr2_sysfs_add_controls(struct pvr2_sysfs * sfp) pvr2_sysfs_add_controls() argument
472 pvr2_sysfs_tear_down_controls(struct pvr2_sysfs * sfp) pvr2_sysfs_tear_down_controls() argument
499 class_dev_destroy(struct pvr2_sysfs * sfp) class_dev_destroy() argument
544 struct pvr2_sysfs *sfp; v4l_minor_number_show() local
556 struct pvr2_sysfs *sfp; bus_info_show() local
567 struct pvr2_sysfs *sfp; hdw_name_show() local
578 struct pvr2_sysfs *sfp; hdw_desc_show() local
590 struct pvr2_sysfs *sfp; v4l_radio_minor_number_show() local
602 struct pvr2_sysfs *sfp; unit_number_show() local
610 class_dev_create(struct pvr2_sysfs * sfp) class_dev_create() argument
738 struct pvr2_sysfs *sfp; pvr2_sysfs_internal_check() local
750 struct pvr2_sysfs *sfp; pvr2_sysfs_create() local
779 struct pvr2_sysfs *sfp; debuginfo_show() local
790 struct pvr2_sysfs *sfp; debugcmd_show() local
801 struct pvr2_sysfs *sfp; debugcmd_store() local
[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 in jh7110_dt_node_to_map()
250 jh7110_set_gpiomux(struct jh7110_pinctrl * sfp,unsigned int pin,unsigned int din,u32 dout,u32 doen) jh7110_set_gpiomux() argument
296 struct jh7110_pinctrl *sfp = pinctrl_dev_get_drvdata(pctldev); jh7110_set_mux() local
348 jh7110_padcfg_rmw(struct jh7110_pinctrl * sfp,unsigned int pin,u32 mask,u32 value) jh7110_padcfg_rmw() argument
375 struct jh7110_pinctrl *sfp = pinctrl_dev_get_drvdata(pctldev); jh7110_pinconf_get() local
445 struct jh7110_pinctrl *sfp = pinctrl_dev_get_drvdata(pctldev); jh7110_pinconf_group_set() local
518 struct jh7110_pinctrl *sfp = pinctrl_dev_get_drvdata(pctldev); jh7110_pinconf_dbg_show() local
548 struct jh7110_pinctrl *sfp = container_of(gc, jh7110_gpio_get_direction() local
564 struct jh7110_pinctrl *sfp = container_of(gc, jh7110_gpio_direction_input() local
583 struct jh7110_pinctrl *sfp = container_of(gc, jh7110_gpio_direction_output() local
601 struct jh7110_pinctrl *sfp = container_of(gc, jh7110_gpio_get() local
612 struct jh7110_pinctrl *sfp = container_of(gc, jh7110_gpio_set() local
633 struct jh7110_pinctrl *sfp = container_of(gc, jh7110_gpio_set_config() local
676 struct jh7110_pinctrl *sfp = container_of(gc, jh7110_gpio_add_pin_ranges() local
690 struct jh7110_pinctrl *sfp = jh7110_from_irq_data(d); jh7110_irq_ack() local
708 struct jh7110_pinctrl *sfp = jh7110_from_irq_data(d); jh7110_irq_mask() local
727 struct jh7110_pinctrl *sfp = jh7110_from_irq_data(d); jh7110_irq_mask_ack() local
750 struct jh7110_pinctrl *sfp = jh7110_from_irq_data(d); jh7110_irq_unmask() local
769 struct jh7110_pinctrl *sfp = jh7110_from_irq_data(d); jh7110_irq_set_type() local
844 struct jh7110_pinctrl *sfp; jh7110_pinctrl_probe() local
970 struct jh7110_pinctrl *sfp = dev_get_drvdata(dev); jh7110_pinctrl_suspend() local
984 struct jh7110_pinctrl *sfp = dev_get_drvdata(dev); jh7110_pinctrl_resume() local
[all...]
H A Dpinctrl-starfive-jh7100.c150 * sfp->gpio.pin_base = PAD_INVALID_GPIO then
151 * starfive_pin_to_gpio(sfp, validpin) is never a valid GPIO number.
215 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 in starfive_dt_node_to_map() local
640 struct starfive_pinctrl *sfp = pinctrl_dev_get_drvdata(pctldev); starfive_set_mux() local
691 starfive_padctl_get(struct starfive_pinctrl * sfp,unsigned int pin) starfive_padctl_get() argument
700 starfive_padctl_rmw(struct starfive_pinctrl * sfp,unsigned int pin,u16 _mask,u16 _value) starfive_padctl_rmw() argument
738 struct starfive_pinctrl *sfp = pinctrl_dev_get_drvdata(pctldev); starfive_pinconf_get() local
802 struct starfive_pinctrl *sfp = pinctrl_dev_get_drvdata(pctldev); starfive_pinconf_group_set() local
883 struct starfive_pinctrl *sfp = pinctrl_dev_get_drvdata(pctldev); starfive_pinconf_dbg_show() local
915 struct starfive_pinctrl *sfp = container_of(gc, struct starfive_pinctrl, gc); starfive_gpio_get_direction() local
927 struct starfive_pinctrl *sfp = container_of(gc, struct starfive_pinctrl, gc); starfive_gpio_direction_input() local
945 struct starfive_pinctrl *sfp = container_of(gc, struct starfive_pinctrl, gc); starfive_gpio_direction_output() local
965 struct starfive_pinctrl *sfp = container_of(gc, struct starfive_pinctrl, gc); starfive_gpio_get() local
974 struct starfive_pinctrl *sfp = container_of(gc, struct starfive_pinctrl, gc); starfive_gpio_set() local
988 struct starfive_pinctrl *sfp = container_of(gc, struct starfive_pinctrl, gc); starfive_gpio_set_config() local
1030 struct starfive_pinctrl *sfp = container_of(gc, struct starfive_pinctrl, gc); starfive_gpio_add_pin_ranges() local
1046 struct starfive_pinctrl *sfp = starfive_from_irq_data(d); starfive_irq_ack() local
1059 struct starfive_pinctrl *sfp = starfive_from_irq_data(d); starfive_irq_mask() local
1076 struct starfive_pinctrl *sfp = starfive_from_irq_data(d); starfive_irq_mask_ack() local
1093 struct starfive_pinctrl *sfp = starfive_from_irq_data(d); starfive_irq_unmask() local
1110 struct starfive_pinctrl *sfp = starfive_from_irq_data(d); starfive_irq_set_type() local
1176 struct starfive_pinctrl *sfp = starfive_from_irq_desc(desc); starfive_gpio_irq_handler() local
1196 struct starfive_pinctrl *sfp = container_of(gc, struct starfive_pinctrl, gc); starfive_gpio_init_hw() local
1217 struct starfive_pinctrl *sfp; starfive_probe() local
[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);
237 struct sg_fd *sfp = filp->private_data; sg_allow_access() local
291 Sg_fd *sfp; sg_open() local
383 Sg_fd *sfp; sg_release() local
441 Sg_fd *sfp; sg_read() local
555 sg_new_read(Sg_fd * sfp,char __user * buf,size_t count,Sg_request * srp) sg_new_read() argument
602 Sg_fd *sfp; sg_write() local
709 sg_new_write(Sg_fd * sfp,struct file * file,const char __user * buf,size_t count,int blocking,int read_only,int sg_io_owned,Sg_request ** o_srp) sg_new_write() argument
778 sg_common_write(Sg_fd * sfp,Sg_request * srp,unsigned char * cmnd,int timeout,int blocking) sg_common_write() argument
834 srp_done(Sg_fd * sfp,Sg_request * srp) srp_done() argument
855 sg_fill_request_table(Sg_fd * sfp,sg_req_info_t * rinfo) sg_fill_request_table() argument
914 sg_ioctl_common(struct file * filp,Sg_device * sdp,Sg_fd * sfp,unsigned int cmd_in,void __user * p) sg_ioctl_common() argument
1151 Sg_fd *sfp; sg_ioctl() local
1168 Sg_fd *sfp; sg_poll() local
1205 Sg_fd *sfp; sg_fasync() local
1219 Sg_fd *sfp; sg_vma_fault() local
1258 Sg_fd *sfp; sg_mmap() local
1300 struct sg_fd *sfp = srp->parentfp; sg_rq_end_io_usercontext() local
1318 Sg_fd *sfp; sg_rq_end_io() local
1595 Sg_fd *sfp; sg_remove_device() local
1715 Sg_fd *sfp = srp->parentfp; sg_start_req() local
1820 Sg_fd *sfp = srp->parentfp; sg_finish_rem_req() local
1841 sg_build_sgat(Sg_scatter_hold * schp,const Sg_fd * sfp,int tablesize) sg_build_sgat() argument
1854 sg_build_indirect(Sg_scatter_hold * schp,Sg_fd * sfp,int buff_size) sg_build_indirect() argument
1932 sg_remove_scat(Sg_fd * sfp,Sg_scatter_hold * schp) sg_remove_scat() argument
1988 sg_build_reserve(Sg_fd * sfp,int req_size) sg_build_reserve() argument
2006 sg_link_reserve(Sg_fd * sfp,Sg_request * srp,int size) sg_link_reserve() argument
2037 sg_unlink_reserve(Sg_fd * sfp,Sg_request * srp) sg_unlink_reserve() argument
2055 sg_get_rq_mark(Sg_fd * sfp,int pack_id,bool * busy) sg_get_rq_mark() argument
2085 sg_add_request(Sg_fd * sfp) sg_add_request() argument
2116 sg_remove_request(Sg_fd * sfp,Sg_request * srp) sg_remove_request() argument
2145 Sg_fd *sfp; sg_add_sfp() local
2191 struct sg_fd *sfp = container_of(work, struct sg_fd, ew.work); sg_remove_sfp_usercontext() local
2235 struct sg_fd *sfp = container_of(kref, struct sg_fd, f_ref); sg_remove_sfp() local
[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/Documentation/devicetree/bindings/nvmem/
H A Dfsl,layerscape-sfp.yaml4 $id: http://devicetree.org/schemas/nvmem/fsl,layerscape-sfp.yaml#
13 SFP is the security fuse processor which among other things provides a
23 - description: Trust architecture 2.1 SFP
25 - const: fsl,ls1021a-sfp
26 - description: Trust architecture 3.0 SFP
28 - const: fsl,ls1028a-sfp
36 The SFP clock. Typically, this is the platform clock divided by 4.
39 const: sfp
41 ta-prog-sfp-supply:
58 compatible = "fsl,ls1028a-sfp";
[all …]
H A Dfsl,t1023-sfp.yaml4 $id: http://devicetree.org/schemas/nvmem/fsl,t1023-sfp.yaml#
13 Read support for the eFuses (SFP) on NXP QorIQ series SoC's.
20 const: fsl,t1023-sfp
34 compatible = "fsl,t1023-sfp";
/linux/drivers/net/ethernet/intel/ice/
H A Dice_devids.h13 /* Intel(R) Ethernet Controller E835-CC for SFP */
19 /* Intel(R) Ethernet Controller E835-C for SFP */
25 /* Intel(R) Ethernet Controller E835-L for SFP */
29 /* Intel(R) Ethernet Connection E823-L for SFP */
41 /* Intel(R) Ethernet Controller E830-CC for SFP */
43 /* Intel(R) Ethernet Controller E830-CC for SFP-DD */
49 /* Intel(R) Ethernet Controller E830-C for SFP */
55 /* Intel(R) Ethernet Controller E830-XXV for SFP */
61 /* Intel(R) Ethernet Controller E810-C for SFP */
74 /* Intel(R) Ethernet Controller E810-XXV for SFP */
[all …]
/linux/drivers/pinctrl/
H A Dpinctrl-ocelot.c307 [FUNC_SFP] = "sfp",
410 LUTON_P(10, SFP, PHY_LED);
411 LUTON_P(11, SFP, PHY_LED);
412 LUTON_P(12, SFP, PHY_LED);
413 LUTON_P(13, SFP, PHY_LED);
417 LUTON_P(17, SFP, PHY_LED);
418 LUTON_P(18, SFP, PHY_LED);
419 LUTON_P(19, SFP, PHY_LED);
420 LUTON_P(20, SFP, PHY_LED);
421 LUTON_P(21, SFP, PHY_LE
[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/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/arm64/boot/dts/marvell/
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 …]
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 {
/linux/arch/arm/boot/dts/marvell/
H A Darmada-385-clearfog-gtr.dtsi15 5. SFP connector, or optionally SGMII Ethernet 1512 PHY
33 24 - SFP TX fault (input active high)
34 25 - SFP present (input active low)
35 26,27 - I2C1 - connected to SFP
49 46 - SFP TX disable
56 54 - SFP LOS (input active high)
137 i2c@11100 { /* SFP (CON5/CON6) */
155 /* SFP */
199 /* sfp modabs, txdisable */
205 /* sfp modab
[all...]
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 */
/linux/Documentation/networking/device_drivers/ethernet/intel/
H A Dixgbe.rst35 SFP+ Devices with Pluggable Optics
44 - When 82599-based SFP+ devices are connected back to back, they should be set
53 | Intel | DUAL RATE 1G/10G SFP+ SR (bailed) | FTLX8571D3BCV-IT |
55 | Intel | DUAL RATE 1G/10G SFP+ SR (bailed) | AFBR-703SDZ-IN2 |
57 | Intel | DUAL RATE 1G/10G SFP+ SR (bailed) | AFBR-703SDDZ-IN1 |
61 | Intel | DUAL RATE 1G/10G SFP+ LR (bailed) | FTLX1471D3BCV-IT |
63 | Intel | DUAL RATE 1G/10G SFP+ LR (bailed) | AFCT-701SDZ-IN2 |
65 | Intel | DUAL RATE 1G/10G SFP+ LR (bailed) | AFCT-701SDDZ-IN1 |
68 The following is a list of 3rd party SFP+ modules that have received some
74 | Finisar | SFP+ SR bailed, 10g single rate | FTLX8571D3BCL |
[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/Documentation/devicetree/bindings/net/
H A Dmicrochip,lan966x-switch.yaml96 the PHY or SFP.
108 sfp:
110 Phandle of an SFP.
123 - sfp
163 sfp = <&sfp_eth1>;

123456789