Home
last modified time | relevance | path

Searched refs:l2 (Results 1 – 25 of 29) sorted by relevance

12

/drivers/isdn/mISDN/
Dlayer2.c92 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 …]
Dtei.c109 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 …]
Dlayer2.h34 struct layer2 *l2; member
/drivers/memory/
Dbt1-l2-ctl.c77 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 …]
DMakefile15 obj-$(CONFIG_BT1_L2_CTL) += bt1-l2-ctl.o
/drivers/net/ethernet/mediatek/
Dmtk_ppe_debugfs.c83 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()
Dmtk_ppe.c137 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 …]
Dmtk_ppe.h119 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/
Dstring.c22 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/
Dgp102.c45 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()
Dgf100.h63 u32 l2[4]; member
69 u32 l2; member
75 u32 l2; member
147 const u32 ds, const u32 l2);
Dgf100.c65 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/
Den_fs.c58 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/
Deesox.c240 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/
Dcl9097.h33 __u32 l2[4]; member
43 __u32 l2; member
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_minidump.c619 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/
Dpinctrl-rzn1.c221 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/
Docelot_ptp.c440 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/
Dtrace_ibhdrs.h103 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),
Dtrace.c69 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/
DMakefile30 obj-$(CONFIG_QCOM_KRYO_L2_ACCESSORS) += kryo-l2-accessors.o
/drivers/s390/net/
Dqeth_l2_main.c165 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/
DMakefile68 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/
Doffload.c83 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/
Dbnxt_tc.h59 struct bnxt_tc_l2_key l2; member

12