Home
last modified time | relevance | path

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

/net/bluetooth/
Dl2cap_sock.c577 struct bt_power pwr; in l2cap_sock_getsockopt() local
645 pwr.force_active = test_bit(FLAG_FORCE_ACTIVE, &chan->flags); in l2cap_sock_getsockopt()
647 len = min_t(unsigned int, len, sizeof(pwr)); in l2cap_sock_getsockopt()
648 if (copy_to_user(optval, (char *) &pwr, len)) in l2cap_sock_getsockopt()
903 struct bt_power pwr; in l2cap_sock_setsockopt() local
1028 pwr.force_active = BT_POWER_FORCE_ACTIVE_ON; in l2cap_sock_setsockopt()
1030 len = min_t(unsigned int, sizeof(pwr), optlen); in l2cap_sock_setsockopt()
1031 if (copy_from_sockptr(&pwr, optval, len)) { in l2cap_sock_setsockopt()
1036 if (pwr.force_active) in l2cap_sock_setsockopt()