Lines Matching refs:ctrl_ctx

1249 	struct xhci_input_control_ctx *ctrl_ctx;  in xhci_check_maxpacket()  local
1282 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_check_maxpacket()
1283 if (!ctrl_ctx) { in xhci_check_maxpacket()
1297 ctrl_ctx->add_flags = cpu_to_le32(EP0_FLAG); in xhci_check_maxpacket()
1298 ctrl_ctx->drop_flags = 0; in xhci_check_maxpacket()
1311 ctrl_ctx->add_flags = cpu_to_le32(SLOT_FLAG); in xhci_check_maxpacket()
1649 struct xhci_input_control_ctx *ctrl_ctx; in xhci_drop_endpoint() local
1673 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); in xhci_drop_endpoint()
1674 if (!ctrl_ctx) { in xhci_drop_endpoint()
1687 le32_to_cpu(ctrl_ctx->drop_flags) & in xhci_drop_endpoint()
1696 ctrl_ctx->drop_flags |= cpu_to_le32(drop_flag); in xhci_drop_endpoint()
1697 new_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags); in xhci_drop_endpoint()
1699 ctrl_ctx->add_flags &= cpu_to_le32(~drop_flag); in xhci_drop_endpoint()
1700 new_add_flags = le32_to_cpu(ctrl_ctx->add_flags); in xhci_drop_endpoint()
1731 struct xhci_input_control_ctx *ctrl_ctx; in xhci_add_endpoint() local
1760 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); in xhci_add_endpoint()
1761 if (!ctrl_ctx) { in xhci_add_endpoint()
1772 !(le32_to_cpu(ctrl_ctx->drop_flags) & added_ctxs)) { in xhci_add_endpoint()
1782 if (le32_to_cpu(ctrl_ctx->add_flags) & added_ctxs) { in xhci_add_endpoint()
1799 ctrl_ctx->add_flags |= cpu_to_le32(added_ctxs); in xhci_add_endpoint()
1800 new_add_flags = le32_to_cpu(ctrl_ctx->add_flags); in xhci_add_endpoint()
1808 new_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags); in xhci_add_endpoint()
1823 struct xhci_input_control_ctx *ctrl_ctx; in xhci_zero_in_ctx() local
1828 ctrl_ctx = xhci_get_input_control_ctx(virt_dev->in_ctx); in xhci_zero_in_ctx()
1829 if (!ctrl_ctx) { in xhci_zero_in_ctx()
1840 ctrl_ctx->drop_flags = 0; in xhci_zero_in_ctx()
1841 ctrl_ctx->add_flags = 0; in xhci_zero_in_ctx()
1958 struct xhci_input_control_ctx *ctrl_ctx) in xhci_count_num_new_endpoints() argument
1967 valid_add_flags = le32_to_cpu(ctrl_ctx->add_flags) >> 2; in xhci_count_num_new_endpoints()
1968 valid_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags) >> 2; in xhci_count_num_new_endpoints()
1979 struct xhci_input_control_ctx *ctrl_ctx) in xhci_count_num_dropped_endpoints() argument
1984 valid_add_flags = le32_to_cpu(ctrl_ctx->add_flags) >> 2; in xhci_count_num_dropped_endpoints()
1985 valid_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags) >> 2; in xhci_count_num_dropped_endpoints()
2005 struct xhci_input_control_ctx *ctrl_ctx) in xhci_reserve_host_resources() argument
2009 added_eps = xhci_count_num_new_endpoints(xhci, ctrl_ctx); in xhci_reserve_host_resources()
2032 struct xhci_input_control_ctx *ctrl_ctx) in xhci_free_host_resources() argument
2036 num_failed_eps = xhci_count_num_new_endpoints(xhci, ctrl_ctx); in xhci_free_host_resources()
2051 struct xhci_input_control_ctx *ctrl_ctx) in xhci_finish_resource_reservation() argument
2055 num_dropped_eps = xhci_count_num_dropped_endpoints(xhci, ctrl_ctx); in xhci_finish_resource_reservation()
2548 struct xhci_input_control_ctx *ctrl_ctx; in xhci_reserve_bandwidth() local
2554 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); in xhci_reserve_bandwidth()
2555 if (!ctrl_ctx) { in xhci_reserve_bandwidth()
2562 if (!EP_IS_ADDED(ctrl_ctx, i) && !EP_IS_DROPPED(ctrl_ctx, i)) in xhci_reserve_bandwidth()
2571 if (EP_IS_DROPPED(ctrl_ctx, i)) in xhci_reserve_bandwidth()
2580 xhci_update_bw_info(xhci, virt_dev->in_ctx, ctrl_ctx, virt_dev); in xhci_reserve_bandwidth()
2583 if (EP_IS_ADDED(ctrl_ctx, i)) in xhci_reserve_bandwidth()
2602 if (!EP_IS_ADDED(ctrl_ctx, i) && !EP_IS_DROPPED(ctrl_ctx, i)) in xhci_reserve_bandwidth()
2608 if (EP_IS_ADDED(ctrl_ctx, i)) { in xhci_reserve_bandwidth()
2620 if (EP_IS_DROPPED(ctrl_ctx, i)) in xhci_reserve_bandwidth()
2642 struct xhci_input_control_ctx *ctrl_ctx; in xhci_configure_endpoint() local
2651 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_configure_endpoint()
2652 if (!ctrl_ctx) { in xhci_configure_endpoint()
2660 xhci_reserve_host_resources(xhci, ctrl_ctx)) { in xhci_configure_endpoint()
2670 xhci_free_host_resources(xhci, ctrl_ctx); in xhci_configure_endpoint()
2686 xhci_free_host_resources(xhci, ctrl_ctx); in xhci_configure_endpoint()
2711 xhci_free_host_resources(xhci, ctrl_ctx); in xhci_configure_endpoint()
2713 xhci_finish_resource_reservation(xhci, ctrl_ctx); in xhci_configure_endpoint()
2749 struct xhci_input_control_ctx *ctrl_ctx; in xhci_check_bandwidth() local
2771 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_check_bandwidth()
2772 if (!ctrl_ctx) { in xhci_check_bandwidth()
2778 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); in xhci_check_bandwidth()
2779 ctrl_ctx->add_flags &= cpu_to_le32(~EP0_FLAG); in xhci_check_bandwidth()
2780 ctrl_ctx->drop_flags &= cpu_to_le32(~(SLOT_FLAG | EP0_FLAG)); in xhci_check_bandwidth()
2783 if (ctrl_ctx->add_flags == cpu_to_le32(SLOT_FLAG) && in xhci_check_bandwidth()
2784 ctrl_ctx->drop_flags == 0) { in xhci_check_bandwidth()
2793 if ((virt_dev->eps[i-1].ring && !(ctrl_ctx->drop_flags & le32)) in xhci_check_bandwidth()
2794 || (ctrl_ctx->add_flags & le32) || i == 1) { in xhci_check_bandwidth()
2816 if ((le32_to_cpu(ctrl_ctx->drop_flags) & (1 << (i + 1))) && in xhci_check_bandwidth()
2817 !(le32_to_cpu(ctrl_ctx->add_flags) & (1 << (i + 1)))) { in xhci_check_bandwidth()
2873 struct xhci_input_control_ctx *ctrl_ctx, in xhci_setup_input_ctx_for_config_ep() argument
2876 ctrl_ctx->add_flags = cpu_to_le32(add_flags); in xhci_setup_input_ctx_for_config_ep()
2877 ctrl_ctx->drop_flags = cpu_to_le32(drop_flags); in xhci_setup_input_ctx_for_config_ep()
2879 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); in xhci_setup_input_ctx_for_config_ep()
2889 struct xhci_input_control_ctx *ctrl_ctx; in xhci_setup_input_ctx_for_quirk() local
2896 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); in xhci_setup_input_ctx_for_quirk()
2897 if (!ctrl_ctx) { in xhci_setup_input_ctx_for_quirk()
2920 xhci->devs[slot_id]->out_ctx, ctrl_ctx, in xhci_setup_input_ctx_for_quirk()
3157 struct xhci_input_control_ctx *ctrl_ctx; in xhci_alloc_streams() local
3186 ctrl_ctx = xhci_get_input_control_ctx(config_cmd->in_ctx); in xhci_alloc_streams()
3187 if (!ctrl_ctx) { in xhci_alloc_streams()
3259 vdev->out_ctx, ctrl_ctx, in xhci_alloc_streams()
3318 struct xhci_input_control_ctx *ctrl_ctx; in xhci_free_streams() local
3341 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_free_streams()
3342 if (!ctrl_ctx) { in xhci_free_streams()
3363 vdev->out_ctx, ctrl_ctx, in xhci_free_streams()
3799 struct xhci_input_control_ctx *ctrl_ctx; in xhci_setup_device() local
3848 ctrl_ctx = xhci_get_input_control_ctx(virt_dev->in_ctx); in xhci_setup_device()
3849 if (!ctrl_ctx) { in xhci_setup_device()
3865 ctrl_ctx->add_flags = cpu_to_le32(SLOT_FLAG | EP0_FLAG); in xhci_setup_device()
3866 ctrl_ctx->drop_flags = 0; in xhci_setup_device()
3955 ctrl_ctx->add_flags = 0; in xhci_setup_device()
3956 ctrl_ctx->drop_flags = 0; in xhci_setup_device()
4008 struct xhci_input_control_ctx *ctrl_ctx; in xhci_change_max_exit_latency() local
4030 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_change_max_exit_latency()
4031 if (!ctrl_ctx) { in xhci_change_max_exit_latency()
4041 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); in xhci_change_max_exit_latency()
4744 struct xhci_input_control_ctx *ctrl_ctx; in xhci_update_hub_device() local
4764 ctrl_ctx = xhci_get_input_control_ctx(config_cmd->in_ctx); in xhci_update_hub_device()
4765 if (!ctrl_ctx) { in xhci_update_hub_device()
4782 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); in xhci_update_hub_device()