/base/update/updater/utils/ |
H A D | utils.cpp | 81 char buffer[128] {}; // 128 : set headInfo size in UpdateInfoInMisc() 166 size_t end = str.size() - 1; in Trim() 167 while (start < str.size()) { in Trim() 283 bool WriteFully(int fd, const uint8_t *data, size_t size) in WriteFully() argument 286 size_t rest = size; in WriteFully() 298 LOG(INFO) << "totalSize = " << size << ", rest = " << rest; in WriteFully() 304 bool ReadFully(int fd, void *data, size_t size) in ReadFully() argument 307 size_t remaining = size; in ReadFully() 347 size_t remaining = content.size(); in WriteStringToFile() 600 LOG(INFO) << "log size greate in CopyUpdaterLogs() 727 size_t size = GetFileSize(oldestFilePath); DeleteOldFile() local 732 LOG(INFO) << "Delete old file: " << oldestFilePath << " size: " << size; DeleteOldFile() local [all...] |
/foundation/barrierfree/accessibility/services/test/xts/src/sa_get_attribute_value/ |
H A D | sa_get_attribute_value_benchmark.cpp | 92 if (event.GetPointerIds().size() != POINTER_COUNT_1) { in SendTouchEventToAA() 164 event.GetPointerIds().size() == POINTER_COUNT_1) { in HandlePointerEvent() 249 event.GetPointerIds().size() == POINTER_COUNT_1) { in SendEventToMultimodal() 394 event.GetPointerIds().size() == POINTER_COUNT_1) { in OnCancelled() 471 if (event.GetPointerIds().size() == POINTER_COUNT_1) { in HandleTouchGuidingState() 484 if (event.GetPointerIds().size() == POINTER_COUNT_1 && !IsTouchInteractionEnd() && in HandleTouchGuidingState() 518 if (event.GetPointerIds().size() == POINTER_COUNT_1) { in HandleDraggingState() 531 if (pIds.size() == POINTER_COUNT_1) { in HandleDraggingState() 539 if (event.GetPointerId() == currentPid_ && pIds.size() == POINTER_COUNT_2) { in HandleDraggingState() 561 if (event.GetPointerIds().size() in HandleTransmitingState() [all...] |
/foundation/barrierfree/accessibility/services/aams/src/ |
H A D | accessibility_touch_guider.cpp | 92 if (event.GetPointerIds().size() != POINTER_COUNT_1) { in SendTouchEventToAA() 164 event.GetPointerIds().size() == POINTER_COUNT_1) { in HandlePointerEvent() 249 event.GetPointerIds().size() == POINTER_COUNT_1) { in SendEventToMultimodal() 394 event.GetPointerIds().size() == POINTER_COUNT_1) { in OnCancelled() 471 if (event.GetPointerIds().size() == POINTER_COUNT_1) { in HandleTouchGuidingState() 484 if (event.GetPointerIds().size() == POINTER_COUNT_1 && !IsTouchInteractionEnd() && in HandleTouchGuidingState() 518 if (event.GetPointerIds().size() == POINTER_COUNT_1) { in HandleDraggingState() 531 if (pIds.size() == POINTER_COUNT_1) { in HandleDraggingState() 539 if (event.GetPointerId() == currentPid_ && pIds.size() == POINTER_COUNT_2) { in HandleDraggingState() 561 if (event.GetPointerIds().size() in HandleTransmitingState() [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/ |
H A D | post_proc_test.cpp | 231 * @tc.desc: test CenterScale size is 0 or -1 357 opts.size.width = width; in HWTEST_F() 358 opts.size.height = height; in HWTEST_F() 383 opts.size.width = width; in HWTEST_F() 384 opts.size.height = height; in HWTEST_F() 409 opts.size.width = width; in HWTEST_F() 410 opts.size.height = height; in HWTEST_F() 881 pixelMap->imageInfo_.size.width = 1; in HWTEST_F() 882 pixelMap->imageInfo_.size.height = 1; in HWTEST_F() 886 Size size; in HWTEST_F() local [all...] |
/foundation/systemabilitymgr/samgr/services/samgr/native/test/unittest/src/ |
H A D | system_ability_mgr_proxy_test.cpp | 812 int32_t size = 0; in HWTEST_F() local 813 reply.WriteInt32(size); in HWTEST_F() 830 int32_t size = 1; in HWTEST_F() local 831 reply.WriteInt32(size); in HWTEST_F() 848 int32_t size = 1; in HWTEST_F() local 849 reply.WriteInt32(size); in HWTEST_F() 867 int32_t size = 1; in HWTEST_F() local 868 reply.WriteInt32(size); in HWTEST_F() 888 int32_t size = 1; in HWTEST_F() local 889 reply.WriteInt32(size); in HWTEST_F() 925 int32_t size = 1; HWTEST_F() local [all...] |
H A D | system_ability_mgr_new_test.cpp | 459 EXPECT_EQ(extraDataIdList.size(), 1); in HWTEST_F() 464 EXPECT_EQ(extraDataIdList.size(), 0); in HWTEST_F() 470 EXPECT_EQ(extraDataIdList.size(), 0); in HWTEST_F() 573 int32_t size = -1; in HWTEST_F() local 574 ret = reply.ReadInt32(size); in HWTEST_F() 576 EXPECT_EQ(size, 0); in HWTEST_F() 607 int32_t size = -1; in HWTEST_F() local 608 ret = reply.ReadInt32(size); in HWTEST_F() 610 EXPECT_EQ(size, 3); in HWTEST_F() 611 for (int32_t i = 0; i < size; in HWTEST_F() 880 int32_t size; HWTEST_F() local 911 int32_t size; HWTEST_F() local [all...] |
/foundation/window/window_manager/dmserver/test/unittest/ |
H A D | abstract_screen_controller_test.cpp | 249 ASSERT_EQ(6, absController_->dmsScreenMap_.size()); in HWTEST_F() 261 ASSERT_EQ(6, absController_->dmsScreenMap_.size()); in HWTEST_F() 273 ASSERT_EQ(6, absController_->dmsScreenMap_.size()); in HWTEST_F() 285 ASSERT_EQ(6, absController_->dmsScreenMap_.size()); in HWTEST_F() 394 ASSERT_EQ(6, absController_->dmsScreenMap_.size()); in HWTEST_F() 621 ASSERT_EQ(6, absController_->dmsScreenMap_.size()); in HWTEST_F() 685 if (i < absController_->dmsScreenMap_.size() && absController_->dmsScreenMap_[i] != nullptr) { in HWTEST_F() 690 ASSERT_EQ(6, absController_->dmsScreenMap_.size()); in HWTEST_F() 708 if (i < absController_->dmsScreenMap_.size() && absController_->dmsScreenMap_[i] != nullptr) { in HWTEST_F() 714 ASSERT_EQ(6, absController_->dmsScreenMap_.size()); in HWTEST_F() [all...] |
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/hdi_interface/ |
H A D | wifi_hdi_util_test.cpp | 234 infoElem.size = 8; in HWTEST_F() 237 infoElem.size = 6; in HWTEST_F() 245 infoElem.size = 10; in HWTEST_F() 257 infoElem.size = HE_OPER_BASIC_LEN + 1; in HWTEST_F() 269 infoElem.size = HE_OPER_BASIC_LEN + 1; in HWTEST_F() 282 infoElem.size = HE_OPER_BASIC_LEN + COLUMN_INDEX_FIVE + 1; in HWTEST_F() 298 infoElem.size = HE_OPER_BASIC_LEN + COLUMN_INDEX_THREE + 1; in HWTEST_F() 324 infoElem.size = 10; in HWTEST_F() 327 infoElem.size = 6; in HWTEST_F() 335 infoElem.size in HWTEST_F() [all...] |
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/idl_client/idl_interface/ |
H A D | i_wifi_p2p_iface.c | 194 WifiErrorNo P2pGetDeviceAddress(char *deviceAddress, int size) in P2pGetDeviceAddress() argument 201 WriteInt(context, size); in P2pGetDeviceAddress() 211 ReadStr(context, deviceAddress, size); in P2pGetDeviceAddress() 272 static int GetP2pCallbackEvents(int *events, int size) in GetP2pCallbackEvents() argument 304 for (; num < max && num < size; ++num) { in GetP2pCallbackEvents() 851 WifiErrorNo P2pReqServiceDiscovery(const char *bssid, const char *msg, char *retMsg, int size) in P2pReqServiceDiscovery() argument 860 WriteInt(context, size); in P2pReqServiceDiscovery() 868 ReadStr(context, retMsg, size); in P2pReqServiceDiscovery() 1026 WifiErrorNo P2pGetFrequencies(int32_t band, int *frequencies, int32_t *size) in P2pGetFrequencies() argument 1034 WriteInt(context, *size); in P2pGetFrequencies() 1055 P2pSetGroupConfig(int networkId, P2pGroupConfig *pConfig, int size) P2pSetGroupConfig() argument 1082 P2pGetGroupConfig(int networkId, P2pGroupConfig *pConfig, int size) P2pGetGroupConfig() argument [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/rfcomm/ |
H A D | rfcomm_frames.c | 479 size_t size = PacketPayloadSize(pkt); in RfcommSendUihTest() local 482 uint8_t frameLength = (size <= 0x7F) ? (RFCOMM_TEST_FRAME_LEN_MIN + size) : in RfcommSendUihTest() 483 (RFCOMM_TEST_FRAME_LEN_MIN + 1 + size); in RfcommSendUihTest() 507 if (size <= 0x7F) { in RfcommSendUihTest() 508 header[len] = EA | (size << 1); in RfcommSendUihTest() 511 header[len] = (size & 0x7F) << 1; in RfcommSendUihTest() 513 header[len] = size >> RFCOMM_SHIFT_LENGTH2; in RfcommSendUihTest() 571 size_t size = 0; in RfcommSendUihData() local 578 size in RfcommSendUihData() 917 size_t size = 0; RfcommParseUih() local [all...] |
/foundation/filemanagement/storage_service/services/storage_daemon/quota/ |
H A D | quota_manager.cpp | 109 static int64_t GetOccupiedSpaceForUid(int32_t uid, int64_t &size)
in GetOccupiedSpaceForUid() argument 129 size = static_cast<int64_t>(dq.dqb_curspace);
in GetOccupiedSpaceForUid() 133 static int64_t GetOccupiedSpaceForGid(int32_t gid, int64_t &size)
in GetOccupiedSpaceForGid() argument 153 size = static_cast<int64_t>(dq.dqb_curspace);
in GetOccupiedSpaceForGid() 158 static int64_t GetOccupiedSpaceForPrjId(int32_t prjId, int64_t &size)
in GetOccupiedSpaceForPrjId() argument 178 size = static_cast<int64_t>(dq.dqb_curspace);
in GetOccupiedSpaceForPrjId() 182 int32_t QuotaManager::GetOccupiedSpace(int32_t idType, int32_t id, int64_t &size)
in GetOccupiedSpace() argument 186 return GetOccupiedSpaceForUid(id, size);
in GetOccupiedSpace() 189 return GetOccupiedSpaceForGid(id, size);
in GetOccupiedSpace() 192 return GetOccupiedSpaceForPrjId(id, size);
in GetOccupiedSpace() [all...] |
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
H A D | kvm_ppc.h | 89 extern int kvmppc_ld(struct kvm_vcpu *vcpu, ulong *eaddr, int size, void *ptr, 91 extern int kvmppc_st(struct kvm_vcpu *vcpu, ulong *eaddr, int size, void *ptr, 183 (stt)->size, (ioba), (npages)) ? \ 312 int size); 314 int size); 919 #define SHARED_WRAPPER_GET(reg, size) \ 920 static inline u##size kvmppc_get_##reg(struct kvm_vcpu *vcpu) \ 923 return be##size##_to_cpu(vcpu->arch.shared->reg); \ 925 return le##size##_to_cpu(vcpu->arch.shared->reg); \ 928 #define SHARED_WRAPPER_SET(reg, size) \ [all...] |
/kernel/linux/linux-5.10/arch/powerpc/mm/book3s64/ |
H A D | hash_utils.c | 391 int size = 0; in htab_dt_scan_seg_sizes() local 397 prop = of_get_flat_dt_prop(node, "ibm,processor-segment-sizes", &size); in htab_dt_scan_seg_sizes() 400 for (; size >= 4; size -= 4, ++prop) { in htab_dt_scan_seg_sizes() 447 int size = 0; in htab_dt_scan_page_sizes() local 453 prop = of_get_flat_dt_prop(node, "ibm,segment-page-sizes", &size); in htab_dt_scan_page_sizes() 458 size /= 4; in htab_dt_scan_page_sizes() 460 while(size > 0) { in htab_dt_scan_page_sizes() 467 size -= 3; prop += 3; in htab_dt_scan_page_sizes() 471 prop += lpnum * 2; size in htab_dt_scan_page_sizes() 887 phys_addr_t base = 0, size = 0, end; htab_initialize() local [all...] |
/kernel/linux/linux-6.6/arch/powerpc/include/asm/ |
H A D | kvm_ppc.h | 91 extern int kvmppc_ld(struct kvm_vcpu *vcpu, ulong *eaddr, int size, void *ptr, 93 extern int kvmppc_st(struct kvm_vcpu *vcpu, ulong *eaddr, int size, void *ptr, 188 (stt)->size, (ioba), (npages)) ? \ 314 int size); 316 int size); 942 #define SHARED_WRAPPER_GET(reg, size) \ 943 static inline u##size kvmppc_get_##reg(struct kvm_vcpu *vcpu) \ 946 return be##size##_to_cpu(vcpu->arch.shared->reg); \ 948 return le##size##_to_cpu(vcpu->arch.shared->reg); \ 951 #define SHARED_WRAPPER_SET(reg, size) \ [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/mwifiex/ |
H A D | cmdevt.c | 162 "cmd: host cmd size = %d\n", pcmd_ptr->len); in mwifiex_cmd_host_cmd() 170 * number and size, converts the header fields to CPU format before 190 if (host_cmd == NULL || host_cmd->size == 0) { in mwifiex_dnld_cmd_to_fw() 193 "or cmd size is 0, not sending\n"); in mwifiex_dnld_cmd_to_fw() 202 cmd_size = le16_to_cpu(host_cmd->size); in mwifiex_dnld_cmd_to_fw() 307 * number and size, converts the header fields to CPU format before 333 le16_to_cpu(sleep_cfm_buf->size), in mwifiex_dnld_sleep_confirm_cmd() 336 le16_to_cpu(sleep_cfm_buf->size)); in mwifiex_dnld_sleep_confirm_cmd() 841 uint16_t size = le16_to_cpu(resp->size); in mwifiex_process_cmdresp() local [all...] |
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | nfnetlink_log.c | 50 /* max packet size is limited by 16-bit struct nfattr nfa_len field */ 70 unsigned int nlbufsiz; /* netlink buffer allocation size */ 353 if (WARN_ONCE(!nlh, "bad nlskb size: %u, tailroom %d\n", in __nfulnl_send() 389 u32 size = 0; in nfulnl_get_bridge_size() local 395 size += nla_total_size(0); /* nested */ in nfulnl_get_bridge_size() 396 size += nla_total_size(sizeof(u16)); /* id */ in nfulnl_get_bridge_size() 397 size += nla_total_size(sizeof(u16)); /* tag */ in nfulnl_get_bridge_size() 401 size += nla_total_size(skb->network_header - skb->mac_header); in nfulnl_get_bridge_size() 403 return size; in nfulnl_get_bridge_size() 635 int size in __build_packet_message() local 678 size_t size; nfulnl_log_packet() local [all...] |
/kernel/linux/linux-5.10/fs/fat/ |
H A D | dir.c | 24 * Maximum buffer size of short name. 30 * Maximum buffer size of unicode chars from slots. 31 * [(max longname slots * 13 (size in a slot) + nul) * sizeof(wchar_t)] 182 unsigned char *buf, int size) in fat_uni_to_x8() 187 UTF16_HOST_ENDIAN, buf, size); in fat_uni_to_x8() 189 return uni16_to_x8(sb, buf, uni, size, sbi->nls_io); in fat_uni_to_x8() 517 int size = PATH_MAX - FAT_MAX_UNI_SIZE; in fat_search_long() local 520 len = fat_uni_to_x8(sb, unicode, longname, size); in fat_search_long() 626 int size = PATH_MAX - FAT_MAX_UNI_SIZE; in __fat_readdir() local 627 int len = fat_uni_to_x8(sb, unicode, longname, size); in __fat_readdir() 181 fat_uni_to_x8(struct super_block *sb, const wchar_t *uni, unsigned char *buf, int size) fat_uni_to_x8() argument 1206 unsigned long size, copy; fat_add_new_entries() local 1339 int size = free_slots * sizeof(*de); fat_add_entries() local [all...] |
/kernel/linux/linux-5.10/lib/ |
H A D | test_hmm.c | 44 unsigned long size; member 101 unsigned long size) in dmirror_bounce_init() 104 bounce->size = size; in dmirror_bounce_init() 106 bounce->ptr = vmalloc(size); in dmirror_bounce_init() 346 unsigned long size = cmd->npages << PAGE_SHIFT; in dmirror_read() local 350 end = start + size; in dmirror_read() 354 ret = dmirror_bounce_init(&bounce, start, size); in dmirror_read() 374 bounce.size)) in dmirror_read() 415 unsigned long size in dmirror_write() local 99 dmirror_bounce_init(struct dmirror_bounce *bounce, unsigned long addr, unsigned long size) dmirror_bounce_init() argument 668 unsigned long size = cmd->npages << PAGE_SHIFT; dmirror_migrate() local 864 unsigned long size = cmd->npages << PAGE_SHIFT; dmirror_snapshot() local [all...] |
/kernel/linux/linux-6.6/fs/fat/ |
H A D | dir.c | 24 * Maximum buffer size of short name. 30 * Maximum buffer size of unicode chars from slots. 31 * [(max longname slots * 13 (size in a slot) + nul) * sizeof(wchar_t)] 182 unsigned char *buf, int size) in fat_uni_to_x8() 187 UTF16_HOST_ENDIAN, buf, size); in fat_uni_to_x8() 189 return uni16_to_x8(sb, buf, uni, size, sbi->nls_io); in fat_uni_to_x8() 517 int size = PATH_MAX - FAT_MAX_UNI_SIZE; in fat_search_long() local 520 len = fat_uni_to_x8(sb, unicode, longname, size); in fat_search_long() 626 int size = PATH_MAX - FAT_MAX_UNI_SIZE; in __fat_readdir() local 627 int len = fat_uni_to_x8(sb, unicode, longname, size); in __fat_readdir() 181 fat_uni_to_x8(struct super_block *sb, const wchar_t *uni, unsigned char *buf, int size) fat_uni_to_x8() argument 1206 unsigned long size, copy; fat_add_new_entries() local 1339 int size = free_slots * sizeof(*de); fat_add_entries() local [all...] |
/kernel/linux/linux-6.6/drivers/char/tpm/ |
H A D | tpm_tis_core.c | 317 int size = 0, burstcnt, rc; in recv_data() local 319 while (size < count) { in recv_data() 331 burstcnt = min_t(int, burstcnt, count - size); in recv_data() 334 burstcnt, buf + size); in recv_data() 338 size += burstcnt; in recv_data() 340 return size; in recv_data() 346 int size = 0; in tpm_tis_try_recv() local 351 size = recv_data(chip, buf, TPM_HEADER_SIZE); in tpm_tis_try_recv() 353 if (size < TPM_HEADER_SIZE) { in tpm_tis_try_recv() 360 size in tpm_tis_try_recv() [all...] |
/kernel/linux/linux-6.6/io_uring/ |
H A D | rsrc.c | 116 * Don't impose further limits on the size and buffer in io_buffer_validate() 276 static void io_free_page_table(void **table, size_t size) in io_free_page_table() argument 278 unsigned i, nr_tables = DIV_ROUND_UP(size, PAGE_SIZE); in io_free_page_table() 287 size_t size = data->nr * sizeof(data->tags[0][0]); in io_rsrc_data_free() local 290 io_free_page_table((void **)data->tags, size); in io_rsrc_data_free() 294 static __cold void **io_alloc_page_table(size_t size) in io_alloc_page_table() argument 296 unsigned i, nr_tables = DIV_ROUND_UP(size, PAGE_SIZE); in io_alloc_page_table() 297 size_t init_size = size; in io_alloc_page_table() 305 unsigned int this_size = min_t(size_t, size, PAGE_SIZE); in io_alloc_page_table() 312 size in io_alloc_page_table() 508 io_register_rsrc_update(struct io_ring_ctx *ctx, void __user *arg, unsigned size, unsigned type) io_register_rsrc_update() argument 522 io_register_rsrc(struct io_ring_ctx *ctx, void __user *arg, unsigned int size, unsigned int type) io_register_rsrc() argument 921 size_t size; io_sqe_buffer_register() local [all...] |
/kernel/linux/linux-6.6/drivers/cxl/core/ |
H A D | hdm.c | 134 "decoder%d.%d: committed: %ld base: %#x_%.8x size: %#x_%.8x\n", in should_emulate_decoders() 362 resource_size_t size = 0; in cxl_dpa_size() local 366 size = resource_size(cxled->dpa_res); in cxl_dpa_size() 369 return size; in cxl_dpa_size() 464 int cxl_dpa_alloc(struct cxl_endpoint_decoder *cxled, unsigned long long size) in cxl_dpa_alloc() argument 530 if (size > avail) { in cxl_dpa_alloc() 531 dev_dbg(dev, "%pa exceeds available %s capacity: %pa\n", &size, in cxl_dpa_alloc() 538 rc = __cxl_dpa_reserve(cxled, start, size, skip); in cxl_dpa_alloc() 631 u64 base, size; in cxl_decoder_commit() local 670 size in cxl_decoder_commit() 802 u64 size, base, skip, dpa_size, lo, hi; init_hdm_decoder() local [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-dbg-tlv.c | 149 IWL_ERR(trans, "WRT: Invalid DRAM buffer allocation requested size (0)\n"); in iwl_dbg_tlv_alloc_buf_alloc() 231 le32_to_cpu(reg->internal_buffer.size); in iwl_dbg_tlv_alloc_region() 408 dma_free_coherent(trans->dev, frag->size, frag->block, in iwl_dbg_tlv_fragments_free() 413 frag->size = 0; in iwl_dbg_tlv_fragments_free() 518 iwl_dbg_tlv_parse_bin(trans, fw->data, fw->size); in iwl_dbg_tlv_load_bin() 547 if (!frag || frag->size || !pages) in iwl_dbg_tlv_alloc_fragment() 564 IWL_WARN(fwrt, "WRT: Failed to allocate fragment size %lu\n", in iwl_dbg_tlv_alloc_fragment() 575 frag->size = pages * PAGE_SIZE; in iwl_dbg_tlv_alloc_fragment() 598 fw_mon->frags[i].size); in iwl_dbg_tlv_alloc_fragments() 630 "WRT: Allocating DRAM buffer (alloc_id=%u, fragment=%u, size in iwl_dbg_tlv_alloc_fragments() 1061 u32 size = le32_to_cpu(trig_tlv->length); iwl_dbg_tlv_override_trig_node() local [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/marvell/mwifiex/ |
H A D | cmdevt.c | 150 "cmd: host cmd size = %d\n", pcmd_ptr->len); in mwifiex_cmd_host_cmd() 158 * number and size, converts the header fields to CPU format before 178 if (host_cmd->size == 0) { in mwifiex_dnld_cmd_to_fw() 181 "or cmd size is 0, not sending\n"); in mwifiex_dnld_cmd_to_fw() 190 cmd_size = le16_to_cpu(host_cmd->size); in mwifiex_dnld_cmd_to_fw() 295 * number and size, converts the header fields to CPU format before 321 le16_to_cpu(sleep_cfm_buf->size), in mwifiex_dnld_sleep_confirm_cmd() 324 le16_to_cpu(sleep_cfm_buf->size)); in mwifiex_dnld_sleep_confirm_cmd() 843 uint16_t size = le16_to_cpu(resp->size); in mwifiex_process_cmdresp() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_ttm.c | 131 resource_size_t size, in i915_ttm_place_from_region() 145 WARN_ON(overflows_type(place->fpfn + (size >> PAGE_SHIFT), place->lpfn)); in i915_ttm_place_from_region() 146 place->lpfn = place->fpfn + (size >> PAGE_SHIFT); in i915_ttm_place_from_region() 171 obj->base.size, flags); in i915_ttm_placement_from_obj() 177 obj->bo_offset, obj->base.size, flags); in i915_ttm_placement_from_obj() 196 const size_t size = (size_t)ttm->num_pages << PAGE_SHIFT; in i915_ttm_tt_shmem_populate() local 208 filp = shmem_file_setup("i915-shmem-tt", size, VM_NORESERVE); in i915_ttm_tt_shmem_populate() 222 err = shmem_sg_alloc_table(i915, st, size, mr, filp->f_mapping, in i915_ttm_tt_shmem_populate() 302 ccs_pages = DIV_ROUND_UP(DIV_ROUND_UP(bo->base.size, in i915_ttm_tt_create() 310 __i915_refct_sgt_init(&i915_tt->cached_rsgt, bo->base.size, in i915_ttm_tt_create() 128 i915_ttm_place_from_region(const struct intel_memory_region *mr, struct ttm_place *place, resource_size_t offset, resource_size_t size, unsigned int flags) i915_ttm_place_from_region() argument 1286 __i915_gem_ttm_object_init(struct intel_memory_region *mem, struct drm_i915_gem_object *obj, resource_size_t offset, resource_size_t size, resource_size_t page_size, unsigned int flags) __i915_gem_ttm_object_init() argument [all...] |