/gem5/src/dev/net/ |
H A D | etherpkt.cc | 46 paramOut(cp, base + ".length", length); 47 arrayParamOut(cp, base + ".data", data, length); 53 paramIn(cp, base + ".length", length); 63 // buffer or use length to size the buffer 65 bufLength = length; 67 assert(length <= bufLength); 70 arrayParamIn(cp, base + ".data", data, length); 72 simLength = length; [all...] |
H A D | etherpkt.hh | 65 unsigned length; member in class:EthPacketData 68 * Effective length, used for modeling timing in the simulator. 69 * This could be different from length if the packets are assumed 77 : data(nullptr), bufLength(0), length(0), simLength(0) 81 : data(new uint8_t[size]), bufLength(size), length(0), simLength(0)
|
H A D | etherbus.cc | 66 DPRINTF(Ethernet, "ethernet packet received: length=%d\n", packet->length); 67 DDUMP(EthernetData, packet->data, packet->length); 98 DPRINTF(Ethernet, "ethernet packet sent: length=%d\n", pkt->length); 99 DDUMP(EthernetData, pkt->data, pkt->length);
|
H A D | pktfifo.hh | 124 assert(ptr->length); 125 assert(_reserved <= ptr->length); 126 if (avail() < ptr->length - _reserved) 129 _size += ptr->length; 145 _size -= entry->packet->length; 166 prev->slack += i->packet->length; 169 _size -= i->packet->length; 198 total += i->packet->length + i->slack;
|
H A D | pktfifo.cc | 48 while (offset >= pkt->length) { 49 offset -= pkt->length; 56 unsigned size = min(pkt->length - offset, len);
|
H A D | tcp_iface.cc | 264 TCPIface::sendTCP(int sock, const void *buf, unsigned length) 268 ret = ::send(sock, buf, length, MSG_NOSIGNAL); 277 panic_if(ret != length, "send() failed"); 281 TCPIface::recvTCP(int sock, void *buf, unsigned length) 285 ret = ::recv(sock, buf, length, MSG_WAITALL ); 293 } else if (ret != length) 296 return (ret == length); 303 sendTCP(sock, packet->data, packet->length); 334 packet->length = header.dataPacketLength;
|
H A D | tcp_iface.hh | 102 * @param length Size of the message in bytes. 105 sendTCP(int sock, const void *buf, unsigned length); 112 * @param length Exact size of the expected message in bytes. 114 bool recvTCP(int sock, void *buf, unsigned length);
|
/gem5/src/base/ |
H A D | pixel.cc | 57 : length(_length), 64 assert(length > 1); 80 for (int i = 0; i < length; ++i) 83 for (int i = 0; i < length; ++i) 84 word |= p[i] << (8 * (length - i - 1)); 94 for (int i = 0; i < length; ++i) 97 for (int i = 0; i < length; ++i) 98 p[i] = (word >> (8 * (length - i - 1))) & 0xFF;
|
/gem5/tests/gem5/test_build/ |
H A D | test_build.py | 43 length = constants.quick_tag variable 45 length = constants.long_tag variable 47 tags = [isa, length, variant]
|
/gem5/src/systemc/tests/tlm/endian_conv/ |
H A D | testall.py | 54 - byte-enable length may be smaller than transasction length 60 words, where N is the length in words 75 """ contains read_not_write, address, length, byte_enable, 82 (self.address, self.length, self.bus_width, self.data_width, \ 107 length = random.choice(lengths) 114 length = length * data_width, 117 stream_width = length * data_width, 121 belen = length [all...] |
/gem5/ext/dsent/libutil/ |
H A D | Config.cc | 41 const pos skip = delimiter.length(); // length of separator 45 while(ist_ || nextline.length() > 0) 49 if(nextline.length() > 0) 67 if(line.length() == 0)
|
/gem5/src/kern/linux/ |
H A D | helpers.cc | 79 warn("\tMax length: %i\n", max_length); 119 warn("dmesg pointers/length corrupted\n"); 125 int length; local 127 length = log_next_idx - log_first_idx; 128 if (length < 0 || length > log_buf.size()) { 129 warn("Unexpected dmesg buffer length\n"); 132 proxy.readBlob(addr_lb + log_first_idx, log_buf.data(), length); 136 warn("Unexpected dmesg buffer length\n"); 139 length [all...] |
/gem5/src/systemc/tests/systemc/datatypes/misc/test03/ |
H A D | test03.cpp | 91 cout << a.length() << endl; \ 95 cout << b.length() << endl; \ 99 cout << c.length() << endl; \ 103 cout << d.length() << endl; \ 107 cout << e.length() << endl; \
|
/gem5/src/systemc/ext/dt/fx/ |
H A D | scfx_other_defs.hh | 72 for (int i = 0; i < length(); ++i) 87 for (int i = 0; i < length(); ++i) 102 for (int i = 0; i < length(); ++i) 117 for (int i = 0; i < length(); ++i) 139 for (int i = 0; i < length(); ++i) 154 for (int i = 0; i < length(); ++i) 169 for (int i = 0; i < length(); ++i) 184 for (int i = 0; i < length(); ++i)
|
/gem5/src/arch/x86/linux/ |
H A D | system.cc | 80 if (commandLine.length() + 1 > realModeData - commandLineBuff) 84 commandLine.length() + 1);
|
/gem5/tests/gem5/fs/linux/arm/ |
H A D | test.py | 98 length=constants.quick_tag, variable 110 length=constants.long_tag, variable
|
/gem5/ext/systemc/src/sysc/utils/ |
H A D | sc_string.cpp | 173 sc_string_old::length() const function in class:sc_dt::sc_string_old 181 int len = length(); 190 int len = length(); 202 sc_string_rep* r = new sc_string_rep( len + t.length() + 1 ); 211 int len = length(); 212 sc_string_rep* r = new sc_string_rep( len + s.length() + 1 ); 246 int oldlen = length(); 264 int oldlen = length(); 307 if(first<0 || last<0 || first>last || first>=length() || last>=length()) 492 remove(unsigned index, unsigned length) argument [all...] |
/gem5/ext/systemc/src/sysc/datatypes/int/ |
H A D | sc_int_base.cpp | 83 sc_int_concref_invalid_length( int length ) 87 "sc_int_concref<T1,T2> initialization: length = %d " 88 "violates 1 <= length <= %d", 89 length, SC_INTWIDTH ); 114 if ( low_i < src.length() ) 123 if ( low_i < src.length() ) 284 sc_int_base aa( length() ); 291 sc_int_base aa( length() ); 298 sc_int_base aa( length() ); 305 sc_int_base aa( length() ); [all...] |
H A D | sc_uint_base.cpp | 81 sc_uint_concref_invalid_length( int length ) 85 "sc_uint_concref<T1,T2> initialization: length = %d " 86 "violates 1 <= length <= %d", 87 length, SC_INTWIDTH ); 113 if ( low_i < src.length() ) 122 if ( low_i < src.length() ) 257 sc_uint_base aa( length() ); 264 sc_uint_base aa( length() ); 271 sc_uint_base aa( length() ); 278 sc_uint_base aa( length() ); [all...] |
/gem5/src/systemc/dt/int/ |
H A D | sc_int_base.cc | 91 sc_int_concref_invalid_length(int length) argument 94 msg << "sc_int_concref<T1,T2> initialization: length = " << length << 95 "violates 1 <= length <= " << SC_INTWIDTH; 121 if (low_i < src.length()) 130 if (low_i < src.length()) 279 sc_int_base aa(length()); 286 sc_int_base aa(length()); 293 sc_int_base aa(length()); 300 sc_int_base aa(length()); [all...] |
H A D | sc_uint_base.cc | 89 sc_uint_concref_invalid_length(int length) argument 92 msg << "sc_uint_concref<T1,T2> initialization: length = " << length << 93 "violates 1 <= length <= " << SC_INTWIDTH; 122 if (low_i < src.length()) 132 if (low_i < src.length()) 264 sc_uint_base aa(length()); 271 sc_uint_base aa(length()); 278 sc_uint_base aa(length()); 285 sc_uint_base aa(length()); [all...] |
/gem5/ext/googletest/googletest/src/ |
H A D | gtest-filepath.cc | 128 0, pathname_.length() - dot_extension.length())); 258 return pathname_.length() == 3 && IsAbsolutePath(); 260 return pathname_.length() == 1 && IsPathSeparator(pathname_.c_str()[0]); 268 return pathname_.length() >= 3 && 302 IsPathSeparator(pathname_.c_str()[pathname_.length() - 1]); 313 if (pathname_.length() == 0 || this->DirectoryExists()) { 348 ? FilePath(pathname_.substr(0, pathname_.length() - 1)) 362 char* const dest = new char[pathname_.length() + 1]; 364 memset(dest_ptr, 0, pathname_.length() [all...] |
/gem5/src/sim/ |
H A D | emul_driver.hh | 95 virtual Addr mmap(ThreadContext *tc, Addr start, uint64_t length, argument
|
H A D | redirect_path.cc | 44 if (path[path.length()-1] != '/') path.push_back('/');
|
/gem5/src/arch/x86/bios/ |
H A D | intelmp.cc | 88 writeOutString(PortProxy& proxy, Addr addr, string str, int length) argument 90 char cleanedString[length + 1]; 91 cleanedString[length] = 0; 93 if (str.length() > length) { 94 memcpy(cleanedString, str.c_str(), length); 98 memcpy(cleanedString, str.c_str(), str.length()); 99 memset(cleanedString + str.length(), 0, length - str.length()); 131 uint8_t length = 1; local [all...] |