Searched refs:ptr (Results 1 - 25 of 99) sorted by relevance

1234

/gem5/ext/libelf/
H A Delf_rawfile.c35 char *ptr; local
39 ptr = NULL;
43 else if ((ptr = e->e_rawfile) == NULL && e->e_cmd == ELF_C_WRITE)
49 return (ptr);
H A Delf_getarsym.c33 elf_getarsym(Elf *ar, size_t *ptr) argument
50 if (ptr)
51 *ptr = n;
/gem5/src/base/
H A Dcast.hh46 safe_cast(U ptr) argument
48 T ret = dynamic_cast<T>(ptr);
61 safe_cast(U ptr) argument
63 return static_cast<T>(ptr);
H A Dtrie.test.cc42 static inline uint32_t *ptr(uintptr_t val) function in namespace:__anon108
71 trie.insert(0x0123456789abcdef, 40, ptr(1));
73 EXPECT_EQ(trie.lookup(0x123456789ab0000), ptr(1)) << dumpTrie();
78 trie.insert(0x0123456789abcdef, 40, ptr(1));
79 trie.insert(0x0123456789abcdef, 36, ptr(2));
81 EXPECT_EQ(trie.lookup(0x123456789ab0000), ptr(2)) << dumpTrie();
86 trie.insert(0x0123456789abcdef, 36, ptr(2));
87 trie.insert(0x0123456789abcdef, 40, ptr(1));
89 EXPECT_EQ(trie.lookup(0x123456789ab0000), ptr(2)) << dumpTrie();
94 trie.insert(0x0123456789abcdef, 40, ptr(
[all...]
H A Dcprintf.cc45 : stream(stream), format(format.c_str()), ptr(format.c_str()), cont(false)
54 : stream(stream), format(format), ptr(format), cont(false)
73 while (*ptr) {
74 switch (*ptr) {
76 if (ptr[1] != '%') {
81 ptr += 2;
86 ++ptr;
89 ++ptr;
90 if (*ptr != '\n')
95 len = strcspn(ptr, "
[all...]
H A Dinet.hh170 EthPtr(const EthPacketPtr &ptr) : p(ptr) { } argument
180 const EthPtr &operator=(const EthPacketPtr &ptr) { p = ptr; return *this; } argument
289 void set(const EthPacketPtr &ptr) argument
294 if (ptr) {
295 EthHdr *eth = (EthHdr *)ptr->data;
297 p = ptr;
305 IpPtr(const EthPacketPtr &ptr) : p(0), eth_hdr_vlan(false) { set(ptr); } argument
306 IpPtr(const EthPtr &ptr) argument
307 IpPtr(const IpPtr &ptr) argument
320 operator =(const EthPacketPtr &ptr) argument
321 operator =(const EthPtr &ptr) argument
322 operator =(const IpPtr &ptr) argument
402 set(const EthPacketPtr &ptr) argument
418 Ip6Ptr(const EthPacketPtr &ptr) argument
419 Ip6Ptr(const EthPtr &ptr) argument
420 Ip6Ptr(const Ip6Ptr &ptr) argument
433 operator =(const EthPacketPtr &ptr) argument
435 operator =(const EthPtr &ptr) argument
437 operator =(const Ip6Ptr &ptr) argument
541 set(const EthPacketPtr &ptr, int offset) argument
542 set(const IpPtr &ptr) argument
549 set(const Ip6Ptr &ptr) argument
559 TcpPtr(const IpPtr &ptr) argument
560 TcpPtr(const Ip6Ptr &ptr) argument
561 TcpPtr(const TcpPtr &ptr) argument
637 set(const EthPacketPtr &ptr, int offset) argument
638 set(const IpPtr &ptr) argument
645 set(const Ip6Ptr &ptr) argument
655 UdpPtr(const IpPtr &ptr) argument
656 UdpPtr(const Ip6Ptr &ptr) argument
657 UdpPtr(const UdpPtr &ptr) argument
[all...]
H A Dstl_helpers.hh42 deletePointer(T &ptr) argument
44 delete ptr;
45 ptr = NULL;
/gem5/src/systemc/core/
H A Dpython.cc60 for (auto ptr = firstReadyFunc(); ptr; ptr = ptr->next)
61 ptr->run();
69 for (auto ptr = firstInitFunc(); ptr; ptr = ptr->next)
70 ptr
[all...]
/gem5/ext/systemc/src/sysc/utils/
H A Dsc_hash.cpp106 sc_phash_elem* ptr; local
110 ptr = bins[i];
111 while (ptr != 0) {
112 next = ptr->next;
113 delete ptr;
114 ptr = next;
123 sc_phash_elem* ptr; local
139 ptr = old_bins[i];
140 while (ptr != 0) {
141 next = ptr
156 sc_phash_elem* ptr = *last; local
178 sc_phash_elem* ptr = *last; local
213 sc_phash_elem* ptr = bins[i]; local
229 sc_phash_elem* ptr = bins[i]; local
264 sc_phash_elem* ptr = find_entry( hash_val, k ); local
279 sc_phash_elem* ptr = find_entry( hash_val, k ); local
294 sc_phash_elem* ptr = find_entry( hash_val, k ); local
307 sc_phash_elem* ptr = find_entry( hash_val, k ); local
321 sc_phash_elem* ptr = find_entry( hash_val, k, &last ); local
338 sc_phash_elem* ptr = find_entry( hash_val, k, &last ); local
374 sc_phash_elem* ptr; local
401 sc_phash_elem* ptr; local
428 sc_phash_elem* ptr; local
456 sc_phash_elem* ptr; local
484 sc_phash_elem* ptr = find_entry( hash_val, k ); local
[all...]
H A Dsc_list.cpp250 lst(l), ptr( from_tail ? l->tail : l->head )
259 ptr = l->tail;
262 ptr = l->head;
274 return ptr == 0;
280 ptr = ptr->next;
286 ptr = ptr->prev;
292 return ptr->data;
298 ptr
[all...]
/gem5/ext/googletest/googletest/include/gtest/internal/
H A Dgtest-linked_ptr.h108 void join(linked_ptr_internal const* ptr)
112 linked_ptr_internal const* p = ptr;
113 while (p->next_ != ptr) {
120 next_ = ptr;
152 explicit linked_ptr(T* ptr = NULL) { capture(ptr); }
156 template <typename U> linked_ptr(linked_ptr<U> const& ptr) { copy(&ptr); } argument
157 linked_ptr(linked_ptr const& ptr) { // NOLINT argument
158 assert(&ptr !
163 operator =(linked_ptr<U> const& ptr) argument
169 operator =(linked_ptr const& ptr) argument
208 capture(T* ptr) argument
213 copy(linked_ptr<U> const* ptr) argument
223 operator ==(T* ptr, const linked_ptr<T>& x) argument
228 operator !=(T* ptr, const linked_ptr<T>& x) argument
236 make_linked_ptr(T* ptr) argument
[all...]
/gem5/src/sim/
H A Dvptr.hh46 Addr ptr; member in class:VPtr
51 : tc(_tc), ptr(p)
58 : tc(vp.tc), ptr(vp.ptr)
69 if (!ptr)
73 proxy.readBlob(ptr, buffer, sizeof(T));
79 return ptr == 0;
85 return VPtr<T>(tc, ptr + offset);
91 ptr += offset;
100 ptr
[all...]
/gem5/src/systemc/tests/tlm/nb2b_adapter/
H A Dmm.h17 gp_t* ptr; local
21 ptr = free_list->trans;
24 sc_assert(ptr);
25 delete ptr;
57 gp_t* ptr; local
60 ptr = free_list->trans;
66 ptr = new gp_t(this);
68 return ptr;
/gem5/src/systemc/tests/tlm/update_original/
H A Dmm.h17 gp_t* ptr; local
21 ptr = free_list->trans;
24 sc_assert(ptr);
25 delete ptr;
57 gp_t* ptr; local
60 ptr = free_list->trans;
66 ptr = new gp_t(this);
68 return ptr;
H A Dupdate_original.cpp28 ext->ptr = ptr;
37 ptr = static_cast<my_extension const &>(ext).ptr;
43 unsigned char* ptr; member in struct:my_extension
124 ext->ptr = data;
140 sc_assert( data[i] == ext->ptr[i] );
144 sc_assert( data[i] == ext->ptr[i] );
206 unsigned char* ptr = trans.get_data_ptr(); local
220 sc_assert( ptr[
[all...]
/gem5/ext/pybind11/include/pybind11/
H A Dchrono.h48 if (PyDelta_Check(src.ptr())) {
50 days(PyDateTime_DELTA_GET_DAYS(src.ptr()))
51 + seconds(PyDateTime_DELTA_GET_SECONDS(src.ptr()))
52 + microseconds(PyDateTime_DELTA_GET_MICROSECONDS(src.ptr()))));
56 else if (PyFloat_Check(src.ptr())) {
57 value = type(duration_cast<duration<rep, period>>(duration<double>(PyFloat_AsDouble(src.ptr()))));
113 if (PyDateTime_Check(src.ptr())) {
114 cal.tm_sec = PyDateTime_DATE_GET_SECOND(src.ptr());
115 cal.tm_min = PyDateTime_DATE_GET_MINUTE(src.ptr());
116 cal.tm_hour = PyDateTime_DATE_GET_HOUR(src.ptr());
[all...]
H A Deval.h46 PyObject *result = PyRun_String(buffer.c_str(), start, global.ptr(), local.ptr());
85 FILE *f = _Py_fopen_obj(fname.ptr(), "r");
87 FILE *f = _Py_fopen(fname.ptr(), "r");
95 f = PyFile_AsFile(fobj.ptr());
104 PyObject *result = PyRun_File(f, fname_str.c_str(), start, global.ptr(),
105 local.ptr());
108 PyObject *result = PyRun_FileEx(f, fname_str.c_str(), start, global.ptr(),
109 local.ptr(), closeFile);
H A Dpytypes.h51 The only requirement for `Derived` is to implement ``PyObject *Derived::ptr() const``.
114 bool is(object_api const& other) const { return derived().ptr() == other.derived().ptr(); }
116 bool is_none() const { return derived().ptr() == Py_None; }
153 int ref_count() const { return static_cast<int>(Py_REFCNT(derived().ptr())); }
179 handle(PyObject *ptr) : m_ptr(ptr) { } // Allow implicit conversion from PyObject* argument
182 PyObject *ptr() const { return m_ptr; } function in class:handle
183 PyObject *&ptr() { return m_ptr; } function in class:handle
327 PyErr_Fetch(&m_type.ptr(),
472 object_or_cast(PyObject *ptr) argument
508 PyObject *ptr() const { return get_cache().ptr(); } function in class:accessor
669 PyObject **ptr; member in class:sequence_fast_readonly
1149 capsule(PyObject *ptr, bool is_borrowed) argument
[all...]
H A Dbuffer_info.h18 void *ptr = nullptr; // Pointer to the underlying storage member in struct:buffer_info
28 buffer_info(void *ptr, ssize_t itemsize, const std::string &format, ssize_t ndim, argument
30 : ptr(ptr), itemsize(itemsize), size(1), format(format), ndim(ndim),
39 buffer_info(T *ptr, detail::any_container<ssize_t> shape_in, detail::any_container<ssize_t> strides_in) argument
40 : buffer_info(private_ctr_tag(), ptr, sizeof(T), format_descriptor<T>::format(), static_cast<ssize_t>(shape_in->size()), std::move(shape_in), std::move(strides_in)) { }
42 buffer_info(void *ptr, ssize_t itemsize, const std::string &format, ssize_t size) argument
43 : buffer_info(ptr, itemsize, format, 1, {size}, {itemsize}) { }
46 buffer_info(T *ptr, ssize_t size) argument
47 : buffer_info(ptr, sizeo
83 buffer_info(private_ctr_tag, void *ptr, ssize_t itemsize, const std::string &format, ssize_t ndim, detail::any_container<ssize_t> &&shape_in, detail::any_container<ssize_t> &&strides_in) argument
[all...]
/gem5/src/systemc/tests/systemc/datatypes/int/misc/test02/
H A Dtest02.cpp6 sc_digit* ptr = value.get_raw(); local
8 (int)ptr[3], (int)ptr[2], (int)ptr[1], (int)ptr[0]);
14 sc_digit* ptr = value.get_raw(); local
16 (int)ptr[3], (int)ptr[2], (int)ptr[1], (int)ptr[
[all...]
/gem5/ext/pybind11/tests/
H A Dtest_numpy_dtypes.cpp159 auto ptr = static_cast<S*>(req.ptr); local
161 SET_TEST_VALS(ptr[i], i);
169 const auto ptr = static_cast<S*>(req.ptr); local
173 ss << ptr[i]; local
186 auto ptr = data.data(); local
187 auto vptr = (void *) ptr;
197 for (int i = 0; i < 6; i++) ((int32_t *) req.ptr)[i] = i + 1;
203 case 10: return arr_t(shape, strides, ptr);
[all...]
H A Dtest_opaque_types.cpp58 m.def("get_void_ptr_value", [](void *ptr) { return reinterpret_cast<std::intptr_t>(ptr); });
60 m.def("get_null_str_value", [](char *ptr) { return reinterpret_cast<std::intptr_t>(ptr); });
H A Dobject.h68 ref(T *ptr) : m_ptr(ptr) { argument
126 ref& operator=(T *ptr) { argument
129 if (m_ptr == ptr)
133 m_ptr = ptr;
146 bool operator==(const T* ptr) const { return m_ptr == ptr; }
149 bool operator!=(const T* ptr) const { return m_ptr != ptr; }
/gem5/src/cpu/
H A Dtimebuf.hh145 char *ptr = data; local
147 index[i] = ptr;
148 std::memset(ptr, 0, sizeof(T));
149 new (ptr) T;
150 ptr += sizeof(T);
184 int ptr = base + future; local
185 if (ptr >= (int)size)
186 ptr -= size;
187 (reinterpret_cast<T *>(index[ptr]))->~T();
188 std::memset(index[ptr],
[all...]
/gem5/src/systemc/utils/
H A Dsc_vector.cc66 for (auto ptr: objs) {
67 sc_object *obj_ptr = objectCast(ptr);

Completed in 32 milliseconds

1234