Searched refs:size (Results 176 - 200 of 3471) sorted by relevance

1234567891011>>

/drivers/media/v4l2-core/
H A Dvideobuf2-dma-sg.c39 size_t size; member in struct:vb2_dma_sg_buf
52 int size = buf->size; local
54 while (size > 0) {
59 order = get_order(size);
61 if ((PAGE_SIZE << order) > size)
83 size -= PAGE_SIZE << order;
89 static void *vb2_dma_sg_alloc(void *alloc_ctx, unsigned long size, gfp_t gfp_flags) argument
102 buf->size = size;
164 vb2_dma_sg_get_userptr(void *alloc_ctx, unsigned long vaddr, unsigned long size, int write) argument
[all...]
/drivers/net/ethernet/intel/igb/
H A De1000_mbx.c30 * @size: Length of buffer
35 s32 igb_read_mbx(struct e1000_hw *hw, u32 *msg, u16 size, u16 mbx_id) argument
40 /* limit read to size of mailbox */
41 if (size > mbx->size)
42 size = mbx->size;
45 ret_val = mbx->ops.read(hw, msg, size, mbx_id);
54 * @size: Length of buffer
59 s32 igb_write_mbx(struct e1000_hw *hw, u32 *msg, u16 size, u1 argument
195 igb_read_posted_mbx(struct e1000_hw *hw, u32 *msg, u16 size, u16 mbx_id) argument
222 igb_write_posted_mbx(struct e1000_hw *hw, u32 *msg, u16 size, u16 mbx_id) argument
346 igb_write_mbx_pf(struct e1000_hw *hw, u32 *msg, u16 size, u16 vf_number) argument
387 igb_read_mbx_pf(struct e1000_hw *hw, u32 *msg, u16 size, u16 vf_number) argument
[all...]
/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_mbx.c38 * @size: Length of buffer
43 s32 ixgbe_read_mbx(struct ixgbe_hw *hw, u32 *msg, u16 size, u16 mbx_id) argument
47 /* limit read to size of mailbox */
48 if (size > mbx->size)
49 size = mbx->size;
54 return mbx->ops.read(hw, msg, size, mbx_id);
61 * @size: Length of buffer
66 s32 ixgbe_write_mbx(struct ixgbe_hw *hw, u32 *msg, u16 size, u1 argument
190 ixgbe_read_posted_mbx(struct ixgbe_hw *hw, u32 *msg, u16 size, u16 mbx_id) argument
217 ixgbe_write_posted_mbx(struct ixgbe_hw *hw, u32 *msg, u16 size, u16 mbx_id) argument
354 ixgbe_write_mbx_pf(struct ixgbe_hw *hw, u32 *msg, u16 size, u16 vf_number) argument
393 ixgbe_read_mbx_pf(struct ixgbe_hw *hw, u32 *msg, u16 size, u16 vf_number) argument
[all...]
/drivers/net/wireless/iwlwifi/
H A Diwl-phy-db.c74 #define CHANNEL_NUM_SIZE 4 /* num of channels in calib_ch size */
79 u16 size; member in struct:iwl_phy_db_entry
193 entry->size = 0;
220 u16 size = le16_to_cpu(phy_db_notif->length); local
236 entry->data = kmemdup(phy_db_notif->data, size, alloc_ctx);
238 entry->size = 0;
242 entry->size = size;
246 __func__, __LINE__, type, size);
314 u32 type, u8 **data, u16 *size, u1
313 iwl_phy_db_get_section_data(struct iwl_phy_db *phy_db, u32 type, u8 **data, u16 *size, u16 ch_id) argument
411 u16 size = 0; local
[all...]
/drivers/pci/hotplug/
H A Dacpiphp_ibm.c102 char *buffer, loff_t pos, size_t size);
136 int ind = 0, size; local
140 size = ibm_get_table_from_acpi(&table);
146 while (ind < size && (des->generic.type != 0x82 ||
151 if (ind < size && des->slot.slot_num == id)
278 * the size of the table and returns that without filling
281 * Returns < 0 on error or the size of the table on success.
289 int i, size = -EIO; local
305 for (size = 0, i = 0; i < package->package.count; i++) {
310 size
356 ibm_read_apci_table(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buffer, loff_t pos, size_t size) argument
[all...]
/drivers/staging/android/ion/
H A Dion_heap.c36 int npages = PAGE_ALIGN(buffer->size) / PAGE_SIZE;
154 int ion_heap_pages_zero(struct page *page, size_t size, pgprot_t pgprot) argument
159 sg_set_page(&sg, page, size, 0);
167 heap->free_list_size += buffer->size;
174 size_t size; local
177 size = heap->free_list_size;
180 return size;
183 static size_t _ion_heap_freelist_drain(struct ion_heap *heap, size_t size, argument
193 if (size == 0)
194 size
215 ion_heap_freelist_drain(struct ion_heap *heap, size_t size) argument
220 ion_heap_freelist_shrink(struct ion_heap *heap, size_t size) argument
[all...]
H A Dion_chunk_heap.c32 unsigned long size; member in struct:ion_chunk_heap
38 unsigned long size, unsigned long align,
52 allocated_size = ALIGN(size, chunk_heap->chunk_size);
55 if (allocated_size > chunk_heap->size - chunk_heap->allocated)
103 allocated_size = ALIGN(buffer->size, chunk_heap->chunk_size);
146 size_t size; local
149 size = heap_data->size;
151 ion_pages_sync_for_device(NULL, page, size, DMA_BIDIRECTIONAL);
153 ret = ion_heap_pages_zero(page, size, pgprot_writecombin
36 ion_chunk_heap_allocate(struct ion_heap *heap, struct ion_buffer *buffer, unsigned long size, unsigned long align, unsigned long flags) argument
[all...]
/drivers/media/usb/uvc/
H A Duvc_ctrl.c45 .size = 2,
54 .size = 2,
63 .size = 2,
73 .size = 2,
82 .size = 2,
91 .size = 2,
100 .size = 2,
110 .size = 4,
120 .size = 2,
129 .size
1726 __u16 size; local
1923 unsigned int size; local
2056 unsigned int size; local
[all...]
/drivers/parisc/
H A Dccio-dma.c229 u32 pdir_size; /* bytes, function of IOV Space size */
232 u32 res_size; /* size of resource map in bytes */
295 #define CCIO_SEARCH_LOOP(ioc, res_idx, mask, size) \
304 ioc->res_hint = res_idx + (size >> 3); \
309 #define CCIO_FIND_FREE_MAPPING(ioa, res_idx, mask, size) \
310 u##size *res_ptr = (u##size *)&((ioc)->res_map[ioa->res_hint & ~((size >> 3) - 1)]); \
311 u##size *res_end = (u##size *)
340 ccio_alloc_range(struct ioc *ioc, struct device *dev, size_t size) argument
733 ccio_map_single(struct device *dev, void *addr, size_t size, enum dma_data_direction direction) argument
801 ccio_unmap_single(struct device *dev, dma_addr_t iova, size_t size, enum dma_data_direction direction) argument
839 ccio_alloc_consistent(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t flag) argument
872 ccio_free_consistent(struct device *dev, size_t size, void *cpu_addr, dma_addr_t dma_handle) argument
1417 new_ioc_area(struct resource *res, unsigned long size, unsigned long min, unsigned long max, unsigned long align) argument
1436 expand_ioc_area(struct resource *res, unsigned long size, unsigned long min, unsigned long max, unsigned long align) argument
1468 ccio_allocate_resource(const struct parisc_device *dev, struct resource *res, unsigned long size, unsigned long min, unsigned long max, unsigned long align) argument
[all...]
/drivers/uwb/
H A Dneh.c72 * body, btw). So we need a facility to get the event size given the
74 * Tables), check nest.c--as well, you can associate the size to
77 * - Most notifications/events are fixed size; only a few are variable
78 * size (NEST takes care of that).
81 * buffer, as they know the size. Listeners to notifications don't,
101 * called with -ETIMEDOUT as the event size.
301 static void uwb_rc_neh_cb(struct uwb_rc_neh *neh, struct uwb_rceb *rceb, size_t size) argument
303 (*neh->cb)(neh->rc, neh->arg, rceb, size);
319 * @event_size: Pointer to the size of the RCEB buffer. Might be
324 * the right size (th
379 uwb_rc_notif(struct uwb_rc *rc, struct uwb_rceb *rceb, ssize_t size) argument
408 uwb_rc_neh_grok_event(struct uwb_rc *rc, struct uwb_rceb *rceb, size_t size) argument
485 size_t size, real_size, event_size; local
[all...]
/drivers/dma/bestcomm/
H A Dsram.c62 /* Get address and size of the sram */
74 bcom_sram->size = (unsigned int) size64;
77 if (!request_mem_region(bcom_sram->base_phys, bcom_sram->size, owner)) {
86 bcom_sram->base_virt = (void*) ioremap(bcom_sram->base_phys, bcom_sram->size);
91 owner, (long)bcom_sram->base_phys, bcom_sram->size );
110 rh_attach_region(bcom_sram->rh, 0, bcom_sram->size);
127 release_mem_region(bcom_sram->base_phys, bcom_sram->size);
142 release_mem_region(bcom_sram->base_phys, bcom_sram->size);
149 void* bcom_sram_alloc(int size, int align, phys_addr_t *phys) argument
154 offset = rh_alloc_align(bcom_sram->rh, size, alig
[all...]
/drivers/mtd/maps/
H A Dscb2_flash.c66 .size = 0,
88 mtd->size = map->size;
118 if (region->numblocks * region->erasesize > mtd->size) {
119 region->numblocks = ((unsigned long)mtd->size /
164 scb2_map.size = SCB2_WINDOW;
189 printk(KERN_NOTICE MODNAME ": chip size 0x%llx at offset 0x%llx\n",
190 (unsigned long long)scb2_mtd->size,
191 (unsigned long long)(SCB2_WINDOW - scb2_mtd->size));
204 mtd_lock(scb2_mtd, 0, scb2_mtd->size);
[all...]
H A Dimpa7.c37 .size = WINDOW_SIZE0,
42 .size = WINDOW_SIZE1,
54 .size = 0x800000,
63 static struct { u_long addr; u_long size; } pt[NUM_FLASHBANKS] = { member in struct:__anon2625
72 pt[i].size, pt[i].addr);
75 impa7_map[i].virt = ioremap(pt[i].addr, pt[i].size);
H A Drbtx4939-flash.c54 unsigned long size; local
70 size = resource_size(res);
73 if (!devm_request_mem_region(&dev->dev, res->start, size,
79 info->map.size = size;
82 info->map.virt = devm_ioremap(&dev->dev, info->map.phys, size);
/drivers/net/usb/
H A Dgl620a.c57 // interrupt read buffer size
65 // max receive buffer size
84 u32 size; local
105 // decrement the length for the packet count size 4 bytes
110 size = le32_to_cpu(packet->packet_length);
113 if (size > GL_MAX_PACKET_LEN) {
115 size);
120 gl_skb = alloc_skb(size, GFP_ATOMIC);
124 memcpy(skb_put(gl_skb, size),
125 packet->packet_data, size); local
[all...]
/drivers/s390/char/
H A Dsclp_ocf.c46 size_t size; local
68 size = min(OCF_LENGTH_HMC_NETWORK, (size_t) netid->length);
69 memcpy(hmc_network, netid + 1, size);
70 EBCASC(hmc_network, size);
71 hmc_network[size] = 0;
74 size = min(OCF_LENGTH_CPC_NAME, (size_t) cpc->length);
75 memcpy(cpc_name, cpc + 1, size);
76 EBCASC(cpc_name, size);
77 cpc_name[size] = 0;
/drivers/gpu/drm/nouveau/core/engine/fifo/
H A Dbase.c37 nouveau_fifo_event_ctor(struct nouveau_object *object, void *data, u32 size, argument
40 if (size == 0) {
41 notify->size = 0;
58 int bar, u32 addr, u32 size, u32 pushbuf,
109 addr + size * chan->chid;
110 chan->size = size;
141 _nouveau_fifo_channel_map(struct nouveau_object *object, u64 *addr, u32 *size) argument
145 *size = chan->size;
55 nouveau_fifo_channel_create_(struct nouveau_object *parent, struct nouveau_object *engine, struct nouveau_oclass *oclass, int bar, u32 addr, u32 size, u32 pushbuf, u64 engmask, int len, void **ptr) argument
174 nouveau_fifo_uevent_ctor(struct nouveau_object *object, void *data, u32 size, struct nvkm_notify *notify) argument
[all...]
/drivers/mtd/devices/
H A Dms02-nv.c84 size_t size; local
101 size = (ms02nv_diag & MS02NV_DIAG_SIZE_MASK) << MS02NV_DIAG_SIZE_SHIFT;
102 if (size > MS02NV_CSR)
103 size = MS02NV_CSR;
105 return size;
117 size_t size, fixsize; local
135 size = ms02nv_probe_one(addr);
136 if (!size)
175 user_res->end = addr + size - 1;
195 mp->size
[all...]
/drivers/gpu/drm/nouveau/core/engine/
H A Dfalcon.c124 falcon->code.data = vmemdup(fw->data, fw->size);
125 falcon->code.size = fw->size;
127 falcon->data.size = 0;
147 falcon->data.data = vmemdup(fw->data, fw->size);
148 falcon->data.size = fw->size;
162 falcon->code.data = vmemdup(fw->data, fw->size);
163 falcon->code.size = fw->size;
[all...]
/drivers/gpu/drm/radeon/
H A Dradeon_sa.c52 unsigned size, u32 align, u32 domain, u32 flags)
58 sa_manager->size = size;
67 r = radeon_bo_create(rdev, size, align, true,
93 sa_manager->size = 0;
187 return sa_manager->size;
192 unsigned size, unsigned align)
200 if ((eoffset - soffset) >= (size + wasted)) {
205 sa_bo->eoffset = soffset + size;
218 * @size
50 radeon_sa_bo_manager_init(struct radeon_device *rdev, struct radeon_sa_manager *sa_manager, unsigned size, u32 align, u32 domain, u32 flags) argument
190 radeon_sa_bo_try_alloc(struct radeon_sa_manager *sa_manager, struct radeon_sa_bo *sa_bo, unsigned size, unsigned align) argument
224 radeon_sa_event(struct radeon_sa_manager *sa_manager, unsigned size, unsigned align) argument
312 radeon_sa_bo_new(struct radeon_device *rdev, struct radeon_sa_manager *sa_manager, struct radeon_sa_bo **sa_bo, unsigned size, unsigned align) argument
[all...]
/drivers/acpi/
H A Dosl.c95 acpi_size size; member in struct:acpi_ioremap
284 acpi_map_lookup(acpi_physical_address phys, acpi_size size) argument
290 phys + size <= map->phys + map->size)
298 acpi_map_vaddr_lookup(acpi_physical_address phys, unsigned int size) argument
302 map = acpi_map_lookup(phys, size);
309 void __iomem *acpi_os_get_iomem(acpi_physical_address phys, unsigned int size) argument
315 map = acpi_map_lookup(phys, size);
327 acpi_map_lookup_virt(void __iomem *virt, acpi_size size) argument
333 virt + size <
371 acpi_os_map_iomem(acpi_physical_address phys, acpi_size size) argument
424 acpi_os_map_memory(acpi_physical_address phys, acpi_size size) argument
445 acpi_os_unmap_iomem(void __iomem *virt, acpi_size size) argument
468 acpi_os_unmap_memory(void *virt, acpi_size size) argument
474 early_acpi_os_unmap_memory(void __iomem *virt, acpi_size size) argument
598 acpi_initrd_override(void *data, size_t size) argument
683 phys_addr_t size = acpi_initrd_files[no].size; local
951 unsigned int size = width / 8; local
1010 unsigned int size = width / 8; local
1052 int result, size; local
1084 int result, size; local
1732 acpi_os_create_cache(char *name, u16 size, u16 depth, acpi_cache_t ** cache) argument
[all...]
/drivers/gpu/drm/nouveau/core/subdev/instmem/
H A Dbase.c72 struct nouveau_object *parent, u32 size, u32 align,
77 struct nouveau_instobj_args args = { .size = size, .align = align };
93 iobj->suspend = vmalloc(iobj->size);
99 for (i = 0; i < iobj->size; i += 4)
127 for (i = 0; i < iobj->size; i += 4)
71 nouveau_instmem_alloc(struct nouveau_instmem *imem, struct nouveau_object *parent, u32 size, u32 align, struct nouveau_object **pobject) argument
/drivers/hid/
H A Dhid-roccat-common.h29 void *data, uint size);
31 void const *data, uint size);
33 uint command, void const *buf, uint size);
76 .size = SIZE, \
85 .size = SIZE, \
93 .size = SIZE, \
/drivers/misc/sgi-xp/
H A Dxp_uv.c90 xp_expand_memprotect_uv(unsigned long phys_addr, unsigned long size) argument
95 ret = uv_bios_change_memprotect(phys_addr, size, UV_MEMPROT_ALLOW_RW);
105 ret = sn_change_memprotect(phys_addr, size, SN_MEMPROT_ACCESS_CLASS_1,
119 xp_restrict_memprotect_uv(unsigned long phys_addr, unsigned long size) argument
124 ret = uv_bios_change_memprotect(phys_addr, size,
135 ret = sn_change_memprotect(phys_addr, size, SN_MEMPROT_ACCESS_CLASS_0,
/drivers/mtd/onenand/
H A Dgeneric.c42 unsigned long size = resource_size(res); local
49 if (!request_mem_region(res->start, size, dev_name(&pdev->dev))) {
54 info->onenand.base = ioremap(res->start, size);
83 release_mem_region(res->start, size);
94 unsigned long size = resource_size(res); local
98 release_mem_region(res->start, size);

Completed in 2100 milliseconds

1234567891011>>