Commit 6e09a578 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/mc: s/intr_mask/intr_stat/

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 3c2a536b
...@@ -51,9 +51,9 @@ nvkm_mc_intr_rearm(struct nvkm_device *device) ...@@ -51,9 +51,9 @@ nvkm_mc_intr_rearm(struct nvkm_device *device)
} }
static u32 static u32
nvkm_mc_intr_mask(struct nvkm_mc *mc) nvkm_mc_intr_stat(struct nvkm_mc *mc)
{ {
u32 intr = mc->func->intr_mask(mc); u32 intr = mc->func->intr_stat(mc);
if (WARN_ON_ONCE(intr == 0xffffffff)) if (WARN_ON_ONCE(intr == 0xffffffff))
intr = 0; /* likely fallen off the bus */ intr = 0; /* likely fallen off the bus */
return intr; return intr;
...@@ -71,7 +71,7 @@ nvkm_mc_intr(struct nvkm_device *device, bool *handled) ...@@ -71,7 +71,7 @@ nvkm_mc_intr(struct nvkm_device *device, bool *handled)
if (unlikely(!mc)) if (unlikely(!mc))
return; return;
intr = nvkm_mc_intr_mask(mc); intr = nvkm_mc_intr_stat(mc);
stat = nvkm_top_intr(device, intr, &subdevs); stat = nvkm_top_intr(device, intr, &subdevs);
while (subdevs) { while (subdevs) {
enum nvkm_devidx subidx = __ffs64(subdevs); enum nvkm_devidx subidx = __ffs64(subdevs);
......
...@@ -57,7 +57,7 @@ g84_mc = { ...@@ -57,7 +57,7 @@ g84_mc = {
.intr = g84_mc_intr, .intr = g84_mc_intr,
.intr_unarm = nv04_mc_intr_unarm, .intr_unarm = nv04_mc_intr_unarm,
.intr_rearm = nv04_mc_intr_rearm, .intr_rearm = nv04_mc_intr_rearm,
.intr_mask = nv04_mc_intr_mask, .intr_stat = nv04_mc_intr_stat,
.reset = g84_mc_reset, .reset = g84_mc_reset,
}; };
......
...@@ -57,7 +57,7 @@ g98_mc = { ...@@ -57,7 +57,7 @@ g98_mc = {
.intr = g98_mc_intr, .intr = g98_mc_intr,
.intr_unarm = nv04_mc_intr_unarm, .intr_unarm = nv04_mc_intr_unarm,
.intr_rearm = nv04_mc_intr_rearm, .intr_rearm = nv04_mc_intr_rearm,
.intr_mask = nv04_mc_intr_mask, .intr_stat = nv04_mc_intr_stat,
.reset = g98_mc_reset, .reset = g98_mc_reset,
}; };
......
...@@ -76,7 +76,7 @@ gf100_mc_intr_rearm(struct nvkm_mc *mc) ...@@ -76,7 +76,7 @@ gf100_mc_intr_rearm(struct nvkm_mc *mc)
} }
u32 u32
gf100_mc_intr_mask(struct nvkm_mc *mc) gf100_mc_intr_stat(struct nvkm_mc *mc)
{ {
struct nvkm_device *device = mc->subdev.device; struct nvkm_device *device = mc->subdev.device;
u32 intr0 = nvkm_rd32(device, 0x000100); u32 intr0 = nvkm_rd32(device, 0x000100);
...@@ -96,7 +96,7 @@ gf100_mc = { ...@@ -96,7 +96,7 @@ gf100_mc = {
.intr = gf100_mc_intr, .intr = gf100_mc_intr,
.intr_unarm = gf100_mc_intr_unarm, .intr_unarm = gf100_mc_intr_unarm,
.intr_rearm = gf100_mc_intr_rearm, .intr_rearm = gf100_mc_intr_rearm,
.intr_mask = gf100_mc_intr_mask, .intr_stat = gf100_mc_intr_stat,
.reset = gf100_mc_reset, .reset = gf100_mc_reset,
.unk260 = gf100_mc_unk260, .unk260 = gf100_mc_unk260,
}; };
......
...@@ -52,7 +52,7 @@ gk104_mc = { ...@@ -52,7 +52,7 @@ gk104_mc = {
.intr = gk104_mc_intr, .intr = gk104_mc_intr,
.intr_unarm = gf100_mc_intr_unarm, .intr_unarm = gf100_mc_intr_unarm,
.intr_rearm = gf100_mc_intr_rearm, .intr_rearm = gf100_mc_intr_rearm,
.intr_mask = gf100_mc_intr_mask, .intr_stat = gf100_mc_intr_stat,
.reset = gk104_mc_reset, .reset = gk104_mc_reset,
.unk260 = gf100_mc_unk260, .unk260 = gf100_mc_unk260,
}; };
......
...@@ -29,7 +29,7 @@ gk20a_mc = { ...@@ -29,7 +29,7 @@ gk20a_mc = {
.intr = gk104_mc_intr, .intr = gk104_mc_intr,
.intr_unarm = gf100_mc_intr_unarm, .intr_unarm = gf100_mc_intr_unarm,
.intr_rearm = gf100_mc_intr_rearm, .intr_rearm = gf100_mc_intr_rearm,
.intr_mask = gf100_mc_intr_mask, .intr_stat = gf100_mc_intr_stat,
.reset = gk104_mc_reset, .reset = gk104_mc_reset,
}; };
......
...@@ -59,7 +59,7 @@ gt215_mc = { ...@@ -59,7 +59,7 @@ gt215_mc = {
.intr = gt215_mc_intr, .intr = gt215_mc_intr,
.intr_unarm = nv04_mc_intr_unarm, .intr_unarm = nv04_mc_intr_unarm,
.intr_rearm = nv04_mc_intr_rearm, .intr_rearm = nv04_mc_intr_rearm,
.intr_mask = nv04_mc_intr_mask, .intr_stat = nv04_mc_intr_stat,
.reset = gt215_mc_reset, .reset = gt215_mc_reset,
}; };
......
...@@ -56,7 +56,7 @@ nv04_mc_intr_rearm(struct nvkm_mc *mc) ...@@ -56,7 +56,7 @@ nv04_mc_intr_rearm(struct nvkm_mc *mc)
} }
u32 u32
nv04_mc_intr_mask(struct nvkm_mc *mc) nv04_mc_intr_stat(struct nvkm_mc *mc)
{ {
return nvkm_rd32(mc->subdev.device, 0x000100); return nvkm_rd32(mc->subdev.device, 0x000100);
} }
...@@ -75,7 +75,7 @@ nv04_mc = { ...@@ -75,7 +75,7 @@ nv04_mc = {
.intr = nv04_mc_intr, .intr = nv04_mc_intr,
.intr_unarm = nv04_mc_intr_unarm, .intr_unarm = nv04_mc_intr_unarm,
.intr_rearm = nv04_mc_intr_rearm, .intr_rearm = nv04_mc_intr_rearm,
.intr_mask = nv04_mc_intr_mask, .intr_stat = nv04_mc_intr_stat,
.reset = nv04_mc_reset, .reset = nv04_mc_reset,
}; };
......
...@@ -39,7 +39,7 @@ nv11_mc = { ...@@ -39,7 +39,7 @@ nv11_mc = {
.intr = nv11_mc_intr, .intr = nv11_mc_intr,
.intr_unarm = nv04_mc_intr_unarm, .intr_unarm = nv04_mc_intr_unarm,
.intr_rearm = nv04_mc_intr_rearm, .intr_rearm = nv04_mc_intr_rearm,
.intr_mask = nv04_mc_intr_mask, .intr_stat = nv04_mc_intr_stat,
.reset = nv04_mc_reset, .reset = nv04_mc_reset,
}; };
......
...@@ -48,7 +48,7 @@ nv17_mc = { ...@@ -48,7 +48,7 @@ nv17_mc = {
.intr = nv17_mc_intr, .intr = nv17_mc_intr,
.intr_unarm = nv04_mc_intr_unarm, .intr_unarm = nv04_mc_intr_unarm,
.intr_rearm = nv04_mc_intr_rearm, .intr_rearm = nv04_mc_intr_rearm,
.intr_mask = nv04_mc_intr_mask, .intr_stat = nv04_mc_intr_stat,
.reset = nv17_mc_reset, .reset = nv17_mc_reset,
}; };
......
...@@ -43,7 +43,7 @@ nv44_mc = { ...@@ -43,7 +43,7 @@ nv44_mc = {
.intr = nv17_mc_intr, .intr = nv17_mc_intr,
.intr_unarm = nv04_mc_intr_unarm, .intr_unarm = nv04_mc_intr_unarm,
.intr_rearm = nv04_mc_intr_rearm, .intr_rearm = nv04_mc_intr_rearm,
.intr_mask = nv04_mc_intr_mask, .intr_stat = nv04_mc_intr_stat,
.reset = nv17_mc_reset, .reset = nv17_mc_reset,
}; };
......
...@@ -50,7 +50,7 @@ nv50_mc = { ...@@ -50,7 +50,7 @@ nv50_mc = {
.intr = nv50_mc_intr, .intr = nv50_mc_intr,
.intr_unarm = nv04_mc_intr_unarm, .intr_unarm = nv04_mc_intr_unarm,
.intr_rearm = nv04_mc_intr_rearm, .intr_rearm = nv04_mc_intr_rearm,
.intr_mask = nv04_mc_intr_mask, .intr_stat = nv04_mc_intr_stat,
.reset = nv17_mc_reset, .reset = nv17_mc_reset,
}; };
......
...@@ -22,7 +22,7 @@ struct nvkm_mc_func { ...@@ -22,7 +22,7 @@ struct nvkm_mc_func {
/* enable reporting of interrupts to host */ /* enable reporting of interrupts to host */
void (*intr_rearm)(struct nvkm_mc *); void (*intr_rearm)(struct nvkm_mc *);
/* retrieve pending interrupt mask (NV_PMC_INTR) */ /* retrieve pending interrupt mask (NV_PMC_INTR) */
u32 (*intr_mask)(struct nvkm_mc *); u32 (*intr_stat)(struct nvkm_mc *);
const struct nvkm_mc_map *reset; const struct nvkm_mc_map *reset;
void (*unk260)(struct nvkm_mc *, u32); void (*unk260)(struct nvkm_mc *, u32);
}; };
...@@ -30,7 +30,7 @@ struct nvkm_mc_func { ...@@ -30,7 +30,7 @@ struct nvkm_mc_func {
void nv04_mc_init(struct nvkm_mc *); void nv04_mc_init(struct nvkm_mc *);
void nv04_mc_intr_unarm(struct nvkm_mc *); void nv04_mc_intr_unarm(struct nvkm_mc *);
void nv04_mc_intr_rearm(struct nvkm_mc *); void nv04_mc_intr_rearm(struct nvkm_mc *);
u32 nv04_mc_intr_mask(struct nvkm_mc *); u32 nv04_mc_intr_stat(struct nvkm_mc *);
extern const struct nvkm_mc_map nv04_mc_reset[]; extern const struct nvkm_mc_map nv04_mc_reset[];
extern const struct nvkm_mc_map nv17_mc_intr[]; extern const struct nvkm_mc_map nv17_mc_intr[];
...@@ -42,7 +42,7 @@ void nv50_mc_init(struct nvkm_mc *); ...@@ -42,7 +42,7 @@ void nv50_mc_init(struct nvkm_mc *);
void gf100_mc_intr_unarm(struct nvkm_mc *); void gf100_mc_intr_unarm(struct nvkm_mc *);
void gf100_mc_intr_rearm(struct nvkm_mc *); void gf100_mc_intr_rearm(struct nvkm_mc *);
u32 gf100_mc_intr_mask(struct nvkm_mc *); u32 gf100_mc_intr_stat(struct nvkm_mc *);
void gf100_mc_unk260(struct nvkm_mc *, u32); void gf100_mc_unk260(struct nvkm_mc *, u32);
extern const struct nvkm_mc_map gk104_mc_intr[]; extern const struct nvkm_mc_map gk104_mc_intr[];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment