Home
last modified time | relevance | path

Searched +full:vp +full:- +full:p (Results 1 – 25 of 86) sorted by relevance

1234

/linux/drivers/net/ethernet/sun/
H A Dsunvnet.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2016-2017 Oracle. All rights reserved.
37 * and dev->tx_timeout() should be called to fix the problem
63 strscpy(info->driver, DRV_MODULE_NAME, sizeof(info->driver)); in vnet_get_drvinfo()
64 strscpy(info->version, DRV_MODULE_VERSION, sizeof(info->version)); in vnet_get_drvinfo()
69 struct vnet *vp = netdev_priv(dev); in vnet_get_msglevel() local
71 return vp->msg_enable; in vnet_get_msglevel()
76 struct vnet *vp = netdev_priv(dev); in vnet_set_msglevel() local
78 vp->msg_enable = value; in vnet_set_msglevel()
102 struct vnet *vp = (struct vnet *)netdev_priv(dev); in vnet_get_sset_count() local
[all …]
H A Dsunvnet_common.h1 /* SPDX-License-Identifier: GPL-2.0 */
14 #define VNET_TX_WAKEUP_THRESH(dr) ((dr)->pending / 4)
52 /* Structure to describe a vnet-port or vsw-port in the MD.
54 * port, and the net_device can be found from ->dev. If the
55 * vsw bit is not set, the net_device is available from ->vp->dev.
70 struct vnet *vp; member
99 #define VNET_PORT_HASH_MASK (VNET_PORT_HASH_SIZE - 1)
130 ((__port)->vsw ? (__port)->dev : (__port)->vp->dev)
136 void sunvnet_set_rx_mode_common(struct net_device *dev, struct vnet *vp);
137 int sunvnet_set_mac_addr_common(struct net_device *dev, void *p);
[all …]
/linux/sound/synth/emux/
H A Demux_effect.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * Copyright (c) 1999-2000 Takashi Iwai <tiwai@suse.de>
19 #define xoffsetof(type,tag) ((long)(&((type)NULL)->tag) - (long)(NULL))
40 long offset; /* offset in parameter record (-1 = not written) */
41 int update; /* flgas for real-time update */
61 {PARM_SIGN_HI, -128, 127, parm_offset(tremfrq), SNDRV_EMUX_UPDATE_TREMFREQ}, /* lfo1 vol */
62 {PARM_SIGN_HI, -128, 127, parm_offset(fmmod), SNDRV_EMUX_UPDATE_FMMOD}, /* lfo1 pitch */
67 {PARM_SIGN_HI, -128, 127, parm_offset(fm2frq2), SNDRV_EMUX_UPDATE_FM2FRQ2}, /* lfo2 pitch */
69 {PARM_WORD, 0, 0xffff, -1, SNDRV_EMUX_UPDATE_PITCH}, /* initial pitch */
75 {PARM_WORD, 0, 0xffff, -1, 0}, /* sample start */
[all …]
/linux/fs/afs/
H A Dinode.c30 size_t size = strlen(op->create.symlink) + 1; in afs_init_new_symlink()
32 char *p; in afs_init_new_symlink() local
34 if (netfs_alloc_folioq_buffer(NULL, &vnode->directory, &dsize, size, in afs_init_new_symlink()
35 mapping_gfp_mask(vnode->netfs.inode.i_mapping)) < 0) in afs_init_new_symlink()
38 vnode->directory_size = dsize; in afs_init_new_symlink()
39 p = kmap_local_folio(folioq_folio(vnode->directory, 0), 0); in afs_init_new_symlink()
40 memcpy(p, op->create.symlink, size); in afs_init_new_symlink()
41 kunmap_local(p); in afs_init_new_symlink()
42 set_bit(AFS_VNODE_DIR_READ, &vnode->flags); in afs_init_new_symlink()
43 netfs_single_mark_inode_dirty(&vnode->netfs.inode); in afs_init_new_symlink()
[all …]
H A Dyfsclient.c1 // SPDX-License-Identifier: GPL-2.0-or-later
24 fid->vid = xdr_to_u64(x->volume); in xdr_decode_YFSFid()
25 fid->vnode = xdr_to_u64(x->vnode.lo); in xdr_decode_YFSFid()
26 fid->vnode_hi = ntohl(x->vnode.hi); in xdr_decode_YFSFid()
27 fid->unique = ntohl(x->vnode.unique); in xdr_decode_YFSFid()
49 x->volume = u64_to_xdr(fid->vid); in xdr_encode_YFSFid()
50 x->vnode.lo = u64_to_xdr(fid->vnode); in xdr_encode_YFSFid()
51 x->vnode.hi = htonl(fid->vnode_hi); in xdr_encode_YFSFid()
52 x->vnode.unique = htonl(fid->unique); in xdr_encode_YFSFid()
61 static __be32 *xdr_encode_string(__be32 *bp, const char *p, unsigned int len) in xdr_encode_string() argument
[all …]
H A Dfsclient.c1 // SPDX-License-Identifier: GPL-2.0-or-later
25 fid->vid = ntohl(*bp++); in xdr_decode_AFSFid()
26 fid->vnode = ntohl(*bp++); in xdr_decode_AFSFid()
27 fid->unique = ntohl(*bp++); in xdr_decode_AFSFid()
59 struct afs_file_status *status = &scb->status; in xdr_decode_AFSFetchStatus()
60 bool inline_error = (call->operation_ID == afs_FS_InlineBulkStatus); in xdr_decode_AFSFetchStatus()
64 abort_code = ntohl(xdr->abort_code); in xdr_decode_AFSFetchStatus()
66 if (xdr->if_version != htonl(AFS_FSTATUS_VERSION)) { in xdr_decode_AFSFetchStatus()
67 if (xdr->if_version == htonl(0) && in xdr_decode_AFSFetchStatus()
74 status->abort_code = abort_code; in xdr_decode_AFSFetchStatus()
[all …]
H A Ddir.c1 // SPDX-License-Identifier: GPL-2.0-or-later
100 loff_t i_size = i_size_read(&dvnode->netfs.inode); in afs_dir_unuse_cookie()
122 len -= AFS_DIR_BLOCK_SIZE; in afs_dir_dump_step()
134 unsigned long long i_size = i_size_read(&dvnode->netfs.inode); in afs_dir_dump()
137 dvnode->fid.vid, dvnode->fid.vnode, i_size); in afs_dir_dump()
139 iov_iter_folio_queue(&iter, ITER_SOURCE, dvnode->directory, 0, 0, i_size); in afs_dir_dump()
150 if (block->hdr.magic != AFS_DIR_MAGIC) { in afs_dir_check_block()
152 __func__, dvnode->netfs.inode.i_ino, in afs_dir_check_block()
153 progress, ntohs(block->hdr.magic)); in afs_dir_check_block()
155 trace_afs_file_error(dvnode, -EIO, afs_file_error_dir_bad_magic); in afs_dir_check_block()
[all …]
/linux/drivers/hv/
H A Dmshv_root_main.c1 // SPDX-License-Identifier: GPL-2.0-only
27 #include <linux/page-flags.h>
38 MODULE_DESCRIPTION("Microsoft Hyper-V root partition VMM interface /dev/mshv");
58 u64 vp_cntrs[VpStatsMaxCounter]; /* VP counters */
169 return -EFAULT; in mshv_ioctl_passthru_hvcall()
173 return -EINVAL; in mshv_ioctl_passthru_hvcall()
176 return -EINVAL; in mshv_ioctl_passthru_hvcall()
183 return -EINVAL; in mshv_ioctl_passthru_hvcall()
189 return -EINVAL; in mshv_ioctl_passthru_hvcall()
198 return -ENOMEM; in mshv_ioctl_passthru_hvcall()
[all …]
H A Dmshv_eventfd.c1 // SPDX-License-Identifier: GPL-2.0-only
33 mutex_lock(&partition->pt_irq_lock); in mshv_register_irq_ack_notifier()
34 hlist_add_head_rcu(&mian->link, &partition->irq_ack_notifier_list); in mshv_register_irq_ack_notifier()
35 mutex_unlock(&partition->pt_irq_lock); in mshv_register_irq_ack_notifier()
41 mutex_lock(&partition->pt_irq_lock); in mshv_unregister_irq_ack_notifier()
42 hlist_del_init_rcu(&mian->link); in mshv_unregister_irq_ack_notifier()
43 mutex_unlock(&partition->pt_irq_lock); in mshv_unregister_irq_ack_notifier()
53 hlist_for_each_entry_rcu(mian, &partition->irq_ack_notifier_list, in mshv_notify_acked_gsi()
55 if (mian->irq_ack_gsi == gsi) { in mshv_notify_acked_gsi()
56 mian->irq_acked(mian); in mshv_notify_acked_gsi()
[all …]
/linux/drivers/scsi/sym53c8xx_2/
H A Dsym_malloc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * of PCI-SCSI IO processors.
6 * Copyright (C) 1999-2001 Gerard Roudier <groudier@free.fr>
9 * Copyright (C) 1998-2000 Gerard Roudier
12 * a port of the FreeBSD ncr driver to Linux-1.2.13.
16 * Stefan Esser <se@mi.Uni-Koeln.de>
24 *-----------------------------------------------------------------------------
30 * Simple power of two buddy-like generic allocator.
53 m_link_p h = mp->h; in ___sym_malloc()
68 h[j].next->next = NULL; in ___sym_malloc()
[all …]
/linux/drivers/media/usb/pvrusb2/
H A Dpvrusb2-v4l2.c1 // SPDX-License-Identifier: GPL-2.0-only
10 #include "pvrusb2-context.h"
11 #include "pvrusb2-hdw.h"
13 #include "pvrusb2-debug.h"
14 #include "pvrusb2-v4l2.h"
15 #include "pvrusb2-ioread.h"
18 #include <media/v4l2-dev.h>
19 #include <media/v4l2-device.h>
20 #include <media/v4l2-fh.h>
21 #include <media/v4l2-common.h>
[all …]
/linux/arch/powerpc/sysdev/xive/
H A Dnative.c1 // SPDX-License-Identifier: GPL-2.0-or-later
30 #include <asm/xive-regs.h>
34 #include "xive-internal.h"
60 return -EINVAL; in xive_native_populate_irq_data()
65 data->flags |= XIVE_IRQ_FLAG_STORE_EOI; in xive_native_populate_irq_data()
67 data->flags |= XIVE_IRQ_FLAG_STORE_EOI; in xive_native_populate_irq_data()
69 data->flags |= XIVE_IRQ_FLAG_LSI; in xive_native_populate_irq_data()
70 data->eoi_page = be64_to_cpu(eoi_page); in xive_native_populate_irq_data()
71 data->trig_page = be64_to_cpu(trig_page); in xive_native_populate_irq_data()
72 data->esb_shift = be32_to_cpu(esb_shift); in xive_native_populate_irq_data()
[all …]
/linux/arch/mips/kernel/
H A Dspram.c1 // SPDX-License-Identifier: GPL-2.0-or-later
146 base = (base + size - 1) & ~(size-1); in probe_spram()
168 unsigned int *vp = (unsigned int *)(CKSEG1 | pa); in probe_spram() local
171 vp[0] = TDAT; in probe_spram()
172 vp[1] = ~TDAT; in probe_spram()
176 v = vp[0]; in probe_spram()
178 printk(KERN_ERR "vp=%p wrote=%08x got=%08x\n", in probe_spram()
179 vp, TDAT, v); in probe_spram()
180 v = vp[1]; in probe_spram()
182 printk(KERN_ERR "vp=%p wrote=%08x got=%08x\n", in probe_spram()
[all …]
/linux/drivers/gpu/drm/rockchip/
H A Drockchip_drm_vop2.h1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * Author:Mark Yao <mark.yao@rock-chips.com>
12 #include <dt-bindings/soc/rockchip,vop2.h>
48 VOP2_DLY_WIN, /** Win delay cycle for this VP */
49 VOP2_DLY_LAYER_MIX, /** Layer Mix delay cycle for this VP */
50 VOP2_DLY_HDR_MIX, /** HDR delay cycle for this VP */
259 * struct vop2_ops - helper operations for vop2 hardware
265 unsigned long (*setup_intf_mux)(struct vop2_video_port *vp, int ep_id, u32 polflags);
266 void (*setup_bg_dly)(struct vop2_video_port *vp);
267 void (*setup_overlay)(struct vop2_video_port *vp);
[all …]
/linux/drivers/media/platform/samsung/s3c-camif/
H A Dcamif-capture.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * Based on drivers/media/platform/s5p-fimc,
9 * Copyright (C) 2010 - 2012 Samsung Electronics Co., Ltd.
30 #include <media/media-device.h>
31 #include <media/v4l2-ctrls.h>
32 #include <media/v4l2-event.h>
33 #include <media/v4l2-ioctl.h>
34 #include <media/videobuf2-v4l2.h>
35 #include <media/videobuf2-dma-contig.h>
37 #include "camif-core.h"
[all …]
H A Dcamif-regs.h1 /* SPDX-License-Identifier: GPL-2.0-only */
14 #include "camif-core.h"
15 #include <media/drv-intf/s3c_camif.h>
19 * id = 0 - codec (FIMC C), 1 - preview (FIMC P).
65 #define CIGCTRL_IRQ_CLR(id) BIT(19 - (id))
77 /* CICOTRGFMT, CIPRTRGFMT - Target format */
100 /* xBURSTn - 5-bits width */
110 /* CICOSCPRERATIO, CIPRSCPRERATIO. Pre-scaler control 1. */
113 /* CICOSCPREDST, CIPRSCPREDST. Pre-scaler control 2. */
121 /* 0 - 16-bit RGB, 1 - 24-bit RGB */
[all …]
/linux/arch/arm/mach-omap2/
H A Dprm44xx.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2011-2012 Texas Instruments, Inc.
24 #include "vp.h"
27 #include "prm-regbits-44xx.h"
67 * omap44xx_prm_reset_src_map - map from bits in the PRM_RSTST
69 * source ID bit shifts (which is an OMAP SoC-independent
90 { -1, -1 },
93 /* PRM low-level functions */
107 /* Read-modify-write a register in a PRM module. Caller must lock */
120 /* PRM VP */
[all …]
H A Dprm3xxx.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2010-2012 Texas Instruments, Inc.
21 #include "vp.h"
26 #include "prm-regbits-34xx.h"
28 #include "cm-regbits-34xx.h"
57 * omap3_prm_reset_src_map - map from bits in the PRM_RSTST hardware
59 * bit shifts (which is an OMAP SoC-independent enumeration)
74 { -1, -1 },
77 /* PRM VP */
80 * struct omap3_vp - OMAP3 VP register access description.
[all …]
/linux/drivers/scsi/qedf/
H A Dqedf_fip.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (c) 2016-2018 Cavium Inc.
27 QEDF_ERR(&qedf->dbg_ctx, in qedf_fcoe_send_vlan_req()
32 eth_fr = (char *)skb->data; in qedf_fcoe_send_vlan_req()
36 ether_addr_copy(vlan->eth.h_source, qedf->mac); in qedf_fcoe_send_vlan_req()
37 ether_addr_copy(vlan->eth.h_dest, my_fcoe_all_fcfs); in qedf_fcoe_send_vlan_req()
38 vlan->eth.h_proto = htons(ETH_P_FIP); in qedf_fcoe_send_vlan_req()
40 vlan->fip.fip_ver = FIP_VER_ENCAPS(FIP_VER); in qedf_fcoe_send_vlan_req()
41 vlan->fip.fip_op = htons(FIP_OP_VLAN); in qedf_fcoe_send_vlan_req()
42 vlan->fip.fip_subcode = FIP_SC_VL_REQ; in qedf_fcoe_send_vlan_req()
[all …]
/linux/drivers/scsi/qla2xxx/
H A Dqla_mid.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (c) 2003-2014 QLogic Corporation
22 if (vha->vp_idx && vha->timer_active) { in qla2x00_vp_stop_timer()
23 timer_delete_sync(&vha->timer); in qla2x00_vp_stop_timer()
24 vha->timer_active = 0; in qla2x00_vp_stop_timer()
32 struct qla_hw_data *ha = vha->hw; in qla24xx_allocate_vp_id()
36 mutex_lock(&ha->vport_lock); in qla24xx_allocate_vp_id()
37 vp_id = find_first_zero_bit(ha->vp_idx_map, ha->max_npiv_vports + 1); in qla24xx_allocate_vp_id()
38 if (vp_id > ha->max_npiv_vports) { in qla24xx_allocate_vp_id()
40 "vp_id %d is bigger than max-supported %d.\n", in qla24xx_allocate_vp_id()
[all …]
/linux/drivers/media/pci/bt8xx/
H A Ddst.c1 // SPDX-License-Identifier: GPL-2.0-or-later
52 bt878_device_control(state->bt, DST_IG_TS, &bits); in dst_packsize()
67 if ((err = bt878_device_control(state->bt, DST_IG_ENABLE, &enb)) < 0) { in dst_gpio_outb()
70 return -EREMOTEIO; in dst_gpio_outb()
80 if ((err = bt878_device_control(state->bt, DST_IG_WRITE, &bits)) < 0) { in dst_gpio_outb()
83 return -EREMOTEIO; in dst_gpio_outb()
95 if ((err = bt878_device_control(state->bt, DST_IG_READ, &rd_packet)) < 0) { in dst_gpio_inb()
97 return -EREMOTEIO; in dst_gpio_inb()
109 return -1; in rdc_reset_state()
115 return -1; in rdc_reset_state()
[all …]
/linux/drivers/net/usb/
H A Dnet1080.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Net1080 based USB host-to-host cables
4 * Copyright (C) 2000-2005 by David Brownell
25 * (Sept 2004: End-of-life announcement has been sent.)
35 * - nc_header
36 * - Ethernet header (14 bytes)
37 * - payload
38 * - (optional padding byte, if needed so length becomes odd)
39 * - nc_trailer
41 * This framing is to be avoided for non-NetChip devices.
[all …]
/linux/arch/powerpc/kvm/
H A Dbook3s_xive.h1 /* SPDX-License-Identifier: GPL-2.0-only */
24 * pass-through but it's easier to keep around as the same
25 * guest interrupt can alternatively be emulated or pass-through
38 u32 pt_number; /* XIVE Pass-through number if any */
39 struct xive_irq_data *pt_data; /* XIVE Pass-through associated data */
51 bool old_p; /* P bit state when masking */
53 bool lsi; /* level-sensitive interrupt */
71 if (state->pt_number) { in kvmppc_xive_select_irq()
73 *out_hw_irq = state->pt_number; in kvmppc_xive_select_irq()
75 *out_xd = state->pt_data; in kvmppc_xive_select_irq()
[all …]
/linux/drivers/net/ethernet/3com/
H A D3c59x.c3 Written 1996-1999 by Donald Becker.
43 /* Set the copy breakpoint for the copy-only-tiny-frames scheme.
48 /* ARM systems perform better by disregarding the bus-master
49 transfer capability of these cards. -- rmk */
98 This is only in the support-all-kernels source code. */
117 The Boomerang size is twice as large as the Vortex -- it has additional
124 code size of a per-interface flag is not worthwhile. */
145 II. Board-specific settings
151 The EEPROM settings for media type and forced-full-duplex are observed.
158 series. The primary interface is two programmed-I/O FIFOs, with an
[all …]
/linux/arch/x86/virt/vmx/tdx/
H A Dtdxcall.S1 /* SPDX-License-Identifier: GPL-2.0 */
2 #include <asm/asm-offsets.h>
14 * TDX_MODULE_CALL - common helper macro for both
17 * TDCALL - used by TDX guests to make requests to the
19 * SEAMCALL - used by TDX hosts to make requests to the
22 *-------------------------------------------------------------------------
24 *-------------------------------------------------------------------------
27 * RAX - TDCALL/SEAMCALL Leaf number.
28 * RCX,RDX,RDI,RSI,RBX,R8-R15 - TDCALL/SEAMCALL Leaf specific input registers.
32 * RAX - TDCALL/SEAMCALL instruction error code.
[all …]

1234