/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)); 111 uint command, void const *buf, uint size) 24 roccat_common2_receive(struct usb_device *usb_dev, uint report_id, void *data, uint size) argument 46 roccat_common2_send(struct usb_device *usb_dev, uint report_id, void const *data, uint size) argument 110 roccat_common2_send_with_status(struct usb_device *usb_dev, uint command, void const *buf, uint size) argument [all...] |
/drivers/net/wireless/ath/ath9k/ |
H A D | dfs_debug.c | 28 len += scnprintf(buf + len, size - len, "%28s : %10u\n", s, \ 31 len += scnprintf(buf + len, size - len, "%28s : %10u\n", s, \ 40 unsigned int len = 0, size = 8000; local 43 buf = kzalloc(size, GFP_KERNEL); 47 len += scnprintf(buf + len, size - len, "DFS support for " 54 len += scnprintf(buf + len, size - len, 61 len += scnprintf(buf + len, size - len, "Pulse detector statistics:\n"); 71 len += scnprintf(buf + len, size - len, "Radar detector statistics " 76 len += scnprintf(buf + len, size - len, "Global Pool statistics:\n"); 86 if (len > size) [all...] |
H A D | common-debug.c | 23 u32 len = 0, size = 6000; local 27 buf = kzalloc(size, GFP_KERNEL); 31 len = ah->eep_ops->dump_eeprom(ah, false, buf, len, size); 59 u32 len = 0, size = 1500; local 63 buf = kzalloc(size, GFP_KERNEL); 67 len = ah->eep_ops->dump_eeprom(ah, true, buf, len, size); 128 len += scnprintf(buf + len, size - len, \ 135 unsigned int len = 0, size = 1600; local 138 buf = kzalloc(size, GFP_KERNEL); 160 if (len > size) 195 unsigned int len = 0, size = 1600; local [all...] |
/drivers/media/v4l2-core/ |
H A D | videobuf2-vmalloc.c | 29 unsigned long size; member in struct:vb2_vmalloc_buf 38 static void *vb2_vmalloc_alloc(void *alloc_ctx, unsigned long size, gfp_t gfp_flags) argument 46 buf->size = size; 47 buf->vaddr = vmalloc_user(buf->size); 53 pr_debug("vmalloc of size %ld failed\n", buf->size); 73 unsigned long size, int write) 87 buf->size = size; 72 vb2_vmalloc_get_userptr(void *alloc_ctx, unsigned long vaddr, unsigned long size, int write) argument 242 vb2_vmalloc_attach_dmabuf(void *alloc_ctx, struct dma_buf *dbuf, unsigned long size, int write) argument [all...] |
H A D | videobuf-dma-contig.c | 30 unsigned long size; member in struct:videobuf_dma_contig_memory 42 unsigned long size, gfp_t flags) 44 mem->size = size; 45 mem->vaddr = dma_alloc_coherent(dev, mem->size, 49 dev_err(dev, "memory alloc size %ld failed\n", mem->size); 53 dev_dbg(dev, "dma mapped data is at %p (%ld)\n", mem->vaddr, mem->size); 61 dma_free_coherent(dev, mem->size, mem->vaddr, mem->dma_handle); 147 mem->size 40 __videobuf_dc_alloc(struct device *dev, struct videobuf_dma_contig_memory *mem, unsigned long size, gfp_t flags) argument 211 __videobuf_alloc(size_t size) argument 283 unsigned long size; local [all...] |
/drivers/mmc/core/ |
H A D | sdio_cis.c | 28 const unsigned char *buf, unsigned size) 36 size -= 2; 39 for (i = 0; i < size; i++) { 48 size = i; 50 buffer = kzalloc(sizeof(char*) * nr_strings + size, GFP_KERNEL); 75 const unsigned char *buf, unsigned size) 115 const unsigned char *buf, unsigned size) 125 if (size >= tpl->min_size) { 127 ret = tpl->parse(card, func, buf, size); 136 mmc_hostname(card->host), tpl_descr, code, size); 27 cistpl_vers_1(struct mmc_card *card, struct sdio_func *func, const unsigned char *buf, unsigned size) argument 74 cistpl_manfid(struct mmc_card *card, struct sdio_func *func, const unsigned char *buf, unsigned size) argument 111 cis_tpl_parse(struct mmc_card *card, struct sdio_func *func, const char *tpl_descr, const struct cis_tpl *tpl, int tpl_count, unsigned char code, const unsigned char *buf, unsigned size) argument 146 cistpl_funce_common(struct mmc_card *card, struct sdio_func *func, const unsigned char *buf, unsigned size) argument 163 cistpl_funce_func(struct mmc_card *card, struct sdio_func *func, const unsigned char *buf, unsigned size) argument 208 cistpl_funce(struct mmc_card *card, struct sdio_func *func, const unsigned char *buf, unsigned size) argument [all...] |
/drivers/usb/wusbcore/ |
H A D | wa-nep.c | 27 * WA notifications are limited in size; most of them are three or 63 size_t size; member in struct:wa_notif_work 72 * @wa, the size of the buffer and the work queue 100 size_t size; local 111 size = nw->size; 114 while (size) { 115 if (size < sizeof(*notif_hdr)) { 116 missing = sizeof(*notif_hdr) - size; 120 if (size < notif_hd 181 wa_nep_queue(struct wahc *wa, size_t size) argument [all...] |
/drivers/net/wimax/i2400m/ |
H A D | tx.c | 107 * 'size' of the TX message, so we can iterate over them. It also 112 * - The MSG-HDR PLD1...PLD2 stuff has to be a size multiple of 16. 132 * - Each payload has to be size-padded to 16 bytes; before appending 149 * (with a moved message header to make sure it is size-aligned to 158 * | msg_hdr to skip (size |= 0x80000) | 186 * | msg_hdr (size X) [this message is closed] | \|/ 219 * | msg_hdr (size X) \|/ [message is open] | 257 * TX Buffer size 263 * tx buffer size to 64KiB. 269 * packets are MTU size (~140 434 i2400m_tx_fifo_push(struct i2400m *i2400m, size_t size, size_t padding, bool try_head) argument [all...] |
/drivers/xen/xen-pciback/ |
H A D | conf_space.c | 24 #define DEFINE_PCI_CONFIG(op, size, type) \ 25 int xen_pcibk_##op##_config_##size \ 28 return pci_##op##_config_##size(dev, offset, value); \ 48 switch (field->size) { 74 switch (field->size) { 94 static inline u32 get_mask(int size) argument 96 if (size == 1) 98 else if (size == 2) 104 static inline int valid_request(int offset, int size) argument 107 if ((size 144 xen_pcibk_config_read(struct pci_dev *dev, int offset, int size, u32 *ret_val) argument 208 xen_pcibk_config_write(struct pci_dev *dev, int offset, int size, u32 value) argument [all...] |
/drivers/gpu/drm/ |
H A D | drm_mm.c | 94 unsigned long size, 99 unsigned long size, 108 unsigned long size, unsigned alignment, 124 adj_start = adj_end - size; 145 node->size = size; 153 BUG_ON(node->start + node->size > adj_end); 168 * meaning that start, size and color must be set by the caller. This is useful 179 unsigned long end = node->start + node->size; 218 * @size 106 drm_mm_insert_helper(struct drm_mm_node *hole_node, struct drm_mm_node *node, unsigned long size, unsigned alignment, unsigned long color, enum drm_mm_allocator_flags flags) argument 229 drm_mm_insert_node_generic(struct drm_mm *mm, struct drm_mm_node *node, unsigned long size, unsigned alignment, unsigned long color, enum drm_mm_search_flags sflags, enum drm_mm_allocator_flags aflags) argument 247 drm_mm_insert_helper_range(struct drm_mm_node *hole_node, struct drm_mm_node *node, unsigned long size, unsigned alignment, unsigned long color, unsigned long start, unsigned long end, enum drm_mm_allocator_flags flags) argument 326 drm_mm_insert_node_in_range_generic(struct drm_mm *mm, struct drm_mm_node *node, unsigned long size, unsigned alignment, unsigned long color, unsigned long start, unsigned long end, enum drm_mm_search_flags sflags, enum drm_mm_allocator_flags aflags) argument 390 check_free_hole(unsigned long start, unsigned long end, unsigned long size, unsigned alignment) argument 405 drm_mm_search_free_generic(const struct drm_mm *mm, unsigned long size, unsigned alignment, unsigned long color, enum drm_mm_search_flags flags) argument 447 drm_mm_search_free_in_range_generic(const struct drm_mm *mm, unsigned long size, unsigned alignment, unsigned long color, unsigned long start, unsigned long end, enum drm_mm_search_flags flags) argument 563 drm_mm_init_scan(struct drm_mm *mm, unsigned long size, unsigned alignment, unsigned long color) argument 596 drm_mm_init_scan_with_range(struct drm_mm *mm, unsigned long size, unsigned alignment, unsigned long color, unsigned long start, unsigned long end) argument 734 drm_mm_init(struct drm_mm * mm, unsigned long start, unsigned long size) argument [all...] |
/drivers/net/ethernet/mellanox/mlx4/ |
H A D | profile.c | 76 u64 size; member in struct:mlx4_resource 94 * We want to scale the number of MTTs with the size of the 111 profile[MLX4_RES_QP].size = dev_cap->qpc_entry_sz; 112 profile[MLX4_RES_RDMARC].size = dev_cap->rdmarc_entry_sz; 113 profile[MLX4_RES_ALTC].size = dev_cap->altc_entry_sz; 114 profile[MLX4_RES_AUXC].size = dev_cap->aux_entry_sz; 115 profile[MLX4_RES_SRQ].size = dev_cap->srq_entry_sz; 116 profile[MLX4_RES_CQ].size = dev_cap->cqc_entry_sz; 117 profile[MLX4_RES_EQ].size = dev_cap->eqc_entry_sz; 118 profile[MLX4_RES_DMPT].size [all...] |
/drivers/video/ |
H A D | hdmi.c | 31 static void hdmi_infoframe_checksum(void *buffer, size_t size) argument 38 for (i = 0; i < size; i++) 66 * @size: size of buffer 77 size_t size) 84 if (size < length) 87 memset(buffer, 0, size); 173 * @size: size of buffer 184 size_t size) 76 hdmi_avi_infoframe_pack(struct hdmi_avi_infoframe *frame, void *buffer, size_t size) argument 183 hdmi_spd_infoframe_pack(struct hdmi_spd_infoframe *frame, void *buffer, size_t size) argument 247 hdmi_audio_infoframe_pack(struct hdmi_audio_infoframe *frame, void *buffer, size_t size) argument 329 hdmi_vendor_infoframe_pack(struct hdmi_vendor_infoframe *frame, void *buffer, size_t size) argument 386 hdmi_vendor_any_infoframe_pack(union hdmi_vendor_any_infoframe *frame, void *buffer, size_t size) argument 411 hdmi_infoframe_pack(union hdmi_infoframe *frame, void *buffer, size_t size) argument [all...] |
/drivers/gpu/drm/radeon/ |
H A D | radeon_acpi.c | 41 u16 size; /* structure size in bytes (includes size field) */ member in struct:atif_verify_interface 48 u16 size; /* structure size in bytes (includes size field) */ member in struct:atif_system_params 55 u16 size; /* structure size in bytes (includes size field) */ member in struct:atif_sbios_requests 72 u16 size; /* structur member in struct:atcs_verify_interface 80 u16 size; /* structure size in bytes (includes size field) */ member in struct:atcs_pref_req_input 89 u16 size; /* structure size in bytes (includes size field) */ member in struct:atcs_pref_req_output 205 size_t size; local 252 size_t size; local 313 size_t size; local 491 size_t size; local 591 size_t size; local [all...] |
/drivers/xen/ |
H A D | swiotlb-xen.c | 129 static inline int range_straddles_page_boundary(phys_addr_t p, size_t size) argument 134 if (offset + size <= PAGE_SIZE) 136 if (check_pages_physically_contiguous(pfn, offset, size)) 162 xen_swiotlb_fixup(void *buf, size_t size, unsigned long nslabs) argument 298 xen_swiotlb_alloc_coherent(struct device *hwdev, size_t size, argument 303 int order = get_order(size); 316 if (dma_alloc_from_coherent(hwdev, size, dma_handle, &ret)) 324 ret = xen_alloc_coherent_pages(hwdev, size, dma_handle, flags, attrs); 338 if (((dev_addr + size - 1 <= dma_mask)) && 339 !range_straddles_page_boundary(phys, size)) 354 xen_swiotlb_free_coherent(struct device *hwdev, size_t size, void *vaddr, dma_addr_t dev_addr, struct dma_attrs *attrs) argument 387 xen_swiotlb_map_page(struct device *dev, struct page *page, unsigned long offset, size_t size, enum dma_data_direction dir, struct dma_attrs *attrs) argument 442 xen_unmap_single(struct device *hwdev, dma_addr_t dev_addr, size_t size, enum dma_data_direction dir, struct dma_attrs *attrs) argument 470 xen_swiotlb_unmap_page(struct device *hwdev, dma_addr_t dev_addr, size_t size, enum dma_data_direction dir, struct dma_attrs *attrs) argument 489 xen_swiotlb_sync_single(struct device *hwdev, dma_addr_t dev_addr, size_t size, enum dma_data_direction dir, enum dma_sync_target target) argument 514 xen_swiotlb_sync_single_for_cpu(struct device *hwdev, dma_addr_t dev_addr, size_t size, enum dma_data_direction dir) argument 522 xen_swiotlb_sync_single_for_device(struct device *hwdev, dma_addr_t dev_addr, size_t size, enum dma_data_direction dir) argument [all...] |
/drivers/block/ |
H A D | z2ram.c | 89 unsigned long size = Z2RAM_CHUNKSIZE - addr; local 92 if (len < size) 93 size = len; 96 memcpy(buffer, (char *)addr, size); 98 memcpy((char *)addr, buffer, size); 99 start += size; 100 len -= size; 176 unsigned long size, paddr, vaddr; local 185 size = m68k_memory[index].size [all...] |
/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_buf.h | 17 unsigned int size);
|
/drivers/gpu/drm/nouveau/core/engine/graph/ |
H A D | nv40.h | 21 int nv40_grctx_init(struct nouveau_device *, u32 *size);
|
/drivers/gpu/drm/nouveau/core/engine/perfmon/ |
H A D | nv40.h | 17 struct nouveau_oclass *, void *data, u32 size,
|
/drivers/gpu/drm/nouveau/nvif/ |
H A D | device.c | 35 u32 handle, u32 oclass, void *data, u32 size, 39 data, size, &device->base); 58 void *data, u32 size, struct nvif_device **pdevice) 63 oclass, data, size, device); 34 nvif_device_init(struct nvif_object *parent, void (*dtor)(struct nvif_device *), u32 handle, u32 oclass, void *data, u32 size, struct nvif_device *device) argument 57 nvif_device_new(struct nvif_object *parent, u32 handle, u32 oclass, void *data, u32 size, struct nvif_device **pdevice) argument
|
/drivers/gpu/drm/qxl/ |
H A D | qxl_dumb.c | 42 args->size = pitch * args->height; 43 args->size = ALIGN(args->size, PAGE_SIZE); 62 args->size, &surf, &qobj,
|
/drivers/infiniband/hw/cxgb3/ |
H A D | cxio_resource.h | 61 extern u32 cxio_hal_pblpool_alloc(struct cxio_rdev *rdev_p, int size); 62 extern void cxio_hal_pblpool_free(struct cxio_rdev *rdev_p, u32 addr, int size); 67 extern u32 cxio_hal_rqtpool_alloc(struct cxio_rdev *rdev_p, int size); 68 extern void cxio_hal_rqtpool_free(struct cxio_rdev *rdev_p, u32 addr, int size);
|
/drivers/iommu/ |
H A D | shmobile-ipmmu.h | 24 void ipmmu_tlb_set(struct shmobile_ipmmu *ipmmu, unsigned long phys, int size,
|
/drivers/media/usb/tm6000/ |
H A D | tm6000-usb-isoc.h | 25 /* max packet size of isoc transaction */ 39 int pos, size, pktsize; member in struct:usb_isoc_ctl
|
/drivers/misc/ibmasm/ |
H A D | heartbeat.c | 85 void ibmasm_receive_heartbeat(struct service_processor *sp, void *message, size_t size) argument 97 size = min(size, cmd->buffer_size); 98 memcpy_fromio(cmd->buffer, message, size);
|
/drivers/misc/mic/host/ |
H A D | mic_smpt.h | 47 * @page_size: System memory page size. 75 dma_addr_t mic_map_single(struct mic_device *mdev, void *va, size_t size); 77 dma_addr_t mic_addr, size_t size); 79 dma_addr_t dma_addr, size_t size); 80 void mic_unmap(struct mic_device *mdev, dma_addr_t mic_addr, size_t size);
|