Lines Matching defs:plca_cfg
1279 * @plca_cfg: output structure to store the PLCA configuration
1286 struct phy_plca_cfg *plca_cfg)
1297 plca_cfg->version = ret & ~MDIO_OATC14_PLCA_IDM;
1303 plca_cfg->enabled = !!(ret & MDIO_OATC14_PLCA_EN);
1309 plca_cfg->node_cnt = (ret & MDIO_OATC14_PLCA_NCNT) >> 8;
1310 plca_cfg->node_id = (ret & MDIO_OATC14_PLCA_ID);
1316 plca_cfg->to_tmr = ret & MDIO_OATC14_PLCA_TOT;
1322 plca_cfg->burst_cnt = (ret & MDIO_OATC14_PLCA_MAXBC) >> 8;
1323 plca_cfg->burst_tmr = (ret & MDIO_OATC14_PLCA_BTMR);
1332 * @plca_cfg: structure containing the PLCA configuration. Fields set to -1 are
1340 const struct phy_plca_cfg *plca_cfg)
1346 if (plca_cfg->version >= 0)
1350 if (plca_cfg->enabled == 0) {
1360 if (plca_cfg->node_cnt >= 0 || plca_cfg->node_id >= 0) {
1365 if (plca_cfg->node_cnt < 0 || plca_cfg->node_id < 0) {
1375 if (plca_cfg->node_cnt >= 0)
1377 (plca_cfg->node_cnt << 8);
1379 if (plca_cfg->node_id >= 0)
1381 (plca_cfg->node_id);
1390 if (plca_cfg->to_tmr >= 0) {
1393 plca_cfg->to_tmr);
1400 if (plca_cfg->burst_cnt >= 0 || plca_cfg->burst_tmr >= 0) {
1405 if (plca_cfg->burst_cnt < 0 || plca_cfg->burst_tmr < 0) {
1415 if (plca_cfg->burst_cnt >= 0)
1417 (plca_cfg->burst_cnt << 8);
1419 if (plca_cfg->burst_tmr >= 0)
1421 (plca_cfg->burst_tmr);
1431 if (plca_cfg->enabled > 0) {