Linux Kernel
3.7.1
|
Go to the source code of this file.
Functions | |
void | mei_hcsr_set (struct mei_device *dev) |
void | mei_enable_interrupts (struct mei_device *dev) |
void | mei_disable_interrupts (struct mei_device *dev) |
bool | mei_hbuf_is_empty (struct mei_device *dev) |
int | mei_hbuf_empty_slots (struct mei_device *dev) |
int | mei_write_message (struct mei_device *dev, struct mei_msg_hdr *header, unsigned char *buf, unsigned long length) |
int | mei_count_full_read_slots (struct mei_device *dev) |
void | mei_read_slots (struct mei_device *dev, unsigned char *buffer, unsigned long buffer_length) |
int | mei_flow_ctrl_creds (struct mei_device *dev, struct mei_cl *cl) |
int | mei_flow_ctrl_reduce (struct mei_device *dev, struct mei_cl *cl) |
int | mei_send_flow_control (struct mei_device *dev, struct mei_cl *cl) |
int | mei_other_client_is_connecting (struct mei_device *dev, struct mei_cl *cl) |
int | mei_disconnect (struct mei_device *dev, struct mei_cl *cl) |
int | mei_connect (struct mei_device *dev, struct mei_cl *cl) |
int mei_connect | ( | struct mei_device * | dev, |
struct mei_cl * | cl | ||
) |
mei_connect - sends connect message to fw.
: the device structure : private data of the file object
This function returns -EIO on write failure
Definition at line 385 of file interface.c.
int mei_count_full_read_slots | ( | struct mei_device * | dev | ) |
mei_count_full_read_slots - counts read full slots.
: the device structure
returns -1(ESLOTS_OVERFLOW) if overflow, otherwise filled slots count
Definition at line 171 of file interface.c.
void mei_disable_interrupts | ( | struct mei_device * | dev | ) |
mei_csr_disable_interrupts - disables mei device interrupts
: the device structure
Definition at line 54 of file interface.c.
int mei_disconnect | ( | struct mei_device * | dev, |
struct mei_cl * | cl | ||
) |
mei_disconnect - sends disconnect message to fw.
: the device structure : private data of the file object
This function returns -EIO on write failure
Definition at line 352 of file interface.c.
void mei_enable_interrupts | ( | struct mei_device * | dev | ) |
mei_csr_enable_interrupts - enables mei device interrupts
: the device structure
Definition at line 43 of file interface.c.
int mei_flow_ctrl_creds | ( | struct mei_device * | dev, |
struct mei_cl * | cl | ||
) |
mei_flow_ctrl_creds - checks flow_control credentials.
: the device structure : private data of the file object
returns 1 if mei_flow_ctrl_creds >0, 0 - otherwise. -ENOENT if mei_cl is not present -EINVAL if single_recv_buf == 0
Definition at line 224 of file interface.c.
int mei_flow_ctrl_reduce | ( | struct mei_device * | dev, |
struct mei_cl * | cl | ||
) |
mei_flow_ctrl_reduce - reduces flow_control.
: the device structure : private data of the file object
Definition at line 259 of file interface.c.
int mei_hbuf_empty_slots | ( | struct mei_device * | dev | ) |
mei_hbuf_empty_slots - counts write empty slots.
: the device structure
returns -1(ESLOTS_OVERFLOW) if overflow, otherwise empty slots count
Definition at line 98 of file interface.c.
bool mei_hbuf_is_empty | ( | struct mei_device * | dev | ) |
mei_hbuf_is_empty - checks if host buffer is empty.
: the device structure
returns true if empty, false - otherwise.
Definition at line 86 of file interface.c.
void mei_hcsr_set | ( | struct mei_device * | dev | ) |
mei_set_csr_register - writes H_CSR register to the mei device, and ignores the H_IS bit for it is write-one-to-zero.
: the device structure
Definition at line 30 of file interface.c.
int mei_other_client_is_connecting | ( | struct mei_device * | dev, |
struct mei_cl * | cl | ||
) |
mei_other_client_is_connecting - checks if other client with the same client id is connected.
: the device structure : private data of the file object
returns 1 if other client is connected, 0 - otherwise.
Definition at line 328 of file interface.c.
void mei_read_slots | ( | struct mei_device * | dev, |
unsigned char * | buffer, | ||
unsigned long | buffer_length | ||
) |
mei_read_slots - reads a message from mei device.
: the device structure : message buffer will be written : message size will be read
Definition at line 197 of file interface.c.
int mei_send_flow_control | ( | struct mei_device * | dev, |
struct mei_cl * | cl | ||
) |
mei_send_flow_control - sends flow control to fw.
: the device structure : private data of the file object
This function returns -EIO on write failure
Definition at line 292 of file interface.c.
int mei_write_message | ( | struct mei_device * | dev, |
struct mei_msg_hdr * | header, | ||
unsigned char * | buf, | ||
unsigned long | length | ||
) |
mei_write_message - writes a message to mei device.
: the device structure : header of message : message buffer will be written : message size will be written
This function returns -EIO if write has failed
Definition at line 122 of file interface.c.