Home
last modified time | relevance | path

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

/drivers/thunderbolt/
Dicm.c730 bool authorized = false; in icm_fr_device_connected() local
741 authorized = pkg->link_info & ICM_LINK_INFO_APPROVED; in icm_fr_device_connected()
771 !!sw->authorized == authorized) { in icm_fr_device_connected()
852 sw->authorized = authorized; in icm_fr_device_connected()
1205 bool authorized, boot, dual_lane, speed_gen3; in __icm_tr_device_connected() local
1222 authorized = pkg->link_info & ICM_LINK_INFO_APPROVED; in __icm_tr_device_connected()
1238 if (tb_route(sw) == route && !!sw->authorized == authorized) { in __icm_tr_device_connected()
1275 sw->authorized = authorized; in __icm_tr_device_connected()
Dswitch.c1499 return sprintf(buf, "%u\n", sw->authorized); in authorized_show()
1508 if (sw && sw->authorized) { in disapprove_switch()
1520 sw->authorized = 0; in disapprove_switch()
1536 if (!!sw->authorized == !!val) in tb_switch_set_authorized()
1567 sw->authorized = val; in tb_switch_set_authorized()
1572 sprintf(envp_string, "AUTHORIZED=%u", sw->authorized); in tb_switch_set_authorized()
1602 static DEVICE_ATTR_RW(authorized);
1674 if (sw->authorized) { in key_store()
2195 sw->authorized = true; in tb_switch_alloc()
Ddomain.c659 if (!parent_sw || !parent_sw->authorized) in tb_domain_approve_switch()
686 if (!parent_sw || !parent_sw->authorized) in tb_domain_approve_switch_key()
723 if (!parent_sw || !parent_sw->authorized) in tb_domain_challenge_switch_key()
Dtb.h183 unsigned int authorized; member
Dtb.c1378 sw->authorized = 1; in tb_scan_finalize_switch()
/drivers/usb/core/
Dmessage.c1789 if (intf->authorized) { in usb_deauthorize_interface()
1791 intf->authorized = 0; in usb_deauthorize_interface()
1809 if (!intf->authorized) { in usb_authorize_interface()
1811 intf->authorized = 1; /* authorize interface */ in usb_authorize_interface()
1960 if (dev->authorized == 0 || configuration == -1) in usb_set_configuration()
2067 intf->authorized = !!HCD_INTF_AUTHORIZED(hcd); in usb_set_configuration()
Dgeneric.c233 if (udev->authorized == 0) in usb_generic_driver_probe()
Dsysfs.c730 return snprintf(buf, PAGE_SIZE, "%u\n", usb_dev->authorized); in authorized_show()
754 static DEVICE_ATTR_IGNORE_LOCKDEP(authorized, S_IRUGO | S_IWUSR,
1161 return sprintf(buf, "%u\n", intf->authorized); in interface_authorized_show()
1184 __ATTR(authorized, S_IRUGO | S_IWUSR,
Ddriver.c334 if (udev->authorized == 0) { in usb_probe_interface()
337 } else if (intf->authorized == 0) { in usb_probe_interface()
549 if (!iface->authorized) in usb_driver_claim_interface()
Dusb.c796 dev->authorized = usb_dev_authorized(dev, usb_hcd); in usb_alloc_dev()
Dhub.c2646 if (usb_dev->authorized == 0) in usb_deauthorize_device()
2649 usb_dev->authorized = 0; in usb_deauthorize_device()
2663 if (usb_dev->authorized == 1) in usb_authorize_device()
2687 usb_dev->authorized = 1; in usb_authorize_device()