msg_context 445 drivers/message/fusion/mptbase.h #define SET_MGMT_MSG_CONTEXT(msg_context, value) \ msg_context 446 drivers/message/fusion/mptbase.h msg_context = value; msg_context 455 drivers/message/fusion/mptbase.h u32 msg_context; msg_context 218 drivers/message/fusion/mptctl.c if (ioc->ioctl_cmds.msg_context != req->u.hdr.MsgContext) msg_context 927 drivers/message/fusion/mptctl.c SET_MGMT_MSG_CONTEXT(iocp->ioctl_cmds.msg_context, dlmsg->MsgContext); msg_context 987 drivers/message/fusion/mptctl.c SET_MGMT_MSG_CONTEXT(iocp->ioctl_cmds.msg_context, 0); msg_context 2164 drivers/message/fusion/mptctl.c SET_MGMT_MSG_CONTEXT(ioc->ioctl_cmds.msg_context, hdr->MsgContext); msg_context 2289 drivers/message/fusion/mptctl.c SET_MGMT_MSG_CONTEXT(ioc->ioctl_cmds.msg_context, 0); msg_context 2488 drivers/message/fusion/mptctl.c SET_MGMT_MSG_CONTEXT(ioc->ioctl_cmds.msg_context, msg_context 2527 drivers/message/fusion/mptctl.c SET_MGMT_MSG_CONTEXT(ioc->ioctl_cmds.msg_context, 0); msg_context 51 drivers/staging/vc04_services/bcm2835-camera/mmal-common.h struct mmal_msg_context *msg_context; msg_context 181 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c struct mmal_msg_context *msg_context; msg_context 185 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context = kzalloc(sizeof(*msg_context), GFP_KERNEL); msg_context 187 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c if (!msg_context) msg_context 195 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c handle = idr_alloc(&instance->context_map, msg_context, msg_context 200 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c kfree(msg_context); msg_context 204 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->instance = instance; msg_context 205 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->handle = handle; msg_context 207 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c return msg_context; msg_context 217 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c release_msg_context(struct mmal_msg_context *msg_context) msg_context 219 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c struct vchiq_mmal_instance *instance = msg_context->instance; msg_context 222 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c idr_remove(&instance->context_map, msg_context->handle); msg_context 224 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c kfree(msg_context); msg_context 246 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c struct mmal_msg_context *msg_context = msg_context 249 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c atomic_dec(&msg_context->u.bulk.port->buffers_with_vpu); msg_context 251 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.port->buffer_cb(msg_context->u.bulk.instance, msg_context 252 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.port, msg_context 253 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.status, msg_context 254 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.buffer, msg_context 255 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.buffer_used, msg_context 256 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.mmal_flags, msg_context 257 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.dts, msg_context 258 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.pts); msg_context 270 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c struct mmal_msg_context *msg_context = msg_context 273 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c struct vchiq_mmal_instance *instance = msg_context->instance; msg_context 274 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c unsigned long len = msg_context->u.bulk.buffer_used; msg_context 283 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.buffer->buffer, msg_context 290 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context); msg_context 296 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c __func__, msg_context, ret); msg_context 302 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c struct mmal_msg_context *msg_context) msg_context 308 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c if (!msg_context->u.bulk.buffer) { msg_context 325 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c if (rd_len > msg_context->u.bulk.buffer->buffer_size) { msg_context 326 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c rd_len = msg_context->u.bulk.buffer->buffer_size; msg_context 334 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.buffer_used = rd_len; msg_context 335 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.dts = msg->u.buffer_from_host.buffer_header.dts; msg_context 336 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.pts = msg->u.buffer_from_host.buffer_header.pts; msg_context 338 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c queue_work(msg_context->instance->bulk_wq, msg_context 339 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c &msg_context->u.bulk.buffer_to_host_work); msg_context 347 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c struct mmal_msg_context *msg_context) msg_context 349 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c memcpy(msg_context->u.bulk.buffer->buffer, msg_context 353 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.buffer_used = msg_context 364 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c struct mmal_msg_context *msg_context; msg_context 374 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c if (!buf->msg_context) { msg_context 379 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context = buf->msg_context; msg_context 382 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.instance = instance; msg_context 383 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.port = port; msg_context 384 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.buffer = buf; msg_context 385 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.buffer_used = 0; msg_context 388 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c INIT_WORK(&msg_context->u.bulk.work, buffer_work_cb); msg_context 389 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c INIT_WORK(&msg_context->u.bulk.buffer_to_host_work, msg_context 399 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c m.h.context = msg_context->handle; msg_context 406 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c m.u.buffer_from_host.drvbuf.client_context = msg_context->handle; msg_context 442 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c struct mmal_msg_context *msg_context; msg_context 450 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context = lookup_msg_context(instance, handle); msg_context 452 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c if (!msg_context) { msg_context 462 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.mmal_flags = msg_context 469 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.status = msg->h.status; msg_context 475 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.status = msg_context 476 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c bulk_receive(instance, msg, msg_context); msg_context 477 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c if (msg_context->u.bulk.status == 0) msg_context 483 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.status = 0; msg_context 484 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.buffer_used = 0; msg_context 488 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.status = msg_context 489 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c bulk_receive(instance, msg, msg_context); msg_context 490 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c if (msg_context->u.bulk.status == 0) msg_context 497 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.status); msg_context 502 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.status = inline_receive(instance, msg, msg_context 503 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context); msg_context 508 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.status = -EINVAL; msg_context 509 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.buffer_used = msg_context 514 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c schedule_work(&msg_context->u.bulk.work); msg_context 518 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c struct mmal_msg_context *msg_context) msg_context 520 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.status = 0; msg_context 523 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c schedule_work(&msg_context->u.bulk.work); msg_context 527 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c struct mmal_msg_context *msg_context) msg_context 529 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c pr_err("%s: bulk ABORTED msg_context:%p\n", __func__, msg_context); msg_context 531 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.status = -EINTR; msg_context 533 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c schedule_work(&msg_context->u.bulk.work); msg_context 546 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c struct mmal_msg_context *msg_context; msg_context 589 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context = lookup_msg_context(instance, msg_context 591 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c if (!msg_context) { msg_context 599 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.sync.msg_handle = msg_handle; msg_context 600 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.sync.msg = msg; msg_context 601 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.sync.msg_len = msg_len; msg_context 613 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c complete(&msg_context->u.sync.cmplt); msg_context 645 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c struct mmal_msg_context *msg_context; msg_context 658 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context = get_msg_context(instance); msg_context 659 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c if (IS_ERR(msg_context)) msg_context 660 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c return PTR_ERR(msg_context); msg_context 662 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c init_completion(&msg_context->u.sync.cmplt); msg_context 665 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg->h.context = msg_context->handle; msg_context 682 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c release_msg_context(msg_context); msg_context 686 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c timeout = wait_for_completion_timeout(&msg_context->u.sync.cmplt, msg_context 692 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c release_msg_context(msg_context); msg_context 696 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c *msg_out = msg_context->u.sync.msg; msg_context 697 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c *msg_handle_out = msg_context->u.sync.msg_handle; msg_context 698 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c release_msg_context(msg_context); msg_context 1590 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c struct mmal_msg_context *msg_context = get_msg_context(instance); msg_context 1592 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c if (IS_ERR(msg_context)) msg_context 1593 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c return (PTR_ERR(msg_context)); msg_context 1595 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c buf->msg_context = msg_context; msg_context 1601 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c struct mmal_msg_context *msg_context = buf->msg_context; msg_context 1603 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c if (msg_context) msg_context 1604 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c release_msg_context(msg_context); msg_context 1605 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c buf->msg_context = NULL;