Lines Matching defs:sfp
215 struct sfp { struct
219 struct sfp_bus *sfp_bus; argument
225 unsigned int (*get_state)(struct sfp *); argument
226 void (*set_state)(struct sfp *, unsigned int); argument
227 int (*read)(struct sfp *, bool, u8, void *, size_t); argument
228 int (*write)(struct sfp *, bool, u8, void *, size_t); argument
249 struct sfp_eeprom_id id; argument
255 struct sfp_diag diag; argument
264 static bool sff_module_supported(const struct sfp_eeprom_id *id) in sff_module_supported() argument
309 static unsigned int sfp_gpio_get_state(struct sfp *sfp) in sfp_gpio_get_state()
325 static unsigned int sff_gpio_get_state(struct sfp *sfp) in sff_gpio_get_state()
330 static void sfp_gpio_set_state(struct sfp *sfp, unsigned int state) in sfp_gpio_set_state()
349 static int sfp_i2c_read(struct sfp *sfp, bool a2, u8 dev_addr, void *buf, in sfp_i2c_read()
389 static int sfp_i2c_write(struct sfp *sfp, bool a2, u8 dev_addr, void *buf, in sfp_i2c_write()
416 static int sfp_i2c_configure(struct sfp *sfp, struct i2c_adapter *i2c) in sfp_i2c_configure()
447 static int sfp_read(struct sfp *sfp, bool a2, u8 addr, void *buf, size_t len) in sfp_read()
452 static int sfp_write(struct sfp *sfp, bool a2, u8 addr, void *buf, size_t len) in sfp_write()
457 static unsigned int sfp_soft_get_state(struct sfp *sfp) in sfp_soft_get_state()
480 static void sfp_soft_set_state(struct sfp *sfp, unsigned int state) in sfp_soft_set_state()
495 static void sfp_soft_start_poll(struct sfp *sfp) in sfp_soft_start_poll()
515 static void sfp_soft_stop_poll(struct sfp *sfp) in sfp_soft_stop_poll()
520 static unsigned int sfp_get_state(struct sfp *sfp) in sfp_get_state()
531 static void sfp_set_state(struct sfp *sfp, unsigned int state) in sfp_set_state()
556 const struct sfp *sfp = data; in sfp_hwmon_is_visible() local
649 static int sfp_hwmon_read_sensor(struct sfp *sfp, int reg, long *value) in sfp_hwmon_read_sensor()
668 static void sfp_hwmon_calibrate(struct sfp *sfp, unsigned int slope, int offset, in sfp_hwmon_calibrate()
675 static void sfp_hwmon_calibrate_temp(struct sfp *sfp, long *value) in sfp_hwmon_calibrate_temp()
686 static void sfp_hwmon_calibrate_vcc(struct sfp *sfp, long *value) in sfp_hwmon_calibrate_vcc()
694 static void sfp_hwmon_calibrate_bias(struct sfp *sfp, long *value) in sfp_hwmon_calibrate_bias()
702 static void sfp_hwmon_calibrate_tx_power(struct sfp *sfp, long *value) in sfp_hwmon_calibrate_tx_power()
710 static int sfp_hwmon_read_temp(struct sfp *sfp, int reg, long *value) in sfp_hwmon_read_temp()
723 static int sfp_hwmon_read_vcc(struct sfp *sfp, int reg, long *value) in sfp_hwmon_read_vcc()
736 static int sfp_hwmon_read_bias(struct sfp *sfp, int reg, long *value) in sfp_hwmon_read_bias()
749 static int sfp_hwmon_read_tx_power(struct sfp *sfp, int reg, long *value) in sfp_hwmon_read_tx_power()
762 static int sfp_hwmon_read_rx_power(struct sfp *sfp, int reg, long *value) in sfp_hwmon_read_rx_power()
775 static int sfp_hwmon_temp(struct sfp *sfp, u32 attr, long *value) in sfp_hwmon_temp()
841 static int sfp_hwmon_vcc(struct sfp *sfp, u32 attr, long *value) in sfp_hwmon_vcc()
908 static int sfp_hwmon_bias(struct sfp *sfp, u32 attr, long *value) in sfp_hwmon_bias()
975 static int sfp_hwmon_tx_power(struct sfp *sfp, u32 attr, long *value) in sfp_hwmon_tx_power()
1042 static int sfp_hwmon_rx_power(struct sfp *sfp, u32 attr, long *value) in sfp_hwmon_rx_power()
1112 struct sfp *sfp = dev_get_drvdata(dev); in sfp_hwmon_read() local
1288 struct sfp *sfp = container_of(work, struct sfp, hwmon_probe.work); in sfp_hwmon_probe() local
1335 static int sfp_hwmon_insert(struct sfp *sfp) in sfp_hwmon_insert()
1355 static void sfp_hwmon_remove(struct sfp *sfp) in sfp_hwmon_remove()
1365 static int sfp_hwmon_init(struct sfp *sfp) in sfp_hwmon_init()
1372 static void sfp_hwmon_exit(struct sfp *sfp) in sfp_hwmon_exit()
1377 static int sfp_hwmon_insert(struct sfp *sfp) in sfp_hwmon_insert()
1382 static void sfp_hwmon_remove(struct sfp *sfp) in sfp_hwmon_remove()
1386 static int sfp_hwmon_init(struct sfp *sfp) in sfp_hwmon_init()
1391 static void sfp_hwmon_exit(struct sfp *sfp) in sfp_hwmon_exit()
1397 static void sfp_module_tx_disable(struct sfp *sfp) in sfp_module_tx_disable()
1405 static void sfp_module_tx_enable(struct sfp *sfp) in sfp_module_tx_enable()
1413 static void sfp_module_tx_fault_reset(struct sfp *sfp) in sfp_module_tx_fault_reset()
1428 static void sfp_sm_set_timer(struct sfp *sfp, unsigned int timeout) in sfp_sm_set_timer()
1437 static void sfp_sm_next(struct sfp *sfp, unsigned int state, in sfp_sm_next()
1444 static void sfp_sm_mod_next(struct sfp *sfp, unsigned int state, in sfp_sm_mod_next()
1451 static void sfp_sm_phy_detach(struct sfp *sfp) in sfp_sm_phy_detach()
1459 static int sfp_sm_probe_phy(struct sfp *sfp, bool is_c45) in sfp_sm_probe_phy()
1492 static void sfp_sm_link_up(struct sfp *sfp) in sfp_sm_link_up()
1498 static void sfp_sm_link_down(struct sfp *sfp) in sfp_sm_link_down()
1503 static void sfp_sm_link_check_los(struct sfp *sfp) in sfp_sm_link_check_los()
1525 static bool sfp_los_event_active(struct sfp *sfp, unsigned int event) in sfp_los_event_active()
1535 static bool sfp_los_event_inactive(struct sfp *sfp, unsigned int event) in sfp_los_event_inactive()
1545 static void sfp_sm_fault(struct sfp *sfp, unsigned int next_state, bool warn) in sfp_sm_fault()
1570 static int sfp_sm_probe_for_phy(struct sfp *sfp) in sfp_sm_probe_for_phy()
1590 static int sfp_module_parse_power(struct sfp *sfp) in sfp_module_parse_power()
1653 static int sfp_sm_mod_hpower(struct sfp *sfp, bool enable) in sfp_sm_mod_hpower()
1701 static bool sfp_id_needs_byte_io(struct sfp *sfp, void *buf, size_t len) in sfp_id_needs_byte_io()
1716 static int sfp_cotsworks_fixup_check(struct sfp *sfp, struct sfp_eeprom_id *id) in sfp_cotsworks_fixup_check()
1748 static int sfp_sm_mod_probe(struct sfp *sfp, bool report) in sfp_sm_mod_probe()
1906 static void sfp_sm_mod_remove(struct sfp *sfp) in sfp_sm_mod_remove()
1920 static void sfp_sm_device(struct sfp *sfp, unsigned int event) in sfp_sm_device()
1947 static void sfp_sm_module(struct sfp *sfp, unsigned int event) in sfp_sm_module()
2057 static void sfp_sm_main(struct sfp *sfp, unsigned int event) in sfp_sm_main()
2214 static void sfp_sm_event(struct sfp *sfp, unsigned int event) in sfp_sm_event()
2236 static void sfp_attach(struct sfp *sfp) in sfp_attach()
2241 static void sfp_detach(struct sfp *sfp) in sfp_detach()
2246 static void sfp_start(struct sfp *sfp) in sfp_start()
2251 static void sfp_stop(struct sfp *sfp) in sfp_stop()
2256 static int sfp_module_info(struct sfp *sfp, struct ethtool_modinfo *modinfo) in sfp_module_info()
2271 static int sfp_module_eeprom(struct sfp *sfp, struct ethtool_eeprom *ee, in sfp_module_eeprom()
2316 struct sfp *sfp = container_of(work, struct sfp, timeout.work); in sfp_timeout() local
2323 static void sfp_check_state(struct sfp *sfp) in sfp_check_state()
2361 struct sfp *sfp = data; in sfp_irq() local
2370 struct sfp *sfp = container_of(work, struct sfp, poll.work); in sfp_poll() local
2381 struct sfp *sfp; in sfp_alloc() local
2401 struct sfp *sfp = data; in sfp_cleanup() local
2421 struct sfp *sfp; in sfp_probe() local
2573 struct sfp *sfp = platform_get_drvdata(pdev); in sfp_remove() local
2586 struct sfp *sfp = platform_get_drvdata(pdev); in sfp_shutdown() local