Home
last modified time | relevance | path

Searched refs:ssize (Results 1 – 25 of 42) sorted by relevance

12

/Linux-v5.15/arch/powerpc/mm/book3s64/
Dhash_native.c151 int apsize, int ssize) in ___tlbie() argument
177 va |= ssize << 8; in ___tlbie()
189 va |= ssize << 8; in ___tlbie()
208 int apsize, int ssize) in fixup_tlbie_vpn() argument
235 ___tlbie(vpn, psize, apsize, ssize); in fixup_tlbie_vpn()
239 static inline void __tlbie(unsigned long vpn, int psize, int apsize, int ssize) in __tlbie() argument
243 rb = ___tlbie(vpn, psize, apsize, ssize); in __tlbie()
247 static inline void __tlbiel(unsigned long vpn, int psize, int apsize, int ssize) in __tlbiel() argument
267 va |= ssize << 8; in __tlbiel()
279 va |= ssize << 8; in __tlbiel()
[all …]
Dhash_64k.c38 int ssize, int subpg_prot) in __hash_page_4K() argument
88 vpn = hpt_vpn(ea, vsid, ssize); in __hash_page_4K()
100 flush_hash_page(vpn, rpte, MMU_PAGE_64K, ssize, flags); in __hash_page_4K()
116 gslot = pte_get_hash_gslot(vpn, shift, ssize, rpte, in __hash_page_4K()
120 ssize, flags); in __hash_page_4K()
155 hash = hpt_hash(vpn, shift, ssize); in __hash_page_4K()
161 MMU_PAGE_4K, MMU_PAGE_4K, ssize); in __hash_page_4K()
172 ssize); in __hash_page_4K()
185 ssize, 0); in __hash_page_4K()
211 hash_failure_debug(ea, access, vsid, trap, ssize, in __hash_page_4K()
[all …]
Dhash_tlb.c47 int ssize; in hpte_need_flush() local
89 ssize = user_segment_size(addr); in hpte_need_flush()
90 vsid = get_user_vsid(&mm->context, addr, ssize); in hpte_need_flush()
93 ssize = mmu_kernel_ssize; in hpte_need_flush()
96 vpn = hpt_vpn(addr, vsid, ssize); in hpte_need_flush()
104 flush_hash_page(vpn, rpte, psize, ssize, mm_is_thread_local(mm)); in hpte_need_flush()
120 batch->ssize != ssize)) { in hpte_need_flush()
127 batch->ssize = ssize; in hpte_need_flush()
152 batch->psize, batch->ssize, local); in __flush_tlb_pending()
Dhash_hugepage.c23 int ssize, unsigned int psize) in __hash_page_thp() argument
79 vpn = hpt_vpn(ea, vsid, ssize); in __hash_page_thp()
89 ssize, flags); in __hash_page_thp()
105 hash = hpt_hash(vpn, shift, ssize); in __hash_page_thp()
113 psize, lpsize, ssize, flags); in __hash_page_thp()
131 hash = hpt_hash(vpn, shift, ssize); in __hash_page_thp()
141 psize, lpsize, ssize); in __hash_page_thp()
150 psize, lpsize, ssize); in __hash_page_thp()
166 hash_failure_debug(ea, access, vsid, trap, ssize, in __hash_page_thp()
Dhash_4k.c21 int ssize, int subpg_prot) in __hash_page_4K() argument
64 vpn = hpt_vpn(ea, vsid, ssize); in __hash_page_4K()
69 unsigned long gslot = pte_get_hash_gslot(vpn, shift, ssize, in __hash_page_4K()
73 MMU_PAGE_4K, ssize, flags) == -1) in __hash_page_4K()
80 hash = hpt_hash(vpn, shift, ssize); in __hash_page_4K()
87 MMU_PAGE_4K, MMU_PAGE_4K, ssize); in __hash_page_4K()
97 MMU_PAGE_4K, ssize); in __hash_page_4K()
115 hash_failure_debug(ea, access, vsid, trap, ssize, in __hash_page_4K()
Dhash_utils.c251 int psize, int ssize) in htab_bolt_mapping() argument
263 vstart, vend, pstart, prot, psize, ssize); in htab_bolt_mapping()
272 unsigned long vsid = get_kernel_vsid(vaddr, ssize); in htab_bolt_mapping()
273 unsigned long vpn = hpt_vpn(vaddr, vsid, ssize); in htab_bolt_mapping()
300 hash = hpt_hash(vpn, shift, ssize); in htab_bolt_mapping()
307 ssize); in htab_bolt_mapping()
317 ssize); in htab_bolt_mapping()
339 int psize, int ssize) in htab_remove_mapping() argument
357 rc = mmu_hash_ops.hpte_removebolted(vaddr, psize, ssize); in htab_remove_mapping()
1265 int ssize, int psize, int lpsize, unsigned long pte) in hash_failure_debug() argument
[all …]
Dhash_hugetlbpage.c21 int ssize, unsigned int shift, unsigned int mmu_psize) in __hash_page_huge() argument
32 vpn = hpt_vpn(ea, vsid, ssize); in __hash_page_huge()
88 gslot = pte_get_hash_gslot(vpn, shift, ssize, rpte, 0); in __hash_page_huge()
90 mmu_psize, ssize, flags) == -1) in __hash_page_huge()
95 unsigned long hash = hpt_hash(vpn, shift, ssize); in __hash_page_huge()
103 mmu_psize, ssize); in __hash_page_huge()
111 hash_failure_debug(ea, access, vsid, trap, ssize, in __hash_page_huge()
Dslb.c66 static inline void slb_shadow_update(unsigned long ea, int ssize, in slb_shadow_update() argument
78 WRITE_ONCE(p->save_area[index].vsid, cpu_to_be64(mk_vsid_data(ea, ssize, flags))); in slb_shadow_update()
79 WRITE_ONCE(p->save_area[index].esid, cpu_to_be64(mk_esid_data(ea, ssize, index))); in slb_shadow_update()
87 static inline void create_shadowed_slbe(unsigned long ea, int ssize, in create_shadowed_slbe() argument
96 slb_shadow_update(ea, ssize, flags, index); in create_shadowed_slbe()
100 : "r" (mk_vsid_data(ea, ssize, flags)), in create_shadowed_slbe()
101 "r" (mk_esid_data(ea, ssize, index)) in create_shadowed_slbe()
672 unsigned long flags, int ssize, bool kernel) in slb_insert_entry() argument
678 vsid = get_vsid(context, ea, ssize); in slb_insert_entry()
695 vsid_data = __mk_vsid_data(vsid, ssize, flags); in slb_insert_entry()
[all …]
Dhash_pgtable.c315 int ssize; in hpte_do_hugepage_flush() local
331 ssize = user_segment_size(addr); in hpte_do_hugepage_flush()
332 vsid = get_user_vsid(&mm->context, addr, ssize); in hpte_do_hugepage_flush()
336 ssize = mmu_kernel_ssize; in hpte_do_hugepage_flush()
342 return flush_hash_hugepage(vsid, addr, pmdp, psize, ssize, flags); in hpte_do_hugepage_flush()
/Linux-v5.15/arch/powerpc/include/asm/book3s/64/
Dmmu-hash.h138 int ssize, int local);
143 int ssize, unsigned long flags);
146 int psize, int ssize);
153 int ssize);
156 int psize, int ssize);
161 int psize, int ssize, int local);
252 static inline int slb_vsid_shift(int ssize) in slb_vsid_shift() argument
254 if (ssize == MMU_SEGSIZE_256M) in slb_vsid_shift()
259 static inline int segment_shift(int ssize) in segment_shift() argument
261 if (ssize == MMU_SEGSIZE_256M) in segment_shift()
[all …]
Dtlbflush-hash.h21 int ssize; member
57 int ssize, unsigned long flags);
60 pmd_t *pmdp, unsigned int psize, int ssize,
Dmmu.h271 unsigned long ea, int ssize) in get_user_vsid() argument
275 return get_vsid(context, ea, ssize); in get_user_vsid()
/Linux-v5.15/tools/lib/
Dvsprintf.c9 ssize_t ssize = size; in vscnprintf() local
11 return (i >= ssize) ? (ssize - 1) : i; in vscnprintf()
16 ssize_t ssize = size; in scnprintf() local
24 return (i >= ssize) ? (ssize - 1) : i; in scnprintf()
29 ssize_t ssize = size; in scnprintf_pad() local
43 return (i >= ssize) ? (ssize - 1) : i; in scnprintf_pad()
/Linux-v5.15/arch/powerpc/mm/
Dcopro_fault.c88 int psize, ssize; in copro_calculate_slb() local
96 ssize = user_segment_size(ea); in copro_calculate_slb()
97 vsid = get_user_vsid(&mm->context, ea, ssize); in copro_calculate_slb()
103 ssize = mmu_kernel_ssize; in copro_calculate_slb()
110 ssize = mmu_kernel_ssize; in copro_calculate_slb()
117 ssize = mmu_kernel_ssize; in copro_calculate_slb()
129 vsid = (vsid << slb_vsid_shift(ssize)) | vsidkey; in copro_calculate_slb()
132 ((ssize == MMU_SEGSIZE_1T) ? SLB_VSID_B_1T : 0); in copro_calculate_slb()
134 slb->esid = (ea & (ssize == MMU_SEGSIZE_1T ? ESID_MASK_1T : ESID_MASK)) | SLB_ESID_V; in copro_calculate_slb()
/Linux-v5.15/arch/powerpc/platforms/pseries/
Dlpar.c718 int psize, int apsize, int ssize) in pSeries_lpar_hpte_insert() argument
730 hpte_v = hpte_encode_v(vpn, psize, apsize, ssize) | vflags | HPTE_V_VALID; in pSeries_lpar_hpte_insert()
886 int ssize, unsigned long inv_flags) in pSeries_lpar_hpte_updatepp() argument
892 want_v = hpte_encode_avpn(vpn, psize, ssize); in pSeries_lpar_hpte_updatepp()
945 static long pSeries_lpar_hpte_find(unsigned long vpn, int psize, int ssize) in pSeries_lpar_hpte_find() argument
952 hash = hpt_hash(vpn, mmu_psize_defs[psize].shift, ssize); in pSeries_lpar_hpte_find()
953 want_v = hpte_encode_avpn(vpn, psize, ssize); in pSeries_lpar_hpte_find()
973 int psize, int ssize) in pSeries_lpar_hpte_updateboltedpp() argument
978 vsid = get_kernel_vsid(ea, ssize); in pSeries_lpar_hpte_updateboltedpp()
979 vpn = hpt_vpn(ea, vsid, ssize); in pSeries_lpar_hpte_updateboltedpp()
[all …]
/Linux-v5.15/drivers/misc/lkdtm/
Dpowerpc.c9 static void insert_slb_entry(unsigned long p, int ssize, int page_size) in insert_slb_entry() argument
17 : "r" (mk_vsid_data(p, ssize, flags)), in insert_slb_entry()
18 "r" (mk_esid_data(p, ssize, SLB_NUM_BOLTED)) in insert_slb_entry()
22 : "r" (mk_vsid_data(p, ssize, flags)), in insert_slb_entry()
23 "r" (mk_esid_data(p, ssize, SLB_NUM_BOLTED + 1)) in insert_slb_entry()
/Linux-v5.15/arch/powerpc/platforms/ps3/
Dhtab.c37 int psize, int apsize, int ssize) in ps3_hpte_insert() argument
53 hpte_v = hpte_encode_v(vpn, psize, apsize, ssize) | vflags | HPTE_V_VALID; in ps3_hpte_insert()
101 int ssize, unsigned long inv_flags) in ps3_hpte_updatepp() argument
109 want_v = hpte_encode_avpn(vpn, psize, ssize); in ps3_hpte_updatepp()
148 int psize, int ssize) in ps3_hpte_updateboltedpp() argument
154 int psize, int apsize, int ssize, int local) in ps3_hpte_invalidate() argument
/Linux-v5.15/fs/ntfs/
Drunlist.c205 int dsize, runlist_element *src, int ssize, int loc) in ntfs_rl_append() argument
215 right = ntfs_are_rl_mergeable(src + ssize - 1, dst + loc + 1); in ntfs_rl_append()
218 dst = ntfs_rl_realloc(dst, dsize, dsize + ssize - right); in ntfs_rl_append()
228 __ntfs_rl_merge(src + ssize - 1, dst + loc + 1); in ntfs_rl_append()
231 marker = loc + ssize + 1; in ntfs_rl_append()
235 ntfs_rl_mc(dst, loc + 1, src, 0, ssize); in ntfs_rl_append()
272 int dsize, runlist_element *src, int ssize, int loc) in ntfs_rl_insert() argument
302 dst = ntfs_rl_realloc(dst, dsize, dsize + ssize - left + disc); in ntfs_rl_insert()
318 marker = loc + ssize - left + disc; in ntfs_rl_insert()
322 ntfs_rl_mc(dst, loc + disc, src, left, ssize - left); in ntfs_rl_insert()
[all …]
/Linux-v5.15/arch/powerpc/mm/ptdump/
Dhashpagetable.c211 int i, ssize = mmu_kernel_ssize; in native_find() local
215 vsid = get_kernel_vsid(ea, ssize); in native_find()
216 vpn = hpt_vpn(ea, vsid, ssize); in native_find()
217 hash = hpt_hash(vpn, shift, ssize); in native_find()
218 want_v = hpte_encode_avpn(vpn, psize, ssize); in native_find()
243 int i, j, ssize = mmu_kernel_ssize; in pseries_find() local
248 vsid = get_kernel_vsid(ea, ssize); in pseries_find()
249 vpn = hpt_vpn(ea, vsid, ssize); in pseries_find()
250 hash = hpt_hash(vpn, shift, ssize); in pseries_find()
251 want_v = hpte_encode_avpn(vpn, psize, ssize); in pseries_find()
/Linux-v5.15/drivers/usb/storage/
Djumpshot.c97 unsigned long ssize; /* sector size in bytes */ member
174 totallen = sectors * info->ssize; in jumpshot_read_data()
189 thistime = (len / info->ssize) & 0xff; in jumpshot_read_data()
251 totallen = sectors * info->ssize; in jumpshot_write_data()
267 thistime = (len / info->ssize) & 0xff; in jumpshot_write_data()
502 info->ssize = 0x200; // hard coded 512 byte sectors as per ATA spec in jumpshot_transport()
513 info->sectors, info->ssize); in jumpshot_transport()
518 ((__be32 *) ptr)[1] = cpu_to_be32(info->ssize); in jumpshot_transport()
Ddatafab.c61 unsigned long ssize; /* sector size in bytes */ member
162 totallen = sectors * info->ssize; in datafab_read_data()
178 thistime = (len / info->ssize) & 0xff; in datafab_read_data()
246 totallen = sectors * info->ssize; in datafab_write_data()
262 thistime = (len / info->ssize) & 0xff; in datafab_write_data()
576 info->ssize = 0x200; // hard coded 512 byte sectors as per ATA spec in datafab_transport()
582 info->sectors, info->ssize); in datafab_transport()
587 ((__be32 *) ptr)[1] = cpu_to_be32(info->ssize); in datafab_transport()
/Linux-v5.15/arch/sparc/mm/
Dleon_mm.c247 unsigned int ssize, sets; in leon_flush_needed() local
257 ssize = 1 << ((cregs.dccr & LEON3_XCCR_SSIZE_MASK) >> 20); in leon_flush_needed()
260 sets > 3 ? "unknown" : setStr[sets], ssize); in leon_flush_needed()
261 if ((ssize <= (PAGE_SIZE / 1024)) && (sets == 0)) { in leon_flush_needed()
/Linux-v5.15/crypto/
Dessiv.c202 int ssize = req->assoclen - ivsize; in essiv_aead_crypt() local
206 if (ssize < 0) in essiv_aead_crypt()
209 nents = sg_nents_for_len(req->src, ssize); in essiv_aead_crypt()
221 rctx->assoc = kmalloc(ssize, GFP_ATOMIC); in essiv_aead_crypt()
226 ssize, 0); in essiv_aead_crypt()
227 sg_set_buf(rctx->sg, rctx->assoc, ssize); in essiv_aead_crypt()
229 sg_set_page(rctx->sg, sg_page(req->src), ssize, in essiv_aead_crypt()
/Linux-v5.15/fs/jfs/
Dnamei.c879 int ssize; /* source pathname size */ in jfs_symlink() local
897 ssize = strlen(name) + 1; in jfs_symlink()
946 if (ssize <= IDATASIZE) { in jfs_symlink()
950 memcpy(ip->i_link, name, ssize); in jfs_symlink()
951 ip->i_size = ssize - 1; in jfs_symlink()
957 if (ssize > sizeof (JFS_IP(ip)->i_inline)) in jfs_symlink()
961 ssize, name); in jfs_symlink()
980 xsize = (ssize + bmask) & ~bmask; in jfs_symlink()
987 ip->i_size = ssize - 1; in jfs_symlink()
988 while (ssize) { in jfs_symlink()
[all …]
/Linux-v5.15/drivers/block/
Dfloppy.c2320 int ssize; in rw_interrupt() local
2334 ssize = DIV_ROUND_UP(1 << raw_cmd->cmd[SIZECODE], 4); in rw_interrupt()
2350 if (nr_sectors / ssize > in rw_interrupt()
2351 DIV_ROUND_UP(in_sector_offset + current_count_sectors, ssize)) { in rw_interrupt()
2362 raw_cmd->cmd[SECT_PER_TRACK], fsector_t, ssize); in rw_interrupt()
2412 static int transfer_size(int ssize, int max_sector, int max_size) in transfer_size() argument
2417 max_sector -= (max_sector % _floppy->sect) % ssize; in transfer_size()
2428 static void copy_buffer(int ssize, int max_sector, int max_sector_2) in copy_buffer() argument
2436 max_sector = transfer_size(ssize, in copy_buffer()
2455 pr_info("ssize=%d\n", ssize); in copy_buffer()
[all …]

12