| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
| H A D | init.c | 42 nvkm_printk(init->subdev, lvl, info, "0x%08x[%c]: "fmt, \ 43 init->offset, init_exec(init) ? \ 44 '0' + (init->nested - 1) : ' ', ##args); \ 47 if (init->subdev->debug >= NV_DBG_TRACE) \ 61 return (init->execute == 1) || ((init->execute & 5) == 5); in init_exec() 67 if (exec) init->execute &= 0xfd; in init_exec_set() 68 else init->execute |= 0x02; in init_exec_set() 74 init->execute ^= 0x02; in init_exec_inv() 80 if (exec) init->execute |= 0x04; in init_exec_force() 81 else init->execute &= 0xfb; in init_exec_force() [all …]
|
| /linux/drivers/gpu/drm/tegra/ |
| H A D | firewall.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* Copyright (c) 2010-2020 NVIDIA Corporation */ 19 if (fw->pos == fw->end) in fw_next() 20 return -EINVAL; in fw_next() 22 *word = fw->data[fw->pos++]; in fw_next() 27 static bool fw_check_addr_valid(struct tegra_drm_firewall *fw, u32 offset) in fw_check_addr_valid() argument 31 for (i = 0; i < fw->submit->num_used_mappings; i++) { in fw_check_addr_valid() 32 struct tegra_drm_mapping *m = fw->submit->used_mappings[i].mapping; in fw_check_addr_valid() 34 if (offset >= m->iova && offset <= m->iova_end) in fw_check_addr_valid() 41 static int fw_check_reg(struct tegra_drm_firewall *fw, u32 offset) in fw_check_reg() argument [all …]
|
| /linux/fs/jffs2/ |
| H A D | read.c | 2 * JFFS2 -- Journalling Flash File System, Version 2. 4 * Copyright © 2001-2007 Red Hat, Inc. 36 return -ENOMEM; in jffs2_read_dnode() 38 ret = jffs2_flash_read(c, ref_offset(fd->raw), sizeof(*ri), &readlen, (char *)ri); in jffs2_read_dnode() 41 pr_warn("Error reading node from 0x%08x: %d\n", in jffs2_read_dnode() 42 ref_offset(fd->raw), ret); in jffs2_read_dnode() 47 pr_warn("Short read from 0x%08x: wanted 0x%zx bytes, got 0x%zx\n", in jffs2_read_dnode() 48 ref_offset(fd->raw), sizeof(*ri), readlen); in jffs2_read_dnode() 49 return -EIO; in jffs2_read_dnode() 51 crc = crc32(0, ri, sizeof(*ri)-8); in jffs2_read_dnode() [all …]
|
| H A D | erase.c | 2 * JFFS2 -- Journalling Flash File System, Version 2. 4 * Copyright © 2001-2007 Red Hat, Inc. 5 * Copyright © 2004-2010 David Woodhouse <dwmw2@infradead.org> 39 bad_offset = jeb->offset; in jffs2_erase_block() 43 jffs2_dbg(1, "%s(): erase block %#08x (range %#08x-%#08x)\n", in jffs2_erase_block() 45 jeb->offset, jeb->offset, jeb->offset + c->sector_size); in jffs2_erase_block() 49 mutex_lock(&c->erase_free_sem); in jffs2_erase_block() 50 spin_lock(&c->erase_completion_lock); in jffs2_erase_block() 51 list_move(&jeb->list, &c->erase_pending_list); in jffs2_erase_block() 52 c->erasing_size -= c->sector_size; in jffs2_erase_block() [all …]
|
| H A D | summary.c | 2 * JFFS2 -- Journalling Flash File System, Version 2. 4 * Copyright © 2004 Ferenc Havasi <havasi@inf.u-szeged.hu>, 5 * Zoltan Sogor <weth@inf.u-szeged.hu>, 6 * Patrik Kluba <pajko@halom.u-szeged.hu>, 28 uint32_t sum_size = min_t(uint32_t, c->sector_size, MAX_SUMMARY_SIZE); in jffs2_sum_init() 30 c->summary = kzalloc_obj(struct jffs2_summary); in jffs2_sum_init() 32 if (!c->summary) { in jffs2_sum_init() 34 return -ENOMEM; in jffs2_sum_init() 37 c->summary->sum_buf = kmalloc(sum_size, GFP_KERNEL); in jffs2_sum_init() 39 if (!c->summary->sum_buf) { in jffs2_sum_init() [all …]
|
| H A D | scan.c | 2 * JFFS2 -- Journalling Flash File System, Version 2. 4 * Copyright © 2001-2007 Red Hat, Inc. 31 (*(noise))--; \ 43 * Returning an error will abort the mount - bad checksums etc. should just mark the space 55 if (!jffs2_can_mark_obsolete(c) && min < c->wbuf_pagesize) in min_free() 56 return c->wbuf_pagesize; in min_free() 75 if ((ret = jffs2_scan_dirty_space(c, jeb, jeb->free_size))) in file_dirty() 79 jeb->dirty_size += jeb->wasted_size; in file_dirty() 80 c->dirty_size += jeb->wasted_size; in file_dirty() 81 c->wasted_size -= jeb->wasted_size; in file_dirty() [all …]
|
| /linux/arch/powerpc/platforms/powermac/ |
| H A D | pfunc_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 84 while(bytes--) { 85 printk("%02x ", *((u8 *)blob)); 99 if ((cmd->cmdend - cmd->cmdptr) < 4) { in pmf_next32() 100 cmd->error = 1; in pmf_next32() 103 value = *((u32 *)cmd->cmdptr); in pmf_next32() 104 cmd->cmdptr += 4; in pmf_next32() 111 if ((cmd->cmdend - cmd->cmdptr) < count) { in pmf_next_blob() 112 cmd->error = 1; in pmf_next_blob() 115 value = cmd->cmdptr; in pmf_next_blob() [all …]
|
| /linux/fs/nfs/ |
| H A D | nfstrace.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 83 __entry->dev = inode->i_sb->s_dev; 84 __entry->fileid = inode->i_ino; 85 __entry->fhandle = nfs_fhandle_hash(&nfsi->fh); 86 __entry->version = inode_peek_iversion_raw(inode); 87 __entry->cache_validity = nfsi->cache_validity; 91 "fileid=%02x:%02x:%llu fhandle=0x%08x version=%llu cache_validity=0x%lx (%s)", 92 MAJOR(__entry->dev), MINOR(__entry->dev), 93 (unsigned long long)__entry->fileid, 94 __entry->fhandle, [all …]
|
| /linux/drivers/ssb/ |
| H A D | sdio.c | 3 * SDIO-Hostbus related functions 9 * Copyright 2007-2008 Michael Buesch <m@bues.ch> 60 #define SBSDIO_FUNC1_SBADDRMID 0x1000b /* SB Address window Mid (b23-b16) */ 61 #define SBSDIO_FUNC1_SBADDRHIGH 0x1000c /* SB Address window High (b24-b31) */ 68 #define SBSDIO_SB_OFT_ADDR_MASK 0x7FFF /* sb offset addr is <= 15 bits, 32k */ 71 #define SBSDIO_SB_ACCESS_2_4B_FLAG 0x8000 /* forces 32-bit SB access */ 78 * ------- ------- ------------------------------------------ 85 * In order to access the contents of a 32-bit Silicon Backplane address 93 * OOOOOOOOOOOOOOOO Offset within SB Address Window 94 * a 32-bit access flag [all …]
|
| /linux/fs/squashfs/ |
| H A D | inode.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Squashfs - a compressed read only filesystem for Linux 14 * Inodes in Squashfs are identified by a 48-bit inode which encodes the 16 * offset into that block where the inode is placed (<block, offset>). 51 inode->i_ino = le32_to_cpu(sqsh_ino->inode_number); in squashfs_new_inode() 52 if (inode->i_ino == 0) in squashfs_new_inode() 53 return -EINVAL; in squashfs_new_inode() 55 err = squashfs_get_id(sb, le16_to_cpu(sqsh_ino->uid), &i_uid); in squashfs_new_inode() 59 err = squashfs_get_id(sb, le16_to_cpu(sqsh_ino->guid), &i_gid); in squashfs_new_inode() 65 inode_set_mtime(inode, le32_to_cpu(sqsh_ino->mtime), 0); in squashfs_new_inode() [all …]
|
| /linux/drivers/usb/host/ |
| H A D | xhci-ext-caps.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 /* HC not running - set to 1 when run/stop bit is cleared. */ 16 /* HCCPARAMS offset from PCI base address */ 21 /* Command and Status registers offset from the Operational Registers address */ 28 /* bits 7:0 - how long is the Capabilities register */ 35 /* Extended capability IDs - ID 0 reserved */ 41 /* IDs 6-9 reserved */ 46 /* USB Legacy Support Capability - section 7.1.1 */ 50 /* USB Legacy Support Capability - section 7.1.1 */ 51 /* Add this offset, plus the value of xECP in HCCPARAMS to the base address */ [all …]
|
| /linux/drivers/net/usb/ |
| H A D | asix_common.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (C) 2003-2006 David Hollis <dhollis@davehollis.com> 7 * Copyright (c) 2002-2003 TiVo Inc. 31 ret = ret < 0 ? ret : -ENODATA; in asix_read_cmd() 33 netdev_warn(dev->net, "Failed to read reg index 0x%04x: %d\n", in asix_read_cmd() 57 netdev_warn(dev->net, "Failed to write reg index 0x%04x: %d\n", in asix_write_cmd() 78 netdev_err(dev->net, "Failed to enable software MII access\n"); in asix_set_sw_mii() 88 netdev_err(dev->net, "Failed to enable hardware MII access\n"); in asix_set_hw_mii() 99 if (ret == -ENODEV || ret == -ETIMEDOUT) in asix_check_host_enable() 104 if (ret == -ENODEV) in asix_check_host_enable() [all …]
|
| /linux/tools/perf/util/annotate-arch/ |
| H A D | annotate-x86.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include "../annotate-data.h" 17 * This table is searched twice - one for exact match and another for 142 if (arch->family >= 0x15 && (strstarts(ins1, "test") || in amd__ins_is_fused() 148 if (arch->family >= 0x19 && (strstarts(ins1, "add") || in amd__ins_is_fused() 161 if (arch->family != 6 || arch->model < 0x1e || strstr(ins2, "jmp")) in intel__ins_is_fused() 164 if (arch->mode in intel__ins_is_fused() 258 int offset; update_insn_state_x86() local 373 int offset = src->offset - fboff; update_insn_state_x86() local 477 int offset; update_insn_state_x86() local 559 int offset = src->offset - fboff; update_insn_state_x86() local 624 int offset; update_insn_state_x86() local 649 int offset; update_insn_state_x86() local 706 int offset; update_insn_state_x86() local 736 int offset = dst->offset - fboff; update_insn_state_x86() local [all...] |
| /linux/drivers/net/ipa/ |
| H A D | ipa_cmd.c | 1 // SPDX-License-Identifier: GPL-2.0 3 /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved. 4 * Copyright (C) 2019-2024 Linaro Ltd. 10 #include <linux/dma-direction.h> 31 * has a well-defined format, having a payload of a known length. This 80 __le16 offset; member 151 * might not be used, non-hashed and hashed tables have the same in ipa_cmd_validate_build() 155 /* Hashed and non-hashed fields are assumed to be the same size */ in ipa_cmd_validate_build() 162 * and this was reflected in some 5-bit fields that held in ipa_cmd_validate_build() 168 BUILD_BUG_ON(IPA_ENDPOINT_MAX - 1 > U8_MAX); in ipa_cmd_validate_build() [all …]
|
| /linux/fs/smb/client/ |
| H A D | trace.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 * Please use this 3-part article as a reference for writing new tracepoints: 157 EM(cifs_trace_rw_credits_call_readv_adjust, "rd-call-adj") \ 158 EM(cifs_trace_rw_credits_call_writev_adjust, "wr-call-adj") \ 159 EM(cifs_trace_rw_credits_free_subreq, "free-subreq") \ 160 EM(cifs_trace_rw_credits_issue_read_adjust, "rd-issu-adj") \ 161 EM(cifs_trace_rw_credits_issue_write_adjust, "wr-issu-adj") \ 162 EM(cifs_trace_rw_credits_no_adjust_up, "no-adj-up ") \ 163 EM(cifs_trace_rw_credits_old_session, "old-session") \ 164 EM(cifs_trace_rw_credits_read_response_add, "rd-resp-add") \ [all …]
|
| /linux/drivers/target/iscsi/ |
| H A D | iscsi_target_erl0.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * (c) Copyright 2007-2013 Datera, Inc. 8 * Author: Nicholas A. Bellinger <nab@linux-iscsi.org> 28 * checks against to determine a PDU's Offset+Length is within the current 34 struct iscsit_conn *conn = cmd->conn; in iscsit_set_dataout_sequence_values() 39 if (cmd->unsolicited_data) { in iscsit_set_dataout_sequence_values() 40 cmd->seq_start_offset = cmd->write_data_done; in iscsit_set_dataout_sequence_values() 41 cmd->seq_end_offset = min(cmd->se_cmd.data_length, in iscsit_set_dataout_sequence_values() 42 conn->sess->sess_ops->FirstBurstLength); in iscsit_set_dataout_sequence_values() 46 if (!conn->sess->sess_ops->DataSequenceInOrder) in iscsit_set_dataout_sequence_values() [all …]
|
| /linux/drivers/pci/hotplug/ |
| H A D | ibmphp_ebda.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 * Copyright (C) 2001,2003 Greg Kroah-Hartman (greg@kroah.com) 8 * Copyright (C) 2001-2003 IBM Corp. 26 * POST builds data blocks(in this data block definition, a char-1 27 * byte, short(or word)-2 byte, long(dword)-4 byte) in the Extended 28 * BIOS Data Area which describe the configuration of the hot-plug 29 * controllers and resources used by the PCI Hot-Plug devices. 76 controller->slots = slots; in alloc_ebda_hpc() 81 controller->buses = buses; in alloc_ebda_hpc() 85 kfree(controller->slots); in alloc_ebda_hpc() [all …]
|
| /linux/include/trace/events/ |
| H A D | intel-sst.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 #define TRACE_SYSTEM intel-sst 30 __entry->val = val; 33 TP_printk("0x%8.8x", (unsigned int)__entry->val) 54 TP_PROTO(unsigned int offset, unsigned int val), 56 TP_ARGS(offset, val), 59 __field( unsigned int, offset ) 64 __entry->offset = offset; 65 __entry->val = val; 68 TP_printk(" 0x%4.4x = 0x%8.8x", [all …]
|
| /linux/drivers/crypto/cavium/nitrox/ |
| H A D | nitrox_isr.c | 1 // SPDX-License-Identifier: GPL-2.0 15 * - NPS packet ring, AQMQ ring and ZQMQ ring 24 * nps_pkt_slc_isr - IRQ handler for NPS solicit port 32 struct nitrox_cmdq *cmdq = qvec->cmdq; in nps_pkt_slc_isr() 34 slc_cnts.value = readq(cmdq->compl_cnt_csr_addr); in nps_pkt_slc_isr() 37 tasklet_hi_schedule(&qvec->resp_tasklet); in nps_pkt_slc_isr() 50 dev_err_ratelimited(DEV(ndev), "NSP_CORE_INT 0x%016llx\n", value); in clear_nps_core_err_intr() 56 unsigned long value, offset; in clear_nps_pkt_err_intr() local 60 dev_err_ratelimited(DEV(ndev), "NPS_PKT_INT 0x%016llx\n", in clear_nps_pkt_err_intr() 64 offset = NPS_PKT_SLC_ERR_TYPE; in clear_nps_pkt_err_intr() [all …]
|
| /linux/drivers/net/wireless/ath/ath6kl/ |
| H A D | bmi.c | 2 * Copyright (c) 2004-2011 Atheros Communications Inc. 3 * Copyright (c) 2011-2012 Qualcomm Atheros, Inc. 19 #include "hif-ops.h" 28 if (ar->bmi.done_sent) { in ath6kl_bmi_done() 33 ar->bmi.done_sent = true; in ath6kl_bmi_done() 50 if (ar->bmi.done_sent) { in ath6kl_bmi_get_target_info() 52 return -EACCES; in ath6kl_bmi_get_target_info() 61 if (ar->hif_type == ATH6KL_HIF_TYPE_USB) { in ath6kl_bmi_get_target_info() 65 ret = ath6kl_hif_bmi_read(ar, (u8 *)&targ_info->version, in ath6kl_bmi_get_target_info() 66 sizeof(targ_info->version)); in ath6kl_bmi_get_target_info() [all …]
|
| /linux/drivers/mcb/ |
| H A D | mcb-internal.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 51 * struct chameleon_gdd - Chameleon General Device Descriptor 58 * @bar: BAR offset that must be added to module offset 62 * @offset: beginning of the address window of desired module 68 __le32 offset; member 74 #define GDD_IRQ(x) ((x) & 0x1f) argument 75 #define GDD_REV(x) (((x) >> 5) & 0x3f) argument 76 #define GDD_VAR(x) (((x) >> 11) & 0x3f) argument 77 #define GDD_DEV(x) (((x) >> 18) & 0x3ff) argument 78 #define GDD_DTY(x) (((x) >> 28) & 0xf) argument [all …]
|
| /linux/drivers/xen/xen-pciback/ |
| H A D | conf_space.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * PCI Backend - Functions for creating a virtual configuration space for 29 (struct pci_dev *dev, int offset, type value, void *data) \ 31 return pci_##op##_config_##size(dev, offset, value); \ 44 int offset, u32 *value) in DEFINE_PCI_CONFIG() 47 const struct config_field *field = entry->field; in DEFINE_PCI_CONFIG() 51 switch (field->size) { in DEFINE_PCI_CONFIG() 53 if (field->u.b.read) in DEFINE_PCI_CONFIG() 54 ret = field->u.b.read(dev, offset, (u8 *) value, in DEFINE_PCI_CONFIG() 55 entry->data); in DEFINE_PCI_CONFIG() [all …]
|
| /linux/drivers/dma/ |
| H A D | idma64.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Driver for the Intel integrated DMA 64-bit 16 #include <linux/io-64-nonatomic-lo-hi.h> 18 #include "virt-dma.h" 40 #define IDMA64C_CTLL_DST_WIDTH(x) ((x) << 1) /* bytes per element */ argument 41 #define IDMA64C_CTLL_SRC_WIDTH(x) ((x) << 4) argument 46 #define IDMA64C_CTLL_DST_MSIZE(x) ((x) << 11) /* burst, #elements */ argument 47 #define IDMA64C_CTLL_SRC_MSIZE(x) ((x) << 14) argument 48 #define IDMA64C_CTLL_FC_M2P (1 << 20) /* mem-to-periph */ 49 #define IDMA64C_CTLL_FC_P2M (2 << 20) /* periph-to-mem */ [all …]
|
| /linux/drivers/cxl/core/ |
| H A D | regs.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 #include <linux/io-64-nonatomic-lo-hi.h> 18 * Vendor-specific) and / or descriptors provided by platform firmware. 29 * cxl_probe_component_regs() - Detect CXL Component register blocks 48 * CXL.cache and CXL.mem registers are at offset 0x1000 as defined in in cxl_probe_component_regs() 67 u16 cap_id, offset; in cxl_probe_component_regs() local 73 offset = FIELD_GET(CXL_CM_CAP_PTR_MASK, hdr); in cxl_probe_component_regs() 74 register_block = base + offset; in cxl_probe_component_regs() 82 dev_dbg(dev, "found HDM decoder capability (0x%x)\n", in cxl_probe_component_regs() 83 offset); in cxl_probe_component_regs() [all …]
|
| /linux/drivers/gpio/ |
| H A D | gpio-tegra.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * arch/arm/mach-tegra/gpio.c 6 * Copyright (c) 2011-2016, NVIDIA CORPORATION. All rights reserved. 28 #define GPIO_BANK(x) ((x) >> 5) argument 29 #define GPIO_PORT(x) (((x) >> 3) & 0x3) argument 30 #define GPIO_BIT(x) ((x) & 0x7) argument 32 #define GPIO_REG(tgi, x) (GPIO_BANK(x) * tgi->soc->bank_stride + \ argument 33 GPIO_PORT(x) * 4) 35 #define GPIO_CNF(t, x) (GPIO_REG(t, x) + 0x00) argument 36 #define GPIO_OE(t, x) (GPIO_REG(t, x) + 0x10) argument [all …]
|