Lines Matching refs:ctrl_ctx

1389 	struct xhci_input_control_ctx *ctrl_ctx;  in xhci_check_maxpacket()  local
1422 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_check_maxpacket()
1423 if (!ctrl_ctx) { in xhci_check_maxpacket()
1437 ctrl_ctx->add_flags = cpu_to_le32(EP0_FLAG); in xhci_check_maxpacket()
1438 ctrl_ctx->drop_flags = 0; in xhci_check_maxpacket()
1446 ctrl_ctx->add_flags = cpu_to_le32(SLOT_FLAG); in xhci_check_maxpacket()
1737 struct xhci_input_control_ctx *ctrl_ctx; in xhci_drop_endpoint() local
1761 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); in xhci_drop_endpoint()
1762 if (!ctrl_ctx) { in xhci_drop_endpoint()
1774 le32_to_cpu(ctrl_ctx->drop_flags) & in xhci_drop_endpoint()
1783 ctrl_ctx->drop_flags |= cpu_to_le32(drop_flag); in xhci_drop_endpoint()
1784 new_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags); in xhci_drop_endpoint()
1786 ctrl_ctx->add_flags &= cpu_to_le32(~drop_flag); in xhci_drop_endpoint()
1787 new_add_flags = le32_to_cpu(ctrl_ctx->add_flags); in xhci_drop_endpoint()
1823 struct xhci_input_control_ctx *ctrl_ctx; in xhci_add_endpoint() local
1853 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); in xhci_add_endpoint()
1854 if (!ctrl_ctx) { in xhci_add_endpoint()
1865 !(le32_to_cpu(ctrl_ctx->drop_flags) & added_ctxs)) { in xhci_add_endpoint()
1875 if (le32_to_cpu(ctrl_ctx->add_flags) & added_ctxs) { in xhci_add_endpoint()
1901 ctrl_ctx->add_flags |= cpu_to_le32(added_ctxs); in xhci_add_endpoint()
1902 new_add_flags = le32_to_cpu(ctrl_ctx->add_flags); in xhci_add_endpoint()
1910 new_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags); in xhci_add_endpoint()
1930 struct xhci_input_control_ctx *ctrl_ctx; in xhci_zero_in_ctx() local
1935 ctrl_ctx = xhci_get_input_control_ctx(virt_dev->in_ctx); in xhci_zero_in_ctx()
1936 if (!ctrl_ctx) { in xhci_zero_in_ctx()
1947 ctrl_ctx->drop_flags = 0; in xhci_zero_in_ctx()
1948 ctrl_ctx->add_flags = 0; in xhci_zero_in_ctx()
2063 struct xhci_input_control_ctx *ctrl_ctx) in xhci_count_num_new_endpoints() argument
2072 valid_add_flags = le32_to_cpu(ctrl_ctx->add_flags) >> 2; in xhci_count_num_new_endpoints()
2073 valid_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags) >> 2; in xhci_count_num_new_endpoints()
2084 struct xhci_input_control_ctx *ctrl_ctx) in xhci_count_num_dropped_endpoints() argument
2089 valid_add_flags = le32_to_cpu(ctrl_ctx->add_flags) >> 2; in xhci_count_num_dropped_endpoints()
2090 valid_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags) >> 2; in xhci_count_num_dropped_endpoints()
2110 struct xhci_input_control_ctx *ctrl_ctx) in xhci_reserve_host_resources() argument
2114 added_eps = xhci_count_num_new_endpoints(xhci, ctrl_ctx); in xhci_reserve_host_resources()
2137 struct xhci_input_control_ctx *ctrl_ctx) in xhci_free_host_resources() argument
2141 num_failed_eps = xhci_count_num_new_endpoints(xhci, ctrl_ctx); in xhci_free_host_resources()
2156 struct xhci_input_control_ctx *ctrl_ctx) in xhci_finish_resource_reservation() argument
2160 num_dropped_eps = xhci_count_num_dropped_endpoints(xhci, ctrl_ctx); in xhci_finish_resource_reservation()
2656 struct xhci_input_control_ctx *ctrl_ctx; in xhci_reserve_bandwidth() local
2662 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); in xhci_reserve_bandwidth()
2663 if (!ctrl_ctx) { in xhci_reserve_bandwidth()
2670 if (!EP_IS_ADDED(ctrl_ctx, i) && !EP_IS_DROPPED(ctrl_ctx, i)) in xhci_reserve_bandwidth()
2679 if (EP_IS_DROPPED(ctrl_ctx, i)) in xhci_reserve_bandwidth()
2688 xhci_update_bw_info(xhci, virt_dev->in_ctx, ctrl_ctx, virt_dev); in xhci_reserve_bandwidth()
2691 if (EP_IS_ADDED(ctrl_ctx, i)) in xhci_reserve_bandwidth()
2710 if (!EP_IS_ADDED(ctrl_ctx, i) && !EP_IS_DROPPED(ctrl_ctx, i)) in xhci_reserve_bandwidth()
2716 if (EP_IS_ADDED(ctrl_ctx, i)) { in xhci_reserve_bandwidth()
2728 if (EP_IS_DROPPED(ctrl_ctx, i)) in xhci_reserve_bandwidth()
2750 struct xhci_input_control_ctx *ctrl_ctx; in xhci_configure_endpoint() local
2766 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_configure_endpoint()
2767 if (!ctrl_ctx) { in xhci_configure_endpoint()
2775 xhci_reserve_host_resources(xhci, ctrl_ctx)) { in xhci_configure_endpoint()
2785 xhci_free_host_resources(xhci, ctrl_ctx); in xhci_configure_endpoint()
2793 trace_xhci_configure_endpoint_ctrl_ctx(ctrl_ctx); in xhci_configure_endpoint()
2806 xhci_free_host_resources(xhci, ctrl_ctx); in xhci_configure_endpoint()
2831 xhci_free_host_resources(xhci, ctrl_ctx); in xhci_configure_endpoint()
2833 xhci_finish_resource_reservation(xhci, ctrl_ctx); in xhci_configure_endpoint()
2869 struct xhci_input_control_ctx *ctrl_ctx; in xhci_check_bandwidth() local
2891 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_check_bandwidth()
2892 if (!ctrl_ctx) { in xhci_check_bandwidth()
2898 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); in xhci_check_bandwidth()
2899 ctrl_ctx->add_flags &= cpu_to_le32(~EP0_FLAG); in xhci_check_bandwidth()
2900 ctrl_ctx->drop_flags &= cpu_to_le32(~(SLOT_FLAG | EP0_FLAG)); in xhci_check_bandwidth()
2903 if (ctrl_ctx->add_flags == cpu_to_le32(SLOT_FLAG) && in xhci_check_bandwidth()
2904 ctrl_ctx->drop_flags == 0) { in xhci_check_bandwidth()
2913 if ((virt_dev->eps[i-1].ring && !(ctrl_ctx->drop_flags & le32)) in xhci_check_bandwidth()
2914 || (ctrl_ctx->add_flags & le32) || i == 1) { in xhci_check_bandwidth()
2929 if ((le32_to_cpu(ctrl_ctx->drop_flags) & (1 << (i + 1))) && in xhci_check_bandwidth()
2930 !(le32_to_cpu(ctrl_ctx->add_flags) & (1 << (i + 1)))) { in xhci_check_bandwidth()
2987 struct xhci_input_control_ctx *ctrl_ctx, in xhci_setup_input_ctx_for_config_ep() argument
2990 ctrl_ctx->add_flags = cpu_to_le32(add_flags); in xhci_setup_input_ctx_for_config_ep()
2991 ctrl_ctx->drop_flags = cpu_to_le32(drop_flags); in xhci_setup_input_ctx_for_config_ep()
2993 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); in xhci_setup_input_ctx_for_config_ep()
3000 struct xhci_input_control_ctx *ctrl_ctx; in xhci_setup_input_ctx_for_quirk() local
3007 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); in xhci_setup_input_ctx_for_quirk()
3008 if (!ctrl_ctx) { in xhci_setup_input_ctx_for_quirk()
3031 xhci->devs[slot_id]->out_ctx, ctrl_ctx, in xhci_setup_input_ctx_for_quirk()
3135 struct xhci_input_control_ctx *ctrl_ctx; in xhci_endpoint_reset() local
3219 ctrl_ctx = xhci_get_input_control_ctx(cfg_cmd->in_ctx); in xhci_endpoint_reset()
3221 ctrl_ctx, ep_flag, ep_flag); in xhci_endpoint_reset()
3408 struct xhci_input_control_ctx *ctrl_ctx; in xhci_alloc_streams() local
3437 ctrl_ctx = xhci_get_input_control_ctx(config_cmd->in_ctx); in xhci_alloc_streams()
3438 if (!ctrl_ctx) { in xhci_alloc_streams()
3512 vdev->out_ctx, ctrl_ctx, in xhci_alloc_streams()
3571 struct xhci_input_control_ctx *ctrl_ctx; in xhci_free_streams() local
3594 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_free_streams()
3595 if (!ctrl_ctx) { in xhci_free_streams()
3616 vdev->out_ctx, ctrl_ctx, in xhci_free_streams()
4058 struct xhci_input_control_ctx *ctrl_ctx; in xhci_setup_device() local
4109 ctrl_ctx = xhci_get_input_control_ctx(virt_dev->in_ctx); in xhci_setup_device()
4110 if (!ctrl_ctx) { in xhci_setup_device()
4126 ctrl_ctx->add_flags = cpu_to_le32(SLOT_FLAG | EP0_FLAG); in xhci_setup_device()
4127 ctrl_ctx->drop_flags = 0; in xhci_setup_device()
4132 trace_xhci_address_ctrl_ctx(ctrl_ctx); in xhci_setup_device()
4215 ctrl_ctx->add_flags = 0; in xhci_setup_device()
4216 ctrl_ctx->drop_flags = 0; in xhci_setup_device()
4265 struct xhci_input_control_ctx *ctrl_ctx; in xhci_change_max_exit_latency() local
4287 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_change_max_exit_latency()
4288 if (!ctrl_ctx) { in xhci_change_max_exit_latency()
4298 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); in xhci_change_max_exit_latency()
5015 struct xhci_input_control_ctx *ctrl_ctx; in xhci_update_hub_device() local
5035 ctrl_ctx = xhci_get_input_control_ctx(config_cmd->in_ctx); in xhci_update_hub_device()
5036 if (!ctrl_ctx) { in xhci_update_hub_device()
5053 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); in xhci_update_hub_device()