alt                25 arch/arm64/include/asm/alternative.h typedef void (*alternative_cb_t)(struct alt_instr *alt,
alt                92 arch/arm64/include/asm/kvm_mmu.h void kvm_update_va_mask(struct alt_instr *alt,
alt               188 arch/arm64/include/asm/uaccess.h #define __uaccess_disable(alt)						\
alt               191 arch/arm64/include/asm/uaccess.h 		asm(ALTERNATIVE("nop", SET_PSTATE_PAN(1), alt,		\
alt               195 arch/arm64/include/asm/uaccess.h #define __uaccess_enable(alt)						\
alt               198 arch/arm64/include/asm/uaccess.h 		asm(ALTERNATIVE("nop", SET_PSTATE_PAN(0), alt,		\
alt                44 arch/arm64/kernel/alternative.c static bool branch_insn_requires_update(struct alt_instr *alt, unsigned long pc)
alt                51 arch/arm64/kernel/alternative.c 	replptr = (unsigned long)ALT_REPL_PTR(alt);
alt                52 arch/arm64/kernel/alternative.c 	if (pc >= replptr && pc <= (replptr + alt->alt_len))
alt                64 arch/arm64/kernel/alternative.c static u32 get_alt_insn(struct alt_instr *alt, __le32 *insnptr, __le32 *altinsnptr)
alt                81 arch/arm64/kernel/alternative.c 		if (branch_insn_requires_update(alt, target)) {
alt               109 arch/arm64/kernel/alternative.c static void patch_alternative(struct alt_instr *alt,
alt               115 arch/arm64/kernel/alternative.c 	replptr = ALT_REPL_PTR(alt);
alt               119 arch/arm64/kernel/alternative.c 		insn = get_alt_insn(alt, origptr + i, replptr + i);
alt               150 arch/arm64/kernel/alternative.c 	struct alt_instr *alt;
alt               155 arch/arm64/kernel/alternative.c 	for (alt = region->begin; alt < region->end; alt++) {
alt               158 arch/arm64/kernel/alternative.c 		if (!test_bit(alt->cpufeature, feature_mask))
alt               162 arch/arm64/kernel/alternative.c 		if (alt->cpufeature < ARM64_CB_PATCH &&
alt               163 arch/arm64/kernel/alternative.c 		    !cpus_have_cap(alt->cpufeature))
alt               166 arch/arm64/kernel/alternative.c 		if (alt->cpufeature == ARM64_CB_PATCH)
alt               167 arch/arm64/kernel/alternative.c 			BUG_ON(alt->alt_len != 0);
alt               169 arch/arm64/kernel/alternative.c 			BUG_ON(alt->alt_len != alt->orig_len);
alt               173 arch/arm64/kernel/alternative.c 		origptr = ALT_ORIG_PTR(alt);
alt               175 arch/arm64/kernel/alternative.c 		nr_inst = alt->orig_len / AARCH64_INSN_SIZE;
alt               177 arch/arm64/kernel/alternative.c 		if (alt->cpufeature < ARM64_CB_PATCH)
alt               180 arch/arm64/kernel/alternative.c 			alt_cb  = ALT_REPL_PTR(alt);
alt               182 arch/arm64/kernel/alternative.c 		alt_cb(alt, origptr, updptr, nr_inst);
alt               312 arch/arm64/kernel/cpu_errata.c void __init arm64_update_smccc_conduit(struct alt_instr *alt,
alt               334 arch/arm64/kernel/cpu_errata.c void __init arm64_enable_wa2_handling(struct alt_instr *alt,
alt               106 arch/arm64/kvm/va_layout.c void __init kvm_update_va_mask(struct alt_instr *alt,
alt               146 arch/arm64/kvm/va_layout.c void kvm_patch_vector_branch(struct alt_instr *alt,
alt                56 arch/powerpc/include/asm/mpc5121.h 	u32	alt;		/* Address Latch Timing Register */
alt                36 arch/powerpc/include/asm/perf_event_server.h 				u64 alt[]);
alt              1738 arch/powerpc/perf/core-book3s.c 	u64 alt[MAX_EVENT_ALTERNATIVES];
alt              1757 arch/powerpc/perf/core-book3s.c 	n = ppmu->get_alternatives(ev, flags, alt);
alt              1769 arch/powerpc/perf/core-book3s.c 	u64 alt[MAX_EVENT_ALTERNATIVES];
alt              1773 arch/powerpc/perf/core-book3s.c 	n = ppmu->get_alternatives(ev, flags, alt);
alt              1776 arch/powerpc/perf/core-book3s.c 	return alt[0];
alt               509 arch/powerpc/perf/isa207-common.c int isa207_get_alternatives(u64 event, u64 alt[], int size, unsigned int flags,
alt               515 arch/powerpc/perf/isa207-common.c 	alt[num_alt++] = event;
alt               522 arch/powerpc/perf/isa207-common.c 				alt[num_alt++] = alt_event;
alt               533 arch/powerpc/perf/isa207-common.c 			switch (alt[i]) {
alt               535 arch/powerpc/perf/isa207-common.c 				alt[j++] = 0x600f4;	/* PM_RUN_CYC */
alt               538 arch/powerpc/perf/isa207-common.c 				alt[j++] = 0x1e;
alt               541 arch/powerpc/perf/isa207-common.c 				alt[j++] = 0x500fa;	/* PM_RUN_INST_CMPL */
alt               544 arch/powerpc/perf/isa207-common.c 				alt[j++] = 0x2;
alt               223 arch/powerpc/perf/isa207-common.h int isa207_get_alternatives(u64 event, u64 alt[], int size, unsigned int flags,
alt               222 arch/powerpc/perf/mpc7450-pmu.c static int mpc7450_get_alternatives(u64 event, unsigned int flags, u64 alt[])
alt               227 arch/powerpc/perf/mpc7450-pmu.c 	alt[0] = event;
alt               234 arch/powerpc/perf/mpc7450-pmu.c 				alt[nalt++] = ae;
alt               272 arch/powerpc/perf/power5+-pmu.c static int power5p_get_alternatives(u64 event, unsigned int flags, u64 alt[])
alt               278 arch/powerpc/perf/power5+-pmu.c 	alt[0] = event;
alt               286 arch/powerpc/perf/power5+-pmu.c 				alt[nalt++] = ae;
alt               292 arch/powerpc/perf/power5+-pmu.c 			alt[nalt++] = ae;
alt               308 arch/powerpc/perf/power5+-pmu.c 			switch (alt[i]) {
alt               310 arch/powerpc/perf/power5+-pmu.c 				alt[j++] = 0x600005;	/* PM_RUN_CYC */
alt               314 arch/powerpc/perf/power5+-pmu.c 				alt[j++] = 0xf;
alt               317 arch/powerpc/perf/power5+-pmu.c 				alt[j++] = 0x500009;	/* PM_RUN_INST_CMPL */
alt               321 arch/powerpc/perf/power5+-pmu.c 				alt[j++] = 0x100009;	/* PM_INST_CMPL */
alt               322 arch/powerpc/perf/power5+-pmu.c 				alt[j++] = 0x200009;
alt               333 arch/powerpc/perf/power5+-pmu.c 			if (!power5p_limited_pmc_event(alt[i])) {
alt               334 arch/powerpc/perf/power5+-pmu.c 				alt[j] = alt[i];
alt               343 arch/powerpc/perf/power5+-pmu.c 			if (power5p_limited_pmc_event(alt[i])) {
alt               344 arch/powerpc/perf/power5+-pmu.c 				alt[j] = alt[i];
alt               268 arch/powerpc/perf/power5-pmu.c static int power5_get_alternatives(u64 event, unsigned int flags, u64 alt[])
alt               273 arch/powerpc/perf/power5-pmu.c 	alt[0] = event;
alt               280 arch/powerpc/perf/power5-pmu.c 				alt[nalt++] = ae;
alt               285 arch/powerpc/perf/power5-pmu.c 			alt[nalt++] = ae;
alt               342 arch/powerpc/perf/power6-pmu.c 	unsigned int alt;
alt               348 arch/powerpc/perf/power6-pmu.c 			alt = event_alternatives[i][j];
alt               349 arch/powerpc/perf/power6-pmu.c 			if (!alt || event < alt)
alt               351 arch/powerpc/perf/power6-pmu.c 			if (event == alt)
alt               358 arch/powerpc/perf/power6-pmu.c static int p6_get_alternatives(u64 event, unsigned int flags, u64 alt[])
alt               365 arch/powerpc/perf/power6-pmu.c 	alt[0] = event;
alt               377 arch/powerpc/perf/power6-pmu.c 				alt[nalt++] = aevent;
alt               387 arch/powerpc/perf/power6-pmu.c 			alt[nalt++] = ((event ^ 0x6) & ~PM_PMC_MSKS) |
alt               392 arch/powerpc/perf/power6-pmu.c 			alt[nalt++] = ((event ^ 0x2) & ~PM_PMC_MSKS) |
alt               409 arch/powerpc/perf/power6-pmu.c 			switch (alt[i]) {
alt               411 arch/powerpc/perf/power6-pmu.c 				alt[j++] = 0x600005;	/* PM_RUN_CYC */
alt               415 arch/powerpc/perf/power6-pmu.c 				alt[j++] = 0x1e;	/* PM_CYC */
alt               418 arch/powerpc/perf/power6-pmu.c 				alt[j++] = 0x500009;	/* PM_RUN_INST_CMPL */
alt               422 arch/powerpc/perf/power6-pmu.c 				alt[j++] = 2;		/* PM_INST_CMPL */
alt               425 arch/powerpc/perf/power6-pmu.c 				alt[j++] = 0x4000f4;	/* PM_RUN_PURR */
alt               428 arch/powerpc/perf/power6-pmu.c 				alt[j++] = 0x10000e;	/* PM_PURR */
alt               439 arch/powerpc/perf/power6-pmu.c 			if (!p6_limited_pmc_event(alt[i])) {
alt               440 arch/powerpc/perf/power6-pmu.c 				alt[j] = alt[i];
alt               449 arch/powerpc/perf/power6-pmu.c 			if (p6_limited_pmc_event(alt[i])) {
alt               450 arch/powerpc/perf/power6-pmu.c 				alt[j] = alt[i];
alt               156 arch/powerpc/perf/power7-pmu.c static int power7_get_alternatives(u64 event, unsigned int flags, u64 alt[])
alt               161 arch/powerpc/perf/power7-pmu.c 	alt[0] = event;
alt               168 arch/powerpc/perf/power7-pmu.c 				alt[nalt++] = ae;
alt               173 arch/powerpc/perf/power7-pmu.c 			alt[nalt++] = ae;
alt               186 arch/powerpc/perf/power7-pmu.c 			switch (alt[i]) {
alt               188 arch/powerpc/perf/power7-pmu.c 				alt[j++] = 0x600f4;	/* PM_RUN_CYC */
alt               191 arch/powerpc/perf/power7-pmu.c 				alt[j++] = 0x1e;
alt               194 arch/powerpc/perf/power7-pmu.c 				alt[j++] = 0x500fa;	/* PM_RUN_INST_CMPL */
alt               197 arch/powerpc/perf/power7-pmu.c 				alt[j++] = 0x2;	/* PM_PPC_CMPL */
alt               112 arch/powerpc/perf/power8-pmu.c static int power8_get_alternatives(u64 event, unsigned int flags, u64 alt[])
alt               116 arch/powerpc/perf/power8-pmu.c 	num_alt = isa207_get_alternatives(event, alt,
alt               141 arch/powerpc/perf/power9-pmu.c static int power9_get_alternatives(u64 event, unsigned int flags, u64 alt[])
alt               145 arch/powerpc/perf/power9-pmu.c 	num_alt = isa207_get_alternatives(event, alt,
alt               242 arch/powerpc/perf/ppc970-pmu.c static int p970_get_alternatives(u64 event, unsigned int flags, u64 alt[])
alt               244 arch/powerpc/perf/ppc970-pmu.c 	alt[0] = event;
alt               248 arch/powerpc/perf/ppc970-pmu.c 		alt[1] = event ^ 0x1000;
alt                35 arch/x86/entry/vdso/vma.c 	apply_alternatives((struct alt_instr *)(image->data + image->alt),
alt                36 arch/x86/entry/vdso/vma.c 			   (struct alt_instr *)(image->data + image->alt +
alt                39 arch/x86/include/asm/alternative-asm.h .macro altinstruction_entry orig alt feature orig_len alt_len pad_len
alt                17 arch/x86/include/asm/vdso.h 	unsigned long alt, alt_len;
alt                17 arch/x86/kernel/livepatch.c 	Elf_Shdr *s, *alt = NULL, *para = NULL;
alt                39 arch/x86/kernel/livepatch.c 			alt = s;
alt                44 arch/x86/kernel/livepatch.c 	if (alt) {
alt                45 arch/x86/kernel/livepatch.c 		aseg = (void *) alt->sh_addr;
alt                46 arch/x86/kernel/livepatch.c 		apply_alternatives(aseg, aseg + alt->sh_size);
alt               224 arch/x86/kernel/module.c 	const Elf_Shdr *s, *text = NULL, *alt = NULL, *locks = NULL,
alt               232 arch/x86/kernel/module.c 			alt = s;
alt               243 arch/x86/kernel/module.c 	if (alt) {
alt               245 arch/x86/kernel/module.c 		void *aseg = (void *)alt->sh_addr;
alt               246 arch/x86/kernel/module.c 		apply_alternatives(aseg, aseg + alt->sh_size);
alt               280 drivers/ata/pata_artop.c 	struct ata_port *alt = host->ports[1 ^ qc->ap->port_no];
alt               290 drivers/ata/pata_artop.c 	if (alt && alt->qc_active)
alt               315 drivers/ata/pata_hpt3x2n.c 	struct ata_port *alt = ap->host->ports[ap->port_no ^ 1];
alt               324 drivers/ata/pata_hpt3x2n.c 	if ((flags & USE_DPLL) != dpll && alt->qc_active)
alt               180 drivers/ata/pata_sc1200.c 	struct ata_port *alt = host->ports[1 ^ qc->ap->port_no];
alt               190 drivers/ata/pata_sc1200.c 	if (alt && alt->qc_active)
alt               216 drivers/ata/pata_sl82c105.c 	struct ata_port *alt = host->ports[1 ^ qc->ap->port_no];
alt               226 drivers/ata/pata_sl82c105.c 	if (alt && alt->qc_active)
alt              1573 drivers/gpu/drm/i915/display/intel_panel.c 	bool alt, cpu_mode;
alt              1576 drivers/gpu/drm/i915/display/intel_panel.c 		alt = I915_READ(SOUTH_CHICKEN2) & LPT_PWM_GRANULARITY;
alt              1578 drivers/gpu/drm/i915/display/intel_panel.c 		alt = I915_READ(SOUTH_CHICKEN1) & SPT_PWM_GRANULARITY;
alt              1579 drivers/gpu/drm/i915/display/intel_panel.c 	panel->backlight.alternate_pwm_increment = alt;
alt               135 drivers/infiniband/core/security.c 	if (pps->alt.state != IB_PORT_PKEY_NOT_VALID) {
alt               136 drivers/infiniband/core/security.c 		ret = get_pkey_and_subnet_prefix(&pps->alt,
alt               358 drivers/infiniband/core/security.c 		new_pps->alt.port_num = qp_attr->alt_port_num;
alt               359 drivers/infiniband/core/security.c 		new_pps->alt.pkey_index = qp_attr->alt_pkey_index;
alt               360 drivers/infiniband/core/security.c 		new_pps->alt.state = IB_PORT_PKEY_VALID;
alt               362 drivers/infiniband/core/security.c 		new_pps->alt.port_num = qp_pps->alt.port_num;
alt               363 drivers/infiniband/core/security.c 		new_pps->alt.pkey_index = qp_pps->alt.pkey_index;
alt               364 drivers/infiniband/core/security.c 		if (qp_pps->alt.state != IB_PORT_PKEY_NOT_VALID)
alt               365 drivers/infiniband/core/security.c 			new_pps->alt.state = IB_PORT_PKEY_VALID;
alt               369 drivers/infiniband/core/security.c 	new_pps->alt.sec = qp->qp_sec;
alt               464 drivers/infiniband/core/security.c 		port_pkey_list_remove(&sec->ports_pkeys->alt);
alt               511 drivers/infiniband/core/security.c 		port_pkey_list_insert(&sec->ports_pkeys->alt);
alt               617 drivers/infiniband/core/security.c 			ret = port_pkey_list_insert(&new_pps->alt);
alt               643 drivers/infiniband/core/security.c 			port_pkey_list_remove(&tmp_pps->alt);
alt               342 drivers/infiniband/hw/mlx4/mlx4_ib.h 	struct mlx4_roce_smac_vlan_info alt;
alt               762 drivers/infiniband/hw/mlx4/qp.c 	qp->alt.vid = 0xFFFF;
alt              1060 drivers/infiniband/hw/mlx4/qp.c 		qp->alt.vid = 0xFFFF;
alt              1433 drivers/infiniband/hw/mlx4/qp.c 		if (qp->alt.smac) {
alt              1434 drivers/infiniband/hw/mlx4/qp.c 			mlx4_unregister_mac(dev->dev, qp->alt.smac_port, qp->alt.smac);
alt              1435 drivers/infiniband/hw/mlx4/qp.c 			qp->alt.smac = 0;
alt              1443 drivers/infiniband/hw/mlx4/qp.c 		if (qp->alt.vid < 0x1000) {
alt              1444 drivers/infiniband/hw/mlx4/qp.c 			mlx4_unregister_vlan(dev->dev, qp->alt.vlan_port, qp->alt.vid);
alt              1445 drivers/infiniband/hw/mlx4/qp.c 			qp->alt.vid = 0xFFFF;
alt              1446 drivers/infiniband/hw/mlx4/qp.c 			qp->alt.candidate_vid = 0xFFFF;
alt              1447 drivers/infiniband/hw/mlx4/qp.c 			qp->alt.update_vid = 0;
alt              1594 drivers/infiniband/hw/mlx4/qp.c 		qp->alt.vid = 0xFFFF;
alt              1934 drivers/infiniband/hw/mlx4/qp.c 			      path, &mqp->alt, port);
alt              2622 drivers/infiniband/hw/mlx4/qp.c 		if (qp->alt.smac) {
alt              2623 drivers/infiniband/hw/mlx4/qp.c 			mlx4_unregister_mac(dev->dev, qp->alt.smac_port, qp->alt.smac);
alt              2624 drivers/infiniband/hw/mlx4/qp.c 			qp->alt.smac = 0;
alt              2633 drivers/infiniband/hw/mlx4/qp.c 		if (qp->alt.vid < 0x1000) {
alt              2634 drivers/infiniband/hw/mlx4/qp.c 			mlx4_unregister_vlan(dev->dev, qp->alt.vlan_port, qp->alt.vid);
alt              2635 drivers/infiniband/hw/mlx4/qp.c 			qp->alt.vid = 0xFFFF;
alt              2636 drivers/infiniband/hw/mlx4/qp.c 			qp->alt.candidate_vid = 0xFFFF;
alt              2637 drivers/infiniband/hw/mlx4/qp.c 			qp->alt.update_vid = 0;
alt              2661 drivers/infiniband/hw/mlx4/qp.c 	if (qp->alt.candidate_smac) {
alt              2663 drivers/infiniband/hw/mlx4/qp.c 			mlx4_unregister_mac(dev->dev, qp->alt.candidate_smac_port, qp->alt.candidate_smac);
alt              2665 drivers/infiniband/hw/mlx4/qp.c 			if (qp->alt.smac)
alt              2666 drivers/infiniband/hw/mlx4/qp.c 				mlx4_unregister_mac(dev->dev, qp->alt.smac_port, qp->alt.smac);
alt              2667 drivers/infiniband/hw/mlx4/qp.c 			qp->alt.smac = qp->alt.candidate_smac;
alt              2668 drivers/infiniband/hw/mlx4/qp.c 			qp->alt.smac_index = qp->alt.candidate_smac_index;
alt              2669 drivers/infiniband/hw/mlx4/qp.c 			qp->alt.smac_port = qp->alt.candidate_smac_port;
alt              2671 drivers/infiniband/hw/mlx4/qp.c 		qp->alt.candidate_smac = 0;
alt              2672 drivers/infiniband/hw/mlx4/qp.c 		qp->alt.candidate_smac_index = 0;
alt              2673 drivers/infiniband/hw/mlx4/qp.c 		qp->alt.candidate_smac_port = 0;
alt              2693 drivers/infiniband/hw/mlx4/qp.c 	if (qp->alt.update_vid) {
alt              2695 drivers/infiniband/hw/mlx4/qp.c 			if (qp->alt.candidate_vid < 0x1000)
alt              2696 drivers/infiniband/hw/mlx4/qp.c 				mlx4_unregister_vlan(dev->dev, qp->alt.candidate_vlan_port,
alt              2697 drivers/infiniband/hw/mlx4/qp.c 						     qp->alt.candidate_vid);
alt              2699 drivers/infiniband/hw/mlx4/qp.c 			if (qp->alt.vid < 0x1000)
alt              2700 drivers/infiniband/hw/mlx4/qp.c 				mlx4_unregister_vlan(dev->dev, qp->alt.vlan_port,
alt              2701 drivers/infiniband/hw/mlx4/qp.c 						     qp->alt.vid);
alt              2702 drivers/infiniband/hw/mlx4/qp.c 			qp->alt.vid = qp->alt.candidate_vid;
alt              2703 drivers/infiniband/hw/mlx4/qp.c 			qp->alt.vlan_port = qp->alt.candidate_vlan_port;
alt              2704 drivers/infiniband/hw/mlx4/qp.c 			qp->alt.vlan_index =  qp->alt.candidate_vlan_index;
alt              2706 drivers/infiniband/hw/mlx4/qp.c 		qp->alt.candidate_vid = 0xFFFF;
alt              2707 drivers/infiniband/hw/mlx4/qp.c 		qp->alt.update_vid = 0;
alt              4176 drivers/infiniband/hw/mlx4/qp.c 	qp->alt.vid = 0xFFFF;
alt              2911 drivers/infiniband/hw/mlx5/qp.c 			 bool alt)
alt              2920 drivers/infiniband/hw/mlx5/qp.c 		path->pkey_index = cpu_to_be16(alt ? attr->alt_pkey_index :
alt              2975 drivers/infiniband/hw/mlx5/qp.c 		path->ackto_lt = (alt ? attr->alt_timeout : attr->timeout) << 3;
alt               802 drivers/input/misc/ati_remote2.c 	struct usb_host_interface *alt = interface->cur_altsetting;
alt               806 drivers/input/misc/ati_remote2.c 	if (alt->desc.bInterfaceNumber)
alt               816 drivers/input/misc/ati_remote2.c 	if (alt->desc.bNumEndpoints < 1 || !alt->endpoint) {
alt               823 drivers/input/misc/ati_remote2.c 	ar2->ep[0] = &alt->endpoint[0].desc;
alt               839 drivers/input/misc/ati_remote2.c 	alt = ar2->intf[1]->cur_altsetting;
alt               840 drivers/input/misc/ati_remote2.c 	if (alt->desc.bNumEndpoints < 1 || !alt->endpoint) {
alt               846 drivers/input/misc/ati_remote2.c 	ar2->ep[1] = &alt->endpoint[0].desc;
alt               893 drivers/input/misc/ati_remote2.c 	struct usb_host_interface *alt = interface->cur_altsetting;
alt               895 drivers/input/misc/ati_remote2.c 	if (alt->desc.bInterfaceNumber)
alt               916 drivers/input/misc/ati_remote2.c 	struct usb_host_interface *alt = interface->cur_altsetting;
alt               918 drivers/input/misc/ati_remote2.c 	if (alt->desc.bInterfaceNumber)
alt               940 drivers/input/misc/ati_remote2.c 	struct usb_host_interface *alt = interface->cur_altsetting;
alt               943 drivers/input/misc/ati_remote2.c 	if (alt->desc.bInterfaceNumber)
alt               966 drivers/input/misc/ati_remote2.c 	struct usb_host_interface *alt = interface->cur_altsetting;
alt               969 drivers/input/misc/ati_remote2.c 	if (alt->desc.bInterfaceNumber)
alt               997 drivers/input/misc/ati_remote2.c 	struct usb_host_interface *alt = interface->cur_altsetting;
alt               999 drivers/input/misc/ati_remote2.c 	if (alt->desc.bInterfaceNumber)
alt              1017 drivers/input/misc/ati_remote2.c 	struct usb_host_interface *alt = interface->cur_altsetting;
alt              1020 drivers/input/misc/ati_remote2.c 	if (alt->desc.bInterfaceNumber)
alt              1656 drivers/input/misc/ims-pcu.c 	struct usb_host_interface *alt;
alt              1667 drivers/input/misc/ims-pcu.c 	alt = pcu->ctrl_intf->cur_altsetting;
alt              1669 drivers/input/misc/ims-pcu.c 	if (alt->desc.bNumEndpoints < 1)
alt              1672 drivers/input/misc/ims-pcu.c 	pcu->ep_ctrl = &alt->endpoint[0].desc;
alt              1680 drivers/input/misc/ims-pcu.c 	alt = pcu->data_intf->cur_altsetting;
alt              1681 drivers/input/misc/ims-pcu.c 	if (alt->desc.bNumEndpoints != 2) {
alt              1684 drivers/input/misc/ims-pcu.c 			alt->desc.bNumEndpoints);
alt              1688 drivers/input/misc/ims-pcu.c 	pcu->ep_out = &alt->endpoint[0].desc;
alt              1703 drivers/input/misc/ims-pcu.c 	pcu->ep_in = &alt->endpoint[1].desc;
alt              2063 drivers/input/misc/ims-pcu.c 	struct usb_host_interface *alt = intf->cur_altsetting;
alt              2071 drivers/input/misc/ims-pcu.c 	if (alt->desc.bInterfaceClass != USB_CLASS_COMM)
alt              2092 drivers/input/misc/ims-pcu.c 	struct usb_host_interface *alt = intf->cur_altsetting;
alt              2094 drivers/input/misc/ims-pcu.c 	if (alt->desc.bInterfaceClass == USB_CLASS_COMM)
alt              2103 drivers/input/misc/ims-pcu.c 	struct usb_host_interface *alt = intf->cur_altsetting;
alt              2106 drivers/input/misc/ims-pcu.c 	if (alt->desc.bInterfaceClass == USB_CLASS_COMM) {
alt              1284 drivers/irqchip/irq-gic.c 		void __iomem *alt;
alt              1297 drivers/irqchip/irq-gic.c 		alt = ioremap(cpuif_res.start, SZ_8K);
alt              1298 drivers/irqchip/irq-gic.c 		if (!alt)
alt              1300 drivers/irqchip/irq-gic.c 		if (!gic_check_gicv2(alt + SZ_4K)) {
alt              1309 drivers/irqchip/irq-gic.c 			*base = alt;
alt              1319 drivers/irqchip/irq-gic.c 		iounmap(alt);
alt              1320 drivers/irqchip/irq-gic.c 		alt = ioremap(cpuif_res.start, SZ_128K);
alt              1321 drivers/irqchip/irq-gic.c 		if (!alt)
alt              1327 drivers/irqchip/irq-gic.c 		*base = alt;
alt               372 drivers/media/i2c/ov9640.c 			      struct ov9640_reg_alt *alt)
alt               377 drivers/media/i2c/ov9640.c 		alt->com12	= OV9640_COM12_YUV_AVG;
alt               378 drivers/media/i2c/ov9640.c 		alt->com13	= OV9640_COM13_Y_DELAY_EN |
alt               382 drivers/media/i2c/ov9640.c 		alt->com7	= OV9640_COM7_RGB;
alt               383 drivers/media/i2c/ov9640.c 		alt->com13	= OV9640_COM13_RGB_AVG;
alt               384 drivers/media/i2c/ov9640.c 		alt->com15	= OV9640_COM15_RGB_555;
alt               387 drivers/media/i2c/ov9640.c 		alt->com7	= OV9640_COM7_RGB;
alt               388 drivers/media/i2c/ov9640.c 		alt->com13	= OV9640_COM13_RGB_AVG;
alt               389 drivers/media/i2c/ov9640.c 		alt->com15	= OV9640_COM15_RGB_565;
alt                62 drivers/media/platform/vivid/vivid-radio-common.c 	bool alt = dev->radio_rx_rds_use_alternates;
alt                83 drivers/media/platform/vivid/vivid-radio-common.c 			dev->radio_tx_rds_radiotext->p_cur.p_char + alt * 64,
alt                87 drivers/media/platform/vivid/vivid-radio-common.c 		vivid_rds_gen_fill(rds, dev->radio_rx_freq, alt);
alt               130 drivers/media/platform/vivid/vivid-rds-gen.c 			  bool alt)
alt               135 drivers/media/platform/vivid/vivid-rds-gen.c 		rds->pty = alt ? 29 : 2;
alt               138 drivers/media/platform/vivid/vivid-rds-gen.c 		rds->pty = alt ? 16 : 3;
alt               145 drivers/media/platform/vivid/vivid-rds-gen.c 	rds->ta = alt;
alt               149 drivers/media/platform/vivid/vivid-rds-gen.c 	if (alt)
alt               252 drivers/media/usb/au0828/au0828.h 	int alt;		/* alternate */
alt               456 drivers/media/usb/cpia2/cpia2.h 					 unsigned int alt);
alt                51 drivers/media/usb/cpia2/cpia2_usb.c static int set_alternate(struct camera_data *cam, unsigned int alt);
alt                52 drivers/media/usb/cpia2/cpia2_usb.c static int configure_transfer_mode(struct camera_data *cam, unsigned int alt);
alt               371 drivers/media/usb/cpia2/cpia2_usb.c static int configure_transfer_mode(struct camera_data *cam, unsigned int alt)
alt               393 drivers/media/usb/cpia2/cpia2_usb.c 	cmd.buffer.block_data[0] = iso_regs[alt][0];
alt               394 drivers/media/usb/cpia2/cpia2_usb.c 	cmd.buffer.block_data[1] = iso_regs[alt][1];
alt               395 drivers/media/usb/cpia2/cpia2_usb.c 	cmd.buffer.block_data[2] = iso_regs[alt][2];
alt               396 drivers/media/usb/cpia2/cpia2_usb.c 	cmd.buffer.block_data[3] = iso_regs[alt][3];
alt               418 drivers/media/usb/cpia2/cpia2_usb.c 	if (alt == USBIF_BULK) {
alt               422 drivers/media/usb/cpia2/cpia2_usb.c 	} else if (alt >= USBIF_ISO_1) {
alt               444 drivers/media/usb/cpia2/cpia2_usb.c 					 unsigned int alt)
alt               448 drivers/media/usb/cpia2/cpia2_usb.c 	if(alt < USBIF_ISO_1 || alt > USBIF_ISO_6)
alt               451 drivers/media/usb/cpia2/cpia2_usb.c 	if(alt == cam->params.camera_state.stream_mode)
alt               456 drivers/media/usb/cpia2/cpia2_usb.c 	configure_transfer_mode(cam, alt);
alt               458 drivers/media/usb/cpia2/cpia2_usb.c 	cam->params.camera_state.stream_mode = alt;
alt               473 drivers/media/usb/cpia2/cpia2_usb.c static int set_alternate(struct camera_data *cam, unsigned int alt)
alt               477 drivers/media/usb/cpia2/cpia2_usb.c 	if(alt == cam->cur_alt)
alt               486 drivers/media/usb/cpia2/cpia2_usb.c 	if (alt != USBIF_CMDONLY) {
alt               487 drivers/media/usb/cpia2/cpia2_usb.c 		DBG("Changing from alt %d to %d\n", USBIF_CMDONLY, alt);
alt               488 drivers/media/usb/cpia2/cpia2_usb.c 		ret = usb_set_interface(cam->dev, cam->iface, alt);
alt               494 drivers/media/usb/cpia2/cpia2_usb.c 	cam->cur_alt = alt;
alt              1736 drivers/media/usb/cx231xx/cx231xx-cards.c 	dev->video_mode.alt = -1;
alt                37 drivers/media/usb/cx231xx/cx231xx-core.c static int alt = CX231XX_PINOUT;
alt                38 drivers/media/usb/cx231xx/cx231xx-core.c module_param(alt, int, 0644);
alt                39 drivers/media/usb/cx231xx/cx231xx-core.c MODULE_PARM_DESC(alt, "alternate setting to use for video endpoint");
alt               460 drivers/media/usb/cx231xx/cx231xx-core.c 	int errCode, prev_alt = dev->video_mode.alt;
alt               473 drivers/media/usb/cx231xx/cx231xx-core.c 		dev->video_mode.alt = 3;
alt               476 drivers/media/usb/cx231xx/cx231xx-core.c 		dev->video_mode.alt = 2;
alt               479 drivers/media/usb/cx231xx/cx231xx-core.c 		dev->video_mode.alt = 1;
alt               482 drivers/media/usb/cx231xx/cx231xx-core.c 		dev->video_mode.alt = 0;
alt               486 drivers/media/usb/cx231xx/cx231xx-core.c 		dev->video_mode.alt = 0;
alt               488 drivers/media/usb/cx231xx/cx231xx-core.c 	cx231xx_coredbg("dev->video_mode.alt= %d\n", dev->video_mode.alt);
alt               495 drivers/media/usb/cx231xx/cx231xx-core.c 	if (dev->video_mode.alt != prev_alt) {
alt               497 drivers/media/usb/cx231xx/cx231xx-core.c 				min_pkt_size, dev->video_mode.alt);
alt               501 drivers/media/usb/cx231xx/cx231xx-core.c 			dev->video_mode.alt_max_pkt_size[dev->video_mode.alt];
alt               503 drivers/media/usb/cx231xx/cx231xx-core.c 				dev->video_mode.alt,
alt               507 drivers/media/usb/cx231xx/cx231xx-core.c 				      dev->video_mode.alt);
alt               511 drivers/media/usb/cx231xx/cx231xx-core.c 				dev->video_mode.alt, errCode);
alt               518 drivers/media/usb/cx231xx/cx231xx-core.c int cx231xx_set_alt_setting(struct cx231xx *dev, u8 index, u8 alt)
alt               529 drivers/media/usb/cx231xx/cx231xx-core.c 		dev->ts1_mode.alt = alt;
alt               532 drivers/media/usb/cx231xx/cx231xx-core.c 			    dev->ts1_mode.alt_max_pkt_size[dev->ts1_mode.alt];
alt               543 drivers/media/usb/cx231xx/cx231xx-core.c 		dev->adev.alt = alt;
alt               546 drivers/media/usb/cx231xx/cx231xx-core.c 			    dev->adev.alt_max_pkt_size[dev->adev.alt];
alt               552 drivers/media/usb/cx231xx/cx231xx-core.c 		dev->video_mode.alt = alt;
alt               556 drivers/media/usb/cx231xx/cx231xx-core.c 							     alt];
alt               564 drivers/media/usb/cx231xx/cx231xx-core.c 		dev->vbi_mode.alt = alt;
alt               567 drivers/media/usb/cx231xx/cx231xx-core.c 			    dev->vbi_mode.alt_max_pkt_size[dev->vbi_mode.alt];
alt               573 drivers/media/usb/cx231xx/cx231xx-core.c 		dev->sliced_cc_mode.alt = alt;
alt               578 drivers/media/usb/cx231xx/cx231xx-core.c 								 alt];
alt               584 drivers/media/usb/cx231xx/cx231xx-core.c 	if (alt > 0 && max_pkt_size == 0) {
alt               587 drivers/media/usb/cx231xx/cx231xx-core.c 			usb_interface_index, alt);
alt               595 drivers/media/usb/cx231xx/cx231xx-core.c 			alt, max_pkt_size,
alt               599 drivers/media/usb/cx231xx/cx231xx-core.c 		status = usb_set_interface(dev->udev, usb_interface_index, alt);
alt               603 drivers/media/usb/cx231xx/cx231xx-core.c 				usb_interface_index, alt, status);
alt               421 drivers/media/usb/cx231xx/cx231xx.h 	int alt;		/* alternate */
alt               522 drivers/media/usb/cx231xx/cx231xx.h 	int alt;		/* alternate */
alt               873 drivers/media/usb/cx231xx/cx231xx.h int cx231xx_set_alt_setting(struct cx231xx *dev, u8 index, u8 alt);
alt               126 drivers/media/usb/dvb-usb/m920x.c 	struct usb_host_interface *alt;
alt               128 drivers/media/usb/dvb-usb/m920x.c 	if ((alt = usb_altnum_to_altsetting(intf, 1)) == NULL) {
alt               133 drivers/media/usb/dvb-usb/m920x.c 	return usb_set_interface(udev, alt->desc.bInterfaceNumber,
alt               134 drivers/media/usb/dvb-usb/m920x.c 				 alt->desc.bAlternateSetting);
alt               466 drivers/media/usb/dvb-usb/m920x.c 	struct usb_host_interface *alt;
alt               468 drivers/media/usb/dvb-usb/m920x.c 	alt = usb_altnum_to_altsetting(usb_ifnum_to_if(udev, 0), 1);
alt               469 drivers/media/usb/dvb-usb/m920x.c 	*cold = (alt == NULL) ? 1 : 0;
alt               277 drivers/media/usb/em28xx/em28xx-audio.c 		if (!dev->alt || dev->is_audio_only) {
alt               284 drivers/media/usb/em28xx/em28xx-audio.c 				dev->alt = 1;
alt               287 drivers/media/usb/em28xx/em28xx-audio.c 				dev->alt = 7;
alt               298 drivers/media/usb/em28xx/em28xx-audio.c 				dev->ifnum, dev->alt);
alt               299 drivers/media/usb/em28xx/em28xx-audio.c 			usb_set_interface(udev, dev->ifnum, dev->alt);
alt               762 drivers/media/usb/em28xx/em28xx-audio.c 	u8 alt;
alt               765 drivers/media/usb/em28xx/em28xx-audio.c 		alt = 1;
alt               767 drivers/media/usb/em28xx/em28xx-audio.c 		alt = 7;
alt               771 drivers/media/usb/em28xx/em28xx-audio.c 	if (intf->num_altsetting <= alt) {
alt               773 drivers/media/usb/em28xx/em28xx-audio.c 			dev->ifnum, alt);
alt               777 drivers/media/usb/em28xx/em28xx-audio.c 	for (i = 0; i < intf->altsetting[alt].desc.bNumEndpoints; i++) {
alt               778 drivers/media/usb/em28xx/em28xx-audio.c 		e = &intf->altsetting[alt].endpoint[i].desc;
alt               798 drivers/media/usb/em28xx/em28xx-audio.c 		 dev->ifnum, alt, interval, ep_size);
alt              3600 drivers/media/usb/em28xx/em28xx-cards.c 					int alt, int ep,
alt              3633 drivers/media/usb/em28xx/em28xx-cards.c 	e = &intf->altsetting[alt].endpoint[ep].desc;
alt              3651 drivers/media/usb/em28xx/em28xx-cards.c 			dev->alt_max_pkt_size_isoc[alt] = size;
alt              3679 drivers/media/usb/em28xx/em28xx-cards.c 					dev->dvb_alt_isoc = alt;
alt              3692 drivers/media/usb/em28xx/em28xx-cards.c 				dev->dvb_alt_isoc = alt;
alt              3820 drivers/media/usb/em28xx/em28xx-cards.c 	dev->alt   = -1;
alt              3919 drivers/media/usb/em28xx/em28xx-cards.c 		dev->dev_next->alt   = -1;
alt                58 drivers/media/usb/em28xx/em28xx-video.c static int alt;
alt                59 drivers/media/usb/em28xx/em28xx-video.c module_param(alt, int, 0644);
alt                60 drivers/media/usb/em28xx/em28xx-video.c MODULE_PARM_DESC(alt, "alternate setting to use for video endpoint");
alt               370 drivers/media/usb/em28xx/em28xx-video.c 	dev->alt = 0;
alt               371 drivers/media/usb/em28xx/em28xx-video.c 	if (alt > 0 && alt < dev->num_alt) {
alt               372 drivers/media/usb/em28xx/em28xx-video.c 		em28xx_videodbg("alternate forced to %d\n", dev->alt);
alt               373 drivers/media/usb/em28xx/em28xx-video.c 		dev->alt = alt;
alt               390 drivers/media/usb/em28xx/em28xx-video.c 			dev->alt = i;
alt               398 drivers/media/usb/em28xx/em28xx-video.c 			   dev->alt_max_pkt_size_isoc[dev->alt])
alt               399 drivers/media/usb/em28xx/em28xx-video.c 			dev->alt = i;
alt               413 drivers/media/usb/em28xx/em28xx-video.c 				min_pkt_size, dev->alt);
alt               415 drivers/media/usb/em28xx/em28xx-video.c 				  dev->alt_max_pkt_size_isoc[dev->alt];
alt               419 drivers/media/usb/em28xx/em28xx-video.c 			dev->alt, dev->max_pkt_size);
alt               420 drivers/media/usb/em28xx/em28xx-video.c 	err = usb_set_interface(udev, dev->ifnum, dev->alt);
alt               424 drivers/media/usb/em28xx/em28xx-video.c 			dev->alt, err);
alt              2314 drivers/media/usb/em28xx/em28xx-video.c 		dev->alt = 0;
alt               735 drivers/media/usb/em28xx/em28xx.h 	int alt;		// alternate setting
alt               325 drivers/media/usb/gspca/gl860/gl860-mi1320.c 		gspca_dev->alt = 3 + 1;
alt               330 drivers/media/usb/gspca/gl860/gl860-mi1320.c 		gspca_dev->alt = 1 + 1;
alt               609 drivers/media/usb/gspca/gl860/gl860-mi2020.c 		gspca_dev->alt = 3 + 1;
alt               615 drivers/media/usb/gspca/gl860/gl860-mi2020.c 		gspca_dev->alt = 1 + 1;
alt               323 drivers/media/usb/gspca/gl860/gl860-ov2640.c 		gspca_dev->alt = 3 + 1;
alt               329 drivers/media/usb/gspca/gl860/gl860-ov2640.c 		gspca_dev->alt = 1 + 1;
alt               284 drivers/media/usb/gspca/gl860/gl860-ov9655.c 		gspca_dev->alt = 1 + 1;
alt               288 drivers/media/usb/gspca/gl860/gl860-ov9655.c 		gspca_dev->alt = 1 + 1;
alt               496 drivers/media/usb/gspca/gspca.c 	if (gspca_dev->alt == 0)
alt               510 drivers/media/usb/gspca/gspca.c static struct usb_host_endpoint *alt_xfer(struct usb_host_interface *alt,
alt               516 drivers/media/usb/gspca/gspca.c 	for (i = 0; i < alt->desc.bNumEndpoints; i++) {
alt               517 drivers/media/usb/gspca/gspca.c 		ep = &alt->endpoint[i];
alt               567 drivers/media/usb/gspca/gspca.c 	u32 alt;
alt               614 drivers/media/usb/gspca/gspca.c 				ep_tb->alt = j;
alt               621 drivers/media/usb/gspca/gspca.c 			  ep_tb->alt, ep_tb->bandwidth);
alt               760 drivers/media/usb/gspca/gspca.c 	int n, ret, xfer, alt, alt_idx;
alt               771 drivers/media/usb/gspca/gspca.c 	gspca_dev->alt = gspca_dev->cam.bulk ? intf->num_altsetting : 0;
alt               781 drivers/media/usb/gspca/gspca.c 	if (gspca_dev->alt != 0) {
alt               782 drivers/media/usb/gspca/gspca.c 		gspca_dev->alt--;	/* (previous version compatibility) */
alt               783 drivers/media/usb/gspca/gspca.c 		ep = alt_xfer(&intf->altsetting[gspca_dev->alt], xfer,
alt               786 drivers/media/usb/gspca/gspca.c 			pr_err("bad altsetting %d\n", gspca_dev->alt);
alt               789 drivers/media/usb/gspca/gspca.c 		ep_tb[0].alt = gspca_dev->alt;
alt               805 drivers/media/usb/gspca/gspca.c 	gspca_dev->alt = ep_tb[--alt_idx].alt;
alt               806 drivers/media/usb/gspca/gspca.c 	alt = -1;
alt               808 drivers/media/usb/gspca/gspca.c 		if (alt != gspca_dev->alt) {
alt               809 drivers/media/usb/gspca/gspca.c 			alt = gspca_dev->alt;
alt               813 drivers/media/usb/gspca/gspca.c 							alt);
alt               817 drivers/media/usb/gspca/gspca.c 					pr_err("set alt %d err %d\n", alt, ret);
alt               824 drivers/media/usb/gspca/gspca.c 				  alt);
alt               826 drivers/media/usb/gspca/gspca.c 				alt_xfer(&intf->altsetting[alt], xfer,
alt               869 drivers/media/usb/gspca/gspca.c 			       gspca_dev->alt, ret);
alt               877 drivers/media/usb/gspca/gspca.c 			  alt);
alt               889 drivers/media/usb/gspca/gspca.c 			gspca_dev->alt = ep_tb[--alt_idx].alt;
alt               209 drivers/media/usb/gspca/gspca.h 	__u8 alt;			/* USB alternate setting */
alt               173 drivers/media/usb/gspca/konica.c 	struct usb_host_interface *alt;
alt               177 drivers/media/usb/gspca/konica.c 	alt = usb_altnum_to_altsetting(intf, sd->gspca_dev.alt);
alt               178 drivers/media/usb/gspca/konica.c 	if (!alt) {
alt               183 drivers/media/usb/gspca/konica.c 	if (alt->desc.bNumEndpoints < 2)
alt               186 drivers/media/usb/gspca/konica.c 	packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize);
alt               204 drivers/media/usb/gspca/konica.c 			le16_to_cpu(alt->endpoint[i].desc.wMaxPacketSize);
alt              3469 drivers/media/usb/gspca/ov519.c 	struct usb_host_interface *alt;
alt              3473 drivers/media/usb/gspca/ov519.c 	alt = usb_altnum_to_altsetting(intf, sd->gspca_dev.alt);
alt              3474 drivers/media/usb/gspca/ov519.c 	if (!alt) {
alt              3480 drivers/media/usb/gspca/ov519.c 	if (alt->desc.bNumEndpoints < 1) {
alt              3485 drivers/media/usb/gspca/ov519.c 	packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize);
alt              3600 drivers/media/usb/gspca/ov519.c 	struct usb_host_interface *alt;
alt              3604 drivers/media/usb/gspca/ov519.c 	alt = usb_altnum_to_altsetting(intf, sd->gspca_dev.alt);
alt              3605 drivers/media/usb/gspca/ov519.c 	if (!alt) {
alt              3611 drivers/media/usb/gspca/ov519.c 	if (alt->desc.bNumEndpoints < 1) {
alt              3616 drivers/media/usb/gspca/ov519.c 	packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize);
alt               322 drivers/media/usb/gspca/se401.c 	gspca_dev->alt = 1;	/* Ignore the bogus isoc alt settings */
alt              1951 drivers/media/usb/gspca/sn9c20x.c 			gspca_dev->alt = intf->num_altsetting;
alt              1957 drivers/media/usb/gspca/sn9c20x.c 			gspca_dev->alt = 2;
alt              1960 drivers/media/usb/gspca/sn9c20x.c 			gspca_dev->alt = 6;
alt              1963 drivers/media/usb/gspca/sn9c20x.c 			gspca_dev->alt = 9;
alt               504 drivers/media/usb/gspca/spca500.c 		  gspca_dev->alt);
alt               509 drivers/media/usb/gspca/spca500.c 				gspca_dev->alt) < 0) {
alt               259 drivers/media/usb/gspca/stk014.c 					gspca_dev->alt);
alt               262 drivers/media/usb/gspca/stk014.c 		       gspca_dev->iface, gspca_dev->alt);
alt               285 drivers/media/usb/gspca/stk014.c 			  gspca_dev->alt);
alt               464 drivers/media/usb/gspca/stk1135.c 			  gspca_dev->alt);
alt               274 drivers/media/usb/gspca/stv06xx/stv06xx.c 	struct usb_host_interface *alt;
alt               279 drivers/media/usb/gspca/stv06xx/stv06xx.c 	alt = usb_altnum_to_altsetting(intf, sd->gspca_dev.alt);
alt               280 drivers/media/usb/gspca/stv06xx/stv06xx.c 	if (!alt) {
alt               285 drivers/media/usb/gspca/stv06xx/stv06xx.c 	if (alt->desc.bNumEndpoints < 1)
alt               288 drivers/media/usb/gspca/stv06xx/stv06xx.c 	packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize);
alt               313 drivers/media/usb/gspca/stv06xx/stv06xx.c 	struct usb_host_interface *alt;
alt               321 drivers/media/usb/gspca/stv06xx/stv06xx.c 	alt = &intfc->altsetting[1];
alt               323 drivers/media/usb/gspca/stv06xx/stv06xx.c 	if (alt->desc.bNumEndpoints < 1)
alt               327 drivers/media/usb/gspca/stv06xx/stv06xx.c 	alt->endpoint[0].desc.wMaxPacketSize =
alt               336 drivers/media/usb/gspca/stv06xx/stv06xx.c 	struct usb_host_interface *alt;
alt               343 drivers/media/usb/gspca/stv06xx/stv06xx.c 	alt = &gspca_dev->dev->actconfig->intf_cache[0]->altsetting[1];
alt               344 drivers/media/usb/gspca/stv06xx/stv06xx.c 	packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize);
alt               352 drivers/media/usb/gspca/stv06xx/stv06xx.c 	alt->endpoint[0].desc.wMaxPacketSize = cpu_to_le16(packet_size);
alt               178 drivers/media/usb/gspca/stv06xx/stv06xx_pb0100.c 	struct usb_host_interface *alt;
alt               185 drivers/media/usb/gspca/stv06xx/stv06xx_pb0100.c 	alt = usb_altnum_to_altsetting(intf, sd->gspca_dev.alt);
alt               186 drivers/media/usb/gspca/stv06xx/stv06xx_pb0100.c 	if (!alt)
alt               189 drivers/media/usb/gspca/stv06xx/stv06xx_pb0100.c 	if (alt->desc.bNumEndpoints < 1)
alt               192 drivers/media/usb/gspca/stv06xx/stv06xx_pb0100.c 	packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize);
alt              4316 drivers/media/usb/gspca/topro.c 	reg_w(gspca_dev, 0x22, gspca_dev->alt);
alt              4492 drivers/media/usb/gspca/topro.c 	reg_w(gspca_dev, 0x22, gspca_dev->alt);
alt              1435 drivers/media/usb/gspca/xirlink_cit.c 	struct usb_host_interface *alt;
alt              1439 drivers/media/usb/gspca/xirlink_cit.c 	alt = usb_altnum_to_altsetting(intf, gspca_dev->alt);
alt              1440 drivers/media/usb/gspca/xirlink_cit.c 	if (!alt) {
alt              1445 drivers/media/usb/gspca/xirlink_cit.c 	if (alt->desc.bNumEndpoints < 1)
alt              1448 drivers/media/usb/gspca/xirlink_cit.c 	return le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize);
alt              2633 drivers/media/usb/gspca/xirlink_cit.c 	struct usb_host_interface *alt;
alt              2653 drivers/media/usb/gspca/xirlink_cit.c 	alt = &intfc->altsetting[1];
alt              2655 drivers/media/usb/gspca/xirlink_cit.c 	if (alt->desc.bNumEndpoints < 1)
alt              2659 drivers/media/usb/gspca/xirlink_cit.c 	alt->endpoint[0].desc.wMaxPacketSize = cpu_to_le16(max_packet_size);
alt              2667 drivers/media/usb/gspca/xirlink_cit.c 	struct usb_host_interface *alt;
alt              2684 drivers/media/usb/gspca/xirlink_cit.c 	alt = &gspca_dev->dev->actconfig->intf_cache[0]->altsetting[1];
alt              2685 drivers/media/usb/gspca/xirlink_cit.c 	packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize);
alt              2692 drivers/media/usb/gspca/xirlink_cit.c 	alt->endpoint[0].desc.wMaxPacketSize = cpu_to_le16(packet_size);
alt               163 drivers/media/usb/stk1160/stk1160-v4l.c 	int i, prev_alt = dev->alt;
alt               176 drivers/media/usb/stk1160/stk1160-v4l.c 			dev->alt = i;
alt               183 drivers/media/usb/stk1160/stk1160-v4l.c 			   dev->alt_max_pkt_size[dev->alt])
alt               184 drivers/media/usb/stk1160/stk1160-v4l.c 			dev->alt = i;
alt               187 drivers/media/usb/stk1160/stk1160-v4l.c 	stk1160_dbg("setting alternate %d\n", dev->alt);
alt               189 drivers/media/usb/stk1160/stk1160-v4l.c 	if (dev->alt != prev_alt) {
alt               191 drivers/media/usb/stk1160/stk1160-v4l.c 				min_pkt_size, dev->alt);
alt               193 drivers/media/usb/stk1160/stk1160-v4l.c 			       dev->alt, dev->alt_max_pkt_size[dev->alt]);
alt               194 drivers/media/usb/stk1160/stk1160-v4l.c 		usb_set_interface(dev->udev, 0, dev->alt);
alt               197 drivers/media/usb/stk1160/stk1160-v4l.c 	new_pkt_size = dev->max_pkt_size != dev->alt_max_pkt_size[dev->alt];
alt               198 drivers/media/usb/stk1160/stk1160-v4l.c 	dev->max_pkt_size = dev->alt_max_pkt_size[dev->alt];
alt               276 drivers/media/usb/stk1160/stk1160-v4l.c 	dev->alt = 0;
alt               277 drivers/media/usb/stk1160/stk1160-v4l.c 	stk1160_dbg("setting alternate %d\n", dev->alt);
alt               131 drivers/media/usb/stk1160/stk1160.h 	int alt;
alt              1145 drivers/media/usb/tm6000/tm6000-cards.c 			     struct usb_host_interface *alt,
alt              1159 drivers/media/usb/tm6000/tm6000-cards.c 		tm_ep->bInterfaceNumber = alt->desc.bInterfaceNumber;
alt              1160 drivers/media/usb/tm6000/tm6000-cards.c 		tm_ep->bAlternateSetting = alt->desc.bAlternateSetting;
alt               566 drivers/mfd/asic3.c 		u8 alt, pin, dir, init, bank_num, bit_num;
alt               570 drivers/mfd/asic3.c 		alt = ASIC3_CONFIG_GPIO_ALT(config);
alt               577 drivers/mfd/asic3.c 		alt_reg[bank_num] |= (alt << bit_num);
alt               113 drivers/net/usb/cdc_mbim.c static int cdc_mbim_set_ctrlalt(struct usbnet *dev, struct usb_interface *intf, u8 alt)
alt               122 drivers/net/usb/cdc_mbim.c 				alt);
alt              1003 drivers/net/usb/cdc_ncm.c 	struct usb_host_interface *alt;
alt              1024 drivers/net/usb/cdc_ncm.c 		alt = usb_altnum_to_altsetting(intf, CDC_NCM_COMM_ALTSETTING_MBIM);
alt              1025 drivers/net/usb/cdc_ncm.c 		if (alt && cdc_ncm_comm_intf_is_mbim(alt))
alt              2875 drivers/net/usb/lan78xx.c 	struct usb_host_interface *alt = NULL;
alt              2885 drivers/net/usb/lan78xx.c 		alt = intf->altsetting + tmp;
alt              2887 drivers/net/usb/lan78xx.c 		for (ep = 0; ep < alt->desc.bNumEndpoints; ep++) {
alt              2891 drivers/net/usb/lan78xx.c 			e = alt->endpoint + ep;
alt              2916 drivers/net/usb/lan78xx.c 	if (!alt || !in || !out)
alt              1612 drivers/net/usb/r8152.c 	struct usb_host_interface *alt = intf->cur_altsetting;
alt              1613 drivers/net/usb/r8152.c 	struct usb_host_endpoint *ep_intr = alt->endpoint + 2;
alt                84 drivers/net/usb/usbnet.c 	struct usb_host_interface	*alt = NULL;
alt                92 drivers/net/usb/usbnet.c 		alt = intf->altsetting + tmp;
alt                98 drivers/net/usb/usbnet.c 		for (ep = 0; ep < alt->desc.bNumEndpoints; ep++) {
alt               102 drivers/net/usb/usbnet.c 			e = alt->endpoint + ep;
alt               132 drivers/net/usb/usbnet.c 	if (!alt || !in || !out)
alt               135 drivers/net/usb/usbnet.c 	if (alt->desc.bAlternateSetting != 0 ||
alt               137 drivers/net/usb/usbnet.c 		tmp = usb_set_interface (dev->udev, alt->desc.bInterfaceNumber,
alt               138 drivers/net/usb/usbnet.c 				alt->desc.bAlternateSetting);
alt                50 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c 	unsigned int alt;
alt               492 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c 		.alt = al,				\
alt               800 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c 		if (mux_log[i].mux.alt != mux->alt) {
alt               815 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c 	mux_log[i].mux.alt = mux->alt;
alt               822 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c 	val |= grp->mux.alt << grp->mux.shift;
alt               842 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c 		grp->mux.offset, grp->mux.shift, grp->mux.alt);
alt               932 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c 			log->mux.alt = 0;
alt                61 drivers/pinctrl/bcm/pinctrl-ns2-mux.c 	unsigned int alt;
alt               382 drivers/pinctrl/bcm/pinctrl-ns2-mux.c 		.alt = al,				\
alt               596 drivers/pinctrl/bcm/pinctrl-ns2-mux.c 		if (mux_log[i].mux.alt != mux->alt) {
alt               610 drivers/pinctrl/bcm/pinctrl-ns2-mux.c 	mux_log[i].mux.alt = mux->alt;
alt               629 drivers/pinctrl/bcm/pinctrl-ns2-mux.c 	val |= grp->mux.alt << grp->mux.shift;
alt               654 drivers/pinctrl/bcm/pinctrl-ns2-mux.c 		grp->mux.offset, grp->mux.shift, grp->mux.alt);
alt              1000 drivers/pinctrl/bcm/pinctrl-ns2-mux.c 	log->mux.alt = 0;
alt              1012 drivers/pinctrl/bcm/pinctrl-ns2-mux.c 		log->mux.alt = 0;
alt              1024 drivers/pinctrl/bcm/pinctrl-ns2-mux.c 		log->mux.alt =  0;
alt                56 drivers/pinctrl/bcm/pinctrl-nsp-mux.c 	unsigned int alt;
alt               236 drivers/pinctrl/bcm/pinctrl-nsp-mux.c 		.alt = al,				\
alt               412 drivers/pinctrl/bcm/pinctrl-nsp-mux.c 		if (mux_log[i].mux.alt != mux->alt) {
alt               426 drivers/pinctrl/bcm/pinctrl-nsp-mux.c 	mux_log[i].mux.alt = mux->alt;
alt               449 drivers/pinctrl/bcm/pinctrl-nsp-mux.c 	val |= grp->mux.alt << grp->mux.shift;
alt               474 drivers/pinctrl/bcm/pinctrl-nsp-mux.c 		grp->mux.alt);
alt               552 drivers/pinctrl/bcm/pinctrl-nsp-mux.c 		log->mux.alt = 0;
alt               184 drivers/pinctrl/nomadik/pinctrl-nomadik.c #define PIN_CFG(num, alt)		\
alt               186 drivers/pinctrl/nomadik/pinctrl-nomadik.c 	 (PIN_NUM(num) | PIN_##alt))
alt               188 drivers/pinctrl/nomadik/pinctrl-nomadik.c #define PIN_CFG_INPUT(num, alt, pull)		\
alt               190 drivers/pinctrl/nomadik/pinctrl-nomadik.c 	 (PIN_NUM(num) | PIN_##alt | PIN_INPUT_##pull))
alt               192 drivers/pinctrl/nomadik/pinctrl-nomadik.c #define PIN_CFG_OUTPUT(num, alt, val)		\
alt               194 drivers/pinctrl/nomadik/pinctrl-nomadik.c 	 (PIN_NUM(num) | PIN_##alt | PIN_OUTPUT_##val))
alt               229 drivers/pinctrl/pinctrl-st.c 	struct regmap_field *alt, *oe, *pu, *od;
alt               244 drivers/pinctrl/pinctrl-st.c 	const int alt, oe, pu, od, rt;
alt               346 drivers/pinctrl/pinctrl-st.c 	.alt = 0, .oe = 40, .pu = 50, .od = 60, .rt = 100,
alt               355 drivers/pinctrl/pinctrl-st.c 	.alt = 0,
alt               420 drivers/pinctrl/pinctrl-st.c 	struct regmap_field *alt = pc->alt;
alt               425 drivers/pinctrl/pinctrl-st.c 	if (!alt)
alt               428 drivers/pinctrl/pinctrl-st.c 	regmap_field_read(alt, &val);
alt               431 drivers/pinctrl/pinctrl-st.c 	regmap_field_write(alt, val);
alt               436 drivers/pinctrl/pinctrl-st.c 	struct regmap_field *alt = pc->alt;
alt               440 drivers/pinctrl/pinctrl-st.c 	if (!alt)
alt               443 drivers/pinctrl/pinctrl-st.c 	regmap_field_read(alt, &val);
alt              1146 drivers/pinctrl/pinctrl-st.c 	pc->alt = st_pc_get_value(dev, regmap, bank, data->alt, 0, 31);
alt               159 drivers/pinctrl/stm32/pinctrl-stm32.c 				   u32 mode, u32 alt)
alt               164 drivers/pinctrl/stm32/pinctrl-stm32.c 	bank->pin_backup[offset] |= alt << STM32_GPIO_BKP_ALT_SHIFT;
alt               282 drivers/pinctrl/stm32/pinctrl-stm32.c 	u32 mode, alt;
alt               284 drivers/pinctrl/stm32/pinctrl-stm32.c 	stm32_pmx_get_mode(bank, pin, &mode, &alt);
alt               285 drivers/pinctrl/stm32/pinctrl-stm32.c 	if ((alt == 0) && (mode == 0))
alt               287 drivers/pinctrl/stm32/pinctrl-stm32.c 	else if ((alt == 0) && (mode == 1))
alt               690 drivers/pinctrl/stm32/pinctrl-stm32.c 			      int pin, u32 mode, u32 alt)
alt               712 drivers/pinctrl/stm32/pinctrl-stm32.c 	val |= (alt << alt_shift);
alt               723 drivers/pinctrl/stm32/pinctrl-stm32.c 	stm32_gpio_backup_mode(bank, pin, mode, alt);
alt               733 drivers/pinctrl/stm32/pinctrl-stm32.c 			u32 *alt)
alt               745 drivers/pinctrl/stm32/pinctrl-stm32.c 	*alt = val >> alt_shift;
alt               764 drivers/pinctrl/stm32/pinctrl-stm32.c 	u32 mode, alt;
alt               784 drivers/pinctrl/stm32/pinctrl-stm32.c 	alt = stm32_gpio_get_alt(function);
alt               786 drivers/pinctrl/stm32/pinctrl-stm32.c 	return stm32_pmx_set_mode(bank, pin, mode, alt);
alt              1080 drivers/pinctrl/stm32/pinctrl-stm32.c 	u32 mode, alt, drive, speed, bias;
alt              1096 drivers/pinctrl/stm32/pinctrl-stm32.c 	stm32_pmx_get_mode(bank, offset, &mode, &alt);
alt              1126 drivers/pinctrl/stm32/pinctrl-stm32.c 		seq_printf(s, "%d - %s - %s - %s %s", alt,
alt              1490 drivers/pinctrl/stm32/pinctrl-stm32.c 	u32 val, alt, mode, offset = stm32_gpio_pin(pin);
alt              1507 drivers/pinctrl/stm32/pinctrl-stm32.c 	alt = bank->pin_backup[offset] & STM32_GPIO_BKP_ALT_MASK;
alt              1508 drivers/pinctrl/stm32/pinctrl-stm32.c 	alt >>= STM32_GPIO_BKP_ALT_SHIFT;
alt              1512 drivers/pinctrl/stm32/pinctrl-stm32.c 	ret = stm32_pmx_set_mode(bank, offset, mode, alt);
alt                67 drivers/pinctrl/stm32/pinctrl-stm32.h 			int pin, u32 *mode, u32 *alt);
alt               609 drivers/tty/sysrq.c 	unsigned int alt;
alt               787 drivers/tty/sysrq.c 			sysrq->alt = KEY_RESERVED;
alt               790 drivers/tty/sysrq.c 			sysrq->alt = code;
alt               796 drivers/tty/sysrq.c 		if (value == 1 && sysrq->alt != KEY_RESERVED) {
alt               798 drivers/tty/sysrq.c 			sysrq->alt_use = sysrq->alt;
alt              2496 drivers/usb/atm/ueagle-atm.c 	unsigned int alt;
alt              2543 drivers/usb/atm/ueagle-atm.c 	alt = altsetting[sc->modem_index];
alt              2545 drivers/usb/atm/ueagle-atm.c 	if (UEA_CHIP_VERSION(id) != ADI930 && alt > 0) {
alt              2546 drivers/usb/atm/ueagle-atm.c 		if (alt <= 8 &&
alt              2547 drivers/usb/atm/ueagle-atm.c 			usb_set_interface(usb, UEA_DS_IFACE_NO, alt) == 0) {
alt              2548 drivers/usb/atm/ueagle-atm.c 			uea_dbg(usb, "set alternate %u for 2 interface\n", alt);
alt              2553 drivers/usb/atm/ueagle-atm.c 					"2 interface, using bulk mode\n", alt);
alt                40 drivers/usb/atm/xusbatm.c 	struct usb_host_interface *alt;
alt                45 drivers/usb/atm/xusbatm.c 		if ((intf = usb_dev->actconfig->interface[i]) && (alt = usb_altnum_to_altsetting(intf, altsetting)))
alt                46 drivers/usb/atm/xusbatm.c 			for (j = 0; j < alt->desc.bNumEndpoints; j++)
alt                47 drivers/usb/atm/xusbatm.c 				if (alt->endpoint[j].desc.bEndpointAddress == ep)
alt               229 drivers/usb/core/config.c 	struct usb_host_interface *alt;
alt               236 drivers/usb/core/config.c 			alt = &intfc->altsetting[j];
alt               238 drivers/usb/core/config.c 			if (alt->desc.bInterfaceNumber == inum &&
alt               239 drivers/usb/core/config.c 					alt->desc.bAlternateSetting != asnum)
alt               242 drivers/usb/core/config.c 			for (k = 0; k < alt->desc.bNumEndpoints; ++k) {
alt               243 drivers/usb/core/config.c 				epd = &alt->endpoint[k].desc;
alt               494 drivers/usb/core/config.c 		struct usb_host_interface *alt = &intfc->altsetting[j];
alt               496 drivers/usb/core/config.c 		kfree(alt->endpoint);
alt               497 drivers/usb/core/config.c 		kfree(alt->string);
alt               510 drivers/usb/core/config.c 	struct usb_host_interface *alt;
alt               536 drivers/usb/core/config.c 	for ((i = 0, alt = &intfc->altsetting[0]);
alt               538 drivers/usb/core/config.c 	     (++i, ++alt)) {
alt               539 drivers/usb/core/config.c 		if (alt->desc.bAlternateSetting == asnum) {
alt               548 drivers/usb/core/config.c 	memcpy(&alt->desc, d, USB_DT_INTERFACE_SIZE);
alt               552 drivers/usb/core/config.c 	alt->extra = buffer;
alt               555 drivers/usb/core/config.c 	alt->extralen = i;
alt               563 drivers/usb/core/config.c 	num_ep = num_ep_orig = alt->desc.bNumEndpoints;
alt               564 drivers/usb/core/config.c 	alt->desc.bNumEndpoints = 0;		/* Use as a counter */
alt               575 drivers/usb/core/config.c 		alt->endpoint = kzalloc(len, GFP_KERNEL);
alt               576 drivers/usb/core/config.c 		if (!alt->endpoint)
alt               587 drivers/usb/core/config.c 				alt, num_ep, buffer, size);
alt              1836 drivers/usb/core/hcd.c 	struct usb_host_interface *alt = NULL;
alt              1889 drivers/usb/core/hcd.c 			alt = usb_find_alt_setting(new_config, iface_num, 0);
alt              1890 drivers/usb/core/hcd.c 			if (!alt)
alt              1892 drivers/usb/core/hcd.c 				alt = first_alt;
alt              1894 drivers/usb/core/hcd.c 			for (j = 0; j < alt->desc.bNumEndpoints; j++) {
alt              1895 drivers/usb/core/hcd.c 				ret = hcd->driver->add_endpoint(hcd, udev, &alt->endpoint[j]);
alt              1098 drivers/usb/core/message.c 	struct usb_host_interface *alt = intf->cur_altsetting;
alt              1104 drivers/usb/core/message.c 	for (i = 0; i < alt->desc.bNumEndpoints; ++i)
alt              1105 drivers/usb/core/message.c 		(void) usb_create_ep_devs(&intf->dev, &alt->endpoint[i], udev);
alt              1112 drivers/usb/core/message.c 	struct usb_host_interface *alt = intf->cur_altsetting;
alt              1118 drivers/usb/core/message.c 	for (i = 0; i < alt->desc.bNumEndpoints; ++i)
alt              1119 drivers/usb/core/message.c 		usb_remove_ep_devs(&alt->endpoint[i]);
alt              1197 drivers/usb/core/message.c 	struct usb_host_interface *alt = intf->cur_altsetting;
alt              1200 drivers/usb/core/message.c 	for (i = 0; i < alt->desc.bNumEndpoints; ++i) {
alt              1202 drivers/usb/core/message.c 				alt->endpoint[i].desc.bEndpointAddress,
alt              1320 drivers/usb/core/message.c 	struct usb_host_interface *alt = intf->cur_altsetting;
alt              1323 drivers/usb/core/message.c 	for (i = 0; i < alt->desc.bNumEndpoints; ++i)
alt              1324 drivers/usb/core/message.c 		usb_enable_endpoint(dev, &alt->endpoint[i], reset_eps);
alt              1368 drivers/usb/core/message.c 	struct usb_host_interface *alt;
alt              1386 drivers/usb/core/message.c 	alt = usb_altnum_to_altsetting(iface, alternate);
alt              1387 drivers/usb/core/message.c 	if (!alt) {
alt              1415 drivers/usb/core/message.c 	ret = usb_hcd_alloc_bandwidth(dev, NULL, iface->cur_altsetting, alt);
alt              1441 drivers/usb/core/message.c 		usb_hcd_alloc_bandwidth(dev, NULL, alt, iface->cur_altsetting);
alt              1455 drivers/usb/core/message.c 	if (iface->cur_altsetting != alt) {
alt              1461 drivers/usb/core/message.c 	iface->cur_altsetting = alt;
alt              1472 drivers/usb/core/message.c 		for (i = 0; i < alt->desc.bNumEndpoints; i++) {
alt              1473 drivers/usb/core/message.c 			epaddr = alt->endpoint[i].desc.bEndpointAddress;
alt              1558 drivers/usb/core/message.c 		struct usb_host_interface *alt;
alt              1560 drivers/usb/core/message.c 		alt = usb_altnum_to_altsetting(intf, 0);
alt              1561 drivers/usb/core/message.c 		if (!alt)
alt              1562 drivers/usb/core/message.c 			alt = &intf->altsetting[0];
alt              1563 drivers/usb/core/message.c 		if (alt != intf->cur_altsetting)
alt              1565 drivers/usb/core/message.c 					intf->cur_altsetting, alt);
alt              1574 drivers/usb/core/message.c 			struct usb_host_interface *alt;
alt              1576 drivers/usb/core/message.c 			alt = usb_altnum_to_altsetting(intf, 0);
alt              1577 drivers/usb/core/message.c 			if (!alt)
alt              1578 drivers/usb/core/message.c 				alt = &intf->altsetting[0];
alt              1579 drivers/usb/core/message.c 			if (alt != intf->cur_altsetting)
alt              1581 drivers/usb/core/message.c 						alt, intf->cur_altsetting);
alt              1598 drivers/usb/core/message.c 		struct usb_host_interface *alt;
alt              1600 drivers/usb/core/message.c 		alt = usb_altnum_to_altsetting(intf, 0);
alt              1607 drivers/usb/core/message.c 		if (!alt)
alt              1608 drivers/usb/core/message.c 			alt = &intf->altsetting[0];
alt              1610 drivers/usb/core/message.c 		if (alt != intf->cur_altsetting) {
alt              1614 drivers/usb/core/message.c 		intf->cur_altsetting = alt;
alt              1681 drivers/usb/core/message.c 	struct usb_host_interface *alt;
alt              1685 drivers/usb/core/message.c 	alt = intf->cur_altsetting;
alt              1688 drivers/usb/core/message.c 		   alt->desc.bInterfaceClass,
alt              1689 drivers/usb/core/message.c 		   alt->desc.bInterfaceSubClass,
alt              1690 drivers/usb/core/message.c 		   alt->desc.bInterfaceProtocol))
alt              1702 drivers/usb/core/message.c 		   alt->desc.bInterfaceClass,
alt              1703 drivers/usb/core/message.c 		   alt->desc.bInterfaceSubClass,
alt              1704 drivers/usb/core/message.c 		   alt->desc.bInterfaceProtocol,
alt              1705 drivers/usb/core/message.c 		   alt->desc.bInterfaceNumber))
alt              1920 drivers/usb/core/message.c 		struct usb_host_interface *alt;
alt              1930 drivers/usb/core/message.c 		alt = usb_altnum_to_altsetting(intf, 0);
alt              1937 drivers/usb/core/message.c 		if (!alt)
alt              1938 drivers/usb/core/message.c 			alt = &intf->altsetting[0];
alt              1940 drivers/usb/core/message.c 		ifnum = alt->desc.bInterfaceNumber;
alt              1942 drivers/usb/core/message.c 		intf->cur_altsetting = alt;
alt              1135 drivers/usb/core/sysfs.c 	struct usb_host_interface *alt;
alt              1139 drivers/usb/core/sysfs.c 	alt = READ_ONCE(intf->cur_altsetting);
alt              1149 drivers/usb/core/sysfs.c 			alt->desc.bInterfaceClass,
alt              1150 drivers/usb/core/sysfs.c 			alt->desc.bInterfaceSubClass,
alt              1151 drivers/usb/core/sysfs.c 			alt->desc.bInterfaceProtocol,
alt              1152 drivers/usb/core/sysfs.c 			alt->desc.bInterfaceNumber);
alt              1258 drivers/usb/core/sysfs.c 	struct usb_host_interface *alt = intf->cur_altsetting;
alt              1263 drivers/usb/core/sysfs.c 	if (!alt->string && !(udev->quirks & USB_QUIRK_CONFIG_INTF_STRINGS))
alt              1264 drivers/usb/core/sysfs.c 		alt->string = usb_cache_string(udev, alt->desc.iInterface);
alt              1265 drivers/usb/core/sysfs.c 	if (alt->string && device_create_file(&intf->dev, &dev_attr_interface))
alt               136 drivers/usb/core/usb.c int usb_find_common_endpoints(struct usb_host_interface *alt,
alt               154 drivers/usb/core/usb.c 	for (i = 0; i < alt->desc.bNumEndpoints; ++i) {
alt               155 drivers/usb/core/usb.c 		epd = &alt->endpoint[i].desc;
alt               182 drivers/usb/core/usb.c int usb_find_common_endpoints_reverse(struct usb_host_interface *alt,
alt               200 drivers/usb/core/usb.c 	for (i = alt->desc.bNumEndpoints - 1; i >= 0; --i) {
alt               201 drivers/usb/core/usb.c 		epd = &alt->endpoint[i].desc;
alt               420 drivers/usb/gadget/function/f_acm.c static int acm_set_alt(struct usb_function *f, unsigned intf, unsigned alt)
alt               533 drivers/usb/gadget/function/f_ecm.c static int ecm_set_alt(struct usb_function *f, unsigned intf, unsigned alt)
alt               540 drivers/usb/gadget/function/f_ecm.c 		if (alt != 0)
alt               554 drivers/usb/gadget/function/f_ecm.c 		if (alt > 1)
alt               578 drivers/usb/gadget/function/f_ecm.c 		if (alt == 1) {
alt               182 drivers/usb/gadget/function/f_eem.c static int eem_set_alt(struct usb_function *f, unsigned intf, unsigned alt)
alt               189 drivers/usb/gadget/function/f_eem.c 	if (alt != 0)
alt              3281 drivers/usb/gadget/function/f_fs.c 			    unsigned interface, unsigned alt)
alt              3287 drivers/usb/gadget/function/f_fs.c 	if (alt != (unsigned)-1) {
alt              3306 drivers/usb/gadget/function/f_fs.c 	if (alt == (unsigned)-1) {
alt               635 drivers/usb/gadget/function/f_hid.c static int hidg_set_alt(struct usb_function *f, unsigned intf, unsigned alt)
alt               643 drivers/usb/gadget/function/f_hid.c 	VDBG(cdev, "hidg_set_alt intf:%d alt:%d\n", intf, alt);
alt               408 drivers/usb/gadget/function/f_loopback.c 		unsigned intf, unsigned alt)
alt              2292 drivers/usb/gadget/function/f_mass_storage.c static int fsg_set_alt(struct usb_function *f, unsigned intf, unsigned alt)
alt               363 drivers/usb/gadget/function/f_midi.c static int f_midi_set_alt(struct usb_function *f, unsigned intf, unsigned alt)
alt               864 drivers/usb/gadget/function/f_ncm.c static int ncm_set_alt(struct usb_function *f, unsigned intf, unsigned alt)
alt               871 drivers/usb/gadget/function/f_ncm.c 		if (alt != 0)
alt               886 drivers/usb/gadget/function/f_ncm.c 		if (alt > 1)
alt               901 drivers/usb/gadget/function/f_ncm.c 		if (alt == 1) {
alt               189 drivers/usb/gadget/function/f_obex.c static int obex_set_alt(struct usb_function *f, unsigned intf, unsigned alt)
alt               195 drivers/usb/gadget/function/f_obex.c 		if (alt != 0)
alt               202 drivers/usb/gadget/function/f_obex.c 		if (alt > 1)
alt               224 drivers/usb/gadget/function/f_obex.c 		if (alt == 1) {
alt               233 drivers/usb/gadget/function/f_obex.c 	obex->cur_alt = alt;
alt               394 drivers/usb/gadget/function/f_phonet.c static int pn_set_alt(struct usb_function *f, unsigned intf, unsigned alt)
alt               401 drivers/usb/gadget/function/f_phonet.c 		return (alt > 0) ? -EINVAL : 0;
alt               408 drivers/usb/gadget/function/f_phonet.c 		if (alt > 1)
alt               416 drivers/usb/gadget/function/f_phonet.c 		if (alt == 1) {
alt               453 drivers/usb/gadget/function/f_phonet.c 		u8 alt;
alt               456 drivers/usb/gadget/function/f_phonet.c 		alt = port->usb != NULL;
alt               458 drivers/usb/gadget/function/f_phonet.c 		return alt;
alt              1124 drivers/usb/gadget/function/f_printer.c 		unsigned intf, unsigned alt)
alt              1129 drivers/usb/gadget/function/f_printer.c 	if (!alt)
alt               537 drivers/usb/gadget/function/f_rndis.c static int rndis_set_alt(struct usb_function *f, unsigned intf, unsigned alt)
alt               146 drivers/usb/gadget/function/f_serial.c static int gser_set_alt(struct usb_function *f, unsigned intf, unsigned alt)
alt               645 drivers/usb/gadget/function/f_sourcesink.c 		int alt)
alt               687 drivers/usb/gadget/function/f_sourcesink.c 	if (alt == 0)
alt               729 drivers/usb/gadget/function/f_sourcesink.c 	ss->cur_alt = alt;
alt               731 drivers/usb/gadget/function/f_sourcesink.c 	DBG(cdev, "%s enabled, alt intf %d\n", ss->function.name, alt);
alt               736 drivers/usb/gadget/function/f_sourcesink.c 		unsigned intf, unsigned alt)
alt               742 drivers/usb/gadget/function/f_sourcesink.c 	return enable_source_sink(cdev, ss, alt);
alt               253 drivers/usb/gadget/function/f_subset.c static int geth_set_alt(struct usb_function *f, unsigned intf, unsigned alt)
alt              2072 drivers/usb/gadget/function/f_tcm.c 	unsigned int alt;
alt              2080 drivers/usb/gadget/function/f_tcm.c 	int alt = work->alt;
alt              2089 drivers/usb/gadget/function/f_tcm.c 	if (alt == USB_G_ALT_INT_BBB)
alt              2091 drivers/usb/gadget/function/f_tcm.c 	else if (alt == USB_G_ALT_INT_UAS)
alt              2096 drivers/usb/gadget/function/f_tcm.c static int tcm_set_alt(struct usb_function *f, unsigned intf, unsigned alt)
alt              2100 drivers/usb/gadget/function/f_tcm.c 	if ((alt == USB_G_ALT_INT_BBB) || (alt == USB_G_ALT_INT_UAS)) {
alt              2108 drivers/usb/gadget/function/f_tcm.c 		work->alt = alt;
alt               429 drivers/usb/gadget/function/f_uac1.c static int f_audio_set_alt(struct usb_function *f, unsigned intf, unsigned alt)
alt               438 drivers/usb/gadget/function/f_uac1.c 	if (alt > 1) {
alt               445 drivers/usb/gadget/function/f_uac1.c 		if (alt) {
alt               453 drivers/usb/gadget/function/f_uac1.c 		uac1->as_out_alt = alt;
alt               455 drivers/usb/gadget/function/f_uac1.c 		if (alt)
alt               460 drivers/usb/gadget/function/f_uac1.c 		uac1->as_in_alt = alt;
alt               462 drivers/usb/gadget/function/f_uac1.c 		if (alt)
alt               572 drivers/usb/gadget/function/f_uac1_legacy.c static int f_audio_set_alt(struct usb_function *f, unsigned intf, unsigned alt)
alt               582 drivers/usb/gadget/function/f_uac1_legacy.c 	DBG(cdev, "intf %d, alt %d\n", intf, alt);
alt               590 drivers/usb/gadget/function/f_uac1_legacy.c 	if (alt > 1) {
alt               597 drivers/usb/gadget/function/f_uac1_legacy.c 		if (alt) {
alt               603 drivers/usb/gadget/function/f_uac1_legacy.c 		if (alt == 1) {
alt               647 drivers/usb/gadget/function/f_uac1_legacy.c 		audio->as_alt = alt;
alt               735 drivers/usb/gadget/function/f_uac2.c afunc_set_alt(struct usb_function *fn, unsigned intf, unsigned alt)
alt               744 drivers/usb/gadget/function/f_uac2.c 	if (alt > 1) {
alt               751 drivers/usb/gadget/function/f_uac2.c 		if (alt) {
alt               759 drivers/usb/gadget/function/f_uac2.c 		uac2->as_out_alt = alt;
alt               761 drivers/usb/gadget/function/f_uac2.c 		if (alt)
alt               766 drivers/usb/gadget/function/f_uac2.c 		uac2->as_in_alt = alt;
alt               768 drivers/usb/gadget/function/f_uac2.c 		if (alt)
alt               275 drivers/usb/gadget/function/f_uvc.c uvc_function_set_alt(struct usb_function *f, unsigned interface, unsigned alt)
alt               283 drivers/usb/gadget/function/f_uvc.c 	uvcg_info(f, "%s(%u, %u)\n", __func__, interface, alt);
alt               286 drivers/usb/gadget/function/f_uvc.c 		if (alt)
alt               318 drivers/usb/gadget/function/f_uvc.c 	switch (alt) {
alt               290 drivers/usb/gadget/udc/pxa27x_udc.c 	int alt = udc->last_alternate;
alt               297 drivers/usb/gadget/udc/pxa27x_udc.c 		if (is_match_usb_pxa(udc_usb_ep, ep, cfg, iface, alt))
alt              2111 drivers/usb/gadget/udc/pxa27x_udc.c static void pxa27x_change_interface(struct pxa_udc *udc, int iface, int alt)
alt              2115 drivers/usb/gadget/udc/pxa27x_udc.c 	dev_dbg(udc->dev, "interface=%d, alternate setting=%d\n", iface, alt);
alt              2118 drivers/usb/gadget/udc/pxa27x_udc.c 	udc->last_alternate = alt;
alt              2122 drivers/usb/gadget/udc/pxa27x_udc.c 	req.wValue = alt;
alt               272 drivers/usb/gadget/udc/pxa27x_udc.h #define PXA_EP_BULK(_idx, addr, dir, config, iface, alt) \
alt               274 drivers/usb/gadget/udc/pxa27x_udc.h 		config, iface, alt)
alt               275 drivers/usb/gadget/udc/pxa27x_udc.h #define PXA_EP_ISO(_idx, addr, dir, config, iface, alt) \
alt               277 drivers/usb/gadget/udc/pxa27x_udc.h 		config, iface, alt)
alt               278 drivers/usb/gadget/udc/pxa27x_udc.h #define PXA_EP_INT(_idx, addr, dir, config, iface, alt) \
alt               280 drivers/usb/gadget/udc/pxa27x_udc.h 		config, iface, alt)
alt              4765 drivers/usb/host/xhci.c 		struct usb_host_interface *alt,
alt              4771 drivers/usb/host/xhci.c 	for (j = 0; j < alt->desc.bNumEndpoints; j++) {
alt              4773 drivers/usb/host/xhci.c 					&alt->endpoint[j].desc, state, timeout))
alt                19 drivers/usb/misc/usbtest.c module_param_named(alt, override_alt, int, 0644);
alt                20 drivers/usb/misc/usbtest.c MODULE_PARM_DESC(alt, ">= 0 to override altsetting selection");
alt                84 drivers/usb/misc/usbtest.c 	int			alt;
alt               146 drivers/usb/misc/usbtest.c 	struct usb_host_interface	*alt;
alt               158 drivers/usb/misc/usbtest.c 		alt = intf->altsetting + tmp;
alt               161 drivers/usb/misc/usbtest.c 				override_alt != alt->desc.bAlternateSetting)
alt               167 drivers/usb/misc/usbtest.c 		for (ep = 0; ep < alt->desc.bNumEndpoints; ep++) {
alt               171 drivers/usb/misc/usbtest.c 			e = alt->endpoint + ep;
alt               197 drivers/usb/misc/usbtest.c 	dev->info->alt = alt->desc.bAlternateSetting;
alt               198 drivers/usb/misc/usbtest.c 	if (alt->desc.bAlternateSetting != 0) {
alt               200 drivers/usb/misc/usbtest.c 				alt->desc.bInterfaceNumber,
alt               201 drivers/usb/misc/usbtest.c 				alt->desc.bAlternateSetting);
alt               830 drivers/usb/misc/usbtest.c 	int			i, alt, retval;
alt               838 drivers/usb/misc/usbtest.c 		alt = iface->altsetting[i].desc.bAlternateSetting;
alt               839 drivers/usb/misc/usbtest.c 		if (alt < 0 || alt >= iface->num_altsetting) {
alt               842 drivers/usb/misc/usbtest.c 					i, alt);
alt               850 drivers/usb/misc/usbtest.c 		retval = set_altsetting(dev, alt);
alt               853 drivers/usb/misc/usbtest.c 					alt, retval);
alt               859 drivers/usb/misc/usbtest.c 		if (retval != alt) {
alt               861 drivers/usb/misc/usbtest.c 					alt, retval);
alt              2675 drivers/usb/misc/usbtest.c 	if (dev->info->alt >= 0) {
alt              2680 drivers/usb/misc/usbtest.c 		retval = set_altsetting(dev, dev->info->alt);
alt              2684 drivers/usb/misc/usbtest.c 					dev->info->alt, retval);
alt              2855 drivers/usb/misc/usbtest.c 			info->alt >= 0 ? " (+alt)" : "");
alt              2895 drivers/usb/misc/usbtest.c 	.alt		= 1,
alt              2903 drivers/usb/misc/usbtest.c 	.alt		= 1,
alt              2912 drivers/usb/misc/usbtest.c 	.alt		= 1,
alt              2929 drivers/usb/misc/usbtest.c 	.alt		= 0,
alt              2935 drivers/usb/misc/usbtest.c 	.alt		= -1,
alt              2942 drivers/usb/misc/usbtest.c 	.alt		= -1,
alt              2952 drivers/usb/misc/usbtest.c 	.alt		= -1,
alt              2960 drivers/usb/misc/usbtest.c 	.alt		= -1,
alt              2906 drivers/usb/serial/io_edgeport.c 		struct usb_host_interface *alt;
alt              2908 drivers/usb/serial/io_edgeport.c 		alt = serial->interface->cur_altsetting;
alt              2913 drivers/usb/serial/io_edgeport.c 		for (i = 0; i < alt->desc.bNumEndpoints; ++i) {
alt              2917 drivers/usb/serial/io_edgeport.c 			endpoint = &alt->endpoint[i].desc;
alt                19 drivers/usb/storage/uas-detect.h 		struct usb_host_interface *alt = &intf->altsetting[i];
alt                21 drivers/usb/storage/uas-detect.h 		if (uas_is_interface(alt))
alt                22 drivers/usb/storage/uas-detect.h 			return alt;
alt                28 drivers/usb/storage/uas-detect.h static int uas_find_endpoints(struct usb_host_interface *alt,
alt                31 drivers/usb/storage/uas-detect.h 	struct usb_host_endpoint *endpoint = alt->endpoint;
alt                32 drivers/usb/storage/uas-detect.h 	unsigned i, n_endpoints = alt->desc.bNumEndpoints;
alt                63 drivers/usb/storage/uas-detect.h 	struct usb_host_interface *alt;
alt                66 drivers/usb/storage/uas-detect.h 	alt = uas_find_uas_alt_setting(intf);
alt                67 drivers/usb/storage/uas-detect.h 	if (!alt)
alt                70 drivers/usb/storage/uas-detect.h 	r = uas_find_endpoints(alt, eps);
alt               924 drivers/usb/storage/uas.c 	struct usb_host_interface *alt;
alt               926 drivers/usb/storage/uas.c 	alt = uas_find_uas_alt_setting(intf);
alt               927 drivers/usb/storage/uas.c 	if (!alt)
alt               930 drivers/usb/storage/uas.c 	return usb_set_interface(udev, alt->desc.bInterfaceNumber,
alt               931 drivers/usb/storage/uas.c 			alt->desc.bAlternateSetting);
alt               730 drivers/usb/storage/usb.c 	struct usb_host_interface *alt = us->pusb_intf->cur_altsetting;
alt               742 drivers/usb/storage/usb.c 	res = usb_find_common_endpoints(alt, &ep_in, &ep_out, NULL, NULL);
alt               748 drivers/usb/storage/usb.c 	res = usb_find_int_in_endpoint(alt, &ep_int);
alt                17 drivers/usb/typec/altmodes/displayport.c #define DP_HEADER(_dp, cmd)		(VDO((_dp)->alt->svid, 1, cmd) | \
alt                62 drivers/usb/typec/altmodes/displayport.c 	struct typec_altmode *alt;
alt                70 drivers/usb/typec/altmodes/displayport.c 	return typec_altmode_notify(dp->alt, TYPEC_MODAL_STATE(state),
alt                84 drivers/usb/typec/altmodes/displayport.c 		pin_assign = DP_CAP_UFP_D_PIN_ASSIGN(dp->alt->vdo) &
alt                90 drivers/usb/typec/altmodes/displayport.c 		pin_assign = DP_CAP_DFP_D_PIN_ASSIGN(dp->alt->vdo) &
alt               141 drivers/usb/typec/altmodes/displayport.c 	sysfs_notify(&dp->alt->dev.kobj, "displayport", "configuration");
alt               144 drivers/usb/typec/altmodes/displayport.c 		return typec_altmode_notify(dp->alt, TYPEC_STATE_USB,
alt               151 drivers/usb/typec/altmodes/displayport.c 	sysfs_notify(&dp->alt->dev.kobj, "displayport", "pin_assignment");
alt               161 drivers/usb/typec/altmodes/displayport.c 	ret = typec_altmode_notify(dp->alt, TYPEC_STATE_SAFE, &dp->data);
alt               163 drivers/usb/typec/altmodes/displayport.c 		dev_err(&dp->alt->dev,
alt               168 drivers/usb/typec/altmodes/displayport.c 	ret = typec_altmode_vdm(dp->alt, header, &conf, 2);
alt               173 drivers/usb/typec/altmodes/displayport.c 			typec_altmode_notify(dp->alt, TYPEC_STATE_USB,
alt               191 drivers/usb/typec/altmodes/displayport.c 		ret = typec_altmode_enter(dp->alt);
alt               193 drivers/usb/typec/altmodes/displayport.c 			dev_err(&dp->alt->dev, "failed to enter mode\n");
alt               198 drivers/usb/typec/altmodes/displayport.c 		ret = typec_altmode_vdm(dp->alt, header, &vdo, 2);
alt               200 drivers/usb/typec/altmodes/displayport.c 			dev_err(&dp->alt->dev,
alt               207 drivers/usb/typec/altmodes/displayport.c 			dev_err(&dp->alt->dev,
alt               211 drivers/usb/typec/altmodes/displayport.c 		if (typec_altmode_exit(dp->alt))
alt               212 drivers/usb/typec/altmodes/displayport.c 			dev_err(&dp->alt->dev, "Exit Mode Failed!\n");
alt               223 drivers/usb/typec/altmodes/displayport.c static void dp_altmode_attention(struct typec_altmode *alt, const u32 vdo)
alt               225 drivers/usb/typec/altmodes/displayport.c 	struct dp_altmode *dp = typec_altmode_get_drvdata(alt);
alt               234 drivers/usb/typec/altmodes/displayport.c 		dev_warn(&alt->dev, "ATTENTION while processing state %d\n",
alt               238 drivers/usb/typec/altmodes/displayport.c 		dev_warn(&alt->dev, "%s: status update failed\n", __func__);
alt               241 drivers/usb/typec/altmodes/displayport.c 		dev_err(&alt->dev, "%s: notification failed\n", __func__);
alt               249 drivers/usb/typec/altmodes/displayport.c static int dp_altmode_vdm(struct typec_altmode *alt,
alt               252 drivers/usb/typec/altmodes/displayport.c 	struct dp_altmode *dp = typec_altmode_get_drvdata(alt);
alt               307 drivers/usb/typec/altmodes/displayport.c static int dp_altmode_activate(struct typec_altmode *alt, int activate)
alt               309 drivers/usb/typec/altmodes/displayport.c 	return activate ? typec_altmode_enter(alt) : typec_altmode_exit(alt);
alt               345 drivers/usb/typec/altmodes/displayport.c 	cap = DP_CAP_CAPABILITY(dp->alt->vdo);
alt               356 drivers/usb/typec/altmodes/displayport.c 	if (dp->alt->active) {
alt               381 drivers/usb/typec/altmodes/displayport.c 	cap = DP_CAP_CAPABILITY(dp->alt->vdo);
alt               437 drivers/usb/typec/altmodes/displayport.c 		assignments = DP_CAP_UFP_D_PIN_ASSIGN(dp->alt->vdo);
alt               439 drivers/usb/typec/altmodes/displayport.c 		assignments = DP_CAP_DFP_D_PIN_ASSIGN(dp->alt->vdo);
alt               449 drivers/usb/typec/altmodes/displayport.c 	if (dp->alt->active && DP_CONF_CURRENTLY(dp->data.conf)) {
alt               477 drivers/usb/typec/altmodes/displayport.c 		assignments = DP_CAP_UFP_D_PIN_ASSIGN(dp->alt->vdo);
alt               479 drivers/usb/typec/altmodes/displayport.c 		assignments = DP_CAP_DFP_D_PIN_ASSIGN(dp->alt->vdo);
alt               510 drivers/usb/typec/altmodes/displayport.c int dp_altmode_probe(struct typec_altmode *alt)
alt               512 drivers/usb/typec/altmodes/displayport.c 	const struct typec_altmode *port = typec_altmode_get_partner(alt);
alt               520 drivers/usb/typec/altmodes/displayport.c 	      DP_CAP_UFP_D_PIN_ASSIGN(alt->vdo)) &&
alt               522 drivers/usb/typec/altmodes/displayport.c 	      DP_CAP_DFP_D_PIN_ASSIGN(alt->vdo)))
alt               525 drivers/usb/typec/altmodes/displayport.c 	ret = sysfs_create_group(&alt->dev.kobj, &dp_altmode_group);
alt               529 drivers/usb/typec/altmodes/displayport.c 	dp = devm_kzalloc(&alt->dev, sizeof(*dp), GFP_KERNEL);
alt               536 drivers/usb/typec/altmodes/displayport.c 	dp->alt = alt;
alt               538 drivers/usb/typec/altmodes/displayport.c 	alt->desc = "DisplayPort";
alt               539 drivers/usb/typec/altmodes/displayport.c 	alt->ops = &dp_altmode_ops;
alt               541 drivers/usb/typec/altmodes/displayport.c 	typec_altmode_set_drvdata(alt, dp);
alt               550 drivers/usb/typec/altmodes/displayport.c void dp_altmode_remove(struct typec_altmode *alt)
alt               552 drivers/usb/typec/altmodes/displayport.c 	struct dp_altmode *dp = typec_altmode_get_drvdata(alt);
alt               554 drivers/usb/typec/altmodes/displayport.c 	sysfs_remove_group(&alt->dev.kobj, &dp_altmode_group);
alt                 3 drivers/usb/typec/altmodes/displayport.h int dp_altmode_probe(struct typec_altmode *alt);
alt                 4 drivers/usb/typec/altmodes/displayport.h void dp_altmode_remove(struct typec_altmode *alt);
alt                 6 drivers/usb/typec/altmodes/displayport.h int dp_altmode_probe(struct typec_altmode *alt) { return -ENOTSUPP; }
alt                 7 drivers/usb/typec/altmodes/displayport.h void dp_altmode_remove(struct typec_altmode *alt) { }
alt                12 drivers/usb/typec/altmodes/nvidia.c static int nvidia_altmode_probe(struct typec_altmode *alt)
alt                14 drivers/usb/typec/altmodes/nvidia.c 	if (alt->svid == USB_TYPEC_NVIDIA_VLINK_SID)
alt                15 drivers/usb/typec/altmodes/nvidia.c 		return dp_altmode_probe(alt);
alt                20 drivers/usb/typec/altmodes/nvidia.c static void nvidia_altmode_remove(struct typec_altmode *alt)
alt                22 drivers/usb/typec/altmodes/nvidia.c 	if (alt->svid == USB_TYPEC_NVIDIA_VLINK_SID)
alt                23 drivers/usb/typec/altmodes/nvidia.c 		dp_altmode_remove(alt);
alt                13 drivers/usb/typec/bus.c static inline int typec_altmode_set_mux(struct altmode *alt, u8 state)
alt                15 drivers/usb/typec/bus.c 	return alt->mux ? alt->mux->set(alt->mux, state) : 0;
alt               291 drivers/usb/typec/bus.c 	struct typec_altmode *alt = to_typec_altmode(dev);
alt               293 drivers/usb/typec/bus.c 	return sprintf(buf, "%s\n", alt->desc ? alt->desc : "");
alt               330 drivers/usb/typec/bus.c static int typec_altmode_create_links(struct altmode *alt)
alt               332 drivers/usb/typec/bus.c 	struct device *port_dev = &alt->partner->adev.dev;
alt               333 drivers/usb/typec/bus.c 	struct device *dev = &alt->adev.dev;
alt               347 drivers/usb/typec/bus.c static void typec_altmode_remove_links(struct altmode *alt)
alt               349 drivers/usb/typec/bus.c 	sysfs_remove_link(&alt->partner->adev.dev.kobj, "partner");
alt               350 drivers/usb/typec/bus.c 	sysfs_remove_link(&alt->adev.dev.kobj, "port");
alt               308 drivers/usb/typec/class.c struct typec_port *typec_altmode2port(struct typec_altmode *alt)
alt               310 drivers/usb/typec/class.c 	if (is_typec_plug(alt->dev.parent))
alt               311 drivers/usb/typec/class.c 		return to_typec_port(alt->dev.parent->parent->parent);
alt               312 drivers/usb/typec/class.c 	if (is_typec_partner(alt->dev.parent))
alt               313 drivers/usb/typec/class.c 		return to_typec_port(alt->dev.parent->parent);
alt               314 drivers/usb/typec/class.c 	if (is_typec_port(alt->dev.parent))
alt               315 drivers/usb/typec/class.c 		return to_typec_port(alt->dev.parent);
alt               324 drivers/usb/typec/class.c 	struct typec_altmode *alt = to_typec_altmode(dev);
alt               326 drivers/usb/typec/class.c 	return sprintf(buf, "0x%08x\n", alt->vdo);
alt               333 drivers/usb/typec/class.c 	struct typec_altmode *alt = to_typec_altmode(dev);
alt               335 drivers/usb/typec/class.c 	return sprintf(buf, "%s\n", alt->desc ? alt->desc : "");
alt               342 drivers/usb/typec/class.c 	struct typec_altmode *alt = to_typec_altmode(dev);
alt               344 drivers/usb/typec/class.c 	return sprintf(buf, "%s\n", alt->active ? "yes" : "no");
alt               390 drivers/usb/typec/class.c 	struct altmode *alt = to_altmode(to_typec_altmode(dev));
alt               393 drivers/usb/typec/class.c 	switch (alt->roles) {
alt               466 drivers/usb/typec/class.c 	struct altmode *alt = to_altmode(to_typec_altmode(dev));
alt               468 drivers/usb/typec/class.c 	typec_altmode_put_partner(alt);
alt               470 drivers/usb/typec/class.c 	altmode_id_remove(alt->adev.dev.parent, alt->id);
alt               471 drivers/usb/typec/class.c 	kfree(alt);
alt               486 drivers/usb/typec/class.c 	struct altmode *alt;
alt               489 drivers/usb/typec/class.c 	alt = kzalloc(sizeof(*alt), GFP_KERNEL);
alt               490 drivers/usb/typec/class.c 	if (!alt)
alt               493 drivers/usb/typec/class.c 	alt->adev.svid = desc->svid;
alt               494 drivers/usb/typec/class.c 	alt->adev.mode = desc->mode;
alt               495 drivers/usb/typec/class.c 	alt->adev.vdo = desc->vdo;
alt               496 drivers/usb/typec/class.c 	alt->roles = desc->roles;
alt               497 drivers/usb/typec/class.c 	alt->id = id;
alt               499 drivers/usb/typec/class.c 	alt->attrs[0] = &dev_attr_vdo.attr;
alt               500 drivers/usb/typec/class.c 	alt->attrs[1] = &dev_attr_description.attr;
alt               501 drivers/usb/typec/class.c 	alt->attrs[2] = &dev_attr_active.attr;
alt               504 drivers/usb/typec/class.c 		alt->attrs[3] = &dev_attr_supported_roles.attr;
alt               505 drivers/usb/typec/class.c 		alt->adev.active = true; /* Enabled by default */
alt               508 drivers/usb/typec/class.c 	sprintf(alt->group_name, "mode%d", desc->mode);
alt               509 drivers/usb/typec/class.c 	alt->group.name = alt->group_name;
alt               510 drivers/usb/typec/class.c 	alt->group.attrs = alt->attrs;
alt               511 drivers/usb/typec/class.c 	alt->groups[0] = &alt->group;
alt               513 drivers/usb/typec/class.c 	alt->adev.dev.parent = parent;
alt               514 drivers/usb/typec/class.c 	alt->adev.dev.groups = alt->groups;
alt               515 drivers/usb/typec/class.c 	alt->adev.dev.type = &typec_altmode_dev_type;
alt               516 drivers/usb/typec/class.c 	dev_set_name(&alt->adev.dev, "%s.%u", dev_name(parent), id);
alt               520 drivers/usb/typec/class.c 		BLOCKING_INIT_NOTIFIER_HEAD(&alt->nh);
alt               522 drivers/usb/typec/class.c 		typec_altmode_set_partner(alt);
alt               526 drivers/usb/typec/class.c 		alt->adev.dev.bus = &typec_bus;
alt               528 drivers/usb/typec/class.c 	ret = device_register(&alt->adev.dev);
alt               532 drivers/usb/typec/class.c 		put_device(&alt->adev.dev);
alt               536 drivers/usb/typec/class.c 	return &alt->adev;
alt              4831 drivers/usb/typec/tcpm/tcpm.c 			struct typec_altmode *alt;
alt              4833 drivers/usb/typec/tcpm/tcpm.c 			alt = typec_port_register_altmode(port->typec_port,
alt              4835 drivers/usb/typec/tcpm/tcpm.c 			if (IS_ERR(alt)) {
alt              4841 drivers/usb/typec/tcpm/tcpm.c 			typec_altmode_set_drvdata(alt, port);
alt              4842 drivers/usb/typec/tcpm/tcpm.c 			alt->ops = &tcpm_altmode_ops;
alt              4843 drivers/usb/typec/tcpm/tcpm.c 			port->port_altmode[i] = alt;
alt                21 drivers/usb/typec/ucsi/displayport.c 	struct typec_altmode *alt;
alt                48 drivers/usb/typec/ucsi/displayport.c static int ucsi_displayport_enter(struct typec_altmode *alt)
alt                50 drivers/usb/typec/ucsi/displayport.c 	struct ucsi_dp *dp = typec_altmode_get_drvdata(alt);
alt                58 drivers/usb/typec/ucsi/displayport.c 		const struct typec_altmode *p = typec_altmode_get_partner(alt);
alt                78 drivers/usb/typec/ucsi/displayport.c 		if (dp->con->port_altmode[cur] == alt)
alt               103 drivers/usb/typec/ucsi/displayport.c static int ucsi_displayport_exit(struct typec_altmode *alt)
alt               105 drivers/usb/typec/ucsi/displayport.c 	struct ucsi_dp *dp = typec_altmode_get_drvdata(alt);
alt               112 drivers/usb/typec/ucsi/displayport.c 		const struct typec_altmode *p = typec_altmode_get_partner(alt);
alt               146 drivers/usb/typec/ucsi/displayport.c 	u32 cap = dp->alt->vdo;
alt               185 drivers/usb/typec/ucsi/displayport.c static int ucsi_displayport_vdm(struct typec_altmode *alt,
alt               188 drivers/usb/typec/ucsi/displayport.c 	struct ucsi_dp *dp = typec_altmode_get_drvdata(alt);
alt               195 drivers/usb/typec/ucsi/displayport.c 		const struct typec_altmode *p = typec_altmode_get_partner(alt);
alt               256 drivers/usb/typec/ucsi/displayport.c 	ret = typec_altmode_vdm(dp->alt, dp->header,
alt               259 drivers/usb/typec/ucsi/displayport.c 		dev_err(&dp->alt->dev, "VDM 0x%x failed\n", dp->header);
alt               268 drivers/usb/typec/ucsi/displayport.c void ucsi_displayport_remove_partner(struct typec_altmode *alt)
alt               272 drivers/usb/typec/ucsi/displayport.c 	if (!alt)
alt               275 drivers/usb/typec/ucsi/displayport.c 	dp = typec_altmode_get_drvdata(alt);
alt               290 drivers/usb/typec/ucsi/displayport.c 	struct typec_altmode *alt;
alt               302 drivers/usb/typec/ucsi/displayport.c 	alt = typec_port_register_altmode(con->port, desc);
alt               303 drivers/usb/typec/ucsi/displayport.c 	if (IS_ERR(alt)) {
alt               305 drivers/usb/typec/ucsi/displayport.c 		return alt;
alt               308 drivers/usb/typec/ucsi/displayport.c 	dp = devm_kzalloc(&alt->dev, sizeof(*dp), GFP_KERNEL);
alt               310 drivers/usb/typec/ucsi/displayport.c 		typec_unregister_altmode(alt);
alt               319 drivers/usb/typec/ucsi/displayport.c 	dp->alt = alt;
alt               321 drivers/usb/typec/ucsi/displayport.c 	alt->ops = &ucsi_displayport_ops;
alt               322 drivers/usb/typec/ucsi/displayport.c 	typec_altmode_set_drvdata(alt, dp);
alt               326 drivers/usb/typec/ucsi/displayport.c 	return alt;
alt               139 drivers/usb/typec/ucsi/trace.h 	TP_PROTO(u8 recipient, struct typec_altmode *alt),
alt               140 drivers/usb/typec/ucsi/trace.h 	TP_ARGS(recipient, alt),
alt               149 drivers/usb/typec/ucsi/trace.h 		__entry->svid = alt->svid;
alt               150 drivers/usb/typec/ucsi/trace.h 		__entry->mode = alt->mode;
alt               151 drivers/usb/typec/ucsi/trace.h 		__entry->vdo = alt->vdo;
alt               159 drivers/usb/typec/ucsi/trace.h 	TP_PROTO(u8 recipient, struct typec_altmode *alt),
alt               160 drivers/usb/typec/ucsi/trace.h 	TP_ARGS(recipient, alt)
alt               249 drivers/usb/typec/ucsi/ucsi.c static u8 ucsi_altmode_next_mode(struct typec_altmode **alt, u16 svid)
alt               254 drivers/usb/typec/ucsi/ucsi.c 	for (i = 0; alt[i]; i++)
alt               255 drivers/usb/typec/ucsi/ucsi.c 		if (alt[i]->svid == svid)
alt               261 drivers/usb/typec/ucsi/ucsi.c static int ucsi_next_altmode(struct typec_altmode **alt)
alt               266 drivers/usb/typec/ucsi/ucsi.c 		if (!alt[i])
alt               276 drivers/usb/typec/ucsi/ucsi.c 	struct typec_altmode *alt;
alt               297 drivers/usb/typec/ucsi/ucsi.c 			alt = ucsi_register_displayport(con, override, i, desc);
alt               300 drivers/usb/typec/ucsi/ucsi.c 			alt = typec_port_register_altmode(con->port, desc);
alt               304 drivers/usb/typec/ucsi/ucsi.c 		if (IS_ERR(alt)) {
alt               305 drivers/usb/typec/ucsi/ucsi.c 			ret = PTR_ERR(alt);
alt               309 drivers/usb/typec/ucsi/ucsi.c 		con->port_altmode[i] = alt;
alt               321 drivers/usb/typec/ucsi/ucsi.c 		alt = typec_partner_register_altmode(con->partner, desc);
alt               322 drivers/usb/typec/ucsi/ucsi.c 		if (IS_ERR(alt)) {
alt               323 drivers/usb/typec/ucsi/ucsi.c 			ret = PTR_ERR(alt);
alt               327 drivers/usb/typec/ucsi/ucsi.c 		con->partner_altmode[i] = alt;
alt               333 drivers/usb/typec/ucsi/ucsi.c 	trace_ucsi_register_altmode(recipient, alt);
alt               348 drivers/usb/typec/ucsi/ucsi.c 	struct ucsi_altmode alt[2];
alt               366 drivers/usb/typec/ucsi/ucsi.c 		memset(alt, 0, sizeof(alt));
alt               368 drivers/usb/typec/ucsi/ucsi.c 		len = ucsi_run_command(con->ucsi, &ctrl, alt, sizeof(alt));
alt               378 drivers/usb/typec/ucsi/ucsi.c 		num = len / sizeof(alt[0]);
alt               382 drivers/usb/typec/ucsi/ucsi.c 			if (!alt[j].svid)
alt               386 drivers/usb/typec/ucsi/ucsi.c 			desc.vdo = alt[j].mid;
alt               387 drivers/usb/typec/ucsi/ucsi.c 			desc.svid = alt[j].svid;
alt                85 drivers/usb/typec/ucsi/ucsi.h 		struct ucsi_altmode_cmd alt;
alt               135 drivers/usb/typec/ucsi/ucsi.h 	_ctrl_.alt.recipient = (_r_);					\
alt               136 drivers/usb/typec/ucsi/ucsi.h 	_ctrl_.alt.con_num = (_con_num_);				\
alt               137 drivers/usb/typec/ucsi/ucsi.h 	_ctrl_.alt.offset = (_o_);					\
alt               138 drivers/usb/typec/ucsi/ucsi.h 	_ctrl_.alt.num_altmodes = (_num_) - 1;				\
alt               979 drivers/w1/masters/ds2490.c 	int i, err, alt;
alt              1003 drivers/w1/masters/ds2490.c 	alt = 3;
alt              1005 drivers/w1/masters/ds2490.c 		intf->cur_altsetting->desc.bInterfaceNumber, alt);
alt              1008 drivers/w1/masters/ds2490.c 			"for %d interface: err=%d.\n", alt,
alt              2083 fs/btrfs/extent-tree.c 	int alt = 1;
alt              2105 fs/btrfs/extent-tree.c 		if (alt)
alt              2110 fs/btrfs/extent-tree.c 		alt = 1 - alt;
alt              2445 fs/dlm/lock.c  	int8_t alt = 0, rqmode = lkb->lkb_rqmode;
alt              2484 fs/dlm/lock.c  		alt = DLM_LOCK_PR;
alt              2486 fs/dlm/lock.c  		alt = DLM_LOCK_CW;
alt              2488 fs/dlm/lock.c  	if (alt) {
alt              2489 fs/dlm/lock.c  		lkb->lkb_rqmode = alt;
alt              2010 fs/ubifs/tnc.c 		znode->alt = 1;
alt              2066 fs/ubifs/tnc.c 		znode->alt = 1;
alt              2112 fs/ubifs/tnc.c 	if (znode->alt)
alt               657 fs/ubifs/tnc_commit.c 		znode->alt = 0;
alt               785 fs/ubifs/ubifs.h 	int alt;
alt               108 include/linux/mfd/asic3.h #define ASIC3_CONFIG_GPIO(gpio, alt, dir, init) (((gpio) & 0x7f) \
alt               109 include/linux/mfd/asic3.h 	| (((alt) & 0x7f) << 7) | (((dir) & 0x1) << 14) \
alt               104 include/linux/usb.h usb_find_common_endpoints(struct usb_host_interface *alt,
alt               111 include/linux/usb.h usb_find_common_endpoints_reverse(struct usb_host_interface *alt,
alt               118 include/linux/usb.h usb_find_bulk_in_endpoint(struct usb_host_interface *alt,
alt               121 include/linux/usb.h 	return usb_find_common_endpoints(alt, bulk_in, NULL, NULL, NULL);
alt               125 include/linux/usb.h usb_find_bulk_out_endpoint(struct usb_host_interface *alt,
alt               128 include/linux/usb.h 	return usb_find_common_endpoints(alt, NULL, bulk_out, NULL, NULL);
alt               132 include/linux/usb.h usb_find_int_in_endpoint(struct usb_host_interface *alt,
alt               135 include/linux/usb.h 	return usb_find_common_endpoints(alt, NULL, NULL, int_in, NULL);
alt               139 include/linux/usb.h usb_find_int_out_endpoint(struct usb_host_interface *alt,
alt               142 include/linux/usb.h 	return usb_find_common_endpoints(alt, NULL, NULL, NULL, int_out);
alt               146 include/linux/usb.h usb_find_last_bulk_in_endpoint(struct usb_host_interface *alt,
alt               149 include/linux/usb.h 	return usb_find_common_endpoints_reverse(alt, bulk_in, NULL, NULL, NULL);
alt               153 include/linux/usb.h usb_find_last_bulk_out_endpoint(struct usb_host_interface *alt,
alt               156 include/linux/usb.h 	return usb_find_common_endpoints_reverse(alt, NULL, bulk_out, NULL, NULL);
alt               160 include/linux/usb.h usb_find_last_int_in_endpoint(struct usb_host_interface *alt,
alt               163 include/linux/usb.h 	return usb_find_common_endpoints_reverse(alt, NULL, NULL, int_in, NULL);
alt               167 include/linux/usb.h usb_find_last_int_out_endpoint(struct usb_host_interface *alt,
alt               170 include/linux/usb.h 	return usb_find_common_endpoints_reverse(alt, NULL, NULL, NULL, int_out);
alt               220 include/linux/usb/composite.h 					unsigned interface, unsigned alt);
alt               121 include/linux/usb/typec.h struct typec_port *typec_altmode2port(struct typec_altmode *alt);
alt               123 include/linux/usb/typec.h void typec_altmode_update_active(struct typec_altmode *alt, bool active);
alt              1687 include/rdma/ib_verbs.h 	struct ib_port_pkey	alt;
alt                44 net/batman-adv/debugfs.c void batadv_debugfs_deprecated(struct file *file, const char *alt)
alt                50 net/batman-adv/debugfs.c 			    current->comm, task_pid_nr(current), name, alt);
alt                19 net/batman-adv/debugfs.h void batadv_debugfs_deprecated(struct file *file, const char *alt);
alt                31 net/batman-adv/debugfs.h static inline void batadv_debugfs_deprecated(struct file *file, const char *alt)
alt                23 sound/usb/helper.h #define get_endpoint(alt,ep)	(&(alt)->endpoint[ep].desc)
alt               910 sound/usb/misc/ua101.c 	struct usb_host_interface *alt;
alt               919 sound/usb/misc/ua101.c 	alt = &interface->altsetting[0];
alt               920 sound/usb/misc/ua101.c 	if (alt->desc.bNumEndpoints != 0) {
alt               925 sound/usb/misc/ua101.c 	alt = &interface->altsetting[1];
alt               926 sound/usb/misc/ua101.c 	if (alt->desc.bNumEndpoints != 1) {
alt               931 sound/usb/misc/ua101.c 	extra = alt->extra;
alt               932 sound/usb/misc/ua101.c 	extralen = alt->extralen;
alt               836 tools/objtool/check.c 	struct alternative *alt;
alt               879 tools/objtool/check.c 		alt = malloc(sizeof(*alt));
alt               880 tools/objtool/check.c 		if (!alt) {
alt               886 tools/objtool/check.c 		alt->insn = new_insn;
alt               887 tools/objtool/check.c 		alt->skip_orig = special_alt->skip_orig;
alt               889 tools/objtool/check.c 		list_add_tail(&alt->list, &orig_insn->alts);
alt               904 tools/objtool/check.c 	struct alternative *alt;
alt               935 tools/objtool/check.c 		alt = malloc(sizeof(*alt));
alt               936 tools/objtool/check.c 		if (!alt) {
alt               941 tools/objtool/check.c 		alt->insn = dest_insn;
alt               942 tools/objtool/check.c 		list_add_tail(&alt->list, &insn->alts);
alt              1943 tools/objtool/check.c 	struct alternative *alt;
alt              2030 tools/objtool/check.c 			list_for_each_entry(alt, &insn->alts, list) {
alt              2031 tools/objtool/check.c 				if (alt->skip_orig)
alt              2034 tools/objtool/check.c 				ret = validate_branch(file, func, alt->insn, state);
alt              2420 tools/objtool/check.c 	struct alternative *alt, *tmpalt;
alt              2423 tools/objtool/check.c 		list_for_each_entry_safe(alt, tmpalt, &insn->alts, list) {
alt              2424 tools/objtool/check.c 			list_del(&alt->list);
alt              2425 tools/objtool/check.c 			free(alt);
alt                73 tools/objtool/special.c 			 struct special_alt *alt)
alt                80 tools/objtool/special.c 	alt->group = entry->group;
alt                81 tools/objtool/special.c 	alt->jump_or_nop = entry->jump_or_nop;
alt                83 tools/objtool/special.c 	if (alt->group) {
alt                84 tools/objtool/special.c 		alt->orig_len = *(unsigned char *)(sec->data->d_buf + offset +
alt                86 tools/objtool/special.c 		alt->new_len = *(unsigned char *)(sec->data->d_buf + offset +
alt               102 tools/objtool/special.c 			alt->skip_orig = true;
alt               115 tools/objtool/special.c 				alt->skip_orig = true;
alt               117 tools/objtool/special.c 				alt->skip_alt = true;
alt               132 tools/objtool/special.c 	alt->orig_sec = orig_rela->sym->sec;
alt               133 tools/objtool/special.c 	alt->orig_off = orig_rela->addend;
alt               135 tools/objtool/special.c 	if (!entry->group || alt->new_len) {
alt               143 tools/objtool/special.c 		alt->new_sec = new_rela->sym->sec;
alt               144 tools/objtool/special.c 		alt->new_off = (unsigned int)new_rela->addend;
alt               147 tools/objtool/special.c 		if (alt->new_off >= 0x7ffffff0)
alt               148 tools/objtool/special.c 			alt->new_off -= 0x7ffffff0;
alt               164 tools/objtool/special.c 	struct special_alt *alt;
alt               183 tools/objtool/special.c 			alt = malloc(sizeof(*alt));
alt               184 tools/objtool/special.c 			if (!alt) {
alt               188 tools/objtool/special.c 			memset(alt, 0, sizeof(*alt));
alt               190 tools/objtool/special.c 			ret = get_alt_entry(elf, entry, sec, idx, alt);
alt               194 tools/objtool/special.c 			list_add_tail(&alt->list, alts);
alt               738 tools/perf/builtin-script.c 	struct addr_location alf, alt;
alt               751 tools/perf/builtin-script.c 			memset(&alt, 0, sizeof(alt));
alt               753 tools/perf/builtin-script.c 			thread__find_map_fb(thread, sample->cpumode, to, &alt);
alt               766 tools/perf/builtin-script.c 			printed += map__fprintf_dsoname(alt.map, fp);
alt               785 tools/perf/builtin-script.c 	struct addr_location alf, alt;
alt               795 tools/perf/builtin-script.c 		memset(&alt, 0, sizeof(alt));
alt               800 tools/perf/builtin-script.c 		thread__find_symbol_fb(thread, sample->cpumode, to, &alt);
alt               809 tools/perf/builtin-script.c 		printed += symbol__fprintf_symname_offs(alt.sym, &alt, fp);
alt               812 tools/perf/builtin-script.c 			printed += map__fprintf_dsoname(alt.map, fp);
alt               830 tools/perf/builtin-script.c 	struct addr_location alf, alt;
alt               840 tools/perf/builtin-script.c 		memset(&alt, 0, sizeof(alt));
alt               848 tools/perf/builtin-script.c 		if (thread__find_map_fb(thread, sample->cpumode, to, &alt) &&
alt               849 tools/perf/builtin-script.c 		    !alt.map->dso->adjust_symbols)
alt               850 tools/perf/builtin-script.c 			to = map__map_ip(alt.map, to);
alt               861 tools/perf/builtin-script.c 			printed += map__fprintf_dsoname(alt.map, fp);