• Home
  • Raw
  • Download

Lines Matching refs:ctrl_ctx

1308 	struct xhci_input_control_ctx *ctrl_ctx;  in xhci_check_maxpacket()  local
1341 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_check_maxpacket()
1342 if (!ctrl_ctx) { in xhci_check_maxpacket()
1357 ctrl_ctx->add_flags = cpu_to_le32(EP0_FLAG); in xhci_check_maxpacket()
1358 ctrl_ctx->drop_flags = 0; in xhci_check_maxpacket()
1371 ctrl_ctx->add_flags = cpu_to_le32(SLOT_FLAG); in xhci_check_maxpacket()
1696 struct xhci_input_control_ctx *ctrl_ctx; in xhci_drop_endpoint() local
1720 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); in xhci_drop_endpoint()
1721 if (!ctrl_ctx) { in xhci_drop_endpoint()
1734 le32_to_cpu(ctrl_ctx->drop_flags) & in xhci_drop_endpoint()
1743 ctrl_ctx->drop_flags |= cpu_to_le32(drop_flag); in xhci_drop_endpoint()
1744 new_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags); in xhci_drop_endpoint()
1746 ctrl_ctx->add_flags &= cpu_to_le32(~drop_flag); in xhci_drop_endpoint()
1747 new_add_flags = le32_to_cpu(ctrl_ctx->add_flags); in xhci_drop_endpoint()
1778 struct xhci_input_control_ctx *ctrl_ctx; in xhci_add_endpoint() local
1807 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); in xhci_add_endpoint()
1808 if (!ctrl_ctx) { in xhci_add_endpoint()
1819 !(le32_to_cpu(ctrl_ctx->drop_flags) & added_ctxs)) { in xhci_add_endpoint()
1829 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()
1870 struct xhci_input_control_ctx *ctrl_ctx; in xhci_zero_in_ctx() local
1875 ctrl_ctx = xhci_get_input_control_ctx(virt_dev->in_ctx); in xhci_zero_in_ctx()
1876 if (!ctrl_ctx) { in xhci_zero_in_ctx()
1887 ctrl_ctx->drop_flags = 0; in xhci_zero_in_ctx()
1888 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
2701 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_configure_endpoint()
2702 if (!ctrl_ctx) { in xhci_configure_endpoint()
2710 xhci_reserve_host_resources(xhci, ctrl_ctx)) { in xhci_configure_endpoint()
2720 xhci_free_host_resources(xhci, ctrl_ctx); in xhci_configure_endpoint()
2736 xhci_free_host_resources(xhci, ctrl_ctx); in xhci_configure_endpoint()
2761 xhci_free_host_resources(xhci, ctrl_ctx); in xhci_configure_endpoint()
2763 xhci_finish_resource_reservation(xhci, ctrl_ctx); in xhci_configure_endpoint()
2799 struct xhci_input_control_ctx *ctrl_ctx; in xhci_check_bandwidth() local
2821 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_check_bandwidth()
2822 if (!ctrl_ctx) { in xhci_check_bandwidth()
2828 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); in xhci_check_bandwidth()
2829 ctrl_ctx->add_flags &= cpu_to_le32(~EP0_FLAG); in xhci_check_bandwidth()
2830 ctrl_ctx->drop_flags &= cpu_to_le32(~(SLOT_FLAG | EP0_FLAG)); in xhci_check_bandwidth()
2833 if (ctrl_ctx->add_flags == cpu_to_le32(SLOT_FLAG) && in xhci_check_bandwidth()
2834 ctrl_ctx->drop_flags == 0) { in xhci_check_bandwidth()
2843 if ((virt_dev->eps[i-1].ring && !(ctrl_ctx->drop_flags & le32)) in xhci_check_bandwidth()
2844 || (ctrl_ctx->add_flags & le32) || i == 1) { in xhci_check_bandwidth()
2866 if ((le32_to_cpu(ctrl_ctx->drop_flags) & (1 << (i + 1))) && in xhci_check_bandwidth()
2867 !(le32_to_cpu(ctrl_ctx->add_flags) & (1 << (i + 1)))) { in xhci_check_bandwidth()
2923 struct xhci_input_control_ctx *ctrl_ctx, in xhci_setup_input_ctx_for_config_ep() argument
2926 ctrl_ctx->add_flags = cpu_to_le32(add_flags); in xhci_setup_input_ctx_for_config_ep()
2927 ctrl_ctx->drop_flags = cpu_to_le32(drop_flags); in xhci_setup_input_ctx_for_config_ep()
2929 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); in xhci_setup_input_ctx_for_config_ep()
2939 struct xhci_input_control_ctx *ctrl_ctx; in xhci_setup_input_ctx_for_quirk() local
2946 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); in xhci_setup_input_ctx_for_quirk()
2947 if (!ctrl_ctx) { in xhci_setup_input_ctx_for_quirk()
2970 xhci->devs[slot_id]->out_ctx, ctrl_ctx, in xhci_setup_input_ctx_for_quirk()
3207 struct xhci_input_control_ctx *ctrl_ctx; in xhci_alloc_streams() local
3236 ctrl_ctx = xhci_get_input_control_ctx(config_cmd->in_ctx); in xhci_alloc_streams()
3237 if (!ctrl_ctx) { in xhci_alloc_streams()
3309 vdev->out_ctx, ctrl_ctx, in xhci_alloc_streams()
3368 struct xhci_input_control_ctx *ctrl_ctx; in xhci_free_streams() local
3391 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_free_streams()
3392 if (!ctrl_ctx) { in xhci_free_streams()
3413 vdev->out_ctx, ctrl_ctx, in xhci_free_streams()
3852 struct xhci_input_control_ctx *ctrl_ctx; in xhci_setup_device() local
3903 ctrl_ctx = xhci_get_input_control_ctx(virt_dev->in_ctx); in xhci_setup_device()
3904 if (!ctrl_ctx) { in xhci_setup_device()
3920 ctrl_ctx->add_flags = cpu_to_le32(SLOT_FLAG | EP0_FLAG); in xhci_setup_device()
3921 ctrl_ctx->drop_flags = 0; in xhci_setup_device()
4010 ctrl_ctx->add_flags = 0; in xhci_setup_device()
4011 ctrl_ctx->drop_flags = 0; in xhci_setup_device()
4063 struct xhci_input_control_ctx *ctrl_ctx; in xhci_change_max_exit_latency() local
4085 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_change_max_exit_latency()
4086 if (!ctrl_ctx) { in xhci_change_max_exit_latency()
4096 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); in xhci_change_max_exit_latency()
4820 struct xhci_input_control_ctx *ctrl_ctx; in xhci_update_hub_device() local
4840 ctrl_ctx = xhci_get_input_control_ctx(config_cmd->in_ctx); in xhci_update_hub_device()
4841 if (!ctrl_ctx) { in xhci_update_hub_device()
4858 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); in xhci_update_hub_device()