search for: defx

Displaying 20 results from an estimated 26 matches for "defx".

Did you mean: defa
2018 Oct 05
0
[PATCH v2] drm/bochs: add edid support.
...ice *dev) static int bochs_connector_get_modes(struct drm_connector *connector) { - int count; + struct bochs_device *bochs = + container_of(connector, struct bochs_device, connector); + int count = 0; - count = drm_add_modes_noedid(connector, 8192, 8192); - drm_set_preferred_mode(connector, defx, defy); + if (bochs->edid) + count = drm_add_edid_modes(connector, bochs->edid); + + if (!count) { + count = drm_add_modes_noedid(connector, 8192, 8192); + drm_set_preferred_mode(connector, defx, defy); + } return count; } @@ -271,6 +278,11 @@ static void bochs_connector_init(struct d...
2018 Oct 02
0
[PATCH v2 2/2] drm/bochs: add edid support.
...ice *dev) static int bochs_connector_get_modes(struct drm_connector *connector) { - int count; + struct bochs_device *bochs = + container_of(connector, struct bochs_device, connector); + int count = 0; - count = drm_add_modes_noedid(connector, 8192, 8192); - drm_set_preferred_mode(connector, defx, defy); + if (bochs->edid) + count = drm_add_edid_modes(connector, bochs->edid); + + if (!count) { + count = drm_add_modes_noedid(connector, 8192, 8192); + drm_set_preferred_mode(connector, defx, defy); + } return count; } @@ -239,6 +246,11 @@ static void bochs_connector_init(struct d...
2018 Oct 02
0
[PATCH v3 2/2] drm/bochs: add edid support.
...ice *dev) static int bochs_connector_get_modes(struct drm_connector *connector) { - int count; + struct bochs_device *bochs = + container_of(connector, struct bochs_device, connector); + int count = 0; - count = drm_add_modes_noedid(connector, 8192, 8192); - drm_set_preferred_mode(connector, defx, defy); + if (bochs->edid) + count = drm_add_edid_modes(connector, bochs->edid); + + if (!count) { + count = drm_add_modes_noedid(connector, 8192, 8192); + drm_set_preferred_mode(connector, defx, defy); + } return count; } @@ -239,6 +246,11 @@ static void bochs_connector_init(struct d...
2018 Dec 19
0
[PATCH 14/14] drm/bochs: move remaining fb bits to kms
...88d0b616 100644 --- a/drivers/gpu/drm/bochs/bochs_kms.c +++ b/drivers/gpu/drm/bochs/bochs_kms.c @@ -9,6 +9,7 @@ #include <drm/drm_atomic_helper.h> #include <drm/drm_plane_helper.h> #include <drm/drm_atomic_uapi.h> +#include <drm/drm_gem_framebuffer_helper.h> static int defx = 1024; static int defy = 768; @@ -256,6 +257,22 @@ static void bochs_connector_init(struct drm_device *dev) } } +static struct drm_framebuffer * +bochs_gem_fb_create(struct drm_device *dev, struct drm_file *file, + const struct drm_mode_fb_cmd2 *mode_cmd) +{ + if (mode_cmd->pixel_for...
2018 Dec 19
0
[PATCH 05/14] drm/bochs: atomic: switch planes to atomic, wire up helpers.
...18b705fb0b..aa3ba0377a 100644 --- a/drivers/gpu/drm/bochs/bochs_kms.c +++ b/drivers/gpu/drm/bochs/bochs_kms.c @@ -6,7 +6,9 @@ */ #include "bochs.h" +#include <drm/drm_atomic_helper.h> #include <drm/drm_plane_helper.h> +#include <drm/drm_atomic_uapi.h> static int defx = 1024; static int defy = 768; @@ -113,7 +115,7 @@ static int bochs_crtc_page_flip(struct drm_crtc *crtc, struct drm_framebuffer *old_fb = crtc->primary->fb; unsigned long irqflags; - crtc->primary->fb = fb; + drm_atomic_set_fb_for_plane(crtc->primary->state, fb); bochs_c...
2019 Jun 30
2
[PATCH v1 31/33] drm/bochs: drop use of drmP.h
...; + #include <drm/drm_atomic_helper.h> -#include <drm/drm_plane_helper.h> -#include <drm/drm_atomic_uapi.h> #include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_probe_helper.h> +#include <drm/drm_vblank.h> + +#include "bochs.h" static int defx = 1024; static int defy = 768; -- 2.20.1
2019 Jun 30
2
[PATCH v1 31/33] drm/bochs: drop use of drmP.h
...; + #include <drm/drm_atomic_helper.h> -#include <drm/drm_plane_helper.h> -#include <drm/drm_atomic_uapi.h> #include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_probe_helper.h> +#include <drm/drm_vblank.h> + +#include "bochs.h" static int defx = 1024; static int defy = 768; -- 2.20.1
2019 Jan 07
2
[PATCH 7/7] drm: Split out drm_probe_helper.h
...a/drivers/gpu/drm/bochs/bochs_kms.c > > +++ b/drivers/gpu/drm/bochs/bochs_kms.c > > @@ -7,6 +7,7 @@ > > > > #include "bochs.h" > > #include <drm/drm_plane_helper.h> > > +#include <drm/drm_probe_helper.h> > > > > static int defx = 1024; > > static int defy = 768; > > diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511.h b/drivers/gpu/drm/bridge/adv7511/adv7511.h > > index 73d8ccb97742..b235d1633575 100644 > > --- a/drivers/gpu/drm/bridge/adv7511/adv7511.h > > +++ b/drivers/gpu/drm/bridge/adv7...
2018 Dec 10
0
[PATCH 7/7] drm: Split out drm_probe_helper.h
...b/drivers/gpu/drm/bochs/bochs_kms.c index f87c284dd93d..5f1eb69dd167 100644 --- a/drivers/gpu/drm/bochs/bochs_kms.c +++ b/drivers/gpu/drm/bochs/bochs_kms.c @@ -7,6 +7,7 @@ #include "bochs.h" #include <drm/drm_plane_helper.h> +#include <drm/drm_probe_helper.h> static int defx = 1024; static int defy = 768; diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511.h b/drivers/gpu/drm/bridge/adv7511/adv7511.h index 73d8ccb97742..b235d1633575 100644 --- a/drivers/gpu/drm/bridge/adv7511/adv7511.h +++ b/drivers/gpu/drm/bridge/adv7511/adv7511.h @@ -14,7 +14,7 @@ #include <linu...
2018 Dec 10
0
[PATCH 7/7] drm: Split out drm_probe_helper.h
...b/drivers/gpu/drm/bochs/bochs_kms.c index f87c284dd93d..5f1eb69dd167 100644 --- a/drivers/gpu/drm/bochs/bochs_kms.c +++ b/drivers/gpu/drm/bochs/bochs_kms.c @@ -7,6 +7,7 @@ #include "bochs.h" #include <drm/drm_plane_helper.h> +#include <drm/drm_probe_helper.h> static int defx = 1024; static int defy = 768; diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511.h b/drivers/gpu/drm/bridge/adv7511/adv7511.h index 73d8ccb97742..b235d1633575 100644 --- a/drivers/gpu/drm/bridge/adv7511/adv7511.h +++ b/drivers/gpu/drm/bridge/adv7511/adv7511.h @@ -14,7 +14,7 @@ #include <linu...
2018 Dec 10
0
[PATCH 7/7] drm: Split out drm_probe_helper.h
...b/drivers/gpu/drm/bochs/bochs_kms.c index f87c284dd93d..5f1eb69dd167 100644 --- a/drivers/gpu/drm/bochs/bochs_kms.c +++ b/drivers/gpu/drm/bochs/bochs_kms.c @@ -7,6 +7,7 @@ #include "bochs.h" #include <drm/drm_plane_helper.h> +#include <drm/drm_probe_helper.h> static int defx = 1024; static int defy = 768; diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511.h b/drivers/gpu/drm/bridge/adv7511/adv7511.h index 73d8ccb97742..b235d1633575 100644 --- a/drivers/gpu/drm/bridge/adv7511/adv7511.h +++ b/drivers/gpu/drm/bridge/adv7511/adv7511.h @@ -14,7 +14,7 @@ #include <linu...
2018 Dec 29
0
[PATCH 7/7] drm: Split out drm_probe_helper.h
...c284dd93d..5f1eb69dd167 100644 > --- a/drivers/gpu/drm/bochs/bochs_kms.c > +++ b/drivers/gpu/drm/bochs/bochs_kms.c > @@ -7,6 +7,7 @@ > > #include "bochs.h" > #include <drm/drm_plane_helper.h> > +#include <drm/drm_probe_helper.h> > > static int defx = 1024; > static int defy = 768; > diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511.h b/drivers/gpu/drm/bridge/adv7511/adv7511.h > index 73d8ccb97742..b235d1633575 100644 > --- a/drivers/gpu/drm/bridge/adv7511/adv7511.h > +++ b/drivers/gpu/drm/bridge/adv7511/adv7511.h > @@ -14...
2018 Dec 17
2
[PATCH 7/7] drm: Split out drm_probe_helper.h
...b/drivers/gpu/drm/bochs/bochs_kms.c index f87c284dd93d..5f1eb69dd167 100644 --- a/drivers/gpu/drm/bochs/bochs_kms.c +++ b/drivers/gpu/drm/bochs/bochs_kms.c @@ -7,6 +7,7 @@ #include "bochs.h" #include <drm/drm_plane_helper.h> +#include <drm/drm_probe_helper.h> static int defx = 1024; static int defy = 768; diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511.h b/drivers/gpu/drm/bridge/adv7511/adv7511.h index 73d8ccb97742..d52ffab41eb4 100644 --- a/drivers/gpu/drm/bridge/adv7511/adv7511.h +++ b/drivers/gpu/drm/bridge/adv7511/adv7511.h @@ -14,8 +14,11 @@ #include <lin...
2018 Dec 17
2
[PATCH 7/7] drm: Split out drm_probe_helper.h
...b/drivers/gpu/drm/bochs/bochs_kms.c index f87c284dd93d..5f1eb69dd167 100644 --- a/drivers/gpu/drm/bochs/bochs_kms.c +++ b/drivers/gpu/drm/bochs/bochs_kms.c @@ -7,6 +7,7 @@ #include "bochs.h" #include <drm/drm_plane_helper.h> +#include <drm/drm_probe_helper.h> static int defx = 1024; static int defy = 768; diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511.h b/drivers/gpu/drm/bridge/adv7511/adv7511.h index 73d8ccb97742..d52ffab41eb4 100644 --- a/drivers/gpu/drm/bridge/adv7511/adv7511.h +++ b/drivers/gpu/drm/bridge/adv7511/adv7511.h @@ -14,8 +14,11 @@ #include <lin...
2018 Dec 17
2
[PATCH 7/7] drm: Split out drm_probe_helper.h
...b/drivers/gpu/drm/bochs/bochs_kms.c index f87c284dd93d..5f1eb69dd167 100644 --- a/drivers/gpu/drm/bochs/bochs_kms.c +++ b/drivers/gpu/drm/bochs/bochs_kms.c @@ -7,6 +7,7 @@ #include "bochs.h" #include <drm/drm_plane_helper.h> +#include <drm/drm_probe_helper.h> static int defx = 1024; static int defy = 768; diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511.h b/drivers/gpu/drm/bridge/adv7511/adv7511.h index 73d8ccb97742..d52ffab41eb4 100644 --- a/drivers/gpu/drm/bridge/adv7511/adv7511.h +++ b/drivers/gpu/drm/bridge/adv7511/adv7511.h @@ -14,8 +14,11 @@ #include <lin...
2019 Jan 07
0
[PATCH 7/7] drm: Split out drm_probe_helper.h
...> > +++ b/drivers/gpu/drm/bochs/bochs_kms.c > > > @@ -7,6 +7,7 @@ > > > > > > #include "bochs.h" > > > #include <drm/drm_plane_helper.h> > > > +#include <drm/drm_probe_helper.h> > > > > > > static int defx = 1024; > > > static int defy = 768; > > > diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511.h b/drivers/gpu/drm/bridge/adv7511/adv7511.h > > > index 73d8ccb97742..b235d1633575 100644 > > > --- a/drivers/gpu/drm/bridge/adv7511/adv7511.h > > > +++ b/dr...
2018 Dec 18
1
[Intel-gfx] [PATCH 7/7] drm: Split out drm_probe_helper.h
...--- a/drivers/gpu/drm/bochs/bochs_kms.c > > +++ b/drivers/gpu/drm/bochs/bochs_kms.c > > @@ -7,6 +7,7 @@ > > > > #include "bochs.h" > > #include <drm/drm_plane_helper.h> > > +#include <drm/drm_probe_helper.h> > > > > static int defx = 1024; > > static int defy = 768; > > diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511.h b/drivers/gpu/drm/bridge/adv7511/adv7511.h > > index 73d8ccb97742..d52ffab41eb4 100644 > > --- a/drivers/gpu/drm/bridge/adv7511/adv7511.h > > +++ b/drivers/gpu/drm/bridge/adv7...
2018 Dec 17
0
[Intel-gfx] [PATCH 7/7] drm: Split out drm_probe_helper.h
...c284dd93d..5f1eb69dd167 100644 > --- a/drivers/gpu/drm/bochs/bochs_kms.c > +++ b/drivers/gpu/drm/bochs/bochs_kms.c > @@ -7,6 +7,7 @@ > > #include "bochs.h" > #include <drm/drm_plane_helper.h> > +#include <drm/drm_probe_helper.h> > > static int defx = 1024; > static int defy = 768; > diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511.h b/drivers/gpu/drm/bridge/adv7511/adv7511.h > index 73d8ccb97742..d52ffab41eb4 100644 > --- a/drivers/gpu/drm/bridge/adv7511/adv7511.h > +++ b/drivers/gpu/drm/bridge/adv7511/adv7511.h > @@ -14...
2019 Jan 16
1
[PATCH] drm: Split out drm_probe_helper.h
...e3631fb 100644 --- a/drivers/gpu/drm/bochs/bochs_kms.c +++ b/drivers/gpu/drm/bochs/bochs_kms.c @@ -10,6 +10,7 @@ #include <drm/drm_plane_helper.h> #include <drm/drm_atomic_uapi.h> #include <drm/drm_gem_framebuffer_helper.h> +#include <drm/drm_probe_helper.h> static int defx = 1024; static int defy = 768; diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511.h b/drivers/gpu/drm/bridge/adv7511/adv7511.h index 73d8ccb97742..4ff7e3bbfce5 100644 --- a/drivers/gpu/drm/bridge/adv7511/adv7511.h +++ b/drivers/gpu/drm/bridge/adv7511/adv7511.h @@ -14,8 +14,10 @@ #include <lin...
2018 Dec 10
5
[PATCH 7/7] drm: Split out drm_probe_helper.h
...b/drivers/gpu/drm/bochs/bochs_kms.c index f87c284dd93d..5f1eb69dd167 100644 --- a/drivers/gpu/drm/bochs/bochs_kms.c +++ b/drivers/gpu/drm/bochs/bochs_kms.c @@ -7,6 +7,7 @@ #include "bochs.h" #include <drm/drm_plane_helper.h> +#include <drm/drm_probe_helper.h> static int defx = 1024; static int defy = 768; diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511.h b/drivers/gpu/drm/bridge/adv7511/adv7511.h index 73d8ccb97742..b235d1633575 100644 --- a/drivers/gpu/drm/bridge/adv7511/adv7511.h +++ b/drivers/gpu/drm/bridge/adv7511/adv7511.h @@ -14,7 +14,7 @@ #include <linu...