Lines Matching defs:sfp
173 struct sfp { struct
177 struct sfp_bus *sfp_bus; argument
182 unsigned int (*get_state)(struct sfp *); argument
183 void (*set_state)(struct sfp *, unsigned int); argument
184 int (*read)(struct sfp *, bool, u8, void *, size_t); argument
185 int (*write)(struct sfp *, bool, u8, void *, size_t); argument
201 struct sfp_eeprom_id id; argument
203 struct sfp_diag diag; argument
210 static bool sff_module_supported(const struct sfp_eeprom_id *id) in sff_module_supported() argument
242 static unsigned int sfp_gpio_get_state(struct sfp *sfp) in sfp_gpio_get_state()
258 static unsigned int sff_gpio_get_state(struct sfp *sfp) in sff_gpio_get_state()
263 static void sfp_gpio_set_state(struct sfp *sfp, unsigned int state) in sfp_gpio_set_state()
282 static int sfp_i2c_read(struct sfp *sfp, bool a2, u8 dev_addr, void *buf, in sfp_i2c_read()
321 static int sfp_i2c_write(struct sfp *sfp, bool a2, u8 dev_addr, void *buf, in sfp_i2c_write()
348 static int sfp_i2c_configure(struct sfp *sfp, struct i2c_adapter *i2c) in sfp_i2c_configure()
379 static unsigned int sfp_get_state(struct sfp *sfp) in sfp_get_state()
384 static void sfp_set_state(struct sfp *sfp, unsigned int state) in sfp_set_state()
389 static int sfp_read(struct sfp *sfp, bool a2, u8 addr, void *buf, size_t len) in sfp_read()
394 static int sfp_write(struct sfp *sfp, bool a2, u8 addr, void *buf, size_t len) in sfp_write()
415 const struct sfp *sfp = data; in sfp_hwmon_is_visible() local
508 static int sfp_hwmon_read_sensor(struct sfp *sfp, int reg, long *value) in sfp_hwmon_read_sensor()
527 static void sfp_hwmon_calibrate(struct sfp *sfp, unsigned int slope, int offset, in sfp_hwmon_calibrate()
534 static void sfp_hwmon_calibrate_temp(struct sfp *sfp, long *value) in sfp_hwmon_calibrate_temp()
545 static void sfp_hwmon_calibrate_vcc(struct sfp *sfp, long *value) in sfp_hwmon_calibrate_vcc()
553 static void sfp_hwmon_calibrate_bias(struct sfp *sfp, long *value) in sfp_hwmon_calibrate_bias()
561 static void sfp_hwmon_calibrate_tx_power(struct sfp *sfp, long *value) in sfp_hwmon_calibrate_tx_power()
569 static int sfp_hwmon_read_temp(struct sfp *sfp, int reg, long *value) in sfp_hwmon_read_temp()
582 static int sfp_hwmon_read_vcc(struct sfp *sfp, int reg, long *value) in sfp_hwmon_read_vcc()
595 static int sfp_hwmon_read_bias(struct sfp *sfp, int reg, long *value) in sfp_hwmon_read_bias()
608 static int sfp_hwmon_read_tx_power(struct sfp *sfp, int reg, long *value) in sfp_hwmon_read_tx_power()
621 static int sfp_hwmon_read_rx_power(struct sfp *sfp, int reg, long *value) in sfp_hwmon_read_rx_power()
634 static int sfp_hwmon_temp(struct sfp *sfp, u32 attr, long *value) in sfp_hwmon_temp()
700 static int sfp_hwmon_vcc(struct sfp *sfp, u32 attr, long *value) in sfp_hwmon_vcc()
767 static int sfp_hwmon_bias(struct sfp *sfp, u32 attr, long *value) in sfp_hwmon_bias()
834 static int sfp_hwmon_tx_power(struct sfp *sfp, u32 attr, long *value) in sfp_hwmon_tx_power()
901 static int sfp_hwmon_rx_power(struct sfp *sfp, u32 attr, long *value) in sfp_hwmon_rx_power()
971 struct sfp *sfp = dev_get_drvdata(dev); in sfp_hwmon_read() local
1145 static int sfp_hwmon_insert(struct sfp *sfp) in sfp_hwmon_insert()
1181 static void sfp_hwmon_remove(struct sfp *sfp) in sfp_hwmon_remove()
1190 static int sfp_hwmon_insert(struct sfp *sfp) in sfp_hwmon_insert()
1195 static void sfp_hwmon_remove(struct sfp *sfp) in sfp_hwmon_remove()
1201 static void sfp_module_tx_disable(struct sfp *sfp) in sfp_module_tx_disable()
1209 static void sfp_module_tx_enable(struct sfp *sfp) in sfp_module_tx_enable()
1217 static void sfp_module_tx_fault_reset(struct sfp *sfp) in sfp_module_tx_fault_reset()
1232 static void sfp_sm_set_timer(struct sfp *sfp, unsigned int timeout) in sfp_sm_set_timer()
1241 static void sfp_sm_next(struct sfp *sfp, unsigned int state, in sfp_sm_next()
1248 static void sfp_sm_ins_next(struct sfp *sfp, unsigned int state, in sfp_sm_ins_next()
1255 static void sfp_sm_phy_detach(struct sfp *sfp) in sfp_sm_phy_detach()
1264 static void sfp_sm_probe_phy(struct sfp *sfp) in sfp_sm_probe_phy()
1293 static void sfp_sm_link_up(struct sfp *sfp) in sfp_sm_link_up()
1299 static void sfp_sm_link_down(struct sfp *sfp) in sfp_sm_link_down()
1304 static void sfp_sm_link_check_los(struct sfp *sfp) in sfp_sm_link_check_los()
1322 static bool sfp_los_event_active(struct sfp *sfp, unsigned int event) in sfp_los_event_active()
1330 static bool sfp_los_event_inactive(struct sfp *sfp, unsigned int event) in sfp_los_event_inactive()
1338 static void sfp_sm_fault(struct sfp *sfp, bool warn) in sfp_sm_fault()
1352 static void sfp_sm_mod_init(struct sfp *sfp) in sfp_sm_mod_init()
1378 static int sfp_sm_mod_hpower(struct sfp *sfp) in sfp_sm_mod_hpower()
1440 static int sfp_sm_mod_probe(struct sfp *sfp) in sfp_sm_mod_probe()
1531 static void sfp_sm_mod_remove(struct sfp *sfp) in sfp_sm_mod_remove()
1547 static void sfp_sm_event(struct sfp *sfp, unsigned int event) in sfp_sm_event()
1694 static void sfp_attach(struct sfp *sfp) in sfp_attach()
1701 static void sfp_detach(struct sfp *sfp) in sfp_detach()
1707 static void sfp_start(struct sfp *sfp) in sfp_start()
1712 static void sfp_stop(struct sfp *sfp) in sfp_stop()
1717 static int sfp_module_info(struct sfp *sfp, struct ethtool_modinfo *modinfo) in sfp_module_info()
1732 static int sfp_module_eeprom(struct sfp *sfp, struct ethtool_eeprom *ee, in sfp_module_eeprom()
1777 struct sfp *sfp = container_of(work, struct sfp, timeout.work); in sfp_timeout() local
1784 static void sfp_check_state(struct sfp *sfp) in sfp_check_state()
1819 struct sfp *sfp = data; in sfp_irq() local
1828 struct sfp *sfp = container_of(work, struct sfp, poll.work); in sfp_poll() local
1836 struct sfp *sfp; in sfp_alloc() local
1854 struct sfp *sfp = data; in sfp_cleanup() local
1871 struct sfp *sfp; in sfp_probe() local
2011 struct sfp *sfp = platform_get_drvdata(pdev); in sfp_remove() local
2020 struct sfp *sfp = platform_get_drvdata(pdev); in sfp_shutdown() local