Lines Matching refs:ctrl_ctx

1259 	struct xhci_input_control_ctx *ctrl_ctx;  in xhci_check_maxpacket()  local
1292 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_check_maxpacket()
1293 if (!ctrl_ctx) { in xhci_check_maxpacket()
1307 ctrl_ctx->add_flags = cpu_to_le32(EP0_FLAG); in xhci_check_maxpacket()
1308 ctrl_ctx->drop_flags = 0; in xhci_check_maxpacket()
1321 ctrl_ctx->add_flags = cpu_to_le32(SLOT_FLAG); in xhci_check_maxpacket()
1659 struct xhci_input_control_ctx *ctrl_ctx; in xhci_drop_endpoint() local
1683 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); in xhci_drop_endpoint()
1684 if (!ctrl_ctx) { in xhci_drop_endpoint()
1697 le32_to_cpu(ctrl_ctx->drop_flags) & in xhci_drop_endpoint()
1706 ctrl_ctx->drop_flags |= cpu_to_le32(drop_flag); in xhci_drop_endpoint()
1707 new_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags); in xhci_drop_endpoint()
1709 ctrl_ctx->add_flags &= cpu_to_le32(~drop_flag); in xhci_drop_endpoint()
1710 new_add_flags = le32_to_cpu(ctrl_ctx->add_flags); in xhci_drop_endpoint()
1741 struct xhci_input_control_ctx *ctrl_ctx; in xhci_add_endpoint() local
1770 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); in xhci_add_endpoint()
1771 if (!ctrl_ctx) { in xhci_add_endpoint()
1782 !(le32_to_cpu(ctrl_ctx->drop_flags) & added_ctxs)) { in xhci_add_endpoint()
1792 if (le32_to_cpu(ctrl_ctx->add_flags) & added_ctxs) { in xhci_add_endpoint()
1809 ctrl_ctx->add_flags |= cpu_to_le32(added_ctxs); in xhci_add_endpoint()
1810 new_add_flags = le32_to_cpu(ctrl_ctx->add_flags); in xhci_add_endpoint()
1818 new_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags); in xhci_add_endpoint()
1833 struct xhci_input_control_ctx *ctrl_ctx; in xhci_zero_in_ctx() local
1838 ctrl_ctx = xhci_get_input_control_ctx(virt_dev->in_ctx); in xhci_zero_in_ctx()
1839 if (!ctrl_ctx) { in xhci_zero_in_ctx()
1850 ctrl_ctx->drop_flags = 0; in xhci_zero_in_ctx()
1851 ctrl_ctx->add_flags = 0; in xhci_zero_in_ctx()
1968 struct xhci_input_control_ctx *ctrl_ctx) in xhci_count_num_new_endpoints() argument
1977 valid_add_flags = le32_to_cpu(ctrl_ctx->add_flags) >> 2; in xhci_count_num_new_endpoints()
1978 valid_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags) >> 2; in xhci_count_num_new_endpoints()
1989 struct xhci_input_control_ctx *ctrl_ctx) in xhci_count_num_dropped_endpoints() argument
1994 valid_add_flags = le32_to_cpu(ctrl_ctx->add_flags) >> 2; in xhci_count_num_dropped_endpoints()
1995 valid_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags) >> 2; in xhci_count_num_dropped_endpoints()
2015 struct xhci_input_control_ctx *ctrl_ctx) in xhci_reserve_host_resources() argument
2019 added_eps = xhci_count_num_new_endpoints(xhci, ctrl_ctx); in xhci_reserve_host_resources()
2042 struct xhci_input_control_ctx *ctrl_ctx) in xhci_free_host_resources() argument
2046 num_failed_eps = xhci_count_num_new_endpoints(xhci, ctrl_ctx); in xhci_free_host_resources()
2061 struct xhci_input_control_ctx *ctrl_ctx) in xhci_finish_resource_reservation() argument
2065 num_dropped_eps = xhci_count_num_dropped_endpoints(xhci, ctrl_ctx); in xhci_finish_resource_reservation()
2558 struct xhci_input_control_ctx *ctrl_ctx; in xhci_reserve_bandwidth() local
2564 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); in xhci_reserve_bandwidth()
2565 if (!ctrl_ctx) { in xhci_reserve_bandwidth()
2572 if (!EP_IS_ADDED(ctrl_ctx, i) && !EP_IS_DROPPED(ctrl_ctx, i)) in xhci_reserve_bandwidth()
2581 if (EP_IS_DROPPED(ctrl_ctx, i)) in xhci_reserve_bandwidth()
2590 xhci_update_bw_info(xhci, virt_dev->in_ctx, ctrl_ctx, virt_dev); in xhci_reserve_bandwidth()
2593 if (EP_IS_ADDED(ctrl_ctx, i)) in xhci_reserve_bandwidth()
2612 if (!EP_IS_ADDED(ctrl_ctx, i) && !EP_IS_DROPPED(ctrl_ctx, i)) in xhci_reserve_bandwidth()
2618 if (EP_IS_ADDED(ctrl_ctx, i)) { in xhci_reserve_bandwidth()
2630 if (EP_IS_DROPPED(ctrl_ctx, i)) in xhci_reserve_bandwidth()
2652 struct xhci_input_control_ctx *ctrl_ctx; in xhci_configure_endpoint() local
2661 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_configure_endpoint()
2662 if (!ctrl_ctx) { in xhci_configure_endpoint()
2670 xhci_reserve_host_resources(xhci, ctrl_ctx)) { in xhci_configure_endpoint()
2680 xhci_free_host_resources(xhci, ctrl_ctx); in xhci_configure_endpoint()
2696 xhci_free_host_resources(xhci, ctrl_ctx); in xhci_configure_endpoint()
2721 xhci_free_host_resources(xhci, ctrl_ctx); in xhci_configure_endpoint()
2723 xhci_finish_resource_reservation(xhci, ctrl_ctx); in xhci_configure_endpoint()
2759 struct xhci_input_control_ctx *ctrl_ctx; in xhci_check_bandwidth() local
2781 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_check_bandwidth()
2782 if (!ctrl_ctx) { in xhci_check_bandwidth()
2788 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); in xhci_check_bandwidth()
2789 ctrl_ctx->add_flags &= cpu_to_le32(~EP0_FLAG); in xhci_check_bandwidth()
2790 ctrl_ctx->drop_flags &= cpu_to_le32(~(SLOT_FLAG | EP0_FLAG)); in xhci_check_bandwidth()
2793 if (ctrl_ctx->add_flags == cpu_to_le32(SLOT_FLAG) && in xhci_check_bandwidth()
2794 ctrl_ctx->drop_flags == 0) { in xhci_check_bandwidth()
2803 if ((virt_dev->eps[i-1].ring && !(ctrl_ctx->drop_flags & le32)) in xhci_check_bandwidth()
2804 || (ctrl_ctx->add_flags & le32) || i == 1) { in xhci_check_bandwidth()
2826 if ((le32_to_cpu(ctrl_ctx->drop_flags) & (1 << (i + 1))) && in xhci_check_bandwidth()
2827 !(le32_to_cpu(ctrl_ctx->add_flags) & (1 << (i + 1)))) { in xhci_check_bandwidth()
2883 struct xhci_input_control_ctx *ctrl_ctx, in xhci_setup_input_ctx_for_config_ep() argument
2886 ctrl_ctx->add_flags = cpu_to_le32(add_flags); in xhci_setup_input_ctx_for_config_ep()
2887 ctrl_ctx->drop_flags = cpu_to_le32(drop_flags); in xhci_setup_input_ctx_for_config_ep()
2889 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); in xhci_setup_input_ctx_for_config_ep()
2899 struct xhci_input_control_ctx *ctrl_ctx; in xhci_setup_input_ctx_for_quirk() local
2906 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); in xhci_setup_input_ctx_for_quirk()
2907 if (!ctrl_ctx) { in xhci_setup_input_ctx_for_quirk()
2930 xhci->devs[slot_id]->out_ctx, ctrl_ctx, in xhci_setup_input_ctx_for_quirk()
3167 struct xhci_input_control_ctx *ctrl_ctx; in xhci_alloc_streams() local
3196 ctrl_ctx = xhci_get_input_control_ctx(config_cmd->in_ctx); in xhci_alloc_streams()
3197 if (!ctrl_ctx) { in xhci_alloc_streams()
3269 vdev->out_ctx, ctrl_ctx, in xhci_alloc_streams()
3328 struct xhci_input_control_ctx *ctrl_ctx; in xhci_free_streams() local
3351 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_free_streams()
3352 if (!ctrl_ctx) { in xhci_free_streams()
3373 vdev->out_ctx, ctrl_ctx, in xhci_free_streams()
3811 struct xhci_input_control_ctx *ctrl_ctx; in xhci_setup_device() local
3860 ctrl_ctx = xhci_get_input_control_ctx(virt_dev->in_ctx); in xhci_setup_device()
3861 if (!ctrl_ctx) { in xhci_setup_device()
3877 ctrl_ctx->add_flags = cpu_to_le32(SLOT_FLAG | EP0_FLAG); in xhci_setup_device()
3878 ctrl_ctx->drop_flags = 0; in xhci_setup_device()
3967 ctrl_ctx->add_flags = 0; in xhci_setup_device()
3968 ctrl_ctx->drop_flags = 0; in xhci_setup_device()
4020 struct xhci_input_control_ctx *ctrl_ctx; in xhci_change_max_exit_latency() local
4042 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_change_max_exit_latency()
4043 if (!ctrl_ctx) { in xhci_change_max_exit_latency()
4053 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); in xhci_change_max_exit_latency()
4760 struct xhci_input_control_ctx *ctrl_ctx; in xhci_update_hub_device() local
4780 ctrl_ctx = xhci_get_input_control_ctx(config_cmd->in_ctx); in xhci_update_hub_device()
4781 if (!ctrl_ctx) { in xhci_update_hub_device()
4798 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); in xhci_update_hub_device()