Lines Matching defs:atom
25 #include "atom.h"
2091 struct nv50_atom *atom = nv50_atom(state);
2098 NV_ATOMIC(drm, "commit %d %d\n", atom->lock_core, atom->flush_disable);
2105 if (atom->lock_core)
2122 nv50_head_flush_clr(head, asyh, atom->flush_disable);
2137 nv50_wndw_flush_clr(wndw, interlock, atom->flush_disable, asyw);
2141 list_for_each_entry(outp, &atom->outp, head) {
2166 if (atom->flush_disable) {
2180 list_for_each_entry_safe(outp, outt, &atom->outp, head) {
2272 (!asyw->clr.mask || atom->flush_disable))
2285 !atom->state.legacy_cursor_update)
2291 if (atom->lock_core)
2404 nv50_disp_outp_atomic_add(struct nv50_atom *atom, struct drm_encoder *encoder)
2408 list_for_each_entry(outp, &atom->outp, head) {
2417 list_add(&outp->head, &atom->outp);
2423 nv50_disp_outp_atomic_check_clr(struct nv50_atom *atom,
2434 old_crtc_state = drm_atomic_get_old_crtc_state(&atom->state, crtc);
2435 new_crtc_state = drm_atomic_get_new_crtc_state(&atom->state, crtc);
2437 outp = nv50_disp_outp_atomic_add(atom, encoder);
2443 atom->flush_disable = true;
2446 atom->lock_core = true;
2453 nv50_disp_outp_atomic_check_set(struct nv50_atom *atom,
2464 new_crtc_state = drm_atomic_get_new_crtc_state(&atom->state, crtc);
2466 outp = nv50_disp_outp_atomic_add(atom, encoder);
2471 atom->lock_core = true;
2480 struct nv50_atom *atom = nv50_atom(state);
2517 ret = nv50_disp_outp_atomic_check_clr(atom, old_connector_state);
2521 ret = nv50_disp_outp_atomic_check_set(atom, new_connector_state);
2530 nv50_crc_atomic_check_outp(atom);
2538 struct nv50_atom *atom = nv50_atom(state);
2541 list_for_each_entry_safe(outp, outt, &atom->outp, head) {
2552 struct nv50_atom *atom = nv50_atom(state);
2553 drm_atomic_state_default_release(&atom->state);
2554 kfree(atom);
2560 struct nv50_atom *atom;
2561 if (!(atom = kzalloc(sizeof(*atom), GFP_KERNEL)) ||
2562 drm_atomic_state_init(dev, &atom->state) < 0) {
2563 kfree(atom);
2566 INIT_LIST_HEAD(&atom->outp);
2567 return &atom->state;