/linux-4.4.14/drivers/usb/host/ |
H A D | xhci.c | 1249 struct xhci_input_control_ctx *ctrl_ctx; xhci_check_maxpacket() local 1282 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); xhci_check_maxpacket() 1283 if (!ctrl_ctx) { xhci_check_maxpacket() 1297 ctrl_ctx->add_flags = cpu_to_le32(EP0_FLAG); xhci_check_maxpacket() 1298 ctrl_ctx->drop_flags = 0; xhci_check_maxpacket() 1311 ctrl_ctx->add_flags = cpu_to_le32(SLOT_FLAG); xhci_check_maxpacket() 1649 struct xhci_input_control_ctx *ctrl_ctx; xhci_drop_endpoint() local 1673 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); xhci_drop_endpoint() 1674 if (!ctrl_ctx) { xhci_drop_endpoint() 1687 le32_to_cpu(ctrl_ctx->drop_flags) & xhci_drop_endpoint() 1696 ctrl_ctx->drop_flags |= cpu_to_le32(drop_flag); xhci_drop_endpoint() 1697 new_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags); xhci_drop_endpoint() 1699 ctrl_ctx->add_flags &= cpu_to_le32(~drop_flag); xhci_drop_endpoint() 1700 new_add_flags = le32_to_cpu(ctrl_ctx->add_flags); xhci_drop_endpoint() 1731 struct xhci_input_control_ctx *ctrl_ctx; xhci_add_endpoint() local 1760 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); xhci_add_endpoint() 1761 if (!ctrl_ctx) { xhci_add_endpoint() 1772 !(le32_to_cpu(ctrl_ctx->drop_flags) & added_ctxs)) { xhci_add_endpoint() 1782 if (le32_to_cpu(ctrl_ctx->add_flags) & added_ctxs) { xhci_add_endpoint() 1799 ctrl_ctx->add_flags |= cpu_to_le32(added_ctxs); xhci_add_endpoint() 1800 new_add_flags = le32_to_cpu(ctrl_ctx->add_flags); xhci_add_endpoint() 1808 new_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags); xhci_add_endpoint() 1823 struct xhci_input_control_ctx *ctrl_ctx; xhci_zero_in_ctx() local 1828 ctrl_ctx = xhci_get_input_control_ctx(virt_dev->in_ctx); xhci_zero_in_ctx() 1829 if (!ctrl_ctx) { xhci_zero_in_ctx() 1840 ctrl_ctx->drop_flags = 0; xhci_zero_in_ctx() 1841 ctrl_ctx->add_flags = 0; xhci_zero_in_ctx() 1958 struct xhci_input_control_ctx *ctrl_ctx) xhci_count_num_new_endpoints() 1967 valid_add_flags = le32_to_cpu(ctrl_ctx->add_flags) >> 2; xhci_count_num_new_endpoints() 1968 valid_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags) >> 2; xhci_count_num_new_endpoints() 1979 struct xhci_input_control_ctx *ctrl_ctx) xhci_count_num_dropped_endpoints() 1984 valid_add_flags = le32_to_cpu(ctrl_ctx->add_flags) >> 2; xhci_count_num_dropped_endpoints() 1985 valid_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags) >> 2; xhci_count_num_dropped_endpoints() 2005 struct xhci_input_control_ctx *ctrl_ctx) xhci_reserve_host_resources() 2009 added_eps = xhci_count_num_new_endpoints(xhci, ctrl_ctx); xhci_reserve_host_resources() 2032 struct xhci_input_control_ctx *ctrl_ctx) xhci_free_host_resources() 2036 num_failed_eps = xhci_count_num_new_endpoints(xhci, ctrl_ctx); xhci_free_host_resources() 2051 struct xhci_input_control_ctx *ctrl_ctx) xhci_finish_resource_reservation() 2055 num_dropped_eps = xhci_count_num_dropped_endpoints(xhci, ctrl_ctx); xhci_finish_resource_reservation() 2548 struct xhci_input_control_ctx *ctrl_ctx; xhci_reserve_bandwidth() local 2554 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); xhci_reserve_bandwidth() 2555 if (!ctrl_ctx) { xhci_reserve_bandwidth() 2562 if (!EP_IS_ADDED(ctrl_ctx, i) && !EP_IS_DROPPED(ctrl_ctx, i)) xhci_reserve_bandwidth() 2571 if (EP_IS_DROPPED(ctrl_ctx, i)) xhci_reserve_bandwidth() 2580 xhci_update_bw_info(xhci, virt_dev->in_ctx, ctrl_ctx, virt_dev); xhci_reserve_bandwidth() 2583 if (EP_IS_ADDED(ctrl_ctx, i)) xhci_reserve_bandwidth() 2602 if (!EP_IS_ADDED(ctrl_ctx, i) && !EP_IS_DROPPED(ctrl_ctx, i)) xhci_reserve_bandwidth() 2608 if (EP_IS_ADDED(ctrl_ctx, i)) { xhci_reserve_bandwidth() 2620 if (EP_IS_DROPPED(ctrl_ctx, i)) xhci_reserve_bandwidth() 2642 struct xhci_input_control_ctx *ctrl_ctx; xhci_configure_endpoint() local 2651 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); xhci_configure_endpoint() 2652 if (!ctrl_ctx) { xhci_configure_endpoint() 2660 xhci_reserve_host_resources(xhci, ctrl_ctx)) { xhci_configure_endpoint() 2670 xhci_free_host_resources(xhci, ctrl_ctx); xhci_configure_endpoint() 2686 xhci_free_host_resources(xhci, ctrl_ctx); xhci_configure_endpoint() 2711 xhci_free_host_resources(xhci, ctrl_ctx); xhci_configure_endpoint() 2713 xhci_finish_resource_reservation(xhci, ctrl_ctx); xhci_configure_endpoint() 2749 struct xhci_input_control_ctx *ctrl_ctx; xhci_check_bandwidth() local 2771 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); xhci_check_bandwidth() 2772 if (!ctrl_ctx) { xhci_check_bandwidth() 2778 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); xhci_check_bandwidth() 2779 ctrl_ctx->add_flags &= cpu_to_le32(~EP0_FLAG); xhci_check_bandwidth() 2780 ctrl_ctx->drop_flags &= cpu_to_le32(~(SLOT_FLAG | EP0_FLAG)); xhci_check_bandwidth() 2783 if (ctrl_ctx->add_flags == cpu_to_le32(SLOT_FLAG) && xhci_check_bandwidth() 2784 ctrl_ctx->drop_flags == 0) { xhci_check_bandwidth() 2793 if ((virt_dev->eps[i-1].ring && !(ctrl_ctx->drop_flags & le32)) xhci_check_bandwidth() 2794 || (ctrl_ctx->add_flags & le32) || i == 1) { xhci_check_bandwidth() 2816 if ((le32_to_cpu(ctrl_ctx->drop_flags) & (1 << (i + 1))) && xhci_check_bandwidth() 2817 !(le32_to_cpu(ctrl_ctx->add_flags) & (1 << (i + 1)))) { xhci_check_bandwidth() 2873 struct xhci_input_control_ctx *ctrl_ctx, xhci_setup_input_ctx_for_config_ep() 2876 ctrl_ctx->add_flags = cpu_to_le32(add_flags); xhci_setup_input_ctx_for_config_ep() 2877 ctrl_ctx->drop_flags = cpu_to_le32(drop_flags); xhci_setup_input_ctx_for_config_ep() 2879 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); xhci_setup_input_ctx_for_config_ep() 2889 struct xhci_input_control_ctx *ctrl_ctx; xhci_setup_input_ctx_for_quirk() local 2896 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); xhci_setup_input_ctx_for_quirk() 2897 if (!ctrl_ctx) { xhci_setup_input_ctx_for_quirk() 2920 xhci->devs[slot_id]->out_ctx, ctrl_ctx, xhci_setup_input_ctx_for_quirk() 3157 struct xhci_input_control_ctx *ctrl_ctx; xhci_alloc_streams() local 3186 ctrl_ctx = xhci_get_input_control_ctx(config_cmd->in_ctx); xhci_alloc_streams() 3187 if (!ctrl_ctx) { xhci_alloc_streams() 3259 vdev->out_ctx, ctrl_ctx, xhci_alloc_streams() 3318 struct xhci_input_control_ctx *ctrl_ctx; xhci_free_streams() local 3341 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); xhci_free_streams() 3342 if (!ctrl_ctx) { xhci_free_streams() 3363 vdev->out_ctx, ctrl_ctx, xhci_free_streams() 3799 struct xhci_input_control_ctx *ctrl_ctx; xhci_setup_device() local 3848 ctrl_ctx = xhci_get_input_control_ctx(virt_dev->in_ctx); xhci_setup_device() 3849 if (!ctrl_ctx) { xhci_setup_device() 3865 ctrl_ctx->add_flags = cpu_to_le32(SLOT_FLAG | EP0_FLAG); xhci_setup_device() 3866 ctrl_ctx->drop_flags = 0; xhci_setup_device() 3955 ctrl_ctx->add_flags = 0; xhci_setup_device() 3956 ctrl_ctx->drop_flags = 0; xhci_setup_device() 4008 struct xhci_input_control_ctx *ctrl_ctx; xhci_change_max_exit_latency() local 4030 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); xhci_change_max_exit_latency() 4031 if (!ctrl_ctx) { xhci_change_max_exit_latency() 4041 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); xhci_change_max_exit_latency() 4744 struct xhci_input_control_ctx *ctrl_ctx; xhci_update_hub_device() local 4764 ctrl_ctx = xhci_get_input_control_ctx(config_cmd->in_ctx); xhci_update_hub_device() 4765 if (!ctrl_ctx) { xhci_update_hub_device() 4782 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); xhci_update_hub_device() 1957 xhci_count_num_new_endpoints(struct xhci_hcd *xhci, struct xhci_input_control_ctx *ctrl_ctx) xhci_count_num_new_endpoints() argument 1978 xhci_count_num_dropped_endpoints(struct xhci_hcd *xhci, struct xhci_input_control_ctx *ctrl_ctx) xhci_count_num_dropped_endpoints() argument 2004 xhci_reserve_host_resources(struct xhci_hcd *xhci, struct xhci_input_control_ctx *ctrl_ctx) xhci_reserve_host_resources() argument 2031 xhci_free_host_resources(struct xhci_hcd *xhci, struct xhci_input_control_ctx *ctrl_ctx) xhci_free_host_resources() argument 2050 xhci_finish_resource_reservation(struct xhci_hcd *xhci, struct xhci_input_control_ctx *ctrl_ctx) xhci_finish_resource_reservation() argument 2870 xhci_setup_input_ctx_for_config_ep(struct xhci_hcd *xhci, struct xhci_container_ctx *in_ctx, struct xhci_container_ctx *out_ctx, struct xhci_input_control_ctx *ctrl_ctx, u32 add_flags, u32 drop_flags) xhci_setup_input_ctx_for_config_ep() argument
|
H A D | xhci-dbg.c | 571 struct xhci_input_control_ctx *ctrl_ctx = xhci_dbg_ctx() local 573 if (!ctrl_ctx) { xhci_dbg_ctx() 579 &ctrl_ctx->drop_flags, (unsigned long long)dma, xhci_dbg_ctx() 580 ctrl_ctx->drop_flags); xhci_dbg_ctx() 583 &ctrl_ctx->add_flags, (unsigned long long)dma, xhci_dbg_ctx() 584 ctrl_ctx->add_flags); xhci_dbg_ctx() 588 &ctrl_ctx->rsvd2[i], (unsigned long long)dma, xhci_dbg_ctx() 589 ctrl_ctx->rsvd2[i], i); xhci_dbg_ctx() 594 dbg_rsvd64(xhci, (u64 *)ctrl_ctx, dma); xhci_dbg_ctx()
|
H A D | xhci.h | 773 #define EP_IS_ADDED(ctrl_ctx, i) \ 774 (le32_to_cpu(ctrl_ctx->add_flags) & (1 << (i + 1))) 775 #define EP_IS_DROPPED(ctrl_ctx, i) \ 776 (le32_to_cpu(ctrl_ctx->drop_flags) & (1 << (i + 1))) 1772 struct xhci_input_control_ctx *ctrl_ctx,
|
H A D | xhci-mem.c | 1545 struct xhci_input_control_ctx *ctrl_ctx, xhci_update_bw_info() 1561 if (!EP_IS_ADDED(ctrl_ctx, i) && EP_IS_DROPPED(ctrl_ctx, i)) { xhci_update_bw_info() 1567 if (EP_IS_ADDED(ctrl_ctx, i)) { xhci_update_bw_info() 1543 xhci_update_bw_info(struct xhci_hcd *xhci, struct xhci_container_ctx *in_ctx, struct xhci_input_control_ctx *ctrl_ctx, struct xhci_virt_device *virt_dev) xhci_update_bw_info() argument
|
H A D | xhci-ring.c | 1108 struct xhci_input_control_ctx *ctrl_ctx; xhci_handle_cmd_config_ep() local 1122 ctrl_ctx = xhci_get_input_control_ctx(virt_dev->in_ctx); xhci_handle_cmd_config_ep() 1123 if (!ctrl_ctx) { xhci_handle_cmd_config_ep() 1128 add_flags = le32_to_cpu(ctrl_ctx->add_flags); xhci_handle_cmd_config_ep() 1129 drop_flags = le32_to_cpu(ctrl_ctx->drop_flags); xhci_handle_cmd_config_ep()
|
/linux-4.4.14/drivers/usb/misc/ |
H A D | usbtest.c | 1027 struct ctrl_ctx { struct 1049 struct ctrl_ctx *ctx = urb->context; ctrl_complete() 1164 struct ctrl_ctx context; test_ctrl_queue()
|