/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 | 40 * @size: Size of the buffer needed for the pool 45 static int cvm_oct_fill_hw_skbuff(int pool, int size, int elements) argument 50 struct sk_buff *skb = dev_alloc_skb(size + 256); 60 cvmx_fpa_free(skb->data, pool, DONT_WRITEBACK(size / 128)); 69 * @size: Size of the buffer needed for the pool 72 static void cvm_oct_free_hw_skbuff(int pool, int size, int elements) argument 97 * @size: Size of each buffer in the pool 102 static int cvm_oct_fill_hw_memory(int pool, int size, int elements) argument 119 memory = kmalloc(size + 256, GFP_ATOMIC); 122 elements * size, poo 139 cvm_oct_free_hw_memory(int pool, int size, int elements) argument 161 cvm_oct_mem_fill_fpa(int pool, int size, int elements) argument 171 cvm_oct_mem_empty_fpa(int pool, int size, int elements) argument [all...] |
/drivers/mtd/tests/ |
H A D | mtd_nandecctest.c | 12 static void inject_single_bit_error(void *data, size_t size) argument 14 unsigned long offset = random32() % (size * BITS_PER_BYTE); 22 static int nand_ecc_test(const size_t size) argument 28 BUG_ON(sizeof(data) < size); 30 sprintf(testname, "nand-ecc-%zu", size); 32 get_random_bytes(data, size); 34 memcpy(error_data, data, size); 35 inject_single_bit_error(error_data, size); 37 __nand_calculate_ecc(data, size, code); 38 __nand_calculate_ecc(error_data, size, error_cod 60 nand_ecc_test(const size_t size) argument [all...] |
/drivers/scsi/aic7xxx_old/ |
H A D | aic7xxx_proc.c | 33 #define BLS (&aic7xxx_buffer[size]) 88 int size = 0; local 97 size += sprintf(buffer, "Can't find adapter for host number %d\n", HBAptr->host_no); 98 if (size > length) 100 return (size); 117 * counting any proc stats, so we start out with a 1.5k buffer size and 127 size = 4096; 129 size += 512; 130 if (aic7xxx_buffer_size != size) 137 aic7xxx_buffer = kmalloc(size, GFP_KERNE [all...] |
/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/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...] |
H A D | ec_sys.c | 36 unsigned int size = EC_SPACE_SIZE; local 41 if (*off >= size) 43 if (*off + count >= size) { 44 size -= *off; 45 count = size; 47 size = count; 49 while (size) { 54 size--; 66 unsigned int size = count; local 74 size [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 359 ssize_t size; local 434 ssize_t size; local [all...] |
/drivers/acpi/acpica/ |
H A D | nsnames.c | 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])); 137 acpi_size size; local 141 /* Calculate required buffer size based on depth below root */ 143 size = acpi_ns_get_pathname_length(node); 144 if (!size) { 150 name_buffer = ACPI_ALLOCATE_ZEROED(size); 68 acpi_ns_build_external_path(struct acpi_namespace_node *node, acpi_size size, char *name_buffer) argument 181 acpi_size size; local [all...] |
/drivers/hid/ |
H A D | hid-roccat-common.c | 25 void *data, uint size) 30 buf = kmalloc(size, GFP_KERNEL); 38 0, buf, size, USB_CTRL_SET_TIMEOUT); 40 memcpy(data, buf, size); 42 return ((len < 0) ? len : ((len != size) ? -EIO : 0)); 47 void const *data, uint size) 52 buf = kmemdup(data, size, GFP_KERNEL); 60 0, buf, size, USB_CTRL_SET_TIMEOUT); 63 return ((len < 0) ? len : ((len != size) ? -EIO : 0)); 24 roccat_common_receive(struct usb_device *usb_dev, uint report_id, void *data, uint size) argument 46 roccat_common_send(struct usb_device *usb_dev, uint report_id, void const *data, uint size) argument
|
H A D | hid-roccat-common.h | 19 void *data, uint size); 21 void const *data, uint size);
|
/drivers/staging/tidspbridge/include/dspbridge/ |
H A D | uuidutil.h | 32 * size: Maximum size of the sz_uuid string. 42 s32 size);
|
/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/gpu/drm/ |
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); 100 * size 102 drm_buffer_copy_from_user(struct drm_buffer *buf, void __user *user_data, int size) argument [all...] |
/drivers/media/video/cx25840/ |
H A D | cx25840-firmware.c | 28 * size of the firmware chunks sent down the I2C bus to the chip. 77 static int check_fw_load(struct i2c_client *client, int size) argument 83 if (size != s) { 90 get_fw_name(client), size); 94 static int fw_write(struct i2c_client *client, const u8 *data, int size) argument 96 if (i2c_master_send(client, data, size) < size) { 111 int size, retval; local 122 v4l_err(client, " Firmware download size changed to 16 bytes max length\n"); 136 size [all...] |
/drivers/base/ |
H A D | dma-mapping.c | 18 size_t size; member in struct:dma_devres 27 dma_free_coherent(dev, this->size, this->vaddr, this->dma_handle); 34 dma_free_noncoherent(dev, this->size, this->vaddr, this->dma_handle); 42 WARN_ON(this->size != match->size || 52 * @size: Size of allocation 62 void * dmam_alloc_coherent(struct device *dev, size_t size, argument 72 vaddr = dma_alloc_coherent(dev, size, dma_handle, gfp); 80 dr->size = size; 97 dmam_free_coherent(struct device *dev, size_t size, void *vaddr, dma_addr_t dma_handle) argument 121 dmam_alloc_noncoherent(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp) argument 156 dmam_free_noncoherent(struct device *dev, size_t size, void *vaddr, dma_addr_t dma_handle) argument 187 dmam_declare_coherent_memory(struct device *dev, dma_addr_t bus_addr, dma_addr_t device_addr, size_t size, int flags) argument [all...] |
/drivers/media/dvb/ttpci/ |
H A D | av7110_ipack.h | 4 extern int av7110_ipack_init(struct ipack *p, int size, 5 void (*func)(u8 *buf, int size, void *priv));
|
/drivers/video/omap2/ |
H A D | vram.c | 53 size_t size; member in struct:__anon5883 126 int omap_vram_add_region(unsigned long paddr, size_t size) argument 132 DBG("adding region paddr %08lx size %d\n", 133 paddr, size); 135 size &= PAGE_MASK; 136 pages = size >> PAGE_SHIFT; 148 postponed_regions[postponed_cnt].size = size; 155 int omap_vram_free(unsigned long paddr, size_t size) argument 161 DBG("free mem paddr %08lx size 192 size_t size; local 233 omap_vram_reserve(unsigned long paddr, size_t size) argument 348 omap_vram_alloc(size_t size, unsigned long *paddr) argument 413 unsigned size; local 507 u32 size = 0; local 566 omap_vram_set_sdram_vram(u32 size, u32 start) argument [all...] |
/drivers/infiniband/hw/cxgb3/ |
H A D | cxio_dbg.c | 45 int size = 32; local 47 m = kmalloc(sizeof(*m) + size, GFP_ATOMIC); 54 m->len = size; 64 while (size > 0) { 66 size -= 8; 78 int size, npages; local 82 size = npages * sizeof(u64); 84 m = kmalloc(sizeof(*m) + size, GFP_ATOMIC); 91 m->len = size; 102 while (size > 114 uint size = (uint)(be64_to_cpu(*data) & 0xff); local 129 int size = sizeof(*wce); local 142 int size = nents * 64; local 175 int size = TCB_SIZE; local [all...] |
/drivers/net/wireless/wl12xx/ |
H A D | io.c | 52 .size = 0x000177c0 56 .size = 0x00008800 60 .size = 0x00000000 64 .size = 0x00000000 71 .size = 0x00014fc0 75 .size = 0x0000a000 79 .size = 0x00000004 83 .size = 0x00000000 90 .size = 0x00014fc0 94 .size [all...] |
/drivers/usb/core/ |
H A D | buffer.c | 54 int i, size; local 61 size = pool_max[i]; 62 if (!size) 64 snprintf(name, sizeof name, "buffer-%d", size); 66 size, size, 0); 103 size_t size, 115 return kmalloc(size, mem_flags); 119 if (size <= pool_max[i]) 122 return dma_alloc_coherent(hcd->self.controller, size, dm 101 hcd_buffer_alloc( struct usb_bus *bus, size_t size, gfp_t mem_flags, dma_addr_t *dma ) argument 125 hcd_buffer_free( struct usb_bus *bus, size_t size, void *addr, dma_addr_t dma ) argument [all...] |
/drivers/gpu/drm/radeon/ |
H A D | radeon_mem.c | 41 static struct mem_block *split_block(struct mem_block *p, int start, int size, argument 51 newblock->size = p->size - (start - p->start); 57 p->size -= newblock->size; 62 if (size < p->size) { 67 newblock->start = start + size; 68 newblock->size = p->size 83 alloc_block(struct mem_block *heap, int size, int align2, struct drm_file *file_priv) argument 135 init_heap(struct mem_block **heap, int start, int size) argument [all...] |
/drivers/uwb/i1480/ |
H A D | i1480-est.c | 33 /** Event size table for wEvents 0x00XX */ 36 * neh->extra_size to specify the real size that will 38 [i1480_EVT_CONFIRM] = { .size = sizeof(struct i1480_evt_confirm) }, 39 [i1480_CMD_SET_IP_MAS] = { .size = sizeof(struct i1480_evt_confirm) }, 42 .size = sizeof(struct i1480_rceb), 48 /** Event size table for wEvents 0x01XX */ 50 [0xff & i1480_EVT_RM_INIT_DONE] = { .size = sizeof(struct i1480_rceb) }, 51 [0xff & i1480_EVT_DEV_ADD] = { .size = sizeof(struct i1480_rceb) + 9 }, 52 [0xff & i1480_EVT_DEV_RM] = { .size = sizeof(struct i1480_rceb) + 9 }, 54 .size [all...] |
/drivers/staging/ramster/ |
H A D | xvmalloc.c | 85 ((char *)block + block->size + XV_ALIGN); 89 * Get index of free list containing blocks of maximum size 90 * which is less than or equal to given size. 92 static u32 get_index_for_insert(u32 size) argument 94 if (unlikely(size > XV_MAX_ALLOC_SIZE)) 95 size = XV_MAX_ALLOC_SIZE; 96 size &= ~FL_DELTA_MASK; 97 return (size - XV_MIN_ALLOC_SIZE) >> FL_DELTA_SHIFT; 101 * Get index of free list having blocks of size greater than 102 * or equal to requested size 104 get_index(u32 size) argument 125 find_block(struct xv_pool *pool, u32 size, struct page **page, u32 *offset) argument 340 xv_malloc(struct xv_pool *pool, u32 size, struct page **page, u32 *offset, gfp_t flags) argument [all...] |