| /kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/tegra/ |
| 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 …]
|
| /kernel/linux/linux-6.6/fs/jffs2/ |
| 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 …]
|
| 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 …]
|
| 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(sizeof(struct jffs2_summary), GFP_KERNEL); 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 …]
|
| /kernel/linux/linux-5.10/fs/jffs2/ |
| 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 …]
|
| 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 …]
|
| 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(sizeof(struct jffs2_summary), GFP_KERNEL); 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 …]
|
| /kernel/linux/linux-5.10/drivers/mtd/devices/ |
| D | lart.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * MTD driver for the 28F160F3 Flash Memory (non-CFI) on LART. 13 * - Order Number: 290644-005 14 * - January 2000 17 * - http://www.linux-mtd.infradead.org/ 70 #define BUSWIDTH 4 /* don't change this - a lot of the code _will_ break if you change this */ 71 #define FLASH_OFFSET 0xe8000000 /* see linux/arch/arm/mach-sa1100/lart.c */ 117 * ------------------- 136 /* Mangle data (x) */ 137 #define DATA_TO_FLASH(x) \ argument [all …]
|
| /kernel/linux/linux-6.6/arch/arm64/include/asm/ |
| D | fpsimdmacros.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 28 mrs x\tmpnr, fpsr 30 mrs x\tmpnr, fpcr 36 * Writes to fpcr may be self-synchronising, so avoid restoring 65 msr fpsr, x\tmpnr 67 fpsimd_restore_fpcr x\tmpnr, \state 70 /* Sanity-check macros to help avoid encoding garbage instructions */ 102 /* SVE instruction encodings for non-SVE-capable assemblers */ 105 /* STR (vector): STR Z\nz, [X\nxbase, #\offset, MUL VL] */ 106 .macro _sve_str_v nz, nxbase, offset=0 [all …]
|
| /kernel/linux/linux-5.10/fs/squashfs/ |
| 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->i_mtime.tv_sec = le32_to_cpu(sqsh_ino->mtime); in squashfs_new_inode() [all …]
|
| /kernel/linux/linux-6.6/fs/squashfs/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/gpio/ |
| 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. 26 #define GPIO_BANK(x) ((x) >> 5) argument 27 #define GPIO_PORT(x) (((x) >> 3) & 0x3) argument 28 #define GPIO_BIT(x) ((x) & 0x7) argument 30 #define GPIO_REG(tgi, x) (GPIO_BANK(x) * tgi->soc->bank_stride + \ argument 31 GPIO_PORT(x) * 4) 33 #define GPIO_CNF(t, x) (GPIO_REG(t, x) + 0x00) argument 34 #define GPIO_OE(t, x) (GPIO_REG(t, x) + 0x10) argument [all …]
|
| /kernel/linux/linux-5.10/arch/powerpc/platforms/powermac/ |
| 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 …]
|
| /kernel/linux/linux-6.6/arch/powerpc/platforms/powermac/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/ipa/ |
| 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-2021 Linaro Ltd. 11 #include <linux/dma-direction.h> 30 * command has a well-defined format, having a payload of a known length. 81 __le16 offset; member 152 * might not be used, non-hashed and hashed tables have the same in ipa_cmd_validate_build() 171 struct device *dev = &ipa->pdev->dev; in ipa_cmd_table_valid() 176 if (mem->offset > offset_max || in ipa_cmd_table_valid() 177 ipa->mem_offset > offset_max - mem->offset) { in ipa_cmd_table_valid() [all …]
|
| /kernel/linux/linux-5.10/drivers/ssb/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/ssb/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/usb/ |
| 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. 29 netdev_warn(dev->net, "Failed to read reg index 0x%04x: %d\n", in asix_read_cmd() 52 netdev_warn(dev->net, "Failed to write reg index 0x%04x: %d\n", in asix_write_cmd() 73 if (rx->ax_skb) { in reset_asix_rx_fixup_info() 75 kfree_skb(rx->ax_skb); in reset_asix_rx_fixup_info() 76 rx->ax_skb = NULL; in reset_asix_rx_fixup_info() 79 /* Assume the Data header 32-bit word is at the start of the current in reset_asix_rx_fixup_info() 82 rx->remaining = 0; in reset_asix_rx_fixup_info() [all …]
|
| /kernel/linux/linux-5.10/net/ipv6/ |
| D | mip6.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C)2003-2006 Helsinki University of Technology 4 * Copyright (C)2003-2006 USAGI/WIDE Project 28 return (n - len + 16) & 0x7; in calc_padlen() 39 data[1] = padlen - 2; in mip6_padn() 82 return -1; in mip6_mh_filter() 84 if (((mh->ip6mh_hdrlen + 1) << 3) > skb->len) in mip6_mh_filter() 85 return -1; in mip6_mh_filter() 87 if (mh->ip6mh_hdrlen < mip6_mh_len(mh->ip6mh_type)) { in mip6_mh_filter() 89 mh->ip6mh_hdrlen, in mip6_mh_filter() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/ipu-v3/ |
| D | ipu-cpmem.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright 2005-2012 Freescale Semiconductor, Inc. All Rights Reserved. 11 #include "ipu-prv.h" 95 struct ipu_cpmem *cpmem = ch->ipu->cpmem_priv; in ipu_get_cpmem() 97 return cpmem->base + ch->num; in ipu_get_cpmem() 108 u32 mask = (1 << size) - 1; in ipu_ch_param_write_field() 113 val = readl(&base->word[word].data[i]); in ipu_ch_param_write_field() 116 writel(val, &base->word[word].data[i]); in ipu_ch_param_write_field() 118 if ((bit + size - 1) / 32 > i) { in ipu_ch_param_write_field() 119 val = readl(&base->word[word].data[i + 1]); in ipu_ch_param_write_field() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/ipu-v3/ |
| D | ipu-cpmem.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright 2005-2012 Freescale Semiconductor, Inc. All Rights Reserved. 11 #include "ipu-prv.h" 95 struct ipu_cpmem *cpmem = ch->ipu->cpmem_priv; in ipu_get_cpmem() 97 return cpmem->base + ch->num; in ipu_get_cpmem() 108 u32 mask = (1 << size) - 1; in ipu_ch_param_write_field() 113 val = readl(&base->word[word].data[i]); in ipu_ch_param_write_field() 116 writel(val, &base->word[word].data[i]); in ipu_ch_param_write_field() 118 if ((bit + size - 1) / 32 > i) { in ipu_ch_param_write_field() 119 val = readl(&base->word[word].data[i + 1]); in ipu_ch_param_write_field() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/host1x/hw/ |
| D | debug_hw.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (C) 2011-2013 NVIDIA Corporation 52 host1x_debug_cont(o, "SETCL(class=%03x, offset=%03x, mask=%02x, [", in show_channel_command() 58 host1x_debug_cont(o, "SETCL(class=%03x)\n", val >> 6 & 0x3ff); in show_channel_command() 63 host1x_debug_cont(o, "INCR(offset=%03x, [", in show_channel_command() 72 host1x_debug_cont(o, "NONINCR(offset=%03x, [", in show_channel_command() 81 host1x_debug_cont(o, "MASK(offset=%03x, mask=%03x, [", in show_channel_command() 89 host1x_debug_cont(o, "IMM(offset=%03x, data=%03x)\n", in show_channel_command() 94 host1x_debug_cont(o, "RESTART(offset=%08x)\n", val << 4); in show_channel_command() 98 host1x_debug_cont(o, "GATHER(offset=%03x, insert=%d, type=%d, count=%04x, addr=[", in show_channel_command() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/usb/ |
| 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 …]
|