Lines Matching refs:command_data

233 	struct ibmasmfs_command_data *command_data;  in command_file_open()  local
238 command_data = kmalloc(sizeof(struct ibmasmfs_command_data), GFP_KERNEL); in command_file_open()
239 if (!command_data) in command_file_open()
242 command_data->command = NULL; in command_file_open()
243 command_data->sp = inode->i_private; in command_file_open()
244 file->private_data = command_data; in command_file_open()
250 struct ibmasmfs_command_data *command_data = file->private_data; in command_file_close() local
252 if (command_data->command) in command_file_close()
253 command_put(command_data->command); in command_file_close()
255 kfree(command_data); in command_file_close()
261 struct ibmasmfs_command_data *command_data = file->private_data; in command_file_read() local
273 spin_lock_irqsave(&command_data->sp->lock, flags); in command_file_read()
274 cmd = command_data->command; in command_file_read()
276 spin_unlock_irqrestore(&command_data->sp->lock, flags); in command_file_read()
279 command_data->command = NULL; in command_file_read()
280 spin_unlock_irqrestore(&command_data->sp->lock, flags); in command_file_read()
298 struct ibmasmfs_command_data *command_data = file->private_data; in command_file_write() local
310 if (command_data->command) in command_file_write()
313 cmd = ibmasm_new_command(command_data->sp, count); in command_file_write()
322 spin_lock_irqsave(&command_data->sp->lock, flags); in command_file_write()
323 if (command_data->command) { in command_file_write()
324 spin_unlock_irqrestore(&command_data->sp->lock, flags); in command_file_write()
328 command_data->command = cmd; in command_file_write()
329 spin_unlock_irqrestore(&command_data->sp->lock, flags); in command_file_write()
331 ibmasm_exec_command(command_data->sp, cmd); in command_file_write()