Home
last modified time | relevance | path

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

12345

/openbmc/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 …]
/openbmc/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 …]
H A Demux_synth.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * Copyright (c) 1999-2000 Takashi Iwai <tiwai@suse.de>
21 * macro evaluates its args more than once, so changed to upper-case.
34 static void terminate_voice(struct snd_emux *emu, struct snd_emux_voice *vp, int free);
35 static void update_voice(struct snd_emux *emu, struct snd_emux_voice *vp, int update);
36 static void setup_voice(struct snd_emux_voice *vp);
37 static int calc_pan(struct snd_emux_voice *vp);
38 static int calc_volume(struct snd_emux_voice *vp);
39 static int calc_pitch(struct snd_emux_voice *vp);
46 snd_emux_note_on(void *p, int note, int vel, struct snd_midi_channel *chan) in snd_emux_note_on() argument
[all …]
/openbmc/linux/sound/drivers/opl3/
H A Dopl3_midi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (c) by Uros Bizjak <uros@kss-loka.si>
14 static void snd_opl3_note_off_unsafe(void *p, int note, int vel,
19 * for i=0. This log-table converts a linear volume-scaling (0..127) to a
20 * logarithmic scaling as present in the FM-synthesizer chips. so : Volume
21 * 64 = 0 db = relative volume 0 and: Volume 32 = -6 db = relative
22 * volume -8 it was implemented as a table because it is only 128 bytes and
28 -63, -48, -40, -35, -32, -29, -27, -26,
29 -24, -23, -21, -20, -19, -18, -18, -17,
30 -16, -15, -15, -14, -13, -13, -12, -12,
[all …]
/openbmc/linux/fs/afs/
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 Dinode.c36 pr_warn("kAFS: AFS vnode with undefined type %u\n", vnode->status.type); in dump_vnode()
38 vnode->status.abort_code, in dump_vnode()
39 vnode->status.mode, in dump_vnode()
40 vnode->status.size, in dump_vnode()
41 vnode->status.data_version); in dump_vnode()
43 vnode->fid.vid, in dump_vnode()
44 vnode->fid.vnode, in dump_vnode()
45 vnode->fid.unique); in dump_vnode()
48 parent_vnode->fid.vid, in dump_vnode()
49 parent_vnode->fid.vnode, in dump_vnode()
[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
114 struct address_space *mapping = req->vnode->netfs.inode.i_mapping; in afs_dir_read_cleanup()
116 pgoff_t last = req->nr_pages - 1; in afs_dir_read_cleanup()
118 XA_STATE(xas, &mapping->i_pages, 0); in afs_dir_read_cleanup()
120 if (unlikely(!req->nr_pages)) in afs_dir_read_cleanup()
153 size = min_t(loff_t, folio_size(folio), i_size - pos); in afs_dir_check_folio()
156 if (block->hdr.magic != AFS_DIR_MAGIC) { in afs_dir_check_folio()
158 __func__, dvnode->netfs.inode.i_ino, in afs_dir_check_folio()
159 pos, offset, size, ntohs(block->hdr.magic)); in afs_dir_check_folio()
162 trace_afs_file_error(dvnode, -EIO, afs_file_error_dir_bad_magic); in afs_dir_check_folio()
[all …]
/openbmc/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 …]
/openbmc/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 …]
/openbmc/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 …]
/openbmc/linux/arch/sparc/kernel/
H A Dldc.c1 // SPDX-License-Identifier: GPL-2.0
2 /* ldc.c: Logical Domain Channel link-layer protocol driver.
19 #include <asm/iommu-common.h>
40 * When in RAW mode, packets are simply straight 64-byte payloads
70 u8 u_data[LDC_PACKET_SIZE - 8];
74 u8 r_data[LDC_PACKET_SIZE - 8 - 8];
177 do { if (lp->cfg.debug & LDC_DEBUG_##TYPE) \
178 printk(KERN_INFO PFX "ID[%lu] " f, lp->id, ## a); \
212 return __advance(off, lp->rx_num_entries); in rx_advance()
217 return __advance(off, lp->tx_num_entries); in tx_advance()
[all …]
/openbmc/linux/arch/mips/kernel/
H A Dspram.c1 // SPDX-License-Identifier: GPL-2.0-or-later
149 base = (base + size - 1) & ~(size-1); in probe_spram()
171 unsigned int *vp = (unsigned int *)(CKSEG1 | pa); in probe_spram() local
174 vp[0] = TDAT; in probe_spram()
175 vp[1] = ~TDAT; in probe_spram()
179 v = vp[0]; in probe_spram()
181 printk(KERN_ERR "vp=%p wrote=%08x got=%08x\n", in probe_spram()
182 vp, TDAT, v); in probe_spram()
183 v = vp[1]; in probe_spram()
185 printk(KERN_ERR "vp=%p wrote=%08x got=%08x\n", in probe_spram()
[all …]
/openbmc/linux/arch/um/kernel/
H A Dptrace.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
10 #include <asm/ptrace-abi.h>
15 child->thread.singlestep_syscall = 0; in user_enable_single_step()
25 child->thread.singlestep_syscall = 0; in user_disable_single_step()
47 unsigned long __user *p = (void __user *)data; in arch_ptrace() local
48 void __user *vp = p; in arch_ptrace() local
63 ret = -EIO; in arch_ptrace()
68 if (!access_ok(p, MAX_REG_OFFSET)) { in arch_ptrace()
69 ret = -EIO; in arch_ptrace()
[all …]
/openbmc/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 …]
/openbmc/linux/lib/crypto/mpi/
H A Dec.c1 /* ec.c - Elliptic Curve functions
21 #include "mpi-internal.h"
34 * coordinate; it is only used to pre-allocate some resources and
39 MPI_POINT p; in mpi_point_new() local
43 p = kmalloc(sizeof(*p), GFP_KERNEL); in mpi_point_new()
44 if (p) in mpi_point_new()
45 mpi_point_init(p); in mpi_point_new()
46 return p; in mpi_point_new()
50 /* Release the point object P. P may be NULL. */
51 void mpi_point_release(MPI_POINT p) in mpi_point_release() argument
[all …]
/openbmc/linux/drivers/net/ethernet/3com/
H A D3c515.c2 Written 1997-1998 by Donald Becker.
15 2000/2/2- Added support for kernel-level ISAPnP
19 2001/11/17 - Added ethtool support (jgarzik)
21 2002/10/28 - Locking updates for 2.5 (alan@lxorguk.ukuu.org.uk)
30 /* Set the copy breakpoint for the copy-only-tiny-frames scheme.
40 /* Enable the automatic media selection code -- usually set. */
44 programmed-I/O for Vortex cards. Full-bus-master transfers are always
86 /* Put out somewhat more debugging messages. (0 - no msg, 1 minimal msgs). */
88 /* Some values here only for performance evaluation and path-coverage
121 II. Board-specific settings
[all …]
/openbmc/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 …]
/openbmc/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 …]
/openbmc/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 del_timer_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 …]
/openbmc/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 …]
/openbmc/qemu/hw/watchdog/
H A Dwdt_i6300esb.c73 * performed depends on the -watchdog-action
97 * states 0 -> 1 -> 2 when this happens.
110 * (hence it starts counting down) or has been keep-alived. in OBJECT_DECLARE_SIMPLE_TYPE()
116 if (!d->enabled) in OBJECT_DECLARE_SIMPLE_TYPE()
119 d->stage = stage; in OBJECT_DECLARE_SIMPLE_TYPE()
121 if (d->stage <= 1) in OBJECT_DECLARE_SIMPLE_TYPE()
122 timeout = d->timer1_preload; in OBJECT_DECLARE_SIMPLE_TYPE()
124 timeout = d->timer2_preload; in OBJECT_DECLARE_SIMPLE_TYPE()
126 if (d->clock_scale == CLOCK_SCALE_1KHZ) in OBJECT_DECLARE_SIMPLE_TYPE()
135 i6300esb_debug("stage %d, timeout %" PRIi64 "\n", d->stage, timeout); in OBJECT_DECLARE_SIMPLE_TYPE()
[all …]
/openbmc/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 …]

12345