| /linux/drivers/ptp/ |
| H A D | ptp_dfl_tod.c | 77 * and TOD_ADJUST_COUNT register for in hardware. The dt->tod_lock spinlock must be 80 static int fine_adjust_tod_clock(struct dfl_tod *dt, u32 adjust_period, in fine_adjust_tod_clock() argument 83 void __iomem *base = dt->tod_ctrl; in fine_adjust_tod_clock() 98 static int coarse_adjust_tod_clock(struct dfl_tod *dt, s64 delta) in coarse_adjust_tod_clock() argument 101 void __iomem *base = dt->tod_ctrl; in coarse_adjust_tod_clock() 128 struct dfl_tod *dt = container_of(ptp, struct dfl_tod, ptp_clock_ops); in dfl_tod_adjust_fine() local 130 void __iomem *base = dt->tod_ctrl; in dfl_tod_adjust_fine() 160 spin_lock_irqsave(&dt->tod_lock, flags); in dfl_tod_adjust_fine() 166 spin_unlock_irqrestore(&dt->tod_lock, flags); in dfl_tod_adjust_fine() 173 struct dfl_tod *dt in dfl_tod_adjust_time() local 229 struct dfl_tod *dt = container_of(ptp, struct dfl_tod, ptp_clock_ops); dfl_tod_get_timex() local 254 struct dfl_tod *dt = container_of(ptp, struct dfl_tod, ptp_clock_ops); dfl_tod_set_time() local 283 struct dfl_tod *dt; dfl_tod_probe() local 309 struct dfl_tod *dt = dev_get_drvdata(&ddev->dev); dfl_tod_remove() local [all...] |
| /linux/drivers/video/ |
| H A D | of_display_timing.c | 55 * @dt: display_timing that contains the result. I may be partially written in case of errors 58 struct display_timing *dt) in of_parse_display_timing() argument 63 memset(dt, 0, sizeof(*dt)); in of_parse_display_timing() 65 ret |= parse_timing_property(np, "hback-porch", &dt->hback_porch); in of_parse_display_timing() 66 ret |= parse_timing_property(np, "hfront-porch", &dt->hfront_porch); in of_parse_display_timing() 67 ret |= parse_timing_property(np, "hactive", &dt->hactive); in of_parse_display_timing() 68 ret |= parse_timing_property(np, "hsync-len", &dt->hsync_len); in of_parse_display_timing() 69 ret |= parse_timing_property(np, "vback-porch", &dt->vback_porch); in of_parse_display_timing() 70 ret |= parse_timing_property(np, "vfront-porch", &dt->vfront_porch); in of_parse_display_timing() 71 ret |= parse_timing_property(np, "vactive", &dt->vactive); in of_parse_display_timing() [all …]
|
| H A D | videomode.c | 13 void videomode_from_timing(const struct display_timing *dt, in videomode_from_timing() argument 16 vm->pixelclock = dt->pixelclock.typ; in videomode_from_timing() 17 vm->hactive = dt->hactive.typ; in videomode_from_timing() 18 vm->hfront_porch = dt->hfront_porch.typ; in videomode_from_timing() 19 vm->hback_porch = dt->hback_porch.typ; in videomode_from_timing() 20 vm->hsync_len = dt->hsync_len.typ; in videomode_from_timing() 22 vm->vactive = dt->vactive.typ; in videomode_from_timing() 23 vm->vfront_porch = dt->vfront_porch.typ; in videomode_from_timing() 24 vm->vback_porch = dt->vback_porch.typ; in videomode_from_timing() 25 vm->vsync_len = dt->vsync_len.typ; in videomode_from_timing() [all …]
|
| /linux/drivers/rtc/ |
| H A D | rtc-max6902.c | 52 static int max6902_read_time(struct device *dev, struct rtc_time *dt) in max6902_read_time() argument 66 dt->tm_sec = bcd2bin(buf[0]); in max6902_read_time() 67 dt->tm_min = bcd2bin(buf[1]); in max6902_read_time() 68 dt->tm_hour = bcd2bin(buf[2]); in max6902_read_time() 69 dt->tm_mday = bcd2bin(buf[3]); in max6902_read_time() 70 dt->tm_mon = bcd2bin(buf[4]) - 1; in max6902_read_time() 71 dt->tm_wday = bcd2bin(buf[5]); in max6902_read_time() 72 dt->tm_year = bcd2bin(buf[6]); in max6902_read_time() 81 dt->tm_year += century; in max6902_read_time() 82 dt->tm_year -= 1900; in max6902_read_time() [all …]
|
| H A D | rtc-max6916.c | 53 static int max6916_read_time(struct device *dev, struct rtc_time *dt) in max6916_read_time() argument 66 dt->tm_sec = bcd2bin(buf[0]); in max6916_read_time() 67 dt->tm_min = bcd2bin(buf[1]); in max6916_read_time() 68 dt->tm_hour = bcd2bin(buf[2] & 0x3F); in max6916_read_time() 69 dt->tm_mday = bcd2bin(buf[3]); in max6916_read_time() 70 dt->tm_mon = bcd2bin(buf[4]) - 1; in max6916_read_time() 71 dt->tm_wday = bcd2bin(buf[5]) - 1; in max6916_read_time() 72 dt->tm_year = bcd2bin(buf[6]) + 100; in max6916_read_time() 77 static int max6916_set_time(struct device *dev, struct rtc_time *dt) in max6916_set_time() argument 82 if (dt->tm_year < 100 || dt->tm_year > 199) { in max6916_set_time() [all …]
|
| H A D | rtc-ds1347.c | 50 static int ds1347_read_time(struct device *dev, struct rtc_time *dt) in ds1347_read_time() argument 78 dt->tm_sec = bcd2bin(buf[0]); in ds1347_read_time() 79 dt->tm_min = bcd2bin(buf[1] & 0x7f); in ds1347_read_time() 80 dt->tm_hour = bcd2bin(buf[2] & 0x3F); in ds1347_read_time() 81 dt->tm_mday = bcd2bin(buf[3]); in ds1347_read_time() 82 dt->tm_mon = bcd2bin(buf[4]) - 1; in ds1347_read_time() 83 dt->tm_wday = bcd2bin(buf[5]) - 1; in ds1347_read_time() 84 dt->tm_year = (bcd2bin(century) * 100) + bcd2bin(buf[6]) - 1900; in ds1347_read_time() 89 static int ds1347_set_time(struct device *dev, struct rtc_time *dt) in ds1347_set_time() argument 101 buf[0] = bin2bcd(dt->tm_sec); in ds1347_set_time() [all …]
|
| H A D | rtc-ds1390.c | 117 "Unsupported ohm value %02ux in dt\n", ohms); in ds1390_trickle_of_init() 127 static int ds1390_read_time(struct device *dev, struct rtc_time *dt) in ds1390_read_time() argument 143 dt->tm_sec = bcd2bin(chip->txrx_buf[0]); in ds1390_read_time() 144 dt->tm_min = bcd2bin(chip->txrx_buf[1]); in ds1390_read_time() 145 dt->tm_hour = bcd2bin(chip->txrx_buf[2]); in ds1390_read_time() 146 dt->tm_wday = bcd2bin(chip->txrx_buf[3]); in ds1390_read_time() 147 dt->tm_mday = bcd2bin(chip->txrx_buf[4]); in ds1390_read_time() 149 dt->tm_mon = bcd2bin(chip->txrx_buf[5] & 0x7f) - 1; in ds1390_read_time() 151 dt->tm_year = bcd2bin(chip->txrx_buf[6]) + ((chip->txrx_buf[5] & 0x80) ? 100 : 0); in ds1390_read_time() 156 static int ds1390_set_time(struct device *dev, struct rtc_time *dt) in ds1390_set_time() argument [all...] |
| H A D | rtc-r9701.c | 68 static int r9701_get_datetime(struct device *dev, struct rtc_time *dt) in r9701_get_datetime() argument 78 dt->tm_sec = bcd2bin(buf[0]); /* RSECCNT */ in r9701_get_datetime() 79 dt->tm_min = bcd2bin(buf[1]); /* RMINCNT */ in r9701_get_datetime() 80 dt->tm_hour = bcd2bin(buf[2]); /* RHRCNT */ in r9701_get_datetime() 82 dt->tm_mday = bcd2bin(buf[3]); /* RDAYCNT */ in r9701_get_datetime() 83 dt->tm_mon = bcd2bin(buf[4]) - 1; /* RMONCNT */ in r9701_get_datetime() 84 dt->tm_year = bcd2bin(buf[5]) + 100; /* RYRCNT */ in r9701_get_datetime() 89 static int r9701_set_datetime(struct device *dev, struct rtc_time *dt) in r9701_set_datetime() argument 93 ret = write_reg(dev, RHRCNT, bin2bcd(dt->tm_hour)); in r9701_set_datetime() 94 ret = ret ? ret : write_reg(dev, RMINCNT, bin2bcd(dt->tm_min)); in r9701_set_datetime() [all …]
|
| H A D | rtc-pcf8583.c | 49 static int pcf8583_get_datetime(struct i2c_client *client, struct rtc_time *dt) in pcf8583_get_datetime() argument 71 dt->tm_year = buf[4] >> 6; in pcf8583_get_datetime() 72 dt->tm_wday = buf[5] >> 5; in pcf8583_get_datetime() 77 dt->tm_sec = bcd2bin(buf[1]); in pcf8583_get_datetime() 78 dt->tm_min = bcd2bin(buf[2]); in pcf8583_get_datetime() 79 dt->tm_hour = bcd2bin(buf[3]); in pcf8583_get_datetime() 80 dt->tm_mday = bcd2bin(buf[4]); in pcf8583_get_datetime() 81 dt->tm_mon = bcd2bin(buf[5]) - 1; in pcf8583_get_datetime() 87 static int pcf8583_set_datetime(struct i2c_client *client, struct rtc_time *dt, int datetoo) in pcf8583_set_datetime() argument 95 buf[3] = bin2bcd(dt in pcf8583_set_datetime() [all...] |
| H A D | rtc-rx8010.c | 105 static int rx8010_get_time(struct device *dev, struct rtc_time *dt) in rx8010_irq_1_handler() 124 dt->tm_sec = bcd2bin(date[RX8010_SEC - RX8010_SEC] & 0x7f); in rx8010_get_time() 125 dt->tm_min = bcd2bin(date[RX8010_MIN - RX8010_SEC] & 0x7f); in rx8010_get_time() 126 dt->tm_hour = bcd2bin(date[RX8010_HOUR - RX8010_SEC] & 0x3f); in rx8010_get_time() 127 dt->tm_mday = bcd2bin(date[RX8010_MDAY - RX8010_SEC] & 0x3f); in rx8010_get_time() 128 dt->tm_mon = bcd2bin(date[RX8010_MONTH - RX8010_SEC] & 0x1f) - 1; in rx8010_get_time() 129 dt->tm_year = bcd2bin(date[RX8010_YEAR - RX8010_SEC]) + 100; in rx8010_get_time() 130 dt->tm_wday = ffs(date[RX8010_WDAY - RX8010_SEC] & 0x7f); in rx8010_get_time() 135 static int rx8010_set_time(struct device *dev, struct rtc_time *dt) in rx8010_get_time() 146 date[RX8010_SEC - RX8010_SEC] = bin2bcd(dt in rx8010_set_time() 107 rx8010_get_time(struct device * dev,struct rtc_time * dt) rx8010_get_time() argument 137 rx8010_set_time(struct device * dev,struct rtc_time * dt) rx8010_set_time() argument [all...] |
| H A D | rtc-ds1343.c | 198 static int ds1343_read_time(struct device *dev, struct rtc_time *dt) in ds1343_read_time() argument 208 dt->tm_sec = bcd2bin(buf[0]); in ds1343_read_time() 209 dt->tm_min = bcd2bin(buf[1]); in ds1343_read_time() 210 dt->tm_hour = bcd2bin(buf[2] & 0x3F); in ds1343_read_time() 211 dt->tm_wday = bcd2bin(buf[3]) - 1; in ds1343_read_time() 212 dt->tm_mday = bcd2bin(buf[4]); in ds1343_read_time() 213 dt->tm_mon = bcd2bin(buf[5] & 0x1F) - 1; in ds1343_read_time() 214 dt->tm_year = bcd2bin(buf[6]) + 100; /* year offset from 1900 */ in ds1343_read_time() 219 static int ds1343_set_time(struct device *dev, struct rtc_time *dt) in ds1343_set_time() argument 224 buf[0] = bin2bcd(dt in ds1343_set_time() [all...] |
| H A D | rtc-rx8025.c | 212 static int rx8025_get_time(struct device *dev, struct rtc_time *dt) in rx8025_handle_irq() 229 dt->tm_sec = bcd2bin(date[RX8025_REG_SEC] & 0x7f); in rx8025_get_time() 230 dt->tm_min = bcd2bin(date[RX8025_REG_MIN] & 0x7f); in rx8025_get_time() 232 dt->tm_hour = bcd2bin(date[RX8025_REG_HOUR] & 0x3f); in rx8025_get_time() 234 dt->tm_hour = bcd2bin(date[RX8025_REG_HOUR] & 0x1f) % 12 in rx8025_get_time() 237 dt->tm_mday = bcd2bin(date[RX8025_REG_MDAY] & 0x3f); in rx8025_get_time() 238 dt->tm_mon = bcd2bin(date[RX8025_REG_MONTH] & 0x1f) - 1; in rx8025_get_time() 239 dt->tm_year = bcd2bin(date[RX8025_REG_YEAR]) + 100; in rx8025_get_time() 241 dev_dbg(dev, "%s: date %ptRr\n", __func__, dt); in rx8025_get_time() 246 static int rx8025_set_time(struct device *dev, struct rtc_time *dt) in rx8025_get_time() 214 rx8025_get_time(struct device * dev,struct rtc_time * dt) rx8025_get_time() argument 248 rx8025_set_time(struct device * dev,struct rtc_time * dt) rx8025_set_time() argument [all...] |
| /linux/Documentation/devicetree/bindings/clock/ |
| H A D | qcom,sm8450-gpucc.yaml | 18 include/dt-bindings/clock/qcom,eliza-gpucc.h 19 include/dt-bindings/clock/qcom,glymur-gpucc.h 20 include/dt-bindings/clock/qcom,kaanapali-gpucc.h 21 include/dt-bindings/clock/qcom,milos-gpucc.h 22 include/dt-bindings/clock/qcom,nord-gpu2cc.h 23 include/dt-bindings/clock/qcom,nord-gpucc.h 24 include/dt-bindings/clock/qcom,sar2130p-gpucc.h 25 include/dt-bindings/clock/qcom,sm4450-gpucc.h 26 include/dt-bindings/clock/qcom,sm8450-gpucc.h 27 include/dt [all...] |
| H A D | qcom,sm8450-videocc.yaml | 18 include/dt-bindings/clock/qcom,glymur-videocc.h 19 include/dt-bindings/clock/qcom,hawi-videocc.h 20 include/dt-bindings/clock/qcom,kaanapali-videocc.h 21 include/dt-bindings/clock/qcom,maili-videocc.h 22 include/dt-bindings/clock/qcom,nord-videocc.h 23 include/dt-bindings/clock/qcom,sm8450-videocc.h 24 include/dt-bindings/clock/qcom,sm8650-videocc.h 25 include/dt-bindings/clock/qcom,sm8750-videocc.h 26 include/dt-bindings/clock/qcom,x1p42100-videocc.h 87 #include <dt [all...] |
| H A D | qcom,sm8450-camcc.yaml | 19 include/dt-bindings/clock/qcom,hawi-camcc.h 20 include/dt-bindings/clock/qcom,kaanapali-camcc.h 21 include/dt-bindings/clock/qcom,kaanapali-cambistmclkcc.h 22 include/dt-bindings/clock/qcom,nord-camcc.h 23 include/dt-bindings/clock/qcom,sm8450-camcc.h 24 include/dt-bindings/clock/qcom,sm8550-camcc.h 25 include/dt-bindings/clock/qcom,sm8650-camcc.h 26 include/dt-bindings/clock/qcom,sm8750-cambistmclkcc.h 27 include/dt-bindings/clock/qcom,sm8750-camcc.h 111 #include <dt [all...] |
| H A D | qcom,sm8550-dispcc.yaml | 18 - include/dt-bindings/clock/qcom,kaanapali-dispcc.h 19 - include/dt-bindings/clock/qcom,nord-dispcc.h 20 - include/dt-bindings/clock/qcom,sm8550-dispcc.h 21 - include/dt-bindings/clock/qcom,sm8650-dispcc.h 22 - include/dt-bindings/clock/qcom,sm8750-dispcc.h 23 - include/dt-bindings/clock/qcom,x1e80100-dispcc.h 78 #include <dt-bindings/clock/qcom,sm8550-gcc.h> 79 #include <dt-bindings/clock/qcom,rpmh.h> 80 #include <dt-bindings/power/qcom,rpmhpd.h>
|
| H A D | qcom,sm8550-tcsr.yaml | 18 - include/dt-bindings/clock/qcom,eliza-tcsr.h 19 - include/dt-bindings/clock/qcom,hawi-tcsrcc.h 20 - include/dt-bindings/clock/qcom,nord-tcsrcc.h 21 - include/dt-bindings/clock/qcom,sm8550-tcsr.h 22 - include/dt-bindings/clock/qcom,sm8650-tcsr.h 23 - include/dt-bindings/clock/qcom,sm8750-tcsr.h 67 #include <dt-bindings/clock/qcom,rpmh.h>
|
| /linux/drivers/perf/ |
| H A D | arm-ccn.c | 119 #define CCN_NUM_XP_WATCHPOINTS 2 /* See DT.dbg_id.num_watchpoints */ 120 #define CCN_NUM_PMU_EVENT_COUNTERS 8 /* See DT.dbg_id.num_pmucntr */ 142 struct arm_ccn_dt, pmu), struct arm_ccn, dt) 182 struct arm_ccn_dt dt; member 450 return &ccn->dt.cmp_mask[i].l; in arm_ccn_pmu_get_cmp_mask() 452 return &ccn->dt.cmp_mask[i].h; in arm_ccn_pmu_get_cmp_mask() 540 return sysfs_emit(buf, "%*pbl\n", cpumask_pr_args(cpumask_of(ccn->dt.cpu))); in arm_ccn_pmu_cpumask_show() 636 ccn->dt.pmu_counters_mask)) in arm_ccn_pmu_event_alloc() 640 ccn->dt.pmu_counters[CCN_IDX_PMU_CYCLE_COUNTER].event = event; in arm_ccn_pmu_event_alloc() 646 hw->idx = arm_ccn_pmu_alloc_bit(ccn->dt in arm_ccn_pmu_event_alloc() 1147 arm_ccn_pmu_overflow_handler(struct arm_ccn_dt * dt) arm_ccn_pmu_overflow_handler() argument 1177 struct arm_ccn_dt *dt = container_of(hrtimer, struct arm_ccn_dt, arm_ccn_pmu_timer_handler() local 1192 struct arm_ccn_dt *dt = hlist_entry_safe(node, struct arm_ccn_dt, node); arm_ccn_pmu_offline_cpu() local [all...] |
| /linux/drivers/gpu/drm/i915/gt/ |
| H A D | selftest_gt_pm.c | 55 ktime_t dt[5]; in measure_clocks() local 62 dt[i] = ktime_get(); in measure_clocks() 67 dt[i] = ktime_sub(ktime_get(), dt[i]); in measure_clocks() 71 /* Use the median of both cycle/dt; close enough */ in measure_clocks() 75 sort(dt, 5, sizeof(*dt), cmp_u64, NULL); in measure_clocks() 76 *out_dt = div_u64(dt[1] + 2 * dt[2] + dt[3], 4); in measure_clocks() 102 u64 dt; in live_gt_clocks() local 107 measure_clocks(engine, &cycles, &dt); in live_gt_clocks() 110 expected = intel_gt_ns_to_clock_interval(engine->gt, dt); in live_gt_clocks() 113 engine->name, cycles, time, dt, expected, in live_gt_clocks() [all …]
|
| H A D | selftest_engine_pm.c | 74 u64 *dt, u64 *d_ring, u64 *d_ctx) in __measure_timestamps() argument 119 *dt = local_clock(); in __measure_timestamps() 121 *dt = local_clock() - *dt; in __measure_timestamps() 141 u64 s_ring[COUNT], s_ctx[COUNT], st[COUNT], d_ring, d_ctx, dt; in __live_engine_timestamps() local 158 dt = trifilter(st); in __live_engine_timestamps() 163 engine->name, dt, in __live_engine_timestamps() 168 if (3 * dt > 4 * d_ring || 4 * dt < 3 * d_ring) { in __live_engine_timestamps() 221 ktime_t start, unused, dt; in __spin_until_busier() local 263 ktime_t de, dt; live_engine_busy_stats() local [all...] |
| /linux/Documentation/translations/pt_BR/process/ |
| H A D | maintainer-devicetree.rst | 20 os patches são revisados e aplicados pelos mantenedores de DT. 23 os patches são revisados pelos mantenedores de DT, mas devem ser aplicados 29 os mantenedores de DT podem fazer comentários, mas, em geral, não se espera 40 mantenedores de DT. 45 - **Needs ACK**: aguardando revisão dos mantenedores de DT. 46 - **Handled Elsewhere**: patch não relacionado a DT; não será revisado aqui. 48 - **Changes Requested**: o patch foi revisado e os mantenedores de DT esperam 50 - **Accepted**: o patch foi revisado e aplicado pelos mantenedores de DT em 54 mantenedores de DT esperam que outra pessoa o aplique. 67 2. Pings, por exemplo, quando um patch foi revisado pelos mantenedores de DT, [all …]
|
| /linux/Documentation/devicetree/bindings/ |
| H A D | Makefile | 2 DT_DOC_CHECKER ?= dt-doc-validate 3 DT_EXTRACT_EX ?= dt-extract-example 4 DT_MK_SCHEMA ?= dt-mk-schema 49 DT_CHK_STYLE = $(srctree)/scripts/dtc/dt-check-style 54 # $PARALLELISM, which dt-check-style picks up to size its worker pool. 77 targets += .dt-binding.checked .yamllint.checked .dt-style.checked 81 $(obj)/.dt-binding.checked: $(DT_DOCS) FORCE 84 $(obj)/.dt-style.checked: $(DT_DOCS) FORCE 97 $(Q)$(srctree)/scripts/dtc/dt-extract-compatibles $(srctree) | xargs dt-check-compatible -v -s $< 100 dt_binding_check_one: $(obj)/.dt-binding.checked $(obj)/.yamllint.checked $(obj)/.dt-style.checked
|
| /linux/Documentation/devicetree/bindings/iommu/ |
| H A D | mediatek,iommu.yaml | 136 dt-binding/memory/mediatek,mt8188-memory-port.h for mt8188, 137 dt-binding/memory/mediatek,mt8189-memory-port.h for mt8189, 138 dt-binding/memory/mt2701-larb-port.h for mt2701 and mt7623, 139 dt-binding/memory/mt2712-larb-port.h for mt2712, 140 dt-binding/memory/mt6779-larb-port.h for mt6779, 141 dt-binding/memory/mt6795-larb-port.h for mt6795, 142 dt-binding/memory/mediatek,mt6893-memory-port.h for mt6893, 143 dt-binding/memory/mt8167-larb-port.h for mt8167, 144 dt-binding/memory/mt8173-larb-port.h for mt8173, 145 dt [all...] |
| /linux/drivers/clocksource/ |
| H A D | timer-digicolor.c | 71 struct digicolor_timer *dt = dc_timer(ce); in dc_timer_disable() local 72 writeb(CONTROL_DISABLE, dt->base + CONTROL(dt->timer_id)); in dc_timer_disable() 77 struct digicolor_timer *dt = dc_timer(ce); in dc_timer_enable() local 78 writeb(CONTROL_ENABLE | mode, dt->base + CONTROL(dt->timer_id)); in dc_timer_enable() 84 struct digicolor_timer *dt = dc_timer(ce); in dc_timer_set_count() local 85 writel(count, dt->base + COUNT(dt->timer_id)); in dc_timer_set_count() 103 struct digicolor_timer *dt in digicolor_clkevt_set_periodic() local [all...] |
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | netcnt_prog.c | 30 __u64 ts, dt; in bpf_nextcnt() local 50 dt = ts - percpu_cnt->prev_ts; in bpf_nextcnt() 52 dt *= MAX_BPS; in bpf_nextcnt() 53 dt /= NS_PER_SEC; in bpf_nextcnt() 55 if (cnt->bytes + percpu_cnt->bytes - percpu_cnt->prev_bytes < dt) in bpf_nextcnt() 60 if (dt > REFRESH_TIME_NS) { in bpf_nextcnt()
|