Lines Matching refs:ctrl_ctx
1338 struct xhci_input_control_ctx *ctrl_ctx; in xhci_check_maxpacket() local
1371 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_check_maxpacket()
1372 if (!ctrl_ctx) { in xhci_check_maxpacket()
1386 ctrl_ctx->add_flags = cpu_to_le32(EP0_FLAG); in xhci_check_maxpacket()
1387 ctrl_ctx->drop_flags = 0; in xhci_check_maxpacket()
1395 ctrl_ctx->add_flags = cpu_to_le32(SLOT_FLAG); in xhci_check_maxpacket()
1683 struct xhci_input_control_ctx *ctrl_ctx; in xhci_drop_endpoint() local
1707 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); in xhci_drop_endpoint()
1708 if (!ctrl_ctx) { in xhci_drop_endpoint()
1720 le32_to_cpu(ctrl_ctx->drop_flags) & in xhci_drop_endpoint()
1729 ctrl_ctx->drop_flags |= cpu_to_le32(drop_flag); in xhci_drop_endpoint()
1730 new_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags); in xhci_drop_endpoint()
1732 ctrl_ctx->add_flags &= cpu_to_le32(~drop_flag); in xhci_drop_endpoint()
1733 new_add_flags = le32_to_cpu(ctrl_ctx->add_flags); in xhci_drop_endpoint()
1769 struct xhci_input_control_ctx *ctrl_ctx; in xhci_add_endpoint() local
1798 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); in xhci_add_endpoint()
1799 if (!ctrl_ctx) { in xhci_add_endpoint()
1810 !(le32_to_cpu(ctrl_ctx->drop_flags) & added_ctxs)) { in xhci_add_endpoint()
1820 if (le32_to_cpu(ctrl_ctx->add_flags) & added_ctxs) { in xhci_add_endpoint()
1846 ctrl_ctx->add_flags |= cpu_to_le32(added_ctxs); in xhci_add_endpoint()
1847 new_add_flags = le32_to_cpu(ctrl_ctx->add_flags); in xhci_add_endpoint()
1855 new_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags); in xhci_add_endpoint()
1872 struct xhci_input_control_ctx *ctrl_ctx; in xhci_zero_in_ctx() local
1877 ctrl_ctx = xhci_get_input_control_ctx(virt_dev->in_ctx); in xhci_zero_in_ctx()
1878 if (!ctrl_ctx) { in xhci_zero_in_ctx()
1889 ctrl_ctx->drop_flags = 0; in xhci_zero_in_ctx()
1890 ctrl_ctx->add_flags = 0; in xhci_zero_in_ctx()
2005 struct xhci_input_control_ctx *ctrl_ctx) in xhci_count_num_new_endpoints() argument
2014 valid_add_flags = le32_to_cpu(ctrl_ctx->add_flags) >> 2; in xhci_count_num_new_endpoints()
2015 valid_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags) >> 2; in xhci_count_num_new_endpoints()
2026 struct xhci_input_control_ctx *ctrl_ctx) in xhci_count_num_dropped_endpoints() argument
2031 valid_add_flags = le32_to_cpu(ctrl_ctx->add_flags) >> 2; in xhci_count_num_dropped_endpoints()
2032 valid_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags) >> 2; in xhci_count_num_dropped_endpoints()
2052 struct xhci_input_control_ctx *ctrl_ctx) in xhci_reserve_host_resources() argument
2056 added_eps = xhci_count_num_new_endpoints(xhci, ctrl_ctx); in xhci_reserve_host_resources()
2079 struct xhci_input_control_ctx *ctrl_ctx) in xhci_free_host_resources() argument
2083 num_failed_eps = xhci_count_num_new_endpoints(xhci, ctrl_ctx); in xhci_free_host_resources()
2098 struct xhci_input_control_ctx *ctrl_ctx) in xhci_finish_resource_reservation() argument
2102 num_dropped_eps = xhci_count_num_dropped_endpoints(xhci, ctrl_ctx); in xhci_finish_resource_reservation()
2598 struct xhci_input_control_ctx *ctrl_ctx; in xhci_reserve_bandwidth() local
2604 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); in xhci_reserve_bandwidth()
2605 if (!ctrl_ctx) { in xhci_reserve_bandwidth()
2612 if (!EP_IS_ADDED(ctrl_ctx, i) && !EP_IS_DROPPED(ctrl_ctx, i)) in xhci_reserve_bandwidth()
2621 if (EP_IS_DROPPED(ctrl_ctx, i)) in xhci_reserve_bandwidth()
2630 xhci_update_bw_info(xhci, virt_dev->in_ctx, ctrl_ctx, virt_dev); in xhci_reserve_bandwidth()
2633 if (EP_IS_ADDED(ctrl_ctx, i)) in xhci_reserve_bandwidth()
2652 if (!EP_IS_ADDED(ctrl_ctx, i) && !EP_IS_DROPPED(ctrl_ctx, i)) in xhci_reserve_bandwidth()
2658 if (EP_IS_ADDED(ctrl_ctx, i)) { in xhci_reserve_bandwidth()
2670 if (EP_IS_DROPPED(ctrl_ctx, i)) in xhci_reserve_bandwidth()
2692 struct xhci_input_control_ctx *ctrl_ctx; in xhci_configure_endpoint() local
2708 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_configure_endpoint()
2709 if (!ctrl_ctx) { in xhci_configure_endpoint()
2717 xhci_reserve_host_resources(xhci, ctrl_ctx)) { in xhci_configure_endpoint()
2727 xhci_free_host_resources(xhci, ctrl_ctx); in xhci_configure_endpoint()
2746 xhci_free_host_resources(xhci, ctrl_ctx); in xhci_configure_endpoint()
2771 xhci_free_host_resources(xhci, ctrl_ctx); in xhci_configure_endpoint()
2773 xhci_finish_resource_reservation(xhci, ctrl_ctx); in xhci_configure_endpoint()
2809 struct xhci_input_control_ctx *ctrl_ctx; in xhci_check_bandwidth() local
2831 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_check_bandwidth()
2832 if (!ctrl_ctx) { in xhci_check_bandwidth()
2838 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); in xhci_check_bandwidth()
2839 ctrl_ctx->add_flags &= cpu_to_le32(~EP0_FLAG); in xhci_check_bandwidth()
2840 ctrl_ctx->drop_flags &= cpu_to_le32(~(SLOT_FLAG | EP0_FLAG)); in xhci_check_bandwidth()
2843 if (ctrl_ctx->add_flags == cpu_to_le32(SLOT_FLAG) && in xhci_check_bandwidth()
2844 ctrl_ctx->drop_flags == 0) { in xhci_check_bandwidth()
2853 if ((virt_dev->eps[i-1].ring && !(ctrl_ctx->drop_flags & le32)) in xhci_check_bandwidth()
2854 || (ctrl_ctx->add_flags & le32) || i == 1) { in xhci_check_bandwidth()
2869 if ((le32_to_cpu(ctrl_ctx->drop_flags) & (1 << (i + 1))) && in xhci_check_bandwidth()
2870 !(le32_to_cpu(ctrl_ctx->add_flags) & (1 << (i + 1)))) { in xhci_check_bandwidth()
2927 struct xhci_input_control_ctx *ctrl_ctx, in xhci_setup_input_ctx_for_config_ep() argument
2930 ctrl_ctx->add_flags = cpu_to_le32(add_flags); in xhci_setup_input_ctx_for_config_ep()
2931 ctrl_ctx->drop_flags = cpu_to_le32(drop_flags); in xhci_setup_input_ctx_for_config_ep()
2933 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); in xhci_setup_input_ctx_for_config_ep()
2940 struct xhci_input_control_ctx *ctrl_ctx; in xhci_setup_input_ctx_for_quirk() local
2947 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); in xhci_setup_input_ctx_for_quirk()
2948 if (!ctrl_ctx) { in xhci_setup_input_ctx_for_quirk()
2971 xhci->devs[slot_id]->out_ctx, ctrl_ctx, in xhci_setup_input_ctx_for_quirk()
3033 struct xhci_input_control_ctx *ctrl_ctx; in xhci_endpoint_reset() local
3096 ctrl_ctx = xhci_get_input_control_ctx(cfg_cmd->in_ctx); in xhci_endpoint_reset()
3098 ctrl_ctx, ep_flag, ep_flag); in xhci_endpoint_reset()
3277 struct xhci_input_control_ctx *ctrl_ctx; in xhci_alloc_streams() local
3306 ctrl_ctx = xhci_get_input_control_ctx(config_cmd->in_ctx); in xhci_alloc_streams()
3307 if (!ctrl_ctx) { in xhci_alloc_streams()
3381 vdev->out_ctx, ctrl_ctx, in xhci_alloc_streams()
3440 struct xhci_input_control_ctx *ctrl_ctx; in xhci_free_streams() local
3463 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_free_streams()
3464 if (!ctrl_ctx) { in xhci_free_streams()
3485 vdev->out_ctx, ctrl_ctx, in xhci_free_streams()
3925 struct xhci_input_control_ctx *ctrl_ctx; in xhci_setup_device() local
3976 ctrl_ctx = xhci_get_input_control_ctx(virt_dev->in_ctx); in xhci_setup_device()
3977 if (!ctrl_ctx) { in xhci_setup_device()
3993 ctrl_ctx->add_flags = cpu_to_le32(SLOT_FLAG | EP0_FLAG); in xhci_setup_device()
3994 ctrl_ctx->drop_flags = 0; in xhci_setup_device()
4081 ctrl_ctx->add_flags = 0; in xhci_setup_device()
4082 ctrl_ctx->drop_flags = 0; in xhci_setup_device()
4129 struct xhci_input_control_ctx *ctrl_ctx; in xhci_change_max_exit_latency() local
4151 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_change_max_exit_latency()
4152 if (!ctrl_ctx) { in xhci_change_max_exit_latency()
4162 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); in xhci_change_max_exit_latency()
4862 struct xhci_input_control_ctx *ctrl_ctx; in xhci_update_hub_device() local
4882 ctrl_ctx = xhci_get_input_control_ctx(config_cmd->in_ctx); in xhci_update_hub_device()
4883 if (!ctrl_ctx) { in xhci_update_hub_device()
4900 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); in xhci_update_hub_device()