Home
last modified time | relevance | path

Searched refs:snap (Results 1 – 25 of 55) sorted by relevance

123

/linux/drivers/net/ethernet/intel/ice/
H A Dice_vf_mbx.c132 static void ice_mbx_reset_snapshot(struct ice_mbx_snapshot *snap) in ice_mbx_reset_snapshot() argument
139 memset(&snap->mbx_buf, 0, sizeof(snap->mbx_buf)); in ice_mbx_reset_snapshot()
140 snap->mbx_buf.state = ICE_MAL_VF_DETECT_STATE_NEW_SNAPSHOT; in ice_mbx_reset_snapshot()
143 list_for_each_entry(vf_info, &snap->mbx_vf, list_entry) in ice_mbx_reset_snapshot()
272 struct ice_mbx_snapshot *snap = &hw->mbx_snapshot; in ice_mbx_vf_state_handler() local
303 snap_buf = &snap->mbx_buf; in ice_mbx_vf_state_handler()
308 ice_mbx_reset_snapshot(snap); in ice_mbx_vf_state_handler()
394 struct ice_mbx_snapshot *snap = &hw->mbx_snapshot; in ice_mbx_init_vf_info() local
397 list_add(&vf_info->list_entry, &snap->mbx_vf); in ice_mbx_init_vf_info()
408 struct ice_mbx_snapshot *snap = &hw->mbx_snapshot; in ice_mbx_init_snapshot() local
[all …]
/linux/drivers/md/
H A Ddm-snap.c215 struct dm_snapshot *snap; member
450 static int __find_snapshots_sharing_cow(struct dm_snapshot *snap, in __find_snapshots_sharing_cow() argument
460 o = __lookup_origin(snap->origin->bdev); in __find_snapshots_sharing_cow()
467 if (!bdev_equal(s->cow->bdev, snap->cow->bdev)) in __find_snapshots_sharing_cow()
491 static int __validate_exception_handover(struct dm_snapshot *snap) in __validate_exception_handover() argument
497 if ((__find_snapshots_sharing_cow(snap, &snap_src, &snap_dest, in __validate_exception_handover()
500 snap->ti->error = "Snapshot cow pairing for exception table handover failed"; in __validate_exception_handover()
514 if (!dm_target_is_snapshot_merge(snap->ti)) in __validate_exception_handover()
521 snap->ti->error = "A snapshot is already merging."; in __validate_exception_handover()
527 snap->ti->error = "Snapshot exception store does not support snapshot-merge."; in __validate_exception_handover()
[all …]
H A Ddm-exception-store.h119 struct dm_snapshot *snap; member
134 struct dm_dev *dm_snap_origin(struct dm_snapshot *snap);
135 struct dm_dev *dm_snap_cow(struct dm_snapshot *snap);
189 struct dm_snapshot *snap,
H A Ddm-exception-store.c173 (bdev_logical_block_size(dm_snap_cow(store->snap)->bdev) >> 9) || in dm_exception_store_set_chunk_size()
175 (bdev_logical_block_size(dm_snap_origin(store->snap)->bdev) >> 9)) { in dm_exception_store_set_chunk_size()
193 struct dm_snapshot *snap, in dm_exception_store_create() argument
231 tmp_store->snap = snap; in dm_exception_store_create()
H A Ddm-snap-transient.c46 sector_t size = get_dev_size(dm_snap_cow(store->snap)->bdev); in transient_prepare_exception()
72 *total_sectors = get_dev_size(dm_snap_cow(store->snap)->bdev); in transient_usage()
H A Ddm-snap-persistent.c236 .bdev = dm_snap_cow(ps->store->snap)->bdev, in chunk_io()
320 bdev_logical_block_size(dm_snap_cow(ps->store->snap)-> in read_header()
497 client = dm_bufio_client_create(dm_snap_cow(ps->store->snap)->bdev, in read_exceptions()
581 *total_sectors = get_dev_size(dm_snap_cow(store->snap)->bdev); in persistent_usage()
677 sector_t size = get_dev_size(dm_snap_cow(store->snap)->bdev); in persistent_prepare_exception()
/linux/drivers/gpu/drm/xe/
H A Dxe_vm.c4417 } snap[]; member
4423 struct xe_vm_snapshot *snap = NULL; in xe_vm_snapshot_capture() local
4436 snap = kvzalloc(offsetof(struct xe_vm_snapshot, snap[num_snaps]), GFP_NOWAIT); in xe_vm_snapshot_capture()
4437 if (!snap) { in xe_vm_snapshot_capture()
4438 snap = num_snaps ? ERR_PTR(-ENOMEM) : ERR_PTR(-ENODEV); in xe_vm_snapshot_capture()
4443 snap->uapi_flags |= DRM_XE_VM_CREATE_FLAG_FAULT_MODE; in xe_vm_snapshot_capture()
4445 snap->uapi_flags |= DRM_XE_VM_CREATE_FLAG_LR_MODE; in xe_vm_snapshot_capture()
4447 snap->uapi_flags |= DRM_XE_VM_CREATE_FLAG_SCRATCH_PAGE; in xe_vm_snapshot_capture()
4449 snap->num_snaps = num_snaps; in xe_vm_snapshot_capture()
4459 snap->snap[i].ofs = xe_vma_start(vma); in xe_vm_snapshot_capture()
[all …]
/linux/fs/ceph/
H A Dsubvolume_metrics.c219 struct ceph_subvol_metric_snapshot *snap = NULL; in ceph_subvolume_metrics_snapshot() local
248 snap = kcalloc(count, sizeof(*snap), GFP_NOFS); in ceph_subvolume_metrics_snapshot()
249 if (!snap) { in ceph_subvolume_metrics_snapshot()
276 snap[idx].subvolume_id = entry->subvolume_id; in ceph_subvolume_metrics_snapshot()
277 snap[idx].read_ops = entry->read_ops; in ceph_subvolume_metrics_snapshot()
278 snap[idx].write_ops = entry->write_ops; in ceph_subvolume_metrics_snapshot()
279 snap[idx].read_bytes = entry->read_bytes; in ceph_subvolume_metrics_snapshot()
280 snap[idx].write_bytes = entry->write_bytes; in ceph_subvolume_metrics_snapshot()
281 snap[idx].read_latency_us = entry->read_latency_us; in ceph_subvolume_metrics_snapshot()
282 snap[idx].write_latency_us = entry->write_latency_us; in ceph_subvolume_metrics_snapshot()
[all …]
H A Dexport.c139 vino.snap = CEPH_NOSNAP; in __lookup_inode()
227 vino.snap = CEPH_NOSNAP; in __snapfh_to_dentry()
229 vino.snap = CEPH_SNAPDIR; in __snapfh_to_dentry()
231 vino.snap = sfh->snapid; in __snapfh_to_dentry()
234 vino.snap = sfh->snapid; in __snapfh_to_dentry()
258 if (vino.snap < CEPH_NOSNAP) { in __snapfh_to_dentry()
259 req->r_args.lookupino.snapid = cpu_to_le64(vino.snap); in __snapfh_to_dentry()
273 if (vino.snap == CEPH_SNAPDIR) { in __snapfh_to_dentry()
277 } else if (ceph_snap(inode) == vino.snap) { in __snapfh_to_dentry()
289 doutc(cl, "%llx.%llx\n err=%d\n", vino.ino, vino.snap, err); in __snapfh_to_dentry()
[all …]
H A Dsnap.c1087 .snap = CEPH_NOSNAP, in ceph_handle_snap()
1189 u64 snap) in ceph_get_snapid_map() argument
1201 if (snap > exist->snap) { in ceph_get_snapid_map()
1203 } else if (snap < exist->snap) { in ceph_get_snapid_map()
1214 doutc(cl, "found snapid map %llx -> %x\n", exist->snap, in ceph_get_snapid_map()
1231 sm->snap = snap; in ceph_get_snapid_map()
1240 if (snap > exist->snap) in ceph_get_snapid_map()
1242 else if (snap < exist->snap) in ceph_get_snapid_map()
1259 doutc(cl, "found snapid map %llx -> %x\n", exist->snap, in ceph_get_snapid_map()
1264 doutc(cl, "create snapid map %llx -> %x\n", sm->snap, sm->dev); in ceph_get_snapid_map()
[all …]
H A DMakefile9 export.o caps.o snap.o xattr.o quota.o io.o \
/linux/drivers/usb/mon/
H A Dmon_stat.c22 struct snap { struct
30 struct snap *sp; in mon_stat_open() argument
32 sp = kmalloc_obj(struct snap); in mon_stat_open()
49 struct snap *sp = file->private_data; in mon_stat_read()
56 struct snap *sp = file->private_data; in mon_stat_release()
/linux/include/trace/events/
H A Dceph.h62 __field(u64, snap)
77 __entry->snap = ceph_snap(inode);
79 __entry->ino = __entry->snap = 0;
86 __entry->ino, __entry->snap)
203 __field(u64, snap)
213 __entry->snap = vino->snap;
223 __entry->snap,
/linux/include/linux/
H A Dpps_kernel.h102 struct system_time_snapshot snap; in pps_get_ts() local
104 ktime_get_snapshot(&snap); in pps_get_ts()
105 ts->ts_real = ktime_to_timespec64(snap.real); in pps_get_ts()
107 ts->ts_raw = ktime_to_timespec64(snap.raw); in pps_get_ts()
/linux/drivers/pps/generators/
H A Dpps_gen-dummy.c42 struct system_time_snapshot snap; in pps_gen_dummy_get_time() local
44 ktime_get_snapshot(&snap); in pps_gen_dummy_get_time()
45 *time = ktime_to_timespec64(snap.real); in pps_gen_dummy_get_time()
H A Dpps_gen_tio.c192 struct system_time_snapshot snap; in pps_tio_get_time() local
194 ktime_get_snapshot(&snap); in pps_tio_get_time()
195 *time = ktime_to_timespec64(snap.real); in pps_tio_get_time()
/linux/drivers/net/wireless/intel/ipw2x00/
H A Dlibipw_tx.c117 struct libipw_snap_hdr *snap; in libipw_copy_snap() local
120 snap = (struct libipw_snap_hdr *)data; in libipw_copy_snap()
121 snap->dsap = 0xaa; in libipw_copy_snap()
122 snap->ssap = 0xaa; in libipw_copy_snap()
123 snap->ctrl = 0x03; in libipw_copy_snap()
129 snap->oui[0] = oui[0]; in libipw_copy_snap()
130 snap->oui[1] = oui[1]; in libipw_copy_snap()
131 snap->oui[2] = oui[2]; in libipw_copy_snap()
/linux/Documentation/admin-guide/device-mapper/
H A Dsnapshot.rst106 lvcreate -L 100M --snapshot -n snap volumeGroup/base
113 volumeGroup-snap-cow: 0 204800 linear 8:19 2097536
114 volumeGroup-snap: 0 2097152 snapshot 254:11 254:12 P 16
119 brw------- 1 root root 254, 12 29 ago 18:15 /dev/mapper/volumeGroup-snap-cow
120 brw------- 1 root root 254, 13 29 ago 18:15 /dev/mapper/volumeGroup-snap
136 lvconvert --merge volumeGroup/snap
168 snap volumeGroup swi-a- 1.00g base 18.97
170 # dmsetup status volumeGroup-snap
174 # lvconvert --merge -b volumeGroup/snap
175 Merging of volume snap started.
[all …]
/linux/scripts/
H A DMakefile.package137 PHONY += snap-pkg
138 snap-pkg:
139 rm -rf $(objtree)/snap
140 mkdir $(objtree)/snap
145 $(objtree)/snap/snapcraft.yaml
146 cd $(objtree)/snap && \
/linux/fs/afs/
H A Dvalidation.c199 unsigned int snap; in afs_update_volume_creation_time() local
243 snap = atomic_read(&volume->cb_ro_snapshot); in afs_update_volume_creation_time()
244 trace_afs_cb_v_break(volume->vid, snap, afs_cb_break_volume_excluded); in afs_update_volume_creation_time()
249 snap = atomic_inc_return(&volume->cb_ro_snapshot); in afs_update_volume_creation_time()
250 trace_afs_cb_v_break(volume->vid, snap, afs_cb_break_for_vos_release); in afs_update_volume_creation_time()
/linux/include/linux/ceph/
H A Dtypes.h20 u64 snap; member
/linux/drivers/net/ethernet/aquantia/atlantic/macsec/
H A Dmacsec_api.c374 packed_record[6] = rec->snap[0] & 0xFFFF; in set_ingress_preclass_record()
375 packed_record[7] = (rec->snap[0] >> 16) & 0xFFFF; in set_ingress_preclass_record()
377 packed_record[8] = rec->snap[1] & 0xFF; in set_ingress_preclass_record()
488 rec->snap[0] = packed_record[6]; in get_ingress_preclass_record()
489 rec->snap[0] |= packed_record[7] << 16; in get_ingress_preclass_record()
491 rec->snap[1] = packed_record[8] & 0xFF; in get_ingress_preclass_record()
1275 packed_record[8] |= (rec->snap[0] & 0xFF) << 8; in set_egress_class_record()
1276 packed_record[9] = (rec->snap[0] >> 8) & 0xFFFF; in set_egress_class_record()
1277 packed_record[10] = (rec->snap[0] >> 24) & 0xFF; in set_egress_class_record()
1279 packed_record[10] |= (rec->snap[1] & 0xFF) << 8; in set_egress_class_record()
[all …]
H A Dmacsec_struct.h71 u32 snap[2]; member
370 u32 snap[2]; member
/linux/drivers/net/ethernet/mscc/
H A Docelot_vcap.c428 struct ocelot_vcap_key_snap *snap = &filter->key.snap; in is2_entry_set() local
432 snap->dmac.value, snap->dmac.mask); in is2_entry_set()
434 snap->smac.value, snap->smac.mask); in is2_entry_set()
436 filter->key.snap.snap.value, in is2_entry_set()
437 filter->key.snap.snap.mask); in is2_entry_set()
/linux/include/uapi/linux/
H A Datmsap.h133 unsigned char snap[5];/* IEEE 802.1 SNAP identifier */ member

123