/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/isp/kernels/raw_aa_binning/raw_aa_binning_1.0/ |
H A D | ia_css_raa.host.c | 28 unsigned int size) in ia_css_raa_encode() 30 (void)size; in ia_css_raa_encode() 25 ia_css_raa_encode( struct sh_css_isp_aa_params *to, const struct ia_css_aa_config *from, unsigned int size) ia_css_raa_encode() argument
|
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/isp/kernels/raw_aa_binning/raw_aa_binning_1.0/ |
H A D | ia_css_raa.host.c | 27 unsigned int size) in ia_css_raa_encode() 29 (void)size; in ia_css_raa_encode() 24 ia_css_raa_encode( struct sh_css_isp_aa_params *to, const struct ia_css_aa_config *from, unsigned int size) ia_css_raa_encode() argument
|
/third_party/musl/src/legacy/ |
H A D | valloc.c | 5 void *valloc(size_t size) in valloc() argument 7 return memalign(PAGE_SIZE, size); in valloc()
|
/kernel/linux/linux-5.10/kernel/bpf/ |
H A D | btf.c | 282 /* Chunk size we use in safe copy of data to be shown. */ 286 * This is the maximum size of a base type value (equivalent to a 294 /* Type name size */ 317 * to the object "copy" buffer, but because its size is limited to 330 * - obj.size is the size of the toplevel object 360 u32 size; member 400 * type through t->type AND its size cannot in btf_type_is_modifier() 404 * because its size is always sizeof(void *). in btf_type_is_modifier() 547 /* t->size ca 1000 btf_show_obj_is_safe(struct btf_show *show, void *data, int size) btf_show_obj_is_safe() argument 1012 __btf_show_obj_safe(struct btf_show *show, void *data, int size) __btf_show_obj_safe() argument 1052 int size_left, size; btf_show_obj_safe() local 1642 u32 i, size, nelems = 1, id = 0; __btf_resolve_size() local 1722 u32 size = 0; btf_type_id_size() local 4438 btf_ctx_access(int off, int size, enum bpf_access_type type, const struct bpf_prog *prog, struct bpf_insn_access_aux *info) btf_ctx_access() argument 4614 btf_struct_walk(struct bpf_verifier_log *log, const struct btf_type *t, int off, int size, u32 *next_btf_id) btf_struct_walk() argument 4840 btf_struct_access(struct bpf_verifier_log *log, const struct btf_type *t, int off, int size, enum bpf_access_type atype __maybe_unused, u32 *next_btf_id) btf_struct_access() argument [all...] |
/third_party/node/deps/v8/src/execution/arm/ |
H A D | simulator-arm.cc | 601 static bool AllOnOnePage(uintptr_t start, int size) { in AllOnOnePage() argument 603 intptr_t end_page = ((start + size) & ~CachePage::kPageMask); in AllOnOnePage() 612 void* start_addr, size_t size) { in FlushICache() 616 size += intra_line; in FlushICache() 617 size = ((size - 1) | CachePage::kLineMask) + 1; in FlushICache() 619 while (!AllOnOnePage(start, size - 1)) { in FlushICache() 623 size -= bytes_to_flush; in FlushICache() 627 if (size != 0) { in FlushICache() 628 FlushOnePage(i_cache, start, size); in FlushICache() 611 FlushICache(base::CustomMatcherHashMap* i_cache, void* start_addr, size_t size) FlushICache() argument 643 FlushOnePage(base::CustomMatcherHashMap* i_cache, intptr_t start, int size) FlushOnePage() argument 3419 NeonSize size = Neon32; DecodeTypeVFP() local 4216 int size = static_cast<int>(sizeof(T) * 8); ShiftByRegister() local 4398 int size = instr->Bits(19, 18); DecodeAdvancedSIMDTwoOrThreeRegisters() local 4407 NeonSize size = static_cast<NeonSize>(instr->Bits(19, 18)); DecodeAdvancedSIMDTwoOrThreeRegisters() local 4700 NeonSize size = static_cast<NeonSize>(instr->Bits(19, 18)); DecodeAdvancedSIMDTwoOrThreeRegisters() local 4772 NeonSize size = static_cast<NeonSize>(instr->Bits(19, 18)); DecodeAdvancedSIMDTwoOrThreeRegisters() local 4934 int size = 0, index = 0, mask = 0; DecodeAdvancedSIMDTwoOrThreeRegisters() local 4953 scalar <<= size; DecodeAdvancedSIMDTwoOrThreeRegisters() local 4971 NeonSize size = static_cast<NeonSize>(instr->Bits(21, 20)); DecodeAdvancedSIMDTwoOrThreeRegisters() local 5062 NeonSize size = static_cast<NeonSize>(instr->Bits(21, 20)); DecodeAdvancedSIMDDataProcessing() local 5114 NeonSize size = static_cast<NeonSize>(instr->Bits(21, 20)); DecodeAdvancedSIMDDataProcessing() local 5134 NeonSize size = static_cast<NeonSize>(instr->Bits(21, 20)); DecodeAdvancedSIMDDataProcessing() local 5150 NeonSize size = static_cast<NeonSize>(instr->Bits(21, 20)); DecodeAdvancedSIMDDataProcessing() local 5169 NeonSize size = static_cast<NeonSize>(instr->Bits(21, 20)); DecodeAdvancedSIMDDataProcessing() local 5186 NeonSize size = static_cast<NeonSize>(instr->Bits(21, 20)); DecodeAdvancedSIMDDataProcessing() local 5202 NeonSize size = static_cast<NeonSize>(instr->Bits(21, 20)); DecodeAdvancedSIMDDataProcessing() local 5219 NeonSize size = static_cast<NeonSize>(instr->Bits(21, 20)); DecodeAdvancedSIMDDataProcessing() local 5235 NeonSize size = static_cast<NeonSize>(instr->Bits(21, 20)); DecodeAdvancedSIMDDataProcessing() local 5252 NeonSize size = static_cast<NeonSize>(instr->Bits(21, 20)); DecodeAdvancedSIMDDataProcessing() local 5322 NeonSize size = static_cast<NeonSize>(instr->Bits(21, 20)); DecodeAdvancedSIMDDataProcessing() local 5362 NeonSize size = static_cast<NeonSize>(instr->Bits(21, 20)); DecodeAdvancedSIMDDataProcessing() local 5378 NeonSize size = static_cast<NeonSize>(instr->Bits(21, 20)); DecodeAdvancedSIMDDataProcessing() local 5395 NeonSize size = static_cast<NeonSize>(instr->Bits(21, 20)); DecodeAdvancedSIMDDataProcessing() local 5411 NeonSize size = static_cast<NeonSize>(instr->Bits(21, 20)); DecodeAdvancedSIMDDataProcessing() local 5430 NeonSize size = static_cast<NeonSize>(instr->Bits(21, 20)); DecodeAdvancedSIMDDataProcessing() local 5447 NeonSize size = static_cast<NeonSize>(instr->Bits(21, 20)); DecodeAdvancedSIMDDataProcessing() local 5464 NeonSize size = static_cast<NeonSize>(instr->Bits(21, 20)); DecodeAdvancedSIMDDataProcessing() local 5480 NeonSize size = static_cast<NeonSize>(instr->Bits(21, 20)); DecodeAdvancedSIMDDataProcessing() local 5524 NeonSize size = static_cast<NeonSize>(instr->Bits(21, 20)); DecodeAdvancedSIMDDataProcessing() local 5552 int size = base::bits::RoundDownToPowerOfTwo32(imm7); DecodeAdvancedSIMDDataProcessing() local 5823 int size = instr->Bits(7, 6); DecodeAdvancedSIMDLoadSingleStructureToAllLanes() local 5862 int size = instr->Bits(11, 10); DecodeAdvancedSIMDLoadStoreSingleStructureToOneLane() local 6350 NotifyLoadExcl(int32_t addr, TransactionSize size) NotifyLoadExcl() argument 6370 NotifyStoreExcl(int32_t addr, TransactionSize size) NotifyStoreExcl() argument [all...] |
/commonlibrary/rust/ylong_http/ylong_http/src/h2/ |
H A D | decoder.rs | 98 /// Returns the size of `Frames`. 231 pub fn set_max_header_list_size(&mut self, size: usize) { in set_max_header_list_size() 232 self.hpack.update_header_list_size(size) in set_max_header_list_size() 321 pub fn set_max_frame_size(&mut self, size: u32) -> Result<(), H2Error> { in set_max_frame_size() 322 if !(DEFAULT_MAX_FRAME_SIZE..=MAX_ALLOWED_MAX_FRAME_SIZE).contains(&size) { in set_max_frame_size() 325 self.max_frame_size = size; in set_max_frame_size() 330 pub fn set_max_header_list_size(&mut self, size: usize) { in set_max_header_list_size() 331 self.hpack.set_max_header_list_size(size) in set_max_header_list_size() 1085 decoder.set_max_frame_size($max_frame_size).expect("Illegal size of SETTINGS_MAX_FRAME_SIZE !"); 1731 // size, whic in ut_decode_push_promise_payload() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/navigation/ |
H A D | navigation_layout_algorithm.cpp | 180 auto contentChildSize = contentNode->GetChildren().size(); in LayoutContent() 596 auto size = in Measure() local 598 FitScrollFullWindow(size); in Measure() 601 MinusPaddingToSize(padding, size); in Measure() 606 if (size.Width() == 0.0f) { in Measure() 614 UpdateNavigationMode(navigationLayoutProperty, size, hostNode); in Measure() 615 SizeCalculation(layoutWrapper, hostNode, navigationLayoutProperty, size); in Measure() 623 SetNavigationHeight(layoutWrapper, size); in Measure() 625 size.AddWidth(padding.left.value_or(0.0f) + padding.right.value_or(0.0f)); in Measure() 626 size in Measure() 657 SetNavigationHeight(LayoutWrapper* layoutWrapper, SizeF& size) SetNavigationHeight() argument [all...] |
/foundation/barrierfree/accessibility/frameworks/common/test/unittest/ |
H A D | accessibility_element_info_test.cpp | 259 EXPECT_EQ(static_cast<int>(elementInfo_->GetChildIds().size()), 0); in HWTEST_F() 273 EXPECT_EQ(static_cast<int>(elementInfo_->GetChildIds().size()), 1); in HWTEST_F() 287 EXPECT_EQ(static_cast<int>(elementInfo_->GetChildIds().size()), 1); in HWTEST_F() 290 EXPECT_EQ(static_cast<int>(elementInfo_->GetChildIds().size()), 1); in HWTEST_F() 328 EXPECT_EQ(static_cast<int>(elementInfo_->GetActionList().size()), 0); in HWTEST_F() 342 ASSERT_EQ(static_cast<int>(elementInfo_->GetActionList().size()), 1); in HWTEST_F() 358 EXPECT_EQ(static_cast<int>(elementInfo_->GetActionList().size()), 1); in HWTEST_F() 361 EXPECT_EQ(static_cast<int>(elementInfo_->GetActionList().size()), 0); in HWTEST_F() 391 EXPECT_EQ(static_cast<int>(elementInfo_->GetActionList().size()), 1); in HWTEST_F() 393 EXPECT_EQ(static_cast<int>(elementInfo_->GetActionList().size()), in HWTEST_F() [all...] |
/foundation/barrierfree/accessibility/frameworks/common/test/mock/src/ |
H A D | mock_accessibility_element_info.cpp | 259 EXPECT_EQ(static_cast<int>(elementInfo_->GetChildIds().size()), 0); in HWTEST_F() 273 EXPECT_EQ(static_cast<int>(elementInfo_->GetChildIds().size()), 1); in HWTEST_F() 287 EXPECT_EQ(static_cast<int>(elementInfo_->GetChildIds().size()), 1); in HWTEST_F() 290 EXPECT_EQ(static_cast<int>(elementInfo_->GetChildIds().size()), 1); in HWTEST_F() 328 EXPECT_EQ(static_cast<int>(elementInfo_->GetActionList().size()), 0); in HWTEST_F() 342 ASSERT_EQ(static_cast<int>(elementInfo_->GetActionList().size()), 1); in HWTEST_F() 358 EXPECT_EQ(static_cast<int>(elementInfo_->GetActionList().size()), 1); in HWTEST_F() 361 EXPECT_EQ(static_cast<int>(elementInfo_->GetActionList().size()), 0); in HWTEST_F() 391 EXPECT_EQ(static_cast<int>(elementInfo_->GetActionList().size()), 1); in HWTEST_F() 393 EXPECT_EQ(static_cast<int>(elementInfo_->GetActionList().size()), in HWTEST_F() [all...] |
/foundation/communication/bluetooth/frameworks/inner/src/ |
H A D | bluetooth_ble_advertiser.cpp | 235 uint32_t size = (isFlagsIncluded) ? BLE_ADV_FLAGS_FIELD_LENGTH : 0; in GetAdvertiserTotalBytes() local 238 size += BLE_ADV_PER_FIELD_OVERHEAD_LENGTH + BLE_ADV_MANUFACTURER_ID_LENGTH + iter->second.length(); in GetAdvertiserTotalBytes() 243 size += BLE_ADV_PER_FIELD_OVERHEAD_LENGTH + static_cast<uint32_t>(iter->first.GetUuidType()) in GetAdvertiserTotalBytes() 260 size += BLE_ADV_PER_FIELD_OVERHEAD_LENGTH + static_cast<uint32_t>(num16BitUuids * Uuid::UUID16_BYTES_TYPE); in GetAdvertiserTotalBytes() 263 size += BLE_ADV_PER_FIELD_OVERHEAD_LENGTH + static_cast<uint32_t>(num32BitUuids * Uuid::UUID32_BYTES_TYPE); in GetAdvertiserTotalBytes() 266 size += BLE_ADV_PER_FIELD_OVERHEAD_LENGTH + static_cast<uint32_t>(num128BitUuids * Uuid::UUID128_BYTES_TYPE); in GetAdvertiserTotalBytes() 271 size += BLE_ADV_PER_FIELD_OVERHEAD_LENGTH + deviceNameLen; in GetAdvertiserTotalBytes() 275 size += BLE_ADV_PER_FIELD_OVERHEAD_LENGTH + txPowerLen; in GetAdvertiserTotalBytes() 277 return size; in GetAdvertiserTotalBytes() 299 uint32_t size in CheckAdvertiserData() local [all...] |
/foundation/filemanagement/storage_service/services/storage_daemon/mtpfs/src/ |
H A D | mtpfs_fuse.cpp | 113 int WrapRead(const char *path, char *buf, size_t size, off_t offset, struct fuse_file_info *fileInfo) in WrapRead() argument 116 int ret = DelayedSingleton<MtpFileSystem>::GetInstance()->Read(path, buf, size, offset, fileInfo); in WrapRead() 121 int WrapWrite(const char *path, const char *buf, size_t size, off_t offset, struct fuse_file_info *fileInfo) in WrapWrite() argument 124 int ret = DelayedSingleton<MtpFileSystem>::GetInstance()->Write(path, buf, size, offset, fileInfo); in WrapWrite() 216 int WrapReadLink(const char *path, char *out, size_t size) in WrapReadLink() argument 234 int WrapSetXAttr(const char *path, const char *in, const char *out, size_t size, int flag) in WrapSetXAttr() argument 240 int WrapGetXAttr(const char *path, const char *in, char *out, size_t size) in WrapGetXAttr() argument 246 int WrapListXAttr(const char *path, char *in, size_t size) in WrapListXAttr() argument 264 int WrapAccess(const char *path, int size) in WrapAccess() argument 717 int MtpFileSystem::Read(const char *path, char *buf, size_t size, off_ argument 735 Write(const char *path, const char *buf, size_t size, off_t offset, struct fuse_file_info *fileInfo) Write() argument [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/picture_test/ |
H A D | picture_test.cpp | 56 options.size.width = SIZE_WIDTH; in CreatePixelMap() 57 options.size.height = SIZE_HEIGHT; in CreatePixelMap() 77 Size size = {SIZE_WIDTH, SIZE_HEIGHT}; in CreateAuxiliaryPicture() local 78 std::unique_ptr<AuxiliaryPicture> tmpAuxiliaryPicture = AuxiliaryPicture::Create(pixelmap, type, size); in CreateAuxiliaryPicture() 642 uint32_t size = sizeof(dataBlob) / sizeof(dataBlob[0]); in HWTEST_F() local 643 ASSERT_NE(size, 0); in HWTEST_F() 658 bool result = memcpy_s(maintenanceBuffer->GetVirAddr(), size, dataBlob, size); in HWTEST_F() 672 uint32_t size = sizeof(dataBlob) / sizeof(dataBlob[0]); in HWTEST_F() local 673 ASSERT_NE(size, in HWTEST_F() [all...] |
/foundation/multimedia/av_codec/test/moduletest/vcodec/hevcswdecoder/src/ |
H A D | videodec_ndk_sample.cpp | 269 if (srcHashVal.size() != SHA512_DIGEST_LENGTH) { in MdCompare() 270 cout << "get hash value failed, size" << srcHashVal.size() << endl; in MdCompare() 568 return signal_->inIdxQueue_.size() > 0 && !isFlushing_.load(); in InputFuncTest() 629 int32_t size = OH_AVMemory_GetSize(buffer); in CheckAndReturnBufferSize() local 630 if ((maxInputSize < 0) && (size < 0)) { in CheckAndReturnBufferSize() 632 } else if ((maxInputSize > 0) && (size > SYS_MAX_INPUT_SIZE)) { in CheckAndReturnBufferSize() 635 return size; in CheckAndReturnBufferSize() 656 int32_t size = CheckAndReturnBufferSize(buffer); in SendData() local 657 if (size < bufferSiz in SendData() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/common/distributeddb/src/ |
H A D | distributeddb_nb_test_tools.cpp | 170 for (opCnt = 0; opCnt < storeIds.size(); ++opCnt) { in GetNbDelegateStoresSuccess() 183 for (opCnt = 0; opCnt < storeIds.size(); ++opCnt) { in GetNbDelegateStoresSuccess() 227 (void)option.passwd.SetValue(optionParam.passwd.data(), optionParam.passwd.size()); in TransferNbOptionType() 249 if (v1.size() != v2.size()) { in isValueEquals() 289 for (int cnt = 0; cnt < static_cast<int>(entries.size()); cnt += 128) { // 128 is the max records of deleteBatch. in PutBatch() 290 auto last = std::min(static_cast<int>(entries.size()), cnt + 128); // 128 is the max records of deleteBatch. in PutBatch() 328 for (int cnt = 0; cnt < static_cast<int>(keys.size()); cnt = cnt + 128) { // 128 is the max records of deleteBatch. in DeleteBatch() 329 auto last = std::min(static_cast<int>(keys.size()), cnt + 128); // 128 is the max records of deleteBatch. in DeleteBatch() 387 if (cnt % BATCH_RECORDS == 0 || cnt == static_cast<int>(entries.size())) { in PutLocalBatch() [all...] |
/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/src/distributedcameramgr/dcameracontrol/ |
H A D | dcamera_source_controller.cpp | 67 if (indexs_.size() > DCAMERA_MAX_NUM) { in StartCapture() 68 DHLOGE("StartCapture not support operate %{public}zu camera", indexs_.size()); in StartCapture() 113 if (indexs_.size() > DCAMERA_MAX_NUM) { in StopCapture() 114 DHLOGE("StopCapture not support operate %{public}zu camera", indexs_.size()); in StopCapture() 165 if (indexs_.size() > DCAMERA_MAX_NUM) { in ChannelNeg() 166 DHLOGE("ChannelNeg not support operate %{public}zu camera", indexs_.size()); in ChannelNeg() 239 if (indexs_.size() > DCAMERA_MAX_NUM) { in UpdateSettings() 240 DHLOGE("UpdateSettings not support operate %{public}zu camera", indexs_.size()); in UpdateSettings() 283 if (indexs_.size() > DCAMERA_MAX_NUM) { in GetCameraInfo() 284 DHLOGE("GetCameraInfo not support operate %{public}zu camera", indexs_.size()); in GetCameraInfo() [all...] |
/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/src/fillp/ |
H A D | fillp_pcb.c | 61 pcb->unackList.size = FILLP_UNACK_HASH_SIZE; in FillpInitSendpcbUnackList() 62 pcb->unackList.hashModSize = pcb->unackList.size - 1; in FillpInitSendpcbUnackList() 65 (struct Hlist *)SpungeAlloc(pcb->unackList.size, sizeof(struct Hlist), SPUNGE_ALLOC_TYPE_CALLOC); in FillpInitSendpcbUnackList() 72 for (i = 0; i < pcb->unackList.size; i++) { in FillpInitSendpcbUnackList() 83 pcb->pktSeqMap.size = FILLP_MAX_PKTSEQ_HASH_SIZE; in FillpInitSendpcbPktSeqMap() 86 pcb->pktSeqMap.size = fpcb->mpSendSize; in FillpInitSendpcbPktSeqMap() 88 for (pcb->pktSeqMap.size = 1; pcb->pktSeqMap.size <= fpcb->mpSendSize;) { in FillpInitSendpcbPktSeqMap() 89 pcb->pktSeqMap.size <<= 1; in FillpInitSendpcbPktSeqMap() 94 pcb->pktSeqMap.size in FillpInitSendpcbPktSeqMap() [all...] |
/kernel/linux/linux-5.10/drivers/block/ |
H A D | ps3vram.c | 73 u64 size; member 98 static char *size = "256M"; variable 99 module_param(size, charp, 0); 100 MODULE_PARM_DESC(size, "memory size"); 175 u32 size) in ps3vram_begin_ring() 177 ps3vram_out_ring(priv, (size << 18) | (chan << 13) | tag); in ps3vram_begin_ring() 323 "Failed to upload from 0x%x to " "0x%x size 0x%x\n", in ps3vram_cache_evict() 342 "Failed to download from 0x%x to 0x%x size 0x%x\n", in ps3vram_cache_load() 434 if (from >= priv->size) in ps3vram_read() 174 ps3vram_begin_ring(struct ps3vram_priv *priv, u32 chan, u32 tag, u32 size) ps3vram_begin_ring() argument [all...] |
/kernel/linux/linux-5.10/arch/loongarch/kernel/ |
H A D | ptrace.c | 269 const int ftop_start = (regset->n - 1) * regset->size; in lbt_set() 290 cp_sz = min(regset->size, live_sz); in copy_pad_fprs() 291 pad_sz = regset->size - cp_sz; in copy_pad_fprs() 306 const unsigned int wr_size = NUM_FPU_REGS * regset->size; in simd_get() 321 } else if (sizeof(target->thread.fpu.fpr[0]) == regset->size) { in simd_get() 337 const unsigned int wr_size = NUM_FPU_REGS * regset->size; in simd_set() 343 if (sizeof(target->thread.fpu.fpr[0]) == regset->size) { in simd_set() 350 cp_sz = min_t(unsigned int, regset->size, in simd_set() 354 for (; i < NUM_FPU_REGS; i++, start += regset->size) { in simd_set() 453 .size [all...] |
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
H A D | opal.c | 54 u64 size; member 121 sizep = of_get_flat_dt_prop(node, "opal-runtime-size", &runtimesz); in early_init_dt_scan_opal() 128 opal.size = of_read_number(sizep, runtimesz/4); in early_init_dt_scan_opal() 135 opal.size, sizep, runtimesz); in early_init_dt_scan_opal() 150 int i, psize, size; in early_init_dt_scan_recoverable_ranges() local 177 size = mc_recoverable_range_len * in early_init_dt_scan_recoverable_ranges() 183 mc_recoverable_range = memblock_alloc(size, __alignof__(u64)); in early_init_dt_scan_recoverable_ranges() 186 __func__, size, __alignof__(u64)); in early_init_dt_scan_recoverable_ranges() 392 ret = of_property_read_u32(opal_node, "opal-msg-size", &opal_msg_size); in opal_message_init() 394 pr_notice("Failed to read opal-msg-size propert in opal_message_init() 916 uint64_t size; opal_dump_region_init() local [all...] |
/kernel/linux/linux-5.10/arch/alpha/kernel/ |
H A D | core_marvel.c | 299 csrs->POx_WMASK[0].csr = (hose->sg_isa->size - 1) & wbase_m_addr; in io7_init_hose() 317 csrs->POx_WMASK[2].csr = (hose->sg_pci->size - 1) & wbase_m_addr; in io7_init_hose() 547 int size, u32 *value) in marvel_read_config() 554 switch(size) { in marvel_read_config() 573 int size, u32 value) in marvel_write_config() 580 switch (size) { in marvel_write_config() 695 marvel_ioremap(unsigned long addr, unsigned long size) in marvel_ioremap() 723 last = baddr + size - 1; in marvel_ioremap() 729 ((baddr + size - 1) < __direct_map_base + __direct_map_size)) { in marvel_ioremap() 739 last < (unsigned long)hose->sg_pci->dma_base + hose->sg_pci->size) { in marvel_ioremap() 541 marvel_read_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *value) marvel_read_config() argument 567 marvel_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 value) marvel_write_config() argument 686 marvel_ioremap(unsigned long addr, unsigned long size) marvel_ioremap() argument [all...] |
/kernel/linux/linux-5.10/drivers/char/ |
H A D | mem.c | 46 unsigned long size) in size_inside_page() 52 return min(sz, size); in size_inside_page() 61 static inline int valid_mmap_phys_addr_range(unsigned long pfn, size_t size) in valid_mmap_phys_addr_range() argument 72 static inline int range_is_allowed(unsigned long pfn, unsigned long size) in range_is_allowed() argument 75 u64 to = from + size; in range_is_allowed() 91 static inline int range_is_allowed(unsigned long pfn, unsigned long size) in range_is_allowed() argument 276 unsigned long pfn, unsigned long size, pgprot_t *vma_prot) in phys_mem_access_prot_allowed() 318 unsigned long size, pgprot_t vma_prot) in phys_mem_access_prot() 375 size_t size = vma->vm_end - vma->vm_start; in mmap_mem() local 383 if (offset + (phys_addr_t)size in mmap_mem() 45 size_inside_page(unsigned long start, unsigned long size) size_inside_page() argument 275 phys_mem_access_prot_allowed(struct file *file, unsigned long pfn, unsigned long size, pgprot_t *vma_prot) phys_mem_access_prot_allowed() argument 317 phys_mem_access_prot(struct file *file, unsigned long pfn, unsigned long size, pgprot_t vma_prot) phys_mem_access_prot() argument [all...] |
/kernel/linux/linux-5.10/drivers/firmware/ |
H A D | qcom_scm.c | 444 * @size: size of the metadata 448 int qcom_scm_pas_init_image(u32 peripheral, const void *metadata, size_t size) in qcom_scm_pas_init_image() argument 467 mdata_buf = dma_alloc_coherent(__scm->dev, size, &mdata_phys, in qcom_scm_pas_init_image() 473 memcpy(mdata_buf, metadata, size); in qcom_scm_pas_init_image() 486 dma_free_coherent(__scm->dev, size, mdata_buf, mdata_phys); in qcom_scm_pas_init_image() 497 * @size: size of the memory area to prepare 501 int qcom_scm_pas_mem_setup(u32 peripheral, phys_addr_t addr, phys_addr_t size) in qcom_scm_pas_mem_setup() argument 510 .args[2] = size, in qcom_scm_pas_mem_setup() 724 qcom_scm_iommu_secure_ptbl_size(u32 spare, size_t *size) qcom_scm_iommu_secure_ptbl_size() argument 745 qcom_scm_iommu_secure_ptbl_init(u64 addr, u32 size, u32 spare) qcom_scm_iommu_secure_ptbl_init() argument 919 qcom_scm_ocmem_lock(enum qcom_scm_ocmem_client id, u32 offset, u32 size, u32 mode) qcom_scm_ocmem_lock() argument 944 qcom_scm_ocmem_unlock(enum qcom_scm_ocmem_client id, u32 offset, u32 size) qcom_scm_ocmem_unlock() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_device.c | 650 unsigned int size; in kgd2kfd_device_init() local 672 /* calculate max size of mqds needed for queues */ in kgd2kfd_device_init() 673 size = max_num_of_queues_per_device * in kgd2kfd_device_init() 677 * calculate max size of runlist packet. in kgd2kfd_device_init() 680 size += (KFD_MAX_NUM_OF_PROCESSES * sizeof(struct pm4_mes_map_process) + in kgd2kfd_device_init() 684 /* Add size of HIQ & DIQ */ in kgd2kfd_device_init() 685 size += KFD_KERNEL_QUEUE_SIZE * 2; in kgd2kfd_device_init() 688 size += 512 * 1024; in kgd2kfd_device_init() 691 kfd->kgd, size, &kfd->gtt_mem, in kgd2kfd_device_init() 694 dev_err(kfd_device, "Could not allocate %d bytes\n", size); in kgd2kfd_device_init() 1111 kfd_gtt_sa_allocate(struct kfd_dev *kfd, unsigned int size, struct kfd_mem_obj **mem_obj) kfd_gtt_sa_allocate() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/ |
H A D | alloc.c | 577 static int mlx4_buf_direct_alloc(struct mlx4_dev *dev, int size, in mlx4_buf_direct_alloc() argument 584 buf->page_shift = get_order(size) + PAGE_SHIFT; in mlx4_buf_direct_alloc() 586 dma_alloc_coherent(&dev->persist->pdev->dev, size, &t, in mlx4_buf_direct_alloc() 603 * requested size is > max_direct, we split the allocation into 606 int mlx4_buf_alloc(struct mlx4_dev *dev, int size, int max_direct, in mlx4_buf_alloc() argument 609 if (size <= max_direct) { in mlx4_buf_alloc() 610 return mlx4_buf_direct_alloc(dev, size, buf); in mlx4_buf_alloc() 616 buf->nbufs = DIV_ROUND_UP(size, PAGE_SIZE); in mlx4_buf_alloc() 638 mlx4_buf_free(dev, size, buf); in mlx4_buf_alloc() 644 void mlx4_buf_free(struct mlx4_dev *dev, int size, struc argument 774 mlx4_alloc_hwq_res(struct mlx4_dev *dev, struct mlx4_hwq_resources *wqres, int size) mlx4_alloc_hwq_res() argument 811 mlx4_free_hwq_res(struct mlx4_dev *dev, struct mlx4_hwq_resources *wqres, int size) mlx4_free_hwq_res() argument [all...] |
/kernel/linux/linux-6.6/arch/alpha/kernel/ |
H A D | core_marvel.c | 298 csrs->POx_WMASK[0].csr = (hose->sg_isa->size - 1) & wbase_m_addr; in io7_init_hose() 315 csrs->POx_WMASK[2].csr = (hose->sg_pci->size - 1) & wbase_m_addr; in io7_init_hose() 545 int size, u32 *value) in marvel_read_config() 552 switch(size) { in marvel_read_config() 571 int size, u32 value) in marvel_write_config() 578 switch (size) { in marvel_write_config() 693 marvel_ioremap(unsigned long addr, unsigned long size) in marvel_ioremap() 721 last = baddr + size - 1; in marvel_ioremap() 727 ((baddr + size - 1) < __direct_map_base + __direct_map_size)) { in marvel_ioremap() 737 last < (unsigned long)hose->sg_pci->dma_base + hose->sg_pci->size) { in marvel_ioremap() 539 marvel_read_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *value) marvel_read_config() argument 565 marvel_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 value) marvel_write_config() argument 684 marvel_ioremap(unsigned long addr, unsigned long size) marvel_ioremap() argument [all...] |