Lines Matching refs:BMASK
88 #define BMASK(msb, lsb) (((1 << ((msb) + 1 - (lsb))) - 1) << (lsb)) macro
5988 ibsd_wr_allchans(ppd, 13, (le2 << 7), BMASK(9, 7)); in qsfp_7322_event()
7865 ibsd_wr_allchans(ppd, 2, 0, BMASK(11, 9)); in serdes_7322_init_old()
7868 ibsd_wr_allchans(ppd, 11, (1 << 11), BMASK(12, 11)); in serdes_7322_init_old()
7874 ibsd_wr_allchans(ppd, 13, (le_val << 7), BMASK(9, 7)); in serdes_7322_init_old()
7884 ibsd_wr_allchans(ppd, 5, (0 << 8), BMASK(9, 8)); in serdes_7322_init_old()
7888 ahb_mod(ppd->dd, IBSD(ppd->hw_pidx), 5, 5, 8 << 11, BMASK(14, 11)); in serdes_7322_init_old()
7889 ahb_mod(ppd->dd, IBSD(ppd->hw_pidx), 5, 7, 8 << 4, BMASK(7, 4)); in serdes_7322_init_old()
7890 ahb_mod(ppd->dd, IBSD(ppd->hw_pidx), 5, 8, 8 << 11, BMASK(14, 11)); in serdes_7322_init_old()
7891 ahb_mod(ppd->dd, IBSD(ppd->hw_pidx), 5, 10, 8 << 4, BMASK(7, 4)); in serdes_7322_init_old()
7894 ahb_mod(ppd->dd, IBSD(ppd->hw_pidx), 5, 6, 4 << 0, BMASK(3, 0)); in serdes_7322_init_old()
7895 ahb_mod(ppd->dd, IBSD(ppd->hw_pidx), 5, 7, 4 << 8, BMASK(11, 8)); in serdes_7322_init_old()
7896 ahb_mod(ppd->dd, IBSD(ppd->hw_pidx), 5, 9, 4 << 0, BMASK(3, 0)); in serdes_7322_init_old()
7897 ahb_mod(ppd->dd, IBSD(ppd->hw_pidx), 5, 10, 4 << 8, BMASK(11, 8)); in serdes_7322_init_old()
7903 ibsd_wr_allchans(ppd, 14, (1 << 3), BMASK(5, 3)); /* QDR */ in serdes_7322_init_old()
7904 ibsd_wr_allchans(ppd, 20, (2 << 10), BMASK(12, 10)); /* DDR */ in serdes_7322_init_old()
7905 ibsd_wr_allchans(ppd, 20, (4 << 13), BMASK(15, 13)); /* SDR */ in serdes_7322_init_old()
7913 ibsd_wr_allchans(ppd, 16, 0 << 0, BMASK(1, 0)); in serdes_7322_init_old()
7942 ibsd_wr_allchans(ppd, 2, 15 << 5, BMASK(8, 5)); in serdes_7322_init_old()
7964 ibsd_wr_allchans(ppd, 1, 0, BMASK(9, 1)); in serdes_7322_init_new()
7966 ibsd_wr_allchans(ppd, 13, 0, BMASK(5, 5)); in serdes_7322_init_new()
7968 ibsd_wr_allchans(ppd, 1, 0, BMASK(15, 15)); in serdes_7322_init_new()
7970 ibsd_wr_allchans(ppd, 13, 0, BMASK(6, 6)); in serdes_7322_init_new()
7972 ibsd_wr_allchans(ppd, 5, 0, BMASK(0, 0)); in serdes_7322_init_new()
7974 ibsd_wr_allchans(ppd, 12, 0, BMASK(12, 12)); in serdes_7322_init_new()
7976 ibsd_wr_allchans(ppd, 2, 0, BMASK(3, 3)); in serdes_7322_init_new()
7978 ibsd_wr_allchans(ppd, 2, 0, BMASK(4, 4)); in serdes_7322_init_new()
7980 ibsd_wr_allchans(ppd, 13, 0, BMASK(13, 13)); in serdes_7322_init_new()
7982 ibsd_wr_allchans(ppd, 4, 0, BMASK(10, 10)); in serdes_7322_init_new()
7984 ibsd_wr_allchans(ppd, 12, 0, BMASK(4, 4)); in serdes_7322_init_new()
7986 ibsd_wr_allchans(ppd, 2, (1 << 15), BMASK(15, 15)); in serdes_7322_init_new()
7988 ibsd_wr_allchans(ppd, 5, 0, BMASK(9, 8)); in serdes_7322_init_new()
7990 ibsd_wr_allchans(ppd, 12, (1 << 5), BMASK(5, 5)); in serdes_7322_init_new()
7992 ibsd_wr_allchans(ppd, 2, (4 << 12), BMASK(14, 12)); in serdes_7322_init_new()
7994 ibsd_wr_allchans(ppd, 16, 0, BMASK(1, 0)); in serdes_7322_init_new()
7997 ibsd_wr_allchans(ppd, 12, 1 << 12, BMASK(12, 12)); in serdes_7322_init_new()
7998 ibsd_wr_allchans(ppd, 12, 2 << 8, BMASK(11, 8)); in serdes_7322_init_new()
8000 ibsd_wr_allchans(ppd, 19, (3 << 11), BMASK(13, 11)); in serdes_7322_init_new()
8011 ibsd_wr_allchans(ppd, 0, 0, BMASK(15, 13)); in serdes_7322_init_new()
8014 ibsd_wr_allchans(ppd, 0, (1 << 14), BMASK(14, 14)); in serdes_7322_init_new()
8017 ibsd_wr_allchans(ppd, 0, (1 << 13), BMASK(13, 13)); in serdes_7322_init_new()
8022 ahb_mod(ppd->dd, IBSD(ppd->hw_pidx), 5, 5, 8 << 11, BMASK(14, 11)); in serdes_7322_init_new()
8023 ahb_mod(ppd->dd, IBSD(ppd->hw_pidx), 5, 7, 8 << 4, BMASK(7, 4)); in serdes_7322_init_new()
8024 ahb_mod(ppd->dd, IBSD(ppd->hw_pidx), 5, 8, 8 << 11, BMASK(14, 11)); in serdes_7322_init_new()
8025 ahb_mod(ppd->dd, IBSD(ppd->hw_pidx), 5, 10, 8 << 4, BMASK(7, 4)); in serdes_7322_init_new()
8028 ahb_mod(ppd->dd, IBSD(ppd->hw_pidx), 5, 6, 4 << 0, BMASK(3, 0)); in serdes_7322_init_new()
8029 ahb_mod(ppd->dd, IBSD(ppd->hw_pidx), 5, 7, 4 << 8, BMASK(11, 8)); in serdes_7322_init_new()
8030 ahb_mod(ppd->dd, IBSD(ppd->hw_pidx), 5, 9, 4 << 0, BMASK(3, 0)); in serdes_7322_init_new()
8031 ahb_mod(ppd->dd, IBSD(ppd->hw_pidx), 5, 10, 4 << 8, BMASK(11, 8)); in serdes_7322_init_new()
8037 ibsd_wr_allchans(ppd, 14, (1 << 3), BMASK(5, 3)); /* QDR */ in serdes_7322_init_new()
8038 ibsd_wr_allchans(ppd, 20, (2 << 10), BMASK(12, 10)); /* DDR */ in serdes_7322_init_new()
8039 ibsd_wr_allchans(ppd, 20, (4 << 13), BMASK(15, 13)); /* SDR */ in serdes_7322_init_new()
8048 ibsd_wr_allchans(ppd, 15, 1, BMASK(0, 0)); in serdes_7322_init_new()
8050 ibsd_wr_allchans(ppd, 12, (1 << 4), BMASK(4, 4)); in serdes_7322_init_new()
8053 ibsd_wr_allchans(ppd, 4, (1 << 10), BMASK(10, 10)); in serdes_7322_init_new()
8061 if ((~rxcaldone & (u32)BMASK(9, 9)) == 0 && in serdes_7322_init_new()
8074 if ((~rxcaldone & (u32)BMASK(10, 10)) == 0) in serdes_7322_init_new()
8081 ibsd_wr_allchans(ppd, 4, 0, BMASK(10, 10)); in serdes_7322_init_new()
8087 ibsd_wr_allchans(ppd, 13, (le_val << 7), BMASK(9, 7)); in serdes_7322_init_new()
8089 ibsd_wr_allchans(ppd, 3, (7 << 5), BMASK(7, 5)); in serdes_7322_init_new()
8091 ibsd_wr_allchans(ppd, 13, (1 << 6), BMASK(6, 6)); in serdes_7322_init_new()
8094 ibsd_wr_allchans(ppd, 1, 1, BMASK(9, 1)); in serdes_7322_init_new()
8099 ibsd_wr_allchans(ppd, 5, 0, BMASK(0, 0)); in serdes_7322_init_new()
8102 ibsd_wr_allchans(ppd, 2, (15 << 5), BMASK(8, 5)); in serdes_7322_init_new()
8104 ibsd_wr_allchans(ppd, 2, (1 << 4), BMASK(4, 4)); in serdes_7322_init_new()
8106 ibsd_wr_allchans(ppd, 2, 0, BMASK(11, 9)); in serdes_7322_init_new()
8108 ibsd_wr_allchans(ppd, 2, (1 << 3), BMASK(3, 3)); in serdes_7322_init_new()
8123 ibsd_wr_allchans(ppd, 1, (0 << 15), BMASK(15, 15)); in serdes_7322_init_new()
8126 ibsd_wr_allchans(ppd, 12, (1 << 12), BMASK(12, 12)); in serdes_7322_init_new()
8128 ibsd_wr_allchans(ppd, 12, (1 << 13), BMASK(13, 13)); in serdes_7322_init_new()
8130 ibsd_wr_allchans(ppd, 11, (1 << 11), BMASK(12, 11)); in serdes_7322_init_new()
8132 ibsd_wr_allchans(ppd, 12, (3 << 2), BMASK(3, 2)); in serdes_7322_init_new()