Home
last modified time | relevance | path

Searched refs:ctrl_ctx (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/usb/host/
H A Dxhci.c1548 struct xhci_input_control_ctx *ctrl_ctx; in xhci_check_ep0_maxpacket() local
1580 ctrl_ctx = xhci_get_input_control_ctx(command->in_ctx); in xhci_check_ep0_maxpacket()
1581 if (!ctrl_ctx) { in xhci_check_ep0_maxpacket()
1595 ctrl_ctx->add_flags = cpu_to_le32(EP0_FLAG); in xhci_check_ep0_maxpacket()
1596 ctrl_ctx->drop_flags = 0; in xhci_check_ep0_maxpacket()
1601 ctrl_ctx->add_flags = cpu_to_le32(SLOT_FLAG); in xhci_check_ep0_maxpacket()
1904 struct xhci_input_control_ctx *ctrl_ctx; in xhci_drop_endpoint() local
1928 ctrl_ctx = xhci_get_input_control_ctx(in_ctx); in xhci_drop_endpoint()
1929 if (!ctrl_ctx) { in xhci_drop_endpoint()
1941 le32_to_cpu(ctrl_ctx->drop_flags) & in xhci_drop_endpoint()
[all …]
H A Dxhci-trace.h450 TP_PROTO(struct xhci_input_control_ctx *ctrl_ctx),
451 TP_ARGS(ctrl_ctx),
457 __entry->drop = le32_to_cpu(ctrl_ctx->drop_flags);
458 __entry->add = le32_to_cpu(ctrl_ctx->add_flags);
465 TP_PROTO(struct xhci_input_control_ctx *ctrl_ctx),
466 TP_ARGS(ctrl_ctx)
470 TP_PROTO(struct xhci_input_control_ctx *ctrl_ctx),
471 TP_ARGS(ctrl_ctx)
H A Dxhci.h523 #define EP_IS_ADDED(ctrl_ctx, i) \ argument
524 (le32_to_cpu(ctrl_ctx->add_flags) & (1 << (i + 1)))
525 #define EP_IS_DROPPED(ctrl_ctx, i) \ argument
526 (le32_to_cpu(ctrl_ctx->drop_flags) & (1 << (i + 1)))
1814 struct xhci_input_control_ctx *ctrl_ctx,
/linux/drivers/usb/cdns3/
H A Dcdnsp-gadget.c471 struct cdnsp_input_control_ctx *ctrl_ctx; in cdnsp_zero_in_ctx() local
476 ctrl_ctx = cdnsp_get_input_control_ctx(&pdev->in_ctx); in cdnsp_zero_in_ctx()
484 ctrl_ctx->drop_flags = 0; in cdnsp_zero_in_ctx()
485 ctrl_ctx->add_flags = 0; in cdnsp_zero_in_ctx()
684 struct cdnsp_input_control_ctx *ctrl_ctx; in cdnsp_update_eps_configuration() local
690 ctrl_ctx = cdnsp_get_input_control_ctx(&pdev->in_ctx); in cdnsp_update_eps_configuration()
693 if (ctrl_ctx->add_flags == 0 && ctrl_ctx->drop_flags == 0) in cdnsp_update_eps_configuration()
696 ctrl_ctx->add_flags |= cpu_to_le32(SLOT_FLAG); in cdnsp_update_eps_configuration()
697 ctrl_ctx->add_flags &= cpu_to_le32(~EP0_FLAG); in cdnsp_update_eps_configuration()
698 ctrl_ctx->drop_flags &= cpu_to_le32(~(SLOT_FLAG | EP0_FLAG)); in cdnsp_update_eps_configuration()
[all …]
/linux/drivers/usb/misc/
H A Dusbtest.c1067 struct ctrl_ctx { struct
1089 struct ctrl_ctx *ctx = urb->context; in ctrl_complete() argument
1205 struct ctrl_ctx context; in test_ctrl_queue()