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()
642 struct cdnsp_input_control_ctx *ctrl_ctx; in cdnsp_update_eps_configuration() local
648 ctrl_ctx = cdnsp_get_input_control_ctx(&pdev->in_ctx); in cdnsp_update_eps_configuration()
651 if (ctrl_ctx->add_flags == 0 && ctrl_ctx->drop_flags == 0) in cdnsp_update_eps_configuration()
654 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); in cdnsp_update_eps_configuration()
655 ctrl_ctx->add_flags &= cpu_to_le32(~EP0_FLAG); in cdnsp_update_eps_configuration()
656 ctrl_ctx->drop_flags &= cpu_to_le32(~(SLOT_FLAG | EP0_FLAG)); in cdnsp_update_eps_configuration()
663 if ((pdev->eps[i - 1].ring && !(ctrl_ctx->drop_flags & le32)) || in cdnsp_update_eps_configuration()
664 (ctrl_ctx->add_flags & le32) || i == 1) { in cdnsp_update_eps_configuration()
673 if ((ctrl_ctx->add_flags != cpu_to_le32(SLOT_FLAG) && in cdnsp_update_eps_configuration()
675 (ep_sts != EP_STATE_DISABLED && ctrl_ctx->drop_flags)) in cdnsp_update_eps_configuration()
859 struct cdnsp_input_control_ctx *ctrl_ctx; in cdnsp_setup_device() local
881 ctrl_ctx = cdnsp_get_input_control_ctx(&pdev->in_ctx); in cdnsp_setup_device()
891 ctrl_ctx->add_flags = cpu_to_le32(SLOT_FLAG | EP0_FLAG); in cdnsp_setup_device()
892 ctrl_ctx->drop_flags = 0; in cdnsp_setup_device()
903 ctrl_ctx->add_flags = 0; in cdnsp_setup_device()
904 ctrl_ctx->drop_flags = 0; in cdnsp_setup_device()
933 struct cdnsp_input_control_ctx *ctrl_ctx; in cdnsp_gadget_ep_enable() local
984 ctrl_ctx = cdnsp_get_input_control_ctx(&pdev->in_ctx); in cdnsp_gadget_ep_enable()
985 ctrl_ctx->add_flags = cpu_to_le32(added_ctxs); in cdnsp_gadget_ep_enable()
986 ctrl_ctx->drop_flags = 0; in cdnsp_gadget_ep_enable()
1006 struct cdnsp_input_control_ctx *ctrl_ctx; in cdnsp_gadget_ep_disable() local
1046 ctrl_ctx = cdnsp_get_input_control_ctx(&pdev->in_ctx); in cdnsp_gadget_ep_disable()
1047 ctrl_ctx->drop_flags = cpu_to_le32(drop_flag); in cdnsp_gadget_ep_disable()
1048 ctrl_ctx->add_flags = 0; in cdnsp_gadget_ep_disable()