vp                 99 arch/arm/mach-omap2/prm3xxx.c 	struct omap3_vp *vp = &omap3_vp[vp_id];
vp                104 arch/arm/mach-omap2/prm3xxx.c 	return irqstatus & vp->tranxdone_status;
vp                109 arch/arm/mach-omap2/prm3xxx.c 	struct omap3_vp *vp = &omap3_vp[vp_id];
vp                111 arch/arm/mach-omap2/prm3xxx.c 	omap2_prm_write_mod_reg(vp->tranxdone_status,
vp                149 arch/arm/mach-omap2/prm44xx.c 	struct omap4_vp *vp = &omap4_vp[vp_id];
vp                154 arch/arm/mach-omap2/prm44xx.c 						vp->irqstatus_mpu);
vp                155 arch/arm/mach-omap2/prm44xx.c 	return irqstatus & vp->tranxdone_status;
vp                160 arch/arm/mach-omap2/prm44xx.c 	struct omap4_vp *vp = &omap4_vp[vp_id];
vp                162 arch/arm/mach-omap2/prm44xx.c 	omap4_prminst_write_inst_reg(vp->tranxdone_status,
vp                165 arch/arm/mach-omap2/prm44xx.c 				     vp->irqstatus_mpu);
vp                266 arch/arm/mach-omap2/voltage.c 		if (voltdm->vp) {
vp                 68 arch/arm/mach-omap2/voltage.h 	struct omap_vp_instance *vp;
vp                 56 arch/arm/mach-omap2/voltagedomains3xxx_data.c 	.vp = &omap3_vp_mpu,
vp                 67 arch/arm/mach-omap2/voltagedomains3xxx_data.c 	.vp = &omap3_vp_core,
vp                 55 arch/arm/mach-omap2/voltagedomains44xx_data.c 	.vp = &omap4_vp_mpu,
vp                 66 arch/arm/mach-omap2/voltagedomains44xx_data.c 	.vp = &omap4_vp_iva,
vp                 77 arch/arm/mach-omap2/voltagedomains44xx_data.c 	.vp = &omap4_vp_core,
vp                 41 arch/arm/mach-omap2/voltagedomains54xx_data.c 	.vp = &omap4_vp_mpu,
vp                 52 arch/arm/mach-omap2/voltagedomains54xx_data.c 	.vp = &omap4_vp_iva,
vp                 63 arch/arm/mach-omap2/voltagedomains54xx_data.c 	.vp = &omap4_vp_core,
vp                 15 arch/arm/mach-omap2/vp.c 	struct omap_vp_instance *vp = voltdm->vp;
vp                 21 arch/arm/mach-omap2/vp.c 	vpconfig = voltdm->read(vp->vpconfig);
vp                 22 arch/arm/mach-omap2/vp.c 	vpconfig &= ~(vp->common->vpconfig_initvoltage_mask |
vp                 23 arch/arm/mach-omap2/vp.c 		      vp->common->vpconfig_forceupdate |
vp                 24 arch/arm/mach-omap2/vp.c 		      vp->common->vpconfig_initvdd);
vp                 25 arch/arm/mach-omap2/vp.c 	vpconfig |= vsel << __ffs(vp->common->vpconfig_initvoltage_mask);
vp                 26 arch/arm/mach-omap2/vp.c 	voltdm->write(vpconfig, vp->vpconfig);
vp                 29 arch/arm/mach-omap2/vp.c 	voltdm->write((vpconfig | vp->common->vpconfig_initvdd),
vp                 30 arch/arm/mach-omap2/vp.c 		       vp->vpconfig);
vp                 33 arch/arm/mach-omap2/vp.c 	voltdm->write(vpconfig, vp->vpconfig);
vp                 41 arch/arm/mach-omap2/vp.c 	struct omap_vp_instance *vp = voltdm->vp;
vp                 56 arch/arm/mach-omap2/vp.c 	vp->enabled = false;
vp                 77 arch/arm/mach-omap2/vp.c 	       __ffs(voltdm->vp->common->vpconfig_erroroffset_mask)) |
vp                 78 arch/arm/mach-omap2/vp.c 		vp->common->vpconfig_timeouten;
vp                 79 arch/arm/mach-omap2/vp.c 	voltdm->write(val, vp->vpconfig);
vp                 82 arch/arm/mach-omap2/vp.c 	val = (waittime << vp->common->vstepmin_smpswaittimemin_shift) |
vp                 83 arch/arm/mach-omap2/vp.c 		(vstepmin <<  vp->common->vstepmin_stepmin_shift);
vp                 84 arch/arm/mach-omap2/vp.c 	voltdm->write(val, vp->vstepmin);
vp                 87 arch/arm/mach-omap2/vp.c 	val = (vstepmax << vp->common->vstepmax_stepmax_shift) |
vp                 88 arch/arm/mach-omap2/vp.c 		(waittime << vp->common->vstepmax_smpswaittimemax_shift);
vp                 89 arch/arm/mach-omap2/vp.c 	voltdm->write(val, vp->vstepmax);
vp                 92 arch/arm/mach-omap2/vp.c 	val = (vddmax << vp->common->vlimitto_vddmax_shift) |
vp                 93 arch/arm/mach-omap2/vp.c 		(vddmin << vp->common->vlimitto_vddmin_shift) |
vp                 94 arch/arm/mach-omap2/vp.c 		(timeout <<  vp->common->vlimitto_timeout_shift);
vp                 95 arch/arm/mach-omap2/vp.c 	voltdm->write(val, vp->vlimitto);
vp                103 arch/arm/mach-omap2/vp.c 	if (!voltdm->vp)
vp                112 arch/arm/mach-omap2/vp.c 	voltdm->rmw(voltdm->vp->common->vpconfig_errorgain_mask,
vp                114 arch/arm/mach-omap2/vp.c 		    __ffs(voltdm->vp->common->vpconfig_errorgain_mask),
vp                115 arch/arm/mach-omap2/vp.c 		    voltdm->vp->vpconfig);
vp                124 arch/arm/mach-omap2/vp.c 	struct omap_vp_instance *vp = voltdm->vp;
vp                138 arch/arm/mach-omap2/vp.c 		vp->common->ops->clear_txdone(vp->id);
vp                139 arch/arm/mach-omap2/vp.c 		if (!vp->common->ops->check_txdone(vp->id))
vp                152 arch/arm/mach-omap2/vp.c 	voltdm->write(vpconfig | vp->common->vpconfig_forceupdate,
vp                153 arch/arm/mach-omap2/vp.c 		      voltdm->vp->vpconfig);
vp                160 arch/arm/mach-omap2/vp.c 	omap_test_timeout(vp->common->ops->check_txdone(vp->id),
vp                174 arch/arm/mach-omap2/vp.c 		vp->common->ops->clear_txdone(vp->id);
vp                175 arch/arm/mach-omap2/vp.c 		if (!vp->common->ops->check_txdone(vp->id))
vp                185 arch/arm/mach-omap2/vp.c 	voltdm->write(vpconfig, vp->vpconfig);
vp                199 arch/arm/mach-omap2/vp.c 	struct omap_vp_instance *vp;
vp                207 arch/arm/mach-omap2/vp.c 	vp = voltdm->vp;
vp                215 arch/arm/mach-omap2/vp.c 	if (vp->enabled)
vp                228 arch/arm/mach-omap2/vp.c 	vpconfig |= vp->common->vpconfig_vpenable;
vp                229 arch/arm/mach-omap2/vp.c 	voltdm->write(vpconfig, vp->vpconfig);
vp                231 arch/arm/mach-omap2/vp.c 	vp->enabled = true;
vp                243 arch/arm/mach-omap2/vp.c 	struct omap_vp_instance *vp;
vp                252 arch/arm/mach-omap2/vp.c 	vp = voltdm->vp;
vp                260 arch/arm/mach-omap2/vp.c 	if (!vp->enabled) {
vp                267 arch/arm/mach-omap2/vp.c 	vpconfig = voltdm->read(vp->vpconfig);
vp                268 arch/arm/mach-omap2/vp.c 	vpconfig &= ~vp->common->vpconfig_vpenable;
vp                269 arch/arm/mach-omap2/vp.c 	voltdm->write(vpconfig, vp->vpconfig);
vp                274 arch/arm/mach-omap2/vp.c 	omap_test_timeout((voltdm->read(vp->vstatus)),
vp                280 arch/arm/mach-omap2/vp.c 	vp->enabled = false;
vp                 37 arch/ia64/kernel/unaligned.c # define DDUMP(str,vp,len)	dump(str, vp, len)
vp                 40 arch/ia64/kernel/unaligned.c dump (const char *str, void *vp, size_t len)
vp                 42 arch/ia64/kernel/unaligned.c 	unsigned char *cp = vp;
vp                 52 arch/ia64/kernel/unaligned.c # define DDUMP(str,vp,len)
vp                399 arch/mips/include/asm/mips-cm.h 	unsigned int vp = cpu_vpe_id(&cpu_data[cpu]);
vp                401 arch/mips/include/asm/mips-cm.h 	return (core * mips_cm_max_vp_width()) + vp;
vp                425 arch/mips/include/asm/mips-cm.h 			       unsigned int vp, unsigned int block);
vp                438 arch/mips/include/asm/mips-cm.h 				      unsigned int vp, unsigned int block) { }
vp                257 arch/mips/kernel/mips-cm.c 			unsigned int vp, unsigned int block)
vp                267 arch/mips/kernel/mips-cm.c 		val |= vp << __ffs(CM3_GCR_Cx_OTHER_VP);
vp                171 arch/mips/kernel/spram.c 			unsigned int *vp = (unsigned int *)(CKSEG1 | pa);
vp                174 arch/mips/kernel/spram.c 			vp[0] = TDAT;
vp                175 arch/mips/kernel/spram.c 			vp[1] = ~TDAT;
vp                179 arch/mips/kernel/spram.c 			v = vp[0];
vp                182 arch/mips/kernel/spram.c 				       vp, TDAT, v);
vp                183 arch/mips/kernel/spram.c 			v = vp[1];
vp                186 arch/mips/kernel/spram.c 				       vp+1, ~TDAT, v);
vp                 24 arch/powerpc/include/asm/kvm_book3s.h 	bool vp		: 1;
vp                146 arch/powerpc/include/asm/kvm_book3s.h extern void kvmppc_mmu_pte_vflush(struct kvm_vcpu *vcpu, u64 vp, u64 vp_mask);
vp                253 arch/powerpc/include/asm/opal.h int64_t opal_xive_set_irq_config(uint32_t girq, uint64_t vp, uint8_t prio,
vp                255 arch/powerpc/include/asm/opal.h int64_t opal_xive_get_queue_info(uint64_t vp, uint32_t prio,
vp                261 arch/powerpc/include/asm/opal.h int64_t opal_xive_set_queue_info(uint64_t vp, uint32_t prio,
vp                267 arch/powerpc/include/asm/opal.h int64_t opal_xive_free_vp_block(uint64_t vp);
vp                268 arch/powerpc/include/asm/opal.h int64_t opal_xive_get_vp_info(uint64_t vp,
vp                273 arch/powerpc/include/asm/opal.h int64_t opal_xive_set_vp_info(uint64_t vp,
vp                280 arch/powerpc/include/asm/opal.h int64_t opal_xive_get_queue_state(uint64_t vp, uint32_t prio,
vp                283 arch/powerpc/include/asm/opal.h int64_t opal_xive_set_queue_state(uint64_t vp, uint32_t prio,
vp                286 arch/powerpc/include/asm/opal.h int64_t opal_xive_get_vp_state(uint64_t vp, __be64 *out_w01);
vp                147 arch/powerpc/kvm/book3s_32_mmu.c 			if (!bat->vp)
vp                646 arch/powerpc/kvm/book3s_emulate.c 		bat->vp = (val & 1) ? 1 : 0;
vp                118 arch/powerpc/sysdev/xive/native.c 	__be64 vp;
vp                121 arch/powerpc/sysdev/xive/native.c 	rc = opal_xive_get_irq_config(hw_irq, &vp, prio, &lirq);
vp                123 arch/powerpc/sysdev/xive/native.c 	*target = be64_to_cpu(vp);
vp                397 arch/powerpc/sysdev/xive/native.c 	u32 vp;
vp                409 arch/powerpc/sysdev/xive/native.c 	vp = xive_pool_vps + cpu;
vp                411 arch/powerpc/sysdev/xive/native.c 		rc = opal_xive_set_vp_info(vp, OPAL_XIVE_VP_ENABLED, 0);
vp                422 arch/powerpc/sysdev/xive/native.c 	rc = opal_xive_get_vp_info(vp, NULL, &vp_cam_be, NULL, NULL);
vp                437 arch/powerpc/sysdev/xive/native.c 	u32 vp;
vp                446 arch/powerpc/sysdev/xive/native.c 	vp = xive_pool_vps + cpu;
vp                448 arch/powerpc/sysdev/xive/native.c 		rc = opal_xive_set_vp_info(vp, 0, 0);
vp               1819 arch/powerpc/xmon/xmon.c read_spr(int n, unsigned long *vp)
vp               1828 arch/powerpc/xmon/xmon.c 		ret = xmon_mfspr(n, *vp);
vp               1831 arch/powerpc/xmon/xmon.c 		*vp = ret;
vp               3312 arch/powerpc/xmon/xmon.c scanhex(unsigned long *vp)
vp               3341 arch/powerpc/xmon/xmon.c 		*vp = ((unsigned long *)xmon_regs)[i];
vp               3355 arch/powerpc/xmon/xmon.c 				*vp = 0;
vp               3370 arch/powerpc/xmon/xmon.c 		*vp = 0;
vp               3374 arch/powerpc/xmon/xmon.c 			*vp = kallsyms_lookup_name(tmpstr);
vp               3378 arch/powerpc/xmon/xmon.c 		if (!(*vp)) {
vp               3397 arch/powerpc/xmon/xmon.c 	*vp = v;
vp                 82 arch/sh/kernel/cpu/shmobile/pm.c 	void *vp;
vp                100 arch/sh/kernel/cpu/shmobile/pm.c 	vp = sdp + 1;
vp                104 arch/sh/kernel/cpu/shmobile/pm.c 	memcpy(vp, &sh_mobile_sleep_enter_start, n);
vp                105 arch/sh/kernel/cpu/shmobile/pm.c 	vp += roundup(n, 4);
vp                109 arch/sh/kernel/cpu/shmobile/pm.c 	memcpy(vp, pre_start, n);
vp                110 arch/sh/kernel/cpu/shmobile/pm.c 	sdp->sf_pre = (unsigned long)vp;
vp                111 arch/sh/kernel/cpu/shmobile/pm.c 	vp += roundup(n, 4);
vp                115 arch/sh/kernel/cpu/shmobile/pm.c 	memcpy(vp, post_start, n);
vp                116 arch/sh/kernel/cpu/shmobile/pm.c 	sdp->sf_post = (unsigned long)vp;
vp                117 arch/sh/kernel/cpu/shmobile/pm.c 	vp += roundup(n, 4);
vp                120 arch/sh/kernel/cpu/shmobile/pm.c 	WARN_ON(vp > (onchip_mem + 0x600));
vp                121 arch/sh/kernel/cpu/shmobile/pm.c 	vp = onchip_mem + 0x600; /* located at interrupt vector */
vp                123 arch/sh/kernel/cpu/shmobile/pm.c 	memcpy(vp, &sh_mobile_sleep_resume_start, n);
vp                124 arch/sh/kernel/cpu/shmobile/pm.c 	sdp->resume = (unsigned long)vp;
vp                411 arch/sparc/kernel/ldc.c 			    struct ldc_version *vp)
vp                417 arch/sparc/kernel/ldc.c 				   vp, sizeof(*vp), &new_tail);
vp                420 arch/sparc/kernel/ldc.c 		       vp->major, vp->minor);
vp                573 arch/sparc/kernel/ldc.c static int process_ver_info(struct ldc_channel *lp, struct ldc_version *vp)
vp                579 arch/sparc/kernel/ldc.c 	       vp->major, vp->minor);
vp                586 arch/sparc/kernel/ldc.c 	vap = find_by_major(vp->major);
vp                589 arch/sparc/kernel/ldc.c 	} else if (vap->major != vp->major) {
vp                592 arch/sparc/kernel/ldc.c 		struct ldc_version ver = *vp;
vp                607 arch/sparc/kernel/ldc.c static int process_ver_ack(struct ldc_channel *lp, struct ldc_version *vp)
vp                610 arch/sparc/kernel/ldc.c 	       vp->major, vp->minor);
vp                613 arch/sparc/kernel/ldc.c 		if (lp->ver.major != vp->major ||
vp                614 arch/sparc/kernel/ldc.c 		    lp->ver.minor != vp->minor)
vp                617 arch/sparc/kernel/ldc.c 		lp->ver = *vp;
vp                625 arch/sparc/kernel/ldc.c static int process_ver_nack(struct ldc_channel *lp, struct ldc_version *vp)
vp                631 arch/sparc/kernel/ldc.c 	if (vp->major == 0 && vp->minor == 0)
vp                634 arch/sparc/kernel/ldc.c 	vap = find_by_major(vp->major);
vp                650 arch/sparc/kernel/ldc.c 	struct ldc_version *vp;
vp                652 arch/sparc/kernel/ldc.c 	vp = (struct ldc_version *) p->u.u_data;
vp                656 arch/sparc/kernel/ldc.c 		return process_ver_info(lp, vp);
vp                659 arch/sparc/kernel/ldc.c 		return process_ver_ack(lp, vp);
vp                662 arch/sparc/kernel/ldc.c 		return process_ver_nack(lp, vp);
vp                102 arch/um/drivers/vector_kern.c static void vector_reset_stats(struct vector_private *vp)
vp                104 arch/um/drivers/vector_kern.c 	vp->estats.rx_queue_max = 0;
vp                105 arch/um/drivers/vector_kern.c 	vp->estats.rx_queue_running_average = 0;
vp                106 arch/um/drivers/vector_kern.c 	vp->estats.tx_queue_max = 0;
vp                107 arch/um/drivers/vector_kern.c 	vp->estats.tx_queue_running_average = 0;
vp                108 arch/um/drivers/vector_kern.c 	vp->estats.rx_encaps_errors = 0;
vp                109 arch/um/drivers/vector_kern.c 	vp->estats.tx_timeout_count = 0;
vp                110 arch/um/drivers/vector_kern.c 	vp->estats.tx_restart_queue = 0;
vp                111 arch/um/drivers/vector_kern.c 	vp->estats.tx_kicks = 0;
vp                112 arch/um/drivers/vector_kern.c 	vp->estats.tx_flow_control_xon = 0;
vp                113 arch/um/drivers/vector_kern.c 	vp->estats.tx_flow_control_xoff = 0;
vp                114 arch/um/drivers/vector_kern.c 	vp->estats.sg_ok = 0;
vp                115 arch/um/drivers/vector_kern.c 	vp->estats.sg_linearized = 0;
vp                268 arch/um/drivers/vector_kern.c static int prep_msg(struct vector_private *vp,
vp                281 arch/um/drivers/vector_kern.c 	if (vp->header_size > 0) {
vp                282 arch/um/drivers/vector_kern.c 		iov[iov_index].iov_len = vp->header_size;
vp                283 arch/um/drivers/vector_kern.c 		vp->form_header(iov[iov_index].iov_base, skb, vp);
vp                289 arch/um/drivers/vector_kern.c 		vp->estats.sg_ok++;
vp                311 arch/um/drivers/vector_kern.c 	struct vector_private *vp = netdev_priv(qi->dev);
vp                330 arch/um/drivers/vector_kern.c 			vp,
vp                337 arch/um/drivers/vector_kern.c 		mmsg_vector->msg_hdr.msg_name = vp->fds->remote_addr;
vp                338 arch/um/drivers/vector_kern.c 		mmsg_vector->msg_hdr.msg_namelen = vp->fds->remote_addr_size;
vp                385 arch/um/drivers/vector_kern.c 	struct vector_private *vp = netdev_priv(qi->dev);
vp                405 arch/um/drivers/vector_kern.c 						 vp->fds->tx_fd,
vp                410 arch/um/drivers/vector_kern.c 					vp->in_write_poll =
vp                420 arch/um/drivers/vector_kern.c 						netdev_err(vp->dev, "sendmmsg err=%i\n",
vp                422 arch/um/drivers/vector_kern.c 					vp->in_error = true;
vp                432 arch/um/drivers/vector_kern.c 					if (result > vp->estats.tx_queue_max)
vp                433 arch/um/drivers/vector_kern.c 						vp->estats.tx_queue_max = result;
vp                434 arch/um/drivers/vector_kern.c 					vp->estats.tx_queue_running_average =
vp                435 arch/um/drivers/vector_kern.c 						(vp->estats.tx_queue_running_average + result) >> 1;
vp                443 arch/um/drivers/vector_kern.c 					vp->estats.tx_restart_queue++;
vp                450 arch/um/drivers/vector_kern.c 		tasklet_schedule(&vp->tx_poll);
vp                463 arch/um/drivers/vector_kern.c 	struct vector_private *vp = netdev_priv(qi->dev);
vp                484 arch/um/drivers/vector_kern.c 				if ((vp->header_size > 0) &&
vp                500 arch/um/drivers/vector_kern.c 	struct vector_private *vp,
vp                514 arch/um/drivers/vector_kern.c 	result->dev = vp->dev;
vp                538 arch/um/drivers/vector_kern.c 		if (vp->header_size > 0)
vp                557 arch/um/drivers/vector_kern.c 		if (vp->header_size > 0) {
vp                595 arch/um/drivers/vector_kern.c 	struct vector_private *vp,
vp                598 arch/um/drivers/vector_kern.c 	int linear = vp->max_packet + vp->headroom + SAFETY_MARGIN;
vp                605 arch/um/drivers/vector_kern.c 	if (vp->req_size <= linear)
vp                608 arch/um/drivers/vector_kern.c 		len = vp->req_size;
vp                611 arch/um/drivers/vector_kern.c 		len - vp->max_packet,
vp                616 arch/um/drivers/vector_kern.c 	if (vp->header_size > 0)
vp                623 arch/um/drivers/vector_kern.c 	skb_reserve(result, vp->headroom);
vp                624 arch/um/drivers/vector_kern.c 	result->dev = vp->dev;
vp                625 arch/um/drivers/vector_kern.c 	skb_put(result, vp->max_packet);
vp                626 arch/um/drivers/vector_kern.c 	result->data_len = len - vp->max_packet;
vp                627 arch/um/drivers/vector_kern.c 	result->len += len - vp->max_packet;
vp                631 arch/um/drivers/vector_kern.c 	iov[iov_index].iov_len = vp->max_packet;
vp                654 arch/um/drivers/vector_kern.c 	struct vector_private *vp = netdev_priv(qi->dev);
vp                667 arch/um/drivers/vector_kern.c 		*skbuff_vector = prep_skb(vp, &mmsg_vector->msg_hdr);
vp                775 arch/um/drivers/vector_kern.c 	struct vector_private *vp;
vp                781 arch/um/drivers/vector_kern.c 	vp = netdev_priv(dev);
vp                782 arch/um/drivers/vector_kern.c 	if (vp->fds != NULL)
vp                816 arch/um/drivers/vector_kern.c static int vector_legacy_rx(struct vector_private *vp)
vp                832 arch/um/drivers/vector_kern.c 	if (vp->header_size > 0) {
vp                833 arch/um/drivers/vector_kern.c 		iov[0].iov_base = vp->header_rxbuffer;
vp                834 arch/um/drivers/vector_kern.c 		iov[0].iov_len = vp->header_size;
vp                837 arch/um/drivers/vector_kern.c 	skb = prep_skb(vp, &hdr);
vp                846 arch/um/drivers/vector_kern.c 		vp->dev->stats.rx_dropped++;
vp                849 arch/um/drivers/vector_kern.c 	pkt_len = uml_vector_recvmsg(vp->fds->rx_fd, &hdr, 0);
vp                851 arch/um/drivers/vector_kern.c 		vp->in_error = true;
vp                856 arch/um/drivers/vector_kern.c 		if (pkt_len > vp->header_size) {
vp                857 arch/um/drivers/vector_kern.c 			if (vp->header_size > 0) {
vp                858 arch/um/drivers/vector_kern.c 				header_check = vp->verify_header(
vp                859 arch/um/drivers/vector_kern.c 					vp->header_rxbuffer, skb, vp);
vp                862 arch/um/drivers/vector_kern.c 					vp->dev->stats.rx_dropped++;
vp                863 arch/um/drivers/vector_kern.c 					vp->estats.rx_encaps_errors++;
vp                867 arch/um/drivers/vector_kern.c 					vp->estats.rx_csum_offload_good++;
vp                871 arch/um/drivers/vector_kern.c 			pskb_trim(skb, pkt_len - vp->rx_header_size);
vp                873 arch/um/drivers/vector_kern.c 			vp->dev->stats.rx_bytes += skb->len;
vp                874 arch/um/drivers/vector_kern.c 			vp->dev->stats.rx_packets++;
vp                890 arch/um/drivers/vector_kern.c static int writev_tx(struct vector_private *vp, struct sk_buff *skb)
vp                895 arch/um/drivers/vector_kern.c 	iov[0].iov_base = vp->header_txbuffer;
vp                896 arch/um/drivers/vector_kern.c 	iov_count = prep_msg(vp, skb, (struct iovec *) &iov);
vp                902 arch/um/drivers/vector_kern.c 		vp->fds->tx_fd,
vp                910 arch/um/drivers/vector_kern.c 	netif_trans_update(vp->dev);
vp                911 arch/um/drivers/vector_kern.c 	netif_wake_queue(vp->dev);
vp                914 arch/um/drivers/vector_kern.c 		vp->dev->stats.tx_bytes += skb->len;
vp                915 arch/um/drivers/vector_kern.c 		vp->dev->stats.tx_packets++;
vp                917 arch/um/drivers/vector_kern.c 		vp->dev->stats.tx_dropped++;
vp                922 arch/um/drivers/vector_kern.c 	vp->dev->stats.tx_dropped++;
vp                925 arch/um/drivers/vector_kern.c 		vp->in_error = true;
vp                934 arch/um/drivers/vector_kern.c static int vector_mmsg_rx(struct vector_private *vp)
vp                937 arch/um/drivers/vector_kern.c 	struct vector_queue *qi = vp->rx_queue;
vp                952 arch/um/drivers/vector_kern.c 		vp->fds->rx_fd, qi->mmsg_vector, qi->max_depth, 0);
vp                955 arch/um/drivers/vector_kern.c 		vp->in_error = true;
vp                969 arch/um/drivers/vector_kern.c 		if (mmsg_vector->msg_len > vp->header_size) {
vp                970 arch/um/drivers/vector_kern.c 			if (vp->header_size > 0) {
vp                971 arch/um/drivers/vector_kern.c 				header_check = vp->verify_header(
vp                974 arch/um/drivers/vector_kern.c 					vp
vp                983 arch/um/drivers/vector_kern.c 					vp->estats.rx_encaps_errors++;
vp                987 arch/um/drivers/vector_kern.c 					vp->estats.rx_csum_offload_good++;
vp                992 arch/um/drivers/vector_kern.c 				mmsg_vector->msg_len - vp->rx_header_size);
vp                998 arch/um/drivers/vector_kern.c 			vp->dev->stats.rx_bytes += skb->len;
vp                999 arch/um/drivers/vector_kern.c 			vp->dev->stats.rx_packets++;
vp               1015 arch/um/drivers/vector_kern.c 		if (vp->estats.rx_queue_max < packet_count)
vp               1016 arch/um/drivers/vector_kern.c 			vp->estats.rx_queue_max = packet_count;
vp               1017 arch/um/drivers/vector_kern.c 		vp->estats.rx_queue_running_average =
vp               1018 arch/um/drivers/vector_kern.c 			(vp->estats.rx_queue_running_average + packet_count) >> 1;
vp               1023 arch/um/drivers/vector_kern.c static void vector_rx(struct vector_private *vp)
vp               1028 arch/um/drivers/vector_kern.c 	if ((vp->options & VECTOR_RX) > 0)
vp               1029 arch/um/drivers/vector_kern.c 		while (((err = vector_mmsg_rx(vp)) > 0) && (iter < MAX_ITERATIONS))
vp               1032 arch/um/drivers/vector_kern.c 		while (((err = vector_legacy_rx(vp)) > 0) && (iter < MAX_ITERATIONS))
vp               1035 arch/um/drivers/vector_kern.c 		netdev_err(vp->dev, "vector_rx: error(%d)\n", err);
vp               1037 arch/um/drivers/vector_kern.c 		netdev_err(vp->dev, "vector_rx: device stuck, remote end may have closed the connection\n");
vp               1042 arch/um/drivers/vector_kern.c 	struct vector_private *vp = netdev_priv(dev);
vp               1045 arch/um/drivers/vector_kern.c 	if (vp->in_error) {
vp               1046 arch/um/drivers/vector_kern.c 		deactivate_fd(vp->fds->rx_fd, vp->rx_irq);
vp               1047 arch/um/drivers/vector_kern.c 		if ((vp->fds->rx_fd != vp->fds->tx_fd) && (vp->tx_irq != 0))
vp               1048 arch/um/drivers/vector_kern.c 			deactivate_fd(vp->fds->tx_fd, vp->tx_irq);
vp               1052 arch/um/drivers/vector_kern.c 	if ((vp->options & VECTOR_TX) == 0) {
vp               1053 arch/um/drivers/vector_kern.c 		writev_tx(vp, skb);
vp               1061 arch/um/drivers/vector_kern.c 	netdev_sent_queue(vp->dev, skb->len);
vp               1062 arch/um/drivers/vector_kern.c 	queue_depth = vector_enqueue(vp->tx_queue, skb);
vp               1068 arch/um/drivers/vector_kern.c 	if (queue_depth >= vp->tx_queue->max_depth - 1) {
vp               1069 arch/um/drivers/vector_kern.c 		vp->estats.tx_kicks++;
vp               1071 arch/um/drivers/vector_kern.c 		vector_send(vp->tx_queue);
vp               1075 arch/um/drivers/vector_kern.c 		mod_timer(&vp->tl, vp->coalesce);
vp               1079 arch/um/drivers/vector_kern.c 		vp->estats.tx_kicks++;
vp               1080 arch/um/drivers/vector_kern.c 		vector_send(vp->tx_queue);
vp               1082 arch/um/drivers/vector_kern.c 		tasklet_schedule(&vp->tx_poll);
vp               1089 arch/um/drivers/vector_kern.c 	struct vector_private *vp = netdev_priv(dev);
vp               1093 arch/um/drivers/vector_kern.c 	vector_rx(vp);
vp               1101 arch/um/drivers/vector_kern.c 	struct vector_private *vp = netdev_priv(dev);
vp               1112 arch/um/drivers/vector_kern.c 	if (vp->in_write_poll)
vp               1113 arch/um/drivers/vector_kern.c 		tasklet_schedule(&vp->tx_poll);
vp               1122 arch/um/drivers/vector_kern.c 	struct vector_private *vp = netdev_priv(dev);
vp               1126 arch/um/drivers/vector_kern.c 	del_timer(&vp->tl);
vp               1128 arch/um/drivers/vector_kern.c 	if (vp->fds == NULL)
vp               1132 arch/um/drivers/vector_kern.c 	if (vp->rx_irq > 0) {
vp               1133 arch/um/drivers/vector_kern.c 		um_free_irq(vp->rx_irq, dev);
vp               1134 arch/um/drivers/vector_kern.c 		vp->rx_irq = 0;
vp               1136 arch/um/drivers/vector_kern.c 	if (vp->tx_irq > 0) {
vp               1137 arch/um/drivers/vector_kern.c 		um_free_irq(vp->tx_irq, dev);
vp               1138 arch/um/drivers/vector_kern.c 		vp->tx_irq = 0;
vp               1140 arch/um/drivers/vector_kern.c 	tasklet_kill(&vp->tx_poll);
vp               1141 arch/um/drivers/vector_kern.c 	if (vp->fds->rx_fd > 0) {
vp               1142 arch/um/drivers/vector_kern.c 		os_close_file(vp->fds->rx_fd);
vp               1143 arch/um/drivers/vector_kern.c 		vp->fds->rx_fd = -1;
vp               1145 arch/um/drivers/vector_kern.c 	if (vp->fds->tx_fd > 0) {
vp               1146 arch/um/drivers/vector_kern.c 		os_close_file(vp->fds->tx_fd);
vp               1147 arch/um/drivers/vector_kern.c 		vp->fds->tx_fd = -1;
vp               1149 arch/um/drivers/vector_kern.c 	kfree(vp->bpf);
vp               1150 arch/um/drivers/vector_kern.c 	kfree(vp->fds->remote_addr);
vp               1151 arch/um/drivers/vector_kern.c 	kfree(vp->transport_data);
vp               1152 arch/um/drivers/vector_kern.c 	kfree(vp->header_rxbuffer);
vp               1153 arch/um/drivers/vector_kern.c 	kfree(vp->header_txbuffer);
vp               1154 arch/um/drivers/vector_kern.c 	if (vp->rx_queue != NULL)
vp               1155 arch/um/drivers/vector_kern.c 		destroy_queue(vp->rx_queue);
vp               1156 arch/um/drivers/vector_kern.c 	if (vp->tx_queue != NULL)
vp               1157 arch/um/drivers/vector_kern.c 		destroy_queue(vp->tx_queue);
vp               1158 arch/um/drivers/vector_kern.c 	kfree(vp->fds);
vp               1159 arch/um/drivers/vector_kern.c 	vp->fds = NULL;
vp               1160 arch/um/drivers/vector_kern.c 	spin_lock_irqsave(&vp->lock, flags);
vp               1161 arch/um/drivers/vector_kern.c 	vp->opened = false;
vp               1162 arch/um/drivers/vector_kern.c 	vp->in_error = false;
vp               1163 arch/um/drivers/vector_kern.c 	spin_unlock_irqrestore(&vp->lock, flags);
vp               1171 arch/um/drivers/vector_kern.c 	struct vector_private *vp = (struct vector_private *)data;
vp               1173 arch/um/drivers/vector_kern.c 	vp->estats.tx_kicks++;
vp               1174 arch/um/drivers/vector_kern.c 	vector_send(vp->tx_queue);
vp               1178 arch/um/drivers/vector_kern.c 	struct vector_private *vp =
vp               1180 arch/um/drivers/vector_kern.c 	netdev_reset_queue(vp->dev);
vp               1181 arch/um/drivers/vector_kern.c 	netif_start_queue(vp->dev);
vp               1182 arch/um/drivers/vector_kern.c 	netif_wake_queue(vp->dev);
vp               1186 arch/um/drivers/vector_kern.c 	struct vector_private *vp = netdev_priv(dev);
vp               1191 arch/um/drivers/vector_kern.c 	spin_lock_irqsave(&vp->lock, flags);
vp               1192 arch/um/drivers/vector_kern.c 	if (vp->opened) {
vp               1193 arch/um/drivers/vector_kern.c 		spin_unlock_irqrestore(&vp->lock, flags);
vp               1196 arch/um/drivers/vector_kern.c 	vp->opened = true;
vp               1197 arch/um/drivers/vector_kern.c 	spin_unlock_irqrestore(&vp->lock, flags);
vp               1199 arch/um/drivers/vector_kern.c 	vp->fds = uml_vector_user_open(vp->unit, vp->parsed);
vp               1201 arch/um/drivers/vector_kern.c 	if (vp->fds == NULL)
vp               1204 arch/um/drivers/vector_kern.c 	if (build_transport_data(vp) < 0)
vp               1207 arch/um/drivers/vector_kern.c 	if ((vp->options & VECTOR_RX) > 0) {
vp               1208 arch/um/drivers/vector_kern.c 		vp->rx_queue = create_queue(
vp               1209 arch/um/drivers/vector_kern.c 			vp,
vp               1210 arch/um/drivers/vector_kern.c 			get_depth(vp->parsed),
vp               1211 arch/um/drivers/vector_kern.c 			vp->rx_header_size,
vp               1214 arch/um/drivers/vector_kern.c 		vp->rx_queue->queue_depth = get_depth(vp->parsed);
vp               1216 arch/um/drivers/vector_kern.c 		vp->header_rxbuffer = kmalloc(
vp               1217 arch/um/drivers/vector_kern.c 			vp->rx_header_size,
vp               1220 arch/um/drivers/vector_kern.c 		if (vp->header_rxbuffer == NULL)
vp               1223 arch/um/drivers/vector_kern.c 	if ((vp->options & VECTOR_TX) > 0) {
vp               1224 arch/um/drivers/vector_kern.c 		vp->tx_queue = create_queue(
vp               1225 arch/um/drivers/vector_kern.c 			vp,
vp               1226 arch/um/drivers/vector_kern.c 			get_depth(vp->parsed),
vp               1227 arch/um/drivers/vector_kern.c 			vp->header_size,
vp               1231 arch/um/drivers/vector_kern.c 		vp->header_txbuffer = kmalloc(vp->header_size, GFP_KERNEL);
vp               1232 arch/um/drivers/vector_kern.c 		if (vp->header_txbuffer == NULL)
vp               1238 arch/um/drivers/vector_kern.c 		irq_rr + VECTOR_BASE_IRQ, vp->fds->rx_fd,
vp               1246 arch/um/drivers/vector_kern.c 	vp->rx_irq = irq_rr + VECTOR_BASE_IRQ;
vp               1251 arch/um/drivers/vector_kern.c 	if ((vp->options & VECTOR_TX) > 0) {
vp               1253 arch/um/drivers/vector_kern.c 			irq_rr + VECTOR_BASE_IRQ, vp->fds->tx_fd,
vp               1262 arch/um/drivers/vector_kern.c 		vp->tx_irq = irq_rr + VECTOR_BASE_IRQ;
vp               1266 arch/um/drivers/vector_kern.c 	if ((vp->options & VECTOR_QDISC_BYPASS) != 0) {
vp               1267 arch/um/drivers/vector_kern.c 		if (!uml_raw_enable_qdisc_bypass(vp->fds->rx_fd))
vp               1268 arch/um/drivers/vector_kern.c 			vp->options |= VECTOR_BPF;
vp               1270 arch/um/drivers/vector_kern.c 	if ((vp->options & VECTOR_BPF) != 0)
vp               1271 arch/um/drivers/vector_kern.c 		vp->bpf = uml_vector_default_bpf(vp->fds->rx_fd, dev->dev_addr);
vp               1280 arch/um/drivers/vector_kern.c 	vector_rx(vp);
vp               1282 arch/um/drivers/vector_kern.c 	vector_reset_stats(vp);
vp               1283 arch/um/drivers/vector_kern.c 	vdevice = find_device(vp->unit);
vp               1286 arch/um/drivers/vector_kern.c 	if ((vp->options & VECTOR_TX) != 0)
vp               1287 arch/um/drivers/vector_kern.c 		add_timer(&vp->tl);
vp               1303 arch/um/drivers/vector_kern.c 	struct vector_private *vp = netdev_priv(dev);
vp               1305 arch/um/drivers/vector_kern.c 	vp->estats.tx_timeout_count++;
vp               1307 arch/um/drivers/vector_kern.c 	schedule_work(&vp->reset_tx);
vp               1320 arch/um/drivers/vector_kern.c 	struct vector_private *vp = netdev_priv(dev);
vp               1327 arch/um/drivers/vector_kern.c 		vp->req_size = 65536;
vp               1330 arch/um/drivers/vector_kern.c 		vp->req_size = vp->max_packet + vp->headroom + SAFETY_MARGIN;
vp               1353 arch/um/drivers/vector_kern.c 	struct vector_private *vp = netdev_priv(netdev);
vp               1355 arch/um/drivers/vector_kern.c 	ring->rx_max_pending = vp->rx_queue->max_depth;
vp               1356 arch/um/drivers/vector_kern.c 	ring->tx_max_pending = vp->tx_queue->max_depth;
vp               1357 arch/um/drivers/vector_kern.c 	ring->rx_pending = vp->rx_queue->max_depth;
vp               1358 arch/um/drivers/vector_kern.c 	ring->tx_pending = vp->tx_queue->max_depth;
vp               1392 arch/um/drivers/vector_kern.c 	struct vector_private *vp = netdev_priv(dev);
vp               1394 arch/um/drivers/vector_kern.c 	memcpy(tmp_stats, &vp->estats, sizeof(struct vector_estats));
vp               1400 arch/um/drivers/vector_kern.c 	struct vector_private *vp = netdev_priv(netdev);
vp               1402 arch/um/drivers/vector_kern.c 	ec->tx_coalesce_usecs = (vp->coalesce * 1000000) / HZ;
vp               1409 arch/um/drivers/vector_kern.c 	struct vector_private *vp = netdev_priv(netdev);
vp               1411 arch/um/drivers/vector_kern.c 	vp->coalesce = (ec->tx_coalesce_usecs * HZ) / 1000000;
vp               1412 arch/um/drivers/vector_kern.c 	if (vp->coalesce == 0)
vp               1413 arch/um/drivers/vector_kern.c 		vp->coalesce = 1;
vp               1448 arch/um/drivers/vector_kern.c 	struct vector_private *vp = from_timer(vp, t, tl);
vp               1450 arch/um/drivers/vector_kern.c 	vp->estats.tx_kicks++;
vp               1451 arch/um/drivers/vector_kern.c 	vector_send(vp->tx_queue);
vp               1461 arch/um/drivers/vector_kern.c 	struct vector_private *vp;
vp               1488 arch/um/drivers/vector_kern.c 	vp = netdev_priv(dev);
vp               1505 arch/um/drivers/vector_kern.c 	*vp = ((struct vector_private)
vp               1507 arch/um/drivers/vector_kern.c 		.list			= LIST_HEAD_INIT(vp->list),
vp               1535 arch/um/drivers/vector_kern.c 	tasklet_init(&vp->tx_poll, vector_tx_poll, (unsigned long)vp);
vp               1536 arch/um/drivers/vector_kern.c 	INIT_WORK(&vp->reset_tx, vector_reset_tx);
vp               1538 arch/um/drivers/vector_kern.c 	timer_setup(&vp->tl, vector_timer_expire, 0);
vp               1539 arch/um/drivers/vector_kern.c 	spin_lock_init(&vp->lock);
vp                109 arch/um/drivers/vector_kern.h 		struct sk_buff *skb, struct vector_private *vp);
vp                111 arch/um/drivers/vector_kern.h 		struct sk_buff *skb, struct vector_private *vp);
vp                129 arch/um/drivers/vector_kern.h extern int build_transport_data(struct vector_private *vp);
vp                 67 arch/um/drivers/vector_transports.c 	struct sk_buff *skb, struct vector_private *vp)
vp                 69 arch/um/drivers/vector_transports.c 	struct uml_l2tpv3_data *td = vp->transport_data;
vp                 97 arch/um/drivers/vector_transports.c 		struct sk_buff *skb, struct vector_private *vp)
vp                 99 arch/um/drivers/vector_transports.c 	struct uml_gre_data *td = vp->transport_data;
vp                115 arch/um/drivers/vector_transports.c 		struct sk_buff *skb, struct vector_private *vp)
vp                131 arch/um/drivers/vector_transports.c 	uint8_t *header, struct sk_buff *skb, struct vector_private *vp)
vp                133 arch/um/drivers/vector_transports.c 	struct uml_l2tpv3_data *td = vp->transport_data;
vp                152 arch/um/drivers/vector_transports.c 				netdev_err(vp->dev, "uml_l2tpv3: unknown cookie id");
vp                159 arch/um/drivers/vector_transports.c 			netdev_err(vp->dev, "uml_l2tpv3: session mismatch");
vp                166 arch/um/drivers/vector_transports.c 	uint8_t *header, struct sk_buff *skb, struct vector_private *vp)
vp                170 arch/um/drivers/vector_transports.c 	struct uml_gre_data *td = vp->transport_data;
vp                177 arch/um/drivers/vector_transports.c 			netdev_err(vp->dev, "header type disagreement, expecting %0x, got %0x",
vp                188 arch/um/drivers/vector_transports.c 				netdev_err(vp->dev, "unknown key id %0x, expecting %0x",
vp                197 arch/um/drivers/vector_transports.c 	uint8_t *header, struct sk_buff *skb, struct vector_private *vp)
vp                202 arch/um/drivers/vector_transports.c 		(vp->req_size != 65536)) {
vp                205 arch/um/drivers/vector_transports.c 				vp->dev,
vp                241 arch/um/drivers/vector_transports.c static int build_gre_transport_data(struct vector_private *vp)
vp                248 arch/um/drivers/vector_transports.c 	vp->transport_data = kmalloc(sizeof(struct uml_gre_data), GFP_KERNEL);
vp                249 arch/um/drivers/vector_transports.c 	if (vp->transport_data == NULL)
vp                251 arch/um/drivers/vector_transports.c 	td = vp->transport_data;
vp                257 arch/um/drivers/vector_transports.c 	vp->form_header = &gre_form_header;
vp                258 arch/um/drivers/vector_transports.c 	vp->verify_header = &gre_verify_header;
vp                259 arch/um/drivers/vector_transports.c 	vp->header_size = 4;
vp                265 arch/um/drivers/vector_transports.c 	if (get_uint_param(vp->parsed, "v6", &temp_int)) {
vp                270 arch/um/drivers/vector_transports.c 	if (get_uint_param(vp->parsed, "rx_key", &temp_rx)) {
vp                271 arch/um/drivers/vector_transports.c 		if (get_uint_param(vp->parsed, "tx_key", &temp_tx)) {
vp                276 arch/um/drivers/vector_transports.c 			vp->header_size += 4;
vp                284 arch/um/drivers/vector_transports.c 	if (get_uint_param(vp->parsed, "sequence", &temp_int)) {
vp                286 arch/um/drivers/vector_transports.c 			vp->header_size += 4;
vp                290 arch/um/drivers/vector_transports.c 				vp->parsed, "pin_sequence", &temp_int)) {
vp                296 arch/um/drivers/vector_transports.c 	vp->rx_header_size = vp->header_size;
vp                298 arch/um/drivers/vector_transports.c 		vp->rx_header_size += sizeof(struct iphdr);
vp                302 arch/um/drivers/vector_transports.c static int build_l2tpv3_transport_data(struct vector_private *vp)
vp                310 arch/um/drivers/vector_transports.c 	vp->transport_data = kmalloc(
vp                313 arch/um/drivers/vector_transports.c 	if (vp->transport_data == NULL)
vp                316 arch/um/drivers/vector_transports.c 	td = vp->transport_data;
vp                318 arch/um/drivers/vector_transports.c 	vp->form_header = &l2tpv3_form_header;
vp                319 arch/um/drivers/vector_transports.c 	vp->verify_header = &l2tpv3_verify_header;
vp                322 arch/um/drivers/vector_transports.c 	vp->header_size = 4;
vp                329 arch/um/drivers/vector_transports.c 	if (get_uint_param(vp->parsed, "v6", &temp_int)) {
vp                334 arch/um/drivers/vector_transports.c 	if (get_uint_param(vp->parsed, "rx_session", &temp_rxs)) {
vp                335 arch/um/drivers/vector_transports.c 		if (get_uint_param(vp->parsed, "tx_session", &temp_txs)) {
vp                346 arch/um/drivers/vector_transports.c 	if (get_uint_param(vp->parsed, "cookie64", &temp_int)) {
vp                351 arch/um/drivers/vector_transports.c 	if (get_ulong_param(vp->parsed, "rx_cookie", &temp_rx)) {
vp                352 arch/um/drivers/vector_transports.c 		if (get_ulong_param(vp->parsed, "tx_cookie", &temp_tx)) {
vp                357 arch/um/drivers/vector_transports.c 				vp->header_size += 8;
vp                362 arch/um/drivers/vector_transports.c 				vp->header_size += 4;
vp                371 arch/um/drivers/vector_transports.c 	if (get_uint_param(vp->parsed, "counter", &temp_int)) {
vp                374 arch/um/drivers/vector_transports.c 			vp->header_size += 4;
vp                376 arch/um/drivers/vector_transports.c 				vp->parsed, "pin_counter", &temp_int)) {
vp                383 arch/um/drivers/vector_transports.c 	if (get_uint_param(vp->parsed, "udp", &temp_int)) {
vp                386 arch/um/drivers/vector_transports.c 			vp->header_size += 4;
vp                393 arch/um/drivers/vector_transports.c 	vp->rx_header_size = vp->header_size;
vp                395 arch/um/drivers/vector_transports.c 		vp->rx_header_size += sizeof(struct iphdr);
vp                400 arch/um/drivers/vector_transports.c static int build_raw_transport_data(struct vector_private *vp)
vp                402 arch/um/drivers/vector_transports.c 	if (uml_raw_enable_vnet_headers(vp->fds->rx_fd)) {
vp                403 arch/um/drivers/vector_transports.c 		if (!uml_raw_enable_vnet_headers(vp->fds->tx_fd))
vp                405 arch/um/drivers/vector_transports.c 		vp->form_header = &raw_form_header;
vp                406 arch/um/drivers/vector_transports.c 		vp->verify_header = &raw_verify_header;
vp                407 arch/um/drivers/vector_transports.c 		vp->header_size = sizeof(struct virtio_net_hdr);
vp                408 arch/um/drivers/vector_transports.c 		vp->rx_header_size = sizeof(struct virtio_net_hdr);
vp                409 arch/um/drivers/vector_transports.c 		vp->dev->hw_features |= (NETIF_F_TSO | NETIF_F_GRO);
vp                410 arch/um/drivers/vector_transports.c 		vp->dev->features |=
vp                414 arch/um/drivers/vector_transports.c 			vp->dev,
vp                421 arch/um/drivers/vector_transports.c static int build_hybrid_transport_data(struct vector_private *vp)
vp                423 arch/um/drivers/vector_transports.c 	if (uml_raw_enable_vnet_headers(vp->fds->rx_fd)) {
vp                424 arch/um/drivers/vector_transports.c 		vp->form_header = &raw_form_header;
vp                425 arch/um/drivers/vector_transports.c 		vp->verify_header = &raw_verify_header;
vp                426 arch/um/drivers/vector_transports.c 		vp->header_size = sizeof(struct virtio_net_hdr);
vp                427 arch/um/drivers/vector_transports.c 		vp->rx_header_size = sizeof(struct virtio_net_hdr);
vp                428 arch/um/drivers/vector_transports.c 		vp->dev->hw_features |=
vp                430 arch/um/drivers/vector_transports.c 		vp->dev->features |=
vp                434 arch/um/drivers/vector_transports.c 			vp->dev,
vp                440 arch/um/drivers/vector_transports.c 	if (uml_tap_enable_vnet_headers(vp->fds->tx_fd))
vp                445 arch/um/drivers/vector_transports.c static int build_tap_transport_data(struct vector_private *vp)
vp                448 arch/um/drivers/vector_transports.c 	if (uml_tap_enable_vnet_headers(vp->fds->tx_fd)) {
vp                449 arch/um/drivers/vector_transports.c 		vp->form_header = &raw_form_header;
vp                450 arch/um/drivers/vector_transports.c 		vp->verify_header = &raw_verify_header;
vp                451 arch/um/drivers/vector_transports.c 		vp->header_size = sizeof(struct virtio_net_hdr);
vp                452 arch/um/drivers/vector_transports.c 		vp->rx_header_size = sizeof(struct virtio_net_hdr);
vp                453 arch/um/drivers/vector_transports.c 		vp->dev->hw_features |=
vp                455 arch/um/drivers/vector_transports.c 		vp->dev->features |=
vp                459 arch/um/drivers/vector_transports.c 			vp->dev,
vp                468 arch/um/drivers/vector_transports.c static int build_bess_transport_data(struct vector_private *vp)
vp                470 arch/um/drivers/vector_transports.c 	vp->form_header = NULL;
vp                471 arch/um/drivers/vector_transports.c 	vp->verify_header = NULL;
vp                472 arch/um/drivers/vector_transports.c 	vp->header_size = 0;
vp                473 arch/um/drivers/vector_transports.c 	vp->rx_header_size = 0;
vp                477 arch/um/drivers/vector_transports.c int build_transport_data(struct vector_private *vp)
vp                479 arch/um/drivers/vector_transports.c 	char *transport = uml_vector_fetch_arg(vp->parsed, "transport");
vp                482 arch/um/drivers/vector_transports.c 		return build_gre_transport_data(vp);
vp                484 arch/um/drivers/vector_transports.c 		return build_l2tpv3_transport_data(vp);
vp                486 arch/um/drivers/vector_transports.c 		return build_raw_transport_data(vp);
vp                488 arch/um/drivers/vector_transports.c 		return build_tap_transport_data(vp);
vp                490 arch/um/drivers/vector_transports.c 		return build_hybrid_transport_data(vp);
vp                492 arch/um/drivers/vector_transports.c 		return build_bess_transport_data(vp);
vp                 49 arch/um/kernel/ptrace.c 	void __user *vp = p;
vp                 98 arch/um/kernel/ptrace.c 		ret = ptrace_get_thread_area(child, addr, vp);
vp                102 arch/um/kernel/ptrace.c 		ret = ptrace_set_thread_area(child, addr, vp);
vp               1800 arch/x86/platform/uv/tlb_uv.c 	void *vp;
vp               1806 arch/x86/platform/uv/tlb_uv.c 	vp = kmalloc_node(plsize, GFP_KERNEL, node);
vp               1807 arch/x86/platform/uv/tlb_uv.c 	BUG_ON(!vp);
vp               1809 arch/x86/platform/uv/tlb_uv.c 	pqp = (struct bau_pq_entry *)vp;
vp                393 drivers/ata/pata_via.c 	struct via_port *vp = ap->private_data;
vp                406 drivers/ata/pata_via.c 		vp->cached_device = tf->device;
vp                408 drivers/ata/pata_via.c 		iowrite8(vp->cached_device, ioaddr->device_addr);
vp                444 drivers/ata/pata_via.c 	struct via_port *vp;
vp                451 drivers/ata/pata_via.c 	vp = devm_kzalloc(&pdev->dev, sizeof(struct via_port), GFP_KERNEL);
vp                452 drivers/ata/pata_via.c 	if (vp == NULL)
vp                454 drivers/ata/pata_via.c 	ap->private_data = vp;
vp                342 drivers/block/aoe/aoeblk.c aoeblk_gdalloc(void *vp)
vp                344 drivers/block/aoe/aoeblk.c 	struct aoedev *d = vp;
vp               1227 drivers/block/aoe/aoecmd.c kthread(void *vp)
vp               1233 drivers/block/aoe/aoecmd.c 	k = vp;
vp               4687 drivers/clk/clk.c 	const __be32 *vp;
vp               4704 drivers/clk/clk.c 	of_property_for_each_u32(clkspec.np, "clock-indices", prop, vp, pv) {
vp               4712 drivers/clk/clk.c 	if (prop && !vp)
vp                107 drivers/gpu/drm/exynos/exynos_mixer.c 	struct clk		*vp;
vp                834 drivers/gpu/drm/exynos/exynos_mixer.c 	mixer_ctx->vp = devm_clk_get(dev, "vp");
vp                835 drivers/gpu/drm/exynos/exynos_mixer.c 	if (IS_ERR(mixer_ctx->vp)) {
vp               1270 drivers/gpu/drm/exynos/exynos_mixer.c 		clk_disable_unprepare(ctx->vp);
vp               1298 drivers/gpu/drm/exynos/exynos_mixer.c 		ret = clk_prepare_enable(ctx->vp);
vp                179 drivers/gpu/drm/nouveau/include/nvkm/core/device.h 	struct nvkm_engine *vp;
vp                252 drivers/gpu/drm/nouveau/include/nvkm/core/device.h 	int (*vp      )(struct nvkm_device *, int idx, struct nvkm_engine **);
vp                946 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.vp = g84_vp_new,
vp                978 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.vp = g84_vp_new,
vp               1010 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.vp = g84_vp_new,
vp               1042 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.vp = g84_vp_new,
vp               1074 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.vp = g84_vp_new,
vp               1138 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	.vp = g84_vp_new,
vp               2717 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	_(VP     , device->vp      ,  device->vp);
vp               3205 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 		_(NVKM_ENGINE_VP      ,       vp);
vp               1929 drivers/infiniband/hw/hfi1/mad.c 	void *vp = (void *)data;
vp               1937 drivers/infiniband/hw/hfi1/mad.c 	get_sc2vlt_tables(dd, vp);
vp               1952 drivers/infiniband/hw/hfi1/mad.c 	void *vp = (void *)data;
vp               1981 drivers/infiniband/hw/hfi1/mad.c 	set_sc2vlt_tables(dd, vp);
vp               1994 drivers/infiniband/hw/hfi1/mad.c 	void *vp = (void *)data;
vp               2004 drivers/infiniband/hw/hfi1/mad.c 	fm_get_table(ppd, FM_TBL_SC2VLNT, vp);
vp               2019 drivers/infiniband/hw/hfi1/mad.c 	void *vp = (void *)data;
vp               2038 drivers/infiniband/hw/hfi1/mad.c 	fm_set_table(ppd, FM_TBL_SC2VLNT, vp);
vp                 44 drivers/media/platform/s3c-camif/camif-capture.c static void camif_cfg_video_path(struct camif_vp *vp)
vp                 46 drivers/media/platform/s3c-camif/camif-capture.c 	WARN_ON(s3c_camif_get_scaler_config(vp, &vp->scaler));
vp                 47 drivers/media/platform/s3c-camif/camif-capture.c 	camif_hw_set_scaler(vp);
vp                 48 drivers/media/platform/s3c-camif/camif-capture.c 	camif_hw_set_flip(vp);
vp                 49 drivers/media/platform/s3c-camif/camif-capture.c 	camif_hw_set_target_format(vp);
vp                 50 drivers/media/platform/s3c-camif/camif-capture.c 	camif_hw_set_output_dma(vp);
vp                 53 drivers/media/platform/s3c-camif/camif-capture.c static void camif_prepare_dma_offset(struct camif_vp *vp)
vp                 55 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_frame *f = &vp->out_frame;
vp                 65 drivers/media/platform/s3c-camif/camif-capture.c static int s3c_camif_hw_init(struct camif_dev *camif, struct camif_vp *vp)
vp                 69 drivers/media/platform/s3c-camif/camif-capture.c 	if (camif->sensor.sd == NULL || vp->out_fmt == NULL)
vp                 73 drivers/media/platform/s3c-camif/camif-capture.c 		camif_hw_clear_fifo_overflow(vp);
vp                 82 drivers/media/platform/s3c-camif/camif-capture.c 		camif_hw_set_input_path(vp);
vp                 83 drivers/media/platform/s3c-camif/camif-capture.c 	camif_cfg_video_path(vp);
vp                 84 drivers/media/platform/s3c-camif/camif-capture.c 	vp->state &= ~ST_VP_CONFIG;
vp                 95 drivers/media/platform/s3c-camif/camif-capture.c static int s3c_camif_hw_vp_init(struct camif_dev *camif, struct camif_vp *vp)
vp                 99 drivers/media/platform/s3c-camif/camif-capture.c 	if (vp->out_fmt == NULL)
vp                102 drivers/media/platform/s3c-camif/camif-capture.c 	camif_prepare_dma_offset(vp);
vp                104 drivers/media/platform/s3c-camif/camif-capture.c 		camif_hw_clear_fifo_overflow(vp);
vp                105 drivers/media/platform/s3c-camif/camif-capture.c 	camif_cfg_video_path(vp);
vp                106 drivers/media/platform/s3c-camif/camif-capture.c 	vp->state &= ~ST_VP_CONFIG;
vp                149 drivers/media/platform/s3c-camif/camif-capture.c static int camif_reinitialize(struct camif_vp *vp)
vp                151 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_dev *camif = vp->camif;
vp                157 drivers/media/platform/s3c-camif/camif-capture.c 	streaming = vp->state & ST_VP_SENSOR_STREAMING;
vp                159 drivers/media/platform/s3c-camif/camif-capture.c 	vp->state &= ~(ST_VP_PENDING | ST_VP_RUNNING | ST_VP_OFF |
vp                164 drivers/media/platform/s3c-camif/camif-capture.c 	while (!list_empty(&vp->pending_buf_q)) {
vp                165 drivers/media/platform/s3c-camif/camif-capture.c 		buf = camif_pending_queue_pop(vp);
vp                169 drivers/media/platform/s3c-camif/camif-capture.c 	while (!list_empty(&vp->active_buf_q)) {
vp                170 drivers/media/platform/s3c-camif/camif-capture.c 		buf = camif_active_queue_pop(vp);
vp                182 drivers/media/platform/s3c-camif/camif-capture.c static bool s3c_vp_active(struct camif_vp *vp)
vp                184 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_dev *camif = vp->camif;
vp                189 drivers/media/platform/s3c-camif/camif-capture.c 	ret = (vp->state & ST_VP_RUNNING) || (vp->state & ST_VP_PENDING);
vp                207 drivers/media/platform/s3c-camif/camif-capture.c static int camif_stop_capture(struct camif_vp *vp)
vp                209 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_dev *camif = vp->camif;
vp                213 drivers/media/platform/s3c-camif/camif-capture.c 	if (!s3c_vp_active(vp))
vp                217 drivers/media/platform/s3c-camif/camif-capture.c 	vp->state &= ~(ST_VP_OFF | ST_VP_LASTIRQ);
vp                218 drivers/media/platform/s3c-camif/camif-capture.c 	vp->state |= ST_VP_ABORTING;
vp                221 drivers/media/platform/s3c-camif/camif-capture.c 	ret = wait_event_timeout(vp->irq_queue,
vp                222 drivers/media/platform/s3c-camif/camif-capture.c 			   !(vp->state & ST_VP_ABORTING),
vp                227 drivers/media/platform/s3c-camif/camif-capture.c 	if (ret == 0 && !(vp->state & ST_VP_OFF)) {
vp                229 drivers/media/platform/s3c-camif/camif-capture.c 		vp->state &= ~(ST_VP_OFF | ST_VP_ABORTING |
vp                232 drivers/media/platform/s3c-camif/camif-capture.c 		camif_hw_disable_capture(vp);
vp                233 drivers/media/platform/s3c-camif/camif-capture.c 		camif_hw_enable_scaler(vp, false);
vp                238 drivers/media/platform/s3c-camif/camif-capture.c 	return camif_reinitialize(vp);
vp                241 drivers/media/platform/s3c-camif/camif-capture.c static int camif_prepare_addr(struct camif_vp *vp, struct vb2_buffer *vb,
vp                244 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_frame *frame = &vp->out_frame;
vp                253 drivers/media/platform/s3c-camif/camif-capture.c 		 vp->out_fmt->colplanes, pix_size);
vp                257 drivers/media/platform/s3c-camif/camif-capture.c 	switch (vp->out_fmt->colplanes) {
vp                270 drivers/media/platform/s3c-camif/camif-capture.c 		if (vp->out_fmt->color == IMG_FMT_YCBCR422P)
vp                275 drivers/media/platform/s3c-camif/camif-capture.c 		if (vp->out_fmt->color == IMG_FMT_YCRCB420)
vp                290 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_vp *vp = priv;
vp                291 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_dev *camif = vp->camif;
vp                298 drivers/media/platform/s3c-camif/camif-capture.c 		camif_hw_clear_pending_irq(vp);
vp                300 drivers/media/platform/s3c-camif/camif-capture.c 	status = camif_hw_get_status(vp);
vp                303 drivers/media/platform/s3c-camif/camif-capture.c 		camif_hw_clear_fifo_overflow(vp);
vp                307 drivers/media/platform/s3c-camif/camif-capture.c 	if (vp->state & ST_VP_ABORTING) {
vp                308 drivers/media/platform/s3c-camif/camif-capture.c 		if (vp->state & ST_VP_OFF) {
vp                310 drivers/media/platform/s3c-camif/camif-capture.c 			vp->state &= ~(ST_VP_OFF | ST_VP_ABORTING |
vp                312 drivers/media/platform/s3c-camif/camif-capture.c 			wake_up(&vp->irq_queue);
vp                314 drivers/media/platform/s3c-camif/camif-capture.c 		} else if (vp->state & ST_VP_LASTIRQ) {
vp                315 drivers/media/platform/s3c-camif/camif-capture.c 			camif_hw_disable_capture(vp);
vp                316 drivers/media/platform/s3c-camif/camif-capture.c 			camif_hw_enable_scaler(vp, false);
vp                317 drivers/media/platform/s3c-camif/camif-capture.c 			camif_hw_set_lastirq(vp, false);
vp                318 drivers/media/platform/s3c-camif/camif-capture.c 			vp->state |= ST_VP_OFF;
vp                321 drivers/media/platform/s3c-camif/camif-capture.c 			camif_hw_set_lastirq(vp, true);
vp                322 drivers/media/platform/s3c-camif/camif-capture.c 			vp->state |= ST_VP_LASTIRQ;
vp                326 drivers/media/platform/s3c-camif/camif-capture.c 	if (!list_empty(&vp->pending_buf_q) && (vp->state & ST_VP_RUNNING) &&
vp                327 drivers/media/platform/s3c-camif/camif-capture.c 	    !list_empty(&vp->active_buf_q)) {
vp                336 drivers/media/platform/s3c-camif/camif-capture.c 		vbuf = camif_active_queue_peek(vp, index);
vp                341 drivers/media/platform/s3c-camif/camif-capture.c 			vbuf->vb.sequence = vp->frame_sequence++;
vp                345 drivers/media/platform/s3c-camif/camif-capture.c 			vbuf = camif_pending_queue_pop(vp);
vp                347 drivers/media/platform/s3c-camif/camif-capture.c 			camif_hw_set_output_addr(vp, &vbuf->paddr, index);
vp                348 drivers/media/platform/s3c-camif/camif-capture.c 			camif_hw_set_output_addr(vp, &vbuf->paddr, index + 2);
vp                351 drivers/media/platform/s3c-camif/camif-capture.c 			camif_active_queue_add(vp, vbuf);
vp                353 drivers/media/platform/s3c-camif/camif-capture.c 	} else if (!(vp->state & ST_VP_ABORTING) &&
vp                354 drivers/media/platform/s3c-camif/camif-capture.c 		   (vp->state & ST_VP_PENDING))  {
vp                355 drivers/media/platform/s3c-camif/camif-capture.c 		vp->state |= ST_VP_RUNNING;
vp                358 drivers/media/platform/s3c-camif/camif-capture.c 	if (vp->state & ST_VP_CONFIG) {
vp                359 drivers/media/platform/s3c-camif/camif-capture.c 		camif_prepare_dma_offset(vp);
vp                361 drivers/media/platform/s3c-camif/camif-capture.c 		camif_hw_set_scaler(vp);
vp                362 drivers/media/platform/s3c-camif/camif-capture.c 		camif_hw_set_flip(vp);
vp                367 drivers/media/platform/s3c-camif/camif-capture.c 		vp->state &= ~ST_VP_CONFIG;
vp                376 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_vp *vp = vb2_get_drv_priv(vq);
vp                377 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_dev *camif = vp->camif;
vp                391 drivers/media/platform/s3c-camif/camif-capture.c 		ret = s3c_camif_hw_init(camif, vp);
vp                393 drivers/media/platform/s3c-camif/camif-capture.c 		ret = s3c_camif_hw_vp_init(camif, vp);
vp                398 drivers/media/platform/s3c-camif/camif-capture.c 		camif_reinitialize(vp);
vp                403 drivers/media/platform/s3c-camif/camif-capture.c 	vp->frame_sequence = 0;
vp                404 drivers/media/platform/s3c-camif/camif-capture.c 	vp->state |= ST_VP_PENDING;
vp                406 drivers/media/platform/s3c-camif/camif-capture.c 	if (!list_empty(&vp->pending_buf_q) &&
vp                407 drivers/media/platform/s3c-camif/camif-capture.c 	    (!(vp->state & ST_VP_STREAMING) ||
vp                408 drivers/media/platform/s3c-camif/camif-capture.c 	     !(vp->state & ST_VP_SENSOR_STREAMING))) {
vp                410 drivers/media/platform/s3c-camif/camif-capture.c 		camif_hw_enable_scaler(vp, vp->scaler.enable);
vp                411 drivers/media/platform/s3c-camif/camif-capture.c 		camif_hw_enable_capture(vp);
vp                412 drivers/media/platform/s3c-camif/camif-capture.c 		vp->state |= ST_VP_STREAMING;
vp                414 drivers/media/platform/s3c-camif/camif-capture.c 		if (!(vp->state & ST_VP_SENSOR_STREAMING)) {
vp                415 drivers/media/platform/s3c-camif/camif-capture.c 			vp->state |= ST_VP_SENSOR_STREAMING;
vp                419 drivers/media/platform/s3c-camif/camif-capture.c 				v4l2_err(&vp->vdev, "Sensor s_stream failed\n");
vp                433 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_vp *vp = vb2_get_drv_priv(vq);
vp                434 drivers/media/platform/s3c-camif/camif-capture.c 	camif_stop_capture(vp);
vp                441 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_vp *vp = vb2_get_drv_priv(vq);
vp                442 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_frame *frame = &vp->out_frame;
vp                443 drivers/media/platform/s3c-camif/camif-capture.c 	const struct camif_fmt *fmt = vp->out_fmt;
vp                463 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_vp *vp = vb2_get_drv_priv(vb->vb2_queue);
vp                465 drivers/media/platform/s3c-camif/camif-capture.c 	if (vp->out_fmt == NULL)
vp                468 drivers/media/platform/s3c-camif/camif-capture.c 	if (vb2_plane_size(vb, 0) < vp->payload) {
vp                469 drivers/media/platform/s3c-camif/camif-capture.c 		v4l2_err(&vp->vdev, "buffer too small: %lu, required: %u\n",
vp                470 drivers/media/platform/s3c-camif/camif-capture.c 			 vb2_plane_size(vb, 0), vp->payload);
vp                473 drivers/media/platform/s3c-camif/camif-capture.c 	vb2_set_plane_payload(vb, 0, vp->payload);
vp                482 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_vp *vp = vb2_get_drv_priv(vb->vb2_queue);
vp                483 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_dev *camif = vp->camif;
vp                487 drivers/media/platform/s3c-camif/camif-capture.c 	WARN_ON(camif_prepare_addr(vp, &buf->vb.vb2_buf, &buf->paddr));
vp                489 drivers/media/platform/s3c-camif/camif-capture.c 	if (!(vp->state & ST_VP_STREAMING) && vp->active_buffers < 2) {
vp                491 drivers/media/platform/s3c-camif/camif-capture.c 		buf->index = vp->buf_index;
vp                493 drivers/media/platform/s3c-camif/camif-capture.c 		camif_hw_set_output_addr(vp, &buf->paddr, buf->index);
vp                494 drivers/media/platform/s3c-camif/camif-capture.c 		camif_hw_set_output_addr(vp, &buf->paddr, buf->index + 2);
vp                496 drivers/media/platform/s3c-camif/camif-capture.c 		camif_active_queue_add(vp, buf);
vp                497 drivers/media/platform/s3c-camif/camif-capture.c 		vp->buf_index = !vp->buf_index;
vp                499 drivers/media/platform/s3c-camif/camif-capture.c 		camif_pending_queue_add(vp, buf);
vp                502 drivers/media/platform/s3c-camif/camif-capture.c 	if (vb2_is_streaming(&vp->vb_queue) && !list_empty(&vp->pending_buf_q)
vp                503 drivers/media/platform/s3c-camif/camif-capture.c 		&& !(vp->state & ST_VP_STREAMING)) {
vp                505 drivers/media/platform/s3c-camif/camif-capture.c 		vp->state |= ST_VP_STREAMING;
vp                506 drivers/media/platform/s3c-camif/camif-capture.c 		camif_hw_enable_scaler(vp, vp->scaler.enable);
vp                507 drivers/media/platform/s3c-camif/camif-capture.c 		camif_hw_enable_capture(vp);
vp                510 drivers/media/platform/s3c-camif/camif-capture.c 		if (!(vp->state & ST_VP_SENSOR_STREAMING)) {
vp                512 drivers/media/platform/s3c-camif/camif-capture.c 				vp->state |= ST_VP_SENSOR_STREAMING;
vp                514 drivers/media/platform/s3c-camif/camif-capture.c 				v4l2_err(&vp->vdev, "Sensor s_stream failed\n");
vp                536 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_vp *vp = video_drvdata(file);
vp                537 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_dev *camif = vp->camif;
vp                540 drivers/media/platform/s3c-camif/camif-capture.c 	pr_debug("[vp%d] state: %#x,  owner: %p, pid: %d\n", vp->id,
vp                541 drivers/media/platform/s3c-camif/camif-capture.c 		 vp->state, vp->owner, task_pid_nr(current));
vp                568 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_vp *vp = video_drvdata(file);
vp                569 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_dev *camif = vp->camif;
vp                572 drivers/media/platform/s3c-camif/camif-capture.c 	pr_debug("[vp%d] state: %#x, owner: %p, pid: %d\n", vp->id,
vp                573 drivers/media/platform/s3c-camif/camif-capture.c 		 vp->state, vp->owner, task_pid_nr(current));
vp                577 drivers/media/platform/s3c-camif/camif-capture.c 	if (vp->owner == file->private_data) {
vp                578 drivers/media/platform/s3c-camif/camif-capture.c 		camif_stop_capture(vp);
vp                579 drivers/media/platform/s3c-camif/camif-capture.c 		vb2_queue_release(&vp->vb_queue);
vp                580 drivers/media/platform/s3c-camif/camif-capture.c 		vp->owner = NULL;
vp                595 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_vp *vp = video_drvdata(file);
vp                596 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_dev *camif = vp->camif;
vp                600 drivers/media/platform/s3c-camif/camif-capture.c 	if (vp->owner && vp->owner != file->private_data)
vp                603 drivers/media/platform/s3c-camif/camif-capture.c 		ret = vb2_poll(&vp->vb_queue, file, wait);
vp                611 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_vp *vp = video_drvdata(file);
vp                614 drivers/media/platform/s3c-camif/camif-capture.c 	if (vp->owner && vp->owner != file->private_data)
vp                617 drivers/media/platform/s3c-camif/camif-capture.c 		ret = vb2_mmap(&vp->vb_queue, vma);
vp                638 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_vp *vp = video_drvdata(file);
vp                643 drivers/media/platform/s3c-camif/camif-capture.c 		 dev_name(vp->camif->dev), vp->id);
vp                650 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_vp *vp = video_drvdata(file);
vp                651 drivers/media/platform/s3c-camif/camif-capture.c 	struct v4l2_subdev *sensor = vp->camif->sensor.sd;
vp                677 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_vp *vp = video_drvdata(file);
vp                680 drivers/media/platform/s3c-camif/camif-capture.c 	fmt = s3c_camif_find_format(vp, NULL, f->index);
vp                691 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_vp *vp = video_drvdata(file);
vp                693 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_frame *frame = &vp->out_frame;
vp                694 drivers/media/platform/s3c-camif/camif-capture.c 	const struct camif_fmt *fmt = vp->out_fmt;
vp                697 drivers/media/platform/s3c-camif/camif-capture.c 	pix->sizeimage = vp->payload;
vp                708 drivers/media/platform/s3c-camif/camif-capture.c static int __camif_video_try_format(struct camif_vp *vp,
vp                712 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_dev *camif = vp->camif;
vp                718 drivers/media/platform/s3c-camif/camif-capture.c 	fmt = s3c_camif_find_format(vp, &pix->pixelformat, 0);
vp                726 drivers/media/platform/s3c-camif/camif-capture.c 	pix_lim = &camif->variant->vp_pix_limits[vp->id];
vp                762 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_vp *vp = video_drvdata(file);
vp                763 drivers/media/platform/s3c-camif/camif-capture.c 	return __camif_video_try_format(vp, &f->fmt.pix, NULL);
vp                770 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_vp *vp = video_drvdata(file);
vp                771 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_frame *out_frame = &vp->out_frame;
vp                775 drivers/media/platform/s3c-camif/camif-capture.c 	pr_debug("[vp%d]\n", vp->id);
vp                777 drivers/media/platform/s3c-camif/camif-capture.c 	if (vb2_is_busy(&vp->vb_queue))
vp                780 drivers/media/platform/s3c-camif/camif-capture.c 	ret = __camif_video_try_format(vp, &f->fmt.pix, &fmt);
vp                784 drivers/media/platform/s3c-camif/camif-capture.c 	vp->out_fmt = fmt;
vp                785 drivers/media/platform/s3c-camif/camif-capture.c 	vp->payload = pix->sizeimage;
vp                795 drivers/media/platform/s3c-camif/camif-capture.c 	if (vp->owner == NULL)
vp                796 drivers/media/platform/s3c-camif/camif-capture.c 		vp->owner = priv;
vp                799 drivers/media/platform/s3c-camif/camif-capture.c 		 out_frame->f_width, out_frame->f_height, vp->payload,
vp                835 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_vp *vp = video_drvdata(file);
vp                836 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_dev *camif = vp->camif;
vp                840 drivers/media/platform/s3c-camif/camif-capture.c 	pr_debug("[vp%d]\n", vp->id);
vp                845 drivers/media/platform/s3c-camif/camif-capture.c 	if (vp->owner && vp->owner != priv)
vp                848 drivers/media/platform/s3c-camif/camif-capture.c 	if (s3c_vp_active(vp))
vp                861 drivers/media/platform/s3c-camif/camif-capture.c 	return vb2_streamon(&vp->vb_queue, type);
vp                867 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_vp *vp = video_drvdata(file);
vp                868 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_dev *camif = vp->camif;
vp                871 drivers/media/platform/s3c-camif/camif-capture.c 	pr_debug("[vp%d]\n", vp->id);
vp                876 drivers/media/platform/s3c-camif/camif-capture.c 	if (vp->owner && vp->owner != priv)
vp                879 drivers/media/platform/s3c-camif/camif-capture.c 	ret = vb2_streamoff(&vp->vb_queue, type);
vp                888 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_vp *vp = video_drvdata(file);
vp                892 drivers/media/platform/s3c-camif/camif-capture.c 		 vp->id, rb->count, vp->owner, priv);
vp                894 drivers/media/platform/s3c-camif/camif-capture.c 	if (vp->owner && vp->owner != priv)
vp                900 drivers/media/platform/s3c-camif/camif-capture.c 		vp->owner = NULL;
vp                902 drivers/media/platform/s3c-camif/camif-capture.c 	ret = vb2_reqbufs(&vp->vb_queue, rb);
vp                908 drivers/media/platform/s3c-camif/camif-capture.c 		vb2_reqbufs(&vp->vb_queue, rb);
vp                912 drivers/media/platform/s3c-camif/camif-capture.c 	vp->reqbufs_count = rb->count;
vp                913 drivers/media/platform/s3c-camif/camif-capture.c 	if (vp->owner == NULL && rb->count > 0)
vp                914 drivers/media/platform/s3c-camif/camif-capture.c 		vp->owner = priv;
vp                922 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_vp *vp = video_drvdata(file);
vp                923 drivers/media/platform/s3c-camif/camif-capture.c 	return vb2_querybuf(&vp->vb_queue, buf);
vp                929 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_vp *vp = video_drvdata(file);
vp                931 drivers/media/platform/s3c-camif/camif-capture.c 	pr_debug("[vp%d]\n", vp->id);
vp                933 drivers/media/platform/s3c-camif/camif-capture.c 	if (vp->owner && vp->owner != priv)
vp                936 drivers/media/platform/s3c-camif/camif-capture.c 	return vb2_qbuf(&vp->vb_queue, vp->vdev.v4l2_dev->mdev, buf);
vp                942 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_vp *vp = video_drvdata(file);
vp                944 drivers/media/platform/s3c-camif/camif-capture.c 	pr_debug("[vp%d] sequence: %d\n", vp->id, vp->frame_sequence);
vp                946 drivers/media/platform/s3c-camif/camif-capture.c 	if (vp->owner && vp->owner != priv)
vp                949 drivers/media/platform/s3c-camif/camif-capture.c 	return vb2_dqbuf(&vp->vb_queue, buf, file->f_flags & O_NONBLOCK);
vp                955 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_vp *vp = video_drvdata(file);
vp                958 drivers/media/platform/s3c-camif/camif-capture.c 	if (vp->owner && vp->owner != priv)
vp                962 drivers/media/platform/s3c-camif/camif-capture.c 	ret = vb2_create_bufs(&vp->vb_queue, create);
vp                964 drivers/media/platform/s3c-camif/camif-capture.c 	if (!ret && vp->owner == NULL)
vp                965 drivers/media/platform/s3c-camif/camif-capture.c 		vp->owner = priv;
vp                973 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_vp *vp = video_drvdata(file);
vp                974 drivers/media/platform/s3c-camif/camif-capture.c 	return vb2_prepare_buf(&vp->vb_queue, vp->vdev.v4l2_dev->mdev, b);
vp                980 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_vp *vp = video_drvdata(file);
vp                990 drivers/media/platform/s3c-camif/camif-capture.c 		sel->r.width = vp->out_frame.f_width;
vp                991 drivers/media/platform/s3c-camif/camif-capture.c 		sel->r.height = vp->out_frame.f_height;
vp                995 drivers/media/platform/s3c-camif/camif-capture.c 		sel->r = vp->out_frame.rect;
vp               1002 drivers/media/platform/s3c-camif/camif-capture.c static void __camif_try_compose(struct camif_dev *camif, struct camif_vp *vp,
vp               1007 drivers/media/platform/s3c-camif/camif-capture.c 		*r = vp->out_frame.rect;
vp               1017 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_vp *vp = video_drvdata(file);
vp               1018 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_dev *camif = vp->camif;
vp               1026 drivers/media/platform/s3c-camif/camif-capture.c 	__camif_try_compose(camif, vp, &rect);
vp               1030 drivers/media/platform/s3c-camif/camif-capture.c 	vp->out_frame.rect = rect;
vp               1031 drivers/media/platform/s3c-camif/camif-capture.c 	vp->state |= ST_VP_CONFIG;
vp               1070 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_vp *vp = ctrl->priv;
vp               1071 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_dev *camif = vp->camif;
vp               1074 drivers/media/platform/s3c-camif/camif-capture.c 	pr_debug("[vp%d] ctrl: %s, value: %d\n", vp->id,
vp               1081 drivers/media/platform/s3c-camif/camif-capture.c 		vp->hflip = ctrl->val;
vp               1085 drivers/media/platform/s3c-camif/camif-capture.c 		vp->vflip = ctrl->val;
vp               1089 drivers/media/platform/s3c-camif/camif-capture.c 	vp->state |= ST_VP_CONFIG;
vp               1101 drivers/media/platform/s3c-camif/camif-capture.c 	struct camif_vp *vp = &camif->vp[idx];
vp               1102 drivers/media/platform/s3c-camif/camif-capture.c 	struct vb2_queue *q = &vp->vb_queue;
vp               1103 drivers/media/platform/s3c-camif/camif-capture.c 	struct video_device *vfd = &vp->vdev;
vp               1109 drivers/media/platform/s3c-camif/camif-capture.c 		 vp->id == 0 ? "codec" : "preview");
vp               1117 drivers/media/platform/s3c-camif/camif-capture.c 	vp->reqbufs_count = 0;
vp               1119 drivers/media/platform/s3c-camif/camif-capture.c 	INIT_LIST_HEAD(&vp->pending_buf_q);
vp               1120 drivers/media/platform/s3c-camif/camif-capture.c 	INIT_LIST_HEAD(&vp->active_buf_q);
vp               1128 drivers/media/platform/s3c-camif/camif-capture.c 	q->drv_priv = vp;
vp               1130 drivers/media/platform/s3c-camif/camif-capture.c 	q->lock = &vp->camif->lock;
vp               1137 drivers/media/platform/s3c-camif/camif-capture.c 	vp->pad.flags = MEDIA_PAD_FL_SINK;
vp               1138 drivers/media/platform/s3c-camif/camif-capture.c 	ret = media_entity_pads_init(&vfd->entity, 1, &vp->pad);
vp               1142 drivers/media/platform/s3c-camif/camif-capture.c 	video_set_drvdata(vfd, vp);
vp               1144 drivers/media/platform/s3c-camif/camif-capture.c 	v4l2_ctrl_handler_init(&vp->ctrl_handler, 1);
vp               1145 drivers/media/platform/s3c-camif/camif-capture.c 	ctrl = v4l2_ctrl_new_std(&vp->ctrl_handler, &s3c_camif_video_ctrl_ops,
vp               1148 drivers/media/platform/s3c-camif/camif-capture.c 		ctrl->priv = vp;
vp               1149 drivers/media/platform/s3c-camif/camif-capture.c 	ctrl = v4l2_ctrl_new_std(&vp->ctrl_handler, &s3c_camif_video_ctrl_ops,
vp               1152 drivers/media/platform/s3c-camif/camif-capture.c 		ctrl->priv = vp;
vp               1154 drivers/media/platform/s3c-camif/camif-capture.c 	ret = vp->ctrl_handler.error;
vp               1158 drivers/media/platform/s3c-camif/camif-capture.c 	vfd->ctrl_handler = &vp->ctrl_handler;
vp               1170 drivers/media/platform/s3c-camif/camif-capture.c 	v4l2_ctrl_handler_free(&vp->ctrl_handler);
vp               1180 drivers/media/platform/s3c-camif/camif-capture.c 	struct video_device *vfd = &camif->vp[idx].vdev;
vp               1300 drivers/media/platform/s3c-camif/camif-capture.c 	if (vb2_is_busy(&camif->vp[VP_CODEC].vb_queue) ||
vp               1301 drivers/media/platform/s3c-camif/camif-capture.c 	    vb2_is_busy(&camif->vp[VP_PREVIEW].vb_queue)) {
vp               1328 drivers/media/platform/s3c-camif/camif-capture.c 			struct camif_frame *frame = &camif->vp[i].out_frame;
vp               1421 drivers/media/platform/s3c-camif/camif-capture.c 			struct v4l2_rect *or = &camif->vp[i].out_frame.rect;
vp               1458 drivers/media/platform/s3c-camif/camif-capture.c 			struct camif_vp *vp = &camif->vp[i];
vp               1459 drivers/media/platform/s3c-camif/camif-capture.c 			scaler = vp->scaler;
vp               1460 drivers/media/platform/s3c-camif/camif-capture.c 			if (s3c_camif_get_scaler_config(vp, &scaler))
vp               1462 drivers/media/platform/s3c-camif/camif-capture.c 			vp->scaler = scaler;
vp               1463 drivers/media/platform/s3c-camif/camif-capture.c 			vp->state |= ST_VP_CONFIG;
vp               1523 drivers/media/platform/s3c-camif/camif-capture.c 	camif->vp[VP_CODEC].state |= ST_VP_CONFIG;
vp               1524 drivers/media/platform/s3c-camif/camif-capture.c 	camif->vp[VP_PREVIEW].state |= ST_VP_CONFIG;
vp               1613 drivers/media/platform/s3c-camif/camif-capture.c 		struct camif_vp *vp = &camif->vp[i];
vp               1614 drivers/media/platform/s3c-camif/camif-capture.c 		struct camif_frame *f = &vp->out_frame;
vp               1616 drivers/media/platform/s3c-camif/camif-capture.c 		vp->camif = camif;
vp               1617 drivers/media/platform/s3c-camif/camif-capture.c 		vp->id = i;
vp               1618 drivers/media/platform/s3c-camif/camif-capture.c 		vp->offset = camif->variant->vp_offset;
vp               1621 drivers/media/platform/s3c-camif/camif-capture.c 			vp->fmt_flags = i ? FMT_FL_S3C24XX_PREVIEW :
vp               1624 drivers/media/platform/s3c-camif/camif-capture.c 			vp->fmt_flags = FMT_FL_S3C64XX;
vp               1626 drivers/media/platform/s3c-camif/camif-capture.c 		vp->out_fmt = s3c_camif_find_format(vp, NULL, 0);
vp               1627 drivers/media/platform/s3c-camif/camif-capture.c 		BUG_ON(vp->out_fmt == NULL);
vp               1636 drivers/media/platform/s3c-camif/camif-capture.c 		vp->scaler.enable = 1;
vp               1638 drivers/media/platform/s3c-camif/camif-capture.c 		vp->payload = (f->f_width * f->f_height *
vp               1639 drivers/media/platform/s3c-camif/camif-capture.c 			       vp->out_fmt->depth) / 8;
vp                100 drivers/media/platform/s3c-camif/camif-core.c const struct camif_fmt *s3c_camif_find_format(struct camif_vp *vp,
vp                113 drivers/media/platform/s3c-camif/camif-core.c 		if (vp && !(vp->fmt_flags & fmt->flags))
vp                142 drivers/media/platform/s3c-camif/camif-core.c int s3c_camif_get_scaler_config(struct camif_vp *vp,
vp                145 drivers/media/platform/s3c-camif/camif-core.c 	struct v4l2_rect *camif_crop = &vp->camif->camif_crop;
vp                148 drivers/media/platform/s3c-camif/camif-core.c 	int target_x = vp->out_frame.rect.width;
vp                149 drivers/media/platform/s3c-camif/camif-core.c 	int target_y = vp->out_frame.rect.height;
vp                152 drivers/media/platform/s3c-camif/camif-core.c 	if (vp->rotation == 90 || vp->rotation == 270)
vp                266 drivers/media/platform/s3c-camif/camif-core.c 				&camif->vp[i - 1].vdev.entity, 0,
vp                378 drivers/media/platform/s3c-camif/camif-core.c 		struct camif_vp *vp = &camif->vp[i];
vp                380 drivers/media/platform/s3c-camif/camif-core.c 		init_waitqueue_head(&vp->irq_queue);
vp                387 drivers/media/platform/s3c-camif/camif-core.c 				       0, dev_name(&pdev->dev), vp);
vp                288 drivers/media/platform/s3c-camif/camif-core.h 	struct camif_vp			vp[CAMIF_VP_NUM];
vp                325 drivers/media/platform/s3c-camif/camif-core.h const struct camif_fmt *s3c_camif_find_format(struct camif_vp *vp,
vp                333 drivers/media/platform/s3c-camif/camif-core.h int s3c_camif_get_scaler_config(struct camif_vp *vp,
vp                336 drivers/media/platform/s3c-camif/camif-core.h static inline void camif_active_queue_add(struct camif_vp *vp,
vp                339 drivers/media/platform/s3c-camif/camif-core.h 	list_add_tail(&buf->list, &vp->active_buf_q);
vp                340 drivers/media/platform/s3c-camif/camif-core.h 	vp->active_buffers++;
vp                344 drivers/media/platform/s3c-camif/camif-core.h 					struct camif_vp *vp)
vp                346 drivers/media/platform/s3c-camif/camif-core.h 	struct camif_buffer *buf = list_first_entry(&vp->active_buf_q,
vp                349 drivers/media/platform/s3c-camif/camif-core.h 	vp->active_buffers--;
vp                354 drivers/media/platform/s3c-camif/camif-core.h 			   struct camif_vp *vp, int index)
vp                358 drivers/media/platform/s3c-camif/camif-core.h 	if (WARN_ON(list_empty(&vp->active_buf_q)))
vp                361 drivers/media/platform/s3c-camif/camif-core.h 	list_for_each_entry_safe(buf, tmp, &vp->active_buf_q, list) {
vp                364 drivers/media/platform/s3c-camif/camif-core.h 			vp->active_buffers--;
vp                372 drivers/media/platform/s3c-camif/camif-core.h static inline void camif_pending_queue_add(struct camif_vp *vp,
vp                375 drivers/media/platform/s3c-camif/camif-core.h 	list_add_tail(&buf->list, &vp->pending_buf_q);
vp                379 drivers/media/platform/s3c-camif/camif-core.h 					struct camif_vp *vp)
vp                381 drivers/media/platform/s3c-camif/camif-core.h 	struct camif_buffer *buf = list_first_entry(&vp->pending_buf_q,
vp                 38 drivers/media/platform/s3c-camif/camif-regs.c void camif_hw_clear_pending_irq(struct camif_vp *vp)
vp                 40 drivers/media/platform/s3c-camif/camif-regs.c 	u32 cfg = camif_read(vp->camif, S3C_CAMIF_REG_CIGCTRL);
vp                 41 drivers/media/platform/s3c-camif/camif-regs.c 	cfg |= CIGCTRL_IRQ_CLR(vp->id);
vp                 42 drivers/media/platform/s3c-camif/camif-regs.c 	camif_write(vp->camif, S3C_CAMIF_REG_CIGCTRL, cfg);
vp                 79 drivers/media/platform/s3c-camif/camif-regs.c 	cfg = camif_read(camif, S3C_CAMIF_REG_CIIMGEFF(camif->vp->offset));
vp                 92 drivers/media/platform/s3c-camif/camif-regs.c 	camif_write(camif, S3C_CAMIF_REG_CIIMGEFF(camif->vp->offset), cfg);
vp                151 drivers/media/platform/s3c-camif/camif-regs.c void camif_hw_clear_fifo_overflow(struct camif_vp *vp)
vp                153 drivers/media/platform/s3c-camif/camif-regs.c 	struct camif_dev *camif = vp->camif;
vp                157 drivers/media/platform/s3c-camif/camif-regs.c 	if (vp->id == 0)
vp                200 drivers/media/platform/s3c-camif/camif-regs.c void camif_hw_set_output_addr(struct camif_vp *vp,
vp                203 drivers/media/platform/s3c-camif/camif-regs.c 	struct camif_dev *camif = vp->camif;
vp                205 drivers/media/platform/s3c-camif/camif-regs.c 	camif_write(camif, S3C_CAMIF_REG_CIYSA(vp->id, i), paddr->y);
vp                207 drivers/media/platform/s3c-camif/camif-regs.c 		|| vp->id == VP_CODEC) {
vp                208 drivers/media/platform/s3c-camif/camif-regs.c 		camif_write(camif, S3C_CAMIF_REG_CICBSA(vp->id, i),
vp                210 drivers/media/platform/s3c-camif/camif-regs.c 		camif_write(camif, S3C_CAMIF_REG_CICRSA(vp->id, i),
vp                218 drivers/media/platform/s3c-camif/camif-regs.c static void camif_hw_set_out_dma_size(struct camif_vp *vp)
vp                220 drivers/media/platform/s3c-camif/camif-regs.c 	struct camif_frame *frame = &vp->out_frame;
vp                223 drivers/media/platform/s3c-camif/camif-regs.c 	cfg = camif_read(vp->camif, S3C_CAMIF_REG_CITRGFMT(vp->id, vp->offset));
vp                226 drivers/media/platform/s3c-camif/camif-regs.c 	camif_write(vp->camif, S3C_CAMIF_REG_CITRGFMT(vp->id, vp->offset), cfg);
vp                255 drivers/media/platform/s3c-camif/camif-regs.c void camif_hw_set_output_dma(struct camif_vp *vp)
vp                257 drivers/media/platform/s3c-camif/camif-regs.c 	struct camif_dev *camif = vp->camif;
vp                258 drivers/media/platform/s3c-camif/camif-regs.c 	struct camif_frame *frame = &vp->out_frame;
vp                259 drivers/media/platform/s3c-camif/camif-regs.c 	const struct camif_fmt *fmt = vp->out_fmt;
vp                263 drivers/media/platform/s3c-camif/camif-regs.c 	camif_hw_set_out_dma_size(vp);
vp                270 drivers/media/platform/s3c-camif/camif-regs.c 		camif_write(camif, S3C_CAMIF_REG_CISSY(vp->id), cfg);
vp                271 drivers/media/platform/s3c-camif/camif-regs.c 		camif_write(camif, S3C_CAMIF_REG_CISSCB(vp->id), cfg);
vp                272 drivers/media/platform/s3c-camif/camif-regs.c 		camif_write(camif, S3C_CAMIF_REG_CISSCR(vp->id), cfg);
vp                278 drivers/media/platform/s3c-camif/camif-regs.c 	cfg = camif_read(camif, S3C_CAMIF_REG_CICTRL(vp->id, vp->offset));
vp                284 drivers/media/platform/s3c-camif/camif-regs.c 	camif_write(camif, S3C_CAMIF_REG_CICTRL(vp->id, vp->offset), cfg);
vp                289 drivers/media/platform/s3c-camif/camif-regs.c void camif_hw_set_input_path(struct camif_vp *vp)
vp                291 drivers/media/platform/s3c-camif/camif-regs.c 	u32 cfg = camif_read(vp->camif, S3C_CAMIF_REG_MSCTRL(vp->id));
vp                293 drivers/media/platform/s3c-camif/camif-regs.c 	camif_write(vp->camif, S3C_CAMIF_REG_MSCTRL(vp->id), cfg);
vp                296 drivers/media/platform/s3c-camif/camif-regs.c void camif_hw_set_target_format(struct camif_vp *vp)
vp                298 drivers/media/platform/s3c-camif/camif-regs.c 	struct camif_dev *camif = vp->camif;
vp                299 drivers/media/platform/s3c-camif/camif-regs.c 	struct camif_frame *frame = &vp->out_frame;
vp                303 drivers/media/platform/s3c-camif/camif-regs.c 		 frame->f_height, vp->out_fmt->color);
vp                305 drivers/media/platform/s3c-camif/camif-regs.c 	cfg = camif_read(camif, S3C_CAMIF_REG_CITRGFMT(vp->id, vp->offset));
vp                312 drivers/media/platform/s3c-camif/camif-regs.c 		if (vp->out_fmt->color == IMG_FMT_YCBCR422P)
vp                316 drivers/media/platform/s3c-camif/camif-regs.c 		switch (vp->out_fmt->color) {
vp                333 drivers/media/platform/s3c-camif/camif-regs.c 	if (vp->rotation == 90 || vp->rotation == 270)
vp                337 drivers/media/platform/s3c-camif/camif-regs.c 	camif_write(camif, S3C_CAMIF_REG_CITRGFMT(vp->id, vp->offset), cfg);
vp                340 drivers/media/platform/s3c-camif/camif-regs.c 	cfg = camif_read(camif, S3C_CAMIF_REG_CITAREA(vp->id, vp->offset));
vp                343 drivers/media/platform/s3c-camif/camif-regs.c 	camif_write(camif, S3C_CAMIF_REG_CITAREA(vp->id, vp->offset), cfg);
vp                346 drivers/media/platform/s3c-camif/camif-regs.c void camif_hw_set_flip(struct camif_vp *vp)
vp                348 drivers/media/platform/s3c-camif/camif-regs.c 	u32 cfg = camif_read(vp->camif,
vp                349 drivers/media/platform/s3c-camif/camif-regs.c 				S3C_CAMIF_REG_CITRGFMT(vp->id, vp->offset));
vp                353 drivers/media/platform/s3c-camif/camif-regs.c 	if (vp->hflip)
vp                355 drivers/media/platform/s3c-camif/camif-regs.c 	if (vp->vflip)
vp                358 drivers/media/platform/s3c-camif/camif-regs.c 	camif_write(vp->camif, S3C_CAMIF_REG_CITRGFMT(vp->id, vp->offset), cfg);
vp                361 drivers/media/platform/s3c-camif/camif-regs.c static void camif_hw_set_prescaler(struct camif_vp *vp)
vp                363 drivers/media/platform/s3c-camif/camif-regs.c 	struct camif_dev *camif = vp->camif;
vp                364 drivers/media/platform/s3c-camif/camif-regs.c 	struct camif_scaler *sc = &vp->scaler;
vp                367 drivers/media/platform/s3c-camif/camif-regs.c 	addr = S3C_CAMIF_REG_CISCPRERATIO(vp->id, vp->offset);
vp                376 drivers/media/platform/s3c-camif/camif-regs.c 	camif_write(camif, S3C_CAMIF_REG_CISCPREDST(vp->id, vp->offset), cfg);
vp                379 drivers/media/platform/s3c-camif/camif-regs.c static void camif_s3c244x_hw_set_scaler(struct camif_vp *vp)
vp                381 drivers/media/platform/s3c-camif/camif-regs.c 	struct camif_dev *camif = vp->camif;
vp                382 drivers/media/platform/s3c-camif/camif-regs.c 	struct camif_scaler *scaler = &vp->scaler;
vp                383 drivers/media/platform/s3c-camif/camif-regs.c 	unsigned int color = vp->out_fmt->color;
vp                386 drivers/media/platform/s3c-camif/camif-regs.c 	camif_hw_set_prescaler(vp);
vp                388 drivers/media/platform/s3c-camif/camif-regs.c 	cfg = camif_read(camif, S3C_CAMIF_REG_CISCCTRL(vp->id, vp->offset));
vp                395 drivers/media/platform/s3c-camif/camif-regs.c 			if (vp->id == VP_CODEC)
vp                401 drivers/media/platform/s3c-camif/camif-regs.c 			if (vp->id == VP_CODEC)
vp                407 drivers/media/platform/s3c-camif/camif-regs.c 		if (vp->id == VP_CODEC)
vp                414 drivers/media/platform/s3c-camif/camif-regs.c 	if (vp->id == VP_PREVIEW) {
vp                420 drivers/media/platform/s3c-camif/camif-regs.c 	camif_write(camif, S3C_CAMIF_REG_CISCCTRL(vp->id, vp->offset), cfg);
vp                426 drivers/media/platform/s3c-camif/camif-regs.c static void camif_s3c64xx_hw_set_scaler(struct camif_vp *vp)
vp                428 drivers/media/platform/s3c-camif/camif-regs.c 	struct camif_dev *camif = vp->camif;
vp                429 drivers/media/platform/s3c-camif/camif-regs.c 	struct camif_scaler *scaler = &vp->scaler;
vp                430 drivers/media/platform/s3c-camif/camif-regs.c 	unsigned int color = vp->out_fmt->color;
vp                433 drivers/media/platform/s3c-camif/camif-regs.c 	camif_hw_set_prescaler(vp);
vp                435 drivers/media/platform/s3c-camif/camif-regs.c 	cfg = camif_read(camif, S3C_CAMIF_REG_CISCCTRL(vp->id, vp->offset));
vp                469 drivers/media/platform/s3c-camif/camif-regs.c 	camif_write(camif, S3C_CAMIF_REG_CISCCTRL(vp->id, vp->offset), cfg);
vp                475 drivers/media/platform/s3c-camif/camif-regs.c void camif_hw_set_scaler(struct camif_vp *vp)
vp                477 drivers/media/platform/s3c-camif/camif-regs.c 	unsigned int ip_rev = vp->camif->variant->ip_revision;
vp                480 drivers/media/platform/s3c-camif/camif-regs.c 		camif_s3c244x_hw_set_scaler(vp);
vp                482 drivers/media/platform/s3c-camif/camif-regs.c 		camif_s3c64xx_hw_set_scaler(vp);
vp                485 drivers/media/platform/s3c-camif/camif-regs.c void camif_hw_enable_scaler(struct camif_vp *vp, bool on)
vp                487 drivers/media/platform/s3c-camif/camif-regs.c 	u32 addr = S3C_CAMIF_REG_CISCCTRL(vp->id, vp->offset);
vp                490 drivers/media/platform/s3c-camif/camif-regs.c 	cfg = camif_read(vp->camif, addr);
vp                495 drivers/media/platform/s3c-camif/camif-regs.c 	camif_write(vp->camif, addr, cfg);
vp                498 drivers/media/platform/s3c-camif/camif-regs.c void camif_hw_set_lastirq(struct camif_vp *vp, int enable)
vp                500 drivers/media/platform/s3c-camif/camif-regs.c 	u32 addr = S3C_CAMIF_REG_CICTRL(vp->id, vp->offset);
vp                503 drivers/media/platform/s3c-camif/camif-regs.c 	cfg = camif_read(vp->camif, addr);
vp                508 drivers/media/platform/s3c-camif/camif-regs.c 	camif_write(vp->camif, addr, cfg);
vp                511 drivers/media/platform/s3c-camif/camif-regs.c void camif_hw_enable_capture(struct camif_vp *vp)
vp                513 drivers/media/platform/s3c-camif/camif-regs.c 	struct camif_dev *camif = vp->camif;
vp                516 drivers/media/platform/s3c-camif/camif-regs.c 	cfg = camif_read(camif, S3C_CAMIF_REG_CIIMGCPT(vp->offset));
vp                520 drivers/media/platform/s3c-camif/camif-regs.c 		cfg |= CIIMGCPT_CPT_FREN_ENABLE(vp->id);
vp                522 drivers/media/platform/s3c-camif/camif-regs.c 	if (vp->scaler.enable)
vp                523 drivers/media/platform/s3c-camif/camif-regs.c 		cfg |= CIIMGCPT_IMGCPTEN_SC(vp->id);
vp                528 drivers/media/platform/s3c-camif/camif-regs.c 	camif_write(camif, S3C_CAMIF_REG_CIIMGCPT(vp->offset), cfg);
vp                534 drivers/media/platform/s3c-camif/camif-regs.c void camif_hw_disable_capture(struct camif_vp *vp)
vp                536 drivers/media/platform/s3c-camif/camif-regs.c 	struct camif_dev *camif = vp->camif;
vp                539 drivers/media/platform/s3c-camif/camif-regs.c 	cfg = camif_read(camif, S3C_CAMIF_REG_CIIMGCPT(vp->offset));
vp                540 drivers/media/platform/s3c-camif/camif-regs.c 	cfg &= ~CIIMGCPT_IMGCPTEN_SC(vp->id);
vp                551 drivers/media/platform/s3c-camif/camif-regs.c 	camif_write(camif, S3C_CAMIF_REG_CIIMGCPT(vp->offset), cfg);
vp                241 drivers/media/platform/s3c-camif/camif-regs.h void camif_hw_clear_pending_irq(struct camif_vp *vp);
vp                242 drivers/media/platform/s3c-camif/camif-regs.h void camif_hw_clear_fifo_overflow(struct camif_vp *vp);
vp                243 drivers/media/platform/s3c-camif/camif-regs.h void camif_hw_set_lastirq(struct camif_vp *vp, int enable);
vp                244 drivers/media/platform/s3c-camif/camif-regs.h void camif_hw_set_input_path(struct camif_vp *vp);
vp                245 drivers/media/platform/s3c-camif/camif-regs.h void camif_hw_enable_scaler(struct camif_vp *vp, bool on);
vp                246 drivers/media/platform/s3c-camif/camif-regs.h void camif_hw_enable_capture(struct camif_vp *vp);
vp                247 drivers/media/platform/s3c-camif/camif-regs.h void camif_hw_disable_capture(struct camif_vp *vp);
vp                251 drivers/media/platform/s3c-camif/camif-regs.h void camif_hw_set_scaler(struct camif_vp *vp);
vp                252 drivers/media/platform/s3c-camif/camif-regs.h void camif_hw_set_flip(struct camif_vp *vp);
vp                253 drivers/media/platform/s3c-camif/camif-regs.h void camif_hw_set_output_dma(struct camif_vp *vp);
vp                254 drivers/media/platform/s3c-camif/camif-regs.h void camif_hw_set_target_format(struct camif_vp *vp);
vp                258 drivers/media/platform/s3c-camif/camif-regs.h void camif_hw_set_output_addr(struct camif_vp *vp, struct camif_addr *paddr,
vp                262 drivers/media/platform/s3c-camif/camif-regs.h static inline u32 camif_hw_get_status(struct camif_vp *vp)
vp                264 drivers/media/platform/s3c-camif/camif-regs.h 	return readl(vp->camif->io_base + S3C_CAMIF_REG_CISTATUS(vp->id,
vp                265 drivers/media/platform/s3c-camif/camif-regs.h 								vp->offset));
vp                344 drivers/media/usb/pvrusb2/pvrusb2-hdw.c static int ctrl_channelfreq_get(struct pvr2_ctrl *cptr,int *vp)
vp                348 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 		*vp = hdw->freqTable[hdw->freqProgSlot-1];
vp                350 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 		*vp = 0;
vp                377 drivers/media/usb/pvrusb2/pvrusb2-hdw.c static int ctrl_channelprog_get(struct pvr2_ctrl *cptr,int *vp)
vp                379 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 	*vp = cptr->hdw->freqProgSlot;
vp                392 drivers/media/usb/pvrusb2/pvrusb2-hdw.c static int ctrl_channel_get(struct pvr2_ctrl *cptr,int *vp)
vp                395 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 	*vp = hdw->freqSelector ? hdw->freqSlotRadio : hdw->freqSlotTelevision;
vp                417 drivers/media/usb/pvrusb2/pvrusb2-hdw.c static int ctrl_freq_get(struct pvr2_ctrl *cptr,int *vp)
vp                419 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 	*vp = pvr2_hdw_get_cur_freq(cptr->hdw);
vp                631 drivers/media/usb/pvrusb2/pvrusb2-hdw.c static int ctrl_vres_max_get(struct pvr2_ctrl *cptr,int *vp)
vp                635 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 		*vp = 480;
vp                637 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 		*vp = 576;
vp                642 drivers/media/usb/pvrusb2/pvrusb2-hdw.c static int ctrl_vres_min_get(struct pvr2_ctrl *cptr,int *vp)
vp                646 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 		*vp = 75;
vp                648 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 		*vp = 17;
vp                653 drivers/media/usb/pvrusb2/pvrusb2-hdw.c static int ctrl_get_input(struct pvr2_ctrl *cptr,int *vp)
vp                655 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 	*vp = cptr->hdw->input_val;
vp                682 drivers/media/usb/pvrusb2/pvrusb2-hdw.c static int ctrl_freq_max_get(struct pvr2_ctrl *cptr, int *vp)
vp                692 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 		*vp = TV_MAX_FREQ;
vp                700 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 	*vp = fv;
vp                704 drivers/media/usb/pvrusb2/pvrusb2-hdw.c static int ctrl_freq_min_get(struct pvr2_ctrl *cptr, int *vp)
vp                714 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 		*vp = TV_MIN_FREQ;
vp                722 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 	*vp = fv;
vp                737 drivers/media/usb/pvrusb2/pvrusb2-hdw.c static int ctrl_cx2341x_get(struct pvr2_ctrl *cptr,int *vp)
vp                750 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 	*vp = c1.value;
vp                810 drivers/media/usb/pvrusb2/pvrusb2-hdw.c static int ctrl_streamingenabled_get(struct pvr2_ctrl *cptr,int *vp)
vp                812 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 	*vp = cptr->hdw->state_pipeline_req;
vp                816 drivers/media/usb/pvrusb2/pvrusb2-hdw.c static int ctrl_masterstate_get(struct pvr2_ctrl *cptr,int *vp)
vp                818 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 	*vp = cptr->hdw->master_state;
vp                822 drivers/media/usb/pvrusb2/pvrusb2-hdw.c static int ctrl_hsm_get(struct pvr2_ctrl *cptr,int *vp)
vp                825 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 	*vp = PVR2_CVAL_HSM_FULL;
vp                826 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 	if (result < 0) *vp = PVR2_CVAL_HSM_FAIL;
vp                827 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 	if (result) *vp = PVR2_CVAL_HSM_HIGH;
vp                831 drivers/media/usb/pvrusb2/pvrusb2-hdw.c static int ctrl_stddetect_get(struct pvr2_ctrl *cptr, int *vp)
vp                833 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 	*vp = pvr2_hdw_get_detected_std(cptr->hdw);
vp                837 drivers/media/usb/pvrusb2/pvrusb2-hdw.c static int ctrl_stdavail_get(struct pvr2_ctrl *cptr,int *vp)
vp                839 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 	*vp = cptr->hdw->std_mask_avail;
vp                876 drivers/media/usb/pvrusb2/pvrusb2-hdw.c static int ctrl_stdcur_get(struct pvr2_ctrl *cptr,int *vp)
vp                878 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 	*vp = cptr->hdw->std_mask_cur;
vp                904 drivers/media/usb/pvrusb2/pvrusb2-hdw.c static int ctrl_signal_get(struct pvr2_ctrl *cptr,int *vp)
vp                908 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 	*vp = hdw->tuner_signal_info.signal;
vp                912 drivers/media/usb/pvrusb2/pvrusb2-hdw.c static int ctrl_audio_modes_present_get(struct pvr2_ctrl *cptr,int *vp)
vp                931 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 	*vp = val;
vp                962 drivers/media/usb/pvrusb2/pvrusb2-hdw.c static int ctrl_get_##vname(struct pvr2_ctrl *cptr,int *vp) \
vp                963 drivers/media/usb/pvrusb2/pvrusb2-hdw.c {*vp = cptr->hdw->vname##_val; return 0;} \
vp                868 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c static void pvr2_v4l2_destroy_no_lock(struct pvr2_v4l2 *vp)
vp                870 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	if (vp->dev_video) {
vp                871 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 		pvr2_v4l2_dev_destroy(vp->dev_video);
vp                872 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 		vp->dev_video = NULL;
vp                874 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	if (vp->dev_radio) {
vp                875 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 		pvr2_v4l2_dev_destroy(vp->dev_radio);
vp                876 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 		vp->dev_radio = NULL;
vp                879 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	pvr2_trace(PVR2_TRACE_STRUCT,"Destroying pvr2_v4l2 id=%p",vp);
vp                880 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	pvr2_channel_done(&vp->channel);
vp                881 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	kfree(vp);
vp                895 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	struct pvr2_v4l2 *vp;
vp                896 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	vp = container_of(chp,struct pvr2_v4l2,channel);
vp                897 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	if (!vp->channel.mc_head->disconnect_flag) return;
vp                898 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	pvr2_v4l2_dev_disassociate_parent(vp->dev_video);
vp                899 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	pvr2_v4l2_dev_disassociate_parent(vp->dev_radio);
vp                900 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	if (!list_empty(&vp->dev_video->devbase.fh_list) ||
vp                901 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	    (vp->dev_radio &&
vp                902 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	     !list_empty(&vp->dev_radio->devbase.fh_list))) {
vp                904 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 			   "pvr2_v4l2 internal_check exit-empty id=%p", vp);
vp                907 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	pvr2_v4l2_destroy_no_lock(vp);
vp                914 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	struct pvr2_v4l2 *vp = fhp->pdi->v4lp;
vp                940 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	if (vp->channel.mc_head->disconnect_flag &&
vp                941 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	    list_empty(&vp->dev_video->devbase.fh_list) &&
vp                942 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	    (!vp->dev_radio ||
vp                943 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	     list_empty(&vp->dev_radio->devbase.fh_list))) {
vp                944 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 		pvr2_v4l2_destroy_no_lock(vp);
vp                954 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	struct pvr2_v4l2 *vp;
vp                962 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	vp = dip->v4lp;
vp                963 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	hdw = vp->channel.hdw;
vp                983 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	pvr2_channel_init(&fhp->channel,vp->channel.mc_head);
vp               1185 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 			       struct pvr2_v4l2 *vp,
vp               1194 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	dip->v4lp = vp;
vp               1196 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	hdw = vp->channel.mc_head->hdw;
vp               1200 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 		dip->stream = &vp->channel.mc_head->video_stream;
vp               1218 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 		dip->stream = &vp->channel.mc_head->video_stream;
vp               1267 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	struct pvr2_v4l2 *vp;
vp               1269 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	vp = kzalloc(sizeof(*vp),GFP_KERNEL);
vp               1270 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	if (!vp) return vp;
vp               1271 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	pvr2_channel_init(&vp->channel,mnp);
vp               1272 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	pvr2_trace(PVR2_TRACE_STRUCT,"Creating pvr2_v4l2 id=%p",vp);
vp               1274 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	vp->channel.check_func = pvr2_v4l2_internal_check;
vp               1277 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	vp->dev_video = kzalloc(sizeof(*vp->dev_video),GFP_KERNEL);
vp               1278 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	if (!vp->dev_video) goto fail;
vp               1279 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	pvr2_v4l2_dev_init(vp->dev_video,vp,VFL_TYPE_GRABBER);
vp               1280 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	if (pvr2_hdw_get_input_available(vp->channel.mc_head->hdw) &
vp               1282 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 		vp->dev_radio = kzalloc(sizeof(*vp->dev_radio),GFP_KERNEL);
vp               1283 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 		if (!vp->dev_radio) goto fail;
vp               1284 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 		pvr2_v4l2_dev_init(vp->dev_radio,vp,VFL_TYPE_RADIO);
vp               1287 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	return vp;
vp               1289 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	pvr2_trace(PVR2_TRACE_STRUCT,"Failure creating pvr2_v4l2 id=%p",vp);
vp               1290 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	pvr2_v4l2_destroy_no_lock(vp);
vp                474 drivers/net/ethernet/3com/3c515.c 	struct corkscrew_private *vp = netdev_priv(dev);
vp                475 drivers/net/ethernet/3com/3c515.c 	list_del_init(&vp->list);
vp                480 drivers/net/ethernet/3com/3c515.c 	if (vp->dev)
vp                481 drivers/net/ethernet/3com/3c515.c 		pnp_device_detach(to_pnp_dev(vp->dev));
vp                581 drivers/net/ethernet/3com/3c515.c 	struct corkscrew_private *vp = netdev_priv(dev);
vp                589 drivers/net/ethernet/3com/3c515.c 		vp->dev = &idev->dev;
vp                600 drivers/net/ethernet/3com/3c515.c 	vp->product_name = "3c515";
vp                601 drivers/net/ethernet/3com/3c515.c 	vp->options = dev->mem_start;
vp                602 drivers/net/ethernet/3com/3c515.c 	vp->our_dev = dev;
vp                604 drivers/net/ethernet/3com/3c515.c 	if (!vp->options) {
vp                606 drivers/net/ethernet/3com/3c515.c 			vp->options = -1;
vp                608 drivers/net/ethernet/3com/3c515.c 			vp->options = options[card_number];
vp                611 drivers/net/ethernet/3com/3c515.c 	if (vp->options >= 0) {
vp                612 drivers/net/ethernet/3com/3c515.c 		vp->media_override = vp->options & 7;
vp                613 drivers/net/ethernet/3com/3c515.c 		if (vp->media_override == 2)
vp                614 drivers/net/ethernet/3com/3c515.c 			vp->media_override = 0;
vp                615 drivers/net/ethernet/3com/3c515.c 		vp->full_duplex = (vp->options & 8) ? 1 : 0;
vp                616 drivers/net/ethernet/3com/3c515.c 		vp->bus_master = (vp->options & 16) ? 1 : 0;
vp                618 drivers/net/ethernet/3com/3c515.c 		vp->media_override = 7;
vp                619 drivers/net/ethernet/3com/3c515.c 		vp->full_duplex = 0;
vp                620 drivers/net/ethernet/3com/3c515.c 		vp->bus_master = 0;
vp                623 drivers/net/ethernet/3com/3c515.c 	list_add(&vp->list, &root_corkscrew_dev);
vp                626 drivers/net/ethernet/3com/3c515.c 	pr_info("%s: 3Com %s at %#3x,", dev->name, vp->product_name, ioaddr);
vp                628 drivers/net/ethernet/3com/3c515.c 	spin_lock_init(&vp->lock);
vp                630 drivers/net/ethernet/3com/3c515.c 	timer_setup(&vp->timer, corkscrew_timer, 0);
vp                671 drivers/net/ethernet/3com/3c515.c 		vp->available_media = inw(ioaddr + Wn3_Options);
vp                682 drivers/net/ethernet/3com/3c515.c 		vp->default_media = (config & Xcvr) >> Xcvr_shift;
vp                683 drivers/net/ethernet/3com/3c515.c 		vp->autoselect = config & Autoselect ? 1 : 0;
vp                684 drivers/net/ethernet/3com/3c515.c 		dev->if_port = vp->default_media;
vp                686 drivers/net/ethernet/3com/3c515.c 	if (vp->media_override != 7) {
vp                688 drivers/net/ethernet/3com/3c515.c 		       vp->media_override,
vp                689 drivers/net/ethernet/3com/3c515.c 		       media_tbl[vp->media_override].name);
vp                690 drivers/net/ethernet/3com/3c515.c 		dev->if_port = vp->media_override;
vp                693 drivers/net/ethernet/3com/3c515.c 	vp->capabilities = eeprom[16];
vp                694 drivers/net/ethernet/3com/3c515.c 	vp->full_bus_master_tx = (vp->capabilities & 0x20) ? 1 : 0;
vp                697 drivers/net/ethernet/3com/3c515.c 	vp->full_bus_master_rx = (vp->capabilities & 0x20) ? 1 : 0;
vp                711 drivers/net/ethernet/3com/3c515.c 	struct corkscrew_private *vp = netdev_priv(dev);
vp                718 drivers/net/ethernet/3com/3c515.c 	if (vp->full_duplex)
vp                722 drivers/net/ethernet/3com/3c515.c 	if (vp->media_override != 7) {
vp                725 drivers/net/ethernet/3com/3c515.c 				dev->name, vp->media_override,
vp                726 drivers/net/ethernet/3com/3c515.c 				media_tbl[vp->media_override].name);
vp                727 drivers/net/ethernet/3com/3c515.c 		dev->if_port = vp->media_override;
vp                728 drivers/net/ethernet/3com/3c515.c 	} else if (vp->autoselect) {
vp                731 drivers/net/ethernet/3com/3c515.c 		while (!(vp->available_media & media_tbl[dev->if_port].mask))
vp                739 drivers/net/ethernet/3com/3c515.c 		dev->if_port = vp->default_media;
vp                763 drivers/net/ethernet/3com/3c515.c 	if (vp->capabilities == 0x11c7) {
vp                768 drivers/net/ethernet/3com/3c515.c 				vp->product_name, dev))
vp                773 drivers/net/ethernet/3com/3c515.c 			       vp->product_name, dev)) {
vp                778 drivers/net/ethernet/3com/3c515.c 		mod_timer(&vp->timer, jiffies + media_tbl[dev->if_port].wait);
vp                816 drivers/net/ethernet/3com/3c515.c 	if (vp->full_bus_master_rx) {	/* Boomerang bus master. */
vp                817 drivers/net/ethernet/3com/3c515.c 		vp->cur_rx = vp->dirty_rx = 0;
vp                823 drivers/net/ethernet/3com/3c515.c 				vp->rx_ring[i].next =
vp                824 drivers/net/ethernet/3com/3c515.c 				    isa_virt_to_bus(&vp->rx_ring[i + 1]);
vp                826 drivers/net/ethernet/3com/3c515.c 				vp->rx_ring[i].next = 0;
vp                827 drivers/net/ethernet/3com/3c515.c 			vp->rx_ring[i].status = 0;	/* Clear complete bit. */
vp                828 drivers/net/ethernet/3com/3c515.c 			vp->rx_ring[i].length = PKT_BUF_SZ | 0x80000000;
vp                830 drivers/net/ethernet/3com/3c515.c 			vp->rx_skbuff[i] = skb;
vp                834 drivers/net/ethernet/3com/3c515.c 			vp->rx_ring[i].addr = isa_virt_to_bus(skb->data);
vp                837 drivers/net/ethernet/3com/3c515.c 			vp->rx_ring[i - 1].next =
vp                838 drivers/net/ethernet/3com/3c515.c 				isa_virt_to_bus(&vp->rx_ring[0]);	/* Wrap the ring. */
vp                839 drivers/net/ethernet/3com/3c515.c 		outl(isa_virt_to_bus(&vp->rx_ring[0]), ioaddr + UpListPtr);
vp                841 drivers/net/ethernet/3com/3c515.c 	if (vp->full_bus_master_tx) {	/* Boomerang bus master Tx. */
vp                842 drivers/net/ethernet/3com/3c515.c 		vp->cur_tx = vp->dirty_tx = 0;
vp                846 drivers/net/ethernet/3com/3c515.c 			vp->tx_skbuff[i] = NULL;
vp                859 drivers/net/ethernet/3com/3c515.c 	     (vp->full_bus_master_tx ? DownComplete : TxAvailable) |
vp                860 drivers/net/ethernet/3com/3c515.c 	     (vp->full_bus_master_rx ? UpComplete : RxComplete) |
vp                861 drivers/net/ethernet/3com/3c515.c 	     (vp->bus_master ? DMADone : 0), ioaddr + EL3_CMD);
vp                866 drivers/net/ethernet/3com/3c515.c 	     | (vp->bus_master ? DMADone : 0) | UpComplete | DownComplete,
vp                875 drivers/net/ethernet/3com/3c515.c 	struct corkscrew_private *vp = from_timer(vp, t, timer);
vp                876 drivers/net/ethernet/3com/3c515.c 	struct net_device *dev = vp->our_dev;
vp                885 drivers/net/ethernet/3com/3c515.c 	spin_lock_irqsave(&vp->lock, flags);
vp                925 drivers/net/ethernet/3com/3c515.c 			while (!(vp->available_media & media_tbl[dev->if_port].mask));
vp                928 drivers/net/ethernet/3com/3c515.c 				dev->if_port = vp->default_media;
vp                938 drivers/net/ethernet/3com/3c515.c 				vp->timer.expires = jiffies + media_tbl[dev->if_port].wait;
vp                939 drivers/net/ethernet/3com/3c515.c 				add_timer(&vp->timer);
vp                956 drivers/net/ethernet/3com/3c515.c 	spin_unlock_irqrestore(&vp->lock, flags);
vp                967 drivers/net/ethernet/3com/3c515.c 	struct corkscrew_private *vp = netdev_priv(dev);
vp                979 drivers/net/ethernet/3com/3c515.c 	       vp->full_bus_master_tx, vp->tx_full, vp->dirty_tx,
vp                980 drivers/net/ethernet/3com/3c515.c 	       vp->cur_tx);
vp                982 drivers/net/ethernet/3com/3c515.c 	       &vp->tx_ring[0]);
vp                985 drivers/net/ethernet/3com/3c515.c 		       &vp->tx_ring[i],
vp                986 drivers/net/ethernet/3com/3c515.c 		       vp->tx_ring[i].length, vp->tx_ring[i].status);
vp               1004 drivers/net/ethernet/3com/3c515.c 	struct corkscrew_private *vp = netdev_priv(dev);
vp               1011 drivers/net/ethernet/3com/3c515.c 	if (vp->full_bus_master_tx) {	/* BOOMERANG bus-master */
vp               1013 drivers/net/ethernet/3com/3c515.c 		int entry = vp->cur_tx % TX_RING_SIZE;
vp               1018 drivers/net/ethernet/3com/3c515.c 		if (vp->tx_full)	/* No room to transmit with */
vp               1020 drivers/net/ethernet/3com/3c515.c 		if (vp->cur_tx != 0)
vp               1021 drivers/net/ethernet/3com/3c515.c 			prev_entry = &vp->tx_ring[(vp->cur_tx - 1) % TX_RING_SIZE];
vp               1026 drivers/net/ethernet/3com/3c515.c 				dev->name, vp->cur_tx);
vp               1028 drivers/net/ethernet/3com/3c515.c 		vp->tx_skbuff[entry] = skb;
vp               1029 drivers/net/ethernet/3com/3c515.c 		vp->tx_ring[entry].next = 0;
vp               1030 drivers/net/ethernet/3com/3c515.c 		vp->tx_ring[entry].addr = isa_virt_to_bus(skb->data);
vp               1031 drivers/net/ethernet/3com/3c515.c 		vp->tx_ring[entry].length = skb->len | 0x80000000;
vp               1032 drivers/net/ethernet/3com/3c515.c 		vp->tx_ring[entry].status = skb->len | 0x80000000;
vp               1034 drivers/net/ethernet/3com/3c515.c 		spin_lock_irqsave(&vp->lock, flags);
vp               1041 drivers/net/ethernet/3com/3c515.c 			prev_entry->next = isa_virt_to_bus(&vp->tx_ring[entry]);
vp               1043 drivers/net/ethernet/3com/3c515.c 			outl(isa_virt_to_bus(&vp->tx_ring[entry]),
vp               1048 drivers/net/ethernet/3com/3c515.c 		spin_unlock_irqrestore(&vp->lock, flags);
vp               1050 drivers/net/ethernet/3com/3c515.c 		vp->cur_tx++;
vp               1051 drivers/net/ethernet/3com/3c515.c 		if (vp->cur_tx - vp->dirty_tx > TX_RING_SIZE - 1)
vp               1052 drivers/net/ethernet/3com/3c515.c 			vp->tx_full = 1;
vp               1064 drivers/net/ethernet/3com/3c515.c 	if (vp->bus_master) {
vp               1068 drivers/net/ethernet/3com/3c515.c 		vp->tx_skb = skb;
vp               1332 drivers/net/ethernet/3com/3c515.c 	struct corkscrew_private *vp = netdev_priv(dev);
vp               1333 drivers/net/ethernet/3com/3c515.c 	int entry = vp->cur_rx % RX_RING_SIZE;
vp               1340 drivers/net/ethernet/3com/3c515.c 	while ((rx_status = vp->rx_ring[entry].status) & RxDComplete) {
vp               1374 drivers/net/ethernet/3com/3c515.c 					     isa_bus_to_virt(vp->rx_ring[entry].addr),
vp               1380 drivers/net/ethernet/3com/3c515.c 				skb = vp->rx_skbuff[entry];
vp               1381 drivers/net/ethernet/3com/3c515.c 				vp->rx_skbuff[entry] = NULL;
vp               1384 drivers/net/ethernet/3com/3c515.c 				if (isa_bus_to_virt(vp->rx_ring[entry].addr) != temp)
vp               1387 drivers/net/ethernet/3com/3c515.c 						isa_bus_to_virt(vp->rx_ring[entry].addr),
vp               1395 drivers/net/ethernet/3com/3c515.c 		entry = (++vp->cur_rx) % RX_RING_SIZE;
vp               1398 drivers/net/ethernet/3com/3c515.c 	for (; vp->cur_rx - vp->dirty_rx > 0; vp->dirty_rx++) {
vp               1400 drivers/net/ethernet/3com/3c515.c 		entry = vp->dirty_rx % RX_RING_SIZE;
vp               1401 drivers/net/ethernet/3com/3c515.c 		if (vp->rx_skbuff[entry] == NULL) {
vp               1406 drivers/net/ethernet/3com/3c515.c 			vp->rx_ring[entry].addr = isa_virt_to_bus(skb->data);
vp               1407 drivers/net/ethernet/3com/3c515.c 			vp->rx_skbuff[entry] = skb;
vp               1409 drivers/net/ethernet/3com/3c515.c 		vp->rx_ring[entry].status = 0;	/* Clear complete bit. */
vp               1416 drivers/net/ethernet/3com/3c515.c 	struct corkscrew_private *vp = netdev_priv(dev);
vp               1430 drivers/net/ethernet/3com/3c515.c 	del_timer_sync(&vp->timer);
vp               1448 drivers/net/ethernet/3com/3c515.c 	if (vp->full_bus_master_rx) {	/* Free Boomerang bus master Rx buffers. */
vp               1451 drivers/net/ethernet/3com/3c515.c 			if (vp->rx_skbuff[i]) {
vp               1452 drivers/net/ethernet/3com/3c515.c 				dev_kfree_skb(vp->rx_skbuff[i]);
vp               1453 drivers/net/ethernet/3com/3c515.c 				vp->rx_skbuff[i] = NULL;
vp               1456 drivers/net/ethernet/3com/3c515.c 	if (vp->full_bus_master_tx) {	/* Free Boomerang bus master Tx buffers. */
vp               1459 drivers/net/ethernet/3com/3c515.c 			if (vp->tx_skbuff[i]) {
vp               1460 drivers/net/ethernet/3com/3c515.c 				dev_kfree_skb(vp->tx_skbuff[i]);
vp               1461 drivers/net/ethernet/3com/3c515.c 				vp->tx_skbuff[i] = NULL;
vp               1470 drivers/net/ethernet/3com/3c515.c 	struct corkscrew_private *vp = netdev_priv(dev);
vp               1474 drivers/net/ethernet/3com/3c515.c 		spin_lock_irqsave(&vp->lock, flags);
vp               1476 drivers/net/ethernet/3com/3c515.c 		spin_unlock_irqrestore(&vp->lock, flags);
vp               1570 drivers/net/ethernet/3com/3c515.c 		struct corkscrew_private *vp;
vp               1572 drivers/net/ethernet/3com/3c515.c 		vp = list_entry(root_corkscrew_dev.next,
vp               1574 drivers/net/ethernet/3com/3c515.c 		dev = vp->our_dev;
vp                660 drivers/net/ethernet/3com/3c59x.c static void window_set(struct vortex_private *vp, int window)
vp                662 drivers/net/ethernet/3com/3c59x.c 	if (window != vp->window) {
vp                663 drivers/net/ethernet/3com/3c59x.c 		iowrite16(SelectWindow + window, vp->ioaddr + EL3_CMD);
vp                664 drivers/net/ethernet/3com/3c59x.c 		vp->window = window;
vp                670 drivers/net/ethernet/3com/3c59x.c window_read ## size(struct vortex_private *vp, int window, int addr)	\
vp                674 drivers/net/ethernet/3com/3c59x.c 	spin_lock_irqsave(&vp->window_lock, flags);			\
vp                675 drivers/net/ethernet/3com/3c59x.c 	window_set(vp, window);						\
vp                676 drivers/net/ethernet/3com/3c59x.c 	ret = ioread ## size(vp->ioaddr + addr);			\
vp                677 drivers/net/ethernet/3com/3c59x.c 	spin_unlock_irqrestore(&vp->window_lock, flags);		\
vp                681 drivers/net/ethernet/3com/3c59x.c window_write ## size(struct vortex_private *vp, u ## size value,	\
vp                685 drivers/net/ethernet/3com/3c59x.c 	spin_lock_irqsave(&vp->window_lock, flags);			\
vp                686 drivers/net/ethernet/3com/3c59x.c 	window_set(vp, window);						\
vp                687 drivers/net/ethernet/3com/3c59x.c 	iowrite ## size(value, vp->ioaddr + addr);			\
vp                688 drivers/net/ethernet/3com/3c59x.c 	spin_unlock_irqrestore(&vp->window_lock, flags);		\
vp                700 drivers/net/ethernet/3com/3c59x.c #define VORTEX_PCI(vp)							\
vp                701 drivers/net/ethernet/3com/3c59x.c 	((struct pci_dev *) (((vp)->gendev) ? DEVICE_PCI((vp)->gendev) : NULL))
vp                709 drivers/net/ethernet/3com/3c59x.c #define VORTEX_EISA(vp)							\
vp                710 drivers/net/ethernet/3com/3c59x.c 	((struct eisa_device *) (((vp)->gendev) ? DEVICE_EISA((vp)->gendev) : NULL))
vp                758 drivers/net/ethernet/3com/3c59x.c static void mdio_sync(struct vortex_private *vp, int bits);
vp                760 drivers/net/ethernet/3com/3c59x.c static void mdio_write(struct net_device *vp, int phy_id, int location, int value);
vp                930 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp;
vp                941 drivers/net/ethernet/3com/3c59x.c 	vp = netdev_priv(dev);
vp                942 drivers/net/ethernet/3com/3c59x.c 	ioaddr = vp->ioaddr;
vp               1091 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp;
vp               1118 drivers/net/ethernet/3com/3c59x.c 	dev = alloc_etherdev(sizeof(*vp));
vp               1124 drivers/net/ethernet/3com/3c59x.c 	vp = netdev_priv(dev);
vp               1147 drivers/net/ethernet/3com/3c59x.c 			vp->enable_wol = 1;
vp               1163 drivers/net/ethernet/3com/3c59x.c 	vp->ioaddr = ioaddr;
vp               1164 drivers/net/ethernet/3com/3c59x.c 	vp->large_frames = mtu > 1500;
vp               1165 drivers/net/ethernet/3com/3c59x.c 	vp->drv_flags = vci->drv_flags;
vp               1166 drivers/net/ethernet/3com/3c59x.c 	vp->has_nway = (vci->drv_flags & HAS_NWAY) ? 1 : 0;
vp               1167 drivers/net/ethernet/3com/3c59x.c 	vp->io_size = vci->io_size;
vp               1168 drivers/net/ethernet/3com/3c59x.c 	vp->card_idx = card_idx;
vp               1169 drivers/net/ethernet/3com/3c59x.c 	vp->window = -1;
vp               1199 drivers/net/ethernet/3com/3c59x.c 	spin_lock_init(&vp->lock);
vp               1200 drivers/net/ethernet/3com/3c59x.c 	spin_lock_init(&vp->mii_lock);
vp               1201 drivers/net/ethernet/3com/3c59x.c 	spin_lock_init(&vp->window_lock);
vp               1202 drivers/net/ethernet/3com/3c59x.c 	vp->gendev = gendev;
vp               1203 drivers/net/ethernet/3com/3c59x.c 	vp->mii.dev = dev;
vp               1204 drivers/net/ethernet/3com/3c59x.c 	vp->mii.mdio_read = mdio_read;
vp               1205 drivers/net/ethernet/3com/3c59x.c 	vp->mii.mdio_write = mdio_write;
vp               1206 drivers/net/ethernet/3com/3c59x.c 	vp->mii.phy_id_mask = 0x1f;
vp               1207 drivers/net/ethernet/3com/3c59x.c 	vp->mii.reg_num_mask = 0x1f;
vp               1210 drivers/net/ethernet/3com/3c59x.c 	vp->rx_ring = dma_alloc_coherent(gendev, sizeof(struct boom_rx_desc) * RX_RING_SIZE
vp               1212 drivers/net/ethernet/3com/3c59x.c 					   &vp->rx_ring_dma, GFP_KERNEL);
vp               1214 drivers/net/ethernet/3com/3c59x.c 	if (!vp->rx_ring)
vp               1217 drivers/net/ethernet/3com/3c59x.c 	vp->tx_ring = (struct boom_tx_desc *)(vp->rx_ring + RX_RING_SIZE);
vp               1218 drivers/net/ethernet/3com/3c59x.c 	vp->tx_ring_dma = vp->rx_ring_dma + sizeof(struct boom_rx_desc) * RX_RING_SIZE;
vp               1227 drivers/net/ethernet/3com/3c59x.c 	vp->media_override = 7;
vp               1229 drivers/net/ethernet/3com/3c59x.c 		vp->media_override = ((option & 7) == 2)  ?  0  :  option & 15;
vp               1230 drivers/net/ethernet/3com/3c59x.c 		if (vp->media_override != 7)
vp               1231 drivers/net/ethernet/3com/3c59x.c 			vp->medialock = 1;
vp               1232 drivers/net/ethernet/3com/3c59x.c 		vp->full_duplex = (option & 0x200) ? 1 : 0;
vp               1233 drivers/net/ethernet/3com/3c59x.c 		vp->bus_master = (option & 16) ? 1 : 0;
vp               1237 drivers/net/ethernet/3com/3c59x.c 		vp->full_duplex = 1;
vp               1239 drivers/net/ethernet/3com/3c59x.c 		vp->enable_wol = 1;
vp               1243 drivers/net/ethernet/3com/3c59x.c 			vp->full_duplex = 1;
vp               1245 drivers/net/ethernet/3com/3c59x.c 			vp->flow_ctrl = 1;
vp               1247 drivers/net/ethernet/3com/3c59x.c 			vp->enable_wol = 1;
vp               1250 drivers/net/ethernet/3com/3c59x.c 	vp->mii.force_media = vp->full_duplex;
vp               1251 drivers/net/ethernet/3com/3c59x.c 	vp->options = option;
vp               1265 drivers/net/ethernet/3com/3c59x.c 			window_write16(vp, base + i, 0, Wn0EepromCmd);
vp               1269 drivers/net/ethernet/3com/3c59x.c 				if ((window_read16(vp, 0, Wn0EepromCmd) &
vp               1273 drivers/net/ethernet/3com/3c59x.c 			eeprom[i] = window_read16(vp, 0, Wn0EepromData);
vp               1298 drivers/net/ethernet/3com/3c59x.c 		window_write8(vp, dev->dev_addr[i], 2, i);
vp               1307 drivers/net/ethernet/3com/3c59x.c 	step = (window_read8(vp, 4, Wn4_NetDiag) & 0x1e) >> 1;
vp               1318 drivers/net/ethernet/3com/3c59x.c 		vp->cb_fn_base = pci_iomap(pdev, 2, 0);
vp               1319 drivers/net/ethernet/3com/3c59x.c 		if (!vp->cb_fn_base) {
vp               1328 drivers/net/ethernet/3com/3c59x.c 				vp->cb_fn_base);
vp               1331 drivers/net/ethernet/3com/3c59x.c 		n = window_read16(vp, 2, Wn2_ResetOptions) & ~0x4010;
vp               1332 drivers/net/ethernet/3com/3c59x.c 		if (vp->drv_flags & INVERT_LED_PWR)
vp               1334 drivers/net/ethernet/3com/3c59x.c 		if (vp->drv_flags & INVERT_MII_PWR)
vp               1336 drivers/net/ethernet/3com/3c59x.c 		window_write16(vp, n, 2, Wn2_ResetOptions);
vp               1337 drivers/net/ethernet/3com/3c59x.c 		if (vp->drv_flags & WNO_XCVR_PWR) {
vp               1338 drivers/net/ethernet/3com/3c59x.c 			window_write16(vp, 0x0800, 0, 0);
vp               1343 drivers/net/ethernet/3com/3c59x.c 	vp->info1 = eeprom[13];
vp               1344 drivers/net/ethernet/3com/3c59x.c 	vp->info2 = eeprom[15];
vp               1345 drivers/net/ethernet/3com/3c59x.c 	vp->capabilities = eeprom[16];
vp               1347 drivers/net/ethernet/3com/3c59x.c 	if (vp->info1 & 0x8000) {
vp               1348 drivers/net/ethernet/3com/3c59x.c 		vp->full_duplex = 1;
vp               1356 drivers/net/ethernet/3com/3c59x.c 		vp->available_media = window_read16(vp, 3, Wn3_Options);
vp               1357 drivers/net/ethernet/3com/3c59x.c 		if ((vp->available_media & 0xff) == 0)		/* Broken 3c916 */
vp               1358 drivers/net/ethernet/3com/3c59x.c 			vp->available_media = 0x40;
vp               1359 drivers/net/ethernet/3com/3c59x.c 		config = window_read32(vp, 3, Wn3_Config);
vp               1362 drivers/net/ethernet/3com/3c59x.c 				config, window_read16(vp, 3, Wn3_Options));
vp               1371 drivers/net/ethernet/3com/3c59x.c 		vp->default_media = XCVR(config);
vp               1372 drivers/net/ethernet/3com/3c59x.c 		if (vp->default_media == XCVR_NWAY)
vp               1373 drivers/net/ethernet/3com/3c59x.c 			vp->has_nway = 1;
vp               1374 drivers/net/ethernet/3com/3c59x.c 		vp->autoselect = AUTOSELECT(config);
vp               1377 drivers/net/ethernet/3com/3c59x.c 	if (vp->media_override != 7) {
vp               1379 drivers/net/ethernet/3com/3c59x.c 				print_name, vp->media_override,
vp               1380 drivers/net/ethernet/3com/3c59x.c 				media_tbl[vp->media_override].name);
vp               1381 drivers/net/ethernet/3com/3c59x.c 		dev->if_port = vp->media_override;
vp               1383 drivers/net/ethernet/3com/3c59x.c 		dev->if_port = vp->default_media;
vp               1385 drivers/net/ethernet/3com/3c59x.c 	if ((vp->available_media & 0x40) || (vci->drv_flags & HAS_NWAY) ||
vp               1389 drivers/net/ethernet/3com/3c59x.c 		if (vp->drv_flags & EXTRA_PREAMBLE)
vp               1391 drivers/net/ethernet/3com/3c59x.c 		mdio_sync(vp, 32);
vp               1408 drivers/net/ethernet/3com/3c59x.c 				vp->phys[phy_idx++] = phyx;
vp               1420 drivers/net/ethernet/3com/3c59x.c 			vp->phys[0] = 24;
vp               1422 drivers/net/ethernet/3com/3c59x.c 			vp->advertising = mdio_read(dev, vp->phys[0], MII_ADVERTISE);
vp               1423 drivers/net/ethernet/3com/3c59x.c 			if (vp->full_duplex) {
vp               1425 drivers/net/ethernet/3com/3c59x.c 				vp->advertising &= ~0x02A0;
vp               1426 drivers/net/ethernet/3com/3c59x.c 				mdio_write(dev, vp->phys[0], 4, vp->advertising);
vp               1429 drivers/net/ethernet/3com/3c59x.c 		vp->mii.phy_id = vp->phys[0];
vp               1432 drivers/net/ethernet/3com/3c59x.c 	if (vp->capabilities & CapBusMaster) {
vp               1433 drivers/net/ethernet/3com/3c59x.c 		vp->full_bus_master_tx = 1;
vp               1436 drivers/net/ethernet/3com/3c59x.c 			(vp->info2 & 1) ? "early" : "whole-frame" );
vp               1438 drivers/net/ethernet/3com/3c59x.c 		vp->full_bus_master_rx = (vp->info2 & 1) ? 1 : 2;
vp               1439 drivers/net/ethernet/3com/3c59x.c 		vp->bus_master = 0;		/* AKPM: vortex only */
vp               1443 drivers/net/ethernet/3com/3c59x.c 	if (vp->full_bus_master_tx) {
vp               1447 drivers/net/ethernet/3com/3c59x.c 		    ((hw_checksums[card_idx] == -1 && (vp->drv_flags & HAS_HWCKSM)) ||
vp               1465 drivers/net/ethernet/3com/3c59x.c 		vp->pm_state_valid = 1;
vp               1477 drivers/net/ethernet/3com/3c59x.c 		vp->rx_ring, vp->rx_ring_dma);
vp               1488 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               1489 drivers/net/ethernet/3com/3c59x.c 	void __iomem *ioaddr = vp->ioaddr;
vp               1515 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               1518 drivers/net/ethernet/3com/3c59x.c 		dev->name, (vp->full_duplex) ? "full" : "half");
vp               1521 drivers/net/ethernet/3com/3c59x.c 	window_write16(vp,
vp               1522 drivers/net/ethernet/3com/3c59x.c 		       ((vp->info1 & 0x8000) || vp->full_duplex ? 0x20 : 0) |
vp               1523 drivers/net/ethernet/3com/3c59x.c 		       (vp->large_frames ? 0x40 : 0) |
vp               1524 drivers/net/ethernet/3com/3c59x.c 		       ((vp->full_duplex && vp->flow_ctrl && vp->partner_flow_ctrl) ?
vp               1531 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               1537 drivers/net/ethernet/3com/3c59x.c 	if (mii_check_media(&vp->mii, ok_to_print, init)) {
vp               1538 drivers/net/ethernet/3com/3c59x.c 		vp->full_duplex = vp->mii.full_duplex;
vp               1548 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               1549 drivers/net/ethernet/3com/3c59x.c 	void __iomem *ioaddr = vp->ioaddr;
vp               1553 drivers/net/ethernet/3com/3c59x.c 	if (VORTEX_PCI(vp)) {
vp               1554 drivers/net/ethernet/3com/3c59x.c 		pci_set_power_state(VORTEX_PCI(vp), PCI_D0);	/* Go active */
vp               1555 drivers/net/ethernet/3com/3c59x.c 		if (vp->pm_state_valid)
vp               1556 drivers/net/ethernet/3com/3c59x.c 			pci_restore_state(VORTEX_PCI(vp));
vp               1557 drivers/net/ethernet/3com/3c59x.c 		err = pci_enable_device(VORTEX_PCI(vp));
vp               1565 drivers/net/ethernet/3com/3c59x.c 	config = window_read32(vp, 3, Wn3_Config);
vp               1567 drivers/net/ethernet/3com/3c59x.c 	if (vp->media_override != 7) {
vp               1569 drivers/net/ethernet/3com/3c59x.c 			   dev->name, vp->media_override,
vp               1570 drivers/net/ethernet/3com/3c59x.c 			   media_tbl[vp->media_override].name);
vp               1571 drivers/net/ethernet/3com/3c59x.c 		dev->if_port = vp->media_override;
vp               1572 drivers/net/ethernet/3com/3c59x.c 	} else if (vp->autoselect) {
vp               1573 drivers/net/ethernet/3com/3c59x.c 		if (vp->has_nway) {
vp               1581 drivers/net/ethernet/3com/3c59x.c 			while (! (vp->available_media & media_tbl[dev->if_port].mask))
vp               1588 drivers/net/ethernet/3com/3c59x.c 		dev->if_port = vp->default_media;
vp               1594 drivers/net/ethernet/3com/3c59x.c 	timer_setup(&vp->timer, vortex_timer, 0);
vp               1595 drivers/net/ethernet/3com/3c59x.c 	mod_timer(&vp->timer, RUN_AT(media_tbl[dev->if_port].wait));
vp               1601 drivers/net/ethernet/3com/3c59x.c 	vp->full_duplex = vp->mii.force_media;
vp               1605 drivers/net/ethernet/3com/3c59x.c 	window_write32(vp, config, 3, Wn3_Config);
vp               1608 drivers/net/ethernet/3com/3c59x.c 		mii_reg1 = mdio_read(dev, vp->phys[0], MII_BMSR);
vp               1609 drivers/net/ethernet/3com/3c59x.c 		mii_reg5 = mdio_read(dev, vp->phys[0], MII_LPA);
vp               1610 drivers/net/ethernet/3com/3c59x.c 		vp->partner_flow_ctrl = ((mii_reg5 & 0x0400) != 0);
vp               1611 drivers/net/ethernet/3com/3c59x.c 		vp->mii.full_duplex = vp->full_duplex;
vp               1629 drivers/net/ethernet/3com/3c59x.c 			   dev->name, dev->irq, window_read16(vp, 4, Wn4_Media));
vp               1634 drivers/net/ethernet/3com/3c59x.c 		window_write8(vp, dev->dev_addr[i], 2, i);
vp               1636 drivers/net/ethernet/3com/3c59x.c 		window_write16(vp, 0, 2, i);
vp               1638 drivers/net/ethernet/3com/3c59x.c 	if (vp->cb_fn_base) {
vp               1639 drivers/net/ethernet/3com/3c59x.c 		unsigned short n = window_read16(vp, 2, Wn2_ResetOptions) & ~0x4010;
vp               1640 drivers/net/ethernet/3com/3c59x.c 		if (vp->drv_flags & INVERT_LED_PWR)
vp               1642 drivers/net/ethernet/3com/3c59x.c 		if (vp->drv_flags & INVERT_MII_PWR)
vp               1644 drivers/net/ethernet/3com/3c59x.c 		window_write16(vp, n, 2, Wn2_ResetOptions);
vp               1651 drivers/net/ethernet/3com/3c59x.c 		window_write16(vp,
vp               1652 drivers/net/ethernet/3com/3c59x.c 			       (window_read16(vp, 4, Wn4_Media) &
vp               1661 drivers/net/ethernet/3com/3c59x.c 		window_read8(vp, 6, i);
vp               1662 drivers/net/ethernet/3com/3c59x.c 	window_read16(vp, 6, 10);
vp               1663 drivers/net/ethernet/3com/3c59x.c 	window_read16(vp, 6, 12);
vp               1665 drivers/net/ethernet/3com/3c59x.c 	window_read8(vp, 4, 12);
vp               1667 drivers/net/ethernet/3com/3c59x.c 	window_write16(vp, 0x0040, 4, Wn4_NetDiag);
vp               1669 drivers/net/ethernet/3com/3c59x.c 	if (vp->full_bus_master_rx) { /* Boomerang bus master. */
vp               1670 drivers/net/ethernet/3com/3c59x.c 		vp->cur_rx = 0;
vp               1674 drivers/net/ethernet/3com/3c59x.c 		iowrite32(vp->rx_ring_dma, ioaddr + UpListPtr);
vp               1676 drivers/net/ethernet/3com/3c59x.c 	if (vp->full_bus_master_tx) { 		/* Boomerang bus master Tx. */
vp               1677 drivers/net/ethernet/3com/3c59x.c 		vp->cur_tx = vp->dirty_tx = 0;
vp               1678 drivers/net/ethernet/3com/3c59x.c 		if (vp->drv_flags & IS_BOOMERANG)
vp               1682 drivers/net/ethernet/3com/3c59x.c 			vp->rx_ring[i].status = 0;
vp               1684 drivers/net/ethernet/3com/3c59x.c 			vp->tx_skbuff[i] = NULL;
vp               1696 drivers/net/ethernet/3com/3c59x.c 	vp->status_enable = SetStatusEnb | HostError|IntReq|StatsFull|TxComplete|
vp               1697 drivers/net/ethernet/3com/3c59x.c 		(vp->full_bus_master_tx ? DownComplete : TxAvailable) |
vp               1698 drivers/net/ethernet/3com/3c59x.c 		(vp->full_bus_master_rx ? UpComplete : RxComplete) |
vp               1699 drivers/net/ethernet/3com/3c59x.c 		(vp->bus_master ? DMADone : 0);
vp               1700 drivers/net/ethernet/3com/3c59x.c 	vp->intr_enable = SetIntrEnb | IntLatch | TxAvailable |
vp               1701 drivers/net/ethernet/3com/3c59x.c 		(vp->full_bus_master_rx ? 0 : RxComplete) |
vp               1703 drivers/net/ethernet/3com/3c59x.c 		| (vp->bus_master ? DMADone : 0) | UpComplete | DownComplete;
vp               1704 drivers/net/ethernet/3com/3c59x.c 	iowrite16(vp->status_enable, ioaddr + EL3_CMD);
vp               1708 drivers/net/ethernet/3com/3c59x.c 	iowrite16(vp->intr_enable, ioaddr + EL3_CMD);
vp               1709 drivers/net/ethernet/3com/3c59x.c 	if (vp->cb_fn_base)			/* The PCMCIA people are idiots.  */
vp               1710 drivers/net/ethernet/3com/3c59x.c 		iowrite32(0x8000, vp->cb_fn_base + 4);
vp               1720 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               1731 drivers/net/ethernet/3com/3c59x.c 	if (vp->full_bus_master_rx) { /* Boomerang bus master. */
vp               1736 drivers/net/ethernet/3com/3c59x.c 			vp->rx_ring[i].next = cpu_to_le32(vp->rx_ring_dma + sizeof(struct boom_rx_desc) * (i+1));
vp               1737 drivers/net/ethernet/3com/3c59x.c 			vp->rx_ring[i].status = 0;	/* Clear complete bit. */
vp               1738 drivers/net/ethernet/3com/3c59x.c 			vp->rx_ring[i].length = cpu_to_le32(PKT_BUF_SZ | LAST_FRAG);
vp               1742 drivers/net/ethernet/3com/3c59x.c 			vp->rx_skbuff[i] = skb;
vp               1747 drivers/net/ethernet/3com/3c59x.c 			dma = dma_map_single(vp->gendev, skb->data,
vp               1749 drivers/net/ethernet/3com/3c59x.c 			if (dma_mapping_error(vp->gendev, dma))
vp               1751 drivers/net/ethernet/3com/3c59x.c 			vp->rx_ring[i].addr = cpu_to_le32(dma);
vp               1759 drivers/net/ethernet/3com/3c59x.c 		vp->rx_ring[i-1].next = cpu_to_le32(vp->rx_ring_dma);
vp               1768 drivers/net/ethernet/3com/3c59x.c 		if (vp->rx_skbuff[i]) {
vp               1769 drivers/net/ethernet/3com/3c59x.c 			dev_kfree_skb(vp->rx_skbuff[i]);
vp               1770 drivers/net/ethernet/3com/3c59x.c 			vp->rx_skbuff[i] = NULL;
vp               1784 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = from_timer(vp, t, timer);
vp               1785 drivers/net/ethernet/3com/3c59x.c 	struct net_device *dev = vp->mii.dev;
vp               1786 drivers/net/ethernet/3com/3c59x.c 	void __iomem *ioaddr = vp->ioaddr;
vp               1797 drivers/net/ethernet/3com/3c59x.c 	media_status = window_read16(vp, 4, Wn4_Media);
vp               1830 drivers/net/ethernet/3com/3c59x.c 	if (vp->medialock)
vp               1836 drivers/net/ethernet/3com/3c59x.c 		spin_lock_irq(&vp->lock);
vp               1840 drivers/net/ethernet/3com/3c59x.c 		} while ( ! (vp->available_media & media_tbl[dev->if_port].mask));
vp               1842 drivers/net/ethernet/3com/3c59x.c 		  dev->if_port = vp->default_media;
vp               1852 drivers/net/ethernet/3com/3c59x.c 		window_write16(vp,
vp               1857 drivers/net/ethernet/3com/3c59x.c 		config = window_read32(vp, 3, Wn3_Config);
vp               1859 drivers/net/ethernet/3com/3c59x.c 		window_write32(vp, config, 3, Wn3_Config);
vp               1867 drivers/net/ethernet/3com/3c59x.c 		spin_unlock_irq(&vp->lock);
vp               1875 drivers/net/ethernet/3com/3c59x.c 	mod_timer(&vp->timer, RUN_AT(next_tick));
vp               1876 drivers/net/ethernet/3com/3c59x.c 	if (vp->deferred)
vp               1882 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               1883 drivers/net/ethernet/3com/3c59x.c 	void __iomem *ioaddr = vp->ioaddr;
vp               1889 drivers/net/ethernet/3com/3c59x.c 			window_read16(vp, 4, Wn4_NetDiag),
vp               1890 drivers/net/ethernet/3com/3c59x.c 			window_read16(vp, 4, Wn4_Media),
vp               1892 drivers/net/ethernet/3com/3c59x.c 			window_read16(vp, 4, Wn4_FIFODiag));
vp               1910 drivers/net/ethernet/3com/3c59x.c 	if (vp->full_bus_master_tx) {
vp               1912 drivers/net/ethernet/3com/3c59x.c 		if (vp->cur_tx - vp->dirty_tx > 0  &&  ioread32(ioaddr + DownListPtr) == 0)
vp               1913 drivers/net/ethernet/3com/3c59x.c 			iowrite32(vp->tx_ring_dma + (vp->dirty_tx % TX_RING_SIZE) * sizeof(struct boom_tx_desc),
vp               1915 drivers/net/ethernet/3com/3c59x.c 		if (vp->cur_tx - vp->dirty_tx < TX_RING_SIZE) {
vp               1919 drivers/net/ethernet/3com/3c59x.c 		if (vp->drv_flags & IS_BOOMERANG)
vp               1939 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               1940 drivers/net/ethernet/3com/3c59x.c 	void __iomem *ioaddr = vp->ioaddr;
vp               1963 drivers/net/ethernet/3com/3c59x.c 		if (tx_status & 0x08)  vp->xstats.tx_max_collisions++;
vp               1967 drivers/net/ethernet/3com/3c59x.c 		} else if ((tx_status & 0x08) && (vp->drv_flags & MAX_COLLISION_RESET))  {	/* maxCollisions */
vp               1990 drivers/net/ethernet/3com/3c59x.c 				  (window_read16(vp, 5, 10) & ~StatsFull),
vp               1992 drivers/net/ethernet/3com/3c59x.c 			vp->intr_enable &= ~StatsFull;
vp               1997 drivers/net/ethernet/3com/3c59x.c 		iowrite16(vp->status_enable, ioaddr + EL3_CMD);
vp               1998 drivers/net/ethernet/3com/3c59x.c 		iowrite16(vp->intr_enable, ioaddr + EL3_CMD);
vp               2002 drivers/net/ethernet/3com/3c59x.c 		fifo_diag = window_read16(vp, 4, Wn4_FIFODiag);
vp               2006 drivers/net/ethernet/3com/3c59x.c 		if (vp->full_bus_master_tx) {
vp               2035 drivers/net/ethernet/3com/3c59x.c 		if (!vp->full_bus_master_tx)
vp               2043 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               2044 drivers/net/ethernet/3com/3c59x.c 	void __iomem *ioaddr = vp->ioaddr;
vp               2049 drivers/net/ethernet/3com/3c59x.c 	if (vp->bus_master) {
vp               2052 drivers/net/ethernet/3com/3c59x.c 		vp->tx_skb_dma = dma_map_single(vp->gendev, skb->data, len,
vp               2054 drivers/net/ethernet/3com/3c59x.c 		if (dma_mapping_error(vp->gendev, vp->tx_skb_dma)) {
vp               2060 drivers/net/ethernet/3com/3c59x.c 		spin_lock_irq(&vp->window_lock);
vp               2061 drivers/net/ethernet/3com/3c59x.c 		window_set(vp, 7);
vp               2062 drivers/net/ethernet/3com/3c59x.c 		iowrite32(vp->tx_skb_dma, ioaddr + Wn7_MasterAddr);
vp               2064 drivers/net/ethernet/3com/3c59x.c 		spin_unlock_irq(&vp->window_lock);
vp               2065 drivers/net/ethernet/3com/3c59x.c 		vp->tx_skb = skb;
vp               2111 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               2112 drivers/net/ethernet/3com/3c59x.c 	void __iomem *ioaddr = vp->ioaddr;
vp               2114 drivers/net/ethernet/3com/3c59x.c 	int entry = vp->cur_tx % TX_RING_SIZE;
vp               2116 drivers/net/ethernet/3com/3c59x.c 	struct boom_tx_desc *prev_entry = &vp->tx_ring[(vp->cur_tx-1) % TX_RING_SIZE];
vp               2123 drivers/net/ethernet/3com/3c59x.c 			   dev->name, vp->cur_tx);
vp               2132 drivers/net/ethernet/3com/3c59x.c 	if (vp->handling_irq)
vp               2135 drivers/net/ethernet/3com/3c59x.c 	if (vp->cur_tx - vp->dirty_tx >= TX_RING_SIZE) {
vp               2143 drivers/net/ethernet/3com/3c59x.c 	vp->tx_skbuff[entry] = skb;
vp               2145 drivers/net/ethernet/3com/3c59x.c 	vp->tx_ring[entry].next = 0;
vp               2148 drivers/net/ethernet/3com/3c59x.c 			vp->tx_ring[entry].status = cpu_to_le32(skb->len | TxIntrUploaded);
vp               2150 drivers/net/ethernet/3com/3c59x.c 			vp->tx_ring[entry].status = cpu_to_le32(skb->len | TxIntrUploaded | AddTCPChksum | AddUDPChksum);
vp               2153 drivers/net/ethernet/3com/3c59x.c 		dma_addr = dma_map_single(vp->gendev, skb->data, skb->len,
vp               2155 drivers/net/ethernet/3com/3c59x.c 		if (dma_mapping_error(vp->gendev, dma_addr))
vp               2158 drivers/net/ethernet/3com/3c59x.c 		vp->tx_ring[entry].frag[0].addr = cpu_to_le32(dma_addr);
vp               2159 drivers/net/ethernet/3com/3c59x.c 		vp->tx_ring[entry].frag[0].length = cpu_to_le32(skb->len | LAST_FRAG);
vp               2163 drivers/net/ethernet/3com/3c59x.c 		dma_addr = dma_map_single(vp->gendev, skb->data,
vp               2165 drivers/net/ethernet/3com/3c59x.c 		if (dma_mapping_error(vp->gendev, dma_addr))
vp               2168 drivers/net/ethernet/3com/3c59x.c 		vp->tx_ring[entry].frag[0].addr = cpu_to_le32(dma_addr);
vp               2169 drivers/net/ethernet/3com/3c59x.c 		vp->tx_ring[entry].frag[0].length = cpu_to_le32(skb_headlen(skb));
vp               2174 drivers/net/ethernet/3com/3c59x.c 			dma_addr = skb_frag_dma_map(vp->gendev, frag,
vp               2178 drivers/net/ethernet/3com/3c59x.c 			if (dma_mapping_error(vp->gendev, dma_addr)) {
vp               2180 drivers/net/ethernet/3com/3c59x.c 					dma_unmap_page(vp->gendev,
vp               2181 drivers/net/ethernet/3com/3c59x.c 						       le32_to_cpu(vp->tx_ring[entry].frag[i+1].addr),
vp               2182 drivers/net/ethernet/3com/3c59x.c 						       le32_to_cpu(vp->tx_ring[entry].frag[i+1].length),
vp               2185 drivers/net/ethernet/3com/3c59x.c 				dma_unmap_single(vp->gendev,
vp               2186 drivers/net/ethernet/3com/3c59x.c 						 le32_to_cpu(vp->tx_ring[entry].frag[0].addr),
vp               2187 drivers/net/ethernet/3com/3c59x.c 						 le32_to_cpu(vp->tx_ring[entry].frag[0].length),
vp               2193 drivers/net/ethernet/3com/3c59x.c 			vp->tx_ring[entry].frag[i+1].addr =
vp               2197 drivers/net/ethernet/3com/3c59x.c 					vp->tx_ring[entry].frag[i+1].length = cpu_to_le32(skb_frag_size(frag)|LAST_FRAG);
vp               2199 drivers/net/ethernet/3com/3c59x.c 					vp->tx_ring[entry].frag[i+1].length = cpu_to_le32(skb_frag_size(frag));
vp               2203 drivers/net/ethernet/3com/3c59x.c 	dma_addr = dma_map_single(vp->gendev, skb->data, skb->len, DMA_TO_DEVICE);
vp               2204 drivers/net/ethernet/3com/3c59x.c 	if (dma_mapping_error(vp->gendev, dma_addr))
vp               2206 drivers/net/ethernet/3com/3c59x.c 	vp->tx_ring[entry].addr = cpu_to_le32(dma_addr);
vp               2207 drivers/net/ethernet/3com/3c59x.c 	vp->tx_ring[entry].length = cpu_to_le32(skb->len | LAST_FRAG);
vp               2208 drivers/net/ethernet/3com/3c59x.c 	vp->tx_ring[entry].status = cpu_to_le32(skb->len | TxIntrUploaded);
vp               2211 drivers/net/ethernet/3com/3c59x.c 	spin_lock_irqsave(&vp->lock, flags);
vp               2214 drivers/net/ethernet/3com/3c59x.c 	prev_entry->next = cpu_to_le32(vp->tx_ring_dma + entry * sizeof(struct boom_tx_desc));
vp               2216 drivers/net/ethernet/3com/3c59x.c 		iowrite32(vp->tx_ring_dma + entry * sizeof(struct boom_tx_desc), ioaddr + DownListPtr);
vp               2217 drivers/net/ethernet/3com/3c59x.c 		vp->queued_packet++;
vp               2220 drivers/net/ethernet/3com/3c59x.c 	vp->cur_tx++;
vp               2223 drivers/net/ethernet/3com/3c59x.c 	if (vp->cur_tx - vp->dirty_tx > TX_RING_SIZE - 1) {
vp               2235 drivers/net/ethernet/3com/3c59x.c 	spin_unlock_irqrestore(&vp->lock, flags);
vp               2239 drivers/net/ethernet/3com/3c59x.c 	dev_err(vp->gendev, "Error mapping dma buffer\n");
vp               2254 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               2261 drivers/net/ethernet/3com/3c59x.c 	ioaddr = vp->ioaddr;
vp               2273 drivers/net/ethernet/3com/3c59x.c 		status |= vp->deferred;
vp               2274 drivers/net/ethernet/3com/3c59x.c 		vp->deferred = 0;
vp               2284 drivers/net/ethernet/3com/3c59x.c 	spin_lock(&vp->window_lock);
vp               2285 drivers/net/ethernet/3com/3c59x.c 	window_set(vp, 7);
vp               2305 drivers/net/ethernet/3com/3c59x.c 				dma_unmap_single(vp->gendev, vp->tx_skb_dma, (vp->tx_skb->len + 3) & ~3, DMA_TO_DEVICE);
vp               2307 drivers/net/ethernet/3com/3c59x.c 				bytes_compl += vp->tx_skb->len;
vp               2308 drivers/net/ethernet/3com/3c59x.c 				dev_consume_skb_irq(vp->tx_skb); /* Release the transferred buffer */
vp               2328 drivers/net/ethernet/3com/3c59x.c 			spin_unlock(&vp->window_lock);
vp               2330 drivers/net/ethernet/3com/3c59x.c 			spin_lock(&vp->window_lock);
vp               2331 drivers/net/ethernet/3com/3c59x.c 			window_set(vp, 7);
vp               2339 drivers/net/ethernet/3com/3c59x.c 				vp->deferred |= status;
vp               2340 drivers/net/ethernet/3com/3c59x.c 				iowrite16(SetStatusEnb | (~vp->deferred & vp->status_enable),
vp               2342 drivers/net/ethernet/3com/3c59x.c 				iowrite16(AckIntr | (vp->deferred & 0x7ff), ioaddr + EL3_CMD);
vp               2345 drivers/net/ethernet/3com/3c59x.c 			mod_timer(&vp->timer, jiffies + 1*HZ);
vp               2353 drivers/net/ethernet/3com/3c59x.c 	spin_unlock(&vp->window_lock);
vp               2370 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               2377 drivers/net/ethernet/3com/3c59x.c 	ioaddr = vp->ioaddr;
vp               2379 drivers/net/ethernet/3com/3c59x.c 	vp->handling_irq = 1;
vp               2397 drivers/net/ethernet/3com/3c59x.c 		status |= vp->deferred;
vp               2398 drivers/net/ethernet/3com/3c59x.c 		vp->deferred = 0;
vp               2416 drivers/net/ethernet/3com/3c59x.c 			unsigned int dirty_tx = vp->dirty_tx;
vp               2419 drivers/net/ethernet/3com/3c59x.c 			while (vp->cur_tx - dirty_tx > 0) {
vp               2423 drivers/net/ethernet/3com/3c59x.c 					vp->tx_ring_dma + entry * sizeof(struct boom_tx_desc))
vp               2426 drivers/net/ethernet/3com/3c59x.c 				if ((vp->tx_ring[entry].status & DN_COMPLETE) == 0)
vp               2430 drivers/net/ethernet/3com/3c59x.c 				if (vp->tx_skbuff[entry]) {
vp               2431 drivers/net/ethernet/3com/3c59x.c 					struct sk_buff *skb = vp->tx_skbuff[entry];
vp               2434 drivers/net/ethernet/3com/3c59x.c 					dma_unmap_single(vp->gendev,
vp               2435 drivers/net/ethernet/3com/3c59x.c 							le32_to_cpu(vp->tx_ring[entry].frag[0].addr),
vp               2436 drivers/net/ethernet/3com/3c59x.c 							le32_to_cpu(vp->tx_ring[entry].frag[0].length)&0xFFF,
vp               2440 drivers/net/ethernet/3com/3c59x.c 							dma_unmap_page(vp->gendev,
vp               2441 drivers/net/ethernet/3com/3c59x.c 											 le32_to_cpu(vp->tx_ring[entry].frag[i].addr),
vp               2442 drivers/net/ethernet/3com/3c59x.c 											 le32_to_cpu(vp->tx_ring[entry].frag[i].length)&0xFFF,
vp               2445 drivers/net/ethernet/3com/3c59x.c 					dma_unmap_single(vp->gendev,
vp               2446 drivers/net/ethernet/3com/3c59x.c 						le32_to_cpu(vp->tx_ring[entry].addr), skb->len, DMA_TO_DEVICE);
vp               2451 drivers/net/ethernet/3com/3c59x.c 					vp->tx_skbuff[entry] = NULL;
vp               2458 drivers/net/ethernet/3com/3c59x.c 			vp->dirty_tx = dirty_tx;
vp               2459 drivers/net/ethernet/3com/3c59x.c 			if (vp->cur_tx - dirty_tx <= TX_RING_SIZE - 1) {
vp               2475 drivers/net/ethernet/3com/3c59x.c 				vp->deferred |= status;
vp               2476 drivers/net/ethernet/3com/3c59x.c 				iowrite16(SetStatusEnb | (~vp->deferred & vp->status_enable),
vp               2478 drivers/net/ethernet/3com/3c59x.c 				iowrite16(AckIntr | (vp->deferred & 0x7ff), ioaddr + EL3_CMD);
vp               2481 drivers/net/ethernet/3com/3c59x.c 			mod_timer(&vp->timer, jiffies + 1*HZ);
vp               2486 drivers/net/ethernet/3com/3c59x.c 		if (vp->cb_fn_base)			/* The PCMCIA people are idiots.  */
vp               2487 drivers/net/ethernet/3com/3c59x.c 			iowrite32(0x8000, vp->cb_fn_base + 4);
vp               2496 drivers/net/ethernet/3com/3c59x.c 	vp->handling_irq = 0;
vp               2504 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               2508 drivers/net/ethernet/3com/3c59x.c 	spin_lock_irqsave(&vp->lock, flags);
vp               2510 drivers/net/ethernet/3com/3c59x.c 	if (vp->full_bus_master_rx)
vp               2515 drivers/net/ethernet/3com/3c59x.c 	spin_unlock_irqrestore(&vp->lock, flags);
vp               2522 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               2523 drivers/net/ethernet/3com/3c59x.c 	void __iomem *ioaddr = vp->ioaddr;
vp               2553 drivers/net/ethernet/3com/3c59x.c 				if (vp->bus_master &&
vp               2555 drivers/net/ethernet/3com/3c59x.c 					dma_addr_t dma = dma_map_single(vp->gendev, skb_put(skb, pkt_len),
vp               2562 drivers/net/ethernet/3com/3c59x.c 					dma_unmap_single(vp->gendev, dma, pkt_len, DMA_FROM_DEVICE);
vp               2591 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               2592 drivers/net/ethernet/3com/3c59x.c 	int entry = vp->cur_rx % RX_RING_SIZE;
vp               2593 drivers/net/ethernet/3com/3c59x.c 	void __iomem *ioaddr = vp->ioaddr;
vp               2600 drivers/net/ethernet/3com/3c59x.c 	while ((rx_status = le32_to_cpu(vp->rx_ring[entry].status)) & RxDComplete){
vp               2618 drivers/net/ethernet/3com/3c59x.c 			dma_addr_t dma = le32_to_cpu(vp->rx_ring[entry].addr);
vp               2629 drivers/net/ethernet/3com/3c59x.c 				dma_sync_single_for_cpu(vp->gendev, dma, PKT_BUF_SZ, DMA_FROM_DEVICE);
vp               2631 drivers/net/ethernet/3com/3c59x.c 				skb_put_data(skb, vp->rx_skbuff[entry]->data,
vp               2633 drivers/net/ethernet/3com/3c59x.c 				dma_sync_single_for_device(vp->gendev, dma, PKT_BUF_SZ, DMA_FROM_DEVICE);
vp               2634 drivers/net/ethernet/3com/3c59x.c 				vp->rx_copy++;
vp               2645 drivers/net/ethernet/3com/3c59x.c 				newdma = dma_map_single(vp->gendev, newskb->data,
vp               2647 drivers/net/ethernet/3com/3c59x.c 				if (dma_mapping_error(vp->gendev, newdma)) {
vp               2654 drivers/net/ethernet/3com/3c59x.c 				skb = vp->rx_skbuff[entry];
vp               2655 drivers/net/ethernet/3com/3c59x.c 				vp->rx_skbuff[entry] = newskb;
vp               2656 drivers/net/ethernet/3com/3c59x.c 				vp->rx_ring[entry].addr = cpu_to_le32(newdma);
vp               2658 drivers/net/ethernet/3com/3c59x.c 				dma_unmap_single(vp->gendev, dma, PKT_BUF_SZ, DMA_FROM_DEVICE);
vp               2659 drivers/net/ethernet/3com/3c59x.c 				vp->rx_nocopy++;
vp               2668 drivers/net/ethernet/3com/3c59x.c 					vp->rx_csumhits++;
vp               2676 drivers/net/ethernet/3com/3c59x.c 		vp->rx_ring[entry].status = 0;	/* Clear complete bit. */
vp               2678 drivers/net/ethernet/3com/3c59x.c 		entry = (++vp->cur_rx) % RX_RING_SIZE;
vp               2686 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               2687 drivers/net/ethernet/3com/3c59x.c 	void __iomem *ioaddr = vp->ioaddr;
vp               2692 drivers/net/ethernet/3com/3c59x.c 	del_timer_sync(&vp->timer);
vp               2711 drivers/net/ethernet/3com/3c59x.c 	if (vp->full_bus_master_rx)
vp               2713 drivers/net/ethernet/3com/3c59x.c 	if (vp->full_bus_master_tx)
vp               2716 drivers/net/ethernet/3com/3c59x.c 	if (final_down && VORTEX_PCI(vp)) {
vp               2717 drivers/net/ethernet/3com/3c59x.c 		vp->pm_state_valid = 1;
vp               2718 drivers/net/ethernet/3com/3c59x.c 		pci_save_state(VORTEX_PCI(vp));
vp               2726 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               2727 drivers/net/ethernet/3com/3c59x.c 	void __iomem *ioaddr = vp->ioaddr;
vp               2738 drivers/net/ethernet/3com/3c59x.c 			   dev->name, vp->rx_nocopy, vp->rx_copy, vp->queued_packet, vp->rx_csumhits);
vp               2742 drivers/net/ethernet/3com/3c59x.c 	if (vp->rx_csumhits &&
vp               2743 drivers/net/ethernet/3com/3c59x.c 	    (vp->drv_flags & HAS_HWCKSM) == 0 &&
vp               2744 drivers/net/ethernet/3com/3c59x.c 	    (vp->card_idx >= MAX_UNITS || hw_checksums[vp->card_idx] == -1)) {
vp               2752 drivers/net/ethernet/3com/3c59x.c 	if (vp->full_bus_master_rx) { /* Free Boomerang bus master Rx buffers. */
vp               2754 drivers/net/ethernet/3com/3c59x.c 			if (vp->rx_skbuff[i]) {
vp               2755 drivers/net/ethernet/3com/3c59x.c 				dma_unmap_single(vp->gendev, le32_to_cpu(vp->rx_ring[i].addr),
vp               2757 drivers/net/ethernet/3com/3c59x.c 				dev_kfree_skb(vp->rx_skbuff[i]);
vp               2758 drivers/net/ethernet/3com/3c59x.c 				vp->rx_skbuff[i] = NULL;
vp               2761 drivers/net/ethernet/3com/3c59x.c 	if (vp->full_bus_master_tx) { /* Free Boomerang bus master Tx buffers. */
vp               2763 drivers/net/ethernet/3com/3c59x.c 			if (vp->tx_skbuff[i]) {
vp               2764 drivers/net/ethernet/3com/3c59x.c 				struct sk_buff *skb = vp->tx_skbuff[i];
vp               2769 drivers/net/ethernet/3com/3c59x.c 						dma_unmap_single(vp->gendev,
vp               2770 drivers/net/ethernet/3com/3c59x.c 										 le32_to_cpu(vp->tx_ring[i].frag[k].addr),
vp               2771 drivers/net/ethernet/3com/3c59x.c 										 le32_to_cpu(vp->tx_ring[i].frag[k].length)&0xFFF,
vp               2774 drivers/net/ethernet/3com/3c59x.c 				dma_unmap_single(vp->gendev, le32_to_cpu(vp->tx_ring[i].addr), skb->len, DMA_TO_DEVICE);
vp               2777 drivers/net/ethernet/3com/3c59x.c 				vp->tx_skbuff[i] = NULL;
vp               2789 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               2790 drivers/net/ethernet/3com/3c59x.c 		void __iomem *ioaddr = vp->ioaddr;
vp               2792 drivers/net/ethernet/3com/3c59x.c 		if (vp->full_bus_master_tx) {
vp               2797 drivers/net/ethernet/3com/3c59x.c 					vp->full_bus_master_tx,
vp               2798 drivers/net/ethernet/3com/3c59x.c 					vp->dirty_tx, vp->dirty_tx % TX_RING_SIZE,
vp               2799 drivers/net/ethernet/3com/3c59x.c 					vp->cur_tx, vp->cur_tx % TX_RING_SIZE);
vp               2802 drivers/net/ethernet/3com/3c59x.c 				   &vp->tx_ring[vp->dirty_tx % TX_RING_SIZE]);
vp               2808 drivers/net/ethernet/3com/3c59x.c 				length = le32_to_cpu(vp->tx_ring[i].frag[0].length);
vp               2810 drivers/net/ethernet/3com/3c59x.c 				length = le32_to_cpu(vp->tx_ring[i].length);
vp               2813 drivers/net/ethernet/3com/3c59x.c 					   i, &vp->tx_ring[i], length,
vp               2814 drivers/net/ethernet/3com/3c59x.c 					   le32_to_cpu(vp->tx_ring[i].status));
vp               2824 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               2825 drivers/net/ethernet/3com/3c59x.c 	void __iomem *ioaddr = vp->ioaddr;
vp               2829 drivers/net/ethernet/3com/3c59x.c 		spin_lock_irqsave (&vp->lock, flags);
vp               2831 drivers/net/ethernet/3com/3c59x.c 		spin_unlock_irqrestore (&vp->lock, flags);
vp               2845 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               2849 drivers/net/ethernet/3com/3c59x.c 	dev->stats.tx_carrier_errors		+= window_read8(vp, 6, 0);
vp               2850 drivers/net/ethernet/3com/3c59x.c 	dev->stats.tx_heartbeat_errors		+= window_read8(vp, 6, 1);
vp               2851 drivers/net/ethernet/3com/3c59x.c 	dev->stats.tx_window_errors		+= window_read8(vp, 6, 4);
vp               2852 drivers/net/ethernet/3com/3c59x.c 	dev->stats.rx_fifo_errors		+= window_read8(vp, 6, 5);
vp               2853 drivers/net/ethernet/3com/3c59x.c 	dev->stats.tx_packets			+= window_read8(vp, 6, 6);
vp               2854 drivers/net/ethernet/3com/3c59x.c 	dev->stats.tx_packets			+= (window_read8(vp, 6, 9) &
vp               2856 drivers/net/ethernet/3com/3c59x.c 	/* Rx packets	*/			window_read8(vp, 6, 7);   /* Must read to clear */
vp               2860 drivers/net/ethernet/3com/3c59x.c 	dev->stats.rx_bytes 			+= window_read16(vp, 6, 10);
vp               2861 drivers/net/ethernet/3com/3c59x.c 	dev->stats.tx_bytes 			+= window_read16(vp, 6, 12);
vp               2863 drivers/net/ethernet/3com/3c59x.c 	vp->xstats.tx_multiple_collisions	+= window_read8(vp, 6, 2);
vp               2864 drivers/net/ethernet/3com/3c59x.c 	vp->xstats.tx_single_collisions         += window_read8(vp, 6, 3);
vp               2865 drivers/net/ethernet/3com/3c59x.c 	vp->xstats.tx_deferred			+= window_read8(vp, 6, 8);
vp               2866 drivers/net/ethernet/3com/3c59x.c 	vp->xstats.rx_bad_ssd			+= window_read8(vp, 4, 12);
vp               2868 drivers/net/ethernet/3com/3c59x.c 	dev->stats.collisions = vp->xstats.tx_multiple_collisions
vp               2869 drivers/net/ethernet/3com/3c59x.c 		+ vp->xstats.tx_single_collisions
vp               2870 drivers/net/ethernet/3com/3c59x.c 		+ vp->xstats.tx_max_collisions;
vp               2873 drivers/net/ethernet/3com/3c59x.c 		u8 up = window_read8(vp, 4, 13);
vp               2881 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               2883 drivers/net/ethernet/3com/3c59x.c 	return mii_nway_restart(&vp->mii);
vp               2889 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               2891 drivers/net/ethernet/3com/3c59x.c 	mii_ethtool_get_link_ksettings(&vp->mii, cmd);
vp               2899 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               2901 drivers/net/ethernet/3com/3c59x.c 	return mii_ethtool_set_link_ksettings(&vp->mii, cmd);
vp               2927 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               2928 drivers/net/ethernet/3com/3c59x.c 	void __iomem *ioaddr = vp->ioaddr;
vp               2931 drivers/net/ethernet/3com/3c59x.c 	spin_lock_irqsave(&vp->lock, flags);
vp               2933 drivers/net/ethernet/3com/3c59x.c 	spin_unlock_irqrestore(&vp->lock, flags);
vp               2935 drivers/net/ethernet/3com/3c59x.c 	data[0] = vp->xstats.tx_deferred;
vp               2936 drivers/net/ethernet/3com/3c59x.c 	data[1] = vp->xstats.tx_max_collisions;
vp               2937 drivers/net/ethernet/3com/3c59x.c 	data[2] = vp->xstats.tx_multiple_collisions;
vp               2938 drivers/net/ethernet/3com/3c59x.c 	data[3] = vp->xstats.tx_single_collisions;
vp               2939 drivers/net/ethernet/3com/3c59x.c 	data[4] = vp->xstats.rx_bad_ssd;
vp               2958 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               2961 drivers/net/ethernet/3com/3c59x.c 	if (VORTEX_PCI(vp)) {
vp               2962 drivers/net/ethernet/3com/3c59x.c 		strlcpy(info->bus_info, pci_name(VORTEX_PCI(vp)),
vp               2965 drivers/net/ethernet/3com/3c59x.c 		if (VORTEX_EISA(vp))
vp               2966 drivers/net/ethernet/3com/3c59x.c 			strlcpy(info->bus_info, dev_name(vp->gendev),
vp               2976 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               2978 drivers/net/ethernet/3com/3c59x.c 	if (!VORTEX_PCI(vp))
vp               2984 drivers/net/ethernet/3com/3c59x.c 	if (vp->enable_wol)
vp               2990 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               2992 drivers/net/ethernet/3com/3c59x.c 	if (!VORTEX_PCI(vp))
vp               2999 drivers/net/ethernet/3com/3c59x.c 		vp->enable_wol = 1;
vp               3001 drivers/net/ethernet/3com/3c59x.c 		vp->enable_wol = 0;
vp               3030 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               3033 drivers/net/ethernet/3com/3c59x.c 	if(VORTEX_PCI(vp))
vp               3034 drivers/net/ethernet/3com/3c59x.c 		state = VORTEX_PCI(vp)->current_state;
vp               3039 drivers/net/ethernet/3com/3c59x.c 		pci_set_power_state(VORTEX_PCI(vp), PCI_D0);
vp               3040 drivers/net/ethernet/3com/3c59x.c 	err = generic_mii_ioctl(&vp->mii, if_mii(rq), cmd, NULL);
vp               3042 drivers/net/ethernet/3com/3c59x.c 		pci_set_power_state(VORTEX_PCI(vp), state);
vp               3054 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               3055 drivers/net/ethernet/3com/3c59x.c 	void __iomem *ioaddr = vp->ioaddr;
vp               3080 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               3083 drivers/net/ethernet/3com/3c59x.c 	if ((vp->drv_flags&IS_CYCLONE) || (vp->drv_flags&IS_TORNADO)) {
vp               3091 drivers/net/ethernet/3com/3c59x.c 		window_write16(vp, max_pkt_size, 3, Wn3_MaxPktSize);
vp               3095 drivers/net/ethernet/3com/3c59x.c 		window_write16(vp, VLAN_ETHER_TYPE, 7, Wn7_VlanEtherType);
vp               3099 drivers/net/ethernet/3com/3c59x.c 		vp->large_frames = dev->mtu > 1500 || enable;
vp               3101 drivers/net/ethernet/3com/3c59x.c 		mac_ctrl = window_read16(vp, 3, Wn3_MAC_Ctrl);
vp               3102 drivers/net/ethernet/3com/3c59x.c 		if (vp->large_frames)
vp               3106 drivers/net/ethernet/3com/3c59x.c 		window_write16(vp, mac_ctrl, 3, Wn3_MAC_Ctrl);
vp               3126 drivers/net/ethernet/3com/3c59x.c static void mdio_delay(struct vortex_private *vp)
vp               3128 drivers/net/ethernet/3com/3c59x.c 	window_read32(vp, 4, Wn4_PhysicalMgmt);
vp               3140 drivers/net/ethernet/3com/3c59x.c static void mdio_sync(struct vortex_private *vp, int bits)
vp               3144 drivers/net/ethernet/3com/3c59x.c 		window_write16(vp, MDIO_DATA_WRITE1, 4, Wn4_PhysicalMgmt);
vp               3145 drivers/net/ethernet/3com/3c59x.c 		mdio_delay(vp);
vp               3146 drivers/net/ethernet/3com/3c59x.c 		window_write16(vp, MDIO_DATA_WRITE1 | MDIO_SHIFT_CLK,
vp               3148 drivers/net/ethernet/3com/3c59x.c 		mdio_delay(vp);
vp               3155 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               3159 drivers/net/ethernet/3com/3c59x.c 	spin_lock_bh(&vp->mii_lock);
vp               3162 drivers/net/ethernet/3com/3c59x.c 		mdio_sync(vp, 32);
vp               3167 drivers/net/ethernet/3com/3c59x.c 		window_write16(vp, dataval, 4, Wn4_PhysicalMgmt);
vp               3168 drivers/net/ethernet/3com/3c59x.c 		mdio_delay(vp);
vp               3169 drivers/net/ethernet/3com/3c59x.c 		window_write16(vp, dataval | MDIO_SHIFT_CLK,
vp               3171 drivers/net/ethernet/3com/3c59x.c 		mdio_delay(vp);
vp               3175 drivers/net/ethernet/3com/3c59x.c 		window_write16(vp, MDIO_ENB_IN, 4, Wn4_PhysicalMgmt);
vp               3176 drivers/net/ethernet/3com/3c59x.c 		mdio_delay(vp);
vp               3178 drivers/net/ethernet/3com/3c59x.c 			((window_read16(vp, 4, Wn4_PhysicalMgmt) &
vp               3180 drivers/net/ethernet/3com/3c59x.c 		window_write16(vp, MDIO_ENB_IN | MDIO_SHIFT_CLK,
vp               3182 drivers/net/ethernet/3com/3c59x.c 		mdio_delay(vp);
vp               3185 drivers/net/ethernet/3com/3c59x.c 	spin_unlock_bh(&vp->mii_lock);
vp               3192 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               3196 drivers/net/ethernet/3com/3c59x.c 	spin_lock_bh(&vp->mii_lock);
vp               3199 drivers/net/ethernet/3com/3c59x.c 		mdio_sync(vp, 32);
vp               3204 drivers/net/ethernet/3com/3c59x.c 		window_write16(vp, dataval, 4, Wn4_PhysicalMgmt);
vp               3205 drivers/net/ethernet/3com/3c59x.c 		mdio_delay(vp);
vp               3206 drivers/net/ethernet/3com/3c59x.c 		window_write16(vp, dataval | MDIO_SHIFT_CLK,
vp               3208 drivers/net/ethernet/3com/3c59x.c 		mdio_delay(vp);
vp               3212 drivers/net/ethernet/3com/3c59x.c 		window_write16(vp, MDIO_ENB_IN, 4, Wn4_PhysicalMgmt);
vp               3213 drivers/net/ethernet/3com/3c59x.c 		mdio_delay(vp);
vp               3214 drivers/net/ethernet/3com/3c59x.c 		window_write16(vp, MDIO_ENB_IN | MDIO_SHIFT_CLK,
vp               3216 drivers/net/ethernet/3com/3c59x.c 		mdio_delay(vp);
vp               3219 drivers/net/ethernet/3com/3c59x.c 	spin_unlock_bh(&vp->mii_lock);
vp               3226 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp = netdev_priv(dev);
vp               3227 drivers/net/ethernet/3com/3c59x.c 	void __iomem *ioaddr = vp->ioaddr;
vp               3229 drivers/net/ethernet/3com/3c59x.c 	device_set_wakeup_enable(vp->gendev, vp->enable_wol);
vp               3231 drivers/net/ethernet/3com/3c59x.c 	if (vp->enable_wol) {
vp               3233 drivers/net/ethernet/3com/3c59x.c 		window_write16(vp, 2, 7, 0x0c);
vp               3238 drivers/net/ethernet/3com/3c59x.c 		if (pci_enable_wake(VORTEX_PCI(vp), PCI_D3hot, 1)) {
vp               3239 drivers/net/ethernet/3com/3c59x.c 			pr_info("%s: WOL not supported.\n", pci_name(VORTEX_PCI(vp)));
vp               3241 drivers/net/ethernet/3com/3c59x.c 			vp->enable_wol = 0;
vp               3245 drivers/net/ethernet/3com/3c59x.c 		if (VORTEX_PCI(vp)->current_state < PCI_D3hot)
vp               3249 drivers/net/ethernet/3com/3c59x.c 		pci_set_power_state(VORTEX_PCI(vp), PCI_D3hot);
vp               3257 drivers/net/ethernet/3com/3c59x.c 	struct vortex_private *vp;
vp               3264 drivers/net/ethernet/3com/3c59x.c 	vp = netdev_priv(dev);
vp               3266 drivers/net/ethernet/3com/3c59x.c 	if (vp->cb_fn_base)
vp               3267 drivers/net/ethernet/3com/3c59x.c 		pci_iounmap(pdev, vp->cb_fn_base);
vp               3272 drivers/net/ethernet/3com/3c59x.c 	if (vp->pm_state_valid)
vp               3277 drivers/net/ethernet/3com/3c59x.c 	iowrite16(TotalReset | ((vp->drv_flags & EEPROM_RESET) ? 0x04 : 0x14),
vp               3278 drivers/net/ethernet/3com/3c59x.c 	     vp->ioaddr + EL3_CMD);
vp               3280 drivers/net/ethernet/3com/3c59x.c 	pci_iounmap(pdev, vp->ioaddr);
vp               3285 drivers/net/ethernet/3com/3c59x.c 			vp->rx_ring, vp->rx_ring_dma);
vp                345 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	struct bnx2x_credit_pool_obj *vp = o->vlans_pool;
vp                347 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	WARN_ON(!vp);
vp                349 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	return vp->get_entry(vp, offset);
vp                354 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	struct bnx2x_credit_pool_obj *vp = o->vlans_pool;
vp                356 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	WARN_ON(!vp);
vp                358 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	return vp->get(vp, 1);
vp                364 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	struct bnx2x_credit_pool_obj *vp = o->vlans_pool;
vp                369 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	if (!vp->get(vp, 1)) {
vp                393 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	struct bnx2x_credit_pool_obj *vp = o->vlans_pool;
vp                395 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	return vp->put_entry(vp, offset);
vp                400 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	struct bnx2x_credit_pool_obj *vp = o->vlans_pool;
vp                402 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	return vp->put(vp, 1);
vp                408 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	struct bnx2x_credit_pool_obj *vp = o->vlans_pool;
vp                413 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	if (!vp->put(vp, 1)) {
vp                 73 drivers/net/ethernet/cisco/enic/enic_pp.c 	struct vic_provinfo *vp;
vp                 88 drivers/net/ethernet/cisco/enic/enic_pp.c 	vp = vic_provinfo_alloc(GFP_KERNEL, oui,
vp                 90 drivers/net/ethernet/cisco/enic/enic_pp.c 	if (!vp)
vp                 93 drivers/net/ethernet/cisco/enic/enic_pp.c 	VIC_PROVINFO_ADD_TLV(vp,
vp                108 drivers/net/ethernet/cisco/enic/enic_pp.c 	VIC_PROVINFO_ADD_TLV(vp,
vp                113 drivers/net/ethernet/cisco/enic/enic_pp.c 	VIC_PROVINFO_ADD_TLV(vp,
vp                119 drivers/net/ethernet/cisco/enic/enic_pp.c 		VIC_PROVINFO_ADD_TLV(vp,
vp                126 drivers/net/ethernet/cisco/enic/enic_pp.c 		VIC_PROVINFO_ADD_TLV(vp,
vp                131 drivers/net/ethernet/cisco/enic/enic_pp.c 	VIC_PROVINFO_ADD_TLV(vp,
vp                135 drivers/net/ethernet/cisco/enic/enic_pp.c 	ENIC_DEVCMD_PROXY_BY_INDEX(vf, err, enic, vnic_dev_init_prov2, (u8 *)vp,
vp                136 drivers/net/ethernet/cisco/enic/enic_pp.c 		vic_provinfo_size(vp));
vp                140 drivers/net/ethernet/cisco/enic/enic_pp.c 	vic_provinfo_free(vp);
vp                 29 drivers/net/ethernet/cisco/enic/vnic_vic.c 	struct vic_provinfo *vp;
vp                 34 drivers/net/ethernet/cisco/enic/vnic_vic.c 	vp = kzalloc(VIC_PROVINFO_MAX_DATA, flags);
vp                 35 drivers/net/ethernet/cisco/enic/vnic_vic.c 	if (!vp)
vp                 38 drivers/net/ethernet/cisco/enic/vnic_vic.c 	memcpy(vp->oui, oui, sizeof(vp->oui));
vp                 39 drivers/net/ethernet/cisco/enic/vnic_vic.c 	vp->type = type;
vp                 40 drivers/net/ethernet/cisco/enic/vnic_vic.c 	vp->length = htonl(sizeof(vp->num_tlvs));
vp                 42 drivers/net/ethernet/cisco/enic/vnic_vic.c 	return vp;
vp                 45 drivers/net/ethernet/cisco/enic/vnic_vic.c void vic_provinfo_free(struct vic_provinfo *vp)
vp                 47 drivers/net/ethernet/cisco/enic/vnic_vic.c 	kfree(vp);
vp                 50 drivers/net/ethernet/cisco/enic/vnic_vic.c int vic_provinfo_add_tlv(struct vic_provinfo *vp, u16 type, u16 length,
vp                 55 drivers/net/ethernet/cisco/enic/vnic_vic.c 	if (!vp || !value)
vp                 58 drivers/net/ethernet/cisco/enic/vnic_vic.c 	if (ntohl(vp->length) + offsetof(struct vic_provinfo_tlv, value) +
vp                 62 drivers/net/ethernet/cisco/enic/vnic_vic.c 	tlv = (struct vic_provinfo_tlv *)((u8 *)vp->tlv +
vp                 63 drivers/net/ethernet/cisco/enic/vnic_vic.c 		ntohl(vp->length) - sizeof(vp->num_tlvs));
vp                 69 drivers/net/ethernet/cisco/enic/vnic_vic.c 	vp->num_tlvs = htonl(ntohl(vp->num_tlvs) + 1);
vp                 70 drivers/net/ethernet/cisco/enic/vnic_vic.c 	vp->length = htonl(ntohl(vp->length) +
vp                 76 drivers/net/ethernet/cisco/enic/vnic_vic.c size_t vic_provinfo_size(struct vic_provinfo *vp)
vp                 78 drivers/net/ethernet/cisco/enic/vnic_vic.c 	return vp ?  ntohl(vp->length) + sizeof(*vp) - sizeof(vp->num_tlvs) : 0;
vp                 65 drivers/net/ethernet/cisco/enic/vnic_vic.h #define VIC_PROVINFO_ADD_TLV(vp, tlvtype, tlvlen, data) \
vp                 67 drivers/net/ethernet/cisco/enic/vnic_vic.h 		err = vic_provinfo_add_tlv(vp, tlvtype, tlvlen, data); \
vp                 78 drivers/net/ethernet/cisco/enic/vnic_vic.h void vic_provinfo_free(struct vic_provinfo *vp);
vp                 79 drivers/net/ethernet/cisco/enic/vnic_vic.h int vic_provinfo_add_tlv(struct vic_provinfo *vp, u16 type, u16 length,
vp                 81 drivers/net/ethernet/cisco/enic/vnic_vic.h size_t vic_provinfo_size(struct vic_provinfo *vp);
vp               2773 drivers/net/ethernet/neterion/vxge/vxge-config.c __vxge_hw_ring_delete(struct __vxge_hw_vpath_handle *vp)
vp               2775 drivers/net/ethernet/neterion/vxge/vxge-config.c 	struct __vxge_hw_ring *ring = vp->vpath->ringh;
vp               2782 drivers/net/ethernet/neterion/vxge/vxge-config.c 	vp->vpath->ringh = NULL;
vp               2793 drivers/net/ethernet/neterion/vxge/vxge-config.c __vxge_hw_ring_create(struct __vxge_hw_vpath_handle *vp,
vp               2806 drivers/net/ethernet/neterion/vxge/vxge-config.c 	if ((vp == NULL) || (attr == NULL)) {
vp               2811 drivers/net/ethernet/neterion/vxge/vxge-config.c 	hldev = vp->vpath->hldev;
vp               2812 drivers/net/ethernet/neterion/vxge/vxge-config.c 	vp_id = vp->vpath->vp_id;
vp               2819 drivers/net/ethernet/neterion/vxge/vxge-config.c 	ring = (struct __vxge_hw_ring *)__vxge_hw_channel_allocate(vp,
vp               2829 drivers/net/ethernet/neterion/vxge/vxge-config.c 	vp->vpath->ringh = ring;
vp               2831 drivers/net/ethernet/neterion/vxge/vxge-config.c 	ring->vp_reg = vp->vpath->vp_reg;
vp               2833 drivers/net/ethernet/neterion/vxge/vxge-config.c 	ring->stats = &vp->vpath->sw_stats->ring_stats;
vp               2839 drivers/net/ethernet/neterion/vxge/vxge-config.c 	ring->tim_rti_cfg1_saved = vp->vpath->tim_rti_cfg1_saved;
vp               2840 drivers/net/ethernet/neterion/vxge/vxge-config.c 	ring->tim_rti_cfg3_saved = vp->vpath->tim_rti_cfg3_saved;
vp               2868 drivers/net/ethernet/neterion/vxge/vxge-config.c 		__vxge_hw_ring_delete(vp);
vp               2874 drivers/net/ethernet/neterion/vxge/vxge-config.c 		__vxge_hw_ring_delete(vp);
vp               2888 drivers/net/ethernet/neterion/vxge/vxge-config.c 			__vxge_hw_ring_delete(vp);
vp               3377 drivers/net/ethernet/neterion/vxge/vxge-config.c __vxge_hw_fifo_delete(struct __vxge_hw_vpath_handle *vp)
vp               3379 drivers/net/ethernet/neterion/vxge/vxge-config.c 	struct __vxge_hw_fifo *fifo = vp->vpath->fifoh;
vp               3386 drivers/net/ethernet/neterion/vxge/vxge-config.c 	vp->vpath->fifoh = NULL;
vp               3440 drivers/net/ethernet/neterion/vxge/vxge-config.c __vxge_hw_fifo_create(struct __vxge_hw_vpath_handle *vp,
vp               3450 drivers/net/ethernet/neterion/vxge/vxge-config.c 	if ((vp == NULL) || (attr == NULL)) {
vp               3454 drivers/net/ethernet/neterion/vxge/vxge-config.c 	vpath = vp->vpath;
vp               3461 drivers/net/ethernet/neterion/vxge/vxge-config.c 	fifo = (struct __vxge_hw_fifo *)__vxge_hw_channel_allocate(vp,
vp               3525 drivers/net/ethernet/neterion/vxge/vxge-config.c 		__vxge_hw_fifo_delete(vp);
vp               3543 drivers/net/ethernet/neterion/vxge/vxge-config.c 		__vxge_hw_fifo_delete(vp);
vp               3550 drivers/net/ethernet/neterion/vxge/vxge-config.c 		__vxge_hw_fifo_delete(vp);
vp               3635 drivers/net/ethernet/neterion/vxge/vxge-config.c __vxge_hw_vpath_rts_table_get(struct __vxge_hw_vpath_handle *vp,
vp               3642 drivers/net/ethernet/neterion/vxge/vxge-config.c 	if (vp == NULL) {
vp               3658 drivers/net/ethernet/neterion/vxge/vxge-config.c 	status = vxge_hw_vpath_fw_api(vp->vpath, action, rts_table, offset,
vp               3675 drivers/net/ethernet/neterion/vxge/vxge-config.c __vxge_hw_vpath_rts_table_set(struct __vxge_hw_vpath_handle *vp, u32 action,
vp               3682 drivers/net/ethernet/neterion/vxge/vxge-config.c 	if (vp == NULL) {
vp               3694 drivers/net/ethernet/neterion/vxge/vxge-config.c 	status = vxge_hw_vpath_fw_api(vp->vpath, action, rts_table, offset,
vp               3704 drivers/net/ethernet/neterion/vxge/vxge-config.c 			struct __vxge_hw_vpath_handle *vp,
vp               3712 drivers/net/ethernet/neterion/vxge/vxge-config.c 	if (vp == NULL) {
vp               3717 drivers/net/ethernet/neterion/vxge/vxge-config.c 	status = __vxge_hw_vpath_rts_table_get(vp,
vp               3755 drivers/net/ethernet/neterion/vxge/vxge-config.c 	status = __vxge_hw_vpath_rts_table_set(vp,
vp               3812 drivers/net/ethernet/neterion/vxge/vxge-config.c 	struct __vxge_hw_vpath_handle *vp = vpath_handles[0];
vp               3814 drivers/net/ethernet/neterion/vxge/vxge-config.c 	if (vp == NULL) {
vp               3821 drivers/net/ethernet/neterion/vxge/vxge-config.c 	if (vp->vpath->hldev->config.rth_it_type
vp               4700 drivers/net/ethernet/neterion/vxge/vxge-config.c vxge_hw_vpath_mtu_set(struct __vxge_hw_vpath_handle *vp, u32 new_mtu)
vp               4706 drivers/net/ethernet/neterion/vxge/vxge-config.c 	if (vp == NULL) {
vp               4710 drivers/net/ethernet/neterion/vxge/vxge-config.c 	vpath = vp->vpath;
vp               4736 drivers/net/ethernet/neterion/vxge/vxge-config.c vxge_hw_vpath_stats_enable(struct __vxge_hw_vpath_handle *vp)
vp               4741 drivers/net/ethernet/neterion/vxge/vxge-config.c 	vpath = vp->vpath;
vp               4800 drivers/net/ethernet/neterion/vxge/vxge-config.c 	struct __vxge_hw_vpath_handle *vp;
vp               4815 drivers/net/ethernet/neterion/vxge/vxge-config.c 	vp = vzalloc(sizeof(struct __vxge_hw_vpath_handle));
vp               4816 drivers/net/ethernet/neterion/vxge/vxge-config.c 	if (vp == NULL) {
vp               4821 drivers/net/ethernet/neterion/vxge/vxge-config.c 	vp->vpath = vpath;
vp               4824 drivers/net/ethernet/neterion/vxge/vxge-config.c 		status = __vxge_hw_fifo_create(vp, &attr->fifo_attr);
vp               4830 drivers/net/ethernet/neterion/vxge/vxge-config.c 		status = __vxge_hw_ring_create(vp, &attr->ring_attr);
vp               4862 drivers/net/ethernet/neterion/vxge/vxge-config.c 	status = vxge_hw_vpath_stats_enable(vp);
vp               4866 drivers/net/ethernet/neterion/vxge/vxge-config.c 	list_add(&vp->item, &vpath->vpath_handles);
vp               4870 drivers/net/ethernet/neterion/vxge/vxge-config.c 	*vpath_handle = vp;
vp               4879 drivers/net/ethernet/neterion/vxge/vxge-config.c 		__vxge_hw_ring_delete(vp);
vp               4882 drivers/net/ethernet/neterion/vxge/vxge-config.c 		__vxge_hw_fifo_delete(vp);
vp               4884 drivers/net/ethernet/neterion/vxge/vxge-config.c 	vfree(vp);
vp               4900 drivers/net/ethernet/neterion/vxge/vxge-config.c void vxge_hw_vpath_rx_doorbell_init(struct __vxge_hw_vpath_handle *vp)
vp               4902 drivers/net/ethernet/neterion/vxge/vxge-config.c 	struct __vxge_hw_virtualpath *vpath = vp->vpath;
vp               4963 drivers/net/ethernet/neterion/vxge/vxge-config.c enum vxge_hw_status vxge_hw_vpath_close(struct __vxge_hw_vpath_handle *vp)
vp               4967 drivers/net/ethernet/neterion/vxge/vxge-config.c 	u32 vp_id = vp->vpath->vp_id;
vp               4971 drivers/net/ethernet/neterion/vxge/vxge-config.c 	vpath = vp->vpath;
vp               4979 drivers/net/ethernet/neterion/vxge/vxge-config.c 	list_del(&vp->item);
vp               4982 drivers/net/ethernet/neterion/vxge/vxge-config.c 		list_add(&vp->item, &vpath->vpath_handles);
vp               4994 drivers/net/ethernet/neterion/vxge/vxge-config.c 		__vxge_hw_ring_delete(vp);
vp               4997 drivers/net/ethernet/neterion/vxge/vxge-config.c 		__vxge_hw_fifo_delete(vp);
vp               5002 drivers/net/ethernet/neterion/vxge/vxge-config.c 	vfree(vp);
vp               5014 drivers/net/ethernet/neterion/vxge/vxge-config.c enum vxge_hw_status vxge_hw_vpath_reset(struct __vxge_hw_vpath_handle *vp)
vp               5018 drivers/net/ethernet/neterion/vxge/vxge-config.c 	struct __vxge_hw_virtualpath *vpath = vp->vpath;
vp               5040 drivers/net/ethernet/neterion/vxge/vxge-config.c vxge_hw_vpath_recover_from_reset(struct __vxge_hw_vpath_handle *vp)
vp               5047 drivers/net/ethernet/neterion/vxge/vxge-config.c 	vp_id = vp->vpath->vp_id;
vp               5048 drivers/net/ethernet/neterion/vxge/vxge-config.c 	vpath = vp->vpath;
vp               5080 drivers/net/ethernet/neterion/vxge/vxge-config.c 	status = vxge_hw_vpath_stats_enable(vp);
vp               5092 drivers/net/ethernet/neterion/vxge/vxge-config.c vxge_hw_vpath_enable(struct __vxge_hw_vpath_handle *vp)
vp               5097 drivers/net/ethernet/neterion/vxge/vxge-config.c 	hldev = vp->vpath->hldev;
vp               5100 drivers/net/ethernet/neterion/vxge/vxge-config.c 		1 << (16 - vp->vpath->vp_id));
vp               2002 drivers/net/ethernet/neterion/vxge/vxge-config.h vxge_hw_vpath_enable(struct __vxge_hw_vpath_handle *vp);
vp               2012 drivers/net/ethernet/neterion/vxge/vxge-config.h vxge_hw_vpath_rx_doorbell_init(struct __vxge_hw_vpath_handle *vp);
vp                 31 drivers/net/ethernet/neterion/vxge/vxge-traffic.c enum vxge_hw_status vxge_hw_vpath_intr_enable(struct __vxge_hw_vpath_handle *vp)
vp                 38 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	if (vp == NULL) {
vp                 43 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	vpath = vp->vpath;
vp                158 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 			struct __vxge_hw_vpath_handle *vp)
vp                165 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	if (vp == NULL) {
vp                170 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	vpath = vp->vpath;
vp               1718 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	struct __vxge_hw_vpath_handle *vp,
vp               1728 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	if (vp == NULL) {
vp               1756 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	status = __vxge_hw_vpath_rts_table_set(vp,
vp               1781 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	struct __vxge_hw_vpath_handle *vp,
vp               1790 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	if (vp == NULL) {
vp               1795 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	status = __vxge_hw_vpath_rts_table_get(vp,
vp               1833 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	struct __vxge_hw_vpath_handle *vp,
vp               1842 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	if (vp == NULL) {
vp               1847 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	status = __vxge_hw_vpath_rts_table_get(vp,
vp               1886 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	struct __vxge_hw_vpath_handle *vp,
vp               1895 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	if (vp == NULL) {
vp               1908 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	status = __vxge_hw_vpath_rts_table_set(vp,
vp               1929 drivers/net/ethernet/neterion/vxge/vxge-traffic.c vxge_hw_vpath_vid_add(struct __vxge_hw_vpath_handle *vp, u64 vid)
vp               1933 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	if (vp == NULL) {
vp               1938 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	status = __vxge_hw_vpath_rts_table_set(vp,
vp               1957 drivers/net/ethernet/neterion/vxge/vxge-traffic.c vxge_hw_vpath_vid_delete(struct __vxge_hw_vpath_handle *vp, u64 vid)
vp               1961 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	if (vp == NULL) {
vp               1966 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	status = __vxge_hw_vpath_rts_table_set(vp,
vp               1983 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 			struct __vxge_hw_vpath_handle *vp)
vp               1989 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	if ((vp == NULL) || (vp->vpath->ringh == NULL)) {
vp               1994 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	vpath = vp->vpath;
vp               2025 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 			struct __vxge_hw_vpath_handle *vp)
vp               2031 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	if ((vp == NULL) || (vp->vpath->ringh == NULL)) {
vp               2036 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	vpath = vp->vpath;
vp               2059 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 			struct __vxge_hw_vpath_handle *vp)
vp               2065 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	if ((vp == NULL) || (vp->vpath->ringh == NULL)) {
vp               2070 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	vpath = vp->vpath;
vp               2091 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 			struct __vxge_hw_vpath_handle *vp)
vp               2097 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	if ((vp == NULL) || (vp->vpath->ringh == NULL)) {
vp               2102 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	vpath = vp->vpath;
vp               2124 drivers/net/ethernet/neterion/vxge/vxge-traffic.c vxge_hw_vpath_mcast_disable(struct __vxge_hw_vpath_handle *vp)
vp               2130 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	if ((vp == NULL) || (vp->vpath->ringh == NULL)) {
vp               2135 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	vpath = vp->vpath;
vp               2156 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 			struct __vxge_hw_vpath_handle *vp,
vp               2161 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	if (vp == NULL) {
vp               2166 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	status = __vxge_hw_vpath_alarm_process(vp->vpath, skip_alarms);
vp               2184 drivers/net/ethernet/neterion/vxge/vxge-traffic.c vxge_hw_vpath_msix_set(struct __vxge_hw_vpath_handle *vp, int *tim_msix_id,
vp               2188 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	struct __vxge_hw_virtualpath *vpath = vp->vpath;
vp               2190 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	u32 vp_id = vp->vpath->vp_id;
vp               2230 drivers/net/ethernet/neterion/vxge/vxge-traffic.c vxge_hw_vpath_msix_mask(struct __vxge_hw_vpath_handle *vp, int msix_id)
vp               2232 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	struct __vxge_hw_device *hldev = vp->vpath->hldev;
vp               2250 drivers/net/ethernet/neterion/vxge/vxge-traffic.c void vxge_hw_vpath_msix_clear(struct __vxge_hw_vpath_handle *vp, int msix_id)
vp               2252 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	struct __vxge_hw_device *hldev = vp->vpath->hldev;
vp               2277 drivers/net/ethernet/neterion/vxge/vxge-traffic.c vxge_hw_vpath_msix_unmask(struct __vxge_hw_vpath_handle *vp, int msix_id)
vp               2279 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	struct __vxge_hw_device *hldev = vp->vpath->hldev;
vp               2293 drivers/net/ethernet/neterion/vxge/vxge-traffic.c void vxge_hw_vpath_inta_mask_tx_rx(struct __vxge_hw_vpath_handle *vp)
vp               2298 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	struct __vxge_hw_device *hldev = vp->vpath->hldev;
vp               2301 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 		tim_int_mask1, vp->vpath->vp_id);
vp               2331 drivers/net/ethernet/neterion/vxge/vxge-traffic.c void vxge_hw_vpath_inta_unmask_tx_rx(struct __vxge_hw_vpath_handle *vp)
vp               2336 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 	struct __vxge_hw_device *hldev = vp->vpath->hldev;
vp               2339 drivers/net/ethernet/neterion/vxge/vxge-traffic.c 		tim_int_mask1, vp->vpath->vp_id);
vp               2244 drivers/net/ethernet/neterion/vxge/vxge-traffic.h void vxge_hw_vpath_msix_clear(struct __vxge_hw_vpath_handle *vp, int msix_id);
vp                201 drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c #define PQ_INFO_ELEMENT(vp, pf, tc, port, rl_valid, rl) \
vp                202 drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c 	(((vp) << 0) | ((pf) << 12) | ((tc) << 16) | ((port) << 20) | \
vp                155 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov.h 	struct qlcnic_vport		*vp;
vp                146 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlcnic_vport *vp;
vp                205 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 			vp = kzalloc(sizeof(struct qlcnic_vport), GFP_KERNEL);
vp                206 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 			if (!vp) {
vp                210 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 			sriov->vf_info[i].vp = vp;
vp                211 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 			vp->vlan_mode = QLC_GUEST_VLAN_MODE;
vp                212 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 			vp->max_tx_bw = MAX_BW;
vp                213 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 			vp->min_tx_bw = MIN_BW;
vp                214 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 			vp->spoofchk = false;
vp                215 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 			eth_random_addr(vp->mac);
vp                218 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 				 vp->mac, i);
vp                283 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 		kfree(sriov->vf_info[i].vp);
vp                 75 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_vport *vp;
vp                109 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		vp = sriov->vf_info[id].vp;
vp                110 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		info->min_tx_bw = vp->min_tx_bw;
vp                111 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		info->max_tx_bw = vp->max_tx_bw;
vp                237 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_vport *vp;
vp                246 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		vp = sriov->vf_info[index].vp;
vp                247 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		vp->handle = 0;
vp                255 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_vport *vp;
vp                264 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		vp = sriov->vf_info[index].vp;
vp                265 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		vp->handle = vport_handle;
vp                282 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 			return vf_info->vp->handle;
vp                686 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_vport *vp;
vp                694 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	vp = adapter->ahw->sriov->vf_info[id].vp;
vp                700 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	if (vp->spoofchk == true) {
vp                701 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		mac = vp->mac;
vp                708 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	if (vp->vlan_mode == QLC_PVID_MODE) {
vp                710 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		cmd.req.arg[3] |= vp->pvid << 8;
vp                743 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_vport *vp = vf->vp;
vp                761 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		if (vp->vlan_mode == QLC_GUEST_VLAN_MODE) {
vp                793 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_vport *vp;
vp                799 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	vp = vf->vp;
vp                823 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	addr = vp->mac;
vp                875 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	if (vf->vp->vlan_mode != QLC_PVID_MODE) {
vp                897 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	cmd->req.arg[6] = vf->vp->handle;
vp                925 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		mac = vf->vp->mac;
vp                957 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	cmd->req.arg[5] |= vf->vp->handle << 16;
vp                995 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	cmd->req.arg[1] |= vf->vp->handle << 16;
vp               1029 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	cmd->req.arg[1] |= vf->vp->handle << 16;
vp               1071 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	cmd->req.arg[1] |= vf->vp->handle << 16;
vp               1145 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		cmd->req.arg[1] |= vf->vp->handle << 16;
vp               1257 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_vport *vp = vf->vp;
vp               1263 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	cmd->req.arg[1] |= (vf->vp->handle << 16);
vp               1266 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	if (vp->vlan_mode == QLC_PVID_MODE) {
vp               1271 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		cmd->req.arg[3] |= vp->pvid << 16;
vp               1328 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	cmd->req.arg[1] |= vf->vp->handle << 16;
vp               1338 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_vport *vp = vf->vp;
vp               1339 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	u8 mode = vp->vlan_mode;
vp               1360 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		cmd->rsp.arg[1] = mode | 1 << 8 | vp->pvid << 16;
vp               1435 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_vport *vp = vf->vp;
vp               1439 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	if (vp->vlan_mode != QLC_GUEST_VLAN_MODE) {
vp               1740 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_vport *vp = vf->vp;
vp               1753 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	if (vp->vlan_mode == QLC_GUEST_VLAN_MODE)
vp               1824 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		if (ether_addr_equal(vf_info->vp->mac, mac)) {
vp               1833 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	curr_mac = vf_info->vp->mac;
vp               1855 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_vport *vp;
vp               1865 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	vp = vf_info->vp;
vp               1866 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	vpid = vp->handle;
vp               1902 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	vp->max_tx_bw = max_tx_rate / 100;
vp               1905 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		    max_tx_rate, vp->max_tx_bw, vf);
vp               1906 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	vp->min_tx_bw = min_tx_rate / 100;
vp               1909 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		    min_tx_rate, vp->min_tx_bw, vf);
vp               1919 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_vport *vp;
vp               1938 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	vp = vf_info->vp;
vp               1951 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		vp->vlan_mode = QLC_GUEST_VLAN_MODE;
vp               1954 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		vp->vlan_mode = QLC_NO_VLAN_MODE;
vp               1955 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		vp->qos = 0;
vp               1958 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		vp->vlan_mode = QLC_PVID_MODE;
vp               1960 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		vp->qos = qos;
vp               1961 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		vp->pvid = vlan;
vp               1970 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 				      struct qlcnic_vport *vp, int vf)
vp               1974 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	switch (vp->vlan_mode) {
vp               1976 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		vlan = vp->pvid;
vp               1986 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 			    vp->vlan_mode, vf);
vp               1997 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_vport *vp;
vp               2005 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	vp = sriov->vf_info[vf].vp;
vp               2006 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	memcpy(&ivi->mac, vp->mac, ETH_ALEN);
vp               2007 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	ivi->vlan = qlcnic_sriov_get_vf_vlan(adapter, vp, vf);
vp               2008 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	ivi->qos = vp->qos;
vp               2009 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	ivi->spoofchk = vp->spoofchk;
vp               2010 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	if (vp->max_tx_bw == MAX_BW)
vp               2013 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		ivi->max_tx_rate = vp->max_tx_bw * 100;
vp               2014 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	if (vp->min_tx_bw == MIN_BW)
vp               2017 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		ivi->min_tx_rate = vp->min_tx_bw * 100;
vp               2028 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_vport *vp;
vp               2037 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	vp = vf_info->vp;
vp               2045 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	vp->spoofchk = chk;
vp                 74 drivers/net/ethernet/sun/ldmvsw.c 	return port->vp->msg_enable;
vp                 81 drivers/net/ethernet/sun/ldmvsw.c 	port->vp->msg_enable = value;
vp                124 drivers/net/ethernet/sun/ldmvsw.c 	return sunvnet_set_rx_mode_common(dev, port->vp);
vp                146 drivers/net/ethernet/sun/ldmvsw.c 	return sunvnet_poll_controller_common(dev, port->vp);
vp                171 drivers/net/ethernet/sun/ldmvsw.c 	struct vnet *vp;
vp                196 drivers/net/ethernet/sun/ldmvsw.c 	vp = NULL;
vp                200 drivers/net/ethernet/sun/ldmvsw.c 			vp = iter;
vp                205 drivers/net/ethernet/sun/ldmvsw.c 	if (!vp) {
vp                206 drivers/net/ethernet/sun/ldmvsw.c 		vp = kzalloc(sizeof(*vp), GFP_KERNEL);
vp                207 drivers/net/ethernet/sun/ldmvsw.c 		if (unlikely(!vp)) {
vp                212 drivers/net/ethernet/sun/ldmvsw.c 		spin_lock_init(&vp->lock);
vp                213 drivers/net/ethernet/sun/ldmvsw.c 		INIT_LIST_HEAD(&vp->port_list);
vp                214 drivers/net/ethernet/sun/ldmvsw.c 		INIT_LIST_HEAD(&vp->list);
vp                215 drivers/net/ethernet/sun/ldmvsw.c 		vp->local_mac = *local_mac;
vp                216 drivers/net/ethernet/sun/ldmvsw.c 		list_add(&vp->list, &vnet_list);
vp                223 drivers/net/ethernet/sun/ldmvsw.c 	return vp;
vp                284 drivers/net/ethernet/sun/ldmvsw.c 	struct vnet *vp;
vp                310 drivers/net/ethernet/sun/ldmvsw.c 	vp = vsw_get_vnet(hp, vdev->mp, &handle);
vp                311 drivers/net/ethernet/sun/ldmvsw.c 	if (IS_ERR(vp)) {
vp                312 drivers/net/ethernet/sun/ldmvsw.c 		err = PTR_ERR(vp);
vp                334 drivers/net/ethernet/sun/ldmvsw.c 	port->vp = vp;
vp                363 drivers/net/ethernet/sun/ldmvsw.c 	spin_lock_irqsave(&vp->lock, flags);
vp                364 drivers/net/ethernet/sun/ldmvsw.c 	list_add_rcu(&port->list, &vp->port_list);
vp                365 drivers/net/ethernet/sun/ldmvsw.c 	spin_unlock_irqrestore(&vp->lock, flags);
vp                375 drivers/net/ethernet/sun/ldmvsw.c 	spin_lock_irqsave(&vp->lock, flags);
vp                377 drivers/net/ethernet/sun/ldmvsw.c 	spin_unlock_irqrestore(&vp->lock, flags);
vp                422 drivers/net/ethernet/sun/ldmvsw.c 		spin_lock_irqsave(&port->vp->lock, flags);
vp                424 drivers/net/ethernet/sun/ldmvsw.c 		spin_unlock_irqrestore(&port->vp->lock, flags);
vp                439 drivers/net/ethernet/sun/ldmvsw.c 	struct vnet *vp;
vp                444 drivers/net/ethernet/sun/ldmvsw.c 		vp = list_first_entry(&vnet_list, struct vnet, list);
vp                445 drivers/net/ethernet/sun/ldmvsw.c 		list_del(&vp->list);
vp                447 drivers/net/ethernet/sun/ldmvsw.c 		if (!list_empty(&vp->port_list))
vp                449 drivers/net/ethernet/sun/ldmvsw.c 		kfree(vp);
vp               5036 drivers/net/ethernet/sun/niu.c 		struct niu_vlan_rdc *vp = &cp->vlan_mappings[i];
vp               5039 drivers/net/ethernet/sun/niu.c 			       vp->vlan_pref, vp->rdc_num);
vp               6553 drivers/net/ethernet/sun/niu.c 		struct vlan_ethhdr *vp = (struct vlan_ethhdr *) ehdr;
vp               6554 drivers/net/ethernet/sun/niu.c 		__be16 val = vp->h_vlan_encapsulated_proto;
vp                 69 drivers/net/ethernet/sun/sunvnet.c 	struct vnet *vp = netdev_priv(dev);
vp                 71 drivers/net/ethernet/sun/sunvnet.c 	return vp->msg_enable;
vp                 76 drivers/net/ethernet/sun/sunvnet.c 	struct vnet *vp = netdev_priv(dev);
vp                 78 drivers/net/ethernet/sun/sunvnet.c 	vp->msg_enable = value;
vp                102 drivers/net/ethernet/sun/sunvnet.c 	struct vnet *vp = (struct vnet *)netdev_priv(dev);
vp                107 drivers/net/ethernet/sun/sunvnet.c 			+ (NUM_VNET_PORT_STATS * vp->nports);
vp                115 drivers/net/ethernet/sun/sunvnet.c 	struct vnet *vp = (struct vnet *)netdev_priv(dev);
vp                125 drivers/net/ethernet/sun/sunvnet.c 		list_for_each_entry_rcu(port, &vp->port_list, list) {
vp                160 drivers/net/ethernet/sun/sunvnet.c 	struct vnet *vp = (struct vnet *)netdev_priv(dev);
vp                177 drivers/net/ethernet/sun/sunvnet.c 	data[i++] = vp->nports;
vp                180 drivers/net/ethernet/sun/sunvnet.c 	list_for_each_entry_rcu(port, &vp->port_list, list) {
vp                205 drivers/net/ethernet/sun/sunvnet.c static struct vnet_port *__tx_port_find(struct vnet *vp, struct sk_buff *skb)
vp                208 drivers/net/ethernet/sun/sunvnet.c 	struct hlist_head *hp = &vp->port_hash[hash];
vp                217 drivers/net/ethernet/sun/sunvnet.c 	list_for_each_entry_rcu(port, &vp->port_list, list) {
vp                231 drivers/net/ethernet/sun/sunvnet.c 	struct vnet *vp = netdev_priv(dev);
vp                233 drivers/net/ethernet/sun/sunvnet.c 	return __tx_port_find(vp, skb);
vp                239 drivers/net/ethernet/sun/sunvnet.c 	struct vnet *vp = netdev_priv(dev);
vp                240 drivers/net/ethernet/sun/sunvnet.c 	struct vnet_port *port = __tx_port_find(vp, skb);
vp                256 drivers/net/ethernet/sun/sunvnet.c 	struct vnet *vp = netdev_priv(dev);
vp                258 drivers/net/ethernet/sun/sunvnet.c 	return sunvnet_set_rx_mode_common(dev, vp);
vp                264 drivers/net/ethernet/sun/sunvnet.c 	struct vnet *vp = netdev_priv(dev);
vp                266 drivers/net/ethernet/sun/sunvnet.c 	return sunvnet_poll_controller_common(dev, vp);
vp                288 drivers/net/ethernet/sun/sunvnet.c 	struct vnet *vp;
vp                291 drivers/net/ethernet/sun/sunvnet.c 	dev = alloc_etherdev_mqs(sizeof(*vp), VNET_MAX_TXQS, 1);
vp                300 drivers/net/ethernet/sun/sunvnet.c 	vp = netdev_priv(dev);
vp                302 drivers/net/ethernet/sun/sunvnet.c 	spin_lock_init(&vp->lock);
vp                303 drivers/net/ethernet/sun/sunvnet.c 	vp->dev = dev;
vp                305 drivers/net/ethernet/sun/sunvnet.c 	INIT_LIST_HEAD(&vp->port_list);
vp                307 drivers/net/ethernet/sun/sunvnet.c 		INIT_HLIST_HEAD(&vp->port_hash[i]);
vp                308 drivers/net/ethernet/sun/sunvnet.c 	INIT_LIST_HEAD(&vp->list);
vp                309 drivers/net/ethernet/sun/sunvnet.c 	vp->local_mac = *local_mac;
vp                333 drivers/net/ethernet/sun/sunvnet.c 	list_add(&vp->list, &vnet_list);
vp                335 drivers/net/ethernet/sun/sunvnet.c 	return vp;
vp                346 drivers/net/ethernet/sun/sunvnet.c 	struct vnet *iter, *vp;
vp                349 drivers/net/ethernet/sun/sunvnet.c 	vp = NULL;
vp                352 drivers/net/ethernet/sun/sunvnet.c 			vp = iter;
vp                356 drivers/net/ethernet/sun/sunvnet.c 	if (!vp)
vp                357 drivers/net/ethernet/sun/sunvnet.c 		vp = vnet_new(local_mac, vdev);
vp                360 drivers/net/ethernet/sun/sunvnet.c 	return vp;
vp                365 drivers/net/ethernet/sun/sunvnet.c 	struct vnet *vp;
vp                370 drivers/net/ethernet/sun/sunvnet.c 		vp = list_first_entry(&vnet_list, struct vnet, list);
vp                371 drivers/net/ethernet/sun/sunvnet.c 		list_del(&vp->list);
vp                372 drivers/net/ethernet/sun/sunvnet.c 		dev = vp->dev;
vp                374 drivers/net/ethernet/sun/sunvnet.c 		BUG_ON(!list_empty(&vp->port_list));
vp                428 drivers/net/ethernet/sun/sunvnet.c 	struct vnet *vp;
vp                434 drivers/net/ethernet/sun/sunvnet.c 	vp = vnet_find_parent(hp, vdev->mp, vdev);
vp                435 drivers/net/ethernet/sun/sunvnet.c 	if (IS_ERR(vp)) {
vp                437 drivers/net/ethernet/sun/sunvnet.c 		err = PTR_ERR(vp);
vp                456 drivers/net/ethernet/sun/sunvnet.c 	port->vp = vp;
vp                460 drivers/net/ethernet/sun/sunvnet.c 			      &vnet_vio_ops, vp->dev->name);
vp                468 drivers/net/ethernet/sun/sunvnet.c 	netif_napi_add(port->vp->dev, &port->napi, sunvnet_poll_common,
vp                481 drivers/net/ethernet/sun/sunvnet.c 	spin_lock_irqsave(&vp->lock, flags);
vp                483 drivers/net/ethernet/sun/sunvnet.c 		list_add_rcu(&port->list, &vp->port_list);
vp                485 drivers/net/ethernet/sun/sunvnet.c 		list_add_tail_rcu(&port->list, &vp->port_list);
vp                487 drivers/net/ethernet/sun/sunvnet.c 			   &vp->port_hash[vnet_hashfn(port->raddr)]);
vp                489 drivers/net/ethernet/sun/sunvnet.c 	spin_unlock_irqrestore(&vp->lock, flags);
vp                494 drivers/net/ethernet/sun/sunvnet.c 		vp->dev->name, port->raddr, switch_port ? " switch-port" : "");
vp               1566 drivers/net/ethernet/sun/sunvnet_common.c static struct vnet_mcast_entry *__vnet_mc_find(struct vnet *vp, u8 *addr)
vp               1570 drivers/net/ethernet/sun/sunvnet_common.c 	for (m = vp->mcast_list; m; m = m->next) {
vp               1577 drivers/net/ethernet/sun/sunvnet_common.c static void __update_mc_list(struct vnet *vp, struct net_device *dev)
vp               1584 drivers/net/ethernet/sun/sunvnet_common.c 		m = __vnet_mc_find(vp, ha->addr);
vp               1597 drivers/net/ethernet/sun/sunvnet_common.c 			m->next = vp->mcast_list;
vp               1598 drivers/net/ethernet/sun/sunvnet_common.c 			vp->mcast_list = m;
vp               1603 drivers/net/ethernet/sun/sunvnet_common.c static void __send_mc_list(struct vnet *vp, struct vnet_port *port)
vp               1618 drivers/net/ethernet/sun/sunvnet_common.c 	for (m = vp->mcast_list; m; m = m->next) {
vp               1640 drivers/net/ethernet/sun/sunvnet_common.c 	pp = &vp->mcast_list;
vp               1666 drivers/net/ethernet/sun/sunvnet_common.c void sunvnet_set_rx_mode_common(struct net_device *dev, struct vnet *vp)
vp               1671 drivers/net/ethernet/sun/sunvnet_common.c 	list_for_each_entry_rcu(port, &vp->port_list, list) {
vp               1673 drivers/net/ethernet/sun/sunvnet_common.c 			__update_mc_list(vp, dev);
vp               1674 drivers/net/ethernet/sun/sunvnet_common.c 			__send_mc_list(vp, port);
vp               1785 drivers/net/ethernet/sun/sunvnet_common.c void sunvnet_poll_controller_common(struct net_device *dev, struct vnet *vp)
vp               1790 drivers/net/ethernet/sun/sunvnet_common.c 	spin_lock_irqsave(&vp->lock, flags);
vp               1791 drivers/net/ethernet/sun/sunvnet_common.c 	if (!list_empty(&vp->port_list)) {
vp               1792 drivers/net/ethernet/sun/sunvnet_common.c 		port = list_entry(vp->port_list.next, struct vnet_port, list);
vp               1795 drivers/net/ethernet/sun/sunvnet_common.c 	spin_unlock_irqrestore(&vp->lock, flags);
vp               1802 drivers/net/ethernet/sun/sunvnet_common.c 	struct vnet *vp = port->vp;
vp               1811 drivers/net/ethernet/sun/sunvnet_common.c 		if (vp->q_used[i] == 0) {
vp               1815 drivers/net/ethernet/sun/sunvnet_common.c 		if (vp->q_used[i] < vp->q_used[smallest])
vp               1819 drivers/net/ethernet/sun/sunvnet_common.c 	vp->nports++;
vp               1820 drivers/net/ethernet/sun/sunvnet_common.c 	vp->q_used[smallest]++;
vp               1827 drivers/net/ethernet/sun/sunvnet_common.c 	port->vp->nports--;
vp               1828 drivers/net/ethernet/sun/sunvnet_common.c 	port->vp->q_used[port->q_index]--;
vp                 70 drivers/net/ethernet/sun/sunvnet_common.h 	struct vnet		*vp;
vp                130 drivers/net/ethernet/sun/sunvnet_common.h 	((__port)->vsw ? (__port)->dev : (__port)->vp->dev)
vp                136 drivers/net/ethernet/sun/sunvnet_common.h void sunvnet_set_rx_mode_common(struct net_device *dev, struct vnet *vp);
vp                144 drivers/net/ethernet/sun/sunvnet_common.h void sunvnet_poll_controller_common(struct net_device *dev, struct vnet *vp);
vp                136 drivers/net/usb/net1080.c 	u16	*vp = kmalloc(sizeof (u16));
vp                138 drivers/net/usb/net1080.c 	if (!vp)
vp                151 drivers/net/usb/net1080.c 		retval = nc_register_read(dev, reg, vp);
vp                156 drivers/net/usb/net1080.c 			netdev_dbg(dev->net, "reg [0x%x] = 0x%x\n", reg, *vp);
vp                158 drivers/net/usb/net1080.c 	kfree(vp);
vp                263 drivers/net/usb/net1080.c 	u16		vp;
vp                268 drivers/net/usb/net1080.c 	if ((retval = nc_register_read(dev, REG_STATUS, &vp)) < 0) {
vp                273 drivers/net/usb/net1080.c 	status = vp;
vp                276 drivers/net/usb/net1080.c 	if ((retval = nc_register_read(dev, REG_USBCTL, &vp)) < 0) {
vp                280 drivers/net/usb/net1080.c 	usbctl = vp;
vp                286 drivers/net/usb/net1080.c 	if ((retval = nc_register_read(dev, REG_TTL, &vp)) < 0) {
vp                290 drivers/net/usb/net1080.c 	ttl = vp;
vp                309 drivers/net/usb/net1080.c 	u16			vp;
vp                311 drivers/net/usb/net1080.c 	retval = nc_register_read(dev, REG_STATUS, &vp);
vp                312 drivers/net/usb/net1080.c 	status = vp;
vp                646 drivers/net/wireless/ath/ath5k/eeprom.c ath5k_get_pcdac_intercepts(struct ath5k_hw *ah, u8 min, u8 max, u8 *vp)
vp                663 drivers/net/wireless/ath/ath5k/eeprom.c 		vp[i] = (ip[i] * max + (100 - ip[i]) * min) / 100;
vp                188 drivers/net/wireless/mac80211_hwsim.c 	struct hwsim_vif_priv *vp = (void *)vif->drv_priv;
vp                189 drivers/net/wireless/mac80211_hwsim.c 	WARN(vp->magic != HWSIM_VIF_MAGIC,
vp                191 drivers/net/wireless/mac80211_hwsim.c 	     vif, vp->magic, vif->addr, vif->type, vif->p2p);
vp                196 drivers/net/wireless/mac80211_hwsim.c 	struct hwsim_vif_priv *vp = (void *)vif->drv_priv;
vp                197 drivers/net/wireless/mac80211_hwsim.c 	vp->magic = HWSIM_VIF_MAGIC;
vp                202 drivers/net/wireless/mac80211_hwsim.c 	struct hwsim_vif_priv *vp = (void *)vif->drv_priv;
vp                203 drivers/net/wireless/mac80211_hwsim.c 	vp->magic = 0;
vp                632 drivers/net/wireless/mac80211_hwsim.c 	struct hwsim_vif_priv *vp = (void *)vif->drv_priv;
vp                636 drivers/net/wireless/mac80211_hwsim.c 	if (!vp->assoc)
vp                641 drivers/net/wireless/mac80211_hwsim.c 		  __func__, vp->bssid, vp->aid);
vp                650 drivers/net/wireless/mac80211_hwsim.c 	pspoll->aid = cpu_to_le16(0xc000 | vp->aid);
vp                651 drivers/net/wireless/mac80211_hwsim.c 	memcpy(pspoll->bssid, vp->bssid, ETH_ALEN);
vp                663 drivers/net/wireless/mac80211_hwsim.c 	struct hwsim_vif_priv *vp = (void *)vif->drv_priv;
vp                667 drivers/net/wireless/mac80211_hwsim.c 	if (!vp->assoc)
vp                672 drivers/net/wireless/mac80211_hwsim.c 		  __func__, vp->bssid, ps);
vp                683 drivers/net/wireless/mac80211_hwsim.c 	memcpy(hdr->addr1, vp->bssid, ETH_ALEN);
vp                685 drivers/net/wireless/mac80211_hwsim.c 	memcpy(hdr->addr3, vp->bssid, ETH_ALEN);
vp               1711 drivers/net/wireless/mac80211_hwsim.c 	struct hwsim_vif_priv *vp = (void *)vif->drv_priv;
vp               1713 drivers/net/wireless/mac80211_hwsim.c 	if (vp->bcn_en)
vp               1722 drivers/net/wireless/mac80211_hwsim.c 	struct hwsim_vif_priv *vp = (void *)vif->drv_priv;
vp               1733 drivers/net/wireless/mac80211_hwsim.c 		memcpy(vp->bssid, info->bssid, ETH_ALEN);
vp               1739 drivers/net/wireless/mac80211_hwsim.c 		vp->assoc = info->assoc;
vp               1740 drivers/net/wireless/mac80211_hwsim.c 		vp->aid = info->aid;
vp               1746 drivers/net/wireless/mac80211_hwsim.c 		vp->bcn_en = info->enable_beacon;
vp                594 drivers/s390/crypto/zcrypt_ccamisc.c 				u8  vp[32];  /* verification pattern */
vp               1192 drivers/s390/crypto/zcrypt_ccamisc.c 				u8  vp[32];  /* verification pattern */
vp                360 drivers/scsi/bfa/bfad_attr.c 	struct bfad_vport_s *vp;
vp                372 drivers/scsi/bfa/bfad_attr.c 	list_for_each_entry(vp, &bfad->pbc_vport_list, list_entry) {
vp                374 drivers/scsi/bfa/bfad_attr.c 				vp->fcs_vport.lport.port_cfg.pwwn) {
vp                376 drivers/scsi/bfa/bfad_attr.c 				vp->fcs_vport.lport.port_cfg.preboot_vp;
vp               1316 drivers/scsi/fcoe/fcoe_ctlr.c 	struct fip_vn_desc *vp;
vp               1382 drivers/scsi/fcoe/fcoe_ctlr.c 	num_vlink_desc = rlen / sizeof(*vp);
vp               1384 drivers/scsi/fcoe/fcoe_ctlr.c 		vlink_desc_arr = kmalloc_array(num_vlink_desc, sizeof(vp),
vp               1420 drivers/scsi/fcoe/fcoe_ctlr.c 			vp = (struct fip_vn_desc *)desc;
vp               1421 drivers/scsi/fcoe/fcoe_ctlr.c 			if (dlen < sizeof(*vp))
vp               1423 drivers/scsi/fcoe/fcoe_ctlr.c 			vlink_desc_arr[num_vlink_desc++] = vp;
vp               1425 drivers/scsi/fcoe/fcoe_ctlr.c 						      ntoh24(vp->fd_fc_id));
vp               1475 drivers/scsi/fcoe/fcoe_ctlr.c 			vp = vlink_desc_arr[i];
vp               1477 drivers/scsi/fcoe/fcoe_ctlr.c 						     ntoh24(vp->fd_fc_id));
vp               1486 drivers/scsi/fcoe/fcoe_ctlr.c 					      vp->fd_mac) ||
vp               1487 drivers/scsi/fcoe/fcoe_ctlr.c 				get_unaligned_be64(&vp->fd_wwpn) !=
vp                841 drivers/scsi/lpfc/lpfc_attr.c 	lpfc_vpd_t *vp = &phba->vpd;
vp                843 drivers/scsi/lpfc/lpfc_attr.c 	lpfc_jedec_to_ascii(vp->rev.biuRev, hdw);
vp                845 drivers/scsi/lpfc/lpfc_attr.c 			 vp->rev.smRev, vp->rev.smFwRev);
vp               2163 drivers/scsi/lpfc/lpfc_ct.c 	lpfc_vpd_t *vp = &phba->vpd;
vp               2171 drivers/scsi/lpfc/lpfc_ct.c 	incr = vp->rev.biuRev;
vp               3302 drivers/scsi/lpfc/lpfc_ct.c 	lpfc_vpd_t *vp = &phba->vpd;
vp               3309 drivers/scsi/lpfc/lpfc_ct.c 		snprintf(fwrevision, FW_REV_STR_SIZE, "%s", vp->rev.opFwName);
vp               3310 drivers/scsi/lpfc/lpfc_ct.c 	else if (vp->rev.rBit) {
vp               3312 drivers/scsi/lpfc/lpfc_ct.c 			rev = vp->rev.sli2FwRev;
vp               3314 drivers/scsi/lpfc/lpfc_ct.c 			rev = vp->rev.sli1FwRev;
vp               3341 drivers/scsi/lpfc/lpfc_ct.c 			fwname = vp->rev.sli2FwName;
vp               3343 drivers/scsi/lpfc/lpfc_ct.c 			fwname = vp->rev.sli1FwName;
vp               3371 drivers/scsi/lpfc/lpfc_ct.c 		rev = vp->rev.smFwRev;
vp                121 drivers/scsi/lpfc/lpfc_init.c 	lpfc_vpd_t *vp = &phba->vpd;
vp                196 drivers/scsi/lpfc/lpfc_init.c 		vp->rev.rBit = 0;
vp                210 drivers/scsi/lpfc/lpfc_init.c 	vp->rev.rBit = 1;
vp                211 drivers/scsi/lpfc/lpfc_init.c 	memcpy(&vp->sli3Feat, &mb->un.varRdRev.sli3Feat, sizeof(uint32_t));
vp                212 drivers/scsi/lpfc/lpfc_init.c 	vp->rev.sli1FwRev = mb->un.varRdRev.sli1FwRev;
vp                213 drivers/scsi/lpfc/lpfc_init.c 	memcpy(vp->rev.sli1FwName, (char*) mb->un.varRdRev.sli1FwName, 16);
vp                214 drivers/scsi/lpfc/lpfc_init.c 	vp->rev.sli2FwRev = mb->un.varRdRev.sli2FwRev;
vp                215 drivers/scsi/lpfc/lpfc_init.c 	memcpy(vp->rev.sli2FwName, (char *) mb->un.varRdRev.sli2FwName, 16);
vp                216 drivers/scsi/lpfc/lpfc_init.c 	vp->rev.biuRev = mb->un.varRdRev.biuRev;
vp                217 drivers/scsi/lpfc/lpfc_init.c 	vp->rev.smRev = mb->un.varRdRev.smRev;
vp                218 drivers/scsi/lpfc/lpfc_init.c 	vp->rev.smFwRev = mb->un.varRdRev.un.smFwRev;
vp                219 drivers/scsi/lpfc/lpfc_init.c 	vp->rev.endecRev = mb->un.varRdRev.endecRev;
vp                220 drivers/scsi/lpfc/lpfc_init.c 	vp->rev.fcphHigh = mb->un.varRdRev.fcphHigh;
vp                221 drivers/scsi/lpfc/lpfc_init.c 	vp->rev.fcphLow = mb->un.varRdRev.fcphLow;
vp                222 drivers/scsi/lpfc/lpfc_init.c 	vp->rev.feaLevelHigh = mb->un.varRdRev.feaLevelHigh;
vp                223 drivers/scsi/lpfc/lpfc_init.c 	vp->rev.feaLevelLow = mb->un.varRdRev.feaLevelLow;
vp                224 drivers/scsi/lpfc/lpfc_init.c 	vp->rev.postKernRev = mb->un.varRdRev.postKernRev;
vp                225 drivers/scsi/lpfc/lpfc_init.c 	vp->rev.opFwRev = mb->un.varRdRev.opFwRev;
vp                231 drivers/scsi/lpfc/lpfc_init.c 	if (vp->rev.feaLevelHigh < 9)
vp               2283 drivers/scsi/lpfc/lpfc_init.c 	lpfc_vpd_t *vp;
vp               2317 drivers/scsi/lpfc/lpfc_init.c 	vp = &phba->vpd;
vp               2325 drivers/scsi/lpfc/lpfc_init.c 		if (vp->rev.biuRev >= 1 && vp->rev.biuRev <= 3)
vp               2336 drivers/scsi/lpfc/lpfc_init.c 		if (FC_JEDEC_ID(vp->rev.biuRev) == CENTAUR_2G_JEDEC_ID)
vp                373 drivers/scsi/ncr53c8xx.c 	m_addr_t vp;
vp                379 drivers/scsi/ncr53c8xx.c 		vp = (m_addr_t) dma_alloc_coherent(mp->bush,
vp                382 drivers/scsi/ncr53c8xx.c 		if (vp) {
vp                383 drivers/scsi/ncr53c8xx.c 			int hc = VTOB_HASH_CODE(vp);
vp                384 drivers/scsi/ncr53c8xx.c 			vbp->vaddr = vp;
vp                389 drivers/scsi/ncr53c8xx.c 			return vp;
vp                487 drivers/scsi/ncr53c8xx.c 	m_vtob_s *vp = NULL;
vp                493 drivers/scsi/ncr53c8xx.c 		vp = mp->vtob[hc];
vp                494 drivers/scsi/ncr53c8xx.c 		while (vp && (m_addr_t) vp->vaddr != a)
vp                495 drivers/scsi/ncr53c8xx.c 			vp = vp->next;
vp                498 drivers/scsi/ncr53c8xx.c 	return vp ? vp->baddr + (((m_addr_t) m) - a) : 0;
vp                175 drivers/scsi/qedf/qedf_fip.c 	struct fip_vn_desc *vp;
vp                257 drivers/scsi/qedf/qedf_fip.c 				vp = (struct fip_vn_desc *)desc;
vp                261 drivers/scsi/qedf/qedf_fip.c 					 ntoh24(vp->fd_fc_id), vp->fd_mac,
vp                262 drivers/scsi/qedf/qedf_fip.c 					 get_unaligned_be64(&vp->fd_wwpn));
vp                266 drivers/scsi/qedf/qedf_fip.c 				if ((get_unaligned_be64(&vp->fd_wwpn) ==
vp                268 drivers/scsi/qedf/qedf_fip.c 				   (ntoh24(vp->fd_fc_id) ==
vp                270 drivers/scsi/qedf/qedf_fip.c 				   (ether_addr_equal(vp->fd_mac,
vp               3535 drivers/scsi/qla2xxx/qla_gs.c 	scsi_qla_host_t *vp;
vp               3544 drivers/scsi/qla2xxx/qla_gs.c 	list_for_each_entry(vp, &ha->vp_list, list) {
vp               3545 drivers/scsi/qla2xxx/qla_gs.c 		twwn = wwn_to_u64(vp->port_name);
vp               6592 drivers/scsi/qla2xxx/qla_init.c 	struct scsi_qla_host *vp;
vp               6601 drivers/scsi/qla2xxx/qla_init.c 		list_for_each_entry(vp, &ha->vp_list, list)
vp               6602 drivers/scsi/qla2xxx/qla_init.c 			qla2x00_mark_all_devices_lost(vp, 0);
vp               6617 drivers/scsi/qla2xxx/qla_init.c 	struct scsi_qla_host *vp;
vp               6681 drivers/scsi/qla2xxx/qla_init.c 		list_for_each_entry(vp, &ha->vp_list, list) {
vp               6682 drivers/scsi/qla2xxx/qla_init.c 			atomic_inc(&vp->vref_count);
vp               6685 drivers/scsi/qla2xxx/qla_init.c 			qla2x00_mark_all_devices_lost(vp, 0);
vp               6688 drivers/scsi/qla2xxx/qla_init.c 			atomic_dec(&vp->vref_count);
vp               6703 drivers/scsi/qla2xxx/qla_init.c 	list_for_each_entry(vp, &ha->vp_list, list) {
vp               6704 drivers/scsi/qla2xxx/qla_init.c 		atomic_inc(&vp->vref_count);
vp               6707 drivers/scsi/qla2xxx/qla_init.c 		list_for_each_entry(fcport, &vp->vp_fcports, list)
vp               6711 drivers/scsi/qla2xxx/qla_init.c 		atomic_dec(&vp->vref_count);
vp               6751 drivers/scsi/qla2xxx/qla_init.c 	struct scsi_qla_host *vp;
vp               6883 drivers/scsi/qla2xxx/qla_init.c 		list_for_each_entry(vp, &ha->vp_list, list) {
vp               6884 drivers/scsi/qla2xxx/qla_init.c 			if (vp->vp_idx) {
vp               6885 drivers/scsi/qla2xxx/qla_init.c 				atomic_inc(&vp->vref_count);
vp               6888 drivers/scsi/qla2xxx/qla_init.c 				qla2x00_vp_abort_isp(vp);
vp               6891 drivers/scsi/qla2xxx/qla_init.c 				atomic_dec(&vp->vref_count);
vp               8559 drivers/scsi/qla2xxx/qla_init.c 	struct scsi_qla_host *vp;
vp               8631 drivers/scsi/qla2xxx/qla_init.c 		list_for_each_entry(vp, &ha->vp_list, list) {
vp               8632 drivers/scsi/qla2xxx/qla_init.c 			if (vp->vp_idx) {
vp               8633 drivers/scsi/qla2xxx/qla_init.c 				atomic_inc(&vp->vref_count);
vp               8636 drivers/scsi/qla2xxx/qla_init.c 				qla2x00_vp_abort_isp(vp);
vp               8639 drivers/scsi/qla2xxx/qla_init.c 				atomic_dec(&vp->vref_count);
vp                554 drivers/scsi/qla2xxx/qla_isr.c 	scsi_qla_host_t *vp;
vp                563 drivers/scsi/qla2xxx/qla_isr.c 	list_for_each_entry(vp, &ha->vp_list, list) {
vp                564 drivers/scsi/qla2xxx/qla_isr.c 		vp_did = vp->d_id.b24;
vp               3836 drivers/scsi/qla2xxx/qla_mbx.c 	scsi_qla_host_t *vp = NULL;
vp               3991 drivers/scsi/qla2xxx/qla_mbx.c 			list_for_each_entry(vp, &ha->vp_list, list) {
vp               3992 drivers/scsi/qla2xxx/qla_mbx.c 				if (rptid_entry->vp_idx == vp->vp_idx) {
vp               4002 drivers/scsi/qla2xxx/qla_mbx.c 			qlt_update_host_map(vp, id);
vp               4008 drivers/scsi/qla2xxx/qla_mbx.c 			set_bit(VP_IDX_ACQUIRED, &vp->vp_flags);
vp               4009 drivers/scsi/qla2xxx/qla_mbx.c 			set_bit(REGISTER_FC4_NEEDED, &vp->dpc_flags);
vp               4010 drivers/scsi/qla2xxx/qla_mbx.c 			set_bit(REGISTER_FDMI_NEEDED, &vp->dpc_flags);
vp                413 drivers/scsi/qla2xxx/qla_mid.c 	scsi_qla_host_t *vp;
vp                427 drivers/scsi/qla2xxx/qla_mid.c 	list_for_each_entry(vp, &ha->vp_list, list) {
vp                428 drivers/scsi/qla2xxx/qla_mid.c 		if (vp->vp_idx) {
vp                429 drivers/scsi/qla2xxx/qla_mid.c 			atomic_inc(&vp->vref_count);
vp                432 drivers/scsi/qla2xxx/qla_mid.c 			qla2x00_do_dpc_vp(vp);
vp                435 drivers/scsi/qla2xxx/qla_mid.c 			atomic_dec(&vp->vref_count);
vp               6844 drivers/scsi/qla2xxx/qla_os.c 	struct scsi_qla_host *vp;
vp               6885 drivers/scsi/qla2xxx/qla_os.c 	list_for_each_entry(vp, &ha->vp_list, list) {
vp               6886 drivers/scsi/qla2xxx/qla_os.c 		atomic_inc(&vp->vref_count);
vp               6888 drivers/scsi/qla2xxx/qla_os.c 		qla2x00_mark_all_devices_lost(vp, 0);
vp               6890 drivers/scsi/qla2xxx/qla_os.c 		atomic_dec(&vp->vref_count);
vp               6899 drivers/scsi/qla2xxx/qla_os.c 	list_for_each_entry(vp, &ha->vp_list, list) {
vp               6900 drivers/scsi/qla2xxx/qla_os.c 		atomic_inc(&vp->vref_count);
vp               6902 drivers/scsi/qla2xxx/qla_os.c 		list_for_each_entry(fcport, &vp->vp_fcports, list)
vp               6905 drivers/scsi/qla2xxx/qla_os.c 		atomic_dec(&vp->vref_count);
vp                349 drivers/scsi/sym53c8xx_2/sym_malloc.c 	m_vtob_p vp = NULL;
vp                356 drivers/scsi/sym53c8xx_2/sym_malloc.c 		vp = mp->vtob[hc];
vp                357 drivers/scsi/sym53c8xx_2/sym_malloc.c 		while (vp && vp->vaddr != a)
vp                358 drivers/scsi/sym53c8xx_2/sym_malloc.c 			vp = vp->next;
vp                360 drivers/scsi/sym53c8xx_2/sym_malloc.c 	if (!vp)
vp                362 drivers/scsi/sym53c8xx_2/sym_malloc.c 	b = vp->baddr + (m - a);
vp                150 drivers/staging/wilc1000/wilc_netdev.c static int wilc_txq_task(void *vp)
vp                154 drivers/staging/wilc1000/wilc_netdev.c 	struct wilc *wl = vp;
vp                 35 drivers/video/fbdev/geode/gxfb.h 	uint64_t vp[VP_REG_COUNT];
vp                 45 drivers/video/fbdev/geode/lxfb.h 	uint64_t vp[VP_REG_COUNT];
vp                606 drivers/video/fbdev/geode/lxfb_ops.c 	memcpy(par->vp, par->vp_regs, sizeof(par->vp));
vp                736 drivers/video/fbdev/geode/lxfb_ops.c 	for (i = 0; i < ARRAY_SIZE(par->vp); i++) {
vp                751 drivers/video/fbdev/geode/lxfb_ops.c 			write_vp(par, i, par->vp[i]);
vp                804 drivers/video/fbdev/geode/lxfb_ops.c 	write_vp(par, VP_VCFG, par->vp[VP_VCFG]);
vp                805 drivers/video/fbdev/geode/lxfb_ops.c 	write_vp(par, VP_DCFG, par->vp[VP_DCFG]);
vp                 34 drivers/video/fbdev/geode/suspend_gx.c 	memcpy(par->vp, par->vid_regs, sizeof(par->vp));
vp                140 drivers/video/fbdev/geode/suspend_gx.c 	for (i = 0; i < ARRAY_SIZE(par->vp); i++) {
vp                144 drivers/video/fbdev/geode/suspend_gx.c 			write_vp(par, i, par->vp[i] & ~VP_VCFG_VID_EN);
vp                149 drivers/video/fbdev/geode/suspend_gx.c 			write_vp(par, i, par->vp[i] &
vp                166 drivers/video/fbdev/geode/suspend_gx.c 			write_vp(par, i, par->vp[i]);
vp                190 drivers/video/fbdev/geode/suspend_gx.c 	write_vp(par, VP_VCFG, par->vp[VP_VCFG] & ~VP_VCFG_VID_EN);
vp                191 drivers/video/fbdev/geode/suspend_gx.c 	write_vp(par, VP_DCFG, par->vp[VP_DCFG] & ~(VP_DCFG_DAC_BL_EN |
vp                225 drivers/video/fbdev/geode/suspend_gx.c 	write_vp(par, VP_VCFG, par->vp[VP_VCFG]);
vp                226 drivers/video/fbdev/geode/suspend_gx.c 	write_vp(par, VP_DCFG, par->vp[VP_DCFG]);
vp                595 fs/xfs/libxfs/xfs_dir2.c 	int			*vp)	/* out: 1 is block, 0 is not block */
vp                605 fs/xfs/libxfs/xfs_dir2.c 	*vp = rval;
vp                615 fs/xfs/libxfs/xfs_dir2.c 	int			*vp)	/* out: 1 is block, 0 is not block */
vp                622 fs/xfs/libxfs/xfs_dir2.c 	*vp = last == args->geo->leafblk + args->geo->fsbcount;
vp                186 include/linux/sunrpc/svc.h 	__be32 val, *vp;
vp                187 include/linux/sunrpc/svc.h 	vp = iov->iov_base;
vp                188 include/linux/sunrpc/svc.h 	val = *vp++;
vp                189 include/linux/sunrpc/svc.h 	iov->iov_base = (void*)vp;
vp                196 include/linux/sunrpc/svc.h 	__be32 *vp = iov->iov_base + iov->iov_len;
vp                197 include/linux/sunrpc/svc.h 	*vp = htonl(val);
vp                203 include/linux/sunrpc/svc.h 	__be32 val, *vp;
vp                204 include/linux/sunrpc/svc.h 	vp = iov->iov_base;
vp                205 include/linux/sunrpc/svc.h 	val = *vp++;
vp                206 include/linux/sunrpc/svc.h 	iov->iov_base = (void*)vp;
vp                213 include/linux/sunrpc/svc.h 	__be32 *vp = (__be32 *)iov->iov_base;
vp                214 include/linux/sunrpc/svc.h 	iov->iov_base = (void *)(vp - 1);
vp                215 include/linux/sunrpc/svc.h 	iov->iov_len += sizeof(*vp);
vp                220 include/linux/sunrpc/svc.h 	__be32 *vp = iov->iov_base + iov->iov_len;
vp                221 include/linux/sunrpc/svc.h 	*vp = val;
vp                 36 include/sound/emux_synth.h 	int (*prepare)(struct snd_emux_voice *vp);
vp                 37 include/sound/emux_synth.h 	void (*trigger)(struct snd_emux_voice *vp);
vp                 38 include/sound/emux_synth.h 	void (*release)(struct snd_emux_voice *vp);
vp                 39 include/sound/emux_synth.h 	void (*update)(struct snd_emux_voice *vp, int update);
vp                 40 include/sound/emux_synth.h 	void (*terminate)(struct snd_emux_voice *vp);
vp                 41 include/sound/emux_synth.h 	void (*free_voice)(struct snd_emux_voice *vp);
vp                 87 lib/mpi/mpi-internal.h #define MPN_MUL_N_RECURSE(prodp, up, vp, size, tspace) \
vp                 90 lib/mpi/mpi-internal.h 			mul_n_basecase(prodp, up, vp, size);	\
vp                 92 lib/mpi/mpi-internal.h 			mul_n(prodp, up, vp, size, tspace);	\
vp                134 lib/mpi/mpi-internal.h 		mpi_ptr_t vp, mpi_size_t vsize, mpi_limb_t *_result);
vp                141 lib/mpi/mpi-internal.h 			       mpi_ptr_t vp, mpi_size_t vsize,
vp                 21 lib/mpi/mpih-mul.c #define MPN_MUL_N_RECURSE(prodp, up, vp, size, tspace)		\
vp                 24 lib/mpi/mpih-mul.c 			mul_n_basecase(prodp, up, vp, size);	\
vp                 26 lib/mpi/mpih-mul.c 			mul_n(prodp, up, vp, size, tspace);	\
vp                 55 lib/mpi/mpih-mul.c mul_n_basecase(mpi_ptr_t prodp, mpi_ptr_t up, mpi_ptr_t vp, mpi_size_t size)
vp                 63 lib/mpi/mpih-mul.c 	v_limb = vp[0];
vp                 79 lib/mpi/mpih-mul.c 		v_limb = vp[i];
vp                 95 lib/mpi/mpih-mul.c mul_n(mpi_ptr_t prodp, mpi_ptr_t up, mpi_ptr_t vp,
vp                112 lib/mpi/mpih-mul.c 		MPN_MUL_N_RECURSE(prodp, up, vp, esize, tspace);
vp                113 lib/mpi/mpih-mul.c 		cy_limb = mpihelp_addmul_1(prodp + esize, up, esize, vp[esize]);
vp                115 lib/mpi/mpih-mul.c 		cy_limb = mpihelp_addmul_1(prodp + esize, vp, size, up[esize]);
vp                142 lib/mpi/mpih-mul.c 		MPN_MUL_N_RECURSE(prodp + size, up + hsize, vp + hsize, hsize,
vp                155 lib/mpi/mpih-mul.c 		if (mpihelp_cmp(vp + hsize, vp, hsize) >= 0) {
vp                156 lib/mpi/mpih-mul.c 			mpihelp_sub_n(prodp + hsize, vp + hsize, vp, hsize);
vp                159 lib/mpi/mpih-mul.c 			mpihelp_sub_n(prodp + hsize, vp, vp + hsize, hsize);
vp                190 lib/mpi/mpih-mul.c 		MPN_MUL_N_RECURSE(tspace, up, vp, hsize, tspace + size);
vp                323 lib/mpi/mpih-mul.c 			   mpi_ptr_t vp, mpi_size_t vsize,
vp                337 lib/mpi/mpih-mul.c 	MPN_MUL_N_RECURSE(prodp, up, vp, vsize, ctx->tspace);
vp                357 lib/mpi/mpih-mul.c 			MPN_MUL_N_RECURSE(ctx->tp, up, vp, vsize, ctx->tspace);
vp                370 lib/mpi/mpih-mul.c 			if (mpihelp_mul(ctx->tspace, vp, vsize, up, usize, &tmp)
vp                380 lib/mpi/mpih-mul.c 						       vp, vsize,
vp                428 lib/mpi/mpih-mul.c 	    mpi_ptr_t vp, mpi_size_t vsize, mpi_limb_t *_result)
vp                445 lib/mpi/mpih-mul.c 		v_limb = vp[0];
vp                461 lib/mpi/mpih-mul.c 			v_limb = vp[i];
vp                479 lib/mpi/mpih-mul.c 	if (mpihelp_mul_karatsuba_case(prodp, up, usize, vp, vsize, &ctx) < 0)
vp                932 scripts/kconfig/qconf.cc 	ConfigView** vp;
vp                934 scripts/kconfig/qconf.cc 	for (vp = &viewList; *vp; vp = &(*vp)->nextView) {
vp                935 scripts/kconfig/qconf.cc 		if (*vp == this) {
vp                936 scripts/kconfig/qconf.cc 			*vp = nextView;
vp                129 sound/drivers/opl3/opl3_midi.c 	struct snd_opl3_voice *vp, *vp2;
vp                156 sound/drivers/opl3/opl3_midi.c 		vp = &opl3->voices[i];
vp                158 sound/drivers/opl3/opl3_midi.c 		if (vp->state == SNDRV_OPL3_ST_NOT_AVAIL)
vp                163 sound/drivers/opl3/opl3_midi.c 		voice_time = vp->time;
vp                174 sound/drivers/opl3/opl3_midi.c 			if (vp->state)
vp                183 sound/drivers/opl3/opl3_midi.c 				voice_time = (voice_time > vp->time) ?
vp                184 sound/drivers/opl3/opl3_midi.c 					voice_time : vp->time;
vp                191 sound/drivers/opl3/opl3_midi.c 			else if (vp->state)
vp                195 sound/drivers/opl3/opl3_midi.c 			if (vp->state)
vp                233 sound/drivers/opl3/opl3_midi.c 		struct snd_opl3_voice *vp = &opl3->voices[i];
vp                234 sound/drivers/opl3/opl3_midi.c 		if (vp->state > 0 && vp->note_off_check) {
vp                235 sound/drivers/opl3/opl3_midi.c 			if (vp->note_off == jiffies)
vp                236 sound/drivers/opl3/opl3_midi.c 				snd_opl3_note_off_unsafe(opl3, vp->note, 0,
vp                237 sound/drivers/opl3/opl3_midi.c 							 vp->chan);
vp                282 sound/drivers/opl3/opl3_midi.c 	struct snd_opl3_voice *vp, *vp2;
vp                393 sound/drivers/opl3/opl3_midi.c 	vp = &opl3->voices[voice];
vp                394 sound/drivers/opl3/opl3_midi.c 	if (vp->state > 0) {
vp                396 sound/drivers/opl3/opl3_midi.c 		reg_val = vp->keyon_reg & ~OPL3_KEYON_BIT;
vp                401 sound/drivers/opl3/opl3_midi.c 		if (vp->state > 0) {
vp                404 sound/drivers/opl3/opl3_midi.c 			reg_val = vp->keyon_reg & ~OPL3_KEYON_BIT;
vp                561 sound/drivers/opl3/opl3_midi.c 	vp->time = opl3->use_time++;
vp                562 sound/drivers/opl3/opl3_midi.c 	vp->note = key;
vp                563 sound/drivers/opl3/opl3_midi.c 	vp->chan = chan;
vp                566 sound/drivers/opl3/opl3_midi.c 		vp->state = SNDRV_OPL3_ST_ON_4OP;
vp                574 sound/drivers/opl3/opl3_midi.c 		if (vp->state == SNDRV_OPL3_ST_ON_4OP) {
vp                580 sound/drivers/opl3/opl3_midi.c 		vp->state = SNDRV_OPL3_ST_ON_2OP;
vp                611 sound/drivers/opl3/opl3_midi.c 	struct snd_opl3_voice *vp, *vp2;
vp                616 sound/drivers/opl3/opl3_midi.c 	vp = &opl3->voices[voice];
vp                633 sound/drivers/opl3/opl3_midi.c 	opl3->command(opl3, opl3_reg, vp->keyon_reg);
vp                636 sound/drivers/opl3/opl3_midi.c 	vp->time = opl3->use_time++;
vp                638 sound/drivers/opl3/opl3_midi.c 	if (vp->state == SNDRV_OPL3_ST_ON_4OP) {
vp                644 sound/drivers/opl3/opl3_midi.c 	vp->state = SNDRV_OPL3_ST_OFF;
vp                660 sound/drivers/opl3/opl3_midi.c 	struct snd_opl3_voice *vp;
vp                677 sound/drivers/opl3/opl3_midi.c 			vp = &opl3->voices[voice];
vp                678 sound/drivers/opl3/opl3_midi.c 			if (vp->state > 0 && vp->chan == chan && vp->note == note) {
vp                732 sound/drivers/opl3/opl3_midi.c 	struct snd_opl3_voice *vp;
vp                737 sound/drivers/opl3/opl3_midi.c 	vp = &opl3->voices[voice];
vp                738 sound/drivers/opl3/opl3_midi.c 	if (vp->chan == NULL)
vp                751 sound/drivers/opl3/opl3_midi.c 	snd_opl3_calc_pitch(&fnum, &blocknum, vp->note, vp->chan);
vp                757 sound/drivers/opl3/opl3_midi.c 	vp->keyon_reg = blocknum;
vp                766 sound/drivers/opl3/opl3_midi.c 	vp->time = opl3->use_time++;
vp                775 sound/drivers/opl3/opl3_midi.c 	struct snd_opl3_voice *vp;
vp                783 sound/drivers/opl3/opl3_midi.c 			vp = &opl3->voices[voice];
vp                784 sound/drivers/opl3/opl3_midi.c 			if (vp->state > 0 && vp->chan == chan) {
vp                 18 sound/isa/sb/emu8000_callback.c static int start_voice(struct snd_emux_voice *vp);
vp                 19 sound/isa/sb/emu8000_callback.c static void trigger_voice(struct snd_emux_voice *vp);
vp                 20 sound/isa/sb/emu8000_callback.c static void release_voice(struct snd_emux_voice *vp);
vp                 21 sound/isa/sb/emu8000_callback.c static void update_voice(struct snd_emux_voice *vp, int update);
vp                 23 sound/isa/sb/emu8000_callback.c static void terminate_voice(struct snd_emux_voice *vp);
vp                 32 sound/isa/sb/emu8000_callback.c static void set_pitch(struct snd_emu8000 *hw, struct snd_emux_voice *vp);
vp                 33 sound/isa/sb/emu8000_callback.c static void set_volume(struct snd_emu8000 *hw, struct snd_emux_voice *vp);
vp                 34 sound/isa/sb/emu8000_callback.c static void set_pan(struct snd_emu8000 *hw, struct snd_emux_voice *vp);
vp                 35 sound/isa/sb/emu8000_callback.c static void set_fmmod(struct snd_emu8000 *hw, struct snd_emux_voice *vp);
vp                 36 sound/isa/sb/emu8000_callback.c static void set_tremfreq(struct snd_emu8000 *hw, struct snd_emux_voice *vp);
vp                 37 sound/isa/sb/emu8000_callback.c static void set_fm2frq2(struct snd_emu8000 *hw, struct snd_emux_voice *vp);
vp                 38 sound/isa/sb/emu8000_callback.c static void set_filterQ(struct snd_emu8000 *hw, struct snd_emux_voice *vp);
vp                 83 sound/isa/sb/emu8000_callback.c release_voice(struct snd_emux_voice *vp)
vp                 88 sound/isa/sb/emu8000_callback.c 	hw = vp->hw;
vp                 89 sound/isa/sb/emu8000_callback.c 	dcysusv = 0x8000 | (unsigned char)vp->reg.parm.modrelease;
vp                 90 sound/isa/sb/emu8000_callback.c 	EMU8000_DCYSUS_WRITE(hw, vp->ch, dcysusv);
vp                 91 sound/isa/sb/emu8000_callback.c 	dcysusv = 0x8000 | (unsigned char)vp->reg.parm.volrelease;
vp                 92 sound/isa/sb/emu8000_callback.c 	EMU8000_DCYSUSV_WRITE(hw, vp->ch, dcysusv);
vp                 99 sound/isa/sb/emu8000_callback.c terminate_voice(struct snd_emux_voice *vp)
vp                103 sound/isa/sb/emu8000_callback.c 	hw = vp->hw;
vp                104 sound/isa/sb/emu8000_callback.c 	EMU8000_DCYSUSV_WRITE(hw, vp->ch, 0x807F);
vp                111 sound/isa/sb/emu8000_callback.c update_voice(struct snd_emux_voice *vp, int update)
vp                115 sound/isa/sb/emu8000_callback.c 	hw = vp->hw;
vp                117 sound/isa/sb/emu8000_callback.c 		set_volume(hw, vp);
vp                119 sound/isa/sb/emu8000_callback.c 		set_pitch(hw, vp);
vp                121 sound/isa/sb/emu8000_callback.c 	    vp->port->ctrls[EMUX_MD_REALTIME_PAN])
vp                122 sound/isa/sb/emu8000_callback.c 		set_pan(hw, vp);
vp                124 sound/isa/sb/emu8000_callback.c 		set_fmmod(hw, vp);
vp                126 sound/isa/sb/emu8000_callback.c 		set_tremfreq(hw, vp);
vp                128 sound/isa/sb/emu8000_callback.c 		set_fm2frq2(hw, vp);
vp                130 sound/isa/sb/emu8000_callback.c 		set_filterQ(hw, vp);
vp                147 sound/isa/sb/emu8000_callback.c 	struct snd_emux_voice *vp;
vp                175 sound/isa/sb/emu8000_callback.c 		vp = &emu->voices[i];
vp                176 sound/isa/sb/emu8000_callback.c 		state = vp->state;
vp                183 sound/isa/sb/emu8000_callback.c 			val = (EMU8000_CVCF_READ(hw, vp->ch) >> 16) & 0xffff;
vp                194 sound/isa/sb/emu8000_callback.c 		    (vp->reg.sample_mode & SNDRV_SFNT_SAMPLE_SINGLESHOT)) {
vp                195 sound/isa/sb/emu8000_callback.c 			val = EMU8000_CCCA_READ(hw, vp->ch) & 0xffffff;
vp                196 sound/isa/sb/emu8000_callback.c 			if (val >= vp->reg.loopstart)
vp                200 sound/isa/sb/emu8000_callback.c 		if (vp->time < bp->time) {
vp                201 sound/isa/sb/emu8000_callback.c 			bp->time = vp->time;
vp                208 sound/isa/sb/emu8000_callback.c 			vp = &emu->voices[best[i].voice];
vp                209 sound/isa/sb/emu8000_callback.c 			vp->ch = best[i].voice;
vp                210 sound/isa/sb/emu8000_callback.c 			return vp;
vp                221 sound/isa/sb/emu8000_callback.c start_voice(struct snd_emux_voice *vp)
vp                229 sound/isa/sb/emu8000_callback.c 	hw = vp->hw;
vp                230 sound/isa/sb/emu8000_callback.c 	ch = vp->ch;
vp                231 sound/isa/sb/emu8000_callback.c 	chan = vp->chan;
vp                241 sound/isa/sb/emu8000_callback.c 	set_pitch(hw, vp);
vp                244 sound/isa/sb/emu8000_callback.c 	EMU8000_ENVVAL_WRITE(hw, ch, vp->reg.parm.moddelay);
vp                245 sound/isa/sb/emu8000_callback.c 	EMU8000_ATKHLD_WRITE(hw, ch, vp->reg.parm.modatkhld);
vp                246 sound/isa/sb/emu8000_callback.c 	EMU8000_DCYSUS_WRITE(hw, ch, vp->reg.parm.moddcysus);
vp                247 sound/isa/sb/emu8000_callback.c 	EMU8000_ENVVOL_WRITE(hw, ch, vp->reg.parm.voldelay);
vp                248 sound/isa/sb/emu8000_callback.c 	EMU8000_ATKHLDV_WRITE(hw, ch, vp->reg.parm.volatkhld);
vp                253 sound/isa/sb/emu8000_callback.c 	set_volume(hw, vp);
vp                256 sound/isa/sb/emu8000_callback.c 	EMU8000_PEFE_WRITE(hw, ch, vp->reg.parm.pefe);
vp                259 sound/isa/sb/emu8000_callback.c 	EMU8000_LFO1VAL_WRITE(hw, ch, vp->reg.parm.lfo1delay);
vp                260 sound/isa/sb/emu8000_callback.c 	EMU8000_LFO2VAL_WRITE(hw, ch, vp->reg.parm.lfo2delay);
vp                263 sound/isa/sb/emu8000_callback.c 	set_fmmod(hw, vp);
vp                265 sound/isa/sb/emu8000_callback.c 	set_tremfreq(hw, vp);
vp                267 sound/isa/sb/emu8000_callback.c 	set_fm2frq2(hw, vp);
vp                269 sound/isa/sb/emu8000_callback.c 	set_pan(hw, vp);
vp                272 sound/isa/sb/emu8000_callback.c 	addr = vp->reg.loopend - 1;
vp                273 sound/isa/sb/emu8000_callback.c 	temp = vp->reg.parm.chorus;
vp                280 sound/isa/sb/emu8000_callback.c 	addr = vp->reg.start - 1;
vp                281 sound/isa/sb/emu8000_callback.c 	temp = vp->reg.parm.filterQ;
vp                290 sound/isa/sb/emu8000_callback.c 	temp = vp->vtarget << 16;
vp                291 sound/isa/sb/emu8000_callback.c 	EMU8000_VTFT_WRITE(hw, ch, temp | vp->ftarget);
vp                301 sound/isa/sb/emu8000_callback.c trigger_voice(struct snd_emux_voice *vp)
vp                303 sound/isa/sb/emu8000_callback.c 	int ch = vp->ch;
vp                307 sound/isa/sb/emu8000_callback.c 	hw = vp->hw;
vp                310 sound/isa/sb/emu8000_callback.c 	temp = vp->reg.parm.reverb;
vp                311 sound/isa/sb/emu8000_callback.c 	temp += (int)vp->chan->control[MIDI_CTL_E1_REVERB_DEPTH] * 9 / 10;
vp                313 sound/isa/sb/emu8000_callback.c 	temp = (temp << 8) | (vp->ptarget << 16) | vp->aaux;
vp                315 sound/isa/sb/emu8000_callback.c 	EMU8000_CPF_WRITE(hw, ch, vp->ptarget << 16);
vp                316 sound/isa/sb/emu8000_callback.c 	EMU8000_DCYSUSV_WRITE(hw, ch, vp->reg.parm.voldcysus);
vp                336 sound/isa/sb/emu8000_callback.c set_pitch(struct snd_emu8000 *hw, struct snd_emux_voice *vp)
vp                338 sound/isa/sb/emu8000_callback.c 	EMU8000_IP_WRITE(hw, vp->ch, vp->apitch);
vp                345 sound/isa/sb/emu8000_callback.c set_volume(struct snd_emu8000 *hw, struct snd_emux_voice *vp)
vp                349 sound/isa/sb/emu8000_callback.c 	ifatn = (unsigned char)vp->acutoff;
vp                351 sound/isa/sb/emu8000_callback.c 	ifatn |= (unsigned char)vp->avol;
vp                352 sound/isa/sb/emu8000_callback.c 	EMU8000_IFATN_WRITE(hw, vp->ch, ifatn);
vp                359 sound/isa/sb/emu8000_callback.c set_pan(struct snd_emu8000 *hw, struct snd_emux_voice *vp)
vp                363 sound/isa/sb/emu8000_callback.c 	temp = ((unsigned int)vp->apan<<24) | ((unsigned int)vp->reg.loopstart - 1);
vp                364 sound/isa/sb/emu8000_callback.c 	EMU8000_PSST_WRITE(hw, vp->ch, temp);
vp                370 sound/isa/sb/emu8000_callback.c set_fmmod(struct snd_emu8000 *hw, struct snd_emux_voice *vp)
vp                377 sound/isa/sb/emu8000_callback.c 	pitch = (char)(vp->reg.parm.fmmod>>8);
vp                378 sound/isa/sb/emu8000_callback.c 	cutoff = (vp->reg.parm.fmmod & 0xff);
vp                379 sound/isa/sb/emu8000_callback.c 	modulation = vp->chan->gm_modulation + vp->chan->midi_pressure;
vp                383 sound/isa/sb/emu8000_callback.c 	EMU8000_FMMOD_WRITE(hw, vp->ch, fmmod);
vp                388 sound/isa/sb/emu8000_callback.c set_tremfreq(struct snd_emu8000 *hw, struct snd_emux_voice *vp)
vp                390 sound/isa/sb/emu8000_callback.c 	EMU8000_TREMFRQ_WRITE(hw, vp->ch, vp->reg.parm.tremfrq);
vp                395 sound/isa/sb/emu8000_callback.c set_fm2frq2(struct snd_emu8000 *hw, struct snd_emux_voice *vp)
vp                402 sound/isa/sb/emu8000_callback.c 	pitch = (char)(vp->reg.parm.fm2frq2>>8);
vp                403 sound/isa/sb/emu8000_callback.c 	freq = vp->reg.parm.fm2frq2 & 0xff;
vp                404 sound/isa/sb/emu8000_callback.c 	modulation = vp->chan->gm_modulation + vp->chan->midi_pressure;
vp                408 sound/isa/sb/emu8000_callback.c 	EMU8000_FM2FRQ2_WRITE(hw, vp->ch, fm2frq2);
vp                413 sound/isa/sb/emu8000_callback.c set_filterQ(struct snd_emu8000 *hw, struct snd_emux_voice *vp)
vp                416 sound/isa/sb/emu8000_callback.c 	addr = EMU8000_CCCA_READ(hw, vp->ch) & 0xffffff;
vp                417 sound/isa/sb/emu8000_callback.c 	addr |= (vp->reg.parm.filterQ << 28);
vp                418 sound/isa/sb/emu8000_callback.c 	EMU8000_CCCA_WRITE(hw, vp->ch, addr);
vp                 30 sound/pci/emu10k1/emu10k1_callback.c static int start_voice(struct snd_emux_voice *vp);
vp                 31 sound/pci/emu10k1/emu10k1_callback.c static void trigger_voice(struct snd_emux_voice *vp);
vp                 32 sound/pci/emu10k1/emu10k1_callback.c static void release_voice(struct snd_emux_voice *vp);
vp                 33 sound/pci/emu10k1/emu10k1_callback.c static void update_voice(struct snd_emux_voice *vp, int update);
vp                 34 sound/pci/emu10k1/emu10k1_callback.c static void terminate_voice(struct snd_emux_voice *vp);
vp                 35 sound/pci/emu10k1/emu10k1_callback.c static void free_voice(struct snd_emux_voice *vp);
vp                 36 sound/pci/emu10k1/emu10k1_callback.c static void set_fmmod(struct snd_emu10k1 *hw, struct snd_emux_voice *vp);
vp                 37 sound/pci/emu10k1/emu10k1_callback.c static void set_fm2frq2(struct snd_emu10k1 *hw, struct snd_emux_voice *vp);
vp                 38 sound/pci/emu10k1/emu10k1_callback.c static void set_filterQ(struct snd_emu10k1 *hw, struct snd_emux_voice *vp);
vp                 82 sound/pci/emu10k1/emu10k1_callback.c 	struct snd_emux_voice *vp;
vp                 92 sound/pci/emu10k1/emu10k1_callback.c 			vp = &emu->voices[best[i].voice];
vp                 93 sound/pci/emu10k1/emu10k1_callback.c 			if ((ch = vp->ch) < 0) {
vp                100 sound/pci/emu10k1/emu10k1_callback.c 			vp->emu->num_voices--;
vp                101 sound/pci/emu10k1/emu10k1_callback.c 			vp->ch = -1;
vp                102 sound/pci/emu10k1/emu10k1_callback.c 			vp->state = SNDRV_EMUX_ST_OFF;
vp                116 sound/pci/emu10k1/emu10k1_callback.c release_voice(struct snd_emux_voice *vp)
vp                121 sound/pci/emu10k1/emu10k1_callback.c 	hw = vp->hw;
vp                122 sound/pci/emu10k1/emu10k1_callback.c 	dcysusv = 0x8000 | (unsigned char)vp->reg.parm.modrelease;
vp                123 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, DCYSUSM, vp->ch, dcysusv);
vp                124 sound/pci/emu10k1/emu10k1_callback.c 	dcysusv = 0x8000 | (unsigned char)vp->reg.parm.volrelease | DCYSUSV_CHANNELENABLE_MASK;
vp                125 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, DCYSUSV, vp->ch, dcysusv);
vp                133 sound/pci/emu10k1/emu10k1_callback.c terminate_voice(struct snd_emux_voice *vp)
vp                137 sound/pci/emu10k1/emu10k1_callback.c 	if (snd_BUG_ON(!vp))
vp                139 sound/pci/emu10k1/emu10k1_callback.c 	hw = vp->hw;
vp                140 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, DCYSUSV, vp->ch, 0x807f | DCYSUSV_CHANNELENABLE_MASK);
vp                141 sound/pci/emu10k1/emu10k1_callback.c 	if (vp->block) {
vp                143 sound/pci/emu10k1/emu10k1_callback.c 		emem = (struct snd_emu10k1_memblk *)vp->block;
vp                153 sound/pci/emu10k1/emu10k1_callback.c free_voice(struct snd_emux_voice *vp)
vp                157 sound/pci/emu10k1/emu10k1_callback.c 	hw = vp->hw;
vp                162 sound/pci/emu10k1/emu10k1_callback.c 	if (hw && (vp->ch >= 0)) {
vp                163 sound/pci/emu10k1/emu10k1_callback.c 		snd_emu10k1_ptr_write(hw, IFATN, vp->ch, 0xff00);
vp                164 sound/pci/emu10k1/emu10k1_callback.c 		snd_emu10k1_ptr_write(hw, DCYSUSV, vp->ch, 0x807f | DCYSUSV_CHANNELENABLE_MASK);
vp                166 sound/pci/emu10k1/emu10k1_callback.c 		snd_emu10k1_ptr_write(hw, VTFT, vp->ch, 0xffff);
vp                167 sound/pci/emu10k1/emu10k1_callback.c 		snd_emu10k1_ptr_write(hw, CVCF, vp->ch, 0xffff);
vp                168 sound/pci/emu10k1/emu10k1_callback.c 		snd_emu10k1_voice_free(hw, &hw->voices[vp->ch]);
vp                169 sound/pci/emu10k1/emu10k1_callback.c 		vp->emu->num_voices--;
vp                170 sound/pci/emu10k1/emu10k1_callback.c 		vp->ch = -1;
vp                179 sound/pci/emu10k1/emu10k1_callback.c update_voice(struct snd_emux_voice *vp, int update)
vp                183 sound/pci/emu10k1/emu10k1_callback.c 	hw = vp->hw;
vp                185 sound/pci/emu10k1/emu10k1_callback.c 		snd_emu10k1_ptr_write(hw, IFATN_ATTENUATION, vp->ch, vp->avol);
vp                187 sound/pci/emu10k1/emu10k1_callback.c 		snd_emu10k1_ptr_write(hw, IP, vp->ch, vp->apitch);
vp                189 sound/pci/emu10k1/emu10k1_callback.c 		snd_emu10k1_ptr_write(hw, PTRX_FXSENDAMOUNT_A, vp->ch, vp->apan);
vp                190 sound/pci/emu10k1/emu10k1_callback.c 		snd_emu10k1_ptr_write(hw, PTRX_FXSENDAMOUNT_B, vp->ch, vp->aaux);
vp                193 sound/pci/emu10k1/emu10k1_callback.c 		set_fmmod(hw, vp);
vp                195 sound/pci/emu10k1/emu10k1_callback.c 		snd_emu10k1_ptr_write(hw, TREMFRQ, vp->ch, vp->reg.parm.tremfrq);
vp                197 sound/pci/emu10k1/emu10k1_callback.c 		set_fm2frq2(hw, vp);
vp                199 sound/pci/emu10k1/emu10k1_callback.c 		set_filterQ(hw, vp);
vp                211 sound/pci/emu10k1/emu10k1_callback.c 	struct snd_emux_voice *vp;
vp                227 sound/pci/emu10k1/emu10k1_callback.c 		vp = &emu->voices[i];
vp                228 sound/pci/emu10k1/emu10k1_callback.c 		state = vp->state;
vp                230 sound/pci/emu10k1/emu10k1_callback.c 			if (vp->ch < 0) {
vp                241 sound/pci/emu10k1/emu10k1_callback.c 			val = snd_emu10k1_ptr_read(hw, CVCF_CURRENTVOL, vp->ch);
vp                255 sound/pci/emu10k1/emu10k1_callback.c 		    (vp->reg.sample_mode & SNDRV_SFNT_SAMPLE_SINGLESHOT)) {
vp                256 sound/pci/emu10k1/emu10k1_callback.c 			val = snd_emu10k1_ptr_read(hw, CCCA_CURRADDR, vp->ch);
vp                257 sound/pci/emu10k1/emu10k1_callback.c 			if (val >= vp->reg.loopstart)
vp                261 sound/pci/emu10k1/emu10k1_callback.c 		if (vp->time < bp->time) {
vp                262 sound/pci/emu10k1/emu10k1_callback.c 			bp->time = vp->time;
vp                277 sound/pci/emu10k1/emu10k1_callback.c 	struct snd_emux_voice *vp;
vp                286 sound/pci/emu10k1/emu10k1_callback.c 			vp = &emu->voices[best[i].voice];
vp                287 sound/pci/emu10k1/emu10k1_callback.c 			if (vp->ch < 0) {
vp                292 sound/pci/emu10k1/emu10k1_callback.c 				vp->ch = hwvoice->number;
vp                295 sound/pci/emu10k1/emu10k1_callback.c 			return vp;
vp                307 sound/pci/emu10k1/emu10k1_callback.c start_voice(struct snd_emux_voice *vp)
vp                316 sound/pci/emu10k1/emu10k1_callback.c 	hw = vp->hw;
vp                317 sound/pci/emu10k1/emu10k1_callback.c 	ch = vp->ch;
vp                320 sound/pci/emu10k1/emu10k1_callback.c 	chan = vp->chan;
vp                322 sound/pci/emu10k1/emu10k1_callback.c 	emem = (struct snd_emu10k1_memblk *)vp->block;
vp                331 sound/pci/emu10k1/emu10k1_callback.c 	vp->reg.start += mapped_offset;
vp                332 sound/pci/emu10k1/emu10k1_callback.c 	vp->reg.end += mapped_offset;
vp                333 sound/pci/emu10k1/emu10k1_callback.c 	vp->reg.loopstart += mapped_offset;
vp                334 sound/pci/emu10k1/emu10k1_callback.c 	vp->reg.loopend += mapped_offset;
vp                356 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, IP, vp->ch, vp->apitch);
vp                359 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, ENVVAL, ch, vp->reg.parm.moddelay);
vp                360 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, ATKHLDM, ch, vp->reg.parm.modatkhld);
vp                361 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, DCYSUSM, ch, vp->reg.parm.moddcysus);
vp                362 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, ENVVOL, ch, vp->reg.parm.voldelay);
vp                363 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, ATKHLDV, ch, vp->reg.parm.volatkhld);
vp                368 sound/pci/emu10k1/emu10k1_callback.c 	temp = (unsigned int)vp->acutoff << 8 | (unsigned char)vp->avol;
vp                369 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, IFATN, vp->ch, temp);
vp                372 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, PEFE, ch, vp->reg.parm.pefe);
vp                375 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, LFOVAL1, ch, vp->reg.parm.lfo1delay);
vp                376 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, LFOVAL2, ch, vp->reg.parm.lfo2delay);
vp                379 sound/pci/emu10k1/emu10k1_callback.c 	set_fmmod(hw, vp);
vp                381 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, TREMFRQ, vp->ch, vp->reg.parm.tremfrq);
vp                383 sound/pci/emu10k1/emu10k1_callback.c 	set_fm2frq2(hw, vp);
vp                386 sound/pci/emu10k1/emu10k1_callback.c 	temp = vp->reg.parm.reverb;
vp                387 sound/pci/emu10k1/emu10k1_callback.c 	temp += (int)vp->chan->control[MIDI_CTL_E1_REVERB_DEPTH] * 9 / 10;
vp                389 sound/pci/emu10k1/emu10k1_callback.c 	addr = vp->reg.loopstart;
vp                390 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, PSST, vp->ch, (temp << 24) | addr);
vp                393 sound/pci/emu10k1/emu10k1_callback.c 	addr = vp->reg.loopend;
vp                394 sound/pci/emu10k1/emu10k1_callback.c 	temp = vp->reg.parm.chorus;
vp                413 sound/pci/emu10k1/emu10k1_callback.c 		if (vp->reg.sample_mode & SNDRV_SFNT_SAMPLE_8BITS)
vp                439 sound/pci/emu10k1/emu10k1_callback.c 	addr = vp->reg.start;
vp                440 sound/pci/emu10k1/emu10k1_callback.c 	temp = vp->reg.parm.filterQ;
vp                442 sound/pci/emu10k1/emu10k1_callback.c 	if (vp->apitch < 0xe400)
vp                445 sound/pci/emu10k1/emu10k1_callback.c 		unsigned int shift = (vp->apitch - 0xe000) >> 10;
vp                448 sound/pci/emu10k1/emu10k1_callback.c 	if (vp->reg.sample_mode & SNDRV_SFNT_SAMPLE_8BITS)
vp                453 sound/pci/emu10k1/emu10k1_callback.c 	temp = (unsigned int)vp->vtarget << 16;
vp                454 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, VTFT, ch, temp | vp->ftarget);
vp                463 sound/pci/emu10k1/emu10k1_callback.c trigger_voice(struct snd_emux_voice *vp)
vp                469 sound/pci/emu10k1/emu10k1_callback.c 	hw = vp->hw;
vp                471 sound/pci/emu10k1/emu10k1_callback.c 	emem = (struct snd_emu10k1_memblk *)vp->block;
vp                476 sound/pci/emu10k1/emu10k1_callback.c 	ptarget = (unsigned int)vp->ptarget << 16;
vp                478 sound/pci/emu10k1/emu10k1_callback.c 	ptarget = IP_TO_CP(vp->apitch);
vp                481 sound/pci/emu10k1/emu10k1_callback.c 	temp = ptarget | (vp->apan << 8) | vp->aaux;
vp                482 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, PTRX, vp->ch, temp);
vp                485 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, CPF, vp->ch, ptarget);
vp                488 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, DCYSUSV, vp->ch, vp->reg.parm.voldcysus|DCYSUSV_CHANNELENABLE_MASK);
vp                495 sound/pci/emu10k1/emu10k1_callback.c set_fmmod(struct snd_emu10k1 *hw, struct snd_emux_voice *vp)
vp                502 sound/pci/emu10k1/emu10k1_callback.c 	pitch = (char)(vp->reg.parm.fmmod>>8);
vp                503 sound/pci/emu10k1/emu10k1_callback.c 	cutoff = (vp->reg.parm.fmmod & 0xff);
vp                504 sound/pci/emu10k1/emu10k1_callback.c 	modulation = vp->chan->gm_modulation + vp->chan->midi_pressure;
vp                508 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, FMMOD, vp->ch, fmmod);
vp                513 sound/pci/emu10k1/emu10k1_callback.c set_fm2frq2(struct snd_emu10k1 *hw, struct snd_emux_voice *vp)
vp                520 sound/pci/emu10k1/emu10k1_callback.c 	pitch = (char)(vp->reg.parm.fm2frq2>>8);
vp                521 sound/pci/emu10k1/emu10k1_callback.c 	freq = vp->reg.parm.fm2frq2 & 0xff;
vp                522 sound/pci/emu10k1/emu10k1_callback.c 	modulation = vp->chan->gm_modulation + vp->chan->midi_pressure;
vp                526 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, FM2FRQ2, vp->ch, fm2frq2);
vp                531 sound/pci/emu10k1/emu10k1_callback.c set_filterQ(struct snd_emu10k1 *hw, struct snd_emux_voice *vp)
vp                534 sound/pci/emu10k1/emu10k1_callback.c 	val = snd_emu10k1_ptr_read(hw, CCCA, vp->ch) & ~CCCA_RESONANCE;
vp                535 sound/pci/emu10k1/emu10k1_callback.c 	val |= (vp->reg.parm.filterQ << 28);
vp                536 sound/pci/emu10k1/emu10k1_callback.c 	snd_emu10k1_ptr_write(hw, CCCA, vp->ch, val);
vp                197 sound/synth/emux/emux_effect.c 		struct snd_emux_voice *vp = &emu->voices[i];
vp                198 sound/synth/emux/emux_effect.c 		if (!STATE_IS_PLAYING(vp->state) || vp->chan != chan)
vp                200 sound/synth/emux/emux_effect.c 		srcp = (unsigned char*)&vp->reg.parm + offset;
vp                201 sound/synth/emux/emux_effect.c 		origp = (unsigned char*)&vp->zone->v.parm + offset;
vp                219 sound/synth/emux/emux_effect.c snd_emux_setup_effect(struct snd_emux_voice *vp)
vp                221 sound/synth/emux/emux_effect.c 	struct snd_midi_channel *chan = vp->chan;
vp                241 sound/synth/emux/emux_effect.c 		srcp = (unsigned char*)&vp->reg.parm + offset;
vp                249 sound/synth/emux/emux_effect.c 	vp->reg.start += effect_get_offset(chan, EMUX_FX_SAMPLE_START,
vp                251 sound/synth/emux/emux_effect.c 					   vp->reg.sample_mode);
vp                253 sound/synth/emux/emux_effect.c 	vp->reg.loopstart += effect_get_offset(chan, EMUX_FX_LOOP_START,
vp                255 sound/synth/emux/emux_effect.c 					       vp->reg.sample_mode);
vp                257 sound/synth/emux/emux_effect.c 	vp->reg.loopend += effect_get_offset(chan, EMUX_FX_LOOP_END,
vp                259 sound/synth/emux/emux_effect.c 					     vp->reg.sample_mode);
vp                 51 sound/synth/emux/emux_proc.c 		struct snd_emux_voice *vp = &emu->voices[0];
vp                 54 sound/synth/emux/emux_proc.c 			    vp->reg.parm.moddelay,
vp                 55 sound/synth/emux/emux_proc.c 			    vp->reg.parm.modatkhld,
vp                 56 sound/synth/emux/emux_proc.c 			    vp->reg.parm.moddcysus,
vp                 57 sound/synth/emux/emux_proc.c 			    vp->reg.parm.modrelease);
vp                 59 sound/synth/emux/emux_proc.c 			    vp->reg.parm.voldelay,
vp                 60 sound/synth/emux/emux_proc.c 			    vp->reg.parm.volatkhld,
vp                 61 sound/synth/emux/emux_proc.c 			    vp->reg.parm.voldcysus,
vp                 62 sound/synth/emux/emux_proc.c 			    vp->reg.parm.volrelease);
vp                 64 sound/synth/emux/emux_proc.c 			    vp->reg.parm.lfo1delay,
vp                 65 sound/synth/emux/emux_proc.c 			    vp->reg.parm.lfo2delay,
vp                 66 sound/synth/emux/emux_proc.c 			    vp->reg.parm.pefe);
vp                 68 sound/synth/emux/emux_proc.c 			    vp->reg.parm.fmmod,
vp                 69 sound/synth/emux/emux_proc.c 			    vp->reg.parm.tremfrq,
vp                 70 sound/synth/emux/emux_proc.c 			    vp->reg.parm.fm2frq2);
vp                 72 sound/synth/emux/emux_proc.c 			    vp->reg.parm.cutoff,
vp                 73 sound/synth/emux/emux_proc.c 			    vp->reg.parm.filterQ,
vp                 74 sound/synth/emux/emux_proc.c 			    vp->reg.parm.chorus,
vp                 75 sound/synth/emux/emux_proc.c 			    vp->reg.parm.reverb);
vp                 77 sound/synth/emux/emux_proc.c 			    vp->avol, vp->acutoff, vp->apitch);
vp                 79 sound/synth/emux/emux_proc.c 			    vp->apan, vp->aaux,
vp                 80 sound/synth/emux/emux_proc.c 			    vp->ptarget,
vp                 81 sound/synth/emux/emux_proc.c 			    vp->vtarget,
vp                 82 sound/synth/emux/emux_proc.c 			    vp->ftarget);
vp                 84 sound/synth/emux/emux_proc.c 			    vp->reg.start, vp->reg.end, vp->reg.loopstart, vp->reg.loopend);
vp                 85 sound/synth/emux/emux_proc.c 		snd_iprintf(buf, "sample_mode=%x, rate=%x\n", vp->reg.sample_mode, vp->reg.rate_offset);
vp                 34 sound/synth/emux/emux_synth.c static void terminate_voice(struct snd_emux *emu, struct snd_emux_voice *vp, int free);
vp                 35 sound/synth/emux/emux_synth.c static void update_voice(struct snd_emux *emu, struct snd_emux_voice *vp, int update);
vp                 36 sound/synth/emux/emux_synth.c static void setup_voice(struct snd_emux_voice *vp);
vp                 37 sound/synth/emux/emux_synth.c static int calc_pan(struct snd_emux_voice *vp);
vp                 38 sound/synth/emux/emux_synth.c static int calc_volume(struct snd_emux_voice *vp);
vp                 39 sound/synth/emux/emux_synth.c static int calc_pitch(struct snd_emux_voice *vp);
vp                 50 sound/synth/emux/emux_synth.c 	struct snd_emux_voice *vp;
vp                 89 sound/synth/emux/emux_synth.c 		vp = emu->ops.get_voice(emu, port);
vp                 90 sound/synth/emux/emux_synth.c 		if (vp == NULL || vp->ch < 0)
vp                 92 sound/synth/emux/emux_synth.c 		if (STATE_IS_PLAYING(vp->state))
vp                 93 sound/synth/emux/emux_synth.c 			emu->ops.terminate(vp);
vp                 95 sound/synth/emux/emux_synth.c 		vp->time = emu->use_time++;
vp                 96 sound/synth/emux/emux_synth.c 		vp->chan = chan;
vp                 97 sound/synth/emux/emux_synth.c 		vp->port = port;
vp                 98 sound/synth/emux/emux_synth.c 		vp->key = key;
vp                 99 sound/synth/emux/emux_synth.c 		vp->note = note;
vp                100 sound/synth/emux/emux_synth.c 		vp->velocity = vel;
vp                101 sound/synth/emux/emux_synth.c 		vp->zone = table[i];
vp                102 sound/synth/emux/emux_synth.c 		if (vp->zone->sample)
vp                103 sound/synth/emux/emux_synth.c 			vp->block = vp->zone->sample->block;
vp                105 sound/synth/emux/emux_synth.c 			vp->block = NULL;
vp                107 sound/synth/emux/emux_synth.c 		setup_voice(vp);
vp                109 sound/synth/emux/emux_synth.c 		vp->state = SNDRV_EMUX_ST_STANDBY;
vp                111 sound/synth/emux/emux_synth.c 			vp->state = SNDRV_EMUX_ST_OFF;
vp                112 sound/synth/emux/emux_synth.c 			if (emu->ops.prepare(vp) >= 0)
vp                113 sound/synth/emux/emux_synth.c 				vp->state = SNDRV_EMUX_ST_STANDBY;
vp                119 sound/synth/emux/emux_synth.c 		vp = &emu->voices[i];
vp                120 sound/synth/emux/emux_synth.c 		if (vp->state == SNDRV_EMUX_ST_STANDBY &&
vp                121 sound/synth/emux/emux_synth.c 		    vp->chan == chan) {
vp                122 sound/synth/emux/emux_synth.c 			emu->ops.trigger(vp);
vp                123 sound/synth/emux/emux_synth.c 			vp->state = SNDRV_EMUX_ST_ON;
vp                124 sound/synth/emux/emux_synth.c 			vp->ontime = jiffies; /* remember the trigger timing */
vp                149 sound/synth/emux/emux_synth.c 	struct snd_emux_voice *vp;
vp                163 sound/synth/emux/emux_synth.c 		vp = &emu->voices[ch];
vp                164 sound/synth/emux/emux_synth.c 		if (STATE_IS_PLAYING(vp->state) &&
vp                165 sound/synth/emux/emux_synth.c 		    vp->chan == chan && vp->key == note) {
vp                166 sound/synth/emux/emux_synth.c 			vp->state = SNDRV_EMUX_ST_RELEASED;
vp                167 sound/synth/emux/emux_synth.c 			if (vp->ontime == jiffies) {
vp                173 sound/synth/emux/emux_synth.c 				vp->state = SNDRV_EMUX_ST_PENDING;
vp                180 sound/synth/emux/emux_synth.c 				emu->ops.release(vp);
vp                194 sound/synth/emux/emux_synth.c 	struct snd_emux_voice *vp;
vp                200 sound/synth/emux/emux_synth.c 		vp = &emu->voices[ch];
vp                201 sound/synth/emux/emux_synth.c 		if (vp->state == SNDRV_EMUX_ST_PENDING) {
vp                202 sound/synth/emux/emux_synth.c 			if (vp->ontime == jiffies)
vp                205 sound/synth/emux/emux_synth.c 				emu->ops.release(vp);
vp                206 sound/synth/emux/emux_synth.c 				vp->state = SNDRV_EMUX_ST_RELEASED;
vp                226 sound/synth/emux/emux_synth.c 	struct snd_emux_voice *vp;
vp                240 sound/synth/emux/emux_synth.c 		vp = &emu->voices[ch];
vp                241 sound/synth/emux/emux_synth.c 		if (vp->state == SNDRV_EMUX_ST_ON &&
vp                242 sound/synth/emux/emux_synth.c 		    vp->chan == chan && vp->key == note) {
vp                243 sound/synth/emux/emux_synth.c 			vp->velocity = vel;
vp                244 sound/synth/emux/emux_synth.c 			update_voice(emu, vp, SNDRV_EMUX_UPDATE_VOLUME);
vp                258 sound/synth/emux/emux_synth.c 	struct snd_emux_voice *vp;
vp                271 sound/synth/emux/emux_synth.c 		vp = &emu->voices[i];
vp                272 sound/synth/emux/emux_synth.c 		if (vp->chan == chan)
vp                273 sound/synth/emux/emux_synth.c 			update_voice(emu, vp, update);
vp                285 sound/synth/emux/emux_synth.c 	struct snd_emux_voice *vp;
vp                298 sound/synth/emux/emux_synth.c 		vp = &emu->voices[i];
vp                299 sound/synth/emux/emux_synth.c 		if (vp->port == port)
vp                300 sound/synth/emux/emux_synth.c 			update_voice(emu, vp, update);
vp                367 sound/synth/emux/emux_synth.c 	struct snd_emux_voice *vp;
vp                372 sound/synth/emux/emux_synth.c 		vp = &emu->voices[i];
vp                373 sound/synth/emux/emux_synth.c 		if (STATE_IS_PLAYING(vp->state) && vp->chan == chan &&
vp                374 sound/synth/emux/emux_synth.c 		    vp->key == note)
vp                375 sound/synth/emux/emux_synth.c 			terminate_voice(emu, vp, free);
vp                409 sound/synth/emux/emux_synth.c 	struct snd_emux_voice *vp;
vp                414 sound/synth/emux/emux_synth.c 		vp = &emu->voices[i];
vp                415 sound/synth/emux/emux_synth.c 		if (STATE_IS_PLAYING(vp->state))
vp                416 sound/synth/emux/emux_synth.c 			terminate_voice(emu, vp, 0);
vp                417 sound/synth/emux/emux_synth.c 		if (vp->state == SNDRV_EMUX_ST_OFF) {
vp                419 sound/synth/emux/emux_synth.c 				emu->ops.free_voice(vp);
vp                423 sound/synth/emux/emux_synth.c 		vp->time = 0;
vp                440 sound/synth/emux/emux_synth.c 	struct snd_emux_voice *vp;
vp                451 sound/synth/emux/emux_synth.c 		vp = &emu->voices[i];
vp                452 sound/synth/emux/emux_synth.c 		if (STATE_IS_PLAYING(vp->state) &&
vp                453 sound/synth/emux/emux_synth.c 		    vp->port == port)
vp                454 sound/synth/emux/emux_synth.c 			terminate_voice(emu, vp, 0);
vp                455 sound/synth/emux/emux_synth.c 		if (vp->state == SNDRV_EMUX_ST_OFF) {
vp                457 sound/synth/emux/emux_synth.c 				emu->ops.free_voice(vp);
vp                473 sound/synth/emux/emux_synth.c 	struct snd_emux_voice *vp;
vp                479 sound/synth/emux/emux_synth.c 		vp = &emu->voices[i];
vp                480 sound/synth/emux/emux_synth.c 		if (STATE_IS_PLAYING(vp->state) && vp->port == port &&
vp                481 sound/synth/emux/emux_synth.c 		    vp->reg.exclusiveClass == exclass) {
vp                482 sound/synth/emux/emux_synth.c 			terminate_voice(emu, vp, 0);
vp                493 sound/synth/emux/emux_synth.c terminate_voice(struct snd_emux *emu, struct snd_emux_voice *vp, int free)
vp                495 sound/synth/emux/emux_synth.c 	emu->ops.terminate(vp);
vp                496 sound/synth/emux/emux_synth.c 	vp->time = emu->use_time++;
vp                497 sound/synth/emux/emux_synth.c 	vp->chan = NULL;
vp                498 sound/synth/emux/emux_synth.c 	vp->port = NULL;
vp                499 sound/synth/emux/emux_synth.c 	vp->zone = NULL;
vp                500 sound/synth/emux/emux_synth.c 	vp->block = NULL;
vp                501 sound/synth/emux/emux_synth.c 	vp->state = SNDRV_EMUX_ST_OFF;
vp                503 sound/synth/emux/emux_synth.c 		emu->ops.free_voice(vp);
vp                511 sound/synth/emux/emux_synth.c update_voice(struct snd_emux *emu, struct snd_emux_voice *vp, int update)
vp                513 sound/synth/emux/emux_synth.c 	if (!STATE_IS_PLAYING(vp->state))
vp                516 sound/synth/emux/emux_synth.c 	if (vp->chan == NULL || vp->port == NULL)
vp                519 sound/synth/emux/emux_synth.c 		calc_volume(vp);
vp                521 sound/synth/emux/emux_synth.c 		calc_pitch(vp);
vp                523 sound/synth/emux/emux_synth.c 		if (! calc_pan(vp) && (update == SNDRV_EMUX_UPDATE_PAN))
vp                526 sound/synth/emux/emux_synth.c 	emu->ops.update(vp, update);
vp                546 sound/synth/emux/emux_synth.c setup_voice(struct snd_emux_voice *vp)
vp                552 sound/synth/emux/emux_synth.c 	vp->reg = vp->zone->v;
vp                555 sound/synth/emux/emux_synth.c 	snd_emux_setup_effect(vp);
vp                559 sound/synth/emux/emux_synth.c 	vp->apan = -1;
vp                560 sound/synth/emux/emux_synth.c 	vp->avol = -1;
vp                561 sound/synth/emux/emux_synth.c 	vp->apitch = -1;
vp                563 sound/synth/emux/emux_synth.c 	calc_volume(vp);
vp                564 sound/synth/emux/emux_synth.c 	calc_pitch(vp);
vp                565 sound/synth/emux/emux_synth.c 	calc_pan(vp);
vp                567 sound/synth/emux/emux_synth.c 	parm = &vp->reg.parm;
vp                572 sound/synth/emux/emux_synth.c 		pitch = (HI_BYTE(parm->pefe) << 4) + vp->apitch;
vp                576 sound/synth/emux/emux_synth.c 		vp->ftarget = parm->cutoff + LO_BYTE(parm->pefe);
vp                577 sound/synth/emux/emux_synth.c 		LIMITVALUE(vp->ftarget, 0, 255);
vp                578 sound/synth/emux/emux_synth.c 		vp->ftarget <<= 8;
vp                580 sound/synth/emux/emux_synth.c 		vp->ftarget = parm->cutoff;
vp                581 sound/synth/emux/emux_synth.c 		vp->ftarget <<= 8;
vp                582 sound/synth/emux/emux_synth.c 		pitch = vp->apitch;
vp                587 sound/synth/emux/emux_synth.c 		vp->ptarget = 1 << (pitch >> 12);
vp                588 sound/synth/emux/emux_synth.c 		if (pitch & 0x800) vp->ptarget += (vp->ptarget*0x102e)/0x2710;
vp                589 sound/synth/emux/emux_synth.c 		if (pitch & 0x400) vp->ptarget += (vp->ptarget*0x764)/0x2710;
vp                590 sound/synth/emux/emux_synth.c 		if (pitch & 0x200) vp->ptarget += (vp->ptarget*0x389)/0x2710;
vp                591 sound/synth/emux/emux_synth.c 		vp->ptarget += (vp->ptarget >> 1);
vp                592 sound/synth/emux/emux_synth.c 		if (vp->ptarget > 0xffff) vp->ptarget = 0xffff;
vp                594 sound/synth/emux/emux_synth.c 		vp->ptarget = 0xffff;
vp                602 sound/synth/emux/emux_synth.c 	vp->vtarget = 0;
vp                606 sound/synth/emux/emux_synth.c 		vp->vtarget = voltarget[vp->avol % 0x10] >> (vp->avol >> 4);
vp                639 sound/synth/emux/emux_synth.c calc_pan(struct snd_emux_voice *vp)
vp                641 sound/synth/emux/emux_synth.c 	struct snd_midi_channel *chan = vp->chan;
vp                645 sound/synth/emux/emux_synth.c 	if (vp->reg.fixpan > 0)	/* 0-127 */
vp                646 sound/synth/emux/emux_synth.c 		pan = 255 - (int)vp->reg.fixpan * 2;
vp                649 sound/synth/emux/emux_synth.c 		if (vp->reg.pan >= 0) /* 0-127 */
vp                650 sound/synth/emux/emux_synth.c 			pan += vp->reg.pan - 64;
vp                655 sound/synth/emux/emux_synth.c 	if (vp->emu->linear_panning) {
vp                657 sound/synth/emux/emux_synth.c 		if (pan != vp->apan) {
vp                658 sound/synth/emux/emux_synth.c 			vp->apan = pan;
vp                660 sound/synth/emux/emux_synth.c 				vp->aaux = 0xff;
vp                662 sound/synth/emux/emux_synth.c 				vp->aaux = (-pan) & 0xff;
vp                668 sound/synth/emux/emux_synth.c 		if (vp->apan != (int)pan_volumes[pan]) {
vp                669 sound/synth/emux/emux_synth.c 			vp->apan = pan_volumes[pan];
vp                670 sound/synth/emux/emux_synth.c 			vp->aaux = pan_volumes[255 - pan];
vp                740 sound/synth/emux/emux_synth.c calc_volume(struct snd_emux_voice *vp)
vp                744 sound/synth/emux/emux_synth.c 	struct snd_midi_channel *chan = vp->chan;
vp                745 sound/synth/emux/emux_synth.c 	struct snd_emux_port *port = vp->port;
vp                748 sound/synth/emux/emux_synth.c 	LIMITMAX(vp->velocity, 127);
vp                753 sound/synth/emux/emux_synth.c 		vol = (vp->velocity * main_vol * expression_vol) / (127*127);
vp                754 sound/synth/emux/emux_synth.c 		vol = vol * vp->reg.amplitude / 127;
vp                762 sound/synth/emux/emux_synth.c 		main_vol = chan->control[MIDI_CTL_MSB_MAIN_VOLUME] * vp->reg.amplitude / 127;
vp                765 sound/synth/emux/emux_synth.c 		vol = voltab1[main_vol] + voltab2[vp->velocity];
vp                767 sound/synth/emux/emux_synth.c 		vol += vp->reg.attenuation;
vp                784 sound/synth/emux/emux_synth.c 	if (vp->avol == vol)
vp                787 sound/synth/emux/emux_synth.c 	vp->avol = vol;
vp                789 sound/synth/emux/emux_synth.c 	    && LO_BYTE(vp->reg.parm.volatkhld) < 0x7d) {
vp                791 sound/synth/emux/emux_synth.c 		if (vp->velocity < 70)
vp                794 sound/synth/emux/emux_synth.c 			atten = vp->velocity;
vp                795 sound/synth/emux/emux_synth.c 		vp->acutoff = (atten * vp->reg.parm.cutoff + 0xa0) >> 7;
vp                797 sound/synth/emux/emux_synth.c 		vp->acutoff = vp->reg.parm.cutoff;
vp                811 sound/synth/emux/emux_synth.c calc_pitch(struct snd_emux_voice *vp)
vp                813 sound/synth/emux/emux_synth.c 	struct snd_midi_channel *chan = vp->chan;
vp                817 sound/synth/emux/emux_synth.c 	if (vp->reg.fixkey >= 0) {
vp                818 sound/synth/emux/emux_synth.c 		offset = (vp->reg.fixkey - vp->reg.root) * 4096 / 12;
vp                820 sound/synth/emux/emux_synth.c 		offset = (vp->note - vp->reg.root) * 4096 / 12;
vp                822 sound/synth/emux/emux_synth.c 	offset = (offset * vp->reg.scaleTuning) / 100;
vp                823 sound/synth/emux/emux_synth.c 	offset += vp->reg.tune * 4096 / 1200;
vp                847 sound/synth/emux/emux_synth.c 	offset += 0xe000 + vp->reg.rate_offset;
vp                848 sound/synth/emux/emux_synth.c 	offset += vp->emu->pitch_shift;
vp                850 sound/synth/emux/emux_synth.c 	if (offset == vp->apitch)
vp                852 sound/synth/emux/emux_synth.c 	vp->apitch = offset;
vp                916 sound/synth/emux/emux_synth.c 	struct snd_emux_voice *vp;
vp                922 sound/synth/emux/emux_synth.c 		vp = &emu->voices[i];
vp                923 sound/synth/emux/emux_synth.c 		vp->ch = -1; /* not used */
vp                924 sound/synth/emux/emux_synth.c 		vp->state = SNDRV_EMUX_ST_OFF;
vp                925 sound/synth/emux/emux_synth.c 		vp->chan = NULL;
vp                926 sound/synth/emux/emux_synth.c 		vp->port = NULL;
vp                927 sound/synth/emux/emux_synth.c 		vp->time = 0;
vp                928 sound/synth/emux/emux_synth.c 		vp->emu = emu;
vp                929 sound/synth/emux/emux_synth.c 		vp->hw = emu->hw;
vp                 52 sound/synth/emux/emux_voice.h void snd_emux_setup_effect(struct snd_emux_voice *vp);
vp               1023 tools/perf/util/pmu.c 	__u64 *vp;
vp               1057 tools/perf/util/pmu.c 		vp = &attr->config;
vp               1060 tools/perf/util/pmu.c 		vp = &attr->config1;
vp               1063 tools/perf/util/pmu.c 		vp = &attr->config2;
vp               1118 tools/perf/util/pmu.c 	pmu_format_value(format->bits, val, vp, zero);