| /linux/drivers/iommu/generic_pt/ |
| H A D | pt_common.h | 40 static inline void pt_attr_from_entry(const struct pt_state *pts, 50 static inline bool pt_can_have_leaf(const struct pt_state *pts); 58 static inline bool pt_can_have_table(const struct pt_state *pts) in pt_can_have_table() argument 61 return pts->level > 0; in pt_can_have_table() 73 static inline void pt_clear_entries(struct pt_state *pts, 84 static inline bool pt_entry_make_write_dirty(struct pt_state *pts); 99 static inline void pt_entry_make_write_clean(struct pt_state *pts); 109 static inline bool pt_entry_is_write_dirty(const struct pt_state *pts); 124 static inline unsigned int pt_entry_num_contig_lg2(const struct pt_state *pts); 138 static inline pt_oaddr_t pt_entry_oa(const struct pt_state *pts); [all …]
|
| H A D | pt_fmt_defaults.h | 23 static inline unsigned int pt_table_item_lg2sz(const struct pt_state *pts) in pt_table_item_lg2sz() argument 26 (PT_TABLEMEM_LG2SZ - ilog2(PT_ITEM_WORD_SIZE)) * pts->level; in pt_table_item_lg2sz() 47 static inline unsigned int pt_entry_num_contig_lg2(const struct pt_state *pts) in pt_entry_num_contig_lg2() argument 55 static inline unsigned short pt_contig_count_lg2(const struct pt_state *pts) in pt_contig_count_lg2() argument 63 static inline bool pt_entry_is_write_dirty(const struct pt_state *pts) in pt_entry_is_write_dirty() argument 68 static inline void pt_entry_make_write_clean(struct pt_state *pts) in pt_entry_make_write_clean() argument 87 static inline bool pt_entry_make_write_dirty(struct pt_state *pts) in pt_entry_make_write_dirty() argument 106 static inline pt_oaddr_t pt_item_oa(const struct pt_state *pts) in pt_item_oa() argument 108 return pt_entry_oa(pts) | in pt_item_oa() 109 log2_mul(pts->index, pt_table_item_lg2sz(pts)); in pt_item_oa() [all …]
|
| H A D | kunit_generic_pt.h | 24 #define KUNIT_ASSERT_PT_LOAD(test, pts, entry) \ argument 26 pt_load_entry(pts); \ 27 KUNIT_ASSERT_EQ(test, (pts)->type, entry); \ 33 void (*fn)(struct kunit *test, struct pt_state *pts, void *arg); 39 struct pt_state pts = pt_init(range, level, table); in __check_all_levels() local 44 _pt_iter_first(&pts); in __check_all_levels() 53 pts.level == pts.range->top_level) in __check_all_levels() 54 KUNIT_ASSERT_EQ(test, pts.index, in __check_all_levels() 56 pt_table_item_lg2sz(&pts)) - in __check_all_levels() 59 KUNIT_ASSERT_EQ(test, pts.index, in __check_all_levels() [all …]
|
| H A D | pt_iter.h | 56 static inline void pt_index_to_va(struct pt_state *pts) in pt_index_to_va() argument 60 lower_va = log2_mul(pts->index, pt_table_item_lg2sz(pts)); in pt_index_to_va() 61 pts->range->va = fvalog2_set_mod(pts->range->va, lower_va, in pt_index_to_va() 62 pt_table_oa_lg2sz(pts)); in pt_index_to_va() 69 static inline void _pt_advance(struct pt_state *pts, in _pt_advance() argument 72 pts->index = log2_set_mod(pts->index + log2_to_int(index_count_lg2), 0, in _pt_advance() 85 static inline bool pt_entry_fully_covered(const struct pt_state *pts, in pt_entry_fully_covered() argument 88 struct pt_range *range = pts->range; in pt_entry_fully_covered() 91 if (log2_mod(pts->range->va, oasz_lg2)) in pt_entry_fully_covered() 108 static inline unsigned int pt_range_to_index(const struct pt_state *pts) in pt_range_to_index() argument [all …]
|
| H A D | pt_defs.h | 157 #define pt_cur_table(pts, type) ((type *)((pts)->table)) argument 166 static inline bool pt_table_install64(struct pt_state *pts, u64 table_entry) in pt_table_install64() argument 168 u64 *entryp = pt_cur_table(pts, u64) + pts->index; in pt_table_install64() 169 u64 old_entry = pts->entry; in pt_table_install64() 180 pts->entry = table_entry; in pt_table_install64() 185 static inline bool pt_table_install32(struct pt_state *pts, u32 table_entry) in pt_table_install32() argument 187 u32 *entryp = pt_cur_table(pts, u32) + pts->index; in pt_table_install32() 188 u32 old_entry = pts->entry; in pt_table_install32() 199 pts->entry = table_entry; in pt_table_install32() 215 static inline bool pts_feature(const struct pt_state *pts, in pts_feature() argument [all …]
|
| H A D | kunit_iommu_pt.h | 20 struct pt_state pts = pt_init(range, level, table); in __count_valids() local 23 for_each_pt_level_entry(&pts) { in __count_valids() 24 if (pts.type == PT_ENTRY_TABLE) { in __count_valids() 25 pt_descend(&pts, arg, __count_valids); in __count_valids() 28 if (pts.type == PT_ENTRY_OA) { in __count_valids() 29 valids->per_size[pt_entry_oa_lg2sz(&pts)]++; in __count_valids()
|
| /linux/drivers/iommu/generic_pt/fmt/ |
| H A D | amdv1.h | 70 static inline pt_oaddr_t amdv1pt_table_pa(const struct pt_state *pts) in amdv1pt_table_pa() argument 72 u64 entry = pts->entry; in amdv1pt_table_pa() 74 if (pts_feature(pts, PT_FEAT_AMDV1_ENCRYPT_TABLES)) in amdv1pt_table_pa() 81 static inline pt_oaddr_t amdv1pt_entry_oa(const struct pt_state *pts) in amdv1pt_entry_oa() argument 83 u64 entry = pts->entry; in amdv1pt_entry_oa() 86 if (pts_feature(pts, PT_FEAT_AMDV1_ENCRYPT_TABLES)) in amdv1pt_entry_oa() 101 static inline bool amdv1pt_can_have_leaf(const struct pt_state *pts) in amdv1pt_can_have_leaf() argument 107 return pts->level < PT_MAX_TOP_LEVEL; in amdv1pt_can_have_leaf() 112 static inline unsigned int pt_table_item_lg2sz(const struct pt_state *pts); 115 amdv1pt_entry_num_contig_lg2(const struct pt_state *pts) in amdv1pt_entry_num_contig_lg2() argument [all …]
|
| H A D | vtdss.h | 60 #define to_vtdss_pt(pts) common_to_vtdss_pt((pts)->range->common) argument 62 static inline pt_oaddr_t vtdss_pt_table_pa(const struct pt_state *pts) in vtdss_pt_table_pa() argument 64 return oalog2_mul(FIELD_GET(VTDSS_FMT_OA, pts->entry), in vtdss_pt_table_pa() 69 static inline pt_oaddr_t vtdss_pt_entry_oa(const struct pt_state *pts) in vtdss_pt_entry_oa() argument 71 return oalog2_mul(FIELD_GET(VTDSS_FMT_OA, pts->entry), in vtdss_pt_entry_oa() 76 static inline bool vtdss_pt_can_have_leaf(const struct pt_state *pts) in vtdss_pt_can_have_leaf() argument 78 return pts->level <= 2; in vtdss_pt_can_have_leaf() 82 static inline unsigned int vtdss_pt_num_items_lg2(const struct pt_state *pts) in vtdss_pt_num_items_lg2() argument 88 static inline enum pt_entry_type vtdss_pt_load_entry_raw(struct pt_state *pts) in vtdss_pt_load_entry_raw() argument 90 const u64 *tablep = pt_cur_table(pts, u64); in vtdss_pt_load_entry_raw() [all …]
|
| H A D | x86_64.h | 76 static inline pt_oaddr_t x86_64_pt_table_pa(const struct pt_state *pts) in x86_64_pt_table_pa() argument 78 u64 entry = pts->entry; in x86_64_pt_table_pa() 80 if (pts_feature(pts, PT_FEAT_X86_64_AMD_ENCRYPT_TABLES)) in x86_64_pt_table_pa() 87 static inline pt_oaddr_t x86_64_pt_entry_oa(const struct pt_state *pts) in x86_64_pt_entry_oa() argument 89 u64 entry = pts->entry; in x86_64_pt_entry_oa() 91 if (pts_feature(pts, PT_FEAT_X86_64_AMD_ENCRYPT_TABLES)) in x86_64_pt_entry_oa() 98 static inline bool x86_64_pt_can_have_leaf(const struct pt_state *pts) in x86_64_pt_can_have_leaf() argument 100 return pts->level <= 2; in x86_64_pt_can_have_leaf() 104 static inline unsigned int x86_64_pt_num_items_lg2(const struct pt_state *pts) in x86_64_pt_num_items_lg2() argument 110 static inline enum pt_entry_type x86_64_pt_load_entry_raw(struct pt_state *pts) in x86_64_pt_load_entry_raw() argument [all …]
|
| /linux/samples/bpf/ |
| H A D | cpustat_kern.c | 106 u64 *cts, *pts, *cstate, *pstate, prev_state, cur_ts, delta; in bpf_prog1() local 126 pts = bpf_map_lookup_elem(&my_map, &key); in bpf_prog1() 127 if (!pts) in bpf_prog1() 166 if (!*pts) in bpf_prog1() 169 delta = cur_ts - *pts; in bpf_prog1() 205 if (*pts) in bpf_prog1() 206 *pts = cur_ts; in bpf_prog1() 214 u64 *pts, *cstate, *pstate, cur_ts, delta; in bpf_prog2() local 221 pts = bpf_map_lookup_elem(&my_map, &key); in bpf_prog2() 222 if (!pts) in bpf_prog2() [all …]
|
| /linux/drivers/iio/adc/ |
| H A D | qcom-vadc-common.c | 346 static int qcom_vadc_map_voltage_temp(const struct vadc_map_pt *pts, in qcom_vadc_map_voltage_temp() argument 351 if (!pts) in qcom_vadc_map_voltage_temp() 354 while (i < tablesize && pts[i].x > input) in qcom_vadc_map_voltage_temp() 358 *output = pts[0].y; in qcom_vadc_map_voltage_temp() 360 *output = pts[tablesize - 1].y; in qcom_vadc_map_voltage_temp() 363 *output = fixp_linear_interpolate(pts[i - 1].x, pts[i - 1].y, in qcom_vadc_map_voltage_temp() 364 pts[i].x, pts[i].y, in qcom_vadc_map_voltage_temp() 371 static s32 qcom_vadc_map_temp_voltage(const struct vadc_map_pt *pts, in qcom_vadc_map_temp_voltage() argument 380 while (i < tablesize && pts[i].y < input) in qcom_vadc_map_temp_voltage() 384 return pts[0].x; in qcom_vadc_map_temp_voltage() [all …]
|
| /linux/drivers/media/test-drivers/vidtv/ |
| H A D | vidtv_pes.c | 85 struct vidtv_pes_optional_pts pts = {}; in vidtv_pes_write_pts_dts() local 102 pts_dts.pts1 = (0x3 << 4) | ((args->pts & mask1) >> 29) | 0x1; in vidtv_pes_write_pts_dts() 103 pts_dts.pts2 = cpu_to_be16(((args->pts & mask2) >> 14) | 0x1); in vidtv_pes_write_pts_dts() 104 pts_dts.pts3 = cpu_to_be16(((args->pts & mask3) << 1) | 0x1); in vidtv_pes_write_pts_dts() 114 pts.pts1 = (0x1 << 5) | ((args->pts & mask1) >> 29) | 0x1; in vidtv_pes_write_pts_dts() 115 pts.pts2 = cpu_to_be16(((args->pts & mask2) >> 14) | 0x1); in vidtv_pes_write_pts_dts() 116 pts.pts3 = cpu_to_be16(((args->pts & mask3) << 1) | 0x1); in vidtv_pes_write_pts_dts() 118 op = &pts; in vidtv_pes_write_pts_dts() 119 op_sz = sizeof(pts); in vidtv_pes_write_pts_dts() 319 .pts = args->pts, in vidtv_pes_write_into()
|
| H A D | vidtv_pes.h | 98 u64 pts; member 168 u64 pts; member
|
| /linux/Documentation/filesystems/ |
| H A D | devpts.rst | 11 All mounts of the devpts filesystem now create a ``/dev/pts/ptmx`` node 16 of devpts under the name ``pts`` in the same directory as the ptmx device 20 it is possible to place a symlink to ``/dev/pts/ptmx`` at ``/dev/ptmx`` or 23 the ``ptmxmode=0666``, or ``chmod 0666 /dev/pts/ptmx`` should be called.
|
| /linux/drivers/iommu/ |
| H A D | tegra-smmu.c | 63 struct tegra_pt **pts; member 311 as->pts = kcalloc(SMMU_NUM_PDE, sizeof(*as->pts), GFP_KERNEL); in tegra_smmu_domain_alloc_paging() 312 if (!as->pts) { in tegra_smmu_domain_alloc_paging() 339 kfree(as->pts); in tegra_smmu_domain_free() 592 pt = as->pts[pd_index]; in tegra_smmu_pte_lookup() 607 if (!as->pts[pde]) { in as_get_pte() 624 as->pts[pde] = pt; in as_get_pte() 634 return tegra_smmu_pte_offset(as->pts[pde], iova); in as_get_pte() 647 struct tegra_pt *pt = as->pts[pde]; in tegra_smmu_pte_put_use() 662 as->pts[pde] = NULL; in tegra_smmu_pte_put_use() [all …]
|
| /linux/arch/um/configs/ |
| H A D | x86_64_defconfig | 33 CONFIG_CON_CHAN="pts" 34 CONFIG_SSL_CHAN="pts"
|
| H A D | i386_defconfig | 34 CONFIG_CON_CHAN="pts" 35 CONFIG_SSL_CHAN="pts"
|
| /linux/drivers/gpu/drm/lima/ |
| H A D | lima_vm.c | 53 dma_addr_t pts; in lima_vm_map_page() local 63 pts = vm->bts[pbe].dma; in lima_vm_map_page() 66 pd[j] = pts | LIMA_VM_FLAG_PRESENT; in lima_vm_map_page() 67 pts += LIMA_PAGE_SIZE; in lima_vm_map_page()
|
| /linux/drivers/ptp/ |
| H A D | ptp_vclock.c | 93 struct timespec64 pts; in ptp_vclock_gettimex() local 97 err = pptp->info->getcyclesx64(pptp->info, &pts, sts); in ptp_vclock_gettimex() 103 ns = timecounter_cyc2time(&vclock->tc, timespec64_to_ns(&pts)); in ptp_vclock_gettimex()
|
| /linux/drivers/staging/media/av7110/ |
| H A D | dvb_filter.h | 136 u8 pts[5]; member 199 u32 pts[2]; /* [0] 1st field, [1] 2nd field */ member
|
| H A D | av7110_ipack.c | 271 p->pts[p->found - 9] = buf[c]; in av7110_ipack_instant_repack() 330 p->pts[0] = p->check; in av7110_ipack_instant_repack() 339 p->pts[p->which - 2] = buf[c]; in av7110_ipack_instant_repack() 351 p->pts[p->which - 2] = buf[c]; in av7110_ipack_instant_repack()
|
| /linux/fs/proc/ |
| H A D | inode.c | 348 …tic __poll_t pde_poll(struct proc_dir_entry *pde, struct file *file, struct poll_table_struct *pts) in pde_poll() argument 352 return poll(file, pts); in pde_poll() 356 static __poll_t proc_reg_poll(struct file *file, struct poll_table_struct *pts) in proc_reg_poll() argument 362 return pde_poll(pde, file, pts); in proc_reg_poll() 364 rv = pde_poll(pde, file, pts); in proc_reg_poll()
|
| /linux/drivers/media/radio/si470x/ |
| H A D | radio-si470x-common.c | 516 struct poll_table_struct *pts) in si470x_fops_poll() argument 519 __poll_t req_events = poll_requested_events(pts); in si470x_fops_poll() 520 __poll_t retval = v4l2_ctrl_poll(file, pts); in si470x_fops_poll() 527 poll_wait(file, &radio->read_queue, pts); in si470x_fops_poll()
|
| /linux/drivers/platform/raspberrypi/vchiq-mmal/ |
| H A D | mmal-common.h | 56 s64 pts; member
|
| /linux/Documentation/userspace-api/media/v4l/ |
| H A D | vidioc-decoder-cmd.rst | 117 - ``pts`` 118 - Stop playback at this ``pts`` or immediately if the playback is 169 immediately (ignoring the ``pts`` value), otherwise it will keep 170 decoding until timestamp >= pts or until the last of the pending
|