Home
last modified time | relevance | path

Searched full:operstate (Results 1 – 15 of 15) sorted by relevance

/linux/tools/testing/selftests/net/
H A Dvlan_bridge_binding.sh51 local operstate=$(ip -j link show $dev | jq -r .[].operstate)
52 if [[ $operstate == UP ]]; then
53 operstate=1
54 elif [[ $operstate == DOWN || $operstate == LOWERLAYERDOWN ]]; then
55 operstate=0
57 echo -n $operstate
58 [[ $operstate == $expect ]]
65 local operstate
67 operstate=$(busywait 2000 \
69 check_err $? "Got operstate of $operstate, expected $expect"
H A Drtnetlink.sh1611 end_test "FAIL: operstate"
1615 end_test "PASS: operstate"
/linux/drivers/dpll/zl3073x/
H A Ddpll.c42 * @operstate: last saved operational state
59 enum dpll_pin_operstate operstate; member
411 if (pin->operstate != DPLL_PIN_OPERSTATE_ACTIVE) in zl3073x_dpll_input_pin_frequency_get()
630 * @operstate: place to store operational state in zl3073x_dpll_ref_operstate_get()
640 enum dpll_pin_operstate *operstate) in zl3073x_dpll_input_pin_state_on_dpll_get()
653 *operstate = DPLL_PIN_OPERSTATE_ACTIVE; in zl3073x_dpll_input_pin_state_on_dpll_get()
660 *operstate = DPLL_PIN_OPERSTATE_NO_SIGNAL; in zl3073x_dpll_input_pin_state_on_dpll_get()
662 *operstate = DPLL_PIN_OPERSTATE_QUAL_FAILED; in zl3073x_dpll_input_pin_state_on_dpll_get()
664 *operstate = DPLL_PIN_OPERSTATE_STANDBY; in zl3073x_dpll_input_pin_state_on_dpll_get()
714 enum dpll_pin_operstate *operstate, in zl3073x_dpll_input_pin_state_on_dpll_set()
607 zl3073x_dpll_ref_operstate_get(struct zl3073x_dpll_pin * pin,enum dpll_pin_operstate * operstate) zl3073x_dpll_ref_operstate_get() argument
681 zl3073x_dpll_input_pin_operstate_on_dpll_get(const struct dpll_pin * dpll_pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,enum dpll_pin_operstate * operstate,struct netlink_ext_ack * extack) zl3073x_dpll_input_pin_operstate_on_dpll_get() argument
1123 zl3073x_dpll_nco_pin_operstate_on_dpll_get(const struct dpll_pin * dpll_pin,void * pin_priv,const struct dpll_device * dpll,void * dpll_priv,enum dpll_pin_operstate * operstate,struct netlink_ext_ack * extack) zl3073x_dpll_nco_pin_operstate_on_dpll_get() argument
2239 enum dpll_pin_operstate operstate; zl3073x_dpll_changes_check() local
[all...]
/linux/Documentation/networking/
H A Doperstates.rst171 - send RTM_SETLINK to set operstate to IF_OPER_UP if authentication
173 - see how operstate and IFF_RUNNING is echoed via netlink multicast
182 waiting for operstate to go IF_OPER_UP/IF_OPER_UNKNOWN before
/linux/Documentation/netlink/specs/
H A Ddpll.yaml226 name: pin-operstate
538 name: operstate
540 enum: pin-operstate
544 operstate reflects the actual hardware status.
561 name: operstate
H A Drt-link.yaml918 name: operstate
2466 - operstate
2521 - operstate
/linux/net/core/
H A Dnet-sysfs.c454 unsigned char operstate; in carrier_changes_show()
456 operstate = READ_ONCE(netdev->operstate); in carrier_changes_show()
458 operstate = IF_OPER_DOWN; in carrier_changes_show()
460 if (operstate >= ARRAY_SIZE(operstates)) in carrier_changes_show()
463 return sysfs_emit(buf, "%s\n", operstates[operstate]);
465 static DEVICE_ATTR_RO(operstate); in carrier_up_count_show()
440 unsigned char operstate; operstate_show() local
H A Drtnetlink.c1096 unsigned int old = READ_ONCE(dev->operstate);
1101 } while (!try_cmpxchg(&dev->operstate, &old, newstate)); in set_operstate()
1109 unsigned char operstate = READ_ONCE(dev->operstate); in set_operstate()
1113 if ((operstate == IF_OPER_DORMANT || in set_operstate()
1114 operstate == IF_OPER_TESTING || in set_operstate()
1115 operstate == IF_OPER_UNKNOWN) && in set_operstate()
1117 operstate = IF_OPER_UP; in set_operstate()
1122 operstate = IF_OPER_TESTING; in set_operstate()
1127 operstate in rtnl_dev_get_flags()
1099 unsigned char operstate = READ_ONCE(dev->operstate); set_operstate() local
5407 u8 operstate = netif_running(dev) ? dev->operstate : IF_OPER_DOWN; ndo_dflt_bridge_getlink() local
[all...]
H A Ddev.c11414 * netif_stacked_transfer_operstate - transfer operstate in netdev_free_phy_link_topology()
11416 * @dev: the device to transfer operstate to in netdev_free_phy_link_topology()
11425 if (rootdev->operstate == IF_OPER_DORMANT)
11430 if (rootdev->operstate == IF_OPER_TESTING) in register_netdevice()
/linux/tools/testing/selftests/drivers/net/hw/lib/py/
H A Dlinkconfig.py
/linux/Documentation/ABI/testing/
H A Dsysfs-class-net244 What: /sys/class/net/<iface>/operstate
/linux/drivers/dpll/
H A Ddpll_netlink.c339 enum dpll_pin_operstate operstate; in dpll_msg_add_pin_operstate() local
347 &operstate, extack); in dpll_msg_add_pin_operstate()
350 if (nla_put_u32(msg, DPLL_A_PIN_OPERSTATE, operstate)) in dpll_msg_add_pin_operstate()
/linux/include/linux/
H A Dnetdevice.h1924 * @operstate: RFC2863 operstate
1925 * @link_mode: Mapping policy to operstate
2328 unsigned int operstate;
4768 unsigned int operstate = READ_ONCE(dev->operstate);
4770 return operstate == IF_OPER_UP ||
4771 operstate == IF_OPER_UNKNOWN /* backward compat */;
2319 unsigned int operstate; global() member
4743 unsigned int operstate = READ_ONCE(dev->operstate); netif_oper_up() local
/linux/drivers/net/
H A Dvrf.c1100 dev->operstate = IF_OPER_UP; in vrf_dev_init()
/linux/net/ipv6/
H A Daddrconf.c6155 netif_running(dev) ? READ_ONCE(dev->operstate) : IF_OPER_DOWN)) in inet6_valid_dump_ifinfo()