/gem5/src/gpu-compute/ |
H A D | brig_object.hh | 75 uint8_t *ptr; member in struct:final::SectionInfo 125 brigNext(T *ptr) argument 127 Brig::BrigBase *base_ptr = (Brig::BrigBase*)ptr; 131 return (T*)((uint8_t*)ptr + size);
|
H A D | shader.hh | 171 void AccessMem(uint64_t address, void *ptr, uint32_t size, int cu_id, 174 void ReadMem(uint64_t address, void *ptr, uint32_t sz, int cu_id); 176 void ReadMem(uint64_t address, void *ptr, uint32_t sz, int cu_id, 179 void WriteMem(uint64_t address, void *ptr, uint32_t sz, int cu_id); 181 void WriteMem(uint64_t address, void *ptr, uint32_t sz, int cu_id,
|
H A D | shader.cc | 334 Shader::AccessMem(uint64_t address, void *ptr, uint32_t size, int cu_id, argument 337 uint8_t *data_buf = (uint8_t*)ptr; 352 Shader::ReadMem(uint64_t address, void *ptr, uint32_t size, int cu_id) argument 354 AccessMem(address, ptr, size, cu_id, MemCmd::ReadReq, false); 358 Shader::ReadMem(uint64_t address, void *ptr, uint32_t size, int cu_id, argument 361 AccessMem(address, ptr, size, cu_id, MemCmd::ReadReq, suppress_func_errors); 365 Shader::WriteMem(uint64_t address, void *ptr,uint32_t size, int cu_id) argument 367 AccessMem(address, ptr, size, cu_id, MemCmd::WriteReq, false); 371 Shader::WriteMem(uint64_t address, void *ptr, uint32_t size, int cu_id, argument 374 AccessMem(address, ptr, siz [all...] |
H A D | brig_object.cc | 88 return sectionInfo[sec].ptr + offs; 436 sectionInfo[i].ptr = nullptr; 449 sectionInfo[sec_idx].ptr = new uint8_t[sec_hdr->byteCount]; 450 memcpy(sectionInfo[sec_idx].ptr, sec_hdr_byte_ptr, sec_hdr->byteCount); 455 (BrigSectionHeader*)sectionInfo[CodeSectionIndex].ptr; 474 if (sectionInfo[i].ptr) 475 delete[] sectionInfo[i].ptr;
|
/gem5/ext/pybind11/tests/ |
H A D | test_opaque_types.py | 44 ptr = m.return_unique_ptr() 45 assert "StringList" in repr(ptr) 46 assert m.print_opaque_list(ptr) == "Opaque list: [some value]"
|
H A D | test_gil_scoped.cpp | 48 PyLong_AsVoidPtr(cm.attr("gil_acquire_funcaddr").ptr()));
|
H A D | test_class.cpp | 35 auto *ptr = new NoConstructor(); local 36 print_created(ptr, "via new_instance"); 37 return ptr; 202 return py::str(e.what()).release().ptr(); 204 return py::str().release().ptr(); 208 return py::reinterpret_steal<py::object>(PyCFunction_NewEx(def, nullptr, m.ptr())); 215 static void *operator new(size_t s, void *ptr) { py::print("A placement-new", s); return ptr; } argument 221 static void *operator new(size_t s, void *ptr) { py::print("B placement-new", s); return ptr; } argument 227 operator new(size_t s, void *ptr) argument 239 operator new(size_t s, void *ptr) argument 364 std::uintptr_t ptr() const { return (uintptr_t) this; } function [all...] |
/gem5/ext/pybind11/include/pybind11/detail/ |
H A D | class.h | 60 heap_type->ht_name = name_obj.inc_ref().ptr(); 62 heap_type->ht_qualname = name_obj.inc_ref().ptr(); 96 )", Py_file_input, d.ptr(), d.ptr() 101 return (PyTypeObject *) d["pybind11_static_property"].cast<object>().release().ptr(); 174 heap_type->ht_name = name_obj.inc_ref().ptr(); 176 heap_type->ht_qualname = name_obj.inc_ref().ptr(); 204 if (auto parent_tinfo = get_type_info((PyTypeObject *) h.ptr())) { 218 inline bool register_instance_impl(void *ptr, instance *self) { argument 219 get_internals().registered_instances.emplace(ptr, sel 222 deregister_instance_impl(void *ptr, instance *self) argument [all...] |
H A D | init.h | 21 value = reinterpret_cast<value_and_holder *>(h.ptr()); 35 inline void no_nullptr(void *ptr) { argument 36 if (!ptr) throw type_error("pybind11::init(): factory function returned nullptr"); 48 bool is_alias(Cpp<Class> *ptr) { argument 49 return dynamic_cast<Alias<Class> *>(ptr) != nullptr; 96 void construct(value_and_holder &v_h, Cpp<Class> *ptr, bool need_alias) { argument 97 no_nullptr(ptr); 98 if (Class::has_alias && need_alias && !is_alias<Class>(ptr)) { 102 // throw an error), but we can't just call `delete ptr`: it might have a special 107 v_h.value_ptr() = ptr; 134 auto *ptr = holder_helper<Holder<Class>>::get(holder); local [all...] |
H A D | internals.h | 66 const char *ptr = t.name(); 67 while (auto c = static_cast<unsigned char>(*ptr++)) 328 T *ptr = (T *) (it != internals.shared_data.end() ? it->second : nullptr); local 329 if (!ptr) { 330 ptr = new T(); 331 internals.shared_data[name] = ptr; 333 return *ptr;
|
/gem5/util/tlm/examples/slave_port/ |
H A D | sc_target.cc | 90 unsigned char* ptr = trans.get_data_ptr(); local 100 std::memcpy(ptr, mem_array_ptr, len); 105 std::memcpy(mem_array_ptr, ptr, len); 220 unsigned char* ptr = trans.get_data_ptr(); local 244 std::memcpy(ptr, mem_array_ptr, len); 249 std::memcpy(mem_array_ptr, ptr, len);
|
/gem5/src/dev/net/ |
H A D | pktfifo.hh | 122 bool push(EthPacketPtr ptr) argument 124 assert(ptr->length); 125 assert(_reserved <= ptr->length); 126 if (avail() < ptr->length - _reserved) 129 _size += ptr->length; 132 entry.packet = ptr;
|
/gem5/src/arch/arm/tracers/ |
H A D | tarmac_record_v8.hh | 142 void addInstEntry(std::vector<InstPtr>& queue, const TarmacContext& ptr); 145 void addMemEntry(std::vector<MemPtr>& queue, const TarmacContext& ptr); 148 void addRegEntry(std::vector<RegPtr>& queue, const TarmacContext& ptr);
|
H A D | tarmac_record.hh | 194 const TarmacContext& ptr); 198 const TarmacContext& ptr); 202 const TarmacContext& ptr);
|
/gem5/src/cpu/ |
H A D | profile.cc | 106 ProfileNode *&ptr = current->children[stack[size - i - 1]]; local 107 if (ptr == NULL) 108 ptr = new ProfileNode; 110 current = ptr;
|
H A D | nativetrace.hh | 103 read(void *ptr, size_t size) argument 107 ssize_t res = ::read(fd, (uint8_t *)ptr + soFar, size - soFar);
|
/gem5/ext/pybind11/include/pybind11/ |
H A D | numpy.h | 101 inline PYBIND11_NOINLINE void load_numpy_internals(numpy_internals* &ptr) { argument 102 ptr = &get_or_create_shared_data<numpy_internals>("_numpy_internals"); 106 static numpy_internals* ptr = nullptr; local 107 if (!ptr) 108 load_numpy_internals(ptr); 109 return *ptr; 162 Py_intptr_t *ptr; member in struct:npy_api::__anon4 223 void **api_ptr = (void **) PyCapsule_GetPointer(c.ptr(), NULL); 225 void **api_ptr = (void **) PyCObject_AsVoidPtr(c.ptr()); 253 inline PyArray_Proxy* array_proxy(void* ptr) { argument 257 array_proxy(const void* ptr) argument 261 array_descriptor_proxy(PyObject* ptr) argument 265 array_descriptor_proxy(const PyObject* ptr) argument 269 check_flags(const void* ptr, int flag) argument [all...] |
H A D | complex.h | 47 if (!convert && !PyComplex_Check(src.ptr())) 49 Py_complex result = PyComplex_AsCComplex(src.ptr());
|
H A D | cast.h | 53 auto ptr = stack.back(); local 55 Py_CLEAR(ptr); 76 PyList_SET_ITEM(list_ptr, 0, h.inc_ref().ptr()); 78 auto result = PyList_Append(list_ptr, h.ptr()); 94 check.push_back((PyTypeObject *) parent.ptr()); 131 check.push_back((PyTypeObject *) parent.ptr()); 453 PYBIND11_NOINLINE inline handle get_object_handle(const void *ptr, const detail::type_info *type ) { argument 455 auto range = instances.equal_range(ptr); 516 auto wrapper = reinterpret_cast<instance *>(inst.ptr()); 600 if (converter(src.ptr(), valu [all...] |
H A D | pybind11.h | 212 const auto class_name = std::string(((PyTypeObject *) rec->scope.ptr())->tp_name); 290 if (rec->sibling && PYBIND11_INSTANCE_METHOD_CHECK(rec->sibling.ptr())) 291 rec->sibling = PYBIND11_INSTANCE_METHOD_GET_FUNCTION(rec->sibling.ptr()); 295 if (PyCFunction_Check(rec->sibling.ptr())) { 296 auto rec_capsule = reinterpret_borrow<capsule>(PyCFunction_GET_SELF(rec->sibling.ptr())); 317 capsule rec_capsule(rec, [](void *ptr) { 318 destruct((detail::function_record *) ptr); 330 m_ptr = PyCFunction_NewEx(rec->def, rec_capsule.ptr(), scope_module.ptr()); 335 m_ptr = rec->sibling.ptr(); 1165 capture *ptr = new capture { std::forward<Func>(func) }; local [all...] |
/gem5/src/dev/arm/ |
H A D | smmu_v3_proc.hh | 114 void doRead(Yield &yield, Addr addr, void *ptr, size_t size); 115 void doWrite(Yield &yield, Addr addr, const void *ptr, size_t size);
|
H A D | smmu_v3_proc.cc | 71 SMMUProcess::doRead(Yield &yield, Addr addr, void *ptr, size_t size) argument 86 a.pkt->dataStatic(ptr); 100 SMMUProcess::doWrite(Yield &yield, Addr addr, const void *ptr, size_t size) argument 118 a.pkt->dataStatic(ptr);
|
/gem5/src/mem/ruby/system/ |
H A D | RubySystem.hh | 90 bool functionalRead(Packet *ptr); 91 bool functionalWrite(Packet *ptr);
|
/gem5/src/mem/ |
H A D | backdoor.hh | 82 uint8_t *ptr() const { return _ptr; } function in class:MemBackdoor 83 void ptr(uint8_t *p) { _ptr = p; } function in class:MemBackdoor
|
/gem5/src/base/ |
H A D | inet.cc | 208 cksum(const IpPtr &ptr) argument 210 int sum = ip_cksum_add(ptr->bytes(), ptr->hlen(), 0); 380 hsplit(const EthPacketPtr &ptr) argument 384 IpPtr ip(ptr); 385 Ip6Ptr ip6(ptr);
|