Home
last modified time | relevance | path

Searched refs:CommandBuffer (Results 1 – 1 of 1) sorted by relevance

/Linux-v4.19/drivers/block/
DDAC960.c6516 unsigned char CommandBuffer[80]; in dac960_user_command_proc_write() local
6518 if (Count > sizeof(CommandBuffer)-1) return -EINVAL; in dac960_user_command_proc_write()
6519 if (copy_from_user(CommandBuffer, Buffer, Count)) return -EFAULT; in dac960_user_command_proc_write()
6520 CommandBuffer[Count] = '\0'; in dac960_user_command_proc_write()
6521 Length = strlen(CommandBuffer); in dac960_user_command_proc_write()
6522 if (Length > 0 && CommandBuffer[Length-1] == '\n') in dac960_user_command_proc_write()
6523 CommandBuffer[--Length] = '\0'; in dac960_user_command_proc_write()
6525 return (DAC960_V1_ExecuteUserCommand(Controller, CommandBuffer) in dac960_user_command_proc_write()
6528 return (DAC960_V2_ExecuteUserCommand(Controller, CommandBuffer) in dac960_user_command_proc_write()