role 116 arch/arm/mach-omap2/omap_device.c _add_clkdev(od, oh->opt_clks[i].role, oh->opt_clks[i].clk); role 979 arch/arm/mach-omap2/omap_hwmod.c pr_debug("omap_hwmod: enable %s:%s\n", oc->role, role 994 arch/arm/mach-omap2/omap_hwmod.c pr_debug("omap_hwmod: disable %s:%s\n", oc->role, role 179 arch/arm/mach-omap2/omap_hwmod.h const char *role; role 168 arch/arm/mach-omap2/omap_hwmod_2420_data.c { .role = "pad_fck", .clk = "mcbsp_clks" }, role 169 arch/arm/mach-omap2/omap_hwmod_2420_data.c { .role = "prcm_fck", .clk = "func_96m_ck" }, role 224 arch/arm/mach-omap2/omap_hwmod_2430_data.c { .role = "pad_fck", .clk = "mcbsp_clks" }, role 225 arch/arm/mach-omap2/omap_hwmod_2430_data.c { .role = "prcm_fck", .clk = "func_96m_ck" }, role 327 arch/arm/mach-omap2/omap_hwmod_2430_data.c { .role = "dbck", .clk = "mmchsdb1_fck" }, role 353 arch/arm/mach-omap2/omap_hwmod_2430_data.c { .role = "dbck", .clk = "mmchsdb2_fck" }, role 465 arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c { .role = "tv_clk", .clk = "dss_54m_fck" }, role 466 arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c { .role = "sys_clk", .clk = "dss2_fck" }, role 499 arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c { .role = "ick", .clk = "dss_ick" }, role 491 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c { .role = "dbclk", .clk = "gpio1_dbclk" }, role 511 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c { .role = "dbclk", .clk = "gpio2_dbclk" }, role 531 arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c { .role = "dbclk", .clk = "gpio3_dbclk" }, role 193 arch/arm/mach-omap2/omap_hwmod_33xx_data.c { .role = "dbg_sysclk", .clk = "dbg_sysclk_ck" }, role 194 arch/arm/mach-omap2/omap_hwmod_33xx_data.c { .role = "dbg_clka", .clk = "dbg_clka_ck" }, role 462 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c { .role = "softreset_uart1_fck", .clk = "uart1_fck" }, role 493 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c { .role = "sys_clk", .clk = "dss2_alwon_fck" }, role 494 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c { .role = "tv_clk", .clk = "dss_tv_fck" }, role 496 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c { .role = "tv_dac_clk", .clk = "dss_96m_fck" }, role 588 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c { .role = "sys_clk", .clk = "dss2_alwon_fck" }, role 606 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c { .role = "ick", .clk = "dss_ick" }, role 625 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c { .role = "tv_dac_clk", .clk = "dss_96m_fck" }, role 710 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c { .role = "dbclk", .clk = "gpio1_dbck", }, role 731 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c { .role = "dbclk", .clk = "gpio2_dbck", }, role 752 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c { .role = "dbclk", .clk = "gpio3_dbck", }, role 773 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c { .role = "dbclk", .clk = "gpio4_dbck", }, role 795 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c { .role = "dbclk", .clk = "gpio5_dbck", }, role 817 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c { .role = "dbclk", .clk = "gpio6_dbck", }, role 898 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c { .role = "pad_fck", .clk = "mcbsp_clks" }, role 899 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c { .role = "prcm_fck", .clk = "core_96m_fck" }, role 903 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c { .role = "pad_fck", .clk = "mcbsp_clks" }, role 904 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c { .role = "prcm_fck", .clk = "per_96m_fck" }, role 1306 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c { .role = "dbck", .clk = "omap_32k_fck", }, role 1356 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c { .role = "dbck", .clk = "omap_32k_fck", }, role 1400 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c { .role = "dbck", .clk = "omap_32k_fck", }, role 532 arch/arm/mach-omap2/omap_hwmod_44xx_data.c { .role = "sys_clk", .clk = "dss_sys_clk" }, role 533 arch/arm/mach-omap2/omap_hwmod_44xx_data.c { .role = "tv_clk", .clk = "dss_tv_clk" }, role 534 arch/arm/mach-omap2/omap_hwmod_44xx_data.c { .role = "hdmi_clk", .clk = "dss_48mhz_clk" }, role 621 arch/arm/mach-omap2/omap_hwmod_44xx_data.c { .role = "sys_clk", .clk = "dss_sys_clk" }, role 642 arch/arm/mach-omap2/omap_hwmod_44xx_data.c { .role = "sys_clk", .clk = "dss_sys_clk" }, role 683 arch/arm/mach-omap2/omap_hwmod_44xx_data.c { .role = "sys_clk", .clk = "dss_sys_clk" }, role 684 arch/arm/mach-omap2/omap_hwmod_44xx_data.c { .role = "hdmi_clk", .clk = "dss_48mhz_clk" }, role 730 arch/arm/mach-omap2/omap_hwmod_44xx_data.c { .role = "ick", .clk = "l3_div_ck" }, role 760 arch/arm/mach-omap2/omap_hwmod_44xx_data.c { .role = "tv_clk", .clk = "dss_tv_clk" }, role 1202 arch/arm/mach-omap2/omap_hwmod_44xx_data.c { .role = "ctrlclk", .clk = "iss_ctrlclk" }, role 1380 arch/arm/mach-omap2/omap_hwmod_44xx_data.c { .role = "pad_fck", .clk = "pad_clks_ck" }, role 1381 arch/arm/mach-omap2/omap_hwmod_44xx_data.c { .role = "prcm_fck", .clk = "mcbsp1_sync_mux_ck" }, role 1402 arch/arm/mach-omap2/omap_hwmod_44xx_data.c { .role = "pad_fck", .clk = "pad_clks_ck" }, role 1403 arch/arm/mach-omap2/omap_hwmod_44xx_data.c { .role = "prcm_fck", .clk = "mcbsp2_sync_mux_ck" }, role 1424 arch/arm/mach-omap2/omap_hwmod_44xx_data.c { .role = "pad_fck", .clk = "pad_clks_ck" }, role 1425 arch/arm/mach-omap2/omap_hwmod_44xx_data.c { .role = "prcm_fck", .clk = "mcbsp3_sync_mux_ck" }, role 1446 arch/arm/mach-omap2/omap_hwmod_44xx_data.c { .role = "pad_fck", .clk = "pad_clks_ck" }, role 1447 arch/arm/mach-omap2/omap_hwmod_44xx_data.c { .role = "prcm_fck", .clk = "mcbsp4_sync_mux_ck" }, role 1818 arch/arm/mach-omap2/omap_hwmod_44xx_data.c { .role = "fclk_1", .clk = "slimbus1_fclk_1" }, role 1819 arch/arm/mach-omap2/omap_hwmod_44xx_data.c { .role = "fclk_0", .clk = "slimbus1_fclk_0" }, role 1820 arch/arm/mach-omap2/omap_hwmod_44xx_data.c { .role = "fclk_2", .clk = "slimbus1_fclk_2" }, role 1821 arch/arm/mach-omap2/omap_hwmod_44xx_data.c { .role = "slimbus_clk", .clk = "slimbus1_slimbus_clk" }, role 1841 arch/arm/mach-omap2/omap_hwmod_44xx_data.c { .role = "fclk_1", .clk = "slimbus2_fclk_1" }, role 1842 arch/arm/mach-omap2/omap_hwmod_44xx_data.c { .role = "fclk_0", .clk = "slimbus2_fclk_0" }, role 1843 arch/arm/mach-omap2/omap_hwmod_44xx_data.c { .role = "slimbus_clk", .clk = "slimbus2_slimbus_clk" }, role 2322 arch/arm/mach-omap2/omap_hwmod_44xx_data.c { .role = "xclk", .clk = "usb_otg_hs_xclk" }, role 335 arch/arm/mach-omap2/omap_hwmod_54xx_data.c { .role = "32khz_clk", .clk = "dss_32khz_clk" }, role 336 arch/arm/mach-omap2/omap_hwmod_54xx_data.c { .role = "sys_clk", .clk = "dss_sys_clk" }, role 337 arch/arm/mach-omap2/omap_hwmod_54xx_data.c { .role = "hdmi_clk", .clk = "dss_48mhz_clk" }, role 382 arch/arm/mach-omap2/omap_hwmod_54xx_data.c { .role = "sys_clk", .clk = "dss_sys_clk" }, role 431 arch/arm/mach-omap2/omap_hwmod_54xx_data.c { .role = "sys_clk", .clk = "dss_sys_clk" }, role 452 arch/arm/mach-omap2/omap_hwmod_54xx_data.c { .role = "sys_clk", .clk = "dss_sys_clk" }, role 492 arch/arm/mach-omap2/omap_hwmod_54xx_data.c { .role = "sys_clk", .clk = "dss_sys_clk" }, role 533 arch/arm/mach-omap2/omap_hwmod_54xx_data.c { .role = "ick", .clk = "l3_iclk_div" }, role 685 arch/arm/mach-omap2/omap_hwmod_54xx_data.c { .role = "pad_fck", .clk = "pad_clks_ck" }, role 686 arch/arm/mach-omap2/omap_hwmod_54xx_data.c { .role = "prcm_fck", .clk = "mcbsp1_sync_mux_ck" }, role 707 arch/arm/mach-omap2/omap_hwmod_54xx_data.c { .role = "pad_fck", .clk = "pad_clks_ck" }, role 708 arch/arm/mach-omap2/omap_hwmod_54xx_data.c { .role = "prcm_fck", .clk = "mcbsp2_sync_mux_ck" }, role 729 arch/arm/mach-omap2/omap_hwmod_54xx_data.c { .role = "pad_fck", .clk = "pad_clks_ck" }, role 730 arch/arm/mach-omap2/omap_hwmod_54xx_data.c { .role = "prcm_fck", .clk = "mcbsp3_sync_mux_ck" }, role 1375 arch/arm/mach-omap2/omap_hwmod_54xx_data.c { .role = "refclk960m", .clk = "usb_otg_ss_refclk960m" }, role 517 arch/arm/mach-omap2/omap_hwmod_7xx_data.c { .role = "dss_clk", .clk = "dss_dss_clk" }, role 518 arch/arm/mach-omap2/omap_hwmod_7xx_data.c { .role = "hdmi_phy_clk", .clk = "dss_48mhz_clk" }, role 519 arch/arm/mach-omap2/omap_hwmod_7xx_data.c { .role = "32khz_clk", .clk = "dss_32khz_clk" }, role 520 arch/arm/mach-omap2/omap_hwmod_7xx_data.c { .role = "video2_clk", .clk = "dss_video2_clk" }, role 521 arch/arm/mach-omap2/omap_hwmod_7xx_data.c { .role = "video1_clk", .clk = "dss_video1_clk" }, role 522 arch/arm/mach-omap2/omap_hwmod_7xx_data.c { .role = "hdmi_clk", .clk = "dss_hdmi_clk" }, role 523 arch/arm/mach-omap2/omap_hwmod_7xx_data.c { .role = "hdcp_clk", .clk = "dss_deshdcp_clk" }, role 611 arch/arm/mach-omap2/omap_hwmod_7xx_data.c { .role = "sys_clk", .clk = "dss_hdmi_clk" }, role 1709 arch/arm/mach-omap2/omap_hwmod_7xx_data.c { .role = "refclk960m", .clk = "usb_otg_ss1_refclk960m" }, role 1731 arch/arm/mach-omap2/omap_hwmod_7xx_data.c { .role = "refclk960m", .clk = "usb_otg_ss2_refclk960m" }, role 490 arch/arm/mach-omap2/omap_hwmod_81xx_data.c { .role = "dbclk", .clk = "sysclk18_ck" }, role 516 arch/arm/mach-omap2/omap_hwmod_81xx_data.c { .role = "dbclk", .clk = "sysclk18_ck" }, role 542 arch/arm/mach-omap2/omap_hwmod_81xx_data.c { .role = "dbclk", .clk = "sysclk18_ck" }, role 568 arch/arm/mach-omap2/omap_hwmod_81xx_data.c { .role = "dbclk", .clk = "sysclk18_ck" }, role 1057 arch/arm/mach-omap2/omap_hwmod_81xx_data.c { .role = "dbck", .clk = "sysclk18_ck", }, role 326 arch/x86/include/asm/kvm_host.h union kvm_mmu_page_role role; role 1536 arch/x86/include/asm/kvm_host.h #define kvm_memslots_for_spte_role(kvm, role) __kvm_memslots(kvm, (role).smm) role 361 arch/x86/kvm/mmu.c return sp->role.ad_disabled; role 1157 arch/x86/kvm/mmu.c if (!sp->role.direct) role 1160 arch/x86/kvm/mmu.c return sp->gfn + (index << ((sp->role.level - 1) * PT64_LEVEL_BITS)); role 1165 arch/x86/kvm/mmu.c if (!sp->role.direct) { role 1222 arch/x86/kvm/mmu.c slots = kvm_memslots_for_spte_role(kvm, sp->role); role 1226 arch/x86/kvm/mmu.c if (sp->role.level > PT_PAGE_TABLE_LEVEL) role 1252 arch/x86/kvm/mmu.c slots = kvm_memslots_for_spte_role(kvm, sp->role); role 1254 arch/x86/kvm/mmu.c if (sp->role.level > PT_PAGE_TABLE_LEVEL) role 1484 arch/x86/kvm/mmu.c slots = kvm_memslots_for_spte_role(kvm, sp->role); role 1486 arch/x86/kvm/mmu.c return __gfn_to_rmap(gfn, sp->role.level, slot); role 1606 arch/x86/kvm/mmu.c WARN_ON(page_header(__pa(sptep))->role.level == role 1622 arch/x86/kvm/mmu.c KVM_PAGES_PER_HPAGE(sp->role.level)); role 2097 arch/x86/kvm/mmu.c kvm_unmap_rmapp(vcpu->kvm, rmap_head, NULL, gfn, sp->role.level, 0); role 2099 arch/x86/kvm/mmu.c KVM_PAGES_PER_HPAGE(sp->role.level)); role 2146 arch/x86/kvm/mmu.c if (!sp->role.direct) role 2348 arch/x86/kvm/mmu.c if ((_sp)->gfn != (_gfn) || (_sp)->role.direct) {} else role 2352 arch/x86/kvm/mmu.c return sp->role.cr0_wp && sp->role.smap_andnot_wp; role 2359 arch/x86/kvm/mmu.c if ((!is_ept_sp(sp) && sp->role.gpte_is_8_bytes != !!is_pae(vcpu)) || role 2402 arch/x86/kvm/mmu.c return sp->role.invalid || role 2424 arch/x86/kvm/mmu.c WARN_ON(s->role.level != PT_PAGE_TABLE_LEVEL); role 2450 arch/x86/kvm/mmu.c int level = sp->role.level; role 2474 arch/x86/kvm/mmu.c level = sp->role.level; role 2557 arch/x86/kvm/mmu.c union kvm_mmu_page_role role; role 2565 arch/x86/kvm/mmu.c role = vcpu->arch.mmu->mmu_role.base; role 2566 arch/x86/kvm/mmu.c role.level = level; role 2567 arch/x86/kvm/mmu.c role.direct = direct; role 2568 arch/x86/kvm/mmu.c if (role.direct) role 2569 arch/x86/kvm/mmu.c role.gpte_is_8_bytes = true; role 2570 arch/x86/kvm/mmu.c role.access = access; role 2575 arch/x86/kvm/mmu.c role.quadrant = quadrant; role 2586 arch/x86/kvm/mmu.c if (sp->role.word != role.word) role 2613 arch/x86/kvm/mmu.c sp->role = role; role 2740 arch/x86/kvm/mmu.c if (child->role.access == direct_access) role 2756 arch/x86/kvm/mmu.c if (is_last_spte(pte, sp->role.level)) { role 2799 arch/x86/kvm/mmu.c if (parent->role.level == PT_PAGE_TABLE_LEVEL) role 2831 arch/x86/kvm/mmu.c if (!sp->role.invalid && !sp->role.direct) role 2856 arch/x86/kvm/mmu.c sp->role.invalid = 1; role 2889 arch/x86/kvm/mmu.c WARN_ON(!sp->role.invalid || sp->root_count); role 2943 arch/x86/kvm/mmu.c sp->role.word); role 2978 arch/x86/kvm/mmu.c WARN_ON(sp->role.level != PT_PAGE_TABLE_LEVEL); role 3237 arch/x86/kvm/mmu.c unsigned access = sp->role.access; role 3251 arch/x86/kvm/mmu.c mmu_set_spte(vcpu, start, access, 0, sp->role.level, gfn, role 3265 arch/x86/kvm/mmu.c WARN_ON(!sp->role.direct); role 3296 arch/x86/kvm/mmu.c if (sp->role.level > PT_PAGE_TABLE_LEVEL) role 3490 arch/x86/kvm/mmu.c WARN_ON(!sp->role.direct); role 3562 arch/x86/kvm/mmu.c if (!is_last_spte(spte, sp->role.level)) role 3606 arch/x86/kvm/mmu.c if (sp->role.level > PT_PAGE_TABLE_LEVEL) role 3710 arch/x86/kvm/mmu.c if (!sp->root_count && sp->role.invalid) role 4377 arch/x86/kvm/mmu.c new_role.word == page_header(root.hpa)->role.word) role 4987 arch/x86/kvm/mmu.c union kvm_mmu_role role = {0}; role 4989 arch/x86/kvm/mmu.c role.base.access = ACC_ALL; role 4990 arch/x86/kvm/mmu.c role.base.nxe = !!is_nx(vcpu); role 4991 arch/x86/kvm/mmu.c role.base.cr0_wp = is_write_protection(vcpu); role 4992 arch/x86/kvm/mmu.c role.base.smm = is_smm(vcpu); role 4993 arch/x86/kvm/mmu.c role.base.guest_mode = is_guest_mode(vcpu); role 4996 arch/x86/kvm/mmu.c return role; role 4998 arch/x86/kvm/mmu.c role.ext = kvm_calc_mmu_role_ext(vcpu); role 5000 arch/x86/kvm/mmu.c return role; role 5006 arch/x86/kvm/mmu.c union kvm_mmu_role role = kvm_calc_mmu_role_common(vcpu, base_only); role 5008 arch/x86/kvm/mmu.c role.base.ad_disabled = (shadow_accessed_mask == 0); role 5009 arch/x86/kvm/mmu.c role.base.level = kvm_x86_ops->get_tdp_level(vcpu); role 5010 arch/x86/kvm/mmu.c role.base.direct = true; role 5011 arch/x86/kvm/mmu.c role.base.gpte_is_8_bytes = true; role 5013 arch/x86/kvm/mmu.c return role; role 5069 arch/x86/kvm/mmu.c union kvm_mmu_role role = kvm_calc_mmu_role_common(vcpu, base_only); role 5071 arch/x86/kvm/mmu.c role.base.smep_andnot_wp = role.ext.cr4_smep && role 5073 arch/x86/kvm/mmu.c role.base.smap_andnot_wp = role.ext.cr4_smap && role 5075 arch/x86/kvm/mmu.c role.base.direct = !is_paging(vcpu); role 5076 arch/x86/kvm/mmu.c role.base.gpte_is_8_bytes = !!is_pae(vcpu); role 5079 arch/x86/kvm/mmu.c role.base.level = PT32E_ROOT_LEVEL; role 5081 arch/x86/kvm/mmu.c role.base.level = PT64_ROOT_5LEVEL; role 5083 arch/x86/kvm/mmu.c role.base.level = PT64_ROOT_4LEVEL; role 5085 arch/x86/kvm/mmu.c return role; role 5116 arch/x86/kvm/mmu.c union kvm_mmu_role role = {0}; role 5119 arch/x86/kvm/mmu.c role.base.smm = vcpu->arch.root_mmu.mmu_role.base.smm; role 5121 arch/x86/kvm/mmu.c role.base.level = PT64_ROOT_4LEVEL; role 5122 arch/x86/kvm/mmu.c role.base.gpte_is_8_bytes = true; role 5123 arch/x86/kvm/mmu.c role.base.direct = false; role 5124 arch/x86/kvm/mmu.c role.base.ad_disabled = !accessed_dirty; role 5125 arch/x86/kvm/mmu.c role.base.guest_mode = true; role 5126 arch/x86/kvm/mmu.c role.base.access = ACC_ALL; role 5132 arch/x86/kvm/mmu.c role.base.cr0_wp = true; role 5133 arch/x86/kvm/mmu.c role.base.smap_andnot_wp = true; role 5135 arch/x86/kvm/mmu.c role.ext = kvm_calc_mmu_role_ext(vcpu); role 5136 arch/x86/kvm/mmu.c role.ext.execonly = execonly; role 5138 arch/x86/kvm/mmu.c return role; role 5259 arch/x86/kvm/mmu.c union kvm_mmu_role role; role 5262 arch/x86/kvm/mmu.c role = kvm_calc_tdp_mmu_root_page_role(vcpu, true); role 5264 arch/x86/kvm/mmu.c role = kvm_calc_shadow_mmu_root_page_role(vcpu, true); role 5266 arch/x86/kvm/mmu.c return role.base; role 5307 arch/x86/kvm/mmu.c if (sp->role.level != PT_PAGE_TABLE_LEVEL) { role 5365 arch/x86/kvm/mmu.c if (sp->role.level == PT_PAGE_TABLE_LEVEL) role 5382 arch/x86/kvm/mmu.c gpa, bytes, sp->role.word); role 5385 arch/x86/kvm/mmu.c pte_size = sp->role.gpte_is_8_bytes ? 8 : 4; role 5407 arch/x86/kvm/mmu.c level = sp->role.level; role 5409 arch/x86/kvm/mmu.c if (!sp->role.gpte_is_8_bytes) { role 5423 arch/x86/kvm/mmu.c if (quadrant != sp->role.quadrant) role 5486 arch/x86/kvm/mmu.c !((sp->role.word ^ base_role) role 5850 arch/x86/kvm/mmu.c if (sp->role.invalid && sp->root_count) role 6033 arch/x86/kvm/mmu.c if (sp->role.direct && !kvm_is_reserved_pfn(pfn) && role 6040 arch/x86/kvm/mmu.c KVM_PAGES_PER_HPAGE(sp->role.level)); role 6130 arch/x86/kvm/mmu.c if (sp->role.invalid && sp->root_count) role 138 arch/x86/kvm/mmu_audit.c slots = kvm_memslots_for_spte_role(kvm, rev_sp->role); role 150 arch/x86/kvm/mmu_audit.c rmap_head = __gfn_to_rmap(gfn, rev_sp->role.level, slot); role 179 arch/x86/kvm/mmu_audit.c if (sp->role.level != PT_PAGE_TABLE_LEVEL) role 198 arch/x86/kvm/mmu_audit.c if (sp->role.direct || sp->unsync || sp->role.invalid) role 201 arch/x86/kvm/mmu_audit.c slots = kvm_memslots_for_spte_role(kvm, sp->role); role 209 arch/x86/kvm/mmu_audit.c sp->gfn, sp->role.word); role 14 arch/x86/kvm/mmutrace.h __field(__u32, role) \ role 21 arch/x86/kvm/mmutrace.h __entry->role = sp->role.word; \ role 30 arch/x86/kvm/mmutrace.h union kvm_mmu_page_role role; \ role 32 arch/x86/kvm/mmutrace.h role.word = __entry->role; \ role 37 arch/x86/kvm/mmutrace.h __entry->gfn, role.level, \ role 38 arch/x86/kvm/mmutrace.h role.gpte_is_8_bytes ? 8 : 4, \ role 39 arch/x86/kvm/mmutrace.h role.quadrant, \ role 40 arch/x86/kvm/mmutrace.h role.direct ? " direct" : "", \ role 41 arch/x86/kvm/mmutrace.h access_str[role.access], \ role 42 arch/x86/kvm/mmutrace.h role.invalid ? " invalid" : "", \ role 43 arch/x86/kvm/mmutrace.h role.nxe ? "" : "!", \ role 44 arch/x86/kvm/mmutrace.h role.ad_disabled ? "!" : "", \ role 529 arch/x86/kvm/paging_tmpl.h pte_access = sp->role.access & FNAME(gpte_access)(gpte); role 588 arch/x86/kvm/paging_tmpl.h if (sp->role.level > PT_PAGE_TABLE_LEVEL) role 591 arch/x86/kvm/paging_tmpl.h if (sp->role.direct) role 884 arch/x86/kvm/paging_tmpl.h WARN_ON(sp->role.level != PT_PAGE_TABLE_LEVEL); role 887 arch/x86/kvm/paging_tmpl.h offset = sp->role.quadrant << PT64_LEVEL_BITS; role 930 arch/x86/kvm/paging_tmpl.h sp->gfn, KVM_PAGES_PER_HPAGE(sp->role.level)); role 1015 arch/x86/kvm/paging_tmpl.h BUG_ON(sp->role.direct); role 1046 arch/x86/kvm/paging_tmpl.h pte_access = sp->role.access; role 1923 drivers/block/drbd/drbd_main.c if (device->state.role != R_PRIMARY) { role 1950 drivers/block/drbd/drbd_main.c D_ASSERT(device, device->state.role == R_PRIMARY); role 1964 drivers/block/drbd/drbd_main.c { .role = R_SECONDARY, role 3445 drivers/block/drbd/drbd_main.c if (device->state.role == R_PRIMARY) role 640 drivers/block/drbd/drbd_nl.c mask.i = 0; mask.role = R_MASK; role 641 drivers/block/drbd/drbd_nl.c val.i = 0; val.role = new_role; role 1311 drivers/block/drbd/drbd_nl.c if (device->state.role != R_PRIMARY) { role 1417 drivers/block/drbd/drbd_nl.c if (device->state.role == R_PRIMARY && new < now) role 1990 drivers/block/drbd/drbd_nl.c (device->state.role == R_PRIMARY || device->state.peer == R_PRIMARY) && role 2059 drivers/block/drbd/drbd_nl.c !(device->state.role == R_PRIMARY && device->resource->susp_nod)) role 2084 drivers/block/drbd/drbd_nl.c if (device->state.role != R_PRIMARY && role 2176 drivers/block/drbd/drbd_nl.c if (device->state.role == R_PRIMARY) role 2334 drivers/block/drbd/drbd_nl.c if (device->state.role == R_PRIMARY && new_net_conf->discard_my_data) role 2826 drivers/block/drbd/drbd_nl.c if (device->state.role != device->state.peer) role 2827 drivers/block/drbd/drbd_nl.c iass = (device->state.role == R_PRIMARY); role 2880 drivers/block/drbd/drbd_nl.c if (device->state.role == R_SECONDARY && role 3043 drivers/block/drbd/drbd_nl.c if (device->state.conn == C_STANDALONE && device->state.role == R_SECONDARY) { role 3120 drivers/block/drbd/drbd_nl.c if (device->state.conn == C_STANDALONE && device->state.role == R_PRIMARY) { role 4424 drivers/block/drbd/drbd_nl.c device->state.role == R_SECONDARY) { role 264 drivers/block/drbd/drbd_proc.c state.role == R_SECONDARY) { role 277 drivers/block/drbd/drbd_proc.c drbd_role_str(state.role), role 3156 drivers/block/drbd/drbd_receiver.c if (hg == -1 && device->state.role == R_SECONDARY) role 3158 drivers/block/drbd/drbd_receiver.c if (hg == 1 && device->state.role == R_PRIMARY) role 3165 drivers/block/drbd/drbd_receiver.c return device->state.role == R_PRIMARY ? 1 : -1; role 3168 drivers/block/drbd/drbd_receiver.c if (hg == -1 && device->state.role == R_PRIMARY) { role 3174 drivers/block/drbd/drbd_receiver.c rv2 = drbd_change_state(device, CS_VERBOSE, NS(role, R_SECONDARY)); role 3224 drivers/block/drbd/drbd_receiver.c rv2 = drbd_change_state(device, CS_VERBOSE, NS(role, R_SECONDARY)); role 3358 drivers/block/drbd/drbd_receiver.c if (device->state.role == R_PRIMARY || peer_role == R_PRIMARY) { role 3364 drivers/block/drbd/drbd_receiver.c if (device->state.role == R_PRIMARY && peer_role == R_PRIMARY) { role 3371 drivers/block/drbd/drbd_receiver.c if (device->state.role == R_PRIMARY) role 3551 drivers/block/drbd/drbd_receiver.c int pcount = (device->state.role == R_PRIMARY) role 3606 drivers/block/drbd/drbd_receiver.c device->state.role == R_PRIMARY && device->state.disk >= D_CONSISTENT) { role 4225 drivers/block/drbd/drbd_receiver.c } else if (new_size < cur_size && device->state.role == R_PRIMARY) { role 4303 drivers/block/drbd/drbd_receiver.c device->state.role == R_PRIMARY && role 4331 drivers/block/drbd/drbd_receiver.c device->state.role == R_PRIMARY) { role 4374 drivers/block/drbd/drbd_receiver.c ms.peer = ps.role; role 4375 drivers/block/drbd/drbd_receiver.c ms.role = ps.peer; role 4567 drivers/block/drbd/drbd_receiver.c ns.conn = drbd_sync_handshake(peer_device, peer_state.role, real_peer_disk); role 4592 drivers/block/drbd/drbd_receiver.c ns.peer = peer_state.role; role 105 drivers/block/drbd/drbd_state.c state_change->resource->role[OLD] = role 167 drivers/block/drbd/drbd_state.c resource_state_change->role[NEW] = role 219 drivers/block/drbd/drbd_state.c OLD_TO_NEW(resource_state_change->role); role 305 drivers/block/drbd/drbd_state.c device->state.role != R_SECONDARY) { role 337 drivers/block/drbd/drbd_state.c enum drbd_role role = R_SECONDARY; role 344 drivers/block/drbd/drbd_state.c role = max_role(role, device->state.role); role 348 drivers/block/drbd/drbd_state.c return role; role 471 drivers/block/drbd/drbd_state.c ((os.role != R_PRIMARY && ns.role == R_PRIMARY) || role 720 drivers/block/drbd/drbd_state.c drbd_role_str(ns.role), role 750 drivers/block/drbd/drbd_state.c if (ns.role != os.role && flags & CS_DC_ROLE) role 752 drivers/block/drbd/drbd_state.c drbd_role_str(os.role), role 753 drivers/block/drbd/drbd_state.c drbd_role_str(ns.role)); role 840 drivers/block/drbd/drbd_state.c if (!nc->two_primaries && ns.role == R_PRIMARY) { role 850 drivers/block/drbd/drbd_state.c else if (ns.role == R_SECONDARY && device->open_cnt) role 853 drivers/block/drbd/drbd_state.c else if (ns.role == R_PRIMARY && ns.conn < C_CONNECTED && ns.disk < D_UP_TO_DATE) role 857 drivers/block/drbd/drbd_state.c ns.role == R_PRIMARY && ns.conn < C_CONNECTED && ns.pdsk >= D_UNKNOWN) role 860 drivers/block/drbd/drbd_state.c else if (ns.role == R_PRIMARY && ns.disk <= D_INCONSISTENT && ns.pdsk <= D_INCONSISTENT) role 887 drivers/block/drbd/drbd_state.c else if (ns.role == R_PRIMARY && ns.disk < D_UP_TO_DATE && ns.pdsk < D_UP_TO_DATE) role 945 drivers/block/drbd/drbd_state.c if (os.role != R_PRIMARY && ns.role == R_PRIMARY role 1078 drivers/block/drbd/drbd_state.c if (ns.conn == C_STANDALONE && ns.disk == D_DISKLESS && ns.role == R_SECONDARY) role 1194 drivers/block/drbd/drbd_state.c (ns.role == R_PRIMARY && ns.conn < C_CONNECTED && ns.pdsk > D_OUTDATED) && role 1195 drivers/block/drbd/drbd_state.c !(os.role == R_PRIMARY && os.conn < C_CONNECTED && os.pdsk > D_OUTDATED)) role 1199 drivers/block/drbd/drbd_state.c (ns.role == R_PRIMARY && ns.disk < D_UP_TO_DATE && ns.pdsk < D_UP_TO_DATE) && role 1200 drivers/block/drbd/drbd_state.c !(os.role == R_PRIMARY && os.disk < D_UP_TO_DATE && os.pdsk < D_UP_TO_DATE)) role 1418 drivers/block/drbd/drbd_state.c if (device->state.role == R_PRIMARY || role 1547 drivers/block/drbd/drbd_state.c .res_role = resource_state_change->role[NEW], role 1623 drivers/block/drbd/drbd_state.c HAS_CHANGED(resource_state_change->role) || role 1725 drivers/block/drbd/drbd_state.c if (!(os.role == R_PRIMARY && os.disk < D_UP_TO_DATE && os.pdsk < D_UP_TO_DATE) && role 1726 drivers/block/drbd/drbd_state.c (ns.role == R_PRIMARY && ns.disk < D_UP_TO_DATE && ns.pdsk < D_UP_TO_DATE)) role 1816 drivers/block/drbd/drbd_state.c if ((ns.role == R_PRIMARY || ns.peer == R_PRIMARY) && role 1848 drivers/block/drbd/drbd_state.c if (os.role == R_PRIMARY && ns.role == R_SECONDARY && role 2019 drivers/block/drbd/drbd_state.c ns.role == R_SECONDARY) { role 2110 drivers/block/drbd/drbd_state.c { .role = R_SECONDARY, role 2128 drivers/block/drbd/drbd_state.c if (cs.role != os.role) role 2199 drivers/block/drbd/drbd_state.c { .role = R_MASK, role 2233 drivers/block/drbd/drbd_state.c ns_max.role = max_role(ns.role, ns_max.role); role 2239 drivers/block/drbd/drbd_state.c ns_min.role = min_role(ns.role, ns_min.role); role 2249 drivers/block/drbd/drbd_state.c .role = R_SECONDARY, role 87 drivers/block/drbd/drbd_state.h unsigned role:2 ; /* 3/4 primary/secondary/unknown */ role 107 drivers/block/drbd/drbd_state.h unsigned role:2 ; /* 3/4 primary/secondary/unknown */ role 7 drivers/block/drbd/drbd_state_change.h enum drbd_role role[2]; role 167 drivers/extcon/extcon-axp288.c enum usb_role role; role 173 drivers/extcon/extcon-axp288.c role = usb_role_switch_get_role(info->role_sw); role 174 drivers/extcon/extcon-axp288.c return role != USB_ROLE_HOST; role 181 drivers/extcon/extcon-axp288.c enum usb_role role; role 187 drivers/extcon/extcon-axp288.c role = USB_ROLE_HOST; role 189 drivers/extcon/extcon-axp288.c role = USB_ROLE_DEVICE; role 191 drivers/extcon/extcon-axp288.c role = USB_ROLE_NONE; role 193 drivers/extcon/extcon-axp288.c ret = usb_role_switch_set_role(info->role_sw, role); role 152 drivers/extcon/extcon-usbc-cros-ec.c pd_control.role = USB_PD_CTRL_ROLE_NO_CHANGE; role 166 drivers/extcon/extcon-usbc-cros-ec.c return resp.role; role 188 drivers/extcon/extcon-usbc-cros-ec.c static const char *cros_ec_usb_role_string(unsigned int role) role 190 drivers/extcon/extcon-usbc-cros-ec.c return role == DR_NONE ? "DISCONNECTED" : role 191 drivers/extcon/extcon-usbc-cros-ec.c (role == DR_HOST ? "DFP" : "UFP"); role 223 drivers/extcon/extcon-usbc-cros-ec.c unsigned int role) role 251 drivers/extcon/extcon-usbc-cros-ec.c int role, power_type; role 266 drivers/extcon/extcon-usbc-cros-ec.c role = cros_ec_usb_get_role(info, &polarity); role 267 drivers/extcon/extcon-usbc-cros-ec.c if (role < 0) { role 268 drivers/extcon/extcon-usbc-cros-ec.c if (role != -ENOTCONN) { role 269 drivers/extcon/extcon-usbc-cros-ec.c dev_err(dev, "failed getting role err = %d\n", role); role 270 drivers/extcon/extcon-usbc-cros-ec.c return role; role 276 drivers/extcon/extcon-usbc-cros-ec.c dr = (role & PD_CTRL_RESP_ROLE_DATA) ? DR_HOST : DR_DEVICE; role 277 drivers/extcon/extcon-usbc-cros-ec.c pr = (role & PD_CTRL_RESP_ROLE_POWER); role 288 drivers/extcon/extcon-usbc-cros-ec.c role, power_type, dr, pr, polarity, mux, dp, hpd); role 296 drivers/extcon/extcon-usbc-cros-ec.c cros_ec_usb_power_type_is_wall_wart(power_type, role)) role 308 drivers/i3c/master/i3c-master-cdns.c #define SIR_MAP_DEV_ROLE(role) ((role) << 14) role 2225 drivers/md/dm-raid.c int role; role 2412 drivers/md/dm-raid.c role = le32_to_cpu(sb2->array_position); role 2413 drivers/md/dm-raid.c if (role < 0) role 2416 drivers/md/dm-raid.c if (role != r->raid_disk) { role 2434 drivers/md/dm-raid.c DMINFO("raid device #%d now at position #%d", role, r->raid_disk); role 2441 drivers/md/dm-raid.c if (test_bit(role, (void *) failed_devices)) role 1845 drivers/md/md.c int role; role 1848 drivers/md/md.c role = MD_DISK_ROLE_SPARE; role 1851 drivers/md/md.c role = le16_to_cpu(sb->dev_roles[rdev->desc_nr]); role 1852 drivers/md/md.c switch(role) { role 1869 drivers/md/md.c rdev->saved_raid_disk = role; role 1885 drivers/md/md.c rdev->raid_disk = role; role 2512 drivers/md/md.c int role; role 2526 drivers/md/md.c role = le16_to_cpu(sb->dev_roles[rdev->desc_nr]); role 2528 drivers/md/md.c if (role == 0xffff && rdev->raid_disk >=0 && role 2532 drivers/md/md.c if (test_bit(Faulty, &rdev->flags) && (role < 0xfffd)) role 9360 drivers/md/md.c int role, ret; role 9381 drivers/md/md.c role = le16_to_cpu(sb->dev_roles[rdev2->desc_nr]); role 9384 drivers/md/md.c if (role == 0xfffe) { role 9393 drivers/md/md.c if (role != rdev2->raid_disk) { role 9397 drivers/md/md.c if (rdev2->raid_disk == -1 && role != 0xffff && role 9400 drivers/md/md.c rdev2->saved_raid_disk = role; role 9414 drivers/md/md.c if ((role == 0xfffe) || (role == 0xfffd)) { role 53 drivers/media/pci/saa7164/saa7164-dvb.c .role = TDA18271_MASTER, role 59 drivers/media/pci/saa7164/saa7164-dvb.c .role = TDA18271_SLAVE, role 18 drivers/media/tuners/it913x.c u8 role:2; role 36 drivers/media/tuners/it913x.c dev_dbg(&pdev->dev, "role %u\n", dev->role); role 153 drivers/media/tuners/it913x.c dev_dbg(&pdev->dev, "role %u\n", dev->role); role 165 drivers/media/tuners/it913x.c if (dev->role == IT913X_ROLE_DUAL_MASTER) role 170 drivers/media/tuners/it913x.c dev_dbg(&pdev->dev, "role %u, len %d\n", dev->role, len); role 218 drivers/media/tuners/it913x.c dev->role, c->frequency, c->bandwidth_hz); role 398 drivers/media/tuners/it913x.c dev->role = pdata->role; role 414 drivers/media/tuners/it913x.c dev_dbg(&pdev->dev, "chip_ver %u, role %u\n", dev->chip_ver, dev->role); role 27 drivers/media/tuners/it913x.h unsigned int role:2; role 720 drivers/media/tuners/tda18271-common.c (state->role == TDA18271_MASTER) ? 'M' : 'S', role 53 drivers/media/tuners/tda18271-fe.c (priv->role == TDA18271_SLAVE) ? role 133 drivers/media/tuners/tda18271-fe.c switch (priv->role) { role 156 drivers/media/tuners/tda18271-fe.c switch (priv->role) { role 1192 drivers/media/tuners/tda18271-fe.c priv->role = (cfg) ? cfg->role : TDA18271_MASTER; role 1304 drivers/media/tuners/tda18271-fe.c if (cfg->role) role 1305 drivers/media/tuners/tda18271-fe.c priv->role = cfg->role; role 98 drivers/media/tuners/tda18271-priv.h enum tda18271_role role; role 82 drivers/media/tuners/tda18271.h enum tda18271_role role; role 1558 drivers/media/usb/dvb-usb-v2/af9035.c it913x_pdata.role = IT913X_ROLE_DUAL_MASTER; role 1560 drivers/media/usb/dvb-usb-v2/af9035.c it913x_pdata.role = IT913X_ROLE_DUAL_SLAVE; role 1562 drivers/media/usb/dvb-usb-v2/af9035.c it913x_pdata.role = IT913X_ROLE_SINGLE; role 557 drivers/media/usb/em28xx/em28xx-cards.c .role = EM28XX_BUTTON_SNAPSHOT, role 568 drivers/media/usb/em28xx/em28xx-cards.c .role = EM28XX_BUTTON_SNAPSHOT, role 574 drivers/media/usb/em28xx/em28xx-cards.c .role = EM28XX_BUTTON_ILLUMINATION, role 587 drivers/media/usb/em28xx/em28xx-cards.c .role = EM28XX_LED_ANALOG_CAPTURING, role 593 drivers/media/usb/em28xx/em28xx-cards.c .role = EM28XX_LED_ILLUMINATION, role 603 drivers/media/usb/em28xx/em28xx-cards.c .role = EM28XX_LED_DIGITAL_CAPTURING, role 613 drivers/media/usb/em28xx/em28xx-cards.c .role = EM28XX_LED_DIGITAL_CAPTURING, role 623 drivers/media/usb/em28xx/em28xx-cards.c .role = EM28XX_LED_ANALOG_CAPTURING, role 633 drivers/media/usb/em28xx/em28xx-cards.c .role = EM28XX_LED_DIGITAL_CAPTURING, role 639 drivers/media/usb/em28xx/em28xx-cards.c .role = EM28XX_LED_DIGITAL_CAPTURING_TS2, role 615 drivers/media/usb/em28xx/em28xx-core.c enum em28xx_led_role role) role 620 drivers/media/usb/em28xx/em28xx-core.c while (dev->board.leds[k].role >= 0 && role 621 drivers/media/usb/em28xx/em28xx-core.c dev->board.leds[k].role < EM28XX_NUM_LED_ROLES) { role 622 drivers/media/usb/em28xx/em28xx-core.c if (dev->board.leds[k].role == role) role 925 drivers/media/usb/em28xx/em28xx-dvb.c .role = TDA18271_MASTER, role 524 drivers/media/usb/em28xx/em28xx-input.c while (dev->board.buttons[j].role >= 0 && role 525 drivers/media/usb/em28xx/em28xx-input.c dev->board.buttons[j].role < EM28XX_NUM_BUTTON_ROLES) { role 553 drivers/media/usb/em28xx/em28xx-input.c switch (button->role) { role 627 drivers/media/usb/em28xx/em28xx-input.c while (dev->board.buttons[i].role >= 0 && role 628 drivers/media/usb/em28xx/em28xx-input.c dev->board.buttons[i].role < EM28XX_NUM_BUTTON_ROLES) { role 646 drivers/media/usb/em28xx/em28xx-input.c if (button->role == EM28XX_BUTTON_SNAPSHOT) { role 650 drivers/media/usb/em28xx/em28xx-input.c } else if (button->role == EM28XX_BUTTON_ILLUMINATION) { role 457 drivers/media/usb/em28xx/em28xx.h enum em28xx_led_role role; role 470 drivers/media/usb/em28xx/em28xx.h enum em28xx_button_role role; role 822 drivers/media/usb/em28xx/em28xx.h enum em28xx_led_role role); role 138 drivers/net/dsa/sja1105/sja1105_clocking.c int port, sja1105_mii_role_t role) role 159 drivers/net/dsa/sja1105/sja1105_clocking.c if (role == XMII_MAC) role 251 drivers/net/dsa/sja1105/sja1105_clocking.c sja1105_mii_role_t role) role 257 drivers/net/dsa/sja1105/sja1105_clocking.c (role == XMII_MAC) ? "MAC" : "PHY"); role 261 drivers/net/dsa/sja1105/sja1105_clocking.c rc = sja1105_cgu_idiv_config(priv, port, (role == XMII_PHY), 1); role 269 drivers/net/dsa/sja1105/sja1105_clocking.c rc = sja1105_cgu_mii_tx_clk_config(priv, port, role); role 280 drivers/net/dsa/sja1105/sja1105_clocking.c if (role == XMII_PHY) { role 468 drivers/net/dsa/sja1105/sja1105_clocking.c sja1105_mii_role_t role) role 524 drivers/net/dsa/sja1105/sja1105_clocking.c if (role == XMII_MAC) role 619 drivers/net/dsa/sja1105/sja1105_clocking.c sja1105_mii_role_t role) role 625 drivers/net/dsa/sja1105/sja1105_clocking.c (role == XMII_MAC) ? "MAC" : "PHY"); role 627 drivers/net/dsa/sja1105/sja1105_clocking.c if (role == XMII_MAC) { role 641 drivers/net/dsa/sja1105/sja1105_clocking.c if (role == XMII_MAC) { role 654 drivers/net/dsa/sja1105/sja1105_clocking.c sja1105_mii_role_t role; role 662 drivers/net/dsa/sja1105/sja1105_clocking.c role = mii->phy_mac[port]; role 666 drivers/net/dsa/sja1105/sja1105_clocking.c rc = sja1105_mii_clocking_setup(priv, port, role); role 669 drivers/net/dsa/sja1105/sja1105_clocking.c rc = sja1105_rmii_clocking_setup(priv, port, role); role 672 drivers/net/dsa/sja1105/sja1105_clocking.c rc = sja1105_rgmii_clocking_setup(priv, port, role); role 58 drivers/net/dsa/sja1105/sja1105_main.c sja1105_mii_role_t role; role 183 drivers/net/dsa/sja1105/sja1105_main.c mii->phy_mac[i] = ports[i].role; role 597 drivers/net/dsa/sja1105/sja1105_main.c if (ports[i].role == XMII_MAC) role 657 drivers/net/dsa/sja1105/sja1105_main.c ports[index].role = XMII_PHY; role 660 drivers/net/dsa/sja1105/sja1105_main.c ports[index].role = XMII_MAC; role 666 drivers/net/dsa/sja1105/sja1105_main.c ports[index].role = XMII_MAC; role 668 drivers/net/dsa/sja1105/sja1105_main.c ports[index].role = XMII_PHY; role 72 drivers/net/gtp.c unsigned int role; role 154 drivers/net/gtp.c unsigned int hdrlen, unsigned int role) role 163 drivers/net/gtp.c if (role == GTP_ROLE_SGSN) role 173 drivers/net/gtp.c unsigned int hdrlen, unsigned int role) role 177 drivers/net/gtp.c return gtp_check_ms_ipv4(skb, pctx, hdrlen, role); role 183 drivers/net/gtp.c unsigned int hdrlen, unsigned int role) role 187 drivers/net/gtp.c if (!gtp_check_ms(skb, pctx, hdrlen, role)) { role 242 drivers/net/gtp.c return gtp_rx(pctx, skb, hdrlen, gtp->role); role 284 drivers/net/gtp.c return gtp_rx(pctx, skb, hdrlen, gtp->role); role 497 drivers/net/gtp.c if (gtp->role == GTP_ROLE_SGSN) role 842 drivers/net/gtp.c unsigned int role = GTP_ROLE_GGSN; role 864 drivers/net/gtp.c role = nla_get_u32(data[IFLA_GTP_ROLE]); role 865 drivers/net/gtp.c if (role > GTP_ROLE_SGSN) { role 876 drivers/net/gtp.c gtp->role = role; role 135 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c ifevent->flags, ifevent->role); role 143 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c (ifevent->role == BRCMF_E_IF_ROLE_P2P_CLIENT || role 144 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c ((ifevent->role == BRCMF_E_IF_ROLE_STA) && role 283 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.h u8 role; role 864 drivers/net/wireless/intel/iwlwifi/fw/api/location.h u8 role; role 191 drivers/net/wireless/intersil/hostap/hostap_common.h __le16 role; role 121 drivers/net/wireless/intersil/p54/lmac.h __le16 role; role 129 drivers/net/wireless/intersil/p54/lmac.h __le16 role; role 696 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/fw.c p2p_ps_offload->role = 1; role 699 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/fw.c p2p_ps_offload->role = 0; role 744 drivers/net/wireless/realtek/rtlwifi/rtl8192c/fw_common.c p2p_ps_offload->role = 1; role 747 drivers/net/wireless/realtek/rtlwifi/rtl8192c/fw_common.c p2p_ps_offload->role = 0; role 835 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c p2p_ps_offload->role = 1; role 838 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c p2p_ps_offload->role = 0; role 557 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/fw.c p2p_ps_offload->role = 1; role 560 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/fw.c p2p_ps_offload->role = 0; role 662 drivers/net/wireless/realtek/rtlwifi/rtl8723be/fw.c p2p_ps_offload->role = 1; role 665 drivers/net/wireless/realtek/rtlwifi/rtl8723be/fw.c p2p_ps_offload->role = 0; role 1866 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/fw.c p2p_ps_offload->role = 1; role 1869 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/fw.c p2p_ps_offload->role = 0; role 1279 drivers/net/wireless/realtek/rtlwifi/wifi.h u8 role:1; /* 1: Owner, 0: Client */ role 365 drivers/phy/renesas/phy-rcar-gen3-usb2.c static DEVICE_ATTR_RW(role); role 229 drivers/platform/chrome/cros_ec_debugfs.c params->role = 0; role 238 drivers/platform/chrome/cros_ec_debugfs.c resp->state, resp->enabled, resp->role, role 83 drivers/platform/chrome/cros_usbpd_logger.c const char *fault, *role, *chg_type; role 106 drivers/platform/chrome/cros_usbpd_logger.c role = role_idx < ARRAY_SIZE(role_names) ? role 117 drivers/platform/chrome/cros_usbpd_logger.c len += append_str(buf, len, "%s", role); role 123 drivers/platform/chrome/cros_usbpd_logger.c role, r->data & CHARGE_FLAGS_DUAL_ROLE ? role 211 drivers/power/supply/cros_usbpd-charger.c switch (resp.role) { role 229 drivers/power/supply/cros_usbpd-charger.c dev_err(dev, "Unknown role %d\n", resp.role); role 249 drivers/power/supply/cros_usbpd-charger.c if (resp.role == USB_PD_PORT_POWER_SOURCE && resp.dualrole) role 151 drivers/s390/net/qeth_core.h enum qeth_sbp_roles role; role 698 drivers/s390/net/qeth_core_mpc.h __u8 role; role 18 drivers/s390/net/qeth_l2.h enum qeth_sbp_roles *role, role 20 drivers/s390/net/qeth_l2.h int qeth_bridgeport_setrole(struct qeth_card *card, enum qeth_sbp_roles role); role 443 drivers/s390/net/qeth_l2_main.c int role; role 450 drivers/s390/net/qeth_l2_main.c role = QETH_SBP_ROLE_PRIMARY; role 452 drivers/s390/net/qeth_l2_main.c role = QETH_SBP_ROLE_SECONDARY; role 454 drivers/s390/net/qeth_l2_main.c role = QETH_SBP_ROLE_NONE; role 456 drivers/s390/net/qeth_l2_main.c rc = qeth_bridgeport_setrole(card, role); role 459 drivers/s390/net/qeth_l2_main.c card->options.sbp.role = role; role 1174 drivers/s390/net/qeth_l2_main.c data->card->options.sbp.role = entry->role; role 1179 drivers/s390/net/qeth_l2_main.c (entry->role == QETH_SBP_ROLE_NONE) ? "none" : role 1180 drivers/s390/net/qeth_l2_main.c (entry->role == QETH_SBP_ROLE_PRIMARY) ? "primary" : role 1181 drivers/s390/net/qeth_l2_main.c (entry->role == QETH_SBP_ROLE_SECONDARY) ? "secondary" : role 1298 drivers/s390/net/qeth_l2_main.c enum qeth_sbp_roles *role; role 1463 drivers/s390/net/qeth_l2_main.c card->options.sbp.role = QETH_SBP_ROLE_NONE; role 1489 drivers/s390/net/qeth_l2_main.c if (cbctl->data.qports.role) role 1490 drivers/s390/net/qeth_l2_main.c *cbctl->data.qports.role = qports->entry[0].role; role 1508 drivers/s390/net/qeth_l2_main.c enum qeth_sbp_roles *role, enum qeth_sbp_states *state) role 1514 drivers/s390/net/qeth_l2_main.c .role = role, role 1547 drivers/s390/net/qeth_l2_main.c int qeth_bridgeport_setrole(struct qeth_card *card, enum qeth_sbp_roles role) role 1554 drivers/s390/net/qeth_l2_main.c switch (role) { role 1671 drivers/s390/net/qeth_l2_main.c return (card->options.sbp.role || card->options.sbp.reflect_promisc || role 31 drivers/s390/net/qeth_l2_sys.c &card->options.sbp.role, &state); role 45 drivers/s390/net/qeth_l2_sys.c switch (card->options.sbp.role) { role 57 drivers/s390/net/qeth_l2_sys.c card->options.sbp.role, state); role 82 drivers/s390/net/qeth_l2_sys.c enum qeth_sbp_roles role; role 87 drivers/s390/net/qeth_l2_sys.c role = QETH_SBP_ROLE_PRIMARY; role 89 drivers/s390/net/qeth_l2_sys.c role = QETH_SBP_ROLE_SECONDARY; role 91 drivers/s390/net/qeth_l2_sys.c role = QETH_SBP_ROLE_NONE; role 104 drivers/s390/net/qeth_l2_sys.c rc = qeth_bridgeport_setrole(card, role); role 106 drivers/s390/net/qeth_l2_sys.c card->options.sbp.role = role; role 108 drivers/s390/net/qeth_l2_sys.c card->options.sbp.role = role; role 236 drivers/s390/net/qeth_l2_sys.c else if (card->options.sbp.role != QETH_SBP_ROLE_NONE) role 283 drivers/s390/net/qeth_l2_sys.c card->options.sbp.role != QETH_SBP_ROLE_NONE) { role 285 drivers/s390/net/qeth_l2_sys.c qeth_bridgeport_setrole(card, card->options.sbp.role); role 288 drivers/s390/net/qeth_l2_sys.c &card->options.sbp.role, NULL); role 1292 drivers/scsi/aic7xxx/aic79xx.h role_t role; /* role 1378 drivers/scsi/aic7xxx/aic79xx.h role_t role, uint32_t status, role 1390 drivers/scsi/aic7xxx/aic79xx.h role_t role); role 119 drivers/scsi/aic7xxx/aic79xx_core.c role_t role); role 190 drivers/scsi/aic7xxx/aic79xx_core.c role_t role, uint32_t status, role 234 drivers/scsi/aic7xxx/aic79xx_core.c role_t role, uint32_t status); role 259 drivers/scsi/aic7xxx/aic79xx_core.c u_int tag, role_t role); role 2091 drivers/scsi/aic7xxx/aic79xx_core.c if (devinfo.role == ROLE_INITIATOR) { role 3693 drivers/scsi/aic7xxx/aic79xx_core.c u_int *period, u_int *ppr_options, role_t role) role 3716 drivers/scsi/aic7xxx/aic79xx_core.c if (role == ROLE_TARGET) role 3782 drivers/scsi/aic7xxx/aic79xx_core.c role_t role) role 3798 drivers/scsi/aic7xxx/aic79xx_core.c if (role == ROLE_TARGET) role 3811 drivers/scsi/aic7xxx/aic79xx_core.c u_int *bus_width, role_t role) role 3826 drivers/scsi/aic7xxx/aic79xx_core.c if (role == ROLE_TARGET) role 4301 drivers/scsi/aic7xxx/aic79xx_core.c role_t role; role 4308 drivers/scsi/aic7xxx/aic79xx_core.c role = ROLE_TARGET; role 4310 drivers/scsi/aic7xxx/aic79xx_core.c role = ROLE_INITIATOR; role 4312 drivers/scsi/aic7xxx/aic79xx_core.c if (role == ROLE_TARGET role 4316 drivers/scsi/aic7xxx/aic79xx_core.c } else if (role == ROLE_TARGET) role 4327 drivers/scsi/aic7xxx/aic79xx_core.c role); role 4358 drivers/scsi/aic7xxx/aic79xx_core.c u_int lun, char channel, role_t role) role 4365 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->role = role; role 4375 drivers/scsi/aic7xxx/aic79xx_core.c role_t role; role 4379 drivers/scsi/aic7xxx/aic79xx_core.c role = ROLE_INITIATOR; role 4381 drivers/scsi/aic7xxx/aic79xx_core.c role = ROLE_TARGET; role 4383 drivers/scsi/aic7xxx/aic79xx_core.c SCB_GET_LUN(scb), SCB_GET_CHANNEL(ahd, scb), role); role 4544 drivers/scsi/aic7xxx/aic79xx_core.c if (devinfo->role == ROLE_TARGET) role 4547 drivers/scsi/aic7xxx/aic79xx_core.c &ppr_options, devinfo->role); role 4578 drivers/scsi/aic7xxx/aic79xx_core.c if (devinfo->role == ROLE_TARGET) role 4595 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->role); role 5171 drivers/scsi/aic7xxx/aic79xx_core.c &ppr_options, devinfo->role); role 5173 drivers/scsi/aic7xxx/aic79xx_core.c tinfo->curr.width, devinfo->role); role 5204 drivers/scsi/aic7xxx/aic79xx_core.c && devinfo->role == ROLE_INITIATOR) { role 5245 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->role); role 5275 drivers/scsi/aic7xxx/aic79xx_core.c && devinfo->role == ROLE_INITIATOR) { role 5365 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->role); role 5367 drivers/scsi/aic7xxx/aic79xx_core.c &ppr_options, devinfo->role); role 5369 drivers/scsi/aic7xxx/aic79xx_core.c bus_width, devinfo->role); role 5387 drivers/scsi/aic7xxx/aic79xx_core.c if (devinfo->role != ROLE_TARGET) role 5449 drivers/scsi/aic7xxx/aic79xx_core.c if (devinfo->role != ROLE_TARGET) { role 5927 drivers/scsi/aic7xxx/aic79xx_core.c lun, SCB_LIST_NULL, devinfo->role, role 7992 drivers/scsi/aic7xxx/aic79xx_core.c char channel, int lun, u_int tag, role_t role) role 8009 drivers/scsi/aic7xxx/aic79xx_core.c if (role == ROLE_INITIATOR) { role 8013 drivers/scsi/aic7xxx/aic79xx_core.c } else if (role == ROLE_TARGET) { role 8146 drivers/scsi/aic7xxx/aic79xx_core.c int lun, u_int tag, role_t role, uint32_t status, role 8208 drivers/scsi/aic7xxx/aic79xx_core.c if (ahd_match_scb(ahd, scb, target, channel, lun, tag, role)) { role 8294 drivers/scsi/aic7xxx/aic79xx_core.c lun, tag, role, status, role 8303 drivers/scsi/aic7xxx/aic79xx_core.c lun, tag, role)) { role 8376 drivers/scsi/aic7xxx/aic79xx_core.c int lun, u_int tag, role_t role, uint32_t status, role 8409 drivers/scsi/aic7xxx/aic79xx_core.c lun, SCB_LIST_NULL, role) == 0) { role 8533 drivers/scsi/aic7xxx/aic79xx_core.c int lun, u_int tag, role_t role, uint32_t status) role 8549 drivers/scsi/aic7xxx/aic79xx_core.c role, CAM_REQUEUE_REQ, SEARCH_COMPLETE); role 8573 drivers/scsi/aic7xxx/aic79xx_core.c if (role != ROLE_TARGET) { role 8584 drivers/scsi/aic7xxx/aic79xx_core.c lun, tag, role) == 0) role 8607 drivers/scsi/aic7xxx/aic79xx_core.c if (ahd_match_scb(ahd, scbp, target, channel, lun, tag, role)) { role 8622 drivers/scsi/aic7xxx/aic79xx_core.c ahd_platform_abort_scbs(ahd, target, channel, lun, tag, role, status); role 1487 drivers/scsi/aic7xxx/aic79xx_osm.c int lun, u_int tag, role_t role, uint32_t status) role 667 drivers/scsi/aic7xxx/aic79xx_osm.h role_t role, uint32_t status); role 1100 drivers/scsi/aic7xxx/aic7xxx.h role_t role; /* role 1153 drivers/scsi/aic7xxx/aic7xxx.h u_int tag, role_t role); role 1180 drivers/scsi/aic7xxx/aic7xxx.h role_t role, uint32_t status, role 1198 drivers/scsi/aic7xxx/aic7xxx.h role_t role); role 148 drivers/scsi/aic7xxx/aic7xxx_core.c role_t role); role 263 drivers/scsi/aic7xxx/aic7xxx_core.c role_t role, uint32_t status); role 1267 drivers/scsi/aic7xxx/aic7xxx_core.c if (devinfo.role == ROLE_INITIATOR) { role 2211 drivers/scsi/aic7xxx/aic7xxx_core.c u_int *period, u_int *ppr_options, role_t role) role 2240 drivers/scsi/aic7xxx/aic7xxx_core.c if (role == ROLE_TARGET) role 2384 drivers/scsi/aic7xxx/aic7xxx_core.c u_int *offset, int wide, role_t role) role 2401 drivers/scsi/aic7xxx/aic7xxx_core.c if (role == ROLE_TARGET) role 2414 drivers/scsi/aic7xxx/aic7xxx_core.c u_int *bus_width, role_t role) role 2429 drivers/scsi/aic7xxx/aic7xxx_core.c if (role == ROLE_TARGET) role 2766 drivers/scsi/aic7xxx/aic7xxx_core.c role_t role; role 2770 drivers/scsi/aic7xxx/aic7xxx_core.c role = ROLE_TARGET; role 2772 drivers/scsi/aic7xxx/aic7xxx_core.c role = ROLE_INITIATOR; role 2774 drivers/scsi/aic7xxx/aic7xxx_core.c if (role == ROLE_TARGET role 2791 drivers/scsi/aic7xxx/aic7xxx_core.c role); role 2814 drivers/scsi/aic7xxx/aic7xxx_core.c u_int lun, char channel, role_t role) role 2821 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->role = role; role 2838 drivers/scsi/aic7xxx/aic7xxx_core.c role_t role; role 2842 drivers/scsi/aic7xxx/aic7xxx_core.c role = ROLE_INITIATOR; role 2844 drivers/scsi/aic7xxx/aic7xxx_core.c role = ROLE_TARGET; role 2846 drivers/scsi/aic7xxx/aic7xxx_core.c SCB_GET_LUN(scb), SCB_GET_CHANNEL(ahc, scb), role); role 2984 drivers/scsi/aic7xxx/aic7xxx_core.c if (devinfo->role == ROLE_TARGET) role 2987 drivers/scsi/aic7xxx/aic7xxx_core.c &ppr_options, devinfo->role); role 3019 drivers/scsi/aic7xxx/aic7xxx_core.c if (devinfo->role == ROLE_TARGET) role 3036 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->role); role 3656 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->role); role 3659 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->role); role 3691 drivers/scsi/aic7xxx/aic7xxx_core.c && devinfo->role == ROLE_INITIATOR) { role 3732 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->role); role 3762 drivers/scsi/aic7xxx/aic7xxx_core.c && devinfo->role == ROLE_INITIATOR) { role 3855 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->role); role 3858 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->role); role 3861 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->role); role 3880 drivers/scsi/aic7xxx/aic7xxx_core.c if (devinfo->role != ROLE_TARGET) role 3942 drivers/scsi/aic7xxx/aic7xxx_core.c if (devinfo->role != ROLE_TARGET) { role 4325 drivers/scsi/aic7xxx/aic7xxx_core.c CAM_LUN_WILDCARD, SCB_LIST_NULL, devinfo->role, role 5723 drivers/scsi/aic7xxx/aic7xxx_core.c char channel, int lun, u_int tag, role_t role) role 5740 drivers/scsi/aic7xxx/aic7xxx_core.c if (role == ROLE_INITIATOR) { role 5744 drivers/scsi/aic7xxx/aic7xxx_core.c } else if (role == ROLE_TARGET) { role 5830 drivers/scsi/aic7xxx/aic7xxx_core.c int lun, u_int tag, role_t role, uint32_t status, role 5878 drivers/scsi/aic7xxx/aic7xxx_core.c if (ahc_match_scb(ahc, scb, target, channel, lun, tag, role)) { role 5990 drivers/scsi/aic7xxx/aic7xxx_core.c lun, SCB_LIST_NULL, role)) { role 6300 drivers/scsi/aic7xxx/aic7xxx_core.c int lun, u_int tag, role_t role, uint32_t status) role 6322 drivers/scsi/aic7xxx/aic7xxx_core.c role, CAM_REQUEUE_REQ, SEARCH_COMPLETE); role 6353 drivers/scsi/aic7xxx/aic7xxx_core.c if (role != ROLE_TARGET) { role 6364 drivers/scsi/aic7xxx/aic7xxx_core.c lun, tag, role) == 0) role 6396 drivers/scsi/aic7xxx/aic7xxx_core.c && ahc_match_scb(ahc, scbp, target, channel, lun, tag, role))) role 6410 drivers/scsi/aic7xxx/aic7xxx_core.c if (ahc_match_scb(ahc, scbp, target, channel, lun, tag, role)) { role 6425 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_platform_abort_scbs(ahc, target, channel, lun, tag, role, status); role 1351 drivers/scsi/aic7xxx/aic7xxx_osm.c int lun, u_int tag, role_t role, uint32_t status) role 683 drivers/scsi/aic7xxx/aic7xxx_osm.h role_t role, uint32_t status); role 60 drivers/scsi/aic94xx/aic94xx_hwi.c if (phy->sas_phy.role & PHY_ROLE_INITIATOR) role 62 drivers/scsi/aic94xx/aic94xx_hwi.c if (phy->sas_phy.role & PHY_ROLE_TARGET) role 79 drivers/scsi/aic94xx/aic94xx_hwi.c sas_phy->role = PHY_ROLE_INITIATOR; role 782 drivers/scsi/aic94xx/aic94xx_scb.c if (phy->sas_phy.role == PHY_ROLE_INITIATOR) role 784 drivers/scsi/aic94xx/aic94xx_scb.c else if (phy->sas_phy.role == PHY_ROLE_TARGET) role 389 drivers/scsi/bfa/bfa_fcbuild.c __be16 ox_id, enum bfa_lport_role role) role 165 drivers/scsi/bfa/bfa_fcbuild.h u16 ox_id, enum bfa_lport_role role); role 217 drivers/scsi/bfa/bfa_fcbuild.h enum bfa_lport_role role); role 919 drivers/scsi/bfa/bfad.c bfad_cfg_pport(struct bfad_s *bfad, enum bfa_lport_role role) role 925 drivers/scsi/bfa/bfad.c (role & BFA_LPORT_ROLE_FCP_IM)) { role 294 drivers/scsi/bfa/bfad_drv.h bfa_status_t bfad_cfg_pport(struct bfad_s *bfad, enum bfa_lport_role role); role 594 drivers/scsi/bfa/bfi_ms.h u8 role; role 72 drivers/scsi/csiostor/csio_attr.c if (rn->role & CSIO_RNFR_INITIATOR || rn->role & CSIO_RNFR_TARGET) { role 98 drivers/scsi/csiostor/csio_attr.c if (rn->role & CSIO_RNFR_INITIATOR) role 100 drivers/scsi/csiostor/csio_attr.c if (rn->role & CSIO_RNFR_TARGET) role 126 drivers/scsi/csiostor/csio_attr.c rn->role &= ~(CSIO_RNFR_INITIATOR | CSIO_RNFR_TARGET); role 457 drivers/scsi/csiostor/csio_rnode.c rn->role = CSIO_RNFR_FABRIC; role 470 drivers/scsi/csiostor/csio_rnode.c rn->role = CSIO_RNFR_NS; role 480 drivers/scsi/csiostor/csio_rnode.c rn->role = CSIO_RNFR_NPORT; role 494 drivers/scsi/csiostor/csio_rnode.c rn->role |= CSIO_RNFR_TARGET; role 497 drivers/scsi/csiostor/csio_rnode.c rn->role |= CSIO_RNFR_INITIATOR; role 504 drivers/scsi/csiostor/csio_rnode.c rn->role = 0; role 557 drivers/scsi/csiostor/csio_rnode.c if (rn->role & CSIO_RNFR_TARGET) role 578 drivers/scsi/csiostor/csio_rnode.c if (rn->role & CSIO_RNFR_TARGET) { role 105 drivers/scsi/csiostor/csio_rnode.h uint32_t role; /* Fabric/Target/ role 930 drivers/scsi/hisi_sas/hisi_sas_main.c sas_phy->role = PHY_ROLE_INITIATOR; role 1415 drivers/scsi/isci/phy.c iphy->sas_phy.role = PHY_ROLE_INITIATOR; role 87 drivers/scsi/mvsas/mv_init.c sas_phy->role = PHY_ROLE_INITIATOR; role 130 drivers/scsi/pm8001/pm8001_init.c sas_phy->role = PHY_ROLE_INITIATOR; role 1410 drivers/staging/media/soc_camera/soc_camera.c if (sasd->role == SOCAM_SUBDEV_DATA_SOURCE) role 112 drivers/staging/rtl8723bs/include/rtw_cmd.h u8 role:1; /* 1: Owner, 0: Client */ role 234 drivers/staging/rtl8723bs/include/rtw_mlme.h enum P2P_ROLE role; role 381 drivers/staging/wlan-ng/hfa384x.h u16 role; role 318 drivers/staging/wlan-ng/prism2fw.c priid.role = *data++; role 1168 drivers/staging/wlan-ng/prism2fw.c s3info[i].info.compat.role, role 1175 drivers/staging/wlan-ng/prism2fw.c if ((s3info[i].info.compat.role == 1) && role 1184 drivers/staging/wlan-ng/prism2fw.c if ((s3info[i].info.compat.role == 1) && role 1194 drivers/staging/wlan-ng/prism2fw.c if ((s3info[i].info.compat.role == 1) && role 681 drivers/staging/wlan-ng/prism2sta.c le16_to_cpus(&hw->cap_sup_mfi.role); role 689 drivers/staging/wlan-ng/prism2sta.c hw->cap_sup_mfi.role, hw->cap_sup_mfi.id, role 705 drivers/staging/wlan-ng/prism2sta.c le16_to_cpus(&hw->cap_sup_cfi.role); role 713 drivers/staging/wlan-ng/prism2sta.c hw->cap_sup_cfi.role, hw->cap_sup_cfi.id, role 729 drivers/staging/wlan-ng/prism2sta.c le16_to_cpus(&hw->cap_sup_pri.role); role 737 drivers/staging/wlan-ng/prism2sta.c hw->cap_sup_pri.role, hw->cap_sup_pri.id, role 753 drivers/staging/wlan-ng/prism2sta.c le16_to_cpus(&hw->cap_sup_sta.role); role 762 drivers/staging/wlan-ng/prism2sta.c hw->cap_sup_sta.role, hw->cap_sup_sta.id, role 768 drivers/staging/wlan-ng/prism2sta.c hw->cap_sup_sta.role, hw->cap_sup_sta.id, role 785 drivers/staging/wlan-ng/prism2sta.c le16_to_cpus(&hw->cap_act_pri_cfi.role); role 793 drivers/staging/wlan-ng/prism2sta.c hw->cap_act_pri_cfi.role, hw->cap_act_pri_cfi.id, role 809 drivers/staging/wlan-ng/prism2sta.c le16_to_cpus(&hw->cap_act_sta_cfi.role); role 817 drivers/staging/wlan-ng/prism2sta.c hw->cap_act_sta_cfi.role, hw->cap_act_sta_cfi.id, role 833 drivers/staging/wlan-ng/prism2sta.c le16_to_cpus(&hw->cap_act_sta_mfi.role); role 841 drivers/staging/wlan-ng/prism2sta.c hw->cap_act_sta_mfi.role, hw->cap_act_sta_mfi.id, role 75 drivers/target/target_core_stat.c CONFIGFS_ATTR_RO(target_stat_, role); role 500 drivers/target/target_core_stat.c CONFIGFS_ATTR_RO(target_stat_port_, role); role 33 drivers/usb/cdns3/core.c WARN_ON(!cdns->roles[cdns->role]); role 34 drivers/usb/cdns3/core.c return cdns->roles[cdns->role]; role 37 drivers/usb/cdns3/core.c static int cdns3_role_start(struct cdns3 *cdns, enum usb_role role) role 41 drivers/usb/cdns3/core.c if (WARN_ON(role > USB_ROLE_DEVICE)) role 45 drivers/usb/cdns3/core.c cdns->role = role; role 48 drivers/usb/cdns3/core.c if (!cdns->roles[role]) role 51 drivers/usb/cdns3/core.c if (cdns->roles[role]->state == CDNS3_ROLE_STATE_ACTIVE) role 55 drivers/usb/cdns3/core.c ret = cdns->roles[role]->start(cdns); role 57 drivers/usb/cdns3/core.c cdns->roles[role]->state = CDNS3_ROLE_STATE_ACTIVE; role 65 drivers/usb/cdns3/core.c enum usb_role role = cdns->role; role 67 drivers/usb/cdns3/core.c if (WARN_ON(role > USB_ROLE_DEVICE)) role 70 drivers/usb/cdns3/core.c if (cdns->roles[role]->state == CDNS3_ROLE_STATE_INACTIVE) role 74 drivers/usb/cdns3/core.c cdns->roles[role]->stop(cdns); role 75 drivers/usb/cdns3/core.c cdns->roles[role]->state = CDNS3_ROLE_STATE_INACTIVE; role 101 drivers/usb/cdns3/core.c cdns->role = USB_ROLE_NONE; role 203 drivers/usb/cdns3/core.c enum usb_role role; role 218 drivers/usb/cdns3/core.c role = cdns->role; role 220 drivers/usb/cdns3/core.c switch (role) { role 227 drivers/usb/cdns3/core.c role = USB_ROLE_HOST; role 229 drivers/usb/cdns3/core.c role = USB_ROLE_DEVICE; role 233 drivers/usb/cdns3/core.c role = USB_ROLE_NONE; role 237 drivers/usb/cdns3/core.c role = USB_ROLE_NONE; role 241 drivers/usb/cdns3/core.c dev_dbg(cdns->dev, "role %d -> %d\n", cdns->role, role); role 243 drivers/usb/cdns3/core.c return role; role 247 drivers/usb/cdns3/core.c role = USB_ROLE_HOST; role 249 drivers/usb/cdns3/core.c role = USB_ROLE_DEVICE; role 251 drivers/usb/cdns3/core.c return role; role 300 drivers/usb/cdns3/core.c current_role = cdns->role; role 337 drivers/usb/cdns3/core.c return cdns->role; role 349 drivers/usb/cdns3/core.c static int cdns3_role_set(struct device *dev, enum usb_role role) role 375 drivers/usb/cdns3/core.c if (role == USB_ROLE_NONE) role 389 drivers/usb/cdns3/core.c if (cdns->role == role) role 393 drivers/usb/cdns3/core.c switch (role) { role 404 drivers/usb/cdns3/core.c switch (role) { role 415 drivers/usb/cdns3/core.c ret = cdns3_role_start(cdns, role); role 417 drivers/usb/cdns3/core.c dev_err(cdns->dev, "set role %d has failed\n", role); role 607 drivers/usb/cdns3/core.c if (cdns->role == USB_ROLE_HOST) role 613 drivers/usb/cdns3/core.c if (cdns->roles[cdns->role]->suspend) { role 615 drivers/usb/cdns3/core.c cdns->roles[cdns->role]->suspend(cdns, false); role 627 drivers/usb/cdns3/core.c if (cdns->role == USB_ROLE_HOST) role 630 drivers/usb/cdns3/core.c if (cdns->roles[cdns->role]->resume) { role 632 drivers/usb/cdns3/core.c cdns->roles[cdns->role]->resume(cdns, false); role 84 drivers/usb/cdns3/core.h enum usb_role role; role 213 drivers/usb/chipidea/ci.h enum ci_role role; role 263 drivers/usb/chipidea/ci.h BUG_ON(ci->role >= CI_ROLE_END || !ci->roles[ci->role]); role 264 drivers/usb/chipidea/ci.h return ci->roles[ci->role]; role 267 drivers/usb/chipidea/ci.h static inline int ci_role_start(struct ci_hdrc *ci, enum ci_role role) role 271 drivers/usb/chipidea/ci.h if (role >= CI_ROLE_END) role 274 drivers/usb/chipidea/ci.h if (!ci->roles[role]) role 277 drivers/usb/chipidea/ci.h ret = ci->roles[role]->start(ci); role 279 drivers/usb/chipidea/ci.h ci->role = role; role 285 drivers/usb/chipidea/ci.h enum ci_role role = ci->role; role 287 drivers/usb/chipidea/ci.h if (role == CI_ROLE_END) role 290 drivers/usb/chipidea/ci.h ci->role = CI_ROLE_END; role 292 drivers/usb/chipidea/ci.h ci->roles[role]->stop(ci); role 297 drivers/usb/chipidea/ci.h if (ci->role == CI_ROLE_HOST) role 299 drivers/usb/chipidea/ci.h else if (ci->role == CI_ROLE_GADGET && ci->vbus_active) role 584 drivers/usb/chipidea/core.c if (ci->role != CI_ROLE_END) role 606 drivers/usb/chipidea/core.c enum usb_role role; role 610 drivers/usb/chipidea/core.c role = ci_role_to_usb_role(ci); role 613 drivers/usb/chipidea/core.c return role; role 616 drivers/usb/chipidea/core.c static int ci_usb_role_switch_set(struct device *dev, enum usb_role role) role 623 drivers/usb/chipidea/core.c if (current_role == role) role 639 drivers/usb/chipidea/core.c if (ci->wq && role != USB_ROLE_NONE) role 647 drivers/usb/chipidea/core.c if (role == USB_ROLE_DEVICE) role 649 drivers/usb/chipidea/core.c else if (role == USB_ROLE_HOST) role 931 drivers/usb/chipidea/core.c if (ci->role != CI_ROLE_END) role 941 drivers/usb/chipidea/core.c enum ci_role role; role 949 drivers/usb/chipidea/core.c for (role = CI_ROLE_HOST; role < CI_ROLE_END; role++) role 950 drivers/usb/chipidea/core.c if (!strncmp(buf, ci->roles[role]->name, role 951 drivers/usb/chipidea/core.c strlen(ci->roles[role]->name))) role 954 drivers/usb/chipidea/core.c if (role == CI_ROLE_END || role == ci->role) role 960 drivers/usb/chipidea/core.c ret = ci_role_start(ci, role); role 961 drivers/usb/chipidea/core.c if (!ret && ci->role == CI_ROLE_GADGET) role 968 drivers/usb/chipidea/core.c static DEVICE_ATTR_RW(role); role 1129 drivers/usb/chipidea/core.c ci->role = ci_otg_role(ci); role 1138 drivers/usb/chipidea/core.c ci->role = CI_ROLE_GADGET; role 1141 drivers/usb/chipidea/core.c ci->role = ci->roles[CI_ROLE_HOST] role 1148 drivers/usb/chipidea/core.c if (ci->role == CI_ROLE_GADGET) role 1151 drivers/usb/chipidea/core.c ret = ci_role_start(ci, ci->role); role 127 drivers/usb/chipidea/debug.c if (ci->role != CI_ROLE_GADGET) { role 161 drivers/usb/chipidea/debug.c if (ci->role != CI_ROLE_GADGET) { role 254 drivers/usb/chipidea/debug.c if (ci->role != CI_ROLE_END) role 265 drivers/usb/chipidea/debug.c enum ci_role role; role 272 drivers/usb/chipidea/debug.c for (role = CI_ROLE_HOST; role < CI_ROLE_END; role++) role 273 drivers/usb/chipidea/debug.c if (ci->roles[role] && role 274 drivers/usb/chipidea/debug.c !strncmp(buf, ci->roles[role]->name, role 275 drivers/usb/chipidea/debug.c strlen(ci->roles[role]->name))) role 278 drivers/usb/chipidea/debug.c if (role == CI_ROLE_END || role == ci->role) role 284 drivers/usb/chipidea/debug.c ret = ci_role_start(ci, role); role 203 drivers/usb/chipidea/host.c ci->role = CI_ROLE_END; role 221 drivers/usb/chipidea/host.c if (ci->role == CI_ROLE_HOST && ci->hcd) role 122 drivers/usb/chipidea/otg.c enum ci_role role = hw_read_otgsc(ci, OTGSC_ID) role 126 drivers/usb/chipidea/otg.c return role; role 167 drivers/usb/chipidea/otg.c enum ci_role role = ci_otg_role(ci); role 169 drivers/usb/chipidea/otg.c if (role != ci->role) { role 171 drivers/usb/chipidea/otg.c ci_role(ci)->name, ci->roles[role]->name); role 175 drivers/usb/chipidea/otg.c if (role == CI_ROLE_GADGET && role 186 drivers/usb/chipidea/otg.c ci_role_start(ci, role); role 188 drivers/usb/chipidea/otg.c if (role == CI_ROLE_GADGET) role 1625 drivers/usb/chipidea/udc.c if (ci_otg_is_fsm_mode(ci) || ci->role == CI_ROLE_HOST) role 63 drivers/usb/common/usb-conn-gpio.c enum usb_role role; role 76 drivers/usb/common/usb-conn-gpio.c role = USB_ROLE_HOST; role 78 drivers/usb/common/usb-conn-gpio.c role = USB_ROLE_DEVICE; role 80 drivers/usb/common/usb-conn-gpio.c role = USB_ROLE_NONE; role 83 drivers/usb/common/usb-conn-gpio.c info->last_role, role, id, vbus); role 85 drivers/usb/common/usb-conn-gpio.c if (info->last_role == role) { role 86 drivers/usb/common/usb-conn-gpio.c dev_warn(info->dev, "repeated role: %d\n", role); role 93 drivers/usb/common/usb-conn-gpio.c ret = usb_role_switch_set_role(info->role_sw, role); role 97 drivers/usb/common/usb-conn-gpio.c if (role == USB_ROLE_HOST) { role 103 drivers/usb/common/usb-conn-gpio.c info->last_role = role; role 324 drivers/usb/dwc3/dwc3-meson-g12a.c static int dwc3_meson_g12a_role_set(struct device *dev, enum usb_role role) role 329 drivers/usb/dwc3/dwc3-meson-g12a.c if (role == USB_ROLE_NONE) role 332 drivers/usb/dwc3/dwc3-meson-g12a.c mode = (role == USB_ROLE_HOST) ? PHY_MODE_USB_HOST role 344 drivers/usb/gadget/udc/renesas_usb3.c enum usb_role role; role 672 drivers/usb/gadget/udc/renesas_usb3.c usb_role_switch_set_role(usb3->role_sw, usb3->role); role 686 drivers/usb/gadget/udc/renesas_usb3.c usb3->role = host ? USB_ROLE_HOST : USB_ROLE_DEVICE; role 2356 drivers/usb/gadget/udc/renesas_usb3.c enum usb_role role) role 2362 drivers/usb/gadget/udc/renesas_usb3.c switch (role) { role 2408 drivers/usb/gadget/udc/renesas_usb3.c enum usb_role role) role 2414 drivers/usb/gadget/udc/renesas_usb3.c if (cur_role == USB_ROLE_HOST && role == USB_ROLE_DEVICE) { role 2417 drivers/usb/gadget/udc/renesas_usb3.c } else if (cur_role == USB_ROLE_DEVICE && role == USB_ROLE_HOST) { role 2427 drivers/usb/gadget/udc/renesas_usb3.c enum usb_role role) role 2434 drivers/usb/gadget/udc/renesas_usb3.c handle_ext_role_switch_states(dev, role); role 2436 drivers/usb/gadget/udc/renesas_usb3.c handle_role_switch_states(dev, role); role 2480 drivers/usb/gadget/udc/renesas_usb3.c static DEVICE_ATTR_RW(role); role 323 drivers/usb/mtu3/mtu3_dr.c static int ssusb_role_sw_set(struct device *dev, enum usb_role role) role 328 drivers/usb/mtu3/mtu3_dr.c if (role == USB_ROLE_HOST) role 340 drivers/usb/mtu3/mtu3_dr.c enum usb_role role; role 342 drivers/usb/mtu3/mtu3_dr.c role = ssusb->is_host ? USB_ROLE_HOST : USB_ROLE_DEVICE; role 344 drivers/usb/mtu3/mtu3_dr.c return role; role 22 drivers/usb/roles/class.c enum usb_role role; role 42 drivers/usb/roles/class.c int usb_role_switch_set_role(struct usb_role_switch *sw, enum usb_role role) role 51 drivers/usb/roles/class.c ret = sw->set(sw->dev.parent, role); role 53 drivers/usb/roles/class.c sw->role = role; role 70 drivers/usb/roles/class.c enum usb_role role; role 78 drivers/usb/roles/class.c role = sw->get(sw->dev.parent); role 80 drivers/usb/roles/class.c role = sw->role; role 84 drivers/usb/roles/class.c return role; role 200 drivers/usb/roles/class.c enum usb_role role = usb_role_switch_get_role(sw); role 202 drivers/usb/roles/class.c return sprintf(buf, "%s\n", usb_roles[role]); role 227 drivers/usb/roles/class.c static DEVICE_ATTR_RW(role); role 54 drivers/usb/roles/intel-xhci-usb-role-switch.c static int intel_xhci_usb_set_role(struct device *dev, enum usb_role role) role 82 drivers/usb/roles/intel-xhci-usb-role-switch.c switch (role) { role 114 drivers/usb/roles/intel-xhci-usb-role-switch.c if (!!(val & HOST_MODE) == (role == USB_ROLE_HOST)) { role 132 drivers/usb/roles/intel-xhci-usb-role-switch.c enum usb_role role; role 140 drivers/usb/roles/intel-xhci-usb-role-switch.c role = USB_ROLE_HOST; role 142 drivers/usb/roles/intel-xhci-usb-role-switch.c role = USB_ROLE_DEVICE; role 144 drivers/usb/roles/intel-xhci-usb-role-switch.c role = USB_ROLE_NONE; role 146 drivers/usb/roles/intel-xhci-usb-role-switch.c return role; role 950 drivers/usb/typec/class.c int role; role 963 drivers/usb/typec/class.c role = sysfs_match_string(typec_roles, buf); role 964 drivers/usb/typec/class.c if (role < 0) { role 966 drivers/usb/typec/class.c role = TYPEC_NO_PREFERRED_ROLE; role 971 drivers/usb/typec/class.c ret = port->cap->try_role(port->cap, role); role 975 drivers/usb/typec/class.c port->prefer_role = role; role 1301 drivers/usb/typec/class.c void typec_set_data_role(struct typec_port *port, enum typec_data_role role) role 1303 drivers/usb/typec/class.c if (port->data_role == role) role 1306 drivers/usb/typec/class.c port->data_role = role; role 1319 drivers/usb/typec/class.c void typec_set_pwr_role(struct typec_port *port, enum typec_role role) role 1321 drivers/usb/typec/class.c if (port->pwr_role == role) role 1324 drivers/usb/typec/class.c port->pwr_role = role; role 1338 drivers/usb/typec/class.c void typec_set_vconn_role(struct typec_port *port, enum typec_role role) role 1340 drivers/usb/typec/class.c if (port->vconn_role == role) role 1343 drivers/usb/typec/class.c port->vconn_role = role; role 231 drivers/usb/typec/tcpm/tcpci.c enum typec_role role, enum typec_data_role data) role 238 drivers/usb/typec/tcpm/tcpci.c if (role == TYPEC_SOURCE) role 789 drivers/usb/typec/tcpm/tcpm.c enum typec_role role, enum typec_data_role data) role 809 drivers/usb/typec/tcpm/tcpm.c ret = port->tcpc->set_roles(port->tcpc, attached, role, data); role 813 drivers/usb/typec/tcpm/tcpm.c port->pwr_role = role; role 816 drivers/usb/typec/tcpm/tcpm.c typec_set_pwr_role(port->typec_port, role); role 821 drivers/usb/typec/tcpm/tcpm.c static int tcpm_set_pwr_role(struct tcpm_port *port, enum typec_role role) role 825 drivers/usb/typec/tcpm/tcpm.c ret = port->tcpc->set_roles(port->tcpc, true, role, role 830 drivers/usb/typec/tcpm/tcpm.c port->pwr_role = role; role 831 drivers/usb/typec/tcpm/tcpm.c typec_set_pwr_role(port->typec_port, role); role 4068 drivers/usb/typec/tcpm/tcpm.c enum typec_role role) role 4085 drivers/usb/typec/tcpm/tcpm.c if (role == port->pwr_role) { role 4112 drivers/usb/typec/tcpm/tcpm.c enum typec_role role) role 4125 drivers/usb/typec/tcpm/tcpm.c if (role == port->vconn_role) { role 4151 drivers/usb/typec/tcpm/tcpm.c static int tcpm_try_role(const struct typec_capability *cap, int role) role 4159 drivers/usb/typec/tcpm/tcpm.c ret = tcpc->try_role(tcpc, role); role 4161 drivers/usb/typec/tcpm/tcpm.c port->try_role = role; role 331 drivers/usb/typec/tcpm/wcove.c enum typec_role role, enum typec_data_role data) role 342 drivers/usb/typec/tcpm/wcove.c val = role; role 311 drivers/usb/typec/tps6598x.c tps6598x_dr_set(const struct typec_capability *cap, enum typec_data_role role) role 314 drivers/usb/typec/tps6598x.c const char *cmd = (role == TYPEC_DEVICE) ? "SWUF" : "SWDF"; role 328 drivers/usb/typec/tps6598x.c if (role != TPS_STATUS_DATAROLE(status)) { role 333 drivers/usb/typec/tps6598x.c typec_set_data_role(tps->port, role); role 342 drivers/usb/typec/tps6598x.c tps6598x_pr_set(const struct typec_capability *cap, enum typec_role role) role 345 drivers/usb/typec/tps6598x.c const char *cmd = (role == TYPEC_SINK) ? "SWSk" : "SWSr"; role 359 drivers/usb/typec/tps6598x.c if (role != TPS_STATUS_PORTROLE(status)) { role 364 drivers/usb/typec/tps6598x.c typec_set_pwr_role(tps->port, role); role 717 drivers/usb/typec/ucsi/ucsi.c ucsi_dr_swap(const struct typec_capability *cap, enum typec_data_role role) role 731 drivers/usb/typec/ucsi/ucsi.c role == TYPEC_DEVICE) || role 733 drivers/usb/typec/ucsi/ucsi.c role == TYPEC_HOST)) role 736 drivers/usb/typec/ucsi/ucsi.c UCSI_CMD_SET_UOR(ctrl, con, role); role 752 drivers/usb/typec/ucsi/ucsi.c ucsi_pr_swap(const struct typec_capability *cap, enum typec_role role) role 765 drivers/usb/typec/ucsi/ucsi.c if (con->status.pwr_dir == role) role 768 drivers/usb/typec/ucsi/ucsi.c UCSI_CMD_SET_PDR(ctrl, con, role); role 57 drivers/usb/typec/ucsi/ucsi.h u16 role:3; role 166 drivers/usb/typec/ucsi/ucsi.h (_ctrl_).uor.role = UCSI_UOR_ROLE_DRP; \ role 173 drivers/usb/typec/ucsi/ucsi.h (_ctrl_).uor.role |= (_role_) == TYPEC_HOST ? UCSI_UOR_ROLE_DFP : \ role 181 drivers/usb/typec/ucsi/ucsi.h (_ctrl_).uor.role |= (_role_) == TYPEC_SOURCE ? UCSI_UOR_ROLE_DFP : \ role 256 include/linux/drbd.h unsigned role:2 ; /* 3/4 primary/secondary/unknown */ role 280 include/linux/drbd.h unsigned role:2 ; /* 3/4 primary/secondary/unknown */ role 31 include/linux/netfilter/nf_conntrack_dccp.h u_int8_t role[IP_CT_DIR_MAX]; role 4726 include/linux/platform_data/cros_ec_commands.h uint8_t role; role 4745 include/linux/platform_data/cros_ec_commands.h uint8_t role; role 4752 include/linux/platform_data/cros_ec_commands.h uint8_t role; role 4767 include/linux/platform_data/cros_ec_commands.h uint8_t role; role 4820 include/linux/platform_data/cros_ec_commands.h uint8_t role; role 16 include/linux/usb/role.h typedef int (*usb_role_switch_set_t)(struct device *dev, enum usb_role role); role 140 include/linux/usb/tcpm.h enum typec_role role, enum typec_data_role data); role 144 include/linux/usb/tcpm.h int (*try_role)(struct tcpc_dev *dev, int role); role 203 include/linux/usb/typec.h int role); role 234 include/linux/usb/typec.h void typec_set_data_role(struct typec_port *port, enum typec_data_role role); role 235 include/linux/usb/typec.h void typec_set_pwr_role(struct typec_port *port, enum typec_role role); role 236 include/linux/usb/typec.h void typec_set_vconn_role(struct typec_port *port, enum typec_role role); role 68 include/media/soc_camera.h enum soc_camera_subdev_role role; role 595 include/net/bluetooth/hci.h __u8 role; role 868 include/net/bluetooth/hci.h __u8 role; role 874 include/net/bluetooth/hci.h __u8 role; role 1835 include/net/bluetooth/hci.h __u8 role; role 2093 include/net/bluetooth/hci.h __u8 role; role 2210 include/net/bluetooth/hci.h __u8 role; role 469 include/net/bluetooth/hci_core.h __u8 role; role 723 include/net/bluetooth/hci_core.h if (c->role == HCI_ROLE_SLAVE) role 749 include/net/bluetooth/hci_core.h if (c->role == HCI_ROLE_SLAVE) role 912 include/net/bluetooth/hci_core.h u8 role); role 927 include/net/bluetooth/hci_core.h u8 role, bdaddr_t *direct_rpa); role 936 include/net/bluetooth/hci_core.h int hci_conn_switch_role(struct hci_conn *conn, __u8 role); role 1113 include/net/bluetooth/hci_core.h u8 addr_type, u8 role); role 1257 include/net/bluetooth/hci_core.h void (*role_switch_cfm) (struct hci_conn *conn, __u8 status, __u8 role); role 1346 include/net/bluetooth/hci_core.h __u8 role) role 1353 include/net/bluetooth/hci_core.h cb->role_switch_cfm(conn, status, role); role 327 include/scsi/libsas.h enum sas_phy_role role; role 96 include/uapi/linux/smc_diag.h __u8 role; role 813 net/batman-adv/tp_meter.c if (unlikely(tp_vars->role != BATADV_TP_SENDER)) { role 985 net/batman-adv/tp_meter.c tp_vars->role = BATADV_TP_SENDER; role 1354 net/batman-adv/tp_meter.c tp_vars->role = BATADV_TP_RECEIVER; role 1416 net/batman-adv/tp_meter.c if (unlikely(tp_vars->role != BATADV_TP_RECEIVER)) { role 1419 net/batman-adv/tp_meter.c tp_vars->role); role 1405 net/batman-adv/types.h enum batadv_tp_meter_role role; role 110 net/bluetooth/amp.c u8 role = out ? HCI_ROLE_MASTER : HCI_ROLE_SLAVE; role 112 net/bluetooth/amp.c hcon = hci_conn_add(hdev, AMP_LINK, dst, role); role 112 net/bluetooth/bnep/bnep.h __u16 role; role 123 net/bluetooth/bnep/bnep.h __u16 role; role 148 net/bluetooth/bnep/bnep.h unsigned int role; role 601 net/bluetooth/bnep/core.c s->role = req->role; role 683 net/bluetooth/bnep/core.c ci->role = s->role; role 198 net/bluetooth/hci_conn.c conn->role = HCI_ROLE_MASTER; role 240 net/bluetooth/hci_conn.c if (conn->type == ACL_LINK && conn->role == HCI_ROLE_MASTER && role 483 net/bluetooth/hci_conn.c if (conn->role == HCI_ROLE_SLAVE) { role 495 net/bluetooth/hci_conn.c u8 role) role 509 net/bluetooth/hci_conn.c conn->role = role; role 526 net/bluetooth/hci_conn.c if (conn->role == HCI_ROLE_MASTER) role 963 net/bluetooth/hci_conn.c u8 role, bdaddr_t *direct_rpa) role 1013 net/bluetooth/hci_conn.c conn = hci_conn_add(hdev, LE_LINK, dst, role); role 1039 net/bluetooth/hci_conn.c if (conn->role == HCI_ROLE_SLAVE) { role 1444 net/bluetooth/hci_conn.c int hci_conn_switch_role(struct hci_conn *conn, __u8 role) role 1448 net/bluetooth/hci_conn.c if (role == conn->role) role 1454 net/bluetooth/hci_conn.c cp.role = role; role 1523 net/bluetooth/hci_conn.c if (conn->role == HCI_ROLE_MASTER) role 2379 net/bluetooth/hci_core.c u8 addr_type, u8 role) role 2388 net/bluetooth/hci_core.c if (smp_ltk_is_sc(k) || ltk_role(k->type) == role) { role 2496 net/bluetooth/hci_core.c u8 role = ltk_role(type); role 2498 net/bluetooth/hci_core.c old_key = hci_find_ltk(hdev, bdaddr, addr_type, role); role 115 net/bluetooth/hci_event.c conn->role = rp->role; role 2637 net/bluetooth/hci_event.c cp.role = 0x00; /* Become master */ role 2639 net/bluetooth/hci_event.c cp.role = 0x01; /* Remain slave */ role 3623 net/bluetooth/hci_event.c conn->role = ev->role; role 3627 net/bluetooth/hci_event.c hci_role_switch_cfm(conn, ev->status, ev->role); role 4903 net/bluetooth/hci_event.c bdaddr_t *bdaddr, u8 bdaddr_type, u8 role, u16 handle, role 4920 net/bluetooth/hci_event.c conn = hci_conn_add(hdev, LE_LINK, bdaddr, role); role 5071 net/bluetooth/hci_event.c ev->role, le16_to_cpu(ev->handle), role 5085 net/bluetooth/hci_event.c ev->role, le16_to_cpu(ev->handle), role 5584 net/bluetooth/hci_event.c ltk = hci_find_ltk(hdev, &conn->dst, conn->dst_type, conn->role); role 5667 net/bluetooth/hci_event.c if (hcon->role == HCI_ROLE_MASTER) { role 1536 net/bluetooth/l2cap_core.c if (hcon->role == HCI_ROLE_SLAVE && role 5289 net/bluetooth/l2cap_core.c if (hcon->role != HCI_ROLE_MASTER) role 6162 net/bluetooth/mgmt.c u8 status, flags, role, addr[7], hash[16], rand[16]; role 6259 net/bluetooth/mgmt.c role = 0x02; role 6261 net/bluetooth/mgmt.c role = 0x01; role 6264 net/bluetooth/mgmt.c &role, sizeof(role)); role 739 net/bluetooth/sco.c cp.role = 0x00; /* Ignored */ role 915 net/bluetooth/smp.c if (hcon->role == HCI_ROLE_MASTER) role 1741 net/bluetooth/smp.c if (conn->hcon->role != HCI_ROLE_SLAVE) role 1932 net/bluetooth/smp.c if (conn->hcon->role != HCI_ROLE_MASTER) role 2212 net/bluetooth/smp.c key = hci_find_ltk(hcon->hdev, &hcon->dst, hcon->dst_type, hcon->role); role 2245 net/bluetooth/smp.c hci_find_ltk(hcon->hdev, &hcon->dst, hcon->dst_type, hcon->role)) role 2268 net/bluetooth/smp.c if (hcon->role != HCI_ROLE_MASTER) role 2341 net/bluetooth/smp.c if (hcon->role == HCI_ROLE_MASTER) role 2380 net/bluetooth/smp.c if (hcon->role == HCI_ROLE_MASTER) { role 3023 net/bluetooth/smp.c if (hcon->role != HCI_ROLE_MASTER) role 407 net/netfilter/nf_conntrack_proto_dccp.c ct->proto.dccp.role[IP_CT_DIR_ORIGINAL] = CT_DCCP_ROLE_CLIENT; role 408 net/netfilter/nf_conntrack_proto_dccp.c ct->proto.dccp.role[IP_CT_DIR_REPLY] = CT_DCCP_ROLE_SERVER; role 479 net/netfilter/nf_conntrack_proto_dccp.c enum ct_dccp_roles role; role 502 net/netfilter/nf_conntrack_proto_dccp.c role = ct->proto.dccp.role[dir]; role 504 net/netfilter/nf_conntrack_proto_dccp.c new_state = dccp_state_table[role][type][old_state]; role 509 net/netfilter/nf_conntrack_proto_dccp.c role == CT_DCCP_ROLE_SERVER) { role 512 net/netfilter/nf_conntrack_proto_dccp.c ct->proto.dccp.role[dir] = CT_DCCP_ROLE_CLIENT; role 513 net/netfilter/nf_conntrack_proto_dccp.c ct->proto.dccp.role[!dir] = CT_DCCP_ROLE_SERVER; role 535 net/netfilter/nf_conntrack_proto_dccp.c ct->proto.dccp.role[!dir] = CT_DCCP_ROLE_CLIENT; role 536 net/netfilter/nf_conntrack_proto_dccp.c ct->proto.dccp.role[dir] = CT_DCCP_ROLE_SERVER; role 602 net/netfilter/nf_conntrack_proto_dccp.c ct->proto.dccp.role[IP_CT_DIR_ORIGINAL]) || role 653 net/netfilter/nf_conntrack_proto_dccp.c ct->proto.dccp.role[IP_CT_DIR_ORIGINAL] = CT_DCCP_ROLE_CLIENT; role 654 net/netfilter/nf_conntrack_proto_dccp.c ct->proto.dccp.role[IP_CT_DIR_REPLY] = CT_DCCP_ROLE_SERVER; role 656 net/netfilter/nf_conntrack_proto_dccp.c ct->proto.dccp.role[IP_CT_DIR_ORIGINAL] = CT_DCCP_ROLE_SERVER; role 657 net/netfilter/nf_conntrack_proto_dccp.c ct->proto.dccp.role[IP_CT_DIR_REPLY] = CT_DCCP_ROLE_CLIENT; role 52 net/smc/smc_core.c (!lgr->is_smcd && lgr->role == SMC_CLNT) ? role 240 net/smc/smc_core.c lgr->role = smc->listen_smc ? SMC_SERV : SMC_CLNT; role 592 net/smc/smc_core.c enum smc_lgr_role role, u32 clcqpn) role 600 net/smc/smc_core.c lgr->role == role && role 601 net/smc/smc_core.c (lgr->role == SMC_SERV || role 616 net/smc/smc_core.c enum smc_lgr_role role; role 620 net/smc/smc_core.c role = smc->listen_smc ? SMC_SERV : SMC_CLNT; role 621 net/smc/smc_core.c if (role == SMC_CLNT && ini->srv_first_contact) role 631 net/smc/smc_core.c smcr_lgr_match(lgr, ini->ib_lcl, role, ini->ib_clcqpn)) && role 634 net/smc/smc_core.c (role == SMC_CLNT || role 649 net/smc/smc_core.c if (role == SMC_CLNT && !ini->srv_first_contact && role 211 net/smc/smc_core.h enum smc_lgr_role role; role 153 net/smc/smc_diag.c .role = smc->conn.lgr->role, role 136 net/smc/smc_ib.c if (lgr->role == SMC_SERV) { role 416 net/smc/smc_llc.c if (lgr->role == SMC_SERV && role 422 net/smc/smc_llc.c if (lgr->role == SMC_CLNT && role 445 net/smc/smc_llc.c if (lgr->role == SMC_SERV) { role 465 net/smc/smc_llc.c if (lgr->role == SMC_SERV) role 470 net/smc/smc_llc.c if (lgr->role == SMC_SERV) { role 29 security/selinux/ss/context.h u32 role; role 123 security/selinux/ss/context.h dst->role = src->role; role 144 security/selinux/ss/context.h c->user = c->role = c->type = 0; role 158 security/selinux/ss/context.h (c1->role == c2->role) && role 203 security/selinux/ss/mls.c if (c->role == OBJECT_R_VAL) role 263 security/selinux/ss/policydb.c struct role_datum *role; role 267 security/selinux/ss/policydb.c role = datum; role 268 security/selinux/ss/policydb.c ebitmap_destroy(&role->dominates); role 269 security/selinux/ss/policydb.c ebitmap_destroy(&role->types); role 375 security/selinux/ss/policydb.c struct role_datum *role; role 377 security/selinux/ss/policydb.c role = kzalloc(sizeof(*role), GFP_KERNEL); role 378 security/selinux/ss/policydb.c if (!role) role 382 security/selinux/ss/policydb.c role->value = ++p->p_roles.nprim; role 383 security/selinux/ss/policydb.c if (role->value != OBJECT_R_VAL) role 391 security/selinux/ss/policydb.c rc = hashtab_insert(p->p_roles.table, key, role); role 398 security/selinux/ss/policydb.c kfree(role); role 563 security/selinux/ss/policydb.c struct role_datum *role; role 565 security/selinux/ss/policydb.c role = datum; role 567 security/selinux/ss/policydb.c if (!role->value role 568 security/selinux/ss/policydb.c || role->value > p->p_roles.nprim role 569 security/selinux/ss/policydb.c || role->bounds > p->p_roles.nprim) role 572 security/selinux/ss/policydb.c p->sym_val_to_name[SYM_ROLES][role->value - 1] = key; role 573 security/selinux/ss/policydb.c p->role_val_to_struct[role->value - 1] = role; role 897 security/selinux/ss/policydb.c int policydb_role_isvalid(struct policydb *p, unsigned int role) role 899 security/selinux/ss/policydb.c if (!role || role > p->p_roles.nprim) role 917 security/selinux/ss/policydb.c struct role_datum *role; role 920 security/selinux/ss/policydb.c if (!c->role || c->role > p->p_roles.nprim) role 929 security/selinux/ss/policydb.c if (c->role != OBJECT_R_VAL) { role 933 security/selinux/ss/policydb.c role = p->role_val_to_struct[c->role - 1]; role 934 security/selinux/ss/policydb.c if (!role || !ebitmap_get_bit(&role->types, c->type - 1)) role 945 security/selinux/ss/policydb.c if (!ebitmap_get_bit(&usrdatum->roles, c->role - 1)) role 1032 security/selinux/ss/policydb.c c->role = le32_to_cpu(buf[1]); role 1377 security/selinux/ss/policydb.c struct role_datum *role; role 1382 security/selinux/ss/policydb.c role = kzalloc(sizeof(*role), GFP_KERNEL); role 1383 security/selinux/ss/policydb.c if (!role) role 1394 security/selinux/ss/policydb.c role->value = le32_to_cpu(buf[1]); role 1396 security/selinux/ss/policydb.c role->bounds = le32_to_cpu(buf[2]); role 1402 security/selinux/ss/policydb.c rc = ebitmap_read(&role->dominates, fp); role 1406 security/selinux/ss/policydb.c rc = ebitmap_read(&role->types, fp); role 1412 security/selinux/ss/policydb.c if (role->value != OBJECT_R_VAL) { role 1414 security/selinux/ss/policydb.c OBJECT_R, role->value); role 1421 security/selinux/ss/policydb.c rc = hashtab_insert(h, key, role); role 1426 security/selinux/ss/policydb.c role_destroy(key, role, NULL); role 1678 security/selinux/ss/policydb.c struct role_datum *upper, *role; role 1682 security/selinux/ss/policydb.c upper = role = datum; role 1695 security/selinux/ss/policydb.c ebitmap_for_each_positive_bit(&role->types, node, bit) { role 1701 security/selinux/ss/policydb.c sym_name(p, SYM_ROLES, role->value - 1), role 2426 security/selinux/ss/policydb.c tr->role = le32_to_cpu(buf[0]); role 2438 security/selinux/ss/policydb.c if (!policydb_role_isvalid(p, tr->role) || role 2465 security/selinux/ss/policydb.c ra->role = le32_to_cpu(buf[0]); role 2467 security/selinux/ss/policydb.c if (!policydb_role_isvalid(p, ra->role) || role 2664 security/selinux/ss/policydb.c buf[0] = cpu_to_le32(tr->role); role 2696 security/selinux/ss/policydb.c buf[0] = cpu_to_le32(ra->role); role 2716 security/selinux/ss/policydb.c buf[1] = cpu_to_le32(c->role); role 2944 security/selinux/ss/policydb.c struct role_datum *role = datum; role 2955 security/selinux/ss/policydb.c buf[items++] = cpu_to_le32(role->value); role 2957 security/selinux/ss/policydb.c buf[items++] = cpu_to_le32(role->bounds); role 2969 security/selinux/ss/policydb.c rc = ebitmap_write(&role->dominates, fp); role 2973 security/selinux/ss/policydb.c rc = ebitmap_write(&role->types, fp); role 84 security/selinux/ss/policydb.h u32 role; /* current role */ role 103 security/selinux/ss/policydb.h u32 role; /* current role */ role 316 security/selinux/ss/policydb.h extern int policydb_role_isvalid(struct policydb *p, unsigned int role); role 305 security/selinux/ss/services.c val1 = scontext->role; role 306 security/selinux/ss/services.c val2 = tcontext->role; role 407 security/selinux/ss/services.c val1 = c->role; role 699 security/selinux/ss/services.c scontext->role != tcontext->role) { role 701 security/selinux/ss/services.c if (scontext->role == ra->role && role 702 security/selinux/ss/services.c tcontext->role == ra->new_role) role 1230 security/selinux/ss/services.c *scontext_len += strlen(sym_name(p, SYM_ROLES, context->role - 1)) + 1; role 1248 security/selinux/ss/services.c sym_name(p, SYM_ROLES, context->role - 1), role 1380 security/selinux/ss/services.c struct role_datum *role; role 1419 security/selinux/ss/services.c role = hashtab_search(pol->p_roles.table, scontextp); role 1420 security/selinux/ss/services.c if (!role) role 1422 security/selinux/ss/services.c ctx->role = role->value; role 1723 security/selinux/ss/services.c newcontext.role = scontext->role; role 1725 security/selinux/ss/services.c newcontext.role = tcontext->role; role 1728 security/selinux/ss/services.c newcontext.role = scontext->role; role 1730 security/selinux/ss/services.c newcontext.role = OBJECT_R_VAL; role 1781 security/selinux/ss/services.c if ((roletr->role == scontext->role) && role 1785 security/selinux/ss/services.c newcontext.role = roletr->new_role; role 1932 security/selinux/ss/services.c struct role_datum *role; role 1987 security/selinux/ss/services.c role = hashtab_search(args->newp->p_roles.table, role 1988 security/selinux/ss/services.c sym_name(args->oldp, SYM_ROLES, oldc->role - 1)); role 1989 security/selinux/ss/services.c if (!role) role 1991 security/selinux/ss/services.c newc->role = role->value; role 2560 security/selinux/ss/services.c struct role_datum *role; role 2595 security/selinux/ss/services.c role = policydb->role_val_to_struct[i]; role 2596 security/selinux/ss/services.c usercon.role = i + 1; role 2597 security/selinux/ss/services.c ebitmap_for_each_positive_bit(&role->types, tnode, j) { role 3002 security/selinux/ss/services.c newcon.role = context1->role; role 3345 security/selinux/ss/services.c tmprule->au_ctxt.role = roledatum->value; role 3450 security/selinux/ss/services.c match = (ctxt->role == rule->au_ctxt.role); role 3453 security/selinux/ss/services.c match = (ctxt->role != rule->au_ctxt.role); role 3611 security/selinux/ss/services.c ctx_new.role = ctx->role; role 381 tools/lib/traceevent/plugins/plugin_kvm.c union kvm_mmu_page_role role; role 386 tools/lib/traceevent/plugins/plugin_kvm.c role.word = (int)val; role 396 tools/lib/traceevent/plugins/plugin_kvm.c role.level, role 397 tools/lib/traceevent/plugins/plugin_kvm.c role.quadrant, role 398 tools/lib/traceevent/plugins/plugin_kvm.c role.direct ? " direct" : "", role 399 tools/lib/traceevent/plugins/plugin_kvm.c access_str[role.access], role 400 tools/lib/traceevent/plugins/plugin_kvm.c role.invalid ? " invalid" : "", role 401 tools/lib/traceevent/plugins/plugin_kvm.c role.cr4_pae ? "" : "!", role 402 tools/lib/traceevent/plugins/plugin_kvm.c role.nxe ? "" : "!", role 403 tools/lib/traceevent/plugins/plugin_kvm.c role.cr0_wp ? "" : "!", role 404 tools/lib/traceevent/plugins/plugin_kvm.c role.smep_and_not_wp ? " smep" : "", role 405 tools/lib/traceevent/plugins/plugin_kvm.c role.smap_and_not_wp ? " smap" : "", role 406 tools/lib/traceevent/plugins/plugin_kvm.c role.smm ? " smm" : ""); role 408 tools/lib/traceevent/plugins/plugin_kvm.c trace_seq_printf(s, "WORD: %08x", role.word);