Lines Matching defs:item
156 struct opal_prd_msg_queue_item *item;
162 if (count < sizeof(item->msg))
168 item = NULL;
174 item = list_first_entry(&opal_prd_msg_queue,
176 list_del(&item->list);
180 if (item)
192 size = be16_to_cpu(item->msg.size);
198 rc = copy_to_user(buf, &item->msg, size);
204 kfree(item);
211 list_add(&item->list, &opal_prd_msg_queue);
339 struct opal_prd_msg_queue_item *item;
348 /* Calculate total size of the message and item we need to store. The
352 item_size = msg_size + sizeof(*item) - sizeof(item->msg);
354 item = kzalloc(item_size, GFP_ATOMIC);
355 if (!item)
358 memcpy(&item->msg, msg->params, msg_size);
361 list_add_tail(&item->list, &opal_prd_msg_queue);