/linux-6.1.9/arch/powerpc/mm/book3s64/ |
D | hash_native.c | 70 int apsize, int ssize) in ___tlbie() argument 96 va |= ssize << 8; in ___tlbie() 108 va |= ssize << 8; in ___tlbie() 127 int apsize, int ssize) in fixup_tlbie_vpn() argument 154 ___tlbie(vpn, psize, apsize, ssize); in fixup_tlbie_vpn() 158 static inline void __tlbie(unsigned long vpn, int psize, int apsize, int ssize) in __tlbie() argument 162 rb = ___tlbie(vpn, psize, apsize, ssize); in __tlbie() 166 static inline void __tlbiel(unsigned long vpn, int psize, int apsize, int ssize) in __tlbiel() argument 186 va |= ssize << 8; in __tlbiel() 198 va |= ssize << 8; in __tlbiel() [all …]
|
D | hash_64k.c | 38 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 …]
|
D | hash_tlb.c | 47 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()
|
D | hash_hugepage.c | 23 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()
|
D | hash_4k.c | 21 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()
|
D | hash_utils.c | 349 int psize, int ssize) in htab_bolt_mapping() argument 361 vstart, vend, pstart, prot, psize, ssize); in htab_bolt_mapping() 370 unsigned long vsid = get_kernel_vsid(vaddr, ssize); in htab_bolt_mapping() 371 unsigned long vpn = hpt_vpn(vaddr, vsid, ssize); in htab_bolt_mapping() 398 hash = hpt_hash(vpn, shift, ssize); in htab_bolt_mapping() 405 ssize); in htab_bolt_mapping() 415 ssize); in htab_bolt_mapping() 435 int psize, int ssize) in htab_remove_mapping() argument 453 rc = mmu_hash_ops.hpte_removebolted(vaddr, psize, ssize); in htab_remove_mapping() 1352 int ssize, int psize, int lpsize, unsigned long pte) in hash_failure_debug() argument [all …]
|
D | hugetlbpage.c | 22 int ssize, unsigned int shift, unsigned int mmu_psize) in __hash_page_huge() argument 33 vpn = hpt_vpn(ea, vsid, ssize); in __hash_page_huge() 89 gslot = pte_get_hash_gslot(vpn, shift, ssize, rpte, 0); in __hash_page_huge() 91 mmu_psize, ssize, flags) == -1) in __hash_page_huge() 96 unsigned long hash = hpt_hash(vpn, shift, ssize); in __hash_page_huge() 104 mmu_psize, ssize); in __hash_page_huge() 112 hash_failure_debug(ea, access, vsid, trap, ssize, in __hash_page_huge()
|
D | slb.c | 65 static inline void slb_shadow_update(unsigned long ea, int ssize, in slb_shadow_update() argument 77 WRITE_ONCE(p->save_area[index].vsid, cpu_to_be64(mk_vsid_data(ea, ssize, flags))); in slb_shadow_update() 78 WRITE_ONCE(p->save_area[index].esid, cpu_to_be64(mk_esid_data(ea, ssize, index))); in slb_shadow_update() 86 static inline void create_shadowed_slbe(unsigned long ea, int ssize, in create_shadowed_slbe() argument 95 slb_shadow_update(ea, ssize, flags, index); in create_shadowed_slbe() 99 : "r" (mk_vsid_data(ea, ssize, flags)), in create_shadowed_slbe() 100 "r" (mk_esid_data(ea, ssize, index)) in create_shadowed_slbe() 671 unsigned long flags, int ssize, bool kernel) in slb_insert_entry() argument 677 vsid = get_vsid(context, ea, ssize); in slb_insert_entry() 694 vsid_data = __mk_vsid_data(vsid, ssize, flags); in slb_insert_entry() [all …]
|
D | hash_pgtable.c | 315 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-6.1.9/arch/powerpc/include/asm/book3s/64/ |
D | mmu-hash.h | 139 int ssize, int local); 144 int ssize, unsigned long flags); 147 int psize, int ssize); 154 int ssize); 157 int psize, int ssize); 162 int psize, int ssize, int local); 253 static inline int slb_vsid_shift(int ssize) in slb_vsid_shift() argument 255 if (ssize == MMU_SEGSIZE_256M) in slb_vsid_shift() 260 static inline int segment_shift(int ssize) in segment_shift() argument 262 if (ssize == MMU_SEGSIZE_256M) in segment_shift() [all …]
|
D | tlbflush-hash.h | 21 int ssize; member 63 int ssize, unsigned long flags); 66 pmd_t *pmdp, unsigned int psize, int ssize,
|
D | mmu.h | 286 unsigned long ea, int ssize) in get_user_vsid() argument 290 return get_vsid(context, ea, ssize); in get_user_vsid()
|
/linux-6.1.9/tools/lib/ |
D | vsprintf.c | 9 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-6.1.9/arch/powerpc/mm/ |
D | copro_fault.c | 94 int psize, ssize; in copro_calculate_slb() local 102 ssize = user_segment_size(ea); in copro_calculate_slb() 103 vsid = get_user_vsid(&mm->context, ea, ssize); in copro_calculate_slb() 109 ssize = mmu_kernel_ssize; in copro_calculate_slb() 116 ssize = mmu_kernel_ssize; in copro_calculate_slb() 123 ssize = mmu_kernel_ssize; in copro_calculate_slb() 135 vsid = (vsid << slb_vsid_shift(ssize)) | vsidkey; in copro_calculate_slb() 138 ((ssize == MMU_SEGSIZE_1T) ? SLB_VSID_B_1T : 0); in copro_calculate_slb() 140 slb->esid = (ea & (ssize == MMU_SEGSIZE_1T ? ESID_MASK_1T : ESID_MASK)) | SLB_ESID_V; in copro_calculate_slb()
|
/linux-6.1.9/arch/powerpc/platforms/pseries/ |
D | lpar.c | 759 int psize, int apsize, int ssize) in pSeries_lpar_hpte_insert() argument 771 hpte_v = hpte_encode_v(vpn, psize, apsize, ssize) | vflags | HPTE_V_VALID; in pSeries_lpar_hpte_insert() 927 int ssize, unsigned long inv_flags) in pSeries_lpar_hpte_updatepp() argument 933 want_v = hpte_encode_avpn(vpn, psize, ssize); in pSeries_lpar_hpte_updatepp() 986 static long pSeries_lpar_hpte_find(unsigned long vpn, int psize, int ssize) in pSeries_lpar_hpte_find() argument 993 hash = hpt_hash(vpn, mmu_psize_defs[psize].shift, ssize); in pSeries_lpar_hpte_find() 994 want_v = hpte_encode_avpn(vpn, psize, ssize); in pSeries_lpar_hpte_find() 1014 int psize, int ssize) in pSeries_lpar_hpte_updateboltedpp() argument 1019 vsid = get_kernel_vsid(ea, ssize); in pSeries_lpar_hpte_updateboltedpp() 1020 vpn = hpt_vpn(ea, vsid, ssize); in pSeries_lpar_hpte_updateboltedpp() [all …]
|
/linux-6.1.9/drivers/misc/lkdtm/ |
D | powerpc.c | 9 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-6.1.9/arch/powerpc/platforms/ps3/ |
D | htab.c | 36 int psize, int apsize, int ssize) in ps3_hpte_insert() argument 52 hpte_v = hpte_encode_v(vpn, psize, apsize, ssize) | vflags | HPTE_V_VALID; in ps3_hpte_insert() 100 int ssize, unsigned long inv_flags) in ps3_hpte_updatepp() argument 108 want_v = hpte_encode_avpn(vpn, psize, ssize); in ps3_hpte_updatepp() 147 int psize, int ssize) in ps3_hpte_updateboltedpp() argument 153 int psize, int apsize, int ssize, int local) in ps3_hpte_invalidate() argument
|
/linux-6.1.9/fs/ntfs/ |
D | runlist.c | 205 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-6.1.9/arch/powerpc/mm/ptdump/ |
D | hashpagetable.c | 211 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() 246 int i, j, ssize = mmu_kernel_ssize; in pseries_find() local 251 vsid = get_kernel_vsid(ea, ssize); in pseries_find() 252 vpn = hpt_vpn(ea, vsid, ssize); in pseries_find() 253 hash = hpt_hash(vpn, shift, ssize); in pseries_find() 254 want_v = hpte_encode_avpn(vpn, psize, ssize); in pseries_find()
|
/linux-6.1.9/drivers/usb/storage/ |
D | jumpshot.c | 97 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()
|
D | datafab.c | 61 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-6.1.9/arch/sparc/mm/ |
D | leon_mm.c | 247 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-6.1.9/crypto/ |
D | essiv.c | 202 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-6.1.9/fs/jfs/ |
D | namei.c | 879 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-6.1.9/drivers/block/ |
D | floppy.c | 2319 int ssize; in rw_interrupt() local 2333 ssize = DIV_ROUND_UP(1 << raw_cmd->cmd[SIZECODE], 4); in rw_interrupt() 2349 if (nr_sectors / ssize > in rw_interrupt() 2350 DIV_ROUND_UP(in_sector_offset + current_count_sectors, ssize)) { in rw_interrupt() 2361 raw_cmd->cmd[SECT_PER_TRACK], fsector_t, ssize); in rw_interrupt() 2411 static int transfer_size(int ssize, int max_sector, int max_size) in transfer_size() argument 2416 max_sector -= (max_sector % _floppy->sect) % ssize; in transfer_size() 2427 static void copy_buffer(int ssize, int max_sector, int max_sector_2) in copy_buffer() argument 2435 max_sector = transfer_size(ssize, in copy_buffer() 2454 pr_info("ssize=%d\n", ssize); in copy_buffer() [all …]
|