drivers/usb/cdns3/cdnsp-gadget.c
1026
ctrl_ctx = cdnsp_get_input_control_ctx(&pdev->in_ctx);
drivers/usb/cdns3/cdnsp-gadget.c
1027
ctrl_ctx->add_flags = cpu_to_le32(added_ctxs);
drivers/usb/cdns3/cdnsp-gadget.c
1028
ctrl_ctx->drop_flags = 0;
drivers/usb/cdns3/cdnsp-gadget.c
1048
struct cdnsp_input_control_ctx *ctrl_ctx;
drivers/usb/cdns3/cdnsp-gadget.c
1086
ctrl_ctx = cdnsp_get_input_control_ctx(&pdev->in_ctx);
drivers/usb/cdns3/cdnsp-gadget.c
1087
ctrl_ctx->drop_flags = cpu_to_le32(drop_flag);
drivers/usb/cdns3/cdnsp-gadget.c
1088
ctrl_ctx->add_flags = 0;
drivers/usb/cdns3/cdnsp-gadget.c
471
struct cdnsp_input_control_ctx *ctrl_ctx;
drivers/usb/cdns3/cdnsp-gadget.c
476
ctrl_ctx = cdnsp_get_input_control_ctx(&pdev->in_ctx);
drivers/usb/cdns3/cdnsp-gadget.c
484
ctrl_ctx->drop_flags = 0;
drivers/usb/cdns3/cdnsp-gadget.c
485
ctrl_ctx->add_flags = 0;
drivers/usb/cdns3/cdnsp-gadget.c
684
struct cdnsp_input_control_ctx *ctrl_ctx;
drivers/usb/cdns3/cdnsp-gadget.c
690
ctrl_ctx = cdnsp_get_input_control_ctx(&pdev->in_ctx);
drivers/usb/cdns3/cdnsp-gadget.c
693
if (ctrl_ctx->add_flags == 0 && ctrl_ctx->drop_flags == 0)
drivers/usb/cdns3/cdnsp-gadget.c
696
ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG);
drivers/usb/cdns3/cdnsp-gadget.c
697
ctrl_ctx->add_flags &= cpu_to_le32(~EP0_FLAG);
drivers/usb/cdns3/cdnsp-gadget.c
698
ctrl_ctx->drop_flags &= cpu_to_le32(~(SLOT_FLAG | EP0_FLAG));
drivers/usb/cdns3/cdnsp-gadget.c
705
if ((pdev->eps[i - 1].ring && !(ctrl_ctx->drop_flags & le32)) ||
drivers/usb/cdns3/cdnsp-gadget.c
706
(ctrl_ctx->add_flags & le32) || i == 1) {
drivers/usb/cdns3/cdnsp-gadget.c
715
if ((ctrl_ctx->add_flags != cpu_to_le32(SLOT_FLAG) &&
drivers/usb/cdns3/cdnsp-gadget.c
717
(ep_sts != EP_STATE_DISABLED && ctrl_ctx->drop_flags))
drivers/usb/cdns3/cdnsp-gadget.c
901
struct cdnsp_input_control_ctx *ctrl_ctx;
drivers/usb/cdns3/cdnsp-gadget.c
923
ctrl_ctx = cdnsp_get_input_control_ctx(&pdev->in_ctx);
drivers/usb/cdns3/cdnsp-gadget.c
933
ctrl_ctx->add_flags = cpu_to_le32(SLOT_FLAG | EP0_FLAG);
drivers/usb/cdns3/cdnsp-gadget.c
934
ctrl_ctx->drop_flags = 0;
drivers/usb/cdns3/cdnsp-gadget.c
945
ctrl_ctx->add_flags = 0;
drivers/usb/cdns3/cdnsp-gadget.c
946
ctrl_ctx->drop_flags = 0;
drivers/usb/cdns3/cdnsp-gadget.c
975
struct cdnsp_input_control_ctx *ctrl_ctx;
drivers/usb/host/xhci-mem.c
1547
struct xhci_input_control_ctx *ctrl_ctx,
drivers/usb/host/xhci-mem.c
1563
if (!EP_IS_ADDED(ctrl_ctx, i) && EP_IS_DROPPED(ctrl_ctx, i)) {
drivers/usb/host/xhci-mem.c
1569
if (EP_IS_ADDED(ctrl_ctx, i)) {
drivers/usb/host/xhci-ring.c
1624
struct xhci_input_control_ctx *ctrl_ctx;
drivers/usb/host/xhci-ring.c
1637
ctrl_ctx = xhci_get_input_control_ctx(virt_dev->in_ctx);
drivers/usb/host/xhci-ring.c
1638
if (!ctrl_ctx) {
drivers/usb/host/xhci-ring.c
1643
add_flags = le32_to_cpu(ctrl_ctx->add_flags);
drivers/usb/host/xhci-trace.h
450
TP_PROTO(struct xhci_input_control_ctx *ctrl_ctx),
drivers/usb/host/xhci-trace.h
451
TP_ARGS(ctrl_ctx),
drivers/usb/host/xhci-trace.h
457
__entry->drop = le32_to_cpu(ctrl_ctx->drop_flags);
drivers/usb/host/xhci-trace.h
458
__entry->add = le32_to_cpu(ctrl_ctx->add_flags);
drivers/usb/host/xhci-trace.h
465
TP_PROTO(struct xhci_input_control_ctx *ctrl_ctx),
drivers/usb/host/xhci-trace.h
466
TP_ARGS(ctrl_ctx)
drivers/usb/host/xhci-trace.h
470
TP_PROTO(struct xhci_input_control_ctx *ctrl_ctx),
drivers/usb/host/xhci-trace.h
471
TP_ARGS(ctrl_ctx)
drivers/usb/host/xhci.c
1548
struct xhci_input_control_ctx *ctrl_ctx;
drivers/usb/host/xhci.c
1580
ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx);
drivers/usb/host/xhci.c
1581
if (!ctrl_ctx) {
drivers/usb/host/xhci.c
1595
ctrl_ctx->add_flags = cpu_to_le32(EP0_FLAG);
drivers/usb/host/xhci.c
1596
ctrl_ctx->drop_flags = 0;
drivers/usb/host/xhci.c
1601
ctrl_ctx->add_flags = cpu_to_le32(SLOT_FLAG);
drivers/usb/host/xhci.c
1904
struct xhci_input_control_ctx *ctrl_ctx;
drivers/usb/host/xhci.c
1928
ctrl_ctx = xhci_get_input_control_ctx(in_ctx);
drivers/usb/host/xhci.c
1929
if (!ctrl_ctx) {
drivers/usb/host/xhci.c
1941
le32_to_cpu(ctrl_ctx->drop_flags) &
drivers/usb/host/xhci.c
1950
ctrl_ctx->drop_flags |= cpu_to_le32(drop_flag);
drivers/usb/host/xhci.c
1951
new_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags);
drivers/usb/host/xhci.c
1953
ctrl_ctx->add_flags &= cpu_to_le32(~drop_flag);
drivers/usb/host/xhci.c
1954
new_add_flags = le32_to_cpu(ctrl_ctx->add_flags);
drivers/usb/host/xhci.c
1988
struct xhci_input_control_ctx *ctrl_ctx;
drivers/usb/host/xhci.c
2018
ctrl_ctx = xhci_get_input_control_ctx(in_ctx);
drivers/usb/host/xhci.c
2019
if (!ctrl_ctx) {
drivers/usb/host/xhci.c
2030
!(le32_to_cpu(ctrl_ctx->drop_flags) & added_ctxs)) {
drivers/usb/host/xhci.c
2040
if (le32_to_cpu(ctrl_ctx->add_flags) & added_ctxs) {
drivers/usb/host/xhci.c
2057
ctrl_ctx->add_flags |= cpu_to_le32(added_ctxs);
drivers/usb/host/xhci.c
2058
new_add_flags = le32_to_cpu(ctrl_ctx->add_flags);
drivers/usb/host/xhci.c
2066
new_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags);
drivers/usb/host/xhci.c
2085
struct xhci_input_control_ctx *ctrl_ctx;
drivers/usb/host/xhci.c
2090
ctrl_ctx = xhci_get_input_control_ctx(virt_dev->in_ctx);
drivers/usb/host/xhci.c
2091
if (!ctrl_ctx) {
drivers/usb/host/xhci.c
2102
ctrl_ctx->drop_flags = 0;
drivers/usb/host/xhci.c
2103
ctrl_ctx->add_flags = 0;
drivers/usb/host/xhci.c
2218
struct xhci_input_control_ctx *ctrl_ctx)
drivers/usb/host/xhci.c
2227
valid_add_flags = le32_to_cpu(ctrl_ctx->add_flags) >> 2;
drivers/usb/host/xhci.c
2228
valid_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags) >> 2;
drivers/usb/host/xhci.c
2239
struct xhci_input_control_ctx *ctrl_ctx)
drivers/usb/host/xhci.c
2244
valid_add_flags = le32_to_cpu(ctrl_ctx->add_flags) >> 2;
drivers/usb/host/xhci.c
2245
valid_drop_flags = le32_to_cpu(ctrl_ctx->drop_flags) >> 2;
drivers/usb/host/xhci.c
2265
struct xhci_input_control_ctx *ctrl_ctx)
drivers/usb/host/xhci.c
2269
added_eps = xhci_count_num_new_endpoints(xhci, ctrl_ctx);
drivers/usb/host/xhci.c
2292
struct xhci_input_control_ctx *ctrl_ctx)
drivers/usb/host/xhci.c
2296
num_failed_eps = xhci_count_num_new_endpoints(xhci, ctrl_ctx);
drivers/usb/host/xhci.c
2311
struct xhci_input_control_ctx *ctrl_ctx)
drivers/usb/host/xhci.c
2315
num_dropped_eps = xhci_count_num_dropped_endpoints(xhci, ctrl_ctx);
drivers/usb/host/xhci.c
2802
struct xhci_input_control_ctx *ctrl_ctx;
drivers/usb/host/xhci.c
2808
ctrl_ctx = xhci_get_input_control_ctx(in_ctx);
drivers/usb/host/xhci.c
2809
if (!ctrl_ctx) {
drivers/usb/host/xhci.c
2816
if (!EP_IS_ADDED(ctrl_ctx, i) && !EP_IS_DROPPED(ctrl_ctx, i))
drivers/usb/host/xhci.c
2825
if (EP_IS_DROPPED(ctrl_ctx, i))
drivers/usb/host/xhci.c
2834
xhci_update_bw_info(xhci, virt_dev->in_ctx, ctrl_ctx, virt_dev);
drivers/usb/host/xhci.c
2837
if (EP_IS_ADDED(ctrl_ctx, i))
drivers/usb/host/xhci.c
2856
if (!EP_IS_ADDED(ctrl_ctx, i) && !EP_IS_DROPPED(ctrl_ctx, i))
drivers/usb/host/xhci.c
2862
if (EP_IS_ADDED(ctrl_ctx, i)) {
drivers/usb/host/xhci.c
2874
if (EP_IS_DROPPED(ctrl_ctx, i))
drivers/usb/host/xhci.c
2964
struct xhci_input_control_ctx *ctrl_ctx;
drivers/usb/host/xhci.c
2980
ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx);
drivers/usb/host/xhci.c
2981
if (!ctrl_ctx) {
drivers/usb/host/xhci.c
2989
xhci_reserve_host_resources(xhci, ctrl_ctx)) {
drivers/usb/host/xhci.c
2999
xhci_free_host_resources(xhci, ctrl_ctx);
drivers/usb/host/xhci.c
3007
trace_xhci_configure_endpoint_ctrl_ctx(ctrl_ctx);
drivers/usb/host/xhci.c
3020
xhci_free_host_resources(xhci, ctrl_ctx);
drivers/usb/host/xhci.c
3045
xhci_free_host_resources(xhci, ctrl_ctx);
drivers/usb/host/xhci.c
3047
xhci_finish_resource_reservation(xhci, ctrl_ctx);
drivers/usb/host/xhci.c
3083
struct xhci_input_control_ctx *ctrl_ctx;
drivers/usb/host/xhci.c
3105
ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx);
drivers/usb/host/xhci.c
3106
if (!ctrl_ctx) {
drivers/usb/host/xhci.c
3112
ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG);
drivers/usb/host/xhci.c
3113
ctrl_ctx->add_flags &= cpu_to_le32(~EP0_FLAG);
drivers/usb/host/xhci.c
3114
ctrl_ctx->drop_flags &= cpu_to_le32(~(SLOT_FLAG | EP0_FLAG));
drivers/usb/host/xhci.c
3117
if (ctrl_ctx->add_flags == cpu_to_le32(SLOT_FLAG) &&
drivers/usb/host/xhci.c
3118
ctrl_ctx->drop_flags == 0) {
drivers/usb/host/xhci.c
3127
if ((virt_dev->eps[i-1].ring && !(ctrl_ctx->drop_flags & le32))
drivers/usb/host/xhci.c
3128
|| (ctrl_ctx->add_flags & le32) || i == 1) {
drivers/usb/host/xhci.c
3143
if ((le32_to_cpu(ctrl_ctx->drop_flags) & (1 << (i + 1))) &&
drivers/usb/host/xhci.c
3144
!(le32_to_cpu(ctrl_ctx->add_flags) & (1 << (i + 1)))) {
drivers/usb/host/xhci.c
3247
struct xhci_input_control_ctx *ctrl_ctx,
drivers/usb/host/xhci.c
3250
ctrl_ctx->add_flags = cpu_to_le32(add_flags);
drivers/usb/host/xhci.c
3251
ctrl_ctx->drop_flags = cpu_to_le32(drop_flags);
drivers/usb/host/xhci.c
3253
ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG);
drivers/usb/host/xhci.c
3317
struct xhci_input_control_ctx *ctrl_ctx;
drivers/usb/host/xhci.c
3420
ctrl_ctx = xhci_get_input_control_ctx(cfg_cmd->in_ctx);
drivers/usb/host/xhci.c
3421
if (!ctrl_ctx) {
drivers/usb/host/xhci.c
3430
ctrl_ctx, ep_flag, ep_flag);
drivers/usb/host/xhci.c
3620
struct xhci_input_control_ctx *ctrl_ctx;
drivers/usb/host/xhci.c
3649
ctrl_ctx = xhci_get_input_control_ctx(config_cmd->in_ctx);
drivers/usb/host/xhci.c
3650
if (!ctrl_ctx) {
drivers/usb/host/xhci.c
3724
vdev->out_ctx, ctrl_ctx,
drivers/usb/host/xhci.c
3787
struct xhci_input_control_ctx *ctrl_ctx;
drivers/usb/host/xhci.c
3811
ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx);
drivers/usb/host/xhci.c
3812
if (!ctrl_ctx) {
drivers/usb/host/xhci.c
3833
vdev->out_ctx, ctrl_ctx,
drivers/usb/host/xhci.c
4325
struct xhci_input_control_ctx *ctrl_ctx;
drivers/usb/host/xhci.c
4377
ctrl_ctx = xhci_get_input_control_ctx(virt_dev->in_ctx);
drivers/usb/host/xhci.c
4378
if (!ctrl_ctx) {
drivers/usb/host/xhci.c
4394
ctrl_ctx->add_flags = cpu_to_le32(SLOT_FLAG | EP0_FLAG);
drivers/usb/host/xhci.c
4395
ctrl_ctx->drop_flags = 0;
drivers/usb/host/xhci.c
4399
trace_xhci_address_ctrl_ctx(ctrl_ctx);
drivers/usb/host/xhci.c
4482
ctrl_ctx->add_flags = 0;
drivers/usb/host/xhci.c
4483
ctrl_ctx->drop_flags = 0;
drivers/usb/host/xhci.c
4534
struct xhci_input_control_ctx *ctrl_ctx;
drivers/usb/host/xhci.c
4560
ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx);
drivers/usb/host/xhci.c
4561
if (!ctrl_ctx) {
drivers/usb/host/xhci.c
4572
ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG);
drivers/usb/host/xhci.c
5272
struct xhci_input_control_ctx *ctrl_ctx;
drivers/usb/host/xhci.c
5292
ctrl_ctx = xhci_get_input_control_ctx(config_cmd->in_ctx);
drivers/usb/host/xhci.c
5293
if (!ctrl_ctx) {
drivers/usb/host/xhci.c
5310
ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG);
drivers/usb/host/xhci.h
1814
struct xhci_input_control_ctx *ctrl_ctx,
drivers/usb/host/xhci.h
523
#define EP_IS_ADDED(ctrl_ctx, i) \
drivers/usb/host/xhci.h
524
(le32_to_cpu(ctrl_ctx->add_flags) & (1 << (i + 1)))
drivers/usb/host/xhci.h
525
#define EP_IS_DROPPED(ctrl_ctx, i) \
drivers/usb/host/xhci.h
526
(le32_to_cpu(ctrl_ctx->drop_flags) & (1 << (i + 1)))
drivers/usb/misc/usbtest.c
1089
struct ctrl_ctx *ctx = urb->context;
drivers/usb/misc/usbtest.c
1205
struct ctrl_ctx context;