Home
last modified time | relevance | path

Searched refs:alt (Results 1 – 25 of 304) sorted by relevance

12345678910>>...13

/linux/include/sound/
H A Dhda-mlink.h17 int hdac_bus_eml_get_count(struct hdac_bus *bus, bool alt, int elid);
18 void hdac_bus_eml_enable_interrupt_unlocked(struct hdac_bus *bus, bool alt, int elid, bool enable);
19 void hdac_bus_eml_enable_interrupt(struct hdac_bus *bus, bool alt, int elid, bool enable);
20 bool hdac_bus_eml_check_interrupt(struct hdac_bus *bus, bool alt, int elid);
22 int hdac_bus_eml_set_syncprd_unlocked(struct hdac_bus *bus, bool alt, int elid, u32 syncprd);
25 int hdac_bus_eml_wait_syncpu_unlocked(struct hdac_bus *bus, bool alt, int elid);
28 void hdac_bus_eml_sync_arm_unlocked(struct hdac_bus *bus, bool alt, int elid, int sublink);
31 int hdac_bus_eml_sync_go_unlocked(struct hdac_bus *bus, bool alt, int elid);
34 bool hdac_bus_eml_check_cmdsync_unlocked(struct hdac_bus *bus, bool alt, int elid);
37 int hdac_bus_eml_power_up(struct hdac_bus *bus, bool alt, int elid, int sublink);
[all …]
/linux/drivers/tty/vt/
H A Ddefkeymap.map16 alt keycode 1 = Meta_Escape
18 alt keycode 2 = Meta_one
22 alt keycode 3 = Meta_two
25 alt keycode 4 = Meta_three
28 alt keycode 5 = Meta_four
31 alt keycode 6 = Meta_five
34 alt keycode 7 = Meta_six
37 alt keycode 8 = Meta_seven
40 alt keycode 9 = Meta_eight
42 alt keycode 10 = Meta_nine
[all …]
/linux/drivers/platform/chrome/
H A Dcros_typec_altmode.c21 struct typec_altmode *alt; member
47 if (typec_altmode_vdm(data->alt, data->header, data->vdo_data, in cros_typec_altmode_work()
49 dev_err(&data->alt->dev, "VDM 0x%x failed\n", data->header); in cros_typec_altmode_work()
58 static int cros_typec_altmode_enter(struct typec_altmode *alt, u32 *vdo) in cros_typec_altmode_enter() argument
60 struct cros_typec_altmode_data *adata = typec_altmode_get_drvdata(alt); in cros_typec_altmode_enter()
69 dev_warn(&alt->dev, in cros_typec_altmode_enter()
86 svdm_version = typec_altmode_get_svdm_version(alt); in cros_typec_altmode_enter()
103 static int cros_typec_altmode_exit(struct typec_altmode *alt) in cros_typec_altmode_exit() argument
105 struct cros_typec_altmode_data *adata = typec_altmode_get_drvdata(alt); in cros_typec_altmode_exit()
114 dev_warn(&alt->dev, in cros_typec_altmode_exit()
[all …]
/linux/drivers/usb/typec/altmodes/
H A Dthunderbolt.c30 struct typec_altmode *alt; member
38 static bool tbt_ready(struct typec_altmode *alt);
45 vdo = tbt->alt->vdo & (TBT_VENDOR_SPECIFIC_B0 | TBT_VENDOR_SPECIFIC_B1); in tbt_enter_mode()
46 vdo |= tbt->alt->vdo & TBT_INTEL_SPECIFIC_B0; in tbt_enter_mode()
63 return typec_altmode_enter(tbt->alt, &vdo); in tbt_enter_mode()
75 ret = typec_cable_altmode_enter(tbt->alt, TYPEC_PLUG_SOP_P, NULL); in tbt_altmode_work()
83 ret = typec_cable_altmode_enter(tbt->alt, TYPEC_PLUG_SOP_PP, NULL); in tbt_altmode_work()
93 dev_dbg(&tbt->alt->dev, "failed to enter mode (%d)\n", in tbt_altmode_work()
97 typec_altmode_exit(tbt->alt); in tbt_altmode_work()
100 typec_cable_altmode_exit(tbt->alt, TYPEC_PLUG_SOP_PP); in tbt_altmode_work()
[all …]
H A Ddisplayport.c20 #define DP_HEADER(_dp, ver, cmd) (VDO((_dp)->alt->svid, 1, ver, cmd) \
78 struct typec_altmode *alt; member
96 return typec_altmode_notify(dp->alt, conf, &dp->data); in dp_altmode_notify()
106 signal = DP_CAP_DP_SIGNALLING(dp->port->vdo) & DP_CAP_DP_SIGNALLING(dp->alt->vdo); in dp_altmode_configure()
117 pin_assign = DP_CAP_UFP_D_PIN_ASSIGN(dp->alt->vdo) & in dp_altmode_configure()
126 pin_assign = DP_CAP_PIN_ASSIGN_UFP_D(dp->alt->vdo) & in dp_altmode_configure()
194 sysfs_notify(&dp->alt->dev.kobj, "displayport", "hpd"); in dp_altmode_status_update()
197 sysfs_notify(&dp->alt->dev.kobj, "displayport", "irq_hpd"); in dp_altmode_status_update()
206 sysfs_notify(&dp->alt->dev.kobj, "displayport", "configuration"); in dp_altmode_configured()
207 sysfs_notify(&dp->alt->dev.kobj, "displayport", "pin_assignment"); in dp_altmode_configured()
[all …]
H A Dnvidia.c12 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()
/linux/tools/objtool/
H A Dspecial.c56 void __weak arch_handle_alternative(struct special_alt *alt) in arch_handle_alternative() argument
69 struct special_alt *alt) in get_alt_entry() argument
76 alt->group = entry->group; in get_alt_entry()
77 alt->jump_or_nop = entry->jump_or_nop; in get_alt_entry()
79 if (alt->group) { in get_alt_entry()
80 alt->orig_len = *(unsigned char *)(sec->data->d_buf + offset + in get_alt_entry()
82 alt->new_len = *(unsigned char *)(sec->data->d_buf + offset + in get_alt_entry()
84 alt->feature = *(unsigned int *)(sec->data->d_buf + offset + in get_alt_entry()
94 reloc_to_sec_off(orig_reloc, &alt->orig_sec, &alt->orig_off); in get_alt_entry()
96 arch_handle_alternative(alt); in get_alt_entry()
[all …]
H A Ddisas.c49 struct alternative *alt; /* alternative or NULL if default code */ member
60 #define DALT_DEFAULT(dalt) (!(dalt)->alt)
61 #define DALT_INSN(dalt) (DALT_DEFAULT(dalt) ? (dalt)->orig_insn : (dalt)->alt->insn)
626 struct alternative *alt; in disas_alt_type_name() local
630 for (alt = insn->alts; alt; alt = alt->next) { in disas_alt_type_name()
631 if (alt->type == ALT_TYPE_INSTRUCTIONS) { in disas_alt_type_name()
636 switch (alt->type) { in disas_alt_type_name()
655 char *disas_alt_name(struct alternative *alt) in disas_alt_name() argument
664 switch (alt->type) { in disas_alt_name()
689 if (!alt->insn->alt_group) in disas_alt_name()
[all …]
/linux/drivers/usb/typec/ucsi/
H A Dthunderbolt.c30 struct typec_altmode *alt; member
40 if (typec_altmode_vdm(tbt->alt, tbt->header, NULL, 0)) in ucsi_thunderbolt_work()
41 dev_err(&tbt->alt->dev, "VDM 0x%x failed\n", tbt->header); in ucsi_thunderbolt_work()
64 svdm_version = typec_altmode_get_svdm_version(tbt->alt); in ucsi_thunderbolt_set_altmode()
81 static int ucsi_thunderbolt_enter(struct typec_altmode *alt, u32 *vdo) in ucsi_thunderbolt_enter() argument
83 struct ucsi_tbt *tbt = typec_altmode_get_drvdata(alt); in ucsi_thunderbolt_enter()
101 if (cur >= UCSI_MAX_ALTMODES || con->port_altmode[cur] != alt) in ucsi_thunderbolt_enter()
117 static int ucsi_thunderbolt_exit(struct typec_altmode *alt) in ucsi_thunderbolt_exit() argument
119 struct ucsi_tbt *tbt = typec_altmode_get_drvdata(alt); in ucsi_thunderbolt_exit()
132 static int ucsi_thunderbolt_vdm(struct typec_altmode *alt, in ucsi_thunderbolt_vdm() argument
[all …]
H A Ddisplayport.c21 struct typec_altmode *alt; member
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()
61 const struct typec_altmode *p = typec_altmode_get_partner(alt); in ucsi_displayport_enter()
78 ret = dp->con->port_altmode[cur] == alt ? 0 : -EBUSY; in ucsi_displayport_enter()
88 svdm_version = typec_altmode_get_svdm_version(alt); in ucsi_displayport_enter()
109 static int ucsi_displayport_exit(struct typec_altmode *alt) in ucsi_displayport_exit() argument
111 struct ucsi_dp *dp = typec_altmode_get_drvdata(alt); in ucsi_displayport_exit()
120 const struct typec_altmode *p = typec_altmode_get_partner(alt); in ucsi_displayport_exit()
133 svdm_version = typec_altmode_get_svdm_version(alt); in ucsi_displayport_exit()
[all …]
/linux/arch/arm64/kernel/
H A Dalternative.c51 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 = region->begin; alt < region->end; alt++) { in __apply_alternatives()
[all …]
/linux/arch/riscv/errata/mips/
H A Derrata.c40 struct alt_entry *alt; in mips_errata_patch_func() local
49 for (alt = begin; alt < end; alt++) { in mips_errata_patch_func()
50 if (alt->vendor_id != MIPS_VENDOR_ID) in mips_errata_patch_func()
53 if (alt->patch_id >= ERRATA_MIPS_NUMBER) { in mips_errata_patch_func()
55 alt->patch_id); in mips_errata_patch_func()
59 tmp = (1U << alt->patch_id); in mips_errata_patch_func()
62 patch_text_nosync(ALT_OLD_PTR(alt), ALT_ALT_PTR(alt), in mips_errata_patch_func()
63 alt->alt_len); in mips_errata_patch_func()
/linux/sound/soc/sof/intel/
H A Dhda-mlink.c52 bool alt; member
118 h2link->alt = FIELD_GET(AZX_ML_HDA_LCAP_ALT, hlink->lcaps); in hdaml_lnk_enum()
121 if (!h2link->alt) { in hdaml_lnk_enum()
420 if (!h2link->alt) in hda_ml_alloc_h2link()
469 find_ext2_link(struct hdac_bus *bus, bool alt, int elid) in find_ext2_link() argument
476 if (h2link->alt == alt && h2link->elid == elid) in find_ext2_link()
483 int hdac_bus_eml_get_count(struct hdac_bus *bus, bool alt, int elid) in hdac_bus_eml_get_count() argument
487 h2link = find_ext2_link(bus, alt, elid); in hdac_bus_eml_get_count()
495 void hdac_bus_eml_enable_interrupt_unlocked(struct hdac_bus *bus, bool alt, int elid, bool enable) in hdac_bus_eml_enable_interrupt_unlocked() argument
500 h2link = find_ext2_link(bus, alt, elid); in hdac_bus_eml_enable_interrupt_unlocked()
[all …]
/linux/arch/riscv/errata/sifive/
H A Derrata.c82 struct alt_entry *alt; in sifive_errata_patch_func() local
93 for (alt = begin; alt < end; alt++) { in sifive_errata_patch_func()
94 if (alt->vendor_id != SIFIVE_VENDOR_ID) in sifive_errata_patch_func()
96 if (alt->patch_id >= ERRATA_SIFIVE_NUMBER) { in sifive_errata_patch_func()
97 WARN(1, "This errata id:%d is not in kernel errata list", alt->patch_id); in sifive_errata_patch_func()
101 tmp = (1U << alt->patch_id); in sifive_errata_patch_func()
104 patch_text_nosync(ALT_OLD_PTR(alt), ALT_ALT_PTR(alt), in sifive_errata_patch_func()
105 alt->alt_len); in sifive_errata_patch_func()
/linux/arch/powerpc/perf/
H A Dpower6-pmu.c360 unsigned int alt = presorted_event_table[mid]; in find_alternatives_list() local
362 if (alt < event) in find_alternatives_list()
364 else if (alt > event) in find_alternatives_list()
373 static int p6_get_alternatives(u64 event, unsigned int flags, u64 alt[]) in p6_get_alternatives() argument
380 alt[0] = event; in p6_get_alternatives()
392 alt[nalt++] = aevent; in p6_get_alternatives()
402 alt[nalt++] = ((event ^ 0x6) & ~PM_PMC_MSKS) | in p6_get_alternatives()
407 alt[nalt++] = ((event ^ 0x2) & ~PM_PMC_MSKS) | in p6_get_alternatives()
424 switch (alt[i]) { in p6_get_alternatives()
426 alt[j++] = 0x600005; /* PM_RUN_CYC */ in p6_get_alternatives()
[all …]
H A Dpower5+-pmu.c274 static int power5p_get_alternatives(u64 event, unsigned int flags, u64 alt[]) in power5p_get_alternatives() argument
280 alt[0] = event; in power5p_get_alternatives()
288 alt[nalt++] = ae; in power5p_get_alternatives()
294 alt[nalt++] = ae; in power5p_get_alternatives()
310 switch (alt[i]) { in power5p_get_alternatives()
312 alt[j++] = 0x600005; /* PM_RUN_CYC */ in power5p_get_alternatives()
316 alt[j++] = 0xf; in power5p_get_alternatives()
319 alt[j++] = 0x500009; /* PM_RUN_INST_CMPL */ in power5p_get_alternatives()
323 alt[j++] = 0x100009; /* PM_INST_CMPL */ in power5p_get_alternatives()
324 alt[j++] = 0x200009; in power5p_get_alternatives()
[all …]
/linux/arch/x86/include/asm/
H A Dparavirt_types.h360 #define ____PVOP_ALT_CALL(ret, array, op, alt, cond, call_clbr, \ argument
366 alt, cond) \
378 #define __PVOP_ALT_CALL(rettype, array, op, alt, cond, ...) \ argument
379 ____PVOP_ALT_CALL(PVOP_RETVAL(rettype), array, op, alt, cond, \
387 #define __PVOP_ALT_CALLEESAVE(rettype, array, op, alt, cond, ...) \ argument
388 ____PVOP_ALT_CALL(PVOP_RETVAL(rettype), array, op.func, alt, cond, \
396 #define __PVOP_ALT_VCALL(array, op, alt, cond, ...) \ argument
397 (void)____PVOP_ALT_CALL(, array, op, alt, cond, \
405 #define __PVOP_ALT_VCALLEESAVE(array, op, alt, cond, ...) \ argument
406 (void)____PVOP_ALT_CALL(, array, op.func, alt, cond, \
[all …]
/linux/tools/objtool/include/objtool/
H A Dtrace.h69 #define TRACE_ALT_BEGIN(insn, alt, alt_name) \ argument
72 alt_name = disas_alt_name(alt); \
73 trace_alt_begin(insn, alt, alt_name); \
77 #define TRACE_ALT_END(insn, alt, alt_name) \ argument
80 trace_alt_end(insn, alt, alt_name); \
110 void trace_alt_begin(struct instruction *orig_insn, struct alternative *alt,
112 void trace_alt_end(struct instruction *orig_insn, struct alternative *alt,
124 #define TRACE_ALT_BEGIN(insn, alt, alt_name) ({}) argument
125 #define TRACE_ALT_END(insn, alt, alt_name) ({}) argument
133 struct alternative *alt, in trace_alt_begin() argument
[all …]
/linux/arch/riscv/errata/thead/
H A Derrata.c193 struct alt_entry *alt; in thead_errata_patch_func() local
200 for (alt = begin; alt < end; alt++) { in thead_errata_patch_func()
201 if (alt->vendor_id != THEAD_VENDOR_ID) in thead_errata_patch_func()
203 if (alt->patch_id >= ERRATA_THEAD_NUMBER) in thead_errata_patch_func()
206 tmp = (1U << alt->patch_id); in thead_errata_patch_func()
208 oldptr = ALT_OLD_PTR(alt); in thead_errata_patch_func()
209 altptr = ALT_ALT_PTR(alt); in thead_errata_patch_func()
213 memcpy(oldptr, altptr, alt->alt_len); in thead_errata_patch_func()
216 patch_text_nosync(oldptr, altptr, alt->alt_len); in thead_errata_patch_func()
/linux/drivers/usb/typec/
H A Dbus.c17 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->mux, &state); in typec_altmode_set_mux()
48 typec_altmode_set_switches(struct altmode *alt, unsigned long conf, void *data) in typec_altmode_set_switches() argument
52 ret = typec_altmode_set_retimer(alt, conf, data); in typec_altmode_set_switches()
[all …]
H A Dclass.c329 struct typec_port *typec_altmode2port(struct typec_altmode *alt) in typec_altmode2port() argument
331 if (is_typec_plug(alt->dev.parent)) in typec_altmode2port()
332 return to_typec_port(alt->dev.parent->parent->parent); in typec_altmode2port()
333 if (is_typec_partner(alt->dev.parent)) in typec_altmode2port()
334 return to_typec_port(alt->dev.parent->parent); in typec_altmode2port()
335 if (is_typec_port(alt->dev.parent)) in typec_altmode2port()
336 return to_typec_port(alt->dev.parent); in typec_altmode2port()
345 struct typec_altmode *alt = to_typec_altmode(dev); in vdo_show() local
347 return sprintf(buf, "0x%08x\n", alt->vdo); in vdo_show()
354 struct typec_altmode *alt = to_typec_altmode(dev); in description_show() local
[all …]
/linux/drivers/usb/storage/
H A Duas-detect.h19 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, eps); in uas_use_uas_driver()
/linux/tools/objtool/arch/x86/
H A Dspecial.c12 void arch_handle_alternative(struct special_alt *alt) in arch_handle_alternative() argument
19 if (group && group->orig_sec == alt->orig_sec && in arch_handle_alternative()
20 group->orig_off == alt->orig_off) { in arch_handle_alternative()
24 unsigned int len = max(iter->orig_len, alt->orig_len); in arch_handle_alternative()
25 iter->orig_len = alt->orig_len = len; in arch_handle_alternative()
33 } else group = alt; in arch_handle_alternative()
35 prev = alt; in arch_handle_alternative()
/linux/arch/arm64/include/asm/
H A Dspectre.h106 void spectre_v4_patch_fw_mitigation_enable(struct alt_instr *alt, __le32 *origptr,
108 void smccc_patch_fw_mitigation_conduit(struct alt_instr *alt, __le32 *origptr,
110 void spectre_bhb_patch_loop_mitigation_enable(struct alt_instr *alt, __le32 *origptr,
112 void spectre_bhb_patch_fw_mitigation_enabled(struct alt_instr *alt, __le32 *origptr,
114 void spectre_bhb_patch_loop_iter(struct alt_instr *alt,
116 void spectre_bhb_patch_wa3(struct alt_instr *alt,
118 void spectre_bhb_patch_clearbhb(struct alt_instr *alt,
/linux/arch/arm/boot/dts/aspeed/
H A Dopenbmc-flash-layout-64-alt.dtsi13 label = "alt-u-boot";
18 label = "alt-u-boot-env";
23 label = "alt-kernel";
28 label = "alt-rofs";
33 label = "alt-rwfs";

12345678910>>...13