Lines Matching refs:priv
39 struct gus_proc_private *priv = entry->private_data; in snd_gf1_mem_proc_dump() local
40 struct snd_gus_card *gus = priv->gus; in snd_gf1_mem_proc_dump()
43 err = snd_gus_dram_read(gus, buf, pos, count, priv->rom); in snd_gf1_mem_proc_dump()
51 struct gus_proc_private *priv = entry->private_data; in snd_gf1_mem_proc_free() local
52 kfree(priv); in snd_gf1_mem_proc_free()
63 struct gus_proc_private *priv; in snd_gf1_mem_proc_init() local
68 priv = kzalloc(sizeof(*priv), GFP_KERNEL); in snd_gf1_mem_proc_init()
69 if (priv == NULL) in snd_gf1_mem_proc_init()
71 priv->gus = gus; in snd_gf1_mem_proc_init()
75 entry->private_data = priv; in snd_gf1_mem_proc_init()
78 priv->address = gus->gf1.mem_alloc.banks_8[idx].address; in snd_gf1_mem_proc_init()
79 priv->size = entry->size = gus->gf1.mem_alloc.banks_8[idx].size; in snd_gf1_mem_proc_init()
85 priv = kzalloc(sizeof(*priv), GFP_KERNEL); in snd_gf1_mem_proc_init()
86 if (priv == NULL) in snd_gf1_mem_proc_init()
88 priv->rom = 1; in snd_gf1_mem_proc_init()
89 priv->gus = gus; in snd_gf1_mem_proc_init()
93 entry->private_data = priv; in snd_gf1_mem_proc_init()
96 priv->address = idx * 4096 * 1024; in snd_gf1_mem_proc_init()
97 priv->size = entry->size = gus->gf1.rom_memory; in snd_gf1_mem_proc_init()