18 #include <linux/kernel.h>
20 #include <linux/errno.h>
21 #include <linux/types.h>
22 #include <linux/fcntl.h>
24 #include <linux/pci.h>
28 #include <linux/list.h>
30 #include <linux/sched.h>
31 #include <linux/uuid.h>
98 dev_dbg(&dev->
pdev->dev,
"mei_ioctl_connect_client() Entry\n");
123 if (i >= 0 && !dev->
me_clients[i].props.fixed_address) {
128 dev_dbg(&dev->
pdev->dev,
"Connect to FW Client ID = %d\n",
130 dev_dbg(&dev->
pdev->dev,
"FW Client - Protocol Version = %d\n",
132 dev_dbg(&dev->
pdev->dev,
"FW Client - Max Msg Len = %d\n",
147 if (mei_cl_cmp_id(cl, cl_pos)) {
149 "remove file private data node host"
150 " client = %d, ME client = %d.\n",
157 dev_dbg(&dev->
pdev->dev,
"free file private data memory.\n");
186 dev_dbg(&dev->
pdev->dev,
"Sending Connect Message\n");
189 dev_dbg(&dev->
pdev->dev,
"Sending connect message - failed\n");
193 dev_dbg(&dev->
pdev->dev,
"Sending connect message - succeeded\n");
203 dev_dbg(&dev->
pdev->dev,
"Queuing the connect request due to device busy\n");
205 dev_dbg(&dev->
pdev->dev,
"add connect cb to control write list.\n");
217 dev_dbg(&dev->
pdev->dev,
"successfully connected to FW client.\n");
221 dev_dbg(&dev->
pdev->dev,
"failed to connect to FW client.cl->state = %d.\n",
225 "wait_event_interruptible_timeout failed on client"
226 " connect message fw response message.\n");
236 dev_dbg(&dev->
pdev->dev,
"free connect cb memory.");
303 dev_dbg(&dev->
pdev->dev,
"amthi client not found.\n");
314 dev_dbg(&dev->
pdev->dev,
"waiting for amthi data\n");
361 dev_dbg(&dev->
pdev->dev,
"amthi cb->response_buffer size - %d\n",
363 dev_dbg(&dev->
pdev->dev,
"amthi cb->information - %lu\n",
380 dev_dbg(&dev->
pdev->dev,
"free amthi cb memory.\n");
408 dev_dbg(&dev->
pdev->dev,
"check if read is pending.\n");
418 dev_dbg(&dev->
pdev->dev,
"allocation call back successful. host client = %d, ME client = %d\n",
433 dev_dbg(&dev->
pdev->dev,
"allocation call back data success.\n");
471 dev_dbg(&dev->
pdev->dev,
"write data to amthi client.\n");
490 mei_hdr.
length = mei_hbuf_max_data(dev);
511 dev_dbg(&dev->
pdev->dev,
"add amthi cb to write waiting list\n");
517 dev_dbg(&dev->
pdev->dev,
"message does not complete, "
518 "so add amthi cb to write list.\n");
524 dev_dbg(&dev->
pdev->dev,
"host buffer is not empty");
526 dev_dbg(&dev->
pdev->dev,
"No flow control credentials, "
527 "so add iamthif cb to write list.\n");
558 dev_dbg(&dev->
pdev->dev,
"complete amthi cmd_list cb.\n");
569 "amthi write failed status = %d\n",