aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp
ModeNameSize
-rw-r--r--Kconfig2614logstatsplainblame
-rw-r--r--Makefile497logstatsplainblame
-rw-r--r--associola.c43896logstatsplainblame
-rw-r--r--auth.c24253logstatsplainblame
-rw-r--r--bind_addr.c12857logstatsplainblame
-rw-r--r--chunk.c8508logstatsplainblame
-rw-r--r--command.c2419logstatsplainblame
-rw-r--r--debug.c4641logstatsplainblame
-rw-r--r--endpointola.c13225logstatsplainblame
-rw-r--r--input.c29666logstatsplainblame
-rw-r--r--inqueue.c7099logstatsplainblame
-rw-r--r--ipv6.c28989logstatsplainblame
-rw-r--r--objcnt.c4087logstatsplainblame
-rw-r--r--output.c22078logstatsplainblame
-rw-r--r--outqueue.c52384logstatsplainblame
-rw-r--r--primitive.c7767logstatsplainblame
-rw-r--r--proc.c11234logstatsplainblame
-rw-r--r--protocol.c36824logstatsplainblame
-rw-r--r--sm_make_chunk.c97581logstatsplainblame
-rw-r--r--sm_sideeffect.c44750logstatsplainblame
-rw-r--r--sm_statefuns.c189789logstatsplainblame
-rw-r--r--sm_statetable.c34260logstatsplainblame
-rw-r--r--socket.c186340logstatsplainblame
-rw-r--r--ssnmap.c3510logstatsplainblame
-rw-r--r--sysctl.c7780logstatsplainblame
-rw-r--r--transport.c18338logstatsplainblame
-rw-r--r--tsnmap.c10618logstatsplainblame
-rw-r--r--ulpevent.c30206logstatsplainblame
-rw-r--r--ulpqueue.c28104logstatsplainblame
pt">-EFAULT; buffer_end = data_buffer + count - nbytes; } } if (empty) { empty = 0; dac_audio_start_timer(); } return count; } static ssize_t dac_audio_read(struct file *file, char *buf, size_t count, loff_t * ppos) { return -EINVAL; } static int dac_audio_open(struct inode *inode, struct file *file) { if (file->f_mode & FMODE_READ) return -ENODEV; mutex_lock(&sh_dac_audio_mutex); if (in_use) { mutex_unlock(&sh_dac_audio_mutex); return -EBUSY; } in_use = 1; dac_audio_start(); mutex_unlock(&sh_dac_audio_mutex); return 0; } static int dac_audio_release(struct inode *inode, struct file *file) { dac_audio_sync(); dac_audio_stop(); in_use = 0; return 0; } const struct file_operations dac_audio_fops = { .read = dac_audio_read, .write = dac_audio_write, .unlocked_ioctl = dac_audio_unlocked_ioctl, .open = dac_audio_open, .release = dac_audio_release, }; static enum hrtimer_restart sh_dac_audio_timer(struct hrtimer *handle) { if (!empty) { sh_dac_output(*buffer_begin, CONFIG_SOUND_SH_DAC_AUDIO_CHANNEL); buffer_begin++; if (buffer_begin == data_buffer + BUFFER_SIZE) buffer_begin = data_buffer; if (buffer_begin == buffer_end) empty = 1; } if (!empty) hrtimer_start(&hrtimer, wakeups_per_second, HRTIMER_MODE_REL); return HRTIMER_NORESTART; } static int __init dac_audio_init(void) { if ((device_major = register_sound_dsp(&dac_audio_fops, -1)) < 0) { printk(KERN_ERR "Cannot register dsp device"); return device_major; } in_use = 0; data_buffer = kmalloc(BUFFER_SIZE, GFP_KERNEL); if (data_buffer == NULL) return -ENOMEM; dac_audio_reset(); rate = 8000; dac_audio_set_rate();