• Home
  • Raw
  • Download

Lines Matching refs:ops

267 	const struct sfp_upstream_ops *ops = bus->upstream_ops;  in sfp_register_bus()  local
270 if (ops) { in sfp_register_bus()
271 if (ops->link_down) in sfp_register_bus()
272 ops->link_down(bus->upstream); in sfp_register_bus()
273 if (ops->connect_phy && bus->phydev) { in sfp_register_bus()
274 ret = ops->connect_phy(bus->upstream, bus->phydev); in sfp_register_bus()
288 const struct sfp_upstream_ops *ops = bus->upstream_ops; in sfp_unregister_bus() local
294 if (bus->phydev && ops && ops->disconnect_phy) in sfp_unregister_bus()
295 ops->disconnect_phy(bus->upstream); in sfp_unregister_bus()
336 const struct sfp_upstream_ops *ops) in sfp_register_upstream() argument
343 bus->upstream_ops = ops; in sfp_register_upstream()
378 const struct sfp_upstream_ops *ops = sfp_get_upstream_ops(bus); in sfp_add_phy() local
381 if (ops && ops->connect_phy) in sfp_add_phy()
382 ret = ops->connect_phy(bus->upstream, phydev); in sfp_add_phy()
393 const struct sfp_upstream_ops *ops = sfp_get_upstream_ops(bus); in sfp_remove_phy() local
395 if (ops && ops->disconnect_phy) in sfp_remove_phy()
396 ops->disconnect_phy(bus->upstream); in sfp_remove_phy()
404 const struct sfp_upstream_ops *ops = sfp_get_upstream_ops(bus); in sfp_link_up() local
406 if (ops && ops->link_up) in sfp_link_up()
407 ops->link_up(bus->upstream); in sfp_link_up()
413 const struct sfp_upstream_ops *ops = sfp_get_upstream_ops(bus); in sfp_link_down() local
415 if (ops && ops->link_down) in sfp_link_down()
416 ops->link_down(bus->upstream); in sfp_link_down()
422 const struct sfp_upstream_ops *ops = sfp_get_upstream_ops(bus); in sfp_module_insert() local
425 if (ops && ops->module_insert) in sfp_module_insert()
426 ret = ops->module_insert(bus->upstream, id); in sfp_module_insert()
434 const struct sfp_upstream_ops *ops = sfp_get_upstream_ops(bus); in sfp_module_remove() local
436 if (ops && ops->module_remove) in sfp_module_remove()
437 ops->module_remove(bus->upstream); in sfp_module_remove()
442 const struct sfp_socket_ops *ops) in sfp_register_socket() argument
451 bus->socket_ops = ops; in sfp_register_socket()