Home
last modified time | relevance | path

Searched refs:old_active (Results 1 – 4 of 4) sorted by relevance

/Linux-v4.19/drivers/staging/greybus/
Dlight.c376 bool old_active; in __gb_lights_led_brightness_set() local
384 old_active = channel->active; in __gb_lights_led_brightness_set()
401 if (!old_active && channel->active) in __gb_lights_led_brightness_set()
408 if (old_active && !channel->active) in __gb_lights_led_brightness_set()
459 bool old_active; in gb_blink_set() local
473 old_active = channel->active; in gb_blink_set()
491 if (!old_active && channel->active) in gb_blink_set()
498 if (old_active && !channel->active) in gb_blink_set()
/Linux-v4.19/drivers/net/bonding/
Dbond_main.c578 struct slave *old_active) in bond_hw_addr_swap() argument
580 if (old_active) { in bond_hw_addr_swap()
582 dev_set_promiscuity(old_active->dev, -1); in bond_hw_addr_swap()
585 dev_set_allmulti(old_active->dev, -1); in bond_hw_addr_swap()
587 bond_hw_addr_flush(bond->dev, old_active->dev); in bond_hw_addr_swap()
647 struct slave *old_active) in bond_do_fail_over_mac() argument
666 if (!old_active) in bond_do_fail_over_mac()
667 old_active = bond_get_old_active(bond, new_active); in bond_do_fail_over_mac()
669 if (old_active) { in bond_do_fail_over_mac()
673 old_active->dev->dev_addr, in bond_do_fail_over_mac()
[all …]
Dbond_options.c809 struct slave *old_active = rtnl_dereference(bond->curr_active_slave); in bond_option_active_slave_set() local
814 if (new_active == old_active) { in bond_option_active_slave_set()
819 if (old_active && (new_active->link == BOND_LINK_UP) && in bond_option_active_slave_set()
/Linux-v4.19/drivers/usb/gadget/udc/
Ddummy_hcd.c255 unsigned old_active:1; member
469 } else if (dum_hcd->active != dum_hcd->old_active && in set_link_state()
473 if (dum_hcd->old_active && dum->driver->suspend) in set_link_state()
475 else if (!dum_hcd->old_active && dum->driver->resume) in set_link_state()
482 dum_hcd->old_active = dum_hcd->active; in set_link_state()