/kernel/linux/linux-6.6/include/sound/ |
H A D | hda-mlink.h | 17 int hdac_bus_eml_get_count(struct hdac_bus *bus, bool alt, int elid); 18 void hdac_bus_eml_enable_interrupt(struct hdac_bus *bus, bool alt, int elid, bool enable); 19 bool hdac_bus_eml_check_interrupt(struct hdac_bus *bus, bool alt, int elid); 21 int hdac_bus_eml_set_syncprd_unlocked(struct hdac_bus *bus, bool alt, int elid, u32 syncprd); 24 int hdac_bus_eml_wait_syncpu_unlocked(struct hdac_bus *bus, bool alt, int elid); 27 void hdac_bus_eml_sync_arm_unlocked(struct hdac_bus *bus, bool alt, int elid, int sublink); 30 int hdac_bus_eml_sync_go_unlocked(struct hdac_bus *bus, bool alt, int elid); 33 bool hdac_bus_eml_check_cmdsync_unlocked(struct hdac_bus *bus, bool alt, int elid); 36 int hdac_bus_eml_power_up(struct hdac_bus *bus, bool alt, int elid, int sublink); 37 int hdac_bus_eml_power_up_unlocked(struct hdac_bus *bus, bool alt, in 72 hdac_bus_eml_get_count(struct hdac_bus *bus, bool alt, int elid) hdac_bus_eml_get_count() argument 75 hdac_bus_eml_enable_interrupt(struct hdac_bus *bus, bool alt, int elid, bool enable) hdac_bus_eml_enable_interrupt() argument 78 hdac_bus_eml_check_interrupt(struct hdac_bus *bus, bool alt, int elid) hdac_bus_eml_check_interrupt() argument 81 hdac_bus_eml_set_syncprd_unlocked(struct hdac_bus *bus, bool alt, int elid, u32 syncprd) hdac_bus_eml_set_syncprd_unlocked() argument 93 hdac_bus_eml_wait_syncpu_unlocked(struct hdac_bus *bus, bool alt, int elid) hdac_bus_eml_wait_syncpu_unlocked() argument 102 hdac_bus_eml_sync_arm_unlocked(struct hdac_bus *bus, bool alt, int elid, int sublink) hdac_bus_eml_sync_arm_unlocked() argument 108 hdac_bus_eml_sync_go_unlocked(struct hdac_bus *bus, bool alt, int elid) hdac_bus_eml_sync_go_unlocked() argument 114 hdac_bus_eml_check_cmdsync_unlocked(struct hdac_bus *bus, bool alt, int elid) hdac_bus_eml_check_cmdsync_unlocked() argument 120 hdac_bus_eml_power_up(struct hdac_bus *bus, bool alt, int elid, int sublink) hdac_bus_eml_power_up() argument 126 hdac_bus_eml_power_up_unlocked(struct hdac_bus *bus, bool alt, int elid, int sublink) hdac_bus_eml_power_up_unlocked() argument 132 hdac_bus_eml_power_down(struct hdac_bus *bus, bool alt, int elid, int sublink) hdac_bus_eml_power_down() argument 138 hdac_bus_eml_power_down_unlocked(struct hdac_bus *bus, bool alt, int elid, int sublink) hdac_bus_eml_power_down_unlocked() argument 177 hdac_bus_eml_get_mutex(struct hdac_bus *bus, bool alt, int elid) hdac_bus_eml_get_mutex() argument 180 hdac_bus_eml_enable_offload(struct hdac_bus *bus, bool alt, int elid, bool enable) hdac_bus_eml_enable_offload() argument [all...] |
/kernel/linux/linux-5.10/tools/objtool/ |
H A D | special.c | 54 void __weak arch_handle_alternative(unsigned short feature, struct special_alt *alt) in arch_handle_alternative() argument 67 struct special_alt *alt) in get_alt_entry() 74 alt->group = entry->group; in get_alt_entry() 75 alt->jump_or_nop = entry->jump_or_nop; in get_alt_entry() 77 if (alt->group) { in get_alt_entry() 78 alt->orig_len = *(unsigned char *)(sec->data->d_buf + offset + in get_alt_entry() 80 alt->new_len = *(unsigned char *)(sec->data->d_buf + offset + in get_alt_entry() 89 arch_handle_alternative(feature, alt); in get_alt_entry() 98 reloc_to_sec_off(orig_reloc, &alt->orig_sec, &alt in get_alt_entry() 65 get_alt_entry(struct elf *elf, struct special_entry *entry, struct section *sec, int idx, struct special_alt *alt) get_alt_entry() argument 128 struct special_alt *alt; special_get_alts() local [all...] |
/kernel/linux/linux-6.6/arch/arm64/kernel/ |
H A D | alternative.c | 51 static __always_inline bool branch_insn_requires_update(struct alt_instr *alt, unsigned long pc) in branch_insn_requires_update() argument 53 unsigned long replptr = (unsigned long)ALT_REPL_PTR(alt); in branch_insn_requires_update() 54 return !(pc >= replptr && pc <= (replptr + alt->alt_len)); in branch_insn_requires_update() 59 static __always_inline u32 get_alt_insn(struct alt_instr *alt, __le32 *insnptr, __le32 *altinsnptr) in get_alt_insn() argument 76 if (branch_insn_requires_update(alt, target)) { in get_alt_insn() 104 static noinstr void patch_alternative(struct alt_instr *alt, in patch_alternative() argument 110 replptr = ALT_REPL_PTR(alt); in patch_alternative() 114 insn = get_alt_insn(alt, origptr + i, replptr + i); in patch_alternative() 146 struct alt_instr *alt; in __apply_alternatives() local 150 for (alt in __apply_alternatives() 203 const struct elf64_shdr *alt; apply_alternatives_vdso() local 294 alt_cb_patch_nops(struct alt_instr *alt, __le32 *origptr, __le32 *updptr, int nr_inst) alt_cb_patch_nops() argument [all...] |
/kernel/linux/linux-6.6/tools/objtool/ |
H A D | special.c | 57 void __weak arch_handle_alternative(unsigned short feature, struct special_alt *alt) in arch_handle_alternative() argument 70 struct special_alt *alt) in get_alt_entry() 77 alt->group = entry->group; in get_alt_entry() 78 alt->jump_or_nop = entry->jump_or_nop; in get_alt_entry() 80 if (alt->group) { in get_alt_entry() 81 alt->orig_len = *(unsigned char *)(sec->data->d_buf + offset + in get_alt_entry() 83 alt->new_len = *(unsigned char *)(sec->data->d_buf + offset + in get_alt_entry() 94 arch_handle_alternative(feature, alt); in get_alt_entry() 103 reloc_to_sec_off(orig_reloc, &alt->orig_sec, &alt in get_alt_entry() 68 get_alt_entry(struct elf *elf, const struct special_entry *entry, struct section *sec, int idx, struct special_alt *alt) get_alt_entry() argument 145 struct special_alt *alt; special_get_alts() local [all...] |
/kernel/linux/linux-5.10/drivers/usb/typec/altmodes/ |
H A D | displayport.c | 20 #define DP_HEADER(_dp, cmd) (VDO((_dp)->alt->svid, 1, cmd) | \ 66 struct typec_altmode *alt; member 75 return typec_altmode_notify(dp->alt, TYPEC_MODAL_STATE(state), in dp_altmode_notify() 89 pin_assign = DP_CAP_UFP_D_PIN_ASSIGN(dp->alt->vdo) & in dp_altmode_configure() 95 pin_assign = DP_CAP_PIN_ASSIGN_UFP_D(dp->alt->vdo) & in dp_altmode_configure() 156 sysfs_notify(&dp->alt->dev.kobj, "displayport", "configuration"); in dp_altmode_configured() 159 return typec_altmode_notify(dp->alt, TYPEC_STATE_USB, in dp_altmode_configured() 166 sysfs_notify(&dp->alt->dev.kobj, "displayport", "pin_assignment"); in dp_altmode_configured() 176 ret = typec_altmode_notify(dp->alt, TYPEC_STATE_SAFE, &dp->data); in dp_altmode_configure_vdm() 178 dev_err(&dp->alt in dp_altmode_configure_vdm() 238 dp_altmode_attention(struct typec_altmode *alt, const u32 vdo) dp_altmode_attention() argument 264 dp_altmode_vdm(struct typec_altmode *alt, const u32 hdr, const u32 *vdo, int count) dp_altmode_vdm() argument 327 dp_altmode_activate(struct typec_altmode *alt, int activate) dp_altmode_activate() argument 541 dp_altmode_probe(struct typec_altmode *alt) dp_altmode_probe() argument 587 dp_altmode_remove(struct typec_altmode *alt) dp_altmode_remove() argument [all...] |
H A D | nvidia.c | 12 static int nvidia_altmode_probe(struct typec_altmode *alt) in nvidia_altmode_probe() argument 14 if (alt->svid == USB_TYPEC_NVIDIA_VLINK_SID) in nvidia_altmode_probe() 15 return dp_altmode_probe(alt); in nvidia_altmode_probe() 20 static void nvidia_altmode_remove(struct typec_altmode *alt) in nvidia_altmode_remove() argument 22 if (alt->svid == USB_TYPEC_NVIDIA_VLINK_SID) in nvidia_altmode_remove() 23 dp_altmode_remove(alt); in nvidia_altmode_remove()
|
H A D | displayport.h | 3 int dp_altmode_probe(struct typec_altmode *alt); 4 void dp_altmode_remove(struct typec_altmode *alt); 6 int dp_altmode_probe(struct typec_altmode *alt) { return -ENOTSUPP; } in dp_altmode_probe() argument 7 void dp_altmode_remove(struct typec_altmode *alt) { } in dp_altmode_remove() argument
|
/kernel/linux/linux-6.6/drivers/usb/typec/altmodes/ |
H A D | displayport.c | 20 #define DP_HEADER(_dp, ver, cmd) (VDO((_dp)->alt->svid, 1, ver, cmd) \ 67 struct typec_altmode *alt; member 84 return typec_altmode_notify(dp->alt, conf, &dp->data); in dp_altmode_notify() 97 pin_assign = DP_CAP_UFP_D_PIN_ASSIGN(dp->alt->vdo) & in dp_altmode_configure() 103 pin_assign = DP_CAP_PIN_ASSIGN_UFP_D(dp->alt->vdo) & in dp_altmode_configure() 159 sysfs_notify(&dp->alt->dev.kobj, "displayport", "hpd"); in dp_altmode_status_update() 168 sysfs_notify(&dp->alt->dev.kobj, "displayport", "configuration"); in dp_altmode_configured() 169 sysfs_notify(&dp->alt->dev.kobj, "displayport", "pin_assignment"); in dp_altmode_configured() 177 sysfs_notify(&dp->alt->dev.kobj, "displayport", "hpd"); in dp_altmode_configured() 186 int svdm_version = typec_altmode_get_svdm_version(dp->alt); in dp_altmode_configure_vdm() 255 dp_altmode_attention(struct typec_altmode *alt, const u32 vdo) dp_altmode_attention() argument 281 dp_altmode_vdm(struct typec_altmode *alt, const u32 hdr, const u32 *vdo, int count) dp_altmode_vdm() argument 346 dp_altmode_activate(struct typec_altmode *alt, int activate) dp_altmode_activate() argument 569 dp_altmode_probe(struct typec_altmode *alt) dp_altmode_probe() argument 618 dp_altmode_remove(struct typec_altmode *alt) dp_altmode_remove() argument [all...] |
H A D | nvidia.c | 12 static int nvidia_altmode_probe(struct typec_altmode *alt) in nvidia_altmode_probe() argument 14 if (alt->svid == USB_TYPEC_NVIDIA_VLINK_SID) in nvidia_altmode_probe() 15 return dp_altmode_probe(alt); in nvidia_altmode_probe() 20 static void nvidia_altmode_remove(struct typec_altmode *alt) in nvidia_altmode_remove() argument 22 if (alt->svid == USB_TYPEC_NVIDIA_VLINK_SID) in nvidia_altmode_remove() 23 dp_altmode_remove(alt); in nvidia_altmode_remove()
|
H A D | displayport.h | 3 int dp_altmode_probe(struct typec_altmode *alt); 4 void dp_altmode_remove(struct typec_altmode *alt); 6 int dp_altmode_probe(struct typec_altmode *alt) { return -ENOTSUPP; } in dp_altmode_probe() argument 7 void dp_altmode_remove(struct typec_altmode *alt) { } in dp_altmode_remove() argument
|
/kernel/linux/linux-6.6/drivers/usb/typec/ucsi/ |
H A D | displayport.c | 21 struct typec_altmode *alt; member 39 * them. That is because UCSI defines alt mode details and alt mode "overriding" 42 * In case alt mode details are supported, but overriding is not, the driver 48 static int ucsi_displayport_enter(struct typec_altmode *alt, u32 *vdo) in ucsi_displayport_enter() argument 50 struct ucsi_dp *dp = typec_altmode_get_drvdata(alt); in ucsi_displayport_enter() 60 const struct typec_altmode *p = typec_altmode_get_partner(alt); in ucsi_displayport_enter() 77 ret = dp->con->port_altmode[cur] == alt ? 0 : -EBUSY; in ucsi_displayport_enter() 84 * mode, and letting the alt mode driver continue. in ucsi_displayport_enter() 87 svdm_version = typec_altmode_get_svdm_version(alt); in ucsi_displayport_enter() 108 ucsi_displayport_exit(struct typec_altmode *alt) ucsi_displayport_exit() argument 197 ucsi_displayport_vdm(struct typec_altmode *alt, u32 header, const u32 *data, int count) ucsi_displayport_vdm() argument 292 ucsi_displayport_remove_partner(struct typec_altmode *alt) ucsi_displayport_remove_partner() argument 314 struct typec_altmode *alt; ucsi_register_displayport() local [all...] |
/kernel/linux/linux-5.10/arch/arm64/kernel/ |
H A D | alternative.c | 44 static __always_inline bool branch_insn_requires_update(struct alt_instr *alt, unsigned long pc) in branch_insn_requires_update() argument 46 unsigned long replptr = (unsigned long)ALT_REPL_PTR(alt); in branch_insn_requires_update() 47 return !(pc >= replptr && pc <= (replptr + alt->alt_len)); in branch_insn_requires_update() 52 static __always_inline u32 get_alt_insn(struct alt_instr *alt, __le32 *insnptr, __le32 *altinsnptr) in get_alt_insn() argument 69 if (branch_insn_requires_update(alt, target)) { in get_alt_insn() 97 static noinstr void patch_alternative(struct alt_instr *alt, in patch_alternative() argument 103 replptr = ALT_REPL_PTR(alt); in patch_alternative() 107 insn = get_alt_insn(alt, origptr + i, replptr + i); in patch_alternative() 138 struct alt_instr *alt; in __apply_alternatives() local 143 for (alt in __apply_alternatives() [all...] |
/kernel/linux/linux-5.10/drivers/usb/typec/ucsi/ |
H A D | displayport.c | 21 struct typec_altmode *alt; member 39 * them. That is because UCSI defines alt mode details and alt mode "overriding" 42 * In case alt mode details are supported, but overriding is not, the driver 48 static int ucsi_displayport_enter(struct typec_altmode *alt, u32 *vdo) in ucsi_displayport_enter() argument 50 struct ucsi_dp *dp = typec_altmode_get_drvdata(alt); in ucsi_displayport_enter() 59 const struct typec_altmode *p = typec_altmode_get_partner(alt); in ucsi_displayport_enter() 76 ret = dp->con->port_altmode[cur] == alt ? 0 : -EBUSY; in ucsi_displayport_enter() 83 * mode, and letting the alt mode driver continue. in ucsi_displayport_enter() 101 static int ucsi_displayport_exit(struct typec_altmode *alt) in ucsi_displayport_exit() argument 183 ucsi_displayport_vdm(struct typec_altmode *alt, u32 header, const u32 *data, int count) ucsi_displayport_vdm() argument 266 ucsi_displayport_remove_partner(struct typec_altmode *alt) ucsi_displayport_remove_partner() argument 288 struct typec_altmode *alt; ucsi_register_displayport() local [all...] |
/kernel/linux/linux-6.6/arch/riscv/errata/thead/ |
H A D | errata.c | 93 struct alt_entry *alt; in thead_errata_patch_func() local 98 for (alt = begin; alt < end; alt++) { in thead_errata_patch_func() 99 if (alt->vendor_id != THEAD_VENDOR_ID) in thead_errata_patch_func() 101 if (alt->patch_id >= ERRATA_THEAD_NUMBER) in thead_errata_patch_func() 104 tmp = (1U << alt->patch_id); in thead_errata_patch_func() 106 oldptr = ALT_OLD_PTR(alt); in thead_errata_patch_func() 107 altptr = ALT_ALT_PTR(alt); in thead_errata_patch_func() 111 memcpy(oldptr, altptr, alt in thead_errata_patch_func() [all...] |
/kernel/linux/linux-6.6/arch/riscv/errata/sifive/ |
H A D | errata.c | 89 struct alt_entry *alt; in sifive_errata_patch_func() local 99 for (alt = begin; alt < end; alt++) { in sifive_errata_patch_func() 100 if (alt->vendor_id != SIFIVE_VENDOR_ID) in sifive_errata_patch_func() 102 if (alt->patch_id >= ERRATA_SIFIVE_NUMBER) { in sifive_errata_patch_func() 103 WARN(1, "This errata id:%d is not in kernel errata list", alt->patch_id); in sifive_errata_patch_func() 107 tmp = (1U << alt->patch_id); in sifive_errata_patch_func() 110 patch_text_nosync(ALT_OLD_PTR(alt), ALT_ALT_PTR(alt), in sifive_errata_patch_func() [all...] |
/kernel/linux/linux-6.6/drivers/usb/typec/ |
H A D | bus.c | 17 typec_altmode_set_retimer(struct altmode *alt, unsigned long conf, void *data) in typec_altmode_set_retimer() argument 21 if (!alt->retimer) in typec_altmode_set_retimer() 24 state.alt = &alt->adev; in typec_altmode_set_retimer() 28 return typec_retimer_set(alt->retimer, &state); in typec_altmode_set_retimer() 32 typec_altmode_set_mux(struct altmode *alt, unsigned long conf, void *data) in typec_altmode_set_mux() argument 36 if (!alt->mux) in typec_altmode_set_mux() 39 state.alt = &alt->adev; in typec_altmode_set_mux() 43 return typec_mux_set(alt in typec_altmode_set_mux() 48 typec_altmode_set_switches(struct altmode *alt, unsigned long conf, void *data) typec_altmode_set_switches() argument 336 struct typec_altmode *alt = to_typec_altmode(dev); description_show() local 375 typec_altmode_create_links(struct altmode *alt) typec_altmode_create_links() argument 392 typec_altmode_remove_links(struct altmode *alt) typec_altmode_remove_links() argument [all...] |
/kernel/linux/linux-6.6/sound/soc/sof/intel/ |
H A D | hda-mlink.c | 29 * @alt: flag set for alternate extended links 50 bool alt; member 107 h2link->alt = FIELD_GET(AZX_ML_HDA_LCAP_ALT, hlink->lcaps); in hdaml_lnk_enum() 110 if (!h2link->alt) { in hdaml_lnk_enum() 409 if (!h2link->alt) in hda_ml_alloc_h2link() 458 find_ext2_link(struct hdac_bus *bus, bool alt, int elid) in find_ext2_link() argument 465 if (h2link->alt == alt && h2link->elid == elid) in find_ext2_link() 472 int hdac_bus_eml_get_count(struct hdac_bus *bus, bool alt, int elid) in hdac_bus_eml_get_count() argument 476 h2link = find_ext2_link(bus, alt, eli in hdac_bus_eml_get_count() 484 hdac_bus_eml_enable_interrupt(struct hdac_bus *bus, bool alt, int elid, bool enable) hdac_bus_eml_enable_interrupt() argument 506 hdac_bus_eml_check_interrupt(struct hdac_bus *bus, bool alt, int elid) hdac_bus_eml_check_interrupt() argument 524 hdac_bus_eml_set_syncprd_unlocked(struct hdac_bus *bus, bool alt, int elid, u32 syncprd) hdac_bus_eml_set_syncprd_unlocked() argument 550 hdac_bus_eml_wait_syncpu_unlocked(struct hdac_bus *bus, bool alt, int elid) hdac_bus_eml_wait_syncpu_unlocked() argument 574 hdac_bus_eml_sync_arm_unlocked(struct hdac_bus *bus, bool alt, int elid, int sublink) hdac_bus_eml_sync_arm_unlocked() argument 598 hdac_bus_eml_sync_go_unlocked(struct hdac_bus *bus, bool alt, int elid) hdac_bus_eml_sync_go_unlocked() argument 624 hdac_bus_eml_check_cmdsync_unlocked(struct hdac_bus *bus, bool alt, int elid) hdac_bus_eml_check_cmdsync_unlocked() argument 653 hdac_bus_eml_power_up_base(struct hdac_bus *bus, bool alt, int elid, int sublink, bool eml_lock) hdac_bus_eml_power_up_base() argument 689 hdac_bus_eml_power_up(struct hdac_bus *bus, bool alt, int elid, int sublink) hdac_bus_eml_power_up() argument 695 hdac_bus_eml_power_up_unlocked(struct hdac_bus *bus, bool alt, int elid, int sublink) hdac_bus_eml_power_up_unlocked() argument 701 hdac_bus_eml_power_down_base(struct hdac_bus *bus, bool alt, int elid, int sublink, bool eml_lock) hdac_bus_eml_power_down_base() argument 736 hdac_bus_eml_power_down(struct hdac_bus *bus, bool alt, int elid, int sublink) hdac_bus_eml_power_down() argument 742 hdac_bus_eml_power_down_unlocked(struct hdac_bus *bus, bool alt, int elid, int sublink) hdac_bus_eml_power_down_unlocked() argument 900 hdac_bus_eml_get_mutex(struct hdac_bus *bus, bool alt, int elid) hdac_bus_eml_get_mutex() argument 948 hdac_bus_eml_enable_offload(struct hdac_bus *bus, bool alt, int elid, bool enable) hdac_bus_eml_enable_offload() argument [all...] |
/kernel/linux/linux-5.10/drivers/usb/storage/ |
H A D | uas-detect.h | 19 struct usb_host_interface *alt = &intf->altsetting[i]; in uas_find_uas_alt_setting() local 21 if (uas_is_interface(alt)) in uas_find_uas_alt_setting() 22 return alt; in uas_find_uas_alt_setting() 28 static int uas_find_endpoints(struct usb_host_interface *alt, in uas_find_endpoints() argument 31 struct usb_host_endpoint *endpoint = alt->endpoint; in uas_find_endpoints() 32 unsigned i, n_endpoints = alt->desc.bNumEndpoints; in uas_find_endpoints() 63 struct usb_host_interface *alt; in uas_use_uas_driver() local 66 alt = uas_find_uas_alt_setting(intf); in uas_use_uas_driver() 67 if (!alt) in uas_use_uas_driver() 70 r = uas_find_endpoints(alt, ep in uas_use_uas_driver() [all...] |
/kernel/linux/linux-6.6/drivers/usb/storage/ |
H A D | uas-detect.h | 19 struct usb_host_interface *alt = &intf->altsetting[i]; in uas_find_uas_alt_setting() local 21 if (uas_is_interface(alt)) in uas_find_uas_alt_setting() 22 return alt; in uas_find_uas_alt_setting() 28 static int uas_find_endpoints(struct usb_host_interface *alt, in uas_find_endpoints() argument 31 struct usb_host_endpoint *endpoint = alt->endpoint; in uas_find_endpoints() 32 unsigned i, n_endpoints = alt->desc.bNumEndpoints; in uas_find_endpoints() 63 struct usb_host_interface *alt; in uas_use_uas_driver() local 66 alt = uas_find_uas_alt_setting(intf); in uas_use_uas_driver() 67 if (!alt) in uas_use_uas_driver() 70 r = uas_find_endpoints(alt, ep in uas_use_uas_driver() [all...] |
/kernel/linux/linux-6.6/arch/x86/include/asm/ |
H A D | paravirt_types.h | 439 #define ____PVOP_ALT_CALL(ret, op, alt, cond, call_clbr, \ 445 alt, cond) \ 457 #define __PVOP_ALT_CALL(rettype, op, alt, cond, ...) \ 458 ____PVOP_ALT_CALL(PVOP_RETVAL(rettype), op, alt, cond, \ 466 #define __PVOP_ALT_CALLEESAVE(rettype, op, alt, cond, ...) \ 467 ____PVOP_ALT_CALL(PVOP_RETVAL(rettype), op.func, alt, cond, \ 475 #define __PVOP_ALT_VCALL(op, alt, cond, ...) \ 476 (void)____PVOP_ALT_CALL(, op, alt, cond, \ 484 #define __PVOP_ALT_VCALLEESAVE(op, alt, cond, ...) \ 485 (void)____PVOP_ALT_CALL(, op.func, alt, con [all...] |
/kernel/linux/linux-5.10/drivers/usb/typec/ |
H A D | class.c | 175 /* Bind the port alt mode to the partner/plug alt mode. */ in typec_altmode_set_partner() 179 /* Bind the partner/plug alt mode to the port alt mode. */ in typec_altmode_set_partner() 243 * @alt: The Alternate Mode 245 * Returns handle to the port that a cable plug or partner with @alt is 248 struct typec_port *typec_altmode2port(struct typec_altmode *alt) in typec_altmode2port() argument 250 if (is_typec_plug(alt->dev.parent)) in typec_altmode2port() 251 return to_typec_port(alt->dev.parent->parent->parent); in typec_altmode2port() 252 if (is_typec_partner(alt in typec_altmode2port() 264 struct typec_altmode *alt = to_typec_altmode(dev); vdo_show() local 273 struct typec_altmode *alt = to_typec_altmode(dev); description_show() local 282 struct typec_altmode *alt = to_typec_altmode(dev); active_show() local 330 struct altmode *alt = to_altmode(to_typec_altmode(dev)); supported_roles_show() local 427 struct altmode *alt = to_altmode(to_typec_altmode(dev)); typec_altmode_release() local 448 struct altmode *alt; typec_register_altmode() local [all...] |
H A D | bus.c | 14 typec_altmode_set_mux(struct altmode *alt, unsigned long conf, void *data) in typec_altmode_set_mux() argument 18 if (!alt->mux) in typec_altmode_set_mux() 21 state.alt = &alt->adev; in typec_altmode_set_mux() 25 return alt->mux->set(alt->mux, &state); in typec_altmode_set_mux() 305 struct typec_altmode *alt = to_typec_altmode(dev); in description_show() local 307 return sprintf(buf, "%s\n", alt->desc ? alt->desc : ""); in description_show() 344 static int typec_altmode_create_links(struct altmode *alt) in typec_altmode_create_links() argument 361 typec_altmode_remove_links(struct altmode *alt) typec_altmode_remove_links() argument [all...] |
/kernel/linux/linux-5.10/arch/powerpc/perf/ |
H A D | power6-pmu.c | 344 unsigned int alt; in find_alternatives_list() local 350 alt = event_alternatives[i][j]; in find_alternatives_list() 351 if (!alt || event < alt) in find_alternatives_list() 353 if (event == alt) in find_alternatives_list() 360 static int p6_get_alternatives(u64 event, unsigned int flags, u64 alt[]) in p6_get_alternatives() argument 367 alt[0] = event; in p6_get_alternatives() 379 alt[nalt++] = aevent; in p6_get_alternatives() 389 alt[nalt++] = ((event ^ 0x6) & ~PM_PMC_MSKS) | in p6_get_alternatives() 394 alt[nal in p6_get_alternatives() [all...] |
/kernel/linux/linux-6.6/arch/powerpc/perf/ |
H A D | power6-pmu.c | 345 unsigned int alt; in find_alternatives_list() local 351 alt = event_alternatives[i][j]; in find_alternatives_list() 352 if (!alt || event < alt) in find_alternatives_list() 354 if (event == alt) in find_alternatives_list() 361 static int p6_get_alternatives(u64 event, unsigned int flags, u64 alt[]) in p6_get_alternatives() argument 368 alt[0] = event; in p6_get_alternatives() 380 alt[nalt++] = aevent; in p6_get_alternatives() 390 alt[nalt++] = ((event ^ 0x6) & ~PM_PMC_MSKS) | in p6_get_alternatives() 395 alt[nal in p6_get_alternatives() [all...] |
/kernel/linux/linux-6.6/arch/arm64/include/asm/ |
H A D | spectre.h | 104 void spectre_v4_patch_fw_mitigation_enable(struct alt_instr *alt, __le32 *origptr, 106 void smccc_patch_fw_mitigation_conduit(struct alt_instr *alt, __le32 *origptr, 108 void spectre_bhb_patch_loop_mitigation_enable(struct alt_instr *alt, __le32 *origptr, 110 void spectre_bhb_patch_fw_mitigation_enabled(struct alt_instr *alt, __le32 *origptr, 112 void spectre_bhb_patch_loop_iter(struct alt_instr *alt, 114 void spectre_bhb_patch_wa3(struct alt_instr *alt, 116 void spectre_bhb_patch_clearbhb(struct alt_instr *alt,
|