Home
last modified time | relevance | path

Searched refs:sz (Results 1 – 25 of 56) sorted by relevance

123

/arch/arm/include/asm/
Dbitops.h210 #define find_first_zero_bit(p,sz) _find_first_zero_bit_le(p,sz) argument
211 #define find_next_zero_bit(p,sz,off) _find_next_zero_bit_le(p,sz,off) argument
212 #define find_first_bit(p,sz) _find_first_bit_le(p,sz) argument
213 #define find_next_bit(p,sz,off) _find_next_bit_le(p,sz,off) argument
228 #define find_first_zero_bit(p,sz) _find_first_zero_bit_be(p,sz) argument
229 #define find_next_zero_bit(p,sz,off) _find_next_zero_bit_be(p,sz,off) argument
230 #define find_first_bit(p,sz) _find_first_bit_be(p,sz) argument
231 #define find_next_bit(p,sz,off) _find_next_bit_be(p,sz,off) argument
320 #define ext2_find_first_zero_bit(p,sz) \ argument
321 _find_first_zero_bit_le(p,sz)
[all …]
Dcpu-multi32.h67 #define cpu_dcache_clean_area(addr,sz) processor.dcache_clean_area(addr,sz) argument
/arch/arm/mach-davinci/include/mach/
Dmemory.h42 unsigned int sz = (128<<20) >> PAGE_SHIFT; in __arch_adjust_zones() local
45 sz = 0; in __arch_adjust_zones()
47 size[1] = size[0] - sz; in __arch_adjust_zones()
48 size[0] = sz; in __arch_adjust_zones()
/arch/x86/boot/tools/
Dbuild.c138 unsigned int i, sz, setup_sectors; in main() local
212 sz = sb.st_size; in main()
213 fprintf (stderr, "System is %d kB\n", (sz+1023)/1024); in main()
214 kernel = mmap(NULL, sz, PROT_READ, MAP_SHARED, fd, 0); in main()
218 sys_size = (sz + 15 + 4) / 16; in main()
234 crc = partial_crc32(kernel, sz, crc); in main()
235 if (fwrite(kernel, 1, sz, stdout) != sz) in main()
239 while (sz++ < (sys_size*16) - 4) { in main()
/arch/mn10300/boot/tools/
Dbuild.c71 unsigned int i, c, sz, setup_sectors; in main() local
148 sz = sb.st_size; in main()
149 fprintf(stderr, "System is %d kB\n", sz / 1024); in main()
150 sys_size = (sz + 15) / 16; in main()
159 while (sz > 0) { in main()
162 l = (sz > sizeof(buf)) ? sizeof(buf) : sz; in main()
172 sz -= l; in main()
/arch/ia64/sn/kernel/sn2/
Dsn_hwperf.c60 u64 sz; in sn_hwperf_enum_objects() local
68 sz = sn_hwperf_obj_cnt * sizeof(struct sn_hwperf_object_info); in sn_hwperf_enum_objects()
69 objbuf = vmalloc(sz); in sn_hwperf_enum_objects()
71 printk("sn_hwperf_enum_objects: vmalloc(%d) failed\n", (int)sz); in sn_hwperf_enum_objects()
77 0, sz, (u64) objbuf, 0, 0, NULL); in sn_hwperf_enum_objects()
189 size_t sz; in print_pci_topology() local
192 for (sz = PAGE_SIZE; sz < 16 * PAGE_SIZE; sz += PAGE_SIZE) { in print_pci_topology()
193 if (!(p = kmalloc(sz, GFP_KERNEL))) in print_pci_topology()
195 e = ia64_sn_ioif_get_pci_topology(__pa(p), sz); in print_pci_topology()
239 int sz, i, j; in sn_hwperf_get_nearest_node_objdata() local
[all …]
/arch/arm/mach-ebsa110/include/mach/
Dio.h76 extern void insb(unsigned int port, void *buf, int sz);
77 extern void insw(unsigned int port, void *buf, int sz);
78 extern void insl(unsigned int port, void *buf, int sz);
80 extern void outsb(unsigned int port, const void *buf, int sz);
81 extern void outsw(unsigned int port, const void *buf, int sz);
82 extern void outsl(unsigned int port, const void *buf, int sz);
/arch/powerpc/platforms/cell/spufs/
Dcoredump.c91 int i, sz, total = 0; in spufs_ctx_note_size() local
97 sz = spufs_coredump_read[i].size; in spufs_ctx_note_size()
103 total += roundup(sz, 4); in spufs_ctx_note_size()
171 int sz, rc, nread, total = 0; in spufs_arch_write_note() local
182 sz = spufs_coredump_read[i].size; in spufs_arch_write_note()
186 en.n_descsz = sz; in spufs_arch_write_note()
209 } while (nread == bufsz && total < sz); in spufs_arch_write_note()
216 rc = spufs_dump_align(file, buf, roundup(*foffset - total + sz, 4), in spufs_arch_write_note()
/arch/arm/mach-s3c2410/include/mach/
Dio.h35 #define DECLARE_DYN_OUT(sz,fnsuffix,instr) \ argument
50 #define DECLARE_DYN_IN(sz,fnsuffix,instr) \ argument
51 static inline unsigned sz __in##fnsuffix (unsigned int port) \
62 return (unsigned sz)value; \
70 #define DECLARE_IO(sz,fnsuffix,instr) \ argument
71 DECLARE_DYN_IN(sz,fnsuffix,instr) \
72 DECLARE_DYN_OUT(sz,fnsuffix,instr)
/arch/cris/arch-v10/boot/tools/
Dbuild.c108 int i,c,id,sz,tmp_int; in main() local
246 sz = N_SYMOFF(*ex) - GCC_HEADER + 4; in main()
252 sz = sb.st_size; in main()
253 fprintf (stderr, "System is %d kB\n", sz/1024); in main()
255 sys_size = (sz + 15) / 16; in main()
258 while (sz > 0) { in main()
261 l = sz; in main()
273 sz -= l; in main()
/arch/sparc/include/asm/
Ddma.h112 #define mmu_get_scsi_sgl(dev,sg,sz) BTFIXUP_CALL(mmu_get_scsi_sgl)(dev,sg,sz) argument
114 #define mmu_release_scsi_sgl(dev,sg,sz) BTFIXUP_CALL(mmu_release_scsi_sgl)(dev,sg,sz) argument
Dio_64.h406 #define sbus_memset_io(d,c,sz) _sbus_memset_io(d,c,sz) argument
419 #define memset_io(d,c,sz) _memset_io(d,c,sz) argument
433 #define memcpy_fromio(d,s,sz) _memcpy_fromio(d,s,sz) argument
448 #define memcpy_toio(d,s,sz) _memcpy_toio(d,s,sz) argument
Dio_32.h208 #define memset_io(d,c,sz) _memset_io(d,c,sz) argument
222 #define memcpy_fromio(d,s,sz) _memcpy_fromio(d,s,sz) argument
237 #define memcpy_toio(d,s,sz) _memcpy_toio(d,s,sz) argument
Dopenprom.h30 char * (*v2_dumb_mem_alloc)(char *va, unsigned sz);
31 void (*v2_dumb_mem_free)(char *va, unsigned sz);
34 char * (*v2_dumb_mmap)(char *virta, int which_io, unsigned paddr, unsigned sz);
/arch/sparc/mm/
Diommu.c241 static void iommu_get_scsi_sgl_noflush(struct device *dev, struct scatterlist *sg, int sz) in iommu_get_scsi_sgl_noflush() argument
245 while (sz != 0) { in iommu_get_scsi_sgl_noflush()
246 --sz; in iommu_get_scsi_sgl_noflush()
254 static void iommu_get_scsi_sgl_gflush(struct device *dev, struct scatterlist *sg, int sz) in iommu_get_scsi_sgl_gflush() argument
259 while (sz != 0) { in iommu_get_scsi_sgl_gflush()
260 --sz; in iommu_get_scsi_sgl_gflush()
268 static void iommu_get_scsi_sgl_pflush(struct device *dev, struct scatterlist *sg, int sz) in iommu_get_scsi_sgl_pflush() argument
273 while(sz != 0) { in iommu_get_scsi_sgl_pflush()
274 --sz; in iommu_get_scsi_sgl_pflush()
325 static void iommu_release_scsi_sgl(struct device *dev, struct scatterlist *sg, int sz) in iommu_release_scsi_sgl() argument
[all …]
Dio-unit.c150 static void iounit_get_scsi_sgl(struct device *dev, struct scatterlist *sg, int sz) in iounit_get_scsi_sgl() argument
157 while (sz != 0) { in iounit_get_scsi_sgl()
158 --sz; in iounit_get_scsi_sgl()
180 static void iounit_release_scsi_sgl(struct device *dev, struct scatterlist *sg, int sz) in iounit_release_scsi_sgl() argument
187 while (sz != 0) { in iounit_release_scsi_sgl()
188 --sz; in iounit_release_scsi_sgl()
/arch/arm/mach-pxa/
Dcm-x2xx-pci.c42 unsigned int sz = SZ_64M >> PAGE_SHIFT; in cmx2xx_pci_adjust_zones() local
50 if (node || (zone_size[0] <= sz)) in cmx2xx_pci_adjust_zones()
53 zone_size[1] = zone_size[0] - sz; in cmx2xx_pci_adjust_zones()
54 zone_size[0] = sz; in cmx2xx_pci_adjust_zones()
/arch/arm/mach-rpc/include/mach/
Dio.h71 #define DECLARE_DYN_IN(sz,fnsuffix,instr) \ argument
72 static inline unsigned sz __in##fnsuffix (unsigned int port) \
83 return (unsigned sz)value; \
96 #define DECLARE_IO(sz,fnsuffix,instr) \ argument
97 DECLARE_DYN_IN(sz,fnsuffix,instr)
/arch/powerpc/mm/
Dhugetlbpage.c203 unsigned long sz; in huge_pte_offset() local
207 sz = ((1UL) << shift); in huge_pte_offset()
208 hstate = size_to_hstate(sz); in huge_pte_offset()
227 unsigned long addr, unsigned long sz) in huge_pte_alloc() argument
235 hstate = size_to_hstate(sz); in huge_pte_alloc()
448 unsigned long sz = ((1UL) << shift); in set_huge_pte_at() local
449 struct hstate *hstate = size_to_hstate(sz); in set_huge_pte_at()
477 unsigned long sz = ((1UL) << shift); in follow_huge_addr() local
478 page += (address % sz) / PAGE_SIZE; in follow_huge_addr()
526 pte_t pte, int trap, unsigned long sz) in hash_huge_page_do_lazy_icache() argument
[all …]
/arch/sparc/kernel/
Diommu.c179 unsigned long i, order, sz, num_tsb_entries; in iommu_table_init() local
191 sz = num_tsb_entries / 8; in iommu_table_init()
192 sz = (sz + 7UL) & ~7UL; in iommu_table_init()
193 iommu->arena.map = kmalloc_node(sz, GFP_KERNEL, numa_node); in iommu_table_init()
198 memset(iommu->arena.map, 0, sz); in iommu_table_init()
256 int sz = IOMMU_NUM_CTXS - lowest; in iommu_alloc_ctx() local
257 int n = find_next_zero_bit(iommu->ctx_bitmap, sz, lowest); in iommu_alloc_ctx()
259 if (unlikely(n == sz)) { in iommu_alloc_ctx()
354 static dma_addr_t dma_4u_map_single(struct device *dev, void *ptr, size_t sz, in dma_4u_map_single() argument
372 npages = IO_PAGE_ALIGN(oaddr + sz) - (oaddr & IO_PAGE_MASK); in dma_4u_map_single()
[all …]
Dpci_sun4v.c233 static dma_addr_t dma_4v_map_single(struct device *dev, void *ptr, size_t sz, in dma_4v_map_single() argument
249 npages = IO_PAGE_ALIGN(oaddr + sz) - (oaddr & IO_PAGE_MASK); in dma_4v_map_single()
298 size_t sz, enum dma_data_direction direction) in dma_4v_unmap_single() argument
316 npages = IO_PAGE_ALIGN(bus_addr + sz) - (bus_addr & IO_PAGE_MASK); in dma_4v_unmap_single()
524 dma_addr_t bus_addr, size_t sz, in dma_4v_sync_single_for_cpu() argument
594 unsigned long num_tsb_entries, sz, tsbsize; in pci_sun4v_iommu_init() local
621 sz = (num_tsb_entries + 7) / 8; in pci_sun4v_iommu_init()
622 sz = (sz + 7UL) & ~7UL; in pci_sun4v_iommu_init()
623 iommu->arena.map = kzalloc(sz, GFP_KERNEL); in pci_sun4v_iommu_init()
630 sz = probe_existing_entries(pbm, iommu); in pci_sun4v_iommu_init()
[all …]
/arch/powerpc/kernel/
Dprom.c124 u32 sz = *((u32 *)p); in of_scan_flat_dt() local
127 p = _ALIGN(p, sz >= 8 ? 8 : 4); in of_scan_flat_dt()
128 p += sz; in of_scan_flat_dt()
179 u32 sz, noff; in of_get_flat_dt_prop() local
188 sz = *((u32 *)p); in of_get_flat_dt_prop()
192 p = _ALIGN(p, sz >= 8 ? 8 : 4); in of_get_flat_dt_prop()
202 *size = sz; in of_get_flat_dt_prop()
205 p += sz; in of_get_flat_dt_prop()
327 u32 sz, noff; in unflatten_dt_node() local
338 sz = *((u32 *)(*p)); in unflatten_dt_node()
[all …]
/arch/arm/common/
Ddmabounce.c374 unsigned long off, size_t sz, enum dma_data_direction dir) in dmabounce_sync_for_cpu() argument
379 __func__, addr, off, sz, dir); in dmabounce_sync_for_cpu()
395 __func__, buf->safe + off, buf->ptr + off, sz); in dmabounce_sync_for_cpu()
396 memcpy(buf->ptr + off, buf->safe + off, sz); in dmabounce_sync_for_cpu()
403 unsigned long off, size_t sz, enum dma_data_direction dir) in dmabounce_sync_for_device() argument
408 __func__, addr, off, sz, dir); in dmabounce_sync_for_device()
424 __func__,buf->ptr + off, buf->safe + off, sz); in dmabounce_sync_for_device()
425 memcpy(buf->safe + off, buf->ptr + off, sz); in dmabounce_sync_for_device()
/arch/m68k/include/asm/
Dopenprom.h40 char * (*v2_dumb_mem_alloc)(char *va, unsigned sz);
41 void (*v2_dumb_mem_free)(char *va, unsigned sz);
44 char * (*v2_dumb_mmap)(char *virta, int which_io, unsigned paddr, unsigned sz);
/arch/sh/mm/
Dioremap_64.c111 static unsigned long shmedia_ioremap(struct resource *res, u32 pa, int sz);
200 static unsigned long shmedia_ioremap(struct resource *res, u32 pa, int sz) in shmedia_ioremap() argument
203 unsigned long round_sz = (offset + sz + PAGE_SIZE-1) & PAGE_MASK; in shmedia_ioremap()
231 res->end = res->start + sz - 1; /* not strictly necessary.. */ in shmedia_ioremap()

123