/arch/s390/pci/ |
D | pci_mmio.c | 36 const void __user *, user_buffer, size_t, length) in SYSCALL_DEFINE3() argument 47 if (length <= 0 || PAGE_SIZE - (mmio_addr & ~PAGE_MASK) < length) in SYSCALL_DEFINE3() 49 if (length > 64) { in SYSCALL_DEFINE3() 50 buf = kmalloc(length, GFP_KERNEL); in SYSCALL_DEFINE3() 65 if (copy_from_user(buf, user_buffer, length)) in SYSCALL_DEFINE3() 68 ret = zpci_memcpy_toio(io_addr, buf, length); in SYSCALL_DEFINE3() 76 void __user *, user_buffer, size_t, length) in SYSCALL_DEFINE3() argument 87 if (length <= 0 || PAGE_SIZE - (mmio_addr & ~PAGE_MASK) < length) in SYSCALL_DEFINE3() 89 if (length > 64) { in SYSCALL_DEFINE3() 90 buf = kmalloc(length, GFP_KERNEL); in SYSCALL_DEFINE3() [all …]
|
/arch/arm/crypto/ |
D | crc32-ce-glue.c | 75 unsigned int length) in crc32_update() argument 79 *crc = crc32_armv8_le(*crc, data, length); in crc32_update() 84 unsigned int length) in crc32c_update() argument 88 *crc = crc32c_armv8_le(*crc, data, length); in crc32c_update() 109 unsigned int length) in crc32_pmull_update() argument 116 l = min_t(u32, length, SCALE_F - ((u32)data % SCALE_F)); in crc32_pmull_update() 121 length -= l; in crc32_pmull_update() 124 if (length >= PMULL_MIN_LEN) { in crc32_pmull_update() 125 l = round_down(length, SCALE_F); in crc32_pmull_update() 132 length -= l; in crc32_pmull_update() [all …]
|
D | crct10dif-ce-glue.c | 33 unsigned int length) in crct10dif_update() argument 37 if (length >= CRC_T10DIF_PMULL_CHUNK_SIZE && crypto_simd_usable()) { in crct10dif_update() 39 *crc = crc_t10dif_pmull(*crc, data, length); in crct10dif_update() 42 *crc = crc_t10dif_generic(*crc, data, length); in crct10dif_update()
|
/arch/arm/mach-omap2/ |
D | io.c | 71 .length = L3_24XX_SIZE, 77 .length = L4_24XX_SIZE, 87 .length = DSP_MEM_2420_SIZE, 93 .length = DSP_IPI_2420_SIZE, 99 .length = DSP_MMU_2420_SIZE, 111 .length = L4_WK_243X_SIZE, 117 .length = OMAP243X_GPMC_SIZE, 123 .length = OMAP243X_SDRC_SIZE, 129 .length = OMAP243X_SMS_SIZE, 141 .length = L3_34XX_SIZE, [all …]
|
/arch/x86/kernel/ |
D | sysfb_simplefb.c | 41 si->red_size == f->red.length && in parse_mode() 43 si->green_size == f->green.length && in parse_mode() 45 si->blue_size == f->blue.length && in parse_mode() 47 si->rsvd_size == f->transp.length && in parse_mode() 66 u32 length; in create_simplefb() local 92 length = mode->height * mode->stride; in create_simplefb() 93 length = PAGE_ALIGN(length); in create_simplefb() 94 if (length > size) { in create_simplefb() 104 res.end = res.start + length - 1; in create_simplefb()
|
D | probe_roms.c | 189 static int __init romchecksum(const unsigned char *rom, unsigned long length) in romchecksum() argument 193 for (sum = 0; length && probe_kernel_address(rom++, c) == 0; length--) in romchecksum() 195 return !length && !sum; in romchecksum() 201 unsigned long start, length, upper; in probe_roms() local 218 length = c * 512; in probe_roms() 221 if (length && romchecksum(rom, length)) in probe_roms() 222 video_rom_resource.end = start + length - 1; in probe_roms() 239 length = resource_size(&extension_rom_resource); in probe_roms() 240 if (romchecksum(rom, length)) { in probe_roms() 256 length = c * 512; in probe_roms() [all …]
|
D | mpparse.c | 160 if (mpf_checksum((unsigned char *)mpc, mpc->length)) { in smp_check_mpc() 197 1, mpc, mpc->length, 1); in smp_dump_mptable() 228 while (count < mpc->length) { in smp_read_mpc() 255 count = mpc->length; in smp_read_mpc() 444 size = mpc->length; in get_mpc_size() 575 static int __init smp_scan_config(unsigned long base, unsigned long length) in smp_scan_config() argument 582 base, base + length - 1); in smp_scan_config() 585 while (length > 0) { in smp_scan_config() 586 bp = early_memremap(base, length); in smp_scan_config() 589 (mpf->length == 1) && in smp_scan_config() [all …]
|
/arch/ia64/kernel/ |
D | acpi-ext.c | 29 static acpi_status hp_ccsr_locate(acpi_handle obj, u64 *base, u64 *length) in hp_ccsr_locate() argument 48 memcpy(length, vendor->byte_data + 8, sizeof(*length)); in hp_ccsr_locate() 57 u64 length; member 72 space->length = addr.address.address_length; in find_csr_space() 78 static acpi_status hp_crs_locate(acpi_handle obj, u64 *base, u64 *length) in hp_crs_locate() argument 83 if (!space.length) in hp_crs_locate() 87 *length = space.length; in hp_crs_locate()
|
/arch/powerpc/platforms/pseries/ |
D | reconfig.c | 114 static char * parse_next_property(char *buf, char *end, char **name, int *length, in parse_next_property() argument 136 *length = -1; in parse_next_property() 137 *length = simple_strtoul(tmp, &tmp, 10); in parse_next_property() 138 if (*length == -1) { in parse_next_property() 151 tmp += *length; in parse_next_property() 168 static struct property *new_property(const char *name, const int length, in new_property() argument 178 if (!(new->value = kmalloc(length + 1, GFP_KERNEL))) in new_property() 181 memcpy(new->value, value, length); in new_property() 182 *(((char *)new->value) + length) = 0; in new_property() 183 new->length = length; in new_property() [all …]
|
/arch/arm64/crypto/ |
D | crct10dif-ce-glue.c | 35 unsigned int length) in crct10dif_update_pmull_p8() argument 39 if (length >= CRC_T10DIF_PMULL_CHUNK_SIZE && crypto_simd_usable()) { in crct10dif_update_pmull_p8() 41 *crc = crc_t10dif_pmull_p8(*crc, data, length); in crct10dif_update_pmull_p8() 44 *crc = crc_t10dif_generic(*crc, data, length); in crct10dif_update_pmull_p8() 51 unsigned int length) in crct10dif_update_pmull_p64() argument 55 if (length >= CRC_T10DIF_PMULL_CHUNK_SIZE && crypto_simd_usable()) { in crct10dif_update_pmull_p64() 57 *crc = crc_t10dif_pmull_p64(*crc, data, length); in crct10dif_update_pmull_p64() 60 *crc = crc_t10dif_generic(*crc, data, length); in crct10dif_update_pmull_p64()
|
/arch/parisc/math-emu/ |
D | fpbits.h | 40 #define Bitfield_extract(start, length, object) \ argument 41 ((object) >> (HOSTWDSZ - (start) - (length)) & \ 42 ((unsigned)-1 >> (HOSTWDSZ - (length)))) 44 #define Bitfield_signed_extract(start, length, object) \ argument 45 ((int)((object) << start) >> (HOSTWDSZ - (length)))
|
/arch/m68k/mac/ |
D | macboing.c | 164 void mac_mksound( unsigned int freq, unsigned int length ) in mac_mksound() argument 181 mac_special_bell( freq, length, 128 ); in mac_mksound() 185 if ( freq < 20 || freq > 20000 || length == 0 ) in mac_mksound() 210 mac_sound_timer.expires = jiffies + length; in mac_mksound() 227 static void mac_quadra_start_bell( unsigned int freq, unsigned int length, unsigned int volume ) in mac_quadra_start_bell() argument 234 mac_bell_duration += length; in mac_quadra_start_bell() 238 mac_bell_duration = length; in mac_quadra_start_bell() 308 static void mac_av_start_bell( unsigned int freq, unsigned int length, unsigned int volume ) in mac_av_start_bell() argument
|
/arch/m68k/atari/ |
D | atasound.c | 86 int length = (ticks * PSG_ENV_FREQ_10) / HZ / 10; in atari_mksound() local 88 if (length > 0xffff) length = 0xffff; in atari_mksound() 90 sound_ym.wd_data = length & 0xff; in atari_mksound() 92 sound_ym.wd_data = length >> 8; in atari_mksound()
|
/arch/arm/mach-omap1/ |
D | io.c | 32 .length = OMAP1_IO_SIZE, 42 .length = OMAP7XX_DSP_SIZE, 47 .length = OMAP7XX_DSPREG_SIZE, 58 .length = OMAP1510_DSP_SIZE, 63 .length = OMAP1510_DSPREG_SIZE, 74 .length = OMAP16XX_DSP_SIZE, 79 .length = OMAP16XX_DSPREG_SIZE,
|
/arch/mips/include/asm/fw/cfe/ |
D | cfe_api.h | 88 int cfe_enummem(int idx, int flags, uint64_t * start, uint64_t * length, 99 int length, int *retlen, uint64_t offset); 101 int cfe_read(int handle, unsigned char *buffer, int length); 103 int length); 105 int cfe_write(int handle, const char *buffer, int length); 107 int length);
|
/arch/arm/mach-tegra/ |
D | io.c | 28 .length = IO_PPSB_SIZE, 34 .length = IO_APB_SIZE, 40 .length = IO_CPU_SIZE, 46 .length = IO_IRAM_SIZE,
|
/arch/powerpc/kernel/ |
D | nvram_64.c | 36 unsigned short length; member 181 char *buff, int length, in nvram_write_os_partition() argument 192 if (length > part->size) in nvram_write_os_partition() 193 length = part->size; in nvram_write_os_partition() 206 rc = ppc_md.nvram_write(buff, length, &tmp_index); in nvram_write_os_partition() 220 int length, unsigned int *err_type, in nvram_read_partition() argument 230 if (length > part->size) in nvram_read_partition() 231 length = part->size; in nvram_read_partition() 243 rc = ppc_md.nvram_read(buff, length, &tmp_index); in nvram_read_partition() 502 size_t length, hdr_size; in nvram_pstore_read() local [all …]
|
/arch/x86/crypto/ |
D | crct10dif-pclmul_glue.c | 53 unsigned int length) in chksum_update() argument 57 if (length >= 16 && crypto_simd_usable()) { in chksum_update() 59 ctx->crc = crc_t10dif_pcl(ctx->crc, data, length); in chksum_update() 62 ctx->crc = crc_t10dif_generic(ctx->crc, data, length); in chksum_update() 94 unsigned int length, u8 *out) in chksum_digest() argument 96 return __chksum_finup(0, data, length, out); in chksum_digest()
|
/arch/alpha/kernel/ |
D | err_common.c | 32 mchk_dump_mem(void *data, size_t length, char **annotation) in mchk_dump_mem() argument 37 for (i = 0; (i * sizeof(*ldata)) < length; i++) { in mchk_dump_mem() 94 int length = 0; in el_process_header_subpacket() local 106 length = header->by_type.sys_err.frame_length; in el_process_header_subpacket() 113 length = header->by_type.sys_event.frame_length; in el_process_header_subpacket() 120 length = header->by_type.err_halt.frame_length; in el_process_header_subpacket() 127 length = header->by_type.logout_header.frame_length; in el_process_header_subpacket() 152 ((unsigned long)header + header->length + length); in el_process_header_subpacket() 186 ((unsigned long)header + header->length); in el_process_subpackets() 238 mchk_dump_mem(header, header->length, annotation); in el_annotate_subpacket()
|
/arch/powerpc/perf/ |
D | hv-gpci.c | 47 EVENT_DEFINE_RANGE_FORMAT(length, config1, 24, 31); 138 u16 secondary_index, u8 version_in, u32 offset, u8 length, in single_gpci_request() argument 166 for (i = offset; i < offset + length; i++) in single_gpci_request() 219 u8 length; in h_gpci_event_init() local 235 length = event_get_length(event); in h_gpci_event_init() 236 if (length < 1 || length > 8) { in h_gpci_event_init() 242 if ((event_get_offset(event) + length) > HGPCI_MAX_DATA_BYTES) { in h_gpci_event_init() 244 (size_t)event_get_offset(event) + length, in h_gpci_event_init() 255 length, in h_gpci_event_init()
|
/arch/arm/kernel/ |
D | dma-isa.c | 64 unsigned long address, length; in isa_enable_dma() local 94 dma->buf.length = dma->count; in isa_enable_dma() 101 length = dma->buf.length - 1; in isa_enable_dma() 108 length >>= 1; in isa_enable_dma() 116 outb(length, isa_dma_port[chan][ISA_DMA_COUNT]); in isa_enable_dma() 117 outb(length >> 8, isa_dma_port[chan][ISA_DMA_COUNT]); in isa_enable_dma()
|
/arch/powerpc/include/asm/ |
D | nvram.h | 45 extern int nvram_write_error_log(char * buff, int length, 47 extern int nvram_read_error_log(char * buff, int length, 85 int length, unsigned int *err_type, 90 char *buff, int length,
|
/arch/arm/mach-spear/ |
D | spear13xx.c | 64 .length = SZ_16M, 69 .length = SZ_16M, 74 .length = SZ_16M, 79 .length = SZ_4K,
|
/arch/arm/xen/ |
D | mm.c | 54 cflush.length = XEN_PAGE_SIZE - cflush.offset; in dma_cache_maint() 56 cflush.length = size; in dma_cache_maint() 61 cflush.a.dev_bus_addr += cflush.length; in dma_cache_maint() 62 size -= cflush.length; in dma_cache_maint() 146 cflush.length = 0; in xen_mm_init()
|
/arch/arm/mach-s3c24xx/ |
D | mach-smdk2443.c | 48 .length = 0x10000, 53 .length = SZ_4M, 58 .length = 0x10000, 63 .length = SZ_4M,
|