| /linux/lib/crypto/mpi/ |
| H A D | mpih-mul.c | 133 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 D | efi_parser.c | 50 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 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() 408 db->dict = vmalloc_array(hsize, sizeof(struct bsd_dict)); in bsd_alloc() 438 (sizeof (struct bsd_dict) * hsize); in bsd_alloc() 440 db->hsize = hsize; in bsd_alloc() 486 indx = db->hsize; in bsd_init() [all …]
|
| /linux/fs/verity/ |
| H A D | verify.c | 164 const unsigned int hsize = params->digest_size; in verify_data_block() local 257 memcpy(_want_hash, haddr + hoffset, hsize); in verify_data_block() 286 if (memcmp(want_hash, real_hash, hsize) != 0) in verify_data_block() 297 memcpy(_want_hash, haddr + hoffset, hsize); in verify_data_block() 304 if (memcmp(want_hash, dblock->real_hash, hsize) != 0) in verify_data_block() 312 data_pos, level - 1, params->hash_alg->name, hsize, want_hash, in verify_data_block() 313 params->hash_alg->name, hsize, in verify_data_block()
|
| /linux/drivers/mcb/ |
| H A D | mcb-parse.c | 179 u32 hsize; in chameleon_parse_cells() local 182 hsize = sizeof(struct chameleon_fpga_header); in chameleon_parse_cells() 184 header = kzalloc(hsize, GFP_KERNEL); in chameleon_parse_cells() 189 memcpy_fromio(header, p, hsize); in chameleon_parse_cells() 198 p += hsize; in chameleon_parse_cells()
|
| /linux/fs/gfs2/ |
| H A D | dir.c | 339 u32 hsize; in gfs2_dir_get_hash_table() local 348 hsize = BIT(ip->i_depth); in gfs2_dir_get_hash_table() 349 hsize *= sizeof(__be64); in gfs2_dir_get_hash_table() 350 if (hsize != i_size_read(&ip->i_inode)) { in gfs2_dir_get_hash_table() 355 hc = kmalloc(hsize, GFP_NOFS | __GFP_NOWARN); in gfs2_dir_get_hash_table() 357 hc = __vmalloc(hsize, GFP_NOFS); in gfs2_dir_get_hash_table() 362 ret = gfs2_dir_read_data(ip, hc, hsize); in gfs2_dir_get_hash_table() 821 unsigned int hsize = BIT(ip->i_depth); in gfs2_dirent_search() local 824 if (hsize * sizeof(u64) != i_size_read(inode)) { in gfs2_dirent_search() 1151 u32 hsize; in dir_double_exhash() local [all …]
|
| /linux/net/xfrm/ |
| H A D | xfrm_device.c | 24 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() 50 unsigned int hsize) in __xfrm_mode_beet_prep() argument 56 skb->transport_header = skb->network_header + hsize; in __xfrm_mode_beet_prep() 65 pskb_pull(skb, skb->mac_len + hsize + (x->props.header_len - phlen)); in __xfrm_mode_beet_prep()
|
| /linux/net/netfilter/ipset/ |
| H A D | ip_set_hash_gen.h | 109 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() 629 size_t hsize, dsize = set->dsize; in mtype_resize() local 655 hsize = htable_size(htable_bits); in mtype_resize() 656 if (!hsize) in mtype_resize() 658 t = ip_set_alloc(hsize); in mtype_resize() 1487 size_t hsize; in IPSET_TOKEN() local 1569 hsize = sizeof(*h); in IPSET_TOKEN() [all …]
|
| /linux/mm/ |
| H A D | hugetlb_cgroup.c | 663 static char *mem_fmt(char *buf, int size, unsigned long hsize) in mem_fmt() argument 665 if (hsize >= SZ_1G) in mem_fmt() 666 snprintf(buf, size, "%luGB", hsize / SZ_1G); in mem_fmt() 667 else if (hsize >= SZ_1M) in mem_fmt() 668 snprintf(buf, size, "%luMB", hsize / SZ_1M); in mem_fmt() 670 snprintf(buf, size, "%luKB", hsize / SZ_1K); in mem_fmt()
|
| /linux/security/apparmor/ |
| H A D | match.c | 316 int hsize; in aa_dfa_unpack() local 335 hsize = get_unaligned_be32(data + 4); in aa_dfa_unpack() 336 if (size < hsize) in aa_dfa_unpack() 357 data += hsize; in aa_dfa_unpack() 358 size -= hsize; in aa_dfa_unpack()
|
| /linux/drivers/media/platform/xilinx/ |
| H A D | xilinx-vtc.h | 25 unsigned int hsize; member
|
| /linux/drivers/macintosh/ |
| H A D | windfarm_rm31.c | 298 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 D | windfarm_pm72.c | 397 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/net/tipc/ |
| H A D | msg.c | 82 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()
|
| H A D | msg.h | 1161 u32 hsize, u32 destnode);
|
| /linux/fs/xfs/ |
| H A D | xfs_handle.c | 85 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/net/netfilter/ |
| H A D | nf_conntrack_core.c | 745 unsigned int bucket, hsize; in ____nf_conntrack_find() local 748 nf_conntrack_get_ht(&ct_hash, &hsize); in ____nf_conntrack_find() 749 bucket = reciprocal_scale(hash, hsize); in ____nf_conntrack_find() 1364 unsigned int hash, hsize; in nf_conntrack_tuple_taken() local 1372 nf_conntrack_get_ht(&ct_hash, &hsize); in nf_conntrack_tuple_taken() 1373 hash = __hash_conntrack(net, tuple, nf_ct_zone_id(zone, IP_CT_DIR_REPLY), hsize); in nf_conntrack_tuple_taken() 1476 unsigned int hsize, drops; in early_drop() local 1479 nf_conntrack_get_ht(&ct_hash, &hsize); in early_drop() 1481 bucket = reciprocal_scale(hash, hsize); in early_drop() 1483 bucket = (bucket + 1) % hsize; in early_drop()
|
| /linux/drivers/dma/xilinx/ |
| H A D | xilinx_dpdma.c | 769 size_t hsize = xt->sgl[0].size; in xilinx_dpdma_chan_prep_interleaved_dma() local 770 size_t stride = hsize + xt->sgl[0].icg; in xilinx_dpdma_chan_prep_interleaved_dma() 793 hsize = ALIGN(hsize, XILINX_DPDMA_LINESIZE_ALIGN_BITS / 8); in xilinx_dpdma_chan_prep_interleaved_dma() 794 hw_desc->xfer_size = hsize * xt->numf; in xilinx_dpdma_chan_prep_interleaved_dma() 796 FIELD_PREP(XILINX_DPDMA_DESC_HSIZE_STRIDE_HSIZE_MASK, hsize) | in xilinx_dpdma_chan_prep_interleaved_dma()
|
| H A D | xilinx_dma.c | 242 u32 hsize; member 1460 vdma_desc_write(chan, XILINX_DMA_REG_HSIZE, last->hw.hsize); in xilinx_vdma_start_transfer() 2118 hw->hsize = xt->sgl[0].size; in xilinx_vdma_dma_prep_interleaved()
|
| /linux/include/video/ |
| H A D | ili9320.h | 178 unsigned short hsize; member
|
| /linux/drivers/video/backlight/ |
| H A D | ili9320.c | 210 if (cfg->hsize <= 0 || cfg->vsize <= 0 || cfg->reset == NULL) { in ili9320_probe_spi()
|
| /linux/drivers/media/usb/hdpvr/ |
| H A D | hdpvr-video.c | 702 unsigned hsize; in vidioc_query_dv_timings() local 706 hsize = V4L2_DV_BT_FRAME_WIDTH(bt); in vidioc_query_dv_timings() 708 fps = (unsigned)bt->pixelclock / (hsize * vsize); in vidioc_query_dv_timings()
|
| /linux/net/core/ |
| H A D | skbuff.c | 4875 int hsize; in skb_segment() local 4886 hsize = skb_headlen(head_skb) - offset; in skb_segment() 4888 if (hsize <= 0 && i >= nfrags && skb_headlen(list_skb) && in skb_segment() 4921 hsize = skb_end_offset(nskb); in skb_segment() 4927 nskb->truesize += skb_end_offset(nskb) - hsize; in skb_segment() 4931 if (hsize < 0) in skb_segment() 4932 hsize = 0; in skb_segment() 4933 if (hsize > len || !sg) in skb_segment() 4934 hsize = len; in skb_segment() 4936 nskb = __alloc_skb(hsize + doffset + headroom, in skb_segment() [all …]
|
| /linux/drivers/media/platform/renesas/ |
| H A D | rcar_fdp1.c | 817 unsigned int hsize = src_q_data->format.width; in fdp1_set_ipc_sensor() local 820 x0 = hsize / 3; in fdp1_set_ipc_sensor() 821 x1 = 2 * hsize / 3; in fdp1_set_ipc_sensor() 828 fdp1_write(fdp1, ((hsize - 1) << FD1_IPC_SENSOR_CTL2_X_SHIFT) | in fdp1_set_ipc_sensor()
|
| /linux/drivers/staging/media/av7110/ |
| H A D | av7110_av.c | 355 int hsize, vsize; in get_video_format() local 369 hsize = ((p[1] & 0xF0) >> 4) | (p[0] << 4); in get_video_format() 374 dprintk(2, "playback %dx%d fr=%d\n", hsize, vsize, sw); in get_video_format()
|