Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
iorw.c File Reference
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/errno.h>
#include <linux/types.h>
#include <linux/fcntl.h>
#include <linux/aio.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/ioctl.h>
#include <linux/cdev.h>
#include <linux/list.h>
#include <linux/delay.h>
#include <linux/sched.h>
#include <linux/uuid.h>
#include <linux/jiffies.h>
#include <linux/uaccess.h>
#include "mei_dev.h"
#include "hw.h"
#include <linux/mei.h>
#include "interface.h"

Go to the source code of this file.

Functions

int mei_me_cl_by_id (struct mei_device *dev, u8 client_id)
 
int mei_ioctl_connect_client (struct file *file, struct mei_connect_client_data *data)
 
struct mei_cl_cbfind_amthi_read_list_entry (struct mei_device *dev, struct file *file)
 
int amthi_read (struct mei_device *dev, struct file *file, char __user *ubuf, size_t length, loff_t *offset)
 
int mei_start_read (struct mei_device *dev, struct mei_cl *cl)
 
int amthi_write (struct mei_device *dev, struct mei_cl_cb *cb)
 
void mei_run_next_iamthif_cmd (struct mei_device *dev)
 
void mei_free_cb_private (struct mei_cl_cb *cb)
 

Function Documentation

int amthi_read ( struct mei_device dev,
struct file file,
char __user ubuf,
size_t  length,
loff_t *  offset 
)

Definition at line 284 of file iorw.c.

int amthi_write ( struct mei_device dev,
struct mei_cl_cb cb 
)

amthi_write - write iamthif data to amthi client

: the device structure : mei call back struct

returns 0 on success, <0 on failure.

Definition at line 463 of file iorw.c.

struct mei_cl_cb* find_amthi_read_list_entry ( struct mei_device dev,
struct file file 
)
read

Definition at line 249 of file iorw.c.

void mei_free_cb_private ( struct mei_cl_cb cb)

mei_free_cb_private - free mei_cb_private related memory

: mei callback struct

Definition at line 583 of file iorw.c.

int mei_ioctl_connect_client ( struct file file,
struct mei_connect_client_data data 
)

Definition at line 78 of file iorw.c.

int mei_me_cl_by_id ( struct mei_device dev,
u8  client_id 
)

mei_me_cl_by_id return index to me_clients for client_id

: the device structure : me client id

Locking: called under "dev->device_lock" lock

returns index on success, -ENOENT on failure.

Definition at line 52 of file iorw.c.

void mei_run_next_iamthif_cmd ( struct mei_device dev)

iamthif_ioctl_send_msg - send cmd data to amthi client

: the device structure

returns 0 on success, <0 on failure.

Definition at line 540 of file iorw.c.

int mei_start_read ( struct mei_device dev,
struct mei_cl cl 
)

mei_start_read - the start read client message function.

: the device structure : minor number : private data of the file object

returns 0 on success, <0 on failure.

Definition at line 396 of file iorw.c.