/drivers/isdn/mISDN/ |
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 …]
|
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 …]
|
D | layer2.h | 34 struct layer2 *l2; member
|
/drivers/memory/ |
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 …]
|
D | Makefile | 15 obj-$(CONFIG_BT1_L2_CTL) += bt1-l2-ctl.o
|
/drivers/net/ethernet/mediatek/ |
D | mtk_ppe_debugfs.c | 83 struct mtk_foe_mac_info *l2; in mtk_ppe_debugfs_foe_show() local 143 l2 = &entry->ipv6.l2; in mtk_ppe_debugfs_foe_show() 146 l2 = &entry->ipv4.l2; in mtk_ppe_debugfs_foe_show() 150 *((__be32 *)h_source) = htonl(l2->src_mac_hi); in mtk_ppe_debugfs_foe_show() 151 *((__be16 *)&h_source[4]) = htons(l2->src_mac_lo); in mtk_ppe_debugfs_foe_show() 152 *((__be32 *)h_dest) = htonl(l2->dest_mac_hi); in mtk_ppe_debugfs_foe_show() 153 *((__be16 *)&h_dest[4]) = htons(l2->dest_mac_lo); in mtk_ppe_debugfs_foe_show() 157 h_source, h_dest, ntohs(l2->etype), in mtk_ppe_debugfs_foe_show() 158 l2->vlan1, l2->vlan2, entry->ib1, ib2); in mtk_ppe_debugfs_foe_show()
|
D | mtk_ppe.c | 137 return &entry->bridge.l2; in mtk_foe_entry_l2() 140 return &entry->ipv6.l2; in mtk_foe_entry_l2() 142 return &entry->ipv4.l2; in mtk_foe_entry_l2() 163 struct mtk_foe_mac_info *l2; in mtk_foe_entry_prepare() local 202 l2 = &entry->bridge.l2; in mtk_foe_entry_prepare() 205 l2 = &entry->ipv6.l2; in mtk_foe_entry_prepare() 208 l2 = &entry->ipv4.l2; in mtk_foe_entry_prepare() 211 l2->dest_mac_hi = get_unaligned_be32(dest_mac); in mtk_foe_entry_prepare() 212 l2->dest_mac_lo = get_unaligned_be16(dest_mac + 4); in mtk_foe_entry_prepare() 213 l2->src_mac_hi = get_unaligned_be32(src_mac); in mtk_foe_entry_prepare() [all …]
|
D | mtk_ppe.h | 119 struct mtk_foe_mac_info l2; member 150 struct mtk_foe_mac_info l2; member 166 struct mtk_foe_mac_info l2; member 190 struct mtk_foe_mac_info l2; member 212 struct mtk_foe_mac_info l2; member
|
/drivers/firmware/efi/libstub/ |
D | string.c | 22 size_t l1, l2; in strstr() local 24 l2 = strlen(s2); in strstr() 25 if (!l2) in strstr() 28 while (l1 >= l2) { in strstr() 30 if (!memcmp(s1, s2, l2)) in strstr()
|
/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
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()
|
D | gf100.h | 63 u32 l2[4]; member 69 u32 l2; member 75 u32 l2; member 147 const u32 ds, const u32 l2);
|
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/ |
D | en_fs.c | 58 struct mlx5e_l2_table l2; member 223 dest.ft = fs->l2.ft.t; in __mlx5e_add_vlan_rule() 409 struct mlx5_flow_table *ft = fs->l2.ft.t; in mlx5e_add_mac_trap() 416 fs->l2.trap_rule = NULL; in mlx5e_add_mac_trap() 421 fs->l2.trap_rule = rule; in mlx5e_add_mac_trap() 427 if (fs->l2.trap_rule) { in mlx5e_remove_mac_trap() 428 mlx5_del_flow_rules(fs->l2.trap_rule); in mlx5e_remove_mac_trap() 429 fs->l2.trap_rule = NULL; in mlx5e_remove_mac_trap() 610 mlx5e_add_l2_to_hash(fs->l2.netdev_uc, netdev->dev_addr); in mlx5e_sync_netdev_addr() 612 mlx5e_add_l2_to_hash(fs->l2.netdev_uc, ha->addr); in mlx5e_sync_netdev_addr() [all …]
|
/drivers/scsi/arm/ |
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/gpu/drm/nouveau/include/nvif/ |
D | cl9097.h | 33 __u32 l2[4]; member 43 __u32 l2; member
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_minidump.c | 619 struct __cache *l2 = &entry->region.cache; in qlcnic_dump_l2_cache() local 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() 626 qlcnic_ind_wr(adapter, l2->addr, val); in qlcnic_dump_l2_cache() 627 if (LSW(l2->ctrl_val)) in qlcnic_dump_l2_cache() 628 qlcnic_ind_wr(adapter, l2->ctrl_addr, in qlcnic_dump_l2_cache() 629 LSW(l2->ctrl_val)); in qlcnic_dump_l2_cache() 633 data = qlcnic_ind_rd(adapter, l2->ctrl_addr); in qlcnic_dump_l2_cache() [all …]
|
/drivers/pinctrl/renesas/ |
D | pinctrl-rzn1.c | 221 u32 l2; in rzn1_set_hw_pin_func() local 258 l2 = readl(&ipctl->lev2->conf[pin]); in rzn1_set_hw_pin_func() 259 l2_cache = l2; in rzn1_set_hw_pin_func() 270 l2 = pin_config - RZN1_FUNC_L2_OFFSET; in rzn1_set_hw_pin_func() 274 if (l1 != l1_cache || l2 != l2_cache) { in rzn1_set_hw_pin_func() 276 writel(l2, &ipctl->lev2->conf[pin]); in rzn1_set_hw_pin_func() 492 u32 l1, l2, arg = 0; in rzn1_pinconf_get() local 520 l2 = readl(&ipctl->lev2->conf[pin]); in rzn1_pinconf_get() 522 if (l2 != 0) in rzn1_pinconf_get()
|
/drivers/net/ethernet/mscc/ |
D | ocelot_ptp.c | 440 bool l2, bool l4) in ocelot_setup_ptp_traps() argument 448 if (l2) in ocelot_setup_ptp_traps() 471 if (l2) in ocelot_setup_ptp_traps() 481 if (l2) in ocelot_setup_ptp_traps() 524 bool l2 = false, l4 = false; in ocelot_hwstamp_set() local 560 l2 = true; in ocelot_hwstamp_set() 565 l2 = true; in ocelot_hwstamp_set() 572 err = ocelot_setup_ptp_traps(ocelot, port, l2, l4); in ocelot_hwstamp_set()
|
/drivers/infiniband/hw/hfi1/ |
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),
|
D | trace.c | 69 const char *hfi1_trace_get_packet_l2_str(u8 l2) in hfi1_trace_get_packet_l2_str() argument 71 switch (l2) { in hfi1_trace_get_packet_l2_str()
|
/drivers/soc/qcom/ |
D | Makefile | 30 obj-$(CONFIG_QCOM_KRYO_L2_ACCESSORS) += kryo-l2-accessors.o
|
/drivers/s390/net/ |
D | qeth_l2_main.c | 165 hdr->hdr.l2.pkt_length = data_len; in qeth_l2_fill_header() 168 hdr->hdr.l2.id = QETH_HEADER_TYPE_L2_TSO; in qeth_l2_fill_header() 170 hdr->hdr.l2.id = QETH_HEADER_TYPE_LAYER2; in qeth_l2_fill_header() 172 qeth_tx_csum(skb, &hdr->hdr.l2.flags[1], proto); in qeth_l2_fill_header() 177 hdr->hdr.l2.flags[2] |= QETH_LAYER2_FLAG_MULTICAST; in qeth_l2_fill_header() 179 hdr->hdr.l2.flags[2] |= QETH_LAYER2_FLAG_BROADCAST; in qeth_l2_fill_header() 181 hdr->hdr.l2.flags[2] |= QETH_LAYER2_FLAG_UNICAST; in qeth_l2_fill_header() 187 hdr->hdr.l2.flags[2] |= QETH_LAYER2_FLAG_VLAN; in qeth_l2_fill_header() 188 hdr->hdr.l2.vlan_id = ntohs(veth->h_vlan_TCI); in qeth_l2_fill_header()
|
/drivers/irqchip/ |
D | Makefile | 68 obj-$(CONFIG_BCM7120_L2_IRQ) += irq-bcm7120-l2.o 69 obj-$(CONFIG_BRCMSTB_L2_IRQ) += irq-brcmstb-l2.o
|
/drivers/net/ethernet/netronome/nfp/flower/ |
D | offload.c | 83 struct nfp_flower_mac_mpls l2; member 623 eth_broadcast_addr(&merge->l2.mac_dst[0]); in nfp_flower_update_merge_with_actions() 624 eth_broadcast_addr(&merge->l2.mac_src[0]); in nfp_flower_update_merge_with_actions() 637 merge->l2.mac_dst[i] |= eth->eth_addr_mask[i]; in nfp_flower_update_merge_with_actions() 639 merge->l2.mac_src[i] |= in nfp_flower_update_merge_with_actions() 727 memcpy(&merge->l2, mask, match_size); in nfp_flower_populate_merge_match()
|
/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_tc.h | 59 struct bnxt_tc_l2_key l2; member
|