Lines Matching refs:linkcfg
188 {"linkcfg", get_linkcfg, set_linkcfg, NULL},
1517 ocs_hw_linkcfg_e linkcfg;
1531 * @brief Get the HW linkcfg enum from the mgmt config string.
1535 * @return Returns the HW linkcfg enum corresponding to clp_str.
1544 return mgmt_linkcfg_map[i].linkcfg;
1551 * @brief Get the mgmt string value from the HW linkcfg enum.
1553 * @param linkcfg HW linkcfg enum.
1555 * @return Returns the mgmt string value corresponding to the given HW linkcfg.
1558 ocs_mgmt_from_hw_linkcfg(ocs_hw_linkcfg_e linkcfg)
1562 if (mgmt_linkcfg_map[i].linkcfg == linkcfg) {
1575 ocs_hw_linkcfg_e linkcfg;
1579 * @brief Get linkcfg config value
1592 ocs_hw_linkcfg_e linkcfg;
1594 linkcfg = (ocs_hw_linkcfg_e)value;
1595 linkcfg_str = ocs_mgmt_from_hw_linkcfg(linkcfg);
1596 ocs_mgmt_emit_string(textbuf, MGMT_MODE_RW, "linkcfg", linkcfg_str);
1653 * @param value Value to which the linkcfg is set.
1697 * @param value Value to which the linkcfg is set.
1753 * @brief Set linkcfg config value.
1757 * @param value Value to which the linkcfg is set.
1764 ocs_hw_linkcfg_e linkcfg;
1770 /* translate mgmt linkcfg string to HW linkcfg enum */
1771 linkcfg = ocs_hw_linkcfg_from_mgmt(value);
1773 /* set HW linkcfg */
1775 (uintptr_t)linkcfg, ocs_mgmt_linkcfg_cb, &cb_arg);
1787 ocs_log_test(ocs, "failed to set linkcfg from HW status=%d\n",
1798 * @param status Result of the linkcfg get/set operation.
1799 * @param value Resulting linkcfg value.
1809 cb_arg->linkcfg = (ocs_hw_linkcfg_e)value;