Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 4451) sorted by relevance

12345678910>>...179

/drivers/staging/media/atomisp/pci/atomisp2/css2400/css_2400_system/hive_isp_css_2400_system_generated/
Dia_css_isp_configs.c34 unsigned size = 0; in ia_css_configure_iterator() local
36 size = binary->info->mem_offsets.offsets.config->dmem.iterator.size; in ia_css_configure_iterator()
39 if (size) { in ia_css_configure_iterator()
42 config_dmem, size); } in ia_css_configure_iterator()
58 unsigned size = 0; in ia_css_configure_copy_output() local
60 size = binary->info->mem_offsets.offsets.config->dmem.copy_output.size; in ia_css_configure_copy_output()
63 if (size) { in ia_css_configure_copy_output()
66 config_dmem, size); } in ia_css_configure_copy_output()
82 unsigned size = 0; in ia_css_configure_crop() local
84 size = binary->info->mem_offsets.offsets.config->dmem.crop.size; in ia_css_configure_crop()
[all …]
Dia_css_isp_states.c30 unsigned size = binary->info->mem_offsets.offsets.state->vmem.aa.size; in ia_css_initialize_aa_state() local
34 if (size) in ia_css_initialize_aa_state()
35 …et(&binary->mem_params.params[IA_CSS_PARAM_CLASS_STATE][IA_CSS_ISP_VMEM].address[offset], 0, size); in ia_css_initialize_aa_state()
50 unsigned size = binary->info->mem_offsets.offsets.state->vmem.cnr.size; in ia_css_initialize_cnr_state() local
54 if (size) { in ia_css_initialize_cnr_state()
57 size); in ia_css_initialize_cnr_state()
73 unsigned size = binary->info->mem_offsets.offsets.state->vmem.cnr2.size; in ia_css_initialize_cnr2_state() local
77 if (size) { in ia_css_initialize_cnr2_state()
80 size); in ia_css_initialize_cnr2_state()
96 unsigned size = binary->info->mem_offsets.offsets.state->vmem.dp.size; in ia_css_initialize_dp_state() local
[all …]
/drivers/staging/media/atomisp/pci/atomisp2/css2400/css_2401_csi2p_system/hive_isp_css_2401_system_csi2p_generated/
Dia_css_isp_configs.c34 unsigned size = 0; in ia_css_configure_iterator() local
36 size = binary->info->mem_offsets.offsets.config->dmem.iterator.size; in ia_css_configure_iterator()
39 if (size) { in ia_css_configure_iterator()
42 config_dmem, size); } in ia_css_configure_iterator()
58 unsigned size = 0; in ia_css_configure_copy_output() local
60 size = binary->info->mem_offsets.offsets.config->dmem.copy_output.size; in ia_css_configure_copy_output()
63 if (size) { in ia_css_configure_copy_output()
66 config_dmem, size); } in ia_css_configure_copy_output()
82 unsigned size = 0; in ia_css_configure_crop() local
84 size = binary->info->mem_offsets.offsets.config->dmem.crop.size; in ia_css_configure_crop()
[all …]
Dia_css_isp_states.c31 unsigned size = binary->info->mem_offsets.offsets.state->vmem.aa.size; in ia_css_initialize_aa_state() local
34 if (size) in ia_css_initialize_aa_state()
35 …et(&binary->mem_params.params[IA_CSS_PARAM_CLASS_STATE][IA_CSS_ISP_VMEM].address[offset], 0, size); in ia_css_initialize_aa_state()
50 unsigned size = binary->info->mem_offsets.offsets.state->vmem.cnr.size; in ia_css_initialize_cnr_state() local
54 if (size) { in ia_css_initialize_cnr_state()
57 size); in ia_css_initialize_cnr_state()
73 unsigned size = binary->info->mem_offsets.offsets.state->vmem.cnr2.size; in ia_css_initialize_cnr2_state() local
77 if (size) { in ia_css_initialize_cnr2_state()
80 size); in ia_css_initialize_cnr2_state()
96 unsigned size = binary->info->mem_offsets.offsets.state->vmem.dp.size; in ia_css_initialize_dp_state() local
[all …]
/drivers/staging/media/atomisp/pci/atomisp2/css2400/css_2401_system/hive_isp_css_2401_system_generated/
Dia_css_isp_configs.c34 unsigned size = 0; in ia_css_configure_iterator() local
36 size = binary->info->mem_offsets.offsets.config->dmem.iterator.size; in ia_css_configure_iterator()
39 if (size) { in ia_css_configure_iterator()
42 config_dmem, size); } in ia_css_configure_iterator()
58 unsigned size = 0; in ia_css_configure_copy_output() local
60 size = binary->info->mem_offsets.offsets.config->dmem.copy_output.size; in ia_css_configure_copy_output()
63 if (size) { in ia_css_configure_copy_output()
66 config_dmem, size); } in ia_css_configure_copy_output()
82 unsigned size = 0; in ia_css_configure_crop() local
84 size = binary->info->mem_offsets.offsets.config->dmem.crop.size; in ia_css_configure_crop()
[all …]
Dia_css_isp_states.c31 unsigned size = binary->info->mem_offsets.offsets.state->vmem.aa.size; in ia_css_initialize_aa_state() local
34 if (size) in ia_css_initialize_aa_state()
35 …et(&binary->mem_params.params[IA_CSS_PARAM_CLASS_STATE][IA_CSS_ISP_VMEM].address[offset], 0, size); in ia_css_initialize_aa_state()
50 unsigned size = binary->info->mem_offsets.offsets.state->vmem.cnr.size; in ia_css_initialize_cnr_state() local
54 if (size) { in ia_css_initialize_cnr_state()
57 size); in ia_css_initialize_cnr_state()
73 unsigned size = binary->info->mem_offsets.offsets.state->vmem.cnr2.size; in ia_css_initialize_cnr2_state() local
77 if (size) { in ia_css_initialize_cnr2_state()
80 size); in ia_css_initialize_cnr2_state()
96 unsigned size = binary->info->mem_offsets.offsets.state->vmem.dp.size; in ia_css_initialize_dp_state() local
[all …]
/drivers/mtd/tests/
Dmtd_nandecctest.c47 size_t size) in single_bit_error_data() argument
49 unsigned int offset = prandom_u32() % (size * BITS_PER_BYTE); in single_bit_error_data()
51 memcpy(error_data, correct_data, size); in single_bit_error_data()
56 size_t size) in double_bit_error_data() argument
60 offset[0] = prandom_u32() % (size * BITS_PER_BYTE); in double_bit_error_data()
62 offset[1] = prandom_u32() % (size * BITS_PER_BYTE); in double_bit_error_data()
65 memcpy(error_data, correct_data, size); in double_bit_error_data()
71 static unsigned int random_ecc_bit(size_t size) in random_ecc_bit() argument
75 if (size == 256) { in random_ecc_bit()
88 size_t size) in single_bit_error_ecc() argument
[all …]
/drivers/gpu/drm/selftests/
Dtest-drm_mm.c105 static bool assert_continuous(const struct drm_mm *mm, u64 size) in assert_continuous() argument
123 if (node->size != size) { in assert_continuous()
125 n, size, node->size); in assert_continuous()
135 drm_mm_for_each_node_in_range(check, mm, addr, addr + size) { in assert_continuous()
145 addr, size); in assert_continuous()
149 addr += size; in assert_continuous()
168 u64 size, u64 alignment, unsigned long color) in assert_node() argument
177 if (node->size != size) { in assert_node()
179 node->size, size); in assert_node()
204 const unsigned int size = 4096; in igt_init() local
[all …]
/drivers/misc/mic/scif/
Dscif_rb.c25 #define scif_rb_ring_cnt(head, tail, size) CIRC_CNT(head, tail, size) argument
26 #define scif_rb_ring_space(head, tail, size) CIRC_SPACE(head, tail, size) argument
37 void *rb_base, u8 size) in scif_rb_init() argument
40 rb->size = (1 << size); in scif_rb_init()
49 void *msg, u32 size) in memcpy_torb() argument
53 if (header + size >= rb->rb_base + rb->size) { in memcpy_torb()
55 size1 = (u32)(rb->rb_base + rb->size - header); in memcpy_torb()
56 size2 = size - size1; in memcpy_torb()
61 memcpy_toio((void __iomem __force *)header, msg, size); in memcpy_torb()
67 void *msg, u32 size) in memcpy_fromrb() argument
[all …]
/drivers/uwb/
Dest.c68 .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 = sizeof(struct uwb_rc_evt_bp_slot_change),
87 .size = sizeof(struct uwb_rc_evt_bp_switch_ie_rcv),
91 .size = sizeof(struct uwb_rc_evt_dev_addr_conflict),
94 .size = sizeof(struct uwb_rc_evt_drp_avail)
97 .size = sizeof(struct uwb_rc_evt_drp),
101 .size = sizeof(struct uwb_rc_evt_bp_switch_status),
[all …]
/drivers/acpi/
Dnvs.c22 __u64 size; member
29 static int suspend_nvs_register(unsigned long start, unsigned long size);
37 int acpi_nvs_register(__u64 start, __u64 size) in acpi_nvs_register() argument
45 region->size = size; in acpi_nvs_register()
48 return suspend_nvs_register(start, size); in acpi_nvs_register()
51 int acpi_nvs_for_each_region(int (*func)(__u64 start, __u64 size, void *data), in acpi_nvs_for_each_region() argument
58 rc = func(region->phys_start, region->size, data); in acpi_nvs_for_each_region()
76 unsigned int size; member
94 static int suspend_nvs_register(unsigned long start, unsigned long size) in suspend_nvs_register() argument
99 start, start + size - 1, size); in suspend_nvs_register()
[all …]
/drivers/infiniband/hw/cxgb3/
Dcxio_dbg.c45 int size = 32; in cxio_dump_tpt() local
47 m = kmalloc(sizeof(*m) + size, GFP_ATOMIC); in cxio_dump_tpt()
53 m->len = size; in cxio_dump_tpt()
63 while (size > 0) { in cxio_dump_tpt()
66 size -= 8; in cxio_dump_tpt()
78 int size, npages; in cxio_dump_pbl() local
82 size = npages * sizeof(u64); in cxio_dump_pbl()
84 m = kmalloc(sizeof(*m) + size, GFP_ATOMIC); in cxio_dump_pbl()
90 m->len = size; in cxio_dump_pbl()
101 while (size > 0) { in cxio_dump_pbl()
[all …]
/drivers/ntb/test/
Dntb_tool.c133 resource_size_t size; member
193 size_t size, loff_t *offp, in tool_dbfn_read() argument
203 buf_size = min_t(size_t, size, 0x20); in tool_dbfn_read()
212 rc = simple_read_from_buffer(ubuf, size, offp, buf, pos); in tool_dbfn_read()
221 size_t size, loff_t *offp, in tool_dbfn_write() argument
230 buf = kmalloc(size + 1, GFP_KERNEL); in tool_dbfn_write()
234 rc = simple_write_to_buffer(buf, size, offp, ubuf, size); in tool_dbfn_write()
240 buf[size] = 0; in tool_dbfn_write()
262 return rc ? : size; in tool_dbfn_write()
266 size_t size, loff_t *offp, in tool_spadfn_read() argument
[all …]
/drivers/pnp/isapnp/
Dcore.c364 static int __init isapnp_read_tag(unsigned char *type, unsigned short *size) in isapnp_read_tag() argument
374 *size = (tmp[1] << 8) | tmp[0]; in isapnp_read_tag()
377 *size = tag & 0x07; in isapnp_read_tag()
379 if (*type == 0xff && *size == 0xffff) /* probably invalid data */ in isapnp_read_tag()
396 int size, int number) in isapnp_parse_device() argument
403 isapnp_peek(tmp, size); in isapnp_parse_device()
425 int size) in isapnp_parse_irq_resource() argument
432 isapnp_peek(tmp, size); in isapnp_parse_irq_resource()
438 if (size > 2) in isapnp_parse_irq_resource()
449 int size) in isapnp_parse_dma_resource() argument
[all …]
/drivers/mtd/
Dmtdconcat.c77 size_t size, retsize; in concat_read() local
79 if (from >= subdev->size) { in concat_read()
81 size = 0; in concat_read()
82 from -= subdev->size; in concat_read()
85 if (from + len > subdev->size) in concat_read()
87 size = subdev->size - from; in concat_read()
90 size = len; in concat_read()
92 err = mtd_read(subdev, from, size, &retsize, buf); in concat_read()
109 len -= size; in concat_read()
113 buf += size; in concat_read()
[all …]
/drivers/gpu/drm/nouveau/nvkm/core/
Dioctl.c33 struct nvkm_object *object, void *data, u32 size) in nvkm_ioctl_nop() argument
40 nvif_ioctl(object, "nop size %d\n", size); in nvkm_ioctl_nop()
41 if (!(ret = nvif_unpack(ret, &data, &size, args->v0, 0, 0, false))) { in nvkm_ioctl_nop()
51 struct nvkm_object *object, void *data, u32 size) in nvkm_ioctl_sclass() argument
59 nvif_ioctl(object, "sclass size %d\n", size); in nvkm_ioctl_sclass()
60 if (!(ret = nvif_unpack(ret, &data, &size, args->v0, 0, 0, true))) { in nvkm_ioctl_sclass()
63 if (size != args->v0.count * sizeof(args->v0.oclass[0])) in nvkm_ioctl_sclass()
84 struct nvkm_object *parent, void *data, u32 size) in nvkm_ioctl_new() argument
93 nvif_ioctl(parent, "new size %d\n", size); in nvkm_ioctl_new()
94 if (!(ret = nvif_unpack(ret, &data, &size, args->v0, 0, 0, true))) { in nvkm_ioctl_new()
[all …]
/drivers/usb/host/
Dohci-dbg.c22 #define ohci_dbg_sw(ohci, next, size, format, arg...) \ argument
26 s_len = scnprintf (*next, *size, format, ## arg ); \
27 *size -= s_len; *next += s_len; \
33 #define ohci_dbg_nosw(ohci, next, size, format, arg...) \ argument
36 s_len = scnprintf(*next, *size, format, ## arg); \
37 *size -= s_len; *next += s_len; \
46 unsigned *size) in ohci_dump_intr_mask() argument
48 ohci_dbg_sw (ohci, next, size, "%s 0x%08x%s%s%s%s%s%s%s%s%s\n", in ohci_dump_intr_mask()
68 unsigned *size) in maybe_print_eds() argument
71 ohci_dbg_sw (ohci, next, size, "%s %08x\n", label, value); in maybe_print_eds()
[all …]
/drivers/net/wireless/ath/wil6210/
Dfw_inc.c46 static int wil_fw_verify(struct wil6210_priv *wil, const u8 *data, size_t size) in wil_fw_verify() argument
54 if (size % 4) { in wil_fw_verify()
55 wil_err_fw(wil, "image size not aligned: %zu\n", size); in wil_fw_verify()
59 if (size < sizeof(*hdr) + sizeof(fh)) { in wil_fw_verify()
60 wil_err_fw(wil, "file too short: %zu bytes\n", size); in wil_fw_verify()
77 if (size < dlen) { in wil_fw_verify()
79 size, (ulong)dlen); in wil_fw_verify()
122 size_t size) in fw_ignore_section() argument
128 size_t size) in fw_handle_comment() argument
130 wil_hex_dump_fw("", DUMP_PREFIX_OFFSET, 16, 1, data, size, true); in fw_handle_comment()
[all …]
/drivers/staging/media/atomisp/pci/atomisp2/css2400/
Dia_css_memory_access.c26 mmgr_malloc(const size_t size) in mmgr_malloc() argument
28 return mmgr_alloc_attr(size, 0); in mmgr_malloc()
31 hrt_vaddress mmgr_alloc_attr(const size_t size, const uint16_t attrs) in mmgr_alloc_attr() argument
38 return (ia_css_ptr) hrt_isp_css_mm_calloc_cached(size); in mmgr_alloc_attr()
40 return (ia_css_ptr) hrt_isp_css_mm_calloc(size); in mmgr_alloc_attr()
43 return (ia_css_ptr) hrt_isp_css_mm_alloc_cached(size); in mmgr_alloc_attr()
45 return (ia_css_ptr) hrt_isp_css_mm_alloc(size); in mmgr_alloc_attr()
50 mmgr_calloc(const size_t N, const size_t size) in mmgr_calloc() argument
52 return mmgr_alloc_attr(size * N, MMGR_ATTRIBUTE_CLEARED); in mmgr_calloc()
55 void mmgr_clear(hrt_vaddress vaddr, const size_t size) in mmgr_clear() argument
[all …]
/drivers/s390/char/
Draw3270.h103 size_t size; /* size of output buffer. */ member
112 struct raw3270_request *raw3270_request_alloc(size_t size);
113 struct raw3270_request *raw3270_request_alloc_bootmem(size_t size);
212 unsigned long size; member
221 unsigned long size; in alloc_string() local
223 size = (len + 7L) & -8L; in alloc_string()
225 if (cs->size < size) in alloc_string()
227 if (cs->size > size + sizeof(struct string)) { in alloc_string()
228 char *endaddr = (char *) (cs + 1) + cs->size; in alloc_string()
229 tmp = (struct string *) (endaddr - size) - 1; in alloc_string()
[all …]
/drivers/staging/media/atomisp/pci/atomisp2/css2400/runtime/isp_param/src/
Disp_param.c42 char *address, size_t size) in ia_css_isp_param_set_mem_init() argument
45 mem_init->params[pclass][mem].size = (uint32_t)size; in ia_css_isp_param_set_mem_init()
53 hrt_vaddress address, size_t size) in ia_css_isp_param_set_css_mem_init() argument
56 mem_init->params[pclass][mem].size = (uint32_t)size; in ia_css_isp_param_set_css_mem_init()
64 uint32_t address, size_t size) in ia_css_isp_param_set_isp_mem_init() argument
67 mem_init->params[pclass][mem].size = (uint32_t)size; in ia_css_isp_param_set_isp_mem_init()
110 isp_mem_if->params[pclass][mem].size = mem_params->params[pclass][mem].size; in ia_css_init_memory_interface()
129 uint32_t size = 0; in ia_css_isp_param_allocate_isp_parameters() local
131 size = mem_initializers->params[pclass][mem].size; in ia_css_isp_param_allocate_isp_parameters()
132 mem_params->params[pclass][mem].size = size; in ia_css_isp_param_allocate_isp_parameters()
[all …]
/drivers/vfio/pci/
Dvfio_pci_igd.c34 if (pos >= vdev->region[i].size || iswrite) in vfio_pci_igd_rw()
37 count = min(count, (size_t)(vdev->region[i].size - pos)); in vfio_pci_igd_rw()
61 u32 addr, size; in vfio_pci_igd_opregion_init() local
81 size = le32_to_cpu(*(__le32 *)(base + 16)); in vfio_pci_igd_opregion_init()
82 if (!size) { in vfio_pci_igd_opregion_init()
87 size *= 1024; /* In KB */ in vfio_pci_igd_opregion_init()
89 if (size != OPREGION_SIZE) { in vfio_pci_igd_opregion_init()
91 base = memremap(addr, size, MEMREMAP_WB); in vfio_pci_igd_opregion_init()
99 &vfio_pci_igd_regops, size, VFIO_REGION_INFO_FLAG_READ, base); in vfio_pci_igd_opregion_init()
120 size_t size; in vfio_pci_igd_cfg_rw() local
[all …]
/drivers/gpu/drm/armada/
Darmada_gem.c44 static size_t roundup_gem_size(size_t size) in roundup_gem_size() argument
46 return roundup(size, PAGE_SIZE); in roundup_gem_size()
62 unsigned int order = get_order(dobj->obj.size); in armada_gem_free_object()
91 size_t size = obj->obj.size; in armada_gem_linear_back() local
104 if (size <= 8192) { in armada_gem_linear_back()
105 unsigned int order = get_order(size); in armada_gem_linear_back()
113 memset(obj->addr, 0, PAGE_ALIGN(size)); in armada_gem_linear_back()
143 unsigned align = min_t(unsigned, size, SZ_2M); in armada_gem_linear_back()
153 size, align, 0, 0); in armada_gem_linear_back()
163 ptr = ioremap_wc(obj->linear->start, size); in armada_gem_linear_back()
[all …]
/drivers/base/
Ddma-mapping.c22 size_t size; member
32 dma_free_attrs(dev, this->size, this->vaddr, this->dma_handle, in dmam_release()
41 WARN_ON(this->size != match->size || in dmam_match()
61 void *dmam_alloc_coherent(struct device *dev, size_t size, in dmam_alloc_coherent() argument
71 vaddr = dma_alloc_coherent(dev, size, dma_handle, gfp); in dmam_alloc_coherent()
79 dr->size = size; in dmam_alloc_coherent()
96 void dmam_free_coherent(struct device *dev, size_t size, void *vaddr, in dmam_free_coherent() argument
99 struct dma_devres match_data = { size, vaddr, dma_handle }; in dmam_free_coherent()
101 dma_free_coherent(dev, size, vaddr, dma_handle); in dmam_free_coherent()
120 void *dmam_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, in dmam_alloc_attrs() argument
[all …]
/drivers/staging/lustre/include/linux/libcfs/
Dlibcfs_private.h90 #define LIBCFS_ALLOC_PRE(size, mask) \ argument
91 LASSERT(!in_interrupt() || ((size) <= LIBCFS_VMALLOC_SIZE && \
94 #define LIBCFS_ALLOC_POST(ptr, size) \ argument
98 #ptr "' = %d)\n", __FILE__, __LINE__, (int)(size)); \
100 memset((ptr), 0, (size)); \
107 #define LIBCFS_ALLOC_GFP(ptr, size, mask) \ argument
109 LIBCFS_ALLOC_PRE((size), (mask)); \
110 (ptr) = (size) <= LIBCFS_VMALLOC_SIZE ? \
111 kmalloc((size), (mask)) : vmalloc(size); \
112 LIBCFS_ALLOC_POST((ptr), (size)); \
[all …]

12345678910>>...179