Displaying 4 results from an estimated 4 matches for "gm107_fuse_ctor".
2015 Jan 25
1
[PATCH] fuse/gm107: simplify the return logic
...bdev/fuse/gm107.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drm/nouveau/nvkm/subdev/fuse/gm107.c b/drm/nouveau/nvkm/subdev/fuse/gm107.c
index ba19158..0b256aa 100644
--- a/drm/nouveau/nvkm/subdev/fuse/gm107.c
+++ b/drm/nouveau/nvkm/subdev/fuse/gm107.c
@@ -45,10 +45,8 @@ gm107_fuse_ctor(struct nvkm_object *parent, struct nvkm_object *engine,
ret = nvkm_fuse_create(parent, engine, oclass, &priv);
*pobject = nv_object(priv);
- if (ret)
- return ret;
- return 0;
+ return ret;
}
struct nvkm_oclass
--
2.2.2
2014 Aug 24
0
[PATCH 1/3] subdev: add a pfuse subdev
...stent with the second case
below.
> + return ret;
> +}
[snip]
> diff --git a/nvkm/subdev/fuse/gm107.c b/nvkm/subdev/fuse/gm107.c
> new file mode 100644
> index 0000000..4ade700
> --- /dev/null
> +++ b/nvkm/subdev/fuse/gm107.c
> @@ -0,0 +1,66 @@
[snip]
> +static int
> +gm107_fuse_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
> + struct nouveau_oclass *oclass, void *data, u32 size,
> + struct nouveau_object **pobject)
> +{
> + struct gm107_fuse_priv *priv;
> + int ret;
> +
> + ret = nouveau_fuse_create(parent, engine, oclass...
2014 Aug 24
8
[PATCH 1/3] subdev: add a pfuse subdev
...s: Martin Peres
+ */
+
+#include "priv.h"
+
+struct gm107_fuse_priv {
+ struct nouveau_fuse base;
+};
+
+static u32
+nouveau_fuse_rd32(struct nouveau_object *object, u64 addr)
+{
+ struct gf100_fuse_priv *priv = (void *)object;
+
+ return nv_rd32(priv, 0x21100 + addr);
+}
+
+
+static int
+gm107_fuse_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
+ struct nouveau_oclass *oclass, void *data, u32 size,
+ struct nouveau_object **pobject)
+{
+ struct gm107_fuse_priv *priv;
+ int ret;
+
+ ret = nouveau_fuse_create(parent, engine, oclass, &priv);
+ *pobject = nv_objec...
2014 Aug 24
0
[PATCH 1/3] subdev: add a pfuse subdev
...se_priv {
> + struct nouveau_fuse base;
> +};
> +
> +static u32
> +nouveau_fuse_rd32(struct nouveau_object *object, u64 addr)
> +{
> + struct gf100_fuse_priv *priv = (void *)object;
> +
> + return nv_rd32(priv, 0x21100 + addr);
> +}
> +
> +
> +static int
> +gm107_fuse_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
> + struct nouveau_oclass *oclass, void *data, u32 size,
> + struct nouveau_object **pobject)
> +{
> + struct gm107_fuse_priv *priv;
> + int ret;
> +
> + ret = nouveau_fuse_create(parent, engine, oclass...