/kernel/linux/linux-5.10/arch/mips/include/asm/ |
H A D | r4kcache.h | 201 #define cache_unroll(times, insn, op, addr, lsize) do { \ 203 unroll(times, _cache_op, insn, op, (addr) + (i++ * (lsize))); \ 207 #define __BUILD_BLAST_CACHE(pfx, desc, indexop, hitop, lsize, extra) \ 208 static inline void extra##blast_##pfx##cache##lsize(void) \ 218 for (addr = start; addr < end; addr += lsize * 32) \ 220 addr | ws, lsize); \ 223 static inline void extra##blast_##pfx##cache##lsize##_page(unsigned long page) \ 229 cache_unroll(32, kernel_cache, hitop, start, lsize); \ 230 start += lsize * 32; \ 234 static inline void extra##blast_##pfx##cache##lsize##_page_indexe [all...] |
/kernel/linux/linux-6.6/arch/mips/include/asm/ |
H A D | r4kcache.h | 191 #define cache_unroll(times, insn, op, addr, lsize) do { \ 193 unroll(times, _cache_op, insn, op, (addr) + (i++ * (lsize))); \ 197 #define __BUILD_BLAST_CACHE(pfx, desc, indexop, hitop, lsize, extra) \ 198 static inline void extra##blast_##pfx##cache##lsize(void) \ 208 for (addr = start; addr < end; addr += lsize * 32) \ 210 addr | ws, lsize); \ 213 static inline void extra##blast_##pfx##cache##lsize##_page(unsigned long page) \ 219 cache_unroll(32, kernel_cache, hitop, start, lsize); \ 220 start += lsize * 32; \ 224 static inline void extra##blast_##pfx##cache##lsize##_page_indexe [all...] |
/kernel/linux/linux-5.10/arch/mips/pci/ |
H A D | pci.c | 28 unsigned int lsize; in pcibios_set_cache_line_size() local 34 lsize = cpu_dcache_line_size(); in pcibios_set_cache_line_size() 35 lsize = cpu_scache_line_size() ? : lsize; in pcibios_set_cache_line_size() 36 lsize = cpu_tcache_line_size() ? : lsize; in pcibios_set_cache_line_size() 38 BUG_ON(!lsize); in pcibios_set_cache_line_size() 40 pci_dfl_cache_line_size = lsize >> 2; in pcibios_set_cache_line_size() 42 pr_debug("PCI: pci_cache_line_size set to %d bytes\n", lsize); in pcibios_set_cache_line_size()
|
/kernel/linux/linux-6.6/arch/mips/pci/ |
H A D | pci.c | 28 unsigned int lsize; in pcibios_set_cache_line_size() local 34 lsize = cpu_dcache_line_size(); in pcibios_set_cache_line_size() 35 lsize = cpu_scache_line_size() ? : lsize; in pcibios_set_cache_line_size() 36 lsize = cpu_tcache_line_size() ? : lsize; in pcibios_set_cache_line_size() 38 BUG_ON(!lsize); in pcibios_set_cache_line_size() 40 pci_dfl_cache_line_size = lsize >> 2; in pcibios_set_cache_line_size() 42 pr_debug("PCI: pci_cache_line_size set to %d bytes\n", lsize); in pcibios_set_cache_line_size()
|
/kernel/linux/linux-5.10/security/integrity/platform_certs/ |
H A D | efi_parser.c | 50 size_t lsize, esize, hsize, elsize; in parse_efi_signature_list() local 61 lsize = list.signature_list_size; in parse_efi_signature_list() 64 elsize = lsize - sizeof(list) - hsize; in parse_efi_signature_list() 66 if (lsize > size) { in parse_efi_signature_list() 72 if (lsize < sizeof(list) || in parse_efi_signature_list() 73 lsize - sizeof(list) < hsize || in parse_efi_signature_list() 83 data += lsize; in parse_efi_signature_list() 84 size -= lsize; in parse_efi_signature_list() 85 offs += lsize; in parse_efi_signature_list()
|
H A D | load_uefi.c | 67 unsigned long lsize = 4; in get_cert_list() local 71 *status = efi.get_variable(name, guid, NULL, &lsize, &tmpdb); in get_cert_list() 80 db = kmalloc(lsize, GFP_KERNEL); in get_cert_list() 84 *status = efi.get_variable(name, guid, NULL, &lsize, db); in get_cert_list() 91 *size = lsize; in get_cert_list()
|
/kernel/linux/linux-6.6/security/integrity/platform_certs/ |
H A D | efi_parser.c | 50 size_t lsize, esize, hsize, elsize; in parse_efi_signature_list() local 61 lsize = list.signature_list_size; in parse_efi_signature_list() 64 elsize = lsize - sizeof(list) - hsize; in parse_efi_signature_list() 66 if (lsize > size) { in parse_efi_signature_list() 72 if (lsize < sizeof(list) || in parse_efi_signature_list() 73 lsize - sizeof(list) < hsize || in parse_efi_signature_list() 83 data += lsize; in parse_efi_signature_list() 84 size -= lsize; in parse_efi_signature_list() 85 offs += lsize; in parse_efi_signature_list()
|
H A D | load_uefi.c | 68 unsigned long lsize = 4; in get_cert_list() local 72 *status = efi.get_variable(name, guid, NULL, &lsize, &tmpdb); in get_cert_list() 81 db = kmalloc(lsize, GFP_KERNEL); in get_cert_list() 85 *status = efi.get_variable(name, guid, NULL, &lsize, db); in get_cert_list() 92 *size = lsize; in get_cert_list()
|
/kernel/linux/linux-6.6/arch/x86/kernel/cpu/mtrr/ |
H A D | cyrix.c | 93 unsigned long lbase, lsize; in cyrix_get_free_region() local 114 cyrix_get_arr(7, &lbase, &lsize, <ype); in cyrix_get_free_region() 115 if (lsize == 0) in cyrix_get_free_region() 120 cyrix_get_arr(i, &lbase, &lsize, <ype); in cyrix_get_free_region() 121 if (lsize == 0) in cyrix_get_free_region() 128 cyrix_get_arr(i, &lbase, &lsize, <ype); in cyrix_get_free_region() 129 if ((lsize == 0) && (size >= 0x40)) in cyrix_get_free_region()
|
H A D | mtrr.c | 228 unsigned long lbase, lsize; in mtrr_add_page() local 270 mtrr_if->get(i, &lbase, &lsize, <ype); in mtrr_add_page() 271 if (!lsize || base > lbase + lsize - 1 || in mtrr_add_page() 278 if (base < lbase || base + size - 1 > lbase + lsize - 1) { in mtrr_add_page() 280 base + size - 1 >= lbase + lsize - 1) { in mtrr_add_page() 289 lsize); in mtrr_add_page() 406 unsigned long lbase, lsize; in mtrr_del_page() local 419 mtrr_if->get(i, &lbase, &lsize, <ype); in mtrr_del_page() 420 if (lbase == base && lsize in mtrr_del_page() [all...] |
H A D | legacy.c | 39 unsigned long lsize; member 53 &mtrr_value[i].lsize, in mtrr_save() 64 if (mtrr_value[i].lsize) { in mtrr_restore() 66 mtrr_value[i].lsize, in mtrr_restore()
|
H A D | centaur.c | 29 unsigned long lbase, lsize; in centaur_get_free_region() local 40 mtrr_if->get(i, &lbase, &lsize, <ype); in centaur_get_free_region() 41 if (lsize == 0) in centaur_get_free_region()
|
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/mtrr/ |
H A D | mtrr.c | 304 unsigned long lbase, lsize; in mtrr_add_page() local 346 mtrr_if->get(i, &lbase, &lsize, <ype); in mtrr_add_page() 347 if (!lsize || base > lbase + lsize - 1 || in mtrr_add_page() 354 if (base < lbase || base + size - 1 > lbase + lsize - 1) { in mtrr_add_page() 356 base + size - 1 >= lbase + lsize - 1) { in mtrr_add_page() 365 lsize); in mtrr_add_page() 482 unsigned long lbase, lsize; in mtrr_del_page() local 495 mtrr_if->get(i, &lbase, &lsize, <ype); in mtrr_del_page() 496 if (lbase == base && lsize in mtrr_del_page() 642 unsigned long lsize; global() member [all...] |
H A D | cyrix.c | 93 unsigned long lbase, lsize; in cyrix_get_free_region() local 114 cyrix_get_arr(7, &lbase, &lsize, <ype); in cyrix_get_free_region() 115 if (lsize == 0) in cyrix_get_free_region() 120 cyrix_get_arr(i, &lbase, &lsize, <ype); in cyrix_get_free_region() 121 if (lsize == 0) in cyrix_get_free_region() 128 cyrix_get_arr(i, &lbase, &lsize, <ype); in cyrix_get_free_region() 129 if ((lsize == 0) && (size >= 0x40)) in cyrix_get_free_region()
|
/kernel/linux/linux-5.10/arch/loongarch/pci/ |
H A D | pci.c | 41 unsigned int lsize; in pcibios_init() local 47 lsize = cpu_last_level_cache_line_size(); in pcibios_init() 49 BUG_ON(!lsize); in pcibios_init() 51 pci_dfl_cache_line_size = lsize >> 2; in pcibios_init() 53 pr_debug("PCI: pci_cache_line_size set to %d bytes\n", lsize); in pcibios_init()
|
/kernel/linux/linux-6.6/arch/loongarch/pci/ |
H A D | pci.c | 46 unsigned int lsize; in pcibios_init() local 52 lsize = cpu_last_level_cache_line_size(); in pcibios_init() 54 BUG_ON(!lsize); in pcibios_init() 56 pci_dfl_cache_line_size = lsize >> 2; in pcibios_init() 58 pr_debug("PCI: pci_cache_line_size set to %d bytes\n", lsize); in pcibios_init()
|
/kernel/linux/linux-5.10/arch/mips/mm/ |
H A D | c-r3k.c | 65 unsigned long flags, status, lsize, i; in r3k_cache_lsize() local 78 for (lsize = 1; lsize < 128; lsize <<= 1) { in r3k_cache_lsize() 79 *(p + lsize); in r3k_cache_lsize() 84 for (i = 0; i < 128; i += lsize) in r3k_cache_lsize() 89 return lsize * sizeof(*p); in r3k_cache_lsize()
|
H A D | c-r4k.c | 1112 unsigned int lsize; in probe_pcache() local 1278 lsize = (config1 >> 19) & 7; in probe_pcache() 1279 if (lsize) in probe_pcache() 1280 c->icache.linesz = 2 << lsize; in probe_pcache() 1290 lsize = (config1 >> 10) & 7; in probe_pcache() 1291 if (lsize) in probe_pcache() 1292 c->dcache.linesz = 2 << lsize; in probe_pcache() 1332 lsize = (config1 >> 19) & 7; in probe_pcache() 1335 if (lsize == 7) in probe_pcache() 1338 c->icache.linesz = lsize in probe_pcache() 1512 unsigned int config2, lsize; probe_vcache() local 1615 unsigned int config2, lsize; loongson3_sc_init() local [all...] |
/kernel/linux/linux-6.6/arch/mips/mm/ |
H A D | c-r3k.c | 65 unsigned long flags, status, lsize, i; in r3k_cache_lsize() local 78 for (lsize = 1; lsize < 128; lsize <<= 1) { in r3k_cache_lsize() 79 *(p + lsize); in r3k_cache_lsize() 84 for (i = 0; i < 128; i += lsize) in r3k_cache_lsize() 89 return lsize * sizeof(*p); in r3k_cache_lsize()
|
H A D | c-r4k.c | 1001 unsigned int lsize; in probe_pcache() local 1124 lsize = (config1 >> 19) & 7; in probe_pcache() 1125 if (lsize) in probe_pcache() 1126 c->icache.linesz = 2 << lsize; in probe_pcache() 1136 lsize = (config1 >> 10) & 7; in probe_pcache() 1137 if (lsize) in probe_pcache() 1138 c->dcache.linesz = 2 << lsize; in probe_pcache() 1178 lsize = (config1 >> 19) & 7; in probe_pcache() 1181 if (lsize == 7) in probe_pcache() 1184 c->icache.linesz = lsize in probe_pcache() 1357 unsigned int config2, lsize; probe_vcache() local 1460 unsigned int config2, lsize; loongson3_sc_init() local [all...] |
/kernel/linux/linux-5.10/drivers/bluetooth/ |
H A D | h4_recv.h | 15 u8 lsize; /* Data length field size */ member 24 .lsize = 2, \ 31 .lsize = 1, \ 38 .lsize = 1, \ 101 switch ((&pkts[i])->lsize) { in h4_recv_buf()
|
H A D | hci_uart.h | 120 u8 lsize; /* Data length field size */ member 129 .lsize = 2, \ 136 .lsize = 1, \ 143 .lsize = 1, \ 150 .lsize = 2, \
|
/kernel/linux/linux-6.6/drivers/bluetooth/ |
H A D | h4_recv.h | 15 u8 lsize; /* Data length field size */ member 24 .lsize = 2, \ 31 .lsize = 1, \ 38 .lsize = 1, \ 101 switch ((&pkts[i])->lsize) { in h4_recv_buf()
|
H A D | hci_uart.h | 131 u8 lsize; /* Data length field size */ member 140 .lsize = 2, \ 147 .lsize = 1, \ 154 .lsize = 1, \ 161 .lsize = 2, \
|
/kernel/linux/linux-6.6/drivers/firmware/efi/libstub/ |
H A D | arm64.c | 98 u64 lsize = 4 << cpuid_feature_extract_unsigned_field(ctr, in efi_cache_sync_image() local 108 base += lsize; in efi_cache_sync_image() 109 size -= lsize; in efi_cache_sync_image() 110 } while (size >= lsize); in efi_cache_sync_image()
|