Home
last modified time | relevance | path

Searched refs:shadow (Results 1 – 25 of 145) sorted by relevance

123456

/Linux-v5.10/kernel/livepatch/
Dshadow.c70 static inline bool klp_shadow_match(struct klp_shadow *shadow, void *obj, in klp_shadow_match() argument
73 return shadow->obj == obj && shadow->id == id; in klp_shadow_match()
85 struct klp_shadow *shadow; in klp_shadow_get() local
89 hash_for_each_possible_rcu(klp_shadow_hash, shadow, node, in klp_shadow_get()
92 if (klp_shadow_match(shadow, obj, id)) { in klp_shadow_get()
94 return shadow->data; in klp_shadow_get()
234 static void klp_shadow_free_struct(struct klp_shadow *shadow, in klp_shadow_free_struct() argument
237 hash_del_rcu(&shadow->node); in klp_shadow_free_struct()
239 dtor(shadow->obj, shadow->data); in klp_shadow_free_struct()
240 kfree_rcu(shadow, rcu_head); in klp_shadow_free_struct()
[all …]
/Linux-v5.10/drivers/scsi/
Dxen-scsifront.c118 struct vscsifrnt_shadow *shadow[VSCSIIF_MAX_REQS]; member
160 info->shadow[id] = NULL; in _scsifront_put_rqid()
179 struct vscsifrnt_shadow *shadow) in scsifront_do_request() argument
183 struct scsi_cmnd *sc = shadow->sc; in scsifront_do_request()
194 info->shadow[id] = shadow; in scsifront_do_request()
195 shadow->rqid = id; in scsifront_do_request()
201 ring_req->act = shadow->act; in scsifront_do_request()
202 ring_req->ref_rqid = shadow->ref_rqid; in scsifront_do_request()
203 ring_req->nr_segments = shadow->nr_segments; in scsifront_do_request()
217 for (i = 0; i < (shadow->nr_segments & ~VSCSIIF_SG_GRANT); i++) in scsifront_do_request()
[all …]
/Linux-v5.10/Documentation/livepatch/
Dshadow-vars.rst6 additional "shadow" data with existing data structures. Shadow data is
8 unmodified. The shadow variable API described in this document is used
9 to allocate/add and remove/free shadow variables to/from their parents.
13 shadow data. The numeric identifier is a simple enumeration that may be
14 used to describe shadow variable version, class or type, etc. More
16 numeric id subsequently filters hashtable queries. Multiple shadow
24 (See the full API usage docbook notes in livepatch/shadow.c.)
26 A hashtable references all shadow variables. These references are
30 meta-data and shadow-data:
37 - data[] - storage for shadow data
[all …]
/Linux-v5.10/include/linux/
Dscx200_gpio.h13 #define __SCx200_GPIO_SHADOW unsigned long *shadow = scx200_gpio_shadow+bank
16 #define __SCx200_GPIO_OUT __asm__ __volatile__("outsl":"=mS" (shadow):"d" (ioaddr), "0" (shadow))
46 set_bit(index, shadow); /* __set_bit()? */ in scx200_gpio_set_high()
57 clear_bit(index, shadow); /* __clear_bit()? */ in scx200_gpio_set_low()
69 set_bit(index, shadow); in scx200_gpio_set()
71 clear_bit(index, shadow); in scx200_gpio_set()
81 change_bit(index, shadow); in scx200_gpio_change()
/Linux-v5.10/fs/nilfs2/
Dmdt.c505 struct nilfs_shadow_map *shadow) in nilfs_mdt_setup_shadow_map() argument
509 INIT_LIST_HEAD(&shadow->frozen_buffers); in nilfs_mdt_setup_shadow_map()
510 address_space_init_once(&shadow->frozen_data); in nilfs_mdt_setup_shadow_map()
511 nilfs_mapping_init(&shadow->frozen_data, inode); in nilfs_mdt_setup_shadow_map()
512 address_space_init_once(&shadow->frozen_btnodes); in nilfs_mdt_setup_shadow_map()
513 nilfs_mapping_init(&shadow->frozen_btnodes, inode); in nilfs_mdt_setup_shadow_map()
514 mi->mi_shadow = shadow; in nilfs_mdt_setup_shadow_map()
526 struct nilfs_shadow_map *shadow = mi->mi_shadow; in nilfs_mdt_save_to_shadow_map() local
529 ret = nilfs_copy_dirty_pages(&shadow->frozen_data, inode->i_mapping); in nilfs_mdt_save_to_shadow_map()
533 ret = nilfs_copy_dirty_pages(&shadow->frozen_btnodes, in nilfs_mdt_save_to_shadow_map()
[all …]
/Linux-v5.10/drivers/gpio/
Dgpio-janz-ttl.c60 u8 *shadow; in ttl_get_value() local
64 shadow = &mod->porta_shadow; in ttl_get_value()
66 shadow = &mod->portb_shadow; in ttl_get_value()
69 shadow = &mod->portc_shadow; in ttl_get_value()
74 ret = *shadow & BIT(offset); in ttl_get_value()
83 u8 *shadow; in ttl_set_value() local
87 shadow = &mod->porta_shadow; in ttl_set_value()
90 shadow = &mod->portb_shadow; in ttl_set_value()
94 shadow = &mod->portc_shadow; in ttl_set_value()
100 *shadow |= BIT(offset); in ttl_set_value()
[all …]
Dgpio-mm-lantiq.c31 u16 shadow; /* shadow the latches state */ member
47 __raw_writew(chip->shadow, chip->mmchip.regs); in ltq_mm_apply()
65 chip->shadow |= (1 << offset); in ltq_mm_set()
67 chip->shadow &= ~(1 << offset); in ltq_mm_set()
104 u32 shadow; in ltq_mm_probe() local
118 if (!of_property_read_u32(pdev->dev.of_node, "lantiq,shadow", &shadow)) in ltq_mm_probe()
119 chip->shadow = shadow; in ltq_mm_probe()
Dgpio-stp-xway.c83 u32 shadow; /* shadow the shift registers state */ member
120 chip->shadow |= BIT(gpio); in xway_stp_set()
122 chip->shadow &= ~BIT(gpio); in xway_stp_set()
123 xway_stp_w32(chip->virt, chip->shadow, XWAY_STP_CPU0); in xway_stp_set()
234 u32 shadow, groups, dsl, phy; in xway_stp_probe() local
257 if (!of_property_read_u32(pdev->dev.of_node, "lantiq,shadow", &shadow)) in xway_stp_probe()
258 chip->shadow = shadow; in xway_stp_probe()
/Linux-v5.10/drivers/block/
Dxen-blkfront.c183 struct blk_shadow shadow[]; member
281 rinfo->shadow_free = rinfo->shadow[free].req.u.rw.id; in get_id_from_freelist()
282 rinfo->shadow[free].req.u.rw.id = 0x0fffffee; /* debug */ in get_id_from_freelist()
289 if (rinfo->shadow[id].req.u.rw.id != id) in add_id_to_freelist()
291 if (rinfo->shadow[id].request == NULL) in add_id_to_freelist()
293 rinfo->shadow[id].req.u.rw.id = rinfo->shadow_free; in add_id_to_freelist()
294 rinfo->shadow[id].request = NULL; in add_id_to_freelist()
545 rinfo->shadow[id].request = req; in blkif_ring_get_request()
546 rinfo->shadow[id].status = REQ_WAITING; in blkif_ring_get_request()
547 rinfo->shadow[id].associated_id = NO_ASSOCIATED_ID; in blkif_ring_get_request()
[all …]
/Linux-v5.10/Documentation/dev-tools/
Dkasan.rst141 The state of each 8 aligned bytes of memory is encoded in one shadow byte.
143 We use the following encoding for each shadow byte: 0 means that all 8 bytes
150 In the report above the arrows point to the shadow byte 03, which means that
164 of kmemcheck: use shadow memory to record whether each byte of memory is safe
165 to access, and use compile-time instrumentation to insert checks of shadow
168 Generic KASAN dedicates 1/8th of kernel memory to its shadow memory (e.g. 16TB
170 translate a memory address to its corresponding shadow address.
172 Here is the function which translates an address to its corresponding shadow
186 access is valid or not by checking corresponding shadow memory.
189 function calls GCC directly inserts the code to check the shadow memory.
[all …]
/Linux-v5.10/drivers/ps3/
Dps3-lpm.c128 struct ps3_lpm_shadow_regs shadow; member
394 return lpm_priv->shadow.pm_control; in ps3_read_pm()
398 return lpm_priv->shadow.pm_start_stop; in ps3_read_pm()
409 return lpm_priv->shadow.group_control; in ps3_read_pm()
411 return lpm_priv->shadow.debug_bus_control; in ps3_read_pm()
446 if (val != lpm_priv->shadow.group_control) in ps3_write_pm()
451 lpm_priv->shadow.group_control = val; in ps3_write_pm()
454 if (val != lpm_priv->shadow.debug_bus_control) in ps3_write_pm()
459 lpm_priv->shadow.debug_bus_control = val; in ps3_write_pm()
465 if (val != lpm_priv->shadow.pm_control) in ps3_write_pm()
[all …]
/Linux-v5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_vm_sdma.c44 if (table->shadow) in amdgpu_vm_sdma_map_table()
45 r = amdgpu_ttm_alloc_gart(&table->shadow->tbo); in amdgpu_vm_sdma_map_table()
241 if (bo->shadow) in amdgpu_vm_sdma_update()
242 amdgpu_vm_sdma_set_ptes(p, bo->shadow, pe, addr, in amdgpu_vm_sdma_update()
251 (bo->shadow ? 2 : 1); in amdgpu_vm_sdma_update()
266 if (bo->shadow) in amdgpu_vm_sdma_update()
267 amdgpu_vm_sdma_copy_ptes(p, bo->shadow, pe, nptes); in amdgpu_vm_sdma_update()
/Linux-v5.10/samples/livepatch/
DMakefile3 obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch-shadow-mod.o
4 obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch-shadow-fix1.o
5 obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch-shadow-fix2.o
/Linux-v5.10/mm/kasan/
Dtags.c82 u8 *shadow_first, *shadow_last, *shadow; in check_memory_region() local
120 for (shadow = shadow_first; shadow <= shadow_last; shadow++) { in check_memory_region()
121 if (*shadow != tag) { in check_memory_region()
Dreport.c413 static int shadow_pointer_offset(const void *row, const void *shadow) in shadow_pointer_offset() argument
418 return 3 + (BITS_PER_LONG/8)*2 + (shadow - row)*2 + in shadow_pointer_offset()
419 (shadow - row) / SHADOW_BYTES_PER_BLOCK + 1; in shadow_pointer_offset()
425 const void *shadow = kasan_mem_to_shadow(addr); in print_shadow_for_address() local
428 shadow_row = (void *)round_down((unsigned long)shadow, in print_shadow_for_address()
451 if (row_is_guilty(shadow_row, shadow)) in print_shadow_for_address()
453 shadow_pointer_offset(shadow_row, shadow), in print_shadow_for_address()
Dtags_report.c90 u8 *shadow = (u8 *)kasan_mem_to_shadow(addr); in print_tags() local
92 pr_err("Pointer tag: [%02x], memory tag: [%02x]\n", addr_tag, *shadow); in print_tags()
/Linux-v5.10/arch/powerpc/platforms/ps3/
Dspu.c112 struct spe_shadow __iomem *shadow; member
124 unsigned long problem, unsigned long ls, unsigned long shadow, in _dump_areas() argument
131 pr_debug("%s:%d: shadow: %lxh\n", func, line, shadow); in _dump_areas()
180 iounmap(spu_pdata(spu)->shadow); in spu_unmap()
195 spu_pdata(spu)->shadow = ioremap_prot(spu_pdata(spu)->shadow_addr, in setup_areas()
197 if (!spu_pdata(spu)->shadow) { in setup_areas()
231 (unsigned long)spu_pdata(spu)->shadow); in setup_areas()
368 while (in_be64(&spu_pdata(spu)->shadow->spe_execution_status) in ps3_create_spu()
514 return in_be64(&spu_pdata(spu)->shadow->mfc_dar_RW); in mfc_dar_get()
524 return in_be64(&spu_pdata(spu)->shadow->mfc_dsisr_RW); in mfc_dsisr_get()
/Linux-v5.10/Documentation/virt/kvm/
Dmmu.rst4 The x86 kvm shadow mmu
55 spte shadow pte (referring to pfns)
87 direct mode; otherwise it operates in shadow mode (see below).
121 The principal data structure is the shadow page, 'struct kvm_mmu_page'. A
122 shadow page contains 512 sptes, which can be either leaf or nonleaf sptes. A
123 shadow page may contain a mix of leaf and nonleaf sptes.
126 is not related to a translation directly. It points to other shadow pages.
152 The level in the shadow paging hierarchy that this shadow page belongs to.
166 so multiple shadow pages are needed to shadow one guest page.
167 For first-level shadow pages, role.quadrant can be 0 or 1 and denotes the
[all …]
/Linux-v5.10/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dshadow.c30 struct shadow { struct
39 shadow_fetch(struct nvkm_bios *bios, struct shadow *mthd, u32 upto) in shadow_fetch() argument
52 shadow_image(struct nvkm_bios *bios, int idx, u32 offset, struct shadow *mthd) in shadow_image()
110 shadow_method(struct nvkm_bios *bios, struct shadow *mthd, const char *name) in shadow_method()
171 struct shadow mthds[] = { in nvbios_shadow()
/Linux-v5.10/tools/perf/util/scripting-engines/
DBuild4 …) -Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter -Wno-shadow -Wno-nested-extern…
6 …(PYTHON_EMBED_CCOPTS) -Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter -Wno-shadow
/Linux-v5.10/drivers/net/phy/
Dbcm-phy-lib.c199 int bcm_phy_read_shadow(struct phy_device *phydev, u16 shadow) in bcm_phy_read_shadow() argument
201 phy_write(phydev, MII_BCM54XX_SHD, MII_BCM54XX_SHD_VAL(shadow)); in bcm_phy_read_shadow()
206 int bcm_phy_write_shadow(struct phy_device *phydev, u16 shadow, in bcm_phy_write_shadow() argument
211 MII_BCM54XX_SHD_VAL(shadow) | in bcm_phy_write_shadow()
482 static u64 bcm_phy_get_stat(struct phy_device *phydev, u64 *shadow, in bcm_phy_get_stat() argument
495 shadow[i] += val; in bcm_phy_get_stat()
496 ret = shadow[i]; in bcm_phy_get_stat()
502 void bcm_phy_get_stats(struct phy_device *phydev, u64 *shadow, in bcm_phy_get_stats() argument
508 data[i] = bcm_phy_get_stat(phydev, shadow, i); in bcm_phy_get_stats()
Dbcm-phy-lib.h51 int bcm_phy_write_shadow(struct phy_device *phydev, u16 shadow,
53 int bcm_phy_read_shadow(struct phy_device *phydev, u16 shadow);
77 void bcm_phy_get_stats(struct phy_device *phydev, u64 *shadow,
/Linux-v5.10/drivers/media/i2c/
Dtvaudio.c126 audiocmd shadow; member
163 chip->shadow.bytes[1] = val; in chip_write()
173 if (subaddr + 1 >= ARRAY_SIZE(chip->shadow.bytes)) { in chip_write()
182 chip->shadow.bytes[subaddr+1] = val; in chip_write()
204 val = (chip->shadow.bytes[1] & ~mask) | (val & mask); in chip_write_masked()
206 if (subaddr + 1 >= ARRAY_SIZE(chip->shadow.bytes)) { in chip_write_masked()
213 val = (chip->shadow.bytes[subaddr+1] & ~mask) | (val & mask); in chip_write_masked()
281 if (cmd->count + cmd->bytes[0] - 1 >= ARRAY_SIZE(chip->shadow.bytes)) { in chip_cmd()
296 chip->shadow.bytes[i+cmd->bytes[0]] = cmd->bytes[i]; in chip_cmd()
441 int t = chip->shadow.bytes[TDA9840_SW + 1] & ~0x7e; in tda9840_setaudmode()
[all …]
/Linux-v5.10/drivers/media/dvb-frontends/
Ditd1000.c77 itd1000_write_regs(state, (reg - 1) & 0xff, &state->shadow[(reg - 1) & 0xff], 1); in itd1000_read_reg()
90 state->shadow[r] = tmp; in itd1000_write_reg()
382 memset(state->shadow, 0xff, sizeof(state->shadow)); in itd1000_attach()
384 state->shadow[i] = itd1000_read_reg(state, i); in itd1000_attach()
/Linux-v5.10/drivers/media/pci/cx88/
Dcx88.h346 u32 shadow[SHADOW_MAX]; member
597 #define cx_sread(sreg) (core->shadow[sreg])
599 (core->shadow[sreg] = value, \
600 writel(core->shadow[sreg], core->lmmio + ((reg) >> 2)))
602 (core->shadow[sreg] = (core->shadow[sreg] & ~(mask)) | \
604 writel(core->shadow[sreg], \

123456