/third_party/vixl/src/ |
H A D | code-generation-scopes-vixl.h | 41 // - Optionally, on destruction, check the size of the generated code. 42 // (The size can be either exact or a maximum size.) 46 // has enough space for the requested size. 59 kNoAssert, // Do not check the size of the code emitted. 60 kExactSize, // The code emitted must be exactly size bytes. 61 kMaximumSize // The code emitted must be at most size bytes. 68 size_t size, in CodeBufferCheckScope() 72 Open(assembler, size, check_policy, size_policy); in CodeBufferCheckScope() 91 size_t size, in Open() 67 CodeBufferCheckScope(internal::AssemblerBase* assembler, size_t size, BufferSpacePolicy check_policy = kReserveBufferSpace, SizePolicy size_policy = kMaximumSize) CodeBufferCheckScope() argument 90 Open(internal::AssemblerBase* assembler, size_t size, BufferSpacePolicy check_policy = kReserveBufferSpace, SizePolicy size_policy = kMaximumSize) Open() argument 158 EmissionCheckScope(MacroAssemblerInterface* masm, size_t size, SizePolicy size_policy = kMaximumSize) EmissionCheckScope() argument 183 Open(MacroAssemblerInterface* masm, size_t size, SizePolicy size_policy = kMaximumSize) Open() argument 208 Open(MacroAssemblerInterface* masm, size_t size, SizePolicy size_policy, PoolPolicy pool_policy) Open() argument 237 EmissionCheckScope(MacroAssemblerInterface* masm, size_t size, SizePolicy size_policy, PoolPolicy pool_policy) EmissionCheckScope() argument 257 ExactAssemblyScope(MacroAssemblerInterface* masm, size_t size, SizePolicy size_policy = kExactSize) ExactAssemblyScope() argument 271 Open(MacroAssemblerInterface* masm, size_t size, SizePolicy size_policy = kExactSize) Open() argument 297 ExactAssemblyScope(MacroAssemblerInterface* masm, size_t size, SizePolicy assert_policy, PoolPolicy pool_policy) ExactAssemblyScope() argument 304 Open(MacroAssemblerInterface* masm, size_t size, SizePolicy size_policy, PoolPolicy pool_policy) Open() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_sysfs.c | 246 loff_t offset, size_t size) in qlcnic_sysfs_validate_crb() 261 if ((size != crb_size) || (offset & (crb_size-1))) in qlcnic_sysfs_validate_crb() 269 loff_t offset, size_t size) in qlcnic_sysfs_read_crb() 275 ret = qlcnic_sysfs_validate_crb(adapter, offset, size); in qlcnic_sysfs_read_crb() 278 qlcnic_read_crb(adapter, buf, offset, size); in qlcnic_sysfs_read_crb() 279 qlcnic_swap32_buffer((u32 *)buf, size / sizeof(u32)); in qlcnic_sysfs_read_crb() 281 return size; in qlcnic_sysfs_read_crb() 286 loff_t offset, size_t size) in qlcnic_sysfs_write_crb() 292 ret = qlcnic_sysfs_validate_crb(adapter, offset, size); in qlcnic_sysfs_write_crb() 296 qlcnic_swap32_buffer((u32 *)buf, size / sizeo in qlcnic_sysfs_write_crb() 245 qlcnic_sysfs_validate_crb(struct qlcnic_adapter *adapter, loff_t offset, size_t size) qlcnic_sysfs_validate_crb() argument 267 qlcnic_sysfs_read_crb(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_sysfs_read_crb() argument 284 qlcnic_sysfs_write_crb(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_sysfs_write_crb() argument 301 qlcnic_sysfs_validate_mem(struct qlcnic_adapter *adapter, loff_t offset, size_t size) qlcnic_sysfs_validate_mem() argument 313 qlcnic_sysfs_read_mem(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_sysfs_read_mem() argument 335 qlcnic_sysfs_write_mem(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_sysfs_write_mem() argument 398 qlcnic_sysfs_write_pm_config(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_sysfs_write_pm_config() argument 448 qlcnic_sysfs_read_pm_config(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_sysfs_read_pm_config() argument 541 qlcnic_sysfs_write_esw_config(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_sysfs_write_esw_config() argument 625 qlcnic_sysfs_read_esw_config(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_sysfs_read_esw_config() argument 677 qlcnic_sysfs_write_npar_config(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_sysfs_write_npar_config() argument 724 qlcnic_sysfs_read_npar_config(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_sysfs_read_npar_config() argument 771 qlcnic_sysfs_get_port_stats(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_sysfs_get_port_stats() argument 806 qlcnic_sysfs_get_esw_stats(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_sysfs_get_esw_stats() argument 841 qlcnic_sysfs_clear_esw_stats(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_sysfs_clear_esw_stats() argument 870 qlcnic_sysfs_clear_port_stats(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_sysfs_clear_port_stats() argument 900 qlcnic_sysfs_read_pci_config(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_sysfs_read_pci_config() argument 940 qlcnic_83xx_sysfs_flash_read_handler(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_83xx_sysfs_flash_read_handler() argument 984 qlcnic_83xx_sysfs_flash_bulk_write(struct qlcnic_adapter *adapter, char *buf, loff_t offset, size_t size) qlcnic_83xx_sysfs_flash_bulk_write() argument 1053 qlcnic_83xx_sysfs_flash_write(struct qlcnic_adapter *adapter, char *buf, loff_t offset, size_t size) qlcnic_83xx_sysfs_flash_write() argument 1117 qlcnic_83xx_sysfs_flash_write_handler(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_83xx_sysfs_flash_write_handler() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_sysfs.c | 245 loff_t offset, size_t size) in qlcnic_sysfs_validate_crb() 260 if ((size != crb_size) || (offset & (crb_size-1))) in qlcnic_sysfs_validate_crb() 268 loff_t offset, size_t size) in qlcnic_sysfs_read_crb() 274 ret = qlcnic_sysfs_validate_crb(adapter, offset, size); in qlcnic_sysfs_read_crb() 277 qlcnic_read_crb(adapter, buf, offset, size); in qlcnic_sysfs_read_crb() 278 qlcnic_swap32_buffer((u32 *)buf, size / sizeof(u32)); in qlcnic_sysfs_read_crb() 280 return size; in qlcnic_sysfs_read_crb() 285 loff_t offset, size_t size) in qlcnic_sysfs_write_crb() 291 ret = qlcnic_sysfs_validate_crb(adapter, offset, size); in qlcnic_sysfs_write_crb() 295 qlcnic_swap32_buffer((u32 *)buf, size / sizeo in qlcnic_sysfs_write_crb() 244 qlcnic_sysfs_validate_crb(struct qlcnic_adapter *adapter, loff_t offset, size_t size) qlcnic_sysfs_validate_crb() argument 266 qlcnic_sysfs_read_crb(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_sysfs_read_crb() argument 283 qlcnic_sysfs_write_crb(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_sysfs_write_crb() argument 300 qlcnic_sysfs_validate_mem(struct qlcnic_adapter *adapter, loff_t offset, size_t size) qlcnic_sysfs_validate_mem() argument 312 qlcnic_sysfs_read_mem(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_sysfs_read_mem() argument 334 qlcnic_sysfs_write_mem(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_sysfs_write_mem() argument 397 qlcnic_sysfs_write_pm_config(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_sysfs_write_pm_config() argument 447 qlcnic_sysfs_read_pm_config(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_sysfs_read_pm_config() argument 540 qlcnic_sysfs_write_esw_config(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_sysfs_write_esw_config() argument 624 qlcnic_sysfs_read_esw_config(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_sysfs_read_esw_config() argument 676 qlcnic_sysfs_write_npar_config(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_sysfs_write_npar_config() argument 723 qlcnic_sysfs_read_npar_config(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_sysfs_read_npar_config() argument 770 qlcnic_sysfs_get_port_stats(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_sysfs_get_port_stats() argument 805 qlcnic_sysfs_get_esw_stats(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_sysfs_get_esw_stats() argument 840 qlcnic_sysfs_clear_esw_stats(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_sysfs_clear_esw_stats() argument 869 qlcnic_sysfs_clear_port_stats(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_sysfs_clear_port_stats() argument 899 qlcnic_sysfs_read_pci_config(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_sysfs_read_pci_config() argument 939 qlcnic_83xx_sysfs_flash_read_handler(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_83xx_sysfs_flash_read_handler() argument 983 qlcnic_83xx_sysfs_flash_bulk_write(struct qlcnic_adapter *adapter, char *buf, loff_t offset, size_t size) qlcnic_83xx_sysfs_flash_bulk_write() argument 1052 qlcnic_83xx_sysfs_flash_write(struct qlcnic_adapter *adapter, char *buf, loff_t offset, size_t size) qlcnic_83xx_sysfs_flash_write() argument 1116 qlcnic_83xx_sysfs_flash_write_handler(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) qlcnic_83xx_sysfs_flash_write_handler() argument [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | rtpenc.c | 152 av_log(s1, AV_LOG_ERROR, "Max packet size %u too low\n", s1->packet_size); in rtp_write_header() 250 av_log(s1, AV_LOG_ERROR, "Incorrect iLBC block size specified\n"); in rtp_write_header() 264 av_log(s1, AV_LOG_ERROR, "RTP max payload size too small for AMR\n"); in rtp_write_header() 338 av_log(s1, AV_LOG_TRACE, "rtp_send_data size=%d\n", len); in ff_rtp_send_data() 358 const uint8_t *buf1, int size, int sample_size_bits) in rtp_send_samples() 367 if ((sample_size_bits % 8) == 0 && ((8 * size) % sample_size_bits) != 0) in rtp_send_samples() 370 while (size > 0) { in rtp_send_samples() 372 len = FFMIN(max_packet_size, size); in rtp_send_samples() 378 size -= len; in rtp_send_samples() 387 const uint8_t *buf1, int size) in rtp_send_mpegaudio() 357 rtp_send_samples(AVFormatContext *s1, const uint8_t *buf1, int size, int sample_size_bits) rtp_send_samples() argument 386 rtp_send_mpegaudio(AVFormatContext *s1, const uint8_t *buf1, int size) rtp_send_mpegaudio() argument 438 rtp_send_raw(AVFormatContext *s1, const uint8_t *buf1, int size) rtp_send_raw() argument 460 rtp_send_mpegts_raw(AVFormatContext *s1, const uint8_t *buf1, int size) rtp_send_mpegts_raw() argument 484 rtp_send_ilbc(AVFormatContext *s1, const uint8_t *buf, int size) rtp_send_ilbc() argument 524 int size= pkt->size; rtp_write_packet() local [all...] |
H A D | fitsdec.c | 71 * It also stores the header in the avbuf and stores the size of data part in data_size 76 * @param data_size to store the size of data part 84 int64_t buf_size = 0, size = 0, t; in is_image() local 111 size = 1; in is_image() 113 size = header->naxisn[0]; in is_image() 119 if(size && header->naxisn[i] > UINT64_MAX / size) in is_image() 121 size *= header->naxisn[i]; in is_image() 124 if(header->pcount > UINT64_MAX - size) in is_image() 126 size in is_image() 147 uint64_t size; fits_read_packet() local [all...] |
/kernel/linux/linux-6.6/arch/arm/mm/ |
H A D | ioremap.c | 50 size_t size, unsigned int mtype) in find_static_vm_paddr() 63 paddr + size - 1 > vm->phys_addr + vm->size - 1) in find_static_vm_paddr() 84 if (vm->addr <= vaddr && vm->addr + vm->size > vaddr) in find_static_vm_vaddr() 146 * mask the size back to 1MB aligned or we will overflow in the loop below. 148 static void unmap_area_sections(unsigned long virt, unsigned long size) in unmap_area_sections() argument 150 unsigned long addr = virt, end = virt + (size & ~(SZ_1M - 1)); in unmap_area_sections() 189 size_t size, const struct mem_type *type) in remap_area_sections() 191 unsigned long addr = virt, end = virt + size; in remap_area_sections() 198 unmap_area_sections(virt, size); in remap_area_sections() 49 find_static_vm_paddr(phys_addr_t paddr, size_t size, unsigned int mtype) find_static_vm_paddr() argument 188 remap_area_sections(unsigned long virt, unsigned long pfn, size_t size, const struct mem_type *type) remap_area_sections() argument 215 remap_area_supersections(unsigned long virt, unsigned long pfn, size_t size, const struct mem_type *type) remap_area_supersections() argument 249 __arm_ioremap_pfn_caller(unsigned long pfn, unsigned long offset, size_t size, unsigned int mtype, void *caller) __arm_ioremap_pfn_caller() argument 327 __arm_ioremap_caller(phys_addr_t phys_addr, size_t size, unsigned int mtype, void *caller) __arm_ioremap_caller() argument 355 __arm_ioremap_pfn(unsigned long pfn, unsigned long offset, size_t size, unsigned int mtype) __arm_ioremap_pfn() argument 367 ioremap(resource_size_t res_cookie, size_t size) ioremap() argument 374 ioremap_cache(resource_size_t res_cookie, size_t size) ioremap_cache() argument 381 ioremap_wc(resource_size_t res_cookie, size_t size) ioremap_wc() argument 396 __arm_ioremap_exec(phys_addr_t phys_addr, size_t size, bool cached) __arm_ioremap_exec() argument 409 __arm_iomem_set_ro(void __iomem *ptr, size_t size) __arm_iomem_set_ro() argument 414 arch_memremap_wb(phys_addr_t phys_addr, size_t size) arch_memremap_wb() argument 474 pci_remap_cfgspace(resource_size_t res_cookie, size_t size) pci_remap_cfgspace() argument 490 arch_memremap_can_ram_remap(resource_size_t offset, size_t size, unsigned long flags) arch_memremap_can_ram_remap() argument [all...] |
/third_party/mesa3d/src/mesa/main/ |
H A D | format_parser.py | 47 def __init__(self, type, norm, size): 50 self.size = size 60 s += str(self.size) 67 return self.type == other.type and self.norm == other.norm and self.size == other.size 79 return (1 << self.size) - 1 81 return (1 << (self.size - 1)) - 1 93 return -(1 << (self.size - 1)) 99 return (1 << self.size) [all...] |
/kernel/linux/linux-6.6/kernel/dma/ |
H A D | coherent.c | 17 int size; member 39 dma_addr_t device_addr, size_t size, bool use_dma_pfn_offset) in dma_init_coherent_memory() 42 int pages = size >> PAGE_SHIFT; in dma_init_coherent_memory() 45 if (!size) in dma_init_coherent_memory() 48 mem_base = memremap(phys_addr, size, MEMREMAP_WC); in dma_init_coherent_memory() 62 dma_mem->size = pages; in dma_init_coherent_memory() 72 pr_err("Reserved memory: failed to init DMA memory pool at %pa, size %zd MiB\n", in dma_init_coherent_memory() 73 &phys_addr, size / SZ_1M); in dma_init_coherent_memory() 112 * size is the size o 38 dma_init_coherent_memory(phys_addr_t phys_addr, dma_addr_t device_addr, size_t size, bool use_dma_pfn_offset) dma_init_coherent_memory() argument 117 dma_declare_coherent_memory(struct device *dev, phys_addr_t phys_addr, dma_addr_t device_addr, size_t size) dma_declare_coherent_memory() argument 141 __dma_alloc_from_coherent(struct device *dev, struct dma_coherent_mem *mem, ssize_t size, dma_addr_t *dma_handle) __dma_alloc_from_coherent() argument 187 dma_alloc_from_dev_coherent(struct device *dev, ssize_t size, dma_addr_t *dma_handle, void **ret) dma_alloc_from_dev_coherent() argument 234 __dma_mmap_from_coherent(struct dma_coherent_mem *mem, struct vm_area_struct *vma, void *vaddr, size_t size, int *ret) __dma_mmap_from_coherent() argument 271 dma_mmap_from_dev_coherent(struct device *dev, struct vm_area_struct *vma, void *vaddr, size_t size, int *ret) dma_mmap_from_dev_coherent() argument 282 dma_alloc_from_global_coherent(struct device *dev, ssize_t size, dma_addr_t *dma_handle) dma_alloc_from_global_coherent() argument 301 dma_mmap_from_global_coherent(struct vm_area_struct *vma, void *vaddr, size_t size, int *ret) dma_mmap_from_global_coherent() argument 311 dma_init_global_coherent(phys_addr_t phys_addr, size_t size) dma_init_global_coherent() argument [all...] |
/third_party/lzma/CPP/7zip/Common/ |
H A D | StreamObjects.cpp | 9 Z7_COM7F_IMF(CBufferInStream::Read(void *data, UInt32 size, UInt32 *processedSize))
in Read() argument 13 if (size == 0)
in Read() 18 if (rem > size)
in Read() 19 rem = (size_t)size;
in Read() 44 Z7_COM7F_IMF(CBufInStream::Read(void *data, UInt32 size, UInt32 *processedSize))
in Read() argument 48 if (size == 0)
in Read() 53 if (rem > size)
in Read() 54 rem = (size_t)size;
in Read() 79 void Create_BufInStream_WithReference(const void *data, size_t size, IUnknown *ref, ISequentialInStream **stream)
in Create_BufInStream_WithReference() argument 84 inStreamSpec->Init((const Byte *)data, size, re in Create_BufInStream_WithReference() 88 Create_BufInStream_WithNewBuffer(const void *data, size_t size, ISequentialInStream **stream) Create_BufInStream_WithNewBuffer() argument 135 Write(const void *data, UInt32 size, UInt32 *processedSize) Write() argument 151 Write(const void *data, UInt32 size, UInt32 *processedSize) Write() argument 166 Write(const void *data, UInt32 size, UInt32 *processedSize) Write() argument 212 Init(UInt64 size) Init() argument 221 Read(void *data, UInt32 size, UInt32 *processedSize) Read() argument [all...] |
/third_party/lzma/C/ |
H A D | XzIn.c | 29 #define READ_VARINT_AND_CHECK(buf, pos, size, res) \
30 { unsigned s = Xz_ReadVarInt(buf + pos, size - pos, res); \
60 #define ADD_SIZE_CHECK(size, val) \
61 { UInt64 newSize = size + (val); if (newSize < size) return XZ_SIZE_OVERFLOW; size = newSize; }
65 UInt64 size = 0;
in Xz_GetUnpackSize() local 69 ADD_SIZE_CHECK(size, p->blocks[i].unpackSize)
in Xz_GetUnpackSize() 71 return size;
in Xz_GetUnpackSize() 76 UInt64 size in Xz_GetPackSize() local 92 Xz_ReadIndex2(CXzStream *p, const Byte *buf, size_t size, ISzAllocPtr alloc) Xz_ReadIndex2() argument 139 size_t size; Xz_ReadIndex() local 156 LookInStream_SeekRead_ForArc(ILookInStreamPtr stream, UInt64 offset, void *buf, size_t size) LookInStream_SeekRead_ForArc() argument 285 UInt64 size = 0; Xzs_GetUnpackSize() local [all...] |
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
H A D | si_test_dma_perf.c | 68 printf("DMA rate is in MB/s for each size. Slow cases are skipped and print 0.\n"); in si_test_dma_perf() 70 for (unsigned size = MIN_SIZE; size <= MAX_SIZE; size <<= SIZE_SHIFT) { in si_test_dma_perf() 71 if (size >= 1024) in si_test_dma_perf() 72 printf("%6uKB,", size / 1024); in si_test_dma_perf() 74 printf(" %6uB,", size); in si_test_dma_perf() 78 /* results[log2(size)][placement][method][] */ in si_test_dma_perf() 95 for (unsigned size = MIN_SIZE; size < in si_test_dma_perf() 418 unsigned size = method_max_size[i]; si_test_dma_perf() local [all...] |
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
H A D | floppy.h | 43 #define fd_dma_mem_alloc(size) SW._dma_mem_alloc(size) 44 #define fd_dma_setup(addr, size, mode, io) SW._dma_setup(addr, size, mode, io) 155 static unsigned long dma_mem_alloc(unsigned long size) in dma_mem_alloc() argument 157 return __get_dma_pages(GFP_KERNEL|__GFP_NORETRY, get_order(size)); in dma_mem_alloc() 161 static unsigned long vdma_mem_alloc(unsigned long size) in vdma_mem_alloc() argument 163 return (unsigned long)vmalloc(size); in vdma_mem_alloc() 167 #define nodma_mem_alloc(size) vdma_mem_alloc(size) 169 _fd_dma_mem_free(unsigned long addr, unsigned long size) _fd_dma_mem_free() argument 179 _fd_chose_dma_mode(char *addr, unsigned long size) _fd_chose_dma_mode() argument 196 vdma_dma_setup(char *addr, unsigned long size, int mode, int io) vdma_dma_setup() argument 207 hard_dma_setup(char *addr, unsigned long size, int mode, int io) hard_dma_setup() argument [all...] |
/kernel/linux/linux-5.10/drivers/s390/char/ |
H A D | raw3270.h | 103 size_t size; /* size of output buffer. */ member 112 struct raw3270_request *raw3270_request_alloc(size_t size); 211 unsigned long size; member 220 unsigned long size; in alloc_string() local 222 size = (len + 7L) & -8L; in alloc_string() 224 if (cs->size < size) in alloc_string() 226 if (cs->size > size in alloc_string() 276 add_string_memory(struct list_head *free_list, void *mem, unsigned long size) add_string_memory() argument [all...] |
/kernel/linux/linux-6.6/arch/x86/include/asm/ |
H A D | floppy.h | 43 #define fd_dma_mem_alloc(size) SW._dma_mem_alloc(size) 44 #define fd_dma_setup(addr, size, mode, io) SW._dma_setup(addr, size, mode, io) 154 static unsigned long dma_mem_alloc(unsigned long size) in dma_mem_alloc() argument 156 return __get_dma_pages(GFP_KERNEL|__GFP_NORETRY, get_order(size)); in dma_mem_alloc() 160 static unsigned long vdma_mem_alloc(unsigned long size) in vdma_mem_alloc() argument 162 return (unsigned long)vmalloc(size); in vdma_mem_alloc() 166 #define nodma_mem_alloc(size) vdma_mem_alloc(size) 168 _fd_dma_mem_free(unsigned long addr, unsigned long size) _fd_dma_mem_free() argument 178 _fd_chose_dma_mode(char *addr, unsigned long size) _fd_chose_dma_mode() argument 195 vdma_dma_setup(char *addr, unsigned long size, int mode, int io) vdma_dma_setup() argument 206 hard_dma_setup(char *addr, unsigned long size, int mode, int io) hard_dma_setup() argument [all...] |
/kernel/linux/linux-6.6/tools/testing/memblock/tests/ |
H A D | alloc_helpers_api.c | 22 phys_addr_t size = SZ_16; in alloc_from_simple_generic_check() local 30 allocated_ptr = memblock_alloc_from(size, SMP_CACHE_BYTES, min_addr); in alloc_from_simple_generic_check() 33 ASSERT_MEM_EQ(allocated_ptr, 0, size); in alloc_from_simple_generic_check() 35 ASSERT_EQ(rgn->size, size); in alloc_from_simple_generic_check() 39 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_from_simple_generic_check() 65 phys_addr_t size = SZ_32; in alloc_from_misaligned_generic_check() local 74 allocated_ptr = memblock_alloc_from(size, SMP_CACHE_BYTES, min_addr); in alloc_from_misaligned_generic_check() 77 ASSERT_MEM_EQ(allocated_ptr, 0, size); in alloc_from_misaligned_generic_check() 79 ASSERT_EQ(rgn->size, siz in alloc_from_misaligned_generic_check() 112 phys_addr_t size = SZ_32; alloc_from_top_down_high_addr_check() local 238 phys_addr_t size = SZ_32; alloc_from_bottom_up_high_addr_check() local [all...] |
/kernel/linux/linux-6.6/tools/testing/radix-tree/ |
H A D | linux.c | 21 unsigned int size; member 38 return cachep->size * cachep->nr_allocated; in kmem_cache_get_alloc() 79 posix_memalign(&p, cachep->align, cachep->size); in kmem_cache_alloc_lru() 81 p = malloc(cachep->size); in kmem_cache_alloc_lru() 85 memset(p, 0, cachep->size); in kmem_cache_alloc_lru() 104 memset(objp, POISON_FREE, cachep->size); in kmem_cache_free_locked() 121 void kmem_cache_free_bulk(struct kmem_cache *cachep, size_t size, void **list) in kmem_cache_free_bulk() argument 124 pr_debug("Bulk free %p[0-%lu]\n", list, size - 1); in kmem_cache_free_bulk() 127 for (int i = 0; i < size; i++) in kmem_cache_free_bulk() 136 int kmem_cache_alloc_bulk(struct kmem_cache *cachep, gfp_t gfp, size_t size, in kmem_cache_alloc_bulk() argument 191 kmem_cache_create(const char *name, unsigned int size, unsigned int align, unsigned int flags, void (*ctor)(void *)) kmem_cache_create() argument [all...] |
/third_party/libuv/src/unix/ |
H A D | freebsd.c | 59 int uv_exepath(char* buffer, size_t* size) { in uv_exepath() argument 64 if (buffer == NULL || size == NULL || *size == 0) in uv_exepath() 78 *size -= 1; in uv_exepath() 80 if (*size > abspath_size) in uv_exepath() 81 *size = abspath_size; in uv_exepath() 83 memcpy(buffer, abspath, *size); in uv_exepath() 84 buffer[*size] = '\0'; in uv_exepath() 91 size_t size = sizeof(freecount); in uv_get_free_memory() local 93 if (sysctlbyname("vm.stats.vm.v_free_count", &freecount, &size, NUL in uv_get_free_memory() 105 size_t size = sizeof(info); uv_get_total_memory() local 126 size_t size = sizeof(info); uv_loadavg() local 188 size_t size; uv_cpu_info() local [all...] |
/third_party/node/deps/v8/src/heap/cppgc/ |
H A D | object-allocator.cc | 60 void AddToFreeList(NormalPageSpace& space, Address start, size_t size) { in AddToFreeList() argument 63 space.free_list().Add({start, size}); in AddToFreeList() 75 if (lab.size()) { in ReplaceLinearAllocationBuffer() 76 AddToFreeList(space, lab.start(), lab.size()); in ReplaceLinearAllocationBuffer() 77 stats_collector.NotifyExplicitFree(lab.size()); in ReplaceLinearAllocationBuffer() 93 StatsCollector& stats_collector, size_t size, in AllocateLargeObject() 95 LargePage* page = LargePage::Create(page_backend, space, size); in AllocateLargeObject() 101 stats_collector.NotifyAllocation(size); in AllocateLargeObject() 119 void* ObjectAllocator::OutOfLineAllocate(NormalPageSpace& space, size_t size, in OutOfLineAllocate() argument 122 void* memory = OutOfLineAllocateImpl(space, size, alignmen in OutOfLineAllocate() 92 AllocateLargeObject(PageBackend& page_backend, LargePageSpace& space, StatsCollector& stats_collector, size_t size, GCInfoIndex gcinfo) AllocateLargeObject() argument 137 OutOfLineAllocateImpl(NormalPageSpace& space, size_t size, AlignVal alignment, GCInfoIndex gcinfo) OutOfLineAllocateImpl() argument 173 RefillLinearAllocationBuffer(NormalPageSpace& space, size_t size) RefillLinearAllocationBuffer() argument 207 RefillLinearAllocationBufferFromFreeList( NormalPageSpace& space, size_t size) RefillLinearAllocationBufferFromFreeList() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
H A D | d3d12_video_array_of_textures_dpb_manager.cpp | 125 assert(m_D3D12DPB.pResources.size() == m_D3D12DPB.pSubresources.size()); in assign_reference_frame() 126 assert(m_D3D12DPB.pResources.size() == m_D3D12DPB.pHeaps.size()); in assign_reference_frame() 128 assert (dpbPosition < m_D3D12DPB.pResources.size()); in assign_reference_frame() 140 assert(m_D3D12DPB.pResources.size() == m_D3D12DPB.pSubresources.size()); 141 assert(m_D3D12DPB.pResources.size() == m_D3D12DPB.pHeaps.size()); 143 if (dpbPosition > m_D3D12DPB.pResources.size()) { [all...] |
/third_party/node/deps/uv/src/unix/ |
H A D | freebsd.c | 59 int uv_exepath(char* buffer, size_t* size) { in uv_exepath() argument 64 if (buffer == NULL || size == NULL || *size == 0) in uv_exepath() 78 *size -= 1; in uv_exepath() 80 if (*size > abspath_size) in uv_exepath() 81 *size = abspath_size; in uv_exepath() 83 memcpy(buffer, abspath, *size); in uv_exepath() 84 buffer[*size] = '\0'; in uv_exepath() 91 size_t size = sizeof(freecount); in uv_get_free_memory() local 93 if (sysctlbyname("vm.stats.vm.v_free_count", &freecount, &size, NUL in uv_get_free_memory() 105 size_t size = sizeof(info); uv_get_total_memory() local 121 size_t size = sizeof(info); uv_loadavg() local 183 size_t size; uv_cpu_info() local [all...] |
/third_party/skia/src/gpu/d3d/ |
H A D | GrD3DBuffer.cpp | 20 size_t size, in make_d3d_buffer() 48 bufferDesc.Width = size; in make_d3d_buffer() 64 sk_sp<GrD3DBuffer> GrD3DBuffer::Make(GrD3DGpu* gpu, size_t size, GrGpuBufferType intendedType, in Make() argument 70 gr_cp<ID3D12Resource> resource = make_d3d_buffer(gpu, size, intendedType, accessPattern, in Make() 76 return sk_sp<GrD3DBuffer>(new GrD3DBuffer(gpu, size, intendedType, accessPattern, in Make() 81 GrD3DBuffer::GrD3DBuffer(GrD3DGpu* gpu, size_t size, GrGpuBufferType intendedType, in GrD3DBuffer() argument 84 : INHERITED(gpu, size, intendedType, accessPattern) in GrD3DBuffer() 121 this->internalUnmap(this->size()); in releaseResource() 142 this->internalMap(this->size()); in onMap() 146 this->internalUnmap(this->size()); in onUnmap() 19 make_d3d_buffer(GrD3DGpu* gpu, size_t size, GrGpuBufferType intendedType, GrAccessPattern accessPattern, D3D12_RESOURCE_STATES* resourceState, sk_sp<GrD3DAlloc>* alloc) make_d3d_buffer() argument 149 onUpdateData(const void* src, size_t size) onUpdateData() argument 173 internalMap(size_t size) internalMap() argument 204 internalUnmap(size_t size) internalUnmap() argument 221 sk_ref_sp<GrD3DBuffer>(this), 0, fStagingBuffer, fStagingOffset, size); internalUnmap() local [all...] |
/third_party/qrcodegen/java-fast/io/nayuki/fastqrcodegen/ |
H A D | QrTemplate.java | 37 private final int size; // Derived from version. field in QrTemplate 53 size = version * 4 + 17; in QrTemplate() 54 template = new int[(size * size + 31) / 32]; in QrTemplate() 67 for (int i = 0; i < size; i++) { in drawFunctionPatterns() 74 drawFinderPattern(size - 4, 3); in drawFunctionPatterns() 75 drawFinderPattern(3, size - 4); in drawFunctionPatterns() 107 darkenFunctionModule(size - 1 - i, 8, 0); in drawDummyFormatBits() 109 darkenFunctionModule(8, size - 15 + i, 0); in drawDummyFormatBits() 110 darkenFunctionModule(8, size in drawDummyFormatBits() [all...] |
/kernel/linux/linux-5.10/arch/powerpc/boot/ |
H A D | simple_alloc.c | 24 unsigned long size; member 33 * First time an entry is used, its base and size are set. 34 * An entry can be freed and re-malloc'd but its base & size don't change. 37 static void *simple_malloc(unsigned long size) in simple_malloc() argument 42 if (size == 0) in simple_malloc() 45 size = _ALIGN_UP(size, alloc_min); in simple_malloc() 49 if (size <= space_left) { in simple_malloc() 51 p->size = size; in simple_malloc() 97 simple_realloc(void *ptr, unsigned long size) simple_realloc() argument [all...] |
/kernel/linux/linux-6.6/arch/powerpc/boot/ |
H A D | simple_alloc.c | 22 unsigned long size; member 31 * First time an entry is used, its base and size are set. 32 * An entry can be freed and re-malloc'd but its base & size don't change. 35 static void *simple_malloc(unsigned long size) in simple_malloc() argument 40 if (size == 0) in simple_malloc() 43 size = _ALIGN_UP(size, alloc_min); in simple_malloc() 47 if (size <= space_left) { in simple_malloc() 49 p->size = size; in simple_malloc() 95 simple_realloc(void *ptr, unsigned long size) simple_realloc() argument [all...] |
/kernel/linux/linux-5.10/sound/pci/asihpi/ |
H A D | hpimsginit.c | 17 /* The actual message size for each object type */ 19 /* The actual response size for each object type */ 30 u16 size; in hpi_init_message() local 34 size = msg_size[object]; in hpi_init_message() 36 size = sizeof(*phm); in hpi_init_message() 39 memset(phm, 0, size); in hpi_init_message() 40 phm->size = size; in hpi_init_message() 59 u16 size; in hpi_init_response() local 63 size in hpi_init_response() 88 hpi_init_messageV1(struct hpi_message_header *phm, u16 size, u16 object, u16 function) hpi_init_messageV1() argument 102 hpi_init_responseV1(struct hpi_response_header *phr, u16 size, u16 object, u16 function) hpi_init_responseV1() argument [all...] |