Lines Matching refs:ctrl_ctx

1391 	struct xhci_input_control_ctx *ctrl_ctx;  in xhci_check_maxpacket()  local
1424 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_check_maxpacket()
1425 if (!ctrl_ctx) { in xhci_check_maxpacket()
1440 ctrl_ctx->add_flags = cpu_to_le32(EP0_FLAG); in xhci_check_maxpacket()
1441 ctrl_ctx->drop_flags = 0; in xhci_check_maxpacket()
1449 ctrl_ctx->add_flags = cpu_to_le32(SLOT_FLAG); in xhci_check_maxpacket()
1740 struct xhci_input_control_ctx *ctrl_ctx; in xhci_drop_endpoint() local
1764 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); in xhci_drop_endpoint()
1765 if (!ctrl_ctx) { in xhci_drop_endpoint()
1777 le32_to_cpu(ctrl_ctx->drop_flags) & in xhci_drop_endpoint()
1786 ctrl_ctx->drop_flags |= cpu_to_le32(drop_flag); in xhci_drop_endpoint()
1787 new_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags); in xhci_drop_endpoint()
1789 ctrl_ctx->add_flags &= cpu_to_le32(~drop_flag); in xhci_drop_endpoint()
1790 new_add_flags = le32_to_cpu(ctrl_ctx->add_flags); in xhci_drop_endpoint()
1826 struct xhci_input_control_ctx *ctrl_ctx; in xhci_add_endpoint() local
1856 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); in xhci_add_endpoint()
1857 if (!ctrl_ctx) { in xhci_add_endpoint()
1868 !(le32_to_cpu(ctrl_ctx->drop_flags) & added_ctxs)) { in xhci_add_endpoint()
1878 if (le32_to_cpu(ctrl_ctx->add_flags) & added_ctxs) { in xhci_add_endpoint()
1904 ctrl_ctx->add_flags |= cpu_to_le32(added_ctxs); in xhci_add_endpoint()
1905 new_add_flags = le32_to_cpu(ctrl_ctx->add_flags); in xhci_add_endpoint()
1913 new_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags); in xhci_add_endpoint()
1931 struct xhci_input_control_ctx *ctrl_ctx; in xhci_zero_in_ctx() local
1936 ctrl_ctx = xhci_get_input_control_ctx(virt_dev->in_ctx); in xhci_zero_in_ctx()
1937 if (!ctrl_ctx) { in xhci_zero_in_ctx()
1948 ctrl_ctx->drop_flags = 0; in xhci_zero_in_ctx()
1949 ctrl_ctx->add_flags = 0; in xhci_zero_in_ctx()
2064 struct xhci_input_control_ctx *ctrl_ctx) in xhci_count_num_new_endpoints() argument
2073 valid_add_flags = le32_to_cpu(ctrl_ctx->add_flags) >> 2; in xhci_count_num_new_endpoints()
2074 valid_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags) >> 2; in xhci_count_num_new_endpoints()
2085 struct xhci_input_control_ctx *ctrl_ctx) in xhci_count_num_dropped_endpoints() argument
2090 valid_add_flags = le32_to_cpu(ctrl_ctx->add_flags) >> 2; in xhci_count_num_dropped_endpoints()
2091 valid_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags) >> 2; in xhci_count_num_dropped_endpoints()
2111 struct xhci_input_control_ctx *ctrl_ctx) in xhci_reserve_host_resources() argument
2115 added_eps = xhci_count_num_new_endpoints(xhci, ctrl_ctx); in xhci_reserve_host_resources()
2138 struct xhci_input_control_ctx *ctrl_ctx) in xhci_free_host_resources() argument
2142 num_failed_eps = xhci_count_num_new_endpoints(xhci, ctrl_ctx); in xhci_free_host_resources()
2157 struct xhci_input_control_ctx *ctrl_ctx) in xhci_finish_resource_reservation() argument
2161 num_dropped_eps = xhci_count_num_dropped_endpoints(xhci, ctrl_ctx); in xhci_finish_resource_reservation()
2657 struct xhci_input_control_ctx *ctrl_ctx; in xhci_reserve_bandwidth() local
2663 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); in xhci_reserve_bandwidth()
2664 if (!ctrl_ctx) { in xhci_reserve_bandwidth()
2671 if (!EP_IS_ADDED(ctrl_ctx, i) && !EP_IS_DROPPED(ctrl_ctx, i)) in xhci_reserve_bandwidth()
2680 if (EP_IS_DROPPED(ctrl_ctx, i)) in xhci_reserve_bandwidth()
2689 xhci_update_bw_info(xhci, virt_dev->in_ctx, ctrl_ctx, virt_dev); in xhci_reserve_bandwidth()
2692 if (EP_IS_ADDED(ctrl_ctx, i)) in xhci_reserve_bandwidth()
2711 if (!EP_IS_ADDED(ctrl_ctx, i) && !EP_IS_DROPPED(ctrl_ctx, i)) in xhci_reserve_bandwidth()
2717 if (EP_IS_ADDED(ctrl_ctx, i)) { in xhci_reserve_bandwidth()
2729 if (EP_IS_DROPPED(ctrl_ctx, i)) in xhci_reserve_bandwidth()
2751 struct xhci_input_control_ctx *ctrl_ctx; in xhci_configure_endpoint() local
2767 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_configure_endpoint()
2768 if (!ctrl_ctx) { in xhci_configure_endpoint()
2776 xhci_reserve_host_resources(xhci, ctrl_ctx)) { in xhci_configure_endpoint()
2786 xhci_free_host_resources(xhci, ctrl_ctx); in xhci_configure_endpoint()
2794 trace_xhci_configure_endpoint_ctrl_ctx(ctrl_ctx); in xhci_configure_endpoint()
2807 xhci_free_host_resources(xhci, ctrl_ctx); in xhci_configure_endpoint()
2832 xhci_free_host_resources(xhci, ctrl_ctx); in xhci_configure_endpoint()
2834 xhci_finish_resource_reservation(xhci, ctrl_ctx); in xhci_configure_endpoint()
2870 struct xhci_input_control_ctx *ctrl_ctx; in xhci_check_bandwidth() local
2892 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_check_bandwidth()
2893 if (!ctrl_ctx) { in xhci_check_bandwidth()
2899 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); in xhci_check_bandwidth()
2900 ctrl_ctx->add_flags &= cpu_to_le32(~EP0_FLAG); in xhci_check_bandwidth()
2901 ctrl_ctx->drop_flags &= cpu_to_le32(~(SLOT_FLAG | EP0_FLAG)); in xhci_check_bandwidth()
2904 if (ctrl_ctx->add_flags == cpu_to_le32(SLOT_FLAG) && in xhci_check_bandwidth()
2905 ctrl_ctx->drop_flags == 0) { in xhci_check_bandwidth()
2914 if ((virt_dev->eps[i-1].ring && !(ctrl_ctx->drop_flags & le32)) in xhci_check_bandwidth()
2915 || (ctrl_ctx->add_flags & le32) || i == 1) { in xhci_check_bandwidth()
2930 if ((le32_to_cpu(ctrl_ctx->drop_flags) & (1 << (i + 1))) && in xhci_check_bandwidth()
2931 !(le32_to_cpu(ctrl_ctx->add_flags) & (1 << (i + 1)))) { in xhci_check_bandwidth()
2989 struct xhci_input_control_ctx *ctrl_ctx, in xhci_setup_input_ctx_for_config_ep() argument
2992 ctrl_ctx->add_flags = cpu_to_le32(add_flags); in xhci_setup_input_ctx_for_config_ep()
2993 ctrl_ctx->drop_flags = cpu_to_le32(drop_flags); in xhci_setup_input_ctx_for_config_ep()
2995 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); in xhci_setup_input_ctx_for_config_ep()
3002 struct xhci_input_control_ctx *ctrl_ctx; in xhci_setup_input_ctx_for_quirk() local
3009 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); in xhci_setup_input_ctx_for_quirk()
3010 if (!ctrl_ctx) { in xhci_setup_input_ctx_for_quirk()
3033 xhci->devs[slot_id]->out_ctx, ctrl_ctx, in xhci_setup_input_ctx_for_quirk()
3137 struct xhci_input_control_ctx *ctrl_ctx; in xhci_endpoint_reset() local
3221 ctrl_ctx = xhci_get_input_control_ctx(cfg_cmd->in_ctx); in xhci_endpoint_reset()
3223 ctrl_ctx, ep_flag, ep_flag); in xhci_endpoint_reset()
3411 struct xhci_input_control_ctx *ctrl_ctx; in xhci_alloc_streams() local
3440 ctrl_ctx = xhci_get_input_control_ctx(config_cmd->in_ctx); in xhci_alloc_streams()
3441 if (!ctrl_ctx) { in xhci_alloc_streams()
3515 vdev->out_ctx, ctrl_ctx, in xhci_alloc_streams()
3578 struct xhci_input_control_ctx *ctrl_ctx; in xhci_free_streams() local
3601 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_free_streams()
3602 if (!ctrl_ctx) { in xhci_free_streams()
3623 vdev->out_ctx, ctrl_ctx, in xhci_free_streams()
4065 struct xhci_input_control_ctx *ctrl_ctx; in xhci_setup_device() local
4116 ctrl_ctx = xhci_get_input_control_ctx(virt_dev->in_ctx); in xhci_setup_device()
4117 if (!ctrl_ctx) { in xhci_setup_device()
4133 ctrl_ctx->add_flags = cpu_to_le32(SLOT_FLAG | EP0_FLAG); in xhci_setup_device()
4134 ctrl_ctx->drop_flags = 0; in xhci_setup_device()
4139 trace_xhci_address_ctrl_ctx(ctrl_ctx); in xhci_setup_device()
4222 ctrl_ctx->add_flags = 0; in xhci_setup_device()
4223 ctrl_ctx->drop_flags = 0; in xhci_setup_device()
4272 struct xhci_input_control_ctx *ctrl_ctx; in xhci_change_max_exit_latency() local
4294 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_change_max_exit_latency()
4295 if (!ctrl_ctx) { in xhci_change_max_exit_latency()
4305 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); in xhci_change_max_exit_latency()
5028 struct xhci_input_control_ctx *ctrl_ctx; in xhci_update_hub_device() local
5048 ctrl_ctx = xhci_get_input_control_ctx(config_cmd->in_ctx); in xhci_update_hub_device()
5049 if (!ctrl_ctx) { in xhci_update_hub_device()
5066 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); in xhci_update_hub_device()