Lines Matching defs:clc
733 const struct mt7925_clc *clc;
786 for (offset = 0; offset < len; offset += le32_to_cpu(clc->len)) {
787 clc = (const struct mt7925_clc *)(clc_base + offset);
789 if (clc->idx >= ARRAY_SIZE(phy->clc))
793 if (phy->clc[clc->idx])
797 if ((clc->idx == MT792x_CLC_BE_CTRL &&
798 u8_get_bits(clc->t2.type, MT_EE_HW_TYPE_ENCAP) != hw_encap) ||
799 u8_get_bits(clc->t0.type, MT_EE_HW_TYPE_ENCAP) != hw_encap)
802 phy->clc[clc->idx] = devm_kmemdup(mdev->dev, clc,
803 le32_to_cpu(clc->len),
806 if (!phy->clc[clc->idx]) {
3357 struct mt7925_clc *clc, u8 idx)
3386 if (!clc)
3389 req.ver = clc->ver;
3390 pos = clc->data + sizeof(*seg) * clc->t0.nr_seg;
3391 last_pos = clc->data + le32_to_cpu(*(__le32 *)(clc->data + 4));
3400 seg = (struct mt7925_clc_segment *)clc->data
3407 dev->phy.clc_chan_conf = clc->ver == 1 ? 0xff : rule->flag;
3413 skb_put_data(skb, clc->data + seg->offset, seg->len);
3437 if (!ARRAY_SIZE(phy->clc))
3440 /* submit all clc config */
3441 for (i = 0; i < ARRAY_SIZE(phy->clc); i++) {
3446 phy->clc[i], i);
3452 phy->clc[i], i);