Home
last modified time | relevance | path

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

12

/Linux-v5.4/lib/mpi/
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-v5.4/security/integrity/platform_certs/
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-v5.4/fs/verity/
Dverify.c44 unsigned int hsize, u8 *out) in extract_hash() argument
48 memcpy(out, virt + hoffset, hsize); in extract_hash()
56 const unsigned int hsize = vi->tree_params.digest_size; in cmp_hashes() local
58 if (memcmp(want_hash, real_hash, hsize) == 0) in cmp_hashes()
64 vi->tree_params.hash_alg->name, hsize, want_hash, in cmp_hashes()
65 vi->tree_params.hash_alg->name, hsize, real_hash); in cmp_hashes()
90 const unsigned int hsize = params->digest_size; in verify_page() local
131 extract_hash(hpage, hoffset, hsize, _want_hash); in verify_page()
136 hsize, want_hash); in verify_page()
146 params->hash_alg->name, hsize, want_hash); in verify_page()
[all …]
/Linux-v5.4/drivers/net/ppp/
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-v5.4/drivers/gpu/drm/arm/display/komeda/
Dkomeda_pipeline.h242 u16 hsize, vsize; member
253 struct malidp_range hsize, vsize; member
276 struct malidp_range hsize, vsize; member
280 u16 hsize, vsize; member
288 u16 hsize, vsize; member
306 struct malidp_range hsize, vsize; member
311 u16 hsize, vsize; member
326 u16 hsize, vsize; member
510 u16 *hsize, u16 *vsize);
Dkomeda_pipeline_state.c346 st->hsize = kfb->aligned_w; in komeda_layer_validate()
353 st->hsize = dflow->in_w; in komeda_layer_validate()
402 st->hsize = dflow->out_w; in komeda_wb_layer_validate()
438 if (!in_range(&scaler->hsize, hsize_in) || in komeda_scaler_check_cfg()
439 !in_range(&scaler->hsize, hsize_out)) { in komeda_scaler_check_cfg()
560 if (!in_range(&splitter->hsize, dflow->in_w)) { in komeda_splitter_validate()
582 st->hsize = dflow->in_w; in komeda_splitter_validate()
640 u16 *hsize, u16 *vsize) in pipeline_composition_size() argument
644 if (hsize) in pipeline_composition_size()
645 *hsize = m->hdisplay; in pipeline_composition_size()
[all …]
/Linux-v5.4/drivers/mcb/
Dmcb-parse.c187 u32 hsize; in chameleon_parse_cells() local
189 hsize = sizeof(struct chameleon_fpga_header); in chameleon_parse_cells()
191 header = kzalloc(hsize, GFP_KERNEL); in chameleon_parse_cells()
196 memcpy_fromio(header, p, hsize); in chameleon_parse_cells()
205 p += hsize; in chameleon_parse_cells()
/Linux-v5.4/mm/
Dhugetlb_cgroup.c342 static char *mem_fmt(char *buf, int size, unsigned long hsize) in mem_fmt() argument
344 if (hsize >= (1UL << 30)) in mem_fmt()
345 snprintf(buf, size, "%luGB", hsize >> 30); in mem_fmt()
346 else if (hsize >= (1UL << 20)) in mem_fmt()
347 snprintf(buf, size, "%luMB", hsize >> 20); in mem_fmt()
349 snprintf(buf, size, "%luKB", hsize >> 10); in mem_fmt()
/Linux-v5.4/fs/gfs2/
Ddir.c342 u32 hsize; in gfs2_dir_get_hash_table() local
351 hsize = BIT(ip->i_depth); in gfs2_dir_get_hash_table()
352 hsize *= sizeof(__be64); in gfs2_dir_get_hash_table()
353 if (hsize != i_size_read(&ip->i_inode)) { in gfs2_dir_get_hash_table()
358 hc = kmalloc(hsize, GFP_NOFS | __GFP_NOWARN); in gfs2_dir_get_hash_table()
360 hc = __vmalloc(hsize, GFP_NOFS, PAGE_KERNEL); in gfs2_dir_get_hash_table()
365 ret = gfs2_dir_read_data(ip, hc, hsize); in gfs2_dir_get_hash_table()
822 unsigned int hsize = BIT(ip->i_depth); in gfs2_dirent_search() local
825 if (hsize * sizeof(u64) != i_size_read(inode)) { in gfs2_dirent_search()
1156 u32 hsize; in dir_double_exhash() local
[all …]
/Linux-v5.4/drivers/media/pci/solo6x10/
Dsolo6x10-v4l2.c115 int sy, ysize, hsize, i; in solo_v4l2_ch_ext_16up() local
127 hsize = solo_dev->video_hsize / 4; in solo_v4l2_ch_ext_16up()
130 solo_win_setup(solo_dev, i * 4, 0, sy, hsize, in solo_v4l2_ch_ext_16up()
132 solo_win_setup(solo_dev, (i * 4) + 1, hsize, sy, in solo_v4l2_ch_ext_16up()
133 hsize * 2, sy + ysize, 5); in solo_v4l2_ch_ext_16up()
134 solo_win_setup(solo_dev, (i * 4) + 2, hsize * 2, sy, in solo_v4l2_ch_ext_16up()
135 hsize * 3, sy + ysize, 5); in solo_v4l2_ch_ext_16up()
136 solo_win_setup(solo_dev, (i * 4) + 3, hsize * 3, sy, in solo_v4l2_ch_ext_16up()
/Linux-v5.4/fs/pstore/
Dplatform.c354 static size_t copy_kmsg_to_buffer(int hsize, size_t len) in copy_kmsg_to_buffer() argument
359 total_len = hsize + len; in copy_kmsg_to_buffer()
362 diff = total_len - psinfo->bufsize + hsize; in copy_kmsg_to_buffer()
363 memcpy(psinfo->buf, big_oops_buf, hsize); in copy_kmsg_to_buffer()
364 memcpy(psinfo->buf + hsize, big_oops_buf + diff, in copy_kmsg_to_buffer()
365 psinfo->bufsize - hsize); in copy_kmsg_to_buffer()
/Linux-v5.4/net/xfrm/
Dxfrm_device.c23 unsigned int hsize) in __xfrm_transport_prep() argument
28 pskb_pull(skb, skb->mac_len + hsize + x->props.header_len); in __xfrm_transport_prep()
37 unsigned int hsize) in __xfrm_mode_tunnel_prep() argument
43 skb->transport_header = skb->network_header + hsize; in __xfrm_mode_tunnel_prep()
/Linux-v5.4/security/apparmor/
Dmatch.c283 int hsize; in aa_dfa_unpack() local
302 hsize = ntohl(*(__be32 *) (data + 4)); in aa_dfa_unpack()
303 if (size < hsize) in aa_dfa_unpack()
310 data += hsize; in aa_dfa_unpack()
311 size -= hsize; in aa_dfa_unpack()
/Linux-v5.4/drivers/media/platform/xilinx/
Dxilinx-vtc.h25 unsigned int hsize; member
/Linux-v5.4/net/tipc/
Dmsg.c76 u32 hsize, u32 dnode) in tipc_msg_init() argument
78 memset(m, 0, hsize); in tipc_msg_init()
81 msg_set_hdr_sz(m, hsize); in tipc_msg_init()
82 msg_set_size(m, hsize); in tipc_msg_init()
85 if (hsize > SHORT_H_SIZE) { in tipc_msg_init()
/Linux-v5.4/net/netfilter/ipset/
Dip_set_hash_gen.h101 size_t hsize; in htable_size() local
106 hsize = jhash_size(hbits); in htable_size()
108 < hsize) in htable_size()
111 return hsize * sizeof(struct hbucket *) + sizeof(struct htable); in htable_size()
1226 size_t hsize; in IPSET_TOKEN() local
1281 hsize = sizeof(*h); in IPSET_TOKEN()
1282 h = kzalloc(hsize, GFP_KERNEL); in IPSET_TOKEN()
1287 hsize = htable_size(hbits); in IPSET_TOKEN()
1288 if (hsize == 0) { in IPSET_TOKEN()
1292 t = ip_set_alloc(hsize); in IPSET_TOKEN()
/Linux-v5.4/drivers/gpu/drm/arm/display/komeda/d71/
Dd71_component.c262 malidp_write32(reg, BLK_IN_SIZE, HV_SIZE(st->hsize, st->vsize)); in d71_layer_update()
392 malidp_write32(reg, BLK_IN_SIZE, HV_SIZE(st->hsize, st->vsize)); in d71_wb_layer_update()
505 HV_SIZE(cin->hsize, cin->vsize)); in compiz_enable_input()
532 malidp_write32(reg, BLK_SIZE, HV_SIZE(st->hsize, st->vsize)); in d71_compiz_update()
598 set_range(&compiz->hsize, D71_MIN_LINE_SIZE, d71->max_line_size); in d71_compiz_init()
756 set_range(&scaler->hsize, 4, 2048); in d71_scaler_init()
816 malidp_write32(reg, BLK_SIZE, HV_SIZE(st->hsize, st->vsize)); in d71_splitter_update()
865 set_range(&splitter->hsize, 4, d71->max_line_size); in d71_splitter_init()
953 malidp_write32(reg, BLK_SIZE, HV_SIZE(st->hsize, st->vsize)); in d71_improc_update()
/Linux-v5.4/drivers/macintosh/
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()
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-v5.4/include/net/netfilter/
Dnf_conntrack.h294 nf_conntrack_get_ht(struct hlist_nulls_head **hash, unsigned int *hsize) in nf_conntrack_get_ht() argument
306 *hsize = hsz; in nf_conntrack_get_ht()
/Linux-v5.4/drivers/gpu/drm/
Ddrm_edid.c1936 int hsize, int vsize, int fresh, in drm_mode_find_dmt() argument
1943 if (hsize != ptr->hdisplay) in drm_mode_find_dmt()
2127 int hsize, vsize; in drm_mode_std() local
2135 if (bad_std_timing(t->hsize, t->vfreq_aspect)) in drm_mode_std()
2139 hsize = t->hsize * 8 + 248; in drm_mode_std()
2145 vsize = hsize; in drm_mode_std()
2147 vsize = (hsize * 10) / 16; in drm_mode_std()
2149 vsize = (hsize * 3) / 4; in drm_mode_std()
2151 vsize = (hsize * 4) / 5; in drm_mode_std()
2153 vsize = (hsize * 9) / 16; in drm_mode_std()
[all …]
/Linux-v5.4/include/drm/
Ddrm_edid.h59 u8 hsize; /* need to multiply by 8 then add 248 */ member
501 int hsize, int vsize, int fresh,
/Linux-v5.4/drivers/net/
Dgtp.c643 static int gtp_hashtable_new(struct gtp_dev *gtp, int hsize);
749 static int gtp_hashtable_new(struct gtp_dev *gtp, int hsize) in gtp_hashtable_new() argument
753 gtp->addr_hash = kmalloc_array(hsize, sizeof(struct hlist_head), in gtp_hashtable_new()
758 gtp->tid_hash = kmalloc_array(hsize, sizeof(struct hlist_head), in gtp_hashtable_new()
763 gtp->hash_size = hsize; in gtp_hashtable_new()
765 for (i = 0; i < hsize; i++) { in gtp_hashtable_new()
/Linux-v5.4/net/netfilter/
Dnf_conntrack_core.c736 unsigned int bucket, hsize; in ____nf_conntrack_find() local
739 nf_conntrack_get_ht(&ct_hash, &hsize); in ____nf_conntrack_find()
740 bucket = reciprocal_scale(hash, hsize); in ____nf_conntrack_find()
1058 unsigned int hash, hsize; in nf_conntrack_tuple_taken() local
1066 nf_conntrack_get_ht(&ct_hash, &hsize); in nf_conntrack_tuple_taken()
1067 hash = __hash_conntrack(net, tuple, hsize); in nf_conntrack_tuple_taken()
1169 unsigned int hsize, drops; in early_drop() local
1172 nf_conntrack_get_ht(&ct_hash, &hsize); in early_drop()
1174 bucket = reciprocal_scale(hash, hsize); in early_drop()
1176 bucket = (bucket + 1) % hsize; in early_drop()
/Linux-v5.4/include/video/
Dili9320.h178 unsigned short hsize; member

12