Home | History | Annotate | Download | only in usbip

Lines Matching refs:out

41 std::ostream& operator<<(std::ostream& out, const CmdHeader& header) {
42 out << "CmdHeader\n";
43 out << "\t\tcmd:\t" << header.command << '\n';
44 out << "\t\tseq#:\t" << header.seq_num << '\n';
45 out << "\t\tbus#:\t0x" << header.bus_num << '\n';
46 out << "\t\tdev#:\t0x" << header.dev_num << '\n';
47 out << "\t\tdir:\t" << (header.direction ? "in" : "out") << '\n';
48 out << "\t\tendpt:\t" << header.endpoint << "\n";
49 return out;
52 std::ostream& operator<<(std::ostream& out, const CmdRequest& setup) {
53 out << "Request\n";
54 out << "\t\t\ttype:\t" << std::hex << int(setup.type) << '\n';
55 out << "\t\t\treq:\t" << int(setup.cmd) << std::dec << '\n';
56 out << "\t\t\tval:\t" << setup.value << '\n';
57 out << "\t\t\tidx:\t" << setup.index << '\n';
58 out << "\t\t\tlen:\t" << setup.length << '\n';
59 return out;
62 std::ostream& operator<<(std::ostream& out, const CmdReqSubmit& submit) {
63 out << "CmdReqSubmit\n";
64 out << "\t\ttr_flg:\t" << std::hex << submit.transfer_flags << std::dec
66 out << "\t\ttr_len:\t" << submit.transfer_buffer_length << '\n';
67 out << "\t\tstart:\t" << submit.start_frame << '\n';
68 out << "\t\tpktcnt:\t" << submit.number_of_packets << '\n';
69 out << "\t\tttl:\t" << submit.deadline_interval << '\n';
70 out << "\t\tsetup:\t" << submit.setup << '\n';
71 return out;
74 std::ostream& operator<<(std::ostream& out, const CmdRepSubmit& submit) {
75 out << "CmdRepSubmit\n";
76 out << "\t\tstatus:\t" << submit.status << '\n';
77 out << "\t\tlen:\t" << submit.actual_length << '\n';
78 out << "\t\tstart:\t" << submit.start_frame << '\n';
79 out << "\t\tpktcnt:\t" << submit.number_of_packets << '\n';
80 out << "\t\terrors:\t" << submit.error_count << '\n';
81 out << "\t\tsetup:\t" << submit.setup << '\n';
82 return out;
85 std::ostream& operator<<(std::ostream& out, const CmdReqUnlink& unlink) {
86 out << "CmdReqUnlink\n";
87 out << "\t\tseq#:\t" << unlink.seq_num << '\n';
88 return out;
91 std::ostream& operator<<(std::ostream& out, const CmdRepUnlink& unlink) {
92 out << "CmdRepUnlink\n";
93 out << "\t\tstatus:\t" << unlink.status << '\n';
94 return out;