Home
last modified time | relevance | path

Searched refs:tsize (Results 1 – 33 of 33) sorted by relevance

/linux-4.4.14/arch/powerpc/mm/
Dhugetlbpage-book3e.c83 unsigned long psize, tsize, shift; in book3e_hugetlb_preload() local
98 tsize = mmu_get_tsize(psize); in book3e_hugetlb_preload()
103 tsize = shift - 10; in book3e_hugetlb_preload()
123 mas1 = MAS1_VALID | MAS1_TID(mm->context.id) | MAS1_TSIZE(tsize); in book3e_hugetlb_preload()
150 unsigned long tsize = huge_page_shift(hstate) - 10; in flush_hugetlb_page() local
152 __flush_tlb_page(vma->vm_mm, vmaddr, tsize, 0); in flush_hugetlb_page()
Dmmu_decl.h56 unsigned int tsize, unsigned int ind) in _tlbil_va() argument
62 unsigned int tsize, unsigned int ind);
66 unsigned int tsize, unsigned int ind) in _tlbil_va() argument
74 unsigned int tsize, unsigned int ind);
77 unsigned int tsize, unsigned int ind) in _tlbivax_bcast() argument
Dtlb_nohash.c193 int tsize, int ind) in __local_flush_tlb_page() argument
200 _tlbil_va(vmaddr, pid, tsize, ind); in __local_flush_tlb_page()
227 unsigned int tsize; member
242 _tlbil_va(p->addr, p->pid, p->tsize, p->ind); in do_flush_tlb_page_ipi()
283 int tsize, int ind) in __flush_tlb_page() argument
306 _tlbivax_bcast(vmaddr, pid, tsize, ind); in __flush_tlb_page()
314 .tsize = tsize, in __flush_tlb_page()
322 _tlbil_va(vmaddr, pid, tsize, ind); in __flush_tlb_page()
400 int tsize = mmu_psize_defs[mmu_pte_psize].enc; in tlb_flush_pgtable() local
412 __flush_tlb_page(tlb->mm, start, tsize, 1); in tlb_flush_pgtable()
[all …]
Dfsl_booke_mmu.c111 unsigned int tsize; in settlbcam() local
113 tsize = __ilog2(size) - 10; in settlbcam()
121 TLBCAM[index].MAS1 = MAS1_VALID | MAS1_IPROT | MAS1_TSIZE(tsize) | MAS1_TID(pid); in settlbcam()
/linux-4.4.14/arch/powerpc/kvm/
De500_mmu_host.c309 int tsize, struct tlbe_ref *ref, u64 gvaddr, in kvmppc_e500_setup_stlbe() argument
318 stlbe->mas1 = MAS1_TSIZE(tsize) | get_tlb_sts(gtlbe) | MAS1_VALID; in kvmppc_e500_setup_stlbe()
333 int tsize = BOOK3E_PAGESZ_4K; in kvmppc_e500_shadow_map() local
391 tsize = (gtlbe->mas1 & MAS1_TSIZE_MASK) >> in kvmppc_e500_shadow_map()
398 tsize = max(BOOK3E_PAGESZ_4K, tsize & ~1); in kvmppc_e500_shadow_map()
407 for (; tsize > BOOK3E_PAGESZ_4K; tsize -= 2) { in kvmppc_e500_shadow_map()
409 tsize_pages = 1UL << (tsize - 2); in kvmppc_e500_shadow_map()
430 tsize = (gtlbe->mas1 & MAS1_TSIZE_MASK) >> in kvmppc_e500_shadow_map()
437 tsize = min(__ilog2(psize) - 10, tsize); in kvmppc_e500_shadow_map()
443 tsize = max(BOOK3E_PAGESZ_4K, tsize & ~1); in kvmppc_e500_shadow_map()
[all …]
/linux-4.4.14/drivers/of/
Ddevice.c183 ssize_t tsize, csize, repend; in of_device_get_modalias() local
205 tsize = csize + cplen; in of_device_get_modalias()
206 repend = tsize; in of_device_get_modalias()
209 return tsize; in of_device_get_modalias()
211 if (tsize >= len) { /* limit compat list */ in of_device_get_modalias()
226 return tsize; in of_device_get_modalias()
/linux-4.4.14/lib/mpi/
Dmpi-pow.c48 mpi_size_t tsize = 0; /* to avoid compiler warning */ in mpi_powm() local
196 tsize = 2 * rsize; in mpi_powm()
198 mpi_alloc_limb_space(tsize); in mpi_powm()
201 } else if (tsize < (2 * rsize)) { in mpi_powm()
203 tsize = 2 * rsize; in mpi_powm()
205 mpi_alloc_limb_space(tsize); in mpi_powm()
/linux-4.4.14/crypto/asymmetric_keys/
Drsa.c213 size_t tsize; in RSA_verify_signature() local
229 tsize = mpi_get_nbits(sig->rsa.s); in RSA_verify_signature()
236 pr_devel("step 1: k=%zu size(S)=%zu\n", k, tsize); in RSA_verify_signature()
237 if (k < tsize) { in RSA_verify_signature()
/linux-4.4.14/arch/mips/boot/
Decoff.h36 long tsize; /* text size in bytes, padded to DW bdry*/ member
61 N_TXTOFF(f, a) + (a).tsize;
Delf2ecoff.c234 a->tsize = swab32(a->tsize); in convert_ecoff_aouthdr()
420 eah.tsize = text.len; in main()
463 esecs[0].s_size = eah.tsize; in main()
/linux-4.4.14/drivers/ide/
Dau1xxx-ide.c324 static void auide_init_dbdma_dev(dbdev_tab_t *dev, u32 dev_id, u32 tsize, in auide_init_dbdma_dev() argument
331 dev->dev_tsize = tsize; in auide_init_dbdma_dev()
350 u32 dev_id, tsize, devwidth, flags; in auide_ddma_init() local
354 tsize = 8; /* 1 */ in auide_ddma_init()
364 auide_init_dbdma_dev(&source_dev_tab, dev_id, tsize, devwidth, in auide_ddma_init()
368 auide_init_dbdma_dev(&source_dev_tab, dev_id, tsize, devwidth, in auide_ddma_init()
373 auide_init_dbdma_dev(&target_dev_tab, (u32)DSCR_CMD0_ALWAYS, tsize, in auide_ddma_init()
/linux-4.4.14/arch/alpha/include/uapi/asm/
Da.out.h28 __u64 tsize; member
65 #define a_text ah.tsize
/linux-4.4.14/security/apparmor/
Dmatch.c41 size_t tsize; in unpack_table() local
58 tsize = table_size(th.td_lolen, th.td_flags); in unpack_table()
59 if (bsize < tsize) in unpack_table()
62 table = kvzalloc(tsize); in unpack_table()
/linux-4.4.14/arch/powerpc/include/asm/
Dtlbflush.h45 int tsize, int ind);
51 int tsize, int ind);
/linux-4.4.14/net/sched/
Dsch_api.c452 unsigned int tsize = 0; in qdisc_get_stab() local
464 if (s->tsize > 0) { in qdisc_get_stab()
468 tsize = nla_len(tb[TCA_STAB_DATA]) / sizeof(u16); in qdisc_get_stab()
471 if (tsize != s->tsize || (!tab && tsize > 0)) in qdisc_get_stab()
479 if (tsize > 0 && memcmp(stab->data, tab, tsize * sizeof(u16))) in qdisc_get_stab()
488 stab = kmalloc(sizeof(*stab) + tsize * sizeof(u16), GFP_KERNEL); in qdisc_get_stab()
494 if (tsize > 0) in qdisc_get_stab()
495 memcpy(stab->data, tab, tsize * sizeof(u16)); in qdisc_get_stab()
547 if (unlikely(!stab->szopts.tsize)) in __qdisc_calculate_pkt_len()
555 if (likely(slot < stab->szopts.tsize)) in __qdisc_calculate_pkt_len()
[all …]
/linux-4.4.14/fs/nfs/
Dproc.c85 info->rtpref = fsinfo.tsize; in nfs_proc_get_root()
88 info->wtpref = fsinfo.tsize; in nfs_proc_get_root()
90 info->dtpref = fsinfo.tsize; in nfs_proc_get_root()
560 info->rtpref = fsinfo.tsize; in nfs_proc_fsinfo()
563 info->wtpref = fsinfo.tsize; in nfs_proc_fsinfo()
565 info->dtpref = fsinfo.tsize; in nfs_proc_fsinfo()
Dinternal.h589 static inline blkcnt_t nfs_calc_block_size(u64 tsize) in nfs_calc_block_size() argument
591 blkcnt_t used = (tsize + 511) >> 9; in nfs_calc_block_size()
Dnfs2xdr.c1025 result->tsize = be32_to_cpup(p++); in decode_info()
/linux-4.4.14/drivers/infiniband/ulp/srpt/
Dib_srpt.c1091 u32 tsize; in srpt_map_sg_to_ib_sge() local
1126 tsize = cmd->data_length; in srpt_map_sg_to_ib_sge()
1139 j < count && i < ioctx->n_rbuf && tsize > 0; ++i, ++riu, ++db) { in srpt_map_sg_to_ib_sge()
1147 while (rsize > 0 && tsize > 0) { in srpt_map_sg_to_ib_sge()
1150 tsize -= dma_len; in srpt_map_sg_to_ib_sge()
1154 if (tsize > 0) { in srpt_map_sg_to_ib_sge()
1163 tsize -= rsize; in srpt_map_sg_to_ib_sge()
1193 tsize = cmd->data_length; in srpt_map_sg_to_ib_sge()
1201 j < count && i < ioctx->n_rbuf && tsize > 0; ++i, ++riu, ++db) { in srpt_map_sg_to_ib_sge()
1206 while (rsize > 0 && tsize > 0) { in srpt_map_sg_to_ib_sge()
[all …]
/linux-4.4.14/net/netfilter/
Dx_tables.c842 u_int16_t tsize = ct->u.user.target_size; in xt_compat_target_from_user() local
850 memcpy(t->data, ct->data, tsize - sizeof(*ct)); in xt_compat_target_from_user()
855 tsize += off; in xt_compat_target_from_user()
856 t->u.user.target_size = tsize; in xt_compat_target_from_user()
862 *dstptr += tsize; in xt_compat_target_from_user()
872 u_int16_t tsize = t->u.user.target_size - off; in xt_compat_target_to_user() local
875 put_user(tsize, &ct->u.user.target_size) || in xt_compat_target_to_user()
884 if (copy_to_user(ct->data, t->data, tsize - sizeof(*ct))) in xt_compat_target_to_user()
889 *dstptr += tsize; in xt_compat_target_to_user()
/linux-4.4.14/arch/powerpc/boot/
Drs6000.h42 unsigned char tsize[4]; /* text size in bytes, padded to FW bdry */ member
/linux-4.4.14/include/uapi/linux/
Dcoff.h133 char tsize[4]; /* text size in bytes, padded to FW bdry */ member
Dpkt_sched.h103 unsigned int tsize; member
/linux-4.4.14/drivers/net/can/
Dgrcan.c937 size_t tsize, size_t rsize) in grcan_allocate_dma_buffers() argument
941 struct grcan_dma_buffer *large = rsize > tsize ? &dma->rx : &dma->tx; in grcan_allocate_dma_buffers()
942 struct grcan_dma_buffer *small = rsize > tsize ? &dma->tx : &dma->rx; in grcan_allocate_dma_buffers()
948 size_t maxs = max(tsize, rsize); in grcan_allocate_dma_buffers()
952 size_t ssize = min(tsize, rsize); in grcan_allocate_dma_buffers()
964 dma->tx.size = tsize; in grcan_allocate_dma_buffers()
/linux-4.4.14/arch/alpha/boot/tools/
Dobjstrip.c217 fil_size = aout->ah.tsize + aout->ah.dsize; in main()
/linux-4.4.14/scripts/dtc/
Dflattree.c411 int tsize = fdt32_to_cpu(fdt.totalsize); in dt_to_blob() local
412 tsize += padlen; in dt_to_blob()
413 fdt.totalsize = cpu_to_fdt32(tsize); in dt_to_blob()
/linux-4.4.14/drivers/dma/
Damba-pl08x.c760 size_t tsize) in pl08x_cctl_bits() argument
800 tsize &= PL080_CONTROL_TRANSFER_SIZE_MASK; in pl08x_cctl_bits()
801 retbits |= tsize << PL080_CONTROL_TRANSFER_SIZE_SHIFT; in pl08x_cctl_bits()
1081 size_t lli_len, tsize, width; in pl08x_fill_llis_for_desc() local
1097 tsize = lli_len / bd.srcbus.buswidth; in pl08x_fill_llis_for_desc()
1105 bd.dstbus.buswidth, tsize); in pl08x_fill_llis_for_desc()
1107 lli_len, cctl, tsize); in pl08x_fill_llis_for_desc()
/linux-4.4.14/drivers/net/slip/
Dslhc.c114 size_t tsize = tslots * sizeof(struct cstate); in slhc_init() local
115 comp->tstate = kzalloc(tsize, GFP_KERNEL); in slhc_init()
/linux-4.4.14/drivers/net/ethernet/alteon/
Dacenic.c2817 short tsize, i; in ace_copy() local
2823 tsize = min_t(u32, ((~dest & (ACE_WINDOW_SIZE - 1)) + 1), in ace_copy()
2828 for (i = 0; i < (tsize / 4); i++) { in ace_copy()
2843 short tsize = 0, i; in ace_clear() local
2849 tsize = min_t(u32, ((~dest & (ACE_WINDOW_SIZE - 1)) + 1), in ace_clear()
2855 for (i = 0; i < (tsize / 4); i++) { in ace_clear()
2859 dest += tsize; in ace_clear()
2860 size -= tsize; in ace_clear()
/linux-4.4.14/net/bridge/netfilter/
Debtables.c1642 compat_uint_t tsize = t->target_size - off; in compat_target_to_user() local
1647 strlen(target->name) + 1) || put_user(tsize, &cm->match_size)) in compat_target_to_user()
1653 } else if (copy_to_user(cm->data, t->data, tsize)) in compat_target_to_user()
1658 *dstptr += tsize; in compat_target_to_user()
/linux-4.4.14/drivers/net/ethernet/hisilicon/hns/
Dhns_enet.c317 hns_nic_reuse_page(struct hnae_desc_cb *desc_cb, int tsize, int last_offset) in hns_nic_reuse_page() argument
322 desc_cb->page_offset += tsize; in hns_nic_reuse_page()
/linux-4.4.14/include/linux/
Dnfs_xdr.h158 __u32 tsize; /* Server transfer size */ member
/linux-4.4.14/Documentation/virtual/kvm/
Dapi.txt3464 - The tsize field of mas1 shall be set to 4K on TLB0, even though the