/kernel/linux/linux-6.6/include/linux/ |
H A D | iommu-helper.h | 10 static inline unsigned long iommu_device_max_index(unsigned long size, in iommu_device_max_index() argument 14 if (size + offset > dma_mask) in iommu_device_max_index() 17 return size; in iommu_device_max_index() 29 extern unsigned long iommu_area_alloc(unsigned long *map, unsigned long size, 39 unsigned long size = (addr & (io_page_size - 1)) + len; in iommu_num_pages() local 41 return DIV_ROUND_UP(size, io_page_size); in iommu_num_pages()
|
/kernel/linux/linux-6.6/include/trace/events/ |
H A D | gpu_mem.h | 27 * @size: Size of the allocation in bytes. 32 TP_PROTO(uint32_t gpu_id, uint32_t pid, uint64_t size), 34 TP_ARGS(gpu_id, pid, size), 39 __field(uint64_t, size) 45 __entry->size = size; 48 TP_printk("gpu_id=%u pid=%u size=%llu", 51 __entry->size)
|
/kernel/linux/linux-6.6/tools/perf/trace/beauty/tracepoints/ |
H A D | x86_irq_vectors.c | 14 static size_t x86_irq_vectors__scnprintf(unsigned long vector, char *bf, size_t size, bool show_prefix) in x86_irq_vectors__scnprintf() argument 16 return strarray__scnprintf_suffix(&strarray__x86_irq_vectors, bf, size, "%#x", show_prefix, vector); in x86_irq_vectors__scnprintf() 19 size_t syscall_arg__scnprintf_x86_irq_vectors(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_x86_irq_vectors() argument 23 return x86_irq_vectors__scnprintf(vector, bf, size, arg->show_string_prefix); in syscall_arg__scnprintf_x86_irq_vectors() 26 bool syscall_arg__strtoul_x86_irq_vectors(char *bf, size_t size, struct syscall_arg *arg __maybe_unused, u64 *ret) in syscall_arg__strtoul_x86_irq_vectors() argument 28 return strarray__strtoul(&strarray__x86_irq_vectors, bf, size, ret); in syscall_arg__strtoul_x86_irq_vectors()
|
H A D | x86_msr.c | 24 static size_t x86_MSR__scnprintf(unsigned long msr, char *bf, size_t size, bool show_prefix) in x86_MSR__scnprintf() argument 26 return strarrays__scnprintf(&strarrays__x86_MSRs_tables, bf, size, "%#x", show_prefix, msr); in x86_MSR__scnprintf() 29 size_t syscall_arg__scnprintf_x86_MSR(char *bf, size_t size, struct syscall_arg *arg) in syscall_arg__scnprintf_x86_MSR() argument 33 return x86_MSR__scnprintf(flags, bf, size, arg->show_string_prefix); in syscall_arg__scnprintf_x86_MSR() 36 bool syscall_arg__strtoul_x86_MSR(char *bf, size_t size, struct syscall_arg *arg __maybe_unused, u64 *ret) in syscall_arg__strtoul_x86_MSR() argument 38 return strarrays__strtoul(&strarrays__x86_MSRs_tables, bf, size, ret); in syscall_arg__strtoul_x86_MSR()
|
/kernel/liteos_m/testsuites/sample/kernel/lms/ |
H A D | It_los_lms_006.c | 37 UINT32 size = 20 * 3; /* mem size 20 * 3 */
in TestCase() local 39 CHAR *str = (CHAR *)LOS_MemAlloc(g_testLmsPool, size);
in TestCase() 42 (VOID)memset_s(str, size, 0xca, size);
in TestCase() 45 CHAR *newPtr = LOS_MemRealloc(g_testLmsPool, str, size - 32); /* mem size - 32 */
in TestCase() 48 PRINTK("newPtr = 0x%x\n", newPtr[size - 30]); /* trigger read overflow at size - 30 */
in TestCase()
|
H A D | It_los_lms_005.c | 37 UINT32 size = 20; /* mem size 20 */
in TestCase() local 39 CHAR *str = (CHAR *)LOS_MemAlloc(g_testLmsPool, size);
in TestCase() 42 (VOID)memset_s(str, size, 0xca, size);
in TestCase() 45 CHAR *newPtr = LOS_MemRealloc(g_testLmsPool, str, size - 4); /* mem size - 4 */
in TestCase() 48 PRINTK("newPtr = 0x%x\n", newPtr[size - 4]); /* trigger read overflow at size - 4 */
in TestCase()
|
/kernel/linux/linux-5.10/security/apparmor/ |
H A D | label.c | 396 bool aa_label_init(struct aa_label *label, int size, gfp_t gfp) in aa_label_init() argument 399 AA_BUG(size < 1); in aa_label_init() 404 label->size = size; /* doesn't include null */ in aa_label_init() 405 label->vec[size] = NULL; /* null terminate */ in aa_label_init() 413 * aa_label_alloc - allocate a label with a profile vector of @size length 414 * @size: size of profile vector in the label 421 struct aa_label *aa_label_alloc(int size, struct aa_proxy *proxy, gfp_t gfp) in aa_label_alloc() argument 425 AA_BUG(size < in aa_label_alloc() 1512 aa_profile_snxprint(char *str, size_t size, struct aa_ns *view, struct aa_profile *profile, int flags, struct aa_ns **prev_ns) aa_profile_snxprint() argument 1623 aa_label_snxprint(char *str, size_t size, struct aa_ns *ns, struct aa_label *label, int flags) aa_label_snxprint() argument 1690 int size; aa_label_asxprint() local 1719 int size; aa_label_acntsxprint() local [all...] |
/kernel/linux/linux-5.10/net/ipv4/netfilter/ |
H A D | ip_tables.c | 206 xt_entry_foreach(iter, root, private->size - private->hook_entry[hook]) in trace_packet() 401 unsigned int oldpos, size; in mark_source_chains() local 419 size = e->next_offset; in mark_source_chains() 420 e = entry0 + pos + size; in mark_source_chains() 421 if (pos + size >= newinfo->size) in mark_source_chains() 424 pos += size; in mark_source_chains() 438 if (newpos >= newinfo->size) in mark_source_chains() 517 unsigned int size, in find_check_entry() 670 newinfo->size in translate_table() 516 find_check_entry(struct ipt_entry *e, struct net *net, const char *name, unsigned int size, struct xt_percpu_counter_alloc_state *alloc_state) find_check_entry() argument 1210 u32 size; global() member 1219 compat_copy_entry_to_user(struct ipt_entry *e, void __user **dstptr, unsigned int *size, struct xt_counters *counters, unsigned int i) compat_copy_entry_to_user() argument 1258 compat_find_calc_match(struct xt_entry_match *m, const struct ipt_ip *ip, int *size) compat_find_calc_match() argument 1287 check_compat_entry_size_and_hooks(struct compat_ipt_entry *e, struct xt_table_info *newinfo, unsigned int *size, const unsigned char *base, const unsigned char *limit) check_compat_entry_size_and_hooks() argument 1356 compat_copy_entry_from_user(struct compat_ipt_entry *e, void **dstptr, unsigned int *size, struct xt_table_info *newinfo, unsigned char *base) compat_copy_entry_from_user() argument 1402 unsigned int size; translate_compat_table() local 1546 compat_uint_t size; global() member 1557 unsigned int size; compat_copy_entries_to_user() local [all...] |
/kernel/linux/linux-5.10/net/ipv6/netfilter/ |
H A D | ip6_tables.c | 231 xt_entry_foreach(iter, root, private->size - private->hook_entry[hook]) in trace_packet() 420 unsigned int oldpos, size; in mark_source_chains() local 438 size = e->next_offset; in mark_source_chains() 439 e = entry0 + pos + size; in mark_source_chains() 440 if (pos + size >= newinfo->size) in mark_source_chains() 443 pos += size; in mark_source_chains() 457 if (newpos >= newinfo->size) in mark_source_chains() 537 unsigned int size, in find_check_entry() 688 newinfo->size in translate_table() 536 find_check_entry(struct ip6t_entry *e, struct net *net, const char *name, unsigned int size, struct xt_percpu_counter_alloc_state *alloc_state) find_check_entry() argument 1227 u32 size; global() member 1236 compat_copy_entry_to_user(struct ip6t_entry *e, void __user **dstptr, unsigned int *size, struct xt_counters *counters, unsigned int i) compat_copy_entry_to_user() argument 1275 compat_find_calc_match(struct xt_entry_match *m, const struct ip6t_ip6 *ipv6, int *size) compat_find_calc_match() argument 1304 check_compat_entry_size_and_hooks(struct compat_ip6t_entry *e, struct xt_table_info *newinfo, unsigned int *size, const unsigned char *base, const unsigned char *limit) check_compat_entry_size_and_hooks() argument 1373 compat_copy_entry_from_user(struct compat_ip6t_entry *e, void **dstptr, unsigned int *size, struct xt_table_info *newinfo, unsigned char *base) compat_copy_entry_from_user() argument 1418 unsigned int size; translate_compat_table() local 1556 compat_uint_t size; global() member 1567 unsigned int size; compat_copy_entries_to_user() local [all...] |
/kernel/linux/linux-6.6/fs/ceph/ |
H A D | xattr.c | 37 size_t size); 58 size_t size) in ceph_vxattrcb_layout() 93 if (size >= total_len) { in ceph_vxattrcb_layout() 121 int ceph_fmt_xattr(char *val, size_t size, const char *fmt, ...) in ceph_fmt_xattr() argument 125 char buf[96]; /* NB: reevaluate size if new vxattrs are added */ in ceph_fmt_xattr() 128 ret = vsnprintf(buf, size ? sizeof(buf) : 0, fmt, args); in ceph_fmt_xattr() 132 if (size && ret + 1 > sizeof(buf)) { in ceph_fmt_xattr() 137 if (ret <= size) in ceph_fmt_xattr() 143 char *val, size_t size) in ceph_vxattrcb_layout_stripe_unit() 145 return ceph_fmt_xattr(val, size, " in ceph_vxattrcb_layout_stripe_unit() 57 ceph_vxattrcb_layout(struct ceph_inode_info *ci, char *val, size_t size) ceph_vxattrcb_layout() argument 142 ceph_vxattrcb_layout_stripe_unit(struct ceph_inode_info *ci, char *val, size_t size) ceph_vxattrcb_layout_stripe_unit() argument 148 ceph_vxattrcb_layout_stripe_count(struct ceph_inode_info *ci, char *val, size_t size) ceph_vxattrcb_layout_stripe_count() argument 154 ceph_vxattrcb_layout_object_size(struct ceph_inode_info *ci, char *val, size_t size) ceph_vxattrcb_layout_object_size() argument 160 ceph_vxattrcb_layout_pool(struct ceph_inode_info *ci, char *val, size_t size) ceph_vxattrcb_layout_pool() argument 182 ceph_vxattrcb_layout_pool_namespace(struct ceph_inode_info *ci, char *val, size_t size) ceph_vxattrcb_layout_pool_namespace() argument 199 ceph_vxattrcb_dir_entries(struct ceph_inode_info *ci, char *val, size_t size) ceph_vxattrcb_dir_entries() argument 205 ceph_vxattrcb_dir_files(struct ceph_inode_info *ci, char *val, size_t size) ceph_vxattrcb_dir_files() argument 211 ceph_vxattrcb_dir_subdirs(struct ceph_inode_info *ci, char *val, size_t size) ceph_vxattrcb_dir_subdirs() argument 217 ceph_vxattrcb_dir_rentries(struct ceph_inode_info *ci, char *val, size_t size) ceph_vxattrcb_dir_rentries() argument 224 ceph_vxattrcb_dir_rfiles(struct ceph_inode_info *ci, char *val, size_t size) ceph_vxattrcb_dir_rfiles() argument 230 ceph_vxattrcb_dir_rsubdirs(struct ceph_inode_info *ci, char *val, size_t size) ceph_vxattrcb_dir_rsubdirs() argument 236 ceph_vxattrcb_dir_rsnaps(struct ceph_inode_info *ci, char *val, size_t size) ceph_vxattrcb_dir_rsnaps() argument 242 ceph_vxattrcb_dir_rbytes(struct ceph_inode_info *ci, char *val, size_t size) ceph_vxattrcb_dir_rbytes() argument 248 ceph_vxattrcb_dir_rctime(struct ceph_inode_info *ci, char *val, size_t size) ceph_vxattrcb_dir_rctime() argument 261 ceph_vxattrcb_dir_pin(struct ceph_inode_info *ci, char *val, size_t size) ceph_vxattrcb_dir_pin() argument 281 ceph_vxattrcb_quota(struct ceph_inode_info *ci, char *val, size_t size) ceph_vxattrcb_quota() argument 288 ceph_vxattrcb_quota_max_bytes(struct ceph_inode_info *ci, char *val, size_t size) ceph_vxattrcb_quota_max_bytes() argument 294 ceph_vxattrcb_quota_max_files(struct ceph_inode_info *ci, char *val, size_t size) ceph_vxattrcb_quota_max_files() argument 306 ceph_vxattrcb_snap_btime(struct ceph_inode_info *ci, char *val, size_t size) ceph_vxattrcb_snap_btime() argument 313 ceph_vxattrcb_cluster_fsid(struct ceph_inode_info *ci, char *val, size_t size) ceph_vxattrcb_cluster_fsid() argument 321 ceph_vxattrcb_client_id(struct ceph_inode_info *ci, char *val, size_t size) ceph_vxattrcb_client_id() argument 330 ceph_vxattrcb_caps(struct ceph_inode_info *ci, char *val, size_t size) ceph_vxattrcb_caps() argument 343 ceph_vxattrcb_auth_mds(struct ceph_inode_info *ci, char *val, size_t size) ceph_vxattrcb_auth_mds() argument 361 ceph_vxattrcb_fscrypt_auth(struct ceph_inode_info *ci, char *val, size_t size) ceph_vxattrcb_fscrypt_auth() argument 881 int size = 4 + ci->i_xattrs.count*(4 + 4) + __get_required_blob_size() local 962 __ceph_getxattr(struct inode *inode, const char *name, void *value, size_t size) __ceph_getxattr() argument 1053 ceph_listxattr(struct dentry *dentry, char *names, size_t size) ceph_listxattr() argument 1094 ceph_sync_setxattr(struct inode *inode, const char *name, const char *value, size_t size, int flags) ceph_sync_setxattr() argument 1162 __ceph_setxattr(struct inode *inode, const char *name, const void *value, size_t size, int flags) __ceph_setxattr() argument 1311 ceph_get_xattr_handler(const struct xattr_handler *handler, struct dentry *dentry, struct inode *inode, const char *name, void *value, size_t size) ceph_get_xattr_handler() argument 1320 ceph_set_xattr_handler(const struct xattr_handler *handler, struct mnt_idmap *idmap, struct dentry *unused, struct inode *inode, const char *name, const void *value, size_t size, int flags) ceph_set_xattr_handler() argument [all...] |
/kernel/linux/linux-6.6/security/apparmor/ |
H A D | label.c | 399 bool aa_label_init(struct aa_label *label, int size, gfp_t gfp) in aa_label_init() argument 402 AA_BUG(size < 1); in aa_label_init() 407 label->size = size; /* doesn't include null */ in aa_label_init() 408 label->vec[size] = NULL; /* null terminate */ in aa_label_init() 416 * aa_label_alloc - allocate a label with a profile vector of @size length 417 * @size: size of profile vector in the label 424 struct aa_label *aa_label_alloc(int size, struct aa_proxy *proxy, gfp_t gfp) in aa_label_alloc() argument 428 AA_BUG(size < in aa_label_alloc() 1512 aa_profile_snxprint(char *str, size_t size, struct aa_ns *view, struct aa_profile *profile, int flags, struct aa_ns **prev_ns) aa_profile_snxprint() argument 1623 aa_label_snxprint(char *str, size_t size, struct aa_ns *ns, struct aa_label *label, int flags) aa_label_snxprint() argument 1690 int size; aa_label_asxprint() local 1719 int size; aa_label_acntsxprint() local [all...] |
/kernel/linux/linux-5.10/fs/ubifs/ |
H A D | xattr.c | 15 * which limits extended attribute size to UBIFS block size (4KiB). Names of 29 * limitation on the maximum possible size of the list of all extended 73 * @size: size of extended attribute value 82 const struct fscrypt_name *nm, const void *value, int size) in create_xattr() 88 .new_ino_d = ALIGN(size, 8), .dirtied_ino = 1, in create_xattr() 97 * Linux limits the maximum size of the extended attribute names list in create_xattr() 128 ui->data = kmemdup(value, size, GFP_NOFS); in create_xattr() 133 inode->i_size = ui->ui_size = size; in create_xattr() 81 create_xattr(struct ubifs_info *c, struct inode *host, const struct fscrypt_name *nm, const void *value, int size) create_xattr() argument 190 change_xattr(struct ubifs_info *c, struct inode *host, struct inode *inode, const void *value, int size) change_xattr() argument 263 ubifs_xattr_set(struct inode *host, const char *name, const void *value, size_t size, int flags, bool check_lock) ubifs_xattr_set() argument 326 ubifs_xattr_get(struct inode *host, const char *name, void *buf, size_t size) ubifs_xattr_get() argument 396 ubifs_listxattr(struct dentry *dentry, char *buffer, size_t size) ubifs_listxattr() argument 690 xattr_get(const struct xattr_handler *handler, struct dentry *dentry, struct inode *inode, const char *name, void *buffer, size_t size) xattr_get() argument 701 xattr_set(const struct xattr_handler *handler, struct dentry *dentry, struct inode *inode, const char *name, const void *value, size_t size, int flags) xattr_set() argument [all...] |
/kernel/linux/linux-5.10/net/9p/ |
H A D | protocol.c | 46 size_t pdu_read(struct p9_fcall *pdu, void *data, size_t size) in pdu_read() argument 48 size_t len = min(pdu->size - pdu->offset, size); in pdu_read() 51 return size - len; in pdu_read() 54 static size_t pdu_write(struct p9_fcall *pdu, const void *data, size_t size) in pdu_write() argument 56 size_t len = min(pdu->capacity - pdu->size, size); in pdu_write() 57 memcpy(&pdu->sdata[pdu->size], data, len); in pdu_write() 58 pdu->size += len; in pdu_write() 59 return size in pdu_write() 63 pdu_write_u(struct p9_fcall *pdu, struct iov_iter *from, size_t size) pdu_write_u() argument 583 int size = pdu->size; p9pdu_finalize() local [all...] |
/kernel/linux/linux-6.6/drivers/net/can/dev/ |
H A D | netlink.c | 395 size_t size; in can_tdc_get_size() local 400 size = nla_total_size(0); /* nest IFLA_CAN_TDC */ in can_tdc_get_size() 402 size += nla_total_size(sizeof(u32)); /* IFLA_CAN_TDCV_MIN */ in can_tdc_get_size() 403 size += nla_total_size(sizeof(u32)); /* IFLA_CAN_TDCV_MAX */ in can_tdc_get_size() 405 size += nla_total_size(sizeof(u32)); /* IFLA_CAN_TDCO_MIN */ in can_tdc_get_size() 406 size += nla_total_size(sizeof(u32)); /* IFLA_CAN_TDCO_MAX */ in can_tdc_get_size() 408 size += nla_total_size(sizeof(u32)); /* IFLA_CAN_TDCF_MIN */ in can_tdc_get_size() 409 size += nla_total_size(sizeof(u32)); /* IFLA_CAN_TDCF_MAX */ in can_tdc_get_size() 415 size += nla_total_size(sizeof(u32)); /* IFLA_CAN_TDCV */ in can_tdc_get_size() 416 size in can_tdc_get_size() 433 size_t size = 0; can_get_size() local [all...] |
/kernel/linux/linux-6.6/fs/ubifs/ |
H A D | xattr.c | 15 * which limits extended attribute size to UBIFS block size (4KiB). Names of 29 * limitation on the maximum possible size of the list of all extended 73 * @size: size of extended attribute value 82 const struct fscrypt_name *nm, const void *value, int size) in create_xattr() 88 .new_ino_d = ALIGN(size, 8), .dirtied_ino = 1, in create_xattr() 97 * Linux limits the maximum size of the extended attribute names list in create_xattr() 128 ui->data = kmemdup(value, size, GFP_NOFS); in create_xattr() 133 inode->i_size = ui->ui_size = size; in create_xattr() 81 create_xattr(struct ubifs_info *c, struct inode *host, const struct fscrypt_name *nm, const void *value, int size) create_xattr() argument 190 change_xattr(struct ubifs_info *c, struct inode *host, struct inode *inode, const void *value, int size) change_xattr() argument 263 ubifs_xattr_set(struct inode *host, const char *name, const void *value, size_t size, int flags, bool check_lock) ubifs_xattr_set() argument 326 ubifs_xattr_get(struct inode *host, const char *name, void *buf, size_t size) ubifs_xattr_get() argument 396 ubifs_listxattr(struct dentry *dentry, char *buffer, size_t size) ubifs_listxattr() argument 690 xattr_get(const struct xattr_handler *handler, struct dentry *dentry, struct inode *inode, const char *name, void *buffer, size_t size) xattr_get() argument 701 xattr_set(const struct xattr_handler *handler, struct mnt_idmap *idmap, struct dentry *dentry, struct inode *inode, const char *name, const void *value, size_t size, int flags) xattr_set() argument [all...] |
/kernel/linux/linux-6.6/net/9p/ |
H A D | protocol.c | 31 * p9_msg_buf_size - Returns a buffer size sufficiently large to hold the 46 /* size[4] type[1] tag[2] */ in p9_msg_buf_size() 211 size_t pdu_read(struct p9_fcall *pdu, void *data, size_t size) in pdu_read() argument 213 size_t len = min(pdu->size - pdu->offset, size); in pdu_read() 217 return size - len; in pdu_read() 220 static size_t pdu_write(struct p9_fcall *pdu, const void *data, size_t size) in pdu_write() argument 222 size_t len = min(pdu->capacity - pdu->size, size); in pdu_write() 224 memcpy(&pdu->sdata[pdu->size], dat in pdu_write() 230 pdu_write_u(struct p9_fcall *pdu, struct iov_iter *from, size_t size) pdu_write_u() argument 749 int size = pdu->size; p9pdu_finalize() local [all...] |
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | tcp_bpf.c | 37 u32 size, copied = 0; in bpf_tcp_ingress() local 50 size = (apply && apply_bytes < sge->length) ? in bpf_tcp_ingress() 52 if (!sk_wmem_schedule(sk, size)) { in bpf_tcp_ingress() 58 sk_mem_charge(sk, size); in bpf_tcp_ingress() 59 sk_msg_xfer(tmp, msg, i, size); in bpf_tcp_ingress() 60 copied += size; in bpf_tcp_ingress() 66 apply_bytes -= size; in bpf_tcp_ingress() 95 int size, ret = 0; in tcp_bpf_push() local 103 size = (apply && apply_bytes < sge->length) ? in tcp_bpf_push() 115 if (size < sg in tcp_bpf_push() 495 tcp_bpf_sendmsg(struct sock *sk, struct msghdr *msg, size_t size) tcp_bpf_sendmsg() argument [all...] |
/test/xts/acts/ai/nncore/nncoretest/src/ |
H A D | HdiTensorTest.cpp | 96 * @tc.desc: 根据size创建Tensor,TensorDesc为nullptr 103 size_t size = 4; in HWTEST_F() local 104 NN_Tensor* tensor = OH_NNTensor_CreateWithSize(deviceId, nullptr, size); in HWTEST_F() 110 * @tc.desc: 根据size创建Tensor,size = 0 119 size_t size = 0; in HWTEST_F() local 120 NN_Tensor* tensor = OH_NNTensor_CreateWithSize(deviceId, tensorDesc, size); in HWTEST_F() 127 * @tc.desc: 根据size创建Tensor,size < tensor size 138 size_t size = byteSize - 1; HWTEST_F() local 155 size_t size = 4; HWTEST_F() local 178 size_t size = 4; HWTEST_F() local 221 size_t size = 4; HWTEST_F() local 248 size_t size = 10; HWTEST_F() local 275 size_t size = byteSize; HWTEST_F() local 377 size_t size = 0; HWTEST_F() local 394 size_t size = 0; HWTEST_F() local 413 size_t size = byteSize + 2; HWTEST_F() local 439 size_t size = byteSize; HWTEST_F() local 528 size_t size = byteSize; HWTEST_F() local [all...] |
/base/security/code_signature/interfaces/innerkits/jit_code_sign/src/ |
H A D | jit_code_signer_hybrid.cpp | 48 if (static_cast<size_t>(GetIndexFromOffset(offset_)) != signTable_.size()) { in SignInstruction() 49 LOG_ERROR("Index = %{public}d not equal signtable size = %{public}zu.", in SignInstruction() 50 GetIndexFromOffset(offset_), signTable_.size()); in SignInstruction() 96 Byte *jitBuffer, int pos, int size) in ValidateSubCode() 98 if (size == 0) { in ValidateSubCode() 102 LOG_INFO("Validate start = %{public}p, offset = %{public}x, size = %{public}d", in ValidateSubCode() 103 jitBuffer, pos, size); in ValidateSubCode() 108 while (size > 0) { in ValidateSubCode() 125 size -= INSTRUCTION_SIZE; in ValidateSubCode() 131 Instr *jitMemory, Byte *tmpBuffer, int size) in ValidateCodeCopy() 95 ValidateSubCode(Instr *jitMemory, PACSignCtx &verifyCtx, Byte *jitBuffer, int pos, int size) ValidateSubCode() argument 130 ValidateCodeCopy( Instr *jitMemory, Byte *tmpBuffer, int size) ValidateCodeCopy() argument [all...] |
/base/sensors/sensor/utils/ipc/include/ |
H A D | stream_buffer.h | 47 bool Read(char *buf, size_t size); 50 virtual bool Write(const char *buf, size_t size); 105 SEN_HILOGE("[%{public}s] size:%{public}zu count:%{public}d", in Read() 108 SEN_HILOGE("%{public}s, size:%{public}zu, count:%{public}zu", in Read() 122 SEN_HILOGE("[%{public}s] size:%{public}zu,count:%{public}d", in Write() 125 SEN_HILOGE("%{public}s, size:%{public}zu, count:%{public}zu", in Write() 136 size_t size = 0; in Read() local 137 if (!Read(size)) { in Read() 138 SEN_HILOGE("Read vector size failed"); in Read() 141 if (size > MAX_VECTOR_SIZ in Read() 163 size_t size = data.size(); Write() local [all...] |
/kernel/linux/linux-5.10/arch/arm/mm/ |
H A D | nommu.c | 204 size_t size, unsigned int mtype) in __arm_ioremap_pfn() 212 void __iomem *__arm_ioremap_caller(phys_addr_t phys_addr, size_t size, in __arm_ioremap_caller() argument 220 void __iomem *ioremap(resource_size_t res_cookie, size_t size) in ioremap() argument 222 return __arm_ioremap_caller(res_cookie, size, MT_DEVICE, in ioremap() 227 void __iomem *ioremap_cache(resource_size_t res_cookie, size_t size) in ioremap_cache() argument 229 return __arm_ioremap_caller(res_cookie, size, MT_DEVICE_CACHED, in ioremap_cache() 234 void __iomem *ioremap_wc(resource_size_t res_cookie, size_t size) in ioremap_wc() argument 236 return __arm_ioremap_caller(res_cookie, size, MT_DEVICE_WC, in ioremap_wc() 245 void __iomem *pci_remap_cfgspace(resource_size_t res_cookie, size_t size) in pci_remap_cfgspace() argument 247 return arch_ioremap_caller(res_cookie, size, MT_UNCACHE in pci_remap_cfgspace() 203 __arm_ioremap_pfn(unsigned long pfn, unsigned long offset, size_t size, unsigned int mtype) __arm_ioremap_pfn() argument 253 arch_memremap_wb(phys_addr_t phys_addr, size_t size) arch_memremap_wb() argument [all...] |
/kernel/linux/linux-5.10/arch/mips/kernel/ |
H A D | spram.c | 121 unsigned int size, tag0, tag1; in probe_spram() local 136 size = tag1 & SPRAM_TAG1_SIZE_MASK; in probe_spram() 138 if (size == 0) in probe_spram() 143 if ((pa == firstpa && size == firstsize) || in probe_spram() 144 (pa == lastpa && size == lastsize)) in probe_spram() 148 /* Align base with size */ in probe_spram() 149 base = (base + size - 1) & ~(size-1); in probe_spram() 155 base += size; in probe_spram() 164 firstsize = size; in probe_spram() [all...] |
/kernel/linux/linux-5.10/arch/mips/pci/ |
H A D | ops-loongson2.c | 119 int where, int size, u32 *val) in loongson_pcibios_read() 123 if ((size == 2) && (where & 1)) in loongson_pcibios_read() 125 else if ((size == 4) && (where & 3)) in loongson_pcibios_read() 132 if (size == 1) in loongson_pcibios_read() 134 else if (size == 2) in loongson_pcibios_read() 143 int where, int size, u32 val) in loongson_pcibios_write() 147 if ((size == 2) && (where & 1)) in loongson_pcibios_write() 149 else if ((size == 4) && (where & 3)) in loongson_pcibios_write() 152 if (size == 4) in loongson_pcibios_write() 159 if (size in loongson_pcibios_write() 118 loongson_pcibios_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) loongson_pcibios_read() argument 142 loongson_pcibios_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) loongson_pcibios_write() argument [all...] |
/kernel/linux/linux-5.10/arch/arm/mach-shmobile/ |
H A D | setup-rcar-gen2.c | 128 u64 base, size; member 152 u64 base, size; in rcar_gen2_scan_mem() local 155 size = dt_mem_next_cell(dt_root_size_cells, ®); in rcar_gen2_scan_mem() 160 if ((base + size) >= lpae_start) in rcar_gen2_scan_mem() 161 size = lpae_start - base; in rcar_gen2_scan_mem() 163 if (size < mrc->reserved) in rcar_gen2_scan_mem() 170 mrc->base = base + size - mrc->reserved; in rcar_gen2_scan_mem() 171 mrc->size = mrc->reserved; in rcar_gen2_scan_mem() 187 if (mrc.size && memblock_is_region_memory(mrc.base, mrc.size)) { in rcar_gen2_reserve() [all...] |
/kernel/linux/linux-6.6/arch/mips/kernel/ |
H A D | spram.c | 121 unsigned int size, tag0, tag1; in probe_spram() local 136 size = tag1 & SPRAM_TAG1_SIZE_MASK; in probe_spram() 138 if (size == 0) in probe_spram() 143 if ((pa == firstpa && size == firstsize) || in probe_spram() 144 (pa == lastpa && size == lastsize)) in probe_spram() 148 /* Align base with size */ in probe_spram() 149 base = (base + size - 1) & ~(size-1); in probe_spram() 155 base += size; in probe_spram() 164 firstsize = size; in probe_spram() [all...] |