| /linux/drivers/net/ethernet/sun/ |
| H A D | sunvnet.c | 1 // 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 D | sunvnet_common.h | 1 /* 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/drivers/opl3/ |
| H A D | opl3_midi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) by Uros Bizjak <uros@kss-loka.si> 16 dev_dbg(((struct snd_opl3 *)(opl3))->card->dev, fmt, ##__VA_ARGS__) 21 static void snd_opl3_note_off_unsafe(void *p, int note, int vel, 26 * for i=0. This log-tabl 139 struct snd_opl3_voice *vp, *vp2; opl3_get_voice() local 243 struct snd_opl3_voice *vp = &opl3->voices[i]; snd_opl3_timer_func() local 286 snd_opl3_note_on(void * p,int note,int vel,struct snd_midi_channel * chan) snd_opl3_note_on() argument 292 struct snd_opl3_voice *vp, *vp2; snd_opl3_note_on() local 609 struct snd_opl3_voice *vp, *vp2; snd_opl3_kill_voice() local 650 snd_opl3_note_off_unsafe(void * p,int note,int vel,struct snd_midi_channel * chan) snd_opl3_note_off_unsafe() argument 656 struct snd_opl3_voice *vp; snd_opl3_note_off_unsafe() local 685 snd_opl3_note_off(void * p,int note,int vel,struct snd_midi_channel * chan) snd_opl3_note_off() argument 699 snd_opl3_key_press(void * p,int note,int vel,struct snd_midi_channel * chan) snd_opl3_key_press() argument 708 snd_opl3_terminate_note(void * p,int note,struct snd_midi_channel * chan) snd_opl3_terminate_note() argument 722 struct snd_opl3_voice *vp; snd_opl3_update_pitch() local 765 struct snd_opl3_voice *vp; snd_opl3_pitch_ctrl() local 792 snd_opl3_control(void * p,int type,struct snd_midi_channel * chan) snd_opl3_control() argument 826 snd_opl3_nrpn(void * p,struct snd_midi_channel * chan,struct snd_midi_channel_set * chset) snd_opl3_nrpn() argument 836 snd_opl3_sysex(void * p,unsigned char * buf,int len,int parsed,struct snd_midi_channel_set * chset) snd_opl3_sysex() argument [all...] |
| /linux/sound/synth/emux/ |
| H A D | emux_synth.c | 1 // 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); 46 snd_emux_note_on(void * p,int note,int vel,struct snd_midi_channel * chan) snd_emux_note_on() argument 50 struct snd_emux_voice *vp; snd_emux_note_on() local 145 snd_emux_note_off(void * p,int note,int vel,struct snd_midi_channel * chan) snd_emux_note_off() argument 149 struct snd_emux_voice *vp; snd_emux_note_off() local 194 struct snd_emux_voice *vp; snd_emux_timer_callback() local 222 snd_emux_key_press(void * p,int note,int vel,struct snd_midi_channel * chan) snd_emux_key_press() argument 226 struct snd_emux_voice *vp; snd_emux_key_press() local 258 struct snd_emux_voice *vp; snd_emux_update_channel() local 285 struct snd_emux_voice *vp; snd_emux_update_port() local 311 snd_emux_control(void * p,int type,struct snd_midi_channel * chan) snd_emux_control() argument 367 struct snd_emux_voice *vp; terminate_note1() local 385 snd_emux_terminate_note(void * p,int note,struct snd_midi_channel * chan) snd_emux_terminate_note() argument 409 struct snd_emux_voice *vp; snd_emux_terminate_all() local 440 struct snd_emux_voice *vp; snd_emux_sounds_off_all() local 473 struct snd_emux_voice *vp; exclusive_note_off() local 493 terminate_voice(struct snd_emux * emu,struct snd_emux_voice * vp,int free) terminate_voice() argument 511 update_voice(struct snd_emux * emu,struct snd_emux_voice * vp,int update) update_voice() argument 546 setup_voice(struct snd_emux_voice * vp) setup_voice() argument 639 calc_pan(struct snd_emux_voice * vp) calc_pan() argument 740 calc_volume(struct snd_emux_voice * vp) calc_volume() argument 811 calc_pitch(struct snd_emux_voice * vp) calc_pitch() argument 917 struct snd_emux_voice *vp; snd_emux_init_voices() local [all...] |
| H A D | emux_effect.c | 1 // 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-tim 200 struct snd_emux_voice *vp = &emu->voices[i]; snd_emux_send_effect() local 222 snd_emux_setup_effect(struct snd_emux_voice * vp) snd_emux_setup_effect() argument 273 snd_emux_create_effect(struct snd_emux_port * p) snd_emux_create_effect() argument 288 snd_emux_delete_effect(struct snd_emux_port * p) snd_emux_delete_effect() argument 295 snd_emux_clear_effect(struct snd_emux_port * p) snd_emux_clear_effect() argument [all...] |
| /linux/fs/afs/ |
| H A D | inode.c | 30 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 D | yfsclient.c | 1 // 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 D | dir.c | 1 // 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 D | mshv_root_main.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <linux/entry-virt.h> 28 #include <linux/page-flags.h> 39 MODULE_DESCRIPTION("Microsoft Hyper-V root partition VMM interface /dev/mshv"); 53 u64 vp_cntrs[VpStatsMaxCounter]; /* VP counters */ 164 return -EFAULT; in mshv_ioctl_passthru_hvcall() 168 return -EINVAL; in mshv_ioctl_passthru_hvcall() 171 return -EINVAL; in mshv_ioctl_passthru_hvcall() 178 return -EINVAL; in mshv_ioctl_passthru_hvcall() 184 return -EINVAL; in mshv_ioctl_passthru_hvcall() [all …]
|
| H A D | mshv_eventfd.c | 1 // 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 D | sym_malloc.c | 1 // 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/arch/powerpc/sysdev/xive/ |
| H A D | native.c | 1 // 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/sparc/kernel/ |
| H A D | ldc.c | 1 // 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 …]
|
| /linux/arch/um/kernel/ |
| H A D | ptrace.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) 10 #include <asm/ptrace-abi.h> 45 unsigned long __user *p = (void __user *)data; in arch_ptrace() local 46 void __user *vp = p; in arch_ptrace() local 61 ret = -EIO; in arch_ptrace() 66 if (!access_ok(p, MAX_REG_OFFSET)) { in arch_ptrace() 67 ret = -EIO; in arch_ptrace() 71 __put_user(getreg(child, i), p); in arch_ptrace() 72 p++; in arch_ptrace() [all …]
|
| /linux/drivers/net/ethernet/3com/ |
| H A D | 3c515.c | 2 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. 37 /* Enable the automatic media selection code -- usually set. */ 41 programmed-I/O for Vortex cards. Full-bus-master transfers are always 83 /* Put out somewhat more debugging messages. (0 - no msg, 1 minimal msgs). */ 85 /* Some values here only for performance evaluation and path-coverage 118 II. Board-specific settings [all …]
|
| H A D | 3c59x.c | 3 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/arm/mach-omap2/ |
| H A D | prm44xx.c | 1 // 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 D | prm3xxx.c | 1 // 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 D | qedf_fip.c | 1 // 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 D | qla_mid.c | 1 // 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 D | dst.c | 1 // 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 D | net1080.c | 1 // 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 D | book3s_xive.h | 1 /* 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/media/platform/samsung/s3c-camif/ |
| H A D | camif-regs.h | 1 /* 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/x86/virt/vmx/tdx/ |
| H A D | tdxcall.S | 1 /* 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 …]
|