| /linux/drivers/isdn/mISDN/ |
| H A D | layer2.c | 92 struct layer2 *l2 = fi->userdata; in l2m_debug() local 105 mISDNDevName4ch(&l2->ch), l2->sapi, l2->tei, &vaf); in l2m_debug() 111 l2headersize(struct layer2 *l2, int ui) in l2headersize() argument 113 return ((test_bit(FLG_MOD128, &l2->flag) && (!ui)) ? 2 : 1) + in l2headersize() 114 (test_bit(FLG_LAPD, &l2->flag) ? 2 : 1); in l2headersize() 118 l2addrsize(struct layer2 *l2) in l2addrsize() argument 120 return test_bit(FLG_LAPD, &l2->flag) ? 2 : 1; in l2addrsize() 124 l2_newid(struct layer2 *l2) in l2_newid() argument 128 id = l2->next_id++; in l2_newid() 130 l2->next_id = 1; in l2_newid() [all …]
|
| H A D | tei.c | 109 struct layer2 *l2; in da_deactivate() local 113 list_for_each_entry(l2, &mgr->layer2, list) { in da_deactivate() 114 if (l2->l2m.state > ST_L2_4) { in da_deactivate() 146 struct layer2 *l2; in da_timer() local 151 list_for_each_entry(l2, &mgr->layer2, list) { in da_timer() 152 if (l2->l2m.state > ST_L2_4) { in da_timer() 234 tm->l2->sapi, tm->l2->tei, &vaf); in tei_debug() 246 struct layer2 *l2; in get_free_id() local 248 list_for_each_entry(l2, &mgr->layer2, list) { in get_free_id() 249 if (l2->ch.nr > 63) { in get_free_id() [all …]
|
| /linux/drivers/memory/ |
| H A D | bt1-l2-ctl.c | 77 static int l2_ctl_get_latency(struct l2_ctl *l2, enum l2_ctl_stall id, u32 *val) in l2_ctl_get_latency() argument 82 ret = regmap_read(l2->sys_regs, L2_CTL_REG, &data); in l2_ctl_get_latency() 103 static int l2_ctl_set_latency(struct l2_ctl *l2, enum l2_ctl_stall id, u32 val) in l2_ctl_set_latency() argument 130 ret = regmap_update_bits(l2->sys_regs, L2_CTL_REG, mask, data); in l2_ctl_set_latency() 134 return regmap_read_poll_timeout(l2->sys_regs, L2_CTL_REG, data, in l2_ctl_set_latency() 142 struct l2_ctl *l2 = data; in l2_ctl_clear_data() local 143 struct platform_device *pdev = to_platform_device(l2->dev); in l2_ctl_clear_data() 151 struct l2_ctl *l2; in l2_ctl_create_data() local 154 l2 = devm_kzalloc(dev, sizeof(*l2), GFP_KERNEL); in l2_ctl_create_data() 155 if (!l2) in l2_ctl_create_data() [all …]
|
| /linux/Documentation/devicetree/bindings/cache/ |
| H A D | freescale-l2cache.txt | 9 "fsl,b4420-l2-cache-controller" 10 "fsl,b4860-l2-cache-controller" 11 "fsl,bsc9131-l2-cache-controller" 12 "fsl,bsc9132-l2-cache-controller" 13 "fsl,c293-l2-cache-controller" 14 "fsl,mpc8536-l2-cache-controller" 15 "fsl,mpc8540-l2-cache-controller" 16 "fsl,mpc8541-l2-cache-controller" 17 "fsl,mpc8544-l2-cache-controller" 18 "fsl,mpc8548-l2-cache-controller" [all …]
|
| /linux/arch/parisc/lib/ |
| H A D | io.c | 61 unsigned int l = 0, l2; in insw() local 113 l2 = cpu_to_le16(inw(port)); in insw() 114 *(unsigned short *)p = (l & 0xff) << 8 | (l2 >> 8); in insw() 116 l = l2; in insw() 133 unsigned int l = 0, l2; in insl() local 160 l2 = cpu_to_le32(inl(port)); in insl() 161 *(unsigned int *)p = (l & 0xffff) << 16 | (l2 >> 16); in insl() 163 l = l2; in insl() 177 l2 = cpu_to_le32(inl(port)); in insl() 178 *(unsigned int *)p = (l & 0xff) << 24 | (l2 >> 8); in insl() [all …]
|
| /linux/security/selinux/ss/ |
| H A D | mls_types.h | 30 const struct mls_level *l2) in mls_level_eq() argument 32 return ((l1->sens == l2->sens) && ebitmap_equal(&l1->cat, &l2->cat)); in mls_level_eq() 36 const struct mls_level *l2) in mls_level_dom() argument 38 return ((l1->sens >= l2->sens) && in mls_level_dom() 39 ebitmap_contains(&l1->cat, &l2->cat, 0)); in mls_level_dom() 42 #define mls_level_incomp(l1, l2) \ argument 43 (!mls_level_dom((l1), (l2)) && !mls_level_dom((l2), (l1))) 45 #define mls_level_between(l1, l2, l3) \ argument 46 (mls_level_dom((l1), (l2)) && mls_level_dom((l3), (l1)))
|
| /linux/arch/sparc/lib/ |
| H A D | PeeCeeI.c | 37 u32 l, l2; in outsl() local 65 l2 = *(u32 *)src; in outsl() 66 l |= (l2 >> 24); in outsl() 68 l = l2 << 8; in outsl() 77 l2 = *(u32 *)src; in outsl() 78 l |= (l2 >> 8); in outsl() 80 l = l2 << 24; in outsl() 154 u32 l = 0, l2, *pi; in insl() local 166 l2 = __raw_readl(addr); in insl() 167 *pi++ = (l << 16) | (l2 >> 16); in insl() [all …]
|
| /linux/drivers/net/ethernet/airoha/ |
| H A D | airoha_ppe_debugfs.c | 62 struct airoha_foe_mac_info_common *l2; in airoha_ppe_debugfs_foe_show() local 139 l2 = &hwe->ipv6.l2; in airoha_ppe_debugfs_foe_show() 143 l2 = &hwe->ipv4.l2.common; in airoha_ppe_debugfs_foe_show() 145 cpu_to_be16(hwe->ipv4.l2.src_mac_lo); in airoha_ppe_debugfs_foe_show() 150 *((__be32 *)h_dest) = cpu_to_be32(l2->dest_mac_hi); in airoha_ppe_debugfs_foe_show() 151 *((__be16 *)&h_dest[4]) = cpu_to_be16(l2->dest_mac_lo); in airoha_ppe_debugfs_foe_show() 152 *((__be32 *)h_source) = cpu_to_be32(l2->src_mac_hi); in airoha_ppe_debugfs_foe_show() 157 h_source, h_dest, l2->etype, data, in airoha_ppe_debugfs_foe_show() 158 l2->vlan1, l2->vlan2, hwe->ib1, ib2, in airoha_ppe_debugfs_foe_show()
|
| H A D | airoha_ppe.c | 251 struct airoha_foe_mac_info_common *l2; in airoha_ppe_foe_entry_prepare() local 321 l2 = &hwe->bridge.l2.common; in airoha_ppe_foe_entry_prepare() 325 l2 = &hwe->ipv6.l2; in airoha_ppe_foe_entry_prepare() 326 l2->etype = ETH_P_IPV6; in airoha_ppe_foe_entry_prepare() 330 l2 = &hwe->ipv4.l2.common; in airoha_ppe_foe_entry_prepare() 331 l2->etype = ETH_P_IP; in airoha_ppe_foe_entry_prepare() 334 l2->dest_mac_hi = get_unaligned_be32(data->eth.h_dest); in airoha_ppe_foe_entry_prepare() 335 l2->dest_mac_lo = get_unaligned_be16(data->eth.h_dest + 4); in airoha_ppe_foe_entry_prepare() 339 l2->src_mac_hi = get_unaligned_be32(data->eth.h_source); in airoha_ppe_foe_entry_prepare() 340 hwe->ipv4.l2.src_mac_lo = in airoha_ppe_foe_entry_prepare() [all …]
|
| /linux/drivers/net/ethernet/mediatek/ |
| H A D | mtk_ppe_debugfs.c | 84 struct mtk_foe_mac_info *l2; in mtk_ppe_debugfs_foe_show() local 147 l2 = &entry->ipv6.l2; in mtk_ppe_debugfs_foe_show() 150 l2 = &entry->ipv4.l2; in mtk_ppe_debugfs_foe_show() 154 *((__be32 *)h_source) = htonl(l2->src_mac_hi); in mtk_ppe_debugfs_foe_show() 155 *((__be16 *)&h_source[4]) = htons(l2->src_mac_lo); in mtk_ppe_debugfs_foe_show() 156 *((__be32 *)h_dest) = htonl(l2->dest_mac_hi); in mtk_ppe_debugfs_foe_show() 157 *((__be16 *)&h_dest[4]) = htons(l2->dest_mac_lo); in mtk_ppe_debugfs_foe_show() 162 h_source, h_dest, ntohs(l2->etype), in mtk_ppe_debugfs_foe_show() 163 l2->vlan1, l2->vlan2, entry->ib1, ib2, in mtk_ppe_debugfs_foe_show()
|
| H A D | mtk_ppe.c | 190 return &entry->bridge.l2; in mtk_foe_entry_l2() 193 return &entry->ipv6.l2; in mtk_foe_entry_l2() 195 return &entry->ipv4.l2; in mtk_foe_entry_l2() 216 struct mtk_foe_mac_info *l2; in mtk_foe_entry_prepare() local 257 l2 = &entry->bridge.l2; in mtk_foe_entry_prepare() 260 l2 = &entry->ipv6.l2; in mtk_foe_entry_prepare() 263 l2 = &entry->ipv4.l2; in mtk_foe_entry_prepare() 266 l2->dest_mac_hi = get_unaligned_be32(dest_mac); in mtk_foe_entry_prepare() 267 l2->dest_mac_lo = get_unaligned_be16(dest_mac + 4); in mtk_foe_entry_prepare() 268 l2->src_mac_hi = get_unaligned_be32(src_mac); in mtk_foe_entry_prepare() [all …]
|
| /linux/fs/ntfs3/ |
| H A D | upcase.c | 36 int ntfs_cmp_names(const __le16 *s1, size_t l1, const __le16 *s2, size_t l2, in ntfs_cmp_names() argument 41 size_t len = min(l1, l2); in ntfs_cmp_names() 55 return l1 - l2; in ntfs_cmp_names() 65 diff2 = l1 - l2; in ntfs_cmp_names() 75 size_t l2 = uni2->len; in ntfs_cmp_names_cpu() local 76 size_t len = min(l1, l2); in ntfs_cmp_names_cpu() 92 return l1 - l2; in ntfs_cmp_names_cpu() 102 diff2 = l1 - l2; in ntfs_cmp_names_cpu()
|
| /linux/Documentation/devicetree/bindings/cpufreq/ |
| H A D | brcm,stb-avs-cpu-freq.txt | 6 second node (brcm,avs-cpu-l2-intr) is required to trigger an interrupt on 13 has been processed. See [2] for more information on the brcm,l2-intc node. 19 [2] Documentation/devicetree/bindings/interrupt-controller/brcm,l2-intc.yaml 37 Node brcm,avs-cpu-l2-intr 41 - compatible: must include: brcm,avs-cpu-l2-intr and 42 should include: one of brcm,bcm7271-avs-cpu-l2-intr or 43 brcm,bcm7268-avs-cpu-l2-intr 55 compatible = "brcm,l2-intc"; 72 avs-cpu-l2-intr@f04d1100 { 73 compatible = "brcm,bcm7271-avs-cpu-l2-intr", [all …]
|
| /linux/arch/arm64/boot/dts/amd/ |
| H A D | amd-seattle-cpus.dtsi | 55 l2-cache = <&L2_0>; 71 l2-cache = <&L2_0>; 86 l2-cache = <&L2_1>; 101 l2-cache = <&L2_1>; 116 l2-cache = <&L2_2>; 131 l2-cache = <&L2_2>; 146 l2-cache = <&L2_3>; 161 l2-cache = <&L2_3>; 165 L2_0: l2-cache0 { 173 L2_1: l2-cache1 { [all …]
|
| /linux/arch/arm64/boot/dts/realtek/ |
| H A D | rtd1395.dtsi | 21 next-level-cache = <&l2>; 28 next-level-cache = <&l2>; 35 next-level-cache = <&l2>; 42 next-level-cache = <&l2>; 45 l2: l2-cache { label
|
| H A D | rtd1296.dtsi | 21 next-level-cache = <&l2>; 28 next-level-cache = <&l2>; 35 next-level-cache = <&l2>; 42 next-level-cache = <&l2>; 45 l2: l2-cache { label
|
| H A D | rtd1295.dtsi | 21 next-level-cache = <&l2>; 28 next-level-cache = <&l2>; 35 next-level-cache = <&l2>; 42 next-level-cache = <&l2>; 45 l2: l2-cache { label
|
| /linux/arch/s390/lib/ |
| H A D | string.c | 186 const char *s2, unsigned long l2) in clcle() argument 189 union register_pair r3 = { .even = (unsigned long)s2, .odd = l2, }; in clcle() 210 int l1, l2; in strstr() local 212 l2 = __strend(s2) - s2; in strstr() 213 if (!l2) in strstr() 216 while (l1-- >= l2) { in strstr() 219 cc = clcle(s1, l2, s2, l2); in strstr()
|
| /linux/kernel/ |
| H A D | kcmp.c | 73 static void kcmp_unlock(struct rw_semaphore *l1, struct rw_semaphore *l2) in kcmp_unlock() argument 75 if (likely(l2 != l1)) in kcmp_unlock() 76 up_read(l2); in kcmp_unlock() 80 static int kcmp_lock(struct rw_semaphore *l1, struct rw_semaphore *l2) in kcmp_lock() argument 84 if (l2 > l1) in kcmp_lock() 85 swap(l1, l2); in kcmp_lock() 88 if (!err && likely(l1 != l2)) { in kcmp_lock() 89 err = down_read_killable_nested(l2, SINGLE_DEPTH_NESTING); in kcmp_lock()
|
| /linux/arch/arm64/boot/dts/nuvoton/ |
| H A D | nuvoton-npcm845.dtsi | 19 next-level-cache = <&l2>; 28 next-level-cache = <&l2>; 37 next-level-cache = <&l2>; 46 next-level-cache = <&l2>; 50 l2: l2-cache { label
|
| /linux/arch/x86/kernel/cpu/ |
| H A D | cacheinfo.c | 156 union l2_cache l2; in legacy_amd_cpuid4() local 164 cpuid(0x80000006, &dummy, &dummy, &l2.val, &l3.val); in legacy_amd_cpuid4() 181 if (!l2.assoc || l2.assoc == AMD_L2_L3_INVALID_ASSOC) in legacy_amd_cpuid4() 185 assoc = assocs[l2.assoc]; in legacy_amd_cpuid4() 186 line_size = l2.line_size; in legacy_amd_cpuid4() 187 lines_per_tag = l2.lines_per_tag; in legacy_amd_cpuid4() 369 unsigned int l2, unsigned int l1i, unsigned int l1d) in intel_cacheinfo_done() argument 381 c->x86_cache_size = l3 ? l3 : (l2 ? l2 : l1i + l1d); in intel_cacheinfo_done() 383 if (!l2) in intel_cacheinfo_done() 392 unsigned int l1i = 0, l1d = 0, l2 = 0, l3 = 0; in intel_cacheinfo_0x2() local [all …]
|
| /linux/arch/sparc/kernel/ |
| H A D | head_64.S | 171 mov 0, %l2 178 stx %l2, [%sp + 2047 + 128 + 0x18] ! arg1, 0 189 mov (1b - prom_compatible_name), %l2 192 sub %l0, %l2, %l2 204 stx %l2, [%sp + 2047 + 128 + 0x20] ! arg2, "compatible" 213 mov (1b - prom_chosen_path), %l2 216 sub %l0, %l2, %l2 226 stx %l2, [%sp + 2047 + 128 + 0x18] ! arg1, "/chosen" 234 mov (1b - prom_mmu_name), %l2 237 sub %l0, %l2, %l2 [all …]
|
| /linux/drivers/firmware/efi/libstub/ |
| H A D | string.c | 52 size_t l1, l2; in strstr() local 54 l2 = strlen(s2); in strstr() 55 if (!l2) in strstr() 58 while (l1 >= l2) { in strstr() 60 if (!memcmp(s1, s2, l2)) in strstr()
|
| /linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
| H A D | gp102.c | 45 const u32 ds, const u32 l2) in gp102_gr_zbc_stencil_get() argument 56 if (gr->zbc_stencil[i].l2 != l2) { in gp102_gr_zbc_stencil_get() 71 gr->zbc_stencil[zbc].l2 = l2; in gp102_gr_zbc_stencil_get() 72 nvkm_ltc_zbc_stencil_get(ltc, zbc, l2); in gp102_gr_zbc_stencil_get()
|
| /linux/arch/csky/mm/ |
| H A D | cachev1.c | 32 static void cache_op_all(unsigned int value, unsigned int l2) in cache_op_all() argument 37 if (l2 && (mfcr_ccr2() & CCR2_L2E)) { in cache_op_all() 47 unsigned int l2) in cache_op_range() argument 56 cache_op_all(value, l2); in cache_op_range() 60 if ((mfcr_ccr2() & CCR2_L2E) && l2) in cache_op_range()
|