Searched refs:psize (Results 1 - 25 of 142) sorted by last modified time

123456

/linux-master/net/mptcp/
H A Dprotocol.c1831 size_t psize, offset; local
1857 psize = pfrag->size - offset;
1858 psize = min_t(size_t, psize, msg_data_left(msg));
1859 psize = min_t(size_t, psize, copy_limit);
1860 total_ts = psize + frag_truesize;
1865 ret = do_copy_data_nocache(sk, psize, &msg->msg_iter,
1872 copied += psize;
1873 dfrag->data_len += psize;
[all...]
/linux-master/net/core/
H A Dskbuff.c1951 int i, order, psize, new_frags; local
1966 psize = (PAGE_SIZE << order);
1968 new_frags = (__skb_pagelen(skb) + psize - 1) >> (PAGE_SHIFT + order);
1997 if (d_off == psize) {
2001 copy = min_t(u32, psize - d_off, p_len - done);
2017 __skb_fill_netmem_desc(skb, i, page_to_netmem(head), 0, psize);
/linux-master/kernel/bpf/
H A Dcore.c294 u32 i, bsize, psize, blocks; local
332 psize = bpf_prog_insn_size(fp);
333 memset(&raw[psize], 0, raw_size - psize);
334 raw[psize++] = 0x80;
336 bsize = round_up(psize, SHA1_BLOCK_SIZE);
339 if (bsize - psize >= sizeof(__be64)) {
345 *bits = cpu_to_be64((psize - 1) << 3);
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/
H A Dr535.c2148 r535_gsp_elf_section(struct nvkm_gsp *gsp, const char *name, const u8 **pdata, u64 *psize) argument
2158 *psize = shdr->sh_size;
/linux-master/mm/
H A Dhugetlb.c6956 long pages = 0, psize = huge_page_size(h); local
6979 for (; address < end; address += psize) {
6981 ptep = hugetlb_walk(vma, address, psize);
6991 ptep = huge_pte_alloc(mm, vma, address, psize);
7035 set_huge_pte_at(mm, address, ptep, newpte, psize);
7045 huge_pte_clear(mm, address, ptep, psize);
7065 psize);
/linux-master/drivers/mtd/nand/raw/
H A Ddiskonchip.c913 const unsigned psize = 1 << this->page_shift; local
942 maxblocks = min(32768U, mtd->erasesize - psize);
953 maxblocks = min(32768U, (maxblocks << 1) + psize);
970 maxblocks = min(32768U, mtd->erasesize - psize);
/linux-master/arch/arm64/mm/
H A Dhugetlbpage.c558 unsigned long psize = huge_page_size(hstate_vma(vma)); local
560 set_huge_pte_at(vma->vm_mm, addr, ptep, pte, psize);
/linux-master/kernel/trace/
H A Dring_buffer.c5920 int psize; local
5930 psize = (1 << order) * PAGE_SIZE;
5931 if (psize <= BUF_PAGE_HDR_SIZE)
5935 if (psize > RB_WRITE_MASK + 1)
5949 buffer->subbuf_size = psize - BUF_PAGE_HDR_SIZE;
/linux-master/tools/testing/selftests/mm/
H A Dvm_util.h20 static inline unsigned int psize(void) function
30 __page_shift = (ffsl(psize()) - 1);
H A Duffd-unit-tests.c197 page_size = psize();
H A Dgup_test.c253 for (; (unsigned long)p < gup.addr + size; p += psize())
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/gr/
H A Dgf100.c886 gf100_gr_fecs_discover_reglist_image_size(struct gf100_gr *gr, u32 *psize) argument
894 if ((*psize = nvkm_rd32(device, 0x409800)))
924 gf100_gr_fecs_discover_pm_image_size(struct gf100_gr *gr, u32 *psize) argument
932 if ((*psize = nvkm_rd32(device, 0x409800)))
940 gf100_gr_fecs_discover_zcull_image_size(struct gf100_gr *gr, u32 *psize) argument
948 if ((*psize = nvkm_rd32(device, 0x409800)))
956 gf100_gr_fecs_discover_image_size(struct gf100_gr *gr, u32 *psize) argument
964 if ((*psize = nvkm_rd32(device, 0x409800)))
/linux-master/arch/x86/mm/
H A Dmem_encrypt_amd.c262 int psize, pmask, level; local
276 psize = page_level_size(level);
279 notify_page_enc_status_changed(pfn, psize >> PAGE_SHIFT, enc);
281 vaddr = (vaddr & pmask) + psize;
373 unsigned long psize, pmask; local
395 psize = page_level_size(level);
405 ((vaddr_end - vaddr) >= psize)) {
407 vaddr_next = (vaddr & pmask) + psize;
427 __pa((vaddr_end & pmask) + psize),
/linux-master/tools/lib/bpf/
H A Dlibbpf.c10165 void *bpf_map__initial_value(const struct bpf_map *map, size_t *psize) argument
10168 if (psize)
10169 *psize = map->def.value_size;
10177 *psize = map->obj->arena_data_sz;
10179 *psize = map->def.value_size;
/linux-master/crypto/
H A Dtestmgr.h32 * @psize: Length of source data in bytes
42 unsigned int psize; member in struct:hash_testvec
4415 .psize = 1,
4420 .psize = 3,
4425 .psize = 14,
4430 .psize = 26,
4435 .psize = 62,
4441 .psize = 80,
4456 .psize = 1,
4464 .psize
[all...]
/linux-master/drivers/misc/
H A Dxilinx_sdfec.c459 static int xsdfec_reg0_write(struct xsdfec_dev *xsdfec, u32 n, u32 k, u32 psize, argument
464 if (n < XSDFEC_REG0_N_MIN || n > XSDFEC_REG0_N_MAX || psize == 0 ||
465 (n > XSDFEC_REG0_N_MUL_P * psize) || n <= k || ((n % psize) != 0)) {
472 (k > XSDFEC_REG0_K_MUL_P * psize) || ((k % psize) != 0)) {
493 static int xsdfec_reg1_write(struct xsdfec_dev *xsdfec, u32 psize, argument
498 if (psize < XSDFEC_REG1_PSIZE_MIN || psize > XSDFEC_REG1_PSIZE_MAX) {
512 wdata = nm | no_packing | psize;
[all...]
/linux-master/drivers/fpga/
H A Ddfl.c990 * @psize: destination to store size of parameter data in bytes
994 void *dfh_find_param(struct dfl_device *dfl_dev, int param_id, size_t *psize) argument
1001 if (psize)
1002 *psize = (FIELD_GET(DFHv1_PARAM_HDR_NEXT_OFFSET, *phdr) - 1) * sizeof(u64);
/linux-master/arch/powerpc/mm/nohash/
H A D8xx.c66 pgprot_t prot, int psize, bool new)
71 if (WARN_ON(psize != MMU_PAGE_512K && psize != MMU_PAGE_8M))
78 if (psize == MMU_PAGE_512K)
83 if (psize == MMU_PAGE_512K)
97 pte_mkhuge(pfn_pte(pa >> PAGE_SHIFT, prot)), psize);
65 __early_map_kernel_hugepage(unsigned long va, phys_addr_t pa, pgprot_t prot, int psize, bool new) argument
/linux-master/fs/f2fs/
H A Ddata.c2745 loff_t psize = (loff_t)(page->index + 1) << PAGE_SHIFT; local
2852 if (F2FS_I(inode)->last_disk_size < psize)
2853 F2FS_I(inode)->last_disk_size = psize;
H A Dcompress.c1246 loff_t psize; local
1279 psize = (loff_t)(cc->rpages[last_index]->index + 1) << PAGE_SHIFT;
1382 if (fi->last_disk_size < psize)
1383 fi->last_disk_size = psize;
/linux-master/drivers/mtd/spi-nor/
H A Dsfdp.c1416 size_t psize; local
1453 psize = header.nph * sizeof(*param_headers);
1455 param_headers = kmalloc(psize, GFP_KERNEL);
1460 psize, param_headers);
/linux-master/drivers/media/platform/samsung/s5p-mfc/
H A Ds5p_mfc_enc.c2419 unsigned int psize[], struct device *alloc_devs[])
2438 psize[0] = ctx->enc_dst_buf_size;
2451 psize[0] = ctx->luma_size;
2452 psize[1] = ctx->chroma_size;
2456 psize[2] = ctx->chroma_size_1;
2417 s5p_mfc_queue_setup(struct vb2_queue *vq, unsigned int *buf_count, unsigned int *plane_count, unsigned int psize[], struct device *alloc_devs[]) argument
H A Ds5p_mfc_dec.c937 unsigned int *plane_count, unsigned int psize[],
982 psize[0] = ctx->luma_size;
983 psize[1] = ctx->chroma_size;
986 psize[2] = ctx->chroma_size_1;
996 psize[0] = ctx->dec_src_buf_size;
935 s5p_mfc_queue_setup(struct vb2_queue *vq, unsigned int *buf_count, unsigned int *plane_count, unsigned int psize[], struct device *alloc_devs[]) argument
/linux-master/drivers/media/platform/atmel/
H A Datmel-isi.c146 u32 cfg2, psize; local
166 psize = ((isi->fmt.fmt.pix.width - 1) << ISI_PSIZE_PREV_HSIZE_OFFSET) &
168 psize |= ((isi->fmt.fmt.pix.height - 1) << ISI_PSIZE_PREV_VSIZE_OFFSET) &
170 isi_writel(isi, ISI_PSIZE, psize);
/linux-master/drivers/dma/bestcomm/
H A Dsram.c42 unsigned int psize; local
94 psize = 0;
96 if (!regaddr_p || !psize) {
101 while (psize >= 2 * sizeof(u32)) {
105 psize -= 2 * sizeof(u32);

Completed in 470 milliseconds

123456