Lines Matching refs:ctrl_ctx

1423 	struct xhci_input_control_ctx *ctrl_ctx;
1456 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx);
1457 if (!ctrl_ctx) {
1472 ctrl_ctx->add_flags = cpu_to_le32(EP0_FLAG);
1473 ctrl_ctx->drop_flags = 0;
1481 ctrl_ctx->add_flags = cpu_to_le32(SLOT_FLAG);
1775 struct xhci_input_control_ctx *ctrl_ctx;
1799 ctrl_ctx = xhci_get_input_control_ctx(in_ctx);
1800 if (!ctrl_ctx) {
1812 le32_to_cpu(ctrl_ctx->drop_flags) &
1821 ctrl_ctx->drop_flags |= cpu_to_le32(drop_flag);
1822 new_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags);
1824 ctrl_ctx->add_flags &= cpu_to_le32(~drop_flag);
1825 new_add_flags = le32_to_cpu(ctrl_ctx->add_flags);
1859 struct xhci_input_control_ctx *ctrl_ctx;
1889 ctrl_ctx = xhci_get_input_control_ctx(in_ctx);
1890 if (!ctrl_ctx) {
1901 !(le32_to_cpu(ctrl_ctx->drop_flags) & added_ctxs)) {
1911 if (le32_to_cpu(ctrl_ctx->add_flags) & added_ctxs) {
1928 ctrl_ctx->add_flags |= cpu_to_le32(added_ctxs);
1929 new_add_flags = le32_to_cpu(ctrl_ctx->add_flags);
1937 new_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags);
1956 struct xhci_input_control_ctx *ctrl_ctx;
1961 ctrl_ctx = xhci_get_input_control_ctx(virt_dev->in_ctx);
1962 if (!ctrl_ctx) {
1973 ctrl_ctx->drop_flags = 0;
1974 ctrl_ctx->add_flags = 0;
2089 struct xhci_input_control_ctx *ctrl_ctx)
2098 valid_add_flags = le32_to_cpu(ctrl_ctx->add_flags) >> 2;
2099 valid_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags) >> 2;
2110 struct xhci_input_control_ctx *ctrl_ctx)
2115 valid_add_flags = le32_to_cpu(ctrl_ctx->add_flags) >> 2;
2116 valid_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags) >> 2;
2136 struct xhci_input_control_ctx *ctrl_ctx)
2140 added_eps = xhci_count_num_new_endpoints(xhci, ctrl_ctx);
2163 struct xhci_input_control_ctx *ctrl_ctx)
2167 num_failed_eps = xhci_count_num_new_endpoints(xhci, ctrl_ctx);
2182 struct xhci_input_control_ctx *ctrl_ctx)
2186 num_dropped_eps = xhci_count_num_dropped_endpoints(xhci, ctrl_ctx);
2675 struct xhci_input_control_ctx *ctrl_ctx;
2681 ctrl_ctx = xhci_get_input_control_ctx(in_ctx);
2682 if (!ctrl_ctx) {
2689 if (!EP_IS_ADDED(ctrl_ctx, i) && !EP_IS_DROPPED(ctrl_ctx, i))
2698 if (EP_IS_DROPPED(ctrl_ctx, i))
2707 xhci_update_bw_info(xhci, virt_dev->in_ctx, ctrl_ctx, virt_dev);
2710 if (EP_IS_ADDED(ctrl_ctx, i))
2729 if (!EP_IS_ADDED(ctrl_ctx, i) && !EP_IS_DROPPED(ctrl_ctx, i))
2735 if (EP_IS_ADDED(ctrl_ctx, i)) {
2747 if (EP_IS_DROPPED(ctrl_ctx, i))
2769 struct xhci_input_control_ctx *ctrl_ctx;
2785 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx);
2786 if (!ctrl_ctx) {
2794 xhci_reserve_host_resources(xhci, ctrl_ctx)) {
2804 xhci_free_host_resources(xhci, ctrl_ctx);
2812 trace_xhci_configure_endpoint_ctrl_ctx(ctrl_ctx);
2825 xhci_free_host_resources(xhci, ctrl_ctx);
2850 xhci_free_host_resources(xhci, ctrl_ctx);
2852 xhci_finish_resource_reservation(xhci, ctrl_ctx);
2888 struct xhci_input_control_ctx *ctrl_ctx;
2910 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx);
2911 if (!ctrl_ctx) {
2917 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG);
2918 ctrl_ctx->add_flags &= cpu_to_le32(~EP0_FLAG);
2919 ctrl_ctx->drop_flags &= cpu_to_le32(~(SLOT_FLAG | EP0_FLAG));
2922 if (ctrl_ctx->add_flags == cpu_to_le32(SLOT_FLAG) &&
2923 ctrl_ctx->drop_flags == 0) {
2932 if ((virt_dev->eps[i-1].ring && !(ctrl_ctx->drop_flags & le32))
2933 || (ctrl_ctx->add_flags & le32) || i == 1) {
2948 if ((le32_to_cpu(ctrl_ctx->drop_flags) & (1 << (i + 1))) &&
2949 !(le32_to_cpu(ctrl_ctx->add_flags) & (1 << (i + 1)))) {
3009 struct xhci_input_control_ctx *ctrl_ctx,
3012 ctrl_ctx->add_flags = cpu_to_le32(add_flags);
3013 ctrl_ctx->drop_flags = cpu_to_le32(drop_flags);
3015 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG);
3077 struct xhci_input_control_ctx *ctrl_ctx;
3162 ctrl_ctx = xhci_get_input_control_ctx(cfg_cmd->in_ctx);
3163 if (!ctrl_ctx) {
3172 ctrl_ctx, ep_flag, ep_flag);
3362 struct xhci_input_control_ctx *ctrl_ctx;
3391 ctrl_ctx = xhci_get_input_control_ctx(config_cmd->in_ctx);
3392 if (!ctrl_ctx) {
3466 vdev->out_ctx, ctrl_ctx,
3529 struct xhci_input_control_ctx *ctrl_ctx;
3552 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx);
3553 if (!ctrl_ctx) {
3574 vdev->out_ctx, ctrl_ctx,
4023 struct xhci_input_control_ctx *ctrl_ctx;
4074 ctrl_ctx = xhci_get_input_control_ctx(virt_dev->in_ctx);
4075 if (!ctrl_ctx) {
4091 ctrl_ctx->add_flags = cpu_to_le32(SLOT_FLAG | EP0_FLAG);
4092 ctrl_ctx->drop_flags = 0;
4097 trace_xhci_address_ctrl_ctx(ctrl_ctx);
4181 ctrl_ctx->add_flags = 0;
4182 ctrl_ctx->drop_flags = 0;
4231 struct xhci_input_control_ctx *ctrl_ctx;
4257 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx);
4258 if (!ctrl_ctx) {
4269 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG);
4978 struct xhci_input_control_ctx *ctrl_ctx;
4998 ctrl_ctx = xhci_get_input_control_ctx(config_cmd->in_ctx);
4999 if (!ctrl_ctx) {
5016 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG);