Lines Matching refs:ctrl_ctx
441 struct cdnsp_input_control_ctx *ctrl_ctx; in cdnsp_zero_in_ctx() local
446 ctrl_ctx = cdnsp_get_input_control_ctx(&pdev->in_ctx); in cdnsp_zero_in_ctx()
454 ctrl_ctx->drop_flags = 0; in cdnsp_zero_in_ctx()
455 ctrl_ctx->add_flags = 0; in cdnsp_zero_in_ctx()
638 struct cdnsp_input_control_ctx *ctrl_ctx; in cdnsp_update_eps_configuration() local
644 ctrl_ctx = cdnsp_get_input_control_ctx(&pdev->in_ctx); in cdnsp_update_eps_configuration()
647 if (ctrl_ctx->add_flags == 0 && ctrl_ctx->drop_flags == 0) in cdnsp_update_eps_configuration()
650 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); in cdnsp_update_eps_configuration()
651 ctrl_ctx->add_flags &= cpu_to_le32(~EP0_FLAG); in cdnsp_update_eps_configuration()
652 ctrl_ctx->drop_flags &= cpu_to_le32(~(SLOT_FLAG | EP0_FLAG)); in cdnsp_update_eps_configuration()
659 if ((pdev->eps[i - 1].ring && !(ctrl_ctx->drop_flags & le32)) || in cdnsp_update_eps_configuration()
660 (ctrl_ctx->add_flags & le32) || i == 1) { in cdnsp_update_eps_configuration()
669 if ((ctrl_ctx->add_flags != cpu_to_le32(SLOT_FLAG) && in cdnsp_update_eps_configuration()
671 (ep_sts != EP_STATE_DISABLED && ctrl_ctx->drop_flags)) in cdnsp_update_eps_configuration()
855 struct cdnsp_input_control_ctx *ctrl_ctx; in cdnsp_setup_device() local
877 ctrl_ctx = cdnsp_get_input_control_ctx(&pdev->in_ctx); in cdnsp_setup_device()
887 ctrl_ctx->add_flags = cpu_to_le32(SLOT_FLAG | EP0_FLAG); in cdnsp_setup_device()
888 ctrl_ctx->drop_flags = 0; in cdnsp_setup_device()
899 ctrl_ctx->add_flags = 0; in cdnsp_setup_device()
900 ctrl_ctx->drop_flags = 0; in cdnsp_setup_device()
929 struct cdnsp_input_control_ctx *ctrl_ctx; in cdnsp_gadget_ep_enable() local
980 ctrl_ctx = cdnsp_get_input_control_ctx(&pdev->in_ctx); in cdnsp_gadget_ep_enable()
981 ctrl_ctx->add_flags = cpu_to_le32(added_ctxs); in cdnsp_gadget_ep_enable()
982 ctrl_ctx->drop_flags = 0; in cdnsp_gadget_ep_enable()
1002 struct cdnsp_input_control_ctx *ctrl_ctx; in cdnsp_gadget_ep_disable() local
1040 ctrl_ctx = cdnsp_get_input_control_ctx(&pdev->in_ctx); in cdnsp_gadget_ep_disable()
1041 ctrl_ctx->drop_flags = cpu_to_le32(drop_flag); in cdnsp_gadget_ep_disable()
1042 ctrl_ctx->add_flags = 0; in cdnsp_gadget_ep_disable()