Lines Matching defs:plca_cfg
1190 * @plca_cfg: output structure to store the PLCA configuration
1197 struct phy_plca_cfg *plca_cfg)
1208 plca_cfg->version = ret & ~MDIO_OATC14_PLCA_IDM;
1214 plca_cfg->enabled = !!(ret & MDIO_OATC14_PLCA_EN);
1220 plca_cfg->node_cnt = (ret & MDIO_OATC14_PLCA_NCNT) >> 8;
1221 plca_cfg->node_id = (ret & MDIO_OATC14_PLCA_ID);
1227 plca_cfg->to_tmr = ret & MDIO_OATC14_PLCA_TOT;
1233 plca_cfg->burst_cnt = (ret & MDIO_OATC14_PLCA_MAXBC) >> 8;
1234 plca_cfg->burst_tmr = (ret & MDIO_OATC14_PLCA_BTMR);
1243 * @plca_cfg: structure containing the PLCA configuration. Fields set to -1 are
1251 const struct phy_plca_cfg *plca_cfg)
1257 if (plca_cfg->version >= 0)
1261 if (plca_cfg->enabled == 0) {
1271 if (plca_cfg->node_cnt >= 0 || plca_cfg->node_id >= 0) {
1276 if (plca_cfg->node_cnt < 0 || plca_cfg->node_id < 0) {
1286 if (plca_cfg->node_cnt >= 0)
1288 (plca_cfg->node_cnt << 8);
1290 if (plca_cfg->node_id >= 0)
1292 (plca_cfg->node_id);
1301 if (plca_cfg->to_tmr >= 0) {
1304 plca_cfg->to_tmr);
1311 if (plca_cfg->burst_cnt >= 0 || plca_cfg->burst_tmr >= 0) {
1316 if (plca_cfg->burst_cnt < 0 || plca_cfg->burst_tmr < 0) {
1326 if (plca_cfg->burst_cnt >= 0)
1328 (plca_cfg->burst_cnt << 8);
1330 if (plca_cfg->burst_tmr >= 0)
1332 (plca_cfg->burst_tmr);
1342 if (plca_cfg->enabled > 0) {