Searched refs:buf (Results 26 - 50 of 119) sorted by relevance

12345

/gem5/src/sim/
H A Darguments.hh138 T *buf = (T *)data->alloc(sizeof(T)); local
139 tc->getVirtProxy().readBlob(getArg(sizeof(T)), buf, sizeof(T));
140 return buf;
144 char *buf = data->alloc(2048); local
145 tc->getVirtProxy().readString(buf, getArg(), 2048);
146 return buf;
/gem5/ext/dnet/
H A Drand.h20 int rand_get(rand_t *r, void *buf, size_t len);
22 int rand_add(rand_t *r, const void *buf, size_t len);
/gem5/util/systemc/systemc_within_gem5/systemc_simple_object/
H A Dfeeder.cc45 printer->input(buf);
60 buf.write(strings[index++].c_str());
H A Dfeeder.hh64 sc_core::sc_buffer<const char *> buf; member in class:Feeder
/gem5/src/gpu-compute/
H A Dcl_driver.cc173 BufferArg buf(buf_addr, string_table_size);
174 char *bufp = (char*)buf.bufferPtr();
184 assert(bufp - (char *)buf.bufferPtr() == string_table_size);
186 buf.copyOut(tc->getVirtProxy());
216 TypedBufferArg<TheGpuISA::RawMachInst> buf(buf_addr, code_size);
217 TheGpuISA::RawMachInst *bufp = buf;
230 buf.copyOut(tc->getVirtProxy());
236 BufferArg buf(buf_addr, sizeof(uint32_t));
237 *((uint32_t*)buf.bufferPtr()) = dispatcher->getNumCUs();
238 buf
[all...]
/gem5/src/arch/arm/tracers/
H A Dtarmac_parser.cc73 char TarmacParserRecord::buf[TarmacParserRecord::MaxLineLength]; member in class:Trace::TarmacParserRecord
887 if (buf[0] != 'I') {
888 trace >> buf; local
891 trace >> buf >> buf;
893 assert((buf[0] == 'c') && (buf[1] == 'p') && (buf[2] == 'u'));
894 trace >> buf; local
901 if (buf[
907 trace >> buf; local
913 trace >> c >> buf; local
916 trace >> buf; local
939 trace >> buf; local
1035 trace >> c >> buf; local
1089 char buf[TarmacParserRecord::MaxLineLength]; local
1097 trace >> buf >> buf >> buf; local
1099 trace >> buf; local
[all...]
/gem5/src/base/
H A Dcirclebuf.hh149 : buf(size) {}
151 bool empty() const { return buf.empty(); }
152 size_t size() const { return buf.size(); }
153 size_t capacity() const { return buf.capacity(); }
155 void flush() { buf.flush(); }
158 void peek(OutputIterator out, size_t len) const { buf.peek(out, len); }
160 void read(OutputIterator out, size_t len) { buf.read(out, len); }
166 buf.write(in, len);
170 CircleBuf<value_type> buf; member in class:Fifo
/gem5/src/cpu/
H A Dinst_pb_trace.cc72 : InstTracer(p), buf(nullptr), bufSize(0), curMsg(nullptr)
144 size_t instSize = si->asBytes(buf.get(), bufSize);
147 buf.reset(new uint8_t[bufSize]);
148 instSize = si->asBytes(buf.get(), bufSize);
155 curMsg->set_inst(letoh(*reinterpret_cast<uint32_t *>(buf.get())));
158 std::string(reinterpret_cast<const char *>(buf.get()), bufSize));
/gem5/ext/systemc/src/tlm_core/tlm_1/tlm_req_rsp/tlm_channels/tlm_fifo/
H A Dcircular_buffer.h74 void buf_free( void*& buf );
75 void buf_write( void* buf, int n, const T & t );
76 T& buf_read( void* buf, int n ) const;
77 void buf_clear( void* buf, int n );
238 circular_buffer<T>::buf_free( void* & buf )
239 { delete [] static_cast<unsigned char*>(buf); buf = 0; }
243 circular_buffer<T>::buf_write( void* buf, int n, const T & t ) argument
245 T* p = static_cast<T*>(buf) + n;
251 circular_buffer<T>::buf_read( void* buf, in argument
259 buf_clear( void* buf, int n ) argument
[all...]
/gem5/src/dev/serial/
H A Dterminal.cc219 char buf[1024]; local
220 for (size_t i = 0; i < txbuf.size(); i += sizeof(buf)) {
221 const size_t chunk_len(std::min(txbuf.size() - i, sizeof(buf)));
222 txbuf.peek(buf, i, chunk_len);
223 write((const uint8_t *)buf, chunk_len);
245 uint8_t buf[1024]; local
248 len = read(buf, sizeof(buf));
250 rxbuf.write((char *)buf, len);
256 Terminal::read(uint8_t *buf, size_ argument
280 write(const uint8_t *buf, size_t len) argument
[all...]
H A Dterminal.hh124 size_t read(uint8_t *buf, size_t len);
126 size_t write(const uint8_t *buf, size_t len);
/gem5/src/systemc/tests/systemc/misc/stars/star110089/
H A Dstar110089.cpp122 sc_in<unsigned> buf; /* a pointer */ local
143 int lp_write_buf_f(unsigned int minor, pchar_t buf, int count);
168 invalid_read = user_addr < buf || user_addr >= buf + count;
181 unsigned res = lp_write_buf_f(minor, buf, count);
269 /* Write count bytes starting at buf in user space to the parallel port
273 pchar_t buf, int count)
317 if (copy_from_user(lp_table[minor].lp_buffer, buf, copy_size)) {
382 buf += bytes_written;
272 lp_write_buf_f(unsigned int minor, pchar_t buf, int count) argument
/gem5/src/arch/power/insts/
H A Dstatic_inst.hh74 asBytes(void *buf, size_t max_size) override
76 return simpleAsBytes(buf, max_size, machInst);
/gem5/src/base/loader/
H A Dobject_file.cc136 uint8_t buf[2] = {0}; local
137 size_t sz = pread(fd, buf, 2, 0);
139 return ((buf[0] == 0x1f) && (buf[1] == 0x8b));
168 auto buf = new uint8_t[blk_sz]; local
169 int r; // size of (r)emaining uncopied data in (buf)fer
170 while ((r = gzread(fdz, buf, blk_sz)) > 0) {
171 auto p = buf; // pointer into buffer
179 delete[] buf;
/gem5/src/mem/
H A Dport_proxy.cc83 uint8_t *buf = new uint8_t[size]; local
85 std::memset(buf, v, size);
86 PortProxy::writeBlobPhys(addr, flags, buf, size);
88 delete [] buf;
/gem5/util/term/
H A Dterm.c147 char buf[BUFSIZ]; local
172 if (read(nfd, buf, 0) < 0)
177 if (read(nfd, buf, 0) < 0)
181 if ((n = read(nfd, buf, sizeof(buf))) < 0)
187 if ((ret = atomicio(write, lfd, buf, n)) != n)
193 if ((n = read(wfd, buf, sizeof(buf))) < 0)
200 if (*buf == '.') {
205 if (*buf !
[all...]
/gem5/util/m5/
H A Dm5.c110 uint8_t buf[256*1024]; local
117 memset(buf, 0, sizeof(buf));
119 while ((len = m5_read_file(buf, sizeof(buf), offset)) > 0) {
120 uint8_t *base = buf;
152 char buf[256*1024]; local
157 memset(buf, 0, sizeof(buf));
159 while ((len = read(src_fid, buf, sizeo
[all...]
/gem5/util/systemc/systemc_within_gem5/systemc_sc_main/
H A Dsc_main.cc97 sc_core::sc_buffer<const char *> buf; local
101 feeder.output(buf);
104 printer.input(buf);
/gem5/ext/libelf/
H A Dlibelf_ar.c114 _libelf_ar_get_string(const char *buf, size_t bufsize, int rawname) argument
124 for (q = buf + bufsize - 1; q >= buf && *q == ' '; --q)
127 if (q < buf) {
132 buf = "";
140 if (q > buf + 1 ||
141 (q == (buf + 1) && *buf != '/'))
144 sz = q - buf + 2; /* Space for a trailing NUL. */
153 (void) strncpy(r, buf, s
163 _libelf_ar_get_name(char *buf, size_t bufsize, Elf *e) argument
[all...]
/gem5/src/systemc/core/
H A Dmodule.hh58 std::string buf; member in class:sc_gem5::UniqueNameGen
66 buf = os.str();
67 return buf.c_str();
/gem5/src/systemc/tests/systemc/misc/sim_tests/cgen/
H A Dcgen.cpp136 char buf[BUFSIZ]; local
137 sprintf( buf, "Data = %4d\tCode = %4d", data.read(), code.read() );
138 cout << buf << endl;
/gem5/ext/pybind11/tests/
H A Dtest_buffers.py84 buf = cls()
85 buf.value = 0x12345678
86 value = struct.unpack('i', bytearray(buf))[0]
/gem5/src/dev/net/
H A Dtcp_iface.hh101 * @param buf Start address of the message.
105 sendTCP(int sock, const void *buf, unsigned length);
111 * @param buf Start address of buffer to store the message.
114 bool recvTCP(int sock, void *buf, unsigned length);
/gem5/src/arch/riscv/insts/
H A Dstatic_inst.hh58 asBytes(void *buf, size_t size) override
60 return simpleAsBytes(buf, size, machInst);
/gem5/util/
H A Dprotolib.py140 buf = in_file.read(size)
141 message.ParseFromString(buf)

Completed in 16 milliseconds

12345