Lines Matching refs:op
56 struct audio_operations *op;
74 op = (struct audio_operations *) (sound_mem_blocks[sound_nblocks] = vmalloc(sizeof(struct audio_operations)));
79 if (d == NULL || op == NULL) {
84 memset((char *) op, 0, sizeof(struct audio_operations));
85 init_waitqueue_head(&op->in_sleeper);
86 init_waitqueue_head(&op->out_sleeper);
87 init_waitqueue_head(&op->poll_sleeper);
93 op->d = d;
94 strlcpy(op->name, name, sizeof(op->name));
95 op->flags = flags;
96 op->format_mask = format_mask;
97 op->devc = devc;
102 audio_devs[num] = op;
114 struct mixer_operations *op;
129 op = (struct mixer_operations *) (sound_mem_blocks[sound_nblocks] = vmalloc(sizeof(struct mixer_operations)));
134 if (op == NULL) {
138 memset((char *) op, 0, sizeof(struct mixer_operations));
139 memcpy((char *) op, (char *) driver, driver_size);
141 strlcpy(op->name, name, sizeof(op->name));
142 op->devc = devc;
144 mixer_devs[n] = op;