/drivers/net/dsa/sja1105/ |
D | sja1105_static_config.c | 97 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 …]
|
D | sja1105_dynamic_config.c | 202 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/ |
D | ia_css_isp_configs.c | 28 unsigned int size = 0; in ia_css_configure_iterator() local 35 size = binary->info->mem_offsets.offsets.config->dmem.iterator.size; in ia_css_configure_iterator() 36 if (!size) in ia_css_configure_iterator() 43 config_dmem, size); in ia_css_configure_iterator() 51 unsigned int size = 0; in ia_css_configure_copy_output() local 58 size = binary->info->mem_offsets.offsets.config->dmem.copy_output.size; in ia_css_configure_copy_output() 59 if (!size) in ia_css_configure_copy_output() 66 config_dmem, size); in ia_css_configure_copy_output() 76 unsigned int size = 0; in ia_css_configure_crop() local 83 size = binary->info->mem_offsets.offsets.config->dmem.crop.size; in ia_css_configure_crop() [all …]
|
D | ia_css_isp_states.c | 32 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 …]
|
D | ia_css_isp_params.c | 75 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/mtd/tests/ |
D | mtd_nandecctest.c | 48 size_t size) in single_bit_error_data() argument 50 unsigned int offset = get_random_u32_below(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] = get_random_u32_below(size * BITS_PER_BYTE); in double_bit_error_data() 63 offset[1] = get_random_u32_below(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/tests/ |
D | drm_mm_test.c | 100 static bool assert_continuous(struct kunit *test, const struct drm_mm *mm, u64 size) in assert_continuous() argument 118 if (node->size != size) { in assert_continuous() 120 n, size, node->size); in assert_continuous() 130 drm_mm_for_each_node_in_range(check, mm, addr, addr + size) { in assert_continuous() 140 KUNIT_FAIL(test, "lookup failed for node %llx + %llx\n", addr, size); in assert_continuous() 144 addr += size; in assert_continuous() 163 u64 size, u64 alignment, unsigned long color) in assert_node() argument 172 if (node->size != size) { in assert_node() 174 node->size, size); in assert_node() 196 const unsigned int size = 4096; in drm_test_mm_init() local [all …]
|
D | drm_buddy_test.c | 216 if (mm->n_roots != hweight64(mm->size)) { in check_mm() 218 mm->n_roots, hweight64(mm->size)); in check_mm() 283 if (total != mm->size) { in check_mm() 285 mm->size, total); in check_mm() 304 static void mm_config(u64 *size, u64 *chunk_size) in mm_config() argument 322 *size = (u64)s << 12; in mm_config() 327 u64 mm_size, size, start = 0; in drm_test_buddy_alloc_pathological() local 359 size = get_size(order, PAGE_SIZE); in drm_test_buddy_alloc_pathological() 361 mm_size, size, size, in drm_test_buddy_alloc_pathological() 373 size = get_size(0, PAGE_SIZE); in drm_test_buddy_alloc_pathological() [all …]
|
/drivers/usb/common/ |
D | debug.c | 15 __u16 wLength, char *str, size_t size) in usb_decode_get_status() argument 19 snprintf(str, size, "Get Device Status(Length = %d)", wLength); in usb_decode_get_status() 22 snprintf(str, size, in usb_decode_get_status() 27 snprintf(str, size, "Get Endpoint Status(ep%d%s)", in usb_decode_get_status() 74 __u16 wIndex, char *str, size_t size) in usb_decode_set_clear_feature() argument 78 snprintf(str, size, "%s Device Feature(%s%s)", in usb_decode_set_clear_feature() 85 snprintf(str, size, "%s Interface Feature(%s)", in usb_decode_set_clear_feature() 91 snprintf(str, size, "%s Endpoint Feature(%s ep%d%s)", in usb_decode_set_clear_feature() 100 static void usb_decode_set_address(__u16 wValue, char *str, size_t size) in usb_decode_set_address() argument 102 snprintf(str, size, "Set Address(Addr = %02x)", wValue); in usb_decode_set_address() [all …]
|
/drivers/net/ethernet/qlogic/qed/ |
D | qed_iro_hsi.h | 89 (IRO[IRO_CORE_LL2_PSTORM_PER_QUEUE_STAT].size) 96 (IRO[IRO_CORE_LL2_TSTORM_PER_QUEUE_STAT].size) 103 (IRO[IRO_CORE_LL2_USTORM_PER_QUEUE_STAT].size) 109 #define ETH_RX_RATE_LIMIT_SIZE (IRO[IRO_ETH_RX_RATE_LIMIT].size) 115 #define MSTORM_ETH_PF_PRODS_GTT_SIZE (IRO[IRO_MSTORM_ETH_PF_PRODS_GTT].size) 121 #define MSTORM_ETH_PF_STAT_SIZE (IRO[IRO_MSTORM_ETH_PF_STAT].size) 130 #define MSTORM_ETH_VF_PRODS_SIZE (IRO[IRO_MSTORM_ETH_VF_PRODS].size) 134 #define MSTORM_INTEG_TEST_DATA_SIZE (IRO[IRO_MSTORM_INTEG_TEST_DATA].size) 140 #define MSTORM_ISCSI_RX_STATS_SIZE (IRO[IRO_MSTORM_ISCSI_RX_STATS].size) 144 #define MSTORM_OVERLAY_BUF_ADDR_SIZE (IRO[IRO_MSTORM_OVERLAY_BUF_ADDR].size) [all …]
|
/drivers/usb/gadget/udc/cdns2/ |
D | cdns2-debug.h | 14 static inline const char *cdns2_decode_usb_irq(char *str, size_t size, in cdns2_decode_usb_irq() argument 19 ret = snprintf(str, size, "usbirq: 0x%02x - ", usb_irq); in cdns2_decode_usb_irq() 22 ret += snprintf(str + ret, size - ret, "SOF "); in cdns2_decode_usb_irq() 24 ret += snprintf(str + ret, size - ret, "SUTOK "); in cdns2_decode_usb_irq() 26 ret += snprintf(str + ret, size - ret, "SETUP "); in cdns2_decode_usb_irq() 28 ret += snprintf(str + ret, size - ret, "Suspend "); in cdns2_decode_usb_irq() 30 ret += snprintf(str + ret, size - ret, "Reset "); in cdns2_decode_usb_irq() 32 ret += snprintf(str + ret, size - ret, "HS "); in cdns2_decode_usb_irq() 34 ret += snprintf(str + ret, size - ret, "LPM "); in cdns2_decode_usb_irq() 36 ret += snprintf(str + ret, size - ret, ", EXT: 0x%02x - ", ext_irq); in cdns2_decode_usb_irq() [all …]
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_res_cursor.h | 38 uint64_t size; member 55 uint64_t start, uint64_t size, in amdgpu_res_first() argument 65 BUG_ON(start + size > res->size); in amdgpu_res_first() 88 cur->size = min(amdgpu_vram_mgr_block_size(block) - start, size); in amdgpu_res_first() 89 cur->remaining = size; in amdgpu_res_first() 95 while (start >= node->size << PAGE_SHIFT) in amdgpu_res_first() 96 start -= node++->size << PAGE_SHIFT; in amdgpu_res_first() 99 cur->size = min((node->size << PAGE_SHIFT) - start, size); in amdgpu_res_first() 100 cur->remaining = size; in amdgpu_res_first() 111 cur->size = size; in amdgpu_res_first() [all …]
|
/drivers/net/wireless/ath/wil6210/ |
D | fw_inc.c | 21 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/ |
D | core.c | 350 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/ |
D | fsl-mc-uapi.c | 24 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/net/wireless/ath/ath10k/ |
D | coredump.c | 808 .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/acpi/ |
D | nvs.c | 23 __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/usb/core/ |
D | buffer.c | 68 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/ |
D | mtdconcat.c | 63 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/usb/host/ |
D | ohci-dbg.c | 23 #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/nouveau/nvkm/subdev/mmu/ |
D | vmm.c | 424 u32 size = desc->size * pten; in nvkm_vmm_ref_hwpt() local 428 pgt->pt[type] = nvkm_mmu_ptc_get(mmu, size, desc->align, zero); in nvkm_vmm_ref_hwpt() 502 u64 addr, u64 size, const char *name, bool ref, bool pfn, in nvkm_vmm_iter() argument 514 it.cnt = size >> page->shift; in nvkm_vmm_iter() 527 addr, size, page->shift, it.cnt); in nvkm_vmm_iter() 603 u64 addr, u64 size) in nvkm_vmm_ptes_sparse_put() argument 605 nvkm_vmm_iter(vmm, page, addr, size, "sparse unref", false, false, in nvkm_vmm_ptes_sparse_put() 613 u64 addr, u64 size) in nvkm_vmm_ptes_sparse_get() argument 616 u64 fail = nvkm_vmm_iter(vmm, page, addr, size, "sparse ref", in nvkm_vmm_ptes_sparse_get() 620 if ((size = fail - addr)) in nvkm_vmm_ptes_sparse_get() [all …]
|
/drivers/gpu/drm/armada/ |
D | armada_gem.c | 36 static size_t roundup_gem_size(size_t size) in roundup_gem_size() argument 38 return roundup(size, PAGE_SIZE); in roundup_gem_size() 54 unsigned int order = get_order(dobj->obj.size); in armada_gem_free_object() 83 size_t size = obj->obj.size; in armada_gem_linear_back() local 96 if (size <= 8192) { in armada_gem_linear_back() 97 unsigned int order = get_order(size); in armada_gem_linear_back() 105 memset(obj->addr, 0, PAGE_ALIGN(size)); in armada_gem_linear_back() 135 unsigned align = min_t(unsigned, size, SZ_2M); in armada_gem_linear_back() 145 size, align, 0, 0); in armada_gem_linear_back() 155 ptr = ioremap_wc(obj->linear->start, size); in armada_gem_linear_back() [all …]
|
/drivers/usb/dwc3/ |
D | debug.h | 200 static inline const char *dwc3_gadget_event_string(char *str, size_t size, in dwc3_gadget_event_string() argument 207 snprintf(str, size, "Disconnect: [%s]", in dwc3_gadget_event_string() 211 snprintf(str, size, "Reset [%s]", in dwc3_gadget_event_string() 215 snprintf(str, size, "Connection Done [%s]", in dwc3_gadget_event_string() 219 snprintf(str, size, "Link Change [%s]", in dwc3_gadget_event_string() 223 snprintf(str, size, "WakeUp [%s]", in dwc3_gadget_event_string() 227 snprintf(str, size, "Suspend [%s]", in dwc3_gadget_event_string() 231 snprintf(str, size, "Start-Of-Frame [%s]", in dwc3_gadget_event_string() 235 snprintf(str, size, "Erratic Error [%s]", in dwc3_gadget_event_string() 239 snprintf(str, size, "Command Complete [%s]", in dwc3_gadget_event_string() [all …]
|
/drivers/soc/qcom/ |
D | smem.c | 114 __le32 size; member 151 __le32 size; member 193 __le32 size; member 210 size_t size; member 227 __le32 size; /* includes padding bytes */ member 244 __le32 size; member 261 size_t size; member 306 return p + le32_to_cpu(phdr->size) - ALIGN(sizeof(*e), cacheline); in phdr_to_first_cached_entry() 331 le32_to_cpu(e->size); in uncached_entry_next() 339 return p - le32_to_cpu(e->size) - ALIGN(sizeof(*e), cacheline); in cached_entry_next() [all …]
|
/drivers/xen/ |
D | swiotlb-xen.c | 77 static inline int range_straddles_page_boundary(phys_addr_t p, size_t size) in range_straddles_page_boundary() argument 80 unsigned int i, nr_pages = XEN_PFN_UP(xen_offset_in_page(p) + size); in range_straddles_page_boundary() 134 xen_swiotlb_alloc_coherent(struct device *dev, size_t size, in xen_swiotlb_alloc_coherent() argument 138 int order = get_order(size); in xen_swiotlb_alloc_coherent() 143 size = 1UL << (order + XEN_PAGE_SHIFT); in xen_swiotlb_alloc_coherent() 145 ret = (void *)__get_free_pages(flags, get_order(size)); in xen_swiotlb_alloc_coherent() 151 if (*dma_handle + size - 1 > dma_mask || in xen_swiotlb_alloc_coherent() 152 range_straddles_page_boundary(phys, size)) { in xen_swiotlb_alloc_coherent() 159 memset(ret, 0, size); in xen_swiotlb_alloc_coherent() 163 free_pages((unsigned long)ret, get_order(size)); in xen_swiotlb_alloc_coherent() [all …]
|