| /drivers/isdn/mISDN/ |
| A D | layer2.c | 105 mISDNDevName4ch(&l2->ch), l2->sapi, l2->tei, &vaf); in l2m_debug() 287 mISDNDevName4ch(&l2->ch), l2->sapi, l2->tei, in l2_timeout() 296 mISDNDevName4ch(&l2->ch), l2->sapi, l2->tei, in l2_timeout() 377 p1 = (l2->vs - l2->va) % 8; in cansend() 588 return ((nr - l2->va) % 8) <= ((l2->vs - l2->va) % 8); in legalnr() 604 skb_queue_tail(&l2->tmp_queue, l2->windowar[l2->sow]); in setva() 607 l2->sow = (l2->sow + 1) % l2->window; in setva() 955 if (l2->vs != l2->va) { in l2_restart_multi() 1350 set_channel_address(&l2->ch, l2->sapi, l2->tei); in l2_got_tei() 2092 set_channel_address(&l2->ch, l2->sapi, l2->tei); in l2_ctrl() [all …]
|
| A D | tei.c | 234 tm->l2->sapi, tm->l2->tei, &vaf); in tei_debug() 421 if ((l2->sapi == 0) && (l2->tei > 0) && in findtei() 656 l2->ch.ctrl(&l2->ch, CLOSE_CHANNEL, NULL); in tei_l2remove() 813 l2->tm->l2 = l2; in create_new_tei() 815 l2->tm->tei_m.userdata = l2->tm; in create_new_tei() 826 l2->ch.ctrl(&l2->ch, CLOSE_CHANNEL, NULL); in create_new_tei() 834 l2->ch.ctrl(&l2->ch, OPEN_CHANNEL, NULL); in create_new_tei() 1056 l2->tm->l2 = l2; in create_teimgr() 1058 l2->tm->tei_m.userdata = l2->tm; in create_teimgr() 1091 l2->ch.ctrl(&l2->ch, CLOSE_CHANNEL, NULL); in create_teimgr() [all …]
|
| /drivers/memory/ |
| A D | bt1-l2-ctl.c | 142 struct l2_ctl *l2 = data; in l2_ctl_clear_data() local 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() 164 l2->dev = dev; in l2_ctl_create_data() 167 return l2; in l2_ctl_create_data() 172 l2->sys_regs = syscon_node_to_regmap(l2->dev->of_node->parent); in l2_ctl_find_sys_regs() 276 ret = devm_add_action_or_reset(l2->dev, l2_ctl_remove_sysfs, l2); in l2_ctl_init_sysfs() 285 struct l2_ctl *l2; in l2_ctl_probe() local 289 if (IS_ERR(l2)) in l2_ctl_probe() [all …]
|
| /drivers/net/ethernet/airoha/ |
| 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()
|
| A D | airoha_ppe.c | 280 l2 = &hwe->bridge.l2.common; in airoha_ppe_foe_entry_prepare() 284 l2 = &hwe->ipv6.l2; in airoha_ppe_foe_entry_prepare() 285 l2->etype = ETH_P_IPV6; in airoha_ppe_foe_entry_prepare() 289 l2 = &hwe->ipv4.l2.common; in airoha_ppe_foe_entry_prepare() 290 l2->etype = ETH_P_IP; in airoha_ppe_foe_entry_prepare() 299 hwe->ipv4.l2.src_mac_lo = in airoha_ppe_foe_entry_prepare() 317 l2->etype = BIT(dsa_port); in airoha_ppe_foe_entry_prepare() 320 l2->etype = ETH_P_PPP_SES; in airoha_ppe_foe_entry_prepare() 412 struct airoha_foe_mac_info *l2 = &hwe->bridge.l2; in airoha_ppe_foe_get_entry_hash() local 685 memcpy(&hwe.ipv6.l2, &e->data.bridge.l2, sizeof(hwe.ipv6.l2)); in airoha_ppe_foe_commit_subflow_entry() [all …]
|
| A D | airoha_eth.h | 328 struct airoha_foe_mac_info l2; member 358 struct airoha_foe_mac_info l2; member 373 struct airoha_foe_mac_info l2; member 396 struct airoha_foe_mac_info_common l2; member
|
| /drivers/net/ethernet/mediatek/ |
| 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()
|
| A D | mtk_ppe.c | 195 return &entry->ipv4.l2; in mtk_foe_entry_l2() 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() 274 l2->etype = ETH_P_IP; in mtk_foe_entry_prepare() 380 l2->etype |= BIT(8); in mtk_foe_entry_set_dsa() 396 l2->vlan1 = vid; in mtk_foe_entry_set_vlan() 400 l2->vlan1 = vid; in mtk_foe_entry_set_vlan() 403 l2->vlan2 = vid; in mtk_foe_entry_set_vlan() 422 l2->pppoe_id = sid; in mtk_foe_entry_set_pppoe() [all …]
|
| A D | mtk_ppe.h | 139 struct mtk_foe_mac_info l2; member 170 struct mtk_foe_mac_info l2; member 186 struct mtk_foe_mac_info l2; member 210 struct mtk_foe_mac_info l2; member 232 struct mtk_foe_mac_info l2; member
|
| /drivers/firmware/efi/libstub/ |
| 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()
|
| /drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
| 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()
|
| A D | gf100.h | 50 u32 l2[4]; member 56 u32 l2; member 62 u32 l2; member 145 const u32 ds, const u32 l2);
|
| A D | gf100.c | 65 const u32 ds[4], const u32 l2[4]) in gf100_gr_zbc_color_get() 77 if (memcmp(gr->zbc_color[i].l2, l2, sizeof( in gf100_gr_zbc_color_get() 78 gr->zbc_color[i].l2))) { in gf100_gr_zbc_color_get() 92 memcpy(gr->zbc_color[zbc].l2, l2, sizeof(gr->zbc_color[zbc].l2)); in gf100_gr_zbc_color_get() 94 nvkm_ltc_zbc_color_get(ltc, zbc, l2); in gf100_gr_zbc_color_get() 112 const u32 ds, const u32 l2) in gf100_gr_zbc_depth_get() argument 123 if (gr->zbc_depth[i].l2 != l2) { in gf100_gr_zbc_depth_get() 138 gr->zbc_depth[zbc].l2 = l2; in gf100_gr_zbc_depth_get() 139 nvkm_ltc_zbc_depth_get(ltc, zbc, l2); in gf100_gr_zbc_depth_get() 192 args->v0.l2); in gf100_fermi_mthd_zbc_color() [all …]
|
| /drivers/net/ethernet/mellanox/mlx5/core/ |
| A D | en_fs.c | 59 struct mlx5e_l2_table l2; member 230 dest.ft = fs->l2.ft.t; in __mlx5e_add_vlan_rule() 422 fs->l2.trap_rule = NULL; in mlx5e_add_mac_trap() 426 fs->l2.trap_rule = rule; in mlx5e_add_mac_trap() 432 if (fs->l2.trap_rule) { in mlx5e_remove_mac_trap() 434 fs->l2.trap_rule = NULL; in mlx5e_remove_mac_trap() 640 addr_list = is_uc ? fs->l2.netdev_uc : fs->l2.netdev_mc; in mlx5e_fill_addr_array() 644 else if (fs->l2.broadcast_enabled) in mlx5e_fill_addr_array() 675 addr_list = is_uc ? fs->l2.netdev_uc : fs->l2.netdev_mc; in mlx5e_vport_context_update_addr_list() 705 struct mlx5e_l2_table *ea = &fs->l2; in mlx5e_vport_context_update() [all …]
|
| /drivers/irqchip/ |
| A D | irq-gic-v5-its.c | 147 kfree(its_dev->itt_cfg.l2.l2ptrs[i]); in gicv5_its_free_itt_two_level() 149 kfree(its_dev->itt_cfg.l2.l2ptrs); in gicv5_its_free_itt_two_level() 150 kfree(its_dev->itt_cfg.l2.l1itt); in gicv5_its_free_itt_two_level() 222 its_dev->itt_cfg.l2.l2ptrs = l2ptrs; in gicv5_its_create_itt_two_level() 224 its_dev->itt_cfg.l2.l2sz = itt_l2sz; in gicv5_its_create_itt_two_level() 225 its_dev->itt_cfg.l2.l1itt = itt_l1; in gicv5_its_create_itt_two_level() 268 kfree(its_dev->itt_cfg.l2.l2ptrs[i]); in gicv5_its_create_itt_two_level() 270 kfree(its_dev->itt_cfg.l2.l2ptrs); in gicv5_its_create_itt_two_level() 676 its->devtab_cfgr.l2.l2ptrs = l2ptrs; in gicv5_its_alloc_devtab_two_level() 710 kfree(its->devtab_cfgr.l2.l1devtab); in gicv5_its_deinit_devtab() [all …]
|
| /drivers/scsi/arm/ |
| A D | eesox.c | 240 unsigned long l1, l2; in eesoxscsi_buffer_in() local 244 l2 = readl(reg_dmadata) & mask; in eesoxscsi_buffer_in() 245 l2 |= readl(reg_dmadata) << 16; in eesoxscsi_buffer_in() 248 *(u32 *)buf = l2; in eesoxscsi_buffer_in() 319 unsigned long l1, l2; in eesoxscsi_buffer_out() local 323 l2 = *(u32 *)buf; in eesoxscsi_buffer_out() 328 writel(l2 << 16, reg_dmadata); in eesoxscsi_buffer_out() 329 writel(l2, reg_dmadata); in eesoxscsi_buffer_out()
|
| /drivers/net/ethernet/qlogic/qlcnic/ |
| A D | qlcnic_minidump.c | 621 val = l2->init_tag_val; in qlcnic_dump_l2_cache() 622 poll_mask = LSB(MSW(l2->ctrl_val)); in qlcnic_dump_l2_cache() 623 poll_to = MSB(MSW(l2->ctrl_val)); in qlcnic_dump_l2_cache() 625 for (i = 0; i < l2->no_ops; i++) { in qlcnic_dump_l2_cache() 627 if (LSW(l2->ctrl_val)) in qlcnic_dump_l2_cache() 629 LSW(l2->ctrl_val)); in qlcnic_dump_l2_cache() 647 addr = l2->read_addr; in qlcnic_dump_l2_cache() 648 cnt = l2->read_addr_num; in qlcnic_dump_l2_cache() 652 addr += l2->read_addr_stride; in qlcnic_dump_l2_cache() 655 val += l2->stride; in qlcnic_dump_l2_cache() [all …]
|
| /drivers/gpu/drm/nouveau/include/nvif/ |
| A D | cl9097.h | 33 __u32 l2[4]; member 43 __u32 l2; member
|
| /drivers/iommu/arm/arm-smmu-v3/ |
| A D | arm-smmu-v3.c | 1269 l2 = cd_table->l2.l2ptrs[arm_smmu_cdtab_l1_idx(ssid)]; in arm_smmu_get_cd_ptr() 1270 if (!l2) in arm_smmu_get_cd_ptr() 1454 cd_table->l2.num_l1_ents = in arm_smmu_alloc_cd_tables() 1457 cd_table->l2.l2ptrs = kcalloc(cd_table->l2.num_l1_ents, in arm_smmu_alloc_cd_tables() 1460 if (!cd_table->l2.l2ptrs) in arm_smmu_alloc_cd_tables() 1475 kfree(cd_table->l2.l2ptrs); in arm_smmu_alloc_cd_tables() 3826 cfg->l2.l1tab = dmam_alloc_coherent(smmu->dev, l1size, &cfg->l2.l1_dma, in arm_smmu_init_strtab_2lvl() 3828 if (!cfg->l2.l1tab) { in arm_smmu_init_strtab_2lvl() 3835 cfg->l2.l2ptrs = devm_kcalloc(smmu->dev, cfg->l2.num_l1_ents, in arm_smmu_init_strtab_2lvl() 3837 if (!cfg->l2.l2ptrs) in arm_smmu_init_strtab_2lvl() [all …]
|
| /drivers/pinctrl/renesas/ |
| A D | pinctrl-rzn1.c | 225 u32 l2; in rzn1_set_hw_pin_func() local 262 l2 = readl(&ipctl->lev2->conf[pin]); in rzn1_set_hw_pin_func() 263 l2_cache = l2; in rzn1_set_hw_pin_func() 274 l2 = pin_config - RZN1_FUNC_L2_OFFSET; in rzn1_set_hw_pin_func() 278 if (l1 != l1_cache || l2 != l2_cache) { in rzn1_set_hw_pin_func() 280 writel(l2, &ipctl->lev2->conf[pin]); in rzn1_set_hw_pin_func() 493 u32 l1, l2, arg = 0; in rzn1_pinconf_get() local 521 l2 = readl(&ipctl->lev2->conf[pin]); in rzn1_pinconf_get() 523 if (l2 != 0) in rzn1_pinconf_get()
|
| /drivers/net/ethernet/mscc/ |
| A D | ocelot_ptp.c | 437 bool l2, bool l4) in ocelot_setup_ptp_traps() argument 445 if (l2) in ocelot_setup_ptp_traps() 468 if (l2) in ocelot_setup_ptp_traps() 478 if (l2) in ocelot_setup_ptp_traps() 543 bool l2 = false, l4 = false; in ocelot_hwstamp_set() local 563 l2 = true; in ocelot_hwstamp_set() 568 l2 = true; in ocelot_hwstamp_set() 575 err = ocelot_setup_ptp_traps(ocelot, port, l2, l4); in ocelot_hwstamp_set()
|
| /drivers/gpu/drm/panthor/ |
| A D | panthor_regs.h | 55 #define GPU_FLUSH_CACHES(l2, lsc, oth) \ argument 56 GPU_CMD_DEF(4, ((l2) << 0) | ((lsc) << 4) | ((oth) << 8))
|
| A D | panthor_gpu.h | 51 u32 l2, u32 lsc, u32 other);
|
| /drivers/thermal/ |
| A D | thermal_thresholds.c | 52 const struct list_head *l2) in __thermal_thresholds_cmp() argument 55 struct user_threshold *t2 = container_of(l2, struct user_threshold, list_node); in __thermal_thresholds_cmp()
|
| /drivers/infiniband/hw/hfi1/ |
| A D | trace_ibhdrs.h | 103 const char *hfi1_trace_get_packet_l2_str(u8 l2); 126 __field(u8, l2) 155 __entry->l2 = hfi1_16B_get_l2(packet->hdr); 222 __entry->l2),
|