Lines Matching refs:ref
233 struct dpll_pin_ref *ref, in dpll_msg_add_pin_prio() argument
236 const struct dpll_pin_ops *ops = dpll_pin_ops(ref); in dpll_msg_add_pin_prio()
237 struct dpll_device *dpll = ref->dpll; in dpll_msg_add_pin_prio()
255 struct dpll_pin_ref *ref, in dpll_msg_add_pin_on_dpll_state() argument
258 const struct dpll_pin_ops *ops = dpll_pin_ops(ref); in dpll_msg_add_pin_on_dpll_state()
259 struct dpll_device *dpll = ref->dpll; in dpll_msg_add_pin_on_dpll_state()
277 struct dpll_pin_ref *ref, in dpll_msg_add_pin_direction() argument
280 const struct dpll_pin_ops *ops = dpll_pin_ops(ref); in dpll_msg_add_pin_direction()
281 struct dpll_device *dpll = ref->dpll; in dpll_msg_add_pin_direction()
297 struct dpll_pin_ref *ref, in dpll_msg_add_pin_phase_adjust() argument
300 const struct dpll_pin_ops *ops = dpll_pin_ops(ref); in dpll_msg_add_pin_phase_adjust()
301 struct dpll_device *dpll = ref->dpll; in dpll_msg_add_pin_phase_adjust()
320 struct dpll_pin_ref *ref, in dpll_msg_add_phase_offset() argument
323 const struct dpll_pin_ops *ops = dpll_pin_ops(ref); in dpll_msg_add_phase_offset()
324 struct dpll_device *dpll = ref->dpll; in dpll_msg_add_phase_offset()
343 struct dpll_pin_ref *ref, in dpll_msg_add_ffo() argument
346 const struct dpll_pin_ops *ops = dpll_pin_ops(ref); in dpll_msg_add_ffo()
347 struct dpll_device *dpll = ref->dpll; in dpll_msg_add_ffo()
365 struct dpll_pin_ref *ref, struct netlink_ext_ack *extack) in dpll_msg_add_pin_freq() argument
367 const struct dpll_pin_ops *ops = dpll_pin_ops(ref); in dpll_msg_add_pin_freq()
368 struct dpll_device *dpll = ref->dpll; in dpll_msg_add_pin_freq()
406 struct dpll_pin_ref *ref, struct netlink_ext_ack *extack) in dpll_msg_add_pin_esync() argument
408 const struct dpll_pin_ops *ops = dpll_pin_ops(ref); in dpll_msg_add_pin_esync()
409 struct dpll_device *dpll = ref->dpll; in dpll_msg_add_pin_esync()
451 struct dpll_pin_ref *ref, in dpll_msg_add_pin_ref_sync() argument
454 const struct dpll_pin_ops *ops = dpll_pin_ops(ref); in dpll_msg_add_pin_ref_sync()
455 struct dpll_device *dpll = ref->dpll; in dpll_msg_add_pin_ref_sync()
507 struct dpll_pin_ref *ref; in dpll_msg_add_pin_parents() local
513 xa_for_each(&pin->parent_refs, index, ref) { in dpll_msg_add_pin_parents()
514 const struct dpll_pin_ops *ops = dpll_pin_ops(ref); in dpll_msg_add_pin_parents()
517 ppin = ref->pin; in dpll_msg_add_pin_parents()
548 struct dpll_pin_ref *ref; in dpll_msg_add_pin_dplls() local
553 xa_for_each(&pin->dpll_refs, index, ref) { in dpll_msg_add_pin_dplls()
557 ret = dpll_msg_add_dev_parent_handle(msg, ref->dpll->id); in dpll_msg_add_pin_dplls()
560 ret = dpll_msg_add_pin_on_dpll_state(msg, pin, ref, extack); in dpll_msg_add_pin_dplls()
563 ret = dpll_msg_add_pin_prio(msg, pin, ref, extack); in dpll_msg_add_pin_dplls()
566 ret = dpll_msg_add_pin_direction(msg, pin, ref, extack); in dpll_msg_add_pin_dplls()
569 ret = dpll_msg_add_phase_offset(msg, pin, ref, extack); in dpll_msg_add_pin_dplls()
587 struct dpll_pin_ref *ref; in dpll_cmd_pin_get_one() local
590 ref = dpll_xa_ref_dpll_first(&pin->dpll_refs); in dpll_cmd_pin_get_one()
591 ASSERT_NOT_NULL(ref); in dpll_cmd_pin_get_one()
616 ret = dpll_msg_add_pin_freq(msg, pin, ref, extack); in dpll_cmd_pin_get_one()
625 ret = dpll_msg_add_pin_phase_adjust(msg, pin, ref, extack); in dpll_cmd_pin_get_one()
628 ret = dpll_msg_add_ffo(msg, pin, ref, extack); in dpll_cmd_pin_get_one()
631 ret = dpll_msg_add_pin_esync(msg, pin, ref, extack); in dpll_cmd_pin_get_one()
635 ret = dpll_msg_add_pin_ref_sync(msg, pin, ref, extack); in dpll_cmd_pin_get_one()
641 ret = dpll_msg_add_pin_parents(msg, pin, ref, extack); in dpll_cmd_pin_get_one()
847 struct dpll_pin_ref *ref, *failed; in dpll_pin_freq_set() local
858 xa_for_each(&pin->dpll_refs, i, ref) { in dpll_pin_freq_set()
859 ops = dpll_pin_ops(ref); in dpll_pin_freq_set()
865 ref = dpll_xa_ref_dpll_first(&pin->dpll_refs); in dpll_pin_freq_set()
866 ops = dpll_pin_ops(ref); in dpll_pin_freq_set()
867 dpll = ref->dpll; in dpll_pin_freq_set()
877 xa_for_each(&pin->dpll_refs, i, ref) { in dpll_pin_freq_set()
878 ops = dpll_pin_ops(ref); in dpll_pin_freq_set()
879 dpll = ref->dpll; in dpll_pin_freq_set()
883 failed = ref; in dpll_pin_freq_set()
894 xa_for_each(&pin->dpll_refs, i, ref) { in dpll_pin_freq_set()
895 if (ref == failed) in dpll_pin_freq_set()
897 ops = dpll_pin_ops(ref); in dpll_pin_freq_set()
898 dpll = ref->dpll; in dpll_pin_freq_set()
910 struct dpll_pin_ref *ref, *failed; in dpll_pin_esync_set() local
919 xa_for_each(&pin->dpll_refs, i, ref) { in dpll_pin_esync_set()
920 ops = dpll_pin_ops(ref); in dpll_pin_esync_set()
927 ref = dpll_xa_ref_dpll_first(&pin->dpll_refs); in dpll_pin_esync_set()
928 ops = dpll_pin_ops(ref); in dpll_pin_esync_set()
929 dpll = ref->dpll; in dpll_pin_esync_set()
947 xa_for_each(&pin->dpll_refs, i, ref) { in dpll_pin_esync_set()
950 ops = dpll_pin_ops(ref); in dpll_pin_esync_set()
951 dpll = ref->dpll; in dpll_pin_esync_set()
956 failed = ref; in dpll_pin_esync_set()
968 xa_for_each(&pin->dpll_refs, i, ref) { in dpll_pin_esync_set()
971 if (ref == failed) in dpll_pin_esync_set()
973 ops = dpll_pin_ops(ref); in dpll_pin_esync_set()
974 dpll = ref->dpll; in dpll_pin_esync_set()
990 struct dpll_pin_ref *ref, *failed; in dpll_pin_ref_sync_state_set() local
1008 ref = dpll_xa_ref_dpll_first(&pin->dpll_refs); in dpll_pin_ref_sync_state_set()
1009 ASSERT_NOT_NULL(ref); in dpll_pin_ref_sync_state_set()
1010 ops = dpll_pin_ops(ref); in dpll_pin_ref_sync_state_set()
1015 dpll = ref->dpll; in dpll_pin_ref_sync_state_set()
1026 xa_for_each(&pin->dpll_refs, i, ref) { in dpll_pin_ref_sync_state_set()
1027 ops = dpll_pin_ops(ref); in dpll_pin_ref_sync_state_set()
1028 dpll = ref->dpll; in dpll_pin_ref_sync_state_set()
1035 failed = ref; in dpll_pin_ref_sync_state_set()
1046 xa_for_each(&pin->dpll_refs, i, ref) { in dpll_pin_ref_sync_state_set()
1047 if (ref == failed) in dpll_pin_ref_sync_state_set()
1049 ops = dpll_pin_ops(ref); in dpll_pin_ref_sync_state_set()
1050 dpll = ref->dpll; in dpll_pin_ref_sync_state_set()
1131 struct dpll_pin_ref *ref; in dpll_pin_state_set() local
1139 ref = xa_load(&pin->dpll_refs, dpll->id); in dpll_pin_state_set()
1140 ASSERT_NOT_NULL(ref); in dpll_pin_state_set()
1141 ops = dpll_pin_ops(ref); in dpll_pin_state_set()
1158 struct dpll_pin_ref *ref; in dpll_pin_prio_set() local
1166 ref = xa_load(&pin->dpll_refs, dpll->id); in dpll_pin_prio_set()
1167 ASSERT_NOT_NULL(ref); in dpll_pin_prio_set()
1168 ops = dpll_pin_ops(ref); in dpll_pin_prio_set()
1186 struct dpll_pin_ref *ref; in dpll_pin_direction_set() local
1194 ref = xa_load(&pin->dpll_refs, dpll->id); in dpll_pin_direction_set()
1195 ASSERT_NOT_NULL(ref); in dpll_pin_direction_set()
1196 ops = dpll_pin_ops(ref); in dpll_pin_direction_set()
1212 struct dpll_pin_ref *ref, *failed; in dpll_pin_phase_adj_set() local
1227 xa_for_each(&pin->dpll_refs, i, ref) { in dpll_pin_phase_adj_set()
1228 ops = dpll_pin_ops(ref); in dpll_pin_phase_adj_set()
1234 ref = dpll_xa_ref_dpll_first(&pin->dpll_refs); in dpll_pin_phase_adj_set()
1235 ops = dpll_pin_ops(ref); in dpll_pin_phase_adj_set()
1236 dpll = ref->dpll; in dpll_pin_phase_adj_set()
1247 xa_for_each(&pin->dpll_refs, i, ref) { in dpll_pin_phase_adj_set()
1248 ops = dpll_pin_ops(ref); in dpll_pin_phase_adj_set()
1249 dpll = ref->dpll; in dpll_pin_phase_adj_set()
1255 failed = ref; in dpll_pin_phase_adj_set()
1267 xa_for_each(&pin->dpll_refs, i, ref) { in dpll_pin_phase_adj_set()
1268 if (ref == failed) in dpll_pin_phase_adj_set()
1270 ops = dpll_pin_ops(ref); in dpll_pin_phase_adj_set()
1271 dpll = ref->dpll; in dpll_pin_phase_adj_set()
1287 struct dpll_pin_ref *ref; in dpll_pin_parent_device_set() local
1304 ref = xa_load(&pin->dpll_refs, dpll->id); in dpll_pin_parent_device_set()
1305 if (!ref) { in dpll_pin_parent_device_set()