/drivers/staging/octeon/ |
H A D | ethernet-mem.h | 28 int cvm_oct_mem_fill_fpa(int pool, int size, int elements); 29 void cvm_oct_mem_empty_fpa(int pool, int size, int elements);
|
H A D | ethernet-mem.c | 41 * @size: Size of the buffer needed for the pool 46 static int cvm_oct_fill_hw_skbuff(int pool, int size, int elements) argument 51 struct sk_buff *skb = dev_alloc_skb(size + 256); 57 cvmx_fpa_free(skb->data, pool, DONT_WRITEBACK(size / 128)); 66 * @size: Size of the buffer needed for the pool 69 static void cvm_oct_free_hw_skbuff(int pool, int size, int elements) argument 94 * @size: Size of each buffer in the pool 99 static int cvm_oct_fill_hw_memory(int pool, int size, int elements) argument 116 memory = kmalloc(size + 256, GFP_ATOMIC); 119 elements * size, poo 136 cvm_oct_free_hw_memory(int pool, int size, int elements) argument 159 cvm_oct_mem_fill_fpa(int pool, int size, int elements) argument 170 cvm_oct_mem_empty_fpa(int pool, int size, int elements) argument [all...] |
/drivers/gpu/drm/radeon/ |
H A D | uvd_v4_2.c | 41 uint32_t size; local 45 size = RADEON_GPU_PAGE_ALIGN(rdev->uvd_fw->size + 4) >> 3; 47 WREG32(UVD_VCPU_CACHE_SIZE0, size); 49 addr += size; 50 size = RADEON_UVD_STACK_SIZE >> 3; 52 WREG32(UVD_VCPU_CACHE_SIZE1, size); 54 addr += size; 55 size = RADEON_UVD_HEAP_SIZE >> 3; 57 WREG32(UVD_VCPU_CACHE_SIZE2, size); [all...] |
H A D | drm_buffer.c | 29 * Multipart buffer for coping data which is larger than the page size. 42 * size: The number of bytes to allocate. 44 int drm_buffer_alloc(struct drm_buffer **buf, int size) argument 46 int nr_pages = size / PAGE_SIZE + 1; 57 size, nr_pages); 61 (*buf)->size = size; 66 kmalloc(min(PAGE_SIZE, size - idx * PAGE_SIZE), 73 idx + 1, size, nr_pages); 95 * size 97 drm_buffer_copy_from_user(struct drm_buffer *buf, void __user *user_data, int size) argument [all...] |
/drivers/gpu/drm/nouveau/core/include/nvif/ |
H A D | unpack.h | 5 ret = (size == sizeof(d)) ? 0 : -ENOSYS; \ 12 if (_size <= size && (d).version >= (vl) && \ 15 size = size - _size; \ 16 ret = ((m) || !size) ? 0 : -E2BIG; \
|
/drivers/gpu/drm/nouveau/nvif/ |
H A D | unpack.h | 5 ret = (size == sizeof(d)) ? 0 : -ENOSYS; \ 12 if (_size <= size && (d).version >= (vl) && \ 15 size = size - _size; \ 16 ret = ((m) || !size) ? 0 : -E2BIG; \
|
/drivers/mtd/tests/ |
H A D | mtd_nandecctest.c | 45 size_t size) 47 unsigned int offset = prandom_u32() % (size * BITS_PER_BYTE); 49 memcpy(error_data, correct_data, size); 54 size_t size) 58 offset[0] = prandom_u32() % (size * BITS_PER_BYTE); 60 offset[1] = prandom_u32() % (size * BITS_PER_BYTE); 63 memcpy(error_data, correct_data, size); 69 static unsigned int random_ecc_bit(size_t size) argument 73 if (size == 256) { 86 size_t size) 44 single_bit_error_data(void *error_data, void *correct_data, size_t size) argument 53 double_bit_error_data(void *error_data, void *correct_data, size_t size) argument 85 single_bit_error_ecc(void *error_ecc, void *correct_ecc, size_t size) argument 94 double_bit_error_ecc(void *error_ecc, void *correct_ecc, size_t size) argument 109 no_bit_error(void *error_data, void *error_ecc, void *correct_data, void *correct_ecc, const size_t size) argument 116 no_bit_error_verify(void *error_data, void *error_ecc, void *correct_data, const size_t size) argument 130 single_bit_error_in_data(void *error_data, void *error_ecc, void *correct_data, void *correct_ecc, const size_t size) argument 137 single_bit_error_in_ecc(void *error_data, void *error_ecc, void *correct_data, void *correct_ecc, const size_t size) argument 144 single_bit_error_correct(void *error_data, void *error_ecc, void *correct_data, const size_t size) argument 158 double_bit_error_in_data(void *error_data, void *error_ecc, void *correct_data, void *correct_ecc, const size_t size) argument 165 single_bit_error_in_data_and_ecc(void *error_data, void *error_ecc, void *correct_data, void *correct_ecc, const size_t size) argument 172 double_bit_error_in_ecc(void *error_data, void *error_ecc, void *correct_data, void *correct_ecc, const size_t size) argument 179 double_bit_error_detect(void *error_data, void *error_ecc, void *correct_data, const size_t size) argument 224 dump_data_ecc(void *error_data, void *error_ecc, void *correct_data, void *correct_ecc, const size_t size) argument 240 nand_ecc_test_run(const size_t size) argument 289 nand_ecc_test_run(const size_t size) argument [all...] |
/drivers/staging/lustre/lustre/libcfs/ |
H A D | prng.c | 106 * @size: size of passed in buffer 110 void cfs_get_random_bytes(void *buf, int size) argument 115 LASSERT(size >= 0); 117 rem = min((int)((unsigned long)buf & (sizeof(int) - 1)), size); 123 size -= rem; 126 while (size >= sizeof(int)) { 129 size -= sizeof(int); 133 if (size) { 136 memcpy(buf, &tmp, size); [all...] |
/drivers/gpu/drm/nouveau/core/engine/graph/ |
H A D | nv50.h | 4 int nv50_grctx_init(struct nouveau_device *, u32 *size);
|
/drivers/gpu/drm/vmwgfx/ |
H A D | svga_overlay.h | 124 * Computes the size, pitches and offsets for YUV frames. 140 uint32 *size, /* OUT */ 155 *size = (*width + 3) & ~3; 158 pitches[0] = *size; 161 *size *= *height; 164 offsets[1] = *size; 174 *size += tmp; 177 offsets[2] = *size; 180 *size += tmp; 185 *size 137 VMwareVideoGetAttributes(const SVGAOverlayFormat format, uint32 *width, uint32 *height, uint32 *size, uint32 *pitches, uint32 *offsets) argument [all...] |
/drivers/gpu/drm/msm/ |
H A D | msm_ringbuffer.c | 21 struct msm_ringbuffer *msm_ringbuffer_new(struct msm_gpu *gpu, int size) argument 26 size = ALIGN(size, 4); /* size should be dword aligned */ 35 ring->bo = msm_gem_new(gpu->dev, size, MSM_BO_WC); 43 ring->end = ring->start + (size / 4); 46 ring->size = size;
|
/drivers/staging/lustre/lustre/include/ |
H A D | lustre_eacl.h | 70 #define CFS_ACL_XATTR_COUNT(size, prefix) \ 71 (((size) - sizeof(prefix ## _header)) / sizeof(prefix ## _entry)) 75 lustre_posix_acl_xattr_2ext(posix_acl_xattr_header *header, int size); 77 lustre_posix_acl_xattr_filter(posix_acl_xattr_header *header, int size, 80 lustre_posix_acl_xattr_free(posix_acl_xattr_header *header, int size); 84 lustre_acl_xattr_merge2posix(posix_acl_xattr_header *posix_header, int size, 88 lustre_acl_xattr_merge2ext(posix_acl_xattr_header *posix_header, int size,
|
H A D | lustre_update.h | 46 unsigned long size; local 49 size = cfs_size_round(offsetof(struct update, u_bufs[0])); 51 size += cfs_size_round(update->u_lens[i]); 53 return size; 57 int *size) 72 if (size != NULL) 73 *size = update->u_lens[index]; 80 unsigned long size; local 83 size = cfs_size_round(offsetof(struct update_buf, ub_bufs[0])); 87 update = (struct update *)((char *)buf + size); 56 update_param_buf(struct update *update, int index, int *size) argument 94 update_buf_get(struct update_buf *buf, int index, int *size) argument 120 update_get_buf_internal(struct update_reply *reply, int index, int *size) argument 164 int size = 0; local 182 int size; local [all...] |
/drivers/acpi/ |
H A D | nvs.c | 22 __u64 size; member in struct:nvs_region 29 static int suspend_nvs_register(unsigned long start, unsigned long size); 37 int acpi_nvs_register(__u64 start, __u64 size) argument 45 region->size = size; 48 return suspend_nvs_register(start, size); 51 int acpi_nvs_for_each_region(int (*func)(__u64 start, __u64 size, void *data), argument 58 rc = func(region->phys_start, region->size, data); 76 unsigned int size; member in struct:nvs_page 88 * @size 94 suspend_nvs_register(unsigned long start, unsigned long size) argument 179 unsigned int size = entry->size; local [all...] |
/drivers/oprofile/ |
H A D | cpu_buffer.h | 73 * entry->event != NULL, otherwise entry->size or entry->event will be 78 *op_cpu_buffer_write_reserve(struct op_entry *entry, unsigned long size); 83 /* returns the remaining free size of data in the entry */ 87 if (!entry->size) 90 entry->size--; 92 return entry->size; 95 /* returns the size of data in the entry */ 99 return entry->size; 102 /* returns 0 if empty or the size of data including the current value */ 106 int size local [all...] |
/drivers/uwb/ |
H A D | est.c | 25 * Infrastructure, code and data tables for guessing the size of 29 * You define a table of events and for each, its size and how to get 30 * the extra size. 36 * uwb_est_[u]register(): To un/register event size tables 39 * uwb_est_find_size(): Get the size of an event 68 .size = sizeof(struct uwb_rc_evt_ie_rcv), 72 .size = sizeof(struct uwb_rc_evt_beacon), 76 .size = sizeof(struct uwb_rc_evt_beacon_size), 79 .size = sizeof(struct uwb_rc_evt_bpoie_change), 84 .size 357 ssize_t size; local 432 ssize_t size; local [all...] |
/drivers/acpi/acpica/ |
H A D | nsnames.c | 57 * size - Size of the pathname 69 acpi_size size, char *name_buffer) 78 index = size - 1; 110 "Could not construct external pathname; index=%u, size=%u, Path=%s", 111 (u32) index, (u32) size, &name_buffer[size])); 138 acpi_size size; local 142 /* Calculate required buffer size based on depth below root */ 144 size = acpi_ns_get_pathname_length(node); 145 if (!size) { 68 acpi_ns_build_external_path(struct acpi_namespace_node *node, acpi_size size, char *name_buffer) argument 182 acpi_size size; local [all...] |
/drivers/gpu/drm/gma500/ |
H A D | gem.h | 20 u64 size, u32 *handlep, int stolen, u32 align);
|
/drivers/mtd/maps/ |
H A D | scx200_docflash.c | 27 static unsigned size = 0x1000000; /* 16 MiB the whole ISA address space */ variable 33 module_param(size, int, 0); 34 MODULE_PARM_DESC(size, "Size of the flash mapping"); 51 .size = 0xc0000 56 .size = 0x40000 61 .size = ~0 /* calculate from flash size */ 65 .offset = ~0, /* calculate from flash size */ 66 .size = 0x80000 109 size [all...] |
/drivers/base/ |
H A D | dma-mapping.c | 21 size_t size; member in struct:dma_devres 30 dma_free_coherent(dev, this->size, this->vaddr, this->dma_handle); 37 dma_free_noncoherent(dev, this->size, this->vaddr, this->dma_handle); 45 WARN_ON(this->size != match->size || 55 * @size: Size of allocation 65 void * dmam_alloc_coherent(struct device *dev, size_t size, argument 75 vaddr = dma_alloc_coherent(dev, size, dma_handle, gfp); 83 dr->size = size; 100 dmam_free_coherent(struct device *dev, size_t size, void *vaddr, dma_addr_t dma_handle) argument 124 dmam_alloc_noncoherent(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp) argument 159 dmam_free_noncoherent(struct device *dev, size_t size, void *vaddr, dma_addr_t dma_handle) argument 190 dmam_declare_coherent_memory(struct device *dev, phys_addr_t phys_addr, dma_addr_t device_addr, size_t size, int flags) argument 228 dma_common_get_sgtable(struct device *dev, struct sg_table *sgt, void *cpu_addr, dma_addr_t handle, size_t size) argument 246 dma_common_mmap(struct device *dev, struct vm_area_struct *vma, void *cpu_addr, dma_addr_t dma_addr, size_t size) argument 278 dma_common_pages_remap(struct page **pages, size_t size, unsigned long vm_flags, pgprot_t prot, const void *caller) argument 303 dma_common_contiguous_remap(struct page *page, size_t size, unsigned long vm_flags, pgprot_t prot, const void *caller) argument 329 dma_common_free_remap(void *cpu_addr, size_t size, unsigned long vm_flags) argument [all...] |
/drivers/media/i2c/cx25840/ |
H A D | cx25840-firmware.c | 28 * size of the firmware chunks sent down the I2C bus to the chip. 81 static int check_fw_load(struct i2c_client *client, int size) argument 87 if (size != s) { 94 get_fw_name(client), size); 98 static int fw_write(struct i2c_client *client, const u8 *data, int size) argument 100 if (i2c_master_send(client, data, size) < size) { 115 int size, retval; local 126 v4l_err(client, " Firmware download size changed to 16 bytes max length\n"); 140 size [all...] |
/drivers/misc/vmw_vmci/ |
H A D | vmci_handle_array.c | 37 array->size = 0; 52 if (unlikely(array->size >= array->capacity)) { 66 array->entries[array->size] = handle; 67 array->size++; 79 for (i = 0; i < array->size; i++) { 82 array->size--; 83 array->entries[i] = array->entries[array->size]; 84 array->entries[array->size] = VMCI_INVALID_HANDLE; 99 if (array->size) { 100 array->size [all...] |
/drivers/gpu/drm/nouveau/core/subdev/pwr/ |
H A D | nv108.c | 38 .code.size = sizeof(nv108_pwr_code), 40 .data.size = sizeof(nv108_pwr_data),
|
H A D | nvc0.c | 38 .code.size = sizeof(nvc0_pwr_code), 40 .data.size = sizeof(nvc0_pwr_data),
|
H A D | nvd0.c | 38 .code.size = sizeof(nvd0_pwr_code), 40 .data.size = sizeof(nvd0_pwr_data),
|