Home
last modified time | relevance | path

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

123456

/linux/kernel/livepatch/
A Dshadow.c73 return shadow->obj == obj && shadow->id == id; in klp_shadow_match()
85 struct klp_shadow *shadow; in klp_shadow_get() local
92 if (klp_shadow_match(shadow, obj, id)) { in klp_shadow_get()
94 return shadow->data; in klp_shadow_get()
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()
255 struct klp_shadow *shadow; in klp_shadow_free() local
265 klp_shadow_free_struct(shadow, dtor); in klp_shadow_free()
285 struct klp_shadow *shadow; in klp_shadow_free_all() local
[all …]
/linux/drivers/scsi/
A Dxen-scsifront.c194 info->shadow[id] = shadow; in scsifront_do_request()
257 shadow = info->shadow[id]; in scsifront_cdb_cmd_done()
258 sc = shadow->sc; in scsifront_cdb_cmd_done()
287 struct vscsifrnt_shadow *shadow = info->shadow[id]; in scsifront_sync_cmd_done() local
299 kfree(shadow); in scsifront_sync_cmd_done()
430 seg = shadow->sg ? : shadow->seg; in map_data_for_request()
594 shadow = kzalloc(sizeof(*shadow), GFP_NOIO); in scsifront_action_handler()
595 if (!shadow) in scsifront_action_handler()
600 shadow->sc = sc; in scsifront_action_handler()
630 kfree(shadow); in scsifront_action_handler()
[all …]
/linux/Documentation/livepatch/
A Dshadow-vars.rst24 (See the full API usage docbook notes in livepatch/shadow.c.)
30 meta-data and shadow-data:
37 - data[] - storage for shadow data
48 * klp_shadow_get() - retrieve a shadow variable data pointer
51 * klp_shadow_alloc() - allocate and add a new shadow variable
60 - allocate a new shadow variable
69 - return existing shadow variable
73 - allocate a new shadow variable
83 - free shadow variable
91 - free shadow variable
[all …]
/linux/fs/nilfs2/
A Dmdt.c506 struct nilfs_shadow_map *shadow) in nilfs_mdt_setup_shadow_map() argument
510 INIT_LIST_HEAD(&shadow->frozen_buffers); in nilfs_mdt_setup_shadow_map()
511 address_space_init_once(&shadow->frozen_data); in nilfs_mdt_setup_shadow_map()
512 nilfs_mapping_init(&shadow->frozen_data, inode); in nilfs_mdt_setup_shadow_map()
515 mi->mi_shadow = shadow; in nilfs_mdt_setup_shadow_map()
527 struct nilfs_shadow_map *shadow = mi->mi_shadow; in nilfs_mdt_save_to_shadow_map() local
564 &shadow->frozen_buffers); in nilfs_mdt_freeze_buffer()
616 struct nilfs_shadow_map *shadow = mi->mi_shadow; in nilfs_mdt_restore_from_shadow_map() local
641 struct nilfs_shadow_map *shadow = mi->mi_shadow; in nilfs_mdt_clear_shadow_map() local
644 nilfs_release_frozen_buffers(shadow); in nilfs_mdt_clear_shadow_map()
[all …]
/linux/drivers/gpio/
A 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()
100 *shadow |= BIT(offset); in ttl_set_value()
102 *shadow &= ~BIT(offset); in ttl_set_value()
[all …]
A 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()
A 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/include/linux/
A 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/kernel/
A Dcfi.c47 shadow_t shadow[1]; member
102 if (unlikely(s->shadow[index] == SHADOW_INVALID)) in shadow_to_check_fn()
106 return (s->base + s->shadow[index]) << PAGE_SHIFT; in shadow_to_check_fn()
115 memset(next->shadow, 0xFF, SHADOW_ARR_SIZE); in prepare_next_shadow()
122 memcpy(next->shadow, prev->shadow, SHADOW_ARR_SIZE); in prepare_next_shadow()
128 if (prev->shadow[i] == SHADOW_INVALID) in prepare_next_shadow()
136 shadow_to_check_fn(prev, prev->shadow[i])); in prepare_next_shadow()
140 next->shadow[index] = (shadow_t)check; in prepare_next_shadow()
166 WARN_ON_ONCE(s->shadow[index] != SHADOW_INVALID); in add_module_to_shadow()
167 s->shadow[index] = (shadow_t)check_index; in add_module_to_shadow()
[all …]
/linux/drivers/block/
A Dxen-blkfront.c186 struct blk_shadow shadow[]; member
297 rinfo->shadow[id].request = NULL; in add_id_to_freelist()
535 rinfo->shadow[id].request = req; in blkif_ring_get_request()
603 struct blk_shadow *shadow = &rinfo->shadow[setup->id]; in blkif_setup_rw_req_grant() local
1244 if (!rinfo->shadow[i].request) in blkif_free_ring()
1277 kvfree(rinfo->shadow[i].sg); in blkif_free_ring()
1278 rinfo->shadow[i].sg = NULL; in blkif_free_ring()
2074 struct blk_shadow *shadow = rinfo->shadow; in blkfront_resume() local
2078 if (!shadow[j].request) in blkfront_resume()
2234 kvfree(rinfo->shadow[i].sg); in blkfront_setup_indirect()
[all …]
/linux/drivers/ps3/
A 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()
451 lpm_priv->shadow.group_control = val; 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()
471 lpm_priv->shadow.pm_control = val; in ps3_write_pm()
483 lpm_priv->shadow.pm_start_stop = val; in ps3_write_pm()
[all …]
/linux/mm/kasan/
A Dsw_tags.c74 u8 *shadow_first, *shadow_last, *shadow; in kasan_check_range() local
112 for (shadow = shadow_first; shadow <= shadow_last; shadow++) { in kasan_check_range()
113 if (*shadow != tag) { in kasan_check_range()
A Dreport_sw_tags.c50 u8 *shadow = (u8 *)kasan_mem_to_shadow(addr); in kasan_print_tags() local
52 pr_err("Pointer tag: [%02x], memory tag: [%02x]\n", addr_tag, *shadow); in kasan_print_tags()
/linux/drivers/gpu/drm/amd/amdgpu/
A 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()
242 if (vmbo->shadow) in amdgpu_vm_sdma_update()
243 amdgpu_vm_sdma_set_ptes(p, vmbo->shadow, pe, addr, in amdgpu_vm_sdma_update()
252 (vmbo->shadow ? 2 : 1); in amdgpu_vm_sdma_update()
267 if (vmbo->shadow) in amdgpu_vm_sdma_update()
268 amdgpu_vm_sdma_copy_ptes(p, vmbo->shadow, pe, nptes); in amdgpu_vm_sdma_update()
/linux/Documentation/virt/kvm/
A Dmmu.rst4 The x86 kvm shadow mmu
55 spte shadow pte (referring to pfns)
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.
212 at the shadow page structure.
311 - walk shadow page table
357 - look up new shadow roots
358 - synchronize newly reachable shadow pages
363 - look up new shadow roots
364 - synchronize newly reachable shadow pages
[all …]
/linux/Documentation/dev-tools/
A Dkasan.rst224 translate a memory address to its corresponding shadow address.
259 dedicates 1/16th of the kernel memory for shadow memory).
290 shadow memory.
331 By default, architectures only map real memory over the shadow region
334 page is mapped over the shadow area. This read-only shadow page
339 allocator, KASAN temporarily maps real shadow memory to cover them.
355 allocating real shadow memory to back the mappings.
358 page of shadow space. Allocating a full shadow page per mapping would
360 use different shadow pages, mappings would have to be aligned to
365 of the shadow region. This page can be shared by other vmalloc
[all …]
/linux/arch/powerpc/platforms/ps3/
A 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/samples/livepatch/
A 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/drivers/gpu/drm/qxl/
A Dqxl_display.c418 is_primary = qobj->shadow ? qobj->shadow->is_primary : qobj->is_primary; in qxl_framebuffer_surface_dirty()
651 primary = bo->shadow ? bo->shadow : bo; in qxl_primary_atomic_update()
678 if (bo->shadow) in qxl_primary_atomic_disable()
679 bo = bo->shadow; in qxl_primary_atomic_disable()
814 if (user_bo->shadow) { in qxl_prepare_shadow()
815 qxl_bo_unpin(user_bo->shadow); in qxl_prepare_shadow()
817 (&user_bo->shadow->tbo.base); in qxl_prepare_shadow()
818 user_bo->shadow = NULL; in qxl_prepare_shadow()
822 qxl_bo_pin(user_bo->shadow); in qxl_prepare_shadow()
877 qxl_bo_unpin(user_bo->shadow); in qxl_plane_cleanup_fb()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
A 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/drivers/media/i2c/
A 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()
441 int t = chip->shadow.bytes[TDA9840_SW + 1] & ~0x7e; in tda9840_setaudmode()
606 int c6 = chip->shadow.bytes[TDA985x_C6+1] & 0x3f; in tda985x_setaudmode()
783 TDA9873_SW+1, chip->shadow.bytes[TDA9873_SW+1]); in tda9873_setaudmode()
975 chip->shadow.bytes[MAXREGS-2] = dsr; in tda9874a_getrxsubchans()
976 chip->shadow.bytes[MAXREGS-1] = nsr; in tda9874a_getrxsubchans()
1343 int s1 = chip->shadow.bytes[TDA8425_S1+1] & 0xe1; in tda8425_setaudmode()
[all …]
/linux/drivers/net/phy/
A Dbcm-phy-lib.c240 int bcm_phy_read_shadow(struct phy_device *phydev, u16 shadow) in bcm_phy_read_shadow() argument
242 phy_write(phydev, MII_BCM54XX_SHD, MII_BCM54XX_SHD_VAL(shadow)); in bcm_phy_read_shadow()
247 int bcm_phy_write_shadow(struct phy_device *phydev, u16 shadow, in bcm_phy_write_shadow() argument
252 MII_BCM54XX_SHD_VAL(shadow) | in bcm_phy_write_shadow()
530 static u64 bcm_phy_get_stat(struct phy_device *phydev, u64 *shadow, in bcm_phy_get_stat() argument
543 shadow[i] += val; in bcm_phy_get_stat()
544 ret = shadow[i]; in bcm_phy_get_stat()
550 void bcm_phy_get_stats(struct phy_device *phydev, u64 *shadow, in bcm_phy_get_stats() argument
556 data[i] = bcm_phy_get_stat(phydev, shadow, i); in bcm_phy_get_stats()
/linux/drivers/media/pci/cx88/
A 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], \
/linux/drivers/media/dvb-frontends/
A 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/tools/perf/util/scripting-engines/
A 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

Completed in 59 milliseconds

123456