Lines Matching defs:item
160 struct opal_prd_msg_queue_item *item;
166 if (count < sizeof(item->msg.header))
172 item = NULL;
178 item = list_first_entry(&opal_prd_msg_queue,
180 list_del(&item->list);
184 if (item)
196 size = be16_to_cpu(item->msg.header.size);
202 rc = copy_to_user(buf, &item->msg, size);
208 kfree(item);
215 list_add(&item->list, &opal_prd_msg_queue);
343 struct opal_prd_msg_queue_item *item;
352 /* Calculate total size of the message and item we need to store. The
356 item_size = msg_size + sizeof(*item) - sizeof(item->msg);
358 item = kzalloc(item_size, GFP_ATOMIC);
359 if (!item)
362 memcpy(&item->msg.data, msg->params, msg_size);
365 list_add_tail(&item->list, &opal_prd_msg_queue);