/linux-6.14.4/drivers/net/ethernet/sun/ |
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 …]
|
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-6.14.4/sound/drivers/opl3/ |
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-table converts a linear volume-scaling (0..127) to a 27 * logarithmic scaling as present in the FM-synthesizer chips. so : Volume 28 * 64 = 0 db = relative volume 0 and: Volume 32 = -6 db = relative 29 * volume -8 it was implemented as a table because it is only 128 bytes and 35 -63, -48, -40, -35, -32, -29, -27, -26, 36 -24, -23, -21, -20, -19, -18, -18, -17, [all …]
|
/linux-6.14.4/sound/synth/emux/ |
D | emux_effect.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright (c) 1999-2000 Takashi Iwai <[email protected]> 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 …]
|
D | emux_synth.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright (c) 1999-2000 Takashi Iwai <[email protected]> 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 …]
|
/linux-6.14.4/fs/afs/ |
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 …]
|
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 …]
|
D | fsclient.c | 1 // 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 …]
|
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-6.14.4/drivers/scsi/sym53c8xx_2/ |
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 <[email protected]> 9 * Copyright (C) 1998-2000 Gerard Roudier 12 * a port of the FreeBSD ncr driver to Linux-1.2.13. 16 * Stefan Esser <[email protected]-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-6.14.4/drivers/media/usb/pvrusb2/ |
D | pvrusb2-v4l2.c | 1 // 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-6.14.4/arch/powerpc/sysdev/xive/ |
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-6.14.4/arch/sparc/kernel/ |
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-6.14.4/arch/mips/kernel/ |
D | spram.c | 1 // 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-6.14.4/arch/um/kernel/ |
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> 42 unsigned long __user *p = (void __user *)data; in arch_ptrace() local 43 void __user *vp = p; in arch_ptrace() local 58 ret = -EIO; in arch_ptrace() 63 if (!access_ok(p, MAX_REG_OFFSET)) { in arch_ptrace() 64 ret = -EIO; in arch_ptrace() 68 __put_user(getreg(child, i), p); in arch_ptrace() 69 p++; in arch_ptrace() [all …]
|
/linux-6.14.4/drivers/media/platform/samsung/s3c-camif/ |
D | camif-capture.c | 1 // 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 …]
|
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-6.14.4/drivers/net/ethernet/3com/ |
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 ([email protected]) 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 …]
|
/linux-6.14.4/arch/arm/mach-omap2/ |
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 …]
|
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-6.14.4/drivers/scsi/qedf/ |
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-6.14.4/drivers/scsi/qla2xxx/ |
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 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 …]
|
/linux-6.14.4/drivers/media/pci/bt8xx/ |
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-6.14.4/drivers/net/usb/ |
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-6.14.4/arch/powerpc/kvm/ |
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 …]
|