Home
last modified time | relevance | path

Searched refs:hsize (Results 1 – 25 of 34) sorted by relevance

12

/linux/lib/crypto/mpi/
H A Dmpih-mul.c133 mpi_size_t hsize = size >> 1; in mul_n() local
142 MPN_MUL_N_RECURSE(prodp + size, up + hsize, vp + hsize, hsize, in mul_n()
148 if (mpihelp_cmp(up + hsize, up, hsize) >= 0) { in mul_n()
149 mpihelp_sub_n(prodp, up + hsize, up, hsize); in mul_n()
152 mpihelp_sub_n(prodp, up, up + hsize, hsize); in mul_n()
155 if (mpihelp_cmp(vp + hsize, vp, hsize) >= 0) { in mul_n()
156 mpihelp_sub_n(prodp + hsize, vp + hsize, vp, hsize); in mul_n()
159 mpihelp_sub_n(prodp + hsize, vp, vp + hsize, hsize); in mul_n()
166 MPN_MUL_N_RECURSE(tspace, prodp, prodp + hsize, hsize, in mul_n()
170 MPN_COPY(prodp + hsize, prodp + size, hsize); in mul_n()
[all …]
/linux/security/integrity/platform_certs/
H A Defi_parser.c50 size_t lsize, esize, hsize, elsize; in parse_efi_signature_list() local
62 hsize = list.signature_header_size; in parse_efi_signature_list()
64 elsize = lsize - sizeof(list) - hsize; in parse_efi_signature_list()
73 lsize - sizeof(list) < hsize || in parse_efi_signature_list()
89 data += sizeof(list) + hsize; in parse_efi_signature_list()
90 size -= sizeof(list) + hsize; in parse_efi_signature_list()
91 offs += sizeof(list) + hsize; in parse_efi_signature_list()
/linux/drivers/net/ppp/
H A Dbsd_comp.c138 unsigned int hsize; /* size of the hash table */ member
355 unsigned int hsize, hshift, maxmaxcode; in bsd_alloc() local
372 hsize = 5003; in bsd_alloc()
376 hsize = 9001; in bsd_alloc()
380 hsize = 18013; in bsd_alloc()
384 hsize = 35023; in bsd_alloc()
409 db->dict = vmalloc(array_size(hsize, sizeof(struct bsd_dict))); in bsd_alloc()
439 (sizeof (struct bsd_dict) * hsize); in bsd_alloc()
441 db->hsize = hsize; in bsd_alloc()
487 indx = db->hsize; in bsd_init()
[all …]
/linux/fs/verity/
H A Dverify.c96 const unsigned int hsize = params->digest_size; in verify_data_block() local
183 memcpy(_want_hash, haddr + hoffset, hsize); in verify_data_block()
207 if (memcmp(want_hash, real_hash, hsize) != 0) in verify_data_block()
218 memcpy(_want_hash, haddr + hoffset, hsize); in verify_data_block()
227 if (memcmp(want_hash, real_hash, hsize) != 0) in verify_data_block()
235 params->hash_alg->name, hsize, want_hash, in verify_data_block()
236 params->hash_alg->name, hsize, real_hash); in verify_data_block()
/linux/drivers/gpu/drm/arm/display/komeda/
H A Dkomeda_pipeline.h245 u16 hsize, vsize; member
256 struct malidp_range hsize, vsize; member
279 struct malidp_range hsize, vsize; member
283 u16 hsize, vsize; member
291 u16 hsize, vsize; member
309 struct malidp_range hsize, vsize; member
314 u16 hsize, vsize; member
330 u16 hsize, vsize; member
528 u16 *hsize, u16 *vsize);
/linux/drivers/mcb/
H A Dmcb-parse.c180 u32 hsize; in chameleon_parse_cells() local
183 hsize = sizeof(struct chameleon_fpga_header); in chameleon_parse_cells()
185 header = kzalloc(hsize, GFP_KERNEL); in chameleon_parse_cells()
190 memcpy_fromio(header, p, hsize); in chameleon_parse_cells()
199 p += hsize; in chameleon_parse_cells()
/linux/fs/gfs2/
H A Ddir.c338 u32 hsize; in gfs2_dir_get_hash_table() local
347 hsize = BIT(ip->i_depth); in gfs2_dir_get_hash_table()
348 hsize *= sizeof(__be64); in gfs2_dir_get_hash_table()
349 if (hsize != i_size_read(&ip->i_inode)) { in gfs2_dir_get_hash_table()
354 hc = kmalloc(hsize, GFP_NOFS | __GFP_NOWARN); in gfs2_dir_get_hash_table()
356 hc = __vmalloc(hsize, GFP_NOFS); in gfs2_dir_get_hash_table()
361 ret = gfs2_dir_read_data(ip, hc, hsize); in gfs2_dir_get_hash_table()
820 unsigned int hsize = BIT(ip->i_depth); in gfs2_dirent_search() local
823 if (hsize * sizeof(u64) != i_size_read(inode)) { in gfs2_dirent_search()
1153 u32 hsize; in dir_double_exhash() local
[all …]
/linux/net/xfrm/
H A Dxfrm_device.c24 unsigned int hsize) in __xfrm_transport_prep() argument
36 unsigned int hsize) in __xfrm_mode_tunnel_prep() argument
42 skb->transport_header = skb->network_header + hsize; in __xfrm_mode_tunnel_prep()
49 unsigned int hsize) in __xfrm_mode_beet_prep() argument
55 skb->transport_header = skb->network_header + hsize; in __xfrm_mode_beet_prep()
64 pskb_pull(skb, skb->mac_len + hsize + (x->props.header_len - phlen)); in __xfrm_mode_beet_prep()
/linux/net/netfilter/ipset/
H A Dip_set_hash_gen.h109 size_t hsize; in htable_size() local
114 hsize = jhash_size(hbits); in htable_size()
116 < hsize) in htable_size()
119 return hsize * sizeof(struct hbucket *) + sizeof(struct htable); in htable_size()
627 size_t hsize, dsize = set->dsize; in mtype_resize() local
653 hsize = htable_size(htable_bits); in mtype_resize()
654 if (!hsize) in mtype_resize()
656 t = ip_set_alloc(hsize); in mtype_resize()
1471 size_t hsize; in IPSET_TOKEN() local
1553 hsize = sizeof(*h); in IPSET_TOKEN()
[all …]
/linux/mm/
H A Dhugetlb_cgroup.c675 static char *mem_fmt(char *buf, int size, unsigned long hsize) in mem_fmt() argument
677 if (hsize >= SZ_1G) in mem_fmt()
678 snprintf(buf, size, "%luGB", hsize / SZ_1G); in mem_fmt()
679 else if (hsize >= SZ_1M) in mem_fmt()
680 snprintf(buf, size, "%luMB", hsize / SZ_1M); in mem_fmt()
682 snprintf(buf, size, "%luKB", hsize / SZ_1K); in mem_fmt()
/linux/security/apparmor/
H A Dmatch.c300 int hsize; in aa_dfa_unpack()
319 hsize = ntohl(*(__be32 *) (data + 4)); in aa_dfa_unpack()
320 if (size < hsize) in aa_dfa_unpack()
330 * if (hsize < 16 + 4) in aa_dfa_unpack()
341 data += hsize; in aa_dfa_unpack()
342 size -= hsize; in aa_dfa_unpack()
264 int hsize; aa_dfa_unpack() local
/linux/drivers/macintosh/
H A Dwindfarm_rm31.c298 int fmin, fmax, hsize; in cpu_setup_pid() local
318 hsize = min_t(int, mpu->tguardband, WF_PID_MAX_HISTORY); in cpu_setup_pid()
319 DBG("wf_72: CPU%d history size = %d\n", cpu, hsize); in cpu_setup_pid()
323 pid.history_len = hsize; in cpu_setup_pid()
H A Dwindfarm_pm72.c397 int fmin, fmax, hsize; in cpu_setup_pid() local
417 hsize = min_t(int, mpu->tguardband, WF_PID_MAX_HISTORY); in cpu_setup_pid()
418 DBG("wf_72: CPU%d history size = %d\n", cpu, hsize); in cpu_setup_pid()
422 pid.history_len = hsize; in cpu_setup_pid()
/linux/drivers/media/platform/xilinx/
H A Dxilinx-vtc.h25 unsigned int hsize; member
/linux/drivers/gpu/drm/arm/display/komeda/d71/
H A Dd71_component.c281 malidp_write32(reg, BLK_IN_SIZE, HV_SIZE(st->hsize, st->vsize)); in d71_layer_update()
371 line_sz = st->hsize - st->afbc_crop_l - st->afbc_crop_r; in d71_layer_validate()
481 malidp_write32(reg, BLK_IN_SIZE, HV_SIZE(st->hsize, st->vsize)); in d71_wb_layer_update()
596 HV_SIZE(cin->hsize, cin->vsize)); in compiz_enable_input()
623 malidp_write32(reg, BLK_SIZE, HV_SIZE(st->hsize, st->vsize)); in d71_compiz_update()
689 set_range(&compiz->hsize, 64, get_blk_line_size(d71, reg)); in d71_compiz_init()
859 set_range(&scaler->hsize, 4, __get_blk_line_size(d71, reg, 2048)); in d71_scaler_init()
919 malidp_write32(reg, BLK_SIZE, HV_SIZE(st->hsize, st->vsize)); in d71_splitter_update()
968 set_range(&splitter->hsize, 4, get_blk_line_size(d71, reg)); in d71_splitter_init()
1059 malidp_write32(reg, BLK_SIZE, HV_SIZE(st->hsize, st->vsize)); in d71_improc_update()
/linux/net/tipc/
H A Dmsg.c82 u32 hsize, u32 dnode) in tipc_msg_init() argument
84 memset(m, 0, hsize); in tipc_msg_init()
87 msg_set_hdr_sz(m, hsize); in tipc_msg_init()
88 msg_set_size(m, hsize); in tipc_msg_init()
91 if (hsize > SHORT_H_SIZE) { in tipc_msg_init()
/linux/fs/xfs/
H A Dxfs_handle.c85 int hsize; in xfs_find_handle() local
125 hsize = xfs_fshandle_init(ip->i_mount, &handle); in xfs_find_handle()
127 hsize = xfs_filehandle_init(ip->i_mount, ip->i_ino, in xfs_find_handle()
131 if (copy_to_user(hreq->ohandle, &handle, hsize) || in xfs_find_handle()
132 copy_to_user(hreq->ohandlen, &hsize, sizeof(__s32))) in xfs_find_handle()
/linux/include/net/netfilter/
H A Dnf_conntrack.h339 nf_conntrack_get_ht(struct hlist_nulls_head **hash, unsigned int *hsize) in nf_conntrack_get_ht() argument
351 *hsize = hsz; in nf_conntrack_get_ht()
/linux/drivers/gpu/drm/
H A Ddrm_edid.c3024 int hsize, int vsize, int fresh, in drm_mode_find_dmt() argument
3032 if (hsize != ptr->hdisplay) in drm_mode_find_dmt()
3302 int hsize, int vsize, int vrefresh_rate) in drm_gtf2_mode() argument
3311 mode = drm_gtf_mode(dev, hsize, vsize, vrefresh_rate, 0, 0); in drm_gtf2_mode()
3317 mode = drm_gtf_mode_complex(dev, hsize, vsize, in drm_gtf2_mode()
3338 int hsize, vsize; in drm_mode_std() local
3346 if (bad_std_timing(t->hsize, t->vfreq_aspect)) in drm_mode_std()
3350 hsize = t->hsize * 8 + 248; in drm_mode_std()
3356 vsize = hsize; in drm_mode_std()
3358 vsize = (hsize * 10) / 16; in drm_mode_std()
[all …]
/linux/include/drm/
H A Ddrm_edid.h64 u8 hsize; /* need to multiply by 8 then add 248 */ member
447 int hsize, int vsize, int fresh,
/linux/net/netfilter/
H A Dnf_conntrack_core.c741 unsigned int bucket, hsize; in ____nf_conntrack_find() local
744 nf_conntrack_get_ht(&ct_hash, &hsize); in ____nf_conntrack_find()
745 bucket = reciprocal_scale(hash, hsize); in ____nf_conntrack_find()
1346 unsigned int hash, hsize; in nf_conntrack_tuple_taken() local
1354 nf_conntrack_get_ht(&ct_hash, &hsize); in nf_conntrack_tuple_taken()
1355 hash = __hash_conntrack(net, tuple, nf_ct_zone_id(zone, IP_CT_DIR_REPLY), hsize); in nf_conntrack_tuple_taken()
1458 unsigned int hsize, drops; in early_drop() local
1461 nf_conntrack_get_ht(&ct_hash, &hsize); in early_drop()
1463 bucket = reciprocal_scale(hash, hsize); in early_drop()
1465 bucket = (bucket + 1) % hsize; in early_drop()
/linux/include/video/
H A Dili9320.h178 unsigned short hsize; member
/linux/fs/f2fs/
H A Dxattr.c431 static inline int write_all_xattrs(struct inode *inode, __u32 hsize, in write_all_xattrs() argument
443 if (hsize > inline_size && !F2FS_I(inode)->i_xattr_nid) in write_all_xattrs()
463 if (hsize <= inline_size) { in write_all_xattrs()
/linux/drivers/video/backlight/
H A Dvgg2432a4.c168 ili9320_write(lcd, ILI9320_HORIZ_END, cfg->hsize - 1); in vgg2432a4_lcd_init()
H A Dili9320.c210 if (cfg->hsize <= 0 || cfg->vsize <= 0 || cfg->reset == NULL) { in ili9320_probe_spi()

12