spec               17 arch/powerpc/include/asm/cputable.h typedef	void (*cpu_setup_t)(unsigned long offset, struct cpu_spec* spec);
spec               38 arch/powerpc/kernel/cputable.c extern void __setup_cpu_e200(unsigned long offset, struct cpu_spec* spec);
spec               39 arch/powerpc/kernel/cputable.c extern void __setup_cpu_e500v1(unsigned long offset, struct cpu_spec* spec);
spec               40 arch/powerpc/kernel/cputable.c extern void __setup_cpu_e500v2(unsigned long offset, struct cpu_spec* spec);
spec               41 arch/powerpc/kernel/cputable.c extern void __setup_cpu_e500mc(unsigned long offset, struct cpu_spec* spec);
spec               42 arch/powerpc/kernel/cputable.c extern void __setup_cpu_440ep(unsigned long offset, struct cpu_spec* spec);
spec               43 arch/powerpc/kernel/cputable.c extern void __setup_cpu_440epx(unsigned long offset, struct cpu_spec* spec);
spec               44 arch/powerpc/kernel/cputable.c extern void __setup_cpu_440gx(unsigned long offset, struct cpu_spec* spec);
spec               45 arch/powerpc/kernel/cputable.c extern void __setup_cpu_440grx(unsigned long offset, struct cpu_spec* spec);
spec               46 arch/powerpc/kernel/cputable.c extern void __setup_cpu_440spe(unsigned long offset, struct cpu_spec* spec);
spec               47 arch/powerpc/kernel/cputable.c extern void __setup_cpu_440x5(unsigned long offset, struct cpu_spec* spec);
spec               48 arch/powerpc/kernel/cputable.c extern void __setup_cpu_460ex(unsigned long offset, struct cpu_spec* spec);
spec               49 arch/powerpc/kernel/cputable.c extern void __setup_cpu_460gt(unsigned long offset, struct cpu_spec* spec);
spec               50 arch/powerpc/kernel/cputable.c extern void __setup_cpu_460sx(unsigned long offset, struct cpu_spec *spec);
spec               51 arch/powerpc/kernel/cputable.c extern void __setup_cpu_apm821xx(unsigned long offset, struct cpu_spec *spec);
spec               52 arch/powerpc/kernel/cputable.c extern void __setup_cpu_603(unsigned long offset, struct cpu_spec* spec);
spec               53 arch/powerpc/kernel/cputable.c extern void __setup_cpu_604(unsigned long offset, struct cpu_spec* spec);
spec               54 arch/powerpc/kernel/cputable.c extern void __setup_cpu_750(unsigned long offset, struct cpu_spec* spec);
spec               55 arch/powerpc/kernel/cputable.c extern void __setup_cpu_750cx(unsigned long offset, struct cpu_spec* spec);
spec               56 arch/powerpc/kernel/cputable.c extern void __setup_cpu_750fx(unsigned long offset, struct cpu_spec* spec);
spec               57 arch/powerpc/kernel/cputable.c extern void __setup_cpu_7400(unsigned long offset, struct cpu_spec* spec);
spec               58 arch/powerpc/kernel/cputable.c extern void __setup_cpu_7410(unsigned long offset, struct cpu_spec* spec);
spec               59 arch/powerpc/kernel/cputable.c extern void __setup_cpu_745x(unsigned long offset, struct cpu_spec* spec);
spec               62 arch/powerpc/kernel/cputable.c extern void __setup_cpu_ppc970(unsigned long offset, struct cpu_spec* spec);
spec               63 arch/powerpc/kernel/cputable.c extern void __setup_cpu_ppc970MP(unsigned long offset, struct cpu_spec* spec);
spec               64 arch/powerpc/kernel/cputable.c extern void __setup_cpu_pa6t(unsigned long offset, struct cpu_spec* spec);
spec               67 arch/powerpc/kernel/cputable.c extern void __setup_cpu_power7(unsigned long offset, struct cpu_spec* spec);
spec               69 arch/powerpc/kernel/cputable.c extern void __setup_cpu_power8(unsigned long offset, struct cpu_spec* spec);
spec               71 arch/powerpc/kernel/cputable.c extern void __setup_cpu_power9(unsigned long offset, struct cpu_spec* spec);
spec               78 arch/powerpc/kernel/cputable.c extern void __setup_cpu_e5500(unsigned long offset, struct cpu_spec* spec);
spec               79 arch/powerpc/kernel/cputable.c extern void __setup_cpu_e6500(unsigned long offset, struct cpu_spec* spec);
spec              417 arch/powerpc/lib/feature-fixups.c 	struct cpu_spec *spec = PTRRELOC(*PTRRELOC(&cur_cpu_spec));
spec              419 arch/powerpc/lib/feature-fixups.c 	*PTRRELOC(&saved_cpu_features) = spec->cpu_features;
spec              420 arch/powerpc/lib/feature-fixups.c 	*PTRRELOC(&saved_mmu_features) = spec->mmu_features;
spec              426 arch/powerpc/lib/feature-fixups.c 	do_feature_fixups(spec->cpu_features,
spec              430 arch/powerpc/lib/feature-fixups.c 	do_feature_fixups(spec->mmu_features,
spec              434 arch/powerpc/lib/feature-fixups.c 	do_lwsync_fixups(spec->cpu_features,
spec               65 arch/s390/include/asm/uaccess.h #define __put_get_user_asm(to, from, size, spec)		\
spec               67 arch/s390/include/asm/uaccess.h 	register unsigned long __reg0 asm("0") = spec;		\
spec               88 arch/s390/include/asm/uaccess.h 	unsigned long spec = 0x010000UL;
spec               95 arch/s390/include/asm/uaccess.h 					size, spec);
spec              100 arch/s390/include/asm/uaccess.h 					size, spec);
spec              105 arch/s390/include/asm/uaccess.h 					size, spec);
spec              110 arch/s390/include/asm/uaccess.h 					size, spec);
spec              118 arch/s390/include/asm/uaccess.h 	unsigned long spec = 0x01UL;
spec              125 arch/s390/include/asm/uaccess.h 					size, spec);
spec              130 arch/s390/include/asm/uaccess.h 					size, spec);
spec              135 arch/s390/include/asm/uaccess.h 					size, spec);
spec              140 arch/s390/include/asm/uaccess.h 					size, spec);
spec               40 arch/x86/include/asm/mpspec_def.h 	char spec;			/* 0x01 */
spec              164 arch/x86/kernel/mpparse.c 	if (mpc->spec != 0x01 && mpc->spec != 0x04) {
spec              165 arch/x86/kernel/mpparse.c 		pr_err("MPTABLE: bad table version (%d)!!\n", mpc->spec);
spec              614 arch/x86/oprofile/nmi_int.c 	struct op_x86_model_spec *spec = &op_ppro_spec;	/* default */
spec              658 arch/x86/oprofile/nmi_int.c 		spec = &op_arch_perfmon_spec;
spec              669 arch/x86/oprofile/nmi_int.c 	model = spec;
spec              286 crypto/asymmetric_keys/asymmetric_type.c 	const char *spec = match_data->raw_data;
spec              291 crypto/asymmetric_keys/asymmetric_type.c 	if (!spec || !*spec)
spec              293 crypto/asymmetric_keys/asymmetric_type.c 	if (spec[0] == 'i' &&
spec              294 crypto/asymmetric_keys/asymmetric_type.c 	    spec[1] == 'd' &&
spec              295 crypto/asymmetric_keys/asymmetric_type.c 	    spec[2] == ':') {
spec              296 crypto/asymmetric_keys/asymmetric_type.c 		id = spec + 3;
spec              298 crypto/asymmetric_keys/asymmetric_type.c 	} else if (spec[0] == 'e' &&
spec              299 crypto/asymmetric_keys/asymmetric_type.c 		   spec[1] == 'x' &&
spec              300 crypto/asymmetric_keys/asymmetric_type.c 		   spec[2] == ':') {
spec              301 crypto/asymmetric_keys/asymmetric_type.c 		id = spec + 3;
spec               80 drivers/acpi/sbs.c 	u16 spec;
spec              115 drivers/acpi/sbs.c 	return battery_scale((battery->spec & 0x0f00) >> 8);
spec              120 drivers/acpi/sbs.c 	return battery_scale((battery->spec & 0xf000) >> 12);
spec              313 drivers/acpi/sbs.c 	{0x1a, SMBUS_READ_WORD, offsetof(struct acpi_battery, spec)},
spec             1012 drivers/atm/firestream.c 		tc->spec = 0;    /* UTOPIA address, UDF, HEC: Unused -> 0 */
spec              362 drivers/atm/firestream.h 	u32 spec;
spec             1650 drivers/atm/fore200e.c     tpd->spec.length = tx_len;
spec             1651 drivers/atm/fore200e.c     tpd->spec.nseg   = 1;
spec             1652 drivers/atm/fore200e.c     tpd->spec.aal    = fore200e_atm2fore_aal(vcc->qos.aal);
spec             1653 drivers/atm/fore200e.c     tpd->spec.intr   = 1;
spec              144 drivers/atm/fore200e.h     struct tpd_spec   spec;              /* tpd specification            */
spec              402 drivers/block/rbd.c 	struct rbd_spec		*spec;
spec              601 drivers/block/rbd.c 	else if (rbd_dev->spec && rbd_dev->spec->image_name)
spec              603 drivers/block/rbd.c 			RBD_DRV_NAME, rbd_dev->spec->image_name, &vaf);
spec              604 drivers/block/rbd.c 	else if (rbd_dev->spec && rbd_dev->spec->image_id)
spec              606 drivers/block/rbd.c 			RBD_DRV_NAME, rbd_dev->spec->image_id, &vaf);
spec              699 drivers/block/rbd.c 	if (rbd_dev->spec->snap_id != CEPH_NOSNAP && !ro)
spec              875 drivers/block/rbd.c 	struct rbd_spec		*spec;
spec              927 drivers/block/rbd.c 		kfree(pctx->spec->pool_ns);
spec              928 drivers/block/rbd.c 		pctx->spec->pool_ns = match_strdup(argstr);
spec              929 drivers/block/rbd.c 		if (!pctx->spec->pool_ns)
spec             1097 drivers/block/rbd.c 			  rbd_dev->spec->pool_id : rbd_dev->header.data_pool_id;
spec             1328 drivers/block/rbd.c 	u64 snap_id = rbd_dev->spec->snap_id;
spec             1666 drivers/block/rbd.c static void rbd_spec_put(struct rbd_spec *spec);
spec             1745 drivers/block/rbd.c 		img_request->snap_id = rbd_dev->spec->snap_id;
spec             1856 drivers/block/rbd.c 				rbd_dev->spec->image_id);
spec             1859 drivers/block/rbd.c 				rbd_dev->spec->image_id, snap_id);
spec             1984 drivers/block/rbd.c 	rbd_object_map_name(rbd_dev, rbd_dev->spec->snap_id, &oid);
spec             3558 drivers/block/rbd.c 	if (rbd_dev->spec->snap_id != CEPH_NOSNAP)
spec             4833 drivers/block/rbd.c 	if (op_type != OBJ_OP_READ && rbd_dev->spec->snap_id != CEPH_NOSNAP) {
spec             4848 drivers/block/rbd.c 		rbd_assert(rbd_dev->spec->snap_id != CEPH_NOSNAP);
spec             5043 drivers/block/rbd.c 	snap_id = rbd_dev->spec->snap_id;
spec             5091 drivers/block/rbd.c 	if (rbd_dev->spec->snap_id == CEPH_NOSNAP) {
spec             5291 drivers/block/rbd.c 	return sprintf(buf, "%s\n", rbd_dev->spec->pool_name);
spec             5300 drivers/block/rbd.c 			(unsigned long long) rbd_dev->spec->pool_id);
spec             5308 drivers/block/rbd.c 	return sprintf(buf, "%s\n", rbd_dev->spec->pool_ns ?: "");
spec             5316 drivers/block/rbd.c 	if (rbd_dev->spec->image_name)
spec             5317 drivers/block/rbd.c 		return sprintf(buf, "%s\n", rbd_dev->spec->image_name);
spec             5327 drivers/block/rbd.c 	return sprintf(buf, "%s\n", rbd_dev->spec->image_id);
spec             5340 drivers/block/rbd.c 	return sprintf(buf, "%s\n", rbd_dev->spec->snap_name);
spec             5348 drivers/block/rbd.c 	return sprintf(buf, "%llu\n", rbd_dev->spec->snap_id);
spec             5367 drivers/block/rbd.c 		struct rbd_spec *spec = rbd_dev->parent_spec;
spec             5376 drivers/block/rbd.c 			    spec->pool_id, spec->pool_name,
spec             5377 drivers/block/rbd.c 			    spec->pool_ns ?: "",
spec             5378 drivers/block/rbd.c 			    spec->image_id, spec->image_name ?: "(unknown)",
spec             5379 drivers/block/rbd.c 			    spec->snap_id, spec->snap_name,
spec             5457 drivers/block/rbd.c static struct rbd_spec *rbd_spec_get(struct rbd_spec *spec)
spec             5459 drivers/block/rbd.c 	kref_get(&spec->kref);
spec             5461 drivers/block/rbd.c 	return spec;
spec             5465 drivers/block/rbd.c static void rbd_spec_put(struct rbd_spec *spec)
spec             5467 drivers/block/rbd.c 	if (spec)
spec             5468 drivers/block/rbd.c 		kref_put(&spec->kref, rbd_spec_free);
spec             5473 drivers/block/rbd.c 	struct rbd_spec *spec;
spec             5475 drivers/block/rbd.c 	spec = kzalloc(sizeof (*spec), GFP_KERNEL);
spec             5476 drivers/block/rbd.c 	if (!spec)
spec             5479 drivers/block/rbd.c 	spec->pool_id = CEPH_NOPOOL;
spec             5480 drivers/block/rbd.c 	spec->snap_id = CEPH_NOSNAP;
spec             5481 drivers/block/rbd.c 	kref_init(&spec->kref);
spec             5483 drivers/block/rbd.c 	return spec;
spec             5488 drivers/block/rbd.c 	struct rbd_spec *spec = container_of(kref, struct rbd_spec, kref);
spec             5490 drivers/block/rbd.c 	kfree(spec->pool_name);
spec             5491 drivers/block/rbd.c 	kfree(spec->pool_ns);
spec             5492 drivers/block/rbd.c 	kfree(spec->image_id);
spec             5493 drivers/block/rbd.c 	kfree(spec->image_name);
spec             5494 drivers/block/rbd.c 	kfree(spec->snap_name);
spec             5495 drivers/block/rbd.c 	kfree(spec);
spec             5508 drivers/block/rbd.c 	rbd_spec_put(rbd_dev->spec);
spec             5535 drivers/block/rbd.c 					   struct rbd_spec *spec)
spec             5549 drivers/block/rbd.c 	rbd_dev->header_oloc.pool = spec->pool_id;
spec             5550 drivers/block/rbd.c 	if (spec->pool_ns) {
spec             5551 drivers/block/rbd.c 		WARN_ON(!*spec->pool_ns);
spec             5553 drivers/block/rbd.c 		    ceph_find_or_create_string(spec->pool_ns,
spec             5554 drivers/block/rbd.c 					       strlen(spec->pool_ns));
spec             5581 drivers/block/rbd.c 	rbd_dev->spec = spec;
spec             5590 drivers/block/rbd.c 					 struct rbd_spec *spec,
spec             5595 drivers/block/rbd.c 	rbd_dev = __rbd_dev_create(rbdc, spec);
spec             5768 drivers/block/rbd.c 	__le64 snapid = cpu_to_le64(rbd_dev->spec->snap_id);
spec             5926 drivers/block/rbd.c 	ceph_encode_64(&p, rbd_dev->spec->snap_id);
spec             6089 drivers/block/rbd.c 	rbd_assert(!rbd_dev->spec->image_name);
spec             6091 drivers/block/rbd.c 	len = strlen(rbd_dev->spec->image_id);
spec             6099 drivers/block/rbd.c 	ceph_encode_string(&p, end, rbd_dev->spec->image_id, (u32)len);
spec             6187 drivers/block/rbd.c 	struct rbd_spec *spec = rbd_dev->spec;
spec             6189 drivers/block/rbd.c 	rbd_assert(spec->pool_id != CEPH_NOPOOL && spec->pool_name);
spec             6190 drivers/block/rbd.c 	rbd_assert(spec->image_id && spec->image_name);
spec             6191 drivers/block/rbd.c 	rbd_assert(spec->snap_name);
spec             6193 drivers/block/rbd.c 	if (strcmp(spec->snap_name, RBD_SNAP_HEAD_NAME)) {
spec             6196 drivers/block/rbd.c 		snap_id = rbd_snap_id_by_name(rbd_dev, spec->snap_name);
spec             6200 drivers/block/rbd.c 		spec->snap_id = snap_id;
spec             6202 drivers/block/rbd.c 		spec->snap_id = CEPH_NOSNAP;
spec             6217 drivers/block/rbd.c 	struct rbd_spec *spec = rbd_dev->spec;
spec             6223 drivers/block/rbd.c 	rbd_assert(spec->pool_id != CEPH_NOPOOL);
spec             6224 drivers/block/rbd.c 	rbd_assert(spec->image_id);
spec             6225 drivers/block/rbd.c 	rbd_assert(spec->snap_id != CEPH_NOSNAP);
spec             6229 drivers/block/rbd.c 	pool_name = ceph_pg_pool_name_by_id(osdc->osdmap, spec->pool_id);
spec             6231 drivers/block/rbd.c 		rbd_warn(rbd_dev, "no pool with id %llu", spec->pool_id);
spec             6246 drivers/block/rbd.c 	snap_name = rbd_snap_name(rbd_dev, spec->snap_id);
spec             6252 drivers/block/rbd.c 	spec->pool_name = pool_name;
spec             6253 drivers/block/rbd.c 	spec->image_name = image_name;
spec             6254 drivers/block/rbd.c 	spec->snap_name = snap_name;
spec             6538 drivers/block/rbd.c 	pctx.spec = rbd_spec_alloc();
spec             6539 drivers/block/rbd.c 	if (!pctx.spec)
spec             6542 drivers/block/rbd.c 	pctx.spec->pool_name = dup_token(&buf, NULL);
spec             6543 drivers/block/rbd.c 	if (!pctx.spec->pool_name)
spec             6545 drivers/block/rbd.c 	if (!*pctx.spec->pool_name) {
spec             6550 drivers/block/rbd.c 	pctx.spec->image_name = dup_token(&buf, NULL);
spec             6551 drivers/block/rbd.c 	if (!pctx.spec->image_name)
spec             6553 drivers/block/rbd.c 	if (!*pctx.spec->image_name) {
spec             6574 drivers/block/rbd.c 	pctx.spec->snap_name = snap_name;
spec             6601 drivers/block/rbd.c 	*rbd_spec = pctx.spec;
spec             6608 drivers/block/rbd.c 	rbd_spec_put(pctx.spec);
spec             6639 drivers/block/rbd.c 	if (rbd_dev->spec->snap_id != CEPH_NOSNAP)
spec             6695 drivers/block/rbd.c 	if (rbd_dev->spec->image_id) {
spec             6696 drivers/block/rbd.c 		rbd_dev->image_format = *rbd_dev->spec->image_id ? 2 : 1;
spec             6706 drivers/block/rbd.c 			       rbd_dev->spec->image_name);
spec             6742 drivers/block/rbd.c 		rbd_dev->spec->image_id = image_id;
spec             6918 drivers/block/rbd.c 	struct rbd_spec *spec = rbd_dev->spec;
spec             6926 drivers/block/rbd.c 				       spec->image_name, RBD_SUFFIX);
spec             6929 drivers/block/rbd.c 				       RBD_HEADER_PREFIX, spec->image_id);
spec             6941 drivers/block/rbd.c 	kfree(rbd_dev->spec->image_id);
spec             6942 drivers/block/rbd.c 	rbd_dev->spec->image_id = NULL;
spec             6977 drivers/block/rbd.c 					rbd_dev->spec->pool_name,
spec             6978 drivers/block/rbd.c 					rbd_dev->spec->pool_ns ?: "",
spec             6979 drivers/block/rbd.c 					rbd_dev->spec->pool_ns ? "/" : "",
spec             6980 drivers/block/rbd.c 					rbd_dev->spec->image_name);
spec             7005 drivers/block/rbd.c 				rbd_dev->spec->pool_name,
spec             7006 drivers/block/rbd.c 				rbd_dev->spec->pool_ns ?: "",
spec             7007 drivers/block/rbd.c 				rbd_dev->spec->pool_ns ? "/" : "",
spec             7008 drivers/block/rbd.c 				rbd_dev->spec->image_name,
spec             7009 drivers/block/rbd.c 				rbd_dev->spec->snap_name);
spec             7017 drivers/block/rbd.c 	if (rbd_dev->spec->snap_id != CEPH_NOSNAP &&
spec             7046 drivers/block/rbd.c 	kfree(rbd_dev->spec->image_id);
spec             7047 drivers/block/rbd.c 	rbd_dev->spec->image_id = NULL;
spec             7058 drivers/block/rbd.c 	struct rbd_spec *spec = NULL;
spec             7066 drivers/block/rbd.c 	rc = rbd_add_parse_args(buf, &ceph_opts, &rbd_opts, &spec);
spec             7077 drivers/block/rbd.c 	rc = ceph_pg_poolid_by_name(rbdc->client->osdc.osdmap, spec->pool_name);
spec             7080 drivers/block/rbd.c 			pr_info("pool %s does not exist\n", spec->pool_name);
spec             7083 drivers/block/rbd.c 	spec->pool_id = (u64)rc;
spec             7085 drivers/block/rbd.c 	rbd_dev = rbd_dev_create(rbdc, spec, rbd_opts);
spec             7091 drivers/block/rbd.c 	spec = NULL;		/* rbd_dev now owns this */
spec             7105 drivers/block/rbd.c 	if (rbd_dev->spec->snap_id != CEPH_NOSNAP)
spec             7154 drivers/block/rbd.c 	rbd_spec_put(spec);
spec               95 drivers/clk/sunxi/clk-sun4i-display.c 					 const struct of_phandle_args *spec)
spec              867 drivers/dma/bcm2835-dma.c static struct dma_chan *bcm2835_dma_xlate(struct of_phandle_args *spec,
spec              878 drivers/dma/bcm2835-dma.c 	to_bcm2835_dma_chan(chan)->dreq = spec->args[0];
spec              132 drivers/firmware/imx/imx-scu-irq.c 	struct of_phandle_args spec;
spec              160 drivers/firmware/imx/imx-scu-irq.c 				       "#mbox-cells", 0, &spec))
spec              161 drivers/firmware/imx/imx-scu-irq.c 		i = of_alias_get_id(spec.np, "mu");
spec              211 drivers/firmware/imx/scu-pd.c static struct generic_pm_domain *imx_scu_pd_xlate(struct of_phandle_args *spec,
spec              222 drivers/firmware/imx/scu-pd.c 		if (sc_pd->rsrc == spec->args[0]) {
spec              195 drivers/gpio/gpio-mt7621.c 		    const struct of_phandle_args *spec, u32 *flags)
spec              197 drivers/gpio/gpio-mt7621.c 	int gpio = spec->args[0];
spec              204 drivers/gpio/gpio-mt7621.c 		*flags = spec->args[1];
spec              208 drivers/gpio/gpio-tegra186.c 				  const struct of_phandle_args *spec,
spec              217 drivers/gpio/gpio-tegra186.c 	if (WARN_ON(spec->args_count < chip->of_gpio_n_cells))
spec              220 drivers/gpio/gpio-tegra186.c 	port = spec->args[0] / 8;
spec              221 drivers/gpio/gpio-tegra186.c 	pin = spec->args[0] % 8;
spec              232 drivers/gpio/gpio-tegra186.c 		*flags = spec->args[1];
spec              372 drivers/gpio/gpio-tegra186.c 					  const u32 *spec, unsigned int size,
spec              382 drivers/gpio/gpio-tegra186.c 	port = spec[0] / 8;
spec              383 drivers/gpio/gpio-tegra186.c 	pin = spec[0] % 8;
spec              393 drivers/gpio/gpio-tegra186.c 	*type = spec[1] & IRQ_TYPE_SENSE_MASK;
spec             2154 drivers/gpio/gpiolib.c 		struct irq_fwspec spec;
spec             2156 drivers/gpio/gpiolib.c 		spec.fwnode = domain->fwnode;
spec             2157 drivers/gpio/gpiolib.c 		spec.param_count = 2;
spec             2158 drivers/gpio/gpiolib.c 		spec.param[0] = chip->irq.child_offset_to_irq(chip, offset);
spec             2159 drivers/gpio/gpiolib.c 		spec.param[1] = IRQ_TYPE_NONE;
spec             2161 drivers/gpio/gpiolib.c 		return irq_create_fwspec_mapping(&spec);
spec             6440 drivers/gpu/drm/i915/display/intel_dp.c 	struct edp_power_seq cur, vbt, spec,
spec             6472 drivers/gpu/drm/i915/display/intel_dp.c 	spec.t1_t3 = 210 * 10;
spec             6473 drivers/gpu/drm/i915/display/intel_dp.c 	spec.t8 = 50 * 10; /* no limit for t8, use t7 instead */
spec             6474 drivers/gpu/drm/i915/display/intel_dp.c 	spec.t9 = 50 * 10; /* no limit for t9, make it symmetric with t8 */
spec             6475 drivers/gpu/drm/i915/display/intel_dp.c 	spec.t10 = 500 * 10;
spec             6480 drivers/gpu/drm/i915/display/intel_dp.c 	spec.t11_t12 = (510 + 100) * 10;
spec             6487 drivers/gpu/drm/i915/display/intel_dp.c 				       spec.field : \
spec              704 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c 		 const struct nvkm_specsrc *spec)
spec              711 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c 	if (!spec) {
spec              716 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c 	ssrc = spec;
spec              768 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c 		 const struct nvkm_specdom *spec)
spec              780 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c 		sdom = spec;
spec              790 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c 					 (int)(sdom - spec));
spec              793 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c 					 "%s/%02x", name, (int)(sdom - spec));
spec              109 drivers/gpu/drm/tegra/vic.c 		struct iommu_fwspec *spec = dev_iommu_fwspec_get(vic->dev);
spec              116 drivers/gpu/drm/tegra/vic.c 		if (spec && spec->num_ids > 0) {
spec              117 drivers/gpu/drm/tegra/vic.c 			value = spec->ids[0] & 0xffff;
spec              109 drivers/gpu/host1x/hw/channel_hw.c 	struct iommu_fwspec *spec = dev_iommu_fwspec_get(channel->dev->parent);
spec              110 drivers/gpu/host1x/hw/channel_hw.c 	if (spec)
spec              111 drivers/gpu/host1x/hw/channel_hw.c 		sid = spec->ids[0] & 0xffff;
spec              577 drivers/i2c/busses/i2c-rk3x.c 	const struct i2c_spec_values *spec;
spec              600 drivers/i2c/busses/i2c-rk3x.c 	spec = rk3x_i2c_get_spec(t->bus_freq_hz);
spec              601 drivers/i2c/busses/i2c-rk3x.c 	min_high_ns = t->scl_rise_ns + spec->min_high_ns;
spec              612 drivers/i2c/busses/i2c-rk3x.c 		(t->scl_rise_ns + spec->min_setup_start_ns) * 1000, 875));
spec              614 drivers/i2c/busses/i2c-rk3x.c 		(t->scl_rise_ns + spec->min_setup_start_ns + t->sda_fall_ns +
spec              615 drivers/i2c/busses/i2c-rk3x.c 		spec->min_high_ns), 2));
spec              617 drivers/i2c/busses/i2c-rk3x.c 	min_low_ns = t->scl_fall_ns + spec->min_low_ns;
spec              618 drivers/i2c/busses/i2c-rk3x.c 	max_low_ns =  spec->max_data_hold_ns * 2 - data_hold_buffer_ns;
spec              757 drivers/i2c/busses/i2c-rk3x.c 	const struct i2c_spec_values *spec;
spec              774 drivers/i2c/busses/i2c-rk3x.c 	spec = rk3x_i2c_get_spec(t->bus_freq_hz);
spec              781 drivers/i2c/busses/i2c-rk3x.c 	min_high_ns = t->scl_rise_ns + spec->min_high_ns;
spec              784 drivers/i2c/busses/i2c-rk3x.c 	min_low_ns = t->scl_fall_ns + spec->min_low_ns;
spec              835 drivers/i2c/busses/i2c-rk3x.c 		if ((max_hold_data_ns < spec->max_data_hold_ns) &&
spec              836 drivers/i2c/busses/i2c-rk3x.c 		    (min_setup_data_ns > spec->min_data_setup_ns))
spec              841 drivers/i2c/busses/i2c-rk3x.c 	min_setup_start_ns = t->scl_rise_ns + spec->min_setup_start_ns;
spec              846 drivers/i2c/busses/i2c-rk3x.c 	min_setup_stop_ns = t->scl_rise_ns + spec->min_setup_stop_ns;
spec              235 drivers/iio/adc/ad7949.c 	const struct ad7949_adc_spec *spec;
spec              258 drivers/iio/adc/ad7949.c 	spec = &ad7949_adc_spec[spi_get_device_id(spi)->driver_data];
spec              259 drivers/iio/adc/ad7949.c 	indio_dev->num_channels = spec->num_channels;
spec              260 drivers/iio/adc/ad7949.c 	ad7949_adc->resolution = spec->resolution;
spec              262 drivers/iio/dac/ti-dac082s085.c 	const struct ti_dac_spec *spec;
spec              284 drivers/iio/dac/ti-dac082s085.c 	spec = &ti_dac_spec[spi_get_device_id(spi)->driver_data];
spec              285 drivers/iio/dac/ti-dac082s085.c 	indio_dev->num_channels = spec->num_channels;
spec              286 drivers/iio/dac/ti-dac082s085.c 	ti_dac->resolution = spec->resolution;
spec               52 drivers/iio/dac/ti-dac5571.c 	struct dac5571_spec const *spec;
spec               69 drivers/iio/dac/ti-dac5571.c 	shift = 12 - data->spec->resolution;
spec               83 drivers/iio/dac/ti-dac5571.c 	shift = 16 - data->spec->resolution;
spec              256 drivers/iio/dac/ti-dac5571.c 		*val2 = data->spec->resolution;
spec              276 drivers/iio/dac/ti-dac5571.c 		if (val >= (1 << data->spec->resolution) || val < 0)
spec              311 drivers/iio/dac/ti-dac5571.c 	const struct dac5571_spec *spec;
spec              331 drivers/iio/dac/ti-dac5571.c 	spec = &dac5571_spec[id->driver_data];
spec              332 drivers/iio/dac/ti-dac5571.c 	indio_dev->num_channels = spec->num_channels;
spec              333 drivers/iio/dac/ti-dac5571.c 	data->spec = spec;
spec              345 drivers/iio/dac/ti-dac5571.c 	switch (spec->num_channels) {
spec              358 drivers/iio/dac/ti-dac5571.c 	for (i = 0; i < spec->num_channels; i++) {
spec              239 drivers/iio/dac/ti-dac7311.c 	const struct ti_dac_spec *spec;
spec              266 drivers/iio/dac/ti-dac7311.c 	spec = &ti_dac_spec[spi_get_device_id(spi)->driver_data];
spec              268 drivers/iio/dac/ti-dac7311.c 	ti_dac->resolution = spec->resolution;
spec              148 drivers/infiniband/core/rdma_core.h 	struct uverbs_attr_spec spec;
spec              168 drivers/infiniband/core/uverbs_ioctl.c 	const struct uverbs_attr_spec *spec = &attr_uapi->spec;
spec              181 drivers/infiniband/core/uverbs_ioctl.c 	if (array_len < spec->u2.objs_arr.min_len ||
spec              182 drivers/infiniband/core/uverbs_ioctl.c 	    array_len > spec->u2.objs_arr.max_len)
spec              210 drivers/infiniband/core/uverbs_ioctl.c 			spec->u2.objs_arr.obj_type, spec->u2.objs_arr.access,
spec              227 drivers/infiniband/core/uverbs_ioctl.c 	const struct uverbs_attr_spec *spec = &attr_uapi->spec;
spec              234 drivers/infiniband/core/uverbs_ioctl.c 						     spec->u2.objs_arr.access,
spec              247 drivers/infiniband/core/uverbs_ioctl.c 	const struct uverbs_attr_spec *spec = &attr_uapi->spec;
spec              249 drivers/infiniband/core/uverbs_ioctl.c 	const struct uverbs_attr_spec *val_spec = spec;
spec              252 drivers/infiniband/core/uverbs_ioctl.c 	switch (spec->type) {
spec              254 drivers/infiniband/core/uverbs_ioctl.c 		if (uattr->attr_data.enum_data.elem_id >= spec->u.enum_def.num_elems)
spec              260 drivers/infiniband/core/uverbs_ioctl.c 		val_spec = &spec->u2.enum_def.ids[uattr->attr_data.enum_data.elem_id];
spec              286 drivers/infiniband/core/uverbs_ioctl.c 		if (spec->type != UVERBS_ATTR_TYPE_ENUM_IN &&
spec              328 drivers/infiniband/core/uverbs_ioctl.c 			spec->u.obj.obj_type, spec->u.obj.access,
spec              334 drivers/infiniband/core/uverbs_ioctl.c 		if (spec->u.obj.access == UVERBS_ACCESS_NEW) {
spec              514 drivers/infiniband/core/uverbs_ioctl.c 			attr->obj_attr.attr_elm->spec.u.obj.access, commit,
spec              536 drivers/infiniband/core/uverbs_ioctl.c 		if (attr_uapi->spec.type == UVERBS_ATTR_TYPE_IDRS_ARRAY) {
spec              215 drivers/infiniband/core/uverbs_std_types_flow_action.c 			    &out->spec);
spec              164 drivers/infiniband/core/uverbs_uapi.c 		attr_slot->spec = attr->attr;
spec              372 drivers/infiniband/core/uverbs_uapi.c 		u8 type = elm->spec.type;
spec              378 drivers/infiniband/core/uverbs_uapi.c 		if (elm->spec.mandatory)
spec              381 drivers/infiniband/core/uverbs_uapi.c 		if (elm->spec.is_udata)
spec              386 drivers/infiniband/core/uverbs_uapi.c 			u8 access = elm->spec.u.obj.access;
spec              399 drivers/infiniband/core/uverbs_uapi.c 				if (WARN_ON(!elm->spec.mandatory))
spec              499 drivers/infiniband/core/uverbs_uapi.c static u32 uapi_get_obj_id(struct uverbs_attr_spec *spec)
spec              501 drivers/infiniband/core/uverbs_uapi.c 	if (spec->type == UVERBS_ATTR_TYPE_IDR ||
spec              502 drivers/infiniband/core/uverbs_uapi.c 	    spec->type == UVERBS_ATTR_TYPE_FD)
spec              503 drivers/infiniband/core/uverbs_uapi.c 		return spec->u.obj.obj_type;
spec              504 drivers/infiniband/core/uverbs_uapi.c 	if (spec->type == UVERBS_ATTR_TYPE_IDRS_ARRAY)
spec              505 drivers/infiniband/core/uverbs_uapi.c 		return spec->u2.objs_arr.obj_type;
spec              586 drivers/infiniband/core/uverbs_uapi.c 			if (!attr_elm->spec.mandatory)
spec              588 drivers/infiniband/core/uverbs_uapi.c 			obj_key = uapi_get_obj_id(&attr_elm->spec);
spec              726 drivers/infiniband/core/uverbs_uapi.c 			if (elm->spec.type == UVERBS_ATTR_TYPE_ENUM_IN)
spec              727 drivers/infiniband/core/uverbs_uapi.c 				elm->spec.u2.enum_def.ids = NULL;
spec             2678 drivers/infiniband/hw/mlx5/main.c 			   struct mlx5_flow_spec *spec,
spec             2683 drivers/infiniband/hw/mlx5/main.c 	struct mlx5_flow_context *flow_context = &spec->flow_context;
spec             2684 drivers/infiniband/hw/mlx5/main.c 	u32 *match_c = spec->match_criteria;
spec             2685 drivers/infiniband/hw/mlx5/main.c 	u32 *match_v = spec->match_value;
spec             3080 drivers/infiniband/hw/mlx5/main.c 		     const struct mlx5_flow_spec *spec,
spec             3084 drivers/infiniband/hw/mlx5/main.c 	const u32 *match_c = spec->match_criteria;
spec             3100 drivers/infiniband/hw/mlx5/main.c 			     !(spec->flow_context.flags & FLOW_CONTEXT_HAS_TAG))) ?
spec             3105 drivers/infiniband/hw/mlx5/main.c 			  const struct mlx5_flow_spec *spec,
spec             3110 drivers/infiniband/hw/mlx5/main.c 	return is_valid_esp_aes_gcm(mdev, spec, flow_act, egress) != VALID_SPEC_INVALID;
spec             3345 drivers/infiniband/hw/mlx5/main.c 			    struct mlx5_flow_spec *spec,
spec             3349 drivers/infiniband/hw/mlx5/main.c 					   spec->match_criteria,
spec             3351 drivers/infiniband/hw/mlx5/main.c 	void *misc_params_v = MLX5_ADDR_OF(fte_match_param, spec->match_value,
spec             3484 drivers/infiniband/hw/mlx5/main.c 					 struct mlx5_flow_spec *spec,
spec             3491 drivers/infiniband/hw/mlx5/main.c 		misc = MLX5_ADDR_OF(fte_match_param, spec->match_value,
spec             3497 drivers/infiniband/hw/mlx5/main.c 		misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria,
spec             3502 drivers/infiniband/hw/mlx5/main.c 		misc = MLX5_ADDR_OF(fte_match_param, spec->match_value,
spec             3507 drivers/infiniband/hw/mlx5/main.c 		misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria,
spec             3524 drivers/infiniband/hw/mlx5/main.c 	struct mlx5_flow_spec *spec;
spec             3540 drivers/infiniband/hw/mlx5/main.c 	spec = kvzalloc(sizeof(*spec), GFP_KERNEL);
spec             3542 drivers/infiniband/hw/mlx5/main.c 	if (!handler || !spec) {
spec             3550 drivers/infiniband/hw/mlx5/main.c 		err = parse_flow_attr(dev->mdev, spec,
spec             3566 drivers/infiniband/hw/mlx5/main.c 		set_underlay_qp(dev, spec, underlay_qpn);
spec             3577 drivers/infiniband/hw/mlx5/main.c 		mlx5_ib_set_rule_source_port(dev, spec, rep);
spec             3580 drivers/infiniband/hw/mlx5/main.c 	spec->match_criteria_enable = get_match_criteria_enable(spec->match_criteria);
spec             3583 drivers/infiniband/hw/mlx5/main.c 	    !is_valid_spec(dev->mdev, spec, &flow_act, is_egress)) {
spec             3616 drivers/infiniband/hw/mlx5/main.c 	if ((spec->flow_context.flags & FLOW_CONTEXT_HAS_TAG)  &&
spec             3620 drivers/infiniband/hw/mlx5/main.c 			     spec->flow_context.flow_tag, flow_attr->type);
spec             3624 drivers/infiniband/hw/mlx5/main.c 	handler->rule = mlx5_add_flow_rules(ft, spec,
spec             3645 drivers/infiniband/hw/mlx5/main.c 	kvfree(spec);
spec             4013 drivers/infiniband/hw/mlx5/main.c 	struct mlx5_flow_spec *spec;
spec             4017 drivers/infiniband/hw/mlx5/main.c 	spec = kvzalloc(sizeof(*spec), GFP_KERNEL);
spec             4019 drivers/infiniband/hw/mlx5/main.c 	if (!handler || !spec) {
spec             4026 drivers/infiniband/hw/mlx5/main.c 	memcpy(spec->match_value, cmd_in, inlen);
spec             4027 drivers/infiniband/hw/mlx5/main.c 	memcpy(spec->match_criteria, fs_matcher->matcher_mask.match_params,
spec             4029 drivers/infiniband/hw/mlx5/main.c 	spec->match_criteria_enable = fs_matcher->match_criteria_enable;
spec             4030 drivers/infiniband/hw/mlx5/main.c 	spec->flow_context = *flow_context;
spec             4032 drivers/infiniband/hw/mlx5/main.c 	handler->rule = mlx5_add_flow_rules(ft, spec,
spec             4048 drivers/infiniband/hw/mlx5/main.c 	kvfree(spec);
spec               65 drivers/infiniband/hw/usnic/usnic_abi.h 	struct usnic_transport_spec	spec;
spec              260 drivers/infiniband/hw/usnic/usnic_ib_verbs.c 	if (cmd.spec.trans_type <= USNIC_TRANSPORT_UNKNOWN ||
spec              261 drivers/infiniband/hw/usnic/usnic_ib_verbs.c 			cmd.spec.trans_type >= USNIC_TRANSPORT_MAX)
spec              510 drivers/infiniband/hw/usnic/usnic_ib_verbs.c 	trans_spec = cmd.spec;
spec              138 drivers/infiniband/hw/usnic/usnic_vnic.c void usnic_vnic_res_spec_update(struct usnic_vnic_res_spec *spec,
spec              145 drivers/infiniband/hw/usnic/usnic_vnic.c 		if (spec->resources[i].type == trgt_type) {
spec              146 drivers/infiniband/hw/usnic/usnic_vnic.c 			spec->resources[i].cnt = cnt;
spec               92 drivers/infiniband/hw/usnic/usnic_vnic.h void usnic_vnic_res_spec_update(struct usnic_vnic_res_spec *spec,
spec              257 drivers/interconnect/core.c struct icc_node *of_icc_xlate_onecell(struct of_phandle_args *spec,
spec              261 drivers/interconnect/core.c 	unsigned int idx = spec->args[0];
spec              282 drivers/interconnect/core.c static struct icc_node *of_icc_get_from_provider(struct of_phandle_args *spec)
spec              287 drivers/interconnect/core.c 	if (!spec || spec->args_count != 1)
spec              292 drivers/interconnect/core.c 		if (provider->dev->of_node == spec->np)
spec              293 drivers/interconnect/core.c 			node = provider->xlate(spec, provider->data);
spec             1292 drivers/iommu/exynos-iommu.c 				 struct of_phandle_args *spec)
spec             1295 drivers/iommu/exynos-iommu.c 	struct platform_device *sysmmu = of_find_device_by_node(spec->np);
spec              834 drivers/iommu/ipmmu-vmsa.c 			  struct of_phandle_args *spec)
spec              839 drivers/iommu/ipmmu-vmsa.c 	iommu_fwspec_add_ids(dev, spec->args, 1);
spec              845 drivers/iommu/ipmmu-vmsa.c 	return ipmmu_init_platform_device(dev, spec);
spec              614 drivers/iommu/msm_iommu.c 				struct of_phandle_args *spec)
spec              627 drivers/iommu/msm_iommu.c 		if (master->mids[sid] == spec->args[0]) {
spec              633 drivers/iommu/msm_iommu.c 	master->mids[master->num_mids++] = spec->args[0];
spec              637 drivers/iommu/msm_iommu.c 			       struct of_phandle_args *spec)
spec              645 drivers/iommu/msm_iommu.c 		if (iommu->dev->of_node == spec->np)
spec              648 drivers/iommu/msm_iommu.c 	if (!iommu || iommu->dev->of_node != spec->np) {
spec              653 drivers/iommu/msm_iommu.c 	insert_iommu_master(dev, &iommu, spec);
spec              108 drivers/irqchip/irq-renesas-rza1.c 	struct irq_fwspec spec;
spec              117 drivers/irqchip/irq-renesas-rza1.c 	spec.fwnode = &priv->dev->of_node->fwnode;
spec              118 drivers/irqchip/irq-renesas-rza1.c 	spec.param_count = priv->map[hwirq].args_count;
spec              119 drivers/irqchip/irq-renesas-rza1.c 	for (i = 0; i < spec.param_count; i++)
spec              120 drivers/irqchip/irq-renesas-rza1.c 		spec.param[i] = priv->map[hwirq].args[i];
spec              122 drivers/irqchip/irq-renesas-rza1.c 	return irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, &spec);
spec              213 drivers/mailbox/hi3660-mailbox.c 					   const struct of_phandle_args *spec)
spec              217 drivers/mailbox/hi3660-mailbox.c 	unsigned int ch = spec->args[0];
spec              225 drivers/mailbox/hi3660-mailbox.c 	mchan->dst_irq = spec->args[1];
spec              226 drivers/mailbox/hi3660-mailbox.c 	mchan->ack_irq = spec->args[2];
spec              223 drivers/mailbox/hi6220-mailbox.c 					   const struct of_phandle_args *spec)
spec              228 drivers/mailbox/hi6220-mailbox.c 	unsigned int i = spec->args[0];
spec              229 drivers/mailbox/hi6220-mailbox.c 	unsigned int dst_irq = spec->args[1];
spec              230 drivers/mailbox/hi6220-mailbox.c 	unsigned int ack_irq = spec->args[2];
spec              322 drivers/mailbox/mailbox-sti.c 					const struct of_phandle_args *spec)
spec              328 drivers/mailbox/mailbox-sti.c 	unsigned int instance  = spec->args[0];
spec              329 drivers/mailbox/mailbox-sti.c 	unsigned int channel   = spec->args[1];
spec              333 drivers/mailbox/mailbox.c 	struct of_phandle_args spec;
spec              346 drivers/mailbox/mailbox.c 				       "#mbox-cells", index, &spec)) {
spec              354 drivers/mailbox/mailbox.c 		if (mbox->dev->of_node == spec.np) {
spec              355 drivers/mailbox/mailbox.c 			chan = mbox->of_xlate(mbox, &spec);
spec              360 drivers/mailbox/mailbox.c 	of_node_put(spec.np);
spec             1140 drivers/md/dm-ioctl.c 	struct dm_target_spec *spec;
spec             1165 drivers/md/dm-ioctl.c 		spec = (struct dm_target_spec *) outptr;
spec             1167 drivers/md/dm-ioctl.c 		spec->status = 0;
spec             1168 drivers/md/dm-ioctl.c 		spec->sector_start = ti->begin;
spec             1169 drivers/md/dm-ioctl.c 		spec->length = ti->len;
spec             1170 drivers/md/dm-ioctl.c 		strncpy(spec->target_type, ti->type->name,
spec             1171 drivers/md/dm-ioctl.c 			sizeof(spec->target_type));
spec             1198 drivers/md/dm-ioctl.c 		spec->next = outptr - outbuf;
spec             1271 drivers/md/dm-ioctl.c 		       struct dm_target_spec **spec, char **target_params)
spec             1273 drivers/md/dm-ioctl.c 	*spec = (struct dm_target_spec *) ((unsigned char *) last + next);
spec             1274 drivers/md/dm-ioctl.c 	*target_params = (char *) (*spec + 1);
spec             1276 drivers/md/dm-ioctl.c 	if (*spec < (last + 1))
spec             1287 drivers/md/dm-ioctl.c 	struct dm_target_spec *spec = (struct dm_target_spec *) param;
spec             1299 drivers/md/dm-ioctl.c 		r = next_target(spec, next, end, &spec, &target_params);
spec             1305 drivers/md/dm-ioctl.c 		r = dm_table_add_target(table, spec->target_type,
spec             1306 drivers/md/dm-ioctl.c 					(sector_t) spec->sector_start,
spec             1307 drivers/md/dm-ioctl.c 					(sector_t) spec->length,
spec             1314 drivers/md/dm-ioctl.c 		next = spec->next;
spec              187 drivers/media/dvb-frontends/mn88443x.c 	const struct mn88443x_spec *spec;
spec              217 drivers/media/dvb-frontends/mn88443x.c 	if (chip->spec->primary) {
spec              680 drivers/media/dvb-frontends/mn88443x.c 		chip->spec = of_device_get_match_data(dev);
spec              682 drivers/media/dvb-frontends/mn88443x.c 		chip->spec = (struct mn88443x_spec *)id->driver_data;
spec              683 drivers/media/dvb-frontends/mn88443x.c 	if (!chip->spec)
spec              719 drivers/media/pci/saa7164/saa7164-core.c 	dev->fw_status.spec = saa7164_readl(SAA_DEVICE_SYSINIT_SPEC);
spec              728 drivers/media/pci/saa7164/saa7164-core.c 	dprintk(1, " .spec       = 0x%08x\n", s->spec);
spec              216 drivers/media/pci/saa7164/saa7164.h 	u32	spec;
spec               44 drivers/mfd/kempld-core.c 	u8 spec;
spec               49 drivers/mfd/kempld-core.c 	spec = kempld_read8(pld, KEMPLD_SPEC);
spec               57 drivers/mfd/kempld-core.c 	if (spec == 0xff) {
spec               61 drivers/mfd/kempld-core.c 		pld->info.spec_minor = KEMPLD_SPEC_GET_MINOR(spec);
spec               62 drivers/mfd/kempld-core.c 		pld->info.spec_major = KEMPLD_SPEC_GET_MAJOR(spec);
spec              274 drivers/net/can/janz-ican3.c 	u8 spec;
spec              661 drivers/net/can/janz-ican3.c 	msg.spec = MSG_CONNECTI;
spec              672 drivers/net/can/janz-ican3.c 	msg.spec = MSG_DISCONNECT;
spec              684 drivers/net/can/janz-ican3.c 	msg.spec = MSG_NEWHOSTIF;
spec              705 drivers/net/can/janz-ican3.c 	msg.spec = MSG_INITFDPMQUEUE;
spec              739 drivers/net/can/janz-ican3.c 	msg.spec = MSG_SETAFILMASK;
spec              755 drivers/net/can/janz-ican3.c 	msg.spec = MSG_SETAFILMASK;
spec              796 drivers/net/can/janz-ican3.c 			msg.spec = MSG_CBTRREQ;
spec              810 drivers/net/can/janz-ican3.c 		msg.spec = on ? MSG_CONREQ : MSG_COFFREQ;
spec              818 drivers/net/can/janz-ican3.c 		msg.spec = MSG_LMTS;
spec              841 drivers/net/can/janz-ican3.c 			msg.spec = MSG_NMTS;
spec              860 drivers/net/can/janz-ican3.c 	msg.spec = MSG_HWCONF;
spec              873 drivers/net/can/janz-ican3.c 	msg.spec = MSG_INQUIRY;
spec              887 drivers/net/can/janz-ican3.c 		msg.spec = MSG_CCONFREQ;
spec              893 drivers/net/can/janz-ican3.c 		msg.spec = MSG_LMTS;
spec             1002 drivers/net/can/janz-ican3.c 	if (msg->spec == MSG_MSGLOST) {
spec             1236 drivers/net/can/janz-ican3.c 			   msg->spec, le16_to_cpu(msg->len));
spec             1245 drivers/net/can/janz-ican3.c 			   mod->num, msg->spec, le16_to_cpu(msg->len));
spec             1247 drivers/net/can/janz-ican3.c 	switch (msg->spec) {
spec              357 drivers/net/ethernet/marvell/sky2.c 				u16 spec;
spec              360 drivers/net/ethernet/marvell/sky2.c 				spec = gm_phy_read(hw, port, PHY_MARV_FE_SPEC_2);
spec              361 drivers/net/ethernet/marvell/sky2.c 				spec |= PHY_M_FESC_SEL_CL_A;
spec              362 drivers/net/ethernet/marvell/sky2.c 				gm_phy_write(hw, port, PHY_MARV_FE_SPEC_2, spec);
spec             1590 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c 	struct mlx4_spec_list *spec, *tmp_spec;
spec             1653 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c 	list_for_each_entry_safe(spec, tmp_spec, &rule.list, list) {
spec             1654 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c 		list_del(&spec->list);
spec             1655 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c 		kfree(spec);
spec              836 drivers/net/ethernet/mellanox/mlx4/mcg.c static int parse_trans_rule(struct mlx4_dev *dev, struct mlx4_spec_list *spec,
spec              839 drivers/net/ethernet/mellanox/mlx4/mcg.c 	if (mlx4_hw_rule_sz(dev, spec->id) < 0)
spec              841 drivers/net/ethernet/mellanox/mlx4/mcg.c 	memset(rule_hw, 0, mlx4_hw_rule_sz(dev, spec->id));
spec              842 drivers/net/ethernet/mellanox/mlx4/mcg.c 	rule_hw->id = cpu_to_be16(__sw_id_hw[spec->id]);
spec              843 drivers/net/ethernet/mellanox/mlx4/mcg.c 	rule_hw->size = mlx4_hw_rule_sz(dev, spec->id) >> 2;
spec              845 drivers/net/ethernet/mellanox/mlx4/mcg.c 	switch (spec->id) {
spec              847 drivers/net/ethernet/mellanox/mlx4/mcg.c 		memcpy(rule_hw->eth.dst_mac, spec->eth.dst_mac, ETH_ALEN);
spec              848 drivers/net/ethernet/mellanox/mlx4/mcg.c 		memcpy(rule_hw->eth.dst_mac_msk, spec->eth.dst_mac_msk,
spec              850 drivers/net/ethernet/mellanox/mlx4/mcg.c 		memcpy(rule_hw->eth.src_mac, spec->eth.src_mac, ETH_ALEN);
spec              851 drivers/net/ethernet/mellanox/mlx4/mcg.c 		memcpy(rule_hw->eth.src_mac_msk, spec->eth.src_mac_msk,
spec              853 drivers/net/ethernet/mellanox/mlx4/mcg.c 		if (spec->eth.ether_type_enable) {
spec              855 drivers/net/ethernet/mellanox/mlx4/mcg.c 			rule_hw->eth.ether_type = spec->eth.ether_type;
spec              857 drivers/net/ethernet/mellanox/mlx4/mcg.c 		rule_hw->eth.vlan_tag = spec->eth.vlan_id;
spec              858 drivers/net/ethernet/mellanox/mlx4/mcg.c 		rule_hw->eth.vlan_tag_msk = spec->eth.vlan_id_msk;
spec              862 drivers/net/ethernet/mellanox/mlx4/mcg.c 		rule_hw->ib.l3_qpn = spec->ib.l3_qpn;
spec              863 drivers/net/ethernet/mellanox/mlx4/mcg.c 		rule_hw->ib.qpn_mask = spec->ib.qpn_msk;
spec              864 drivers/net/ethernet/mellanox/mlx4/mcg.c 		memcpy(&rule_hw->ib.dst_gid, &spec->ib.dst_gid, 16);
spec              865 drivers/net/ethernet/mellanox/mlx4/mcg.c 		memcpy(&rule_hw->ib.dst_gid_msk, &spec->ib.dst_gid_msk, 16);
spec              872 drivers/net/ethernet/mellanox/mlx4/mcg.c 		rule_hw->ipv4.src_ip = spec->ipv4.src_ip;
spec              873 drivers/net/ethernet/mellanox/mlx4/mcg.c 		rule_hw->ipv4.src_ip_msk = spec->ipv4.src_ip_msk;
spec              874 drivers/net/ethernet/mellanox/mlx4/mcg.c 		rule_hw->ipv4.dst_ip = spec->ipv4.dst_ip;
spec              875 drivers/net/ethernet/mellanox/mlx4/mcg.c 		rule_hw->ipv4.dst_ip_msk = spec->ipv4.dst_ip_msk;
spec              880 drivers/net/ethernet/mellanox/mlx4/mcg.c 		rule_hw->tcp_udp.dst_port = spec->tcp_udp.dst_port;
spec              881 drivers/net/ethernet/mellanox/mlx4/mcg.c 		rule_hw->tcp_udp.dst_port_msk = spec->tcp_udp.dst_port_msk;
spec              882 drivers/net/ethernet/mellanox/mlx4/mcg.c 		rule_hw->tcp_udp.src_port = spec->tcp_udp.src_port;
spec              883 drivers/net/ethernet/mellanox/mlx4/mcg.c 		rule_hw->tcp_udp.src_port_msk = spec->tcp_udp.src_port_msk;
spec              888 drivers/net/ethernet/mellanox/mlx4/mcg.c 			cpu_to_be32(be32_to_cpu(spec->vxlan.vni) << 8);
spec              890 drivers/net/ethernet/mellanox/mlx4/mcg.c 			cpu_to_be32(be32_to_cpu(spec->vxlan.vni_mask) << 8);
spec              897 drivers/net/ethernet/mellanox/mlx4/mcg.c 	return __rule_hw_sz[spec->id];
spec             1372 drivers/net/ethernet/mellanox/mlx4/mcg.c 		struct mlx4_spec_list spec = { {NULL} };
spec             1389 drivers/net/ethernet/mellanox/mlx4/mcg.c 			spec.id = MLX4_NET_TRANS_RULE_ID_ETH;
spec             1390 drivers/net/ethernet/mellanox/mlx4/mcg.c 			memcpy(spec.eth.dst_mac, &gid[10], ETH_ALEN);
spec             1391 drivers/net/ethernet/mellanox/mlx4/mcg.c 			memcpy(spec.eth.dst_mac_msk, &mac_mask, ETH_ALEN);
spec             1395 drivers/net/ethernet/mellanox/mlx4/mcg.c 			spec.id = MLX4_NET_TRANS_RULE_ID_IB;
spec             1396 drivers/net/ethernet/mellanox/mlx4/mcg.c 			memcpy(spec.ib.dst_gid, gid, 16);
spec             1397 drivers/net/ethernet/mellanox/mlx4/mcg.c 			memset(&spec.ib.dst_gid_msk, 0xff, 16);
spec             1402 drivers/net/ethernet/mellanox/mlx4/mcg.c 		list_add_tail(&spec.list, &rule.list);
spec               39 drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c #define MASK_VAL(type, spec, name, mask, val, fld)	\
spec               41 drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c 			{.m = MLX5_GET(spec, mask, fld),\
spec               42 drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c 			 .v = MLX5_GET(spec, val, fld)}
spec               43 drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c #define MASK_VAL_BE(type, spec, name, mask, val, fld)	\
spec               45 drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c 			{.m = MLX5_GET_BE(type, spec, mask, fld),\
spec               46 drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c 			 .v = MLX5_GET_BE(type, spec, val, fld)}
spec              474 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c 		       struct mlx5_flow_spec *spec,
spec              493 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c 		err = tunnel->parse_udp_ports(priv, spec, f,
spec              500 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c 		err = tunnel->parse_tunnel(priv, spec, f,
spec              511 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c 				 struct mlx5_flow_spec *spec,
spec               35 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h 			       struct mlx5_flow_spec *spec,
spec               40 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h 			    struct mlx5_flow_spec *spec,
spec               70 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h 		       struct mlx5_flow_spec *spec,
spec               76 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h 				 struct mlx5_flow_spec *spec,
spec               50 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c 					       struct mlx5_flow_spec *spec,
spec               57 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c 	err = mlx5e_tc_tun_parse_udp_ports(priv, spec, f, headers_c, headers_v);
spec              124 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c 					 struct mlx5_flow_spec *spec,
spec              132 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c 	misc_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters);
spec              133 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c 	misc_v = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters);
spec              156 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c 					     struct mlx5_flow_spec *spec,
spec              169 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c 	misc_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters);
spec              170 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c 	misc_v = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters);
spec              171 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c 	misc_3_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters_3);
spec              172 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c 	misc_3_v = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters_3);
spec              273 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c 	spec->match_criteria_enable |= MLX5_MATCH_MISC_PARAMETERS_3;
spec              279 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c 					    struct mlx5_flow_spec *spec,
spec              282 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c 	void *misc_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters);
spec              283 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c 	void *misc_v = MLX5_ADDR_OF(fte_match_param, spec->match_value,  misc_parameters);
spec              308 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c 				     struct mlx5_flow_spec *spec,
spec              315 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c 	err = mlx5e_tc_tun_parse_geneve_params(priv, spec, f);
spec              319 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c 	err = mlx5e_tc_tun_parse_geneve_vni(priv, spec, f);
spec              323 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c 	return mlx5e_tc_tun_parse_geneve_options(priv, spec, f);
spec               56 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_gre.c 				     struct mlx5_flow_spec *spec,
spec               61 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_gre.c 	void *misc_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters);
spec               62 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_gre.c 	void *misc_v = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters);
spec               46 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_vxlan.c 					      struct mlx5_flow_spec *spec,
spec               53 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_vxlan.c 	err = mlx5e_tc_tun_parse_udp_ports(priv, spec, f, headers_c, headers_v);
spec              102 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_vxlan.c 				    struct mlx5_flow_spec *spec,
spec              112 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_vxlan.c 	misc_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters);
spec              113 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_vxlan.c 	misc_v = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters);
spec              178 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 	struct mlx5_flow_spec *spec;
spec              182 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 	spec = kvzalloc(sizeof(*spec), GFP_KERNEL);
spec              183 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 	if (!spec) {
spec              199 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 	arfs_t->default_rule = mlx5_add_flow_rules(arfs_t->ft.t, spec,
spec              209 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 	kvfree(spec);
spec              464 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 	struct mlx5_flow_spec *spec;
spec              468 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 	spec = kvzalloc(sizeof(*spec), GFP_KERNEL);
spec              469 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 	if (!spec) {
spec              473 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 	spec->match_criteria_enable = MLX5_MATCH_OUTER_HEADERS;
spec              474 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 	MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria,
spec              476 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 	MLX5_SET(fte_match_param, spec->match_value, outer_headers.ethertype,
spec              486 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 		MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria,
spec              488 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 		MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria,
spec              490 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 		MLX5_SET(fte_match_param, spec->match_value, outer_headers.tcp_dport,
spec              492 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 		MLX5_SET(fte_match_param, spec->match_value, outer_headers.tcp_sport,
spec              495 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 		MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria,
spec              497 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 		MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria,
spec              499 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 		MLX5_SET(fte_match_param, spec->match_value, outer_headers.udp_dport,
spec              501 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 		MLX5_SET(fte_match_param, spec->match_value, outer_headers.udp_sport,
spec              505 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 		memcpy(MLX5_ADDR_OF(fte_match_param, spec->match_value,
spec              509 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 		memcpy(MLX5_ADDR_OF(fte_match_param, spec->match_value,
spec              513 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 		MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria,
spec              515 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 		MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria,
spec              518 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 		memcpy(MLX5_ADDR_OF(fte_match_param, spec->match_value,
spec              522 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 		memcpy(MLX5_ADDR_OF(fte_match_param, spec->match_value,
spec              526 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 		memset(MLX5_ADDR_OF(fte_match_param, spec->match_criteria,
spec              530 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 		memset(MLX5_ADDR_OF(fte_match_param, spec->match_criteria,
spec              537 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 	rule = mlx5_add_flow_rules(ft, spec, &flow_act, &dest, 1);
spec              548 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c 	kvfree(spec);
spec              163 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 				 u16 vid, struct mlx5_flow_spec *spec)
spec              174 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 	spec->match_criteria_enable = MLX5_MATCH_OUTER_HEADERS;
spec              183 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 		MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria,
spec              188 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 		MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria,
spec              190 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 		MLX5_SET(fte_match_param, spec->match_value, outer_headers.cvlan_tag, 1);
spec              194 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 		MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria,
spec              196 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 		MLX5_SET(fte_match_param, spec->match_value, outer_headers.svlan_tag, 1);
spec              200 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 		MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria,
spec              202 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 		MLX5_SET(fte_match_param, spec->match_value, outer_headers.svlan_tag, 1);
spec              203 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 		MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria,
spec              205 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 		MLX5_SET(fte_match_param, spec->match_value, outer_headers.first_vid,
spec              210 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 		MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria,
spec              212 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 		MLX5_SET(fte_match_param, spec->match_value, outer_headers.cvlan_tag, 1);
spec              213 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 		MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria,
spec              215 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 		MLX5_SET(fte_match_param, spec->match_value, outer_headers.first_vid,
spec              220 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 	*rule_p = mlx5_add_flow_rules(ft, spec, &flow_act, &dest, 1);
spec              234 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 	struct mlx5_flow_spec *spec;
spec              237 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 	spec = kvzalloc(sizeof(*spec), GFP_KERNEL);
spec              238 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 	if (!spec)
spec              244 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 	err = __mlx5e_add_vlan_rule(priv, rule_type, vid, spec);
spec              246 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 	kvfree(spec);
spec              820 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 	struct mlx5_flow_spec *spec;
spec              824 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 	spec = kvzalloc(sizeof(*spec), GFP_KERNEL);
spec              825 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 	if (!spec)
spec              829 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 		spec->match_criteria_enable = MLX5_MATCH_OUTER_HEADERS;
spec              830 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 		MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_protocol);
spec              831 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 		MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_protocol, proto);
spec              836 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 		spec->match_criteria_enable = MLX5_MATCH_OUTER_HEADERS;
spec              837 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 		MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_version);
spec              838 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 		MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_version, ipv);
spec              840 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 		spec->match_criteria_enable = MLX5_MATCH_OUTER_HEADERS;
spec              841 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 		MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ethertype);
spec              842 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 		MLX5_SET(fte_match_param, spec->match_value, outer_headers.ethertype, etype);
spec              845 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 	rule = mlx5_add_flow_rules(ft, spec, &flow_act, dest, 1);
spec              851 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 	kvfree(spec);
spec              982 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 	struct mlx5_flow_spec *spec;
spec              986 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 	spec = kvzalloc(sizeof(*spec), GFP_KERNEL);
spec              987 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 	if (!spec)
spec              992 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 		spec->match_criteria_enable = MLX5_MATCH_INNER_HEADERS;
spec              993 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 		MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, inner_headers.ip_version);
spec              994 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 		MLX5_SET(fte_match_param, spec->match_value, inner_headers.ip_version, ipv);
spec              998 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 		spec->match_criteria_enable = MLX5_MATCH_INNER_HEADERS;
spec              999 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 		MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, inner_headers.ip_protocol);
spec             1000 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 		MLX5_SET(fte_match_param, spec->match_value, inner_headers.ip_protocol, proto);
spec             1003 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 	rule = mlx5_add_flow_rules(ft, spec, &flow_act, dest, 1);
spec             1009 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 	kvfree(spec);
spec             1228 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 	struct mlx5_flow_spec *spec;
spec             1233 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 	spec = kvzalloc(sizeof(*spec), GFP_KERNEL);
spec             1234 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 	if (!spec)
spec             1237 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 	mc_dmac = MLX5_ADDR_OF(fte_match_param, spec->match_criteria,
spec             1239 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 	mv_dmac = MLX5_ADDR_OF(fte_match_param, spec->match_value,
spec             1247 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 		spec->match_criteria_enable = MLX5_MATCH_OUTER_HEADERS;
spec             1253 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 		spec->match_criteria_enable = MLX5_MATCH_OUTER_HEADERS;
spec             1262 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 	ai->rule = mlx5_add_flow_rules(ft, spec, &flow_act, &dest, 1);
spec             1270 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c 	kvfree(spec);
spec              405 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c 	struct mlx5_flow_spec *spec;
spec              408 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c 	spec = kvzalloc(sizeof(*spec), GFP_KERNEL);
spec              409 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c 	if (!spec)
spec              411 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c 	err = set_flow_attrs(spec->match_criteria, spec->match_value,
spec              438 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c 	spec->match_criteria_enable = (!outer_header_zero(spec->match_criteria));
spec              439 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c 	spec->flow_context.flow_tag = MLX5_FS_DEFAULT_FLOW_TAG;
spec              440 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c 	rule = mlx5_add_flow_rules(ft, spec, &flow_act, dst, dst ? 1 : 0);
spec              448 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c 	kvfree(spec);
spec              144 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	struct mlx5_flow_spec spec;
spec              736 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 				  struct mlx5_flow_spec *spec, u8 *match_prio,
spec              750 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	headers_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, outer_headers);
spec              751 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	headers_v = MLX5_ADDR_OF(fte_match_param, spec->match_value, outer_headers);
spec              794 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	err = mlx5e_hairpin_get_prio(priv, &parse_attr->spec, &match_prio,
spec              903 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	struct mlx5_flow_context *flow_context = &parse_attr->spec.flow_context;
spec              985 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 		parse_attr->spec.match_criteria_enable |= MLX5_MATCH_OUTER_HEADERS;
spec              987 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	flow->rule[0] = mlx5_add_flow_rules(priv->fs.tc.t, &parse_attr->spec,
spec             1033 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 			   struct mlx5_flow_spec *spec,
spec             1038 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	rule = mlx5_eswitch_add_offloaded_rule(esw, spec, attr);
spec             1043 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 		flow->rule[1] = mlx5_eswitch_add_fwd_rule(esw, spec, attr);
spec             1069 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 			      struct mlx5_flow_spec *spec,
spec             1079 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	rule = mlx5e_tc_offload_fdb_rules(esw, flow, spec, slow_attr);
spec             1228 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 		flow->rule[0] = mlx5e_tc_offload_to_slow_path(esw, flow, &parse_attr->spec, &slow_attr);
spec             1230 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 		flow->rule[0] = mlx5e_tc_offload_fdb_rules(esw, flow, &parse_attr->spec, attr);
spec             1243 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	struct mlx5_flow_spec *spec = &flow->esw_attr->parse_attr->spec;
spec             1245 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 				       spec->match_value,
spec             1301 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	struct mlx5_flow_spec *spec;
spec             1324 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 		spec = &esw_attr->parse_attr->spec;
spec             1344 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 		rule = mlx5e_tc_offload_fdb_rules(esw, flow, spec, esw_attr);
spec             1366 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	struct mlx5_flow_spec *spec;
spec             1373 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 		spec = &flow->esw_attr->parse_attr->spec;
spec             1376 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 		rule = mlx5e_tc_offload_to_slow_path(esw, flow, spec, &slow_attr);
spec             1653 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 			     struct mlx5_flow_spec *spec,
spec             1658 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	void *headers_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria,
spec             1660 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	void *headers_v = MLX5_ADDR_OF(fte_match_param, spec->match_value,
spec             1665 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	err = mlx5e_tc_tun_parse(filter_dev, priv, spec, f,
spec             1778 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 					struct mlx5_flow_spec *spec)
spec             1781 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 		MLX5_ADDR_OF(fte_match_param, spec->match_criteria,
spec             1783 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 		MLX5_ADDR_OF(fte_match_param, spec->match_criteria,
spec             1788 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 				     struct mlx5_flow_spec *spec)
spec             1791 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 		MLX5_ADDR_OF(fte_match_param, spec->match_value,
spec             1793 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 		MLX5_ADDR_OF(fte_match_param, spec->match_value,
spec             1798 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 			      struct mlx5_flow_spec *spec,
spec             1804 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	void *headers_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria,
spec             1806 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	void *headers_v = MLX5_ADDR_OF(fte_match_param, spec->match_value,
spec             1808 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	void *misc_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria,
spec             1810 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	void *misc_v = MLX5_ADDR_OF(fte_match_param, spec->match_value,
spec             1846 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 		if (parse_tunnel_attr(priv, spec, f, filter_dev,
spec             1855 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 						       spec);
spec             1857 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 						    spec);
spec             2154 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 			    struct mlx5_flow_spec *spec,
spec             2170 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	err = __parse_cls_flower(priv, spec, f, filter_dev, &inner_match_level,
spec             2339 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 						     &parse_attr->spec);
spec             2341 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 						  &parse_attr->spec);
spec             2659 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c static bool modify_header_match_supported(struct mlx5_flow_spec *spec,
spec             2671 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	headers_v = get_match_headers_value(actions, spec);
spec             2723 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 		return modify_header_match_supported(&parse_attr->spec,
spec             2763 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	headers_c = get_match_headers_criteria(*action, &parse_attr->spec);
spec             2764 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	headers_v = get_match_headers_value(*action, &parse_attr->spec);
spec             2799 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 							 &parse_attr->spec),
spec             2803 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 							    &parse_attr->spec),
spec             3612 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	err = parse_cls_flower(flow->priv, flow, &parse_attr->spec,
spec             3747 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c 	err = parse_cls_flower(flow->priv, flow, &parse_attr->spec,
spec              195 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	struct mlx5_flow_spec *spec;
spec              204 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	spec = kvzalloc(sizeof(*spec), GFP_KERNEL);
spec              205 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	if (!spec)
spec              208 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	dmac_v = MLX5_ADDR_OF(fte_match_param, spec->match_value,
spec              210 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	dmac_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria,
spec              219 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 		mv_misc  = MLX5_ADDR_OF(fte_match_param, spec->match_value,
spec              221 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 		mc_misc  = MLX5_ADDR_OF(fte_match_param, spec->match_criteria,
spec              233 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	spec->match_criteria_enable = match_header;
spec              236 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 		mlx5_add_flow_rules(esw->fdb_table.legacy.fdb, spec,
spec              245 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	kvfree(spec);
spec             1245 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	struct mlx5_flow_spec *spec;
spec             1269 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	spec = kvzalloc(sizeof(*spec), GFP_KERNEL);
spec             1270 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	if (!spec) {
spec             1276 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 		MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.cvlan_tag);
spec             1279 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 		MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.smac_47_16);
spec             1280 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 		MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.smac_15_0);
spec             1282 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 				      spec->match_value,
spec             1287 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	spec->match_criteria_enable = MLX5_MATCH_OUTER_HEADERS;
spec             1290 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 		mlx5_add_flow_rules(vport->ingress.acl, spec,
spec             1301 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	memset(spec, 0, sizeof(*spec));
spec             1313 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 		mlx5_add_flow_rules(vport->ingress.acl, spec,
spec             1327 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	kvfree(spec);
spec             1338 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	struct mlx5_flow_spec *spec;
spec             1361 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	spec = kvzalloc(sizeof(*spec), GFP_KERNEL);
spec             1362 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	if (!spec) {
spec             1368 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.cvlan_tag);
spec             1369 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	MLX5_SET_TO_ONES(fte_match_param, spec->match_value, outer_headers.cvlan_tag);
spec             1370 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.first_vid);
spec             1371 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	MLX5_SET(fte_match_param, spec->match_value, outer_headers.first_vid, vport->info.vlan);
spec             1373 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	spec->match_criteria_enable = MLX5_MATCH_OUTER_HEADERS;
spec             1376 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 		mlx5_add_flow_rules(vport->egress.acl, spec,
spec             1388 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	memset(spec, 0, sizeof(*spec));
spec             1400 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 		mlx5_add_flow_rules(vport->egress.acl, spec,
spec             1410 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	kvfree(spec);
spec             2239 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	struct mlx5_flow_spec *spec;
spec             2251 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	spec = kvzalloc(sizeof(*spec), GFP_KERNEL);
spec             2252 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	if (!spec)
spec             2256 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	misc = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters);
spec             2259 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters);
spec             2262 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	spec->match_criteria_enable = MLX5_MATCH_MISC_PARAMETERS;
spec             2266 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	flow_rule = mlx5_add_flow_rules(esw->fdb_table.legacy.vepa_fdb, spec,
spec             2276 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	memset(spec, 0, sizeof(*spec));
spec             2281 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	flow_rule = mlx5_add_flow_rules(esw->fdb_table.legacy.vepa_fdb, spec,
spec             2291 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c 	kvfree(spec);
spec              307 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h 			      struct mlx5_flow_spec *spec);
spec              312 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h 			      struct mlx5_flow_spec *spec,
spec              324 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h 				struct mlx5_flow_spec *spec,
spec              328 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h 			  struct mlx5_flow_spec *spec,
spec               93 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 				  struct mlx5_flow_spec *spec,
spec              103 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 		misc2 = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters_2);
spec              108 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 		misc2 = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters_2);
spec              111 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 		spec->match_criteria_enable |= MLX5_MATCH_MISC_PARAMETERS_2;
spec              112 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 		misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters);
spec              114 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 			spec->match_criteria_enable |= MLX5_MATCH_MISC_PARAMETERS;
spec              116 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 		misc = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters);
spec              124 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 		misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters);
spec              130 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 		spec->match_criteria_enable |= MLX5_MATCH_MISC_PARAMETERS;
spec              135 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 		spec->flow_context.flow_source = MLX5_FLOW_CONTEXT_FLOW_SOURCE_UPLINK;
spec              140 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 				struct mlx5_flow_spec *spec,
spec              208 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	mlx5_eswitch_set_rule_source_port(esw, spec, attr);
spec              211 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 		spec->match_criteria_enable |= MLX5_MATCH_OUTER_HEADERS;
spec              213 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 		spec->match_criteria_enable |= MLX5_MATCH_INNER_HEADERS;
spec              224 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	if (mlx5_eswitch_termtbl_required(esw, &flow_act, spec))
spec              225 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 		rule = mlx5_eswitch_add_termtbl_rule(esw, fdb, spec, attr,
spec              228 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 		rule = mlx5_add_flow_rules(fdb, spec, &flow_act, dest, i);
spec              247 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 			  struct mlx5_flow_spec *spec,
spec              286 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	mlx5_eswitch_set_rule_source_port(esw, spec, attr);
spec              289 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 		spec->match_criteria_enable |= MLX5_MATCH_OUTER_HEADERS;
spec              291 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	rule = mlx5_add_flow_rules(fast_fdb, spec, &flow_act, dest, i);
spec              554 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	struct mlx5_flow_spec *spec;
spec              557 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	spec = kvzalloc(sizeof(*spec), GFP_KERNEL);
spec              558 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	if (!spec) {
spec              563 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	misc = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters);
spec              568 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters);
spec              572 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	spec->match_criteria_enable = MLX5_MATCH_MISC_PARAMETERS;
spec              577 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	flow_rule = mlx5_add_flow_rules(esw->fdb_table.offloads.slow_fdb, spec,
spec              582 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	kvfree(spec);
spec              627 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 				  struct mlx5_flow_spec *spec,
spec              633 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 		misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria,
spec              637 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 		spec->match_criteria_enable = MLX5_MATCH_MISC_PARAMETERS_2;
spec              639 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 		misc = MLX5_ADDR_OF(fte_match_param, spec->match_value,
spec              645 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 		spec->match_criteria_enable = MLX5_MATCH_MISC_PARAMETERS;
spec              647 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 		misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria,
spec              662 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 					       struct mlx5_flow_spec *spec,
spec              668 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 		misc = MLX5_ADDR_OF(fte_match_param, spec->match_value,
spec              674 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 		misc = MLX5_ADDR_OF(fte_match_param, spec->match_value,
spec              687 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	struct mlx5_flow_spec *spec;
spec              693 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	spec = kvzalloc(sizeof(*spec), GFP_KERNEL);
spec              694 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	if (!spec)
spec              697 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	peer_miss_rules_setup(esw, peer_dev, spec, &dest);
spec              706 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	misc = MLX5_ADDR_OF(fte_match_param, spec->match_value,
spec              711 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 						   spec, MLX5_VPORT_PF);
spec              714 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 					   spec, &flow_act, &dest, 1);
spec              725 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 					   spec, &flow_act, &dest, 1);
spec              736 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 						   spec, i);
spec              739 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 					   spec, &flow_act, &dest, 1);
spec              749 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	kvfree(spec);
spec              766 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	kvfree(spec);
spec              795 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	struct mlx5_flow_spec *spec;
spec              802 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	spec = kvzalloc(sizeof(*spec), GFP_KERNEL);
spec              803 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	if (!spec) {
spec              808 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	spec->match_criteria_enable = MLX5_MATCH_OUTER_HEADERS;
spec              809 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	headers_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria,
spec              819 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	flow_rule = mlx5_add_flow_rules(esw->fdb_table.offloads.slow_fdb, spec,
spec              829 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	headers_v = MLX5_ADDR_OF(fte_match_param, spec->match_value,
spec              834 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	flow_rule = mlx5_add_flow_rules(esw->fdb_table.offloads.slow_fdb, spec,
spec              846 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	kvfree(spec);
spec             1319 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	struct mlx5_flow_spec *spec;
spec             1322 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	spec = kvzalloc(sizeof(*spec), GFP_KERNEL);
spec             1323 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	if (!spec) {
spec             1329 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 		misc = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters_2);
spec             1333 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 		misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters_2);
spec             1336 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 		spec->match_criteria_enable = MLX5_MATCH_MISC_PARAMETERS_2;
spec             1338 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 		misc = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters);
spec             1341 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 		misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters);
spec             1344 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 		spec->match_criteria_enable = MLX5_MATCH_MISC_PARAMETERS;
spec             1348 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	flow_rule = mlx5_add_flow_rules(esw->offloads.ft_offloads, spec,
spec             1356 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	kvfree(spec);
spec             1755 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	struct mlx5_flow_spec *spec;
spec             1764 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	spec = kvzalloc(sizeof(*spec), GFP_KERNEL);
spec             1765 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	if (!spec) {
spec             1771 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.cvlan_tag);
spec             1772 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	MLX5_SET(fte_match_param, spec->match_value, outer_headers.cvlan_tag, 0);
spec             1773 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	spec->match_criteria_enable = MLX5_MATCH_OUTER_HEADERS;
spec             1786 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 		mlx5_add_flow_rules(vport->ingress.acl, spec,
spec             1798 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	kvfree(spec);
spec             1809 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	static const struct mlx5_flow_spec spec = {};
spec             1832 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 								  &spec, &flow_act, NULL, 0);
spec             1863 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	struct mlx5_flow_spec *spec;
spec             1887 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	spec = kvzalloc(sizeof(*spec), GFP_KERNEL);
spec             1888 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	if (!spec) {
spec             1894 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.cvlan_tag);
spec             1895 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	MLX5_SET_TO_ONES(fte_match_param, spec->match_value, outer_headers.cvlan_tag);
spec             1896 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.first_vid);
spec             1897 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	MLX5_SET(fte_match_param, spec->match_value, outer_headers.first_vid, 0);
spec             1899 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	spec->match_criteria_enable = MLX5_MATCH_OUTER_HEADERS;
spec             1903 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 		mlx5_add_flow_rules(vport->egress.acl, spec,
spec             1915 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c 	kvfree(spec);
spec               52 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c 	static const struct mlx5_flow_spec spec = {};
spec               75 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c 	tt->rule = mlx5_add_flow_rules(tt->termtbl, &spec, flow_act,
spec              181 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c 						const struct mlx5_flow_spec *spec)
spec              186 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c 		return spec->flow_context.flow_source ==
spec              189 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c 	port_mask = MLX5_GET(fte_match_param, spec->match_criteria,
spec              191 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c 	port_value = MLX5_GET(fte_match_param, spec->match_value,
spec              199 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c 			      struct mlx5_flow_spec *spec)
spec              206 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c 		mlx5_eswitch_offload_is_uplink_port(esw, spec);
spec              212 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c 			      struct mlx5_flow_spec *spec,
spec              255 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c 	rule = mlx5_add_flow_rules(fdb, spec, flow_act, dest, num_dest);
spec              285 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c 	rule = mlx5_add_flow_rules(fdb, spec, flow_act, dest, num_dest);
spec              366 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c static bool check_valid_spec(const struct mlx5_flow_spec *spec)
spec              371 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c 		if (spec->match_value[i] & ~spec->match_criteria[i]) {
spec              617 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c 				const struct mlx5_flow_spec *spec,
spec              627 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c 	memcpy(fte->val, &spec->match_value, sizeof(fte->val));
spec              630 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c 	fte->flow_context = spec->flow_context;
spec             1322 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c 						     const struct mlx5_flow_spec *spec)
spec             1352 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c 				     spec->match_criteria_enable,
spec             1353 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c 				     spec->match_criteria,
spec             1491 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c 					    const struct mlx5_flow_spec *spec,
spec             1502 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c 	ret = check_conflicting_ftes(fte, &spec->flow_context, flow_act);
spec             1576 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c 			    const struct mlx5_flow_spec *spec,
spec             1586 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c 	list = rhltable_lookup(&ft->fgs_hash, spec, rhash_fg);
spec             1663 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c 		       const struct mlx5_flow_spec *spec,
spec             1678 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c 	fte = alloc_fte(ft, spec, flow_act);
spec             1691 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c 		fte_tmp = lookup_fte_locked(g, spec->match_value, take_write);
spec             1694 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c 		rule = add_rule_fg(g, spec, flow_act, dest, dest_num, fte_tmp);
spec             1741 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c 		rule = add_rule_fg(g, spec, flow_act, dest, dest_num, fte);
spec             1754 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c 		     const struct mlx5_flow_spec *spec,
spec             1770 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c 	if (!check_valid_spec(spec))
spec             1782 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c 	err = build_match_list(&match_head, ft, spec, take_write);
spec             1794 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c 	rule = try_add_to_existing_fg(ft, &match_head.list, spec, flow_act, dest,
spec             1813 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c 	g = alloc_auto_flow_group(ft, spec);
spec             1827 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c 	fte = alloc_fte(ft, spec, flow_act);
spec             1841 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c 	rule = add_rule_fg(g, spec, flow_act, dest, dest_num, fte);
spec             1861 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c 		    const struct mlx5_flow_spec *spec,
spec             1893 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c 	handle = _mlx5_add_flow_rules(ft, spec, flow_act, dest, num_dest);
spec               30 drivers/net/ethernet/mellanox/mlx5/core/rdma.c 	struct mlx5_flow_spec *spec;
spec               45 drivers/net/ethernet/mellanox/mlx5/core/rdma.c 	spec = kvzalloc(sizeof(*spec), GFP_KERNEL);
spec               46 drivers/net/ethernet/mellanox/mlx5/core/rdma.c 	if (!spec) {
spec               80 drivers/net/ethernet/mellanox/mlx5/core/rdma.c 	spec->match_criteria_enable = MLX5_MATCH_MISC_PARAMETERS;
spec               81 drivers/net/ethernet/mellanox/mlx5/core/rdma.c 	misc = MLX5_ADDR_OF(fte_match_param, spec->match_value,
spec               85 drivers/net/ethernet/mellanox/mlx5/core/rdma.c 	misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria,
spec               90 drivers/net/ethernet/mellanox/mlx5/core/rdma.c 	flow_rule = mlx5_add_flow_rules(ft, spec, &flow_act, NULL, 0);
spec               98 drivers/net/ethernet/mellanox/mlx5/core/rdma.c 	kvfree(spec);
spec              111 drivers/net/ethernet/mellanox/mlx5/core/rdma.c 	kvfree(spec);
spec                6 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c static bool dr_mask_is_smac_set(struct mlx5dr_match_spec *spec)
spec                8 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 	return (spec->smac_47_16 || spec->smac_15_0);
spec               11 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c static bool dr_mask_is_dmac_set(struct mlx5dr_match_spec *spec)
spec               13 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 	return (spec->dmac_47_16 || spec->dmac_15_0);
spec               16 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c static bool dr_mask_is_src_addr_set(struct mlx5dr_match_spec *spec)
spec               18 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 	return (spec->src_ip_127_96 || spec->src_ip_95_64 ||
spec               19 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 		spec->src_ip_63_32 || spec->src_ip_31_0);
spec               22 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c static bool dr_mask_is_dst_addr_set(struct mlx5dr_match_spec *spec)
spec               24 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 	return (spec->dst_ip_127_96 || spec->dst_ip_95_64 ||
spec               25 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 		spec->dst_ip_63_32 || spec->dst_ip_31_0);
spec               28 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c static bool dr_mask_is_l3_base_set(struct mlx5dr_match_spec *spec)
spec               30 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 	return (spec->ip_protocol || spec->frag || spec->tcp_flags ||
spec               31 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 		spec->ip_ecn || spec->ip_dscp);
spec               34 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c static bool dr_mask_is_tcp_udp_base_set(struct mlx5dr_match_spec *spec)
spec               36 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 	return (spec->tcp_sport || spec->tcp_dport ||
spec               37 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 		spec->udp_sport || spec->udp_dport);
spec               40 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c static bool dr_mask_is_ipv4_set(struct mlx5dr_match_spec *spec)
spec               42 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 	return (spec->dst_ip_31_0 || spec->src_ip_31_0);
spec               45 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c static bool dr_mask_is_ipv4_5_tuple_set(struct mlx5dr_match_spec *spec)
spec               47 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 	return (dr_mask_is_l3_base_set(spec) ||
spec               48 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 		dr_mask_is_tcp_udp_base_set(spec) ||
spec               49 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 		dr_mask_is_ipv4_set(spec));
spec               57 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c static bool dr_mask_is_ttl_set(struct mlx5dr_match_spec *spec)
spec               59 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 	return spec->ttl_hoplimit;
spec               21 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c #define DR_STE_SET_VAL(lookup_type, tag, t_fname, spec, s_fname, value) do { \
spec               22 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	if ((spec)->s_fname) { \
spec               24 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 		(spec)->s_fname = 0; \
spec               29 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c #define DR_STE_SET_TAG(lookup_type, tag, t_fname, spec, s_fname) \
spec               30 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_VAL(lookup_type, tag, t_fname, spec, s_fname, spec->s_fname)
spec               33 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c #define DR_STE_SET_MASK(lookup_type, bit_mask, bm_fname, spec, s_fname) \
spec               34 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_VAL(lookup_type, bit_mask, bm_fname, spec, s_fname, -1)
spec               37 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c #define DR_STE_SET_MASK_V(lookup_type, bit_mask, bm_fname, spec, s_fname) \
spec               38 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_VAL(lookup_type, bit_mask, bm_fname, spec, s_fname, (spec)->s_fname)
spec               40 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c #define DR_STE_SET_TCP_FLAGS(lookup_type, tag, spec) do { \
spec               41 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	MLX5_SET(ste_##lookup_type, tag, tcp_ns, !!((spec)->tcp_flags & (1 << 8))); \
spec               42 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	MLX5_SET(ste_##lookup_type, tag, tcp_cwr, !!((spec)->tcp_flags & (1 << 7))); \
spec               43 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	MLX5_SET(ste_##lookup_type, tag, tcp_ece, !!((spec)->tcp_flags & (1 << 6))); \
spec               44 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	MLX5_SET(ste_##lookup_type, tag, tcp_urg, !!((spec)->tcp_flags & (1 << 5))); \
spec               45 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	MLX5_SET(ste_##lookup_type, tag, tcp_ack, !!((spec)->tcp_flags & (1 << 4))); \
spec               46 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	MLX5_SET(ste_##lookup_type, tag, tcp_psh, !!((spec)->tcp_flags & (1 << 3))); \
spec               47 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	MLX5_SET(ste_##lookup_type, tag, tcp_rst, !!((spec)->tcp_flags & (1 << 2))); \
spec               48 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	MLX5_SET(ste_##lookup_type, tag, tcp_syn, !!((spec)->tcp_flags & (1 << 1))); \
spec               49 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	MLX5_SET(ste_##lookup_type, tag, tcp_fin, !!((spec)->tcp_flags & (1 << 0))); \
spec              811 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c static void dr_ste_copy_mask_misc(char *mask, struct mlx5dr_match_misc *spec)
spec              813 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->gre_c_present = MLX5_GET(fte_match_set_misc, mask, gre_c_present);
spec              814 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->gre_k_present = MLX5_GET(fte_match_set_misc, mask, gre_k_present);
spec              815 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->gre_s_present = MLX5_GET(fte_match_set_misc, mask, gre_s_present);
spec              816 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->source_vhca_port = MLX5_GET(fte_match_set_misc, mask, source_vhca_port);
spec              817 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->source_sqn = MLX5_GET(fte_match_set_misc, mask, source_sqn);
spec              819 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->source_port = MLX5_GET(fte_match_set_misc, mask, source_port);
spec              820 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->source_eswitch_owner_vhca_id = MLX5_GET(fte_match_set_misc, mask,
spec              823 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->outer_second_prio = MLX5_GET(fte_match_set_misc, mask, outer_second_prio);
spec              824 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->outer_second_cfi = MLX5_GET(fte_match_set_misc, mask, outer_second_cfi);
spec              825 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->outer_second_vid = MLX5_GET(fte_match_set_misc, mask, outer_second_vid);
spec              826 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->inner_second_prio = MLX5_GET(fte_match_set_misc, mask, inner_second_prio);
spec              827 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->inner_second_cfi = MLX5_GET(fte_match_set_misc, mask, inner_second_cfi);
spec              828 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->inner_second_vid = MLX5_GET(fte_match_set_misc, mask, inner_second_vid);
spec              830 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->outer_second_cvlan_tag =
spec              832 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->inner_second_cvlan_tag =
spec              834 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->outer_second_svlan_tag =
spec              836 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->inner_second_svlan_tag =
spec              839 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->gre_protocol = MLX5_GET(fte_match_set_misc, mask, gre_protocol);
spec              841 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->gre_key_h = MLX5_GET(fte_match_set_misc, mask, gre_key.nvgre.hi);
spec              842 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->gre_key_l = MLX5_GET(fte_match_set_misc, mask, gre_key.nvgre.lo);
spec              844 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->vxlan_vni = MLX5_GET(fte_match_set_misc, mask, vxlan_vni);
spec              846 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->geneve_vni = MLX5_GET(fte_match_set_misc, mask, geneve_vni);
spec              847 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->geneve_oam = MLX5_GET(fte_match_set_misc, mask, geneve_oam);
spec              849 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->outer_ipv6_flow_label =
spec              852 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->inner_ipv6_flow_label =
spec              855 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->geneve_opt_len = MLX5_GET(fte_match_set_misc, mask, geneve_opt_len);
spec              856 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->geneve_protocol_type =
spec              859 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->bth_dst_qp = MLX5_GET(fte_match_set_misc, mask, bth_dst_qp);
spec              862 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c static void dr_ste_copy_mask_spec(char *mask, struct mlx5dr_match_spec *spec)
spec              866 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->smac_47_16 = MLX5_GET(fte_match_set_lyr_2_4, mask, smac_47_16);
spec              868 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->smac_15_0 = MLX5_GET(fte_match_set_lyr_2_4, mask, smac_15_0);
spec              869 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->ethertype = MLX5_GET(fte_match_set_lyr_2_4, mask, ethertype);
spec              871 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->dmac_47_16 = MLX5_GET(fte_match_set_lyr_2_4, mask, dmac_47_16);
spec              873 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->dmac_15_0 = MLX5_GET(fte_match_set_lyr_2_4, mask, dmac_15_0);
spec              874 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->first_prio = MLX5_GET(fte_match_set_lyr_2_4, mask, first_prio);
spec              875 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->first_cfi = MLX5_GET(fte_match_set_lyr_2_4, mask, first_cfi);
spec              876 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->first_vid = MLX5_GET(fte_match_set_lyr_2_4, mask, first_vid);
spec              878 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->ip_protocol = MLX5_GET(fte_match_set_lyr_2_4, mask, ip_protocol);
spec              879 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->ip_dscp = MLX5_GET(fte_match_set_lyr_2_4, mask, ip_dscp);
spec              880 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->ip_ecn = MLX5_GET(fte_match_set_lyr_2_4, mask, ip_ecn);
spec              881 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->cvlan_tag = MLX5_GET(fte_match_set_lyr_2_4, mask, cvlan_tag);
spec              882 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->svlan_tag = MLX5_GET(fte_match_set_lyr_2_4, mask, svlan_tag);
spec              883 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->frag = MLX5_GET(fte_match_set_lyr_2_4, mask, frag);
spec              884 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->ip_version = MLX5_GET(fte_match_set_lyr_2_4, mask, ip_version);
spec              885 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->tcp_flags = MLX5_GET(fte_match_set_lyr_2_4, mask, tcp_flags);
spec              886 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->tcp_sport = MLX5_GET(fte_match_set_lyr_2_4, mask, tcp_sport);
spec              887 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->tcp_dport = MLX5_GET(fte_match_set_lyr_2_4, mask, tcp_dport);
spec              889 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->ttl_hoplimit = MLX5_GET(fte_match_set_lyr_2_4, mask, ttl_hoplimit);
spec              891 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->udp_sport = MLX5_GET(fte_match_set_lyr_2_4, mask, udp_sport);
spec              892 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->udp_dport = MLX5_GET(fte_match_set_lyr_2_4, mask, udp_dport);
spec              898 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->src_ip_127_96 = be32_to_cpu(raw_ip[0]);
spec              899 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->src_ip_95_64 = be32_to_cpu(raw_ip[1]);
spec              900 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->src_ip_63_32 = be32_to_cpu(raw_ip[2]);
spec              901 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->src_ip_31_0 = be32_to_cpu(raw_ip[3]);
spec              907 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->dst_ip_127_96 = be32_to_cpu(raw_ip[0]);
spec              908 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->dst_ip_95_64 = be32_to_cpu(raw_ip[1]);
spec              909 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->dst_ip_63_32 = be32_to_cpu(raw_ip[2]);
spec              910 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->dst_ip_31_0 = be32_to_cpu(raw_ip[3]);
spec              913 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c static void dr_ste_copy_mask_misc2(char *mask, struct mlx5dr_match_misc2 *spec)
spec              915 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->outer_first_mpls_label =
spec              917 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->outer_first_mpls_exp =
spec              919 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->outer_first_mpls_s_bos =
spec              921 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->outer_first_mpls_ttl =
spec              923 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->inner_first_mpls_label =
spec              925 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->inner_first_mpls_exp =
spec              927 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->inner_first_mpls_s_bos =
spec              929 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->inner_first_mpls_ttl =
spec              931 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->outer_first_mpls_over_gre_label =
spec              933 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->outer_first_mpls_over_gre_exp =
spec              935 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->outer_first_mpls_over_gre_s_bos =
spec              937 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->outer_first_mpls_over_gre_ttl =
spec              939 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->outer_first_mpls_over_udp_label =
spec              941 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->outer_first_mpls_over_udp_exp =
spec              943 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->outer_first_mpls_over_udp_s_bos =
spec              945 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->outer_first_mpls_over_udp_ttl =
spec              947 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->metadata_reg_c_7 = MLX5_GET(fte_match_set_misc2, mask, metadata_reg_c_7);
spec              948 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->metadata_reg_c_6 = MLX5_GET(fte_match_set_misc2, mask, metadata_reg_c_6);
spec              949 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->metadata_reg_c_5 = MLX5_GET(fte_match_set_misc2, mask, metadata_reg_c_5);
spec              950 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->metadata_reg_c_4 = MLX5_GET(fte_match_set_misc2, mask, metadata_reg_c_4);
spec              951 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->metadata_reg_c_3 = MLX5_GET(fte_match_set_misc2, mask, metadata_reg_c_3);
spec              952 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->metadata_reg_c_2 = MLX5_GET(fte_match_set_misc2, mask, metadata_reg_c_2);
spec              953 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->metadata_reg_c_1 = MLX5_GET(fte_match_set_misc2, mask, metadata_reg_c_1);
spec              954 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->metadata_reg_c_0 = MLX5_GET(fte_match_set_misc2, mask, metadata_reg_c_0);
spec              955 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->metadata_reg_a = MLX5_GET(fte_match_set_misc2, mask, metadata_reg_a);
spec              956 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->metadata_reg_b = MLX5_GET(fte_match_set_misc2, mask, metadata_reg_b);
spec              959 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c static void dr_ste_copy_mask_misc3(char *mask, struct mlx5dr_match_misc3 *spec)
spec              961 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->inner_tcp_seq_num = MLX5_GET(fte_match_set_misc3, mask, inner_tcp_seq_num);
spec              962 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->outer_tcp_seq_num = MLX5_GET(fte_match_set_misc3, mask, outer_tcp_seq_num);
spec              963 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->inner_tcp_ack_num = MLX5_GET(fte_match_set_misc3, mask, inner_tcp_ack_num);
spec              964 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->outer_tcp_ack_num = MLX5_GET(fte_match_set_misc3, mask, outer_tcp_ack_num);
spec              965 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->outer_vxlan_gpe_vni =
spec              967 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->outer_vxlan_gpe_next_protocol =
spec              969 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->outer_vxlan_gpe_flags =
spec              971 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->icmpv4_header_data = MLX5_GET(fte_match_set_misc3, mask, icmp_header_data);
spec              972 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->icmpv6_header_data =
spec              974 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->icmpv4_type = MLX5_GET(fte_match_set_misc3, mask, icmp_type);
spec              975 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->icmpv4_code = MLX5_GET(fte_match_set_misc3, mask, icmp_code);
spec              976 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->icmpv6_type = MLX5_GET(fte_match_set_misc3, mask, icmpv6_type);
spec              977 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	spec->icmpv6_code = MLX5_GET(fte_match_set_misc3, mask, icmpv6_code);
spec             1057 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	struct mlx5dr_match_spec *spec = sb->inner ? &value->inner : &value->outer;
spec             1061 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l2_src_dst, tag, dmac_47_16, spec, dmac_47_16);
spec             1062 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l2_src_dst, tag, dmac_15_0, spec, dmac_15_0);
spec             1064 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	if (spec->smac_47_16 || spec->smac_15_0) {
spec             1066 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 			 spec->smac_47_16 >> 16);
spec             1068 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 			 spec->smac_47_16 << 16 | spec->smac_15_0);
spec             1069 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 		spec->smac_47_16 = 0;
spec             1070 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 		spec->smac_15_0 = 0;
spec             1073 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	if (spec->ip_version) {
spec             1074 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 		if (spec->ip_version == IP_VERSION_IPV4) {
spec             1076 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 			spec->ip_version = 0;
spec             1077 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 		} else if (spec->ip_version == IP_VERSION_IPV6) {
spec             1079 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 			spec->ip_version = 0;
spec             1086 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l2_src_dst, tag, first_vlan_id, spec, first_vid);
spec             1087 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l2_src_dst, tag, first_cfi, spec, first_cfi);
spec             1088 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l2_src_dst, tag, first_priority, spec, first_prio);
spec             1090 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	if (spec->cvlan_tag) {
spec             1092 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 		spec->cvlan_tag = 0;
spec             1093 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	} else if (spec->svlan_tag) {
spec             1095 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 		spec->svlan_tag = 0;
spec             1135 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	struct mlx5dr_match_spec *spec = sb->inner ? &value->inner : &value->outer;
spec             1138 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l3_ipv6_dst, tag, dst_ip_127_96, spec, dst_ip_127_96);
spec             1139 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l3_ipv6_dst, tag, dst_ip_95_64, spec, dst_ip_95_64);
spec             1140 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l3_ipv6_dst, tag, dst_ip_63_32, spec, dst_ip_63_32);
spec             1141 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l3_ipv6_dst, tag, dst_ip_31_0, spec, dst_ip_31_0);
spec             1174 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	struct mlx5dr_match_spec *spec = sb->inner ? &value->inner : &value->outer;
spec             1178 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l3_ipv6_src, tag, src_ip_127_96, spec, src_ip_127_96);
spec             1179 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l3_ipv6_src, tag, src_ip_95_64, spec, src_ip_95_64);
spec             1180 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l3_ipv6_src, tag, src_ip_63_32, spec, src_ip_63_32);
spec             1181 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l3_ipv6_src, tag, src_ip_31_0, spec, src_ip_31_0);
spec             1237 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	struct mlx5dr_match_spec *spec = sb->inner ? &value->inner : &value->outer;
spec             1240 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l3_ipv4_5_tuple, tag, destination_address, spec, dst_ip_31_0);
spec             1241 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l3_ipv4_5_tuple, tag, source_address, spec, src_ip_31_0);
spec             1242 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l3_ipv4_5_tuple, tag, destination_port, spec, tcp_dport);
spec             1243 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l3_ipv4_5_tuple, tag, destination_port, spec, udp_dport);
spec             1244 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l3_ipv4_5_tuple, tag, source_port, spec, tcp_sport);
spec             1245 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l3_ipv4_5_tuple, tag, source_port, spec, udp_sport);
spec             1246 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l3_ipv4_5_tuple, tag, protocol, spec, ip_protocol);
spec             1247 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l3_ipv4_5_tuple, tag, fragmented, spec, frag);
spec             1248 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l3_ipv4_5_tuple, tag, dscp, spec, ip_dscp);
spec             1249 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l3_ipv4_5_tuple, tag, ecn, spec, ip_ecn);
spec             1251 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	if (spec->tcp_flags) {
spec             1252 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 		DR_STE_SET_TCP_FLAGS(eth_l3_ipv4_5_tuple, tag, spec);
spec             1253 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 		spec->tcp_flags = 0;
spec             1327 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	struct mlx5dr_match_spec *spec = inner ? &value->inner : &value->outer;
spec             1331 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l2_src, tag, first_vlan_id, spec, first_vid);
spec             1332 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l2_src, tag, first_cfi, spec, first_cfi);
spec             1333 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l2_src, tag, first_priority, spec, first_prio);
spec             1334 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l2_src, tag, ip_fragmented, spec, frag);
spec             1335 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l2_src, tag, l3_ethertype, spec, ethertype);
spec             1337 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	if (spec->ip_version) {
spec             1338 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 		if (spec->ip_version == IP_VERSION_IPV4) {
spec             1340 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 			spec->ip_version = 0;
spec             1341 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 		} else if (spec->ip_version == IP_VERSION_IPV6) {
spec             1343 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 			spec->ip_version = 0;
spec             1350 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	if (spec->cvlan_tag) {
spec             1352 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 		spec->cvlan_tag = 0;
spec             1353 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	} else if (spec->svlan_tag) {
spec             1355 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 		spec->svlan_tag = 0;
spec             1402 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	struct mlx5dr_match_spec *spec = sb->inner ? &value->inner : &value->outer;
spec             1405 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l2_src, tag, smac_47_16, spec, smac_47_16);
spec             1406 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l2_src, tag, smac_15_0, spec, smac_15_0);
spec             1439 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	struct mlx5dr_match_spec *spec = sb->inner ? &value->inner : &value->outer;
spec             1442 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l2_dst, tag, dmac_47_16, spec, dmac_47_16);
spec             1443 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l2_dst, tag, dmac_15_0, spec, dmac_15_0);
spec             1493 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	struct mlx5dr_match_spec *spec = sb->inner ? &value->inner : &value->outer;
spec             1498 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l2_tnl, tag, dmac_47_16, spec, dmac_47_16);
spec             1499 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l2_tnl, tag, dmac_15_0, spec, dmac_15_0);
spec             1500 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l2_tnl, tag, first_vlan_id, spec, first_vid);
spec             1501 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l2_tnl, tag, first_cfi, spec, first_cfi);
spec             1502 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l2_tnl, tag, ip_fragmented, spec, frag);
spec             1503 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l2_tnl, tag, first_priority, spec, first_prio);
spec             1504 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l2_tnl, tag, l3_ethertype, spec, ethertype);
spec             1512 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	if (spec->cvlan_tag) {
spec             1514 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 		spec->cvlan_tag = 0;
spec             1515 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	} else if (spec->svlan_tag) {
spec             1517 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 		spec->svlan_tag = 0;
spec             1520 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	if (spec->ip_version) {
spec             1521 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 		if (spec->ip_version == IP_VERSION_IPV4) {
spec             1523 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 			spec->ip_version = 0;
spec             1524 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 		} else if (spec->ip_version == IP_VERSION_IPV6) {
spec             1526 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 			spec->ip_version = 0;
spec             1560 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	struct mlx5dr_match_spec *spec = sb->inner ? &value->inner : &value->outer;
spec             1563 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l3_ipv4_misc, tag, time_to_live, spec, ttl_hoplimit);
spec             1606 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	struct mlx5dr_match_spec *spec = sb->inner ? &value->inner : &value->outer;
spec             1610 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l4, tag, dst_port, spec, tcp_dport);
spec             1611 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l4, tag, src_port, spec, tcp_sport);
spec             1612 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l4, tag, dst_port, spec, udp_dport);
spec             1613 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l4, tag, src_port, spec, udp_sport);
spec             1614 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l4, tag, protocol, spec, ip_protocol);
spec             1615 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l4, tag, fragmented, spec, frag);
spec             1616 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l4, tag, dscp, spec, ip_dscp);
spec             1617 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l4, tag, ecn, spec, ip_ecn);
spec             1618 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	DR_STE_SET_TAG(eth_l4, tag, ipv6_hop_limit, spec, ttl_hoplimit);
spec             1620 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	if (spec->tcp_flags) {
spec             1621 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 		DR_STE_SET_TCP_FLAGS(eth_l4, tag, spec);
spec             1622 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 		spec->tcp_flags = 0;
spec              189 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h 	int (*ste_build_tag_func)(struct mlx5dr_match_param *spec,
spec              178 drivers/net/ethernet/netronome/nfp/nfp_main.h s64 nfp_net_dump_calculate_size(struct nfp_pf *pf, struct nfp_dumpspec *spec,
spec              180 drivers/net/ethernet/netronome/nfp/nfp_main.h int nfp_net_dump_populate_buffer(struct nfp_pf *pf, struct nfp_dumpspec *spec,
spec               95 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c 	char spec[0];
spec              184 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c static int nfp_dump_error_tlv_size(struct nfp_dump_tl *spec)
spec              186 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c 	return ALIGN8(sizeof(struct nfp_dump_error) + sizeof(*spec) +
spec              187 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c 		      be32_to_cpu(spec->length));
spec              197 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c static int nfp_calc_hwinfo_field_sz(struct nfp_pf *pf, struct nfp_dump_tl *spec)
spec              202 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c 	tl_len = be32_to_cpu(spec->length);
spec              203 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c 	key_len = strnlen(spec->data, tl_len);
spec              205 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c 		return nfp_dump_error_tlv_size(spec);
spec              207 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c 	value = nfp_hwinfo_lookup(pf->hwinfo, spec->data);
spec              209 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c 		return nfp_dump_error_tlv_size(spec);
spec              229 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c nfp_calc_rtsym_dump_sz(struct nfp_pf *pf, struct nfp_dump_tl *spec)
spec              236 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c 	spec_rtsym = (struct nfp_dumpspec_rtsym *)spec;
spec              237 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c 	tl_len = be32_to_cpu(spec->length);
spec              240 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c 		return nfp_dump_error_tlv_size(spec);
spec              244 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c 		return nfp_dump_error_tlv_size(spec);
spec              312 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c s64 nfp_net_dump_calculate_size(struct nfp_pf *pf, struct nfp_dumpspec *spec,
spec              321 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c 	err = nfp_traverse_tlvs(pf, spec->data, spec->size, &lev_sz,
spec              349 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c nfp_dump_error_tlv(struct nfp_dump_tl *spec, int error,
spec              356 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c 	total_spec_size = sizeof(*spec) + be32_to_cpu(spec->length);
spec              364 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c 	memcpy(dump_header->spec, spec, total_spec_size);
spec              390 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c nfp_dump_hwinfo(struct nfp_pf *pf, struct nfp_dump_tl *spec,
spec              411 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c static int nfp_dump_hwinfo_field(struct nfp_pf *pf, struct nfp_dump_tl *spec,
spec              420 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c 	tl_len = be32_to_cpu(spec->length);
spec              421 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c 	key_len = strnlen(spec->data, tl_len);
spec              423 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c 		return nfp_dump_error_tlv(spec, -EINVAL, dump);
spec              425 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c 	key = spec->data;
spec              428 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c 		return nfp_dump_error_tlv(spec, -ENOENT, dump);
spec              597 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c nfp_dump_single_rtsym(struct nfp_pf *pf, struct nfp_dumpspec_rtsym *spec,
spec              610 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c 	tl_len = be32_to_cpu(spec->tl.length);
spec              611 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c 	key_len = strnlen(spec->rtsym, tl_len);
spec              613 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c 		return nfp_dump_error_tlv(&spec->tl, -EINVAL, dump);
spec              615 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c 	sym = nfp_rtsym_lookup(rtbl, spec->rtsym);
spec              617 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c 		return nfp_dump_error_tlv(&spec->tl, -ENOENT, dump);
spec              625 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c 	err = nfp_add_tlv(be32_to_cpu(spec->tl.type), total_size, dump);
spec              631 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c 	memcpy(dump_header->rtsym, spec->rtsym, key_len + 1);
spec              737 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c int nfp_net_dump_populate_buffer(struct nfp_pf *pf, struct nfp_dumpspec *spec,
spec              752 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c 	err = nfp_traverse_tlvs(pf, spec->data, spec->size, &dump,
spec               98 drivers/net/ethernet/sfc/ef10.c 		unsigned long spec;	/* pointer to spec plus flag bits */
spec             4004 drivers/net/ethernet/sfc/ef10.c static bool efx_ef10_filter_is_exclusive(const struct efx_filter_spec *spec)
spec             4006 drivers/net/ethernet/sfc/ef10.c 	if (spec->match_flags & EFX_FILTER_MATCH_LOC_MAC &&
spec             4007 drivers/net/ethernet/sfc/ef10.c 	    !is_multicast_ether_addr(spec->loc_mac))
spec             4010 drivers/net/ethernet/sfc/ef10.c 	if ((spec->match_flags &
spec             4013 drivers/net/ethernet/sfc/ef10.c 		if (spec->ether_type == htons(ETH_P_IP) &&
spec             4014 drivers/net/ethernet/sfc/ef10.c 		    !ipv4_is_multicast(spec->loc_host[0]))
spec             4016 drivers/net/ethernet/sfc/ef10.c 		if (spec->ether_type == htons(ETH_P_IPV6) &&
spec             4017 drivers/net/ethernet/sfc/ef10.c 		    ((const u8 *)spec->loc_host)[0] != 0xff)
spec             4028 drivers/net/ethernet/sfc/ef10.c 	return (struct efx_filter_spec *)(table->entry[filter_idx].spec &
spec             4036 drivers/net/ethernet/sfc/ef10.c 	return table->entry[filter_idx].spec & EFX_EF10_FILTER_FLAGS;
spec             4042 drivers/net/ethernet/sfc/ef10.c 			  const struct efx_filter_spec *spec,
spec             4045 drivers/net/ethernet/sfc/ef10.c 	table->entry[filter_idx].spec =	(unsigned long)spec | flags;
spec             4050 drivers/net/ethernet/sfc/ef10.c 					   const struct efx_filter_spec *spec,
spec             4053 drivers/net/ethernet/sfc/ef10.c 	enum efx_encap_type encap_type = efx_filter_get_encap_type(spec);
spec             4057 drivers/net/ethernet/sfc/ef10.c 		       efx_ef10_filter_is_exclusive(spec) ?
spec             4077 drivers/net/ethernet/sfc/ef10.c 	if (spec->match_flags & EFX_FILTER_MATCH_ ## gen_flag) {     \
spec             4078 drivers/net/ethernet/sfc/ef10.c 		COPY_VALUE(spec->gen_field, mcdi_field);	     \
spec             4125 drivers/net/ethernet/sfc/ef10.c 	if (spec->match_flags & EFX_FILTER_MATCH_LOC_MAC_IG)
spec             4127 drivers/net/ethernet/sfc/ef10.c 			is_multicast_ether_addr(spec->loc_mac) ?
spec             4147 drivers/net/ethernet/sfc/ef10.c 				      const struct efx_filter_spec *spec,
spec             4153 drivers/net/ethernet/sfc/ef10.c 	u32 flags = spec->flags;
spec             4173 drivers/net/ethernet/sfc/ef10.c 		efx_ef10_filter_push_prep_set_match_fields(efx, spec, inbuf);
spec             4178 drivers/net/ethernet/sfc/ef10.c 		       spec->dmaq_id == EFX_FILTER_RX_DMAQ_ID_DROP ?
spec             4185 drivers/net/ethernet/sfc/ef10.c 		       spec->dmaq_id == EFX_FILTER_RX_DMAQ_ID_DROP ?
spec             4186 drivers/net/ethernet/sfc/ef10.c 		       0 : spec->dmaq_id);
spec             4196 drivers/net/ethernet/sfc/ef10.c 				const struct efx_filter_spec *spec, u64 *handle,
spec             4203 drivers/net/ethernet/sfc/ef10.c 	efx_ef10_filter_push_prep(efx, spec, inbuf, *handle, ctx, replacing);
spec             4213 drivers/net/ethernet/sfc/ef10.c static u32 efx_ef10_filter_mcdi_flags_from_spec(const struct efx_filter_spec *spec)
spec             4215 drivers/net/ethernet/sfc/ef10.c 	enum efx_encap_type encap_type = efx_filter_get_encap_type(spec);
spec             4216 drivers/net/ethernet/sfc/ef10.c 	unsigned int match_flags = spec->match_flags;
spec             4262 drivers/net/ethernet/sfc/ef10.c 			is_multicast_ether_addr(spec->loc_mac) ?
spec             4274 drivers/net/ethernet/sfc/ef10.c 			       const struct efx_filter_spec *spec)
spec             4276 drivers/net/ethernet/sfc/ef10.c 	u32 mcdi_flags = efx_ef10_filter_mcdi_flags_from_spec(spec);
spec             4289 drivers/net/ethernet/sfc/ef10.c 					 struct efx_filter_spec *spec,
spec             4312 drivers/net/ethernet/sfc/ef10.c 	if ((spec->flags & (EFX_FILTER_FLAG_RX | EFX_FILTER_FLAG_TX)) !=
spec             4318 drivers/net/ethernet/sfc/ef10.c 	rc = efx_ef10_filter_pri(table, spec);
spec             4323 drivers/net/ethernet/sfc/ef10.c 	hash = efx_filter_spec_hash(spec);
spec             4324 drivers/net/ethernet/sfc/ef10.c 	is_mc_recip = efx_filter_is_mc_recipient(spec);
spec             4328 drivers/net/ethernet/sfc/ef10.c 	if (spec->flags & EFX_FILTER_FLAG_RX_RSS) {
spec             4331 drivers/net/ethernet/sfc/ef10.c 		if (spec->rss_context)
spec             4332 drivers/net/ethernet/sfc/ef10.c 			ctx = efx_find_rss_context_entry(efx, spec->rss_context);
spec             4355 drivers/net/ethernet/sfc/ef10.c 		} else if (efx_filter_spec_equal(spec, saved_spec)) {
spec             4356 drivers/net/ethernet/sfc/ef10.c 			if (spec->priority < saved_spec->priority &&
spec             4357 drivers/net/ethernet/sfc/ef10.c 			    spec->priority != EFX_FILTER_PRI_AUTO) {
spec             4363 drivers/net/ethernet/sfc/ef10.c 				if (spec->priority ==
spec             4371 drivers/net/ethernet/sfc/ef10.c 			} else if (spec->priority >
spec             4373 drivers/net/ethernet/sfc/ef10.c 				   (spec->priority ==
spec             4395 drivers/net/ethernet/sfc/ef10.c 		if (spec->priority == EFX_FILTER_PRI_AUTO &&
spec             4400 drivers/net/ethernet/sfc/ef10.c 			table->entry[ins_index].spec &=
spec             4408 drivers/net/ethernet/sfc/ef10.c 		saved_spec = kmalloc(sizeof(*spec), GFP_ATOMIC);
spec             4413 drivers/net/ethernet/sfc/ef10.c 		*saved_spec = *spec;
spec             4419 drivers/net/ethernet/sfc/ef10.c 	rc = efx_ef10_filter_push(efx, spec, &table->entry[ins_index].handle,
spec             4435 drivers/net/ethernet/sfc/ef10.c 			saved_spec->priority = spec->priority;
spec             4437 drivers/net/ethernet/sfc/ef10.c 			saved_spec->flags |= spec->flags;
spec             4438 drivers/net/ethernet/sfc/ef10.c 			saved_spec->rss_context = spec->rss_context;
spec             4439 drivers/net/ethernet/sfc/ef10.c 			saved_spec->dmaq_id = spec->dmaq_id;
spec             4502 drivers/net/ethernet/sfc/ef10.c 				  struct efx_filter_spec *spec,
spec             4508 drivers/net/ethernet/sfc/ef10.c 	ret = efx_ef10_filter_insert_locked(efx, spec, replace_equal);
spec             4535 drivers/net/ethernet/sfc/ef10.c 	struct efx_filter_spec *spec;
spec             4539 drivers/net/ethernet/sfc/ef10.c 	spec = efx_ef10_filter_entry_spec(table, filter_idx);
spec             4540 drivers/net/ethernet/sfc/ef10.c 	if (!spec ||
spec             4542 drivers/net/ethernet/sfc/ef10.c 	     efx_ef10_filter_pri(table, spec) !=
spec             4546 drivers/net/ethernet/sfc/ef10.c 	if (spec->flags & EFX_FILTER_FLAG_RX_OVER_AUTO &&
spec             4549 drivers/net/ethernet/sfc/ef10.c 		spec->flags &= ~EFX_FILTER_FLAG_RX_OVER_AUTO;
spec             4550 drivers/net/ethernet/sfc/ef10.c 		table->entry[filter_idx].spec &= ~EFX_EF10_FILTER_FLAG_AUTO_OLD;
spec             4554 drivers/net/ethernet/sfc/ef10.c 	if (!(priority_mask & (1U << spec->priority)))
spec             4557 drivers/net/ethernet/sfc/ef10.c 	if (spec->flags & EFX_FILTER_FLAG_RX_OVER_AUTO) {
spec             4560 drivers/net/ethernet/sfc/ef10.c 		struct efx_filter_spec new_spec = *spec;
spec             4574 drivers/net/ethernet/sfc/ef10.c 			*spec = new_spec;
spec             4579 drivers/net/ethernet/sfc/ef10.c 			       efx_ef10_filter_is_exclusive(spec) ?
spec             4589 drivers/net/ethernet/sfc/ef10.c 			kfree(spec);
spec             4636 drivers/net/ethernet/sfc/ef10.c 				    u32 filter_id, struct efx_filter_spec *spec)
spec             4650 drivers/net/ethernet/sfc/ef10.c 		*spec = *saved_spec;
spec             4698 drivers/net/ethernet/sfc/ef10.c 		if (table->entry[filter_idx].spec &&
spec             4720 drivers/net/ethernet/sfc/ef10.c 	struct efx_filter_spec *spec;
spec             4729 drivers/net/ethernet/sfc/ef10.c 		spec = efx_ef10_filter_entry_spec(table, filter_idx);
spec             4730 drivers/net/ethernet/sfc/ef10.c 		if (spec && spec->priority == priority) {
spec             4737 drivers/net/ethernet/sfc/ef10.c 					efx_ef10_filter_pri(table, spec),
spec             4751 drivers/net/ethernet/sfc/ef10.c 	struct efx_filter_spec *spec, saved_spec;
spec             4760 drivers/net/ethernet/sfc/ef10.c 	spec = efx_ef10_filter_entry_spec(table, filter_idx);
spec             4762 drivers/net/ethernet/sfc/ef10.c 	if (!spec || spec->priority != EFX_FILTER_PRI_HINT)
spec             4770 drivers/net/ethernet/sfc/ef10.c 		rule = efx_rps_hash_find(efx, spec);
spec             4783 drivers/net/ethernet/sfc/ef10.c 	if (!rps_may_expire_flow(efx->net_dev, spec->dmaq_id, flow_id, arfs_id))
spec             4788 drivers/net/ethernet/sfc/ef10.c 	saved_spec = *spec; /* remove operation will kfree spec */
spec             4797 drivers/net/ethernet/sfc/ef10.c 		ret = efx_ef10_filter_remove_internal(efx, 1U << spec->priority,
spec             5036 drivers/net/ethernet/sfc/ef10.c 	struct efx_filter_spec *spec;
spec             5055 drivers/net/ethernet/sfc/ef10.c 		spec = efx_ef10_filter_entry_spec(table, filter_idx);
spec             5056 drivers/net/ethernet/sfc/ef10.c 		if (!spec)
spec             5059 drivers/net/ethernet/sfc/ef10.c 		mcdi_flags = efx_ef10_filter_mcdi_flags_from_spec(spec);
spec             5068 drivers/net/ethernet/sfc/ef10.c 		if (spec->rss_context)
spec             5069 drivers/net/ethernet/sfc/ef10.c 			ctx = efx_find_rss_context_entry(efx, spec->rss_context);
spec             5072 drivers/net/ethernet/sfc/ef10.c 		if (spec->flags & EFX_FILTER_FLAG_RX_RSS) {
spec             5076 drivers/net/ethernet/sfc/ef10.c 					   spec->rss_context);
spec             5083 drivers/net/ethernet/sfc/ef10.c 					   spec->rss_context);
spec             5089 drivers/net/ethernet/sfc/ef10.c 		rc = efx_ef10_filter_push(efx, spec,
spec             5103 drivers/net/ethernet/sfc/ef10.c 			kfree(spec);
spec             5130 drivers/net/ethernet/sfc/ef10.c 	struct efx_filter_spec *spec;
spec             5149 drivers/net/ethernet/sfc/ef10.c 		spec = efx_ef10_filter_entry_spec(table, filter_idx);
spec             5150 drivers/net/ethernet/sfc/ef10.c 		if (!spec)
spec             5154 drivers/net/ethernet/sfc/ef10.c 			       efx_ef10_filter_is_exclusive(spec) ?
spec             5165 drivers/net/ethernet/sfc/ef10.c 		kfree(spec);
spec             5181 drivers/net/ethernet/sfc/ef10.c 		if (!table->entry[filter_idx].spec)
spec             5185 drivers/net/ethernet/sfc/ef10.c 		table->entry[filter_idx].spec |= EFX_EF10_FILTER_FLAG_AUTO_OLD;
spec             5273 drivers/net/ethernet/sfc/ef10.c 	struct efx_filter_spec spec;
spec             5295 drivers/net/ethernet/sfc/ef10.c 		efx_filter_init_rx(&spec, EFX_FILTER_PRI_AUTO, filter_flags, 0);
spec             5296 drivers/net/ethernet/sfc/ef10.c 		efx_filter_set_eth_local(&spec, vlan->vid, addr_list[i].addr);
spec             5297 drivers/net/ethernet/sfc/ef10.c 		rc = efx_ef10_filter_insert_locked(efx, &spec, true);
spec             5323 drivers/net/ethernet/sfc/ef10.c 		efx_filter_init_rx(&spec, EFX_FILTER_PRI_AUTO, filter_flags, 0);
spec             5325 drivers/net/ethernet/sfc/ef10.c 		efx_filter_set_eth_local(&spec, vlan->vid, baddr);
spec             5326 drivers/net/ethernet/sfc/ef10.c 		rc = efx_ef10_filter_insert_locked(efx, &spec, true);
spec             5354 drivers/net/ethernet/sfc/ef10.c 	struct efx_filter_spec spec;
spec             5361 drivers/net/ethernet/sfc/ef10.c 	efx_filter_init_rx(&spec, EFX_FILTER_PRI_AUTO, filter_flags, 0);
spec             5364 drivers/net/ethernet/sfc/ef10.c 		efx_filter_set_mc_def(&spec);
spec             5366 drivers/net/ethernet/sfc/ef10.c 		efx_filter_set_uc_def(&spec);
spec             5371 drivers/net/ethernet/sfc/ef10.c 			efx_filter_set_encap_type(&spec, encap_type);
spec             5380 drivers/net/ethernet/sfc/ef10.c 		efx_filter_set_eth_local(&spec, vlan->vid, NULL);
spec             5382 drivers/net/ethernet/sfc/ef10.c 	rc = efx_ef10_filter_insert_locked(efx, &spec, true);
spec             5438 drivers/net/ethernet/sfc/ef10.c 			efx_filter_init_rx(&spec, EFX_FILTER_PRI_AUTO,
spec             5441 drivers/net/ethernet/sfc/ef10.c 			efx_filter_set_eth_local(&spec, vlan->vid, baddr);
spec             5442 drivers/net/ethernet/sfc/ef10.c 			rc = efx_ef10_filter_insert_locked(efx, &spec, true);
spec             5505 drivers/net/ethernet/sfc/ef10.c 		if (READ_ONCE(table->entry[i].spec) &
spec             3126 drivers/net/ethernet/sfc/efx.c u32 efx_filter_spec_hash(const struct efx_filter_spec *spec)
spec             3129 drivers/net/ethernet/sfc/efx.c 	return jhash2((const u32 *)&spec->outer_vid,
spec             3164 drivers/net/ethernet/sfc/efx.c 				       const struct efx_filter_spec *spec)
spec             3166 drivers/net/ethernet/sfc/efx.c 	u32 hash = efx_filter_spec_hash(spec);
spec             3175 drivers/net/ethernet/sfc/efx.c 					const struct efx_filter_spec *spec)
spec             3181 drivers/net/ethernet/sfc/efx.c 	head = efx_rps_hash_bucket(efx, spec);
spec             3186 drivers/net/ethernet/sfc/efx.c 		if (efx_filter_spec_equal(spec, &rule->spec))
spec             3193 drivers/net/ethernet/sfc/efx.c 				       const struct efx_filter_spec *spec,
spec             3200 drivers/net/ethernet/sfc/efx.c 	head = efx_rps_hash_bucket(efx, spec);
spec             3205 drivers/net/ethernet/sfc/efx.c 		if (efx_filter_spec_equal(spec, &rule->spec)) {
spec             3213 drivers/net/ethernet/sfc/efx.c 		memcpy(&rule->spec, spec, sizeof(rule->spec));
spec             3219 drivers/net/ethernet/sfc/efx.c void efx_rps_hash_del(struct efx_nic *efx, const struct efx_filter_spec *spec)
spec             3225 drivers/net/ethernet/sfc/efx.c 	head = efx_rps_hash_bucket(efx, spec);
spec             3230 drivers/net/ethernet/sfc/efx.c 		if (efx_filter_spec_equal(spec, &rule->spec)) {
spec              111 drivers/net/ethernet/sfc/efx.h 					   struct efx_filter_spec *spec,
spec              114 drivers/net/ethernet/sfc/efx.h 	return efx->type->filter_insert(efx, spec, replace_equal);
spec              146 drivers/net/ethernet/sfc/efx.h 			   u32 filter_id, struct efx_filter_spec *spec)
spec              148 drivers/net/ethernet/sfc/efx.h 	return efx->type->filter_get_safe(efx, priority, filter_id, spec);
spec              184 drivers/net/ethernet/sfc/efx.h bool efx_filter_is_mc_recipient(const struct efx_filter_spec *spec);
spec              188 drivers/net/ethernet/sfc/efx.h u32 efx_filter_spec_hash(const struct efx_filter_spec *spec);
spec              195 drivers/net/ethernet/sfc/efx.h 					const struct efx_filter_spec *spec);
spec              201 drivers/net/ethernet/sfc/efx.h 				       const struct efx_filter_spec *spec,
spec              204 drivers/net/ethernet/sfc/efx.h void efx_rps_hash_del(struct efx_nic *efx, const struct efx_filter_spec *spec);
spec              821 drivers/net/ethernet/sfc/ethtool.c 	struct efx_filter_spec spec;
spec              825 drivers/net/ethernet/sfc/ethtool.c 					rule->location, &spec);
spec              829 drivers/net/ethernet/sfc/ethtool.c 	if (spec.dmaq_id == EFX_FILTER_RX_DMAQ_ID_DROP)
spec              832 drivers/net/ethernet/sfc/ethtool.c 		rule->ring_cookie = spec.dmaq_id;
spec              834 drivers/net/ethernet/sfc/ethtool.c 	if ((spec.match_flags & EFX_FILTER_MATCH_ETHER_TYPE) &&
spec              835 drivers/net/ethernet/sfc/ethtool.c 	    spec.ether_type == htons(ETH_P_IP) &&
spec              836 drivers/net/ethernet/sfc/ethtool.c 	    (spec.match_flags & EFX_FILTER_MATCH_IP_PROTO) &&
spec              837 drivers/net/ethernet/sfc/ethtool.c 	    (spec.ip_proto == IPPROTO_TCP || spec.ip_proto == IPPROTO_UDP) &&
spec              838 drivers/net/ethernet/sfc/ethtool.c 	    !(spec.match_flags &
spec              843 drivers/net/ethernet/sfc/ethtool.c 		rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ?
spec              845 drivers/net/ethernet/sfc/ethtool.c 		if (spec.match_flags & EFX_FILTER_MATCH_LOC_HOST) {
spec              846 drivers/net/ethernet/sfc/ethtool.c 			ip_entry->ip4dst = spec.loc_host[0];
spec              849 drivers/net/ethernet/sfc/ethtool.c 		if (spec.match_flags & EFX_FILTER_MATCH_REM_HOST) {
spec              850 drivers/net/ethernet/sfc/ethtool.c 			ip_entry->ip4src = spec.rem_host[0];
spec              853 drivers/net/ethernet/sfc/ethtool.c 		if (spec.match_flags & EFX_FILTER_MATCH_LOC_PORT) {
spec              854 drivers/net/ethernet/sfc/ethtool.c 			ip_entry->pdst = spec.loc_port;
spec              857 drivers/net/ethernet/sfc/ethtool.c 		if (spec.match_flags & EFX_FILTER_MATCH_REM_PORT) {
spec              858 drivers/net/ethernet/sfc/ethtool.c 			ip_entry->psrc = spec.rem_port;
spec              861 drivers/net/ethernet/sfc/ethtool.c 	} else if ((spec.match_flags & EFX_FILTER_MATCH_ETHER_TYPE) &&
spec              862 drivers/net/ethernet/sfc/ethtool.c 	    spec.ether_type == htons(ETH_P_IPV6) &&
spec              863 drivers/net/ethernet/sfc/ethtool.c 	    (spec.match_flags & EFX_FILTER_MATCH_IP_PROTO) &&
spec              864 drivers/net/ethernet/sfc/ethtool.c 	    (spec.ip_proto == IPPROTO_TCP || spec.ip_proto == IPPROTO_UDP) &&
spec              865 drivers/net/ethernet/sfc/ethtool.c 	    !(spec.match_flags &
spec              870 drivers/net/ethernet/sfc/ethtool.c 		rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ?
spec              872 drivers/net/ethernet/sfc/ethtool.c 		if (spec.match_flags & EFX_FILTER_MATCH_LOC_HOST) {
spec              873 drivers/net/ethernet/sfc/ethtool.c 			memcpy(ip6_entry->ip6dst, spec.loc_host,
spec              877 drivers/net/ethernet/sfc/ethtool.c 		if (spec.match_flags & EFX_FILTER_MATCH_REM_HOST) {
spec              878 drivers/net/ethernet/sfc/ethtool.c 			memcpy(ip6_entry->ip6src, spec.rem_host,
spec              882 drivers/net/ethernet/sfc/ethtool.c 		if (spec.match_flags & EFX_FILTER_MATCH_LOC_PORT) {
spec              883 drivers/net/ethernet/sfc/ethtool.c 			ip6_entry->pdst = spec.loc_port;
spec              886 drivers/net/ethernet/sfc/ethtool.c 		if (spec.match_flags & EFX_FILTER_MATCH_REM_PORT) {
spec              887 drivers/net/ethernet/sfc/ethtool.c 			ip6_entry->psrc = spec.rem_port;
spec              890 drivers/net/ethernet/sfc/ethtool.c 	} else if (!(spec.match_flags &
spec              895 drivers/net/ethernet/sfc/ethtool.c 		if (spec.match_flags &
spec              897 drivers/net/ethernet/sfc/ethtool.c 			ether_addr_copy(mac_entry->h_dest, spec.loc_mac);
spec              898 drivers/net/ethernet/sfc/ethtool.c 			if (spec.match_flags & EFX_FILTER_MATCH_LOC_MAC)
spec              904 drivers/net/ethernet/sfc/ethtool.c 		if (spec.match_flags & EFX_FILTER_MATCH_REM_MAC) {
spec              905 drivers/net/ethernet/sfc/ethtool.c 			ether_addr_copy(mac_entry->h_source, spec.rem_mac);
spec              908 drivers/net/ethernet/sfc/ethtool.c 		if (spec.match_flags & EFX_FILTER_MATCH_ETHER_TYPE) {
spec              909 drivers/net/ethernet/sfc/ethtool.c 			mac_entry->h_proto = spec.ether_type;
spec              912 drivers/net/ethernet/sfc/ethtool.c 	} else if (spec.match_flags & EFX_FILTER_MATCH_ETHER_TYPE &&
spec              913 drivers/net/ethernet/sfc/ethtool.c 		   spec.ether_type == htons(ETH_P_IP) &&
spec              914 drivers/net/ethernet/sfc/ethtool.c 		   !(spec.match_flags &
spec              920 drivers/net/ethernet/sfc/ethtool.c 		if (spec.match_flags & EFX_FILTER_MATCH_IP_PROTO) {
spec              922 drivers/net/ethernet/sfc/ethtool.c 			uip_entry->proto = spec.ip_proto;
spec              924 drivers/net/ethernet/sfc/ethtool.c 		if (spec.match_flags & EFX_FILTER_MATCH_LOC_HOST) {
spec              925 drivers/net/ethernet/sfc/ethtool.c 			uip_entry->ip4dst = spec.loc_host[0];
spec              928 drivers/net/ethernet/sfc/ethtool.c 		if (spec.match_flags & EFX_FILTER_MATCH_REM_HOST) {
spec              929 drivers/net/ethernet/sfc/ethtool.c 			uip_entry->ip4src = spec.rem_host[0];
spec              932 drivers/net/ethernet/sfc/ethtool.c 	} else if (spec.match_flags & EFX_FILTER_MATCH_ETHER_TYPE &&
spec              933 drivers/net/ethernet/sfc/ethtool.c 		   spec.ether_type == htons(ETH_P_IPV6) &&
spec              934 drivers/net/ethernet/sfc/ethtool.c 		   !(spec.match_flags &
spec              939 drivers/net/ethernet/sfc/ethtool.c 		if (spec.match_flags & EFX_FILTER_MATCH_IP_PROTO) {
spec              941 drivers/net/ethernet/sfc/ethtool.c 			uip6_entry->l4_proto = spec.ip_proto;
spec              943 drivers/net/ethernet/sfc/ethtool.c 		if (spec.match_flags & EFX_FILTER_MATCH_LOC_HOST) {
spec              944 drivers/net/ethernet/sfc/ethtool.c 			memcpy(uip6_entry->ip6dst, spec.loc_host,
spec              948 drivers/net/ethernet/sfc/ethtool.c 		if (spec.match_flags & EFX_FILTER_MATCH_REM_HOST) {
spec              949 drivers/net/ethernet/sfc/ethtool.c 			memcpy(uip6_entry->ip6src, spec.rem_host,
spec              959 drivers/net/ethernet/sfc/ethtool.c 	if (spec.match_flags & EFX_FILTER_MATCH_OUTER_VID) {
spec              961 drivers/net/ethernet/sfc/ethtool.c 		rule->h_ext.vlan_tci = spec.outer_vid;
spec              965 drivers/net/ethernet/sfc/ethtool.c 	if (spec.flags & EFX_FILTER_FLAG_RX_RSS) {
spec              967 drivers/net/ethernet/sfc/ethtool.c 		*rss_context = spec.rss_context;
spec             1092 drivers/net/ethernet/sfc/ethtool.c 	struct efx_filter_spec spec;
spec             1115 drivers/net/ethernet/sfc/ethtool.c 	efx_filter_init_rx(&spec, EFX_FILTER_PRI_MANUAL, flags,
spec             1120 drivers/net/ethernet/sfc/ethtool.c 		spec.rss_context = rss_context;
spec             1125 drivers/net/ethernet/sfc/ethtool.c 		spec.match_flags = (EFX_FILTER_MATCH_ETHER_TYPE |
spec             1127 drivers/net/ethernet/sfc/ethtool.c 		spec.ether_type = htons(ETH_P_IP);
spec             1128 drivers/net/ethernet/sfc/ethtool.c 		spec.ip_proto = flow_type == TCP_V4_FLOW ? IPPROTO_TCP
spec             1133 drivers/net/ethernet/sfc/ethtool.c 			spec.match_flags |= EFX_FILTER_MATCH_LOC_HOST;
spec             1134 drivers/net/ethernet/sfc/ethtool.c 			spec.loc_host[0] = ip_entry->ip4dst;
spec             1139 drivers/net/ethernet/sfc/ethtool.c 			spec.match_flags |= EFX_FILTER_MATCH_REM_HOST;
spec             1140 drivers/net/ethernet/sfc/ethtool.c 			spec.rem_host[0] = ip_entry->ip4src;
spec             1145 drivers/net/ethernet/sfc/ethtool.c 			spec.match_flags |= EFX_FILTER_MATCH_LOC_PORT;
spec             1146 drivers/net/ethernet/sfc/ethtool.c 			spec.loc_port = ip_entry->pdst;
spec             1151 drivers/net/ethernet/sfc/ethtool.c 			spec.match_flags |= EFX_FILTER_MATCH_REM_PORT;
spec             1152 drivers/net/ethernet/sfc/ethtool.c 			spec.rem_port = ip_entry->psrc;
spec             1160 drivers/net/ethernet/sfc/ethtool.c 		spec.match_flags = (EFX_FILTER_MATCH_ETHER_TYPE |
spec             1162 drivers/net/ethernet/sfc/ethtool.c 		spec.ether_type = htons(ETH_P_IPV6);
spec             1163 drivers/net/ethernet/sfc/ethtool.c 		spec.ip_proto = flow_type == TCP_V6_FLOW ? IPPROTO_TCP
spec             1168 drivers/net/ethernet/sfc/ethtool.c 			spec.match_flags |= EFX_FILTER_MATCH_LOC_HOST;
spec             1169 drivers/net/ethernet/sfc/ethtool.c 			memcpy(spec.loc_host, ip6_entry->ip6dst, sizeof(spec.loc_host));
spec             1174 drivers/net/ethernet/sfc/ethtool.c 			spec.match_flags |= EFX_FILTER_MATCH_REM_HOST;
spec             1175 drivers/net/ethernet/sfc/ethtool.c 			memcpy(spec.rem_host, ip6_entry->ip6src, sizeof(spec.rem_host));
spec             1180 drivers/net/ethernet/sfc/ethtool.c 			spec.match_flags |= EFX_FILTER_MATCH_LOC_PORT;
spec             1181 drivers/net/ethernet/sfc/ethtool.c 			spec.loc_port = ip6_entry->pdst;
spec             1186 drivers/net/ethernet/sfc/ethtool.c 			spec.match_flags |= EFX_FILTER_MATCH_REM_PORT;
spec             1187 drivers/net/ethernet/sfc/ethtool.c 			spec.rem_port = ip6_entry->psrc;
spec             1197 drivers/net/ethernet/sfc/ethtool.c 		spec.match_flags = EFX_FILTER_MATCH_ETHER_TYPE;
spec             1198 drivers/net/ethernet/sfc/ethtool.c 		spec.ether_type = htons(ETH_P_IP);
spec             1202 drivers/net/ethernet/sfc/ethtool.c 			spec.match_flags |= EFX_FILTER_MATCH_LOC_HOST;
spec             1203 drivers/net/ethernet/sfc/ethtool.c 			spec.loc_host[0] = uip_entry->ip4dst;
spec             1208 drivers/net/ethernet/sfc/ethtool.c 			spec.match_flags |= EFX_FILTER_MATCH_REM_HOST;
spec             1209 drivers/net/ethernet/sfc/ethtool.c 			spec.rem_host[0] = uip_entry->ip4src;
spec             1214 drivers/net/ethernet/sfc/ethtool.c 			spec.match_flags |= EFX_FILTER_MATCH_IP_PROTO;
spec             1215 drivers/net/ethernet/sfc/ethtool.c 			spec.ip_proto = uip_entry->proto;
spec             1222 drivers/net/ethernet/sfc/ethtool.c 		spec.match_flags = EFX_FILTER_MATCH_ETHER_TYPE;
spec             1223 drivers/net/ethernet/sfc/ethtool.c 		spec.ether_type = htons(ETH_P_IPV6);
spec             1227 drivers/net/ethernet/sfc/ethtool.c 			spec.match_flags |= EFX_FILTER_MATCH_LOC_HOST;
spec             1228 drivers/net/ethernet/sfc/ethtool.c 			memcpy(spec.loc_host, uip6_entry->ip6dst, sizeof(spec.loc_host));
spec             1233 drivers/net/ethernet/sfc/ethtool.c 			spec.match_flags |= EFX_FILTER_MATCH_REM_HOST;
spec             1234 drivers/net/ethernet/sfc/ethtool.c 			memcpy(spec.rem_host, uip6_entry->ip6src, sizeof(spec.rem_host));
spec             1239 drivers/net/ethernet/sfc/ethtool.c 			spec.match_flags |= EFX_FILTER_MATCH_IP_PROTO;
spec             1240 drivers/net/ethernet/sfc/ethtool.c 			spec.ip_proto = uip6_entry->l4_proto;
spec             1248 drivers/net/ethernet/sfc/ethtool.c 				spec.match_flags |= EFX_FILTER_MATCH_LOC_MAC_IG;
spec             1250 drivers/net/ethernet/sfc/ethtool.c 				spec.match_flags |= EFX_FILTER_MATCH_LOC_MAC;
spec             1253 drivers/net/ethernet/sfc/ethtool.c 			ether_addr_copy(spec.loc_mac, mac_entry->h_dest);
spec             1258 drivers/net/ethernet/sfc/ethtool.c 			spec.match_flags |= EFX_FILTER_MATCH_REM_MAC;
spec             1259 drivers/net/ethernet/sfc/ethtool.c 			ether_addr_copy(spec.rem_mac, mac_entry->h_source);
spec             1264 drivers/net/ethernet/sfc/ethtool.c 			spec.match_flags |= EFX_FILTER_MATCH_ETHER_TYPE;
spec             1265 drivers/net/ethernet/sfc/ethtool.c 			spec.ether_type = mac_entry->h_proto;
spec             1276 drivers/net/ethernet/sfc/ethtool.c 		spec.match_flags |= EFX_FILTER_MATCH_OUTER_VID;
spec             1277 drivers/net/ethernet/sfc/ethtool.c 		spec.outer_vid = rule->h_ext.vlan_tci;
spec             1280 drivers/net/ethernet/sfc/ethtool.c 	rc = efx_filter_insert_filter(efx, &spec, true);
spec              108 drivers/net/ethernet/sfc/falcon/efx.h 					   struct ef4_filter_spec *spec,
spec              111 drivers/net/ethernet/sfc/falcon/efx.h 	return efx->type->filter_insert(efx, spec, replace_equal);
spec              143 drivers/net/ethernet/sfc/falcon/efx.h 			   u32 filter_id, struct ef4_filter_spec *spec)
spec              145 drivers/net/ethernet/sfc/falcon/efx.h 	return efx->type->filter_get_safe(efx, priority, filter_id, spec);
spec              178 drivers/net/ethernet/sfc/falcon/efx.h bool ef4_filter_is_mc_recipient(const struct ef4_filter_spec *spec);
spec              798 drivers/net/ethernet/sfc/falcon/ethtool.c 	struct ef4_filter_spec spec;
spec              802 drivers/net/ethernet/sfc/falcon/ethtool.c 					rule->location, &spec);
spec              806 drivers/net/ethernet/sfc/falcon/ethtool.c 	if (spec.dmaq_id == EF4_FILTER_RX_DMAQ_ID_DROP)
spec              809 drivers/net/ethernet/sfc/falcon/ethtool.c 		rule->ring_cookie = spec.dmaq_id;
spec              811 drivers/net/ethernet/sfc/falcon/ethtool.c 	if ((spec.match_flags & EF4_FILTER_MATCH_ETHER_TYPE) &&
spec              812 drivers/net/ethernet/sfc/falcon/ethtool.c 	    spec.ether_type == htons(ETH_P_IP) &&
spec              813 drivers/net/ethernet/sfc/falcon/ethtool.c 	    (spec.match_flags & EF4_FILTER_MATCH_IP_PROTO) &&
spec              814 drivers/net/ethernet/sfc/falcon/ethtool.c 	    (spec.ip_proto == IPPROTO_TCP || spec.ip_proto == IPPROTO_UDP) &&
spec              815 drivers/net/ethernet/sfc/falcon/ethtool.c 	    !(spec.match_flags &
spec              820 drivers/net/ethernet/sfc/falcon/ethtool.c 		rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ?
spec              822 drivers/net/ethernet/sfc/falcon/ethtool.c 		if (spec.match_flags & EF4_FILTER_MATCH_LOC_HOST) {
spec              823 drivers/net/ethernet/sfc/falcon/ethtool.c 			ip_entry->ip4dst = spec.loc_host[0];
spec              826 drivers/net/ethernet/sfc/falcon/ethtool.c 		if (spec.match_flags & EF4_FILTER_MATCH_REM_HOST) {
spec              827 drivers/net/ethernet/sfc/falcon/ethtool.c 			ip_entry->ip4src = spec.rem_host[0];
spec              830 drivers/net/ethernet/sfc/falcon/ethtool.c 		if (spec.match_flags & EF4_FILTER_MATCH_LOC_PORT) {
spec              831 drivers/net/ethernet/sfc/falcon/ethtool.c 			ip_entry->pdst = spec.loc_port;
spec              834 drivers/net/ethernet/sfc/falcon/ethtool.c 		if (spec.match_flags & EF4_FILTER_MATCH_REM_PORT) {
spec              835 drivers/net/ethernet/sfc/falcon/ethtool.c 			ip_entry->psrc = spec.rem_port;
spec              838 drivers/net/ethernet/sfc/falcon/ethtool.c 	} else if ((spec.match_flags & EF4_FILTER_MATCH_ETHER_TYPE) &&
spec              839 drivers/net/ethernet/sfc/falcon/ethtool.c 	    spec.ether_type == htons(ETH_P_IPV6) &&
spec              840 drivers/net/ethernet/sfc/falcon/ethtool.c 	    (spec.match_flags & EF4_FILTER_MATCH_IP_PROTO) &&
spec              841 drivers/net/ethernet/sfc/falcon/ethtool.c 	    (spec.ip_proto == IPPROTO_TCP || spec.ip_proto == IPPROTO_UDP) &&
spec              842 drivers/net/ethernet/sfc/falcon/ethtool.c 	    !(spec.match_flags &
spec              847 drivers/net/ethernet/sfc/falcon/ethtool.c 		rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ?
spec              849 drivers/net/ethernet/sfc/falcon/ethtool.c 		if (spec.match_flags & EF4_FILTER_MATCH_LOC_HOST) {
spec              850 drivers/net/ethernet/sfc/falcon/ethtool.c 			memcpy(ip6_entry->ip6dst, spec.loc_host,
spec              854 drivers/net/ethernet/sfc/falcon/ethtool.c 		if (spec.match_flags & EF4_FILTER_MATCH_REM_HOST) {
spec              855 drivers/net/ethernet/sfc/falcon/ethtool.c 			memcpy(ip6_entry->ip6src, spec.rem_host,
spec              859 drivers/net/ethernet/sfc/falcon/ethtool.c 		if (spec.match_flags & EF4_FILTER_MATCH_LOC_PORT) {
spec              860 drivers/net/ethernet/sfc/falcon/ethtool.c 			ip6_entry->pdst = spec.loc_port;
spec              863 drivers/net/ethernet/sfc/falcon/ethtool.c 		if (spec.match_flags & EF4_FILTER_MATCH_REM_PORT) {
spec              864 drivers/net/ethernet/sfc/falcon/ethtool.c 			ip6_entry->psrc = spec.rem_port;
spec              867 drivers/net/ethernet/sfc/falcon/ethtool.c 	} else if (!(spec.match_flags &
spec              872 drivers/net/ethernet/sfc/falcon/ethtool.c 		if (spec.match_flags &
spec              874 drivers/net/ethernet/sfc/falcon/ethtool.c 			ether_addr_copy(mac_entry->h_dest, spec.loc_mac);
spec              875 drivers/net/ethernet/sfc/falcon/ethtool.c 			if (spec.match_flags & EF4_FILTER_MATCH_LOC_MAC)
spec              881 drivers/net/ethernet/sfc/falcon/ethtool.c 		if (spec.match_flags & EF4_FILTER_MATCH_REM_MAC) {
spec              882 drivers/net/ethernet/sfc/falcon/ethtool.c 			ether_addr_copy(mac_entry->h_source, spec.rem_mac);
spec              885 drivers/net/ethernet/sfc/falcon/ethtool.c 		if (spec.match_flags & EF4_FILTER_MATCH_ETHER_TYPE) {
spec              886 drivers/net/ethernet/sfc/falcon/ethtool.c 			mac_entry->h_proto = spec.ether_type;
spec              889 drivers/net/ethernet/sfc/falcon/ethtool.c 	} else if (spec.match_flags & EF4_FILTER_MATCH_ETHER_TYPE &&
spec              890 drivers/net/ethernet/sfc/falcon/ethtool.c 		   spec.ether_type == htons(ETH_P_IP) &&
spec              891 drivers/net/ethernet/sfc/falcon/ethtool.c 		   !(spec.match_flags &
spec              897 drivers/net/ethernet/sfc/falcon/ethtool.c 		if (spec.match_flags & EF4_FILTER_MATCH_IP_PROTO) {
spec              899 drivers/net/ethernet/sfc/falcon/ethtool.c 			uip_entry->proto = spec.ip_proto;
spec              901 drivers/net/ethernet/sfc/falcon/ethtool.c 		if (spec.match_flags & EF4_FILTER_MATCH_LOC_HOST) {
spec              902 drivers/net/ethernet/sfc/falcon/ethtool.c 			uip_entry->ip4dst = spec.loc_host[0];
spec              905 drivers/net/ethernet/sfc/falcon/ethtool.c 		if (spec.match_flags & EF4_FILTER_MATCH_REM_HOST) {
spec              906 drivers/net/ethernet/sfc/falcon/ethtool.c 			uip_entry->ip4src = spec.rem_host[0];
spec              909 drivers/net/ethernet/sfc/falcon/ethtool.c 	} else if (spec.match_flags & EF4_FILTER_MATCH_ETHER_TYPE &&
spec              910 drivers/net/ethernet/sfc/falcon/ethtool.c 		   spec.ether_type == htons(ETH_P_IPV6) &&
spec              911 drivers/net/ethernet/sfc/falcon/ethtool.c 		   !(spec.match_flags &
spec              916 drivers/net/ethernet/sfc/falcon/ethtool.c 		if (spec.match_flags & EF4_FILTER_MATCH_IP_PROTO) {
spec              918 drivers/net/ethernet/sfc/falcon/ethtool.c 			uip6_entry->l4_proto = spec.ip_proto;
spec              920 drivers/net/ethernet/sfc/falcon/ethtool.c 		if (spec.match_flags & EF4_FILTER_MATCH_LOC_HOST) {
spec              921 drivers/net/ethernet/sfc/falcon/ethtool.c 			memcpy(uip6_entry->ip6dst, spec.loc_host,
spec              925 drivers/net/ethernet/sfc/falcon/ethtool.c 		if (spec.match_flags & EF4_FILTER_MATCH_REM_HOST) {
spec              926 drivers/net/ethernet/sfc/falcon/ethtool.c 			memcpy(uip6_entry->ip6src, spec.rem_host,
spec              936 drivers/net/ethernet/sfc/falcon/ethtool.c 	if (spec.match_flags & EF4_FILTER_MATCH_OUTER_VID) {
spec              938 drivers/net/ethernet/sfc/falcon/ethtool.c 		rule->h_ext.vlan_tci = spec.outer_vid;
spec             1034 drivers/net/ethernet/sfc/falcon/ethtool.c 	struct ef4_filter_spec spec;
spec             1052 drivers/net/ethernet/sfc/falcon/ethtool.c 	ef4_filter_init_rx(&spec, EF4_FILTER_PRI_MANUAL,
spec             1060 drivers/net/ethernet/sfc/falcon/ethtool.c 		spec.match_flags = (EF4_FILTER_MATCH_ETHER_TYPE |
spec             1062 drivers/net/ethernet/sfc/falcon/ethtool.c 		spec.ether_type = htons(ETH_P_IP);
spec             1063 drivers/net/ethernet/sfc/falcon/ethtool.c 		spec.ip_proto = ((rule->flow_type & ~FLOW_EXT) == TCP_V4_FLOW ?
spec             1068 drivers/net/ethernet/sfc/falcon/ethtool.c 			spec.match_flags |= EF4_FILTER_MATCH_LOC_HOST;
spec             1069 drivers/net/ethernet/sfc/falcon/ethtool.c 			spec.loc_host[0] = ip_entry->ip4dst;
spec             1074 drivers/net/ethernet/sfc/falcon/ethtool.c 			spec.match_flags |= EF4_FILTER_MATCH_REM_HOST;
spec             1075 drivers/net/ethernet/sfc/falcon/ethtool.c 			spec.rem_host[0] = ip_entry->ip4src;
spec             1080 drivers/net/ethernet/sfc/falcon/ethtool.c 			spec.match_flags |= EF4_FILTER_MATCH_LOC_PORT;
spec             1081 drivers/net/ethernet/sfc/falcon/ethtool.c 			spec.loc_port = ip_entry->pdst;
spec             1086 drivers/net/ethernet/sfc/falcon/ethtool.c 			spec.match_flags |= EF4_FILTER_MATCH_REM_PORT;
spec             1087 drivers/net/ethernet/sfc/falcon/ethtool.c 			spec.rem_port = ip_entry->psrc;
spec             1095 drivers/net/ethernet/sfc/falcon/ethtool.c 		spec.match_flags = (EF4_FILTER_MATCH_ETHER_TYPE |
spec             1097 drivers/net/ethernet/sfc/falcon/ethtool.c 		spec.ether_type = htons(ETH_P_IPV6);
spec             1098 drivers/net/ethernet/sfc/falcon/ethtool.c 		spec.ip_proto = ((rule->flow_type & ~FLOW_EXT) == TCP_V6_FLOW ?
spec             1103 drivers/net/ethernet/sfc/falcon/ethtool.c 			spec.match_flags |= EF4_FILTER_MATCH_LOC_HOST;
spec             1104 drivers/net/ethernet/sfc/falcon/ethtool.c 			memcpy(spec.loc_host, ip6_entry->ip6dst, sizeof(spec.loc_host));
spec             1109 drivers/net/ethernet/sfc/falcon/ethtool.c 			spec.match_flags |= EF4_FILTER_MATCH_REM_HOST;
spec             1110 drivers/net/ethernet/sfc/falcon/ethtool.c 			memcpy(spec.rem_host, ip6_entry->ip6src, sizeof(spec.rem_host));
spec             1115 drivers/net/ethernet/sfc/falcon/ethtool.c 			spec.match_flags |= EF4_FILTER_MATCH_LOC_PORT;
spec             1116 drivers/net/ethernet/sfc/falcon/ethtool.c 			spec.loc_port = ip6_entry->pdst;
spec             1121 drivers/net/ethernet/sfc/falcon/ethtool.c 			spec.match_flags |= EF4_FILTER_MATCH_REM_PORT;
spec             1122 drivers/net/ethernet/sfc/falcon/ethtool.c 			spec.rem_port = ip6_entry->psrc;
spec             1132 drivers/net/ethernet/sfc/falcon/ethtool.c 		spec.match_flags = EF4_FILTER_MATCH_ETHER_TYPE;
spec             1133 drivers/net/ethernet/sfc/falcon/ethtool.c 		spec.ether_type = htons(ETH_P_IP);
spec             1137 drivers/net/ethernet/sfc/falcon/ethtool.c 			spec.match_flags |= EF4_FILTER_MATCH_LOC_HOST;
spec             1138 drivers/net/ethernet/sfc/falcon/ethtool.c 			spec.loc_host[0] = uip_entry->ip4dst;
spec             1143 drivers/net/ethernet/sfc/falcon/ethtool.c 			spec.match_flags |= EF4_FILTER_MATCH_REM_HOST;
spec             1144 drivers/net/ethernet/sfc/falcon/ethtool.c 			spec.rem_host[0] = uip_entry->ip4src;
spec             1149 drivers/net/ethernet/sfc/falcon/ethtool.c 			spec.match_flags |= EF4_FILTER_MATCH_IP_PROTO;
spec             1150 drivers/net/ethernet/sfc/falcon/ethtool.c 			spec.ip_proto = uip_entry->proto;
spec             1157 drivers/net/ethernet/sfc/falcon/ethtool.c 		spec.match_flags = EF4_FILTER_MATCH_ETHER_TYPE;
spec             1158 drivers/net/ethernet/sfc/falcon/ethtool.c 		spec.ether_type = htons(ETH_P_IPV6);
spec             1162 drivers/net/ethernet/sfc/falcon/ethtool.c 			spec.match_flags |= EF4_FILTER_MATCH_LOC_HOST;
spec             1163 drivers/net/ethernet/sfc/falcon/ethtool.c 			memcpy(spec.loc_host, uip6_entry->ip6dst, sizeof(spec.loc_host));
spec             1168 drivers/net/ethernet/sfc/falcon/ethtool.c 			spec.match_flags |= EF4_FILTER_MATCH_REM_HOST;
spec             1169 drivers/net/ethernet/sfc/falcon/ethtool.c 			memcpy(spec.rem_host, uip6_entry->ip6src, sizeof(spec.rem_host));
spec             1174 drivers/net/ethernet/sfc/falcon/ethtool.c 			spec.match_flags |= EF4_FILTER_MATCH_IP_PROTO;
spec             1175 drivers/net/ethernet/sfc/falcon/ethtool.c 			spec.ip_proto = uip6_entry->l4_proto;
spec             1183 drivers/net/ethernet/sfc/falcon/ethtool.c 				spec.match_flags |= EF4_FILTER_MATCH_LOC_MAC_IG;
spec             1185 drivers/net/ethernet/sfc/falcon/ethtool.c 				spec.match_flags |= EF4_FILTER_MATCH_LOC_MAC;
spec             1188 drivers/net/ethernet/sfc/falcon/ethtool.c 			ether_addr_copy(spec.loc_mac, mac_entry->h_dest);
spec             1193 drivers/net/ethernet/sfc/falcon/ethtool.c 			spec.match_flags |= EF4_FILTER_MATCH_REM_MAC;
spec             1194 drivers/net/ethernet/sfc/falcon/ethtool.c 			ether_addr_copy(spec.rem_mac, mac_entry->h_source);
spec             1199 drivers/net/ethernet/sfc/falcon/ethtool.c 			spec.match_flags |= EF4_FILTER_MATCH_ETHER_TYPE;
spec             1200 drivers/net/ethernet/sfc/falcon/ethtool.c 			spec.ether_type = mac_entry->h_proto;
spec             1211 drivers/net/ethernet/sfc/falcon/ethtool.c 		spec.match_flags |= EF4_FILTER_MATCH_OUTER_VID;
spec             1212 drivers/net/ethernet/sfc/falcon/ethtool.c 		spec.outer_vid = rule->h_ext.vlan_tci;
spec             1215 drivers/net/ethernet/sfc/falcon/ethtool.c 	rc = ef4_filter_insert_filter(efx, &spec, true);
spec             1814 drivers/net/ethernet/sfc/falcon/farch.c 	struct ef4_farch_filter_spec *spec;
spec             1851 drivers/net/ethernet/sfc/falcon/farch.c ef4_farch_filter_spec_table_id(const struct ef4_farch_filter_spec *spec)
spec             1867 drivers/net/ethernet/sfc/falcon/farch.c 	return (spec->type >> 2) + ((spec->flags & EF4_FILTER_FLAG_TX) ? 2 : 0);
spec             1908 drivers/net/ethernet/sfc/falcon/farch.c 			table->spec[EF4_FARCH_FILTER_INDEX_UC_DEF].dmaq_id);
spec             1911 drivers/net/ethernet/sfc/falcon/farch.c 			!!(table->spec[EF4_FARCH_FILTER_INDEX_UC_DEF].flags &
spec             1915 drivers/net/ethernet/sfc/falcon/farch.c 			table->spec[EF4_FARCH_FILTER_INDEX_MC_DEF].dmaq_id);
spec             1918 drivers/net/ethernet/sfc/falcon/farch.c 			!!(table->spec[EF4_FARCH_FILTER_INDEX_MC_DEF].flags &
spec             1927 drivers/net/ethernet/sfc/falcon/farch.c 			!!(table->spec[EF4_FARCH_FILTER_INDEX_UC_DEF].flags &
spec             1928 drivers/net/ethernet/sfc/falcon/farch.c 			   table->spec[EF4_FARCH_FILTER_INDEX_MC_DEF].flags &
spec             1968 drivers/net/ethernet/sfc/falcon/farch.c ef4_farch_filter_from_gen_spec(struct ef4_farch_filter_spec *spec,
spec             1977 drivers/net/ethernet/sfc/falcon/farch.c 	spec->priority = gen_spec->priority;
spec             1978 drivers/net/ethernet/sfc/falcon/farch.c 	spec->flags = gen_spec->flags;
spec             1979 drivers/net/ethernet/sfc/falcon/farch.c 	spec->dmaq_id = gen_spec->dmaq_id;
spec             2001 drivers/net/ethernet/sfc/falcon/farch.c 			spec->type = (is_full ? EF4_FARCH_FILTER_TCP_FULL :
spec             2005 drivers/net/ethernet/sfc/falcon/farch.c 			spec->type = (is_full ? EF4_FARCH_FILTER_UDP_FULL :
spec             2028 drivers/net/ethernet/sfc/falcon/farch.c 		spec->data[0] = ntohl(host1) << 16 | ntohs(port1);
spec             2029 drivers/net/ethernet/sfc/falcon/farch.c 		spec->data[1] = ntohs(port2) << 16 | ntohl(host1) >> 16;
spec             2030 drivers/net/ethernet/sfc/falcon/farch.c 		spec->data[2] = ntohl(host2);
spec             2039 drivers/net/ethernet/sfc/falcon/farch.c 		spec->type = (is_full ? EF4_FARCH_FILTER_MAC_FULL :
spec             2041 drivers/net/ethernet/sfc/falcon/farch.c 		spec->data[0] = is_full ? ntohs(gen_spec->outer_vid) : 0;
spec             2042 drivers/net/ethernet/sfc/falcon/farch.c 		spec->data[1] = (gen_spec->loc_mac[2] << 24 |
spec             2046 drivers/net/ethernet/sfc/falcon/farch.c 		spec->data[2] = (gen_spec->loc_mac[0] << 8 |
spec             2051 drivers/net/ethernet/sfc/falcon/farch.c 		spec->type = (is_multicast_ether_addr(gen_spec->loc_mac) ?
spec             2054 drivers/net/ethernet/sfc/falcon/farch.c 		memset(spec->data, 0, sizeof(spec->data)); /* ensure equality */
spec             2066 drivers/net/ethernet/sfc/falcon/farch.c 			     const struct ef4_farch_filter_spec *spec)
spec             2076 drivers/net/ethernet/sfc/falcon/farch.c 	gen_spec->priority = spec->priority;
spec             2077 drivers/net/ethernet/sfc/falcon/farch.c 	gen_spec->flags = spec->flags;
spec             2078 drivers/net/ethernet/sfc/falcon/farch.c 	gen_spec->dmaq_id = spec->dmaq_id;
spec             2080 drivers/net/ethernet/sfc/falcon/farch.c 	switch (spec->type) {
spec             2099 drivers/net/ethernet/sfc/falcon/farch.c 			(spec->type == EF4_FARCH_FILTER_TCP_FULL ||
spec             2100 drivers/net/ethernet/sfc/falcon/farch.c 			 spec->type == EF4_FARCH_FILTER_TCP_WILD) ?
spec             2103 drivers/net/ethernet/sfc/falcon/farch.c 		host1 = htonl(spec->data[0] >> 16 | spec->data[1] << 16);
spec             2104 drivers/net/ethernet/sfc/falcon/farch.c 		port1 = htons(spec->data[0]);
spec             2105 drivers/net/ethernet/sfc/falcon/farch.c 		host2 = htonl(spec->data[2]);
spec             2106 drivers/net/ethernet/sfc/falcon/farch.c 		port2 = htons(spec->data[1] >> 16);
spec             2107 drivers/net/ethernet/sfc/falcon/farch.c 		if (spec->flags & EF4_FILTER_FLAG_TX) {
spec             2133 drivers/net/ethernet/sfc/falcon/farch.c 		gen_spec->loc_mac[0] = spec->data[2] >> 8;
spec             2134 drivers/net/ethernet/sfc/falcon/farch.c 		gen_spec->loc_mac[1] = spec->data[2];
spec             2135 drivers/net/ethernet/sfc/falcon/farch.c 		gen_spec->loc_mac[2] = spec->data[1] >> 24;
spec             2136 drivers/net/ethernet/sfc/falcon/farch.c 		gen_spec->loc_mac[3] = spec->data[1] >> 16;
spec             2137 drivers/net/ethernet/sfc/falcon/farch.c 		gen_spec->loc_mac[4] = spec->data[1] >> 8;
spec             2138 drivers/net/ethernet/sfc/falcon/farch.c 		gen_spec->loc_mac[5] = spec->data[1];
spec             2139 drivers/net/ethernet/sfc/falcon/farch.c 		gen_spec->outer_vid = htons(spec->data[0]);
spec             2145 drivers/net/ethernet/sfc/falcon/farch.c 		gen_spec->loc_mac[0] = spec->type == EF4_FARCH_FILTER_MC_DEF;
spec             2156 drivers/net/ethernet/sfc/falcon/farch.c 			      struct ef4_farch_filter_spec *spec)
spec             2161 drivers/net/ethernet/sfc/falcon/farch.c 	spec->priority = EF4_FILTER_PRI_AUTO;
spec             2162 drivers/net/ethernet/sfc/falcon/farch.c 	spec->flags = (EF4_FILTER_FLAG_RX |
spec             2165 drivers/net/ethernet/sfc/falcon/farch.c 	spec->dmaq_id = 0;
spec             2170 drivers/net/ethernet/sfc/falcon/farch.c 				  struct ef4_farch_filter_spec *spec)
spec             2174 drivers/net/ethernet/sfc/falcon/farch.c 	switch (ef4_farch_filter_spec_table_id(spec)) {
spec             2176 drivers/net/ethernet/sfc/falcon/farch.c 		bool is_udp = (spec->type == EF4_FARCH_FILTER_UDP_FULL ||
spec             2177 drivers/net/ethernet/sfc/falcon/farch.c 			       spec->type == EF4_FARCH_FILTER_UDP_WILD);
spec             2181 drivers/net/ethernet/sfc/falcon/farch.c 			!!(spec->flags & EF4_FILTER_FLAG_RX_RSS),
spec             2183 drivers/net/ethernet/sfc/falcon/farch.c 			!!(spec->flags & EF4_FILTER_FLAG_RX_SCATTER),
spec             2185 drivers/net/ethernet/sfc/falcon/farch.c 			FRF_BZ_RXQ_ID, spec->dmaq_id,
spec             2186 drivers/net/ethernet/sfc/falcon/farch.c 			EF4_DWORD_2, spec->data[2],
spec             2187 drivers/net/ethernet/sfc/falcon/farch.c 			EF4_DWORD_1, spec->data[1],
spec             2188 drivers/net/ethernet/sfc/falcon/farch.c 			EF4_DWORD_0, spec->data[0]);
spec             2194 drivers/net/ethernet/sfc/falcon/farch.c 		bool is_wild = spec->type == EF4_FARCH_FILTER_MAC_WILD;
spec             2198 drivers/net/ethernet/sfc/falcon/farch.c 			!!(spec->flags & EF4_FILTER_FLAG_RX_RSS),
spec             2200 drivers/net/ethernet/sfc/falcon/farch.c 			!!(spec->flags & EF4_FILTER_FLAG_RX_SCATTER),
spec             2201 drivers/net/ethernet/sfc/falcon/farch.c 			FRF_CZ_RMFT_RXQ_ID, spec->dmaq_id,
spec             2203 drivers/net/ethernet/sfc/falcon/farch.c 			FRF_CZ_RMFT_DEST_MAC_HI, spec->data[2],
spec             2204 drivers/net/ethernet/sfc/falcon/farch.c 			FRF_CZ_RMFT_DEST_MAC_LO, spec->data[1],
spec             2205 drivers/net/ethernet/sfc/falcon/farch.c 			FRF_CZ_RMFT_VLAN_ID, spec->data[0]);
spec             2211 drivers/net/ethernet/sfc/falcon/farch.c 		bool is_wild = spec->type == EF4_FARCH_FILTER_MAC_WILD;
spec             2213 drivers/net/ethernet/sfc/falcon/farch.c 				     FRF_CZ_TMFT_TXQ_ID, spec->dmaq_id,
spec             2215 drivers/net/ethernet/sfc/falcon/farch.c 				     FRF_CZ_TMFT_SRC_MAC_HI, spec->data[2],
spec             2216 drivers/net/ethernet/sfc/falcon/farch.c 				     FRF_CZ_TMFT_SRC_MAC_LO, spec->data[1],
spec             2217 drivers/net/ethernet/sfc/falcon/farch.c 				     FRF_CZ_TMFT_VLAN_ID, spec->data[0]);
spec             2218 drivers/net/ethernet/sfc/falcon/farch.c 		data3 = is_wild | spec->dmaq_id << 1;
spec             2226 drivers/net/ethernet/sfc/falcon/farch.c 	return spec->data[0] ^ spec->data[1] ^ spec->data[2] ^ data3;
spec             2279 drivers/net/ethernet/sfc/falcon/farch.c ef4_farch_filter_make_id(const struct ef4_farch_filter_spec *spec,
spec             2284 drivers/net/ethernet/sfc/falcon/farch.c 	range = ef4_farch_filter_type_match_pri[spec->type];
spec             2285 drivers/net/ethernet/sfc/falcon/farch.c 	if (!(spec->flags & EF4_FILTER_FLAG_RX))
spec             2329 drivers/net/ethernet/sfc/falcon/farch.c 	struct ef4_farch_filter_spec spec;
spec             2335 drivers/net/ethernet/sfc/falcon/farch.c 	rc = ef4_farch_filter_from_gen_spec(&spec, gen_spec);
spec             2339 drivers/net/ethernet/sfc/falcon/farch.c 	table = &state->table[ef4_farch_filter_spec_table_id(&spec)];
spec             2344 drivers/net/ethernet/sfc/falcon/farch.c 		   "%s: type %d search_limit=%d", __func__, spec.type,
spec             2345 drivers/net/ethernet/sfc/falcon/farch.c 		   table->search_limit[spec.type]);
spec             2352 drivers/net/ethernet/sfc/falcon/farch.c 		rep_index = spec.type - EF4_FARCH_FILTER_UC_DEF;
spec             2372 drivers/net/ethernet/sfc/falcon/farch.c 		u32 key = ef4_farch_filter_build(&filter, &spec);
spec             2375 drivers/net/ethernet/sfc/falcon/farch.c 		unsigned int max_rep_depth = table->search_limit[spec.type];
spec             2377 drivers/net/ethernet/sfc/falcon/farch.c 			spec.priority <= EF4_FILTER_PRI_HINT ?
spec             2391 drivers/net/ethernet/sfc/falcon/farch.c 			} else if (ef4_farch_filter_equal(&spec,
spec             2392 drivers/net/ethernet/sfc/falcon/farch.c 							  &table->spec[i])) {
spec             2421 drivers/net/ethernet/sfc/falcon/farch.c 			&table->spec[rep_index];
spec             2423 drivers/net/ethernet/sfc/falcon/farch.c 		if (spec.priority == saved_spec->priority && !replace_equal) {
spec             2427 drivers/net/ethernet/sfc/falcon/farch.c 		if (spec.priority < saved_spec->priority) {
spec             2433 drivers/net/ethernet/sfc/falcon/farch.c 			spec.flags |= EF4_FILTER_FLAG_RX_OVER_AUTO;
spec             2441 drivers/net/ethernet/sfc/falcon/farch.c 	table->spec[ins_index] = spec;
spec             2446 drivers/net/ethernet/sfc/falcon/farch.c 		if (table->search_limit[spec.type] < depth) {
spec             2447 drivers/net/ethernet/sfc/falcon/farch.c 			table->search_limit[spec.type] = depth;
spec             2448 drivers/net/ethernet/sfc/falcon/farch.c 			if (spec.flags & EF4_FILTER_FLAG_TX)
spec             2467 drivers/net/ethernet/sfc/falcon/farch.c 		   __func__, spec.type, ins_index, spec.dmaq_id);
spec             2468 drivers/net/ethernet/sfc/falcon/farch.c 	rc = ef4_farch_filter_make_id(&spec, ins_index);
spec             2487 drivers/net/ethernet/sfc/falcon/farch.c 	memset(&table->spec[filter_idx], 0, sizeof(table->spec[0]));
spec             2511 drivers/net/ethernet/sfc/falcon/farch.c 	struct ef4_farch_filter_spec *spec = &table->spec[filter_idx];
spec             2514 drivers/net/ethernet/sfc/falcon/farch.c 	    spec->priority != priority)
spec             2517 drivers/net/ethernet/sfc/falcon/farch.c 	if (spec->flags & EF4_FILTER_FLAG_RX_OVER_AUTO) {
spec             2518 drivers/net/ethernet/sfc/falcon/farch.c 		ef4_farch_filter_init_rx_auto(efx, spec);
spec             2535 drivers/net/ethernet/sfc/falcon/farch.c 	struct ef4_farch_filter_spec *spec;
spec             2546 drivers/net/ethernet/sfc/falcon/farch.c 	spec = &table->spec[filter_idx];
spec             2562 drivers/net/ethernet/sfc/falcon/farch.c 	struct ef4_farch_filter_spec *spec;
spec             2574 drivers/net/ethernet/sfc/falcon/farch.c 	spec = &table->spec[filter_idx];
spec             2579 drivers/net/ethernet/sfc/falcon/farch.c 	    spec->priority == priority) {
spec             2580 drivers/net/ethernet/sfc/falcon/farch.c 		ef4_farch_filter_to_gen_spec(spec_buf, spec);
spec             2602 drivers/net/ethernet/sfc/falcon/farch.c 		if (table->spec[filter_idx].priority != EF4_FILTER_PRI_AUTO)
spec             2638 drivers/net/ethernet/sfc/falcon/farch.c 			    table->spec[filter_idx].priority == priority)
spec             2666 drivers/net/ethernet/sfc/falcon/farch.c 			    table->spec[filter_idx].priority == priority) {
spec             2672 drivers/net/ethernet/sfc/falcon/farch.c 					&table->spec[filter_idx], filter_idx);
spec             2703 drivers/net/ethernet/sfc/falcon/farch.c 			ef4_farch_filter_build(&filter, &table->spec[filter_idx]);
spec             2722 drivers/net/ethernet/sfc/falcon/farch.c 		vfree(state->table[table_id].spec);
spec             2755 drivers/net/ethernet/sfc/falcon/farch.c 		table->spec = vzalloc(array_size(sizeof(*table->spec),
spec             2757 drivers/net/ethernet/sfc/falcon/farch.c 		if (!table->spec)
spec             2764 drivers/net/ethernet/sfc/falcon/farch.c 		struct ef4_farch_filter_spec *spec;
spec             2768 drivers/net/ethernet/sfc/falcon/farch.c 			spec = &table->spec[i];
spec             2769 drivers/net/ethernet/sfc/falcon/farch.c 			spec->type = EF4_FARCH_FILTER_UC_DEF + i;
spec             2770 drivers/net/ethernet/sfc/falcon/farch.c 			ef4_farch_filter_init_rx_auto(efx, spec);
spec             2802 drivers/net/ethernet/sfc/falcon/farch.c 			    table->spec[filter_idx].dmaq_id >=
spec             2807 drivers/net/ethernet/sfc/falcon/farch.c 				table->spec[filter_idx].flags |=
spec             2810 drivers/net/ethernet/sfc/falcon/farch.c 				table->spec[filter_idx].flags &=
spec             2817 drivers/net/ethernet/sfc/falcon/farch.c 			ef4_farch_filter_build(&filter, &table->spec[filter_idx]);
spec             2844 drivers/net/ethernet/sfc/falcon/farch.c 	    table->spec[index].priority == EF4_FILTER_PRI_HINT &&
spec             2845 drivers/net/ethernet/sfc/falcon/farch.c 	    rps_may_expire_flow(efx->net_dev, table->spec[index].dmaq_id,
spec              152 drivers/net/ethernet/sfc/falcon/filter.h static inline void ef4_filter_init_rx(struct ef4_filter_spec *spec,
spec              157 drivers/net/ethernet/sfc/falcon/filter.h 	memset(spec, 0, sizeof(*spec));
spec              158 drivers/net/ethernet/sfc/falcon/filter.h 	spec->priority = priority;
spec              159 drivers/net/ethernet/sfc/falcon/filter.h 	spec->flags = EF4_FILTER_FLAG_RX | flags;
spec              160 drivers/net/ethernet/sfc/falcon/filter.h 	spec->rss_context = EF4_FILTER_RSS_CONTEXT_DEFAULT;
spec              161 drivers/net/ethernet/sfc/falcon/filter.h 	spec->dmaq_id = rxq_id;
spec              164 drivers/net/ethernet/sfc/falcon/filter.h static inline void ef4_filter_init_tx(struct ef4_filter_spec *spec,
spec              167 drivers/net/ethernet/sfc/falcon/filter.h 	memset(spec, 0, sizeof(*spec));
spec              168 drivers/net/ethernet/sfc/falcon/filter.h 	spec->priority = EF4_FILTER_PRI_REQUIRED;
spec              169 drivers/net/ethernet/sfc/falcon/filter.h 	spec->flags = EF4_FILTER_FLAG_TX;
spec              170 drivers/net/ethernet/sfc/falcon/filter.h 	spec->dmaq_id = txq_id;
spec              181 drivers/net/ethernet/sfc/falcon/filter.h ef4_filter_set_ipv4_local(struct ef4_filter_spec *spec, u8 proto,
spec              184 drivers/net/ethernet/sfc/falcon/filter.h 	spec->match_flags |=
spec              187 drivers/net/ethernet/sfc/falcon/filter.h 	spec->ether_type = htons(ETH_P_IP);
spec              188 drivers/net/ethernet/sfc/falcon/filter.h 	spec->ip_proto = proto;
spec              189 drivers/net/ethernet/sfc/falcon/filter.h 	spec->loc_host[0] = host;
spec              190 drivers/net/ethernet/sfc/falcon/filter.h 	spec->loc_port = port;
spec              204 drivers/net/ethernet/sfc/falcon/filter.h ef4_filter_set_ipv4_full(struct ef4_filter_spec *spec, u8 proto,
spec              208 drivers/net/ethernet/sfc/falcon/filter.h 	spec->match_flags |=
spec              212 drivers/net/ethernet/sfc/falcon/filter.h 	spec->ether_type = htons(ETH_P_IP);
spec              213 drivers/net/ethernet/sfc/falcon/filter.h 	spec->ip_proto = proto;
spec              214 drivers/net/ethernet/sfc/falcon/filter.h 	spec->loc_host[0] = lhost;
spec              215 drivers/net/ethernet/sfc/falcon/filter.h 	spec->loc_port = lport;
spec              216 drivers/net/ethernet/sfc/falcon/filter.h 	spec->rem_host[0] = rhost;
spec              217 drivers/net/ethernet/sfc/falcon/filter.h 	spec->rem_port = rport;
spec              231 drivers/net/ethernet/sfc/falcon/filter.h static inline int ef4_filter_set_eth_local(struct ef4_filter_spec *spec,
spec              238 drivers/net/ethernet/sfc/falcon/filter.h 		spec->match_flags |= EF4_FILTER_MATCH_OUTER_VID;
spec              239 drivers/net/ethernet/sfc/falcon/filter.h 		spec->outer_vid = htons(vid);
spec              242 drivers/net/ethernet/sfc/falcon/filter.h 		spec->match_flags |= EF4_FILTER_MATCH_LOC_MAC;
spec              243 drivers/net/ethernet/sfc/falcon/filter.h 		ether_addr_copy(spec->loc_mac, addr);
spec              252 drivers/net/ethernet/sfc/falcon/filter.h static inline int ef4_filter_set_uc_def(struct ef4_filter_spec *spec)
spec              254 drivers/net/ethernet/sfc/falcon/filter.h 	spec->match_flags |= EF4_FILTER_MATCH_LOC_MAC_IG;
spec              262 drivers/net/ethernet/sfc/falcon/filter.h static inline int ef4_filter_set_mc_def(struct ef4_filter_spec *spec)
spec              264 drivers/net/ethernet/sfc/falcon/filter.h 	spec->match_flags |= EF4_FILTER_MATCH_LOC_MAC_IG;
spec              265 drivers/net/ethernet/sfc/falcon/filter.h 	spec->loc_mac[0] = 1;
spec             1107 drivers/net/ethernet/sfc/falcon/net_driver.h 			     struct ef4_filter_spec *spec, bool replace);
spec             1124 drivers/net/ethernet/sfc/falcon/net_driver.h 				 struct ef4_filter_spec *spec);
spec              409 drivers/net/ethernet/sfc/falcon/nic.h s32 ef4_farch_filter_insert(struct ef4_nic *efx, struct ef4_filter_spec *spec,
spec              427 drivers/net/ethernet/sfc/falcon/nic.h 				struct ef4_filter_spec *spec);
spec              835 drivers/net/ethernet/sfc/falcon/rx.c 	struct ef4_filter_spec spec;
spec              850 drivers/net/ethernet/sfc/falcon/rx.c 	ef4_filter_init_rx(&spec, EF4_FILTER_PRI_HINT,
spec              853 drivers/net/ethernet/sfc/falcon/rx.c 	spec.match_flags =
spec              857 drivers/net/ethernet/sfc/falcon/rx.c 	spec.ether_type = fk.basic.n_proto;
spec              858 drivers/net/ethernet/sfc/falcon/rx.c 	spec.ip_proto = fk.basic.ip_proto;
spec              861 drivers/net/ethernet/sfc/falcon/rx.c 		spec.rem_host[0] = fk.addrs.v4addrs.src;
spec              862 drivers/net/ethernet/sfc/falcon/rx.c 		spec.loc_host[0] = fk.addrs.v4addrs.dst;
spec              864 drivers/net/ethernet/sfc/falcon/rx.c 		memcpy(spec.rem_host, &fk.addrs.v6addrs.src, sizeof(struct in6_addr));
spec              865 drivers/net/ethernet/sfc/falcon/rx.c 		memcpy(spec.loc_host, &fk.addrs.v6addrs.dst, sizeof(struct in6_addr));
spec              868 drivers/net/ethernet/sfc/falcon/rx.c 	spec.rem_port = fk.ports.src;
spec              869 drivers/net/ethernet/sfc/falcon/rx.c 	spec.loc_port = fk.ports.dst;
spec              871 drivers/net/ethernet/sfc/falcon/rx.c 	rc = efx->type->filter_rfs_insert(efx, &spec);
spec              880 drivers/net/ethernet/sfc/falcon/rx.c 	if (spec.ether_type == htons(ETH_P_IP))
spec              883 drivers/net/ethernet/sfc/falcon/rx.c 			   (spec.ip_proto == IPPROTO_TCP) ? "TCP" : "UDP",
spec              884 drivers/net/ethernet/sfc/falcon/rx.c 			   spec.rem_host, ntohs(spec.rem_port), spec.loc_host,
spec              885 drivers/net/ethernet/sfc/falcon/rx.c 			   ntohs(spec.loc_port), rxq_index, flow_id, rc);
spec              889 drivers/net/ethernet/sfc/falcon/rx.c 			   (spec.ip_proto == IPPROTO_TCP) ? "TCP" : "UDP",
spec              890 drivers/net/ethernet/sfc/falcon/rx.c 			   spec.rem_host, ntohs(spec.rem_port), spec.loc_host,
spec              891 drivers/net/ethernet/sfc/falcon/rx.c 			   ntohs(spec.loc_port), rxq_index, flow_id, rc);
spec              944 drivers/net/ethernet/sfc/falcon/rx.c bool ef4_filter_is_mc_recipient(const struct ef4_filter_spec *spec)
spec              946 drivers/net/ethernet/sfc/falcon/rx.c 	if (!(spec->flags & EF4_FILTER_FLAG_RX) ||
spec              947 drivers/net/ethernet/sfc/falcon/rx.c 	    spec->dmaq_id == EF4_FILTER_RX_DMAQ_ID_DROP)
spec              950 drivers/net/ethernet/sfc/falcon/rx.c 	if (spec->match_flags &
spec              952 drivers/net/ethernet/sfc/falcon/rx.c 	    is_multicast_ether_addr(spec->loc_mac))
spec              955 drivers/net/ethernet/sfc/falcon/rx.c 	if ((spec->match_flags &
spec              958 drivers/net/ethernet/sfc/falcon/rx.c 		if (spec->ether_type == htons(ETH_P_IP) &&
spec              959 drivers/net/ethernet/sfc/falcon/rx.c 		    ipv4_is_multicast(spec->loc_host[0]))
spec              961 drivers/net/ethernet/sfc/falcon/rx.c 		if (spec->ether_type == htons(ETH_P_IPV6) &&
spec              962 drivers/net/ethernet/sfc/falcon/rx.c 		    ((const u8 *)spec->loc_host)[0] == 0xff)
spec             1873 drivers/net/ethernet/sfc/farch.c 	struct efx_farch_filter_spec *spec;
spec             1911 drivers/net/ethernet/sfc/farch.c efx_farch_filter_spec_table_id(const struct efx_farch_filter_spec *spec)
spec             1927 drivers/net/ethernet/sfc/farch.c 	return (spec->type >> 2) + ((spec->flags & EFX_FILTER_FLAG_TX) ? 2 : 0);
spec             1968 drivers/net/ethernet/sfc/farch.c 			table->spec[EFX_FARCH_FILTER_INDEX_UC_DEF].dmaq_id);
spec             1971 drivers/net/ethernet/sfc/farch.c 			!!(table->spec[EFX_FARCH_FILTER_INDEX_UC_DEF].flags &
spec             1975 drivers/net/ethernet/sfc/farch.c 			table->spec[EFX_FARCH_FILTER_INDEX_MC_DEF].dmaq_id);
spec             1978 drivers/net/ethernet/sfc/farch.c 			!!(table->spec[EFX_FARCH_FILTER_INDEX_MC_DEF].flags &
spec             1987 drivers/net/ethernet/sfc/farch.c 			!!(table->spec[EFX_FARCH_FILTER_INDEX_UC_DEF].flags &
spec             1988 drivers/net/ethernet/sfc/farch.c 			   table->spec[EFX_FARCH_FILTER_INDEX_MC_DEF].flags &
spec             2028 drivers/net/ethernet/sfc/farch.c efx_farch_filter_from_gen_spec(struct efx_farch_filter_spec *spec,
spec             2036 drivers/net/ethernet/sfc/farch.c 	spec->priority = gen_spec->priority;
spec             2037 drivers/net/ethernet/sfc/farch.c 	spec->flags = gen_spec->flags;
spec             2038 drivers/net/ethernet/sfc/farch.c 	spec->dmaq_id = gen_spec->dmaq_id;
spec             2060 drivers/net/ethernet/sfc/farch.c 			spec->type = (is_full ? EFX_FARCH_FILTER_TCP_FULL :
spec             2064 drivers/net/ethernet/sfc/farch.c 			spec->type = (is_full ? EFX_FARCH_FILTER_UDP_FULL :
spec             2087 drivers/net/ethernet/sfc/farch.c 		spec->data[0] = ntohl(host1) << 16 | ntohs(port1);
spec             2088 drivers/net/ethernet/sfc/farch.c 		spec->data[1] = ntohs(port2) << 16 | ntohl(host1) >> 16;
spec             2089 drivers/net/ethernet/sfc/farch.c 		spec->data[2] = ntohl(host2);
spec             2098 drivers/net/ethernet/sfc/farch.c 		spec->type = (is_full ? EFX_FARCH_FILTER_MAC_FULL :
spec             2100 drivers/net/ethernet/sfc/farch.c 		spec->data[0] = is_full ? ntohs(gen_spec->outer_vid) : 0;
spec             2101 drivers/net/ethernet/sfc/farch.c 		spec->data[1] = (gen_spec->loc_mac[2] << 24 |
spec             2105 drivers/net/ethernet/sfc/farch.c 		spec->data[2] = (gen_spec->loc_mac[0] << 8 |
spec             2110 drivers/net/ethernet/sfc/farch.c 		spec->type = (is_multicast_ether_addr(gen_spec->loc_mac) ?
spec             2113 drivers/net/ethernet/sfc/farch.c 		memset(spec->data, 0, sizeof(spec->data)); /* ensure equality */
spec             2125 drivers/net/ethernet/sfc/farch.c 			     const struct efx_farch_filter_spec *spec)
spec             2135 drivers/net/ethernet/sfc/farch.c 	gen_spec->priority = spec->priority;
spec             2136 drivers/net/ethernet/sfc/farch.c 	gen_spec->flags = spec->flags;
spec             2137 drivers/net/ethernet/sfc/farch.c 	gen_spec->dmaq_id = spec->dmaq_id;
spec             2139 drivers/net/ethernet/sfc/farch.c 	switch (spec->type) {
spec             2158 drivers/net/ethernet/sfc/farch.c 			(spec->type == EFX_FARCH_FILTER_TCP_FULL ||
spec             2159 drivers/net/ethernet/sfc/farch.c 			 spec->type == EFX_FARCH_FILTER_TCP_WILD) ?
spec             2162 drivers/net/ethernet/sfc/farch.c 		host1 = htonl(spec->data[0] >> 16 | spec->data[1] << 16);
spec             2163 drivers/net/ethernet/sfc/farch.c 		port1 = htons(spec->data[0]);
spec             2164 drivers/net/ethernet/sfc/farch.c 		host2 = htonl(spec->data[2]);
spec             2165 drivers/net/ethernet/sfc/farch.c 		port2 = htons(spec->data[1] >> 16);
spec             2166 drivers/net/ethernet/sfc/farch.c 		if (spec->flags & EFX_FILTER_FLAG_TX) {
spec             2192 drivers/net/ethernet/sfc/farch.c 		gen_spec->loc_mac[0] = spec->data[2] >> 8;
spec             2193 drivers/net/ethernet/sfc/farch.c 		gen_spec->loc_mac[1] = spec->data[2];
spec             2194 drivers/net/ethernet/sfc/farch.c 		gen_spec->loc_mac[2] = spec->data[1] >> 24;
spec             2195 drivers/net/ethernet/sfc/farch.c 		gen_spec->loc_mac[3] = spec->data[1] >> 16;
spec             2196 drivers/net/ethernet/sfc/farch.c 		gen_spec->loc_mac[4] = spec->data[1] >> 8;
spec             2197 drivers/net/ethernet/sfc/farch.c 		gen_spec->loc_mac[5] = spec->data[1];
spec             2198 drivers/net/ethernet/sfc/farch.c 		gen_spec->outer_vid = htons(spec->data[0]);
spec             2204 drivers/net/ethernet/sfc/farch.c 		gen_spec->loc_mac[0] = spec->type == EFX_FARCH_FILTER_MC_DEF;
spec             2215 drivers/net/ethernet/sfc/farch.c 			      struct efx_farch_filter_spec *spec)
spec             2220 drivers/net/ethernet/sfc/farch.c 	spec->priority = EFX_FILTER_PRI_AUTO;
spec             2221 drivers/net/ethernet/sfc/farch.c 	spec->flags = (EFX_FILTER_FLAG_RX |
spec             2224 drivers/net/ethernet/sfc/farch.c 	spec->dmaq_id = 0;
spec             2229 drivers/net/ethernet/sfc/farch.c 				  struct efx_farch_filter_spec *spec)
spec             2233 drivers/net/ethernet/sfc/farch.c 	switch (efx_farch_filter_spec_table_id(spec)) {
spec             2235 drivers/net/ethernet/sfc/farch.c 		bool is_udp = (spec->type == EFX_FARCH_FILTER_UDP_FULL ||
spec             2236 drivers/net/ethernet/sfc/farch.c 			       spec->type == EFX_FARCH_FILTER_UDP_WILD);
spec             2240 drivers/net/ethernet/sfc/farch.c 			!!(spec->flags & EFX_FILTER_FLAG_RX_RSS),
spec             2242 drivers/net/ethernet/sfc/farch.c 			!!(spec->flags & EFX_FILTER_FLAG_RX_SCATTER),
spec             2244 drivers/net/ethernet/sfc/farch.c 			FRF_BZ_RXQ_ID, spec->dmaq_id,
spec             2245 drivers/net/ethernet/sfc/farch.c 			EFX_DWORD_2, spec->data[2],
spec             2246 drivers/net/ethernet/sfc/farch.c 			EFX_DWORD_1, spec->data[1],
spec             2247 drivers/net/ethernet/sfc/farch.c 			EFX_DWORD_0, spec->data[0]);
spec             2253 drivers/net/ethernet/sfc/farch.c 		bool is_wild = spec->type == EFX_FARCH_FILTER_MAC_WILD;
spec             2257 drivers/net/ethernet/sfc/farch.c 			!!(spec->flags & EFX_FILTER_FLAG_RX_RSS),
spec             2259 drivers/net/ethernet/sfc/farch.c 			!!(spec->flags & EFX_FILTER_FLAG_RX_SCATTER),
spec             2260 drivers/net/ethernet/sfc/farch.c 			FRF_CZ_RMFT_RXQ_ID, spec->dmaq_id,
spec             2262 drivers/net/ethernet/sfc/farch.c 			FRF_CZ_RMFT_DEST_MAC_HI, spec->data[2],
spec             2263 drivers/net/ethernet/sfc/farch.c 			FRF_CZ_RMFT_DEST_MAC_LO, spec->data[1],
spec             2264 drivers/net/ethernet/sfc/farch.c 			FRF_CZ_RMFT_VLAN_ID, spec->data[0]);
spec             2270 drivers/net/ethernet/sfc/farch.c 		bool is_wild = spec->type == EFX_FARCH_FILTER_MAC_WILD;
spec             2272 drivers/net/ethernet/sfc/farch.c 				     FRF_CZ_TMFT_TXQ_ID, spec->dmaq_id,
spec             2274 drivers/net/ethernet/sfc/farch.c 				     FRF_CZ_TMFT_SRC_MAC_HI, spec->data[2],
spec             2275 drivers/net/ethernet/sfc/farch.c 				     FRF_CZ_TMFT_SRC_MAC_LO, spec->data[1],
spec             2276 drivers/net/ethernet/sfc/farch.c 				     FRF_CZ_TMFT_VLAN_ID, spec->data[0]);
spec             2277 drivers/net/ethernet/sfc/farch.c 		data3 = is_wild | spec->dmaq_id << 1;
spec             2285 drivers/net/ethernet/sfc/farch.c 	return spec->data[0] ^ spec->data[1] ^ spec->data[2] ^ data3;
spec             2338 drivers/net/ethernet/sfc/farch.c efx_farch_filter_make_id(const struct efx_farch_filter_spec *spec,
spec             2343 drivers/net/ethernet/sfc/farch.c 	range = efx_farch_filter_type_match_pri[spec->type];
spec             2344 drivers/net/ethernet/sfc/farch.c 	if (!(spec->flags & EFX_FILTER_FLAG_RX))
spec             2388 drivers/net/ethernet/sfc/farch.c 	struct efx_farch_filter_spec spec;
spec             2394 drivers/net/ethernet/sfc/farch.c 	rc = efx_farch_filter_from_gen_spec(&spec, gen_spec);
spec             2400 drivers/net/ethernet/sfc/farch.c 	table = &state->table[efx_farch_filter_spec_table_id(&spec)];
spec             2407 drivers/net/ethernet/sfc/farch.c 		   "%s: type %d search_limit=%d", __func__, spec.type,
spec             2408 drivers/net/ethernet/sfc/farch.c 		   table->search_limit[spec.type]);
spec             2415 drivers/net/ethernet/sfc/farch.c 		rep_index = spec.type - EFX_FARCH_FILTER_UC_DEF;
spec             2433 drivers/net/ethernet/sfc/farch.c 		u32 key = efx_farch_filter_build(&filter, &spec);
spec             2436 drivers/net/ethernet/sfc/farch.c 		unsigned int max_rep_depth = table->search_limit[spec.type];
spec             2438 drivers/net/ethernet/sfc/farch.c 			spec.priority <= EFX_FILTER_PRI_HINT ?
spec             2450 drivers/net/ethernet/sfc/farch.c 			} else if (efx_farch_filter_equal(&spec,
spec             2451 drivers/net/ethernet/sfc/farch.c 							  &table->spec[i])) {
spec             2480 drivers/net/ethernet/sfc/farch.c 			&table->spec[rep_index];
spec             2482 drivers/net/ethernet/sfc/farch.c 		if (spec.priority == saved_spec->priority && !replace_equal) {
spec             2486 drivers/net/ethernet/sfc/farch.c 		if (spec.priority < saved_spec->priority) {
spec             2492 drivers/net/ethernet/sfc/farch.c 			spec.flags |= EFX_FILTER_FLAG_RX_OVER_AUTO;
spec             2500 drivers/net/ethernet/sfc/farch.c 	table->spec[ins_index] = spec;
spec             2505 drivers/net/ethernet/sfc/farch.c 		if (table->search_limit[spec.type] < depth) {
spec             2506 drivers/net/ethernet/sfc/farch.c 			table->search_limit[spec.type] = depth;
spec             2507 drivers/net/ethernet/sfc/farch.c 			if (spec.flags & EFX_FILTER_FLAG_TX)
spec             2526 drivers/net/ethernet/sfc/farch.c 		   __func__, spec.type, ins_index, spec.dmaq_id);
spec             2527 drivers/net/ethernet/sfc/farch.c 	rc = efx_farch_filter_make_id(&spec, ins_index);
spec             2546 drivers/net/ethernet/sfc/farch.c 	memset(&table->spec[filter_idx], 0, sizeof(table->spec[0]));
spec             2570 drivers/net/ethernet/sfc/farch.c 	struct efx_farch_filter_spec *spec = &table->spec[filter_idx];
spec             2573 drivers/net/ethernet/sfc/farch.c 	    spec->priority != priority)
spec             2576 drivers/net/ethernet/sfc/farch.c 	if (spec->flags & EFX_FILTER_FLAG_RX_OVER_AUTO) {
spec             2577 drivers/net/ethernet/sfc/farch.c 		efx_farch_filter_init_rx_auto(efx, spec);
spec             2594 drivers/net/ethernet/sfc/farch.c 	struct efx_farch_filter_spec *spec;
spec             2606 drivers/net/ethernet/sfc/farch.c 	spec = &table->spec[filter_idx];
spec             2621 drivers/net/ethernet/sfc/farch.c 	struct efx_farch_filter_spec *spec;
spec             2635 drivers/net/ethernet/sfc/farch.c 	spec = &table->spec[filter_idx];
spec             2638 drivers/net/ethernet/sfc/farch.c 	    spec->priority == priority) {
spec             2639 drivers/net/ethernet/sfc/farch.c 		efx_farch_filter_to_gen_spec(spec_buf, spec);
spec             2659 drivers/net/ethernet/sfc/farch.c 		if (table->spec[filter_idx].priority != EFX_FILTER_PRI_AUTO)
spec             2695 drivers/net/ethernet/sfc/farch.c 			    table->spec[filter_idx].priority == priority)
spec             2723 drivers/net/ethernet/sfc/farch.c 			    table->spec[filter_idx].priority == priority) {
spec             2729 drivers/net/ethernet/sfc/farch.c 					&table->spec[filter_idx], filter_idx);
spec             2760 drivers/net/ethernet/sfc/farch.c 			efx_farch_filter_build(&filter, &table->spec[filter_idx]);
spec             2779 drivers/net/ethernet/sfc/farch.c 		vfree(state->table[table_id].spec);
spec             2827 drivers/net/ethernet/sfc/farch.c 		table->spec = vzalloc(array_size(sizeof(*table->spec),
spec             2829 drivers/net/ethernet/sfc/farch.c 		if (!table->spec)
spec             2836 drivers/net/ethernet/sfc/farch.c 		struct efx_farch_filter_spec *spec;
spec             2840 drivers/net/ethernet/sfc/farch.c 			spec = &table->spec[i];
spec             2841 drivers/net/ethernet/sfc/farch.c 			spec->type = EFX_FARCH_FILTER_UC_DEF + i;
spec             2842 drivers/net/ethernet/sfc/farch.c 			efx_farch_filter_init_rx_auto(efx, spec);
spec             2874 drivers/net/ethernet/sfc/farch.c 			    table->spec[filter_idx].dmaq_id >=
spec             2879 drivers/net/ethernet/sfc/farch.c 				table->spec[filter_idx].flags |=
spec             2882 drivers/net/ethernet/sfc/farch.c 				table->spec[filter_idx].flags &=
spec             2889 drivers/net/ethernet/sfc/farch.c 			efx_farch_filter_build(&filter, &table->spec[filter_idx]);
spec             2914 drivers/net/ethernet/sfc/farch.c 	    table->spec[index].priority == EFX_FILTER_PRI_HINT) {
spec             2916 drivers/net/ethernet/sfc/farch.c 		struct efx_filter_spec spec;
spec             2918 drivers/net/ethernet/sfc/farch.c 		efx_farch_filter_to_gen_spec(&spec, &table->spec[index]);
spec             2925 drivers/net/ethernet/sfc/farch.c 			rule = efx_rps_hash_find(efx, &spec);
spec             2935 drivers/net/ethernet/sfc/farch.c 		if (force || rps_may_expire_flow(efx->net_dev, spec.dmaq_id,
spec             2939 drivers/net/ethernet/sfc/farch.c 			efx_rps_hash_del(efx, &spec);
spec              178 drivers/net/ethernet/sfc/filter.h static inline void efx_filter_init_rx(struct efx_filter_spec *spec,
spec              183 drivers/net/ethernet/sfc/filter.h 	memset(spec, 0, sizeof(*spec));
spec              184 drivers/net/ethernet/sfc/filter.h 	spec->priority = priority;
spec              185 drivers/net/ethernet/sfc/filter.h 	spec->flags = EFX_FILTER_FLAG_RX | flags;
spec              186 drivers/net/ethernet/sfc/filter.h 	spec->rss_context = 0;
spec              187 drivers/net/ethernet/sfc/filter.h 	spec->dmaq_id = rxq_id;
spec              190 drivers/net/ethernet/sfc/filter.h static inline void efx_filter_init_tx(struct efx_filter_spec *spec,
spec              193 drivers/net/ethernet/sfc/filter.h 	memset(spec, 0, sizeof(*spec));
spec              194 drivers/net/ethernet/sfc/filter.h 	spec->priority = EFX_FILTER_PRI_REQUIRED;
spec              195 drivers/net/ethernet/sfc/filter.h 	spec->flags = EFX_FILTER_FLAG_TX;
spec              196 drivers/net/ethernet/sfc/filter.h 	spec->dmaq_id = txq_id;
spec              207 drivers/net/ethernet/sfc/filter.h efx_filter_set_ipv4_local(struct efx_filter_spec *spec, u8 proto,
spec              210 drivers/net/ethernet/sfc/filter.h 	spec->match_flags |=
spec              213 drivers/net/ethernet/sfc/filter.h 	spec->ether_type = htons(ETH_P_IP);
spec              214 drivers/net/ethernet/sfc/filter.h 	spec->ip_proto = proto;
spec              215 drivers/net/ethernet/sfc/filter.h 	spec->loc_host[0] = host;
spec              216 drivers/net/ethernet/sfc/filter.h 	spec->loc_port = port;
spec              230 drivers/net/ethernet/sfc/filter.h efx_filter_set_ipv4_full(struct efx_filter_spec *spec, u8 proto,
spec              234 drivers/net/ethernet/sfc/filter.h 	spec->match_flags |=
spec              238 drivers/net/ethernet/sfc/filter.h 	spec->ether_type = htons(ETH_P_IP);
spec              239 drivers/net/ethernet/sfc/filter.h 	spec->ip_proto = proto;
spec              240 drivers/net/ethernet/sfc/filter.h 	spec->loc_host[0] = lhost;
spec              241 drivers/net/ethernet/sfc/filter.h 	spec->loc_port = lport;
spec              242 drivers/net/ethernet/sfc/filter.h 	spec->rem_host[0] = rhost;
spec              243 drivers/net/ethernet/sfc/filter.h 	spec->rem_port = rport;
spec              257 drivers/net/ethernet/sfc/filter.h static inline int efx_filter_set_eth_local(struct efx_filter_spec *spec,
spec              264 drivers/net/ethernet/sfc/filter.h 		spec->match_flags |= EFX_FILTER_MATCH_OUTER_VID;
spec              265 drivers/net/ethernet/sfc/filter.h 		spec->outer_vid = htons(vid);
spec              268 drivers/net/ethernet/sfc/filter.h 		spec->match_flags |= EFX_FILTER_MATCH_LOC_MAC;
spec              269 drivers/net/ethernet/sfc/filter.h 		ether_addr_copy(spec->loc_mac, addr);
spec              278 drivers/net/ethernet/sfc/filter.h static inline int efx_filter_set_uc_def(struct efx_filter_spec *spec)
spec              280 drivers/net/ethernet/sfc/filter.h 	spec->match_flags |= EFX_FILTER_MATCH_LOC_MAC_IG;
spec              288 drivers/net/ethernet/sfc/filter.h static inline int efx_filter_set_mc_def(struct efx_filter_spec *spec)
spec              290 drivers/net/ethernet/sfc/filter.h 	spec->match_flags |= EFX_FILTER_MATCH_LOC_MAC_IG;
spec              291 drivers/net/ethernet/sfc/filter.h 	spec->loc_mac[0] = 1;
spec              295 drivers/net/ethernet/sfc/filter.h static inline void efx_filter_set_encap_type(struct efx_filter_spec *spec,
spec              298 drivers/net/ethernet/sfc/filter.h 	spec->match_flags |= EFX_FILTER_MATCH_ENCAP_TYPE;
spec              299 drivers/net/ethernet/sfc/filter.h 	spec->encap_type = encap_type;
spec              303 drivers/net/ethernet/sfc/filter.h 		const struct efx_filter_spec *spec)
spec              305 drivers/net/ethernet/sfc/filter.h 	if (spec->match_flags & EFX_FILTER_MATCH_ENCAP_TYPE)
spec              306 drivers/net/ethernet/sfc/filter.h 		return spec->encap_type;
spec              757 drivers/net/ethernet/sfc/net_driver.h 	struct efx_filter_spec spec;
spec              776 drivers/net/ethernet/sfc/net_driver.h 	struct efx_filter_spec spec;
spec             1354 drivers/net/ethernet/sfc/net_driver.h 			     struct efx_filter_spec *spec, bool replace);
spec              586 drivers/net/ethernet/sfc/nic.h s32 efx_farch_filter_insert(struct efx_nic *efx, struct efx_filter_spec *spec,
spec              839 drivers/net/ethernet/sfc/rx.c 	rc = efx->type->filter_insert(efx, &req->spec, true);
spec              844 drivers/net/ethernet/sfc/rx.c 		rule = efx_rps_hash_find(efx, &req->spec);
spec              869 drivers/net/ethernet/sfc/rx.c 		if (req->spec.ether_type == htons(ETH_P_IP))
spec              872 drivers/net/ethernet/sfc/rx.c 				   (req->spec.ip_proto == IPPROTO_TCP) ? "TCP" : "UDP",
spec              873 drivers/net/ethernet/sfc/rx.c 				   req->spec.rem_host, ntohs(req->spec.rem_port),
spec              874 drivers/net/ethernet/sfc/rx.c 				   req->spec.loc_host, ntohs(req->spec.loc_port),
spec              879 drivers/net/ethernet/sfc/rx.c 				   (req->spec.ip_proto == IPPROTO_TCP) ? "TCP" : "UDP",
spec              880 drivers/net/ethernet/sfc/rx.c 				   req->spec.rem_host, ntohs(req->spec.rem_port),
spec              881 drivers/net/ethernet/sfc/rx.c 				   req->spec.loc_host, ntohs(req->spec.loc_port),
spec              928 drivers/net/ethernet/sfc/rx.c 	efx_filter_init_rx(&req->spec, EFX_FILTER_PRI_HINT,
spec              931 drivers/net/ethernet/sfc/rx.c 	req->spec.match_flags =
spec              935 drivers/net/ethernet/sfc/rx.c 	req->spec.ether_type = fk.basic.n_proto;
spec              936 drivers/net/ethernet/sfc/rx.c 	req->spec.ip_proto = fk.basic.ip_proto;
spec              939 drivers/net/ethernet/sfc/rx.c 		req->spec.rem_host[0] = fk.addrs.v4addrs.src;
spec              940 drivers/net/ethernet/sfc/rx.c 		req->spec.loc_host[0] = fk.addrs.v4addrs.dst;
spec              942 drivers/net/ethernet/sfc/rx.c 		memcpy(req->spec.rem_host, &fk.addrs.v6addrs.src,
spec              944 drivers/net/ethernet/sfc/rx.c 		memcpy(req->spec.loc_host, &fk.addrs.v6addrs.dst,
spec              948 drivers/net/ethernet/sfc/rx.c 	req->spec.rem_port = fk.ports.src;
spec              949 drivers/net/ethernet/sfc/rx.c 	req->spec.loc_port = fk.ports.dst;
spec              954 drivers/net/ethernet/sfc/rx.c 		rule = efx_rps_hash_add(efx, &req->spec, &new);
spec             1039 drivers/net/ethernet/sfc/rx.c bool efx_filter_is_mc_recipient(const struct efx_filter_spec *spec)
spec             1041 drivers/net/ethernet/sfc/rx.c 	if (!(spec->flags & EFX_FILTER_FLAG_RX) ||
spec             1042 drivers/net/ethernet/sfc/rx.c 	    spec->dmaq_id == EFX_FILTER_RX_DMAQ_ID_DROP)
spec             1045 drivers/net/ethernet/sfc/rx.c 	if (spec->match_flags &
spec             1047 drivers/net/ethernet/sfc/rx.c 	    is_multicast_ether_addr(spec->loc_mac))
spec             1050 drivers/net/ethernet/sfc/rx.c 	if ((spec->match_flags &
spec             1053 drivers/net/ethernet/sfc/rx.c 		if (spec->ether_type == htons(ETH_P_IP) &&
spec             1054 drivers/net/ethernet/sfc/rx.c 		    ipv4_is_multicast(spec->loc_host[0]))
spec             1056 drivers/net/ethernet/sfc/rx.c 		if (spec->ether_type == htons(ETH_P_IPV6) &&
spec             1057 drivers/net/ethernet/sfc/rx.c 		    ((const u8 *)spec->loc_host)[0] == 0xff)
spec             1560 drivers/net/wireless/ralink/rt2x00/rt2400pci.c 	struct hw_mode_spec *spec = &rt2x00dev->spec;
spec             1581 drivers/net/wireless/ralink/rt2x00/rt2400pci.c 	spec->supported_bands = SUPPORT_BAND_2GHZ;
spec             1582 drivers/net/wireless/ralink/rt2x00/rt2400pci.c 	spec->supported_rates = SUPPORT_RATE_CCK;
spec             1584 drivers/net/wireless/ralink/rt2x00/rt2400pci.c 	spec->num_channels = ARRAY_SIZE(rf_vals_b);
spec             1585 drivers/net/wireless/ralink/rt2x00/rt2400pci.c 	spec->channels = rf_vals_b;
spec             1590 drivers/net/wireless/ralink/rt2x00/rt2400pci.c 	info = kcalloc(spec->num_channels, sizeof(*info), GFP_KERNEL);
spec             1594 drivers/net/wireless/ralink/rt2x00/rt2400pci.c 	spec->channels_info = info;
spec             1855 drivers/net/wireless/ralink/rt2x00/rt2500pci.c 	struct hw_mode_spec *spec = &rt2x00dev->spec;
spec             1881 drivers/net/wireless/ralink/rt2x00/rt2500pci.c 	spec->supported_bands = SUPPORT_BAND_2GHZ;
spec             1882 drivers/net/wireless/ralink/rt2x00/rt2500pci.c 	spec->supported_rates = SUPPORT_RATE_CCK | SUPPORT_RATE_OFDM;
spec             1885 drivers/net/wireless/ralink/rt2x00/rt2500pci.c 		spec->num_channels = ARRAY_SIZE(rf_vals_bg_2522);
spec             1886 drivers/net/wireless/ralink/rt2x00/rt2500pci.c 		spec->channels = rf_vals_bg_2522;
spec             1888 drivers/net/wireless/ralink/rt2x00/rt2500pci.c 		spec->num_channels = ARRAY_SIZE(rf_vals_bg_2523);
spec             1889 drivers/net/wireless/ralink/rt2x00/rt2500pci.c 		spec->channels = rf_vals_bg_2523;
spec             1891 drivers/net/wireless/ralink/rt2x00/rt2500pci.c 		spec->num_channels = ARRAY_SIZE(rf_vals_bg_2524);
spec             1892 drivers/net/wireless/ralink/rt2x00/rt2500pci.c 		spec->channels = rf_vals_bg_2524;
spec             1894 drivers/net/wireless/ralink/rt2x00/rt2500pci.c 		spec->num_channels = ARRAY_SIZE(rf_vals_bg_2525);
spec             1895 drivers/net/wireless/ralink/rt2x00/rt2500pci.c 		spec->channels = rf_vals_bg_2525;
spec             1897 drivers/net/wireless/ralink/rt2x00/rt2500pci.c 		spec->num_channels = ARRAY_SIZE(rf_vals_bg_2525e);
spec             1898 drivers/net/wireless/ralink/rt2x00/rt2500pci.c 		spec->channels = rf_vals_bg_2525e;
spec             1900 drivers/net/wireless/ralink/rt2x00/rt2500pci.c 		spec->supported_bands |= SUPPORT_BAND_5GHZ;
spec             1901 drivers/net/wireless/ralink/rt2x00/rt2500pci.c 		spec->num_channels = ARRAY_SIZE(rf_vals_5222);
spec             1902 drivers/net/wireless/ralink/rt2x00/rt2500pci.c 		spec->channels = rf_vals_5222;
spec             1908 drivers/net/wireless/ralink/rt2x00/rt2500pci.c 	info = kcalloc(spec->num_channels, sizeof(*info), GFP_KERNEL);
spec             1912 drivers/net/wireless/ralink/rt2x00/rt2500pci.c 	spec->channels_info = info;
spec             1920 drivers/net/wireless/ralink/rt2x00/rt2500pci.c 	if (spec->num_channels > 14) {
spec             1921 drivers/net/wireless/ralink/rt2x00/rt2500pci.c 		for (i = 14; i < spec->num_channels; i++) {
spec             1664 drivers/net/wireless/ralink/rt2x00/rt2500usb.c 	struct hw_mode_spec *spec = &rt2x00dev->spec;
spec             1696 drivers/net/wireless/ralink/rt2x00/rt2500usb.c 	spec->supported_bands = SUPPORT_BAND_2GHZ;
spec             1697 drivers/net/wireless/ralink/rt2x00/rt2500usb.c 	spec->supported_rates = SUPPORT_RATE_CCK | SUPPORT_RATE_OFDM;
spec             1700 drivers/net/wireless/ralink/rt2x00/rt2500usb.c 		spec->num_channels = ARRAY_SIZE(rf_vals_bg_2522);
spec             1701 drivers/net/wireless/ralink/rt2x00/rt2500usb.c 		spec->channels = rf_vals_bg_2522;
spec             1703 drivers/net/wireless/ralink/rt2x00/rt2500usb.c 		spec->num_channels = ARRAY_SIZE(rf_vals_bg_2523);
spec             1704 drivers/net/wireless/ralink/rt2x00/rt2500usb.c 		spec->channels = rf_vals_bg_2523;
spec             1706 drivers/net/wireless/ralink/rt2x00/rt2500usb.c 		spec->num_channels = ARRAY_SIZE(rf_vals_bg_2524);
spec             1707 drivers/net/wireless/ralink/rt2x00/rt2500usb.c 		spec->channels = rf_vals_bg_2524;
spec             1709 drivers/net/wireless/ralink/rt2x00/rt2500usb.c 		spec->num_channels = ARRAY_SIZE(rf_vals_bg_2525);
spec             1710 drivers/net/wireless/ralink/rt2x00/rt2500usb.c 		spec->channels = rf_vals_bg_2525;
spec             1712 drivers/net/wireless/ralink/rt2x00/rt2500usb.c 		spec->num_channels = ARRAY_SIZE(rf_vals_bg_2525e);
spec             1713 drivers/net/wireless/ralink/rt2x00/rt2500usb.c 		spec->channels = rf_vals_bg_2525e;
spec             1715 drivers/net/wireless/ralink/rt2x00/rt2500usb.c 		spec->supported_bands |= SUPPORT_BAND_5GHZ;
spec             1716 drivers/net/wireless/ralink/rt2x00/rt2500usb.c 		spec->num_channels = ARRAY_SIZE(rf_vals_5222);
spec             1717 drivers/net/wireless/ralink/rt2x00/rt2500usb.c 		spec->channels = rf_vals_5222;
spec             1723 drivers/net/wireless/ralink/rt2x00/rt2500usb.c 	info = kcalloc(spec->num_channels, sizeof(*info), GFP_KERNEL);
spec             1727 drivers/net/wireless/ralink/rt2x00/rt2500usb.c 	spec->channels_info = info;
spec             1735 drivers/net/wireless/ralink/rt2x00/rt2500usb.c 	if (spec->num_channels > 14) {
spec             1736 drivers/net/wireless/ralink/rt2x00/rt2500usb.c 		for (i = 14; i < spec->num_channels; i++) {
spec             9938 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 	struct hw_mode_spec *spec = &rt2x00dev->spec;
spec             10002 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 	spec->supported_rates = SUPPORT_RATE_CCK | SUPPORT_RATE_OFDM;
spec             10007 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 		spec->num_channels = 14;
spec             10008 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 		spec->channels = rf_vals;
spec             10013 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 		spec->num_channels = ARRAY_SIZE(rf_vals);
spec             10014 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 		spec->channels = rf_vals;
spec             10032 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 		spec->num_channels = 14;
spec             10034 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 			spec->channels = rf_vals_3x_xtal20;
spec             10036 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 			spec->channels = rf_vals_3x;
spec             10040 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 		spec->num_channels = ARRAY_SIZE(rf_vals_7620);
spec             10041 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 		spec->channels = rf_vals_7620;
spec             10046 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 		spec->num_channels = ARRAY_SIZE(rf_vals_3x);
spec             10047 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 		spec->channels = rf_vals_3x;
spec             10051 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 		spec->num_channels = ARRAY_SIZE(rf_vals_3853);
spec             10052 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 		spec->channels = rf_vals_3853;
spec             10058 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 			spec->num_channels = ARRAY_SIZE(rf_vals_5592_xtal40);
spec             10059 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 			spec->channels = rf_vals_5592_xtal40;
spec             10061 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 			spec->num_channels = ARRAY_SIZE(rf_vals_5592_xtal20);
spec             10062 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 			spec->channels = rf_vals_5592_xtal20;
spec             10067 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 	if (WARN_ON_ONCE(!spec->channels))
spec             10070 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 	spec->supported_bands = SUPPORT_BAND_2GHZ;
spec             10071 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 	if (spec->num_channels > 14)
spec             10072 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 		spec->supported_bands |= SUPPORT_BAND_5GHZ;
spec             10078 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 		spec->ht.ht_supported = true;
spec             10080 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 		spec->ht.ht_supported = false;
spec             10082 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 	spec->ht.cap =
spec             10092 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 		spec->ht.cap |= IEEE80211_HT_CAP_TX_STBC;
spec             10094 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 	spec->ht.cap |= rx_chains << IEEE80211_HT_CAP_RX_STBC_SHIFT;
spec             10096 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 	spec->ht.ampdu_factor = (rx_chains > 1) ? 3 : 2;
spec             10097 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 	spec->ht.ampdu_density = 4;
spec             10098 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 	spec->ht.mcs.tx_params = IEEE80211_HT_MCS_TX_DEFINED;
spec             10100 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 		spec->ht.mcs.tx_params |= IEEE80211_HT_MCS_TX_RX_DIFF;
spec             10101 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 		spec->ht.mcs.tx_params |=
spec             10107 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 		spec->ht.mcs.rx_mask[2] = 0xff;
spec             10110 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 		spec->ht.mcs.rx_mask[1] = 0xff;
spec             10113 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 		spec->ht.mcs.rx_mask[0] = 0xff;
spec             10114 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 		spec->ht.mcs.rx_mask[4] = 0x1; /* MCS32 */
spec             10121 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 	info = kcalloc(spec->num_channels, sizeof(*info), GFP_KERNEL);
spec             10125 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 	spec->channels_info = info;
spec             10143 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 	if (spec->num_channels > 14) {
spec             10156 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 		for (i = 14; i < spec->num_channels; i++) {
spec              805 drivers/net/wireless/ralink/rt2x00/rt2x00.h 	struct hw_mode_spec spec;
spec              167 drivers/net/wireless/ralink/rt2x00/rt2x00config.c 	struct hw_mode_spec *spec = &rt2x00dev->spec;
spec              174 drivers/net/wireless/ralink/rt2x00/rt2x00config.c 	center_channel = spec->channels[conf->chandef.chan->hw_value].channel;
spec              184 drivers/net/wireless/ralink/rt2x00/rt2x00config.c 	for (i = 0; i < spec->num_channels; i++)
spec              185 drivers/net/wireless/ralink/rt2x00/rt2x00config.c 		if (spec->channels[i].channel == center_channel)
spec              221 drivers/net/wireless/ralink/rt2x00/rt2x00config.c 		       &rt2x00dev->spec.channels[hw_value],
spec              225 drivers/net/wireless/ralink/rt2x00/rt2x00config.c 		       &rt2x00dev->spec.channels_info[hw_value],
spec             1007 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c 				    struct hw_mode_spec *spec)
spec             1016 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c 	if (spec->supported_rates & SUPPORT_RATE_CCK)
spec             1018 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c 	if (spec->supported_rates & SUPPORT_RATE_OFDM)
spec             1021 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c 	channels = kcalloc(spec->num_channels, sizeof(*channels), GFP_KERNEL);
spec             1038 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c 	for (i = 0; i < spec->num_channels; i++) {
spec             1040 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c 				  spec->channels[i].channel,
spec             1041 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c 				  spec->channels_info[i].max_power, i);
spec             1049 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c 	if (spec->supported_bands & SUPPORT_BAND_2GHZ) {
spec             1057 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c 		       &spec->ht, sizeof(spec->ht));
spec             1065 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c 	if (spec->supported_bands & SUPPORT_BAND_5GHZ) {
spec             1067 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c 		    spec->num_channels - 14;
spec             1075 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c 		       &spec->ht, sizeof(spec->ht));
spec             1098 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c 	kfree(rt2x00dev->spec.channels_info);
spec             1103 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c 	struct hw_mode_spec *spec = &rt2x00dev->spec;
spec             1112 drivers/net/wireless/ralink/rt2x00/rt2x00dev.c 	status = rt2x00lib_probe_hw_modes(rt2x00dev, spec);
spec             2653 drivers/net/wireless/ralink/rt2x00/rt61pci.c 	struct hw_mode_spec *spec = &rt2x00dev->spec;
spec             2692 drivers/net/wireless/ralink/rt2x00/rt61pci.c 	spec->supported_bands = SUPPORT_BAND_2GHZ;
spec             2693 drivers/net/wireless/ralink/rt2x00/rt61pci.c 	spec->supported_rates = SUPPORT_RATE_CCK | SUPPORT_RATE_OFDM;
spec             2696 drivers/net/wireless/ralink/rt2x00/rt61pci.c 		spec->num_channels = 14;
spec             2697 drivers/net/wireless/ralink/rt2x00/rt61pci.c 		spec->channels = rf_vals_noseq;
spec             2699 drivers/net/wireless/ralink/rt2x00/rt61pci.c 		spec->num_channels = 14;
spec             2700 drivers/net/wireless/ralink/rt2x00/rt61pci.c 		spec->channels = rf_vals_seq;
spec             2704 drivers/net/wireless/ralink/rt2x00/rt61pci.c 		spec->supported_bands |= SUPPORT_BAND_5GHZ;
spec             2705 drivers/net/wireless/ralink/rt2x00/rt61pci.c 		spec->num_channels = ARRAY_SIZE(rf_vals_seq);
spec             2711 drivers/net/wireless/ralink/rt2x00/rt61pci.c 	info = kcalloc(spec->num_channels, sizeof(*info), GFP_KERNEL);
spec             2715 drivers/net/wireless/ralink/rt2x00/rt61pci.c 	spec->channels_info = info;
spec             2723 drivers/net/wireless/ralink/rt2x00/rt61pci.c 	if (spec->num_channels > 14) {
spec             2725 drivers/net/wireless/ralink/rt2x00/rt61pci.c 		for (i = 14; i < spec->num_channels; i++) {
spec             2091 drivers/net/wireless/ralink/rt2x00/rt73usb.c 	struct hw_mode_spec *spec = &rt2x00dev->spec;
spec             2117 drivers/net/wireless/ralink/rt2x00/rt73usb.c 	spec->supported_bands = SUPPORT_BAND_2GHZ;
spec             2118 drivers/net/wireless/ralink/rt2x00/rt73usb.c 	spec->supported_rates = SUPPORT_RATE_CCK | SUPPORT_RATE_OFDM;
spec             2121 drivers/net/wireless/ralink/rt2x00/rt73usb.c 		spec->num_channels = ARRAY_SIZE(rf_vals_bg_2528);
spec             2122 drivers/net/wireless/ralink/rt2x00/rt73usb.c 		spec->channels = rf_vals_bg_2528;
spec             2124 drivers/net/wireless/ralink/rt2x00/rt73usb.c 		spec->supported_bands |= SUPPORT_BAND_5GHZ;
spec             2125 drivers/net/wireless/ralink/rt2x00/rt73usb.c 		spec->num_channels = ARRAY_SIZE(rf_vals_5226);
spec             2126 drivers/net/wireless/ralink/rt2x00/rt73usb.c 		spec->channels = rf_vals_5226;
spec             2128 drivers/net/wireless/ralink/rt2x00/rt73usb.c 		spec->num_channels = 14;
spec             2129 drivers/net/wireless/ralink/rt2x00/rt73usb.c 		spec->channels = rf_vals_5225_2527;
spec             2131 drivers/net/wireless/ralink/rt2x00/rt73usb.c 		spec->supported_bands |= SUPPORT_BAND_5GHZ;
spec             2132 drivers/net/wireless/ralink/rt2x00/rt73usb.c 		spec->num_channels = ARRAY_SIZE(rf_vals_5225_2527);
spec             2133 drivers/net/wireless/ralink/rt2x00/rt73usb.c 		spec->channels = rf_vals_5225_2527;
spec             2139 drivers/net/wireless/ralink/rt2x00/rt73usb.c 	info = kcalloc(spec->num_channels, sizeof(*info), GFP_KERNEL);
spec             2143 drivers/net/wireless/ralink/rt2x00/rt73usb.c 	spec->channels_info = info;
spec             2151 drivers/net/wireless/ralink/rt2x00/rt73usb.c 	if (spec->num_channels > 14) {
spec             2153 drivers/net/wireless/ralink/rt2x00/rt73usb.c 		for (i = 14; i < spec->num_channels; i++) {
spec              499 drivers/perf/xgene_pmu.c 	XGENE_PMU_EVENT_ATTR(rd-req-sent-to-spec-mcu,		0x08),
spec              500 drivers/perf/xgene_pmu.c 	XGENE_PMU_EVENT_ATTR(rd-req-sent-to-spec-mcu-2,		0x09),
spec              501 drivers/perf/xgene_pmu.c 	XGENE_PMU_EVENT_ATTR(glbl-ack-recv-for-rd-sent-to-spec-mcu, 0x0a),
spec              502 drivers/perf/xgene_pmu.c 	XGENE_PMU_EVENT_ATTR(glbl-ack-go-recv-for-rd-sent-to-spec-mcu, 0x0b),
spec              503 drivers/perf/xgene_pmu.c 	XGENE_PMU_EVENT_ATTR(glbl-ack-nogo-recv-for-rd-sent-to-spec-mcu, 0x0c),
spec              165 drivers/platform/x86/asus-wmi.c 	int spec;
spec             2215 drivers/platform/x86/asus-wmi.c 		asus->spec = rv;
spec             1870 drivers/soc/tegra/pmc.c 			struct irq_fwspec spec;
spec             1881 drivers/soc/tegra/pmc.c 			spec.fwnode = &pmc->dev->of_node->fwnode;
spec             1882 drivers/soc/tegra/pmc.c 			spec.param_count = 3;
spec             1883 drivers/soc/tegra/pmc.c 			spec.param[0] = GIC_SPI;
spec             1884 drivers/soc/tegra/pmc.c 			spec.param[1] = event->irq;
spec             1885 drivers/soc/tegra/pmc.c 			spec.param[2] = fwspec->param[1];
spec             1888 drivers/soc/tegra/pmc.c 							   num_irqs, &spec);
spec              309 drivers/soc/tegra/powergate-bpmp.c tegra_powergate_xlate(struct of_phandle_args *spec, void *data)
spec              319 drivers/soc/tegra/powergate-bpmp.c 		if (powergate->id == spec->args[0]) {
spec             2307 drivers/video/fbdev/amifb.c static void __init amifb_setup_mcap(char *spec)
spec             2317 drivers/video/fbdev/amifb.c 	if (!(p = strsep(&spec, ";")) || !*p)
spec             2322 drivers/video/fbdev/amifb.c 	if (!(p = strsep(&spec, ";")) || !*p)
spec             2327 drivers/video/fbdev/amifb.c 	if (!(p = strsep(&spec, ";")) || !*p)
spec             2332 drivers/video/fbdev/amifb.c 	if (!(p = strsep(&spec, "")) || !*p)
spec             2788 drivers/video/fbdev/atafb.c static void __init atafb_setup_ext(char *spec)
spec             2804 drivers/video/fbdev/atafb.c 	p = strsep(&spec, ";");
spec             2811 drivers/video/fbdev/atafb.c 	p = strsep(&spec, ";");
spec             2818 drivers/video/fbdev/atafb.c 	p = strsep(&spec, ";");
spec             2826 drivers/video/fbdev/atafb.c 	p = strsep(&spec, ";");
spec             2840 drivers/video/fbdev/atafb.c 	p = strsep(&spec, ";");
spec             2845 drivers/video/fbdev/atafb.c 	p = strsep(&spec, ";");
spec             2851 drivers/video/fbdev/atafb.c 	p = strsep(&spec, ";");
spec             2855 drivers/video/fbdev/atafb.c 	p = strsep(&spec, ";");
spec             2864 drivers/video/fbdev/atafb.c 	p = strsep(&spec, ";");
spec             2872 drivers/video/fbdev/atafb.c 	p = strsep(&spec, ";");
spec             2905 drivers/video/fbdev/atafb.c static void __init atafb_setup_int(char *spec)
spec             2922 drivers/video/fbdev/atafb.c 	if (!(p = strsep(&spec, ";")) || !*p)
spec             2925 drivers/video/fbdev/atafb.c 	if (!(p = strsep(&spec, ";")) || !*p)
spec             2929 drivers/video/fbdev/atafb.c 	if ((p = strsep(&spec, ";")) && *p)
spec             2931 drivers/video/fbdev/atafb.c 	if ((p = strsep(&spec, ";")) && *p)
spec             2933 drivers/video/fbdev/atafb.c 	if ((p = strsep(&spec, ";")) && *p)
spec             2941 drivers/video/fbdev/atafb.c static void __init atafb_setup_mcap(char *spec)
spec             2950 drivers/video/fbdev/atafb.c 	if (!(p = strsep(&spec, ";")) || !*p)
spec             2955 drivers/video/fbdev/atafb.c 	if (!(p = strsep(&spec, ";")) || !*p)
spec             2960 drivers/video/fbdev/atafb.c 	if (!(p = strsep(&spec, ";")) || !*p)
spec             2965 drivers/video/fbdev/atafb.c 	if (!(p = strsep(&spec, "")) || !*p)
spec             2978 drivers/video/fbdev/atafb.c static void __init atafb_setup_user(char *spec)
spec             2985 drivers/video/fbdev/atafb.c 	p = strsep(&spec, ";");
spec             2989 drivers/video/fbdev/atafb.c 	p = strsep(&spec, ";");
spec             2993 drivers/video/fbdev/atafb.c 	p = strsep(&spec, "");
spec             1149 drivers/video/fbdev/sstfb.c 	struct sst_spec *spec;
spec             1153 drivers/video/fbdev/sstfb.c 	spec = &voodoo_spec[par->type];
spec             1192 drivers/video/fbdev/sstfb.c 	gfx_clock = spec->default_gfx_clock;
spec             1193 drivers/video/fbdev/sstfb.c 	if ((gfxclk >10 ) && (gfxclk < spec->max_gfxclk)) {
spec             1326 drivers/video/fbdev/sstfb.c 	struct sst_spec *spec;
spec             1346 drivers/video/fbdev/sstfb.c 	spec = &voodoo_spec[par->type];
spec             1347 drivers/video/fbdev/sstfb.c 	f_ddprintk("found device : %s\n", spec->name);
spec             1385 drivers/video/fbdev/sstfb.c 	strlcpy(fix->id, spec->name, sizeof(fix->id));
spec               20 drivers/video/fbdev/via/via_aux_edid.c 	struct fb_monspecs *spec = drv->data;
spec               24 drivers/video/fbdev/via/via_aux_edid.c 	if (spec) {
spec               25 drivers/video/fbdev/via/via_aux_edid.c 		fb_destroy_modedb(spec->modedb);
spec               27 drivers/video/fbdev/via/via_aux_edid.c 		spec = kmalloc(sizeof(*spec), GFP_KERNEL);
spec               28 drivers/video/fbdev/via/via_aux_edid.c 		if (!spec)
spec               32 drivers/video/fbdev/via/via_aux_edid.c 	spec->version = spec->revision = 0;
spec               34 drivers/video/fbdev/via/via_aux_edid.c 		fb_edid_to_monspecs(edid, spec);
spec               35 drivers/video/fbdev/via/via_aux_edid.c 		valid = spec->version || spec->revision;
spec               39 drivers/video/fbdev/via/via_aux_edid.c 		kfree(spec);
spec               40 drivers/video/fbdev/via/via_aux_edid.c 		spec = NULL;
spec               42 drivers/video/fbdev/via/via_aux_edid.c 		printk(KERN_DEBUG "EDID: %s %s\n", spec->manufacturer, spec->monitor);
spec               44 drivers/video/fbdev/via/via_aux_edid.c 	drv->data = spec;
spec               49 drivers/video/fbdev/via/via_aux_edid.c 	struct fb_monspecs *spec = drv->data;
spec               52 drivers/video/fbdev/via/via_aux_edid.c 	if (!spec || !spec->modedb || !(spec->misc & FB_MISC_1ST_DETAIL))
spec               55 drivers/video/fbdev/via/via_aux_edid.c 	for (i = 0; i < spec->modedb_len; i++) {
spec               56 drivers/video/fbdev/via/via_aux_edid.c 		if (spec->modedb[i].flag & FB_MODE_IS_FIRST &&
spec               57 drivers/video/fbdev/via/via_aux_edid.c 			spec->modedb[i].flag & FB_MODE_IS_DETAILED)
spec               58 drivers/video/fbdev/via/via_aux_edid.c 			return &spec->modedb[i];
spec               66 drivers/video/fbdev/via/via_aux_edid.c 	struct fb_monspecs *spec = drv->data;
spec               68 drivers/video/fbdev/via/via_aux_edid.c 	if (spec)
spec               69 drivers/video/fbdev/via/via_aux_edid.c 		fb_destroy_modedb(spec->modedb);
spec              408 fs/crypto/fscrypt_private.h 				const struct fscrypt_key_specifier *spec)
spec              410 fs/crypto/fscrypt_private.h 	switch (spec->type) {
spec              419 fs/crypto/fscrypt_private.h static inline int master_key_spec_len(const struct fscrypt_key_specifier *spec)
spec              421 fs/crypto/fscrypt_private.h 	switch (spec->type) {
spec               53 fs/crypto/keyring.c static inline bool valid_key_spec(const struct fscrypt_key_specifier *spec)
spec               55 fs/crypto/keyring.c 	if (spec->__reserved)
spec               57 fs/crypto/keyring.c 	return master_key_spec_len(spec) != 0;
spec             2141 fs/ocfs2/dlmglue.c static u64 ocfs2_pack_timespec(struct timespec64 *spec)
spec             2144 fs/ocfs2/dlmglue.c 	u64 sec = clamp_t(time64_t, spec->tv_sec, 0, 0x3ffffffffull);
spec             2145 fs/ocfs2/dlmglue.c 	u32 nsec = spec->tv_nsec;
spec             2194 fs/ocfs2/dlmglue.c static void ocfs2_unpack_timespec(struct timespec64 *spec,
spec             2197 fs/ocfs2/dlmglue.c 	spec->tv_sec = packed_time >> OCFS2_SEC_SHIFT;
spec             2198 fs/ocfs2/dlmglue.c 	spec->tv_nsec = packed_time & OCFS2_NSEC_MASK;
spec              168 fs/romfs/super.c 		offset = be32_to_cpu(ri.spec) & ROMFH_MASK;
spec              198 fs/romfs/super.c 			ino = be32_to_cpu(ri.spec);
spec              229 fs/romfs/super.c 	offset = be32_to_cpu(ri.spec) & ROMFH_MASK;
spec              250 fs/romfs/super.c 				offset = be32_to_cpu(ri.spec) & ROMFH_MASK;
spec              301 fs/romfs/super.c 		pos = be32_to_cpu(ri.spec) & ROMFH_MASK;
spec              352 fs/romfs/super.c 		nextfh = be32_to_cpu(ri.spec);
spec               28 include/linux/interconnect-provider.h struct icc_node *of_icc_xlate_onecell(struct of_phandle_args *spec,
spec               53 include/linux/interconnect-provider.h 	struct icc_node* (*xlate)(struct of_phandle_args *spec, void *data);
spec              217 include/linux/mlx5/fs.h 		    const struct mlx5_flow_spec *spec,
spec             2332 include/linux/mm.h 				   const struct vm_special_mapping *spec);
spec             2097 include/rdma/ib_verbs.h 	union ib_flow_spec		spec;
spec              272 include/sound/ac97_codec.h 	} spec;
spec              194 include/sound/hda_codec.h 	void *spec;
spec               74 include/uapi/linux/atmbr2684.h 	} spec;
spec               37 include/uapi/linux/romfs_fs.h 	__be32 spec;
spec              417 lib/vsprintf.c 	     struct printf_spec spec)
spec              423 lib/vsprintf.c 	int need_pfx = ((spec.flags & SPECIAL) && spec.base != 10);
spec              426 lib/vsprintf.c 	int field_width = spec.field_width;
spec              427 lib/vsprintf.c 	int precision = spec.precision;
spec              431 lib/vsprintf.c 	locase = (spec.flags & SMALL);
spec              432 lib/vsprintf.c 	if (spec.flags & LEFT)
spec              433 lib/vsprintf.c 		spec.flags &= ~ZEROPAD;
spec              435 lib/vsprintf.c 	if (spec.flags & SIGN) {
spec              440 lib/vsprintf.c 		} else if (spec.flags & PLUS) {
spec              443 lib/vsprintf.c 		} else if (spec.flags & SPACE) {
spec              449 lib/vsprintf.c 		if (spec.base == 16)
spec              457 lib/vsprintf.c 	if (num < spec.base)
spec              459 lib/vsprintf.c 	else if (spec.base != 10) { /* 8 or 16 */
spec              460 lib/vsprintf.c 		int mask = spec.base - 1;
spec              463 lib/vsprintf.c 		if (spec.base == 16)
spec              478 lib/vsprintf.c 	if (!(spec.flags & (ZEROPAD | LEFT))) {
spec              493 lib/vsprintf.c 		if (spec.base == 16 || !is_zero) {
spec              498 lib/vsprintf.c 		if (spec.base == 16) {
spec              505 lib/vsprintf.c 	if (!(spec.flags & LEFT)) {
spec              506 lib/vsprintf.c 		char c = ' ' + (spec.flags & ZEROPAD);
spec              539 lib/vsprintf.c 	struct printf_spec spec;
spec              541 lib/vsprintf.c 	spec.type = FORMAT_TYPE_PTR;
spec              542 lib/vsprintf.c 	spec.field_width = 2 + 2 * size;	/* 0x + hex */
spec              543 lib/vsprintf.c 	spec.flags = SPECIAL | SMALL | ZEROPAD;
spec              544 lib/vsprintf.c 	spec.base = 16;
spec              545 lib/vsprintf.c 	spec.precision = -1;
spec              547 lib/vsprintf.c 	return number(buf, end, num, spec);
spec              577 lib/vsprintf.c char *widen_string(char *buf, int n, char *end, struct printf_spec spec)
spec              581 lib/vsprintf.c 	if (likely(n >= spec.field_width))
spec              584 lib/vsprintf.c 	spaces = spec.field_width - n;
spec              585 lib/vsprintf.c 	if (!(spec.flags & LEFT)) {
spec              599 lib/vsprintf.c 			    struct printf_spec spec)
spec              602 lib/vsprintf.c 	int lim = spec.precision;
spec              613 lib/vsprintf.c 	return widen_string(buf, len, end, spec);
spec              618 lib/vsprintf.c 			  struct printf_spec spec)
spec              625 lib/vsprintf.c 	if (spec.precision == -1)
spec              626 lib/vsprintf.c 		spec.precision = 2 * sizeof(void *);
spec              628 lib/vsprintf.c 	return string_nocheck(buf, end, s, spec);
spec              648 lib/vsprintf.c 			 struct printf_spec spec)
spec              654 lib/vsprintf.c 		*buf = error_string(*buf, end, err_msg, spec);
spec              663 lib/vsprintf.c 	     struct printf_spec spec)
spec              665 lib/vsprintf.c 	if (check_pointer(&buf, end, s, spec))
spec              668 lib/vsprintf.c 	return string_nocheck(buf, end, s, spec);
spec              673 lib/vsprintf.c 			    struct printf_spec spec)
spec              675 lib/vsprintf.c 	spec.base = 16;
spec              676 lib/vsprintf.c 	spec.flags |= SMALL;
spec              677 lib/vsprintf.c 	if (spec.field_width == -1) {
spec              678 lib/vsprintf.c 		spec.field_width = 2 * sizeof(ptr);
spec              679 lib/vsprintf.c 		spec.flags |= ZEROPAD;
spec              682 lib/vsprintf.c 	return number(buf, end, (unsigned long int)ptr, spec);
spec              744 lib/vsprintf.c 		       struct printf_spec spec)
spec              754 lib/vsprintf.c 		return pointer_string(buf, end, ptr, spec);
spec              759 lib/vsprintf.c 		return pointer_string(buf, end, (const void *)hashval, spec);
spec              763 lib/vsprintf.c 		spec.field_width = 2 * sizeof(ptr);
spec              765 lib/vsprintf.c 		return error_string(buf, end, str, spec);
spec              778 lib/vsprintf.c 	return pointer_string(buf, end, (const void *)hashval, spec);
spec              785 lib/vsprintf.c 			 struct printf_spec spec)
spec              790 lib/vsprintf.c 		return ptr_to_id(buf, end, ptr, spec);
spec              799 lib/vsprintf.c 			if (spec.field_width == -1)
spec              800 lib/vsprintf.c 				spec.field_width = 2 * sizeof(ptr);
spec              801 lib/vsprintf.c 			return error_string(buf, end, "pK-error", spec);
spec              827 lib/vsprintf.c 	return pointer_string(buf, end, ptr, spec);
spec              831 lib/vsprintf.c char *dentry_name(char *buf, char *end, const struct dentry *d, struct printf_spec spec,
spec              849 lib/vsprintf.c 		if (check_pointer(&buf, end, d, spec)) {
spec              864 lib/vsprintf.c 	for (n = 0; n != spec.precision; n++, buf++) {
spec              876 lib/vsprintf.c 	return widen_string(buf, n, end, spec);
spec              881 lib/vsprintf.c 			struct printf_spec spec, const char *fmt)
spec              883 lib/vsprintf.c 	if (check_pointer(&buf, end, f, spec))
spec              886 lib/vsprintf.c 	return dentry_name(buf, end, f->f_path.dentry, spec, fmt);
spec              891 lib/vsprintf.c 		struct printf_spec spec, const char *fmt)
spec              895 lib/vsprintf.c 	if (check_pointer(&buf, end, bdev, spec))
spec              899 lib/vsprintf.c 	buf = string(buf, end, hd->disk_name, spec);
spec              906 lib/vsprintf.c 		buf = number(buf, end, bdev->bd_part->partno, spec);
spec              914 lib/vsprintf.c 		    struct printf_spec spec, const char *fmt)
spec              933 lib/vsprintf.c 	return string_nocheck(buf, end, sym, spec);
spec              971 lib/vsprintf.c 		      struct printf_spec spec, const char *fmt)
spec             1017 lib/vsprintf.c 	if (check_pointer(&buf, end, res, spec))
spec             1067 lib/vsprintf.c 	return string_nocheck(buf, end, sym, spec);
spec             1071 lib/vsprintf.c char *hex_string(char *buf, char *end, u8 *addr, struct printf_spec spec,
spec             1078 lib/vsprintf.c 	if (spec.field_width == 0)
spec             1082 lib/vsprintf.c 	if (check_pointer(&buf, end, addr, spec))
spec             1100 lib/vsprintf.c 	if (spec.field_width > 0)
spec             1101 lib/vsprintf.c 		len = min_t(int, spec.field_width, 64);
spec             1123 lib/vsprintf.c 		    struct printf_spec spec, const char *fmt)
spec             1126 lib/vsprintf.c 	int nr_bits = max_t(int, spec.field_width, 0);
spec             1130 lib/vsprintf.c 	if (check_pointer(&buf, end, bitmap, spec))
spec             1134 lib/vsprintf.c 	spec = (struct printf_spec){ .flags = SMALL | ZEROPAD, .base = 16 };
spec             1157 lib/vsprintf.c 		spec.field_width = DIV_ROUND_UP(chunksz, 4);
spec             1158 lib/vsprintf.c 		buf = number(buf, end, val, spec);
spec             1167 lib/vsprintf.c 			 struct printf_spec spec, const char *fmt)
spec             1169 lib/vsprintf.c 	int nr_bits = max_t(int, spec.field_width, 0);
spec             1174 lib/vsprintf.c 	if (check_pointer(&buf, end, bitmap, spec))
spec             1207 lib/vsprintf.c 			 struct printf_spec spec, const char *fmt)
spec             1215 lib/vsprintf.c 	if (check_pointer(&buf, end, addr, spec))
spec             1243 lib/vsprintf.c 	return string_nocheck(buf, end, mac_addr, spec);
spec             1397 lib/vsprintf.c 		      struct printf_spec spec, const char *fmt)
spec             1406 lib/vsprintf.c 	return string_nocheck(buf, end, ip6_addr, spec);
spec             1411 lib/vsprintf.c 		      struct printf_spec spec, const char *fmt)
spec             1417 lib/vsprintf.c 	return string_nocheck(buf, end, ip4_addr, spec);
spec             1422 lib/vsprintf.c 			 struct printf_spec spec, const char *fmt)
spec             1466 lib/vsprintf.c 		p = number(p, pend, ntohs(sa->sin6_port), spec);
spec             1471 lib/vsprintf.c 					  IPV6_FLOWINFO_MASK), spec);
spec             1475 lib/vsprintf.c 		p = number(p, pend, sa->sin6_scope_id, spec);
spec             1479 lib/vsprintf.c 	return string_nocheck(buf, end, ip6_addr, spec);
spec             1484 lib/vsprintf.c 			 struct printf_spec spec, const char *fmt)
spec             1510 lib/vsprintf.c 		p = number(p, pend, ntohs(sa->sin_port), spec);
spec             1514 lib/vsprintf.c 	return string_nocheck(buf, end, ip4_addr, spec);
spec             1519 lib/vsprintf.c 		     struct printf_spec spec, const char *fmt)
spec             1523 lib/vsprintf.c 	if (check_pointer(&buf, end, ptr, spec))
spec             1528 lib/vsprintf.c 		return ip6_addr_string(buf, end, ptr, spec, fmt);
spec             1530 lib/vsprintf.c 		return ip4_addr_string(buf, end, ptr, spec, fmt);
spec             1540 lib/vsprintf.c 			return ip4_addr_string_sa(buf, end, &sa->v4, spec, fmt);
spec             1542 lib/vsprintf.c 			return ip6_addr_string_sa(buf, end, &sa->v6, spec, fmt);
spec             1544 lib/vsprintf.c 			return error_string(buf, end, "(einval)", spec);
spec             1549 lib/vsprintf.c 	return error_string(buf, end, err_fmt_msg, spec);
spec             1553 lib/vsprintf.c char *escaped_string(char *buf, char *end, u8 *addr, struct printf_spec spec,
spec             1561 lib/vsprintf.c 	if (spec.field_width == 0)
spec             1564 lib/vsprintf.c 	if (check_pointer(&buf, end, addr, spec))
spec             1599 lib/vsprintf.c 	len = spec.field_width < 0 ? 1 : spec.field_width;
spec             1612 lib/vsprintf.c 		       struct printf_spec spec, const char *fmt)
spec             1616 lib/vsprintf.c 	if (check_pointer(&buf, end, va_fmt, spec))
spec             1628 lib/vsprintf.c 		  struct printf_spec spec, const char *fmt)
spec             1636 lib/vsprintf.c 	if (check_pointer(&buf, end, addr, spec))
spec             1667 lib/vsprintf.c 	return string_nocheck(buf, end, uuid, spec);
spec             1672 lib/vsprintf.c 		  struct printf_spec spec,  const char *fmt)
spec             1677 lib/vsprintf.c 	if (check_pointer(&buf, end, addr, spec))
spec             1686 lib/vsprintf.c 		return error_string(buf, end, "(%pN?)", spec);
spec             1694 lib/vsprintf.c 		  struct printf_spec spec, const char *fmt)
spec             1699 lib/vsprintf.c 	if (check_pointer(&buf, end, addr, spec))
spec             1754 lib/vsprintf.c 	      struct printf_spec spec, const char *fmt)
spec             1760 lib/vsprintf.c 	if (check_pointer(&buf, end, tm, spec))
spec             1791 lib/vsprintf.c char *time_and_date(char *buf, char *end, void *ptr, struct printf_spec spec,
spec             1796 lib/vsprintf.c 		return rtc_str(buf, end, (const struct rtc_time *)ptr, spec, fmt);
spec             1798 lib/vsprintf.c 		return error_string(buf, end, "(%ptR?)", spec);
spec             1803 lib/vsprintf.c char *clock(char *buf, char *end, struct clk *clk, struct printf_spec spec,
spec             1807 lib/vsprintf.c 		return error_string(buf, end, "(%pC?)", spec);
spec             1809 lib/vsprintf.c 	if (check_pointer(&buf, end, clk, spec))
spec             1816 lib/vsprintf.c 		return string(buf, end, __clk_get_name(clk), spec);
spec             1818 lib/vsprintf.c 		return ptr_to_id(buf, end, clk, spec);
spec             1852 lib/vsprintf.c 		   struct printf_spec spec, const char *fmt)
spec             1857 lib/vsprintf.c 	if (check_pointer(&buf, end, flags_ptr, spec))
spec             1876 lib/vsprintf.c 		return error_string(buf, end, "(%pG?)", spec);
spec             1913 lib/vsprintf.c 			 struct printf_spec spec, const char *fmt)
spec             1928 lib/vsprintf.c 	struct printf_spec str_spec = spec;
spec             1932 lib/vsprintf.c 		return error_string(buf, end, "(%pOF?)", spec);
spec             1934 lib/vsprintf.c 	if (check_pointer(&buf, end, dn, spec))
spec             2000 lib/vsprintf.c 	return widen_string(buf, buf - buf_start, end, spec);
spec             2004 lib/vsprintf.c 			    struct printf_spec spec, const char *fmt)
spec             2008 lib/vsprintf.c 		return device_node_string(buf, end, ptr, spec, fmt + 1);
spec             2011 lib/vsprintf.c 	return error_string(buf, end, "(%pO?)", spec);
spec             2128 lib/vsprintf.c 	      struct printf_spec spec)
spec             2138 lib/vsprintf.c 		return symbol_string(buf, end, ptr, spec, fmt);
spec             2141 lib/vsprintf.c 		return resource_string(buf, end, ptr, spec, fmt);
spec             2143 lib/vsprintf.c 		return hex_string(buf, end, ptr, spec, fmt);
spec             2147 lib/vsprintf.c 			return bitmap_list_string(buf, end, ptr, spec, fmt);
spec             2149 lib/vsprintf.c 			return bitmap_string(buf, end, ptr, spec, fmt);
spec             2155 lib/vsprintf.c 		return mac_address_string(buf, end, ptr, spec, fmt);
spec             2165 lib/vsprintf.c 		return ip_addr_string(buf, end, ptr, spec, fmt);
spec             2167 lib/vsprintf.c 		return escaped_string(buf, end, ptr, spec, fmt);
spec             2169 lib/vsprintf.c 		return uuid_string(buf, end, ptr, spec, fmt);
spec             2171 lib/vsprintf.c 		return va_format(buf, end, ptr, spec, fmt);
spec             2173 lib/vsprintf.c 		return restricted_pointer(buf, end, ptr, spec);
spec             2175 lib/vsprintf.c 		return netdev_bits(buf, end, ptr, spec, fmt);
spec             2177 lib/vsprintf.c 		return address_val(buf, end, ptr, spec, fmt);
spec             2179 lib/vsprintf.c 		return dentry_name(buf, end, ptr, spec, fmt);
spec             2181 lib/vsprintf.c 		return time_and_date(buf, end, ptr, spec, fmt);
spec             2183 lib/vsprintf.c 		return clock(buf, end, ptr, spec, fmt);
spec             2185 lib/vsprintf.c 		return file_dentry_name(buf, end, ptr, spec, fmt);
spec             2188 lib/vsprintf.c 		return bdev_name(buf, end, ptr, spec, fmt);
spec             2192 lib/vsprintf.c 		return flags_string(buf, end, ptr, spec, fmt);
spec             2194 lib/vsprintf.c 		return kobject_string(buf, end, ptr, spec, fmt);
spec             2196 lib/vsprintf.c 		return pointer_string(buf, end, ptr, spec);
spec             2200 lib/vsprintf.c 	return ptr_to_id(buf, end, ptr, spec);
spec             2225 lib/vsprintf.c int format_decode(const char *fmt, struct printf_spec *spec)
spec             2231 lib/vsprintf.c 	if (spec->type == FORMAT_TYPE_WIDTH) {
spec             2232 lib/vsprintf.c 		if (spec->field_width < 0) {
spec             2233 lib/vsprintf.c 			spec->field_width = -spec->field_width;
spec             2234 lib/vsprintf.c 			spec->flags |= LEFT;
spec             2236 lib/vsprintf.c 		spec->type = FORMAT_TYPE_NONE;
spec             2241 lib/vsprintf.c 	if (spec->type == FORMAT_TYPE_PRECISION) {
spec             2242 lib/vsprintf.c 		if (spec->precision < 0)
spec             2243 lib/vsprintf.c 			spec->precision = 0;
spec             2245 lib/vsprintf.c 		spec->type = FORMAT_TYPE_NONE;
spec             2250 lib/vsprintf.c 	spec->type = FORMAT_TYPE_NONE;
spec             2262 lib/vsprintf.c 	spec->flags = 0;
spec             2270 lib/vsprintf.c 		case '-': spec->flags |= LEFT;    break;
spec             2271 lib/vsprintf.c 		case '+': spec->flags |= PLUS;    break;
spec             2272 lib/vsprintf.c 		case ' ': spec->flags |= SPACE;   break;
spec             2273 lib/vsprintf.c 		case '#': spec->flags |= SPECIAL; break;
spec             2274 lib/vsprintf.c 		case '0': spec->flags |= ZEROPAD; break;
spec             2283 lib/vsprintf.c 	spec->field_width = -1;
spec             2286 lib/vsprintf.c 		spec->field_width = skip_atoi(&fmt);
spec             2289 lib/vsprintf.c 		spec->type = FORMAT_TYPE_WIDTH;
spec             2295 lib/vsprintf.c 	spec->precision = -1;
spec             2299 lib/vsprintf.c 			spec->precision = skip_atoi(&fmt);
spec             2300 lib/vsprintf.c 			if (spec->precision < 0)
spec             2301 lib/vsprintf.c 				spec->precision = 0;
spec             2304 lib/vsprintf.c 			spec->type = FORMAT_TYPE_PRECISION;
spec             2327 lib/vsprintf.c 	spec->base = 10;
spec             2330 lib/vsprintf.c 		spec->type = FORMAT_TYPE_CHAR;
spec             2334 lib/vsprintf.c 		spec->type = FORMAT_TYPE_STR;
spec             2338 lib/vsprintf.c 		spec->type = FORMAT_TYPE_PTR;
spec             2342 lib/vsprintf.c 		spec->type = FORMAT_TYPE_PERCENT_CHAR;
spec             2347 lib/vsprintf.c 		spec->base = 8;
spec             2351 lib/vsprintf.c 		spec->flags |= SMALL;
spec             2355 lib/vsprintf.c 		spec->base = 16;
spec             2360 lib/vsprintf.c 		spec->flags |= SIGN;
spec             2374 lib/vsprintf.c 		spec->type = FORMAT_TYPE_INVALID;
spec             2379 lib/vsprintf.c 		spec->type = FORMAT_TYPE_LONG_LONG;
spec             2382 lib/vsprintf.c 		spec->type = FORMAT_TYPE_ULONG + (spec->flags & SIGN);
spec             2384 lib/vsprintf.c 		spec->type = FORMAT_TYPE_SIZE_T;
spec             2386 lib/vsprintf.c 		spec->type = FORMAT_TYPE_PTRDIFF;
spec             2389 lib/vsprintf.c 		spec->type = FORMAT_TYPE_UBYTE + (spec->flags & SIGN);
spec             2392 lib/vsprintf.c 		spec->type = FORMAT_TYPE_USHORT + (spec->flags & SIGN);
spec             2395 lib/vsprintf.c 		spec->type = FORMAT_TYPE_UINT + (spec->flags & SIGN);
spec             2402 lib/vsprintf.c set_field_width(struct printf_spec *spec, int width)
spec             2404 lib/vsprintf.c 	spec->field_width = width;
spec             2405 lib/vsprintf.c 	if (WARN_ONCE(spec->field_width != width, "field width %d too large", width)) {
spec             2406 lib/vsprintf.c 		spec->field_width = clamp(width, -FIELD_WIDTH_MAX, FIELD_WIDTH_MAX);
spec             2411 lib/vsprintf.c set_precision(struct printf_spec *spec, int prec)
spec             2413 lib/vsprintf.c 	spec->precision = prec;
spec             2414 lib/vsprintf.c 	if (WARN_ONCE(spec->precision != prec, "precision %d too large", prec)) {
spec             2415 lib/vsprintf.c 		spec->precision = clamp(prec, 0, PRECISION_MAX);
spec             2451 lib/vsprintf.c 	struct printf_spec spec = {0};
spec             2469 lib/vsprintf.c 		int read = format_decode(fmt, &spec);
spec             2473 lib/vsprintf.c 		switch (spec.type) {
spec             2486 lib/vsprintf.c 			set_field_width(&spec, va_arg(args, int));
spec             2490 lib/vsprintf.c 			set_precision(&spec, va_arg(args, int));
spec             2496 lib/vsprintf.c 			if (!(spec.flags & LEFT)) {
spec             2497 lib/vsprintf.c 				while (--spec.field_width > 0) {
spec             2508 lib/vsprintf.c 			while (--spec.field_width > 0) {
spec             2517 lib/vsprintf.c 			str = string(str, end, va_arg(args, char *), spec);
spec             2522 lib/vsprintf.c 				      spec);
spec             2545 lib/vsprintf.c 			switch (spec.type) {
spec             2556 lib/vsprintf.c 				if (spec.flags & SIGN)
spec             2583 lib/vsprintf.c 			str = number(str, end, num, spec);
spec             2752 lib/vsprintf.c 	struct printf_spec spec = {0};
spec             2784 lib/vsprintf.c 		int read = format_decode(fmt, &spec);
spec             2788 lib/vsprintf.c 		switch (spec.type) {
spec             2800 lib/vsprintf.c 				set_field_width(&spec, width);
spec             2841 lib/vsprintf.c 					      spec);
spec             2853 lib/vsprintf.c 			switch (spec.type) {
spec             2912 lib/vsprintf.c 	struct printf_spec spec = {0};
spec             2945 lib/vsprintf.c 		int read = format_decode(fmt, &spec);
spec             2949 lib/vsprintf.c 		switch (spec.type) {
spec             2962 lib/vsprintf.c 			set_field_width(&spec, get_arg(int));
spec             2966 lib/vsprintf.c 			set_precision(&spec, get_arg(int));
spec             2972 lib/vsprintf.c 			if (!(spec.flags & LEFT)) {
spec             2973 lib/vsprintf.c 				while (--spec.field_width > 0) {
spec             2983 lib/vsprintf.c 			while (--spec.field_width > 0) {
spec             2994 lib/vsprintf.c 			str = string(str, end, (char *)str_arg, spec);
spec             3027 lib/vsprintf.c 				str = pointer(fmt, str, end, get_arg(void *), spec);
spec             3046 lib/vsprintf.c 			switch (spec.type) {
spec             3080 lib/vsprintf.c 			str = number(str, end, num, spec);
spec             3450 mm/mmap.c      	unsigned long vm_flags, const struct vm_special_mapping *spec)
spec             3452 mm/mmap.c      	return __install_special_mapping(mm, addr, len, vm_flags, (void *)spec,
spec              369 mm/vmpressure.c 	char *spec, *spec_orig;
spec              373 mm/vmpressure.c 	spec_orig = spec = kstrndup(args, MAX_VMPRESSURE_ARGS_LEN, GFP_KERNEL);
spec              374 mm/vmpressure.c 	if (!spec) {
spec              380 mm/vmpressure.c 	token = strsep(&spec, ",");
spec              387 mm/vmpressure.c 	token = strsep(&spec, ",");
spec              132 net/atm/br2684.c 			if (BRPRIV(net_dev)->number == s->spec.devnum)
spec              139 net/atm/br2684.c 			if (!strncmp(net_dev->name, s->spec.ifname, IFNAMSIZ))
spec              202 sound/firewire/bebob/bebob.c 	if (bebob->spec == &maudio_special_spec) {
spec              250 sound/firewire/bebob/bebob.c 	const struct snd_bebob_spec *spec;
spec              254 sound/firewire/bebob/bebob.c 		spec = get_saffire_spec(unit);
spec              258 sound/firewire/bebob/bebob.c 		spec = NULL;
spec              260 sound/firewire/bebob/bebob.c 		spec = (const struct snd_bebob_spec *)entry->driver_data;
spec              262 sound/firewire/bebob/bebob.c 	if (spec == NULL) {
spec              279 sound/firewire/bebob/bebob.c 	bebob->spec = spec;
spec               90 sound/firewire/bebob/bebob.h 	const struct snd_bebob_spec *spec;
spec              188 sound/firewire/bebob/bebob_focusrite.c 	if (bebob->spec->clock->types == saffirepro_10_clk_src_types)
spec              234 sound/firewire/bebob/bebob_focusrite.c 	const struct snd_bebob_meter_spec *spec = bebob->spec->meter;
spec              239 sound/firewire/bebob/bebob_focusrite.c 	if (spec->labels == saffire_le_meter_labels)
spec              244 sound/firewire/bebob/bebob_focusrite.c 	channels = spec->num * 2;
spec              249 sound/firewire/bebob/bebob_focusrite.c 	if (err >= 0 && spec->labels == saffire_le_meter_labels) {
spec              690 sound/firewire/bebob/bebob_maudio.c 	const struct snd_bebob_meter_spec *spec = bebob->spec->meter;
spec              694 sound/firewire/bebob/bebob_maudio.c 	channels = spec->num * 2;
spec              706 sound/firewire/bebob/bebob_maudio.c 	if (spec->labels == solo_meter_labels) {
spec              136 sound/firewire/bebob/bebob_pcm.c 	const struct snd_bebob_rate_spec *spec = bebob->spec->rate;
spec              160 sound/firewire/bebob/bebob_pcm.c 		err = spec->get(bebob, &sampling_rate);
spec               75 sound/firewire/bebob/bebob_proc.c 	const struct snd_bebob_meter_spec *spec = bebob->spec->meter;
spec               79 sound/firewire/bebob/bebob_proc.c 	if (spec == NULL)
spec               82 sound/firewire/bebob/bebob_proc.c 	channels = spec->num * 2;
spec               88 sound/firewire/bebob/bebob_proc.c 	if (spec->get(bebob, buf, size) < 0)
spec               93 sound/firewire/bebob/bebob_proc.c 			    spec->labels[i / 2], c++, buf[i]);
spec               95 sound/firewire/bebob/bebob_proc.c 		    (strcmp(spec->labels[i / 2],
spec               96 sound/firewire/bebob/bebob_proc.c 			    spec->labels[(i + 1) / 2]) != 0))
spec              140 sound/firewire/bebob/bebob_proc.c 	const struct snd_bebob_rate_spec *rate_spec = bebob->spec->rate;
spec              141 sound/firewire/bebob/bebob_proc.c 	const struct snd_bebob_clock_spec *clk_spec = bebob->spec->clock;
spec              187 sound/firewire/bebob/bebob_proc.c 	if (bebob->spec->meter != NULL)
spec              123 sound/firewire/bebob/bebob_stream.c 	const struct snd_bebob_clock_spec *clk_spec = bebob->spec->clock;
spec              568 sound/firewire/bebob/bebob_stream.c 	err = bebob->spec->rate->get(bebob, &curr_rate);
spec              589 sound/firewire/bebob/bebob_stream.c 		err = bebob->spec->rate->set(bebob, rate);
spec              634 sound/firewire/bebob/bebob_stream.c 			err = bebob->spec->rate->get(bebob, &curr_rate);
spec              659 sound/firewire/bebob/bebob_stream.c 			err = bebob->spec->rate->set(bebob, curr_rate);
spec              870 sound/firewire/bebob/bebob_stream.c 	const struct snd_bebob_clock_spec *clk_spec = bebob->spec->clock;
spec               26 sound/firewire/dice/dice-presonus.c 		const struct dice_presonus_spec *spec;
spec               51 sound/firewire/dice/dice-presonus.c 	memcpy(dice->tx_pcm_chs, entry->spec->tx_pcm_chs,
spec               53 sound/firewire/dice/dice-presonus.c 	memcpy(dice->rx_pcm_chs, entry->spec->rx_pcm_chs,
spec               56 sound/firewire/dice/dice-presonus.c 	if (entry->spec->has_midi) {
spec               62 sound/firewire/dice/dice-tcelectronic.c 		const struct dice_tc_spec *spec;
spec               93 sound/firewire/dice/dice-tcelectronic.c 	memcpy(dice->tx_pcm_chs, entry->spec->tx_pcm_chs,
spec               95 sound/firewire/dice/dice-tcelectronic.c 	memcpy(dice->rx_pcm_chs, entry->spec->rx_pcm_chs,
spec               98 sound/firewire/dice/dice-tcelectronic.c 	if (entry->spec->has_midi) {
spec              104 sound/firewire/fireface/ff-midi.c 			      ff->spec->midi_out_ports, ff->spec->midi_in_ports,
spec              115 sound/firewire/fireface/ff-pcm.c 		pcm_channels = ff->spec->pcm_capture_channels;
spec              119 sound/firewire/fireface/ff-pcm.c 		pcm_channels = ff->spec->pcm_playback_channels;
spec              154 sound/firewire/fireface/ff-pcm.c 	err = ff->spec->protocol->get_clock(ff, &rate, &src);
spec               32 sound/firewire/fireface/ff-proc.c 	ff->spec->protocol->dump_status(ff, buffer);
spec               98 sound/firewire/fireface/ff-protocol-former.c 		count = max(count, ff->spec->pcm_playback_channels[i]);
spec              305 sound/firewire/fireface/ff-protocol-latter.c 	if (index >= ff->spec->midi_in_ports)
spec               35 sound/firewire/fireface/ff-stream.c 	ff->spec->protocol->finish_session(ff);
spec               36 sound/firewire/fireface/ff-stream.c 	ff->spec->protocol->switch_fetching_mode(ff, false);
spec              115 sound/firewire/fireface/ff-stream.c 	err = ff->spec->protocol->get_clock(ff, &curr_rate, &src);
spec              141 sound/firewire/fireface/ff-stream.c 					ff->spec->pcm_capture_channels[mode]);
spec              146 sound/firewire/fireface/ff-stream.c 					ff->spec->pcm_playback_channels[mode]);
spec              150 sound/firewire/fireface/ff-stream.c 		err = ff->spec->protocol->allocate_resources(ff, rate);
spec              178 sound/firewire/fireface/ff-stream.c 		err = ff->spec->protocol->begin_session(ff, rate);
spec              204 sound/firewire/fireface/ff-stream.c 		err = ff->spec->protocol->switch_fetching_mode(ff, true);
spec               77 sound/firewire/fireface/ff-transaction.c 	quad_count = ff->spec->protocol->fill_midi_msg(ff, substream, port);
spec               82 sound/firewire/fireface/ff-transaction.c 		addr = ff->spec->midi_rx_addrs[0];
spec               85 sound/firewire/fireface/ff-transaction.c 		addr = ff->spec->midi_rx_addrs[1];
spec              139 sound/firewire/fireface/ff-transaction.c 	ff->spec->protocol->handle_midi_msg(ff, (unsigned int)offset, buf,
spec              148 sound/firewire/fireface/ff-transaction.c 	ff->async_handler.length = ff->spec->midi_addr_range;
spec              187 sound/firewire/fireface/ff-transaction.c 				  ff->spec->midi_high_addr,
spec              228 sound/firewire/fireface/ff-transaction.c 			   ff->spec->midi_high_addr,
spec               21 sound/firewire/fireface/ff.c 	strcpy(ff->card->shortname, ff->spec->name);
spec               22 sound/firewire/fireface/ff.c 	strcpy(ff->card->mixername, ff->spec->name);
spec               24 sound/firewire/fireface/ff.c 		 "RME %s, GUID %08x%08x at %s, S%d", ff->spec->name,
spec              104 sound/firewire/fireface/ff.c 	ff->spec = (const struct snd_ff_spec *)entry->driver_data;
spec               69 sound/firewire/fireface/ff.h 	const struct snd_ff_spec *spec;
spec              136 sound/firewire/motu/motu-pcm.c 	const struct snd_motu_protocol *const protocol = motu->spec->protocol;
spec               29 sound/firewire/motu/motu-proc.c 	const struct snd_motu_protocol *const protocol = motu->spec->protocol;
spec               46 sound/firewire/motu/motu-proc.c 	const struct snd_motu_protocol *const protocol = motu->spec->protocol;
spec               72 sound/firewire/motu/motu-protocol-v2.c 	if (motu->spec == &snd_motu_spec_traveler) {
spec              136 sound/firewire/motu/motu-protocol-v2.c 	if (motu->spec == &snd_motu_spec_traveler ||
spec              137 sound/firewire/motu/motu-protocol-v2.c 	    motu->spec == &snd_motu_spec_8pre) {
spec              144 sound/firewire/motu/motu-protocol-v2.c 		if (motu->spec == &snd_motu_spec_traveler) {
spec              152 sound/firewire/motu/motu-protocol-v2.c 		} else if (motu->spec == &snd_motu_spec_8pre) {
spec              265 sound/firewire/motu/motu-protocol-v2.c 			     motu->spec->flags, motu->spec->analog_in_ports);
spec              266 sound/firewire/motu/motu-protocol-v2.c 	calculate_differed_part(&motu->tx_packet_formats, motu->spec->flags,
spec              270 sound/firewire/motu/motu-protocol-v2.c 			     motu->spec->flags, motu->spec->analog_out_ports);
spec              271 sound/firewire/motu/motu-protocol-v2.c 	calculate_differed_part(&motu->rx_packet_formats, motu->spec->flags,
spec              289 sound/firewire/motu/motu-protocol-v3.c 			     motu->spec->flags, motu->spec->analog_in_ports);
spec              291 sound/firewire/motu/motu-protocol-v3.c 			motu->spec->flags, data,
spec              296 sound/firewire/motu/motu-protocol-v3.c 			     motu->spec->flags, motu->spec->analog_out_ports);
spec              298 sound/firewire/motu/motu-protocol-v3.c 			motu->spec->flags, data,
spec               40 sound/firewire/motu/motu-stream.c 		if ((motu->spec->flags & SND_MOTU_SPEC_RX_MIDI_2ND_Q) ||
spec               41 sound/firewire/motu/motu-stream.c 		    (motu->spec->flags & SND_MOTU_SPEC_RX_MIDI_3RD_Q))
spec               47 sound/firewire/motu/motu-stream.c 		if ((motu->spec->flags & SND_MOTU_SPEC_TX_MIDI_2ND_Q) ||
spec               48 sound/firewire/motu/motu-stream.c 		    (motu->spec->flags & SND_MOTU_SPEC_TX_MIDI_3RD_Q))
spec               91 sound/firewire/motu/motu-stream.c 	err = motu->spec->protocol->switch_fetching_mode(motu, false);
spec              113 sound/firewire/motu/motu-stream.c 	err = motu->spec->protocol->cache_packet_formats(motu);
spec              117 sound/firewire/motu/motu-stream.c 	if (motu->spec->flags & SND_MOTU_SPEC_TX_MIDI_2ND_Q) {
spec              120 sound/firewire/motu/motu-stream.c 	} else if (motu->spec->flags & SND_MOTU_SPEC_TX_MIDI_3RD_Q) {
spec              125 sound/firewire/motu/motu-stream.c 	if (motu->spec->flags & SND_MOTU_SPEC_RX_MIDI_2ND_Q) {
spec              128 sound/firewire/motu/motu-stream.c 	} else if (motu->spec->flags & SND_MOTU_SPEC_RX_MIDI_3RD_Q) {
spec              141 sound/firewire/motu/motu-stream.c 	err = motu->spec->protocol->get_clock_rate(motu, &curr_rate);
spec              154 sound/firewire/motu/motu-stream.c 		err = motu->spec->protocol->set_clock_rate(motu, rate);
spec              265 sound/firewire/motu/motu-stream.c 		err = motu->spec->protocol->switch_fetching_mode(motu, true);
spec              310 sound/firewire/motu/motu-stream.c 	err = amdtp_motu_init(s, motu->unit, dir, motu->spec->protocol);
spec               45 sound/firewire/motu/motu.c 	strcpy(motu->card->shortname, motu->spec->name);
spec               46 sound/firewire/motu/motu.c 	strcpy(motu->card->mixername, motu->spec->name);
spec               49 sound/firewire/motu/motu.c 		 motu->spec->name, version,
spec               93 sound/firewire/motu/motu.c 	if ((motu->spec->flags & SND_MOTU_SPEC_RX_MIDI_2ND_Q) ||
spec               94 sound/firewire/motu/motu.c 	    (motu->spec->flags & SND_MOTU_SPEC_RX_MIDI_3RD_Q) ||
spec               95 sound/firewire/motu/motu.c 	    (motu->spec->flags & SND_MOTU_SPEC_TX_MIDI_2ND_Q) ||
spec               96 sound/firewire/motu/motu.c 	    (motu->spec->flags & SND_MOTU_SPEC_TX_MIDI_3RD_Q)) {
spec              131 sound/firewire/motu/motu.c 	motu->spec = (const struct snd_motu_spec *)entry->driver_data;
spec               53 sound/firewire/motu/motu.h 	const struct snd_motu_spec *spec;
spec              336 sound/firewire/oxfw/oxfw-scs1x.c 	struct fw_scs1x *scs = oxfw->spec;
spec              379 sound/firewire/oxfw/oxfw-scs1x.c 	oxfw->spec = scs;
spec              149 sound/firewire/oxfw/oxfw-spkr.c 	struct fw_spkr *spkr = oxfw->spec;
spec              160 sound/firewire/oxfw/oxfw-spkr.c 	struct fw_spkr *spkr = oxfw->spec;
spec              182 sound/firewire/oxfw/oxfw-spkr.c 	struct fw_spkr *spkr = oxfw->spec;
spec              198 sound/firewire/oxfw/oxfw-spkr.c 	struct fw_spkr *spkr = oxfw->spec;
spec              211 sound/firewire/oxfw/oxfw-spkr.c 	struct fw_spkr *spkr = oxfw->spec;
spec              277 sound/firewire/oxfw/oxfw-spkr.c 	oxfw->spec = spkr;
spec               65 sound/firewire/oxfw/oxfw.h 	void *spec;
spec               91 sound/firewire/tascam/tascam-midi.c 			      tscm->spec->midi_playback_ports,
spec               92 sound/firewire/tascam/tascam-midi.c 			      tscm->spec->midi_capture_ports,
spec              109 sound/firewire/tascam/tascam-midi.c 		if (subs->number < tscm->spec->midi_capture_ports) {
spec              124 sound/firewire/tascam/tascam-midi.c 		if (subs->number < tscm->spec->midi_playback_ports) {
spec               21 sound/firewire/tascam/tascam-pcm.c 		pcm_channels = tscm->spec->pcm_capture_analog_channels;
spec               25 sound/firewire/tascam/tascam-pcm.c 		pcm_channels = tscm->spec->pcm_playback_analog_channels;
spec               28 sound/firewire/tascam/tascam-pcm.c 	if (tscm->spec->has_adat)
spec               30 sound/firewire/tascam/tascam-pcm.c 	if (tscm->spec->has_spdif)
spec              149 sound/firewire/tascam/tascam-stream.c 	for (i = 0; i < tscm->spec->pcm_capture_analog_channels; ++i)
spec              151 sound/firewire/tascam/tascam-stream.c 	if (tscm->spec->has_adat)
spec              153 sound/firewire/tascam/tascam-stream.c 	if (tscm->spec->has_spdif)
spec              164 sound/firewire/tascam/tascam-stream.c 	for (i = 0; i < tscm->spec->pcm_playback_analog_channels; ++i)
spec              166 sound/firewire/tascam/tascam-stream.c 	if (tscm->spec->has_adat)
spec              168 sound/firewire/tascam/tascam-stream.c 	if (tscm->spec->has_spdif)
spec              311 sound/firewire/tascam/tascam-stream.c 		pcm_channels = tscm->spec->pcm_capture_analog_channels;
spec              315 sound/firewire/tascam/tascam-stream.c 		pcm_channels = tscm->spec->pcm_playback_analog_channels;
spec              318 sound/firewire/tascam/tascam-stream.c 	if (tscm->spec->has_adat)
spec              320 sound/firewire/tascam/tascam-stream.c 	if (tscm->spec->has_spdif)
spec              268 sound/firewire/tascam/tascam-transaction.c 		if (port >= tscm->spec->midi_capture_ports)
spec               72 sound/firewire/tascam/tascam.c 			tscm->spec = &model_specs[i];
spec               76 sound/firewire/tascam/tascam.c 	if (tscm->spec == NULL)
spec               75 sound/firewire/tascam/tascam.h 	const struct snd_tscm_spec *spec;
spec              421 sound/pci/ac97/ac97_codec.c 	old = ac97->spec.ad18xx.pcmreg[codec];
spec              427 sound/pci/ac97/ac97_codec.c 		ac97->spec.ad18xx.pcmreg[codec] = new;
spec              431 sound/pci/ac97/ac97_codec.c 				 ac97->spec.ad18xx.unchained[codec] | ac97->spec.ad18xx.chained[codec]);
spec              897 sound/pci/ac97/ac97_codec.c 	ucontrol->value.integer.value[0] = mask - ((ac97->spec.ad18xx.pcmreg[codec] >> lshift) & mask);
spec              899 sound/pci/ac97/ac97_codec.c 		ucontrol->value.integer.value[1] = mask - ((ac97->spec.ad18xx.pcmreg[codec] >> rshift) & mask);
spec              941 sound/pci/ac97/ac97_codec.c 	ucontrol->value.integer.value[0] = 31 - ((ac97->spec.ad18xx.pcmreg[codec] >> 0) & 31);
spec              942 sound/pci/ac97/ac97_codec.c 	ucontrol->value.integer.value[1] = 31 - ((ac97->spec.ad18xx.pcmreg[codec] >> 8) & 31);
spec             1482 sound/pci/ac97/ac97_codec.c 		ac97->spec.ad18xx.pcmreg[0] = init_val;
spec             1488 sound/pci/ac97/ac97_codec.c 			ac97->spec.ad18xx.pcmreg[1] = init_val;
spec             1499 sound/pci/ac97/ac97_codec.c 			ac97->spec.ad18xx.pcmreg[2] = init_val;
spec             1383 sound/pci/ac97/ac97_patch.c 			if (! ac97->spec.ad18xx.id[codec])
spec             1387 sound/pci/ac97/ac97_patch.c 					     ac97->spec.ad18xx.unchained[codec] | ac97->spec.ad18xx.chained[codec]);
spec             1388 sound/pci/ac97/ac97_patch.c 			ac97->bus->ops->write(ac97, AC97_AD_CODEC_CFG, ac97->spec.ad18xx.codec_cfg[codec]);
spec             1401 sound/pci/ac97/ac97_patch.c 						if (! ac97->spec.ad18xx.id[codec])
spec             1405 sound/pci/ac97/ac97_patch.c 								     ac97->spec.ad18xx.unchained[codec] | ac97->spec.ad18xx.chained[codec]);
spec             1407 sound/pci/ac97/ac97_patch.c 						ac97->bus->ops->write(ac97, AC97_PCM, ac97->spec.ad18xx.pcmreg[codec]);
spec             1465 sound/pci/ac97/ac97_patch.c 	ac97->spec.ad18xx.unchained[idx] = mask;
spec             1466 sound/pci/ac97/ac97_patch.c 	ac97->spec.ad18xx.id[idx] = val;
spec             1467 sound/pci/ac97/ac97_patch.c 	ac97->spec.ad18xx.codec_cfg[idx] = 0x0000;
spec             1483 sound/pci/ac97/ac97_patch.c 	ac97->spec.ad18xx.chained[idx] = cfg_bits[idx];
spec             1484 sound/pci/ac97/ac97_patch.c 	ac97->spec.ad18xx.id[idx] = val;
spec             1485 sound/pci/ac97/ac97_patch.c 	ac97->spec.ad18xx.codec_cfg[idx] = codec_bits ? codec_bits : 0x0004;
spec             1492 sound/pci/ac97/ac97_patch.c 	if (ac97->spec.ad18xx.unchained[cidx1] || ac97->spec.ad18xx.chained[cidx1])
spec             1494 sound/pci/ac97/ac97_patch.c 	if (ac97->spec.ad18xx.unchained[cidx2] || ac97->spec.ad18xx.chained[cidx2])
spec             1500 sound/pci/ac97/ac97_patch.c 			     ac97->spec.ad18xx.unchained[unchained_idx]);
spec             1502 sound/pci/ac97/ac97_patch.c 	ac97->spec.ad18xx.codec_cfg[unchained_idx] = 0x0002;
spec             1544 sound/pci/ac97/ac97_patch.c 		if (ac97->spec.ad18xx.unchained[idx])
spec             1547 sound/pci/ac97/ac97_patch.c 	if (ac97->spec.ad18xx.id[1]) {
spec             1551 sound/pci/ac97/ac97_patch.c 	if (ac97->spec.ad18xx.id[2]) {
spec             1561 sound/pci/ac97/ac97_patch.c 		if (ac97->spec.ad18xx.id[idx])
spec             1566 sound/pci/ac97/ac97_patch.c 		ac97->spec.ad18xx.codec_cfg[0] = 
spec             1567 sound/pci/ac97/ac97_patch.c 			ac97->spec.ad18xx.codec_cfg[1] = 
spec             1568 sound/pci/ac97/ac97_patch.c 			ac97->spec.ad18xx.codec_cfg[2] = 0x0000;
spec             1572 sound/pci/ac97/ac97_patch.c 	if (ac97->spec.ad18xx.id[0]) {
spec             1574 sound/pci/ac97/ac97_patch.c 		ac97->id |= ac97->spec.ad18xx.id[0];
spec             1913 sound/pci/ac97/ac97_patch.c 	if (ac97->spec.ad18xx.lo_as_master)
spec             1925 sound/pci/ac97/ac97_patch.c 	if (ac97->spec.ad18xx.lo_as_master)
spec             1972 sound/pci/ac97/ac97_patch.c 	if (!ac97->spec.ad18xx.lo_as_master && is_shared_linein(ac97))
spec             2009 sound/pci/ac97/ac97_patch.c 	if (!ac97->spec.ad18xx.lo_as_master) {
spec             2041 sound/pci/ac97/ac97_patch.c 		ac97->spec.ad18xx.lo_as_master = 1;
spec             2047 sound/pci/ac97/ac97_patch.c 	if (!ac97->spec.ad18xx.lo_as_master)
spec             2291 sound/pci/ac97/ac97_patch.c 	ucontrol->value.integer.value[0] = ac97->spec.ad18xx.swap_mic_linein;
spec             2301 sound/pci/ac97/ac97_patch.c 	if (swap != ac97->spec.ad18xx.swap_mic_linein) {
spec             2302 sound/pci/ac97/ac97_patch.c 		ac97->spec.ad18xx.swap_mic_linein = swap;
spec             2440 sound/pci/ac97/ac97_patch.c 	else if (ac97->spec.ad18xx.swap_mic_linein != 0)
spec             2450 sound/pci/ac97/ac97_patch.c 	else if (ac97->spec.ad18xx.swap_mic_linein != 0)
spec             2621 sound/pci/ac97/ac97_patch.c 	ac97->spec.dev_flags = (ac97->id == 0x414c4722 ||
spec             2631 sound/pci/ac97/ac97_patch.c 	if (ac97->spec.dev_flags &&
spec             2693 sound/pci/ac97/ac97_patch.c 	if (ac97->spec.dev_flags)
spec             2706 sound/pci/ac97/ac97_patch.c 	if (ac97->spec.dev_flags && val == 3)
spec             2757 sound/pci/ac97/ac97_patch.c 		ac97->spec.dev_flags = 1; /* ALC658 */
spec             2760 sound/pci/ac97/ac97_patch.c 			ac97->spec.dev_flags = 2;
spec             2771 sound/pci/ac97/ac97_patch.c 	if (ac97->spec.dev_flags) /* ALC658 */
spec             2868 sound/pci/ac97/ac97_patch.c 	ac97->spec.dev_flags = 0; /* for IEC958 playback route - ALC655 compatible */
spec             3141 sound/pci/ac97/ac97_patch.c 	val |= surr_on[ac97->spec.dev_flags][is_surround_on(ac97)];
spec             3142 sound/pci/ac97/ac97_patch.c 	val |= clfe_on[ac97->spec.dev_flags][is_clfe_on(ac97)];
spec             3143 sound/pci/ac97/ac97_patch.c 	val |= surr_shared[ac97->spec.dev_flags][is_shared_surrout(ac97)];
spec             3144 sound/pci/ac97/ac97_patch.c 	val |= clfe_shared[ac97->spec.dev_flags][is_shared_clfeout(ac97)];
spec             3237 sound/pci/ac97/ac97_patch.c 	ac97->spec.dev_flags = 0; /* 1 = model 82 revision B, 2 = model 83 */
spec             3244 sound/pci/ac97/ac97_patch.c 		ac97->spec.dev_flags = tmp & 1; /* revision B? */
spec             3247 sound/pci/ac97/ac97_patch.c 		ac97->spec.dev_flags = 2;
spec             3279 sound/pci/ac97/ac97_patch.c 	if (ac97->spec.dev_flags)
spec              336 sound/pci/ac97/ac97_proc.c 			if (ac97->spec.ad18xx.id[idx]) {
spec              339 sound/pci/ac97/ac97_proc.c 						     ac97->spec.ad18xx.unchained[idx] | ac97->spec.ad18xx.chained[idx]);
spec              348 sound/pci/ac97/ac97_proc.c 			ac97->spec.ad18xx.unchained[0],
spec              349 sound/pci/ac97/ac97_proc.c 			ac97->spec.ad18xx.unchained[1],
spec              350 sound/pci/ac97/ac97_proc.c 			ac97->spec.ad18xx.unchained[2]);
spec              352 sound/pci/ac97/ac97_proc.c 			ac97->spec.ad18xx.chained[0],
spec              353 sound/pci/ac97/ac97_proc.c 			ac97->spec.ad18xx.chained[1],
spec              354 sound/pci/ac97/ac97_proc.c 			ac97->spec.ad18xx.chained[2]);
spec              400 sound/pci/ac97/ac97_proc.c 			if (ac97->spec.ad18xx.id[idx]) {
spec              403 sound/pci/ac97/ac97_proc.c 						     ac97->spec.ad18xx.unchained[idx] | ac97->spec.ad18xx.chained[idx]);
spec              770 sound/pci/hda/hda_codec.c 	codec->spec = NULL;
spec               37 sound/pci/hda/hda_generic.c int snd_hda_gen_spec_init(struct hda_gen_spec *spec)
spec               39 sound/pci/hda/hda_generic.c 	snd_array_init(&spec->kctls, sizeof(struct snd_kcontrol_new), 32);
spec               40 sound/pci/hda/hda_generic.c 	snd_array_init(&spec->paths, sizeof(struct nid_path), 8);
spec               41 sound/pci/hda/hda_generic.c 	snd_array_init(&spec->loopback_list, sizeof(struct hda_amp_list), 8);
spec               42 sound/pci/hda/hda_generic.c 	mutex_init(&spec->pcm_mutex);
spec               59 sound/pci/hda/hda_generic.c snd_hda_gen_add_kctl(struct hda_gen_spec *spec, const char *name,
spec               62 sound/pci/hda/hda_generic.c 	struct snd_kcontrol_new *knew = snd_array_new(&spec->kctls);
spec               76 sound/pci/hda/hda_generic.c static void free_kctls(struct hda_gen_spec *spec)
spec               78 sound/pci/hda/hda_generic.c 	if (spec->kctls.list) {
spec               79 sound/pci/hda/hda_generic.c 		struct snd_kcontrol_new *kctl = spec->kctls.list;
spec               81 sound/pci/hda/hda_generic.c 		for (i = 0; i < spec->kctls.used; i++)
spec               84 sound/pci/hda/hda_generic.c 	snd_array_free(&spec->kctls);
spec               87 sound/pci/hda/hda_generic.c static void snd_hda_gen_spec_free(struct hda_gen_spec *spec)
spec               89 sound/pci/hda/hda_generic.c 	if (!spec)
spec               91 sound/pci/hda/hda_generic.c 	free_kctls(spec);
spec               92 sound/pci/hda/hda_generic.c 	snd_array_free(&spec->paths);
spec               93 sound/pci/hda/hda_generic.c 	snd_array_free(&spec->loopback_list);
spec              101 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec              137 sound/pci/hda/hda_generic.c 		spec->suppress_auto_mute = !val;
spec              140 sound/pci/hda/hda_generic.c 		spec->suppress_auto_mic = !val;
spec              143 sound/pci/hda/hda_generic.c 		spec->line_in_auto_switch = !!val;
spec              146 sound/pci/hda/hda_generic.c 		spec->auto_mute_via_amp = !!val;
spec              149 sound/pci/hda/hda_generic.c 		spec->need_dac_fix = !!val;
spec              152 sound/pci/hda/hda_generic.c 		spec->no_primary_hp = !val;
spec              155 sound/pci/hda/hda_generic.c 		spec->no_multi_io = !val;
spec              158 sound/pci/hda/hda_generic.c 		spec->multi_cap_vol = !!val;
spec              161 sound/pci/hda/hda_generic.c 		spec->inv_dmic_split = !!val;
spec              164 sound/pci/hda/hda_generic.c 		spec->indep_hp = !!val;
spec              167 sound/pci/hda/hda_generic.c 		spec->add_stereo_mix_input = !!val;
spec              171 sound/pci/hda/hda_generic.c 		spec->add_jack_modes = !!val;
spec              174 sound/pci/hda/hda_generic.c 		spec->add_jack_modes = !!val;
spec              177 sound/pci/hda/hda_generic.c 		spec->add_jack_modes = !!val;
spec              180 sound/pci/hda/hda_generic.c 		spec->power_down_unused = !!val;
spec              183 sound/pci/hda/hda_generic.c 		spec->hp_mic = !!val;
spec              186 sound/pci/hda/hda_generic.c 		spec->suppress_hp_mic_detect = !val;
spec              189 sound/pci/hda/hda_generic.c 		spec->suppress_vmaster = !val;
spec              192 sound/pci/hda/hda_generic.c 		spec->mixer_nid = val;
spec              254 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec              258 sound/pci/hda/hda_generic.c 	snd_array_for_each(&spec->paths, i, path) {
spec              283 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec              284 sound/pci/hda/hda_generic.c 	struct nid_path *array = spec->paths.list;
spec              287 sound/pci/hda/hda_generic.c 	if (!spec->paths.used)
spec              290 sound/pci/hda/hda_generic.c 	if (idx < 0 || idx >= spec->paths.used)
spec              304 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec              306 sound/pci/hda/hda_generic.c 	if (idx <= 0 || idx > spec->paths.used)
spec              308 sound/pci/hda/hda_generic.c 	return snd_array_elem(&spec->paths, idx - 1);
spec              315 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec              319 sound/pci/hda/hda_generic.c 	snd_array_for_each(&spec->paths, i, path) {
spec              341 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec              346 sound/pci/hda/hda_generic.c 	snd_array_for_each(&spec->paths, i, path) {
spec              474 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec              485 sound/pci/hda/hda_generic.c 	path = snd_array_new(&spec->paths);
spec              492 sound/pci/hda/hda_generic.c 	spec->paths.used--;
spec              509 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec              510 sound/pci/hda/hda_generic.c 	const hda_nid_t *list = spec->preferred_dacs;
spec              524 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec              528 sound/pci/hda/hda_generic.c 	for (i = 0; i < spec->num_all_dacs; i++) {
spec              529 sound/pci/hda/hda_generic.c 		hda_nid_t nid = spec->all_dacs[i];
spec              578 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec              583 sound/pci/hda/hda_generic.c 		if ((spec->out_vol_mask >> nid) & 1)
spec              627 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec              635 sound/pci/hda/hda_generic.c 	snd_array_for_each(&spec->paths, n, path) {
spec              779 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec              804 sound/pci/hda/hda_generic.c 			if (conn[n] != spec->mixer_merge_nid)
spec              876 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec              882 sound/pci/hda/hda_generic.c 	if (enable && (spec->power_down_unused || codec->power_save_node))
spec              903 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec              905 sound/pci/hda/hda_generic.c 	if (!(spec->power_down_unused || codec->power_save_node) || path->active)
spec              913 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec              914 sound/pci/hda/hda_generic.c 	if (spec->own_eapd_ctl ||
spec              917 sound/pci/hda/hda_generic.c 	if (spec->keep_eapd_on && !enable)
spec              973 sound/pci/hda/hda_generic.c add_control(struct hda_gen_spec *spec, int type, const char *name,
spec              978 sound/pci/hda/hda_generic.c 	knew = snd_hda_gen_add_kctl(spec, name, &control_templates[type]);
spec              988 sound/pci/hda/hda_generic.c static int add_control_with_pfx(struct hda_gen_spec *spec, int type,
spec              994 sound/pci/hda/hda_generic.c 	if (!add_control(spec, type, name, cidx, val))
spec              999 sound/pci/hda/hda_generic.c #define add_pb_vol_ctrl(spec, type, pfx, val)			\
spec             1000 sound/pci/hda/hda_generic.c 	add_control_with_pfx(spec, type, pfx, "Playback", "Volume", 0, val)
spec             1001 sound/pci/hda/hda_generic.c #define add_pb_sw_ctrl(spec, type, pfx, val)			\
spec             1002 sound/pci/hda/hda_generic.c 	add_control_with_pfx(spec, type, pfx, "Playback", "Switch", 0, val)
spec             1003 sound/pci/hda/hda_generic.c #define __add_pb_vol_ctrl(spec, type, pfx, cidx, val)			\
spec             1004 sound/pci/hda/hda_generic.c 	add_control_with_pfx(spec, type, pfx, "Playback", "Volume", cidx, val)
spec             1005 sound/pci/hda/hda_generic.c #define __add_pb_sw_ctrl(spec, type, pfx, cidx, val)			\
spec             1006 sound/pci/hda/hda_generic.c 	add_control_with_pfx(spec, type, pfx, "Playback", "Switch", cidx, val)
spec             1018 sound/pci/hda/hda_generic.c 	return __add_pb_vol_ctrl(codec->spec, HDA_CTL_WIDGET_VOL, pfx, cidx, val);
spec             1064 sound/pci/hda/hda_generic.c 	return __add_pb_sw_ctrl(codec->spec, type, pfx, cidx, val);
spec             1079 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             1081 sound/pci/hda/hda_generic.c 	if (spec->auto_mute_via_amp) {
spec             1083 sound/pci/hda/hda_generic.c 		bool enabled = !((spec->mute_bits >> nid) & 1);
spec             1158 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             1159 sound/pci/hda/hda_generic.c 	struct auto_pin_cfg *cfg = &spec->autocfg;
spec             1162 sound/pci/hda/hda_generic.c 	if (cfg->line_outs == 1 && !spec->multi_ios &&
spec             1165 sound/pci/hda/hda_generic.c 		return spec->vmaster_mute.hook ? "PCM" : "Master";
spec             1170 sound/pci/hda/hda_generic.c 	if (spec->multiout.num_dacs == 1 && !spec->mixer_nid &&
spec             1172 sound/pci/hda/hda_generic.c 	    !spec->multiout.hp_out_nid[0] && !spec->multiout.extra_out_nid[0])
spec             1173 sound/pci/hda/hda_generic.c 		return spec->vmaster_mute.hook ? "PCM" : "Master";
spec             1185 sound/pci/hda/hda_generic.c 		    !path_has_mixer(codec, spec->hp_paths[0], ctl_type))
spec             1197 sound/pci/hda/hda_generic.c 		    !path_has_mixer(codec, spec->speaker_paths[0], ctl_type))
spec             1200 sound/pci/hda/hda_generic.c 		if (ch && spec->multi_ios)
spec             1208 sound/pci/hda/hda_generic.c 			bool hp_lo_shared = !path_has_mixer(codec, spec->hp_paths[0], ctl_type);
spec             1209 sound/pci/hda/hda_generic.c 			bool spk_lo_shared = !path_has_mixer(codec, spec->speaker_paths[0], ctl_type);
spec             1211 sound/pci/hda/hda_generic.c 				return spec->vmaster_mute.hook ? "PCM" : "Master";
spec             1220 sound/pci/hda/hda_generic.c 	if (cfg->line_outs == 1 && !spec->multi_ios)
spec             1268 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             1283 sound/pci/hda/hda_generic.c 		if (spec->dac_min_mute)
spec             1331 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             1332 sound/pci/hda/hda_generic.c 	struct auto_pin_cfg *cfg = &spec->autocfg;
spec             1335 sound/pci/hda/hda_generic.c 		return spec->private_dac_nids[idx];
spec             1337 sound/pci/hda/hda_generic.c 	if (spec->multi_ios > idx)
spec             1338 sound/pci/hda/hda_generic.c 		return spec->multi_io[idx].dac;
spec             1355 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             1408 sound/pci/hda/hda_generic.c 			} else if (is_reachable_path(codec, spec->private_dac_nids[0], pin)) {
spec             1409 sound/pci/hda/hda_generic.c 				dac = spec->private_dac_nids[0];
spec             1418 sound/pci/hda/hda_generic.c 		path = snd_hda_add_new_path(codec, dac, pin, -spec->mixer_nid);
spec             1419 sound/pci/hda/hda_generic.c 		if (!path && !i && spec->mixer_nid) {
spec             1440 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             1444 sound/pci/hda/hda_generic.c 	for (i = 0; i < spec->num_all_dacs; i++) {
spec             1445 sound/pci/hda/hda_generic.c 		hda_nid_t nid = spec->all_dacs[i];
spec             1477 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             1478 sound/pci/hda/hda_generic.c 	struct auto_pin_cfg *cfg = &spec->autocfg;
spec             1508 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             1509 sound/pci/hda/hda_generic.c 	struct auto_pin_cfg *cfg = &spec->autocfg;
spec             1516 sound/pci/hda/hda_generic.c 	old_pins = spec->multi_ios;
spec             1533 sound/pci/hda/hda_generic.c 			for (j = 0; j < spec->multi_ios; j++) {
spec             1534 sound/pci/hda/hda_generic.c 				if (nid == spec->multi_io[j].pin)
spec             1537 sound/pci/hda/hda_generic.c 			if (j < spec->multi_ios)
spec             1549 sound/pci/hda/hda_generic.c 						    -spec->mixer_nid);
spec             1555 sound/pci/hda/hda_generic.c 			spec->multi_io[spec->multi_ios].pin = nid;
spec             1556 sound/pci/hda/hda_generic.c 			spec->multi_io[spec->multi_ios].dac = dac;
spec             1557 sound/pci/hda/hda_generic.c 			spec->out_paths[cfg->line_outs + spec->multi_ios] =
spec             1559 sound/pci/hda/hda_generic.c 			spec->multi_ios++;
spec             1560 sound/pci/hda/hda_generic.c 			if (spec->multi_ios >= 2)
spec             1567 sound/pci/hda/hda_generic.c 	if (old_pins == spec->multi_ios) {
spec             1573 sound/pci/hda/hda_generic.c 	if (!hardwired && spec->multi_ios < 2) {
spec             1575 sound/pci/hda/hda_generic.c 		spec->paths.used -= spec->multi_ios - old_pins;
spec             1576 sound/pci/hda/hda_generic.c 		spec->multi_ios = old_pins;
spec             1581 sound/pci/hda/hda_generic.c 	for (i = old_pins; i < spec->multi_ios; i++) {
spec             1582 sound/pci/hda/hda_generic.c 		path = snd_hda_get_path_from_idx(codec, spec->out_paths[cfg->line_outs + i]);
spec             1593 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             1605 sound/pci/hda/hda_generic.c 					    -spec->mixer_nid);
spec             1606 sound/pci/hda/hda_generic.c 		if (!path && !i && spec->mixer_nid)
spec             1619 sound/pci/hda/hda_generic.c static inline bool has_aamix_out_paths(struct hda_gen_spec *spec)
spec             1621 sound/pci/hda/hda_generic.c 	return spec->aamix_out_paths[0] || spec->aamix_out_paths[1] ||
spec             1622 sound/pci/hda/hda_generic.c 		spec->aamix_out_paths[2];
spec             1628 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             1634 sound/pci/hda/hda_generic.c 	    is_nid_contained(path, spec->mixer_nid))
spec             1637 sound/pci/hda/hda_generic.c 	dac = spec->private_dac_nids[0];
spec             1639 sound/pci/hda/hda_generic.c 	path = snd_hda_add_new_path(codec, dac, pin, spec->mixer_nid);
spec             1643 sound/pci/hda/hda_generic.c 		else if (spec->multiout.hp_out_nid[0])
spec             1644 sound/pci/hda/hda_generic.c 			dac = spec->multiout.hp_out_nid[0];
spec             1645 sound/pci/hda/hda_generic.c 		else if (spec->multiout.extra_out_nid[0])
spec             1646 sound/pci/hda/hda_generic.c 			dac = spec->multiout.extra_out_nid[0];
spec             1651 sound/pci/hda/hda_generic.c 						    spec->mixer_nid);
spec             1664 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             1665 sound/pci/hda/hda_generic.c 	struct auto_pin_cfg *cfg = &spec->autocfg;
spec             1670 sound/pci/hda/hda_generic.c 		idx = spec->out_paths[0];
spec             1672 sound/pci/hda/hda_generic.c 		idx = spec->hp_paths[0];
spec             1678 sound/pci/hda/hda_generic.c 	if (!spec->mixer_nid || !is_nid_contained(path, spec->mixer_nid))
spec             1683 sound/pci/hda/hda_generic.c 		if (spec->out_paths[i] == idx)
spec             1685 sound/pci/hda/hda_generic.c 		path = snd_hda_get_path_from_idx(codec, spec->out_paths[i]);
spec             1686 sound/pci/hda/hda_generic.c 		if (path && is_nid_contained(path, spec->mixer_nid))
spec             1690 sound/pci/hda/hda_generic.c 		path = snd_hda_get_path_from_idx(codec, spec->speaker_paths[i]);
spec             1691 sound/pci/hda/hda_generic.c 		if (path && is_nid_contained(path, spec->mixer_nid))
spec             1722 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             1723 sound/pci/hda/hda_generic.c 	struct auto_pin_cfg *cfg = &spec->autocfg;
spec             1727 sound/pci/hda/hda_generic.c 	spec->multiout.num_dacs = cfg->line_outs;
spec             1728 sound/pci/hda/hda_generic.c 	spec->multiout.dac_nids = spec->private_dac_nids;
spec             1729 sound/pci/hda/hda_generic.c 	memset(spec->private_dac_nids, 0, sizeof(spec->private_dac_nids));
spec             1730 sound/pci/hda/hda_generic.c 	memset(spec->multiout.hp_out_nid, 0, sizeof(spec->multiout.hp_out_nid));
spec             1731 sound/pci/hda/hda_generic.c 	memset(spec->multiout.extra_out_nid, 0, sizeof(spec->multiout.extra_out_nid));
spec             1732 sound/pci/hda/hda_generic.c 	spec->multi_ios = 0;
spec             1733 sound/pci/hda/hda_generic.c 	snd_array_free(&spec->paths);
spec             1736 sound/pci/hda/hda_generic.c 	memset(spec->out_paths, 0, sizeof(spec->out_paths));
spec             1737 sound/pci/hda/hda_generic.c 	memset(spec->hp_paths, 0, sizeof(spec->hp_paths));
spec             1738 sound/pci/hda/hda_generic.c 	memset(spec->speaker_paths, 0, sizeof(spec->speaker_paths));
spec             1739 sound/pci/hda/hda_generic.c 	memset(spec->aamix_out_paths, 0, sizeof(spec->aamix_out_paths));
spec             1740 sound/pci/hda/hda_generic.c 	memset(spec->digout_paths, 0, sizeof(spec->digout_paths));
spec             1741 sound/pci/hda/hda_generic.c 	memset(spec->input_paths, 0, sizeof(spec->input_paths));
spec             1742 sound/pci/hda/hda_generic.c 	memset(spec->loopback_paths, 0, sizeof(spec->loopback_paths));
spec             1743 sound/pci/hda/hda_generic.c 	memset(&spec->digin_path, 0, sizeof(spec->digin_path));
spec             1753 sound/pci/hda/hda_generic.c 					     spec->private_dac_nids,
spec             1754 sound/pci/hda/hda_generic.c 					     spec->out_paths);
spec             1757 sound/pci/hda/hda_generic.c 					      spec->multiout.hp_out_nid,
spec             1758 sound/pci/hda/hda_generic.c 					      spec->hp_paths);
spec             1761 sound/pci/hda/hda_generic.c 					      spec->multiout.extra_out_nid,
spec             1762 sound/pci/hda/hda_generic.c 					      spec->speaker_paths);
spec             1763 sound/pci/hda/hda_generic.c 			if (!spec->no_multi_io &&
spec             1774 sound/pci/hda/hda_generic.c 				   spec->private_dac_nids, spec->out_paths,
spec             1775 sound/pci/hda/hda_generic.c 				   spec->main_out_badness);
spec             1777 sound/pci/hda/hda_generic.c 	if (!spec->no_multi_io && fill_mio_first &&
spec             1788 sound/pci/hda/hda_generic.c 				      spec->multiout.hp_out_nid,
spec             1789 sound/pci/hda/hda_generic.c 				      spec->hp_paths,
spec             1790 sound/pci/hda/hda_generic.c 				      spec->extra_out_badness);
spec             1798 sound/pci/hda/hda_generic.c 				      spec->multiout.extra_out_nid,
spec             1799 sound/pci/hda/hda_generic.c 				      spec->speaker_paths,
spec             1800 sound/pci/hda/hda_generic.c 				      spec->extra_out_badness);
spec             1805 sound/pci/hda/hda_generic.c 	if (!spec->no_multi_io &&
spec             1813 sound/pci/hda/hda_generic.c 	if (spec->mixer_nid) {
spec             1814 sound/pci/hda/hda_generic.c 		spec->aamix_out_paths[0] =
spec             1815 sound/pci/hda/hda_generic.c 			check_aamix_out_path(codec, spec->out_paths[0]);
spec             1817 sound/pci/hda/hda_generic.c 			spec->aamix_out_paths[1] =
spec             1818 sound/pci/hda/hda_generic.c 				check_aamix_out_path(codec, spec->hp_paths[0]);
spec             1820 sound/pci/hda/hda_generic.c 			spec->aamix_out_paths[2] =
spec             1821 sound/pci/hda/hda_generic.c 				check_aamix_out_path(codec, spec->speaker_paths[0]);
spec             1824 sound/pci/hda/hda_generic.c 	if (!spec->no_multi_io &&
spec             1827 sound/pci/hda/hda_generic.c 			spec->multi_ios = 1; /* give badness */
spec             1830 sound/pci/hda/hda_generic.c 	spec->multiout.num_dacs = 0;
spec             1832 sound/pci/hda/hda_generic.c 		if (spec->private_dac_nids[i])
spec             1833 sound/pci/hda/hda_generic.c 			spec->multiout.num_dacs++;
spec             1835 sound/pci/hda/hda_generic.c 			memmove(spec->private_dac_nids + i,
spec             1836 sound/pci/hda/hda_generic.c 				spec->private_dac_nids + i + 1,
spec             1838 sound/pci/hda/hda_generic.c 			spec->private_dac_nids[cfg->line_outs - 1] = 0;
spec             1842 sound/pci/hda/hda_generic.c 	spec->ext_channel_count = spec->min_channel_count =
spec             1843 sound/pci/hda/hda_generic.c 		spec->multiout.num_dacs * 2;
spec             1845 sound/pci/hda/hda_generic.c 	if (spec->multi_ios == 2) {
spec             1847 sound/pci/hda/hda_generic.c 			spec->private_dac_nids[spec->multiout.num_dacs++] =
spec             1848 sound/pci/hda/hda_generic.c 				spec->multi_io[i].dac;
spec             1849 sound/pci/hda/hda_generic.c 	} else if (spec->multi_ios) {
spec             1850 sound/pci/hda/hda_generic.c 		spec->multi_ios = 0;
spec             1854 sound/pci/hda/hda_generic.c 	if (spec->indep_hp && !indep_hp_possible(codec))
spec             1860 sound/pci/hda/hda_generic.c 				   spec->multiout.hp_out_nid,
spec             1861 sound/pci/hda/hda_generic.c 				   spec->hp_paths);
spec             1864 sound/pci/hda/hda_generic.c 				   spec->multiout.extra_out_nid,
spec             1865 sound/pci/hda/hda_generic.c 				   spec->speaker_paths);
spec             1894 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             1901 sound/pci/hda/hda_generic.c 		      spec->multiout.dac_nids[0],
spec             1902 sound/pci/hda/hda_generic.c 		      spec->multiout.dac_nids[1],
spec             1903 sound/pci/hda/hda_generic.c 		      spec->multiout.dac_nids[2],
spec             1904 sound/pci/hda/hda_generic.c 		      spec->multiout.dac_nids[3],
spec             1907 sound/pci/hda/hda_generic.c 		print_nid_path_idx(codec, "  out", spec->out_paths[i]);
spec             1908 sound/pci/hda/hda_generic.c 	if (spec->multi_ios > 0)
spec             1910 sound/pci/hda/hda_generic.c 			      spec->multi_ios,
spec             1911 sound/pci/hda/hda_generic.c 			      spec->multi_io[0].pin, spec->multi_io[1].pin,
spec             1912 sound/pci/hda/hda_generic.c 			      spec->multi_io[0].dac, spec->multi_io[1].dac);
spec             1913 sound/pci/hda/hda_generic.c 	for (i = 0; i < spec->multi_ios; i++)
spec             1915 sound/pci/hda/hda_generic.c 				   spec->out_paths[cfg->line_outs + i]);
spec             1920 sound/pci/hda/hda_generic.c 		      spec->multiout.hp_out_nid[0],
spec             1921 sound/pci/hda/hda_generic.c 		      spec->multiout.hp_out_nid[1],
spec             1922 sound/pci/hda/hda_generic.c 		      spec->multiout.hp_out_nid[2],
spec             1923 sound/pci/hda/hda_generic.c 		      spec->multiout.hp_out_nid[3]);
spec             1925 sound/pci/hda/hda_generic.c 		print_nid_path_idx(codec, "  hp ", spec->hp_paths[i]);
spec             1930 sound/pci/hda/hda_generic.c 		      spec->multiout.extra_out_nid[0],
spec             1931 sound/pci/hda/hda_generic.c 		      spec->multiout.extra_out_nid[1],
spec             1932 sound/pci/hda/hda_generic.c 		      spec->multiout.extra_out_nid[2],
spec             1933 sound/pci/hda/hda_generic.c 		      spec->multiout.extra_out_nid[3]);
spec             1935 sound/pci/hda/hda_generic.c 		print_nid_path_idx(codec, "  spk", spec->speaker_paths[i]);
spec             1937 sound/pci/hda/hda_generic.c 		print_nid_path_idx(codec, "  mix", spec->aamix_out_paths[i]);
spec             1946 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             1949 sound/pci/hda/hda_generic.c 	spec->num_all_dacs = 0;
spec             1950 sound/pci/hda/hda_generic.c 	memset(spec->all_dacs, 0, sizeof(spec->all_dacs));
spec             1954 sound/pci/hda/hda_generic.c 		if (spec->num_all_dacs >= ARRAY_SIZE(spec->all_dacs)) {
spec             1958 sound/pci/hda/hda_generic.c 		spec->all_dacs[spec->num_all_dacs++] = nid;
spec             1964 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             1965 sound/pci/hda/hda_generic.c 	struct auto_pin_cfg *cfg = &spec->autocfg;
spec             2049 sound/pci/hda/hda_generic.c 		path = snd_hda_get_path_from_idx(codec, spec->out_paths[0]);
spec             2051 sound/pci/hda/hda_generic.c 			spec->vmaster_nid = look_for_out_vol_nid(codec, path);
spec             2052 sound/pci/hda/hda_generic.c 		if (spec->vmaster_nid) {
spec             2053 sound/pci/hda/hda_generic.c 			snd_hda_set_vmaster_tlv(codec, spec->vmaster_nid,
spec             2054 sound/pci/hda/hda_generic.c 						HDA_OUTPUT, spec->vmaster_tlv);
spec             2055 sound/pci/hda/hda_generic.c 			if (spec->dac_min_mute)
spec             2056 sound/pci/hda/hda_generic.c 				spec->vmaster_tlv[SNDRV_CTL_TLVO_DB_SCALE_MUTE_AND_STEP] |= TLV_DB_SCALE_MUTE;
spec             2061 sound/pci/hda/hda_generic.c 	if (spec->prefer_hp_amp || cfg->line_out_type == AUTO_PIN_HP_OUT)
spec             2069 sound/pci/hda/hda_generic.c 		val = spec->prefer_hp_amp ? PIN_HP : PIN_OUT;
spec             2075 sound/pci/hda/hda_generic.c 	if (spec->indep_hp && !indep_hp_possible(codec))
spec             2076 sound/pci/hda/hda_generic.c 		spec->indep_hp = 0;
spec             2086 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             2090 sound/pci/hda/hda_generic.c 	if (spec->multi_ios > 0 && cfg->line_outs < 3)
spec             2091 sound/pci/hda/hda_generic.c 		noutputs += spec->multi_ios;
spec             2098 sound/pci/hda/hda_generic.c 		path = snd_hda_get_path_from_idx(codec, spec->out_paths[i]);
spec             2182 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             2183 sound/pci/hda/hda_generic.c 	return create_extra_outs(codec, spec->autocfg.hp_outs,
spec             2184 sound/pci/hda/hda_generic.c 				 spec->hp_paths,
spec             2190 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             2191 sound/pci/hda/hda_generic.c 	return create_extra_outs(codec, spec->autocfg.speaker_outs,
spec             2192 sound/pci/hda/hda_generic.c 				 spec->speaker_paths,
spec             2212 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             2213 sound/pci/hda/hda_generic.c 	ucontrol->value.enumerated.item[0] = spec->indep_hp_enabled;
spec             2225 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             2229 sound/pci/hda/hda_generic.c 	mutex_lock(&spec->pcm_mutex);
spec             2230 sound/pci/hda/hda_generic.c 	if (spec->active_streams) {
spec             2235 sound/pci/hda/hda_generic.c 	if (spec->indep_hp_enabled != select) {
spec             2237 sound/pci/hda/hda_generic.c 		if (spec->autocfg.line_out_type == AUTO_PIN_HP_OUT)
spec             2238 sound/pci/hda/hda_generic.c 			dacp = &spec->private_dac_nids[0];
spec             2240 sound/pci/hda/hda_generic.c 			dacp = &spec->multiout.hp_out_nid[0];
spec             2243 sound/pci/hda/hda_generic.c 		if (spec->have_aamix_ctl) {
spec             2244 sound/pci/hda/hda_generic.c 			if (spec->autocfg.line_out_type == AUTO_PIN_HP_OUT)
spec             2245 sound/pci/hda/hda_generic.c 				update_aamix_paths(codec, spec->aamix_mode,
spec             2246 sound/pci/hda/hda_generic.c 						   spec->out_paths[0],
spec             2247 sound/pci/hda/hda_generic.c 						   spec->aamix_out_paths[0],
spec             2248 sound/pci/hda/hda_generic.c 						   spec->autocfg.line_out_type);
spec             2250 sound/pci/hda/hda_generic.c 				update_aamix_paths(codec, spec->aamix_mode,
spec             2251 sound/pci/hda/hda_generic.c 						   spec->hp_paths[0],
spec             2252 sound/pci/hda/hda_generic.c 						   spec->aamix_out_paths[1],
spec             2256 sound/pci/hda/hda_generic.c 		spec->indep_hp_enabled = select;
spec             2257 sound/pci/hda/hda_generic.c 		if (spec->indep_hp_enabled)
spec             2260 sound/pci/hda/hda_generic.c 			*dacp = spec->alt_dac_nid;
spec             2266 sound/pci/hda/hda_generic.c 	mutex_unlock(&spec->pcm_mutex);
spec             2281 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             2284 sound/pci/hda/hda_generic.c 	if (!spec->indep_hp)
spec             2286 sound/pci/hda/hda_generic.c 	if (spec->autocfg.line_out_type == AUTO_PIN_HP_OUT)
spec             2287 sound/pci/hda/hda_generic.c 		dac = spec->multiout.dac_nids[0];
spec             2289 sound/pci/hda/hda_generic.c 		dac = spec->multiout.hp_out_nid[0];
spec             2291 sound/pci/hda/hda_generic.c 		spec->indep_hp = 0;
spec             2295 sound/pci/hda/hda_generic.c 	spec->indep_hp_enabled = false;
spec             2296 sound/pci/hda/hda_generic.c 	spec->alt_dac_nid = dac;
spec             2297 sound/pci/hda/hda_generic.c 	if (!snd_hda_gen_add_kctl(spec, NULL, &indep_hp_ctl))
spec             2310 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             2315 sound/pci/hda/hda_generic.c 	uinfo->value.enumerated.items = spec->multi_ios + 1;
spec             2316 sound/pci/hda/hda_generic.c 	if (uinfo->value.enumerated.item > spec->multi_ios)
spec             2317 sound/pci/hda/hda_generic.c 		uinfo->value.enumerated.item = spec->multi_ios;
spec             2318 sound/pci/hda/hda_generic.c 	chs = uinfo->value.enumerated.item * 2 + spec->min_channel_count;
spec             2327 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             2329 sound/pci/hda/hda_generic.c 		(spec->ext_channel_count - spec->min_channel_count) / 2;
spec             2336 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             2338 sound/pci/hda/hda_generic.c 		spec->out_paths[spec->autocfg.line_outs + idx]);
spec             2346 sound/pci/hda/hda_generic.c static bool aamix_default(struct hda_gen_spec *spec)
spec             2348 sound/pci/hda/hda_generic.c 	return !spec->have_aamix_ctl || spec->aamix_mode;
spec             2353 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             2354 sound/pci/hda/hda_generic.c 	hda_nid_t nid = spec->multi_io[idx].pin;
spec             2366 sound/pci/hda/hda_generic.c 		snd_hda_activate_path(codec, path, true, aamix_default(spec));
spec             2370 sound/pci/hda/hda_generic.c 		snd_hda_activate_path(codec, path, false, aamix_default(spec));
spec             2371 sound/pci/hda/hda_generic.c 		set_pin_target(codec, nid, spec->multi_io[idx].ctl_in, true);
spec             2385 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             2389 sound/pci/hda/hda_generic.c 	if (ch < 0 || ch > spec->multi_ios)
spec             2391 sound/pci/hda/hda_generic.c 	if (ch == (spec->ext_channel_count - spec->min_channel_count) / 2)
spec             2393 sound/pci/hda/hda_generic.c 	spec->ext_channel_count = ch * 2 + spec->min_channel_count;
spec             2394 sound/pci/hda/hda_generic.c 	for (i = 0; i < spec->multi_ios; i++)
spec             2396 sound/pci/hda/hda_generic.c 	spec->multiout.max_channels = max(spec->ext_channel_count,
spec             2397 sound/pci/hda/hda_generic.c 					  spec->const_channel_count);
spec             2398 sound/pci/hda/hda_generic.c 	if (spec->need_dac_fix)
spec             2399 sound/pci/hda/hda_generic.c 		spec->multiout.num_dacs = spec->multiout.max_channels / 2;
spec             2413 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             2415 sound/pci/hda/hda_generic.c 	if (spec->multi_ios > 0) {
spec             2416 sound/pci/hda/hda_generic.c 		if (!snd_hda_gen_add_kctl(spec, NULL, &channel_mode_enum))
spec             2432 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             2433 sound/pci/hda/hda_generic.c 	ucontrol->value.enumerated.item[0] = spec->aamix_mode;
spec             2441 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             2452 sound/pci/hda/hda_generic.c 	if (out_type == AUTO_PIN_HP_OUT && spec->indep_hp_enabled &&
spec             2453 sound/pci/hda/hda_generic.c 	    mix_path->path[0] != spec->alt_dac_nid)
spec             2471 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             2479 sound/pci/hda/hda_generic.c 					      spec->aamix_mode);
spec             2487 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             2488 sound/pci/hda/hda_generic.c 	const struct auto_pin_cfg *cfg = &spec->autocfg;
spec             2491 sound/pci/hda/hda_generic.c 	if (val == spec->aamix_mode)
spec             2493 sound/pci/hda/hda_generic.c 	spec->aamix_mode = val;
spec             2494 sound/pci/hda/hda_generic.c 	if (has_aamix_out_paths(spec)) {
spec             2495 sound/pci/hda/hda_generic.c 		update_aamix_paths(codec, val, spec->out_paths[0],
spec             2496 sound/pci/hda/hda_generic.c 				   spec->aamix_out_paths[0],
spec             2498 sound/pci/hda/hda_generic.c 		update_aamix_paths(codec, val, spec->hp_paths[0],
spec             2499 sound/pci/hda/hda_generic.c 				   spec->aamix_out_paths[1],
spec             2501 sound/pci/hda/hda_generic.c 		update_aamix_paths(codec, val, spec->speaker_paths[0],
spec             2502 sound/pci/hda/hda_generic.c 				   spec->aamix_out_paths[2],
spec             2505 sound/pci/hda/hda_generic.c 		update_output_paths(codec, cfg->line_outs, spec->out_paths);
spec             2507 sound/pci/hda/hda_generic.c 			update_output_paths(codec, cfg->hp_outs, spec->hp_paths);
spec             2510 sound/pci/hda/hda_generic.c 					    spec->speaker_paths);
spec             2525 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             2527 sound/pci/hda/hda_generic.c 	if (!spec->mixer_nid)
spec             2529 sound/pci/hda/hda_generic.c 	if (!snd_hda_gen_add_kctl(spec, NULL, &loopback_mixing_enum))
spec             2531 sound/pci/hda/hda_generic.c 	spec->have_aamix_ctl = 1;
spec             2544 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             2549 sound/pci/hda/hda_generic.c 	pin = spec->hp_mic_pin;
spec             2550 sound/pci/hda/hda_generic.c 	as_mic = spec->cur_mux[adc_mux] == spec->hp_mic_mux_idx;
spec             2567 sound/pci/hda/hda_generic.c 	if (val == AC_PINCTL_VREF_HIZ && spec->shared_mic_vref_pin) {
spec             2568 sound/pci/hda/hda_generic.c 		const hda_nid_t vref_pin = spec->shared_mic_vref_pin;
spec             2575 sound/pci/hda/hda_generic.c 	if (!spec->hp_mic_jack_modes) {
spec             2588 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             2589 sound/pci/hda/hda_generic.c 	struct auto_pin_cfg *cfg = &spec->autocfg;
spec             2593 sound/pci/hda/hda_generic.c 	if (!spec->hp_mic) {
spec             2594 sound/pci/hda/hda_generic.c 		if (spec->suppress_hp_mic_detect)
spec             2608 sound/pci/hda/hda_generic.c 	spec->hp_mic = 0; /* clear once */
spec             2627 sound/pci/hda/hda_generic.c 	spec->hp_mic = 1;
spec             2628 sound/pci/hda/hda_generic.c 	spec->hp_mic_pin = nid;
spec             2630 sound/pci/hda/hda_generic.c 	spec->suppress_auto_mic = 1;
spec             2686 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             2690 sound/pci/hda/hda_generic.c 	snd_array_for_each(&spec->kctls, i, kctl) {
spec             2700 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             2703 sound/pci/hda/hda_generic.c 	snd_hda_get_pin_label(codec, pin, &spec->autocfg, name, name_len, &idx);
spec             2712 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             2713 sound/pci/hda/hda_generic.c 	if (spec->add_jack_modes) {
spec             2724 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             2729 sound/pci/hda/hda_generic.c 		if (pin == spec->hp_mic_pin)
spec             2735 sound/pci/hda/hda_generic.c 			knew = snd_hda_gen_add_kctl(spec, name,
spec             2854 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             2856 sound/pci/hda/hda_generic.c 	if (spec->add_jack_modes)
spec             2863 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             2868 sound/pci/hda/hda_generic.c 	if (pin == spec->hp_mic_pin)
spec             2881 sound/pci/hda/hda_generic.c 	knew = snd_hda_gen_add_kctl(spec, name, &in_jack_mode_enum);
spec             3000 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             3003 sound/pci/hda/hda_generic.c 	knew = snd_hda_gen_add_kctl(spec, "Headphone Mic Jack Mode",
spec             3008 sound/pci/hda/hda_generic.c 	spec->hp_mic_jack_modes = 1;
spec             3017 sound/pci/hda/hda_generic.c static int add_loopback_list(struct hda_gen_spec *spec, hda_nid_t mix, int idx)
spec             3021 sound/pci/hda/hda_generic.c 	list = snd_array_new(&spec->loopback_list);
spec             3027 sound/pci/hda/hda_generic.c 	spec->loopback.amplist = spec->loopback_list.list;
spec             3074 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             3086 sound/pci/hda/hda_generic.c 	spec->loopback_paths[input_idx] = snd_hda_get_path_idx(codec, path);
spec             3090 sound/pci/hda/hda_generic.c 		err = __add_pb_vol_ctrl(spec, HDA_CTL_WIDGET_VOL, ctlname, ctlidx, mix_val);
spec             3097 sound/pci/hda/hda_generic.c 		err = __add_pb_sw_ctrl(spec, HDA_CTL_WIDGET_MUTE, ctlname, ctlidx, mute_val);
spec             3105 sound/pci/hda/hda_generic.c 	err = add_loopback_list(spec, mix_nid, idx);
spec             3109 sound/pci/hda/hda_generic.c 	if (spec->mixer_nid != spec->mixer_merge_nid &&
spec             3110 sound/pci/hda/hda_generic.c 	    !spec->loopback_merge_path) {
spec             3111 sound/pci/hda/hda_generic.c 		path = snd_hda_add_new_path(codec, spec->mixer_nid,
spec             3112 sound/pci/hda/hda_generic.c 					    spec->mixer_merge_nid, 0);
spec             3118 sound/pci/hda/hda_generic.c 			spec->loopback_merge_path =
spec             3135 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             3137 sound/pci/hda/hda_generic.c 	hda_nid_t *adc_nids = spec->adc_nids;
spec             3138 sound/pci/hda/hda_generic.c 	int max_nums = ARRAY_SIZE(spec->adc_nids);
spec             3151 sound/pci/hda/hda_generic.c 	spec->num_adc_nids = nums;
spec             3154 sound/pci/hda/hda_generic.c 	spec->num_all_adcs = nums;
spec             3155 sound/pci/hda/hda_generic.c 	memcpy(spec->all_adcs, spec->adc_nids, nums * sizeof(hda_nid_t));
spec             3165 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             3166 sound/pci/hda/hda_generic.c 	struct hda_input_mux *imux = &spec->input_mux;
spec             3172 sound/pci/hda/hda_generic.c 	for (n = 0; n < spec->num_adc_nids; n++) {
spec             3174 sound/pci/hda/hda_generic.c 			if (!spec->input_paths[i][n])
spec             3186 sound/pci/hda/hda_generic.c 			for (n = 0; n < spec->num_adc_nids; n++) {
spec             3187 sound/pci/hda/hda_generic.c 				if (spec->input_paths[i][n]) {
spec             3188 sound/pci/hda/hda_generic.c 					spec->dyn_adc_idx[i] = n;
spec             3195 sound/pci/hda/hda_generic.c 		spec->dyn_adc_switch = 1;
spec             3196 sound/pci/hda/hda_generic.c 	} else if (nums != spec->num_adc_nids) {
spec             3199 sound/pci/hda/hda_generic.c 		for (n = 0; n < spec->num_adc_nids; n++) {
spec             3203 sound/pci/hda/hda_generic.c 				spec->adc_nids[nums] = spec->adc_nids[n];
spec             3206 sound/pci/hda/hda_generic.c 						spec->input_paths[i][nums]);
spec             3207 sound/pci/hda/hda_generic.c 					spec->input_paths[i][nums] =
spec             3208 sound/pci/hda/hda_generic.c 						spec->input_paths[i][n];
spec             3209 sound/pci/hda/hda_generic.c 					spec->input_paths[i][n] = 0;
spec             3214 sound/pci/hda/hda_generic.c 		spec->num_adc_nids = nums;
spec             3218 sound/pci/hda/hda_generic.c 	    (imux->num_items == 2 && spec->hp_mic)) {
spec             3220 sound/pci/hda/hda_generic.c 		spec->num_adc_nids = 1; /* reduce to a single ADC */
spec             3224 sound/pci/hda/hda_generic.c 	if (!spec->dyn_adc_switch && spec->multi_cap_vol)
spec             3225 sound/pci/hda/hda_generic.c 		spec->num_adc_nids = 1;
spec             3235 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             3236 sound/pci/hda/hda_generic.c 	struct hda_input_mux *imux = &spec->input_mux;
spec             3243 sound/pci/hda/hda_generic.c 		hda_nid_t adc = spec->adc_nids[c];
spec             3251 sound/pci/hda/hda_generic.c 		spec->input_paths[imux_idx][c] =
spec             3255 sound/pci/hda/hda_generic.c 			if (spec->hp_mic_pin == pin)
spec             3256 sound/pci/hda/hda_generic.c 				spec->hp_mic_mux_idx = imux->num_items;
spec             3257 sound/pci/hda/hda_generic.c 			spec->imux_pins[imux->num_items] = pin;
spec             3260 sound/pci/hda/hda_generic.c 			if (spec->dyn_adc_switch)
spec             3261 sound/pci/hda/hda_generic.c 				spec->dyn_adc_idx[imux_idx] = c;
spec             3275 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             3276 sound/pci/hda/hda_generic.c 	const struct auto_pin_cfg *cfg = &spec->autocfg;
spec             3290 sound/pci/hda/hda_generic.c 			if (spec->input_labels[j] &&
spec             3291 sound/pci/hda/hda_generic.c 			    !strcmp(spec->input_labels[j], label)) {
spec             3292 sound/pci/hda/hda_generic.c 				idx = spec->input_label_idxs[j] + 1;
spec             3297 sound/pci/hda/hda_generic.c 		spec->input_labels[i] = label;
spec             3298 sound/pci/hda/hda_generic.c 		spec->input_label_idxs[i] = idx;
spec             3308 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             3309 sound/pci/hda/hda_generic.c 	const struct auto_pin_cfg *cfg = &spec->autocfg;
spec             3310 sound/pci/hda/hda_generic.c 	hda_nid_t mixer = spec->mixer_nid;
spec             3333 sound/pci/hda/hda_generic.c 		if (pin != spec->hp_mic_pin &&
spec             3340 sound/pci/hda/hda_generic.c 						       spec->input_labels[i],
spec             3341 sound/pci/hda/hda_generic.c 						       spec->input_label_idxs[i],
spec             3349 sound/pci/hda/hda_generic.c 					   spec->input_labels[i], -mixer);
spec             3353 sound/pci/hda/hda_generic.c 		if (spec->add_jack_modes) {
spec             3361 sound/pci/hda/hda_generic.c 	if (mixer && spec->add_stereo_mix_input == HDA_HINT_STEREO_MIX_ENABLE) {
spec             3367 sound/pci/hda/hda_generic.c 			spec->suppress_auto_mic = 1;
spec             3381 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             3386 sound/pci/hda/hda_generic.c 	if (spec->dyn_adc_switch)
spec             3387 sound/pci/hda/hda_generic.c 		adc_idx = spec->dyn_adc_idx[imux_idx];
spec             3392 sound/pci/hda/hda_generic.c 	return snd_hda_get_path_from_idx(codec, spec->input_paths[imux_idx][adc_idx]);
spec             3402 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             3403 sound/pci/hda/hda_generic.c 	return snd_hda_input_mux_info(&spec->input_mux, uinfo);
spec             3410 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             3414 sound/pci/hda/hda_generic.c 	ucontrol->value.enumerated.item[0] = spec->cur_mux[adc_idx];
spec             3448 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             3453 sound/pci/hda/hda_generic.c 	imux = &spec->input_mux;
spec             3466 sound/pci/hda/hda_generic.c 	if (err >= 0 && spec->cap_sync_hook)
spec             3467 sound/pci/hda/hda_generic.c 		spec->cap_sync_hook(codec, kcontrol, ucontrol);
spec             3557 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             3558 sound/pci/hda/hda_generic.c 	struct auto_pin_cfg *cfg = &spec->autocfg;
spec             3562 sound/pci/hda/hda_generic.c 	if (!spec->inv_dmic_split)
spec             3580 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             3587 sound/pci/hda/hda_generic.c 	if (spec->cap_sync_hook)
spec             3588 sound/pci/hda/hda_generic.c 		spec->cap_sync_hook(codec, kcontrol, ucontrol);
spec             3597 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             3613 sound/pci/hda/hda_generic.c 	knew = add_control(spec, type, tmpname, idx,
spec             3629 sound/pci/hda/hda_generic.c 	knew = add_control(spec, type, tmpname, idx,
spec             3657 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             3661 sound/pci/hda/hda_generic.c 		knew = snd_hda_gen_add_kctl(spec, NULL, &cap_vol_temp);
spec             3669 sound/pci/hda/hda_generic.c 		knew = snd_hda_gen_add_kctl(spec, NULL, &cap_sw_temp);
spec             3703 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             3704 sound/pci/hda/hda_generic.c 	struct hda_input_mux *imux = &spec->input_mux;
spec             3712 sound/pci/hda/hda_generic.c 		if (idx >= spec->autocfg.num_inputs)
spec             3714 sound/pci/hda/hda_generic.c 		inv_dmic = is_inv_dmic_pin(codec, spec->imux_pins[i]);
spec             3718 sound/pci/hda/hda_generic.c 						 spec->input_labels[idx],
spec             3719 sound/pci/hda/hda_generic.c 						 spec->input_label_idxs[idx],
spec             3732 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             3733 sound/pci/hda/hda_generic.c 	struct hda_input_mux *imux = &spec->input_mux;
spec             3736 sound/pci/hda/hda_generic.c 	if (spec->dyn_adc_switch)
spec             3739 sound/pci/hda/hda_generic.c 		nums = spec->num_adc_nids;
spec             3741 sound/pci/hda/hda_generic.c 	if (!spec->auto_mic && imux->num_items > 1) {
spec             3745 sound/pci/hda/hda_generic.c 		knew = snd_hda_gen_add_kctl(spec, name, &cap_src_temp);
spec             3753 sound/pci/hda/hda_generic.c 		bool multi_cap_vol = spec->multi_cap_vol;
spec             3780 sound/pci/hda/hda_generic.c 			if (is_inv_dmic_pin(codec, spec->imux_pins[i]))
spec             3848 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             3849 sound/pci/hda/hda_generic.c 	struct auto_pin_cfg *cfg = &spec->autocfg;
spec             3850 sound/pci/hda/hda_generic.c 	struct hda_input_mux *imux = &spec->input_mux;
spec             3853 sound/pci/hda/hda_generic.c 	if (!spec->num_adc_nids)
spec             3880 sound/pci/hda/hda_generic.c 			 "%s Boost Volume", spec->input_labels[idx]);
spec             3881 sound/pci/hda/hda_generic.c 		if (!add_control(spec, HDA_CTL_WIDGET_VOL, boost_label,
spec             3882 sound/pci/hda/hda_generic.c 				 spec->input_label_idxs[idx], val))
spec             3902 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             3905 sound/pci/hda/hda_generic.c 	switch (spec->micmute_led.led_mode) {
spec             3913 sound/pci/hda/hda_generic.c 		val = !!spec->micmute_led.capture;
spec             3917 sound/pci/hda/hda_generic.c 		val = !spec->micmute_led.capture;
spec             3921 sound/pci/hda/hda_generic.c 	if (val == spec->micmute_led.led_value)
spec             3923 sound/pci/hda/hda_generic.c 	spec->micmute_led.led_value = val;
spec             3924 sound/pci/hda/hda_generic.c 	if (spec->micmute_led.update)
spec             3925 sound/pci/hda/hda_generic.c 		spec->micmute_led.update(codec);
spec             3932 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             3935 sound/pci/hda/hda_generic.c 	if (spec->micmute_led.old_hook)
spec             3936 sound/pci/hda/hda_generic.c 		spec->micmute_led.old_hook(codec, kcontrol, ucontrol);
spec             3945 sound/pci/hda/hda_generic.c 			spec->micmute_led.capture |= mask;
spec             3947 sound/pci/hda/hda_generic.c 			spec->micmute_led.capture &= ~mask;
spec             3966 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             3968 sound/pci/hda/hda_generic.c 	ucontrol->value.enumerated.item[0] = spec->micmute_led.led_mode;
spec             3976 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             3982 sound/pci/hda/hda_generic.c 	if (mode == spec->micmute_led.led_mode)
spec             3984 sound/pci/hda/hda_generic.c 	spec->micmute_led.led_mode = mode;
spec             4012 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             4014 sound/pci/hda/hda_generic.c 	spec->micmute_led.led_mode = MICMUTE_LED_FOLLOW_MUTE;
spec             4015 sound/pci/hda/hda_generic.c 	spec->micmute_led.capture = 0;
spec             4016 sound/pci/hda/hda_generic.c 	spec->micmute_led.led_value = 0;
spec             4017 sound/pci/hda/hda_generic.c 	spec->micmute_led.old_hook = spec->cap_sync_hook;
spec             4018 sound/pci/hda/hda_generic.c 	spec->micmute_led.update = hook;
spec             4019 sound/pci/hda/hda_generic.c 	spec->cap_sync_hook = update_micmute_led;
spec             4020 sound/pci/hda/hda_generic.c 	if (!snd_hda_gen_add_kctl(spec, NULL, &micmute_led_mode_ctl))
spec             4029 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             4032 sound/pci/hda/hda_generic.c 			  spec->micmute_led.led_value ? LED_ON : LED_OFF);
spec             4061 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             4068 sound/pci/hda/hda_generic.c 	for (i = 0; i < spec->autocfg.dig_outs; i++) {
spec             4069 sound/pci/hda/hda_generic.c 		pin = spec->autocfg.dig_out_pins[i];
spec             4079 sound/pci/hda/hda_generic.c 		spec->digout_paths[i] = snd_hda_get_path_idx(codec, path);
spec             4082 sound/pci/hda/hda_generic.c 			spec->multiout.dig_out_nid = dig_nid;
spec             4083 sound/pci/hda/hda_generic.c 			spec->dig_out_type = spec->autocfg.dig_out_type[0];
spec             4085 sound/pci/hda/hda_generic.c 			spec->multiout.slave_dig_outs = spec->slave_dig_outs;
spec             4086 sound/pci/hda/hda_generic.c 			if (nums >= ARRAY_SIZE(spec->slave_dig_outs) - 1)
spec             4088 sound/pci/hda/hda_generic.c 			spec->slave_dig_outs[nums - 1] = dig_nid;
spec             4093 sound/pci/hda/hda_generic.c 	if (spec->autocfg.dig_in_pin) {
spec             4094 sound/pci/hda/hda_generic.c 		pin = spec->autocfg.dig_in_pin;
spec             4106 sound/pci/hda/hda_generic.c 				spec->dig_in_nid = dig_nid;
spec             4107 sound/pci/hda/hda_generic.c 				spec->digin_path = snd_hda_get_path_idx(codec, path);
spec             4126 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             4130 sound/pci/hda/hda_generic.c 	imux = &spec->input_mux;
spec             4136 sound/pci/hda/hda_generic.c 	if (spec->cur_mux[adc_idx] == idx)
spec             4139 sound/pci/hda/hda_generic.c 	old_path = get_input_path(codec, adc_idx, spec->cur_mux[adc_idx]);
spec             4145 sound/pci/hda/hda_generic.c 	spec->cur_mux[adc_idx] = idx;
spec             4147 sound/pci/hda/hda_generic.c 	if (spec->hp_mic)
spec             4150 sound/pci/hda/hda_generic.c 	if (spec->dyn_adc_switch)
spec             4159 sound/pci/hda/hda_generic.c 	if (spec->cap_sync_hook)
spec             4160 sound/pci/hda/hda_generic.c 		spec->cap_sync_hook(codec, NULL, NULL);
spec             4173 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             4178 sound/pci/hda/hda_generic.c 	snd_array_for_each(&spec->paths, n, path) {
spec             4274 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             4275 sound/pci/hda/hda_generic.c 	struct auto_pin_cfg *cfg = &spec->autocfg;
spec             4303 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             4304 sound/pci/hda/hda_generic.c 	struct auto_pin_cfg *cfg = &spec->autocfg;
spec             4322 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             4331 sound/pci/hda/hda_generic.c 		path = snd_array_new(&spec->paths);
spec             4346 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             4347 sound/pci/hda/hda_generic.c 	struct auto_pin_cfg *cfg = &spec->autocfg;
spec             4348 sound/pci/hda/hda_generic.c 	hda_nid_t nid = spec->beep_nid;
spec             4383 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             4386 sound/pci/hda/hda_generic.c 	path = snd_array_new(&spec->paths);
spec             4426 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             4439 sound/pci/hda/hda_generic.c 		if (spec->auto_mute_via_amp) {
spec             4450 sound/pci/hda/hda_generic.c 				spec->mute_bits |= (1ULL << mute_nid);
spec             4452 sound/pci/hda/hda_generic.c 				spec->mute_bits &= ~(1ULL << mute_nid);
spec             4458 sound/pci/hda/hda_generic.c 			if (spec->keep_vref_in_automute)
spec             4490 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             4498 sound/pci/hda/hda_generic.c 	if (spec->autocfg.line_out_type == AUTO_PIN_HP_OUT)
spec             4499 sound/pci/hda/hda_generic.c 		paths = spec->out_paths;
spec             4501 sound/pci/hda/hda_generic.c 		paths = spec->hp_paths;
spec             4502 sound/pci/hda/hda_generic.c 	do_automute(codec, ARRAY_SIZE(spec->autocfg.hp_pins),
spec             4503 sound/pci/hda/hda_generic.c 		    spec->autocfg.hp_pins, paths, spec->master_mute);
spec             4505 sound/pci/hda/hda_generic.c 	if (!spec->automute_speaker)
spec             4508 sound/pci/hda/hda_generic.c 		on = spec->hp_jack_present | spec->line_jack_present;
spec             4509 sound/pci/hda/hda_generic.c 	on |= spec->master_mute;
spec             4510 sound/pci/hda/hda_generic.c 	spec->speaker_muted = on;
spec             4511 sound/pci/hda/hda_generic.c 	if (spec->autocfg.line_out_type == AUTO_PIN_SPEAKER_OUT)
spec             4512 sound/pci/hda/hda_generic.c 		paths = spec->out_paths;
spec             4514 sound/pci/hda/hda_generic.c 		paths = spec->speaker_paths;
spec             4515 sound/pci/hda/hda_generic.c 	do_automute(codec, ARRAY_SIZE(spec->autocfg.speaker_pins),
spec             4516 sound/pci/hda/hda_generic.c 		    spec->autocfg.speaker_pins, paths, on);
spec             4520 sound/pci/hda/hda_generic.c 	if (spec->autocfg.line_out_pins[0] == spec->autocfg.hp_pins[0] ||
spec             4521 sound/pci/hda/hda_generic.c 	    spec->autocfg.line_out_pins[0] == spec->autocfg.speaker_pins[0])
spec             4523 sound/pci/hda/hda_generic.c 	if (!spec->automute_lo)
spec             4526 sound/pci/hda/hda_generic.c 		on = spec->hp_jack_present;
spec             4527 sound/pci/hda/hda_generic.c 	on |= spec->master_mute;
spec             4528 sound/pci/hda/hda_generic.c 	spec->line_out_muted = on;
spec             4529 sound/pci/hda/hda_generic.c 	paths = spec->out_paths;
spec             4530 sound/pci/hda/hda_generic.c 	do_automute(codec, ARRAY_SIZE(spec->autocfg.line_out_pins),
spec             4531 sound/pci/hda/hda_generic.c 		    spec->autocfg.line_out_pins, paths, on);
spec             4537 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             4538 sound/pci/hda/hda_generic.c 	if (spec->automute_hook)
spec             4539 sound/pci/hda/hda_generic.c 		spec->automute_hook(codec);
spec             4544 sound/pci/hda/hda_generic.c 	if (spec->auto_mute_via_amp && !codec->bus->shutdown)
spec             4545 sound/pci/hda/hda_generic.c 		snd_ctl_sync_vmaster(spec->vmaster_mute.sw_kctl, false);
spec             4556 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             4557 sound/pci/hda/hda_generic.c 	hda_nid_t *pins = spec->autocfg.hp_pins;
spec             4558 sound/pci/hda/hda_generic.c 	int num_pins = ARRAY_SIZE(spec->autocfg.hp_pins);
spec             4561 sound/pci/hda/hda_generic.c 	if (spec->indep_hp_enabled) {
spec             4566 sound/pci/hda/hda_generic.c 	spec->hp_jack_present = detect_jacks(codec, num_pins, pins);
spec             4567 sound/pci/hda/hda_generic.c 	if (!spec->detect_hp || (!spec->automute_speaker && !spec->automute_lo))
spec             4581 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             4583 sound/pci/hda/hda_generic.c 	if (spec->autocfg.line_out_type == AUTO_PIN_SPEAKER_OUT)
spec             4586 sound/pci/hda/hda_generic.c 	if (spec->autocfg.line_out_pins[0] == spec->autocfg.hp_pins[0])
spec             4589 sound/pci/hda/hda_generic.c 	spec->line_jack_present =
spec             4590 sound/pci/hda/hda_generic.c 		detect_jacks(codec, ARRAY_SIZE(spec->autocfg.line_out_pins),
spec             4591 sound/pci/hda/hda_generic.c 			     spec->autocfg.line_out_pins);
spec             4592 sound/pci/hda/hda_generic.c 	if (!spec->automute_speaker || !spec->detect_lo)
spec             4606 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             4609 sound/pci/hda/hda_generic.c 	if (!spec->auto_mic)
spec             4612 sound/pci/hda/hda_generic.c 	for (i = spec->am_num_entries - 1; i > 0; i--) {
spec             4613 sound/pci/hda/hda_generic.c 		hda_nid_t pin = spec->am_entry[i].pin;
spec             4618 sound/pci/hda/hda_generic.c 			mux_select(codec, 0, spec->am_entry[i].idx);
spec             4622 sound/pci/hda/hda_generic.c 	mux_select(codec, 0, spec->am_entry[0].idx);
spec             4630 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             4631 sound/pci/hda/hda_generic.c 	if (spec->hp_automute_hook)
spec             4632 sound/pci/hda/hda_generic.c 		spec->hp_automute_hook(codec, jack);
spec             4640 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             4641 sound/pci/hda/hda_generic.c 	if (spec->line_automute_hook)
spec             4642 sound/pci/hda/hda_generic.c 		spec->line_automute_hook(codec, jack);
spec             4650 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             4651 sound/pci/hda/hda_generic.c 	if (spec->mic_autoswitch_hook)
spec             4652 sound/pci/hda/hda_generic.c 		spec->mic_autoswitch_hook(codec, jack);
spec             4672 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             4677 sound/pci/hda/hda_generic.c 	if (spec->automute_speaker_possible && spec->automute_lo_possible)
spec             4686 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             4688 sound/pci/hda/hda_generic.c 	if (spec->automute_speaker)
spec             4690 sound/pci/hda/hda_generic.c 	if (spec->automute_lo)
spec             4701 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             4705 sound/pci/hda/hda_generic.c 		if (!spec->automute_speaker && !spec->automute_lo)
spec             4707 sound/pci/hda/hda_generic.c 		spec->automute_speaker = 0;
spec             4708 sound/pci/hda/hda_generic.c 		spec->automute_lo = 0;
spec             4711 sound/pci/hda/hda_generic.c 		if (spec->automute_speaker_possible) {
spec             4712 sound/pci/hda/hda_generic.c 			if (!spec->automute_lo && spec->automute_speaker)
spec             4714 sound/pci/hda/hda_generic.c 			spec->automute_speaker = 1;
spec             4715 sound/pci/hda/hda_generic.c 			spec->automute_lo = 0;
spec             4716 sound/pci/hda/hda_generic.c 		} else if (spec->automute_lo_possible) {
spec             4717 sound/pci/hda/hda_generic.c 			if (spec->automute_lo)
spec             4719 sound/pci/hda/hda_generic.c 			spec->automute_lo = 1;
spec             4724 sound/pci/hda/hda_generic.c 		if (!spec->automute_lo_possible || !spec->automute_speaker_possible)
spec             4726 sound/pci/hda/hda_generic.c 		if (spec->automute_speaker && spec->automute_lo)
spec             4728 sound/pci/hda/hda_generic.c 		spec->automute_speaker = 1;
spec             4729 sound/pci/hda/hda_generic.c 		spec->automute_lo = 1;
spec             4748 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             4750 sound/pci/hda/hda_generic.c 	if (!snd_hda_gen_add_kctl(spec, NULL, &automute_mode_enum))
spec             4761 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             4762 sound/pci/hda/hda_generic.c 	struct auto_pin_cfg *cfg = &spec->autocfg;
spec             4766 sound/pci/hda/hda_generic.c 	if (spec->suppress_auto_mute)
spec             4799 sound/pci/hda/hda_generic.c 		spec->detect_hp = 1;
spec             4811 sound/pci/hda/hda_generic.c 				spec->detect_lo = 1;
spec             4813 sound/pci/hda/hda_generic.c 		spec->automute_lo_possible = spec->detect_hp;
spec             4816 sound/pci/hda/hda_generic.c 	spec->automute_speaker_possible = cfg->speaker_outs &&
spec             4817 sound/pci/hda/hda_generic.c 		(spec->detect_hp || spec->detect_lo);
spec             4819 sound/pci/hda/hda_generic.c 	spec->automute_lo = spec->automute_lo_possible;
spec             4820 sound/pci/hda/hda_generic.c 	spec->automute_speaker = spec->automute_speaker_possible;
spec             4822 sound/pci/hda/hda_generic.c 	if (spec->automute_speaker_possible || spec->automute_lo_possible) {
spec             4834 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             4838 sound/pci/hda/hda_generic.c 	imux = &spec->input_mux;
spec             4839 sound/pci/hda/hda_generic.c 	for (i = 0; i < spec->am_num_entries; i++) {
spec             4840 sound/pci/hda/hda_generic.c 		spec->am_entry[i].idx =
spec             4841 sound/pci/hda/hda_generic.c 			find_idx_in_nid_list(spec->am_entry[i].pin,
spec             4842 sound/pci/hda/hda_generic.c 					     spec->imux_pins, imux->num_items);
spec             4843 sound/pci/hda/hda_generic.c 		if (spec->am_entry[i].idx < 0)
spec             4848 sound/pci/hda/hda_generic.c 	for (i = 1; i < spec->am_num_entries; i++)
spec             4850 sound/pci/hda/hda_generic.c 						    spec->am_entry[i].pin,
spec             4868 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             4869 sound/pci/hda/hda_generic.c 	struct auto_pin_cfg *cfg = &spec->autocfg;
spec             4873 sound/pci/hda/hda_generic.c 	if (spec->suppress_auto_mic)
spec             4895 sound/pci/hda/hda_generic.c 			if (!spec->line_in_auto_switch &&
spec             4905 sound/pci/hda/hda_generic.c 		spec->am_entry[num_pins].pin = nid;
spec             4906 sound/pci/hda/hda_generic.c 		spec->am_entry[num_pins].attr = attr;
spec             4913 sound/pci/hda/hda_generic.c 	spec->am_num_entries = num_pins;
spec             4917 sound/pci/hda/hda_generic.c 	sort(spec->am_entry, num_pins, sizeof(spec->am_entry[0]),
spec             4923 sound/pci/hda/hda_generic.c 	spec->auto_mic = 1;
spec             4924 sound/pci/hda/hda_generic.c 	spec->num_adc_nids = 1;
spec             4925 sound/pci/hda/hda_generic.c 	spec->cur_mux[0] = spec->am_entry[0].idx;
spec             4927 sound/pci/hda/hda_generic.c 		    spec->am_entry[0].pin,
spec             4928 sound/pci/hda/hda_generic.c 		    spec->am_entry[1].pin,
spec             4929 sound/pci/hda/hda_generic.c 		    spec->am_entry[2].pin);
spec             4945 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             4947 sound/pci/hda/hda_generic.c 	if (!spec->power_down_unused && !codec->power_save_node)
spec             5005 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             5010 sound/pci/hda/hda_generic.c 	if (spec->mixer_nid && !spec->mixer_merge_nid)
spec             5011 sound/pci/hda/hda_generic.c 		spec->mixer_merge_nid = spec->mixer_nid;
spec             5013 sound/pci/hda/hda_generic.c 	if (cfg != &spec->autocfg) {
spec             5014 sound/pci/hda/hda_generic.c 		spec->autocfg = *cfg;
spec             5015 sound/pci/hda/hda_generic.c 		cfg = &spec->autocfg;
spec             5018 sound/pci/hda/hda_generic.c 	if (!spec->main_out_badness)
spec             5019 sound/pci/hda/hda_generic.c 		spec->main_out_badness = &hda_main_out_badness;
spec             5020 sound/pci/hda/hda_generic.c 	if (!spec->extra_out_badness)
spec             5021 sound/pci/hda/hda_generic.c 		spec->extra_out_badness = &hda_extra_out_badness;
spec             5027 sound/pci/hda/hda_generic.c 			spec->multiout.max_channels = 2;
spec             5028 sound/pci/hda/hda_generic.c 			spec->no_analog = 1;
spec             5035 sound/pci/hda/hda_generic.c 	if (!spec->no_primary_hp &&
spec             5080 sound/pci/hda/hda_generic.c 	spec->const_channel_count = spec->ext_channel_count;
spec             5083 sound/pci/hda/hda_generic.c 		spec->const_channel_count = max(spec->const_channel_count,
spec             5086 sound/pci/hda/hda_generic.c 		spec->const_channel_count = max(spec->const_channel_count,
spec             5088 sound/pci/hda/hda_generic.c 	spec->multiout.max_channels = max(spec->ext_channel_count,
spec             5089 sound/pci/hda/hda_generic.c 					  spec->const_channel_count);
spec             5104 sound/pci/hda/hda_generic.c 	if (!spec->auto_mic && spec->mixer_nid &&
spec             5105 sound/pci/hda/hda_generic.c 	    spec->add_stereo_mix_input == HDA_HINT_STEREO_MIX_AUTO &&
spec             5106 sound/pci/hda/hda_generic.c 	    spec->input_mux.num_items > 1) {
spec             5107 sound/pci/hda/hda_generic.c 		err = parse_capture_source(codec, spec->mixer_nid,
spec             5108 sound/pci/hda/hda_generic.c 					   CFG_IDX_MIX, spec->num_all_adcs,
spec             5126 sound/pci/hda/hda_generic.c 	if (spec->hp_mic_pin &&
spec             5127 sound/pci/hda/hda_generic.c 	    (spec->auto_mic || spec->input_mux.num_items == 1 ||
spec             5128 sound/pci/hda/hda_generic.c 	     spec->add_jack_modes)) {
spec             5129 sound/pci/hda/hda_generic.c 		err = create_hp_mic_jack_mode(codec, spec->hp_mic_pin);
spec             5134 sound/pci/hda/hda_generic.c 	if (spec->add_jack_modes) {
spec             5153 sound/pci/hda/hda_generic.c 	if (spec->mixer_nid)
spec             5154 sound/pci/hda/hda_generic.c 		mute_all_mixer_nid(codec, spec->mixer_nid);
spec             5159 sound/pci/hda/hda_generic.c 	if (spec->power_down_unused || codec->power_save_node) {
spec             5166 sound/pci/hda/hda_generic.c 	if (!spec->no_analog && spec->beep_nid) {
spec             5167 sound/pci/hda/hda_generic.c 		err = snd_hda_attach_beep_device(codec, spec->beep_nid);
spec             5206 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             5209 sound/pci/hda/hda_generic.c 	if (spec->kctls.used) {
spec             5210 sound/pci/hda/hda_generic.c 		err = snd_hda_add_new_ctls(codec, spec->kctls.list);
spec             5215 sound/pci/hda/hda_generic.c 	if (spec->multiout.dig_out_nid) {
spec             5217 sound/pci/hda/hda_generic.c 						  spec->multiout.dig_out_nid,
spec             5218 sound/pci/hda/hda_generic.c 						  spec->multiout.dig_out_nid,
spec             5219 sound/pci/hda/hda_generic.c 						  spec->pcm_rec[1]->pcm_type);
spec             5222 sound/pci/hda/hda_generic.c 		if (!spec->no_analog) {
spec             5224 sound/pci/hda/hda_generic.c 							    &spec->multiout);
spec             5227 sound/pci/hda/hda_generic.c 			spec->multiout.share_spdif = 1;
spec             5230 sound/pci/hda/hda_generic.c 	if (spec->dig_in_nid) {
spec             5231 sound/pci/hda/hda_generic.c 		err = snd_hda_create_spdif_in_ctls(codec, spec->dig_in_nid);
spec             5237 sound/pci/hda/hda_generic.c 	if (!spec->no_analog && !spec->suppress_vmaster &&
spec             5240 sound/pci/hda/hda_generic.c 					  spec->vmaster_tlv, slave_pfxs,
spec             5245 sound/pci/hda/hda_generic.c 	if (!spec->no_analog && !spec->suppress_vmaster &&
spec             5250 sound/pci/hda/hda_generic.c 					    true, &spec->vmaster_mute.sw_kctl);
spec             5253 sound/pci/hda/hda_generic.c 		if (spec->vmaster_mute.hook) {
spec             5254 sound/pci/hda/hda_generic.c 			snd_hda_add_vmaster_hook(codec, &spec->vmaster_mute,
spec             5255 sound/pci/hda/hda_generic.c 						 spec->vmaster_mute_enum);
spec             5256 sound/pci/hda/hda_generic.c 			snd_hda_sync_vmaster_hook(&spec->vmaster_mute);
spec             5260 sound/pci/hda/hda_generic.c 	free_kctls(spec); /* no longer needed */
spec             5262 sound/pci/hda/hda_generic.c 	err = snd_hda_jack_add_kctls(codec, &spec->autocfg);
spec             5280 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             5281 sound/pci/hda/hda_generic.c 	if (spec->pcm_playback_hook)
spec             5282 sound/pci/hda/hda_generic.c 		spec->pcm_playback_hook(hinfo, codec, substream, action);
spec             5290 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             5291 sound/pci/hda/hda_generic.c 	if (spec->pcm_capture_hook)
spec             5292 sound/pci/hda/hda_generic.c 		spec->pcm_capture_hook(hinfo, codec, substream, action);
spec             5302 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             5305 sound/pci/hda/hda_generic.c 	mutex_lock(&spec->pcm_mutex);
spec             5307 sound/pci/hda/hda_generic.c 					    &spec->multiout, substream,
spec             5310 sound/pci/hda/hda_generic.c 		spec->active_streams |= 1 << STREAM_MULTI_OUT;
spec             5314 sound/pci/hda/hda_generic.c 	mutex_unlock(&spec->pcm_mutex);
spec             5324 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             5327 sound/pci/hda/hda_generic.c 	err = snd_hda_multi_out_analog_prepare(codec, &spec->multiout,
spec             5339 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             5342 sound/pci/hda/hda_generic.c 	err = snd_hda_multi_out_analog_cleanup(codec, &spec->multiout);
spec             5353 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             5354 sound/pci/hda/hda_generic.c 	mutex_lock(&spec->pcm_mutex);
spec             5355 sound/pci/hda/hda_generic.c 	spec->active_streams &= ~(1 << STREAM_MULTI_OUT);
spec             5358 sound/pci/hda/hda_generic.c 	mutex_unlock(&spec->pcm_mutex);
spec             5404 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             5407 sound/pci/hda/hda_generic.c 	mutex_lock(&spec->pcm_mutex);
spec             5408 sound/pci/hda/hda_generic.c 	if (spec->indep_hp && !spec->indep_hp_enabled)
spec             5411 sound/pci/hda/hda_generic.c 		spec->active_streams |= 1 << STREAM_INDEP_HP;
spec             5414 sound/pci/hda/hda_generic.c 	mutex_unlock(&spec->pcm_mutex);
spec             5422 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             5423 sound/pci/hda/hda_generic.c 	mutex_lock(&spec->pcm_mutex);
spec             5424 sound/pci/hda/hda_generic.c 	spec->active_streams &= ~(1 << STREAM_INDEP_HP);
spec             5427 sound/pci/hda/hda_generic.c 	mutex_unlock(&spec->pcm_mutex);
spec             5460 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             5461 sound/pci/hda/hda_generic.c 	return snd_hda_multi_out_dig_open(codec, &spec->multiout);
spec             5470 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             5471 sound/pci/hda/hda_generic.c 	return snd_hda_multi_out_dig_prepare(codec, &spec->multiout,
spec             5479 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             5480 sound/pci/hda/hda_generic.c 	return snd_hda_multi_out_dig_cleanup(codec, &spec->multiout);
spec             5487 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             5488 sound/pci/hda/hda_generic.c 	return snd_hda_multi_out_dig_close(codec, &spec->multiout);
spec             5503 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             5505 sound/pci/hda/hda_generic.c 	snd_hda_codec_setup_stream(codec, spec->adc_nids[substream->number + 1],
spec             5516 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             5519 sound/pci/hda/hda_generic.c 				     spec->adc_nids[substream->number + 1]);
spec             5611 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             5612 sound/pci/hda/hda_generic.c 	hda_nid_t new_adc = spec->adc_nids[spec->dyn_adc_idx[cur]];
spec             5614 sound/pci/hda/hda_generic.c 	if (spec->cur_adc && spec->cur_adc != new_adc) {
spec             5616 sound/pci/hda/hda_generic.c 		__snd_hda_codec_cleanup_stream(codec, spec->cur_adc, 1);
spec             5617 sound/pci/hda/hda_generic.c 		spec->cur_adc = new_adc;
spec             5619 sound/pci/hda/hda_generic.c 					   spec->cur_adc_stream_tag, 0,
spec             5620 sound/pci/hda/hda_generic.c 					   spec->cur_adc_format);
spec             5633 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             5634 sound/pci/hda/hda_generic.c 	spec->cur_adc = spec->adc_nids[spec->dyn_adc_idx[spec->cur_mux[0]]];
spec             5635 sound/pci/hda/hda_generic.c 	spec->cur_adc_stream_tag = stream_tag;
spec             5636 sound/pci/hda/hda_generic.c 	spec->cur_adc_format = format;
spec             5637 sound/pci/hda/hda_generic.c 	snd_hda_codec_setup_stream(codec, spec->cur_adc, stream_tag, 0, format);
spec             5646 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             5647 sound/pci/hda/hda_generic.c 	snd_hda_codec_cleanup_stream(codec, spec->cur_adc);
spec             5648 sound/pci/hda/hda_generic.c 	spec->cur_adc = 0;
spec             5718 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             5722 sound/pci/hda/hda_generic.c 	if (spec->no_analog)
spec             5725 sound/pci/hda/hda_generic.c 	fill_pcm_stream_name(spec->stream_name_analog,
spec             5726 sound/pci/hda/hda_generic.c 			     sizeof(spec->stream_name_analog),
spec             5728 sound/pci/hda/hda_generic.c 	info = snd_hda_codec_pcm_new(codec, "%s", spec->stream_name_analog);
spec             5731 sound/pci/hda/hda_generic.c 	spec->pcm_rec[0] = info;
spec             5733 sound/pci/hda/hda_generic.c 	if (spec->multiout.num_dacs > 0) {
spec             5736 sound/pci/hda/hda_generic.c 				 spec->stream_analog_playback,
spec             5737 sound/pci/hda/hda_generic.c 				 spec->multiout.dac_nids[0]);
spec             5739 sound/pci/hda/hda_generic.c 			spec->multiout.max_channels;
spec             5740 sound/pci/hda/hda_generic.c 		if (spec->autocfg.line_out_type == AUTO_PIN_SPEAKER_OUT &&
spec             5741 sound/pci/hda/hda_generic.c 		    spec->autocfg.line_outs == 2)
spec             5745 sound/pci/hda/hda_generic.c 	if (spec->num_adc_nids) {
spec             5747 sound/pci/hda/hda_generic.c 				 (spec->dyn_adc_switch ?
spec             5749 sound/pci/hda/hda_generic.c 				 spec->stream_analog_capture,
spec             5750 sound/pci/hda/hda_generic.c 				 spec->adc_nids[0]);
spec             5755 sound/pci/hda/hda_generic.c 	if (spec->multiout.dig_out_nid || spec->dig_in_nid) {
spec             5756 sound/pci/hda/hda_generic.c 		fill_pcm_stream_name(spec->stream_name_digital,
spec             5757 sound/pci/hda/hda_generic.c 				     sizeof(spec->stream_name_digital),
spec             5760 sound/pci/hda/hda_generic.c 					     spec->stream_name_digital);
spec             5763 sound/pci/hda/hda_generic.c 		codec->slave_dig_outs = spec->multiout.slave_dig_outs;
spec             5764 sound/pci/hda/hda_generic.c 		spec->pcm_rec[1] = info;
spec             5765 sound/pci/hda/hda_generic.c 		if (spec->dig_out_type)
spec             5766 sound/pci/hda/hda_generic.c 			info->pcm_type = spec->dig_out_type;
spec             5769 sound/pci/hda/hda_generic.c 		if (spec->multiout.dig_out_nid)
spec             5772 sound/pci/hda/hda_generic.c 					 spec->stream_digital_playback,
spec             5773 sound/pci/hda/hda_generic.c 					 spec->multiout.dig_out_nid);
spec             5774 sound/pci/hda/hda_generic.c 		if (spec->dig_in_nid)
spec             5777 sound/pci/hda/hda_generic.c 					 spec->stream_digital_capture,
spec             5778 sound/pci/hda/hda_generic.c 					 spec->dig_in_nid);
spec             5781 sound/pci/hda/hda_generic.c 	if (spec->no_analog)
spec             5787 sound/pci/hda/hda_generic.c 	have_multi_adcs = (spec->num_adc_nids > 1) &&
spec             5788 sound/pci/hda/hda_generic.c 		!spec->dyn_adc_switch && !spec->auto_mic;
spec             5790 sound/pci/hda/hda_generic.c 	if (spec->alt_dac_nid || have_multi_adcs) {
spec             5791 sound/pci/hda/hda_generic.c 		fill_pcm_stream_name(spec->stream_name_alt_analog,
spec             5792 sound/pci/hda/hda_generic.c 				     sizeof(spec->stream_name_alt_analog),
spec             5795 sound/pci/hda/hda_generic.c 					     spec->stream_name_alt_analog);
spec             5798 sound/pci/hda/hda_generic.c 		spec->pcm_rec[2] = info;
spec             5799 sound/pci/hda/hda_generic.c 		if (spec->alt_dac_nid)
spec             5802 sound/pci/hda/hda_generic.c 					 spec->stream_analog_alt_playback,
spec             5803 sound/pci/hda/hda_generic.c 					 spec->alt_dac_nid);
spec             5810 sound/pci/hda/hda_generic.c 					 spec->stream_analog_alt_capture,
spec             5811 sound/pci/hda/hda_generic.c 					 spec->adc_nids[1]);
spec             5813 sound/pci/hda/hda_generic.c 				spec->num_adc_nids - 1;
spec             5841 sound/pci/hda/hda_generic.c 			      aamix_default(codec->spec));
spec             5848 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             5851 sound/pci/hda/hda_generic.c 	for (i = 0; i < spec->autocfg.line_outs; i++)
spec             5852 sound/pci/hda/hda_generic.c 		set_output_and_unmute(codec, spec->out_paths[i]);
spec             5867 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             5869 sound/pci/hda/hda_generic.c 	if (spec->autocfg.line_out_type != AUTO_PIN_HP_OUT)
spec             5870 sound/pci/hda/hda_generic.c 		__init_extra_out(codec, spec->autocfg.hp_outs, spec->hp_paths);
spec             5871 sound/pci/hda/hda_generic.c 	if (spec->autocfg.line_out_type != AUTO_PIN_SPEAKER_OUT)
spec             5872 sound/pci/hda/hda_generic.c 		__init_extra_out(codec, spec->autocfg.speaker_outs,
spec             5873 sound/pci/hda/hda_generic.c 				 spec->speaker_paths);
spec             5879 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             5882 sound/pci/hda/hda_generic.c 	for (i = 0; i < spec->multi_ios; i++) {
spec             5883 sound/pci/hda/hda_generic.c 		hda_nid_t pin = spec->multi_io[i].pin;
spec             5888 sound/pci/hda/hda_generic.c 		if (!spec->multi_io[i].ctl_in)
spec             5889 sound/pci/hda/hda_generic.c 			spec->multi_io[i].ctl_in =
spec             5892 sound/pci/hda/hda_generic.c 				      aamix_default(spec));
spec             5898 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             5900 sound/pci/hda/hda_generic.c 	if (!spec->have_aamix_ctl)
spec             5902 sound/pci/hda/hda_generic.c 	if (!has_aamix_out_paths(spec))
spec             5904 sound/pci/hda/hda_generic.c 	update_aamix_paths(codec, spec->aamix_mode, spec->out_paths[0],
spec             5905 sound/pci/hda/hda_generic.c 			   spec->aamix_out_paths[0],
spec             5906 sound/pci/hda/hda_generic.c 			   spec->autocfg.line_out_type);
spec             5907 sound/pci/hda/hda_generic.c 	update_aamix_paths(codec, spec->aamix_mode, spec->hp_paths[0],
spec             5908 sound/pci/hda/hda_generic.c 			   spec->aamix_out_paths[1],
spec             5910 sound/pci/hda/hda_generic.c 	update_aamix_paths(codec, spec->aamix_mode, spec->speaker_paths[0],
spec             5911 sound/pci/hda/hda_generic.c 			   spec->aamix_out_paths[2],
spec             5918 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             5919 sound/pci/hda/hda_generic.c 	struct auto_pin_cfg *cfg = &spec->autocfg;
spec             5928 sound/pci/hda/hda_generic.c 		if (spec->mixer_nid) {
spec             5929 sound/pci/hda/hda_generic.c 			resume_path_from_idx(codec, spec->loopback_paths[i]);
spec             5930 sound/pci/hda/hda_generic.c 			resume_path_from_idx(codec, spec->loopback_merge_path);
spec             5938 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             5939 sound/pci/hda/hda_generic.c 	struct hda_input_mux *imux = &spec->input_mux;
spec             5943 sound/pci/hda/hda_generic.c 	if (spec->dyn_adc_switch)
spec             5946 sound/pci/hda/hda_generic.c 		nums = spec->num_adc_nids;
spec             5953 sound/pci/hda/hda_generic.c 				if (i == spec->cur_mux[c])
spec             5958 sound/pci/hda/hda_generic.c 		if (spec->hp_mic)
spec             5962 sound/pci/hda/hda_generic.c 	if (spec->cap_sync_hook)
spec             5963 sound/pci/hda/hda_generic.c 		spec->cap_sync_hook(codec, NULL, NULL);
spec             5969 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             5973 sound/pci/hda/hda_generic.c 	for (i = 0; i < spec->autocfg.dig_outs; i++)
spec             5974 sound/pci/hda/hda_generic.c 		set_output_and_unmute(codec, spec->digout_paths[i]);
spec             5975 sound/pci/hda/hda_generic.c 	pin = spec->autocfg.dig_in_pin;
spec             5978 sound/pci/hda/hda_generic.c 		resume_path_from_idx(codec, spec->digin_path);
spec             6007 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             6009 sound/pci/hda/hda_generic.c 	if (spec->init_hook)
spec             6010 sound/pci/hda/hda_generic.c 		spec->init_hook(codec);
spec             6012 sound/pci/hda/hda_generic.c 	if (!spec->skip_verbs)
spec             6032 sound/pci/hda/hda_generic.c 	if (spec->vmaster_mute.sw_kctl && spec->vmaster_mute.hook)
spec             6033 sound/pci/hda/hda_generic.c 		snd_hda_sync_vmaster_hook(&spec->vmaster_mute);
spec             6049 sound/pci/hda/hda_generic.c 	snd_hda_gen_spec_free(codec->spec);
spec             6050 sound/pci/hda/hda_generic.c 	kfree(codec->spec);
spec             6051 sound/pci/hda/hda_generic.c 	codec->spec = NULL;
spec             6083 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec = codec->spec;
spec             6084 sound/pci/hda/hda_generic.c 	return snd_hda_check_amp_list_power(codec, &spec->loopback, nid);
spec             6112 sound/pci/hda/hda_generic.c 	struct hda_gen_spec *spec;
spec             6115 sound/pci/hda/hda_generic.c 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
spec             6116 sound/pci/hda/hda_generic.c 	if (!spec)
spec             6118 sound/pci/hda/hda_generic.c 	snd_hda_gen_spec_init(spec);
spec             6119 sound/pci/hda/hda_generic.c 	codec->spec = spec;
spec             6121 sound/pci/hda/hda_generic.c 	err = snd_hda_parse_pin_defcfg(codec, &spec->autocfg, NULL, 0);
spec             6125 sound/pci/hda/hda_generic.c 	err = snd_hda_gen_parse_auto_config(codec, &spec->autocfg);
spec              315 sound/pci/hda/hda_generic.h int snd_hda_gen_spec_init(struct hda_gen_spec *spec);
spec              329 sound/pci/hda/hda_generic.h snd_hda_gen_add_kctl(struct hda_gen_spec *spec, const char *name,
spec               42 sound/pci/hda/patch_analog.c #define set_beep_amp(spec, nid, idx, dir) \
spec               43 sound/pci/hda/patch_analog.c 	((spec)->beep_amp = HDA_COMPOSE_AMP_VAL(nid, 1, idx, dir)) /* mono */
spec               45 sound/pci/hda/patch_analog.c #define set_beep_amp(spec, nid, idx, dir) /* NOP */
spec               51 sound/pci/hda/patch_analog.c 	struct ad198x_spec *spec = codec->spec;
spec               54 sound/pci/hda/patch_analog.c 	if (!spec->beep_amp)
spec               63 sound/pci/hda/patch_analog.c 		kctl->private_value = spec->beep_amp;
spec              132 sound/pci/hda/patch_analog.c 	struct ad198x_spec *spec = codec->spec;
spec              134 sound/pci/hda/patch_analog.c 	if (!spec->eapd_nid)
spec              138 sound/pci/hda/patch_analog.c 	snd_hda_codec_write_cache(codec, spec->eapd_nid, 0,
spec              176 sound/pci/hda/patch_analog.c 	struct ad198x_spec *spec = codec->spec;
spec              177 sound/pci/hda/patch_analog.c 	struct auto_pin_cfg *cfg = &spec->gen.autocfg;
spec              184 sound/pci/hda/patch_analog.c 	spec->gen.indep_hp = indep_hp;
spec              185 sound/pci/hda/patch_analog.c 	if (!spec->gen.add_stereo_mix_input)
spec              186 sound/pci/hda/patch_analog.c 		spec->gen.add_stereo_mix_input = HDA_HINT_STEREO_MIX_AUTO;
spec              204 sound/pci/hda/patch_analog.c 	struct ad198x_spec *spec;
spec              206 sound/pci/hda/patch_analog.c 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
spec              207 sound/pci/hda/patch_analog.c 	if (!spec)
spec              209 sound/pci/hda/patch_analog.c 	codec->spec = spec;
spec              210 sound/pci/hda/patch_analog.c 	snd_hda_gen_spec_init(&spec->gen);
spec              223 sound/pci/hda/patch_analog.c 	struct ad198x_spec *spec = codec->spec;
spec              227 sound/pci/hda/patch_analog.c 		spec->gen.keep_eapd_on = 1;
spec              228 sound/pci/hda/patch_analog.c 		spec->gen.vmaster_mute.hook = ad_vmaster_eapd_hook;
spec              229 sound/pci/hda/patch_analog.c 		spec->eapd_nid = 0x1b;
spec              237 sound/pci/hda/patch_analog.c 	struct ad198x_spec *spec = codec->spec;
spec              241 sound/pci/hda/patch_analog.c 		spec->gen.keep_eapd_on = 1;
spec              242 sound/pci/hda/patch_analog.c 		spec->eapd_nid = 0x1b;
spec              250 sound/pci/hda/patch_analog.c 	struct ad198x_spec *spec = codec->spec;
spec              254 sound/pci/hda/patch_analog.c 		spec->gen.add_stereo_mix_input = HDA_HINT_STEREO_MIX_ENABLE;
spec              391 sound/pci/hda/patch_analog.c 	struct ad198x_spec *spec;
spec              404 sound/pci/hda/patch_analog.c 	spec = codec->spec;
spec              409 sound/pci/hda/patch_analog.c 	spec->gen.mixer_nid = 0x07;
spec              410 sound/pci/hda/patch_analog.c 	spec->gen.beep_nid = 0x19;
spec              411 sound/pci/hda/patch_analog.c 	set_beep_amp(spec, 0x18, 0, HDA_OUTPUT);
spec              419 sound/pci/hda/patch_analog.c 	spec->gen.multiout.no_share_stream = 1;
spec              421 sound/pci/hda/patch_analog.c 	spec->gen.preferred_dacs = preferred_pairs;
spec              424 sound/pci/hda/patch_analog.c 	spec->gen.auto_mute_via_amp = 1;
spec              453 sound/pci/hda/patch_analog.c 	struct ad198x_spec *spec = codec->spec;
spec              456 sound/pci/hda/patch_analog.c 	hda_nid_t dig_out = spec->gen.multiout.dig_out_nid;
spec              471 sound/pci/hda/patch_analog.c 	struct ad198x_spec *spec = codec->spec;
spec              473 sound/pci/hda/patch_analog.c 	ucontrol->value.enumerated.item[0] = spec->cur_smux;
spec              481 sound/pci/hda/patch_analog.c 	struct ad198x_spec *spec = codec->spec;
spec              483 sound/pci/hda/patch_analog.c 	hda_nid_t dig_out = spec->gen.multiout.dig_out_nid;
spec              488 sound/pci/hda/patch_analog.c 	if (spec->cur_smux == val)
spec              490 sound/pci/hda/patch_analog.c 	spec->cur_smux = val;
spec              506 sound/pci/hda/patch_analog.c 	struct ad198x_spec *spec = codec->spec;
spec              507 sound/pci/hda/patch_analog.c 	hda_nid_t dig_out = spec->gen.multiout.dig_out_nid;
spec              515 sound/pci/hda/patch_analog.c 	if (!snd_hda_gen_add_kctl(&spec->gen, NULL, &ad1983_auto_smux_mixer))
spec              524 sound/pci/hda/patch_analog.c 	struct ad198x_spec *spec;
spec              530 sound/pci/hda/patch_analog.c 	spec = codec->spec;
spec              532 sound/pci/hda/patch_analog.c 	spec->gen.mixer_nid = 0x0e;
spec              533 sound/pci/hda/patch_analog.c 	spec->gen.beep_nid = 0x10;
spec              534 sound/pci/hda/patch_analog.c 	set_beep_amp(spec, 0x10, 0, HDA_OUTPUT);
spec              561 sound/pci/hda/patch_analog.c 	struct ad198x_spec *spec = codec->spec;
spec              564 sound/pci/hda/patch_analog.c 		spec->gen.vmaster_mute.hook = ad_vmaster_eapd_hook;
spec              565 sound/pci/hda/patch_analog.c 		spec->eapd_nid = 0x05;
spec              612 sound/pci/hda/patch_analog.c 	struct ad198x_spec *spec;
spec              618 sound/pci/hda/patch_analog.c 	spec = codec->spec;
spec              620 sound/pci/hda/patch_analog.c 	spec->gen.mixer_nid = 0x0e;
spec              621 sound/pci/hda/patch_analog.c 	spec->gen.beep_nid = 0x10;
spec              622 sound/pci/hda/patch_analog.c 	set_beep_amp(spec, 0x0d, 0, HDA_OUTPUT);
spec              746 sound/pci/hda/patch_analog.c 	struct ad198x_spec *spec = codec->spec;
spec              748 sound/pci/hda/patch_analog.c 	ucontrol->value.enumerated.item[0] = spec->cur_smux;
spec              756 sound/pci/hda/patch_analog.c 	struct ad198x_spec *spec = codec->spec;
spec              763 sound/pci/hda/patch_analog.c 	if (spec->cur_smux == val)
spec              768 sound/pci/hda/patch_analog.c 					 spec->smux_paths[spec->cur_smux]);
spec              771 sound/pci/hda/patch_analog.c 	path = snd_hda_get_path_from_idx(codec, spec->smux_paths[val]);
spec              774 sound/pci/hda/patch_analog.c 	spec->cur_smux = val;
spec              789 sound/pci/hda/patch_analog.c 	struct ad198x_spec *spec = codec->spec;
spec              795 sound/pci/hda/patch_analog.c 	if (!spec->gen.autocfg.dig_outs)
spec              800 sound/pci/hda/patch_analog.c 		path = snd_hda_get_path_from_idx(codec, spec->smux_paths[i]);
spec              810 sound/pci/hda/patch_analog.c 	struct ad198x_spec *spec = codec->spec;
spec              843 sound/pci/hda/patch_analog.c 	if (!spec->gen.autocfg.dig_outs ||
spec              852 sound/pci/hda/patch_analog.c 		struct nid_path *path = snd_array_new(&spec->gen.paths);
spec              858 sound/pci/hda/patch_analog.c 		spec->smux_paths[i] = snd_hda_get_path_idx(codec, path);
spec              861 sound/pci/hda/patch_analog.c 	if (!snd_hda_gen_add_kctl(&spec->gen, NULL, &ad1988_auto_smux_mixer))
spec              901 sound/pci/hda/patch_analog.c 	struct ad198x_spec *spec;
spec              907 sound/pci/hda/patch_analog.c 	spec = codec->spec;
spec              909 sound/pci/hda/patch_analog.c 	spec->gen.mixer_nid = 0x20;
spec              910 sound/pci/hda/patch_analog.c 	spec->gen.mixer_merge_nid = 0x21;
spec              911 sound/pci/hda/patch_analog.c 	spec->gen.beep_nid = 0x10;
spec              912 sound/pci/hda/patch_analog.c 	set_beep_amp(spec, 0x10, 0, HDA_OUTPUT);
spec              978 sound/pci/hda/patch_analog.c 	struct ad198x_spec *spec = codec->spec;
spec              980 sound/pci/hda/patch_analog.c 	if (spec->eapd_nid)
spec              990 sound/pci/hda/patch_analog.c 	struct ad198x_spec *spec = codec->spec;
spec              994 sound/pci/hda/patch_analog.c 		spec->gen.vmaster_mute.hook = ad1884_vmaster_hp_gpio_hook;
spec              995 sound/pci/hda/patch_analog.c 		spec->gen.own_eapd_ctl = 1;
spec             1004 sound/pci/hda/patch_analog.c 		if (spec->gen.autocfg.line_out_type == AUTO_PIN_SPEAKER_OUT)
spec             1005 sound/pci/hda/patch_analog.c 			spec->eapd_nid = spec->gen.autocfg.line_out_pins[0];
spec             1007 sound/pci/hda/patch_analog.c 			spec->eapd_nid = spec->gen.autocfg.speaker_pins[0];
spec             1015 sound/pci/hda/patch_analog.c 	struct ad198x_spec *spec = codec->spec;
spec             1018 sound/pci/hda/patch_analog.c 		spec->gen.keep_eapd_on = 1;
spec             1019 sound/pci/hda/patch_analog.c 		spec->gen.vmaster_mute.hook = ad_vmaster_eapd_hook;
spec             1020 sound/pci/hda/patch_analog.c 		spec->eapd_nid = 0x12;
spec             1022 sound/pci/hda/patch_analog.c 		spec->beep_amp = HDA_COMPOSE_AMP_VAL(0x20, 3, 3, HDA_INPUT);
spec             1023 sound/pci/hda/patch_analog.c 		spec->gen.beep_nid = 0; /* no digital beep */
spec             1081 sound/pci/hda/patch_analog.c 	struct ad198x_spec *spec;
spec             1087 sound/pci/hda/patch_analog.c 	spec = codec->spec;
spec             1089 sound/pci/hda/patch_analog.c 	spec->gen.mixer_nid = 0x20;
spec             1090 sound/pci/hda/patch_analog.c 	spec->gen.mixer_merge_nid = 0x21;
spec             1091 sound/pci/hda/patch_analog.c 	spec->gen.beep_nid = 0x10;
spec             1092 sound/pci/hda/patch_analog.c 	set_beep_amp(spec, 0x10, 0, HDA_OUTPUT);
spec             1127 sound/pci/hda/patch_analog.c 	struct ad198x_spec *spec;
spec             1133 sound/pci/hda/patch_analog.c 	spec = codec->spec;
spec             1135 sound/pci/hda/patch_analog.c 	spec->gen.mixer_nid = 0x20;
spec             1136 sound/pci/hda/patch_analog.c 	spec->gen.mixer_merge_nid = 0x21;
spec             1137 sound/pci/hda/patch_analog.c 	spec->gen.beep_nid = 0x10;
spec             1138 sound/pci/hda/patch_analog.c 	set_beep_amp(spec, 0x10, 0, HDA_OUTPUT);
spec               29 sound/pci/hda/patch_ca0110.c 	struct hda_gen_spec *spec = codec->spec;
spec               32 sound/pci/hda/patch_ca0110.c 	err = snd_hda_parse_pin_defcfg(codec, &spec->autocfg, NULL, 0);
spec               35 sound/pci/hda/patch_ca0110.c 	err = snd_hda_gen_parse_auto_config(codec, &spec->autocfg);
spec               45 sound/pci/hda/patch_ca0110.c 	struct hda_gen_spec *spec;
spec               48 sound/pci/hda/patch_ca0110.c 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
spec               49 sound/pci/hda/patch_ca0110.c 	if (!spec)
spec               51 sound/pci/hda/patch_ca0110.c 	snd_hda_gen_spec_init(spec);
spec               52 sound/pci/hda/patch_ca0110.c 	codec->spec = spec;
spec               55 sound/pci/hda/patch_ca0110.c 	spec->multi_cap_vol = 1;
spec             1071 sound/pci/hda/patch_ca0132.c #define ca0132_quirk(spec)		((spec)->quirk)
spec             1072 sound/pci/hda/patch_ca0132.c #define ca0132_use_pci_mmio(spec)	((spec)->use_pci_mmio)
spec             1073 sound/pci/hda/patch_ca0132.c #define ca0132_use_alt_functions(spec)	((spec)->use_alt_functions)
spec             1074 sound/pci/hda/patch_ca0132.c #define ca0132_use_alt_controls(spec)	((spec)->use_alt_controls)
spec             1076 sound/pci/hda/patch_ca0132.c #define ca0132_quirk(spec)		({ (void)(spec); QUIRK_NONE; })
spec             1077 sound/pci/hda/patch_ca0132.c #define ca0132_use_alt_functions(spec)	({ (void)(spec); false; })
spec             1078 sound/pci/hda/patch_ca0132.c #define ca0132_use_pci_mmio(spec)	({ (void)(spec); false; })
spec             1079 sound/pci/hda/patch_ca0132.c #define ca0132_use_alt_controls(spec)	({ (void)(spec); false; })
spec             1246 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             1249 sound/pci/hda/patch_ca0132.c 	if (spec->curr_chip_addx == chip_addx)
spec             1262 sound/pci/hda/patch_ca0132.c 	spec->curr_chip_addx = (res < 0) ? ~0U : chip_addx;
spec             1272 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             1286 sound/pci/hda/patch_ca0132.c 	spec->curr_chip_addx = (res != -EIO) ?
spec             1287 sound/pci/hda/patch_ca0132.c 					(spec->curr_chip_addx + 4) : ~0U;
spec             1317 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             1337 sound/pci/hda/patch_ca0132.c 	spec->curr_chip_addx = (res != -EIO) ?
spec             1338 sound/pci/hda/patch_ca0132.c 					(spec->curr_chip_addx + 4) : ~0U;
spec             1349 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             1352 sound/pci/hda/patch_ca0132.c 	mutex_lock(&spec->chipio_mutex);
spec             1364 sound/pci/hda/patch_ca0132.c 	mutex_unlock(&spec->chipio_mutex);
spec             1400 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             1403 sound/pci/hda/patch_ca0132.c 	mutex_lock(&spec->chipio_mutex);
spec             1410 sound/pci/hda/patch_ca0132.c 	mutex_unlock(&spec->chipio_mutex);
spec             1422 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             1425 sound/pci/hda/patch_ca0132.c 	mutex_lock(&spec->chipio_mutex);
spec             1437 sound/pci/hda/patch_ca0132.c 	mutex_unlock(&spec->chipio_mutex);
spec             1463 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             1471 sound/pci/hda/patch_ca0132.c 		mutex_lock(&spec->chipio_mutex);
spec             1480 sound/pci/hda/patch_ca0132.c 		mutex_unlock(&spec->chipio_mutex);
spec             1589 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             1591 sound/pci/hda/patch_ca0132.c 	mutex_lock(&spec->chipio_mutex);
spec             1604 sound/pci/hda/patch_ca0132.c 	mutex_unlock(&spec->chipio_mutex);
spec             1650 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             1655 sound/pci/hda/patch_ca0132.c 	mutex_lock(&spec->chipio_mutex);
spec             1670 sound/pci/hda/patch_ca0132.c 	mutex_unlock(&spec->chipio_mutex);
spec             1825 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             1832 sound/pci/hda/patch_ca0132.c 	if ((data & 0x00ffffff) == spec->wait_scp_header) {
spec             1833 sound/pci/hda/patch_ca0132.c 		spec->scp_resp_header = data;
spec             1834 sound/pci/hda/patch_ca0132.c 		spec->scp_resp_count = data >> 27;
spec             1835 sound/pci/hda/patch_ca0132.c 		count = spec->wait_num_data;
spec             1836 sound/pci/hda/patch_ca0132.c 		dspio_read_multiple(codec, spec->scp_resp_data,
spec             1837 sound/pci/hda/patch_ca0132.c 				    &spec->scp_resp_count, count);
spec             1854 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             1881 sound/pci/hda/patch_ca0132.c 		spec->wait_scp_header = *((unsigned int *)send_buf);
spec             1886 sound/pci/hda/patch_ca0132.c 		spec->wait_scp_header &= 0xffff0000;
spec             1887 sound/pci/hda/patch_ca0132.c 		spec->wait_scp_header |= (resp_src_id << 8) | (resp_target_id);
spec             1888 sound/pci/hda/patch_ca0132.c 		spec->wait_num_data = return_buf_size/sizeof(unsigned int) - 1;
spec             1889 sound/pci/hda/patch_ca0132.c 		spec->wait_scp = 1;
spec             1896 sound/pci/hda/patch_ca0132.c 		spec->wait_scp = 0;
spec             1905 sound/pci/hda/patch_ca0132.c 		} while (spec->wait_scp && time_before(jiffies, timeout));
spec             1907 sound/pci/hda/patch_ca0132.c 		if (!spec->wait_scp) {
spec             1909 sound/pci/hda/patch_ca0132.c 			memcpy(&ret_msg->hdr, &spec->scp_resp_header, 4);
spec             1910 sound/pci/hda/patch_ca0132.c 			memcpy(&ret_msg->data, spec->scp_resp_data,
spec             1911 sound/pci/hda/patch_ca0132.c 			       spec->wait_num_data);
spec             1912 sound/pci/hda/patch_ca0132.c 			*bytes_returned = (spec->scp_resp_count + 1) * 4;
spec             1917 sound/pci/hda/patch_ca0132.c 		spec->wait_scp = 0;
spec             2629 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             2641 sound/pci/hda/patch_ca0132.c 	spec->dsp_stream_id = status;
spec             2692 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = dma->codec->spec;
spec             2694 sound/pci/hda/patch_ca0132.c 	return spec->dsp_stream_id;
spec             2987 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             3031 sound/pci/hda/patch_ca0132.c 	spec->dsp_stream_id = status;
spec             3103 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             3105 sound/pci/hda/patch_ca0132.c 	if (!ca0132_use_alt_functions(spec)) {
spec             3237 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             3243 sound/pci/hda/patch_ca0132.c 	writew(gpio_data, spec->mem_base + 0x320);
spec             3257 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             3260 sound/pci/hda/patch_ca0132.c 	writel(0x0000007e, spec->mem_base + 0x210);
spec             3261 sound/pci/hda/patch_ca0132.c 	readl(spec->mem_base + 0x210);
spec             3262 sound/pci/hda/patch_ca0132.c 	writel(0x0000005a, spec->mem_base + 0x210);
spec             3263 sound/pci/hda/patch_ca0132.c 	readl(spec->mem_base + 0x210);
spec             3264 sound/pci/hda/patch_ca0132.c 	readl(spec->mem_base + 0x210);
spec             3266 sound/pci/hda/patch_ca0132.c 	writel(0x00800005, spec->mem_base + 0x20c);
spec             3267 sound/pci/hda/patch_ca0132.c 	writel(group, spec->mem_base + 0x804);
spec             3269 sound/pci/hda/patch_ca0132.c 	writel(0x00800005, spec->mem_base + 0x20c);
spec             3274 sound/pci/hda/patch_ca0132.c 	writel(write_val, spec->mem_base + 0x204);
spec             3280 sound/pci/hda/patch_ca0132.c 	readl(spec->mem_base + 0x860);
spec             3281 sound/pci/hda/patch_ca0132.c 	readl(spec->mem_base + 0x854);
spec             3282 sound/pci/hda/patch_ca0132.c 	readl(spec->mem_base + 0x840);
spec             3284 sound/pci/hda/patch_ca0132.c 	writel(0x00800004, spec->mem_base + 0x20c);
spec             3285 sound/pci/hda/patch_ca0132.c 	writel(0x00000000, spec->mem_base + 0x210);
spec             3286 sound/pci/hda/patch_ca0132.c 	readl(spec->mem_base + 0x210);
spec             3287 sound/pci/hda/patch_ca0132.c 	readl(spec->mem_base + 0x210);
spec             3296 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             3299 sound/pci/hda/patch_ca0132.c 	writel(0x0000007e, spec->mem_base + 0x210);
spec             3300 sound/pci/hda/patch_ca0132.c 	readl(spec->mem_base + 0x210);
spec             3301 sound/pci/hda/patch_ca0132.c 	writel(0x0000005a, spec->mem_base + 0x210);
spec             3302 sound/pci/hda/patch_ca0132.c 	readl(spec->mem_base + 0x210);
spec             3303 sound/pci/hda/patch_ca0132.c 	readl(spec->mem_base + 0x210);
spec             3305 sound/pci/hda/patch_ca0132.c 	writel(0x00800003, spec->mem_base + 0x20c);
spec             3306 sound/pci/hda/patch_ca0132.c 	writel(group, spec->mem_base + 0x804);
spec             3308 sound/pci/hda/patch_ca0132.c 	writel(0x00800005, spec->mem_base + 0x20c);
spec             3313 sound/pci/hda/patch_ca0132.c 	writel(write_val, spec->mem_base + 0x204);
spec             3315 sound/pci/hda/patch_ca0132.c 	readl(spec->mem_base + 0x860);
spec             3316 sound/pci/hda/patch_ca0132.c 	readl(spec->mem_base + 0x854);
spec             3317 sound/pci/hda/patch_ca0132.c 	readl(spec->mem_base + 0x840);
spec             3319 sound/pci/hda/patch_ca0132.c 	writel(0x00800004, spec->mem_base + 0x20c);
spec             3320 sound/pci/hda/patch_ca0132.c 	writel(0x00000000, spec->mem_base + 0x210);
spec             3321 sound/pci/hda/patch_ca0132.c 	readl(spec->mem_base + 0x210);
spec             3322 sound/pci/hda/patch_ca0132.c 	readl(spec->mem_base + 0x210);
spec             3335 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             3337 sound/pci/hda/patch_ca0132.c 	switch (ca0132_quirk(spec)) {
spec             3357 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             3359 sound/pci/hda/patch_ca0132.c 	switch (ca0132_quirk(spec)) {
spec             3503 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             3505 sound/pci/hda/patch_ca0132.c 	snd_hda_codec_setup_stream(codec, spec->dacs[0], stream_tag, 0, format);
spec             3514 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             3516 sound/pci/hda/patch_ca0132.c 	if (spec->dsp_state == DSP_DOWNLOADING)
spec             3521 sound/pci/hda/patch_ca0132.c 	if (spec->effects_switch[PLAY_ENHANCEMENT - EFFECT_START_NID])
spec             3524 sound/pci/hda/patch_ca0132.c 	snd_hda_codec_cleanup_stream(codec, spec->dacs[0]);
spec             3533 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             3537 sound/pci/hda/patch_ca0132.c 	if (spec->dsp_state != DSP_DOWNLOADED)
spec             3541 sound/pci/hda/patch_ca0132.c 	if (spec->effects_switch[PLAY_ENHANCEMENT - EFFECT_START_NID]) {
spec             3542 sound/pci/hda/patch_ca0132.c 		if ((spec->effects_switch[SURROUND - EFFECT_START_NID]) ||
spec             3543 sound/pci/hda/patch_ca0132.c 		    (spec->effects_switch[DIALOG_PLUS - EFFECT_START_NID]))
spec             3548 sound/pci/hda/patch_ca0132.c 	if (spec->cur_out_type == SPEAKER_OUT)
spec             3561 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             3562 sound/pci/hda/patch_ca0132.c 	return snd_hda_multi_out_dig_open(codec, &spec->multiout);
spec             3571 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             3572 sound/pci/hda/patch_ca0132.c 	return snd_hda_multi_out_dig_prepare(codec, &spec->multiout,
spec             3580 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             3581 sound/pci/hda/patch_ca0132.c 	return snd_hda_multi_out_dig_cleanup(codec, &spec->multiout);
spec             3588 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             3589 sound/pci/hda/patch_ca0132.c 	return snd_hda_multi_out_dig_close(codec, &spec->multiout);
spec             3611 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             3613 sound/pci/hda/patch_ca0132.c 	if (spec->dsp_state == DSP_DOWNLOADING)
spec             3624 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             3628 sound/pci/hda/patch_ca0132.c 	if (spec->dsp_state != DSP_DOWNLOADED)
spec             3631 sound/pci/hda/patch_ca0132.c 	if (spec->effects_switch[CRYSTAL_VOICE - EFFECT_START_NID])
spec             3856 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             3861 sound/pci/hda/patch_ca0132.c 	*valp = spec->cur_ctl_vals[idx];
spec             3882 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             3889 sound/pci/hda/patch_ca0132.c 	if (spec->cur_ctl_vals[idx] == *valp)
spec             3892 sound/pci/hda/patch_ca0132.c 	spec->cur_ctl_vals[idx] = *valp;
spec             3917 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             3924 sound/pci/hda/patch_ca0132.c 	if (spec->cur_ctl_vals[idx] == *valp)
spec             3927 sound/pci/hda/patch_ca0132.c 	spec->cur_ctl_vals[idx] = *valp;
spec             3952 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             3959 sound/pci/hda/patch_ca0132.c 	if (spec->cur_ctl_vals[idx] == *valp)
spec             3962 sound/pci/hda/patch_ca0132.c 	spec->cur_ctl_vals[idx] = *valp;
spec             4033 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             4037 sound/pci/hda/patch_ca0132.c 	spec->cur_ctl_vals[WEDGE_ANGLE - TUNING_CTL_START_NID] = 10;
spec             4039 sound/pci/hda/patch_ca0132.c 	spec->cur_ctl_vals[SVM_LEVEL - TUNING_CTL_START_NID] = 74;
spec             4043 sound/pci/hda/patch_ca0132.c 		spec->cur_ctl_vals[i] = 24;
spec             4055 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             4066 sound/pci/hda/patch_ca0132.c 	auto_jack = spec->vnode_lswitch[VNID_HP_ASEL - VNODE_START_NID];
spec             4069 sound/pci/hda/patch_ca0132.c 		jack_present = snd_hda_jack_detect(codec, spec->unsol_tag_hp);
spec             4072 sound/pci/hda/patch_ca0132.c 			spec->vnode_lswitch[VNID_HP_SEL - VNODE_START_NID];
spec             4075 sound/pci/hda/patch_ca0132.c 		spec->cur_out_type = HEADPHONE_OUT;
spec             4077 sound/pci/hda/patch_ca0132.c 		spec->cur_out_type = SPEAKER_OUT;
spec             4079 sound/pci/hda/patch_ca0132.c 	if (spec->cur_out_type == SPEAKER_OUT) {
spec             4093 sound/pci/hda/patch_ca0132.c 		snd_hda_codec_write(codec, spec->out_pins[1], 0,
spec             4095 sound/pci/hda/patch_ca0132.c 		snd_hda_codec_write(codec, spec->out_pins[0], 0,
spec             4097 sound/pci/hda/patch_ca0132.c 		snd_hda_codec_write(codec, spec->out_pins[0], 0,
spec             4099 sound/pci/hda/patch_ca0132.c 		snd_hda_codec_write(codec, spec->out_pins[0], 0,
spec             4103 sound/pci/hda/patch_ca0132.c 		pin_ctl = snd_hda_codec_read(codec, spec->out_pins[1], 0,
spec             4105 sound/pci/hda/patch_ca0132.c 		snd_hda_set_pin_ctl(codec, spec->out_pins[1],
spec             4108 sound/pci/hda/patch_ca0132.c 		pin_ctl = snd_hda_codec_read(codec, spec->out_pins[0], 0,
spec             4110 sound/pci/hda/patch_ca0132.c 		snd_hda_set_pin_ctl(codec, spec->out_pins[0],
spec             4126 sound/pci/hda/patch_ca0132.c 		snd_hda_codec_write(codec, spec->out_pins[0], 0,
spec             4128 sound/pci/hda/patch_ca0132.c 		snd_hda_codec_write(codec, spec->out_pins[0], 0,
spec             4130 sound/pci/hda/patch_ca0132.c 		snd_hda_codec_write(codec, spec->out_pins[1], 0,
spec             4132 sound/pci/hda/patch_ca0132.c 		snd_hda_codec_write(codec, spec->out_pins[0], 0,
spec             4136 sound/pci/hda/patch_ca0132.c 		pin_ctl = snd_hda_codec_read(codec, spec->out_pins[0], 0,
spec             4138 sound/pci/hda/patch_ca0132.c 		snd_hda_set_pin_ctl(codec, spec->out_pins[0],
spec             4141 sound/pci/hda/patch_ca0132.c 		pin_ctl = snd_hda_codec_read(codec, spec->out_pins[1], 0,
spec             4143 sound/pci/hda/patch_ca0132.c 		snd_hda_set_pin_ctl(codec, spec->out_pins[1],
spec             4159 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             4164 sound/pci/hda/patch_ca0132.c 			ae5_ca0113_output_presets[spec->cur_out_type].group[i],
spec             4165 sound/pci/hda/patch_ca0132.c 			ae5_ca0113_output_presets[spec->cur_out_type].target[i],
spec             4166 sound/pci/hda/patch_ca0132.c 			ae5_ca0113_output_presets[spec->cur_out_type].vals[i]);
spec             4175 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             4178 sound/pci/hda/patch_ca0132.c 	switch (spec->cur_out_type) {
spec             4180 sound/pci/hda/patch_ca0132.c 		switch (ca0132_quirk(spec)) {
spec             4216 sound/pci/hda/patch_ca0132.c 		switch (ca0132_quirk(spec)) {
spec             4227 sound/pci/hda/patch_ca0132.c 			zxr_headphone_gain_set(codec, spec->zxr_gain_set);
spec             4241 sound/pci/hda/patch_ca0132.c 					spec->ae5_headphone_gain_val);
spec             4253 sound/pci/hda/patch_ca0132.c 		switch (ca0132_quirk(spec)) {
spec             4303 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             4311 sound/pci/hda/patch_ca0132.c 	hda_nid_t headphone_nid = spec->out_pins[1];
spec             4317 sound/pci/hda/patch_ca0132.c 	auto_jack = spec->vnode_lswitch[VNID_HP_ASEL - VNODE_START_NID];
spec             4325 sound/pci/hda/patch_ca0132.c 		jack_present = snd_hda_jack_detect(codec, spec->unsol_tag_hp) ||
spec             4326 sound/pci/hda/patch_ca0132.c 			   snd_hda_jack_detect(codec, spec->unsol_tag_front_hp);
spec             4329 sound/pci/hda/patch_ca0132.c 			spec->cur_out_type = HEADPHONE_OUT;
spec             4331 sound/pci/hda/patch_ca0132.c 			spec->cur_out_type = SPEAKER_OUT;
spec             4333 sound/pci/hda/patch_ca0132.c 		spec->cur_out_type = spec->out_enum_val;
spec             4343 sound/pci/hda/patch_ca0132.c 	switch (spec->cur_out_type) {
spec             4348 sound/pci/hda/patch_ca0132.c 		pin_ctl = snd_hda_codec_read(codec, spec->out_pins[1], 0,
spec             4350 sound/pci/hda/patch_ca0132.c 		snd_hda_set_pin_ctl(codec, spec->out_pins[1],
spec             4353 sound/pci/hda/patch_ca0132.c 		pin_ctl = snd_hda_codec_read(codec, spec->out_pins[0], 0,
spec             4355 sound/pci/hda/patch_ca0132.c 		snd_hda_set_pin_ctl(codec, spec->out_pins[0],
spec             4358 sound/pci/hda/patch_ca0132.c 		snd_hda_codec_write(codec, spec->out_pins[0], 0,
spec             4362 sound/pci/hda/patch_ca0132.c 		if (spec->effects_switch[PLAY_ENHANCEMENT - EFFECT_START_NID])
spec             4370 sound/pci/hda/patch_ca0132.c 		snd_hda_codec_write(codec, spec->out_pins[0], 0,
spec             4374 sound/pci/hda/patch_ca0132.c 		pin_ctl = snd_hda_codec_read(codec, spec->out_pins[0], 0,
spec             4376 sound/pci/hda/patch_ca0132.c 		snd_hda_set_pin_ctl(codec, spec->out_pins[0],
spec             4381 sound/pci/hda/patch_ca0132.c 		if (snd_hda_jack_detect(codec, spec->unsol_tag_front_hp))
spec             4382 sound/pci/hda/patch_ca0132.c 			headphone_nid = spec->out_pins[2];
spec             4383 sound/pci/hda/patch_ca0132.c 		else if (snd_hda_jack_detect(codec, spec->unsol_tag_hp))
spec             4384 sound/pci/hda/patch_ca0132.c 			headphone_nid = spec->out_pins[1];
spec             4391 sound/pci/hda/patch_ca0132.c 		if (spec->effects_switch[PLAY_ENHANCEMENT - EFFECT_START_NID])
spec             4400 sound/pci/hda/patch_ca0132.c 		pin_ctl = snd_hda_codec_read(codec, spec->out_pins[0], 0,
spec             4402 sound/pci/hda/patch_ca0132.c 		snd_hda_set_pin_ctl(codec, spec->out_pins[0],
spec             4405 sound/pci/hda/patch_ca0132.c 		pin_ctl = snd_hda_codec_read(codec, spec->out_pins[1], 0,
spec             4407 sound/pci/hda/patch_ca0132.c 		snd_hda_set_pin_ctl(codec, spec->out_pins[1],
spec             4410 sound/pci/hda/patch_ca0132.c 		snd_hda_codec_write(codec, spec->out_pins[0], 0,
spec             4413 sound/pci/hda/patch_ca0132.c 		pin_ctl = snd_hda_codec_read(codec, spec->out_pins[2], 0,
spec             4415 sound/pci/hda/patch_ca0132.c 		snd_hda_set_pin_ctl(codec, spec->out_pins[2],
spec             4418 sound/pci/hda/patch_ca0132.c 		pin_ctl = snd_hda_codec_read(codec, spec->out_pins[3], 0,
spec             4420 sound/pci/hda/patch_ca0132.c 		snd_hda_set_pin_ctl(codec, spec->out_pins[3],
spec             4433 sound/pci/hda/patch_ca0132.c 	if (spec->effects_switch[PLAY_ENHANCEMENT - EFFECT_START_NID])
spec             4435 sound/pci/hda/patch_ca0132.c 			spec->effects_switch[X_BASS - EFFECT_START_NID]);
spec             4438 sound/pci/hda/patch_ca0132.c 	for (i = 0; i < alt_out_presets[spec->cur_out_type].commands; i++) {
spec             4440 sound/pci/hda/patch_ca0132.c 		alt_out_presets[spec->cur_out_type].mids[i],
spec             4441 sound/pci/hda/patch_ca0132.c 		alt_out_presets[spec->cur_out_type].reqs[i],
spec             4442 sound/pci/hda/patch_ca0132.c 		alt_out_presets[spec->cur_out_type].vals[i]);
spec             4456 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = container_of(
spec             4460 sound/pci/hda/patch_ca0132.c 	if (ca0132_use_alt_functions(spec))
spec             4461 sound/pci/hda/patch_ca0132.c 		ca0132_alt_select_out(spec->codec);
spec             4463 sound/pci/hda/patch_ca0132.c 		ca0132_select_out(spec->codec);
spec             4465 sound/pci/hda/patch_ca0132.c 	jack = snd_hda_jack_tbl_get(spec->codec, spec->unsol_tag_hp);
spec             4468 sound/pci/hda/patch_ca0132.c 		snd_hda_jack_report_sync(spec->codec);
spec             4484 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             4487 sound/pci/hda/patch_ca0132.c 	if (spec->dsp_state != DSP_DOWNLOADED)
spec             4491 sound/pci/hda/patch_ca0132.c 	if (!spec->effects_switch[CRYSTAL_VOICE - EFFECT_START_NID] ||
spec             4496 sound/pci/hda/patch_ca0132.c 		if (spec->cur_mic_type == DIGITAL_MIC)
spec             4506 sound/pci/hda/patch_ca0132.c 		if (spec->cur_mic_type == DIGITAL_MIC)
spec             4522 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             4525 sound/pci/hda/patch_ca0132.c 	if (spec->dsp_state != DSP_DOWNLOADED)
spec             4534 sound/pci/hda/patch_ca0132.c 	if (!spec->effects_switch[CRYSTAL_VOICE - EFFECT_START_NID] ||
spec             4535 sound/pci/hda/patch_ca0132.c 	    (val == 0) || spec->in_enum_val == REAR_LINE_IN) {
spec             4544 sound/pci/hda/patch_ca0132.c 		if (ca0132_quirk(spec) == QUIRK_R3DI)
spec             4548 sound/pci/hda/patch_ca0132.c 		if (spec->in_enum_val == REAR_LINE_IN)
spec             4551 sound/pci/hda/patch_ca0132.c 			if (ca0132_quirk(spec) == QUIRK_SBZ)
spec             4563 sound/pci/hda/patch_ca0132.c 		if (ca0132_quirk(spec) == QUIRK_R3DI)
spec             4566 sound/pci/hda/patch_ca0132.c 		if (spec->effects_switch[VOICE_FOCUS - EFFECT_START_NID])
spec             4593 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             4601 sound/pci/hda/patch_ca0132.c 	auto_jack = spec->vnode_lswitch[VNID_AMIC1_ASEL - VNODE_START_NID];
spec             4604 sound/pci/hda/patch_ca0132.c 		jack_present = snd_hda_jack_detect(codec, spec->unsol_tag_amic1);
spec             4607 sound/pci/hda/patch_ca0132.c 			spec->vnode_lswitch[VNID_AMIC1_SEL - VNODE_START_NID];
spec             4610 sound/pci/hda/patch_ca0132.c 		spec->cur_mic_type = LINE_MIC_IN;
spec             4612 sound/pci/hda/patch_ca0132.c 		spec->cur_mic_type = DIGITAL_MIC;
spec             4614 sound/pci/hda/patch_ca0132.c 	if (spec->cur_mic_type == DIGITAL_MIC) {
spec             4621 sound/pci/hda/patch_ca0132.c 				   spec->effects_switch
spec             4627 sound/pci/hda/patch_ca0132.c 		ca0132_mic_boost_set(codec, spec->cur_mic_boost);
spec             4645 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             4655 sound/pci/hda/patch_ca0132.c 	spec->cur_mic_type = spec->in_enum_val;
spec             4657 sound/pci/hda/patch_ca0132.c 	switch (spec->cur_mic_type) {
spec             4659 sound/pci/hda/patch_ca0132.c 		switch (ca0132_quirk(spec)) {
spec             4683 sound/pci/hda/patch_ca0132.c 		if (ca0132_quirk(spec) == QUIRK_R3DI)
spec             4690 sound/pci/hda/patch_ca0132.c 		switch (ca0132_quirk(spec)) {
spec             4706 sound/pci/hda/patch_ca0132.c 		ca0132_alt_mic_boost_set(codec, spec->mic_boost_enum_val);
spec             4710 sound/pci/hda/patch_ca0132.c 		switch (ca0132_quirk(spec)) {
spec             4727 sound/pci/hda/patch_ca0132.c 		if (ca0132_quirk(spec) == QUIRK_R3DI)
spec             4733 sound/pci/hda/patch_ca0132.c 		switch (ca0132_quirk(spec)) {
spec             4746 sound/pci/hda/patch_ca0132.c 		switch (ca0132_quirk(spec)) {
spec             4768 sound/pci/hda/patch_ca0132.c 		if (ca0132_quirk(spec) == QUIRK_R3DI)
spec             4776 sound/pci/hda/patch_ca0132.c 		switch (ca0132_quirk(spec)) {
spec             4788 sound/pci/hda/patch_ca0132.c 		ca0132_alt_mic_boost_set(codec, spec->mic_boost_enum_val);
spec             4804 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             4809 sound/pci/hda/patch_ca0132.c 		nid = spec->shared_out_nid;
spec             4812 sound/pci/hda/patch_ca0132.c 		nid = spec->shared_mic_nid;
spec             4830 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             4835 sound/pci/hda/patch_ca0132.c 		tmp = spec->effects_switch[CRYSTAL_VOICE - EFFECT_START_NID] ?
spec             4852 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             4864 sound/pci/hda/patch_ca0132.c 		if (!spec->effects_switch[PLAY_ENHANCEMENT - EFFECT_START_NID])
spec             4866 sound/pci/hda/patch_ca0132.c 		if (spec->cur_out_type == SURROUND_OUT && nid == X_BASS)
spec             4873 sound/pci/hda/patch_ca0132.c 		if (!spec->effects_switch[CRYSTAL_VOICE - EFFECT_START_NID])
spec             4877 sound/pci/hda/patch_ca0132.c 		if ((nid == VOICE_FOCUS) && (spec->cur_mic_type != DIGITAL_MIC))
spec             4881 sound/pci/hda/patch_ca0132.c 		if ((nid == VOICE_FOCUS) && ca0132_use_pci_mmio(spec)
spec             4882 sound/pci/hda/patch_ca0132.c 				&& (spec->cur_mic_type != REAR_LINE_IN)) {
spec             4883 sound/pci/hda/patch_ca0132.c 			if (spec->effects_switch[CRYSTAL_VOICE -
spec             4886 sound/pci/hda/patch_ca0132.c 				if (spec->effects_switch[VOICE_FOCUS -
spec             4900 sound/pci/hda/patch_ca0132.c 		if ((nid == NOISE_REDUCTION) && ca0132_use_pci_mmio(spec)
spec             4901 sound/pci/hda/patch_ca0132.c 				&& (spec->cur_mic_type != REAR_LINE_IN)) {
spec             4902 sound/pci/hda/patch_ca0132.c 			if (spec->effects_switch[CRYSTAL_VOICE -
spec             4904 sound/pci/hda/patch_ca0132.c 				if (spec->effects_switch[NOISE_REDUCTION -
spec             4916 sound/pci/hda/patch_ca0132.c 		if (ca0132_use_alt_functions(spec) &&
spec             4917 sound/pci/hda/patch_ca0132.c 				spec->in_enum_val == REAR_LINE_IN)
spec             4939 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             4944 sound/pci/hda/patch_ca0132.c 		    spec->effects_switch[PLAY_ENHANCEMENT - EFFECT_START_NID]);
spec             4946 sound/pci/hda/patch_ca0132.c 	if (ca0132_use_alt_functions(spec))
spec             4953 sound/pci/hda/patch_ca0132.c 		ret |= ca0132_effects_set(codec, nid, spec->effects_switch[i]);
spec             4961 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             4962 sound/pci/hda/patch_ca0132.c 	unsigned int oldval = snd_hda_codec_read(codec, spec->adcs[0], 0,
spec             4965 sound/pci/hda/patch_ca0132.c 		snd_hda_codec_write(codec, spec->adcs[0], 0,
spec             4974 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             4977 sound/pci/hda/patch_ca0132.c 		snd_hda_codec_write(codec, spec->adcs[0], 0,
spec             4987 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             4993 sound/pci/hda/patch_ca0132.c 		    spec->effects_switch[CRYSTAL_VOICE - EFFECT_START_NID]);
spec             4999 sound/pci/hda/patch_ca0132.c 		ret |= ca0132_effects_set(codec, nid, spec->effects_switch[i]);
spec             5002 sound/pci/hda/patch_ca0132.c 	ret |= ca0132_voicefx_set(codec, (spec->voicefx_val ? 1 : 0));
spec             5006 sound/pci/hda/patch_ca0132.c 	if (ca0132_use_alt_functions(spec))
spec             5016 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             5020 sound/pci/hda/patch_ca0132.c 		ret = snd_hda_codec_amp_update(codec, spec->input_pins[0], 0,
spec             5023 sound/pci/hda/patch_ca0132.c 		ret = snd_hda_codec_amp_update(codec, spec->input_pins[0], 0,
spec             5031 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             5034 sound/pci/hda/patch_ca0132.c 	ret = snd_hda_codec_amp_update(codec, spec->input_pins[0], 0,
spec             5068 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             5073 sound/pci/hda/patch_ca0132.c 			spec->vnode_lswitch[VNID_HP_ASEL - VNODE_START_NID];
spec             5075 sound/pci/hda/patch_ca0132.c 			if (ca0132_use_alt_functions(spec))
spec             5085 sound/pci/hda/patch_ca0132.c 			spec->vnode_lswitch[VNID_AMIC1_ASEL - VNODE_START_NID];
spec             5092 sound/pci/hda/patch_ca0132.c 		if (ca0132_use_alt_functions(spec))
spec             5174 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             5177 sound/pci/hda/patch_ca0132.c 	*valp = spec->xbass_xover_freq;
spec             5185 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             5190 sound/pci/hda/patch_ca0132.c 	*valp = spec->fx_ctl_val[idx];
spec             5228 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             5234 sound/pci/hda/patch_ca0132.c 	if (spec->xbass_xover_freq == *valp)
spec             5237 sound/pci/hda/patch_ca0132.c 	spec->xbass_xover_freq = *valp;
spec             5249 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             5256 sound/pci/hda/patch_ca0132.c 	if (spec->fx_ctl_val[idx] == *valp)
spec             5259 sound/pci/hda/patch_ca0132.c 	spec->fx_ctl_val[idx] = *valp;
spec             5296 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             5298 sound/pci/hda/patch_ca0132.c 	ucontrol->value.enumerated.item[0] = spec->mic_boost_enum_val;
spec             5306 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             5316 sound/pci/hda/patch_ca0132.c 	spec->mic_boost_enum_val = sel;
spec             5318 sound/pci/hda/patch_ca0132.c 	if (spec->in_enum_val != REAR_LINE_IN)
spec             5319 sound/pci/hda/patch_ca0132.c 		ca0132_alt_mic_boost_set(codec, spec->mic_boost_enum_val);
spec             5350 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             5352 sound/pci/hda/patch_ca0132.c 	ucontrol->value.enumerated.item[0] = spec->ae5_headphone_gain_val;
spec             5360 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             5370 sound/pci/hda/patch_ca0132.c 	spec->ae5_headphone_gain_val = sel;
spec             5372 sound/pci/hda/patch_ca0132.c 	if (spec->out_enum_val == HEADPHONE_OUT)
spec             5373 sound/pci/hda/patch_ca0132.c 		ae5_headphone_gain_set(codec, spec->ae5_headphone_gain_val);
spec             5403 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             5405 sound/pci/hda/patch_ca0132.c 	ucontrol->value.enumerated.item[0] = spec->ae5_filter_val;
spec             5413 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             5423 sound/pci/hda/patch_ca0132.c 	spec->ae5_filter_val = sel;
spec             5453 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             5455 sound/pci/hda/patch_ca0132.c 	ucontrol->value.enumerated.item[0] = spec->in_enum_val;
spec             5463 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             5473 sound/pci/hda/patch_ca0132.c 	spec->in_enum_val = sel;
spec             5498 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             5500 sound/pci/hda/patch_ca0132.c 	ucontrol->value.enumerated.item[0] = spec->out_enum_val;
spec             5508 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             5519 sound/pci/hda/patch_ca0132.c 	spec->out_enum_val = sel;
spec             5521 sound/pci/hda/patch_ca0132.c 	auto_jack = spec->vnode_lswitch[VNID_HP_ASEL - VNODE_START_NID];
spec             5554 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             5556 sound/pci/hda/patch_ca0132.c 	ucontrol->value.enumerated.item[0] = spec->smart_volume_setting;
spec             5564 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             5576 sound/pci/hda/patch_ca0132.c 	spec->smart_volume_setting = sel;
spec             5618 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             5620 sound/pci/hda/patch_ca0132.c 	ucontrol->value.enumerated.item[0] = spec->eq_preset_val;
spec             5628 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             5651 sound/pci/hda/patch_ca0132.c 		spec->eq_preset_val = sel;
spec             5675 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             5677 sound/pci/hda/patch_ca0132.c 	ucontrol->value.enumerated.item[0] = spec->voicefx_val;
spec             5685 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             5708 sound/pci/hda/patch_ca0132.c 		spec->voicefx_val = sel;
spec             5720 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             5728 sound/pci/hda/patch_ca0132.c 			*valp = spec->vnode_lswitch[nid - VNODE_START_NID];
spec             5732 sound/pci/hda/patch_ca0132.c 			*valp = spec->vnode_rswitch[nid - VNODE_START_NID];
spec             5740 sound/pci/hda/patch_ca0132.c 		*valp = spec->effects_switch[nid - EFFECT_START_NID];
spec             5745 sound/pci/hda/patch_ca0132.c 	if (nid == spec->input_pins[0]) {
spec             5746 sound/pci/hda/patch_ca0132.c 		*valp = spec->cur_mic_boost;
spec             5757 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             5770 sound/pci/hda/patch_ca0132.c 			spec->vnode_lswitch[nid - VNODE_START_NID] = *valp;
spec             5774 sound/pci/hda/patch_ca0132.c 			spec->vnode_rswitch[nid - VNODE_START_NID] = *valp;
spec             5783 sound/pci/hda/patch_ca0132.c 		spec->effects_switch[nid - EFFECT_START_NID] = *valp;
spec             5790 sound/pci/hda/patch_ca0132.c 		spec->effects_switch[nid - EFFECT_START_NID] = *valp;
spec             5798 sound/pci/hda/patch_ca0132.c 		spec->effects_switch[nid - EFFECT_START_NID] = *valp;
spec             5804 sound/pci/hda/patch_ca0132.c 	if (nid == spec->input_pins[0]) {
spec             5805 sound/pci/hda/patch_ca0132.c 		spec->cur_mic_boost = *valp;
spec             5806 sound/pci/hda/patch_ca0132.c 		if (ca0132_use_alt_functions(spec)) {
spec             5807 sound/pci/hda/patch_ca0132.c 			if (spec->in_enum_val != REAR_LINE_IN)
spec             5811 sound/pci/hda/patch_ca0132.c 			if (spec->cur_mic_type != DIGITAL_MIC)
spec             5819 sound/pci/hda/patch_ca0132.c 		spec->zxr_gain_set = *valp;
spec             5820 sound/pci/hda/patch_ca0132.c 		if (spec->cur_out_type == HEADPHONE_OUT)
spec             5843 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             5852 sound/pci/hda/patch_ca0132.c 	lookup_val = spec->vnode_lvol[nid - VNODE_START_NID];
spec             5859 sound/pci/hda/patch_ca0132.c 	lookup_val = spec->vnode_rvol[nid - VNODE_START_NID];
spec             5875 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             5885 sound/pci/hda/patch_ca0132.c 		nid = spec->shared_out_nid;
spec             5895 sound/pci/hda/patch_ca0132.c 		nid = spec->shared_mic_nid;
spec             5913 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             5920 sound/pci/hda/patch_ca0132.c 		*valp = spec->vnode_lvol[nid - VNODE_START_NID];
spec             5924 sound/pci/hda/patch_ca0132.c 		*valp = spec->vnode_rvol[nid - VNODE_START_NID];
spec             5934 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             5944 sound/pci/hda/patch_ca0132.c 		spec->vnode_lvol[nid - VNODE_START_NID] = *valp;
spec             5948 sound/pci/hda/patch_ca0132.c 		spec->vnode_rvol[nid - VNODE_START_NID] = *valp;
spec             5981 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             5999 sound/pci/hda/patch_ca0132.c 		spec->vnode_lvol[vnid - VNODE_START_NID] = *valp;
spec             6003 sound/pci/hda/patch_ca0132.c 		spec->vnode_rvol[vnid - VNODE_START_NID] = *valp;
spec             6021 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             6031 sound/pci/hda/patch_ca0132.c 		nid = spec->shared_out_nid;
spec             6041 sound/pci/hda/patch_ca0132.c 		nid = spec->shared_mic_nid;
spec             6094 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             6102 sound/pci/hda/patch_ca0132.c 	if (ca0132_use_alt_controls(spec) && (nid <= IN_EFFECT_END_NID))
spec             6368 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             6373 sound/pci/hda/patch_ca0132.c 	for (i = 0; i < spec->num_mixers; i++) {
spec             6374 sound/pci/hda/patch_ca0132.c 		err = snd_hda_add_new_ctls(codec, spec->mixers[i]);
spec             6379 sound/pci/hda/patch_ca0132.c 	if (ca0132_use_alt_functions(spec)) {
spec             6380 sound/pci/hda/patch_ca0132.c 		snd_hda_set_vmaster_tlv(codec, spec->dacs[0], HDA_OUTPUT,
spec             6381 sound/pci/hda/patch_ca0132.c 					spec->tlv);
spec             6383 sound/pci/hda/patch_ca0132.c 					spec->tlv, ca0132_alt_slave_pfxs,
spec             6388 sound/pci/hda/patch_ca0132.c 					    true, &spec->vmaster_mute.sw_kctl);
spec             6399 sound/pci/hda/patch_ca0132.c 		if (ca0132_use_pci_mmio(spec)) {
spec             6416 sound/pci/hda/patch_ca0132.c 	if (ca0132_use_alt_controls(spec)) {
spec             6470 sound/pci/hda/patch_ca0132.c 	if (ca0132_use_alt_functions(spec)) {
spec             6481 sound/pci/hda/patch_ca0132.c 		if (ca0132_quirk(spec) != QUIRK_ZXR) {
spec             6488 sound/pci/hda/patch_ca0132.c 	if (ca0132_quirk(spec) == QUIRK_AE5) {
spec             6497 sound/pci/hda/patch_ca0132.c 	if (ca0132_quirk(spec) == QUIRK_ZXR) {
spec             6506 sound/pci/hda/patch_ca0132.c 	err = snd_hda_jack_add_kctls(codec, &spec->autocfg);
spec             6510 sound/pci/hda/patch_ca0132.c 	if (spec->dig_out) {
spec             6511 sound/pci/hda/patch_ca0132.c 		err = snd_hda_create_spdif_out_ctls(codec, spec->dig_out,
spec             6512 sound/pci/hda/patch_ca0132.c 						    spec->dig_out);
spec             6515 sound/pci/hda/patch_ca0132.c 		err = snd_hda_create_spdif_share_sw(codec, &spec->multiout);
spec             6521 sound/pci/hda/patch_ca0132.c 	if (spec->dig_in) {
spec             6522 sound/pci/hda/patch_ca0132.c 		err = snd_hda_create_spdif_in_ctls(codec, spec->dig_in);
spec             6527 sound/pci/hda/patch_ca0132.c 	if (ca0132_use_alt_functions(spec))
spec             6535 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             6538 sound/pci/hda/patch_ca0132.c 	if (spec->dig_out) {
spec             6539 sound/pci/hda/patch_ca0132.c 		err = snd_hda_create_spdif_out_ctls(codec, spec->dig_out,
spec             6540 sound/pci/hda/patch_ca0132.c 				spec->dig_out);
spec             6545 sound/pci/hda/patch_ca0132.c 	if (spec->dig_in) {
spec             6546 sound/pci/hda/patch_ca0132.c 		err = snd_hda_create_spdif_in_ctls(codec, spec->dig_in);
spec             6599 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             6605 sound/pci/hda/patch_ca0132.c 	if (ca0132_use_alt_functions(spec)) {
spec             6611 sound/pci/hda/patch_ca0132.c 	info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = spec->dacs[0];
spec             6613 sound/pci/hda/patch_ca0132.c 		spec->multiout.max_channels;
spec             6616 sound/pci/hda/patch_ca0132.c 	info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->adcs[0];
spec             6619 sound/pci/hda/patch_ca0132.c 	if (!ca0132_use_alt_functions(spec)) {
spec             6626 sound/pci/hda/patch_ca0132.c 		info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->adcs[1];
spec             6634 sound/pci/hda/patch_ca0132.c 	info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->adcs[2];
spec             6636 sound/pci/hda/patch_ca0132.c 	if (!spec->dig_out && !spec->dig_in)
spec             6643 sound/pci/hda/patch_ca0132.c 	if (spec->dig_out) {
spec             6646 sound/pci/hda/patch_ca0132.c 		info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = spec->dig_out;
spec             6648 sound/pci/hda/patch_ca0132.c 	if (spec->dig_in) {
spec             6651 sound/pci/hda/patch_ca0132.c 		info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->dig_in;
spec             6659 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             6667 sound/pci/hda/patch_ca0132.c 	info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->adcs[0];
spec             6670 sound/pci/hda/patch_ca0132.c 	if (!spec->dig_out && !spec->dig_in)
spec             6677 sound/pci/hda/patch_ca0132.c 	if (spec->dig_out) {
spec             6680 sound/pci/hda/patch_ca0132.c 		info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = spec->dig_out;
spec             6682 sound/pci/hda/patch_ca0132.c 	if (spec->dig_in) {
spec             6685 sound/pci/hda/patch_ca0132.c 		info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->dig_in;
spec             6740 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             6754 sound/pci/hda/patch_ca0132.c 		val = spec->dmic_ctl;
spec             6756 sound/pci/hda/patch_ca0132.c 		snd_hda_codec_write(codec, spec->input_pins[0], 0,
spec             6759 sound/pci/hda/patch_ca0132.c 		if (!(spec->dmic_ctl & 0x20))
spec             6766 sound/pci/hda/patch_ca0132.c 		val = spec->dmic_ctl;
spec             6769 sound/pci/hda/patch_ca0132.c 		snd_hda_codec_write(codec, spec->input_pins[0], 0,
spec             6772 sound/pci/hda/patch_ca0132.c 		if (!(spec->dmic_ctl & 0x20))
spec             6784 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             6797 sound/pci/hda/patch_ca0132.c 	snd_hda_codec_write(codec, spec->input_pins[0], 0,
spec             6807 sound/pci/hda/patch_ca0132.c 	snd_hda_codec_write(codec, spec->input_pins[0], 0,
spec             6817 sound/pci/hda/patch_ca0132.c 	if (ca0132_quirk(spec) == QUIRK_ALIENWARE_M17XR4)
spec             6822 sound/pci/hda/patch_ca0132.c 	spec->dmic_ctl = val;
spec             6823 sound/pci/hda/patch_ca0132.c 	snd_hda_codec_write(codec, spec->input_pins[0], 0,
spec             6832 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             6834 sound/pci/hda/patch_ca0132.c 	mutex_lock(&spec->chipio_mutex);
spec             6847 sound/pci/hda/patch_ca0132.c 	mutex_unlock(&spec->chipio_mutex);
spec             6852 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             6858 sound/pci/hda/patch_ca0132.c 	for (i = 0; i < spec->multiout.num_dacs; i++)
spec             6859 sound/pci/hda/patch_ca0132.c 		refresh_amp_caps(codec, spec->dacs[i], HDA_OUTPUT);
spec             6861 sound/pci/hda/patch_ca0132.c 	for (i = 0; i < spec->num_outputs; i++)
spec             6862 sound/pci/hda/patch_ca0132.c 		refresh_amp_caps(codec, spec->out_pins[i], HDA_OUTPUT);
spec             6864 sound/pci/hda/patch_ca0132.c 	for (i = 0; i < spec->num_inputs; i++) {
spec             6865 sound/pci/hda/patch_ca0132.c 		refresh_amp_caps(codec, spec->adcs[i], HDA_INPUT);
spec             6866 sound/pci/hda/patch_ca0132.c 		refresh_amp_caps(codec, spec->input_pins[i], HDA_INPUT);
spec             6876 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             6882 sound/pci/hda/patch_ca0132.c 	snd_hda_codec_setup_stream(codec, spec->dacs[0], spec->dsp_stream_id,
spec             6885 sound/pci/hda/patch_ca0132.c 	snd_hda_codec_cleanup_stream(codec, spec->dacs[0]);
spec             6893 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             6899 sound/pci/hda/patch_ca0132.c 	if (ca0132_quirk(spec) == QUIRK_R3DI) {
spec             6909 sound/pci/hda/patch_ca0132.c 	if (ca0132_quirk(spec) == QUIRK_R3DI)
spec             6923 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             6925 sound/pci/hda/patch_ca0132.c 	mutex_lock(&spec->chipio_mutex);
spec             6944 sound/pci/hda/patch_ca0132.c 	mutex_unlock(&spec->chipio_mutex);
spec             6955 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             6957 sound/pci/hda/patch_ca0132.c 	mutex_lock(&spec->chipio_mutex);
spec             6971 sound/pci/hda/patch_ca0132.c 	if (ca0132_quirk(spec) == QUIRK_SBZ) {
spec             6984 sound/pci/hda/patch_ca0132.c 	} else if (ca0132_quirk(spec) == QUIRK_ZXR) {
spec             6997 sound/pci/hda/patch_ca0132.c 	mutex_unlock(&spec->chipio_mutex);
spec             7006 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             7014 sound/pci/hda/patch_ca0132.c 		switch (ca0132_quirk(spec)) {
spec             7052 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             7067 sound/pci/hda/patch_ca0132.c 	switch (ca0132_quirk(spec)) {
spec             7083 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             7091 sound/pci/hda/patch_ca0132.c 	writeb(0xff, spec->mem_base + 0x304);
spec             7092 sound/pci/hda/patch_ca0132.c 	writeb(0xff, spec->mem_base + 0x304);
spec             7093 sound/pci/hda/patch_ca0132.c 	writeb(0xff, spec->mem_base + 0x304);
spec             7094 sound/pci/hda/patch_ca0132.c 	writeb(0xff, spec->mem_base + 0x304);
spec             7095 sound/pci/hda/patch_ca0132.c 	writeb(0x00, spec->mem_base + 0x100);
spec             7096 sound/pci/hda/patch_ca0132.c 	writeb(0xff, spec->mem_base + 0x304);
spec             7097 sound/pci/hda/patch_ca0132.c 	writeb(0x00, spec->mem_base + 0x100);
spec             7098 sound/pci/hda/patch_ca0132.c 	writeb(0xff, spec->mem_base + 0x304);
spec             7099 sound/pci/hda/patch_ca0132.c 	writeb(0x00, spec->mem_base + 0x100);
spec             7100 sound/pci/hda/patch_ca0132.c 	writeb(0xff, spec->mem_base + 0x304);
spec             7101 sound/pci/hda/patch_ca0132.c 	writeb(0x00, spec->mem_base + 0x100);
spec             7102 sound/pci/hda/patch_ca0132.c 	writeb(0xff, spec->mem_base + 0x304);
spec             7164 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             7166 sound/pci/hda/patch_ca0132.c 	mutex_lock(&spec->chipio_mutex);
spec             7191 sound/pci/hda/patch_ca0132.c 	mutex_unlock(&spec->chipio_mutex);
spec             7196 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             7198 sound/pci/hda/patch_ca0132.c 	mutex_lock(&spec->chipio_mutex);
spec             7223 sound/pci/hda/patch_ca0132.c 	mutex_unlock(&spec->chipio_mutex);
spec             7231 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             7236 sound/pci/hda/patch_ca0132.c 	if (spec->dsp_state != DSP_DOWNLOADED)
spec             7276 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             7281 sound/pci/hda/patch_ca0132.c 	if (spec->dsp_state != DSP_DOWNLOADED)
spec             7299 sound/pci/hda/patch_ca0132.c 	if (ca0132_quirk(spec) == QUIRK_R3DI)
spec             7320 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             7325 sound/pci/hda/patch_ca0132.c 	if (spec->dsp_state != DSP_DOWNLOADED)
spec             7377 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             7382 sound/pci/hda/patch_ca0132.c 	if (spec->dsp_state != DSP_DOWNLOADED)
spec             7444 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             7446 sound/pci/hda/patch_ca0132.c 	if (ca0132_use_alt_functions(spec)) {
spec             7477 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             7479 sound/pci/hda/patch_ca0132.c 	if (ca0132_use_alt_functions(spec)) {
spec             7508 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             7516 sound/pci/hda/patch_ca0132.c 	switch (ca0132_quirk(spec)) {
spec             7563 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             7569 sound/pci/hda/patch_ca0132.c 	if (spec->dsp_state == DSP_DOWNLOAD_FAILED)
spec             7573 sound/pci/hda/patch_ca0132.c 	if (spec->dsp_state != DSP_DOWNLOADED) {
spec             7574 sound/pci/hda/patch_ca0132.c 		spec->dsp_state = DSP_DOWNLOADING;
spec             7577 sound/pci/hda/patch_ca0132.c 			spec->dsp_state = DSP_DOWNLOAD_FAILED;
spec             7579 sound/pci/hda/patch_ca0132.c 			spec->dsp_state = DSP_DOWNLOADED;
spec             7583 sound/pci/hda/patch_ca0132.c 	if (spec->dsp_state == DSP_DOWNLOADED && !ca0132_use_alt_functions(spec))
spec             7590 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             7594 sound/pci/hda/patch_ca0132.c 	if (spec->wait_scp) {
spec             7596 sound/pci/hda/patch_ca0132.c 			spec->wait_scp = 0;
spec             7605 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             7614 sound/pci/hda/patch_ca0132.c 	schedule_delayed_work(&spec->unsol_hp_work, msecs_to_jiffies(500));
spec             7619 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             7621 sound/pci/hda/patch_ca0132.c 	if (ca0132_use_alt_functions(spec))
spec             7629 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             7630 sound/pci/hda/patch_ca0132.c 	snd_hda_jack_detect_enable_callback(codec, spec->unsol_tag_hp, hp_callback);
spec             7631 sound/pci/hda/patch_ca0132.c 	snd_hda_jack_detect_enable_callback(codec, spec->unsol_tag_amic1,
spec             7636 sound/pci/hda/patch_ca0132.c 	if (ca0132_use_alt_functions(spec))
spec             7638 sound/pci/hda/patch_ca0132.c 			spec->unsol_tag_front_hp, hp_callback);
spec             7718 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             7723 sound/pci/hda/patch_ca0132.c 	mutex_init(&spec->chipio_mutex);
spec             7725 sound/pci/hda/patch_ca0132.c 	spec->cur_out_type = SPEAKER_OUT;
spec             7726 sound/pci/hda/patch_ca0132.c 	if (!ca0132_use_alt_functions(spec))
spec             7727 sound/pci/hda/patch_ca0132.c 		spec->cur_mic_type = DIGITAL_MIC;
spec             7729 sound/pci/hda/patch_ca0132.c 		spec->cur_mic_type = REAR_MIC;
spec             7731 sound/pci/hda/patch_ca0132.c 	spec->cur_mic_boost = 0;
spec             7734 sound/pci/hda/patch_ca0132.c 		spec->vnode_lvol[i] = 0x5a;
spec             7735 sound/pci/hda/patch_ca0132.c 		spec->vnode_rvol[i] = 0x5a;
spec             7736 sound/pci/hda/patch_ca0132.c 		spec->vnode_lswitch[i] = 0;
spec             7737 sound/pci/hda/patch_ca0132.c 		spec->vnode_rswitch[i] = 0;
spec             7746 sound/pci/hda/patch_ca0132.c 		spec->effects_switch[i] = on ? 1 : 0;
spec             7752 sound/pci/hda/patch_ca0132.c 	if (ca0132_use_alt_controls(spec)) {
spec             7753 sound/pci/hda/patch_ca0132.c 		spec->xbass_xover_freq = 8;
spec             7755 sound/pci/hda/patch_ca0132.c 			spec->fx_ctl_val[i] = effect_slider_defaults[i];
spec             7758 sound/pci/hda/patch_ca0132.c 	spec->voicefx_val = 0;
spec             7759 sound/pci/hda/patch_ca0132.c 	spec->effects_switch[PLAY_ENHANCEMENT - EFFECT_START_NID] = 1;
spec             7760 sound/pci/hda/patch_ca0132.c 	spec->effects_switch[CRYSTAL_VOICE - EFFECT_START_NID] = 0;
spec             7767 sound/pci/hda/patch_ca0132.c 	if (ca0132_quirk(spec) == QUIRK_ZXR)
spec             7768 sound/pci/hda/patch_ca0132.c 		spec->in_enum_val = REAR_MIC;
spec             7789 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             7793 sound/pci/hda/patch_ca0132.c 		writeb(0x0, spec->mem_base + 0x100);
spec             7795 sound/pci/hda/patch_ca0132.c 		writeb(0xb3, spec->mem_base + 0x304);
spec             7969 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             7976 sound/pci/hda/patch_ca0132.c 	if (spec->startup_check_entered)
spec             7979 sound/pci/hda/patch_ca0132.c 	spec->startup_check_entered = true;
spec             8001 sound/pci/hda/patch_ca0132.c 		spec->dsp_state = DSP_DOWNLOAD_INIT;
spec             8049 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             8051 sound/pci/hda/patch_ca0132.c 	writel(0x00820680, spec->mem_base + 0x01C);
spec             8052 sound/pci/hda/patch_ca0132.c 	writel(0x00820680, spec->mem_base + 0x01C);
spec             8106 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             8108 sound/pci/hda/patch_ca0132.c 	if (ca0132_quirk(spec) == QUIRK_AE5)
spec             8109 sound/pci/hda/patch_ca0132.c 		writel(0x00000001, spec->mem_base + 0x400);
spec             8111 sound/pci/hda/patch_ca0132.c 		writel(0x00000000, spec->mem_base + 0x400);
spec             8113 sound/pci/hda/patch_ca0132.c 	if (ca0132_quirk(spec) == QUIRK_AE5)
spec             8114 sound/pci/hda/patch_ca0132.c 		writel(0x00000001, spec->mem_base + 0x408);
spec             8116 sound/pci/hda/patch_ca0132.c 		writel(0x00000000, spec->mem_base + 0x408);
spec             8118 sound/pci/hda/patch_ca0132.c 	if (ca0132_quirk(spec) == QUIRK_AE5)
spec             8119 sound/pci/hda/patch_ca0132.c 		writel(0x00000001, spec->mem_base + 0x40c);
spec             8121 sound/pci/hda/patch_ca0132.c 		writel(0x00000000, spec->mem_base + 0x40C);
spec             8123 sound/pci/hda/patch_ca0132.c 	if (ca0132_quirk(spec) == QUIRK_ZXR)
spec             8124 sound/pci/hda/patch_ca0132.c 		writel(0x00880640, spec->mem_base + 0x01C);
spec             8126 sound/pci/hda/patch_ca0132.c 		writel(0x00880680, spec->mem_base + 0x01C);
spec             8128 sound/pci/hda/patch_ca0132.c 	if (ca0132_quirk(spec) == QUIRK_AE5)
spec             8129 sound/pci/hda/patch_ca0132.c 		writel(0x00000080, spec->mem_base + 0xC0C);
spec             8131 sound/pci/hda/patch_ca0132.c 		writel(0x00000083, spec->mem_base + 0xC0C);
spec             8133 sound/pci/hda/patch_ca0132.c 	writel(0x00000030, spec->mem_base + 0xC00);
spec             8134 sound/pci/hda/patch_ca0132.c 	writel(0x00000000, spec->mem_base + 0xC04);
spec             8136 sound/pci/hda/patch_ca0132.c 	if (ca0132_quirk(spec) == QUIRK_AE5)
spec             8137 sound/pci/hda/patch_ca0132.c 		writel(0x00000000, spec->mem_base + 0xC0C);
spec             8139 sound/pci/hda/patch_ca0132.c 		writel(0x00000003, spec->mem_base + 0xC0C);
spec             8141 sound/pci/hda/patch_ca0132.c 	writel(0x00000003, spec->mem_base + 0xC0C);
spec             8142 sound/pci/hda/patch_ca0132.c 	writel(0x00000003, spec->mem_base + 0xC0C);
spec             8143 sound/pci/hda/patch_ca0132.c 	writel(0x00000003, spec->mem_base + 0xC0C);
spec             8145 sound/pci/hda/patch_ca0132.c 	if (ca0132_quirk(spec) == QUIRK_AE5)
spec             8146 sound/pci/hda/patch_ca0132.c 		writel(0x00000001, spec->mem_base + 0xC08);
spec             8148 sound/pci/hda/patch_ca0132.c 		writel(0x000000C1, spec->mem_base + 0xC08);
spec             8150 sound/pci/hda/patch_ca0132.c 	writel(0x000000F1, spec->mem_base + 0xC08);
spec             8151 sound/pci/hda/patch_ca0132.c 	writel(0x00000001, spec->mem_base + 0xC08);
spec             8152 sound/pci/hda/patch_ca0132.c 	writel(0x000000C7, spec->mem_base + 0xC08);
spec             8153 sound/pci/hda/patch_ca0132.c 	writel(0x000000C1, spec->mem_base + 0xC08);
spec             8154 sound/pci/hda/patch_ca0132.c 	writel(0x00000080, spec->mem_base + 0xC04);
spec             8156 sound/pci/hda/patch_ca0132.c 	if (ca0132_quirk(spec) == QUIRK_AE5) {
spec             8157 sound/pci/hda/patch_ca0132.c 		writel(0x00000000, spec->mem_base + 0x42c);
spec             8158 sound/pci/hda/patch_ca0132.c 		writel(0x00000000, spec->mem_base + 0x46c);
spec             8159 sound/pci/hda/patch_ca0132.c 		writel(0x00000000, spec->mem_base + 0x4ac);
spec             8160 sound/pci/hda/patch_ca0132.c 		writel(0x00000000, spec->mem_base + 0x4ec);
spec             8161 sound/pci/hda/patch_ca0132.c 		writel(0x00000000, spec->mem_base + 0x43c);
spec             8162 sound/pci/hda/patch_ca0132.c 		writel(0x00000000, spec->mem_base + 0x47c);
spec             8163 sound/pci/hda/patch_ca0132.c 		writel(0x00000000, spec->mem_base + 0x4bc);
spec             8164 sound/pci/hda/patch_ca0132.c 		writel(0x00000000, spec->mem_base + 0x4fc);
spec             8165 sound/pci/hda/patch_ca0132.c 		writel(0x00000600, spec->mem_base + 0x100);
spec             8166 sound/pci/hda/patch_ca0132.c 		writel(0x00000014, spec->mem_base + 0x410);
spec             8167 sound/pci/hda/patch_ca0132.c 		writel(0x0000060f, spec->mem_base + 0x100);
spec             8168 sound/pci/hda/patch_ca0132.c 		writel(0x0000070f, spec->mem_base + 0x100);
spec             8169 sound/pci/hda/patch_ca0132.c 		writel(0x00000aff, spec->mem_base + 0x830);
spec             8170 sound/pci/hda/patch_ca0132.c 		writel(0x00000000, spec->mem_base + 0x86c);
spec             8171 sound/pci/hda/patch_ca0132.c 		writel(0x0000006b, spec->mem_base + 0x800);
spec             8172 sound/pci/hda/patch_ca0132.c 		writel(0x00000001, spec->mem_base + 0x86c);
spec             8173 sound/pci/hda/patch_ca0132.c 		writel(0x0000006b, spec->mem_base + 0x800);
spec             8174 sound/pci/hda/patch_ca0132.c 		writel(0x00000057, spec->mem_base + 0x804);
spec             8175 sound/pci/hda/patch_ca0132.c 		writel(0x00800000, spec->mem_base + 0x20c);
spec             8186 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             8194 sound/pci/hda/patch_ca0132.c 	writeb(0x0f, spec->mem_base + 0x304);
spec             8195 sound/pci/hda/patch_ca0132.c 	writeb(0x0f, spec->mem_base + 0x304);
spec             8196 sound/pci/hda/patch_ca0132.c 	writeb(0x0f, spec->mem_base + 0x304);
spec             8197 sound/pci/hda/patch_ca0132.c 	writeb(0x0f, spec->mem_base + 0x304);
spec             8198 sound/pci/hda/patch_ca0132.c 	writeb(0x0e, spec->mem_base + 0x100);
spec             8199 sound/pci/hda/patch_ca0132.c 	writeb(0x1f, spec->mem_base + 0x304);
spec             8200 sound/pci/hda/patch_ca0132.c 	writeb(0x0c, spec->mem_base + 0x100);
spec             8201 sound/pci/hda/patch_ca0132.c 	writeb(0x3f, spec->mem_base + 0x304);
spec             8202 sound/pci/hda/patch_ca0132.c 	writeb(0x08, spec->mem_base + 0x100);
spec             8203 sound/pci/hda/patch_ca0132.c 	writeb(0x7f, spec->mem_base + 0x304);
spec             8204 sound/pci/hda/patch_ca0132.c 	writeb(0x00, spec->mem_base + 0x100);
spec             8205 sound/pci/hda/patch_ca0132.c 	writeb(0xff, spec->mem_base + 0x304);
spec             8227 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             8231 sound/pci/hda/patch_ca0132.c 	switch (ca0132_quirk(spec)) {
spec             8236 sound/pci/hda/patch_ca0132.c 		snd_hda_sequence_write(codec, spec->chip_init_verbs);
spec             8237 sound/pci/hda/patch_ca0132.c 		snd_hda_sequence_write(codec, spec->desktop_init_verbs);
spec             8245 sound/pci/hda/patch_ca0132.c 		snd_hda_sequence_write(codec, spec->chip_init_verbs);
spec             8250 sound/pci/hda/patch_ca0132.c 		snd_hda_sequence_write(codec, spec->chip_init_verbs);
spec             8251 sound/pci/hda/patch_ca0132.c 		snd_hda_sequence_write(codec, spec->desktop_init_verbs);
spec             8260 sound/pci/hda/patch_ca0132.c 		snd_hda_sequence_write(codec, spec->chip_init_verbs);
spec             8261 sound/pci/hda/patch_ca0132.c 		snd_hda_sequence_write(codec, spec->desktop_init_verbs);
spec             8265 sound/pci/hda/patch_ca0132.c 		snd_hda_sequence_write(codec, spec->chip_init_verbs);
spec             8266 sound/pci/hda/patch_ca0132.c 		snd_hda_sequence_write(codec, spec->desktop_init_verbs);
spec             8275 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             8276 sound/pci/hda/patch_ca0132.c 	struct auto_pin_cfg *cfg = &spec->autocfg;
spec             8290 sound/pci/hda/patch_ca0132.c 	if (spec->dsp_state == DSP_DOWNLOADED) {
spec             8293 sound/pci/hda/patch_ca0132.c 			spec->dsp_reload = true;
spec             8294 sound/pci/hda/patch_ca0132.c 			spec->dsp_state = DSP_DOWNLOAD_INIT;
spec             8296 sound/pci/hda/patch_ca0132.c 			if (ca0132_quirk(spec) == QUIRK_SBZ)
spec             8302 sound/pci/hda/patch_ca0132.c 	if (spec->dsp_state != DSP_DOWNLOAD_FAILED)
spec             8303 sound/pci/hda/patch_ca0132.c 		spec->dsp_state = DSP_DOWNLOAD_INIT;
spec             8304 sound/pci/hda/patch_ca0132.c 	spec->curr_chip_addx = INVALID_CHIP_ADDRESS;
spec             8306 sound/pci/hda/patch_ca0132.c 	if (ca0132_use_pci_mmio(spec))
spec             8311 sound/pci/hda/patch_ca0132.c 	if (ca0132_quirk(spec) == QUIRK_AE5)
spec             8318 sound/pci/hda/patch_ca0132.c 	snd_hda_sequence_write(codec, spec->base_init_verbs);
spec             8320 sound/pci/hda/patch_ca0132.c 	if (ca0132_use_alt_functions(spec))
spec             8327 sound/pci/hda/patch_ca0132.c 	switch (ca0132_quirk(spec)) {
spec             8346 sound/pci/hda/patch_ca0132.c 	for (i = 0; i < spec->num_outputs; i++)
spec             8347 sound/pci/hda/patch_ca0132.c 		init_output(codec, spec->out_pins[i], spec->dacs[0]);
spec             8349 sound/pci/hda/patch_ca0132.c 	init_output(codec, cfg->dig_out_pins[0], spec->dig_out);
spec             8351 sound/pci/hda/patch_ca0132.c 	for (i = 0; i < spec->num_inputs; i++)
spec             8352 sound/pci/hda/patch_ca0132.c 		init_input(codec, spec->input_pins[i], spec->adcs[i]);
spec             8354 sound/pci/hda/patch_ca0132.c 	init_input(codec, cfg->dig_in_pin, spec->dig_in);
spec             8356 sound/pci/hda/patch_ca0132.c 	if (!ca0132_use_alt_functions(spec)) {
spec             8357 sound/pci/hda/patch_ca0132.c 		snd_hda_sequence_write(codec, spec->chip_init_verbs);
spec             8364 sound/pci/hda/patch_ca0132.c 	if (ca0132_quirk(spec) == QUIRK_SBZ)
spec             8367 sound/pci/hda/patch_ca0132.c 	snd_hda_sequence_write(codec, spec->spec_init_verbs);
spec             8368 sound/pci/hda/patch_ca0132.c 	if (ca0132_use_alt_functions(spec)) {
spec             8382 sound/pci/hda/patch_ca0132.c 	if (spec->dsp_reload) {
spec             8383 sound/pci/hda/patch_ca0132.c 		spec->dsp_reload = false;
spec             8394 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             8395 sound/pci/hda/patch_ca0132.c 	struct auto_pin_cfg *cfg = &spec->autocfg;
spec             8398 sound/pci/hda/patch_ca0132.c 	init_output(codec, cfg->dig_out_pins[0], spec->dig_out);
spec             8399 sound/pci/hda/patch_ca0132.c 	init_input(codec, cfg->dig_in_pin, spec->dig_in);
spec             8401 sound/pci/hda/patch_ca0132.c 	for (i = 0; i < spec->num_inputs; i++)
spec             8402 sound/pci/hda/patch_ca0132.c 		init_input(codec, spec->input_pins[i], spec->adcs[i]);
spec             8409 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             8411 sound/pci/hda/patch_ca0132.c 	cancel_delayed_work_sync(&spec->unsol_hp_work);
spec             8413 sound/pci/hda/patch_ca0132.c 	switch (ca0132_quirk(spec)) {
spec             8433 sound/pci/hda/patch_ca0132.c 	snd_hda_sequence_write(codec, spec->base_exit_verbs);
spec             8438 sound/pci/hda/patch_ca0132.c 	if (spec->mem_base)
spec             8439 sound/pci/hda/patch_ca0132.c 		pci_iounmap(codec->bus->pci, spec->mem_base);
spec             8441 sound/pci/hda/patch_ca0132.c 	kfree(spec->spec_init_verbs);
spec             8442 sound/pci/hda/patch_ca0132.c 	kfree(codec->spec);
spec             8447 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             8451 sound/pci/hda/patch_ca0132.c 	kfree(spec->spec_init_verbs);
spec             8452 sound/pci/hda/patch_ca0132.c 	kfree(codec->spec);
spec             8463 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             8465 sound/pci/hda/patch_ca0132.c 	cancel_delayed_work_sync(&spec->unsol_hp_work);
spec             8491 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             8493 sound/pci/hda/patch_ca0132.c 	spec->dacs[0] = 0x2;
spec             8494 sound/pci/hda/patch_ca0132.c 	spec->dacs[1] = 0x3;
spec             8495 sound/pci/hda/patch_ca0132.c 	spec->dacs[2] = 0x4;
spec             8497 sound/pci/hda/patch_ca0132.c 	spec->multiout.dac_nids = spec->dacs;
spec             8498 sound/pci/hda/patch_ca0132.c 	spec->multiout.num_dacs = 3;
spec             8500 sound/pci/hda/patch_ca0132.c 	if (!ca0132_use_alt_functions(spec))
spec             8501 sound/pci/hda/patch_ca0132.c 		spec->multiout.max_channels = 2;
spec             8503 sound/pci/hda/patch_ca0132.c 		spec->multiout.max_channels = 6;
spec             8505 sound/pci/hda/patch_ca0132.c 	switch (ca0132_quirk(spec)) {
spec             8534 sound/pci/hda/patch_ca0132.c 	switch (ca0132_quirk(spec)) {
spec             8536 sound/pci/hda/patch_ca0132.c 		spec->num_outputs = 2;
spec             8537 sound/pci/hda/patch_ca0132.c 		spec->out_pins[0] = 0x0b; /* speaker out */
spec             8538 sound/pci/hda/patch_ca0132.c 		spec->out_pins[1] = 0x0f;
spec             8539 sound/pci/hda/patch_ca0132.c 		spec->shared_out_nid = 0x2;
spec             8540 sound/pci/hda/patch_ca0132.c 		spec->unsol_tag_hp = 0x0f;
spec             8542 sound/pci/hda/patch_ca0132.c 		spec->adcs[0] = 0x7; /* digital mic / analog mic1 */
spec             8543 sound/pci/hda/patch_ca0132.c 		spec->adcs[1] = 0x8; /* analog mic2 */
spec             8544 sound/pci/hda/patch_ca0132.c 		spec->adcs[2] = 0xa; /* what u hear */
spec             8546 sound/pci/hda/patch_ca0132.c 		spec->num_inputs = 3;
spec             8547 sound/pci/hda/patch_ca0132.c 		spec->input_pins[0] = 0x12;
spec             8548 sound/pci/hda/patch_ca0132.c 		spec->input_pins[1] = 0x11;
spec             8549 sound/pci/hda/patch_ca0132.c 		spec->input_pins[2] = 0x13;
spec             8550 sound/pci/hda/patch_ca0132.c 		spec->shared_mic_nid = 0x7;
spec             8551 sound/pci/hda/patch_ca0132.c 		spec->unsol_tag_amic1 = 0x11;
spec             8555 sound/pci/hda/patch_ca0132.c 		spec->num_outputs = 2;
spec             8556 sound/pci/hda/patch_ca0132.c 		spec->out_pins[0] = 0x0B; /* Line out */
spec             8557 sound/pci/hda/patch_ca0132.c 		spec->out_pins[1] = 0x0F; /* Rear headphone out */
spec             8558 sound/pci/hda/patch_ca0132.c 		spec->out_pins[2] = 0x10; /* Front Headphone / Center/LFE*/
spec             8559 sound/pci/hda/patch_ca0132.c 		spec->out_pins[3] = 0x11; /* Rear surround */
spec             8560 sound/pci/hda/patch_ca0132.c 		spec->shared_out_nid = 0x2;
spec             8561 sound/pci/hda/patch_ca0132.c 		spec->unsol_tag_hp = spec->out_pins[1];
spec             8562 sound/pci/hda/patch_ca0132.c 		spec->unsol_tag_front_hp = spec->out_pins[2];
spec             8564 sound/pci/hda/patch_ca0132.c 		spec->adcs[0] = 0x7; /* Rear Mic / Line-in */
spec             8565 sound/pci/hda/patch_ca0132.c 		spec->adcs[1] = 0x8; /* Front Mic, but only if no DSP */
spec             8566 sound/pci/hda/patch_ca0132.c 		spec->adcs[2] = 0xa; /* what u hear */
spec             8568 sound/pci/hda/patch_ca0132.c 		spec->num_inputs = 2;
spec             8569 sound/pci/hda/patch_ca0132.c 		spec->input_pins[0] = 0x12; /* Rear Mic / Line-in */
spec             8570 sound/pci/hda/patch_ca0132.c 		spec->input_pins[1] = 0x13; /* What U Hear */
spec             8571 sound/pci/hda/patch_ca0132.c 		spec->shared_mic_nid = 0x7;
spec             8572 sound/pci/hda/patch_ca0132.c 		spec->unsol_tag_amic1 = spec->input_pins[0];
spec             8575 sound/pci/hda/patch_ca0132.c 		spec->dig_out = 0x05;
spec             8576 sound/pci/hda/patch_ca0132.c 		spec->multiout.dig_out_nid = spec->dig_out;
spec             8577 sound/pci/hda/patch_ca0132.c 		spec->dig_in = 0x09;
spec             8580 sound/pci/hda/patch_ca0132.c 		spec->num_outputs = 2;
spec             8581 sound/pci/hda/patch_ca0132.c 		spec->out_pins[0] = 0x0B; /* Line out */
spec             8582 sound/pci/hda/patch_ca0132.c 		spec->out_pins[1] = 0x0F; /* Rear headphone out */
spec             8583 sound/pci/hda/patch_ca0132.c 		spec->out_pins[2] = 0x10; /* Center/LFE */
spec             8584 sound/pci/hda/patch_ca0132.c 		spec->out_pins[3] = 0x11; /* Rear surround */
spec             8585 sound/pci/hda/patch_ca0132.c 		spec->shared_out_nid = 0x2;
spec             8586 sound/pci/hda/patch_ca0132.c 		spec->unsol_tag_hp = spec->out_pins[1];
spec             8587 sound/pci/hda/patch_ca0132.c 		spec->unsol_tag_front_hp = spec->out_pins[2];
spec             8589 sound/pci/hda/patch_ca0132.c 		spec->adcs[0] = 0x7; /* Rear Mic / Line-in */
spec             8590 sound/pci/hda/patch_ca0132.c 		spec->adcs[1] = 0x8; /* Not connected, no front mic */
spec             8591 sound/pci/hda/patch_ca0132.c 		spec->adcs[2] = 0xa; /* what u hear */
spec             8593 sound/pci/hda/patch_ca0132.c 		spec->num_inputs = 2;
spec             8594 sound/pci/hda/patch_ca0132.c 		spec->input_pins[0] = 0x12; /* Rear Mic / Line-in */
spec             8595 sound/pci/hda/patch_ca0132.c 		spec->input_pins[1] = 0x13; /* What U Hear */
spec             8596 sound/pci/hda/patch_ca0132.c 		spec->shared_mic_nid = 0x7;
spec             8597 sound/pci/hda/patch_ca0132.c 		spec->unsol_tag_amic1 = spec->input_pins[0];
spec             8600 sound/pci/hda/patch_ca0132.c 		spec->adcs[0] = 0x8; /* ZxR DBPro Aux In */
spec             8602 sound/pci/hda/patch_ca0132.c 		spec->num_inputs = 1;
spec             8603 sound/pci/hda/patch_ca0132.c 		spec->input_pins[0] = 0x11; /* RCA Line-in */
spec             8605 sound/pci/hda/patch_ca0132.c 		spec->dig_out = 0x05;
spec             8606 sound/pci/hda/patch_ca0132.c 		spec->multiout.dig_out_nid = spec->dig_out;
spec             8608 sound/pci/hda/patch_ca0132.c 		spec->dig_in = 0x09;
spec             8611 sound/pci/hda/patch_ca0132.c 		spec->num_outputs = 2;
spec             8612 sound/pci/hda/patch_ca0132.c 		spec->out_pins[0] = 0x0B; /* Line out */
spec             8613 sound/pci/hda/patch_ca0132.c 		spec->out_pins[1] = 0x11; /* Rear headphone out */
spec             8614 sound/pci/hda/patch_ca0132.c 		spec->out_pins[2] = 0x10; /* Front Headphone / Center/LFE*/
spec             8615 sound/pci/hda/patch_ca0132.c 		spec->out_pins[3] = 0x0F; /* Rear surround */
spec             8616 sound/pci/hda/patch_ca0132.c 		spec->shared_out_nid = 0x2;
spec             8617 sound/pci/hda/patch_ca0132.c 		spec->unsol_tag_hp = spec->out_pins[1];
spec             8618 sound/pci/hda/patch_ca0132.c 		spec->unsol_tag_front_hp = spec->out_pins[2];
spec             8620 sound/pci/hda/patch_ca0132.c 		spec->adcs[0] = 0x7; /* Rear Mic / Line-in */
spec             8621 sound/pci/hda/patch_ca0132.c 		spec->adcs[1] = 0x8; /* Front Mic, but only if no DSP */
spec             8622 sound/pci/hda/patch_ca0132.c 		spec->adcs[2] = 0xa; /* what u hear */
spec             8624 sound/pci/hda/patch_ca0132.c 		spec->num_inputs = 2;
spec             8625 sound/pci/hda/patch_ca0132.c 		spec->input_pins[0] = 0x12; /* Rear Mic / Line-in */
spec             8626 sound/pci/hda/patch_ca0132.c 		spec->input_pins[1] = 0x13; /* What U Hear */
spec             8627 sound/pci/hda/patch_ca0132.c 		spec->shared_mic_nid = 0x7;
spec             8628 sound/pci/hda/patch_ca0132.c 		spec->unsol_tag_amic1 = spec->input_pins[0];
spec             8631 sound/pci/hda/patch_ca0132.c 		spec->dig_out = 0x05;
spec             8632 sound/pci/hda/patch_ca0132.c 		spec->multiout.dig_out_nid = spec->dig_out;
spec             8635 sound/pci/hda/patch_ca0132.c 		spec->num_outputs = 2;
spec             8636 sound/pci/hda/patch_ca0132.c 		spec->out_pins[0] = 0x0B; /* Line out */
spec             8637 sound/pci/hda/patch_ca0132.c 		spec->out_pins[1] = 0x0F; /* Rear headphone out */
spec             8638 sound/pci/hda/patch_ca0132.c 		spec->out_pins[2] = 0x10; /* Front Headphone / Center/LFE*/
spec             8639 sound/pci/hda/patch_ca0132.c 		spec->out_pins[3] = 0x11; /* Rear surround */
spec             8640 sound/pci/hda/patch_ca0132.c 		spec->shared_out_nid = 0x2;
spec             8641 sound/pci/hda/patch_ca0132.c 		spec->unsol_tag_hp = spec->out_pins[1];
spec             8642 sound/pci/hda/patch_ca0132.c 		spec->unsol_tag_front_hp = spec->out_pins[2];
spec             8644 sound/pci/hda/patch_ca0132.c 		spec->adcs[0] = 0x07; /* Rear Mic / Line-in */
spec             8645 sound/pci/hda/patch_ca0132.c 		spec->adcs[1] = 0x08; /* Front Mic, but only if no DSP */
spec             8646 sound/pci/hda/patch_ca0132.c 		spec->adcs[2] = 0x0a; /* what u hear */
spec             8648 sound/pci/hda/patch_ca0132.c 		spec->num_inputs = 2;
spec             8649 sound/pci/hda/patch_ca0132.c 		spec->input_pins[0] = 0x12; /* Rear Mic / Line-in */
spec             8650 sound/pci/hda/patch_ca0132.c 		spec->input_pins[1] = 0x13; /* What U Hear */
spec             8651 sound/pci/hda/patch_ca0132.c 		spec->shared_mic_nid = 0x7;
spec             8652 sound/pci/hda/patch_ca0132.c 		spec->unsol_tag_amic1 = spec->input_pins[0];
spec             8655 sound/pci/hda/patch_ca0132.c 		spec->dig_out = 0x05;
spec             8656 sound/pci/hda/patch_ca0132.c 		spec->multiout.dig_out_nid = spec->dig_out;
spec             8659 sound/pci/hda/patch_ca0132.c 		spec->num_outputs = 2;
spec             8660 sound/pci/hda/patch_ca0132.c 		spec->out_pins[0] = 0x0b; /* speaker out */
spec             8661 sound/pci/hda/patch_ca0132.c 		spec->out_pins[1] = 0x10; /* headphone out */
spec             8662 sound/pci/hda/patch_ca0132.c 		spec->shared_out_nid = 0x2;
spec             8663 sound/pci/hda/patch_ca0132.c 		spec->unsol_tag_hp = spec->out_pins[1];
spec             8665 sound/pci/hda/patch_ca0132.c 		spec->adcs[0] = 0x7; /* digital mic / analog mic1 */
spec             8666 sound/pci/hda/patch_ca0132.c 		spec->adcs[1] = 0x8; /* analog mic2 */
spec             8667 sound/pci/hda/patch_ca0132.c 		spec->adcs[2] = 0xa; /* what u hear */
spec             8669 sound/pci/hda/patch_ca0132.c 		spec->num_inputs = 3;
spec             8670 sound/pci/hda/patch_ca0132.c 		spec->input_pins[0] = 0x12;
spec             8671 sound/pci/hda/patch_ca0132.c 		spec->input_pins[1] = 0x11;
spec             8672 sound/pci/hda/patch_ca0132.c 		spec->input_pins[2] = 0x13;
spec             8673 sound/pci/hda/patch_ca0132.c 		spec->shared_mic_nid = 0x7;
spec             8674 sound/pci/hda/patch_ca0132.c 		spec->unsol_tag_amic1 = spec->input_pins[0];
spec             8677 sound/pci/hda/patch_ca0132.c 		spec->dig_out = 0x05;
spec             8678 sound/pci/hda/patch_ca0132.c 		spec->multiout.dig_out_nid = spec->dig_out;
spec             8679 sound/pci/hda/patch_ca0132.c 		spec->dig_in = 0x09;
spec             8688 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             8690 sound/pci/hda/patch_ca0132.c 	spec->chip_init_verbs = ca0132_init_verbs0;
spec             8695 sound/pci/hda/patch_ca0132.c 	if (ca0132_use_pci_mmio(spec))
spec             8696 sound/pci/hda/patch_ca0132.c 		spec->desktop_init_verbs = ca0132_init_verbs1;
spec             8697 sound/pci/hda/patch_ca0132.c 	spec->spec_init_verbs = kcalloc(NUM_SPEC_VERBS,
spec             8700 sound/pci/hda/patch_ca0132.c 	if (!spec->spec_init_verbs)
spec             8704 sound/pci/hda/patch_ca0132.c 	spec->spec_init_verbs[0].nid = 0x0b;
spec             8705 sound/pci/hda/patch_ca0132.c 	spec->spec_init_verbs[0].param = 0x78D;
spec             8706 sound/pci/hda/patch_ca0132.c 	spec->spec_init_verbs[0].verb = 0x00;
spec             8735 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec = codec->spec;
spec             8739 sound/pci/hda/patch_ca0132.c 		spec->quirk = QUIRK_ZXR;
spec             8742 sound/pci/hda/patch_ca0132.c 		spec->quirk = QUIRK_ZXR_DBPRO;
spec             8745 sound/pci/hda/patch_ca0132.c 		spec->quirk = QUIRK_SBZ;
spec             8752 sound/pci/hda/patch_ca0132.c 	struct ca0132_spec *spec;
spec             8758 sound/pci/hda/patch_ca0132.c 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
spec             8759 sound/pci/hda/patch_ca0132.c 	if (!spec)
spec             8761 sound/pci/hda/patch_ca0132.c 	codec->spec = spec;
spec             8762 sound/pci/hda/patch_ca0132.c 	spec->codec = codec;
spec             8767 sound/pci/hda/patch_ca0132.c 		spec->quirk = quirk->value;
spec             8769 sound/pci/hda/patch_ca0132.c 		spec->quirk = QUIRK_NONE;
spec             8770 sound/pci/hda/patch_ca0132.c 	if (ca0132_quirk(spec) == QUIRK_SBZ)
spec             8773 sound/pci/hda/patch_ca0132.c 	if (ca0132_quirk(spec) == QUIRK_ZXR_DBPRO)
spec             8782 sound/pci/hda/patch_ca0132.c 	spec->dsp_state = DSP_DOWNLOAD_INIT;
spec             8783 sound/pci/hda/patch_ca0132.c 	spec->num_mixers = 1;
spec             8786 sound/pci/hda/patch_ca0132.c 	switch (ca0132_quirk(spec)) {
spec             8788 sound/pci/hda/patch_ca0132.c 		spec->mixers[0] = desktop_mixer;
spec             8792 sound/pci/hda/patch_ca0132.c 		spec->mixers[0] = desktop_mixer;
spec             8798 sound/pci/hda/patch_ca0132.c 		spec->mixers[0] = desktop_mixer;
spec             8802 sound/pci/hda/patch_ca0132.c 		spec->mixers[0] = r3di_mixer;
spec             8806 sound/pci/hda/patch_ca0132.c 		spec->mixers[0] = desktop_mixer;
spec             8810 sound/pci/hda/patch_ca0132.c 		spec->mixers[0] = ca0132_mixer;
spec             8815 sound/pci/hda/patch_ca0132.c 	switch (ca0132_quirk(spec)) {
spec             8820 sound/pci/hda/patch_ca0132.c 		spec->use_alt_controls = true;
spec             8821 sound/pci/hda/patch_ca0132.c 		spec->use_alt_functions = true;
spec             8822 sound/pci/hda/patch_ca0132.c 		spec->use_pci_mmio = true;
spec             8825 sound/pci/hda/patch_ca0132.c 		spec->use_alt_controls = true;
spec             8826 sound/pci/hda/patch_ca0132.c 		spec->use_alt_functions = true;
spec             8827 sound/pci/hda/patch_ca0132.c 		spec->use_pci_mmio = false;
spec             8830 sound/pci/hda/patch_ca0132.c 		spec->use_alt_controls = false;
spec             8831 sound/pci/hda/patch_ca0132.c 		spec->use_alt_functions = false;
spec             8832 sound/pci/hda/patch_ca0132.c 		spec->use_pci_mmio = false;
spec             8837 sound/pci/hda/patch_ca0132.c 	if (spec->use_pci_mmio) {
spec             8838 sound/pci/hda/patch_ca0132.c 		spec->mem_base = pci_iomap(codec->bus->pci, 2, 0xC20);
spec             8839 sound/pci/hda/patch_ca0132.c 		if (spec->mem_base == NULL) {
spec             8841 sound/pci/hda/patch_ca0132.c 			spec->quirk = QUIRK_NONE;
spec             8846 sound/pci/hda/patch_ca0132.c 	spec->base_init_verbs = ca0132_base_init_verbs;
spec             8847 sound/pci/hda/patch_ca0132.c 	spec->base_exit_verbs = ca0132_base_exit_verbs;
spec             8849 sound/pci/hda/patch_ca0132.c 	INIT_DELAYED_WORK(&spec->unsol_hp_work, ca0132_unsol_hp_delayed);
spec             8859 sound/pci/hda/patch_ca0132.c 	err = snd_hda_parse_pin_def_config(codec, &spec->autocfg, NULL);
spec              131 sound/pci/hda/patch_cirrus.c 	struct cs_spec *spec = codec->spec;
spec              132 sound/pci/hda/patch_cirrus.c 	snd_hda_codec_write(codec, spec->vendor_nid, 0,
spec              134 sound/pci/hda/patch_cirrus.c 	return snd_hda_codec_read(codec, spec->vendor_nid, 0,
spec              141 sound/pci/hda/patch_cirrus.c 	struct cs_spec *spec = codec->spec;
spec              142 sound/pci/hda/patch_cirrus.c 	snd_hda_codec_write(codec, spec->vendor_nid, 0,
spec              144 sound/pci/hda/patch_cirrus.c 	snd_hda_codec_write(codec, spec->vendor_nid, 0,
spec              156 sound/pci/hda/patch_cirrus.c 	struct cs_spec *spec = codec->spec;
spec              159 sound/pci/hda/patch_cirrus.c 	spec->gen.master_mute = !!(spec->spdif_present && spec->sense_b);
spec              163 sound/pci/hda/patch_cirrus.c 	if (spec->gpio_eapd_hp || spec->gpio_eapd_speaker) {
spec              164 sound/pci/hda/patch_cirrus.c 		if (spec->gen.automute_speaker)
spec              165 sound/pci/hda/patch_cirrus.c 			spec->gpio_data = spec->gen.hp_jack_present ?
spec              166 sound/pci/hda/patch_cirrus.c 				spec->gpio_eapd_hp : spec->gpio_eapd_speaker;
spec              168 sound/pci/hda/patch_cirrus.c 			spec->gpio_data =
spec              169 sound/pci/hda/patch_cirrus.c 				spec->gpio_eapd_hp | spec->gpio_eapd_speaker;
spec              171 sound/pci/hda/patch_cirrus.c 				    AC_VERB_SET_GPIO_DATA, spec->gpio_data);
spec              184 sound/pci/hda/patch_cirrus.c 	struct cs_spec *spec = codec->spec;
spec              188 sound/pci/hda/patch_cirrus.c 	if (spec->vendor_nid == CS420X_VENDOR_NID) {
spec              297 sound/pci/hda/patch_cirrus.c 	struct cs_spec *spec = codec->spec;
spec              299 sound/pci/hda/patch_cirrus.c 	if (spec->vendor_nid == CS420X_VENDOR_NID) {
spec              303 sound/pci/hda/patch_cirrus.c 	} else if (spec->vendor_nid == CS4208_VENDOR_NID) {
spec              309 sound/pci/hda/patch_cirrus.c 	if (spec->gpio_mask) {
spec              311 sound/pci/hda/patch_cirrus.c 				    spec->gpio_mask);
spec              313 sound/pci/hda/patch_cirrus.c 				    spec->gpio_dir);
spec              315 sound/pci/hda/patch_cirrus.c 				    spec->gpio_data);
spec              318 sound/pci/hda/patch_cirrus.c 	if (spec->vendor_nid == CS420X_VENDOR_NID) {
spec              349 sound/pci/hda/patch_cirrus.c 	struct cs_spec *spec = codec->spec;
spec              353 sound/pci/hda/patch_cirrus.c 	err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, 0);
spec              357 sound/pci/hda/patch_cirrus.c 	err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg);
spec              362 sound/pci/hda/patch_cirrus.c 	if (spec->gen.dyn_adc_switch) {
spec              364 sound/pci/hda/patch_cirrus.c 		for (i = 0; i < spec->gen.input_mux.num_items; i++) {
spec              365 sound/pci/hda/patch_cirrus.c 			int idx = spec->gen.dyn_adc_idx[i];
spec              369 sound/pci/hda/patch_cirrus.c 						  spec->gen.adc_nids[idx]);
spec              498 sound/pci/hda/patch_cirrus.c 		struct cs_spec *spec = codec->spec;
spec              499 sound/pci/hda/patch_cirrus.c 		spec->gpio_eapd_hp = 2; /* GPIO1 = headphones */
spec              500 sound/pci/hda/patch_cirrus.c 		spec->gpio_eapd_speaker = 8; /* GPIO3 = speakers */
spec              501 sound/pci/hda/patch_cirrus.c 		spec->gpio_mask = spec->gpio_dir =
spec              502 sound/pci/hda/patch_cirrus.c 			spec->gpio_eapd_hp | spec->gpio_eapd_speaker;
spec              510 sound/pci/hda/patch_cirrus.c 		struct cs_spec *spec = codec->spec;
spec              511 sound/pci/hda/patch_cirrus.c 		spec->gpio_eapd_hp = 4; /* GPIO2 = headphones */
spec              512 sound/pci/hda/patch_cirrus.c 		spec->gpio_eapd_speaker = 8; /* GPIO3 = speakers */
spec              513 sound/pci/hda/patch_cirrus.c 		spec->gpio_mask = spec->gpio_dir =
spec              514 sound/pci/hda/patch_cirrus.c 			spec->gpio_eapd_hp | spec->gpio_eapd_speaker;
spec              572 sound/pci/hda/patch_cirrus.c 	struct cs_spec *spec;
spec              574 sound/pci/hda/patch_cirrus.c 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
spec              575 sound/pci/hda/patch_cirrus.c 	if (!spec)
spec              577 sound/pci/hda/patch_cirrus.c 	codec->spec = spec;
spec              578 sound/pci/hda/patch_cirrus.c 	spec->vendor_nid = vendor_nid;
spec              580 sound/pci/hda/patch_cirrus.c 	snd_hda_gen_spec_init(&spec->gen);
spec              582 sound/pci/hda/patch_cirrus.c 	return spec;
spec              587 sound/pci/hda/patch_cirrus.c 	struct cs_spec *spec;
spec              590 sound/pci/hda/patch_cirrus.c 	spec = cs_alloc_spec(codec, CS420X_VENDOR_NID);
spec              591 sound/pci/hda/patch_cirrus.c 	if (!spec)
spec              595 sound/pci/hda/patch_cirrus.c 	spec->gen.automute_hook = cs_automute;
spec              654 sound/pci/hda/patch_cirrus.c 		struct cs_spec *spec = codec->spec;
spec              655 sound/pci/hda/patch_cirrus.c 		spec->gpio_eapd_hp = 0;
spec              656 sound/pci/hda/patch_cirrus.c 		spec->gpio_eapd_speaker = 1;
spec              657 sound/pci/hda/patch_cirrus.c 		spec->gpio_mask = spec->gpio_dir =
spec              658 sound/pci/hda/patch_cirrus.c 			spec->gpio_eapd_hp | spec->gpio_eapd_speaker;
spec              700 sound/pci/hda/patch_cirrus.c 	struct cs_spec *spec = codec->spec;
spec              701 sound/pci/hda/patch_cirrus.c 	hda_nid_t pin = spec->gen.autocfg.dig_out_pins[0];
spec              705 sound/pci/hda/patch_cirrus.c 	return spec->spdif_sw_put(kcontrol, ucontrol);
spec              713 sound/pci/hda/patch_cirrus.c 		struct cs_spec *spec = codec->spec;
spec              716 sound/pci/hda/patch_cirrus.c 		if (!spec->gen.autocfg.dig_out_pins[0])
spec              721 sound/pci/hda/patch_cirrus.c 		spec->spdif_sw_put = kctl->put;
spec              768 sound/pci/hda/patch_cirrus.c 	struct cs_spec *spec;
spec              771 sound/pci/hda/patch_cirrus.c 	spec = cs_alloc_spec(codec, CS4208_VENDOR_NID);
spec              772 sound/pci/hda/patch_cirrus.c 	if (!spec)
spec              776 sound/pci/hda/patch_cirrus.c 	spec->gen.automute_hook = cs_automute;
spec              778 sound/pci/hda/patch_cirrus.c 	spec->gen.out_vol_mask = 1ULL << 0x10;
spec              851 sound/pci/hda/patch_cirrus.c 	struct cs_spec *spec = codec->spec;
spec              853 sound/pci/hda/patch_cirrus.c 		spec->sense_b = 1;
spec              988 sound/pci/hda/patch_cirrus.c 	struct cs_spec *spec = codec->spec;
spec              994 sound/pci/hda/patch_cirrus.c 	if (spec->gpio_mask)
spec              999 sound/pci/hda/patch_cirrus.c 	if (spec->sense_b)
spec             1006 sound/pci/hda/patch_cirrus.c 	if ((spec->gpio_mask || spec->sense_b) &&
spec             1022 sound/pci/hda/patch_cirrus.c 	struct cs_spec *spec = codec->spec;
spec             1024 sound/pci/hda/patch_cirrus.c 	hda_nid_t spdif_pin = spec->gen.autocfg.dig_out_pins[0];
spec             1027 sound/pci/hda/patch_cirrus.c 	if (!spec->spdif_detect ||
spec             1028 sound/pci/hda/patch_cirrus.c 	    spec->vendor_nid != CS4210_VENDOR_NID)
spec             1032 sound/pci/hda/patch_cirrus.c 	if (spdif_present == spec->spdif_present)
spec             1035 sound/pci/hda/patch_cirrus.c 	spec->spdif_present = spdif_present;
spec             1044 sound/pci/hda/patch_cirrus.c 	struct cs_spec *spec = codec->spec;
spec             1045 sound/pci/hda/patch_cirrus.c 	struct auto_pin_cfg *cfg = &spec->gen.autocfg;
spec             1051 sound/pci/hda/patch_cirrus.c 			spec->spdif_detect = 1;
spec             1060 sound/pci/hda/patch_cirrus.c 	struct cs_spec *spec = codec->spec;
spec             1062 sound/pci/hda/patch_cirrus.c 	if (spec->vendor_nid == CS4210_VENDOR_NID) {
spec             1070 sound/pci/hda/patch_cirrus.c 	if (spec->gpio_mask) {
spec             1072 sound/pci/hda/patch_cirrus.c 				    spec->gpio_mask);
spec             1074 sound/pci/hda/patch_cirrus.c 				    spec->gpio_dir);
spec             1076 sound/pci/hda/patch_cirrus.c 				    spec->gpio_data);
spec             1100 sound/pci/hda/patch_cirrus.c 	struct cs_spec *spec = codec->spec;
spec             1106 sound/pci/hda/patch_cirrus.c 	err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, 0);
spec             1110 sound/pci/hda/patch_cirrus.c 	err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg);
spec             1116 sound/pci/hda/patch_cirrus.c 	if (spec->gen.autocfg.speaker_outs &&
spec             1117 sound/pci/hda/patch_cirrus.c 	    spec->vendor_nid == CS4210_VENDOR_NID) {
spec             1118 sound/pci/hda/patch_cirrus.c 		if (!snd_hda_gen_add_kctl(&spec->gen, NULL,
spec             1133 sound/pci/hda/patch_cirrus.c 	struct cs_spec *spec = codec->spec;
spec             1143 sound/pci/hda/patch_cirrus.c 	if (spec->vendor_nid == CS4210_VENDOR_NID) {
spec             1166 sound/pci/hda/patch_cirrus.c 	struct cs_spec *spec;
spec             1169 sound/pci/hda/patch_cirrus.c 	spec = cs_alloc_spec(codec, CS4210_VENDOR_NID);
spec             1170 sound/pci/hda/patch_cirrus.c 	if (!spec)
spec             1174 sound/pci/hda/patch_cirrus.c 	spec->gen.automute_hook = cs_automute;
spec             1202 sound/pci/hda/patch_cirrus.c 	struct cs_spec *spec;
spec             1205 sound/pci/hda/patch_cirrus.c 	spec = cs_alloc_spec(codec, CS4213_VENDOR_NID);
spec             1206 sound/pci/hda/patch_cirrus.c 	if (!spec)
spec               37 sound/pci/hda/patch_cmedia.c 	struct cmi_spec *spec;
spec               41 sound/pci/hda/patch_cmedia.c 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
spec               42 sound/pci/hda/patch_cmedia.c 	if (spec == NULL)
spec               45 sound/pci/hda/patch_cmedia.c 	codec->spec = spec;
spec               47 sound/pci/hda/patch_cmedia.c 	cfg = &spec->gen.autocfg;
spec               48 sound/pci/hda/patch_cmedia.c 	snd_hda_gen_spec_init(&spec->gen);
spec               66 sound/pci/hda/patch_cmedia.c 	struct cmi_spec *spec;
spec               70 sound/pci/hda/patch_cmedia.c 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
spec               71 sound/pci/hda/patch_cmedia.c 	if (!spec)
spec               74 sound/pci/hda/patch_cmedia.c 	codec->spec = spec;
spec               76 sound/pci/hda/patch_cmedia.c 	cfg = &spec->gen.autocfg;
spec               77 sound/pci/hda/patch_cmedia.c 	snd_hda_gen_spec_init(&spec->gen);
spec               82 sound/pci/hda/patch_cmedia.c 	spec->gen.out_vol_mask = (1ULL << 0x10);
spec               96 sound/pci/hda/patch_cmedia.c 		if (!snd_hda_gen_add_kctl(&spec->gen, NULL, &amp_kctl)) {
spec               56 sound/pci/hda/patch_conexant.c static int set_beep_amp(struct conexant_spec *spec, hda_nid_t nid,
spec               63 sound/pci/hda/patch_conexant.c 	spec->gen.beep_nid = nid;
spec               65 sound/pci/hda/patch_conexant.c 		knew = snd_hda_gen_add_kctl(&spec->gen, NULL,
spec               76 sound/pci/hda/patch_conexant.c 	struct conexant_spec *spec = codec->spec;
spec               81 sound/pci/hda/patch_conexant.c 			return set_beep_amp(spec, nid, 0, HDA_OUTPUT);
spec               95 sound/pci/hda/patch_conexant.c 	struct conexant_spec *spec = codec->spec;
spec              103 sound/pci/hda/patch_conexant.c 		spec->eapds[spec->num_eapds++] = nid;
spec              104 sound/pci/hda/patch_conexant.c 		if (spec->num_eapds >= ARRAY_SIZE(spec->eapds))
spec              114 sound/pci/hda/patch_conexant.c 	if (spec->num_eapds > 2)
spec              115 sound/pci/hda/patch_conexant.c 		spec->dynamic_eapd = 1;
spec              134 sound/pci/hda/patch_conexant.c 	struct conexant_spec *spec = codec->spec;
spec              136 sound/pci/hda/patch_conexant.c 	cx_auto_turn_eapd(codec, spec->num_eapds, spec->eapds, enabled);
spec              143 sound/pci/hda/patch_conexant.c 	struct conexant_spec *spec = codec->spec;
spec              145 sound/pci/hda/patch_conexant.c 	snd_hda_codec_write(codec, spec->mute_led_eapd, 0,
spec              152 sound/pci/hda/patch_conexant.c 	struct conexant_spec *spec = codec->spec;
spec              154 sound/pci/hda/patch_conexant.c 	if (!spec->dynamic_eapd)
spec              155 sound/pci/hda/patch_conexant.c 		cx_auto_turn_eapd(codec, spec->num_eapds, spec->eapds, true);
spec              164 sound/pci/hda/patch_conexant.c 	struct conexant_spec *spec = codec->spec;
spec              168 sound/pci/hda/patch_conexant.c 	cx_auto_turn_eapd(codec, spec->num_eapds, spec->eapds, false);
spec              226 sound/pci/hda/patch_conexant.c 	struct conexant_spec *spec = codec->spec;
spec              227 sound/pci/hda/patch_conexant.c 	spec->gen.inv_dmic_split = 1;
spec              248 sound/pci/hda/patch_conexant.c 	struct conexant_spec *spec = codec->spec;
spec              249 sound/pci/hda/patch_conexant.c 	struct auto_pin_cfg *cfg = &spec->gen.autocfg;
spec              251 sound/pci/hda/patch_conexant.c 	hda_nid_t mux_pin = spec->gen.imux_pins[spec->gen.cur_mux[0]];
spec              261 sound/pci/hda/patch_conexant.c 		spec->gen.hp_jack_present = false;
spec              264 sound/pci/hda/patch_conexant.c 		spec->gen.hp_jack_present = snd_hda_jack_detect(codec, spec->gen.autocfg.hp_pins[0]);
spec              280 sound/pci/hda/patch_conexant.c 	struct conexant_spec *spec = codec->spec;
spec              284 sound/pci/hda/patch_conexant.c 		spec->parse_flags |= HDA_PINCFG_HEADPHONE_MIC;
spec              288 sound/pci/hda/patch_conexant.c 		WARN_ON(spec->gen.cap_sync_hook);
spec              289 sound/pci/hda/patch_conexant.c 		spec->gen.cap_sync_hook = cxt_update_headset_mode_hook;
spec              290 sound/pci/hda/patch_conexant.c 		spec->gen.automute_hook = cxt_update_headset_mode;
spec              301 sound/pci/hda/patch_conexant.c 	struct conexant_spec *spec = codec->spec;
spec              305 sound/pci/hda/patch_conexant.c 		spec->parse_flags |= HDA_PINCFG_HEADSET_MIC;
spec              334 sound/pci/hda/patch_conexant.c 	struct conexant_spec *spec = codec->spec;
spec              340 sound/pci/hda/patch_conexant.c 		if (!spec->dc_enable)
spec              349 sound/pci/hda/patch_conexant.c 	struct conexant_spec *spec = codec->spec;
spec              353 sound/pci/hda/patch_conexant.c 	cur_input = spec->gen.input_paths[0][spec->gen.cur_mux[0]];
spec              358 sound/pci/hda/patch_conexant.c 	if (!spec->dc_enable) {
spec              361 sound/pci/hda/patch_conexant.c 		snd_hda_activate_path(codec, spec->dc_mode_path, false, false);
spec              370 sound/pci/hda/patch_conexant.c 		update_mic_pin(codec, 0x1a, spec->recording ?
spec              372 sound/pci/hda/patch_conexant.c 		update_mic_pin(codec, 0x1b, spec->recording ?
spec              389 sound/pci/hda/patch_conexant.c 		if (spec->recording)
spec              390 sound/pci/hda/patch_conexant.c 			val = olpc_xo_dc_bias.items[spec->dc_input_bias].index;
spec              396 sound/pci/hda/patch_conexant.c 		update_mic_pin(codec, 0x1e, spec->recording ? PIN_IN : 0);
spec              397 sound/pci/hda/patch_conexant.c 		snd_hda_activate_path(codec, spec->dc_mode_path, true, false);
spec              405 sound/pci/hda/patch_conexant.c 	struct conexant_spec *spec = codec->spec;
spec              408 sound/pci/hda/patch_conexant.c 	if (!spec->dc_enable)
spec              411 sound/pci/hda/patch_conexant.c 	if (spec->dc_enable)
spec              421 sound/pci/hda/patch_conexant.c 	struct conexant_spec *spec = codec->spec;
spec              428 sound/pci/hda/patch_conexant.c 		spec->recording = 1;
spec              432 sound/pci/hda/patch_conexant.c 		spec->recording = 0;
spec              442 sound/pci/hda/patch_conexant.c 	struct conexant_spec *spec = codec->spec;
spec              443 sound/pci/hda/patch_conexant.c 	ucontrol->value.integer.value[0] = spec->dc_enable;
spec              451 sound/pci/hda/patch_conexant.c 	struct conexant_spec *spec = codec->spec;
spec              454 sound/pci/hda/patch_conexant.c 	if (dc_enable == spec->dc_enable)
spec              457 sound/pci/hda/patch_conexant.c 	spec->dc_enable = dc_enable;
spec              467 sound/pci/hda/patch_conexant.c 	struct conexant_spec *spec = codec->spec;
spec              468 sound/pci/hda/patch_conexant.c 	ucontrol->value.enumerated.item[0] = spec->dc_input_bias;
spec              482 sound/pci/hda/patch_conexant.c 	struct conexant_spec *spec = codec->spec;
spec              489 sound/pci/hda/patch_conexant.c 	if (spec->dc_input_bias == idx)
spec              492 sound/pci/hda/patch_conexant.c 	spec->dc_input_bias = idx;
spec              493 sound/pci/hda/patch_conexant.c 	if (spec->dc_enable)
spec              523 sound/pci/hda/patch_conexant.c 	struct conexant_spec *spec = codec->spec;
spec              525 sound/pci/hda/patch_conexant.c 	if (ret > 0 && spec->dc_enable)
spec              533 sound/pci/hda/patch_conexant.c 	struct conexant_spec *spec = codec->spec;
spec              540 sound/pci/hda/patch_conexant.c 	spec->gen.mic_autoswitch_hook = olpc_xo_automic;
spec              541 sound/pci/hda/patch_conexant.c 	spec->gen.pcm_capture_hook = olpc_xo_capture_hook;
spec              542 sound/pci/hda/patch_conexant.c 	spec->dc_mode_path = snd_hda_add_new_path(codec, 0x1e, 0x14, 0);
spec              553 sound/pci/hda/patch_conexant.c 	snd_array_for_each(&spec->gen.kctls, i, kctl) {
spec              564 sound/pci/hda/patch_conexant.c 	struct conexant_spec *spec = codec->spec;
spec              567 sound/pci/hda/patch_conexant.c 		spec->mute_led_eapd = 0x1b;
spec              568 sound/pci/hda/patch_conexant.c 		spec->dynamic_eapd = 1;
spec              569 sound/pci/hda/patch_conexant.c 		spec->gen.vmaster_mute.hook = cx_auto_vmaster_hook_mute_led;
spec              616 sound/pci/hda/patch_conexant.c 	struct conexant_spec *spec = codec->spec;
spec              617 sound/pci/hda/patch_conexant.c 	unsigned int oldval = spec->gpio_led;
spec              619 sound/pci/hda/patch_conexant.c 	if (spec->mute_led_polarity)
spec              623 sound/pci/hda/patch_conexant.c 		spec->gpio_led |= mask;
spec              625 sound/pci/hda/patch_conexant.c 		spec->gpio_led &= ~mask;
spec              627 sound/pci/hda/patch_conexant.c 			mask, led_on, spec->gpio_led);
spec              628 sound/pci/hda/patch_conexant.c 	if (spec->gpio_led != oldval)
spec              630 sound/pci/hda/patch_conexant.c 				    spec->gpio_led);
spec              637 sound/pci/hda/patch_conexant.c 	struct conexant_spec *spec = codec->spec;
spec              639 sound/pci/hda/patch_conexant.c 	cxt_update_gpio_led(codec, spec->gpio_mute_led_mask, !enabled);
spec              645 sound/pci/hda/patch_conexant.c 	struct conexant_spec *spec = codec->spec;
spec              647 sound/pci/hda/patch_conexant.c 	cxt_update_gpio_led(codec, spec->gpio_mic_led_mask,
spec              648 sound/pci/hda/patch_conexant.c 			    spec->gen.micmute_led.led_value);
spec              655 sound/pci/hda/patch_conexant.c 	struct conexant_spec *spec = codec->spec;
spec              663 sound/pci/hda/patch_conexant.c 		spec->gen.vmaster_mute.hook = cxt_fixup_gpio_mute_hook;
spec              664 sound/pci/hda/patch_conexant.c 		spec->gpio_led = 0;
spec              665 sound/pci/hda/patch_conexant.c 		spec->mute_led_polarity = 0;
spec              666 sound/pci/hda/patch_conexant.c 		spec->gpio_mute_led_mask = 0x01;
spec              667 sound/pci/hda/patch_conexant.c 		spec->gpio_mic_led_mask = 0x02;
spec              671 sound/pci/hda/patch_conexant.c 	if (spec->gpio_led)
spec              673 sound/pci/hda/patch_conexant.c 				    spec->gpio_led);
spec              962 sound/pci/hda/patch_conexant.c 	struct conexant_spec *spec = codec->spec;
spec              972 sound/pci/hda/patch_conexant.c 	spec->gen.dac_min_mute = true;
spec              977 sound/pci/hda/patch_conexant.c 	struct conexant_spec *spec;
spec              982 sound/pci/hda/patch_conexant.c 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
spec              983 sound/pci/hda/patch_conexant.c 	if (!spec)
spec              985 sound/pci/hda/patch_conexant.c 	snd_hda_gen_spec_init(&spec->gen);
spec              986 sound/pci/hda/patch_conexant.c 	codec->spec = spec;
spec              990 sound/pci/hda/patch_conexant.c 	spec->gen.own_eapd_ctl = 1;
spec              991 sound/pci/hda/patch_conexant.c 	if (spec->dynamic_eapd)
spec              992 sound/pci/hda/patch_conexant.c 		spec->gen.vmaster_mute.hook = cx_auto_vmaster_hook;
spec              997 sound/pci/hda/patch_conexant.c 		spec->gen.mixer_nid = 0x17;
spec              998 sound/pci/hda/patch_conexant.c 		spec->gen.add_stereo_mix_input = HDA_HINT_STEREO_MIX_AUTO;
spec             1004 sound/pci/hda/patch_conexant.c 		spec->gen.mixer_nid = 0x19;
spec             1005 sound/pci/hda/patch_conexant.c 		spec->gen.add_stereo_mix_input = HDA_HINT_STEREO_MIX_AUTO;
spec             1033 sound/pci/hda/patch_conexant.c 		spec->gen.vmaster_mute_enum = 1;
spec             1039 sound/pci/hda/patch_conexant.c 	err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL,
spec             1040 sound/pci/hda/patch_conexant.c 				       spec->parse_flags);
spec             1044 sound/pci/hda/patch_conexant.c 	err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg);
spec              191 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec              192 sound/pci/hda/patch_hdmi.c 	return spec->use_acomp_notifier;
spec              234 sound/pci/hda/patch_hdmi.c #define get_pin(spec, idx) \
spec              235 sound/pci/hda/patch_hdmi.c 	((struct hdmi_spec_per_pin *)snd_array_elem(&spec->pins, idx))
spec              236 sound/pci/hda/patch_hdmi.c #define get_cvt(spec, idx) \
spec              237 sound/pci/hda/patch_hdmi.c 	((struct hdmi_spec_per_cvt  *)snd_array_elem(&spec->cvts, idx))
spec              239 sound/pci/hda/patch_hdmi.c #define get_hdmi_pcm(spec, idx)	(&(spec)->pcm_rec[idx])
spec              241 sound/pci/hda/patch_hdmi.c #define get_pcm_rec(spec, idx)	(get_hdmi_pcm(spec, idx)->pcm)
spec              246 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec              257 sound/pci/hda/patch_hdmi.c 	for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) {
spec              258 sound/pci/hda/patch_hdmi.c 		per_pin = get_pin(spec, pin_idx);
spec              271 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec              274 sound/pci/hda/patch_hdmi.c 	for (pcm_idx = 0; pcm_idx < spec->pcm_used; pcm_idx++)
spec              275 sound/pci/hda/patch_hdmi.c 		if (get_pcm_rec(spec, pcm_idx)->stream == hinfo)
spec              285 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec              289 sound/pci/hda/patch_hdmi.c 	for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) {
spec              290 sound/pci/hda/patch_hdmi.c 		per_pin = get_pin(spec, pin_idx);
spec              300 sound/pci/hda/patch_hdmi.c static struct hdmi_spec_per_pin *pcm_idx_to_pin(struct hdmi_spec *spec,
spec              306 sound/pci/hda/patch_hdmi.c 	for (i = 0; i < spec->num_pins; i++) {
spec              307 sound/pci/hda/patch_hdmi.c 		per_pin = get_pin(spec, i);
spec              316 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec              319 sound/pci/hda/patch_hdmi.c 	for (cvt_idx = 0; cvt_idx < spec->num_cvts; cvt_idx++)
spec              320 sound/pci/hda/patch_hdmi.c 		if (get_cvt(spec, cvt_idx)->cvt_nid == cvt_nid)
spec              331 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec              339 sound/pci/hda/patch_hdmi.c 	mutex_lock(&spec->pcm_lock);
spec              340 sound/pci/hda/patch_hdmi.c 	per_pin = pcm_idx_to_pin(spec, pcm_idx);
spec              350 sound/pci/hda/patch_hdmi.c 	mutex_unlock(&spec->pcm_lock);
spec              358 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec              365 sound/pci/hda/patch_hdmi.c 	mutex_lock(&spec->pcm_lock);
spec              366 sound/pci/hda/patch_hdmi.c 	per_pin = pcm_idx_to_pin(spec, pcm_idx);
spec              389 sound/pci/hda/patch_hdmi.c 	mutex_unlock(&spec->pcm_lock);
spec              405 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec              421 sound/pci/hda/patch_hdmi.c 	get_hdmi_pcm(spec, pcm_idx)->eld_ctl = kctl;
spec              457 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec              465 sound/pci/hda/patch_hdmi.c 	if (spec->dyn_pin_out)
spec              715 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec              716 sound/pci/hda/patch_hdmi.c 	struct hdac_chmap *chmap = &spec->chmap;
spec              747 sound/pci/hda/patch_hdmi.c 	snd_hdac_setup_channel_mapping(&spec->chmap,
spec              751 sound/pci/hda/patch_hdmi.c 	spec->ops.pin_setup_infoframe(codec, pin_nid, ca, active_channels,
spec              766 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec              771 sound/pci/hda/patch_hdmi.c 	mutex_lock(&spec->pcm_lock);
spec              772 sound/pci/hda/patch_hdmi.c 	if (hdmi_present_sense(get_pin(spec, pin_idx), 1))
spec              774 sound/pci/hda/patch_hdmi.c 	mutex_unlock(&spec->pcm_lock);
spec              922 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec              926 sound/pci/hda/patch_hdmi.c 	err = spec->ops.pin_hbr_setup(codec, pin_nid, is_hbr_format(format));
spec              965 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec              974 sound/pci/hda/patch_hdmi.c 		per_pin = get_pin(spec, pin_idx);
spec              977 sound/pci/hda/patch_hdmi.c 	for (cvt_idx = 0; cvt_idx < spec->num_cvts; cvt_idx++) {
spec              978 sound/pci/hda/patch_hdmi.c 		per_cvt = get_cvt(spec, cvt_idx);
spec              996 sound/pci/hda/patch_hdmi.c 	if (cvt_idx == spec->num_cvts)
spec             1027 sound/pci/hda/patch_hdmi.c static int intel_cvt_id_to_mux_idx(struct hdmi_spec *spec,
spec             1032 sound/pci/hda/patch_hdmi.c 	for (i = 0; i < spec->num_cvts; i++)
spec             1033 sound/pci/hda/patch_hdmi.c 		if (spec->cvt_nids[i] == cvt_nid)
spec             1051 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             1059 sound/pci/hda/patch_hdmi.c 	for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) {
spec             1063 sound/pci/hda/patch_hdmi.c 		per_pin = get_pin(spec, pin_idx);
spec             1106 sound/pci/hda/patch_hdmi.c 		for (cvt_idx = 0; cvt_idx < spec->num_cvts; cvt_idx++) {
spec             1107 sound/pci/hda/patch_hdmi.c 			per_cvt = get_cvt(spec, cvt_idx);
spec             1127 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             1134 sound/pci/hda/patch_hdmi.c 	mux_idx = intel_cvt_id_to_mux_idx(spec, cvt_nid);
spec             1144 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             1146 sound/pci/hda/patch_hdmi.c 	if (spec->ops.pin_cvt_fixup)
spec             1147 sound/pci/hda/patch_hdmi.c 		spec->ops.pin_cvt_fixup(codec, per_pin, cvt_nid);
spec             1157 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             1171 sound/pci/hda/patch_hdmi.c 	per_cvt = get_cvt(spec, cvt_idx);
spec             1177 sound/pci/hda/patch_hdmi.c 	set_bit(pcm_idx, &spec->pcm_in_use);
spec             1205 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             1218 sound/pci/hda/patch_hdmi.c 	mutex_lock(&spec->pcm_lock);
spec             1220 sound/pci/hda/patch_hdmi.c 	if (!spec->dyn_pcm_assign) {
spec             1239 sound/pci/hda/patch_hdmi.c 	per_cvt = get_cvt(spec, cvt_idx);
spec             1243 sound/pci/hda/patch_hdmi.c 	set_bit(pcm_idx, &spec->pcm_in_use);
spec             1244 sound/pci/hda/patch_hdmi.c 	per_pin = get_pin(spec, pin_idx);
spec             1292 sound/pci/hda/patch_hdmi.c 	mutex_unlock(&spec->pcm_lock);
spec             1301 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             1302 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx);
spec             1320 sound/pci/hda/patch_hdmi.c static int hdmi_find_pcm_slot(struct hdmi_spec *spec,
spec             1326 sound/pci/hda/patch_hdmi.c 	if (!test_bit(per_pin->pin_nid_idx, &spec->pcm_bitmap))
spec             1330 sound/pci/hda/patch_hdmi.c 	for (i = spec->num_nids; i < spec->pcm_used; i++) {
spec             1331 sound/pci/hda/patch_hdmi.c 		if (!test_bit(i, &spec->pcm_bitmap))
spec             1336 sound/pci/hda/patch_hdmi.c 	for (i = 0; i < spec->num_nids; i++) {
spec             1337 sound/pci/hda/patch_hdmi.c 		if (!test_bit(i, &spec->pcm_bitmap))
spec             1343 sound/pci/hda/patch_hdmi.c static void hdmi_attach_hda_pcm(struct hdmi_spec *spec,
spec             1351 sound/pci/hda/patch_hdmi.c 	idx = hdmi_find_pcm_slot(spec, per_pin);
spec             1355 sound/pci/hda/patch_hdmi.c 	per_pin->pcm = get_hdmi_pcm(spec, idx);
spec             1356 sound/pci/hda/patch_hdmi.c 	set_bit(idx, &spec->pcm_bitmap);
spec             1359 sound/pci/hda/patch_hdmi.c static void hdmi_detach_hda_pcm(struct hdmi_spec *spec,
spec             1370 sound/pci/hda/patch_hdmi.c 	if (idx >= 0 && idx < spec->pcm_used)
spec             1371 sound/pci/hda/patch_hdmi.c 		clear_bit(idx, &spec->pcm_bitmap);
spec             1374 sound/pci/hda/patch_hdmi.c static int hdmi_get_pin_cvt_mux(struct hdmi_spec *spec,
spec             1387 sound/pci/hda/patch_hdmi.c static void hdmi_pcm_setup_pin(struct hdmi_spec *spec,
spec             1397 sound/pci/hda/patch_hdmi.c 	if (per_pin->pcm_idx >= 0 && per_pin->pcm_idx < spec->pcm_used)
spec             1398 sound/pci/hda/patch_hdmi.c 		pcm = get_pcm_rec(spec, per_pin->pcm_idx);
spec             1403 sound/pci/hda/patch_hdmi.c 	if (!test_bit(per_pin->pcm_idx, &spec->pcm_in_use))
spec             1412 sound/pci/hda/patch_hdmi.c 	mux_idx = hdmi_get_pin_cvt_mux(spec, per_pin, hinfo->nid);
spec             1431 sound/pci/hda/patch_hdmi.c static void hdmi_pcm_reset_pin(struct hdmi_spec *spec,
spec             1434 sound/pci/hda/patch_hdmi.c 	if (per_pin->pcm_idx >= 0 && per_pin->pcm_idx < spec->pcm_used)
spec             1452 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             1459 sound/pci/hda/patch_hdmi.c 	if (spec->dyn_pcm_assign) {
spec             1461 sound/pci/hda/patch_hdmi.c 			hdmi_attach_hda_pcm(spec, per_pin);
spec             1462 sound/pci/hda/patch_hdmi.c 			hdmi_pcm_setup_pin(spec, per_pin);
spec             1464 sound/pci/hda/patch_hdmi.c 			hdmi_pcm_reset_pin(spec, per_pin);
spec             1465 sound/pci/hda/patch_hdmi.c 			hdmi_detach_hda_pcm(spec, per_pin);
spec             1510 sound/pci/hda/patch_hdmi.c 			       &get_hdmi_pcm(spec, pcm_idx)->eld_ctl->id);
spec             1520 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             1521 sound/pci/hda/patch_hdmi.c 	struct hdmi_eld *eld = &spec->temp_eld;
spec             1549 sound/pci/hda/patch_hdmi.c 		if (spec->ops.pin_get_eld(codec, pin_nid, eld->eld_buffer,
spec             1581 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             1591 sound/pci/hda/patch_hdmi.c 	if (per_pin->pcm_idx >= 0 && spec->dyn_pcm_assign)
spec             1592 sound/pci/hda/patch_hdmi.c 		jack = spec->pcm_rec[per_pin->pcm_idx].jack;
spec             1593 sound/pci/hda/patch_hdmi.c 	else if (!spec->dyn_pcm_assign) {
spec             1610 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             1611 sound/pci/hda/patch_hdmi.c 	struct hdmi_eld *eld = &spec->temp_eld;
spec             1677 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             1687 sound/pci/hda/patch_hdmi.c 	mutex_lock(&spec->pcm_lock);
spec             1690 sound/pci/hda/patch_hdmi.c 	mutex_unlock(&spec->pcm_lock);
spec             1698 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             1732 sound/pci/hda/patch_hdmi.c 		spec->dev_num = 3;
spec             1733 sound/pci/hda/patch_hdmi.c 	} else if (spec->dyn_pcm_assign && codec->dp_mst) {
spec             1739 sound/pci/hda/patch_hdmi.c 		spec->dev_num = (spec->dev_num > dev_num) ?
spec             1740 sound/pci/hda/patch_hdmi.c 			spec->dev_num : dev_num;
spec             1748 sound/pci/hda/patch_hdmi.c 		spec->dev_num = 1;
spec             1752 sound/pci/hda/patch_hdmi.c 		pin_idx = spec->num_pins;
spec             1753 sound/pci/hda/patch_hdmi.c 		per_pin = snd_array_new(&spec->pins);
spec             1758 sound/pci/hda/patch_hdmi.c 		if (spec->dyn_pcm_assign) {
spec             1762 sound/pci/hda/patch_hdmi.c 			per_pin->pcm = get_hdmi_pcm(spec, pin_idx);
spec             1766 sound/pci/hda/patch_hdmi.c 		per_pin->pin_nid_idx = spec->num_nids;
spec             1775 sound/pci/hda/patch_hdmi.c 		spec->num_pins++;
spec             1777 sound/pci/hda/patch_hdmi.c 	spec->num_nids++;
spec             1784 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             1792 sound/pci/hda/patch_hdmi.c 	per_cvt = snd_array_new(&spec->cvts);
spec             1800 sound/pci/hda/patch_hdmi.c 		if (chans > spec->chmap.channels_max)
spec             1801 sound/pci/hda/patch_hdmi.c 			spec->chmap.channels_max = chans;
spec             1811 sound/pci/hda/patch_hdmi.c 	if (spec->num_cvts < ARRAY_SIZE(spec->cvt_nids))
spec             1812 sound/pci/hda/patch_hdmi.c 		spec->cvt_nids[spec->num_cvts] = cvt_nid;
spec             1813 sound/pci/hda/patch_hdmi.c 	spec->num_cvts++;
spec             1884 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             1893 sound/pci/hda/patch_hdmi.c 	mutex_lock(&spec->pcm_lock);
spec             1895 sound/pci/hda/patch_hdmi.c 	if (spec->dyn_pcm_assign && pin_idx < 0) {
spec             1910 sound/pci/hda/patch_hdmi.c 	per_pin = get_pin(spec, pin_idx);
spec             1944 sound/pci/hda/patch_hdmi.c 	if (spec->dyn_pin_out) {
spec             1953 sound/pci/hda/patch_hdmi.c 	err = spec->ops.setup_stream(codec, cvt_nid, pin_nid,
spec             1956 sound/pci/hda/patch_hdmi.c 	mutex_unlock(&spec->pcm_lock);
spec             1972 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             1986 sound/pci/hda/patch_hdmi.c 		per_cvt = get_cvt(spec, cvt_idx);
spec             1994 sound/pci/hda/patch_hdmi.c 		mutex_lock(&spec->pcm_lock);
spec             1996 sound/pci/hda/patch_hdmi.c 		clear_bit(pcm_idx, &spec->pcm_in_use);
spec             1998 sound/pci/hda/patch_hdmi.c 		if (spec->dyn_pcm_assign && pin_idx < 0)
spec             2005 sound/pci/hda/patch_hdmi.c 		per_pin = get_pin(spec, pin_idx);
spec             2007 sound/pci/hda/patch_hdmi.c 		if (spec->dyn_pin_out) {
spec             2023 sound/pci/hda/patch_hdmi.c 		mutex_unlock(&spec->pcm_lock);
spec             2039 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             2040 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec_per_pin *per_pin = pcm_idx_to_pin(spec, pcm_idx);
spec             2052 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             2053 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec_per_pin *per_pin = pcm_idx_to_pin(spec, pcm_idx);
spec             2066 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             2067 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec_per_pin *per_pin = pcm_idx_to_pin(spec, pcm_idx);
spec             2082 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             2083 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec_per_pin *per_pin = pcm_idx_to_pin(spec, pcm_idx);
spec             2090 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             2099 sound/pci/hda/patch_hdmi.c 	for (idx = 0; idx < spec->num_nids + spec->dev_num - 1; idx++) {
spec             2107 sound/pci/hda/patch_hdmi.c 		spec->pcm_rec[idx].pcm = info;
spec             2108 sound/pci/hda/patch_hdmi.c 		spec->pcm_used++;
spec             2116 sound/pci/hda/patch_hdmi.c 		if (spec->pcm_used >= 16)
spec             2132 sound/pci/hda/patch_hdmi.c 			       struct hdmi_spec *spec,
spec             2144 sound/pci/hda/patch_hdmi.c 	spec->pcm_rec[pcm_idx].jack = jack;
spec             2145 sound/pci/hda/patch_hdmi.c 	jack->private_data = &spec->pcm_rec[pcm_idx];
spec             2153 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             2156 sound/pci/hda/patch_hdmi.c 	int pcmdev = get_pcm_rec(spec, pcm_idx)->device;
spec             2163 sound/pci/hda/patch_hdmi.c 	if (spec->dyn_pcm_assign)
spec             2164 sound/pci/hda/patch_hdmi.c 		return add_hdmi_jack_kctl(codec, spec, pcm_idx, hdmi_str);
spec             2171 sound/pci/hda/patch_hdmi.c 	per_pin = get_pin(spec, pcm_idx);
spec             2186 sound/pci/hda/patch_hdmi.c 	spec->pcm_rec[pcm_idx].jack = jack->jack;
spec             2192 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             2196 sound/pci/hda/patch_hdmi.c 	for (pcm_idx = 0; pcm_idx < spec->pcm_used; pcm_idx++) {
spec             2197 sound/pci/hda/patch_hdmi.c 		if (!get_pcm_rec(spec, pcm_idx)->pcm) {
spec             2199 sound/pci/hda/patch_hdmi.c 			set_bit(pcm_idx, &spec->pcm_bitmap);
spec             2210 sound/pci/hda/patch_hdmi.c 		if (spec->dyn_pcm_assign)
spec             2212 sound/pci/hda/patch_hdmi.c 					  0, spec->cvt_nids[0],
spec             2216 sound/pci/hda/patch_hdmi.c 				get_pin(spec, pcm_idx);
spec             2226 sound/pci/hda/patch_hdmi.c 		dev = get_pcm_rec(spec, pcm_idx)->device;
spec             2235 sound/pci/hda/patch_hdmi.c 	for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) {
spec             2236 sound/pci/hda/patch_hdmi.c 		struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx);
spec             2244 sound/pci/hda/patch_hdmi.c 	for (pcm_idx = 0; pcm_idx < spec->pcm_used; pcm_idx++) {
spec             2247 sound/pci/hda/patch_hdmi.c 		pcm = get_pcm_rec(spec, pcm_idx);
spec             2250 sound/pci/hda/patch_hdmi.c 		err = snd_hdac_add_chmap_ctls(pcm->pcm, pcm_idx, &spec->chmap);
spec             2260 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             2263 sound/pci/hda/patch_hdmi.c 	for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) {
spec             2264 sound/pci/hda/patch_hdmi.c 		struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx);
spec             2276 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             2279 sound/pci/hda/patch_hdmi.c 	mutex_lock(&spec->bind_lock);
spec             2280 sound/pci/hda/patch_hdmi.c 	spec->use_jack_detect = !codec->jackpoll_interval;
spec             2281 sound/pci/hda/patch_hdmi.c 	for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) {
spec             2282 sound/pci/hda/patch_hdmi.c 		struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx);
spec             2290 sound/pci/hda/patch_hdmi.c 		if (spec->use_jack_detect)
spec             2296 sound/pci/hda/patch_hdmi.c 	mutex_unlock(&spec->bind_lock);
spec             2300 sound/pci/hda/patch_hdmi.c static void hdmi_array_init(struct hdmi_spec *spec, int nums)
spec             2302 sound/pci/hda/patch_hdmi.c 	snd_array_init(&spec->pins, sizeof(struct hdmi_spec_per_pin), nums);
spec             2303 sound/pci/hda/patch_hdmi.c 	snd_array_init(&spec->cvts, sizeof(struct hdmi_spec_per_cvt), nums);
spec             2306 sound/pci/hda/patch_hdmi.c static void hdmi_array_free(struct hdmi_spec *spec)
spec             2308 sound/pci/hda/patch_hdmi.c 	snd_array_free(&spec->pins);
spec             2309 sound/pci/hda/patch_hdmi.c 	snd_array_free(&spec->cvts);
spec             2314 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             2316 sound/pci/hda/patch_hdmi.c 	if (spec) {
spec             2317 sound/pci/hda/patch_hdmi.c 		hdmi_array_free(spec);
spec             2318 sound/pci/hda/patch_hdmi.c 		kfree(spec);
spec             2319 sound/pci/hda/patch_hdmi.c 		codec->spec = NULL;
spec             2326 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             2329 sound/pci/hda/patch_hdmi.c 	if (spec->acomp_registered) {
spec             2336 sound/pci/hda/patch_hdmi.c 	for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) {
spec             2337 sound/pci/hda/patch_hdmi.c 		struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx);
spec             2342 sound/pci/hda/patch_hdmi.c 	for (pcm_idx = 0; pcm_idx < spec->pcm_used; pcm_idx++) {
spec             2343 sound/pci/hda/patch_hdmi.c 		if (spec->pcm_rec[pcm_idx].jack == NULL)
spec             2345 sound/pci/hda/patch_hdmi.c 		if (spec->dyn_pcm_assign)
spec             2347 sound/pci/hda/patch_hdmi.c 					spec->pcm_rec[pcm_idx].jack);
spec             2349 sound/pci/hda/patch_hdmi.c 			spec->pcm_rec[pcm_idx].jack = NULL;
spec             2358 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             2364 sound/pci/hda/patch_hdmi.c 	for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) {
spec             2365 sound/pci/hda/patch_hdmi.c 		struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx);
spec             2393 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec;
spec             2395 sound/pci/hda/patch_hdmi.c 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
spec             2396 sound/pci/hda/patch_hdmi.c 	if (!spec)
spec             2399 sound/pci/hda/patch_hdmi.c 	spec->codec = codec;
spec             2400 sound/pci/hda/patch_hdmi.c 	spec->ops = generic_standard_hdmi_ops;
spec             2401 sound/pci/hda/patch_hdmi.c 	spec->dev_num = 1;	/* initialize to 1 */
spec             2402 sound/pci/hda/patch_hdmi.c 	mutex_init(&spec->pcm_lock);
spec             2403 sound/pci/hda/patch_hdmi.c 	mutex_init(&spec->bind_lock);
spec             2404 sound/pci/hda/patch_hdmi.c 	snd_hdac_register_chmap_ops(&codec->core, &spec->chmap);
spec             2406 sound/pci/hda/patch_hdmi.c 	spec->chmap.ops.get_chmap = hdmi_get_chmap;
spec             2407 sound/pci/hda/patch_hdmi.c 	spec->chmap.ops.set_chmap = hdmi_set_chmap;
spec             2408 sound/pci/hda/patch_hdmi.c 	spec->chmap.ops.is_pcm_attached = is_hdmi_pcm_attached;
spec             2409 sound/pci/hda/patch_hdmi.c 	spec->chmap.ops.get_spk_alloc = hdmi_get_spk_alloc,
spec             2411 sound/pci/hda/patch_hdmi.c 	codec->spec = spec;
spec             2412 sound/pci/hda/patch_hdmi.c 	hdmi_array_init(spec, 4);
spec             2469 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec;
spec             2472 sound/pci/hda/patch_hdmi.c 	spec = container_of(acomp->audio_ops, struct hdmi_spec, drm_audio_ops);
spec             2473 sound/pci/hda/patch_hdmi.c 	mutex_lock(&spec->bind_lock);
spec             2474 sound/pci/hda/patch_hdmi.c 	spec->use_acomp_notifier = use_acomp;
spec             2475 sound/pci/hda/patch_hdmi.c 	spec->codec->relaxed_resume = use_acomp;
spec             2477 sound/pci/hda/patch_hdmi.c 	if (spec->use_jack_detect) {
spec             2478 sound/pci/hda/patch_hdmi.c 		for (i = 0; i < spec->num_pins; i++)
spec             2479 sound/pci/hda/patch_hdmi.c 			reprogram_jack_detect(spec->codec,
spec             2480 sound/pci/hda/patch_hdmi.c 					      get_pin(spec, i)->pin_nid,
spec             2483 sound/pci/hda/patch_hdmi.c 	mutex_unlock(&spec->bind_lock);
spec             2517 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             2518 sound/pci/hda/patch_hdmi.c 	hda_nid_t pin_nid = spec->port2pin(codec, port);
spec             2540 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             2542 sound/pci/hda/patch_hdmi.c 	spec->drm_audio_ops.audio_ptr = codec;
spec             2548 sound/pci/hda/patch_hdmi.c 	spec->drm_audio_ops.pin2port = ops->pin2port;
spec             2549 sound/pci/hda/patch_hdmi.c 	spec->drm_audio_ops.pin_eld_notify = ops->pin_eld_notify;
spec             2550 sound/pci/hda/patch_hdmi.c 	spec->drm_audio_ops.master_bind = ops->master_bind;
spec             2551 sound/pci/hda/patch_hdmi.c 	spec->drm_audio_ops.master_unbind = ops->master_unbind;
spec             2559 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             2566 sound/pci/hda/patch_hdmi.c 	spec->port2pin = port2pin;
spec             2568 sound/pci/hda/patch_hdmi.c 	if (!snd_hdac_acomp_init(&codec->bus->core, &spec->drm_audio_ops,
spec             2570 sound/pci/hda/patch_hdmi.c 		spec->acomp_registered = true;
spec             2582 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             2587 sound/pci/hda/patch_hdmi.c 	if (nconns == spec->num_cvts &&
spec             2588 sound/pci/hda/patch_hdmi.c 	    !memcmp(conns, spec->cvt_nids, spec->num_cvts * sizeof(hda_nid_t)))
spec             2593 sound/pci/hda/patch_hdmi.c 	snd_hda_override_conn_list(codec, nid, spec->num_cvts, spec->cvt_nids);
spec             2605 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             2607 sound/pci/hda/patch_hdmi.c 	vendor_param = snd_hda_codec_read(codec, spec->vendor_nid, 0,
spec             2613 sound/pci/hda/patch_hdmi.c 	vendor_param = snd_hda_codec_read(codec, spec->vendor_nid, 0,
spec             2625 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             2627 sound/pci/hda/patch_hdmi.c 	vendor_param = snd_hda_codec_read(codec, spec->vendor_nid, 0,
spec             2635 sound/pci/hda/patch_hdmi.c 	snd_hda_codec_write_cache(codec, spec->vendor_nid, 0,
spec             2680 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             2683 sound/pci/hda/patch_hdmi.c 	if (!spec->port_num) {
spec             2694 sound/pci/hda/patch_hdmi.c 	for (i = 0; i < spec->port_num; i++) {
spec             2695 sound/pci/hda/patch_hdmi.c 		if (pin_nid == spec->port_map[i])
spec             2706 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             2708 sound/pci/hda/patch_hdmi.c 	if (!spec->port_num) {
spec             2716 sound/pci/hda/patch_hdmi.c 	if (port < 1 || port > spec->port_num)
spec             2718 sound/pci/hda/patch_hdmi.c 	return spec->port_map[port - 1];
spec             2751 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             2753 sound/pci/hda/patch_hdmi.c 	spec->use_acomp_notifier = true;
spec             2754 sound/pci/hda/patch_hdmi.c 	spec->port2pin = intel_port2pin;
spec             2757 sound/pci/hda/patch_hdmi.c 					&spec->drm_audio_ops);
spec             2830 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec;
spec             2836 sound/pci/hda/patch_hdmi.c 	spec = codec->spec;
spec             2838 sound/pci/hda/patch_hdmi.c 	spec->dyn_pcm_assign = true;
spec             2839 sound/pci/hda/patch_hdmi.c 	spec->vendor_nid = vendor_nid;
spec             2840 sound/pci/hda/patch_hdmi.c 	spec->port_map = port_map;
spec             2841 sound/pci/hda/patch_hdmi.c 	spec->port_num = port_num;
spec             2852 sound/pci/hda/patch_hdmi.c 	spec->ops.setup_stream = i915_hsw_setup_stream;
spec             2853 sound/pci/hda/patch_hdmi.c 	spec->ops.pin_cvt_fixup = i915_pin_cvt_fixup;
spec             2894 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec;
spec             2900 sound/pci/hda/patch_hdmi.c 	spec = codec->spec;
spec             2910 sound/pci/hda/patch_hdmi.c 	spec->ops.pin_cvt_fixup = i915_pin_cvt_fixup;
spec             2932 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             2938 sound/pci/hda/patch_hdmi.c 	per_cvt = get_cvt(spec, 0);
spec             2945 sound/pci/hda/patch_hdmi.c 	spec->pcm_rec[0].pcm = info;
spec             2948 sound/pci/hda/patch_hdmi.c 	*pstr = spec->pcm_playback;
spec             2971 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             2975 sound/pci/hda/patch_hdmi.c 	per_cvt = get_cvt(spec, 0);
spec             2986 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             2987 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec_per_pin *per_pin = get_pin(spec, 0);
spec             3002 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             3004 sound/pci/hda/patch_hdmi.c 	hdmi_array_free(spec);
spec             3005 sound/pci/hda/patch_hdmi.c 	kfree(spec);
spec             3097 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             3123 sound/pci/hda/patch_hdmi.c 	return snd_hda_multi_out_dig_open(codec, &spec->multiout);
spec             3130 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             3131 sound/pci/hda/patch_hdmi.c 	return snd_hda_multi_out_dig_close(codec, &spec->multiout);
spec             3140 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             3141 sound/pci/hda/patch_hdmi.c 	return snd_hda_multi_out_dig_prepare(codec, &spec->multiout,
spec             3167 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec;
spec             3171 sound/pci/hda/patch_hdmi.c 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
spec             3172 sound/pci/hda/patch_hdmi.c 	if (!spec)
spec             3175 sound/pci/hda/patch_hdmi.c 	spec->codec = codec;
spec             3176 sound/pci/hda/patch_hdmi.c 	codec->spec = spec;
spec             3177 sound/pci/hda/patch_hdmi.c 	hdmi_array_init(spec, 1);
spec             3179 sound/pci/hda/patch_hdmi.c 	spec->multiout.num_dacs = 0;  /* no analog */
spec             3180 sound/pci/hda/patch_hdmi.c 	spec->multiout.max_channels = 2;
spec             3181 sound/pci/hda/patch_hdmi.c 	spec->multiout.dig_out_nid = cvt_nid;
spec             3182 sound/pci/hda/patch_hdmi.c 	spec->num_cvts = 1;
spec             3183 sound/pci/hda/patch_hdmi.c 	spec->num_pins = 1;
spec             3184 sound/pci/hda/patch_hdmi.c 	per_pin = snd_array_new(&spec->pins);
spec             3185 sound/pci/hda/patch_hdmi.c 	per_cvt = snd_array_new(&spec->cvts);
spec             3192 sound/pci/hda/patch_hdmi.c 	spec->pcm_playback = simple_pcm_playback;
spec             3236 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             3254 sound/pci/hda/patch_hdmi.c 	return snd_hda_multi_out_dig_close(codec, &spec->multiout);
spec             3266 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             3271 sound/pci/hda/patch_hdmi.c 	per_cvt = get_cvt(spec, 0);
spec             3375 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec;
spec             3383 sound/pci/hda/patch_hdmi.c 	spec = codec->spec;
spec             3384 sound/pci/hda/patch_hdmi.c 	spec->pcm_playback.rates = SUPPORTED_RATES;
spec             3385 sound/pci/hda/patch_hdmi.c 	spec->pcm_playback.maxbps = SUPPORTED_MAXBPS;
spec             3386 sound/pci/hda/patch_hdmi.c 	spec->pcm_playback.formats = SUPPORTED_FORMATS;
spec             3392 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             3395 sound/pci/hda/patch_hdmi.c 		struct hda_pcm *info = get_pcm_rec(spec, 0);
spec             3403 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             3413 sound/pci/hda/patch_hdmi.c 	info = get_pcm_rec(spec, 0);
spec             3434 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec;
spec             3438 sound/pci/hda/patch_hdmi.c 	spec = codec->spec;
spec             3439 sound/pci/hda/patch_hdmi.c 	spec->multiout.max_channels = 8;
spec             3440 sound/pci/hda/patch_hdmi.c 	spec->pcm_playback = nvhdmi_pcm_playback_8ch_7x;
spec             3482 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec;
spec             3489 sound/pci/hda/patch_hdmi.c 	spec = codec->spec;
spec             3490 sound/pci/hda/patch_hdmi.c 	spec->dyn_pin_out = true;
spec             3492 sound/pci/hda/patch_hdmi.c 	spec->chmap.ops.chmap_cea_alloc_validate_get_type =
spec             3494 sound/pci/hda/patch_hdmi.c 	spec->chmap.ops.chmap_validate = nvhdmi_chmap_validate;
spec             3615 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             3618 sound/pci/hda/patch_hdmi.c 	for (i = 0; i < spec->num_pins; i++) {
spec             3619 sound/pci/hda/patch_hdmi.c 		struct hda_pcm *pcm = get_pcm_rec(spec, i);
spec             3961 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec = codec->spec;
spec             3969 sound/pci/hda/patch_hdmi.c 	for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) {
spec             3970 sound/pci/hda/patch_hdmi.c 		struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx);
spec             4007 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec *spec;
spec             4018 sound/pci/hda/patch_hdmi.c 	spec = codec->spec;
spec             4020 sound/pci/hda/patch_hdmi.c 	spec->ops.pin_get_eld = atihdmi_pin_get_eld;
spec             4021 sound/pci/hda/patch_hdmi.c 	spec->ops.pin_setup_infoframe = atihdmi_pin_setup_infoframe;
spec             4022 sound/pci/hda/patch_hdmi.c 	spec->ops.pin_hbr_setup = atihdmi_pin_hbr_setup;
spec             4023 sound/pci/hda/patch_hdmi.c 	spec->ops.setup_stream = atihdmi_setup_stream;
spec             4025 sound/pci/hda/patch_hdmi.c 	spec->chmap.ops.pin_get_slot_channel = atihdmi_pin_get_slot_channel;
spec             4026 sound/pci/hda/patch_hdmi.c 	spec->chmap.ops.pin_set_slot_channel = atihdmi_pin_set_slot_channel;
spec             4030 sound/pci/hda/patch_hdmi.c 		spec->chmap.ops.chmap_cea_alloc_validate_get_type =
spec             4032 sound/pci/hda/patch_hdmi.c 		spec->chmap.ops.cea_alloc_to_tlv_chmap =
spec             4034 sound/pci/hda/patch_hdmi.c 		spec->chmap.ops.chmap_validate = atihdmi_paired_chmap_validate;
spec             4038 sound/pci/hda/patch_hdmi.c 	for (cvt_idx = 0; cvt_idx < spec->num_cvts; cvt_idx++) {
spec             4039 sound/pci/hda/patch_hdmi.c 		per_cvt = get_cvt(spec, cvt_idx);
spec             4046 sound/pci/hda/patch_hdmi.c 	spec->chmap.channels_max = max(spec->chmap.channels_max, 8u);
spec              172 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec              174 sound/pci/hda/patch_realtek.c 	if (!spec->coef0)
spec              175 sound/pci/hda/patch_realtek.c 		spec->coef0 = alc_read_coef_idx(codec, 0);
spec              176 sound/pci/hda/patch_realtek.c 	return spec->coef0;
spec              212 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec              214 sound/pci/hda/patch_realtek.c 	spec->gpio_mask |= mask;
spec              215 sound/pci/hda/patch_realtek.c 	spec->gpio_dir |= mask;
spec              216 sound/pci/hda/patch_realtek.c 	spec->gpio_data |= mask;
spec              221 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec              224 sound/pci/hda/patch_realtek.c 			    spec->gpio_data);
spec              230 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec              231 sound/pci/hda/patch_realtek.c 	unsigned int oldval = spec->gpio_data;
spec              234 sound/pci/hda/patch_realtek.c 		spec->gpio_data |= mask;
spec              236 sound/pci/hda/patch_realtek.c 		spec->gpio_data &= ~mask;
spec              237 sound/pci/hda/patch_realtek.c 	if (oldval != spec->gpio_data)
spec              243 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec              245 sound/pci/hda/patch_realtek.c 	if (!spec->gpio_mask)
spec              249 sound/pci/hda/patch_realtek.c 			    AC_VERB_SET_GPIO_MASK, spec->gpio_mask);
spec              251 sound/pci/hda/patch_realtek.c 			    AC_VERB_SET_GPIO_DIRECTION, spec->gpio_dir);
spec              252 sound/pci/hda/patch_realtek.c 	if (spec->gpio_write_delay)
spec              295 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec              297 sound/pci/hda/patch_realtek.c 	if (spec->pll_nid)
spec              298 sound/pci/hda/patch_realtek.c 		alc_update_coefex_idx(codec, spec->pll_nid, spec->pll_coef_idx,
spec              299 sound/pci/hda/patch_realtek.c 				      1 << spec->pll_coef_bit, 0);
spec              305 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec              306 sound/pci/hda/patch_realtek.c 	spec->pll_nid = nid;
spec              307 sound/pci/hda/patch_realtek.c 	spec->pll_coef_idx = coef_idx;
spec              308 sound/pci/hda/patch_realtek.c 	spec->pll_coef_bit = coef_bit;
spec              511 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec              521 sound/pci/hda/patch_realtek.c 		if (!spec->no_shutup_pins)
spec              532 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec              535 sound/pci/hda/patch_realtek.c 	if (!spec->no_depop_delay)
spec              566 sound/pci/hda/patch_realtek.c static hda_nid_t alc_get_hp_pin(struct alc_spec *spec)
spec              568 sound/pci/hda/patch_realtek.c 	if (spec->gen.autocfg.hp_pins[0])
spec              569 sound/pci/hda/patch_realtek.c 		return spec->gen.autocfg.hp_pins[0];
spec              570 sound/pci/hda/patch_realtek.c 	if (spec->gen.autocfg.line_out_type == AC_JACK_HP_OUT)
spec              571 sound/pci/hda/patch_realtek.c 		return spec->gen.autocfg.line_out_pins[0];
spec              587 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec              589 sound/pci/hda/patch_realtek.c 		spec->cdefine.fixup = 1;
spec              590 sound/pci/hda/patch_realtek.c 		spec->cdefine.sku_cfg = ALC_FIXUP_SKU_IGNORE;
spec              597 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec              600 sound/pci/hda/patch_realtek.c 		spec->no_depop_delay = 1;
spec              609 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec              611 sound/pci/hda/patch_realtek.c 	spec->cdefine.enable_pcbeep = 1; /* assume always enabled */
spec              613 sound/pci/hda/patch_realtek.c 	if (spec->cdefine.fixup) {
spec              614 sound/pci/hda/patch_realtek.c 		ass = spec->cdefine.sku_cfg;
spec              646 sound/pci/hda/patch_realtek.c 	spec->cdefine.port_connectivity = ass >> 30;
spec              647 sound/pci/hda/patch_realtek.c 	spec->cdefine.enable_pcbeep = (ass & 0x100000) >> 20;
spec              648 sound/pci/hda/patch_realtek.c 	spec->cdefine.check_sum = (ass >> 16) & 0xf;
spec              649 sound/pci/hda/patch_realtek.c 	spec->cdefine.customization = ass >> 8;
spec              651 sound/pci/hda/patch_realtek.c 	spec->cdefine.sku_cfg = ass;
spec              652 sound/pci/hda/patch_realtek.c 	spec->cdefine.external_amp = (ass & 0x38) >> 3;
spec              653 sound/pci/hda/patch_realtek.c 	spec->cdefine.platform_type = (ass & 0x4) >> 2;
spec              654 sound/pci/hda/patch_realtek.c 	spec->cdefine.swap = (ass & 0x2) >> 1;
spec              655 sound/pci/hda/patch_realtek.c 	spec->cdefine.override = ass & 0x1;
spec              658 sound/pci/hda/patch_realtek.c 		   nid, spec->cdefine.sku_cfg);
spec              660 sound/pci/hda/patch_realtek.c 		   spec->cdefine.port_connectivity);
spec              661 sound/pci/hda/patch_realtek.c 	codec_dbg(codec, "SKU: enable_pcbeep=0x%x\n", spec->cdefine.enable_pcbeep);
spec              662 sound/pci/hda/patch_realtek.c 	codec_dbg(codec, "SKU: check_sum=0x%08x\n", spec->cdefine.check_sum);
spec              663 sound/pci/hda/patch_realtek.c 	codec_dbg(codec, "SKU: customization=0x%08x\n", spec->cdefine.customization);
spec              664 sound/pci/hda/patch_realtek.c 	codec_dbg(codec, "SKU: external_amp=0x%x\n", spec->cdefine.external_amp);
spec              665 sound/pci/hda/patch_realtek.c 	codec_dbg(codec, "SKU: platform_type=0x%x\n", spec->cdefine.platform_type);
spec              666 sound/pci/hda/patch_realtek.c 	codec_dbg(codec, "SKU: swap=0x%x\n", spec->cdefine.swap);
spec              667 sound/pci/hda/patch_realtek.c 	codec_dbg(codec, "SKU: override=0x%x\n", spec->cdefine.override);
spec              700 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec              702 sound/pci/hda/patch_realtek.c 	if (spec->cdefine.fixup) {
spec              703 sound/pci/hda/patch_realtek.c 		ass = spec->cdefine.sku_cfg;
spec              754 sound/pci/hda/patch_realtek.c 	if (spec->init_amp == ALC_INIT_UNDEFINED) {
spec              767 sound/pci/hda/patch_realtek.c 			spec->init_amp = ALC_INIT_DEFAULT;
spec              784 sound/pci/hda/patch_realtek.c 	if (!alc_get_hp_pin(spec)) {
spec              788 sound/pci/hda/patch_realtek.c 		if (found_in_nid_list(nid, spec->gen.autocfg.line_out_pins,
spec              789 sound/pci/hda/patch_realtek.c 				      spec->gen.autocfg.line_outs))
spec              791 sound/pci/hda/patch_realtek.c 		spec->gen.autocfg.hp_pins[0] = nid;
spec              801 sound/pci/hda/patch_realtek.c 		struct alc_spec *spec = codec->spec;
spec              802 sound/pci/hda/patch_realtek.c 		if (spec->init_amp == ALC_INIT_UNDEFINED) {
spec              805 sound/pci/hda/patch_realtek.c 			spec->init_amp = ALC_INIT_DEFAULT;
spec              816 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec              818 sound/pci/hda/patch_realtek.c 	spec->gen.inv_dmic_split = 1;
spec              851 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec              857 sound/pci/hda/patch_realtek.c 	if (spec->init_hook)
spec              858 sound/pci/hda/patch_realtek.c 		spec->init_hook(codec);
spec              860 sound/pci/hda/patch_realtek.c 	spec->gen.skip_verbs = 1; /* applied in below */
spec              863 sound/pci/hda/patch_realtek.c 	alc_auto_init_amp(codec, spec->init_amp);
spec              873 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec              878 sound/pci/hda/patch_realtek.c 	if (spec && spec->shutup)
spec              879 sound/pci/hda/patch_realtek.c 		spec->shutup(codec);
spec              886 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec              888 sound/pci/hda/patch_realtek.c 	if (spec && spec->reboot_notify)
spec              889 sound/pci/hda/patch_realtek.c 		spec->reboot_notify(codec);
spec              904 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec              906 sound/pci/hda/patch_realtek.c 	if (spec && spec->power_hook)
spec              907 sound/pci/hda/patch_realtek.c 		spec->power_hook(codec);
spec              915 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec              917 sound/pci/hda/patch_realtek.c 	if (!spec->no_depop_delay)
spec             1054 sound/pci/hda/patch_realtek.c static int set_beep_amp(struct alc_spec *spec, hda_nid_t nid,
spec             1062 sound/pci/hda/patch_realtek.c 		knew = snd_hda_gen_add_kctl(&spec->gen, NULL,
spec             1089 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             1094 sound/pci/hda/patch_realtek.c 	return spec->cdefine.enable_pcbeep;
spec             1097 sound/pci/hda/patch_realtek.c #define set_beep_amp(spec, nid, idx, dir)	0
spec             1109 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             1110 sound/pci/hda/patch_realtek.c 	struct auto_pin_cfg *cfg = &spec->gen.autocfg;
spec             1114 sound/pci/hda/patch_realtek.c 				       spec->parse_flags);
spec             1131 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = kzalloc(sizeof(*spec), GFP_KERNEL);
spec             1134 sound/pci/hda/patch_realtek.c 	if (!spec)
spec             1136 sound/pci/hda/patch_realtek.c 	codec->spec = spec;
spec             1137 sound/pci/hda/patch_realtek.c 	snd_hda_gen_spec_init(&spec->gen);
spec             1138 sound/pci/hda/patch_realtek.c 	spec->gen.mixer_nid = mixer_nid;
spec             1139 sound/pci/hda/patch_realtek.c 	spec->gen.own_eapd_ctl = 1;
spec             1147 sound/pci/hda/patch_realtek.c 		kfree(spec);
spec             1577 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec;
spec             1584 sound/pci/hda/patch_realtek.c 	spec = codec->spec;
spec             1585 sound/pci/hda/patch_realtek.c 	spec->gen.need_dac_fix = 1;
spec             1586 sound/pci/hda/patch_realtek.c 	spec->gen.beep_nid = 0x01;
spec             1601 sound/pci/hda/patch_realtek.c 	if (!spec->gen.no_analog) {
spec             1602 sound/pci/hda/patch_realtek.c 		err = set_beep_amp(spec, 0x0b, 0x05, HDA_INPUT);
spec             1646 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             1648 sound/pci/hda/patch_realtek.c 	alc_update_gpio_data(codec, 0x01, spec->gen.hp_jack_present);
spec             1654 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             1659 sound/pci/hda/patch_realtek.c 		spec->gen.automute_hook = alc260_gpio1_automute;
spec             1660 sound/pci/hda/patch_realtek.c 		spec->gen.detect_hp = 1;
spec             1661 sound/pci/hda/patch_realtek.c 		spec->gen.automute_speaker = 1;
spec             1662 sound/pci/hda/patch_realtek.c 		spec->gen.autocfg.hp_pins[0] = 0x0f; /* copy it for automute */
spec             1672 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             1692 sound/pci/hda/patch_realtek.c 		spec->init_amp = ALC_INIT_NONE;
spec             1700 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             1702 sound/pci/hda/patch_realtek.c 		spec->init_amp = ALC_INIT_NONE;
spec             1708 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             1710 sound/pci/hda/patch_realtek.c 		spec->gen.add_jack_modes = 1;
spec             1711 sound/pci/hda/patch_realtek.c 		spec->gen.hp_mic = 1;
spec             1826 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec;
spec             1833 sound/pci/hda/patch_realtek.c 	spec = codec->spec;
spec             1838 sound/pci/hda/patch_realtek.c 	spec->gen.prefer_hp_amp = 1;
spec             1839 sound/pci/hda/patch_realtek.c 	spec->gen.beep_nid = 0x01;
spec             1841 sound/pci/hda/patch_realtek.c 	spec->shutup = alc_eapd_shutup;
spec             1854 sound/pci/hda/patch_realtek.c 	if (!spec->gen.no_analog) {
spec             1855 sound/pci/hda/patch_realtek.c 		err = set_beep_amp(spec, 0x07, 0x05, HDA_INPUT);
spec             1936 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             1938 sound/pci/hda/patch_realtek.c 	spec->gpio_write_delay = true;
spec             1972 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             1984 sound/pci/hda/patch_realtek.c 		spec->gen.keep_vref_in_automute = 1;
spec             1992 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             2001 sound/pci/hda/patch_realtek.c 	spec->gen.keep_vref_in_automute = 1;
spec             2041 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             2043 sound/pci/hda/patch_realtek.c 		spec->gen.no_primary_hp = 1;
spec             2044 sound/pci/hda/patch_realtek.c 		spec->gen.no_multi_io = 1;
spec             2057 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             2062 sound/pci/hda/patch_realtek.c 	spec->gen.suppress_vmaster = 1;
spec             2064 sound/pci/hda/patch_realtek.c 	spec->gen.suppress_auto_mute = 1;
spec             2065 sound/pci/hda/patch_realtek.c 	spec->gen.suppress_auto_mic = 1;
spec             2067 sound/pci/hda/patch_realtek.c 	spec->gen.mixer_nid = 0;
spec             2537 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec;
spec             2544 sound/pci/hda/patch_realtek.c 	spec = codec->spec;
spec             2568 sound/pci/hda/patch_realtek.c 		spec->gen.beep_nid = 0x01;
spec             2575 sound/pci/hda/patch_realtek.c 	if (!spec->gen.no_analog && spec->gen.beep_nid) {
spec             2576 sound/pci/hda/patch_realtek.c 		err = set_beep_amp(spec, 0x0b, 0x05, HDA_INPUT);
spec             2715 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec;
spec             2722 sound/pci/hda/patch_realtek.c 	spec = codec->spec;
spec             2723 sound/pci/hda/patch_realtek.c 	spec->gen.shared_mic_vref_pin = 0x18;
spec             2725 sound/pci/hda/patch_realtek.c 	spec->shutup = alc_eapd_shutup;
spec             2744 sound/pci/hda/patch_realtek.c 		spec->gen.beep_nid = 0x01;
spec             2751 sound/pci/hda/patch_realtek.c 	if (!spec->gen.no_analog && spec->gen.beep_nid) {
spec             2752 sound/pci/hda/patch_realtek.c 		err = set_beep_amp(spec, 0x0b, 0x05, HDA_INPUT);
spec             2868 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec;
spec             2876 sound/pci/hda/patch_realtek.c 	spec = codec->spec;
spec             2878 sound/pci/hda/patch_realtek.c 		spec->gen.beep_nid = 0x01;
spec             2880 sound/pci/hda/patch_realtek.c 	spec->shutup = alc_eapd_shutup;
spec             2892 sound/pci/hda/patch_realtek.c 	if (err > 0 && !spec->gen.no_analog &&
spec             2893 sound/pci/hda/patch_realtek.c 	    spec->gen.autocfg.speaker_pins[0] != 0x1d) {
spec             2895 sound/pci/hda/patch_realtek.c 			if (!snd_hda_gen_add_kctl(&spec->gen, NULL,
spec             2964 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             2967 sound/pci/hda/patch_realtek.c 	switch (spec->codec_variant) {
spec             3032 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             3034 sound/pci/hda/patch_realtek.c 	if (!spec->has_hs_key)
spec             3058 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             3060 sound/pci/hda/patch_realtek.c 	if (!spec->has_hs_key)
spec             3085 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             3089 sound/pci/hda/patch_realtek.c 		spec->has_hs_key = 1;
spec             3108 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             3110 sound/pci/hda/patch_realtek.c 	if (spec->codec_variant == ALC269_TYPE_ALC269VB)
spec             3112 sound/pci/hda/patch_realtek.c 	if (spec->codec_variant == ALC269_TYPE_ALC269VB &&
spec             3159 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             3160 sound/pci/hda/patch_realtek.c 	hda_nid_t hp_pin = alc_get_hp_pin(spec);
spec             3196 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             3197 sound/pci/hda/patch_realtek.c 	hda_nid_t hp_pin = alc_get_hp_pin(spec);
spec             3219 sound/pci/hda/patch_realtek.c 	if (!spec->no_shutup_pins)
spec             3275 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             3276 sound/pci/hda/patch_realtek.c 	hda_nid_t hp_pin = alc_get_hp_pin(spec);
spec             3311 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             3312 sound/pci/hda/patch_realtek.c 	hda_nid_t hp_pin = alc_get_hp_pin(spec);
spec             3333 sound/pci/hda/patch_realtek.c 	if (!spec->no_shutup_pins)
spec             3348 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             3349 sound/pci/hda/patch_realtek.c 	hda_nid_t hp_pin = alc_get_hp_pin(spec);
spec             3363 sound/pci/hda/patch_realtek.c 	if (spec->ultra_low_power) {
spec             3375 sound/pci/hda/patch_realtek.c 	if (hp_pin_sense || spec->ultra_low_power)
spec             3381 sound/pci/hda/patch_realtek.c 	if (hp_pin_sense || spec->ultra_low_power)
spec             3399 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             3400 sound/pci/hda/patch_realtek.c 	hda_nid_t hp_pin = alc_get_hp_pin(spec);
spec             3414 sound/pci/hda/patch_realtek.c 	if (hp_pin_sense || spec->ultra_low_power)
spec             3421 sound/pci/hda/patch_realtek.c 	if (!spec->no_shutup_pins)
spec             3425 sound/pci/hda/patch_realtek.c 	if (hp_pin_sense || spec->ultra_low_power)
spec             3430 sound/pci/hda/patch_realtek.c 	if (spec->ultra_low_power) {
spec             3443 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             3444 sound/pci/hda/patch_realtek.c 	hda_nid_t hp_pin = alc_get_hp_pin(spec);
spec             3458 sound/pci/hda/patch_realtek.c 	if (spec->ultra_low_power) {
spec             3465 sound/pci/hda/patch_realtek.c 	if (hp1_pin_sense || spec->ultra_low_power)
spec             3472 sound/pci/hda/patch_realtek.c 	if (hp1_pin_sense || hp2_pin_sense || spec->ultra_low_power)
spec             3475 sound/pci/hda/patch_realtek.c 	if (hp1_pin_sense || spec->ultra_low_power)
spec             3482 sound/pci/hda/patch_realtek.c 	if (hp1_pin_sense || hp2_pin_sense || spec->ultra_low_power)
spec             3491 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             3492 sound/pci/hda/patch_realtek.c 	hda_nid_t hp_pin = alc_get_hp_pin(spec);
spec             3508 sound/pci/hda/patch_realtek.c 	if (hp1_pin_sense || spec->ultra_low_power)
spec             3515 sound/pci/hda/patch_realtek.c 	if (hp1_pin_sense || hp2_pin_sense || spec->ultra_low_power)
spec             3518 sound/pci/hda/patch_realtek.c 	if (hp1_pin_sense || spec->ultra_low_power)
spec             3525 sound/pci/hda/patch_realtek.c 	if (hp1_pin_sense || hp2_pin_sense || spec->ultra_low_power)
spec             3530 sound/pci/hda/patch_realtek.c 	if (spec->ultra_low_power) {
spec             3545 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             3546 sound/pci/hda/patch_realtek.c 	hda_nid_t hp_pin = alc_get_hp_pin(spec);
spec             3574 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             3575 sound/pci/hda/patch_realtek.c 	hda_nid_t hp_pin = alc_get_hp_pin(spec);
spec             3594 sound/pci/hda/patch_realtek.c 	if (!spec->no_shutup_pins)
spec             3607 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             3608 sound/pci/hda/patch_realtek.c 	hda_nid_t hp_pin = alc_get_hp_pin(spec);
spec             3619 sound/pci/hda/patch_realtek.c 	if (!spec->no_shutup_pins)
spec             3639 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             3642 sound/pci/hda/patch_realtek.c 	if (!spec->done_hp_init ||
spec             3645 sound/pci/hda/patch_realtek.c 		spec->done_hp_init = true;
spec             3745 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             3747 sound/pci/hda/patch_realtek.c 	if (spec->has_alc5505_dsp)
spec             3754 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             3756 sound/pci/hda/patch_realtek.c 	if (spec->codec_variant == ALC269_TYPE_ALC269VB)
spec             3758 sound/pci/hda/patch_realtek.c 	if (spec->codec_variant == ALC269_TYPE_ALC269VB &&
spec             3765 sound/pci/hda/patch_realtek.c 	if (spec->codec_variant == ALC269_TYPE_ALC269VB)
spec             3767 sound/pci/hda/patch_realtek.c 	if (spec->codec_variant == ALC269_TYPE_ALC269VB &&
spec             3779 sound/pci/hda/patch_realtek.c 	if (spec->gpio_data)
spec             3782 sound/pci/hda/patch_realtek.c 	if (spec->has_alc5505_dsp)
spec             3792 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             3795 sound/pci/hda/patch_realtek.c 		spec->parse_flags = HDA_PINCFG_NO_HP_FIXUP;
spec             3821 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             3824 sound/pci/hda/patch_realtek.c 		spec->parse_flags |= HDA_PINCFG_HEADSET_MIC;
spec             3848 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             3856 sound/pci/hda/patch_realtek.c 	spec->gen.stream_analog_playback = &alc269_44k_pcm_analog_playback;
spec             3857 sound/pci/hda/patch_realtek.c 	spec->gen.stream_analog_capture = &alc269_44k_pcm_analog_capture;
spec             3883 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             3886 sound/pci/hda/patch_realtek.c 	spec->gen.automute_hook = alc269_quanta_automute;
spec             3892 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             3897 sound/pci/hda/patch_realtek.c 	vref = spec->gen.hp_jack_present ? PIN_VREF80 : 0;
spec             3975 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             3977 sound/pci/hda/patch_realtek.c 		spec->parse_flags |= HDA_PINCFG_HEADSET_MIC;
spec             3978 sound/pci/hda/patch_realtek.c 		spec->gen.hp_automute_hook = alc269_x101_hp_automute_hook;
spec             3987 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             3990 sound/pci/hda/patch_realtek.c 	if (spec->mute_led_polarity)
spec             3992 sound/pci/hda/patch_realtek.c 	pinval = snd_hda_codec_get_pin_target(codec, spec->mute_led_nid);
spec             3995 sound/pci/hda/patch_realtek.c 	if (spec->mute_led_nid) {
spec             3998 sound/pci/hda/patch_realtek.c 		snd_hda_set_pin_ctl_cache(codec, spec->mute_led_nid, pinval);
spec             4008 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             4011 sound/pci/hda/patch_realtek.c 	    (nid != spec->mute_led_nid && nid != spec->cap_mute_led_nid))
spec             4024 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             4036 sound/pci/hda/patch_realtek.c 		spec->mute_led_polarity = pol;
spec             4037 sound/pci/hda/patch_realtek.c 		spec->mute_led_nid = pin - 0x0a + 0x18;
spec             4038 sound/pci/hda/patch_realtek.c 		spec->gen.vmaster_mute.hook = alc269_fixup_mic_mute_hook;
spec             4039 sound/pci/hda/patch_realtek.c 		spec->gen.vmaster_mute_enum = 1;
spec             4042 sound/pci/hda/patch_realtek.c 			  "Detected mute LED for %x:%d\n", spec->mute_led_nid,
spec             4043 sound/pci/hda/patch_realtek.c 			   spec->mute_led_polarity);
spec             4052 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             4055 sound/pci/hda/patch_realtek.c 		spec->mute_led_polarity = 0;
spec             4056 sound/pci/hda/patch_realtek.c 		spec->mute_led_nid = pin;
spec             4057 sound/pci/hda/patch_realtek.c 		spec->gen.vmaster_mute.hook = alc269_fixup_mic_mute_hook;
spec             4058 sound/pci/hda/patch_realtek.c 		spec->gen.vmaster_mute_enum = 1;
spec             4085 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             4087 sound/pci/hda/patch_realtek.c 	if (spec->mute_led_polarity)
spec             4096 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             4098 sound/pci/hda/patch_realtek.c 	alc_update_gpio_led(codec, spec->gpio_mute_led_mask, enabled);
spec             4104 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             4106 sound/pci/hda/patch_realtek.c 	alc_update_gpio_led(codec, spec->gpio_mic_led_mask,
spec             4107 sound/pci/hda/patch_realtek.c 			    spec->gen.micmute_led.led_value);
spec             4116 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             4123 sound/pci/hda/patch_realtek.c 		spec->gpio_mute_led_mask = mute_mask;
spec             4124 sound/pci/hda/patch_realtek.c 		spec->gen.vmaster_mute.hook = alc_fixup_gpio_mute_hook;
spec             4127 sound/pci/hda/patch_realtek.c 		spec->gpio_mic_led_mask = micmute_mask;
spec             4153 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             4156 sound/pci/hda/patch_realtek.c 	if (!spec->cap_mute_led_nid)
spec             4158 sound/pci/hda/patch_realtek.c 	pinval = snd_hda_codec_get_pin_target(codec, spec->cap_mute_led_nid);
spec             4160 sound/pci/hda/patch_realtek.c 	if (spec->gen.micmute_led.led_value)
spec             4164 sound/pci/hda/patch_realtek.c 	snd_hda_set_pin_ctl_cache(codec, spec->cap_mute_led_nid, pinval);
spec             4170 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             4177 sound/pci/hda/patch_realtek.c 		spec->gpio_mask |= 0x10;
spec             4178 sound/pci/hda/patch_realtek.c 		spec->gpio_dir |= 0x10;
spec             4179 sound/pci/hda/patch_realtek.c 		spec->cap_mute_led_nid = 0x18;
spec             4188 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             4192 sound/pci/hda/patch_realtek.c 		spec->cap_mute_led_nid = 0x18;
spec             4202 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             4204 sound/pci/hda/patch_realtek.c 	if (spec->mute_led_polarity)
spec             4208 sound/pci/hda/patch_realtek.c 	enabled ? alc_update_coef_idx(codec, spec->mute_led_coef_idx,
spec             4209 sound/pci/hda/patch_realtek.c 		spec->mute_led_coefbit_mask, spec->mute_led_coefbit_off) :
spec             4210 sound/pci/hda/patch_realtek.c 		  alc_update_coef_idx(codec, spec->mute_led_coef_idx,
spec             4211 sound/pci/hda/patch_realtek.c 		spec->mute_led_coefbit_mask, spec->mute_led_coefbit_on);
spec             4218 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             4221 sound/pci/hda/patch_realtek.c 		spec->mute_led_polarity = 0;
spec             4222 sound/pci/hda/patch_realtek.c 		spec->mute_led_coef_idx = 0x0b;
spec             4223 sound/pci/hda/patch_realtek.c 		spec->mute_led_coefbit_mask = 1<<3;
spec             4224 sound/pci/hda/patch_realtek.c 		spec->mute_led_coefbit_on = 1<<3;
spec             4225 sound/pci/hda/patch_realtek.c 		spec->mute_led_coefbit_off = 0;
spec             4226 sound/pci/hda/patch_realtek.c 		spec->gen.vmaster_mute.hook = alc_fixup_mute_led_coefbit_hook;
spec             4227 sound/pci/hda/patch_realtek.c 		spec->gen.vmaster_mute_enum = 1;
spec             4235 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             4238 sound/pci/hda/patch_realtek.c 		spec->mute_led_polarity = 0;
spec             4239 sound/pci/hda/patch_realtek.c 		spec->mute_led_coef_idx = 0x34;
spec             4240 sound/pci/hda/patch_realtek.c 		spec->mute_led_coefbit_mask = 1<<5;
spec             4241 sound/pci/hda/patch_realtek.c 		spec->mute_led_coefbit_on = 0;
spec             4242 sound/pci/hda/patch_realtek.c 		spec->mute_led_coefbit_off = 1<<5;
spec             4243 sound/pci/hda/patch_realtek.c 		spec->gen.vmaster_mute.hook = alc_fixup_mute_led_coefbit_hook;
spec             4244 sound/pci/hda/patch_realtek.c 		spec->gen.vmaster_mute_enum = 1;
spec             4251 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             4253 sound/pci/hda/patch_realtek.c 	if (spec->gen.micmute_led.led_value)
spec             4254 sound/pci/hda/patch_realtek.c 		alc_update_coef_idx(codec, spec->mic_led_coef_idx,
spec             4255 sound/pci/hda/patch_realtek.c 			spec->mic_led_coefbit_mask, spec->mic_led_coefbit_on);
spec             4257 sound/pci/hda/patch_realtek.c 		alc_update_coef_idx(codec, spec->mic_led_coef_idx,
spec             4258 sound/pci/hda/patch_realtek.c 			spec->mic_led_coefbit_mask, spec->mic_led_coefbit_off);
spec             4264 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             4267 sound/pci/hda/patch_realtek.c 		spec->mic_led_coef_idx = 0x19;
spec             4268 sound/pci/hda/patch_realtek.c 		spec->mic_led_coefbit_mask = 1<<13;
spec             4269 sound/pci/hda/patch_realtek.c 		spec->mic_led_coefbit_on = 1<<13;
spec             4270 sound/pci/hda/patch_realtek.c 		spec->mic_led_coefbit_off = 0;
spec             4278 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             4281 sound/pci/hda/patch_realtek.c 		spec->mic_led_coef_idx = 0x35;
spec             4282 sound/pci/hda/patch_realtek.c 		spec->mic_led_coefbit_mask = 3<<2;
spec             4283 sound/pci/hda/patch_realtek.c 		spec->mic_led_coefbit_on = 2<<2;
spec             4284 sound/pci/hda/patch_realtek.c 		spec->mic_led_coefbit_off = 1<<2;
spec             4307 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             4311 sound/pci/hda/patch_realtek.c 	input_report_key(spec->kb_dev, spec->alc_mute_keycode_map[ALC_KEY_MICMUTE_INDEX], 1);
spec             4312 sound/pci/hda/patch_realtek.c 	input_sync(spec->kb_dev);
spec             4313 sound/pci/hda/patch_realtek.c 	input_report_key(spec->kb_dev, spec->alc_mute_keycode_map[ALC_KEY_MICMUTE_INDEX], 0);
spec             4314 sound/pci/hda/patch_realtek.c 	input_sync(spec->kb_dev);
spec             4319 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             4322 sound/pci/hda/patch_realtek.c 	spec->kb_dev = input_allocate_device();
spec             4323 sound/pci/hda/patch_realtek.c 	if (!spec->kb_dev) {
spec             4328 sound/pci/hda/patch_realtek.c 	spec->alc_mute_keycode_map[ALC_KEY_MICMUTE_INDEX] = KEY_MICMUTE;
spec             4330 sound/pci/hda/patch_realtek.c 	spec->kb_dev->name = "Microphone Mute Button";
spec             4331 sound/pci/hda/patch_realtek.c 	spec->kb_dev->evbit[0] = BIT_MASK(EV_KEY);
spec             4332 sound/pci/hda/patch_realtek.c 	spec->kb_dev->keycodesize = sizeof(spec->alc_mute_keycode_map[0]);
spec             4333 sound/pci/hda/patch_realtek.c 	spec->kb_dev->keycodemax = ARRAY_SIZE(spec->alc_mute_keycode_map);
spec             4334 sound/pci/hda/patch_realtek.c 	spec->kb_dev->keycode = spec->alc_mute_keycode_map;
spec             4335 sound/pci/hda/patch_realtek.c 	for (i = 0; i < ARRAY_SIZE(spec->alc_mute_keycode_map); i++)
spec             4336 sound/pci/hda/patch_realtek.c 		set_bit(spec->alc_mute_keycode_map[i], spec->kb_dev->keybit);
spec             4338 sound/pci/hda/patch_realtek.c 	if (input_register_device(spec->kb_dev)) {
spec             4340 sound/pci/hda/patch_realtek.c 		input_free_device(spec->kb_dev);
spec             4341 sound/pci/hda/patch_realtek.c 		spec->kb_dev = NULL;
spec             4356 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             4360 sound/pci/hda/patch_realtek.c 		spec->init_amp = ALC_INIT_DEFAULT;
spec             4364 sound/pci/hda/patch_realtek.c 		spec->gpio_mask |= 0x06;
spec             4365 sound/pci/hda/patch_realtek.c 		spec->gpio_dir |= 0x02;
spec             4366 sound/pci/hda/patch_realtek.c 		spec->gpio_data |= 0x02;
spec             4374 sound/pci/hda/patch_realtek.c 	if (!spec->kb_dev)
spec             4379 sound/pci/hda/patch_realtek.c 		input_unregister_device(spec->kb_dev);
spec             4380 sound/pci/hda/patch_realtek.c 		spec->kb_dev = NULL;
spec             4390 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             4394 sound/pci/hda/patch_realtek.c 		spec->init_amp = ALC_INIT_DEFAULT;
spec             4403 sound/pci/hda/patch_realtek.c 	if (!spec->kb_dev)
spec             4408 sound/pci/hda/patch_realtek.c 		input_unregister_device(spec->kb_dev);
spec             4409 sound/pci/hda/patch_realtek.c 		spec->kb_dev = NULL;
spec             4420 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             4424 sound/pci/hda/patch_realtek.c 		spec->cap_mute_led_nid = 0x18;
spec             5043 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             5229 sound/pci/hda/patch_realtek.c 	spec->current_headset_type = is_ctia ? ALC_HEADSET_TYPE_CTIA : ALC_HEADSET_TYPE_OMTP;
spec             5234 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             5236 sound/pci/hda/patch_realtek.c 	hda_nid_t mux_pin = spec->gen.imux_pins[spec->gen.cur_mux[0]];
spec             5237 sound/pci/hda/patch_realtek.c 	hda_nid_t hp_pin = alc_get_hp_pin(spec);
spec             5243 sound/pci/hda/patch_realtek.c 	else if (mux_pin == spec->headset_mic_pin)
spec             5245 sound/pci/hda/patch_realtek.c 	else if (mux_pin == spec->headphone_mic_pin)
spec             5250 sound/pci/hda/patch_realtek.c 	if (new_headset_mode == spec->current_headset_mode) {
spec             5258 sound/pci/hda/patch_realtek.c 		spec->current_headset_mode = ALC_HEADSET_MODE_UNKNOWN;
spec             5259 sound/pci/hda/patch_realtek.c 		spec->current_headset_type = ALC_HEADSET_TYPE_UNKNOWN;
spec             5260 sound/pci/hda/patch_realtek.c 		spec->gen.hp_jack_present = false;
spec             5263 sound/pci/hda/patch_realtek.c 		if (spec->current_headset_type == ALC_HEADSET_TYPE_UNKNOWN)
spec             5265 sound/pci/hda/patch_realtek.c 		if (spec->current_headset_type == ALC_HEADSET_TYPE_CTIA)
spec             5267 sound/pci/hda/patch_realtek.c 		else if (spec->current_headset_type == ALC_HEADSET_TYPE_OMTP)
spec             5269 sound/pci/hda/patch_realtek.c 		spec->gen.hp_jack_present = true;
spec             5272 sound/pci/hda/patch_realtek.c 		alc_headset_mode_mic_in(codec, hp_pin, spec->headphone_mic_pin);
spec             5273 sound/pci/hda/patch_realtek.c 		spec->gen.hp_jack_present = false;
spec             5277 sound/pci/hda/patch_realtek.c 		spec->gen.hp_jack_present = true;
spec             5283 sound/pci/hda/patch_realtek.c 		if (spec->headphone_mic_pin && spec->headphone_mic_pin != hp_pin)
spec             5284 sound/pci/hda/patch_realtek.c 			snd_hda_set_pin_ctl_cache(codec, spec->headphone_mic_pin,
spec             5287 sound/pci/hda/patch_realtek.c 	spec->current_headset_mode = new_headset_mode;
spec             5308 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             5309 sound/pci/hda/patch_realtek.c 	struct auto_pin_cfg *cfg = &spec->gen.autocfg;
spec             5313 sound/pci/hda/patch_realtek.c 		if (cfg->inputs[i].is_headset_mic && !spec->headset_mic_pin)
spec             5314 sound/pci/hda/patch_realtek.c 			spec->headset_mic_pin = cfg->inputs[i].pin;
spec             5315 sound/pci/hda/patch_realtek.c 		if (cfg->inputs[i].is_headphone_mic && !spec->headphone_mic_pin)
spec             5316 sound/pci/hda/patch_realtek.c 			spec->headphone_mic_pin = cfg->inputs[i].pin;
spec             5319 sound/pci/hda/patch_realtek.c 	WARN_ON(spec->gen.cap_sync_hook);
spec             5320 sound/pci/hda/patch_realtek.c 	spec->gen.cap_sync_hook = alc_update_headset_mode_hook;
spec             5321 sound/pci/hda/patch_realtek.c 	spec->gen.automute_hook = alc_update_headset_mode;
spec             5322 sound/pci/hda/patch_realtek.c 	spec->gen.hp_automute_hook = alc_update_headset_jack_cb;
spec             5328 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             5332 sound/pci/hda/patch_realtek.c 		spec->parse_flags |= HDA_PINCFG_HEADSET_MIC | HDA_PINCFG_HEADPHONE_MIC;
spec             5339 sound/pci/hda/patch_realtek.c 			spec->current_headset_mode = ALC_HEADSET_MODE_UNKNOWN;
spec             5340 sound/pci/hda/patch_realtek.c 			spec->current_headset_type = ALC_HEADSET_TYPE_UNKNOWN;
spec             5351 sound/pci/hda/patch_realtek.c 		struct alc_spec *spec = codec->spec;
spec             5352 sound/pci/hda/patch_realtek.c 		spec->parse_flags |= HDA_PINCFG_HEADSET_MIC;
spec             5402 sound/pci/hda/patch_realtek.c 		struct alc_spec *spec = codec->spec;
spec             5403 sound/pci/hda/patch_realtek.c 		spec->parse_flags |= HDA_PINCFG_HEADSET_MIC;
spec             5413 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             5417 sound/pci/hda/patch_realtek.c 	alc_update_gpio_data(codec, 0x40, spec->gen.hp_jack_present);
spec             5425 sound/pci/hda/patch_realtek.c 		struct alc_spec *spec = codec->spec;
spec             5427 sound/pci/hda/patch_realtek.c 		spec->gpio_mask |= 0x40;
spec             5428 sound/pci/hda/patch_realtek.c 		spec->gpio_dir |= 0x40;
spec             5429 sound/pci/hda/patch_realtek.c 		spec->gen.hp_automute_hook = alc288_update_headset_jack_cb;
spec             5437 sound/pci/hda/patch_realtek.c 		struct alc_spec *spec = codec->spec;
spec             5438 sound/pci/hda/patch_realtek.c 		spec->gen.auto_mute_via_amp = 1;
spec             5446 sound/pci/hda/patch_realtek.c 		struct alc_spec *spec = codec->spec;
spec             5447 sound/pci/hda/patch_realtek.c 		spec->no_shutup_pins = 1;
spec             5455 sound/pci/hda/patch_realtek.c 		struct alc_spec *spec = codec->spec;
spec             5457 sound/pci/hda/patch_realtek.c 		spec->gen.mixer_nid = 0;
spec             5470 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             5473 sound/pci/hda/patch_realtek.c 		spec->reboot_notify = snd_hda_gen_reboot_notify; /* reduce noise */
spec             5474 sound/pci/hda/patch_realtek.c 		spec->parse_flags = HDA_PINCFG_NO_HP_FIXUP;
spec             5488 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             5491 sound/pci/hda/patch_realtek.c 		spec->parse_flags = HDA_PINCFG_NO_HP_FIXUP;
spec             5514 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             5517 sound/pci/hda/patch_realtek.c 		spec->gen.preferred_dacs = preferred_pairs;
spec             5522 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             5523 sound/pci/hda/patch_realtek.c 	int hp_pin = alc_get_hp_pin(spec);
spec             5534 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             5535 sound/pci/hda/patch_realtek.c 	struct hda_input_mux *imux = &spec->gen.input_mux;
spec             5544 sound/pci/hda/patch_realtek.c 		spec->shutup = alc_shutup_dell_xps13;
spec             5549 sound/pci/hda/patch_realtek.c 			if (spec->gen.imux_pins[i] == 0x12) {
spec             5550 sound/pci/hda/patch_realtek.c 				spec->gen.cur_mux[0] = i;
spec             5561 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             5564 sound/pci/hda/patch_realtek.c 		spec->parse_flags |= HDA_PINCFG_HEADSET_MIC;
spec             5565 sound/pci/hda/patch_realtek.c 		spec->gen.hp_mic = 1; /* Mic-in is same pin as headphone */
spec             5589 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             5590 sound/pci/hda/patch_realtek.c 	struct auto_pin_cfg *cfg = &spec->gen.autocfg;
spec             5612 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             5616 sound/pci/hda/patch_realtek.c 		int hp_pin = alc_get_hp_pin(spec);
spec             5628 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             5629 sound/pci/hda/patch_realtek.c 	struct auto_pin_cfg *cfg = &spec->gen.autocfg;
spec             5659 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             5665 sound/pci/hda/patch_realtek.c 	vref = spec->gen.hp_jack_present ? PIN_VREF80 : 0;
spec             5675 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             5681 sound/pci/hda/patch_realtek.c 		spec->gen.mixer_nid = 0;
spec             5696 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             5700 sound/pci/hda/patch_realtek.c 		spec->gen.hp_automute_hook = alc283_hp_automute_hook;
spec             5713 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             5716 sound/pci/hda/patch_realtek.c 		spec->gen.mute_bits |= (1ULL << 0x14);
spec             5722 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             5730 sound/pci/hda/patch_realtek.c 		spec->init_amp = ALC_INIT_DEFAULT;
spec             5734 sound/pci/hda/patch_realtek.c 		spec->gen.auto_mute_via_amp = 1;
spec             5735 sound/pci/hda/patch_realtek.c 		spec->gen.automute_hook = asus_tx300_automute;
spec             5740 sound/pci/hda/patch_realtek.c 		spec->init_amp = ALC_INIT_DEFAULT;
spec             5807 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             5811 sound/pci/hda/patch_realtek.c 	alc_update_gpio_led(codec, 0x10, !spec->gen.hp_jack_present);
spec             5824 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             5829 sound/pci/hda/patch_realtek.c 		spec->gpio_mask |= 0x10;
spec             5830 sound/pci/hda/patch_realtek.c 		spec->gpio_dir |= 0x10;
spec             5831 sound/pci/hda/patch_realtek.c 		spec->gen.hp_automute_hook = alc280_hp_gpio4_automute_hook;
spec             5839 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             5842 sound/pci/hda/patch_realtek.c 		spec->gpio_mask |= 0x04;
spec             5843 sound/pci/hda/patch_realtek.c 		spec->gpio_dir |= 0x04;
spec             5885 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             5894 sound/pci/hda/patch_realtek.c 	spec->gen.preferred_dacs = preferred_pairs;
spec             5895 sound/pci/hda/patch_realtek.c 	spec->gen.auto_mute_via_amp = 1;
spec             5912 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             5916 sound/pci/hda/patch_realtek.c 		spec->ultra_low_power = true;
spec             8189 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             8192 sound/pci/hda/patch_realtek.c 	if (spec->codec_variant != ALC269_TYPE_ALC269VB)
spec             8231 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec;
spec             8238 sound/pci/hda/patch_realtek.c 	spec = codec->spec;
spec             8239 sound/pci/hda/patch_realtek.c 	spec->gen.shared_mic_vref_pin = 0x18;
spec             8246 sound/pci/hda/patch_realtek.c 	spec->shutup = alc_default_shutup;
spec             8247 sound/pci/hda/patch_realtek.c 	spec->init_hook = alc_default_init;
spec             8251 sound/pci/hda/patch_realtek.c 		spec->codec_variant = ALC269_TYPE_ALC269VA;
spec             8256 sound/pci/hda/patch_realtek.c 			    spec->cdefine.platform_type == 1)
spec             8258 sound/pci/hda/patch_realtek.c 			spec->codec_variant = ALC269_TYPE_ALC269VB;
spec             8265 sound/pci/hda/patch_realtek.c 			spec->codec_variant = ALC269_TYPE_ALC269VC;
spec             8268 sound/pci/hda/patch_realtek.c 			spec->codec_variant = ALC269_TYPE_ALC269VD;
spec             8275 sound/pci/hda/patch_realtek.c 		spec->shutup = alc269_shutup;
spec             8276 sound/pci/hda/patch_realtek.c 		spec->init_hook = alc269_fill_coef;
spec             8282 sound/pci/hda/patch_realtek.c 		spec->codec_variant = ALC269_TYPE_ALC280;
spec             8285 sound/pci/hda/patch_realtek.c 		spec->codec_variant = ALC269_TYPE_ALC282;
spec             8286 sound/pci/hda/patch_realtek.c 		spec->shutup = alc282_shutup;
spec             8287 sound/pci/hda/patch_realtek.c 		spec->init_hook = alc282_init;
spec             8291 sound/pci/hda/patch_realtek.c 		spec->codec_variant = ALC269_TYPE_ALC283;
spec             8292 sound/pci/hda/patch_realtek.c 		spec->shutup = alc283_shutup;
spec             8293 sound/pci/hda/patch_realtek.c 		spec->init_hook = alc283_init;
spec             8297 sound/pci/hda/patch_realtek.c 		spec->codec_variant = ALC269_TYPE_ALC284;
spec             8300 sound/pci/hda/patch_realtek.c 		spec->codec_variant = ALC269_TYPE_ALC293;
spec             8304 sound/pci/hda/patch_realtek.c 		spec->codec_variant = ALC269_TYPE_ALC286;
spec             8307 sound/pci/hda/patch_realtek.c 		spec->codec_variant = ALC269_TYPE_ALC298;
spec             8311 sound/pci/hda/patch_realtek.c 		spec->codec_variant = ALC269_TYPE_ALC255;
spec             8312 sound/pci/hda/patch_realtek.c 		spec->shutup = alc256_shutup;
spec             8313 sound/pci/hda/patch_realtek.c 		spec->init_hook = alc256_init;
spec             8317 sound/pci/hda/patch_realtek.c 		spec->codec_variant = ALC269_TYPE_ALC256;
spec             8318 sound/pci/hda/patch_realtek.c 		spec->shutup = alc256_shutup;
spec             8319 sound/pci/hda/patch_realtek.c 		spec->init_hook = alc256_init;
spec             8320 sound/pci/hda/patch_realtek.c 		spec->gen.mixer_nid = 0; /* ALC256 does not have any loopback mixer path */
spec             8323 sound/pci/hda/patch_realtek.c 		spec->codec_variant = ALC269_TYPE_ALC257;
spec             8324 sound/pci/hda/patch_realtek.c 		spec->shutup = alc256_shutup;
spec             8325 sound/pci/hda/patch_realtek.c 		spec->init_hook = alc256_init;
spec             8326 sound/pci/hda/patch_realtek.c 		spec->gen.mixer_nid = 0;
spec             8333 sound/pci/hda/patch_realtek.c 		spec->codec_variant = ALC269_TYPE_ALC215;
spec             8334 sound/pci/hda/patch_realtek.c 		spec->shutup = alc225_shutup;
spec             8335 sound/pci/hda/patch_realtek.c 		spec->init_hook = alc225_init;
spec             8336 sound/pci/hda/patch_realtek.c 		spec->gen.mixer_nid = 0;
spec             8341 sound/pci/hda/patch_realtek.c 		spec->codec_variant = ALC269_TYPE_ALC225;
spec             8342 sound/pci/hda/patch_realtek.c 		spec->shutup = alc225_shutup;
spec             8343 sound/pci/hda/patch_realtek.c 		spec->init_hook = alc225_init;
spec             8344 sound/pci/hda/patch_realtek.c 		spec->gen.mixer_nid = 0; /* no loopback on ALC225, ALC295 and ALC299 */
spec             8349 sound/pci/hda/patch_realtek.c 		spec->codec_variant = ALC269_TYPE_ALC294;
spec             8350 sound/pci/hda/patch_realtek.c 		spec->gen.mixer_nid = 0; /* ALC2x4 does not have any loopback mixer path */
spec             8352 sound/pci/hda/patch_realtek.c 		spec->init_hook = alc294_init;
spec             8355 sound/pci/hda/patch_realtek.c 		spec->codec_variant = ALC269_TYPE_ALC300;
spec             8356 sound/pci/hda/patch_realtek.c 		spec->gen.mixer_nid = 0; /* no loopback on ALC300 */
spec             8359 sound/pci/hda/patch_realtek.c 		spec->codec_variant = ALC269_TYPE_ALC623;
spec             8365 sound/pci/hda/patch_realtek.c 		spec->codec_variant = ALC269_TYPE_ALC700;
spec             8366 sound/pci/hda/patch_realtek.c 		spec->gen.mixer_nid = 0; /* ALC700 does not have any loopback mixer path */
spec             8368 sound/pci/hda/patch_realtek.c 		spec->init_hook = alc294_init;
spec             8374 sound/pci/hda/patch_realtek.c 		spec->has_alc5505_dsp = 1;
spec             8375 sound/pci/hda/patch_realtek.c 		spec->init_hook = alc5505_dsp_init;
spec             8391 sound/pci/hda/patch_realtek.c 		spec->gen.beep_nid = 0x01;
spec             8398 sound/pci/hda/patch_realtek.c 	if (!spec->gen.no_analog && spec->gen.beep_nid && spec->gen.mixer_nid) {
spec             8399 sound/pci/hda/patch_realtek.c 		err = set_beep_amp(spec, spec->gen.mixer_nid, 0x04, HDA_INPUT);
spec             8437 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             8447 sound/pci/hda/patch_realtek.c 	spec->gen.keep_vref_in_automute = 1;
spec             8509 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec;
spec             8516 sound/pci/hda/patch_realtek.c 	spec = codec->spec;
spec             8518 sound/pci/hda/patch_realtek.c 		spec->gen.beep_nid = 0x23;
spec             8521 sound/pci/hda/patch_realtek.c 	spec->power_hook = alc_power_eapd;
spec             8534 sound/pci/hda/patch_realtek.c 	if (!spec->gen.no_analog) {
spec             8535 sound/pci/hda/patch_realtek.c 		err = set_beep_amp(spec, 0x23, 0, HDA_OUTPUT);
spec             8582 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             8585 sound/pci/hda/patch_realtek.c 		spec->gpio_mask |= 0x02;
spec             8611 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec;
spec             8618 sound/pci/hda/patch_realtek.c 	spec = codec->spec;
spec             8620 sound/pci/hda/patch_realtek.c 		spec->gen.beep_nid = 0x23;
spec             8622 sound/pci/hda/patch_realtek.c 	spec->shutup = alc_eapd_shutup;
spec             8634 sound/pci/hda/patch_realtek.c 	if (!spec->gen.no_analog) {
spec             8635 sound/pci/hda/patch_realtek.c 		err = set_beep_amp(spec, 0x0b, 0x05, HDA_INPUT);
spec             8708 sound/pci/hda/patch_realtek.c 		struct alc_spec *spec = codec->spec;
spec             8709 sound/pci/hda/patch_realtek.c 		spec->gen.pcm_rec[0]->stream[0].chmap = asus_pcm_2_1_chmaps;
spec             8718 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             8719 sound/pci/hda/patch_realtek.c 	if (nid == codec->core.afg && power_state == AC_PWRST_D3 && spec->gpio_data)
spec             8727 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             8731 sound/pci/hda/patch_realtek.c 		spec->mute_led_polarity = 1;
spec             8739 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             8744 sound/pci/hda/patch_realtek.c 	vref = spec->gen.hp_jack_present ? PIN_VREF80 : 0;
spec             8753 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             8755 sound/pci/hda/patch_realtek.c 		spec->parse_flags |= HDA_PINCFG_HEADSET_MIC;
spec             8756 sound/pci/hda/patch_realtek.c 		spec->gen.hp_automute_hook = alc662_usi_automute_hook;
spec             8804 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec = codec->spec;
spec             8814 sound/pci/hda/patch_realtek.c 		spec->gen.mixer_nid = 0;
spec             8815 sound/pci/hda/patch_realtek.c 		spec->parse_flags |= HDA_PINCFG_HEADSET_MIC;
spec             9472 sound/pci/hda/patch_realtek.c 	struct alc_spec *spec;
spec             9479 sound/pci/hda/patch_realtek.c 	spec = codec->spec;
spec             9481 sound/pci/hda/patch_realtek.c 	spec->shutup = alc_eapd_shutup;
spec             9484 sound/pci/hda/patch_realtek.c 	spec->parse_flags = HDA_PINCFG_NO_HP_FIXUP;
spec             9490 sound/pci/hda/patch_realtek.c 		spec->init_hook = alc668_restore_default_value;
spec             9504 sound/pci/hda/patch_realtek.c 		spec->gen.beep_nid = 0x01;
spec             9508 sound/pci/hda/patch_realtek.c 	    spec->cdefine.platform_type == 1) {
spec             9519 sound/pci/hda/patch_realtek.c 	if (!spec->gen.no_analog && spec->gen.beep_nid) {
spec             9522 sound/pci/hda/patch_realtek.c 			err = set_beep_amp(spec, 0x0b, 0x05, HDA_INPUT);
spec             9528 sound/pci/hda/patch_realtek.c 			err = set_beep_amp(spec, 0x0b, 0x04, HDA_INPUT);
spec             9531 sound/pci/hda/patch_realtek.c 			err = set_beep_amp(spec, 0x0b, 0x03, HDA_INPUT);
spec              207 sound/pci/hda/patch_si3054.c 	struct si3054_spec *spec = codec->spec;
spec              244 sound/pci/hda/patch_si3054.c 	spec->international = GET_REG(codec, SI3054_CHIPID) & SI3054_CHIPID_INTERNATIONAL;
spec              251 sound/pci/hda/patch_si3054.c 	kfree(codec->spec);
spec              267 sound/pci/hda/patch_si3054.c 	struct si3054_spec *spec = kzalloc(sizeof(*spec), GFP_KERNEL);
spec              268 sound/pci/hda/patch_si3054.c 	if (spec == NULL)
spec              270 sound/pci/hda/patch_si3054.c 	codec->spec = spec;
spec              245 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec              246 sound/pci/hda/patch_sigmatel.c 	if (action == HDA_GEN_PCM_ACT_OPEN && spec->stream_delay)
spec              247 sound/pci/hda/patch_sigmatel.c 		msleep(spec->stream_delay);
spec              255 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec              258 sound/pci/hda/patch_sigmatel.c 	if (!spec->powerdown_adcs)
spec              261 sound/pci/hda/patch_sigmatel.c 	for (i = 0; i < spec->gen.num_all_adcs; i++) {
spec              262 sound/pci/hda/patch_sigmatel.c 		if (spec->gen.all_adcs[i] == hinfo->nid) {
spec              273 sound/pci/hda/patch_sigmatel.c 		spec->active_adcs |= (1 << idx);
spec              278 sound/pci/hda/patch_sigmatel.c 		spec->active_adcs &= ~(1 << idx);
spec              325 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec              327 sound/pci/hda/patch_sigmatel.c 	if (spec->gen.micmute_led.led_value)
spec              328 sound/pci/hda/patch_sigmatel.c 		spec->gpio_data |= spec->mic_mute_led_gpio;
spec              330 sound/pci/hda/patch_sigmatel.c 		spec->gpio_data &= ~spec->mic_mute_led_gpio;
spec              331 sound/pci/hda/patch_sigmatel.c 	stac_gpio_set(codec, spec->gpio_mask, spec->gpio_dir, spec->gpio_data);
spec              371 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec              374 sound/pci/hda/patch_sigmatel.c 	if (!spec->gpio_led)
spec              378 sound/pci/hda/patch_sigmatel.c 	if (spec->gpio_led_polarity)
spec              381 sound/pci/hda/patch_sigmatel.c 	if (!spec->vref_mute_led_nid) {
spec              383 sound/pci/hda/patch_sigmatel.c 			spec->gpio_data |= spec->gpio_led;
spec              385 sound/pci/hda/patch_sigmatel.c 			spec->gpio_data &= ~spec->gpio_led;
spec              386 sound/pci/hda/patch_sigmatel.c 		stac_gpio_set(codec, spec->gpio_mask,
spec              387 sound/pci/hda/patch_sigmatel.c 				spec->gpio_dir, spec->gpio_data);
spec              389 sound/pci/hda/patch_sigmatel.c 		spec->vref_led = muted ? AC_PINCTL_VREF_50 : AC_PINCTL_VREF_GRD;
spec              390 sound/pci/hda/patch_sigmatel.c 		stac_vrefout_set(codec,	spec->vref_mute_led_nid,
spec              391 sound/pci/hda/patch_sigmatel.c 				 spec->vref_led);
spec              404 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec              406 sound/pci/hda/patch_sigmatel.c 	if (spec->gpio_mute)
spec              407 sound/pci/hda/patch_sigmatel.c 		spec->gen.master_mute =
spec              409 sound/pci/hda/patch_sigmatel.c 				AC_VERB_GET_GPIO_DATA, 0) & spec->gpio_mute);
spec              413 sound/pci/hda/patch_sigmatel.c 	if (spec->eapd_mask && spec->eapd_switch) {
spec              414 sound/pci/hda/patch_sigmatel.c 		unsigned int val = spec->gpio_data;
spec              415 sound/pci/hda/patch_sigmatel.c 		if (spec->gen.speaker_muted)
spec              416 sound/pci/hda/patch_sigmatel.c 			val &= ~spec->eapd_mask;
spec              418 sound/pci/hda/patch_sigmatel.c 			val |= spec->eapd_mask;
spec              419 sound/pci/hda/patch_sigmatel.c 		if (spec->gpio_data != val) {
spec              420 sound/pci/hda/patch_sigmatel.c 			spec->gpio_data = val;
spec              421 sound/pci/hda/patch_sigmatel.c 			stac_gpio_set(codec, spec->gpio_mask, spec->gpio_dir,
spec              430 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec              433 sound/pci/hda/patch_sigmatel.c 	for (idx = 0; idx < spec->num_pwrs; idx++) {
spec              434 sound/pci/hda/patch_sigmatel.c 		if (spec->pwr_nids[idx] == nid)
spec              437 sound/pci/hda/patch_sigmatel.c 	if (idx >= spec->num_pwrs)
spec              442 sound/pci/hda/patch_sigmatel.c 	val = spec->power_map_bits;
spec              449 sound/pci/hda/patch_sigmatel.c 	if (val != spec->power_map_bits) {
spec              450 sound/pci/hda/patch_sigmatel.c 		spec->power_map_bits = val;
spec              461 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec              464 sound/pci/hda/patch_sigmatel.c 	if (!spec->num_pwrs)
spec              475 sound/pci/hda/patch_sigmatel.c 	for (i = 0; i < spec->num_pwrs; i++) {
spec              476 sound/pci/hda/patch_sigmatel.c 		hda_nid_t nid = spec->pwr_nids[i];
spec              486 sound/pci/hda/patch_sigmatel.c 			    spec->power_map_bits);
spec              506 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec              509 sound/pci/hda/patch_sigmatel.c 	for (i = 0; i < spec->num_pwrs; i++)  {
spec              510 sound/pci/hda/patch_sigmatel.c 		hda_nid_t nid = spec->pwr_nids[i];
spec              514 sound/pci/hda/patch_sigmatel.c 		    spec->vref_mute_led_nid != nid &&
spec              539 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec              542 sound/pci/hda/patch_sigmatel.c 	if (get_int_hint(codec, "gpio_mask", &spec->gpio_mask)) {
spec              543 sound/pci/hda/patch_sigmatel.c 		spec->eapd_mask = spec->gpio_dir = spec->gpio_data =
spec              544 sound/pci/hda/patch_sigmatel.c 			spec->gpio_mask;
spec              546 sound/pci/hda/patch_sigmatel.c 	if (get_int_hint(codec, "gpio_dir", &spec->gpio_dir))
spec              547 sound/pci/hda/patch_sigmatel.c 		spec->gpio_dir &= spec->gpio_mask;
spec              548 sound/pci/hda/patch_sigmatel.c 	if (get_int_hint(codec, "gpio_data", &spec->gpio_data))
spec              549 sound/pci/hda/patch_sigmatel.c 		spec->gpio_data &= spec->gpio_mask;
spec              550 sound/pci/hda/patch_sigmatel.c 	if (get_int_hint(codec, "eapd_mask", &spec->eapd_mask))
spec              551 sound/pci/hda/patch_sigmatel.c 		spec->eapd_mask &= spec->gpio_mask;
spec              552 sound/pci/hda/patch_sigmatel.c 	if (get_int_hint(codec, "gpio_mute", &spec->gpio_mute))
spec              553 sound/pci/hda/patch_sigmatel.c 		spec->gpio_mute &= spec->gpio_mask;
spec              556 sound/pci/hda/patch_sigmatel.c 		spec->eapd_switch = val;
spec              570 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec              572 sound/pci/hda/patch_sigmatel.c 	ucontrol->value.integer.value[0] = !!(spec->aloopback &
spec              573 sound/pci/hda/patch_sigmatel.c 					      (spec->aloopback_mask << idx));
spec              581 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec              586 sound/pci/hda/patch_sigmatel.c 	idx_val = spec->aloopback_mask << idx;
spec              588 sound/pci/hda/patch_sigmatel.c 		val = spec->aloopback | idx_val;
spec              590 sound/pci/hda/patch_sigmatel.c 		val = spec->aloopback & ~idx_val;
spec              591 sound/pci/hda/patch_sigmatel.c 	if (spec->aloopback == val)
spec              594 sound/pci/hda/patch_sigmatel.c 	spec->aloopback = val;
spec              601 sound/pci/hda/patch_sigmatel.c 	dac_mode >>= spec->aloopback_shift;
spec              603 sound/pci/hda/patch_sigmatel.c 	if (spec->aloopback & idx_val) {
spec              705 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec              708 sound/pci/hda/patch_sigmatel.c 	if (spec->gpio_led)
spec              714 sound/pci/hda/patch_sigmatel.c 		spec->gpio_led = 0x08; /* GPIO 3 */
spec              716 sound/pci/hda/patch_sigmatel.c 		spec->gpio_led = 0x01; /* GPIO 0 */
spec              741 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec              744 sound/pci/hda/patch_sigmatel.c 	if (get_int_hint(codec, "gpio_led", &spec->gpio_led)) {
spec              746 sound/pci/hda/patch_sigmatel.c 			     &spec->gpio_led_polarity);
spec              752 sound/pci/hda/patch_sigmatel.c 			   &spec->gpio_led_polarity,
spec              753 sound/pci/hda/patch_sigmatel.c 			   &spec->gpio_led) == 2) {
spec              758 sound/pci/hda/patch_sigmatel.c 			if (spec->gpio_led < max_gpio)
spec              759 sound/pci/hda/patch_sigmatel.c 				spec->gpio_led = 1 << spec->gpio_led;
spec              761 sound/pci/hda/patch_sigmatel.c 				spec->vref_mute_led_nid = spec->gpio_led;
spec              765 sound/pci/hda/patch_sigmatel.c 			   &spec->gpio_led_polarity) == 1) {
spec              773 sound/pci/hda/patch_sigmatel.c 				spec->gpio_led_polarity = default_polarity;
spec              775 sound/pci/hda/patch_sigmatel.c 				spec->gpio_led_polarity = 1;
spec              788 sound/pci/hda/patch_sigmatel.c 		spec->gpio_led_polarity = default_polarity;
spec              797 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec              801 sound/pci/hda/patch_sigmatel.c 	if (spec->gen.autocfg.line_out_type == AUTO_PIN_SPEAKER_OUT) {
spec              802 sound/pci/hda/patch_sigmatel.c 		nid_pin = spec->gen.autocfg.line_out_pins;
spec              803 sound/pci/hda/patch_sigmatel.c 		nids = spec->gen.autocfg.line_outs;
spec              805 sound/pci/hda/patch_sigmatel.c 		nid_pin = spec->gen.autocfg.speaker_pins;
spec              806 sound/pci/hda/patch_sigmatel.c 		nids = spec->gen.autocfg.speaker_outs;
spec              825 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec              838 sound/pci/hda/patch_sigmatel.c 		if (spec->anabeep_nid == nid)
spec              842 sound/pci/hda/patch_sigmatel.c 		knew = snd_hda_gen_add_kctl(&spec->gen,
spec              852 sound/pci/hda/patch_sigmatel.c 		knew = snd_hda_gen_add_kctl(&spec->gen,
spec              891 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec              893 sound/pci/hda/patch_sigmatel.c 	if (!snd_hda_gen_add_kctl(&spec->gen, NULL, &stac_dig_beep_ctrl))
spec              907 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec              908 sound/pci/hda/patch_sigmatel.c 	return snd_hda_input_mux_info(&spec->spdif_mux, uinfo);
spec              915 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec              918 sound/pci/hda/patch_sigmatel.c 	ucontrol->value.enumerated.item[0] = spec->cur_smux[smux_idx];
spec              926 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec              929 sound/pci/hda/patch_sigmatel.c 	return snd_hda_input_mux_put(codec, &spec->spdif_mux, ucontrol,
spec              930 sound/pci/hda/patch_sigmatel.c 				     spec->gen.autocfg.dig_out_pins[smux_idx],
spec              931 sound/pci/hda/patch_sigmatel.c 				     &spec->cur_smux[smux_idx]);
spec              949 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec              950 sound/pci/hda/patch_sigmatel.c 	struct auto_pin_cfg *cfg = &spec->gen.autocfg;
spec              951 sound/pci/hda/patch_sigmatel.c 	const char * const *labels = spec->spdif_labels;
spec              967 sound/pci/hda/patch_sigmatel.c 		snd_hda_add_imux_item(codec, &spec->spdif_mux, labels[i], i, NULL);
spec              970 sound/pci/hda/patch_sigmatel.c 	kctl = snd_hda_gen_add_kctl(&spec->gen, NULL, &stac_smux_mixer);
spec             1350 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             1353 sound/pci/hda/patch_sigmatel.c 		spec->gpio_mask = spec->gpio_dir = 0x09;
spec             1354 sound/pci/hda/patch_sigmatel.c 		spec->gpio_data = 0x00;
spec             1358 sound/pci/hda/patch_sigmatel.c 		spec->gen.suppress_auto_mute = 1;
spec             1778 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             1784 sound/pci/hda/patch_sigmatel.c 	spec->gpio_mask = spec->gpio_dir = spec->gpio_data = 0;
spec             1789 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             1792 sound/pci/hda/patch_sigmatel.c 	spec->eapd_switch = 0;
spec             1798 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             1805 sound/pci/hda/patch_sigmatel.c 	spec->volknob_init = 1;
spec             1845 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             1851 sound/pci/hda/patch_sigmatel.c 	spec->eapd_switch = 0;
spec             1865 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             1870 sound/pci/hda/patch_sigmatel.c 	spec->gen.suppress_auto_mute = 1;
spec             2086 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             2096 sound/pci/hda/patch_sigmatel.c 	if (find_mute_led_cfg(codec, spec->default_polarity))
spec             2098 sound/pci/hda/patch_sigmatel.c 				spec->gpio_led,
spec             2099 sound/pci/hda/patch_sigmatel.c 				spec->gpio_led_polarity);
spec             2102 sound/pci/hda/patch_sigmatel.c 	spec->gen.line_in_auto_switch = true;
spec             2118 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             2121 sound/pci/hda/patch_sigmatel.c 		spec->default_polarity = 0;
spec             2127 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             2130 sound/pci/hda/patch_sigmatel.c 		spec->default_polarity = 1;
spec             2136 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             2139 sound/pci/hda/patch_sigmatel.c 		spec->mic_mute_led_gpio = 0x08; /* GPIO3 */
spec             2150 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             2153 sound/pci/hda/patch_sigmatel.c 		spec->gpio_led = 0x10; /* GPIO4 */
spec             2154 sound/pci/hda/patch_sigmatel.c 		spec->default_polarity = 0;
spec             2161 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             2164 sound/pci/hda/patch_sigmatel.c 		spec->headset_jack = 1;
spec             2171 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             2175 sound/pci/hda/patch_sigmatel.c 	spec->eapd_mask = spec->gpio_mask = spec->gpio_dir =
spec             2176 sound/pci/hda/patch_sigmatel.c 		spec->gpio_data = 0x10;
spec             2177 sound/pci/hda/patch_sigmatel.c 	spec->eapd_switch = 0;
spec             2184 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             2193 sound/pci/hda/patch_sigmatel.c 	spec->gen.preferred_dacs = preferred_pairs;
spec             2940 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             2941 sound/pci/hda/patch_sigmatel.c 	ucontrol->value.integer.value[0] = !!(spec->gpio_data & 0x20);
spec             2949 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             2952 sound/pci/hda/patch_sigmatel.c 	gpio_data = (spec->gpio_data & ~0x20) |
spec             2954 sound/pci/hda/patch_sigmatel.c 	if (gpio_data == spec->gpio_data)
spec             2956 sound/pci/hda/patch_sigmatel.c 	spec->gpio_data = gpio_data;
spec             2957 sound/pci/hda/patch_sigmatel.c 	stac_gpio_set(codec, spec->gpio_mask, spec->gpio_dir, spec->gpio_data);
spec             2970 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             2972 sound/pci/hda/patch_sigmatel.c 	if (!snd_hda_gen_add_kctl(&spec->gen, "Bass Speaker Playback Switch",
spec             2976 sound/pci/hda/patch_sigmatel.c 	spec->gpio_mask |= 0x20;
spec             2977 sound/pci/hda/patch_sigmatel.c 	spec->gpio_dir |= 0x20;
spec             2978 sound/pci/hda/patch_sigmatel.c 	spec->gpio_data |= 0x20;
spec             3045 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             3051 sound/pci/hda/patch_sigmatel.c 	spec->gpio_mask = spec->gpio_dir = spec->gpio_data = 0;
spec             3057 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             3071 sound/pci/hda/patch_sigmatel.c 	spec->gpio_mask |= 0x02;
spec             3080 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             3084 sound/pci/hda/patch_sigmatel.c 	spec->gpio_led = 0x01;
spec             3110 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             3114 sound/pci/hda/patch_sigmatel.c 	spec->gpio_led = 0x08;
spec             3144 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             3159 sound/pci/hda/patch_sigmatel.c 				spec->gpio_led,
spec             3160 sound/pci/hda/patch_sigmatel.c 				spec->gpio_led_polarity);
spec             3522 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             3525 sound/pci/hda/patch_sigmatel.c 		spec->gpio_mask = spec->gpio_dir = 0x03;
spec             3526 sound/pci/hda/patch_sigmatel.c 		spec->gpio_data = 0x03;
spec             3821 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             3825 sound/pci/hda/patch_sigmatel.c 		spec->eapd_mask = spec->gpio_mask = 0;
spec             3826 sound/pci/hda/patch_sigmatel.c 		spec->gpio_dir = spec->gpio_data = 0;
spec             3833 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             3840 sound/pci/hda/patch_sigmatel.c 		spec->eapd_mask = spec->gpio_mask = 0x04;
spec             3841 sound/pci/hda/patch_sigmatel.c 		spec->gpio_dir = spec->gpio_data = 0x04;
spec             3845 sound/pci/hda/patch_sigmatel.c 	spec->volknob_init = 1;
spec             3851 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             3855 sound/pci/hda/patch_sigmatel.c 		spec->volknob_init = 1;
spec             4087 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             4092 sound/pci/hda/patch_sigmatel.c 		spec->eapd_mask = spec->gpio_mask = spec->gpio_dir = 0;
spec             4099 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             4113 sound/pci/hda/patch_sigmatel.c 		spec->gpio_dir = 0x0b;
spec             4114 sound/pci/hda/patch_sigmatel.c 		spec->eapd_mask = 0x01;
spec             4115 sound/pci/hda/patch_sigmatel.c 		spec->gpio_mask = 0x1b;
spec             4116 sound/pci/hda/patch_sigmatel.c 		spec->gpio_mute = 0x10;
spec             4120 sound/pci/hda/patch_sigmatel.c 		spec->gpio_data = 0x01;
spec             4127 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             4130 sound/pci/hda/patch_sigmatel.c 		spec->eapd_switch = 0;
spec             4216 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             4221 sound/pci/hda/patch_sigmatel.c 	if (find_mute_led_cfg(codec, spec->default_polarity))
spec             4223 sound/pci/hda/patch_sigmatel.c 				spec->gpio_led,
spec             4224 sound/pci/hda/patch_sigmatel.c 				spec->gpio_led_polarity);
spec             4257 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             4261 sound/pci/hda/patch_sigmatel.c 	if (spec->headset_jack)
spec             4264 sound/pci/hda/patch_sigmatel.c 	err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, flags);
spec             4269 sound/pci/hda/patch_sigmatel.c 	spec->gen.pcm_playback_hook = stac_playback_pcm_hook;
spec             4270 sound/pci/hda/patch_sigmatel.c 	spec->gen.pcm_capture_hook = stac_capture_pcm_hook;
spec             4272 sound/pci/hda/patch_sigmatel.c 	spec->gen.automute_hook = stac_update_outputs;
spec             4274 sound/pci/hda/patch_sigmatel.c 	err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg);
spec             4278 sound/pci/hda/patch_sigmatel.c 	if (spec->vref_mute_led_nid) {
spec             4279 sound/pci/hda/patch_sigmatel.c 		err = snd_hda_gen_fix_pin_power(codec, spec->vref_mute_led_nid);
spec             4285 sound/pci/hda/patch_sigmatel.c 	if (spec->anabeep_nid > 0) {
spec             4287 sound/pci/hda/patch_sigmatel.c 						 spec->anabeep_nid);
spec             4294 sound/pci/hda/patch_sigmatel.c 	if (spec->gen.beep_nid) {
spec             4295 sound/pci/hda/patch_sigmatel.c 		hda_nid_t nid = spec->gen.beep_nid;
spec             4303 sound/pci/hda/patch_sigmatel.c 			codec->beep->linear_tone = spec->linear_tone_beep;
spec             4315 sound/pci/hda/patch_sigmatel.c 	if (spec->gpio_led)
spec             4316 sound/pci/hda/patch_sigmatel.c 		spec->gen.vmaster_mute.hook = stac_vmaster_hook;
spec             4318 sound/pci/hda/patch_sigmatel.c 	if (spec->aloopback_ctl &&
spec             4321 sound/pci/hda/patch_sigmatel.c 			spec->aloopback_ctl->private_value >> 16;
spec             4324 sound/pci/hda/patch_sigmatel.c 		if (!snd_hda_gen_add_kctl(&spec->gen, NULL, spec->aloopback_ctl))
spec             4328 sound/pci/hda/patch_sigmatel.c 	if (spec->have_spdif_mux) {
spec             4341 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             4351 sound/pci/hda/patch_sigmatel.c 	if (!spec->eapd_switch)
spec             4352 sound/pci/hda/patch_sigmatel.c 		spec->gpio_data |= spec->eapd_mask;
spec             4353 sound/pci/hda/patch_sigmatel.c 	stac_gpio_set(codec, spec->gpio_mask, spec->gpio_dir, spec->gpio_data);
spec             4358 sound/pci/hda/patch_sigmatel.c 	if (spec->num_pwrs)
spec             4361 sound/pci/hda/patch_sigmatel.c 				    spec->power_map_bits);
spec             4364 sound/pci/hda/patch_sigmatel.c 	if (spec->powerdown_adcs) {
spec             4365 sound/pci/hda/patch_sigmatel.c 		for (i = 0; i < spec->gen.num_all_adcs; i++) {
spec             4366 sound/pci/hda/patch_sigmatel.c 			if (spec->active_adcs & (1 << i))
spec             4368 sound/pci/hda/patch_sigmatel.c 			snd_hda_codec_write(codec, spec->gen.all_adcs[i], 0,
spec             4379 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             4383 sound/pci/hda/patch_sigmatel.c 	if (spec->eapd_mask)
spec             4384 sound/pci/hda/patch_sigmatel.c 		stac_gpio_set(codec, spec->gpio_mask,
spec             4385 sound/pci/hda/patch_sigmatel.c 				spec->gpio_dir, spec->gpio_data &
spec             4386 sound/pci/hda/patch_sigmatel.c 				~spec->eapd_mask);
spec             4462 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec;
spec             4464 sound/pci/hda/patch_sigmatel.c 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
spec             4465 sound/pci/hda/patch_sigmatel.c 	if (!spec)
spec             4467 sound/pci/hda/patch_sigmatel.c 	snd_hda_gen_spec_init(&spec->gen);
spec             4468 sound/pci/hda/patch_sigmatel.c 	codec->spec = spec;
spec             4470 sound/pci/hda/patch_sigmatel.c 	spec->gen.dac_min_mute = true;
spec             4477 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec;
spec             4484 sound/pci/hda/patch_sigmatel.c 	spec = codec->spec;
spec             4485 sound/pci/hda/patch_sigmatel.c 	spec->linear_tone_beep = 1;
spec             4486 sound/pci/hda/patch_sigmatel.c 	spec->gen.own_eapd_ctl = 1;
spec             4509 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec;
spec             4516 sound/pci/hda/patch_sigmatel.c 	spec = codec->spec;
spec             4517 sound/pci/hda/patch_sigmatel.c 	spec->linear_tone_beep = 1;
spec             4518 sound/pci/hda/patch_sigmatel.c 	spec->gen.own_eapd_ctl = 1;
spec             4539 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec;
spec             4547 sound/pci/hda/patch_sigmatel.c 	spec = codec->spec;
spec             4553 sound/pci/hda/patch_sigmatel.c 	spec->linear_tone_beep = 0;
spec             4554 sound/pci/hda/patch_sigmatel.c 	spec->gen.mixer_nid = 0x1d;
spec             4555 sound/pci/hda/patch_sigmatel.c 	spec->have_spdif_mux = 1;
spec             4566 sound/pci/hda/patch_sigmatel.c 		spec->aloopback_ctl = &stac92hd73xx_6ch_loopback;
spec             4569 sound/pci/hda/patch_sigmatel.c 		spec->aloopback_ctl = &stac92hd73xx_8ch_loopback;
spec             4572 sound/pci/hda/patch_sigmatel.c 		spec->aloopback_ctl = &stac92hd73xx_10ch_loopback;
spec             4576 sound/pci/hda/patch_sigmatel.c 	spec->aloopback_mask = 0x01;
spec             4577 sound/pci/hda/patch_sigmatel.c 	spec->aloopback_shift = 8;
spec             4579 sound/pci/hda/patch_sigmatel.c 	spec->gen.beep_nid = 0x1c; /* digital beep */
spec             4582 sound/pci/hda/patch_sigmatel.c 	spec->eapd_mask = spec->gpio_mask = spec->gpio_dir = 0x1;
spec             4583 sound/pci/hda/patch_sigmatel.c 	spec->gpio_data = 0x01;
spec             4585 sound/pci/hda/patch_sigmatel.c 	spec->eapd_switch = 1;
spec             4587 sound/pci/hda/patch_sigmatel.c 	spec->num_pwrs = ARRAY_SIZE(stac92hd73xx_pwr_nids);
spec             4588 sound/pci/hda/patch_sigmatel.c 	spec->pwr_nids = stac92hd73xx_pwr_nids;
spec             4590 sound/pci/hda/patch_sigmatel.c 	spec->gen.own_eapd_ctl = 1;
spec             4591 sound/pci/hda/patch_sigmatel.c 	spec->gen.power_down_unused = 1;
spec             4597 sound/pci/hda/patch_sigmatel.c 	if (!spec->volknob_init)
spec             4609 sound/pci/hda/patch_sigmatel.c 	if (spec->eapd_switch && !has_builtin_speaker(codec))
spec             4610 sound/pci/hda/patch_sigmatel.c 		spec->eapd_switch = 0;
spec             4621 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec = codec->spec;
spec             4623 sound/pci/hda/patch_sigmatel.c 	spec->gpio_mask |= spec->eapd_mask;
spec             4624 sound/pci/hda/patch_sigmatel.c 	if (spec->gpio_led) {
spec             4625 sound/pci/hda/patch_sigmatel.c 		if (!spec->vref_mute_led_nid) {
spec             4626 sound/pci/hda/patch_sigmatel.c 			spec->gpio_mask |= spec->gpio_led;
spec             4627 sound/pci/hda/patch_sigmatel.c 			spec->gpio_dir |= spec->gpio_led;
spec             4628 sound/pci/hda/patch_sigmatel.c 			spec->gpio_data |= spec->gpio_led;
spec             4634 sound/pci/hda/patch_sigmatel.c 	if (spec->mic_mute_led_gpio) {
spec             4635 sound/pci/hda/patch_sigmatel.c 		spec->gpio_mask |= spec->mic_mute_led_gpio;
spec             4636 sound/pci/hda/patch_sigmatel.c 		spec->gpio_dir |= spec->mic_mute_led_gpio;
spec             4637 sound/pci/hda/patch_sigmatel.c 		spec->mic_enabled = 0;
spec             4638 sound/pci/hda/patch_sigmatel.c 		spec->gpio_data |= spec->mic_mute_led_gpio;
spec             4645 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec;
spec             4655 sound/pci/hda/patch_sigmatel.c 	spec = codec->spec;
spec             4657 sound/pci/hda/patch_sigmatel.c 	spec->linear_tone_beep = 0;
spec             4658 sound/pci/hda/patch_sigmatel.c 	spec->gen.own_eapd_ctl = 1;
spec             4659 sound/pci/hda/patch_sigmatel.c 	spec->gen.power_down_unused = 1;
spec             4660 sound/pci/hda/patch_sigmatel.c 	spec->gen.mixer_nid = 0x1b;
spec             4662 sound/pci/hda/patch_sigmatel.c 	spec->gen.beep_nid = 0x21; /* digital beep */
spec             4663 sound/pci/hda/patch_sigmatel.c 	spec->pwr_nids = stac92hd83xxx_pwr_nids;
spec             4664 sound/pci/hda/patch_sigmatel.c 	spec->num_pwrs = ARRAY_SIZE(stac92hd83xxx_pwr_nids);
spec             4665 sound/pci/hda/patch_sigmatel.c 	spec->default_polarity = -1; /* no default cfg */
spec             4694 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec;
spec             4704 sound/pci/hda/patch_sigmatel.c 	spec = codec->spec;
spec             4706 sound/pci/hda/patch_sigmatel.c 	spec->linear_tone_beep = 0;
spec             4707 sound/pci/hda/patch_sigmatel.c 	spec->gen.own_eapd_ctl = 1;
spec             4708 sound/pci/hda/patch_sigmatel.c 	spec->gen.power_down_unused = 1;
spec             4710 sound/pci/hda/patch_sigmatel.c 	spec->gen.beep_nid = 0x19; /* digital beep */
spec             4711 sound/pci/hda/patch_sigmatel.c 	spec->pwr_nids = stac92hd95_pwr_nids;
spec             4712 sound/pci/hda/patch_sigmatel.c 	spec->num_pwrs = ARRAY_SIZE(stac92hd95_pwr_nids);
spec             4713 sound/pci/hda/patch_sigmatel.c 	spec->default_polarity = 0;
spec             4736 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec;
spec             4744 sound/pci/hda/patch_sigmatel.c 	spec = codec->spec;
spec             4747 sound/pci/hda/patch_sigmatel.c 	spec->linear_tone_beep = 0;
spec             4748 sound/pci/hda/patch_sigmatel.c 	spec->gen.own_eapd_ctl = 1;
spec             4749 sound/pci/hda/patch_sigmatel.c 	spec->gen.power_down_unused = 1;
spec             4750 sound/pci/hda/patch_sigmatel.c 	spec->gen.mixer_nid = 0x17;
spec             4751 sound/pci/hda/patch_sigmatel.c 	spec->have_spdif_mux = 1;
spec             4754 sound/pci/hda/patch_sigmatel.c 	spec->gpio_mask = 0x01;
spec             4755 sound/pci/hda/patch_sigmatel.c 	spec->gpio_dir = 0x01;
spec             4756 sound/pci/hda/patch_sigmatel.c 	spec->gpio_data = 0x01;
spec             4766 sound/pci/hda/patch_sigmatel.c 			spec->stream_delay = 40; /* 40 milliseconds */
spec             4775 sound/pci/hda/patch_sigmatel.c 			spec->stream_delay = 40; /* 40 milliseconds */
spec             4790 sound/pci/hda/patch_sigmatel.c 	spec->aloopback_ctl = &stac92hd71bxx_loopback;
spec             4791 sound/pci/hda/patch_sigmatel.c 	spec->aloopback_mask = 0x50;
spec             4792 sound/pci/hda/patch_sigmatel.c 	spec->aloopback_shift = 0;
spec             4794 sound/pci/hda/patch_sigmatel.c 	spec->powerdown_adcs = 1;
spec             4795 sound/pci/hda/patch_sigmatel.c 	spec->gen.beep_nid = 0x26; /* digital beep */
spec             4796 sound/pci/hda/patch_sigmatel.c 	spec->num_pwrs = ARRAY_SIZE(stac92hd71bxx_pwr_nids);
spec             4797 sound/pci/hda/patch_sigmatel.c 	spec->pwr_nids = stac92hd71bxx_pwr_nids;
spec             4820 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec;
spec             4827 sound/pci/hda/patch_sigmatel.c 	spec = codec->spec;
spec             4828 sound/pci/hda/patch_sigmatel.c 	spec->linear_tone_beep = 1;
spec             4829 sound/pci/hda/patch_sigmatel.c 	spec->gen.own_eapd_ctl = 1;
spec             4862 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec;
spec             4869 sound/pci/hda/patch_sigmatel.c 	spec = codec->spec;
spec             4870 sound/pci/hda/patch_sigmatel.c 	spec->linear_tone_beep = 1;
spec             4871 sound/pci/hda/patch_sigmatel.c 	spec->gen.own_eapd_ctl = 1;
spec             4872 sound/pci/hda/patch_sigmatel.c 	spec->have_spdif_mux = 1;
spec             4873 sound/pci/hda/patch_sigmatel.c 	spec->spdif_labels = stac927x_spdif_labels;
spec             4875 sound/pci/hda/patch_sigmatel.c 	spec->gen.beep_nid = 0x23; /* digital beep */
spec             4878 sound/pci/hda/patch_sigmatel.c 	spec->eapd_mask = spec->gpio_mask = 0x01;
spec             4879 sound/pci/hda/patch_sigmatel.c 	spec->gpio_dir = spec->gpio_data = 0x01;
spec             4881 sound/pci/hda/patch_sigmatel.c 	spec->aloopback_ctl = &stac927x_loopback;
spec             4882 sound/pci/hda/patch_sigmatel.c 	spec->aloopback_mask = 0x40;
spec             4883 sound/pci/hda/patch_sigmatel.c 	spec->aloopback_shift = 0;
spec             4884 sound/pci/hda/patch_sigmatel.c 	spec->eapd_switch = 1;
spec             4890 sound/pci/hda/patch_sigmatel.c 	if (!spec->volknob_init)
spec             4920 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec;
spec             4927 sound/pci/hda/patch_sigmatel.c 	spec = codec->spec;
spec             4928 sound/pci/hda/patch_sigmatel.c 	spec->linear_tone_beep = 1;
spec             4929 sound/pci/hda/patch_sigmatel.c 	spec->gen.own_eapd_ctl = 1;
spec             4930 sound/pci/hda/patch_sigmatel.c 	spec->have_spdif_mux = 1;
spec             4932 sound/pci/hda/patch_sigmatel.c 	spec->gen.beep_nid = 0x23; /* digital beep */
spec             4935 sound/pci/hda/patch_sigmatel.c 	spec->aloopback_ctl = &stac9205_loopback;
spec             4937 sound/pci/hda/patch_sigmatel.c 	spec->aloopback_mask = 0x40;
spec             4938 sound/pci/hda/patch_sigmatel.c 	spec->aloopback_shift = 0;
spec             4941 sound/pci/hda/patch_sigmatel.c 	spec->eapd_mask = spec->gpio_mask = spec->gpio_dir = 0x1;
spec             4942 sound/pci/hda/patch_sigmatel.c 	spec->gpio_data = 0x01;
spec             4945 sound/pci/hda/patch_sigmatel.c 	spec->eapd_switch = 1;
spec             5007 sound/pci/hda/patch_sigmatel.c 	struct sigmatel_spec *spec;
spec             5014 sound/pci/hda/patch_sigmatel.c 	spec = codec->spec;
spec             5015 sound/pci/hda/patch_sigmatel.c 	spec->linear_tone_beep = 1;
spec             5016 sound/pci/hda/patch_sigmatel.c 	spec->gen.own_eapd_ctl = 1;
spec               72 sound/pci/hda/patch_via.c #define VT2002P_COMPATIBLE(spec) \
spec               73 sound/pci/hda/patch_via.c 	((spec)->codec_type == VT2002P ||\
spec               74 sound/pci/hda/patch_via.c 	 (spec)->codec_type == VT1812 ||\
spec               75 sound/pci/hda/patch_via.c 	 (spec)->codec_type == VT1802)
spec              102 sound/pci/hda/patch_via.c 	struct via_spec *spec;
spec              104 sound/pci/hda/patch_via.c 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
spec              105 sound/pci/hda/patch_via.c 	if (spec == NULL)
spec              108 sound/pci/hda/patch_via.c 	codec->spec = spec;
spec              109 sound/pci/hda/patch_via.c 	snd_hda_gen_spec_init(&spec->gen);
spec              110 sound/pci/hda/patch_via.c 	spec->codec_type = get_codec_type(codec);
spec              112 sound/pci/hda/patch_via.c 	if (spec->codec_type == VT1708BCE)
spec              113 sound/pci/hda/patch_via.c 		spec->codec_type = VT1708S;
spec              114 sound/pci/hda/patch_via.c 	spec->gen.indep_hp = 1;
spec              115 sound/pci/hda/patch_via.c 	spec->gen.keep_eapd_on = 1;
spec              116 sound/pci/hda/patch_via.c 	spec->gen.pcm_playback_hook = via_playback_pcm_hook;
spec              117 sound/pci/hda/patch_via.c 	spec->gen.add_stereo_mix_input = HDA_HINT_STEREO_MIX_AUTO;
spec              119 sound/pci/hda/patch_via.c 	spec->gen.power_down_unused = 1;
spec              121 sound/pci/hda/patch_via.c 	return spec;
spec              185 sound/pci/hda/patch_via.c 	struct via_spec *spec = codec->spec;
spec              186 sound/pci/hda/patch_via.c 	if (spec->codec_type != VT1708 || !spec->gen.autocfg.hp_outs)
spec              188 sound/pci/hda/patch_via.c 	if (spec->hp_work_active) {
spec              192 sound/pci/hda/patch_via.c 		spec->hp_work_active = false;
spec              198 sound/pci/hda/patch_via.c 	struct via_spec *spec = codec->spec;
spec              199 sound/pci/hda/patch_via.c 	if (spec->codec_type != VT1708 || !spec->gen.autocfg.hp_outs)
spec              201 sound/pci/hda/patch_via.c 	if (spec->vt1708_jack_detect) {
spec              202 sound/pci/hda/patch_via.c 		if (!spec->hp_work_active) {
spec              206 sound/pci/hda/patch_via.c 			spec->hp_work_active = true;
spec              222 sound/pci/hda/patch_via.c 	struct via_spec *spec = codec->spec;
spec              224 sound/pci/hda/patch_via.c 	ucontrol->value.enumerated.item[0] = spec->gen.power_down_unused;
spec              232 sound/pci/hda/patch_via.c 	struct via_spec *spec = codec->spec;
spec              235 sound/pci/hda/patch_via.c 	if (val == spec->gen.power_down_unused)
spec              238 sound/pci/hda/patch_via.c 	spec->gen.power_down_unused = val;
spec              258 sound/pci/hda/patch_via.c static int set_beep_amp(struct via_spec *spec, hda_nid_t nid,
spec              265 sound/pci/hda/patch_via.c 	spec->gen.beep_nid = nid;
spec              267 sound/pci/hda/patch_via.c 		knew = snd_hda_gen_add_kctl(&spec->gen, NULL,
spec              278 sound/pci/hda/patch_via.c 	struct via_spec *spec = codec->spec;
spec              283 sound/pci/hda/patch_via.c 			return set_beep_amp(spec, nid, 0, HDA_OUTPUT);
spec              293 sound/pci/hda/patch_via.c 	struct via_spec *spec = codec->spec;
spec              297 sound/pci/hda/patch_via.c 	p = spec->gen.loopback.amplist;
spec              314 sound/pci/hda/patch_via.c 	struct via_spec *spec = codec->spec;
spec              321 sound/pci/hda/patch_via.c 		enable = is_aa_path_mute(codec) && !spec->gen.active_streams;
spec              322 sound/pci/hda/patch_via.c 	if (enable == spec->alc_mode && !force)
spec              324 sound/pci/hda/patch_via.c 	spec->alc_mode = enable;
spec              327 sound/pci/hda/patch_via.c 	switch (spec->codec_type) {
spec              384 sound/pci/hda/patch_via.c 	struct via_spec *spec = codec->spec;
spec              388 sound/pci/hda/patch_via.c 	if (spec->codec_type == VT1802)
spec              407 sound/pci/hda/patch_via.c 	struct via_spec *spec = codec->spec;
spec              410 sound/pci/hda/patch_via.c 	return snd_hda_check_amp_list_power(codec, &spec->gen.loopback, nid);
spec              459 sound/pci/hda/patch_via.c 	struct via_spec *spec = codec->spec;
spec              461 sound/pci/hda/patch_via.c 	if (spec->codec_type != VT1708)
spec              463 sound/pci/hda/patch_via.c 	ucontrol->value.integer.value[0] = spec->vt1708_jack_detect;
spec              471 sound/pci/hda/patch_via.c 	struct via_spec *spec = codec->spec;
spec              474 sound/pci/hda/patch_via.c 	if (spec->codec_type != VT1708)
spec              477 sound/pci/hda/patch_via.c 	if (spec->vt1708_jack_detect == val)
spec              479 sound/pci/hda/patch_via.c 	spec->vt1708_jack_detect = val;
spec              512 sound/pci/hda/patch_via.c 	struct via_spec *spec = codec->spec;
spec              515 sound/pci/hda/patch_via.c 	spec->gen.main_out_badness = &via_main_out_badness;
spec              516 sound/pci/hda/patch_via.c 	spec->gen.extra_out_badness = &via_extra_out_badness;
spec              518 sound/pci/hda/patch_via.c 	err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, 0);
spec              522 sound/pci/hda/patch_via.c 	err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg);
spec              530 sound/pci/hda/patch_via.c 	if (!snd_hda_gen_add_kctl(&spec->gen, NULL, &via_pin_power_ctl_enum))
spec              535 sound/pci/hda/patch_via.c 	spec->gen.power_down_unused = 0;
spec              565 sound/pci/hda/patch_via.c 	struct via_spec *spec = codec->spec;
spec              576 sound/pci/hda/patch_via.c 	for (i = 0; i < ARRAY_SIZE(spec->gen.pcm_rec); i++) {
spec              577 sound/pci/hda/patch_via.c 		struct hda_pcm *info = spec->gen.pcm_rec[i];
spec              592 sound/pci/hda/patch_via.c 	struct via_spec *spec;
spec              596 sound/pci/hda/patch_via.c 	spec = via_new_spec(codec);
spec              597 sound/pci/hda/patch_via.c 	if (spec == NULL)
spec              603 sound/pci/hda/patch_via.c 	spec->gen.mixer_nid = 0x17;
spec              607 sound/pci/hda/patch_via.c 	spec->vt1708_jack_detect = 1;
spec              611 sound/pci/hda/patch_via.c 	spec->gen.suppress_auto_mic = 1;
spec              613 sound/pci/hda/patch_via.c 	spec->gen.auto_mute_via_amp = 1;
spec              629 sound/pci/hda/patch_via.c 	if (!snd_hda_gen_add_kctl(&spec->gen, NULL, &vt1708_jack_detect_ctl)) {
spec              646 sound/pci/hda/patch_via.c 	struct via_spec *spec;
spec              650 sound/pci/hda/patch_via.c 	spec = via_new_spec(codec);
spec              651 sound/pci/hda/patch_via.c 	if (spec == NULL)
spec              654 sound/pci/hda/patch_via.c 	spec->gen.mixer_nid = 0x18;
spec              670 sound/pci/hda/patch_via.c 	struct via_spec *spec;
spec              677 sound/pci/hda/patch_via.c 	spec = via_new_spec(codec);
spec              678 sound/pci/hda/patch_via.c 	if (spec == NULL)
spec              681 sound/pci/hda/patch_via.c 	spec->gen.mixer_nid = 0x16;
spec              718 sound/pci/hda/patch_via.c 	struct via_spec *spec;
spec              722 sound/pci/hda/patch_via.c 	spec = via_new_spec(codec);
spec              723 sound/pci/hda/patch_via.c 	if (spec == NULL)
spec              726 sound/pci/hda/patch_via.c 	spec->gen.mixer_nid = 0x16;
spec              765 sound/pci/hda/patch_via.c 	struct via_spec *spec;
spec              769 sound/pci/hda/patch_via.c 	spec = via_new_spec(codec);
spec              770 sound/pci/hda/patch_via.c 	if (spec == NULL)
spec              773 sound/pci/hda/patch_via.c 	spec->gen.mixer_nid = 0x1a;
spec              814 sound/pci/hda/patch_via.c 	struct via_spec *spec = codec->spec;
spec              819 sound/pci/hda/patch_via.c 	if (!spec->gen.mixer_nid)
spec              821 sound/pci/hda/patch_via.c 	nums = snd_hda_get_connections(codec, spec->gen.mixer_nid, conn,
spec              835 sound/pci/hda/patch_via.c 							  spec->gen.mixer_nid,
spec              845 sound/pci/hda/patch_via.c 	struct via_spec *spec;
spec              849 sound/pci/hda/patch_via.c 	spec = via_new_spec(codec);
spec              850 sound/pci/hda/patch_via.c 	if (spec == NULL)
spec              853 sound/pci/hda/patch_via.c 	spec->gen.mixer_nid = 0x21;
spec              904 sound/pci/hda/patch_via.c 	struct via_spec *spec = codec->spec;
spec              909 sound/pci/hda/patch_via.c 	spec->dmic_enabled = index;
spec              942 sound/pci/hda/patch_via.c 	struct via_spec *spec;
spec              946 sound/pci/hda/patch_via.c 	spec = via_new_spec(codec);
spec              947 sound/pci/hda/patch_via.c 	if (spec == NULL)
spec              950 sound/pci/hda/patch_via.c 	spec->gen.mixer_nid = 0x16;
spec              963 sound/pci/hda/patch_via.c 	if (!snd_hda_gen_add_kctl(&spec->gen, NULL, &vt1716s_dmic_mixer_vol) ||
spec              964 sound/pci/hda/patch_via.c 	    !snd_hda_gen_add_kctl(&spec->gen, NULL, &vt1716s_dmic_mixer_sw) ||
spec              965 sound/pci/hda/patch_via.c 	    !snd_hda_gen_add_kctl(&spec->gen, NULL, &vt1716S_mono_out_mixer)) {
spec             1051 sound/pci/hda/patch_via.c 	struct via_spec *spec;
spec             1055 sound/pci/hda/patch_via.c 	spec = via_new_spec(codec);
spec             1056 sound/pci/hda/patch_via.c 	if (spec == NULL)
spec             1059 sound/pci/hda/patch_via.c 	spec->gen.mixer_nid = 0x21;
spec             1062 sound/pci/hda/patch_via.c 	if (spec->codec_type == VT1802)
spec             1069 sound/pci/hda/patch_via.c 	if (spec->codec_type == VT1802)
spec             1101 sound/pci/hda/patch_via.c 	struct via_spec *spec;
spec             1105 sound/pci/hda/patch_via.c 	spec = via_new_spec(codec);
spec             1106 sound/pci/hda/patch_via.c 	if (spec == NULL)
spec             1109 sound/pci/hda/patch_via.c 	spec->gen.mixer_nid = 0x21;
spec             1144 sound/pci/hda/patch_via.c 	struct via_spec *spec;
spec             1148 sound/pci/hda/patch_via.c 	spec = via_new_spec(codec);
spec             1149 sound/pci/hda/patch_via.c 	if (spec == NULL)
spec             1152 sound/pci/hda/patch_via.c 	spec->gen.mixer_nid = 0x3f;
spec               31 sound/pci/hda/thinkpad_helper.c 	struct hda_gen_spec *spec = codec->spec;
spec               36 sound/pci/hda/thinkpad_helper.c 		old_vmaster_hook = spec->vmaster_mute.hook;
spec               37 sound/pci/hda/thinkpad_helper.c 		spec->vmaster_mute.hook = update_tpacpi_mute_led;
spec              201 sound/pci/ice1712/aureon.c 	struct aureon_spec *spec = ice->spec;
spec              202 sound/pci/ice1712/aureon.c 	ucontrol->value.enumerated.item[0] = spec->pca9554_out;
spec              210 sound/pci/ice1712/aureon.c 	struct aureon_spec *spec = ice->spec;
spec              218 sound/pci/ice1712/aureon.c 	oval = spec->pca9554_out;
spec              222 sound/pci/ice1712/aureon.c 		spec->pca9554_out = nval;
spec              232 sound/pci/ice1712/aureon.c 	struct aureon_spec *spec = ice->spec;
spec              280 sound/pci/ice1712/aureon.c 	spec->stac9744[(reg & 0x7F) >> 1] = val;
spec              285 sound/pci/ice1712/aureon.c 	struct aureon_spec *spec = ice->spec;
spec              286 sound/pci/ice1712/aureon.c 	return spec->stac9744[(reg & 0x7F) >> 1];
spec              294 sound/pci/ice1712/aureon.c 	struct aureon_spec *spec = ice->spec;
spec              332 sound/pci/ice1712/aureon.c 	memset(&spec->stac9744, 0, sizeof(spec->stac9744));
spec              334 sound/pci/ice1712/aureon.c 		spec->stac9744[(ac97_defaults[i]) >> 1] = ac97_defaults[i+1];
spec              745 sound/pci/ice1712/aureon.c 	struct aureon_spec *spec = ice->spec;
spec              749 sound/pci/ice1712/aureon.c 			spec->master[i] & ~WM_VOL_MUTE;
spec              756 sound/pci/ice1712/aureon.c 	struct aureon_spec *spec = ice->spec;
spec              764 sound/pci/ice1712/aureon.c 		vol |= spec->master[ch] & WM_VOL_MUTE;
spec              765 sound/pci/ice1712/aureon.c 		if (vol != spec->master[ch]) {
spec              767 sound/pci/ice1712/aureon.c 			spec->master[ch] = vol;
spec              770 sound/pci/ice1712/aureon.c 					   spec->vol[dac + ch],
spec              771 sound/pci/ice1712/aureon.c 					   spec->master[ch]);
spec              795 sound/pci/ice1712/aureon.c 	struct aureon_spec *spec = ice->spec;
spec              802 sound/pci/ice1712/aureon.c 			spec->vol[ofs+i] & ~WM_VOL_MUTE;
spec              809 sound/pci/ice1712/aureon.c 	struct aureon_spec *spec = ice->spec;
spec              820 sound/pci/ice1712/aureon.c 		vol |= spec->vol[ofs+i] & WM_VOL_MUTE;
spec              821 sound/pci/ice1712/aureon.c 		if (vol != spec->vol[ofs+i]) {
spec              822 sound/pci/ice1712/aureon.c 			spec->vol[ofs+i] = vol;
spec              824 sound/pci/ice1712/aureon.c 			wm_set_vol(ice, idx, spec->vol[ofs + i],
spec              825 sound/pci/ice1712/aureon.c 				   spec->master[i]);
spec              848 sound/pci/ice1712/aureon.c 	struct aureon_spec *spec = ice->spec;
spec              856 sound/pci/ice1712/aureon.c 			(spec->vol[ofs + i] & WM_VOL_MUTE) ? 0 : 1;
spec              863 sound/pci/ice1712/aureon.c 	struct aureon_spec *spec = ice->spec;
spec              871 sound/pci/ice1712/aureon.c 		int val = (spec->vol[ofs + i] & WM_VOL_MUTE) ? 0 : 1;
spec              873 sound/pci/ice1712/aureon.c 			spec->vol[ofs + i] &= ~WM_VOL_MUTE;
spec              874 sound/pci/ice1712/aureon.c 			spec->vol[ofs + i] |=
spec              876 sound/pci/ice1712/aureon.c 			wm_set_vol(ice, ofs + i, spec->vol[ofs + i],
spec              877 sound/pci/ice1712/aureon.c 				   spec->master[i]);
spec              894 sound/pci/ice1712/aureon.c 	struct aureon_spec *spec = ice->spec;
spec              897 sound/pci/ice1712/aureon.c 		(spec->master[0] & WM_VOL_MUTE) ? 0 : 1;
spec              899 sound/pci/ice1712/aureon.c 		(spec->master[1] & WM_VOL_MUTE) ? 0 : 1;
spec              906 sound/pci/ice1712/aureon.c 	struct aureon_spec *spec = ice->spec;
spec              911 sound/pci/ice1712/aureon.c 		int val = (spec->master[i] & WM_VOL_MUTE) ? 0 : 1;
spec              914 sound/pci/ice1712/aureon.c 			spec->master[i] &= ~WM_VOL_MUTE;
spec              915 sound/pci/ice1712/aureon.c 			spec->master[i] |=
spec              919 sound/pci/ice1712/aureon.c 					   spec->vol[dac + i],
spec              920 sound/pci/ice1712/aureon.c 					   spec->master[i]);
spec             1149 sound/pci/ice1712/aureon.c 	struct aureon_spec *spec = ice->spec;
spec             1153 sound/pci/ice1712/aureon.c 	ucontrol->value.enumerated.item[0] = spec->cs8415_mux;
spec             1161 sound/pci/ice1712/aureon.c 	struct aureon_spec *spec = ice->spec;
spec             1173 sound/pci/ice1712/aureon.c 	spec->cs8415_mux = ucontrol->value.enumerated.item[0];
spec             2011 sound/pci/ice1712/aureon.c 	struct aureon_spec *spec = ice->spec;
spec             2049 sound/pci/ice1712/aureon.c 		spec->cs8415_mux = 1;
spec             2068 sound/pci/ice1712/aureon.c 	struct aureon_spec *spec = ice->spec;
spec             2078 sound/pci/ice1712/aureon.c 		wm_set_vol(ice, i, spec->vol[i], spec->master[i % 2]);
spec             2088 sound/pci/ice1712/aureon.c 	struct aureon_spec *spec;
spec             2091 sound/pci/ice1712/aureon.c 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
spec             2092 sound/pci/ice1712/aureon.c 	if (!spec)
spec             2094 sound/pci/ice1712/aureon.c 	ice->spec = spec;
spec             2115 sound/pci/ice1712/aureon.c 	spec->master[0] = WM_VOL_MUTE;
spec             2116 sound/pci/ice1712/aureon.c 	spec->master[1] = WM_VOL_MUTE;
spec             2118 sound/pci/ice1712/aureon.c 		spec->vol[i] = WM_VOL_MUTE;
spec             2119 sound/pci/ice1712/aureon.c 		wm_set_vol(ice, i, spec->vol[i], spec->master[i % 2]);
spec              134 sound/pci/ice1712/ews.c 	struct ews_spec *spec = ice->spec;
spec              140 sound/pci/ice1712/ews.c 	if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_PCF2], &data, 1) != 1)
spec              144 sound/pci/ice1712/ews.c 		if (snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_PCF2], &ndata, 1)
spec              220 sound/pci/ice1712/ews.c 	struct ews_spec *spec = ice->spec;
spec              229 sound/pci/ice1712/ews.c 		if (snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_CS8404], &bits, 1)
spec              234 sound/pci/ice1712/ews.c 		if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_88D], bytes, 2)
spec              239 sound/pci/ice1712/ews.c 			if (snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_88D],
spec              413 sound/pci/ice1712/ews.c 	struct ews_spec *spec;
spec              439 sound/pci/ice1712/ews.c 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
spec              440 sound/pci/ice1712/ews.c 	if (!spec)
spec              442 sound/pci/ice1712/ews.c 	ice->spec = spec;
spec              457 sound/pci/ice1712/ews.c 					    &spec->i2cdevs[EWS_I2C_6FIRE]);
spec              472 sound/pci/ice1712/ews.c 					    &spec->i2cdevs[EWS_I2C_CS8404]);
spec              477 sound/pci/ice1712/ews.c 					    &spec->i2cdevs[EWS_I2C_PCF1]);
spec              482 sound/pci/ice1712/ews.c 					    &spec->i2cdevs[EWS_I2C_PCF2]);
spec              492 sound/pci/ice1712/ews.c 					    &spec->i2cdevs[EWS_I2C_88D]);
spec              627 sound/pci/ice1712/ews.c 	struct ews_spec *spec = ice->spec;
spec              631 sound/pci/ice1712/ews.c 	if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_PCF2], &data, 1) != 1) {
spec              644 sound/pci/ice1712/ews.c 	struct ews_spec *spec = ice->spec;
spec              648 sound/pci/ice1712/ews.c 	if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_PCF2], &data, 1) != 1) {
spec              653 sound/pci/ice1712/ews.c 	if (ndata != data && snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_PCF2],
spec              666 sound/pci/ice1712/ews.c 	struct ews_spec *spec = ice->spec;
spec              673 sound/pci/ice1712/ews.c 	if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_PCF1], &data, 1) != 1) {
spec              687 sound/pci/ice1712/ews.c 	struct ews_spec *spec = ice->spec;
spec              694 sound/pci/ice1712/ews.c 	if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_PCF1], &data, 1) != 1) {
spec              699 sound/pci/ice1712/ews.c 	if (ndata != data && snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_PCF1],
spec              735 sound/pci/ice1712/ews.c 	struct ews_spec *spec = ice->spec;
spec              741 sound/pci/ice1712/ews.c 	if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_88D], data, 2) != 2) {
spec              756 sound/pci/ice1712/ews.c 	struct ews_spec *spec = ice->spec;
spec              763 sound/pci/ice1712/ews.c 	if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_88D], data, 2) != 2) {
spec              777 sound/pci/ice1712/ews.c 	    snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_88D], data, 2) != 2) {
spec              811 sound/pci/ice1712/ews.c 	struct ews_spec *spec = ice->spec;
spec              815 sound/pci/ice1712/ews.c 	if (snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_6FIRE], &byte, 1) != 1) {
spec              822 sound/pci/ice1712/ews.c 	if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_6FIRE], &byte, 1) != 1) {
spec              834 sound/pci/ice1712/ews.c 	struct ews_spec *spec = ice->spec;
spec              839 sound/pci/ice1712/ews.c 	if (snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_6FIRE], bytes, 2) != 2) {
spec               43 sound/pci/ice1712/hoontech.c 	struct hoontech_spec *spec = ice->spec;
spec               45 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_0_DAREAR(spec->boxbits, activate);
spec               46 sound/pci/ice1712/hoontech.c 	snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[0]);
spec               52 sound/pci/ice1712/hoontech.c 	struct hoontech_spec *spec = ice->spec;
spec               54 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_3_MUTE(spec->boxbits, activate);
spec               55 sound/pci/ice1712/hoontech.c 	snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[3]);
spec               61 sound/pci/ice1712/hoontech.c 	struct hoontech_spec *spec = ice->spec;
spec               63 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_3_INSEL(spec->boxbits, activate);
spec               64 sound/pci/ice1712/hoontech.c 	snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[3]);
spec               70 sound/pci/ice1712/hoontech.c 	struct hoontech_spec *spec = ice->spec;
spec               75 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_0_BOX(spec->boxbits, box);
spec               76 sound/pci/ice1712/hoontech.c 	snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[0]);
spec               80 sound/pci/ice1712/hoontech.c 		ICE1712_STDSP24_2_CHN4(spec->boxbits, 0);
spec               81 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_2_MIDI1(spec->boxbits, activate);
spec               82 sound/pci/ice1712/hoontech.c 	snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[2]);
spec               83 sound/pci/ice1712/hoontech.c 	snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[3]);
spec               85 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_1_CHN1(spec->boxbits, 1);
spec               86 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_1_CHN2(spec->boxbits, 1);
spec               87 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_1_CHN3(spec->boxbits, 1);
spec               88 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_2_CHN4(spec->boxbits, 1);
spec               89 sound/pci/ice1712/hoontech.c 	snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[1]);
spec               90 sound/pci/ice1712/hoontech.c 	snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[2]);
spec               93 sound/pci/ice1712/hoontech.c 		ICE1712_STDSP24_2_CHN4(spec->boxbits, 0);
spec               94 sound/pci/ice1712/hoontech.c 		snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[2]);
spec               97 sound/pci/ice1712/hoontech.c 		case 0:	ICE1712_STDSP24_1_CHN1(spec->boxbits, 0); break;
spec               98 sound/pci/ice1712/hoontech.c 		case 1:	ICE1712_STDSP24_1_CHN2(spec->boxbits, 0); break;
spec               99 sound/pci/ice1712/hoontech.c 		case 2:	ICE1712_STDSP24_1_CHN3(spec->boxbits, 0); break;
spec              101 sound/pci/ice1712/hoontech.c 		snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[1]);
spec              104 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_1_CHN1(spec->boxbits, 1);
spec              105 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_1_CHN2(spec->boxbits, 1);
spec              106 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_1_CHN3(spec->boxbits, 1);
spec              107 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_2_CHN4(spec->boxbits, 1);
spec              108 sound/pci/ice1712/hoontech.c 	snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[1]);
spec              109 sound/pci/ice1712/hoontech.c 	snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[2]);
spec              112 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_2_MIDI1(spec->boxbits, 0);
spec              113 sound/pci/ice1712/hoontech.c 	snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[2]);
spec              120 sound/pci/ice1712/hoontech.c 	struct hoontech_spec *spec = ice->spec;
spec              125 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_0_BOX(spec->boxbits, box);
spec              126 sound/pci/ice1712/hoontech.c 	snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[0]);
spec              128 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_2_MIDIIN(spec->boxbits, 1);
spec              129 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_2_MIDI1(spec->boxbits, master);
spec              130 sound/pci/ice1712/hoontech.c 	snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[2]);
spec              131 sound/pci/ice1712/hoontech.c 	snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[3]);
spec              135 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_2_MIDIIN(spec->boxbits, 0);
spec              136 sound/pci/ice1712/hoontech.c 	snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[2]);
spec              140 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_2_MIDIIN(spec->boxbits, 1);
spec              141 sound/pci/ice1712/hoontech.c 	snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[2]);
spec              148 sound/pci/ice1712/hoontech.c 	struct hoontech_spec *spec = ice->spec;
spec              150 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_3_MIDI2(spec->boxbits, activate);
spec              151 sound/pci/ice1712/hoontech.c 	snd_ice1712_stdsp24_gpio_write(ice, spec->boxbits[3]);
spec              157 sound/pci/ice1712/hoontech.c 	struct hoontech_spec *spec;
spec              163 sound/pci/ice1712/hoontech.c 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
spec              164 sound/pci/ice1712/hoontech.c 	if (!spec)
spec              166 sound/pci/ice1712/hoontech.c 	ice->spec = spec;
spec              168 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_SET_ADDR(spec->boxbits, 0);
spec              169 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_CLOCK(spec->boxbits, 0, 1);
spec              170 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_0_BOX(spec->boxbits, 0);
spec              171 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_0_DAREAR(spec->boxbits, 0);
spec              173 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_SET_ADDR(spec->boxbits, 1);
spec              174 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_CLOCK(spec->boxbits, 1, 1);
spec              175 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_1_CHN1(spec->boxbits, 1);
spec              176 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_1_CHN2(spec->boxbits, 1);
spec              177 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_1_CHN3(spec->boxbits, 1);
spec              179 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_SET_ADDR(spec->boxbits, 2);
spec              180 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_CLOCK(spec->boxbits, 2, 1);
spec              181 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_2_CHN4(spec->boxbits, 1);
spec              182 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_2_MIDIIN(spec->boxbits, 1);
spec              183 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_2_MIDI1(spec->boxbits, 0);
spec              185 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_SET_ADDR(spec->boxbits, 3);
spec              186 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_CLOCK(spec->boxbits, 3, 1);
spec              187 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_3_MIDI2(spec->boxbits, 0);
spec              188 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_3_MUTE(spec->boxbits, 1);
spec              189 sound/pci/ice1712/hoontech.c 	ICE1712_STDSP24_3_INSEL(spec->boxbits, 0);
spec              193 sound/pci/ice1712/hoontech.c 		spec->config = ICE1712_STDSP24_MUTE;
spec              195 sound/pci/ice1712/hoontech.c 		spec->config = 0;
spec              212 sound/pci/ice1712/hoontech.c 	spec->boxconfig[0] = ICE1712_STDSP24_BOX_CHN1 |
spec              219 sound/pci/ice1712/hoontech.c 		spec->boxconfig[1] =
spec              220 sound/pci/ice1712/hoontech.c 		spec->boxconfig[2] =
spec              221 sound/pci/ice1712/hoontech.c 		spec->boxconfig[3] = spec->boxconfig[0];
spec              223 sound/pci/ice1712/hoontech.c 		spec->boxconfig[1] =
spec              224 sound/pci/ice1712/hoontech.c 		spec->boxconfig[2] =
spec              225 sound/pci/ice1712/hoontech.c 		spec->boxconfig[3] = 0;
spec              229 sound/pci/ice1712/hoontech.c 		(spec->config & ICE1712_STDSP24_DAREAR) ? 1 : 0);
spec              231 sound/pci/ice1712/hoontech.c 		(spec->config & ICE1712_STDSP24_MUTE) ? 1 : 0);
spec              233 sound/pci/ice1712/hoontech.c 		(spec->config & ICE1712_STDSP24_INSEL) ? 1 : 0);
spec              235 sound/pci/ice1712/hoontech.c 		if (spec->boxconfig[box] & ICE1712_STDSP24_BOX_MIDI2)
spec              239 sound/pci/ice1712/hoontech.c 				(spec->boxconfig[box] & (1 << chn)) ? 1 : 0);
spec              240 sound/pci/ice1712/hoontech.c 		if (spec->boxconfig[box] & ICE1712_STDSP24_BOX_MIDI1)
spec             2485 sound/pci/ice1712/ice1712.c 	kfree(ice->spec);
spec              367 sound/pci/ice1712/ice1712.h 	void *spec;
spec             2502 sound/pci/ice1712/ice1724.c 	kfree(ice->spec);
spec              169 sound/pci/ice1712/juli.c 	struct juli_spec *spec = ice->spec;
spec              176 sound/pci/ice1712/juli.c 	rate = snd_ak4114_external_rate(spec->ak4114);
spec              213 sound/pci/ice1712/juli.c 	struct juli_spec *spec = ice->spec;
spec              254 sound/pci/ice1712/juli.c 	snd_ak4114_reinit(spec->ak4114);
spec              437 sound/pci/ice1712/juli.c 	struct juli_spec *spec = ice->spec;
spec              463 sound/pci/ice1712/juli.c 	return snd_ak4114_build(spec->ak4114, NULL,
spec              475 sound/pci/ice1712/juli.c 	struct juli_spec *spec = ice->spec;
spec              479 sound/pci/ice1712/juli.c 	snd_ak4114_resume(spec->ak4114);
spec              486 sound/pci/ice1712/juli.c 	struct juli_spec *spec = ice->spec;
spec              489 sound/pci/ice1712/juli.c 	snd_ak4114_suspend(spec->ak4114);
spec              582 sound/pci/ice1712/juli.c 	struct juli_spec *spec;
spec              585 sound/pci/ice1712/juli.c 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
spec              586 sound/pci/ice1712/juli.c 	if (!spec)
spec              588 sound/pci/ice1712/juli.c 	ice->spec = spec;
spec              594 sound/pci/ice1712/juli.c 				ice, &spec->ak4114);
spec              598 sound/pci/ice1712/juli.c 	spec->ak4114->change_callback = juli_ak4114_change;
spec              599 sound/pci/ice1712/juli.c 	spec->ak4114->change_callback_private = ice;
spec              601 sound/pci/ice1712/juli.c 	spec->ak4114->check_flags = 0;
spec              609 sound/pci/ice1712/juli.c 	spec->analog = (ice->gpio.get_data(ice) & GPIO_ANALOG_PRESENT) ? 0 : 1;
spec              611 sound/pci/ice1712/juli.c 	spec->analog = 1;
spec              614 sound/pci/ice1712/juli.c 	if (spec->analog) {
spec              523 sound/pci/ice1712/maya44.c 							  ice->spec));
spec              589 sound/pci/ice1712/maya44.c 	struct snd_maya44 *chip = ice->spec;
spec              682 sound/pci/ice1712/maya44.c 	ice->spec = chip;
spec              332 sound/pci/ice1712/phase.c 	struct phase28_spec *spec = ice->spec;
spec              335 sound/pci/ice1712/phase.c 		ucontrol->value.integer.value[i] = spec->master[i] &
spec              344 sound/pci/ice1712/phase.c 	struct phase28_spec *spec = ice->spec;
spec              352 sound/pci/ice1712/phase.c 		vol |= spec->master[ch] & WM_VOL_MUTE;
spec              353 sound/pci/ice1712/phase.c 		if (vol != spec->master[ch]) {
spec              355 sound/pci/ice1712/phase.c 			spec->master[ch] = vol;
spec              358 sound/pci/ice1712/phase.c 					   spec->vol[dac + ch],
spec              359 sound/pci/ice1712/phase.c 					   spec->master[ch]);
spec              408 sound/pci/ice1712/phase.c 	struct phase28_spec *spec;
spec              415 sound/pci/ice1712/phase.c 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
spec              416 sound/pci/ice1712/phase.c 	if (!spec)
spec              418 sound/pci/ice1712/phase.c 	ice->spec = spec;
spec              451 sound/pci/ice1712/phase.c 	spec->master[0] = WM_VOL_MUTE;
spec              452 sound/pci/ice1712/phase.c 	spec->master[1] = WM_VOL_MUTE;
spec              454 sound/pci/ice1712/phase.c 		spec->vol[i] = WM_VOL_MUTE;
spec              455 sound/pci/ice1712/phase.c 		wm_set_vol(ice, i, spec->vol[i], spec->master[i % 2]);
spec              479 sound/pci/ice1712/phase.c 	struct phase28_spec *spec = ice->spec;
spec              486 sound/pci/ice1712/phase.c 			spec->vol[ofs+i] & ~WM_VOL_MUTE;
spec              494 sound/pci/ice1712/phase.c 	struct phase28_spec *spec = ice->spec;
spec              506 sound/pci/ice1712/phase.c 		vol |= spec->vol[ofs+i] & WM_VOL_MUTE;
spec              507 sound/pci/ice1712/phase.c 		if (vol != spec->vol[ofs+i]) {
spec              508 sound/pci/ice1712/phase.c 			spec->vol[ofs+i] = vol;
spec              510 sound/pci/ice1712/phase.c 			wm_set_vol(ice, idx, spec->vol[ofs+i],
spec              511 sound/pci/ice1712/phase.c 				   spec->master[i]);
spec              535 sound/pci/ice1712/phase.c 	struct phase28_spec *spec = ice->spec;
spec              543 sound/pci/ice1712/phase.c 			(spec->vol[ofs+i] & WM_VOL_MUTE) ? 0 : 1;
spec              551 sound/pci/ice1712/phase.c 	struct phase28_spec *spec = ice->spec;
spec              559 sound/pci/ice1712/phase.c 		int val = (spec->vol[ofs + i] & WM_VOL_MUTE) ? 0 : 1;
spec              561 sound/pci/ice1712/phase.c 			spec->vol[ofs + i] &= ~WM_VOL_MUTE;
spec              562 sound/pci/ice1712/phase.c 			spec->vol[ofs + i] |=
spec              565 sound/pci/ice1712/phase.c 			wm_set_vol(ice, ofs + i, spec->vol[ofs + i],
spec              566 sound/pci/ice1712/phase.c 					spec->master[i]);
spec              584 sound/pci/ice1712/phase.c 	struct phase28_spec *spec = ice->spec;
spec              587 sound/pci/ice1712/phase.c 		(spec->master[0] & WM_VOL_MUTE) ? 0 : 1;
spec              589 sound/pci/ice1712/phase.c 		(spec->master[1] & WM_VOL_MUTE) ? 0 : 1;
spec              597 sound/pci/ice1712/phase.c 	struct phase28_spec *spec = ice->spec;
spec              602 sound/pci/ice1712/phase.c 		int val = (spec->master[i] & WM_VOL_MUTE) ? 0 : 1;
spec              605 sound/pci/ice1712/phase.c 			spec->master[i] &= ~WM_VOL_MUTE;
spec              606 sound/pci/ice1712/phase.c 			spec->master[i] |=
spec              611 sound/pci/ice1712/phase.c 						spec->vol[dac + i],
spec              612 sound/pci/ice1712/phase.c 						spec->master[i]);
spec              112 sound/pci/ice1712/prodigy192.c 	struct prodigy192_spec *spec = ice->spec;
spec              120 sound/pci/ice1712/prodigy192.c 	mutex_lock(&spec->mute_mutex);
spec              126 sound/pci/ice1712/prodigy192.c 	mutex_unlock(&spec->mute_mutex);
spec              309 sound/pci/ice1712/prodigy192.c 	struct prodigy192_spec *spec = ice->spec;
spec              324 sound/pci/ice1712/prodigy192.c 	mutex_lock(&spec->mute_mutex);
spec              338 sound/pci/ice1712/prodigy192.c 	mutex_unlock(&spec->mute_mutex);
spec              609 sound/pci/ice1712/prodigy192.c 	struct prodigy192_spec *spec = ice->spec;
spec              616 sound/pci/ice1712/prodigy192.c 				 ice, &spec->ak4114);
spec              621 sound/pci/ice1712/prodigy192.c 	spec->ak4114->check_flags = AK4114_CHECK_NO_RATE;
spec              647 sound/pci/ice1712/prodigy192.c 	struct prodigy192_spec *spec = ice->spec;
spec              657 sound/pci/ice1712/prodigy192.c 	if (spec->ak4114) {
spec              666 sound/pci/ice1712/prodigy192.c 		err = snd_ak4114_build(spec->ak4114,
spec              717 sound/pci/ice1712/prodigy192.c 	struct prodigy192_spec *spec;
spec              724 sound/pci/ice1712/prodigy192.c 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
spec              725 sound/pci/ice1712/prodigy192.c 	if (!spec)
spec              727 sound/pci/ice1712/prodigy192.c 	ice->spec = spec;
spec              728 sound/pci/ice1712/prodigy192.c 	mutex_init(&spec->mute_mutex);
spec              255 sound/pci/ice1712/prodigy_hifi.c 	struct prodigy_hifi_spec *spec = ice->spec;
spec              259 sound/pci/ice1712/prodigy_hifi.c 		ucontrol->value.integer.value[i] = spec->vol[i];
spec              267 sound/pci/ice1712/prodigy_hifi.c 	struct prodigy_hifi_spec *spec = ice->spec;
spec              273 sound/pci/ice1712/prodigy_hifi.c 		if (ucontrol->value.integer.value[i] != spec->vol[i]) {
spec              274 sound/pci/ice1712/prodigy_hifi.c 			spec->vol[i] = ucontrol->value.integer.value[i];
spec              276 sound/pci/ice1712/prodigy_hifi.c 				     spec->vol[i] & 0xff);
spec              364 sound/pci/ice1712/prodigy_hifi.c 	struct prodigy_hifi_spec *spec = ice->spec;
spec              369 sound/pci/ice1712/prodigy_hifi.c 			spec->vol[2 + i] & ~WM_VOL_MUTE;
spec              376 sound/pci/ice1712/prodigy_hifi.c 	struct prodigy_hifi_spec *spec = ice->spec;
spec              381 sound/pci/ice1712/prodigy_hifi.c 		if (ucontrol->value.integer.value[i] != spec->vol[2 + i]) {
spec              383 sound/pci/ice1712/prodigy_hifi.c 			spec->vol[2 + i] &= WM_VOL_MUTE;
spec              384 sound/pci/ice1712/prodigy_hifi.c 			spec->vol[2 + i] |= ucontrol->value.integer.value[i];
spec              385 sound/pci/ice1712/prodigy_hifi.c 			wm_set_vol(ice, idx, spec->vol[2 + i], spec->master[i]);
spec              412 sound/pci/ice1712/prodigy_hifi.c 	struct prodigy_hifi_spec *spec = ice->spec;
spec              418 sound/pci/ice1712/prodigy_hifi.c 		ucontrol->value.integer.value[i] = spec->vol[ofs + i];
spec              425 sound/pci/ice1712/prodigy_hifi.c 	struct prodigy_hifi_spec *spec = ice->spec;
spec              433 sound/pci/ice1712/prodigy_hifi.c 		if (ucontrol->value.integer.value[i] != spec->vol[ofs + i]) {
spec              435 sound/pci/ice1712/prodigy_hifi.c 			spec->vol[ofs + i] &= WM_VOL_MUTE;
spec              436 sound/pci/ice1712/prodigy_hifi.c 			spec->vol[ofs + i] |= ucontrol->value.integer.value[i];
spec              438 sound/pci/ice1712/prodigy_hifi.c 				       spec->vol[ofs + i], spec->master[i]);
spec              463 sound/pci/ice1712/prodigy_hifi.c 	struct prodigy_hifi_spec *spec = ice->spec;
spec              466 sound/pci/ice1712/prodigy_hifi.c 		ucontrol->value.integer.value[i] = spec->master[i];
spec              474 sound/pci/ice1712/prodigy_hifi.c 	struct prodigy_hifi_spec *spec = ice->spec;
spec              479 sound/pci/ice1712/prodigy_hifi.c 		if (ucontrol->value.integer.value[ch] != spec->master[ch]) {
spec              480 sound/pci/ice1712/prodigy_hifi.c 			spec->master[ch] = ucontrol->value.integer.value[ch];
spec              484 sound/pci/ice1712/prodigy_hifi.c 				   spec->vol[2 + ch], spec->master[ch]);
spec              487 sound/pci/ice1712/prodigy_hifi.c 				       spec->vol[0 + ch], spec->master[ch]);
spec              490 sound/pci/ice1712/prodigy_hifi.c 				       spec->vol[4 + ch], spec->master[ch]);
spec              493 sound/pci/ice1712/prodigy_hifi.c 				       spec->vol[6 + ch], spec->master[ch]);
spec              994 sound/pci/ice1712/prodigy_hifi.c 	struct prodigy_hifi_spec *spec = ice->spec;
spec             1010 sound/pci/ice1712/prodigy_hifi.c 			   spec->vol[2 + ch], spec->master[ch]);
spec             1013 sound/pci/ice1712/prodigy_hifi.c 			       spec->vol[0 + ch], spec->master[ch]);
spec             1016 sound/pci/ice1712/prodigy_hifi.c 			       spec->vol[4 + ch], spec->master[ch]);
spec             1019 sound/pci/ice1712/prodigy_hifi.c 			       spec->vol[6 + ch], spec->master[ch]);
spec             1064 sound/pci/ice1712/prodigy_hifi.c 	struct prodigy_hifi_spec *spec;
spec             1084 sound/pci/ice1712/prodigy_hifi.c 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
spec             1085 sound/pci/ice1712/prodigy_hifi.c 	if (!spec)
spec             1087 sound/pci/ice1712/prodigy_hifi.c 	ice->spec = spec;
spec             1135 sound/pci/ice1712/prodigy_hifi.c 	struct prodigy_hifi_spec *spec = ice->spec;
spec             1140 sound/pci/ice1712/prodigy_hifi.c 		ak4396_write(ice, AK4396_LCH_ATT + i, spec->vol[i] & 0xff);
spec             1148 sound/pci/ice1712/prodigy_hifi.c 	struct prodigy_hifi_spec *spec;
spec             1167 sound/pci/ice1712/prodigy_hifi.c 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
spec             1168 sound/pci/ice1712/prodigy_hifi.c 	if (!spec)
spec             1170 sound/pci/ice1712/prodigy_hifi.c 	ice->spec = spec;
spec              106 sound/pci/ice1712/psc724.c 	struct psc724_spec *spec = container_of(wm, struct psc724_spec, wm8766);
spec              107 sound/pci/ice1712/psc724.c 	struct snd_ice1712 *ice = spec->ice;
spec              148 sound/pci/ice1712/psc724.c 	struct psc724_spec *spec = container_of(wm, struct psc724_spec, wm8776);
spec              150 sound/pci/ice1712/psc724.c 	snd_vt1724_write_i2c(spec->ice, 0x34, addr, data);
spec              158 sound/pci/ice1712/psc724.c 	struct psc724_spec *spec = ice->spec;
spec              160 sound/pci/ice1712/psc724.c 	spec->mute_all = !on;
spec              170 sound/pci/ice1712/psc724.c 	struct psc724_spec *spec = ice->spec;
spec              172 sound/pci/ice1712/psc724.c 	return !spec->mute_all;
spec              179 sound/pci/ice1712/psc724.c 	struct psc724_spec *spec = ice->spec;
spec              182 sound/pci/ice1712/psc724.c 	u16 power = spec->wm8776.regs[WM8776_REG_PWRDOWN] & ~WM8776_PWR_HPPD;
spec              187 sound/pci/ice1712/psc724.c 	snd_wm8776_set_power(&spec->wm8776, power);
spec              188 sound/pci/ice1712/psc724.c 	spec->hp_connected = hp_connected;
spec              197 sound/pci/ice1712/psc724.c 	strlcpy(elem_id.name, spec->wm8776.ctl[WM8776_CTL_HP_SW].name,
spec              205 sound/pci/ice1712/psc724.c 	struct psc724_spec *spec = container_of(work, struct psc724_spec,
spec              207 sound/pci/ice1712/psc724.c 	struct snd_ice1712 *ice = spec->ice;
spec              210 sound/pci/ice1712/psc724.c 	schedule_delayed_work(&spec->hp_work, msecs_to_jiffies(JACK_INTERVAL));
spec              211 sound/pci/ice1712/psc724.c 	if (hp_connected == spec->hp_connected)
spec              218 sound/pci/ice1712/psc724.c 	struct psc724_spec *spec = ice->spec;
spec              220 sound/pci/ice1712/psc724.c 	if (spec->jack_detect == on)
spec              223 sound/pci/ice1712/psc724.c 	spec->jack_detect = on;
spec              227 sound/pci/ice1712/psc724.c 		schedule_delayed_work(&spec->hp_work,
spec              230 sound/pci/ice1712/psc724.c 		cancel_delayed_work_sync(&spec->hp_work);
spec              235 sound/pci/ice1712/psc724.c 	struct psc724_spec *spec = ice->spec;
spec              237 sound/pci/ice1712/psc724.c 	return spec->jack_detect;
spec              310 sound/pci/ice1712/psc724.c 	struct psc724_spec *spec = ice->spec;
spec              312 sound/pci/ice1712/psc724.c 	spec->wm8776.ctl[WM8776_CTL_DAC_VOL].name = front_volume;
spec              313 sound/pci/ice1712/psc724.c 	spec->wm8776.ctl[WM8776_CTL_DAC_SW].name = front_switch;
spec              314 sound/pci/ice1712/psc724.c 	spec->wm8776.ctl[WM8776_CTL_DAC_ZC_SW].name = front_zc;
spec              315 sound/pci/ice1712/psc724.c 	spec->wm8776.ctl[WM8776_CTL_AUX_SW].name = NULL;
spec              316 sound/pci/ice1712/psc724.c 	spec->wm8776.ctl[WM8776_CTL_DAC_IZD_SW].name = front_izd;
spec              317 sound/pci/ice1712/psc724.c 	spec->wm8776.ctl[WM8776_CTL_PHASE_SW].name = front_phase;
spec              318 sound/pci/ice1712/psc724.c 	spec->wm8776.ctl[WM8776_CTL_DEEMPH_SW].name = front_deemph;
spec              319 sound/pci/ice1712/psc724.c 	spec->wm8776.ctl[WM8776_CTL_INPUT1_SW].name = ain1_switch;
spec              320 sound/pci/ice1712/psc724.c 	spec->wm8776.ctl[WM8776_CTL_INPUT2_SW].name = ain2_switch;
spec              321 sound/pci/ice1712/psc724.c 	spec->wm8776.ctl[WM8776_CTL_INPUT3_SW].name = ain3_switch;
spec              322 sound/pci/ice1712/psc724.c 	spec->wm8776.ctl[WM8776_CTL_INPUT4_SW].name = ain4_switch;
spec              323 sound/pci/ice1712/psc724.c 	spec->wm8776.ctl[WM8776_CTL_INPUT5_SW].name = ain5_switch;
spec              324 sound/pci/ice1712/psc724.c 	snd_wm8776_build_controls(&spec->wm8776);
spec              325 sound/pci/ice1712/psc724.c 	spec->wm8766.ctl[WM8766_CTL_CH1_VOL].name = rear_volume;
spec              326 sound/pci/ice1712/psc724.c 	spec->wm8766.ctl[WM8766_CTL_CH2_VOL].name = clfe_volume;
spec              327 sound/pci/ice1712/psc724.c 	spec->wm8766.ctl[WM8766_CTL_CH3_VOL].name = NULL;
spec              328 sound/pci/ice1712/psc724.c 	spec->wm8766.ctl[WM8766_CTL_CH1_SW].name = rear_switch;
spec              329 sound/pci/ice1712/psc724.c 	spec->wm8766.ctl[WM8766_CTL_CH2_SW].name = clfe_switch;
spec              330 sound/pci/ice1712/psc724.c 	spec->wm8766.ctl[WM8766_CTL_CH3_SW].name = NULL;
spec              331 sound/pci/ice1712/psc724.c 	spec->wm8766.ctl[WM8766_CTL_PHASE1_SW].name = rear_phase;
spec              332 sound/pci/ice1712/psc724.c 	spec->wm8766.ctl[WM8766_CTL_PHASE2_SW].name = clfe_phase;
spec              333 sound/pci/ice1712/psc724.c 	spec->wm8766.ctl[WM8766_CTL_PHASE3_SW].name = NULL;
spec              334 sound/pci/ice1712/psc724.c 	spec->wm8766.ctl[WM8766_CTL_DEEMPH1_SW].name = rear_deemph;
spec              335 sound/pci/ice1712/psc724.c 	spec->wm8766.ctl[WM8766_CTL_DEEMPH2_SW].name = clfe_deemph;
spec              336 sound/pci/ice1712/psc724.c 	spec->wm8766.ctl[WM8766_CTL_DEEMPH3_SW].name = NULL;
spec              337 sound/pci/ice1712/psc724.c 	spec->wm8766.ctl[WM8766_CTL_IZD_SW].name = rear_clfe_izd;
spec              338 sound/pci/ice1712/psc724.c 	spec->wm8766.ctl[WM8766_CTL_ZC_SW].name = rear_clfe_zc;
spec              339 sound/pci/ice1712/psc724.c 	snd_wm8766_build_controls(&spec->wm8766);
spec              363 sound/pci/ice1712/psc724.c 	struct psc724_spec *spec = ice->spec;
spec              365 sound/pci/ice1712/psc724.c 	snd_wm8776_volume_restore(&spec->wm8776);
spec              366 sound/pci/ice1712/psc724.c 	snd_wm8766_volume_restore(&spec->wm8766);
spec              374 sound/pci/ice1712/psc724.c 	struct psc724_spec *spec = ice->spec;
spec              376 sound/pci/ice1712/psc724.c 	snd_wm8776_resume(&spec->wm8776);
spec              377 sound/pci/ice1712/psc724.c 	snd_wm8766_resume(&spec->wm8766);
spec              387 sound/pci/ice1712/psc724.c 	struct psc724_spec *spec;
spec              389 sound/pci/ice1712/psc724.c 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
spec              390 sound/pci/ice1712/psc724.c 	if (!spec)
spec              392 sound/pci/ice1712/psc724.c 	ice->spec = spec;
spec              393 sound/pci/ice1712/psc724.c 	spec->ice = ice;
spec              397 sound/pci/ice1712/psc724.c 	spec->wm8776.ops.write = psc724_wm8776_write;
spec              398 sound/pci/ice1712/psc724.c 	spec->wm8776.card = ice->card;
spec              399 sound/pci/ice1712/psc724.c 	snd_wm8776_init(&spec->wm8776);
spec              400 sound/pci/ice1712/psc724.c 	spec->wm8766.ops.write = psc724_wm8766_write;
spec              401 sound/pci/ice1712/psc724.c 	spec->wm8766.card = ice->card;
spec              406 sound/pci/ice1712/psc724.c 	snd_wm8766_init(&spec->wm8766);
spec              407 sound/pci/ice1712/psc724.c 	snd_wm8766_set_if(&spec->wm8766,
spec              410 sound/pci/ice1712/psc724.c 	INIT_DELAYED_WORK(&spec->hp_work, psc724_update_hp_jack_state);
spec              417 sound/pci/ice1712/psc724.c 	struct psc724_spec *spec = ice->spec;
spec              419 sound/pci/ice1712/psc724.c 	cancel_delayed_work_sync(&spec->hp_work);
spec              437 sound/pci/ice1712/quartet.c 	struct qtet_spec *spec = ice->spec;
spec              438 sound/pci/ice1712/quartet.c 	return spec->scr;
spec              443 sound/pci/ice1712/quartet.c 	struct qtet_spec *spec = ice->spec;
spec              444 sound/pci/ice1712/quartet.c 	return spec->mcr;
spec              449 sound/pci/ice1712/quartet.c 	struct qtet_spec *spec = ice->spec;
spec              450 sound/pci/ice1712/quartet.c 	return spec->cpld;
spec              455 sound/pci/ice1712/quartet.c 	struct qtet_spec *spec = ice->spec;
spec              457 sound/pci/ice1712/quartet.c 	spec->scr = val;
spec              462 sound/pci/ice1712/quartet.c 	struct qtet_spec *spec = ice->spec;
spec              464 sound/pci/ice1712/quartet.c 	spec->mcr = val;
spec              469 sound/pci/ice1712/quartet.c 	struct qtet_spec *spec = ice->spec;
spec              471 sound/pci/ice1712/quartet.c 	spec->cpld = val;
spec              791 sound/pci/ice1712/quartet.c 	struct qtet_spec *spec = ice->spec;
spec              814 sound/pci/ice1712/quartet.c 	return snd_ak4113_build(spec->ak4113,
spec              950 sound/pci/ice1712/quartet.c 	struct qtet_spec *spec = ice->spec;
spec              958 sound/pci/ice1712/quartet.c 	rate = snd_ak4113_external_rate(spec->ak4113);
spec              983 sound/pci/ice1712/quartet.c 	struct qtet_spec *spec;
spec              991 sound/pci/ice1712/quartet.c 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
spec              992 sound/pci/ice1712/quartet.c 	if (!spec)
spec             1007 sound/pci/ice1712/quartet.c 	ice->spec = spec;
spec             1040 sound/pci/ice1712/quartet.c 			ice, &spec->ak4113);
spec             1044 sound/pci/ice1712/quartet.c 	spec->ak4113->change_callback = qtet_ak4113_change;
spec             1045 sound/pci/ice1712/quartet.c 	spec->ak4113->change_callback_private = ice;
spec             1048 sound/pci/ice1712/quartet.c 	spec->ak4113->check_flags = 0;
spec              147 sound/pci/ice1712/revo.c 	struct revo51_spec *spec;
spec              150 sound/pci/ice1712/revo.c 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
spec              151 sound/pci/ice1712/revo.c 	if (!spec)
spec              153 sound/pci/ice1712/revo.c 	ice->spec = spec;
spec              164 sound/pci/ice1712/revo.c 	err = snd_i2c_device_create(ice->i2c, "PT2258", 0x40, &spec->dev);
spec              170 sound/pci/ice1712/revo.c 	pt->i2c_dev = spec->dev;
spec              171 sound/pci/ice1712/revo.c 	spec->pt2258 = pt;
spec              472 sound/pci/ice1712/revo.c 	struct revo51_spec *spec;
spec              473 sound/pci/ice1712/revo.c 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
spec              474 sound/pci/ice1712/revo.c 	if (!spec)
spec              476 sound/pci/ice1712/revo.c 	ice->spec = spec;
spec              482 sound/pci/ice1712/revo.c 				 ice, &spec->ak4114);
spec              487 sound/pci/ice1712/revo.c 	spec->ak4114->check_flags = AK4114_CHECK_NO_RATE;
spec              575 sound/pci/ice1712/revo.c 	struct revo51_spec *spec = ice->spec;
spec              588 sound/pci/ice1712/revo.c 		spec = ice->spec;
spec              589 sound/pci/ice1712/revo.c 		err = snd_pt2258_build_controls(spec->pt2258);
spec              598 sound/pci/ice1712/revo.c 		err = snd_ak4114_build(spec->ak4114, NULL,
spec              448 sound/pci/ice1712/se.c 	struct se_spec *spec = ice->spec;
spec              450 sound/pci/ice1712/se.c 	uc->value.integer.value[0] = spec->vol[n].ch1;
spec              451 sound/pci/ice1712/se.c 	uc->value.integer.value[1] = spec->vol[n].ch2;
spec              459 sound/pci/ice1712/se.c 	struct se_spec *spec = ice->spec;
spec              461 sound/pci/ice1712/se.c 	uc->value.integer.value[0] = spec->vol[n].ch1;
spec              469 sound/pci/ice1712/se.c 	struct se_spec *spec = ice->spec;
spec              471 sound/pci/ice1712/se.c 	uc->value.enumerated.item[0] = spec->vol[n].ch1;
spec              477 sound/pci/ice1712/se.c 	struct se_spec *spec = ice->spec;
spec              482 sound/pci/ice1712/se.c 					   spec->vol[n].ch1,
spec              483 sound/pci/ice1712/se.c 					   spec->vol[n].ch2);
spec              488 sound/pci/ice1712/se.c 						 spec->vol[n].ch1,
spec              489 sound/pci/ice1712/se.c 						 spec->vol[n].ch2);
spec              494 sound/pci/ice1712/se.c 						  spec->vol[n].ch1,
spec              495 sound/pci/ice1712/se.c 						  spec->vol[n].ch2);
spec              500 sound/pci/ice1712/se.c 						   spec->vol[n].ch1);
spec              504 sound/pci/ice1712/se.c 		se200pci_WM8776_set_agc(ice, spec->vol[n].ch1);
spec              508 sound/pci/ice1712/se.c 		se200pci_WM8776_set_afl(ice, spec->vol[n].ch1);
spec              520 sound/pci/ice1712/se.c 	struct se_spec *spec = ice->spec;
spec              528 sound/pci/ice1712/se.c 	if (spec->vol[n].ch1 != vol1) {
spec              529 sound/pci/ice1712/se.c 		spec->vol[n].ch1 = vol1;
spec              532 sound/pci/ice1712/se.c 	if (spec->vol[n].ch2 != vol2) {
spec              533 sound/pci/ice1712/se.c 		spec->vol[n].ch2 = vol2;
spec              546 sound/pci/ice1712/se.c 	struct se_spec *spec = ice->spec;
spec              551 sound/pci/ice1712/se.c 	if (spec->vol[n].ch1 != vol1) {
spec              552 sound/pci/ice1712/se.c 		spec->vol[n].ch1 = vol1;
spec              563 sound/pci/ice1712/se.c 	struct se_spec *spec = ice->spec;
spec              570 sound/pci/ice1712/se.c 	if (spec->vol[n].ch1 != vol1) {
spec              571 sound/pci/ice1712/se.c 		spec->vol[n].ch1 = vol1;
spec              661 sound/pci/ice1712/se.c 	struct se_spec *spec;
spec              663 sound/pci/ice1712/se.c 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
spec              664 sound/pci/ice1712/se.c 	if (!spec)
spec              666 sound/pci/ice1712/se.c 	ice->spec = spec;
spec              117 sound/pci/ice1712/wtm.c 	struct wtm_spec *spec = ice->spec;
spec              121 sound/pci/ice1712/wtm.c 	mutex_lock(&spec->mute_mutex);
spec              136 sound/pci/ice1712/wtm.c 	mutex_unlock(&spec->mute_mutex);
spec              442 sound/pci/ice1712/wtm.c 	struct wtm_spec *spec = ice->spec;
spec              458 sound/pci/ice1712/wtm.c 	mutex_lock(&spec->mute_mutex);
spec              469 sound/pci/ice1712/wtm.c 	mutex_unlock(&spec->mute_mutex);
spec              576 sound/pci/ice1712/wtm.c 	struct wtm_spec *spec;
spec              584 sound/pci/ice1712/wtm.c 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
spec              585 sound/pci/ice1712/wtm.c 	if (!spec)
spec              587 sound/pci/ice1712/wtm.c 	ice->spec = spec;
spec              588 sound/pci/ice1712/wtm.c 	mutex_init(&spec->mute_mutex);
spec               64 sound/soc/uniphier/aio-cpu.c static bool match_spec(const struct uniphier_aio_spec *spec,
spec               68 sound/soc/uniphier/aio-cpu.c 	    spec->swm.dir != PORT_DIR_OUTPUT) {
spec               73 sound/soc/uniphier/aio-cpu.c 	    spec->swm.dir != PORT_DIR_INPUT) {
spec               77 sound/soc/uniphier/aio-cpu.c 	if (spec->name && strcmp(spec->name, name) == 0)
spec               80 sound/soc/uniphier/aio-cpu.c 	if (spec->gname && strcmp(spec->gname, name) == 0)
spec              109 sound/soc/uniphier/aio-cpu.c 		const struct uniphier_aio_spec *spec = &chip_spec->specs[i];
spec              111 sound/soc/uniphier/aio-cpu.c 		if (match_spec(spec, name, direction))
spec              112 sound/soc/uniphier/aio-cpu.c 			return spec;
spec              393 sound/soc/uniphier/aio-cpu.c 		const struct uniphier_aio_spec *spec;
spec              395 sound/soc/uniphier/aio-cpu.c 		spec = find_spec(aio, dai->name, i);
spec              396 sound/soc/uniphier/aio-cpu.c 		if (!spec)
spec              399 sound/soc/uniphier/aio-cpu.c 		sub->swm = &spec->swm;
spec              400 sound/soc/uniphier/aio-cpu.c 		sub->spec = spec;
spec              461 sound/soc/uniphier/aio-cpu.c 		if (!sub->spec || !sub->substream)
spec              236 sound/soc/uniphier/aio.h 	const struct uniphier_aio_spec *spec;
spec              205 sound/usb/caiaq/audio.c 		switch (cdev->spec.data_alignment) {
spec              221 sound/usb/caiaq/audio.c 		switch (cdev->spec.data_alignment) {
spec              250 sound/usb/caiaq/audio.c 	if (cdev->spec.data_alignment >= 2)
spec              506 sound/usb/caiaq/audio.c 	switch (cdev->spec.data_alignment) {
spec              552 sound/usb/caiaq/audio.c 		if (cdev->spec.data_alignment == 2 &&
spec              607 sound/usb/caiaq/audio.c 	switch (cdev->spec.data_alignment) {
spec              786 sound/usb/caiaq/audio.c 	cdev->n_audio_in  = max(cdev->spec.num_analog_audio_in,
spec              787 sound/usb/caiaq/audio.c 			       cdev->spec.num_digital_audio_in) /
spec              789 sound/usb/caiaq/audio.c 	cdev->n_audio_out = max(cdev->spec.num_analog_audio_out,
spec              790 sound/usb/caiaq/audio.c 			       cdev->spec.num_digital_audio_out) /
spec              159 sound/usb/caiaq/device.c 	 	memcpy(&cdev->spec, buf+1, sizeof(struct caiaq_device_spec));
spec              160 sound/usb/caiaq/device.c 		cdev->spec.fw_version = le16_to_cpu(cdev->spec.fw_version);
spec              163 sound/usb/caiaq/device.c 			cdev->spec.fw_version,
spec              164 sound/usb/caiaq/device.c 			cdev->spec.num_analog_audio_in,
spec              165 sound/usb/caiaq/device.c 			cdev->spec.num_analog_audio_out,
spec              166 sound/usb/caiaq/device.c 			cdev->spec.num_midi_in,
spec              167 sound/usb/caiaq/device.c 			cdev->spec.num_midi_out,
spec              168 sound/usb/caiaq/device.c 			cdev->spec.data_alignment);
spec              359 sound/usb/caiaq/device.c 	if (cdev->spec.num_analog_audio_out +
spec              360 sound/usb/caiaq/device.c 	    cdev->spec.num_analog_audio_in +
spec              361 sound/usb/caiaq/device.c 	    cdev->spec.num_digital_audio_out +
spec              362 sound/usb/caiaq/device.c 	    cdev->spec.num_digital_audio_in > 0) {
spec              368 sound/usb/caiaq/device.c 	if (cdev->spec.num_midi_in +
spec              369 sound/usb/caiaq/device.c 	    cdev->spec.num_midi_out > 0) {
spec               73 sound/usb/caiaq/device.h 	struct caiaq_device_spec spec;
spec              121 sound/usb/caiaq/midi.c 					device->spec.num_midi_out,
spec              122 sound/usb/caiaq/midi.c 					device->spec.num_midi_in,
spec              133 sound/usb/caiaq/midi.c 	if (device->spec.num_midi_out > 0) {
spec              139 sound/usb/caiaq/midi.c 	if (device->spec.num_midi_in > 0) {
spec             2317 tools/lib/bpf/libbpf.c 	struct bpf_core_accessor spec[BPF_CORE_SPEC_MAX_LEN];
spec             2367 tools/lib/bpf/libbpf.c 			       struct bpf_core_spec *spec)
spec             2378 tools/lib/bpf/libbpf.c 	memset(spec, 0, sizeof(*spec));
spec             2379 tools/lib/bpf/libbpf.c 	spec->btf = btf;
spec             2387 tools/lib/bpf/libbpf.c 		if (spec->raw_len == BPF_CORE_SPEC_MAX_LEN)
spec             2390 tools/lib/bpf/libbpf.c 		spec->raw_spec[spec->raw_len++] = access_idx;
spec             2393 tools/lib/bpf/libbpf.c 	if (spec->raw_len == 0)
spec             2401 tools/lib/bpf/libbpf.c 	access_idx = spec->raw_spec[0];
spec             2402 tools/lib/bpf/libbpf.c 	spec->spec[0].type_id = id;
spec             2403 tools/lib/bpf/libbpf.c 	spec->spec[0].idx = access_idx;
spec             2404 tools/lib/bpf/libbpf.c 	spec->len++;
spec             2409 tools/lib/bpf/libbpf.c 	spec->offset = access_idx * sz;
spec             2411 tools/lib/bpf/libbpf.c 	for (i = 1; i < spec->raw_len; i++) {
spec             2416 tools/lib/bpf/libbpf.c 		access_idx = spec->raw_spec[i];
spec             2430 tools/lib/bpf/libbpf.c 			spec->offset += offset / 8;
spec             2438 tools/lib/bpf/libbpf.c 				spec->spec[spec->len].type_id = id;
spec             2439 tools/lib/bpf/libbpf.c 				spec->spec[spec->len].idx = access_idx;
spec             2440 tools/lib/bpf/libbpf.c 				spec->spec[spec->len].name = name;
spec             2441 tools/lib/bpf/libbpf.c 				spec->len++;
spec             2452 tools/lib/bpf/libbpf.c 			spec->spec[spec->len].type_id = id;
spec             2453 tools/lib/bpf/libbpf.c 			spec->spec[spec->len].idx = access_idx;
spec             2454 tools/lib/bpf/libbpf.c 			spec->len++;
spec             2459 tools/lib/bpf/libbpf.c 			spec->offset += access_idx * sz;
spec             2634 tools/lib/bpf/libbpf.c 				 struct bpf_core_spec *spec,
spec             2667 tools/lib/bpf/libbpf.c 		if (spec->raw_len == BPF_CORE_SPEC_MAX_LEN)
spec             2671 tools/lib/bpf/libbpf.c 		spec->offset += offset / 8;
spec             2672 tools/lib/bpf/libbpf.c 		spec->raw_spec[spec->raw_len++] = i;
spec             2679 tools/lib/bpf/libbpf.c 						      spec, next_targ_id);
spec             2686 tools/lib/bpf/libbpf.c 			targ_acc = &spec->spec[spec->len++];
spec             2696 tools/lib/bpf/libbpf.c 				spec->len--; /* pop accessor */
spec             2700 tools/lib/bpf/libbpf.c 		spec->offset -= offset / 8;
spec             2701 tools/lib/bpf/libbpf.c 		spec->raw_len--;
spec             2723 tools/lib/bpf/libbpf.c 	local_acc = &local_spec->spec[0];
spec             2724 tools/lib/bpf/libbpf.c 	targ_acc = &targ_spec->spec[0];
spec             2914 tools/lib/bpf/libbpf.c static void bpf_core_dump_spec(int level, const struct bpf_core_spec *spec)
spec             2921 tools/lib/bpf/libbpf.c 	type_id = spec->spec[0].type_id;
spec             2922 tools/lib/bpf/libbpf.c 	t = btf__type_by_id(spec->btf, type_id);
spec             2923 tools/lib/bpf/libbpf.c 	s = btf__name_by_offset(spec->btf, t->name_off);
spec             2926 tools/lib/bpf/libbpf.c 	for (i = 0; i < spec->raw_len; i++)
spec             2927 tools/lib/bpf/libbpf.c 		libbpf_print(level, "%d%s", spec->raw_spec[i],
spec             2928 tools/lib/bpf/libbpf.c 			     i == spec->raw_len - 1 ? " => " : ":");
spec             2930 tools/lib/bpf/libbpf.c 	libbpf_print(level, "%u @ &x", spec->offset);
spec             2932 tools/lib/bpf/libbpf.c 	for (i = 0; i < spec->len; i++) {
spec             2933 tools/lib/bpf/libbpf.c 		if (spec->spec[i].name)
spec             2934 tools/lib/bpf/libbpf.c 			libbpf_print(level, ".%s", spec->spec[i].name);
spec             2936 tools/lib/bpf/libbpf.c 			libbpf_print(level, "[%u]", spec->spec[i].idx);
spec             3094 tools/lib/bpf/libbpf.c 		cand_ids->data[j++] = cand_spec.spec[0].type_id;
spec             2529 tools/perf/builtin-script.c 	char			spec[0];
spec             2534 tools/perf/builtin-script.c static struct script_spec *script_spec__new(const char *spec,
spec             2537 tools/perf/builtin-script.c 	struct script_spec *s = malloc(sizeof(*s) + strlen(spec) + 1);
spec             2540 tools/perf/builtin-script.c 		strcpy(s->spec, spec);
spec             2552 tools/perf/builtin-script.c static struct script_spec *script_spec__find(const char *spec)
spec             2557 tools/perf/builtin-script.c 		if (strcasecmp(s->spec, spec) == 0)
spec             2562 tools/perf/builtin-script.c int script_spec_register(const char *spec, struct scripting_ops *ops)
spec             2566 tools/perf/builtin-script.c 	s = script_spec__find(spec);
spec             2570 tools/perf/builtin-script.c 	s = script_spec__new(spec, ops);
spec             2579 tools/perf/builtin-script.c static struct scripting_ops *script_spec__lookup(const char *spec)
spec             2581 tools/perf/builtin-script.c 	struct script_spec *s = script_spec__find(spec);
spec             2597 tools/perf/builtin-script.c 		fprintf(stderr, "  %-42s [%s]\n", s->spec, s->ops->name);
spec             2605 tools/perf/builtin-script.c 	char spec[PATH_MAX];
spec             2621 tools/perf/builtin-script.c 		strncpy(spec, str, len);
spec             2622 tools/perf/builtin-script.c 		spec[len] = '\0';
spec             2623 tools/perf/builtin-script.c 		scripting_ops = script_spec__lookup(spec);
spec               92 tools/perf/util/trace-event.h int script_spec_register(const char *spec, struct scripting_ops *ops);
spec              135 tools/testing/selftests/breakpoints/step_after_suspend_test.c 	struct itimerspec spec = {};
spec              150 tools/testing/selftests/breakpoints/step_after_suspend_test.c 	spec.it_value.tv_sec = 5;
spec              151 tools/testing/selftests/breakpoints/step_after_suspend_test.c 	err = timerfd_settime(timerfd, 0, &spec, NULL);