Lines Matching refs:arg
184 unsigned int cmd, unsigned long arg);
186 unsigned int cmd, unsigned long arg);
688 static ssize_t sync_serial_input(struct file *file, unsigned long arg) in sync_serial_input() argument
695 ret = copy_from_user(&req, (struct ssp_request __user *)arg, in sync_serial_input()
723 ret = copy_to_user((struct ssp_request __user *)arg, &req, in sync_serial_input()
737 unsigned int cmd, unsigned long arg) in sync_serial_ioctl_unlocked() argument
755 return sync_serial_input(file, arg); in sync_serial_ioctl_unlocked()
768 if (GET_SPEED(arg) == CODEC) { in sync_serial_ioctl_unlocked()
777 freq = GET_FREQ(arg); in sync_serial_ioctl_unlocked()
795 } else if (GET_SPEED(arg) == CODEC_f32768) { in sync_serial_ioctl_unlocked()
797 switch (GET_FREQ(arg)) { in sync_serial_ioctl_unlocked()
807 switch (GET_SPEED(arg)) { in sync_serial_ioctl_unlocked()
857 frm_cfg.wordrate = GET_WORD_RATE(arg); in sync_serial_ioctl_unlocked()
861 switch (arg) { in sync_serial_ioctl_unlocked()
905 if (!port->use_dma || arg == MASTER_OUTPUT || in sync_serial_ioctl_unlocked()
906 arg == SLAVE_OUTPUT) in sync_serial_ioctl_unlocked()
910 if (arg & NORMAL_SYNC) { in sync_serial_ioctl_unlocked()
913 } else if (arg & EARLY_SYNC) in sync_serial_ioctl_unlocked()
915 else if (arg & LATE_SYNC) { in sync_serial_ioctl_unlocked()
918 } else if (arg & SECOND_WORD_SYNC) { in sync_serial_ioctl_unlocked()
925 if (arg & BIT_SYNC) in sync_serial_ioctl_unlocked()
927 else if (arg & WORD_SYNC) in sync_serial_ioctl_unlocked()
929 else if (arg & EXTENDED_SYNC) in sync_serial_ioctl_unlocked()
932 if (arg & SYNC_ON) in sync_serial_ioctl_unlocked()
934 else if (arg & SYNC_OFF) in sync_serial_ioctl_unlocked()
938 if (arg & WORD_SIZE_8) { in sync_serial_ioctl_unlocked()
941 } else if (arg & WORD_SIZE_12) in sync_serial_ioctl_unlocked()
943 else if (arg & WORD_SIZE_16) in sync_serial_ioctl_unlocked()
945 else if (arg & WORD_SIZE_24) in sync_serial_ioctl_unlocked()
947 else if (arg & WORD_SIZE_32) in sync_serial_ioctl_unlocked()
950 if (arg & BIT_ORDER_MSB) in sync_serial_ioctl_unlocked()
952 else if (arg & BIT_ORDER_LSB) in sync_serial_ioctl_unlocked()
955 if (arg & FLOW_CONTROL_ENABLE) { in sync_serial_ioctl_unlocked()
958 } else if (arg & FLOW_CONTROL_DISABLE) { in sync_serial_ioctl_unlocked()
963 if (arg & CLOCK_NOT_GATED) in sync_serial_ioctl_unlocked()
965 else if (arg & CLOCK_GATED) in sync_serial_ioctl_unlocked()
971 if (arg & CLOCK_NORMAL) in sync_serial_ioctl_unlocked()
973 else if (arg & CLOCK_INVERT) in sync_serial_ioctl_unlocked()
976 if (arg & FRAME_NORMAL) in sync_serial_ioctl_unlocked()
978 else if (arg & FRAME_INVERT) in sync_serial_ioctl_unlocked()
981 if (arg & STATUS_NORMAL) in sync_serial_ioctl_unlocked()
983 else if (arg & STATUS_INVERT) in sync_serial_ioctl_unlocked()
987 if (arg & CLOCK_NORMAL) in sync_serial_ioctl_unlocked()
989 else if (arg & CLOCK_INVERT) in sync_serial_ioctl_unlocked()
992 if (arg & FRAME_NORMAL) in sync_serial_ioctl_unlocked()
994 else if (arg & FRAME_INVERT) in sync_serial_ioctl_unlocked()
997 if (arg & STATUS_NORMAL) in sync_serial_ioctl_unlocked()
999 else if (arg & STATUS_INVERT) in sync_serial_ioctl_unlocked()
1010 if (arg & SPI_SLAVE) { in sync_serial_ioctl_unlocked()
1041 if (cmd == SSP_FRAME_SYNC && (arg & (WORD_SIZE_8 | WORD_SIZE_12 | in sync_serial_ioctl_unlocked()
1058 unsigned int cmd, unsigned long arg) in sync_serial_ioctl() argument
1063 ret = sync_serial_ioctl_unlocked(file, cmd, arg); in sync_serial_ioctl()