Home
last modified time | relevance | path

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

12345678910>>...178

/drivers/net/dsa/sja1105/
Dsja1105_static_config.c97 const size_t size = SJA1105ET_SIZE_AVB_PARAMS_ENTRY; in sja1105et_avb_params_entry_packing() local
100 sja1105_packing(buf, &entry->destmeta, 95, 48, size, op); in sja1105et_avb_params_entry_packing()
101 sja1105_packing(buf, &entry->srcmeta, 47, 0, size, op); in sja1105et_avb_params_entry_packing()
102 return size; in sja1105et_avb_params_entry_packing()
108 const size_t size = SJA1105PQRS_SIZE_AVB_PARAMS_ENTRY; in sja1105pqrs_avb_params_entry_packing() local
111 sja1105_packing(buf, &entry->cas_master, 126, 126, size, op); in sja1105pqrs_avb_params_entry_packing()
112 sja1105_packing(buf, &entry->destmeta, 125, 78, size, op); in sja1105pqrs_avb_params_entry_packing()
113 sja1105_packing(buf, &entry->srcmeta, 77, 30, size, op); in sja1105pqrs_avb_params_entry_packing()
114 return size; in sja1105pqrs_avb_params_entry_packing()
120 const size_t size = SJA1105ET_SIZE_GENERAL_PARAMS_ENTRY; in sja1105et_general_params_entry_packing() local
[all …]
Dsja1105_dynamic_config.c202 const int size = SJA1105_SIZE_DYN_CMD; in sja1105et_vl_lookup_cmd_packing() local
204 sja1105_packing(buf, &cmd->valid, 31, 31, size, op); in sja1105et_vl_lookup_cmd_packing()
205 sja1105_packing(buf, &cmd->errors, 30, 30, size, op); in sja1105et_vl_lookup_cmd_packing()
206 sja1105_packing(buf, &cmd->rdwrset, 29, 29, size, op); in sja1105et_vl_lookup_cmd_packing()
207 sja1105_packing(buf, &cmd->index, 9, 0, size, op); in sja1105et_vl_lookup_cmd_packing()
216 const int size = SJA1105_SIZE_DYN_CMD; in sja1105pqrs_vl_lookup_cmd_packing() local
218 sja1105_packing(p, &cmd->valid, 31, 31, size, op); in sja1105pqrs_vl_lookup_cmd_packing()
219 sja1105_packing(p, &cmd->errors, 30, 30, size, op); in sja1105pqrs_vl_lookup_cmd_packing()
220 sja1105_packing(p, &cmd->rdwrset, 29, 29, size, op); in sja1105pqrs_vl_lookup_cmd_packing()
221 sja1105_packing(p, &cmd->index, 9, 0, size, op); in sja1105pqrs_vl_lookup_cmd_packing()
[all …]
/drivers/staging/media/atomisp/pci/css_2401_system/hive/
Dia_css_isp_configs.c36 unsigned int size = 0; in ia_css_configure_iterator() local
39 size = binary->info->mem_offsets.offsets.config->dmem.iterator.size; in ia_css_configure_iterator()
42 if (size) { in ia_css_configure_iterator()
45 config_dmem, size); in ia_css_configure_iterator()
64 unsigned int size = 0; in ia_css_configure_copy_output() local
67 size = binary->info->mem_offsets.offsets.config->dmem.copy_output.size; in ia_css_configure_copy_output()
70 if (size) { in ia_css_configure_copy_output()
73 config_dmem, size); in ia_css_configure_copy_output()
92 unsigned int size = 0; in ia_css_configure_crop() local
95 size = binary->info->mem_offsets.offsets.config->dmem.crop.size; in ia_css_configure_crop()
[all …]
Dia_css_isp_states.c33 unsigned int size = binary->info->mem_offsets.offsets.state->vmem.aa.size; in ia_css_initialize_aa_state() local
36 if (size) in ia_css_initialize_aa_state()
38 0, size); in ia_css_initialize_aa_state()
54 unsigned int size = binary->info->mem_offsets.offsets.state->vmem.cnr.size; in ia_css_initialize_cnr_state() local
58 if (size) { in ia_css_initialize_cnr_state()
61 size); in ia_css_initialize_cnr_state()
78 unsigned int size = binary->info->mem_offsets.offsets.state->vmem.cnr2.size; in ia_css_initialize_cnr2_state() local
82 if (size) { in ia_css_initialize_cnr2_state()
85 size); in ia_css_initialize_cnr2_state()
102 unsigned int size = binary->info->mem_offsets.offsets.state->vmem.dp.size; in ia_css_initialize_dp_state() local
[all …]
Dia_css_isp_params.c75 unsigned int size = in ia_css_process_aa() local
76 stage->binary->info->mem_offsets.offsets.param->dmem.aa.size; in ia_css_process_aa()
80 if (size) { in ia_css_process_aa()
98 unsigned int size = in ia_css_process_anr() local
99 stage->binary->info->mem_offsets.offsets.param->dmem.anr.size; in ia_css_process_anr()
104 if (size) { in ia_css_process_anr()
111 size); in ia_css_process_anr()
133 unsigned int size = in ia_css_process_anr2() local
134 stage->binary->info->mem_offsets.offsets.param->vmem.anr2.size; in ia_css_process_anr2()
139 if (size) { in ia_css_process_anr2()
[all …]
/drivers/staging/media/atomisp/pci/css_2400_system/hive/
Dia_css_isp_configs.c36 unsigned int size = 0; in ia_css_configure_iterator() local
39 size = binary->info->mem_offsets.offsets.config->dmem.iterator.size; in ia_css_configure_iterator()
42 if (size) { in ia_css_configure_iterator()
45 config_dmem, size); in ia_css_configure_iterator()
64 unsigned int size = 0; in ia_css_configure_copy_output() local
67 size = binary->info->mem_offsets.offsets.config->dmem.copy_output.size; in ia_css_configure_copy_output()
70 if (size) { in ia_css_configure_copy_output()
73 config_dmem, size); in ia_css_configure_copy_output()
92 unsigned int size = 0; in ia_css_configure_crop() local
95 size = binary->info->mem_offsets.offsets.config->dmem.crop.size; in ia_css_configure_crop()
[all …]
Dia_css_isp_states.c32 unsigned int size = binary->info->mem_offsets.offsets.state->vmem.aa.size; in ia_css_initialize_aa_state() local
36 if (size) in ia_css_initialize_aa_state()
38 0, size); in ia_css_initialize_aa_state()
54 unsigned int size = binary->info->mem_offsets.offsets.state->vmem.cnr.size; in ia_css_initialize_cnr_state() local
58 if (size) { in ia_css_initialize_cnr_state()
61 size); in ia_css_initialize_cnr_state()
78 unsigned int size = binary->info->mem_offsets.offsets.state->vmem.cnr2.size; in ia_css_initialize_cnr2_state() local
82 if (size) { in ia_css_initialize_cnr2_state()
85 size); in ia_css_initialize_cnr2_state()
102 unsigned int size = binary->info->mem_offsets.offsets.state->vmem.dp.size; in ia_css_initialize_dp_state() local
[all …]
/drivers/mtd/tests/
Dmtd_nandecctest.c48 size_t size) in single_bit_error_data() argument
50 unsigned int offset = prandom_u32() % (size * BITS_PER_BYTE); in single_bit_error_data()
52 memcpy(error_data, correct_data, size); in single_bit_error_data()
57 size_t size) in double_bit_error_data() argument
61 offset[0] = prandom_u32() % (size * BITS_PER_BYTE); in double_bit_error_data()
63 offset[1] = prandom_u32() % (size * BITS_PER_BYTE); in double_bit_error_data()
66 memcpy(error_data, correct_data, size); in double_bit_error_data()
72 static unsigned int random_ecc_bit(size_t size) in random_ecc_bit() argument
76 if (size == 256) { in random_ecc_bit()
89 size_t size) in single_bit_error_ecc() argument
[all …]
/drivers/gpu/drm/selftests/
Dtest-drm_mm.c107 static bool assert_continuous(const struct drm_mm *mm, u64 size) in assert_continuous() argument
125 if (node->size != size) { in assert_continuous()
127 n, size, node->size); in assert_continuous()
137 drm_mm_for_each_node_in_range(check, mm, addr, addr + size) { in assert_continuous()
147 addr, size); in assert_continuous()
151 addr += size; in assert_continuous()
170 u64 size, u64 alignment, unsigned long color) in assert_node() argument
179 if (node->size != size) { in assert_node()
181 node->size, size); in assert_node()
206 const unsigned int size = 4096; in igt_init() local
[all …]
/drivers/usb/common/
Ddebug.c14 __u16 wLength, char *str, size_t size) in usb_decode_get_status() argument
18 snprintf(str, size, "Get Device Status(Length = %d)", wLength); in usb_decode_get_status()
21 snprintf(str, size, in usb_decode_get_status()
26 snprintf(str, size, "Get Endpoint Status(ep%d%s)", in usb_decode_get_status()
73 __u16 wIndex, char *str, size_t size) in usb_decode_set_clear_feature() argument
77 snprintf(str, size, "%s Device Feature(%s%s)", in usb_decode_set_clear_feature()
84 snprintf(str, size, "%s Interface Feature(%s)", in usb_decode_set_clear_feature()
90 snprintf(str, size, "%s Endpoint Feature(%s ep%d%s)", in usb_decode_set_clear_feature()
99 static void usb_decode_set_address(__u16 wValue, char *str, size_t size) in usb_decode_set_address() argument
101 snprintf(str, size, "Set Address(Addr = %02x)", wValue); in usb_decode_set_address()
[all …]
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_fru_eeprom.c67 int ret, size; in amdgpu_fru_read_eeprom() local
78 size = buff[0] - I2C_PRODUCT_INFO_OFFSET; in amdgpu_fru_read_eeprom()
80 ret = amdgpu_eeprom_read(&adev->pm.smu_i2c, addrptr + 1, buff, size); in amdgpu_fru_read_eeprom()
86 return size; in amdgpu_fru_read_eeprom()
93 int size, len; in amdgpu_fru_get_product_info() local
117 size = amdgpu_fru_read_eeprom(adev, addrptr, buff); in amdgpu_fru_get_product_info()
118 if (size < 1) { in amdgpu_fru_get_product_info()
119 DRM_ERROR("Failed to read FRU Manufacturer, ret:%d", size); in amdgpu_fru_get_product_info()
126 addrptr += size + 1; in amdgpu_fru_get_product_info()
127 size = amdgpu_fru_read_eeprom(adev, addrptr, buff); in amdgpu_fru_get_product_info()
[all …]
Damdgpu_res_cursor.h36 uint64_t size; member
52 uint64_t start, uint64_t size, in amdgpu_res_first() argument
59 cur->size = size; in amdgpu_res_first()
60 cur->remaining = size; in amdgpu_res_first()
62 WARN_ON(res && start + size > res->num_pages << PAGE_SHIFT); in amdgpu_res_first()
66 BUG_ON(start + size > res->num_pages << PAGE_SHIFT); in amdgpu_res_first()
69 while (start >= node->size << PAGE_SHIFT) in amdgpu_res_first()
70 start -= node++->size << PAGE_SHIFT; in amdgpu_res_first()
73 cur->size = min((node->size << PAGE_SHIFT) - start, size); in amdgpu_res_first()
74 cur->remaining = size; in amdgpu_res_first()
[all …]
/drivers/net/wireless/ath/wil6210/
Dfw_inc.c21 u32 size, const char *msg) in wil_fw_addr_check() argument
23 *ioaddr = wmi_buffer_block(wil, val, size); in wil_fw_addr_check()
39 static int wil_fw_verify(struct wil6210_priv *wil, const u8 *data, size_t size) in wil_fw_verify() argument
47 if (size % 4) { in wil_fw_verify()
48 wil_err_fw(wil, "image size not aligned: %zu\n", size); in wil_fw_verify()
52 if (size < sizeof(*hdr) + sizeof(fh)) { in wil_fw_verify()
53 wil_err_fw(wil, "file too short: %zu bytes\n", size); in wil_fw_verify()
70 if (size < dlen) { in wil_fw_verify()
72 size, (ulong)dlen); in wil_fw_verify()
115 size_t size) in fw_ignore_section() argument
[all …]
/drivers/pnp/isapnp/
Dcore.c350 static int __init isapnp_read_tag(unsigned char *type, unsigned short *size) in isapnp_read_tag() argument
360 *size = (tmp[1] << 8) | tmp[0]; in isapnp_read_tag()
363 *size = tag & 0x07; in isapnp_read_tag()
365 if (*type == 0xff && *size == 0xffff) /* probably invalid data */ in isapnp_read_tag()
382 int size, int number) in isapnp_parse_device() argument
389 isapnp_peek(tmp, size); in isapnp_parse_device()
411 int size) in isapnp_parse_irq_resource() argument
418 isapnp_peek(tmp, size); in isapnp_parse_irq_resource()
424 if (size > 2) in isapnp_parse_irq_resource()
435 int size) in isapnp_parse_dma_resource() argument
[all …]
/drivers/bus/fsl-mc/
Dfsl-mc-uapi.c24 int size; member
85 .size = 28,
91 .size = 28,
97 .size = 8,
103 .size = 40,
110 .size = 12,
117 .size = 40,
124 .size = 40,
131 .size = 16,
137 .size = 12,
[all …]
/drivers/acpi/
Dnvs.c23 __u64 size; member
30 static int suspend_nvs_register(unsigned long start, unsigned long size);
38 int acpi_nvs_register(__u64 start, __u64 size) in acpi_nvs_register() argument
46 region->size = size; in acpi_nvs_register()
49 return suspend_nvs_register(start, size); in acpi_nvs_register()
52 int acpi_nvs_for_each_region(int (*func)(__u64 start, __u64 size, void *data), in acpi_nvs_for_each_region() argument
59 rc = func(region->phys_start, region->size, data); in acpi_nvs_for_each_region()
77 unsigned int size; member
95 static int suspend_nvs_register(unsigned long start, unsigned long size) in suspend_nvs_register() argument
100 start, start + size - 1, size); in suspend_nvs_register()
[all …]
/drivers/net/wireless/ath/ath10k/
Dcoredump.c808 .size = 0,
823 .size = 0,
838 .size = 0,
851 .size = 0,
861 .size = 0,
871 .size = ARRAY_SIZE(qca6174_hw21_register_sections),
884 .size = 0,
894 .size = 0,
904 .size = 0,
914 .size = 0,
[all …]
/drivers/usb/core/
Dbuffer.c68 int i, size; in hcd_buffer_create() local
74 size = pool_max[i]; in hcd_buffer_create()
75 if (!size) in hcd_buffer_create()
77 snprintf(name, sizeof(name), "buffer-%d", size); in hcd_buffer_create()
79 size, size, 0); in hcd_buffer_create()
117 size_t size, in hcd_buffer_alloc() argument
125 if (size == 0) in hcd_buffer_alloc()
129 return gen_pool_dma_alloc(hcd->localmem_pool, size, dma); in hcd_buffer_alloc()
134 return kmalloc(size, mem_flags); in hcd_buffer_alloc()
138 if (size <= pool_max[i]) in hcd_buffer_alloc()
[all …]
/drivers/mtd/
Dmtdconcat.c63 size_t size, retsize; in concat_read() local
65 if (from >= subdev->size) { in concat_read()
67 size = 0; in concat_read()
68 from -= subdev->size; in concat_read()
71 if (from + len > subdev->size) in concat_read()
73 size = subdev->size - from; in concat_read()
76 size = len; in concat_read()
78 err = mtd_read(subdev, from, size, &retsize, buf); in concat_read()
95 len -= size; in concat_read()
99 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.c23 #define ohci_dbg_sw(ohci, next, size, format, arg...) \ argument
27 s_len = scnprintf (*next, *size, format, ## arg ); \
28 *size -= s_len; *next += s_len; \
34 #define ohci_dbg_nosw(ohci, next, size, format, arg...) \ argument
37 s_len = scnprintf(*next, *size, format, ## arg); \
38 *size -= s_len; *next += s_len; \
47 unsigned *size) in ohci_dump_intr_mask() argument
49 ohci_dbg_sw (ohci, next, size, "%s 0x%08x%s%s%s%s%s%s%s%s%s\n", in ohci_dump_intr_mask()
69 unsigned *size) in maybe_print_eds() argument
72 ohci_dbg_sw (ohci, next, size, "%s %08x\n", label, value); in maybe_print_eds()
[all …]
/drivers/gpu/drm/armada/
Darmada_gem.c34 static size_t roundup_gem_size(size_t size) in roundup_gem_size() argument
36 return roundup(size, PAGE_SIZE); in roundup_gem_size()
52 unsigned int order = get_order(dobj->obj.size); in armada_gem_free_object()
81 size_t size = obj->obj.size; in armada_gem_linear_back() local
94 if (size <= 8192) { in armada_gem_linear_back()
95 unsigned int order = get_order(size); in armada_gem_linear_back()
103 memset(obj->addr, 0, PAGE_ALIGN(size)); in armada_gem_linear_back()
133 unsigned align = min_t(unsigned, size, SZ_2M); in armada_gem_linear_back()
143 size, align, 0, 0); in armada_gem_linear_back()
153 ptr = ioremap_wc(obj->linear->start, size); in armada_gem_linear_back()
[all …]
/drivers/usb/dwc3/
Ddebug.h198 static inline const char *dwc3_gadget_event_string(char *str, size_t size, in dwc3_gadget_event_string() argument
205 snprintf(str, size, "Disconnect: [%s]", in dwc3_gadget_event_string()
209 snprintf(str, size, "Reset [%s]", in dwc3_gadget_event_string()
213 snprintf(str, size, "Connection Done [%s]", in dwc3_gadget_event_string()
217 snprintf(str, size, "Link Change [%s]", in dwc3_gadget_event_string()
221 snprintf(str, size, "WakeUp [%s]", in dwc3_gadget_event_string()
225 snprintf(str, size, "Suspend [%s]", in dwc3_gadget_event_string()
229 snprintf(str, size, "Start-Of-Frame [%s]", in dwc3_gadget_event_string()
233 snprintf(str, size, "Erratic Error [%s]", in dwc3_gadget_event_string()
237 snprintf(str, size, "Command Complete [%s]", in dwc3_gadget_event_string()
[all …]
/drivers/ntb/test/
Dntb_tool.c217 resource_size_t size; member
342 size_t size, loff_t *offp, in tool_fn_read() argument
352 buf_size = min(size, sizeof(buf)); in tool_fn_read()
356 return simple_read_from_buffer(ubuf, size, offp, buf, pos); in tool_fn_read()
361 size_t size, loff_t *offp, in tool_fn_write() argument
373 buf = kmalloc(size + 1, GFP_KERNEL); in tool_fn_write()
377 if (copy_from_user(buf, ubuf, size)) { in tool_fn_write()
382 buf[size] = 0; in tool_fn_write()
404 return ret ? : size; in tool_fn_write()
413 size_t size, loff_t *offp) in tool_port_read() argument
[all …]
/drivers/vfio/pci/
Dvfio_pci_igd.c36 if (pos >= vdev->region[i].size || iswrite) in vfio_pci_igd_rw()
39 count = min(count, (size_t)(vdev->region[i].size - pos)); in vfio_pci_igd_rw()
63 u32 addr, size; in vfio_pci_igd_opregion_init() local
84 size = le32_to_cpu(*(__le32 *)(base + 16)); in vfio_pci_igd_opregion_init()
85 if (!size) { in vfio_pci_igd_opregion_init()
90 size *= 1024; /* In KB */ in vfio_pci_igd_opregion_init()
127 if (rvda != size) { in vfio_pci_igd_opregion_init()
136 size += rvds; in vfio_pci_igd_opregion_init()
140 if (size != OPREGION_SIZE) { in vfio_pci_igd_opregion_init()
142 base = memremap(addr, size, MEMREMAP_WB); in vfio_pci_igd_opregion_init()
[all …]

12345678910>>...178