/Linux-v4.19/lib/mpi/ |
D | mpih-mul.c | 146 mpi_size_t hsize = size >> 1; in mul_n() local 155 MPN_MUL_N_RECURSE(prodp + size, up + hsize, vp + hsize, hsize, in mul_n() 161 if (mpihelp_cmp(up + hsize, up, hsize) >= 0) { in mul_n() 162 mpihelp_sub_n(prodp, up + hsize, up, hsize); in mul_n() 165 mpihelp_sub_n(prodp, up, up + hsize, hsize); in mul_n() 168 if (mpihelp_cmp(vp + hsize, vp, hsize) >= 0) { in mul_n() 169 mpihelp_sub_n(prodp + hsize, vp + hsize, vp, hsize); in mul_n() 172 mpihelp_sub_n(prodp + hsize, vp, vp + hsize, hsize); in mul_n() 179 MPN_MUL_N_RECURSE(tspace, prodp, prodp + hsize, hsize, in mul_n() 183 MPN_COPY(prodp + hsize, prodp + size, hsize); in mul_n() [all …]
|
/Linux-v4.19/drivers/net/ppp/ |
D | bsd_comp.c | 138 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-v4.19/drivers/isdn/i4l/ |
D | isdn_bsdcomp.c | 117 unsigned int hsize; /* size of the hash table */ member 307 unsigned int hsize, hshift, maxmaxcode; in bsd_alloc() local 325 hsize = htab[bits - 9][0]; in bsd_alloc() 343 db->dict = vmalloc(array_size(hsize, sizeof(struct bsd_dict))); in bsd_alloc() 367 db->totlen = sizeof(struct bsd_db) + (sizeof(struct bsd_dict) * hsize); in bsd_alloc() 368 db->hsize = hsize; in bsd_alloc() 404 indx = db->hsize; in bsd_init() 439 if ((unsigned int) idx >= (unsigned int) db->hsize) { in dict_ptr() 532 if (hval >= db->hsize) in bsd_compress() 533 hval -= db->hsize; in bsd_compress() [all …]
|
/Linux-v4.19/drivers/mcb/ |
D | mcb-parse.c | 186 u32 hsize; in chameleon_parse_cells() local 188 hsize = sizeof(struct chameleon_fpga_header); in chameleon_parse_cells() 190 header = kzalloc(hsize, GFP_KERNEL); in chameleon_parse_cells() 195 memcpy_fromio(header, p, hsize); in chameleon_parse_cells() 204 p += hsize; in chameleon_parse_cells()
|
/Linux-v4.19/mm/ |
D | hugetlb_cgroup.c | 342 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-v4.19/fs/gfs2/ |
D | dir.c | 345 u32 hsize; in gfs2_dir_get_hash_table() local 354 hsize = BIT(ip->i_depth); in gfs2_dir_get_hash_table() 355 hsize *= sizeof(__be64); in gfs2_dir_get_hash_table() 356 if (hsize != i_size_read(&ip->i_inode)) { in gfs2_dir_get_hash_table() 361 hc = kmalloc(hsize, GFP_NOFS | __GFP_NOWARN); in gfs2_dir_get_hash_table() 363 hc = __vmalloc(hsize, GFP_NOFS, PAGE_KERNEL); in gfs2_dir_get_hash_table() 368 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-v4.19/fs/pstore/ |
D | platform.c | 320 static size_t copy_kmsg_to_buffer(int hsize, size_t len) in copy_kmsg_to_buffer() argument 325 total_len = hsize + len; in copy_kmsg_to_buffer() 328 diff = total_len - psinfo->bufsize + hsize; in copy_kmsg_to_buffer() 329 memcpy(psinfo->buf, big_oops_buf, hsize); in copy_kmsg_to_buffer() 330 memcpy(psinfo->buf + hsize, big_oops_buf + diff, in copy_kmsg_to_buffer() 331 psinfo->bufsize - hsize); in copy_kmsg_to_buffer()
|
/Linux-v4.19/drivers/media/pci/solo6x10/ |
D | solo6x10-v4l2.c | 124 int sy, ysize, hsize, i; in solo_v4l2_ch_ext_16up() local 136 hsize = solo_dev->video_hsize / 4; in solo_v4l2_ch_ext_16up() 139 solo_win_setup(solo_dev, i * 4, 0, sy, hsize, in solo_v4l2_ch_ext_16up() 141 solo_win_setup(solo_dev, (i * 4) + 1, hsize, sy, in solo_v4l2_ch_ext_16up() 142 hsize * 2, sy + ysize, 5); in solo_v4l2_ch_ext_16up() 143 solo_win_setup(solo_dev, (i * 4) + 2, hsize * 2, sy, in solo_v4l2_ch_ext_16up() 144 hsize * 3, sy + ysize, 5); in solo_v4l2_ch_ext_16up() 145 solo_win_setup(solo_dev, (i * 4) + 3, hsize * 3, sy, in solo_v4l2_ch_ext_16up()
|
/Linux-v4.19/security/apparmor/ |
D | match.c | 287 int hsize; in aa_dfa_unpack() local 306 hsize = ntohl(*(__be32 *) (data + 4)); in aa_dfa_unpack() 307 if (size < hsize) in aa_dfa_unpack() 314 data += hsize; in aa_dfa_unpack() 315 size -= hsize; in aa_dfa_unpack()
|
/Linux-v4.19/drivers/media/platform/xilinx/ |
D | xilinx-vtc.h | 28 unsigned int hsize; member
|
D | xilinx-vtc.c | 209 xvtc_gen_write(xvtc, XVTC_HSIZE, config->hsize); in xvtc_generator_start()
|
/Linux-v4.19/net/tipc/ |
D | msg.c | 76 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-v4.19/net/netfilter/ipset/ |
D | ip_set_hash_gen.h | 105 size_t hsize; in htable_size() local 110 hsize = jhash_size(hbits); in htable_size() 112 < hsize) in htable_size() 115 return hsize * sizeof(struct hbucket *) + sizeof(struct htable); in htable_size() 1230 size_t hsize; in IPSET_TOKEN() local 1285 hsize = sizeof(*h); in IPSET_TOKEN() 1286 h = kzalloc(hsize, GFP_KERNEL); in IPSET_TOKEN() 1291 hsize = htable_size(hbits); in IPSET_TOKEN() 1292 if (hsize == 0) { in IPSET_TOKEN() 1296 t = ip_set_alloc(hsize); in IPSET_TOKEN()
|
/Linux-v4.19/drivers/macintosh/ |
D | windfarm_rm31.c | 299 int fmin, fmax, hsize; in cpu_setup_pid() local 319 hsize = min_t(int, mpu->tguardband, WF_PID_MAX_HISTORY); in cpu_setup_pid() 320 DBG("wf_72: CPU%d history size = %d\n", cpu, hsize); in cpu_setup_pid() 324 pid.history_len = hsize; in cpu_setup_pid()
|
D | windfarm_pm72.c | 398 int fmin, fmax, hsize; in cpu_setup_pid() local 418 hsize = min_t(int, mpu->tguardband, WF_PID_MAX_HISTORY); in cpu_setup_pid() 419 DBG("wf_72: CPU%d history size = %d\n", cpu, hsize); in cpu_setup_pid() 423 pid.history_len = hsize; in cpu_setup_pid()
|
/Linux-v4.19/drivers/gpu/drm/ |
D | drm_edid.c | 1872 int hsize, int vsize, int fresh, in drm_mode_find_dmt() argument 1879 if (hsize != ptr->hdisplay) in drm_mode_find_dmt() 2063 int hsize, vsize; in drm_mode_std() local 2071 if (bad_std_timing(t->hsize, t->vfreq_aspect)) in drm_mode_std() 2075 hsize = t->hsize * 8 + 248; in drm_mode_std() 2081 vsize = hsize; in drm_mode_std() 2083 vsize = (hsize * 10) / 16; in drm_mode_std() 2085 vsize = (hsize * 3) / 4; in drm_mode_std() 2087 vsize = (hsize * 4) / 5; in drm_mode_std() 2089 vsize = (hsize * 9) / 16; in drm_mode_std() [all …]
|
/Linux-v4.19/include/net/netfilter/ |
D | nf_conntrack.h | 296 nf_conntrack_get_ht(struct hlist_nulls_head **hash, unsigned int *hsize) in nf_conntrack_get_ht() argument 308 *hsize = hsz; in nf_conntrack_get_ht()
|
/Linux-v4.19/include/drm/ |
D | drm_edid.h | 58 u8 hsize; /* need to multiply by 8 then add 248 */ member 489 int hsize, int vsize, int fresh,
|
/Linux-v4.19/drivers/net/ |
D | gtp.c | 634 static int gtp_hashtable_new(struct gtp_dev *gtp, int hsize); 741 static int gtp_hashtable_new(struct gtp_dev *gtp, int hsize) in gtp_hashtable_new() argument 745 gtp->addr_hash = kmalloc_array(hsize, sizeof(struct hlist_head), in gtp_hashtable_new() 750 gtp->tid_hash = kmalloc_array(hsize, sizeof(struct hlist_head), in gtp_hashtable_new() 755 gtp->hash_size = hsize; in gtp_hashtable_new() 757 for (i = 0; i < hsize; i++) { in gtp_hashtable_new()
|
/Linux-v4.19/net/netfilter/ |
D | nf_conntrack_core.c | 671 unsigned int bucket, hsize; in ____nf_conntrack_find() local 674 nf_conntrack_get_ht(&ct_hash, &hsize); in ____nf_conntrack_find() 675 bucket = reciprocal_scale(hash, hsize); in ____nf_conntrack_find() 987 unsigned int hash, hsize; in nf_conntrack_tuple_taken() local 995 nf_conntrack_get_ht(&ct_hash, &hsize); in nf_conntrack_tuple_taken() 996 hash = __hash_conntrack(net, tuple, hsize); in nf_conntrack_tuple_taken() 1082 unsigned int hash, hsize, drops; in early_drop() local 1085 nf_conntrack_get_ht(&ct_hash, &hsize); in early_drop() 1086 hash = reciprocal_scale(_hash++, hsize); in early_drop()
|
/Linux-v4.19/fs/f2fs/ |
D | xattr.c | 391 static inline int write_all_xattrs(struct inode *inode, __u32 hsize, in write_all_xattrs() argument 403 if (hsize > inline_size && !F2FS_I(inode)->i_xattr_nid) in write_all_xattrs() 423 if (hsize <= inline_size) { in write_all_xattrs()
|
/Linux-v4.19/include/video/ |
D | ili9320.h | 181 unsigned short hsize; member
|
/Linux-v4.19/drivers/video/backlight/ |
D | vgg2432a4.c | 171 ili9320_write(lcd, ILI9320_HORIZ_END, cfg->hsize - 1); in vgg2432a4_lcd_init()
|
D | ili9320.c | 214 if (cfg->hsize <= 0 || cfg->vsize <= 0 || cfg->reset == NULL) { in ili9320_probe_spi()
|
/Linux-v4.19/net/core/ |
D | skbuff.c | 3585 int hsize; in skb_segment() local 3596 hsize = skb_headlen(head_skb) - offset; in skb_segment() 3597 if (hsize < 0) in skb_segment() 3598 hsize = 0; in skb_segment() 3599 if (hsize > len || !sg) in skb_segment() 3600 hsize = len; in skb_segment() 3602 if (!hsize && i >= nfrags && skb_headlen(list_skb) && in skb_segment() 3635 hsize = skb_end_offset(nskb); in skb_segment() 3641 nskb->truesize += skb_end_offset(nskb) - hsize; in skb_segment() 3645 nskb = __alloc_skb(hsize + doffset + headroom, in skb_segment() [all …]
|