Home
last modified time | relevance | path

Searched +full:offset +full:- +full:x (Results 1 – 25 of 1065) sorted by relevance

12345678910>>...43

/kernel/linux/linux-4.19/drivers/staging/rtlwifi/halmac/
Dhalmac_bit2.h1 /* SPDX-License-Identifier: GPL-2.0 */
17 /*-------------------------Modification Log-----------------------------------
19 *-------------------------Modification Log-----------------------------------
22 /*--------------------------Include File--------------------------------------*/
23 /*--------------------------Include File--------------------------------------*/
35 * #define BIT_MAX_TXDMA(x) \
36 * (((x) & BIT_MASK_MAX_TXDMA) << BIT_SHIFT_MAX_TXDMA)
37 * #define BIT_GET_MAX_TXDMA(x) \
38 * (((x) >> BIT_SHIFT_MAX_TXDMA) & BIT_MASK_MAX_TXDMA)
47 #define BIT_WATCH_DOG_RECORD_V1(x) \ argument
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dinit.c42 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-4.19/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dinit.c42 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-5.10/fs/jffs2/
Dread.c2 * 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 …]
Derase.c2 * 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 …]
Dsummary.c2 * 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-4.19/fs/jffs2/
Dread.c2 * 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 …]
Derase.c2 * 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 …]
Dsummary.c2 * 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/
Dlart.c1 // 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-4.19/drivers/mtd/devices/
Dlart.c3 * MTD driver for the 28F160F3 Flash Memory (non-CFI) on LART.
16 * - Order Number: 290644-005
17 * - January 2000
20 * - http://www.linux-mtd.infradead.org/
73 #define BUSWIDTH 4 /* don't change this - a lot of the code _will_ break if you change this */
74 #define FLASH_OFFSET 0xe8000000 /* see linux/arch/arm/mach-sa1100/lart.c */
120 * -------------------
139 /* Mangle data (x) */
140 #define DATA_TO_FLASH(x) \ argument
142 (((x) & 0x08009000) >> 11) + \
[all …]
/kernel/linux/linux-5.10/fs/squashfs/
Dinode.c1 // 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 err = squashfs_get_id(sb, le16_to_cpu(sqsh_ino->uid), &i_uid); in squashfs_new_inode()
55 err = squashfs_get_id(sb, le16_to_cpu(sqsh_ino->guid), &i_gid); in squashfs_new_inode()
61 inode->i_ino = le32_to_cpu(sqsh_ino->inode_number); in squashfs_new_inode()
62 inode->i_mtime.tv_sec = le32_to_cpu(sqsh_ino->mtime); in squashfs_new_inode()
63 inode->i_atime.tv_sec = inode->i_mtime.tv_sec; in squashfs_new_inode()
64 inode->i_ctime.tv_sec = inode->i_mtime.tv_sec; in squashfs_new_inode()
[all …]
/kernel/linux/linux-5.10/drivers/gpio/
Dgpio-tegra.c1 // 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/
Dpfunc_core.c1 // 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-4.19/arch/powerpc/platforms/powermac/
Dpfunc_core.c83 while(bytes--) {
84 printk("%02x ", *((u8 *)blob));
98 if ((cmd->cmdend - cmd->cmdptr) < 4) { in pmf_next32()
99 cmd->error = 1; in pmf_next32()
102 value = *((u32 *)cmd->cmdptr); in pmf_next32()
103 cmd->cmdptr += 4; in pmf_next32()
110 if ((cmd->cmdend - cmd->cmdptr) < count) { in pmf_next_blob()
111 cmd->error = 1; in pmf_next_blob()
114 value = cmd->cmdptr; in pmf_next_blob()
115 cmd->cmdptr += count; in pmf_next_blob()
[all …]
/kernel/linux/linux-5.10/drivers/net/ipa/
Dipa_cmd.c1 // 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-4.19/fs/nfsd/
Dtrace.h1 /* SPDX-License-Identifier: GPL-2.0 */
23 __entry->xid = be32_to_cpu(rqst->rq_xid);
24 __entry->args_opcnt = args_opcnt;
26 TP_printk("xid=0x%08x opcnt=%u",
27 __entry->xid, __entry->args_opcnt)
43 __entry->args_opcnt = args_opcnt;
44 __entry->resp_opcnt = resp_opcnt;
45 __entry->status = be32_to_cpu(status);
49 __entry->resp_opcnt, __entry->args_opcnt,
50 __get_str(name), __entry->status)
[all …]
/kernel/linux/linux-5.10/drivers/ssb/
Dsdio.c3 * 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-4.19/drivers/ssb/
Dsdio.c3 * 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-4.19/fs/squashfs/
Dinode.c2 * Squashfs - a compressed read only filesystem for Linux
19 * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27 * Inodes in Squashfs are identified by a 48-bit inode which encodes the
29 * offset into that block where the inode is placed (<block, offset>).
64 err = squashfs_get_id(sb, le16_to_cpu(sqsh_ino->uid), &i_uid); in squashfs_new_inode()
68 err = squashfs_get_id(sb, le16_to_cpu(sqsh_ino->guid), &i_gid); in squashfs_new_inode()
74 inode->i_ino = le32_to_cpu(sqsh_ino->inode_number); in squashfs_new_inode()
75 inode->i_mtime.tv_sec = le32_to_cpu(sqsh_ino->mtime); in squashfs_new_inode()
76 inode->i_atime.tv_sec = inode->i_mtime.tv_sec; in squashfs_new_inode()
77 inode->i_ctime.tv_sec = inode->i_mtime.tv_sec; in squashfs_new_inode()
[all …]
/kernel/linux/linux-4.19/drivers/crypto/cavium/nitrox/
Dnitrox_isr.c1 // SPDX-License-Identifier: GPL-2.0
14 * nps_pkt_slc_isr - IRQ handler for NPS solicit port
23 pkt_slc_cnts.value = readq(slc->completion_cnt_csr_addr); in nps_pkt_slc_isr()
26 tasklet_hi_schedule(&slc->resp_handler); in nps_pkt_slc_isr()
39 dev_err_ratelimited(DEV(ndev), "NSP_CORE_INT 0x%016llx\n", value); in clear_nps_core_err_intr()
45 unsigned long value, offset; in clear_nps_pkt_err_intr() local
49 dev_err_ratelimited(DEV(ndev), "NPS_PKT_INT 0x%016llx\n", in clear_nps_pkt_err_intr()
53 offset = NPS_PKT_SLC_ERR_TYPE; in clear_nps_pkt_err_intr()
54 value = nitrox_read_csr(ndev, offset); in clear_nps_pkt_err_intr()
55 nitrox_write_csr(ndev, offset, value); in clear_nps_pkt_err_intr()
[all …]
/kernel/linux/linux-5.10/net/ipv6/
Dmip6.c1 // 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/net/usb/
Dasix_common.c1 // 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/drivers/gpu/ipu-v3/
Dipu-cpmem.c1 // 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/
Ddebug_hw.c1 // 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 …]

12345678910>>...43