Lines Matching refs:ctrl_ctx

1528 	struct xhci_input_control_ctx *ctrl_ctx;  in xhci_check_maxpacket()  local
1561 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_check_maxpacket()
1562 if (!ctrl_ctx) { in xhci_check_maxpacket()
1577 ctrl_ctx->add_flags = cpu_to_le32(EP0_FLAG); in xhci_check_maxpacket()
1578 ctrl_ctx->drop_flags = 0; in xhci_check_maxpacket()
1586 ctrl_ctx->add_flags = cpu_to_le32(SLOT_FLAG); in xhci_check_maxpacket()
1880 struct xhci_input_control_ctx *ctrl_ctx; in xhci_drop_endpoint() local
1904 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); in xhci_drop_endpoint()
1905 if (!ctrl_ctx) { in xhci_drop_endpoint()
1917 le32_to_cpu(ctrl_ctx->drop_flags) & in xhci_drop_endpoint()
1926 ctrl_ctx->drop_flags |= cpu_to_le32(drop_flag); in xhci_drop_endpoint()
1927 new_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags); in xhci_drop_endpoint()
1929 ctrl_ctx->add_flags &= cpu_to_le32(~drop_flag); in xhci_drop_endpoint()
1930 new_add_flags = le32_to_cpu(ctrl_ctx->add_flags); in xhci_drop_endpoint()
1964 struct xhci_input_control_ctx *ctrl_ctx; in xhci_add_endpoint() local
1994 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); in xhci_add_endpoint()
1995 if (!ctrl_ctx) { in xhci_add_endpoint()
2006 !(le32_to_cpu(ctrl_ctx->drop_flags) & added_ctxs)) { in xhci_add_endpoint()
2016 if (le32_to_cpu(ctrl_ctx->add_flags) & added_ctxs) { in xhci_add_endpoint()
2033 ctrl_ctx->add_flags |= cpu_to_le32(added_ctxs); in xhci_add_endpoint()
2034 new_add_flags = le32_to_cpu(ctrl_ctx->add_flags); in xhci_add_endpoint()
2042 new_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags); in xhci_add_endpoint()
2061 struct xhci_input_control_ctx *ctrl_ctx; in xhci_zero_in_ctx() local
2066 ctrl_ctx = xhci_get_input_control_ctx(virt_dev->in_ctx); in xhci_zero_in_ctx()
2067 if (!ctrl_ctx) { in xhci_zero_in_ctx()
2078 ctrl_ctx->drop_flags = 0; in xhci_zero_in_ctx()
2079 ctrl_ctx->add_flags = 0; in xhci_zero_in_ctx()
2194 struct xhci_input_control_ctx *ctrl_ctx) in xhci_count_num_new_endpoints() argument
2203 valid_add_flags = le32_to_cpu(ctrl_ctx->add_flags) >> 2; in xhci_count_num_new_endpoints()
2204 valid_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags) >> 2; in xhci_count_num_new_endpoints()
2215 struct xhci_input_control_ctx *ctrl_ctx) in xhci_count_num_dropped_endpoints() argument
2220 valid_add_flags = le32_to_cpu(ctrl_ctx->add_flags) >> 2; in xhci_count_num_dropped_endpoints()
2221 valid_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags) >> 2; in xhci_count_num_dropped_endpoints()
2241 struct xhci_input_control_ctx *ctrl_ctx) in xhci_reserve_host_resources() argument
2245 added_eps = xhci_count_num_new_endpoints(xhci, ctrl_ctx); in xhci_reserve_host_resources()
2268 struct xhci_input_control_ctx *ctrl_ctx) in xhci_free_host_resources() argument
2272 num_failed_eps = xhci_count_num_new_endpoints(xhci, ctrl_ctx); in xhci_free_host_resources()
2287 struct xhci_input_control_ctx *ctrl_ctx) in xhci_finish_resource_reservation() argument
2291 num_dropped_eps = xhci_count_num_dropped_endpoints(xhci, ctrl_ctx); in xhci_finish_resource_reservation()
2787 struct xhci_input_control_ctx *ctrl_ctx; in xhci_reserve_bandwidth() local
2793 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); in xhci_reserve_bandwidth()
2794 if (!ctrl_ctx) { in xhci_reserve_bandwidth()
2801 if (!EP_IS_ADDED(ctrl_ctx, i) && !EP_IS_DROPPED(ctrl_ctx, i)) in xhci_reserve_bandwidth()
2810 if (EP_IS_DROPPED(ctrl_ctx, i)) in xhci_reserve_bandwidth()
2819 xhci_update_bw_info(xhci, virt_dev->in_ctx, ctrl_ctx, virt_dev); in xhci_reserve_bandwidth()
2822 if (EP_IS_ADDED(ctrl_ctx, i)) in xhci_reserve_bandwidth()
2841 if (!EP_IS_ADDED(ctrl_ctx, i) && !EP_IS_DROPPED(ctrl_ctx, i)) in xhci_reserve_bandwidth()
2847 if (EP_IS_ADDED(ctrl_ctx, i)) { in xhci_reserve_bandwidth()
2859 if (EP_IS_DROPPED(ctrl_ctx, i)) in xhci_reserve_bandwidth()
2881 struct xhci_input_control_ctx *ctrl_ctx; in xhci_configure_endpoint() local
2897 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_configure_endpoint()
2898 if (!ctrl_ctx) { in xhci_configure_endpoint()
2906 xhci_reserve_host_resources(xhci, ctrl_ctx)) { in xhci_configure_endpoint()
2916 xhci_free_host_resources(xhci, ctrl_ctx); in xhci_configure_endpoint()
2924 trace_xhci_configure_endpoint_ctrl_ctx(ctrl_ctx); in xhci_configure_endpoint()
2937 xhci_free_host_resources(xhci, ctrl_ctx); in xhci_configure_endpoint()
2962 xhci_free_host_resources(xhci, ctrl_ctx); in xhci_configure_endpoint()
2964 xhci_finish_resource_reservation(xhci, ctrl_ctx); in xhci_configure_endpoint()
3000 struct xhci_input_control_ctx *ctrl_ctx; in xhci_check_bandwidth() local
3022 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_check_bandwidth()
3023 if (!ctrl_ctx) { in xhci_check_bandwidth()
3029 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); in xhci_check_bandwidth()
3030 ctrl_ctx->add_flags &= cpu_to_le32(~EP0_FLAG); in xhci_check_bandwidth()
3031 ctrl_ctx->drop_flags &= cpu_to_le32(~(SLOT_FLAG | EP0_FLAG)); in xhci_check_bandwidth()
3034 if (ctrl_ctx->add_flags == cpu_to_le32(SLOT_FLAG) && in xhci_check_bandwidth()
3035 ctrl_ctx->drop_flags == 0) { in xhci_check_bandwidth()
3044 if ((virt_dev->eps[i-1].ring && !(ctrl_ctx->drop_flags & le32)) in xhci_check_bandwidth()
3045 || (ctrl_ctx->add_flags & le32) || i == 1) { in xhci_check_bandwidth()
3060 if ((le32_to_cpu(ctrl_ctx->drop_flags) & (1 << (i + 1))) && in xhci_check_bandwidth()
3061 !(le32_to_cpu(ctrl_ctx->add_flags) & (1 << (i + 1)))) { in xhci_check_bandwidth()
3121 struct xhci_input_control_ctx *ctrl_ctx, in xhci_setup_input_ctx_for_config_ep() argument
3124 ctrl_ctx->add_flags = cpu_to_le32(add_flags); in xhci_setup_input_ctx_for_config_ep()
3125 ctrl_ctx->drop_flags = cpu_to_le32(drop_flags); in xhci_setup_input_ctx_for_config_ep()
3127 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); in xhci_setup_input_ctx_for_config_ep()
3191 struct xhci_input_control_ctx *ctrl_ctx; in xhci_endpoint_reset() local
3278 ctrl_ctx = xhci_get_input_control_ctx(cfg_cmd->in_ctx); in xhci_endpoint_reset()
3279 if (!ctrl_ctx) { in xhci_endpoint_reset()
3288 ctrl_ctx, ep_flag, ep_flag); in xhci_endpoint_reset()
3478 struct xhci_input_control_ctx *ctrl_ctx; in xhci_alloc_streams() local
3507 ctrl_ctx = xhci_get_input_control_ctx(config_cmd->in_ctx); in xhci_alloc_streams()
3508 if (!ctrl_ctx) { in xhci_alloc_streams()
3582 vdev->out_ctx, ctrl_ctx, in xhci_alloc_streams()
3645 struct xhci_input_control_ctx *ctrl_ctx; in xhci_free_streams() local
3668 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_free_streams()
3669 if (!ctrl_ctx) { in xhci_free_streams()
3690 vdev->out_ctx, ctrl_ctx, in xhci_free_streams()
4132 struct xhci_input_control_ctx *ctrl_ctx; in xhci_setup_device() local
4183 ctrl_ctx = xhci_get_input_control_ctx(virt_dev->in_ctx); in xhci_setup_device()
4184 if (!ctrl_ctx) { in xhci_setup_device()
4200 ctrl_ctx->add_flags = cpu_to_le32(SLOT_FLAG | EP0_FLAG); in xhci_setup_device()
4201 ctrl_ctx->drop_flags = 0; in xhci_setup_device()
4206 trace_xhci_address_ctrl_ctx(ctrl_ctx); in xhci_setup_device()
4289 ctrl_ctx->add_flags = 0; in xhci_setup_device()
4290 ctrl_ctx->drop_flags = 0; in xhci_setup_device()
4339 struct xhci_input_control_ctx *ctrl_ctx; in xhci_change_max_exit_latency() local
4361 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_change_max_exit_latency()
4362 if (!ctrl_ctx) { in xhci_change_max_exit_latency()
4372 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); in xhci_change_max_exit_latency()
5094 struct xhci_input_control_ctx *ctrl_ctx; in xhci_update_hub_device() local
5114 ctrl_ctx = xhci_get_input_control_ctx(config_cmd->in_ctx); in xhci_update_hub_device()
5115 if (!ctrl_ctx) { in xhci_update_hub_device()
5132 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); in xhci_update_hub_device()