/linux-4.1.27/drivers/block/zram/ |
D | zcomp.h | 43 struct zcomp { struct 47 struct zcomp_strm *(*strm_find)(struct zcomp *comp); argument 48 void (*strm_release)(struct zcomp *comp, struct zcomp_strm *zstrm); argument 49 bool (*set_max_streams)(struct zcomp *comp, int num_strm); argument 50 void (*destroy)(struct zcomp *comp); argument 55 struct zcomp *zcomp_create(const char *comp, int max_strm); 56 void zcomp_destroy(struct zcomp *comp); 58 struct zcomp_strm *zcomp_strm_find(struct zcomp *comp); 59 void zcomp_strm_release(struct zcomp *comp, struct zcomp_strm *zstrm); 61 int zcomp_compress(struct zcomp *comp, struct zcomp_strm *zstrm, [all …]
|
D | zcomp.c | 65 static void zcomp_strm_free(struct zcomp *comp, struct zcomp_strm *zstrm) in zcomp_strm_free() 77 static struct zcomp_strm *zcomp_strm_alloc(struct zcomp *comp) in zcomp_strm_alloc() 100 static struct zcomp_strm *zcomp_strm_multi_find(struct zcomp *comp) in zcomp_strm_multi_find() 138 static void zcomp_strm_multi_release(struct zcomp *comp, struct zcomp_strm *zstrm) in zcomp_strm_multi_release() 156 static bool zcomp_strm_multi_set_max_streams(struct zcomp *comp, int num_strm) in zcomp_strm_multi_set_max_streams() 178 static void zcomp_strm_multi_destroy(struct zcomp *comp) in zcomp_strm_multi_destroy() 192 static int zcomp_strm_multi_create(struct zcomp *comp, int max_strm) in zcomp_strm_multi_create() 221 static struct zcomp_strm *zcomp_strm_single_find(struct zcomp *comp) in zcomp_strm_single_find() 228 static void zcomp_strm_single_release(struct zcomp *comp, in zcomp_strm_single_release() 235 static bool zcomp_strm_single_set_max_streams(struct zcomp *comp, int num_strm) in zcomp_strm_single_set_max_streams() [all …]
|
D | Makefile | 1 zram-y := zcomp_lzo.o zcomp.o zram_drv.o
|
D | zram_drv.h | 104 struct zcomp *comp;
|
D | zram_drv.c | 777 struct zcomp *comp; in zram_reset_device() 822 struct zcomp *comp; in disksize_store()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
D | nv20.c | 48 if (!(flags & 2)) tile->zcomp = 0x00000000; /* Z16 */ in nv20_fb_tile_comp() 49 else tile->zcomp = 0x04000000; /* Z24S8 */ in nv20_fb_tile_comp() 50 tile->zcomp |= tile->tag->offset; in nv20_fb_tile_comp() 51 tile->zcomp |= 0x80000000; /* enable */ in nv20_fb_tile_comp() 53 tile->zcomp |= 0x08000000; in nv20_fb_tile_comp() 64 tile->zcomp = 0; in nv20_fb_tile_fini() 75 nv_wr32(pfb, 0x100300 + (i * 0x04), tile->zcomp); in nv20_fb_tile_prog()
|
D | nv36.c | 35 if (flags & 2) tile->zcomp |= 0x10000000; /* Z16 */ in nv36_fb_tile_comp() 36 else tile->zcomp |= 0x20000000; /* Z24S8 */ in nv36_fb_tile_comp() 37 tile->zcomp |= ((tile->tag->offset ) >> 6); in nv36_fb_tile_comp() 38 tile->zcomp |= ((tile->tag->offset + tags - 1) >> 6) << 14; in nv36_fb_tile_comp() 40 tile->zcomp |= 0x80000000; in nv36_fb_tile_comp()
|
D | nv35.c | 35 if (flags & 2) tile->zcomp |= 0x04000000; /* Z16 */ in nv35_fb_tile_comp() 36 else tile->zcomp |= 0x08000000; /* Z24S8 */ in nv35_fb_tile_comp() 37 tile->zcomp |= ((tile->tag->offset ) >> 6); in nv35_fb_tile_comp() 38 tile->zcomp |= ((tile->tag->offset + tags - 1) >> 6) << 13; in nv35_fb_tile_comp() 40 tile->zcomp |= 0x40000000; in nv35_fb_tile_comp()
|
D | nv25.c | 35 if (!(flags & 2)) tile->zcomp = 0x00100000; /* Z16 */ in nv25_fb_tile_comp() 36 else tile->zcomp = 0x00200000; /* Z24S8 */ in nv25_fb_tile_comp() 37 tile->zcomp |= tile->tag->offset; in nv25_fb_tile_comp() 39 tile->zcomp |= 0x01000000; in nv25_fb_tile_comp()
|
D | nv40.c | 36 tile->zcomp = 0x28000000; /* Z24S8_SPLIT_GRAD */ in nv40_fb_tile_comp() 37 tile->zcomp |= ((tile->tag->offset ) >> 8); in nv40_fb_tile_comp() 38 tile->zcomp |= ((tile->tag->offset + tags - 1) >> 8) << 13; in nv40_fb_tile_comp() 40 tile->zcomp |= 0x40000000; in nv40_fb_tile_comp()
|
D | nv30.c | 56 if (flags & 2) tile->zcomp |= 0x01000000; /* Z16 */ in nv30_fb_tile_comp() 57 else tile->zcomp |= 0x02000000; /* Z24S8 */ in nv30_fb_tile_comp() 58 tile->zcomp |= ((tile->tag->offset ) >> 6); in nv30_fb_tile_comp() 59 tile->zcomp |= ((tile->tag->offset + tags - 1) >> 6) << 12; in nv30_fb_tile_comp() 61 tile->zcomp |= 0x10000000; in nv30_fb_tile_comp()
|
D | nv41.c | 35 nv_wr32(pfb, 0x100700 + (i * 0x04), tile->zcomp); in nv41_fb_tile_prog()
|
D | nv10.c | 43 tile->zcomp = 0; in nv10_fb_tile_fini()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
D | nv40.c | 232 nv_wr32(priv, NV20_PGRAPH_ZCOMP(i), tile->zcomp); in nv40_gr_tile_prog() 233 nv_wr32(priv, NV40_PGRAPH_ZCOMP1(i), tile->zcomp); in nv40_gr_tile_prog() 238 nv_wr32(priv, NV41_PGRAPH_ZCOMP0(i), tile->zcomp); in nv40_gr_tile_prog() 239 nv_wr32(priv, NV41_PGRAPH_ZCOMP1(i), tile->zcomp); in nv40_gr_tile_prog() 269 nv_wr32(priv, NV47_PGRAPH_ZCOMP0(i), tile->zcomp); in nv40_gr_tile_prog() 270 nv_wr32(priv, NV47_PGRAPH_ZCOMP1(i), tile->zcomp); in nv40_gr_tile_prog()
|
D | nv20.c | 180 nv_wr32(priv, NV20_PGRAPH_ZCOMP(i), tile->zcomp); in nv20_gr_tile_prog() 182 nv_wr32(priv, NV10_PGRAPH_RDI_DATA, tile->zcomp); in nv20_gr_tile_prog()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/subdev/ |
D | fb.h | 45 u32 zcomp; member
|