Lines Matching refs:ctrl_ctx
1434 struct xhci_input_control_ctx *ctrl_ctx;
1467 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx);
1468 if (!ctrl_ctx) {
1483 ctrl_ctx->add_flags = cpu_to_le32(EP0_FLAG);
1484 ctrl_ctx->drop_flags = 0;
1492 ctrl_ctx->add_flags = cpu_to_le32(SLOT_FLAG);
1786 struct xhci_input_control_ctx *ctrl_ctx;
1810 ctrl_ctx = xhci_get_input_control_ctx(in_ctx);
1811 if (!ctrl_ctx) {
1823 le32_to_cpu(ctrl_ctx->drop_flags) &
1832 ctrl_ctx->drop_flags |= cpu_to_le32(drop_flag);
1833 new_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags);
1835 ctrl_ctx->add_flags &= cpu_to_le32(~drop_flag);
1836 new_add_flags = le32_to_cpu(ctrl_ctx->add_flags);
1872 struct xhci_input_control_ctx *ctrl_ctx;
1902 ctrl_ctx = xhci_get_input_control_ctx(in_ctx);
1903 if (!ctrl_ctx) {
1914 !(le32_to_cpu(ctrl_ctx->drop_flags) & added_ctxs)) {
1924 if (le32_to_cpu(ctrl_ctx->add_flags) & added_ctxs) {
1950 ctrl_ctx->add_flags |= cpu_to_le32(added_ctxs);
1951 new_add_flags = le32_to_cpu(ctrl_ctx->add_flags);
1959 new_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags);
1977 struct xhci_input_control_ctx *ctrl_ctx;
1982 ctrl_ctx = xhci_get_input_control_ctx(virt_dev->in_ctx);
1983 if (!ctrl_ctx) {
1994 ctrl_ctx->drop_flags = 0;
1995 ctrl_ctx->add_flags = 0;
2110 struct xhci_input_control_ctx *ctrl_ctx)
2119 valid_add_flags = le32_to_cpu(ctrl_ctx->add_flags) >> 2;
2120 valid_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags) >> 2;
2131 struct xhci_input_control_ctx *ctrl_ctx)
2136 valid_add_flags = le32_to_cpu(ctrl_ctx->add_flags) >> 2;
2137 valid_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags) >> 2;
2157 struct xhci_input_control_ctx *ctrl_ctx)
2161 added_eps = xhci_count_num_new_endpoints(xhci, ctrl_ctx);
2184 struct xhci_input_control_ctx *ctrl_ctx)
2188 num_failed_eps = xhci_count_num_new_endpoints(xhci, ctrl_ctx);
2203 struct xhci_input_control_ctx *ctrl_ctx)
2207 num_dropped_eps = xhci_count_num_dropped_endpoints(xhci, ctrl_ctx);
2703 struct xhci_input_control_ctx *ctrl_ctx;
2709 ctrl_ctx = xhci_get_input_control_ctx(in_ctx);
2710 if (!ctrl_ctx) {
2717 if (!EP_IS_ADDED(ctrl_ctx, i) && !EP_IS_DROPPED(ctrl_ctx, i))
2726 if (EP_IS_DROPPED(ctrl_ctx, i))
2735 xhci_update_bw_info(xhci, virt_dev->in_ctx, ctrl_ctx, virt_dev);
2738 if (EP_IS_ADDED(ctrl_ctx, i))
2757 if (!EP_IS_ADDED(ctrl_ctx, i) && !EP_IS_DROPPED(ctrl_ctx, i))
2763 if (EP_IS_ADDED(ctrl_ctx, i)) {
2775 if (EP_IS_DROPPED(ctrl_ctx, i))
2797 struct xhci_input_control_ctx *ctrl_ctx;
2813 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx);
2814 if (!ctrl_ctx) {
2822 xhci_reserve_host_resources(xhci, ctrl_ctx)) {
2832 xhci_free_host_resources(xhci, ctrl_ctx);
2840 trace_xhci_configure_endpoint_ctrl_ctx(ctrl_ctx);
2853 xhci_free_host_resources(xhci, ctrl_ctx);
2878 xhci_free_host_resources(xhci, ctrl_ctx);
2880 xhci_finish_resource_reservation(xhci, ctrl_ctx);
2916 struct xhci_input_control_ctx *ctrl_ctx;
2938 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx);
2939 if (!ctrl_ctx) {
2945 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG);
2946 ctrl_ctx->add_flags &= cpu_to_le32(~EP0_FLAG);
2947 ctrl_ctx->drop_flags &= cpu_to_le32(~(SLOT_FLAG | EP0_FLAG));
2950 if (ctrl_ctx->add_flags == cpu_to_le32(SLOT_FLAG) &&
2951 ctrl_ctx->drop_flags == 0) {
2960 if ((virt_dev->eps[i-1].ring && !(ctrl_ctx->drop_flags & le32))
2961 || (ctrl_ctx->add_flags & le32) || i == 1) {
2976 if ((le32_to_cpu(ctrl_ctx->drop_flags) & (1 << (i + 1))) &&
2977 !(le32_to_cpu(ctrl_ctx->add_flags) & (1 << (i + 1)))) {
3035 struct xhci_input_control_ctx *ctrl_ctx,
3038 ctrl_ctx->add_flags = cpu_to_le32(add_flags);
3039 ctrl_ctx->drop_flags = cpu_to_le32(drop_flags);
3041 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG);
3048 struct xhci_input_control_ctx *ctrl_ctx;
3055 ctrl_ctx = xhci_get_input_control_ctx(in_ctx);
3056 if (!ctrl_ctx) {
3079 xhci->devs[slot_id]->out_ctx, ctrl_ctx,
3183 struct xhci_input_control_ctx *ctrl_ctx;
3270 ctrl_ctx = xhci_get_input_control_ctx(cfg_cmd->in_ctx);
3271 if (!ctrl_ctx) {
3280 ctrl_ctx, ep_flag, ep_flag);
3470 struct xhci_input_control_ctx *ctrl_ctx;
3499 ctrl_ctx = xhci_get_input_control_ctx(config_cmd->in_ctx);
3500 if (!ctrl_ctx) {
3574 vdev->out_ctx, ctrl_ctx,
3637 struct xhci_input_control_ctx *ctrl_ctx;
3660 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx);
3661 if (!ctrl_ctx) {
3682 vdev->out_ctx, ctrl_ctx,
4132 struct xhci_input_control_ctx *ctrl_ctx;
4183 ctrl_ctx = xhci_get_input_control_ctx(virt_dev->in_ctx);
4184 if (!ctrl_ctx) {
4200 ctrl_ctx->add_flags = cpu_to_le32(SLOT_FLAG | EP0_FLAG);
4201 ctrl_ctx->drop_flags = 0;
4206 trace_xhci_address_ctrl_ctx(ctrl_ctx);
4292 ctrl_ctx->add_flags = 0;
4293 ctrl_ctx->drop_flags = 0;
4342 struct xhci_input_control_ctx *ctrl_ctx;
4364 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx);
4365 if (!ctrl_ctx) {
4375 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG);
5106 struct xhci_input_control_ctx *ctrl_ctx;
5126 ctrl_ctx = xhci_get_input_control_ctx(config_cmd->in_ctx);
5127 if (!ctrl_ctx) {
5144 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG);