summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux-core/nv50_connector.c6
-rw-r--r--linux-core/nv50_connector.h2
-rw-r--r--linux-core/nv50_crtc.c4
-rw-r--r--linux-core/nv50_crtc.h2
-rw-r--r--linux-core/nv50_dac.c4
-rw-r--r--linux-core/nv50_display.c10
-rw-r--r--linux-core/nv50_kms_wrapper.c22
-rw-r--r--linux-core/nv50_output.h2
-rw-r--r--linux-core/nv50_sor.c4
-rw-r--r--shared-core/nouveau_irq.c4
-rw-r--r--shared-core/nouveau_mem.c2
11 files changed, 31 insertions, 31 deletions
diff --git a/linux-core/nv50_connector.c b/linux-core/nv50_connector.c
index a13f8e59..ac5194c0 100644
--- a/linux-core/nv50_connector.c
+++ b/linux-core/nv50_connector.c
@@ -60,7 +60,7 @@ static struct nv50_output *nv50_connector_to_output(struct nv50_connector *conne
if (!digital_possible && digital)
return NULL;
- list_for_each_entry(output, &display->outputs, head) {
+ list_for_each_entry(output, &display->outputs, item) {
if (connector->bus != output->bus)
continue;
if (digital && output->type == OUTPUT_TMDS)
@@ -122,7 +122,7 @@ static int nv50_connector_destroy(struct nv50_connector *connector)
if (!display || !connector)
return -EINVAL;
- list_del(&connector->head);
+ list_del(&connector->item);
if (connector->i2c_chan)
nv50_i2c_channel_destroy(connector->i2c_chan);
@@ -157,7 +157,7 @@ int nv50_connector_create(struct drm_device *dev, int bus, int i2c_index, int ty
if (type == CONNECTOR_UNKNOWN)
goto out;
- list_add_tail(&connector->head, &display->connectors);
+ list_add_tail(&connector->item, &display->connectors);
connector->bus = bus;
connector->type = type;
diff --git a/linux-core/nv50_connector.h b/linux-core/nv50_connector.h
index c70d6ef4..484227a0 100644
--- a/linux-core/nv50_connector.h
+++ b/linux-core/nv50_connector.h
@@ -38,7 +38,7 @@
#define CONNECTOR_TV 5
struct nv50_connector {
- struct list_head head;
+ struct list_head item;
struct drm_device *dev;
int type;
diff --git a/linux-core/nv50_crtc.c b/linux-core/nv50_crtc.c
index af2f03d8..fd2ad38a 100644
--- a/linux-core/nv50_crtc.c
+++ b/linux-core/nv50_crtc.c
@@ -445,7 +445,7 @@ static int nv50_crtc_destroy(struct nv50_crtc *crtc)
if (!display || !crtc)
return -EINVAL;
- list_del(&crtc->head);
+ list_del(&crtc->item);
nv50_fb_destroy(crtc);
nv50_lut_destroy(crtc);
@@ -484,7 +484,7 @@ int nv50_crtc_create(struct drm_device *dev, int index)
goto out;
}
- list_add_tail(&crtc->head, &display->crtcs);
+ list_add_tail(&crtc->item, &display->crtcs);
crtc->index = index;
diff --git a/linux-core/nv50_crtc.h b/linux-core/nv50_crtc.h
index b63c5a22..de9a33f2 100644
--- a/linux-core/nv50_crtc.h
+++ b/linux-core/nv50_crtc.h
@@ -34,7 +34,7 @@ struct nv50_lut;
struct nv50_fb;
struct nv50_crtc {
- struct list_head head;
+ struct list_head item;
struct drm_device *dev;
int index;
diff --git a/linux-core/nv50_dac.c b/linux-core/nv50_dac.c
index f51ecf9d..34b54902 100644
--- a/linux-core/nv50_dac.c
+++ b/linux-core/nv50_dac.c
@@ -144,7 +144,7 @@ static int nv50_dac_destroy(struct nv50_output *output)
if (!display || !output)
return -EINVAL;
- list_del(&output->head);
+ list_del(&output->item);
kfree(output->native_mode);
if (dev_priv->free_output)
@@ -197,7 +197,7 @@ int nv50_dac_create(struct drm_device *dev, int dcb_entry)
output->dcb_entry = dcb_entry;
output->bus = entry->bus;
- list_add_tail(&output->head, &display->outputs);
+ list_add_tail(&output->item, &display->outputs);
output->native_mode = kzalloc(sizeof(struct nouveau_hw_mode), GFP_KERNEL);
if (!output->native_mode) {
diff --git a/linux-core/nv50_display.c b/linux-core/nv50_display.c
index 0c82ff8f..1d828552 100644
--- a/linux-core/nv50_display.c
+++ b/linux-core/nv50_display.c
@@ -139,14 +139,14 @@ static int nv50_display_disable(struct nv50_display *display)
NV50_DEBUG("\n");
- list_for_each_entry(crtc, &display->crtcs, head) {
+ list_for_each_entry(crtc, &display->crtcs, item) {
crtc->blank(crtc, TRUE);
}
display->update(display);
/* Almost like ack'ing a vblank interrupt, maybe in the spirit of cleaning up? */
- list_for_each_entry(crtc, &display->crtcs, head) {
+ list_for_each_entry(crtc, &display->crtcs, item) {
if (crtc->active) {
uint32_t mask;
@@ -305,15 +305,15 @@ int nv50_display_destroy(struct drm_device *dev)
if (display->init_done)
display->disable(display);
- list_for_each_entry(connector, &display->connectors, head) {
+ list_for_each_entry(connector, &display->connectors, item) {
connector->destroy(connector);
}
- list_for_each_entry(output, &display->outputs, head) {
+ list_for_each_entry(output, &display->outputs, item) {
output->destroy(output);
}
- list_for_each_entry(crtc, &display->crtcs, head) {
+ list_for_each_entry(crtc, &display->crtcs, item) {
crtc->destroy(crtc);
}
diff --git a/linux-core/nv50_kms_wrapper.c b/linux-core/nv50_kms_wrapper.c
index 9ece228e..7f1a095b 100644
--- a/linux-core/nv50_kms_wrapper.c
+++ b/linux-core/nv50_kms_wrapper.c
@@ -155,11 +155,11 @@ static void nv50_kms_mirror_routing(struct drm_device *dev)
struct drm_connector *drm_connector = NULL;
/* Wipe all previous connections. */
- list_for_each_entry(connector, &display->connectors, head) {
+ list_for_each_entry(connector, &display->connectors, item) {
connector->output = NULL;
}
- list_for_each_entry(output, &display->outputs, head) {
+ list_for_each_entry(output, &display->outputs, item) {
output->crtc = NULL;
}
@@ -578,7 +578,7 @@ int nv50_kms_crtc_set_config(struct drm_mode_set *set)
crtc = to_nv50_crtc(set->crtc);
/* disconnect unused outputs */
- list_for_each_entry(output, &display->outputs, head) {
+ list_for_each_entry(output, &display->outputs, item) {
if (output->crtc) {
crtc_mask |= 1 << output->crtc->index;
} else {
@@ -591,7 +591,7 @@ int nv50_kms_crtc_set_config(struct drm_mode_set *set)
}
/* blank any unused crtcs */
- list_for_each_entry(crtc, &display->crtcs, head) {
+ list_for_each_entry(crtc, &display->crtcs, item) {
if (!(crtc_mask & (1 << crtc->index)))
crtc->blank(crtc, TRUE);
}
@@ -605,12 +605,12 @@ int nv50_kms_crtc_set_config(struct drm_mode_set *set)
}
/* find native mode. */
- list_for_each_entry(output, &display->outputs, head) {
+ list_for_each_entry(output, &display->outputs, item) {
if (output->crtc != crtc)
continue;
*crtc->native_mode = *output->native_mode;
- list_for_each_entry(connector, &display->connectors, head) {
+ list_for_each_entry(connector, &display->connectors, item) {
if (connector->output != output)
continue;
@@ -632,7 +632,7 @@ int nv50_kms_crtc_set_config(struct drm_mode_set *set)
goto out;
}
- list_for_each_entry(output, &display->outputs, head) {
+ list_for_each_entry(output, &display->outputs, item) {
if (output->crtc != crtc)
continue;
@@ -653,7 +653,7 @@ int nv50_kms_crtc_set_config(struct drm_mode_set *set)
display->last_crtc = crtc->index;
/* this is executed immediately */
- list_for_each_entry(output, &display->outputs, head) {
+ list_for_each_entry(output, &display->outputs, item) {
if (output->crtc != crtc)
continue;
@@ -727,7 +727,7 @@ static int nv50_kms_crtcs_init(struct drm_device *dev)
* The internal structure is already allocated and so is the public one.
* Just a matter of getting to the memory and register it.
*/
- list_for_each_entry(crtc, &display->crtcs, head) {
+ list_for_each_entry(crtc, &display->crtcs, item) {
struct drm_crtc *drm_crtc = to_nv50_kms_crtc(crtc);
drm_crtc_init(dev, drm_crtc, &nv50_kms_crtc_funcs);
@@ -759,7 +759,7 @@ static int nv50_kms_encoders_init(struct drm_device *dev)
struct nv50_display *display = nv50_get_display(dev);
struct nv50_output *output = NULL;
- list_for_each_entry(output, &display->outputs, head) {
+ list_for_each_entry(output, &display->outputs, item) {
struct drm_encoder *drm_encoder = to_nv50_kms_encoder(output);
uint32_t type = DRM_MODE_ENCODER_NONE;
@@ -1003,7 +1003,7 @@ static int nv50_kms_connectors_init(struct drm_device *dev)
struct nv50_connector *connector = NULL;
int i;
- list_for_each_entry(connector, &display->connectors, head) {
+ list_for_each_entry(connector, &display->connectors, item) {
struct drm_connector *drm_connector = to_nv50_kms_connector(connector);
uint32_t type = DRM_MODE_CONNECTOR_Unknown;
diff --git a/linux-core/nv50_output.h b/linux-core/nv50_output.h
index 7a6f9c7e..a5faf050 100644
--- a/linux-core/nv50_output.h
+++ b/linux-core/nv50_output.h
@@ -36,7 +36,7 @@
#define OUTPUT_TV 4
struct nv50_output {
- struct list_head head;
+ struct list_head item;
struct drm_device *dev;
int bus;
diff --git a/linux-core/nv50_sor.c b/linux-core/nv50_sor.c
index 84192803..4d82697e 100644
--- a/linux-core/nv50_sor.c
+++ b/linux-core/nv50_sor.c
@@ -148,7 +148,7 @@ static int nv50_sor_destroy(struct nv50_output *output)
if (!display || !output)
return -EINVAL;
- list_del(&output->head);
+ list_del(&output->item);
kfree(output->native_mode);
if (dev_priv->free_output)
@@ -205,7 +205,7 @@ int nv50_sor_create(struct drm_device *dev, int dcb_entry)
output->dcb_entry = dcb_entry;
output->bus = entry->bus;
- list_add_tail(&output->head, &display->outputs);
+ list_add_tail(&output->item, &display->outputs);
output->native_mode = kzalloc(sizeof(struct nouveau_hw_mode), GFP_KERNEL);
if (!output->native_mode) {
diff --git a/shared-core/nouveau_irq.c b/shared-core/nouveau_irq.c
index e68b755f..4c46da8d 100644
--- a/shared-core/nouveau_irq.c
+++ b/shared-core/nouveau_irq.c
@@ -549,7 +549,7 @@ nouveau_nv50_display_irq_handler(struct drm_device *dev)
if (display->last_crtc == crtc_index)
clock_ack = true;
- list_for_each_entry(crtc, &display->crtcs, head) {
+ list_for_each_entry(crtc, &display->crtcs, item) {
if (crtc->index == crtc_index)
break;
}
@@ -564,7 +564,7 @@ nouveau_nv50_display_irq_handler(struct drm_device *dev)
crtc->set_clock_mode(crtc);
- list_for_each_entry(output, &display->outputs, head) {
+ list_for_each_entry(output, &display->outputs, item) {
if (!output->crtc)
continue;
diff --git a/shared-core/nouveau_mem.c b/shared-core/nouveau_mem.c
index 46b6e4d6..425cebe2 100644
--- a/shared-core/nouveau_mem.c
+++ b/shared-core/nouveau_mem.c
@@ -738,7 +738,7 @@ void nouveau_mem_free(struct drm_device* dev, struct mem_block* block)
struct nv50_crtc *crtc = NULL;
struct nv50_display *display = nv50_get_display(dev);
- list_for_each_entry(crtc, &display->crtcs, head) {
+ list_for_each_entry(crtc, &display->crtcs, item) {
if (crtc->fb->block == block) {
crtc->fb->block = NULL;