Lines Matching defs:plca_cfg
1281 * @plca_cfg: output structure to store the PLCA configuration
1288 struct phy_plca_cfg *plca_cfg)
1299 plca_cfg->version = ret & ~MDIO_OATC14_PLCA_IDM;
1305 plca_cfg->enabled = !!(ret & MDIO_OATC14_PLCA_EN);
1311 plca_cfg->node_cnt = (ret & MDIO_OATC14_PLCA_NCNT) >> 8;
1312 plca_cfg->node_id = (ret & MDIO_OATC14_PLCA_ID);
1318 plca_cfg->to_tmr = ret & MDIO_OATC14_PLCA_TOT;
1324 plca_cfg->burst_cnt = (ret & MDIO_OATC14_PLCA_MAXBC) >> 8;
1325 plca_cfg->burst_tmr = (ret & MDIO_OATC14_PLCA_BTMR);
1334 * @plca_cfg: structure containing the PLCA configuration. Fields set to -1 are
1342 const struct phy_plca_cfg *plca_cfg)
1348 if (plca_cfg->version >= 0)
1352 if (plca_cfg->enabled == 0) {
1362 if (plca_cfg->node_cnt >= 0 || plca_cfg->node_id >= 0) {
1367 if (plca_cfg->node_cnt < 0 || plca_cfg->node_id < 0) {
1377 if (plca_cfg->node_cnt >= 0)
1379 (plca_cfg->node_cnt << 8);
1381 if (plca_cfg->node_id >= 0)
1383 (plca_cfg->node_id);
1392 if (plca_cfg->to_tmr >= 0) {
1395 plca_cfg->to_tmr);
1402 if (plca_cfg->burst_cnt >= 0 || plca_cfg->burst_tmr >= 0) {
1407 if (plca_cfg->burst_cnt < 0 || plca_cfg->burst_tmr < 0) {
1417 if (plca_cfg->burst_cnt >= 0)
1419 (plca_cfg->burst_cnt << 8);
1421 if (plca_cfg->burst_tmr >= 0)
1423 (plca_cfg->burst_tmr);
1433 if (plca_cfg->enabled > 0) {