Lines Matching defs:ops
2657 const struct marvell_hwmon_ops *ops = to_marvell_hwmon_ops(phydev);
2662 if (ops->get_temp)
2663 err = ops->get_temp(phydev, temp);
2666 if (ops->get_temp_critical)
2667 err = ops->get_temp_critical(phydev, temp);
2670 if (ops->get_temp_alarm)
2671 err = ops->get_temp_alarm(phydev, temp);
2682 const struct marvell_hwmon_ops *ops = to_marvell_hwmon_ops(phydev);
2687 if (ops->set_temp_critical)
2688 err = ops->set_temp_critical(phydev, temp);
2700 const struct marvell_hwmon_ops *ops = to_marvell_hwmon_ops(phydev);
2707 return ops->get_temp ? 0444 : 0;
2709 return ops->get_temp_alarm ? 0444 : 0;
2711 return (ops->get_temp_critical ? 0444 : 0) |
2712 (ops->set_temp_critical ? 0200 : 0);
2755 .ops = &marvell_hwmon_hwmon_ops,
2781 const struct marvell_hwmon_ops *ops = to_marvell_hwmon_ops(phydev);
2786 if (!ops)
2798 if (ops->config)
2799 err = ops->config(phydev);