Home
last modified time | relevance | path

Searched refs:dsize (Results 1 – 25 of 85) sorted by relevance

1234

/linux-6.12.1/security/integrity/platform_certs/
Dload_powerpc.c64 u64 dsize = 0; in load_powerpc_certs() local
91 data = get_cert_list("db", 3, &dsize); in load_powerpc_certs()
99 extract_esl(db, data, dsize, offset); in load_powerpc_certs()
101 rc = parse_efi_signature_list("powerpc:db", db, dsize, in load_powerpc_certs()
108 data = get_cert_list("dbx", 4, &dsize); in load_powerpc_certs()
116 extract_esl(dbx, data, dsize, offset); in load_powerpc_certs()
118 rc = parse_efi_signature_list("powerpc:dbx", dbx, dsize, in load_powerpc_certs()
125 data = get_cert_list("trustedcadb", 12, &dsize); in load_powerpc_certs()
132 extract_esl(trustedca, data, dsize, offset); in load_powerpc_certs()
134 rc = parse_efi_signature_list("powerpc:trustedca", trustedca, dsize, in load_powerpc_certs()
[all …]
/linux-6.12.1/lib/crypto/mpi/
Dmpih-div.c190 mpi_ptr_t np, mpi_size_t nsize, mpi_ptr_t dp, mpi_size_t dsize) in mpihelp_divrem() argument
194 switch (dsize) { in mpihelp_divrem()
202 return 1 / dsize; in mpihelp_divrem()
300 np += nsize - dsize; in mpihelp_divrem()
301 dX = dp[dsize - 1]; in mpihelp_divrem()
302 d1 = dp[dsize - 2]; in mpihelp_divrem()
303 n0 = np[dsize - 1]; in mpihelp_divrem()
307 || mpihelp_cmp(np, dp, dsize - 1) >= 0) { in mpihelp_divrem()
308 mpihelp_sub_n(np, np, dp, dsize); in mpihelp_divrem()
309 n0 = np[dsize - 1]; in mpihelp_divrem()
[all …]
Dmpi-div.c66 mpi_size_t dsize = den->nlimbs; in mpi_tdiv_qr() local
85 qsize = rsize - dsize; /* qsize cannot be bigger than this. */ in mpi_tdiv_qr()
114 if (dsize == 1) { in mpi_tdiv_qr()
144 qp = rp + dsize; in mpi_tdiv_qr()
146 normalization_steps = count_leading_zeros(dp[dsize - 1]); in mpi_tdiv_qr()
160 tp = marker[markidx++] = mpi_alloc_limb_space(dsize); in mpi_tdiv_qr()
163 mpihelp_lshift(tp, dp, dsize, normalization_steps); in mpi_tdiv_qr()
183 tp = marker[markidx++] = mpi_alloc_limb_space(dsize); in mpi_tdiv_qr()
186 MPN_COPY(tp, dp, dsize); in mpi_tdiv_qr()
197 q_limb = mpihelp_divrem(qp, 0, rp, rsize, dp, dsize); in mpi_tdiv_qr()
[all …]
/linux-6.12.1/arch/powerpc/platforms/powernv/
Dopal-secvar.c57 static int opal_get_variable(const char *key, u64 ksize, u8 *data, u64 *dsize) in opal_get_variable() argument
61 if (!key || !dsize) in opal_get_variable()
64 *dsize = cpu_to_be64(*dsize); in opal_get_variable()
66 rc = opal_secvar_get(key, ksize, data, dsize); in opal_get_variable()
68 *dsize = be64_to_cpu(*dsize); in opal_get_variable()
89 static int opal_set_variable(const char *key, u64 ksize, u8 *data, u64 dsize) in opal_set_variable() argument
96 rc = opal_secvar_enqueue_update(key, ksize, data, dsize); in opal_set_variable()
/linux-6.12.1/drivers/video/fbdev/core/
Dsoftcursor.c27 unsigned int i, size, dsize, s_pitch, d_pitch; in soft_cursor() local
35 dsize = s_pitch * cursor->image.height; in soft_cursor()
37 if (dsize + sizeof(struct fb_image) != ops->cursor_size) { in soft_cursor()
39 ops->cursor_size = dsize + sizeof(struct fb_image); in soft_cursor()
60 for (i = 0; i < dsize; i++) in soft_cursor()
65 for (i = 0; i < dsize; i++) in soft_cursor()
70 memcpy(src, image->data, dsize); in soft_cursor()
/linux-6.12.1/fs/jffs2/
Dread.c55 crc, je32_to_cpu(ri->dsize), je32_to_cpu(ri->csize), in jffs2_read_dnode()
65 if (ri->compr == JFFS2_COMPR_ZERO && !je32_to_cpu(ri->dsize) && in jffs2_read_dnode()
67 ri->dsize = ri->csize; in jffs2_read_dnode()
71 D1(if(ofs + len > je32_to_cpu(ri->dsize)) { in jffs2_read_dnode()
73 len, ofs, je32_to_cpu(ri->dsize)); in jffs2_read_dnode()
90 if (ri->compr == JFFS2_COMPR_NONE && len == je32_to_cpu(ri->dsize)) { in jffs2_read_dnode()
100 if (len < je32_to_cpu(ri->dsize)) { in jffs2_read_dnode()
101 decomprbuf = kmalloc(je32_to_cpu(ri->dsize), GFP_KERNEL); in jffs2_read_dnode()
134 je32_to_cpu(ri->dsize), decomprbuf); in jffs2_read_dnode()
135 …compr | (ri->usercompr << 8), readbuf, decomprbuf, je32_to_cpu(ri->csize), je32_to_cpu(ri->dsize)); in jffs2_read_dnode()
[all …]
/linux-6.12.1/arch/powerpc/kernel/
Dsecvar-sysfs.c41 u64 dsize; in size_show() local
44 rc = secvar_ops->get(kobj->name, strlen(kobj->name) + 1, NULL, &dsize); in size_show()
51 return sysfs_emit(buf, "%llu\n", dsize); in size_show()
59 u64 dsize; in data_read() local
62 rc = secvar_ops->get(kobj->name, strlen(kobj->name) + 1, NULL, &dsize); in data_read()
68 pr_debug("dsize is %llu\n", dsize); in data_read()
70 data = kzalloc(dsize, GFP_KERNEL); in data_read()
74 rc = secvar_ops->get(kobj->name, strlen(kobj->name) + 1, data, &dsize); in data_read()
80 rc = memory_read_from_buffer(buf, count, &off, data, dsize); in data_read()
/linux-6.12.1/fs/ntfs3/
Drecord.c563 int dsize; in mi_resize_attr() local
576 dsize = ALIGN(bytes, 8); in mi_resize_attr()
577 if (used + dsize > total) in mi_resize_attr()
579 nsize = asize + dsize; in mi_resize_attr()
581 memmove(next + dsize, next, tail); in mi_resize_attr()
582 memset(next, 0, dsize); in mi_resize_attr()
583 used += dsize; in mi_resize_attr()
584 rsize += dsize; in mi_resize_attr()
586 dsize = ALIGN(-bytes, 8); in mi_resize_attr()
587 if (dsize > asize) in mi_resize_attr()
[all …]
/linux-6.12.1/net/netfilter/ipset/
Dip_set_bitmap_ipmac.c74 #define get_elem(extensions, id, dsize) \ argument
75 (struct bitmap_ipmac_elem *)(extensions + (id) * (dsize))
77 #define get_const_elem(extensions, id, dsize) \ argument
78 (const struct bitmap_ipmac_elem *)(extensions + (id) * (dsize))
84 const struct bitmap_ipmac *map, size_t dsize) in bitmap_ipmac_do_test() argument
90 elem = get_const_elem(map->extensions, e->id, dsize); in bitmap_ipmac_do_test()
98 bitmap_ipmac_gc_test(u16 id, const struct bitmap_ipmac *map, size_t dsize) in bitmap_ipmac_gc_test() argument
104 elem = get_const_elem(map->extensions, id, dsize); in bitmap_ipmac_gc_test()
144 struct bitmap_ipmac *map, u32 flags, size_t dsize) in bitmap_ipmac_do_add() argument
148 elem = get_elem(map->extensions, e->id, dsize); in bitmap_ipmac_do_add()
[all …]
Dip_set_hash_gen.h92 #define ext_size(n, dsize) \ argument
93 (sizeof(struct hbucket) + (n) * (dsize))
382 #define ahash_data(n, i, dsize) \ argument
383 ((struct mtype_elem *)((n)->value + ((i) * (dsize))))
392 ip_set_ext_destroy(set, ahash_data(n, i, set->dsize)); in mtype_ext_cleanup()
489 size_t dsize = set->dsize; in mtype_gc_do() local
506 data = ahash_data(n, j, dsize); in mtype_gc_do()
525 ext_size(n->size, dsize); in mtype_gc_do()
531 (n->size - AHASH_INIT_SIZE) * dsize, in mtype_gc_do()
540 data = ahash_data(n, j, dsize); in mtype_gc_do()
[all …]
Dip_set_bitmap_gen.h36 #define get_ext(set, map, id) ((map)->extensions + ((set)->dsize * (id)))
63 if (set->dsize && set->extensions & IPSET_EXT_DESTROY) in mtype_destroy()
85 mtype_memsize(const struct mtype *map, size_t dsize) in mtype_memsize() argument
88 map->elements * dsize; in mtype_memsize()
96 size_t memsize = mtype_memsize(map, set->dsize) + set->ext_size; in mtype_head()
122 int ret = mtype_do_test(e, map, set->dsize); in mtype_test()
136 int ret = mtype_do_add(e, map, flags, set->dsize); in mtype_add()
239 if (mtype_do_list(skb, map, id, set->dsize)) in mtype_list()
277 if (mtype_gc_test(id, map, set->dsize)) { in mtype_gc()
Dip_set_bitmap_port.c59 const struct bitmap_port *map, size_t dsize) in bitmap_port_do_test() argument
65 bitmap_port_gc_test(u16 id, const struct bitmap_port *map, size_t dsize) in bitmap_port_gc_test() argument
72 struct bitmap_port *map, u32 flags, size_t dsize) in bitmap_port_do_add() argument
86 size_t dsize) in bitmap_port_do_list() argument
268 set->dsize = ip_set_elem_len(set, tb, 0, 0); in bitmap_port_create()
269 map = ip_set_alloc(sizeof(*map) + elements * set->dsize); in bitmap_port_create()
/linux-6.12.1/drivers/s390/char/
Dsclp_sd.c47 u32 dsize; member
220 evbuf->dsize = *dsize_ptr; in sclp_sd_sync()
251 *dsize_ptr = evbuf->dsize; in sclp_sd_sync()
254 pr_debug("success (dsize=%u, esize=%u)\n", evbuf->dsize, in sclp_sd_sync()
297 u32 dsize = 0, esize = 0; in sclp_sd_store_data() local
307 rc = sclp_sd_sync(page, SD_EQ_SIZE, di, 0, 0, &dsize, &esize); in sclp_sd_store_data()
310 if (dsize == 0) in sclp_sd_store_data()
314 data = vzalloc(array_size((size_t)dsize, PAGE_SIZE)); in sclp_sd_store_data()
321 asce = base_asce_alloc((unsigned long) data, dsize); in sclp_sd_store_data()
329 rc = sclp_sd_sync(page, SD_EQ_STORE_DATA, di, asce, (u64) data, &dsize, in sclp_sd_store_data()
[all …]
/linux-6.12.1/drivers/isdn/hardware/mISDN/
Disdnhdlc.c119 int *count, u8 *dst, int dsize) in isdnhdlc_decode() argument
288 if (hdlc->dstpos < dsize) in isdnhdlc_decode()
342 int *count, u8 *dst, int dsize) in isdnhdlc_encode() argument
355 while (dsize > 0) { in isdnhdlc_encode()
385 while (dsize--) in isdnhdlc_encode()
387 return dsize; in isdnhdlc_encode()
397 dsize--; in isdnhdlc_encode()
557 if (dsize > 1) in isdnhdlc_encode()
558 dsize = 1; in isdnhdlc_encode()
589 dsize = 0; in isdnhdlc_encode()
[all …]
/linux-6.12.1/fs/afs/
Dxattr.c147 int which = 0, dsize, ret = -ENOMEM; in afs_xattr_get_yfs() local
185 dsize = yacl->acl->size; in afs_xattr_get_yfs()
189 dsize = scnprintf(buf, sizeof(buf), "%u", yacl->inherit_flag); in afs_xattr_get_yfs()
193 dsize = scnprintf(buf, sizeof(buf), "%u", yacl->num_cleaned); in afs_xattr_get_yfs()
197 dsize = yacl->vol_acl->size; in afs_xattr_get_yfs()
204 ret = dsize; in afs_xattr_get_yfs()
206 if (dsize <= size) in afs_xattr_get_yfs()
207 memcpy(buffer, data, dsize); in afs_xattr_get_yfs()
/linux-6.12.1/arch/powerpc/platforms/cell/
Diommu.c299 unsigned long dbase, unsigned long dsize, in cell_iommu_setup_stab() argument
305 segments = max(dbase + dsize, fbase + fsize) >> IO_SEGMENT_SHIFT; in cell_iommu_setup_stab()
864 struct device_node *np, unsigned long dbase, unsigned long dsize, in cell_iommu_setup_fixed_ptab() argument
869 ptab = cell_iommu_alloc_ptab(iommu, fbase, fsize, dbase, dsize, 24); in cell_iommu_setup_fixed_ptab()
888 if (ioaddr >= dbase && ioaddr < (dbase + dsize)) { in cell_iommu_setup_fixed_ptab()
901 unsigned long dbase, dsize, fbase, fsize, hbase, hend; in cell_iommu_fixed_mapping_init() local
930 cell_iommu_get_window(np, &dbase, &dsize); in cell_iommu_fixed_mapping_init()
931 fbase = max(fbase, dbase + dsize); in cell_iommu_fixed_mapping_init()
962 cell_iommu_get_window(np, &dbase, &dsize); in cell_iommu_fixed_mapping_init()
964 if (hbase < dbase || (hend > (dbase + dsize))) { in cell_iommu_fixed_mapping_init()
[all …]
/linux-6.12.1/arch/s390/lib/
Dstring.c159 size_t dsize = __strend(dest) - dest; in strlcat() local
161 size_t res = dsize + len; in strlcat()
163 if (dsize < n) { in strlcat()
164 dest += dsize; in strlcat()
165 n -= dsize; in strlcat()
/linux-6.12.1/drivers/usb/gadget/udc/aspeed-vhub/
Dhub.c275 size_t dsize; in ast_vhub_rep_desc() local
291 dsize = USB_DT_DEVICE_SIZE; in ast_vhub_rep_desc()
292 memcpy(ep->buf, &vhub->vhub_dev_desc, dsize); in ast_vhub_rep_desc()
293 BUILD_BUG_ON(dsize > sizeof(vhub->vhub_dev_desc)); in ast_vhub_rep_desc()
298 dsize = AST_VHUB_CONF_DESC_SIZE; in ast_vhub_rep_desc()
299 memcpy(ep->buf, &vhub->vhub_conf_desc, dsize); in ast_vhub_rep_desc()
301 BUILD_BUG_ON(dsize > sizeof(vhub->vhub_conf_desc)); in ast_vhub_rep_desc()
305 dsize = AST_VHUB_HUB_DESC_SIZE; in ast_vhub_rep_desc()
306 memcpy(ep->buf, &vhub->vhub_hub_desc, dsize); in ast_vhub_rep_desc()
307 BUILD_BUG_ON(dsize > sizeof(vhub->vhub_hub_desc)); in ast_vhub_rep_desc()
[all …]
/linux-6.12.1/drivers/staging/media/meson/vdec/
Desparser.c85 int dsize; in vp9_update_header() local
94 dsize = vb2_get_plane_payload(buf, 0); in vp9_update_header()
96 if (dsize == vb2_plane_size(buf, 0)) { in vp9_update_header()
101 marker = dp[dsize - 1]; in vp9_update_header()
105 mag_ptr = dsize - mag * num_frames - 2; in vp9_update_header()
128 frame_size[0] = dsize; in vp9_update_header()
129 tot_frame_size[0] = dsize; in vp9_update_header()
130 total_datasize = dsize; in vp9_update_header()
/linux-6.12.1/kernel/trace/
Dtrace_fprobe.c184 int dsize; in NOKPROBE_SYMBOL() local
192 dsize = __get_data_size(&tf->tp, regs, NULL); in NOKPROBE_SYMBOL()
195 sizeof(*entry) + tf->tp.size + dsize); in NOKPROBE_SYMBOL()
202 store_trace_args(&entry[1], &tf->tp, regs, NULL, sizeof(*entry), dsize); in NOKPROBE_SYMBOL()
240 int dsize; in NOKPROBE_SYMBOL() local
248 dsize = __get_data_size(&tf->tp, regs, entry_data); in NOKPROBE_SYMBOL()
251 sizeof(*entry) + tf->tp.size + dsize); in NOKPROBE_SYMBOL()
259 store_trace_args(&entry[1], &tf->tp, regs, entry_data, sizeof(*entry), dsize); in NOKPROBE_SYMBOL()
283 int size, __size, dsize; in fentry_perf_func() local
290 dsize = __get_data_size(&tf->tp, regs, NULL); in fentry_perf_func()
[all …]
/linux-6.12.1/drivers/video/fbdev/nvidia/
Dnv_accel.c357 u32 dsize, width, *data = (u32 *) image->data, tmp; in nvidiafb_mono_color_expand() local
361 dsize = (width * image->height) >> 5; in nvidiafb_mono_color_expand()
381 while (dsize >= RECT_EXPAND_TWO_COLOR_DATA_MAX_DWORDS) { in nvidiafb_mono_color_expand()
391 dsize -= RECT_EXPAND_TWO_COLOR_DATA_MAX_DWORDS; in nvidiafb_mono_color_expand()
394 if (dsize) { in nvidiafb_mono_color_expand()
395 NVDmaStart(info, par, RECT_EXPAND_TWO_COLOR_DATA(0), dsize); in nvidiafb_mono_color_expand()
397 for (j = dsize; j--;) { in nvidiafb_mono_color_expand()
/linux-6.12.1/drivers/hv/
Dring_buffer.c136 u32 read_loc, write_loc, dsize; in hv_get_ringbuffer_availbytes() local
141 dsize = rbi->ring_datasize; in hv_get_ringbuffer_availbytes()
143 *write = write_loc >= read_loc ? dsize - (write_loc - read_loc) : in hv_get_ringbuffer_availbytes()
145 *read = dsize - *write; in hv_get_ringbuffer_availbytes()
527 u32 dsize = rbi->ring_datasize; in __hv_pkt_iter_next() local
532 if (rbi->priv_read_index >= dsize) in __hv_pkt_iter_next()
533 rbi->priv_read_index -= dsize; in __hv_pkt_iter_next()
/linux-6.12.1/tools/hv/
Dvmbus_bufring.h92 uint32_t dsize; member
148 return br->dsize - (windex - rindex); in vmbus_br_availwrite()
155 return br->dsize - vmbus_br_availwrite(br, br->vbr->windex); in vmbus_br_availread()
Dvmbus_bufring.c58 br->dsize = blen - sizeof(struct vmbus_bufring); in vmbus_br_setup()
89 uint32_t br_dsize = tbr->dsize; in vmbus_txbr_copyto()
123 uint32_t ring_size = tbr->dsize; in vmbus_txbr_write()
214 uint32_t br_dsize = rbr->dsize; in vmbus_rxbr_copyfrom()
257 uint32_t br_dsize = rbr->dsize; in vmbus_rxbr_read()
/linux-6.12.1/fs/hfsplus/
Dunicode.c348 int size, dsize, decompose; in hfsplus_asc2uni() local
358 dstr = decompose_unichar(c, &dsize, dhangul); in hfsplus_asc2uni()
362 if (outlen + dsize > max_unistr_len) in hfsplus_asc2uni()
366 } while (--dsize > 0); in hfsplus_asc2uni()
401 int dsize; in hfsplus_hash_dentry() local
407 dstr = decompose_unichar(c, &dsize, dhangul); in hfsplus_hash_dentry()
417 } while (--dsize > 0); in hfsplus_hash_dentry()

1234