Lines Matching defs:atom
25 #include "atom.h"
2004 struct nv50_atom *atom = nv50_atom(state);
2011 NV_ATOMIC(drm, "commit %d %d\n", atom->lock_core, atom->flush_disable);
2019 if (atom->lock_core)
2036 nv50_head_flush_clr(head, asyh, atom->flush_disable);
2051 nv50_wndw_flush_clr(wndw, interlock, atom->flush_disable, asyw);
2055 list_for_each_entry(outp, &atom->outp, head) {
2080 if (atom->flush_disable) {
2094 list_for_each_entry_safe(outp, outt, &atom->outp, head) {
2186 (!asyw->clr.mask || atom->flush_disable))
2199 !atom->state.legacy_cursor_update)
2205 if (atom->lock_core)
2319 nv50_disp_outp_atomic_add(struct nv50_atom *atom, struct drm_encoder *encoder)
2323 list_for_each_entry(outp, &atom->outp, head) {
2332 list_add(&outp->head, &atom->outp);
2338 nv50_disp_outp_atomic_check_clr(struct nv50_atom *atom,
2349 old_crtc_state = drm_atomic_get_old_crtc_state(&atom->state, crtc);
2350 new_crtc_state = drm_atomic_get_new_crtc_state(&atom->state, crtc);
2352 outp = nv50_disp_outp_atomic_add(atom, encoder);
2358 atom->flush_disable = true;
2361 atom->lock_core = true;
2368 nv50_disp_outp_atomic_check_set(struct nv50_atom *atom,
2379 new_crtc_state = drm_atomic_get_new_crtc_state(&atom->state, crtc);
2381 outp = nv50_disp_outp_atomic_add(atom, encoder);
2386 atom->lock_core = true;
2395 struct nv50_atom *atom = nv50_atom(state);
2432 ret = nv50_disp_outp_atomic_check_clr(atom, old_connector_state);
2436 ret = nv50_disp_outp_atomic_check_set(atom, new_connector_state);
2445 nv50_crc_atomic_check_outp(atom);
2453 struct nv50_atom *atom = nv50_atom(state);
2456 list_for_each_entry_safe(outp, outt, &atom->outp, head) {
2467 struct nv50_atom *atom = nv50_atom(state);
2468 drm_atomic_state_default_release(&atom->state);
2469 kfree(atom);
2475 struct nv50_atom *atom;
2476 if (!(atom = kzalloc(sizeof(*atom), GFP_KERNEL)) ||
2477 drm_atomic_state_init(dev, &atom->state) < 0) {
2478 kfree(atom);
2481 INIT_LIST_HEAD(&atom->outp);
2482 return &atom->state;