Home
last modified time | relevance | path

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

12345678910>>...45

/Linux-v5.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 …]
/Linux-v5.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 …]
Dscan.c2 * 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-v5.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 …]
/Linux-v5.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 …]
/Linux-v5.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 …]
Dgpio-palmas.c1 // SPDX-License-Identifier: GPL-2.0-only
27 static int palmas_gpio_get(struct gpio_chip *gc, unsigned offset) in palmas_gpio_get() argument
30 struct palmas *palmas = pg->palmas; in palmas_gpio_get()
34 int gpio16 = (offset/8); in palmas_gpio_get()
36 offset %= 8; in palmas_gpio_get()
41 dev_err(gc->parent, "Reg 0x%02x read failed, %d\n", reg, ret); in palmas_gpio_get()
45 if (val & BIT(offset)) in palmas_gpio_get()
52 dev_err(gc->parent, "Reg 0x%02x read failed, %d\n", reg, ret); in palmas_gpio_get()
55 return !!(val & BIT(offset)); in palmas_gpio_get()
58 static void palmas_gpio_set(struct gpio_chip *gc, unsigned offset, in palmas_gpio_set() argument
[all …]
/Linux-v5.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 …]
/Linux-v5.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 …]
/Linux-v5.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-2020 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 …]
/Linux-v5.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 …]
/Linux-v5.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 …]
/Linux-v5.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 …]
/Linux-v5.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 …]
/Linux-v5.10/drivers/video/fbdev/
Dpxa168fb.c2 * linux/drivers/video/pxa168fb.c -- Marvell PXA168 LCD Controller
7 * 2009-02-16 adapted from original version for PXA168/910
27 #include <linux/dma-mapping.h>
42 if (var->bits_per_pixel == 8) in determine_best_pix_fmt()
48 if (var->bits_per_pixel == 16 && var->red.length <= 5 && in determine_best_pix_fmt()
49 var->green.length <= 6 && var->blue.length <= 5) { in determine_best_pix_fmt()
50 if (var->transp.length == 0) { in determine_best_pix_fmt()
51 if (var->red.offset >= var->blue.offset) in determine_best_pix_fmt()
57 if (var->transp.length == 1 && var->green.length <= 5) { in determine_best_pix_fmt()
58 if (var->red.offset >= var->blue.offset) in determine_best_pix_fmt()
[all …]
/Linux-v5.10/sound/soc/sof/
Dloader.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
24 if (w->num_windows == 0 || w->num_windows > SOF_IPC_MAX_ELEMS) in get_ext_windows()
25 return -EINVAL; in get_ext_windows()
27 if (sdev->info_window) { in get_ext_windows()
28 if (memcmp(sdev->info_window, w, ext_hdr->hdr.size)) { in get_ext_windows()
29 …dev_err(sdev->dev, "error: mismatch between window descriptor from extended manifest and mailbox"); in get_ext_windows()
30 return -EINVAL; in get_ext_windows()
36 sdev->info_window = devm_kmemdup(sdev->dev, w, ext_hdr->hdr.size, in get_ext_windows()
38 if (!sdev->info_window) in get_ext_windows()
39 return -ENOMEM; in get_ext_windows()
[all …]
/Linux-v5.10/include/trace/events/
Dintel-sst.h1 /* 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-v5.10/drivers/crypto/cavium/nitrox/
Dnitrox_isr.c1 // SPDX-License-Identifier: GPL-2.0
14 * - NPS packet ring, AQMQ ring and ZQMQ ring
23 * nps_pkt_slc_isr - IRQ handler for NPS solicit port
31 struct nitrox_cmdq *cmdq = qvec->cmdq; in nps_pkt_slc_isr()
33 slc_cnts.value = readq(cmdq->compl_cnt_csr_addr); in nps_pkt_slc_isr()
36 tasklet_hi_schedule(&qvec->resp_tasklet); in nps_pkt_slc_isr()
49 dev_err_ratelimited(DEV(ndev), "NSP_CORE_INT 0x%016llx\n", value); in clear_nps_core_err_intr()
55 unsigned long value, offset; in clear_nps_pkt_err_intr() local
59 dev_err_ratelimited(DEV(ndev), "NPS_PKT_INT 0x%016llx\n", in clear_nps_pkt_err_intr()
63 offset = NPS_PKT_SLC_ERR_TYPE; in clear_nps_pkt_err_intr()
[all …]
/Linux-v5.10/drivers/target/iscsi/
Discsi_target_erl0.c1 // 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 iscsi_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-v5.10/drivers/mcb/
Dmcb-internal.h1 /* 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-v5.10/drivers/net/wireless/ath/ath6kl/
Dbmi.c2 * 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-v5.10/drivers/pci/hotplug/
Dibmphp_ebda.c1 // 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-v5.10/drivers/dma/
Didma64.h1 /* 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 …]

12345678910>>...45