#define nvkm_engine_destroy(p) \
nvkm_subdev_destroy(&(p)->subdev)
#define nvkm_engine_init(p) \
- nvkm_subdev_init(&(p)->subdev)
+ nvkm_subdev_init_old(&(p)->subdev)
#define nvkm_engine_fini(p,s) \
- nvkm_subdev_fini(&(p)->subdev, (s))
+ nvkm_subdev_fini_old(&(p)->subdev, (s))
int nvkm_engine_create_(struct nvkm_object *, struct nvkm_object *,
struct nvkm_oclass *, bool, const char *,
const char *sname, const char *fname,
int size, void **);
void nvkm_subdev_destroy(struct nvkm_subdev *);
-int nvkm_subdev_init(struct nvkm_subdev *);
-int nvkm_subdev_fini(struct nvkm_subdev *, bool suspend);
+int nvkm_subdev_init_old(struct nvkm_subdev *);
+int nvkm_subdev_fini_old(struct nvkm_subdev *, bool suspend);
void nvkm_subdev_reset(struct nvkm_object *);
void _nvkm_subdev_dtor(struct nvkm_object *);
#define nvkm_bus_destroy(p) \
nvkm_subdev_destroy(&(p)->subdev)
#define nvkm_bus_init(p) \
- nvkm_subdev_init(&(p)->subdev)
+ nvkm_subdev_init_old(&(p)->subdev)
#define nvkm_bus_fini(p, s) \
- nvkm_subdev_fini(&(p)->subdev, (s))
+ nvkm_subdev_fini_old(&(p)->subdev, (s))
#define _nvkm_bus_dtor _nvkm_subdev_dtor
#define _nvkm_bus_init _nvkm_subdev_init
#define nvkm_ibus_destroy(p) \
nvkm_subdev_destroy(&(p)->subdev)
#define nvkm_ibus_init(p) \
- nvkm_subdev_init(&(p)->subdev)
+ nvkm_subdev_init_old(&(p)->subdev)
#define nvkm_ibus_fini(p,s) \
- nvkm_subdev_fini(&(p)->subdev, (s))
+ nvkm_subdev_fini_old(&(p)->subdev, (s))
#define _nvkm_ibus_dtor _nvkm_subdev_dtor
#define _nvkm_ibus_init _nvkm_subdev_init
#define nvkm_mmu_destroy(p) \
nvkm_subdev_destroy(&(p)->subdev)
#define nvkm_mmu_init(p) \
- nvkm_subdev_init(&(p)->subdev)
+ nvkm_subdev_init_old(&(p)->subdev)
#define nvkm_mmu_fini(p,s) \
- nvkm_subdev_fini(&(p)->subdev, (s))
+ nvkm_subdev_fini_old(&(p)->subdev, (s))
#define _nvkm_mmu_dtor _nvkm_subdev_dtor
#define _nvkm_mmu_init _nvkm_subdev_init
#define nvkm_mxm_create(p,e,o,d) \
nvkm_mxm_create_((p), (e), (o), sizeof(**d), (void **)d)
#define nvkm_mxm_init(p) \
- nvkm_subdev_init(&(p)->subdev)
+ nvkm_subdev_init_old(&(p)->subdev)
#define nvkm_mxm_fini(p,s) \
- nvkm_subdev_fini(&(p)->subdev, (s))
+ nvkm_subdev_fini_old(&(p)->subdev, (s))
int nvkm_mxm_create_(struct nvkm_object *, struct nvkm_object *,
struct nvkm_oclass *, int, void **);
void nvkm_mxm_destroy(struct nvkm_mxm *);
#define nvkm_timer_destroy(p) \
nvkm_subdev_destroy(&(p)->subdev)
#define nvkm_timer_init(p) \
- nvkm_subdev_init(&(p)->subdev)
+ nvkm_subdev_init_old(&(p)->subdev)
#define nvkm_timer_fini(p,s) \
- nvkm_subdev_fini(&(p)->subdev, (s))
+ nvkm_subdev_fini_old(&(p)->subdev, (s))
int nvkm_timer_create_(struct nvkm_object *, struct nvkm_engine *,
struct nvkm_oclass *, int size, void **);
_nvkm_volt_init(nv_object(v)); \
})
#define nvkm_volt_fini(p,s) \
- nvkm_subdev_fini((p), (s))
+ nvkm_subdev_fini_old((p), (s))
int nvkm_volt_create_(struct nvkm_object *, struct nvkm_object *,
struct nvkm_oclass *, int, void **);
}
int
-nvkm_subdev_init(struct nvkm_subdev *subdev)
+nvkm_subdev_init_old(struct nvkm_subdev *subdev)
{
int ret = _nvkm_object_init(&subdev->object);
if (ret)
int
_nvkm_subdev_init(struct nvkm_object *object)
{
- return nvkm_subdev_init(nv_subdev(object));
+ struct nvkm_subdev *subdev = (void *)object;
+ return nvkm_subdev_init_old(subdev);
}
int
-nvkm_subdev_fini(struct nvkm_subdev *subdev, bool suspend)
+nvkm_subdev_fini_old(struct nvkm_subdev *subdev, bool suspend)
{
struct nvkm_device *device = subdev->device;
int
_nvkm_subdev_fini(struct nvkm_object *object, bool suspend)
{
- return nvkm_subdev_fini(nv_subdev(object), suspend);
+ struct nvkm_subdev *subdev = (void *)object;
+ return nvkm_subdev_fini_old(subdev, suspend);
}
void
#define nvkm_bar_create(p,e,o,d) \
nvkm_bar_create_((p), (e), (o), sizeof(**d), (void **)d)
#define nvkm_bar_init(p) \
- nvkm_subdev_init(&(p)->subdev)
+ nvkm_subdev_init_old(&(p)->subdev)
#define nvkm_bar_fini(p,s) \
- nvkm_subdev_fini(&(p)->subdev, (s))
+ nvkm_subdev_fini_old(&(p)->subdev, (s))
int nvkm_bar_create_(struct nvkm_object *, struct nvkm_object *,
struct nvkm_oclass *, int, void **);
nvkm_bios_init(struct nvkm_object *object)
{
struct nvkm_bios *bios = (void *)object;
- return nvkm_subdev_init(&bios->subdev);
+ return nvkm_subdev_init_old(&bios->subdev);
}
static int
nvkm_bios_fini(struct nvkm_object *object, bool suspend)
{
struct nvkm_bios *bios = (void *)object;
- return nvkm_subdev_fini(&bios->subdev, suspend);
+ return nvkm_subdev_fini_old(&bios->subdev, suspend);
}
struct nvkm_oclass
{
struct nvkm_clk *clk = (void *)object;
nvkm_notify_put(&clk->pwrsrc_ntfy);
- return nvkm_subdev_fini(&clk->subdev, suspend);
+ return nvkm_subdev_fini_old(&clk->subdev, suspend);
}
int
struct nvkm_domain *clock = clk->domains;
int ret;
- ret = nvkm_subdev_init(&clk->subdev);
+ ret = nvkm_subdev_init_old(&clk->subdev);
if (ret)
return ret;
/* unlock the extended vga crtc regs */
nvkm_lockvgac(init->subdev.device, false);
- return nvkm_subdev_fini(&init->subdev, suspend);
+ return nvkm_subdev_fini_old(&init->subdev, suspend);
}
int
struct nvkm_devinit *init = (void *)object;
int ret;
- ret = nvkm_subdev_init(&init->subdev);
+ ret = nvkm_subdev_init_old(&init->subdev);
if (ret)
return ret;
_nvkm_fb_fini(struct nvkm_object *object, bool suspend)
{
struct nvkm_fb *fb = (void *)object;
- return nvkm_subdev_fini(&fb->subdev, suspend);
+ return nvkm_subdev_fini_old(&fb->subdev, suspend);
}
int
struct nvkm_fb *fb = (void *)object;
int ret, i;
- ret = nvkm_subdev_init(&fb->subdev);
+ ret = nvkm_subdev_init_old(&fb->subdev);
if (ret)
return ret;
_nvkm_fuse_init(struct nvkm_object *object)
{
struct nvkm_fuse *fuse = (void *)object;
- return nvkm_subdev_init(&fuse->subdev);
+ return nvkm_subdev_init_old(&fuse->subdev);
}
void
impl->intr_mask(gpio, NVKM_GPIO_TOGGLED, mask, 0);
impl->intr_stat(gpio, &mask, &mask);
- return nvkm_subdev_fini(&gpio->subdev, suspend);
+ return nvkm_subdev_fini_old(&gpio->subdev, suspend);
}
static struct dmi_system_id gpio_reset_ids[] = {
struct nvkm_gpio *gpio = nvkm_gpio(object);
int ret;
- ret = nvkm_subdev_init(&gpio->subdev);
+ ret = nvkm_subdev_init_old(&gpio->subdev);
if (ret)
return ret;
nvkm_i2c_pad_fini(pad);
}
- return nvkm_subdev_fini(&i2c->subdev, suspend);
+ return nvkm_subdev_fini_old(&i2c->subdev, suspend);
}
int
struct nvkm_i2c_pad *pad;
int ret;
- ret = nvkm_subdev_init(&i2c->subdev);
+ ret = nvkm_subdev_init_old(&i2c->subdev);
if (ret)
return ret;
return ret;
}
- return nvkm_subdev_fini(&imem->subdev, suspend);
+ return nvkm_subdev_fini_old(&imem->subdev, suspend);
}
int
struct nvkm_instobj *iobj;
int ret, i;
- ret = nvkm_subdev_init(&imem->subdev);
+ ret = nvkm_subdev_init_old(&imem->subdev);
if (ret)
return ret;
const struct nvkm_ltc_impl *impl = (void *)nv_oclass(object);
int ret, i;
- ret = nvkm_subdev_init(<c->base.subdev);
+ ret = nvkm_subdev_init_old(<c->base.subdev);
if (ret)
return ret;
struct nvkm_mc *mc = (void *)object;
struct nvkm_device *device = mc->subdev.device;
nvkm_wr32(device, 0x000140, 0x00000000);
- return nvkm_subdev_fini(&mc->subdev, suspend);
+ return nvkm_subdev_fini_old(&mc->subdev, suspend);
}
int
{
struct nvkm_mc *mc = (void *)object;
struct nvkm_device *device = mc->subdev.device;
- int ret = nvkm_subdev_init(&mc->subdev);
+ int ret = nvkm_subdev_init_old(&mc->subdev);
if (ret)
return ret;
nvkm_wr32(device, 0x000140, 0x00000001);
nvkm_wr32(device, 0x10a014, 0x00000060);
flush_work(&pmu->recv.work);
- return nvkm_subdev_fini(&pmu->subdev, suspend);
+ return nvkm_subdev_fini_old(&pmu->subdev, suspend);
}
int
struct nvkm_device *device = pmu->subdev.device;
int ret, i;
- ret = nvkm_subdev_init(&pmu->subdev);
+ ret = nvkm_subdev_init_old(&pmu->subdev);
if (ret)
return ret;
nvkm_timer_alarm_cancel(pmu, &pmu->alarm);
- return nvkm_subdev_fini(&pmu->base.subdev, suspend);
+ return nvkm_subdev_fini_old(&pmu->base.subdev, suspend);
}
static int
struct nvkm_device *device = pmu->base.subdev.device;
int ret;
- ret = nvkm_subdev_init(&pmu->base.subdev);
+ ret = nvkm_subdev_init_old(&pmu->base.subdev);
if (ret)
return ret;
struct nvkm_therm_priv *therm = (void *)object;
int ret;
- ret = nvkm_subdev_init(&therm->base.subdev);
+ ret = nvkm_subdev_init_old(&therm->base.subdev);
if (ret)
return ret;
therm->mode = NVKM_THERM_CTRL_NONE;
}
- return nvkm_subdev_fini(&therm->base.subdev, suspend);
+ return nvkm_subdev_fini_old(&therm->base.subdev, suspend);
}
int
struct nvkm_subdev *subdev = &volt->subdev;
int ret;
- ret = nvkm_subdev_init(&volt->subdev);
+ ret = nvkm_subdev_init_old(&volt->subdev);
if (ret)
return ret;