Home
last modified time | relevance | path

Searched refs:operstate (Results 1 – 11 of 11) 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"
/linux/drivers/dpll/zl3073x/
H A Ddpll.c59 enum dpll_pin_operstate operstate; member
378 if (pin->operstate != DPLL_PIN_OPERSTATE_ACTIVE) in zl3073x_dpll_input_pin_ffo_get()
607 enum dpll_pin_operstate *operstate) in zl3073x_dpll_ref_operstate_get() argument
620 *operstate = DPLL_PIN_OPERSTATE_ACTIVE; in zl3073x_dpll_ref_operstate_get()
627 *operstate = DPLL_PIN_OPERSTATE_NO_SIGNAL; in zl3073x_dpll_ref_operstate_get()
629 *operstate = DPLL_PIN_OPERSTATE_QUAL_FAILED; in zl3073x_dpll_ref_operstate_get()
631 *operstate = DPLL_PIN_OPERSTATE_STANDBY; in zl3073x_dpll_ref_operstate_get()
681 enum dpll_pin_operstate *operstate, in zl3073x_dpll_input_pin_operstate_on_dpll_get() argument
689 return zl3073x_dpll_ref_operstate_get(pin, operstate); in zl3073x_dpll_input_pin_operstate_on_dpll_get()
1123 enum dpll_pin_operstate *operstate, in zl3073x_dpll_nco_pin_operstate_on_dpll_get() argument
[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/net/core/
H A Dnet-sysfs.c440 unsigned char operstate; in operstate_show() local
442 operstate = READ_ONCE(netdev->operstate); in operstate_show()
444 operstate = IF_OPER_DOWN; in operstate_show()
446 if (operstate >= ARRAY_SIZE(operstates)) in operstate_show()
449 return sysfs_emit(buf, "%s\n", operstates[operstate]); in operstate_show()
451 static DEVICE_ATTR_RO(operstate);
H A Drtnetlink.c1086 unsigned int old = READ_ONCE(dev->operstate); in netif_set_operstate()
1091 } while (!try_cmpxchg(&dev->operstate, &old, newstate)); in netif_set_operstate()
1099 unsigned char operstate = READ_ONCE(dev->operstate); in set_operstate() local
1103 if ((operstate == IF_OPER_DORMANT || in set_operstate()
1104 operstate == IF_OPER_TESTING || in set_operstate()
1105 operstate == IF_OPER_UNKNOWN) && in set_operstate()
1107 operstate = IF_OPER_UP; in set_operstate()
1112 operstate = IF_OPER_TESTING; in set_operstate()
1117 operstate = IF_OPER_DORMANT; in set_operstate()
1121 netif_set_operstate(dev, operstate); in set_operstate()
[all …]
H A Ddev.c11198 if (rootdev->operstate == IF_OPER_DORMANT) in netif_stacked_transfer_operstate()
11203 if (rootdev->operstate == IF_OPER_TESTING) in netif_stacked_transfer_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.h2316 unsigned int operstate; member
4740 unsigned int operstate = READ_ONCE(dev->operstate); in netif_oper_up() local
4742 return operstate == IF_OPER_UP || in netif_oper_up()
4743 operstate == IF_OPER_UNKNOWN /* backward compat */; in netif_oper_up()
/linux/Documentation/ABI/testing/
H A Dsysfs-class-net244 What: /sys/class/net/<iface>/operstate
/linux/drivers/net/
H A Dvrf.c1100 dev->operstate = IF_OPER_UP; in vrf_dev_init()
/linux/net/ipv6/
H A Daddrconf.c6129 netif_running(dev) ? READ_ONCE(dev->operstate) : IF_OPER_DOWN)) in inet6_fill_ifinfo()