Home
last modified time | relevance | path

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

1234

/linux/security/integrity/platform_certs/
H A 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/lib/crypto/mpi/
H A 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 …]
H A 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/arch/powerpc/platforms/powernv/
H A 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/drivers/video/fbdev/core/
H A 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/fs/jffs2/
H A 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/arch/powerpc/kernel/
H A 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/net/netfilter/ipset/
H A 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 …]
H A 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 …]
H A 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()
H A 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()
H A Dip_set_bitmap_ip.c68 struct bitmap_ip *map, size_t dsize) in bitmap_ip_do_test() argument
74 bitmap_ip_gc_test(u16 id, const struct bitmap_ip *map, size_t dsize) in bitmap_ip_gc_test() argument
81 u32 flags, size_t dsize) in bitmap_ip_do_add() argument
94 size_t dsize) in bitmap_ip_do_list() argument
320 set->dsize = ip_set_elem_len(set, tb, 0, 0); in bitmap_ip_create()
321 map = ip_set_alloc(sizeof(*map) + elements * set->dsize); in bitmap_ip_create()
/linux/drivers/s390/char/
H A 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/drivers/isdn/hardware/mISDN/
H A 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/arch/powerpc/platforms/cell/
H A 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/fs/afs/
H A 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/arch/s390/lib/
H A 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/drivers/usb/gadget/udc/aspeed-vhub/
H A 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/drivers/staging/media/meson/vdec/
H A 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/kernel/trace/
H A 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 …]
H A Dtrace_uprobe.c876 int dsize; member
974 int dsize, esize; in prepare_uprobe_buffer() local
980 dsize = __get_data_size(&tu->tp, regs, NULL); in prepare_uprobe_buffer()
983 ucb->dsize = tu->tp.size + dsize; in prepare_uprobe_buffer()
985 if (WARN_ON_ONCE(ucb->dsize > MAX_UCB_BUFFER_SIZE)) { in prepare_uprobe_buffer()
986 ucb->dsize = MAX_UCB_BUFFER_SIZE; in prepare_uprobe_buffer()
987 dsize = MAX_UCB_BUFFER_SIZE - tu->tp.size; in prepare_uprobe_buffer()
990 store_trace_args(ucb->buf, &tu->tp, regs, NULL, esize, dsize); in prepare_uprobe_buffer()
1013 size = esize + ucb->dsize; in __uprobe_trace_func()
1027 memcpy(data, ucb->buf, ucb->dsize); in __uprobe_trace_func()
[all …]
/linux/drivers/video/fbdev/nvidia/
H A 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/drivers/hv/
H A 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/fs/hfsplus/
H A 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()
/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Dqos_headroom.sh321 local dsize=$((tot_size - buf0size))
331 ((dsize_2 > dsize))
332 check_err $? "Invisible buffers account for '$dsize_2', expected '> $dsize'"
352 ((dsize_4 == dsize))
353 check_err $? "SPAN removed: Invisible buffers account for '$dsize_4', expected '== $dsize'"

1234