Home
last modified time | relevance | path

Searched full:dt (Results 1 – 25 of 4175) sorted by relevance

12345678910>>...167

/Linux-v5.15/drivers/thunderbolt/
Ddma_test.c122 static void dma_test_free_rings(struct dma_test *dt) in dma_test_free_rings() argument
124 if (dt->rx_ring) { in dma_test_free_rings()
125 tb_xdomain_release_in_hopid(dt->xd, dt->rx_hopid); in dma_test_free_rings()
126 tb_ring_free(dt->rx_ring); in dma_test_free_rings()
127 dt->rx_ring = NULL; in dma_test_free_rings()
129 if (dt->tx_ring) { in dma_test_free_rings()
130 tb_xdomain_release_out_hopid(dt->xd, dt->tx_hopid); in dma_test_free_rings()
131 tb_ring_free(dt->tx_ring); in dma_test_free_rings()
132 dt->tx_ring = NULL; in dma_test_free_rings()
136 static int dma_test_start_rings(struct dma_test *dt) in dma_test_start_rings() argument
[all …]
/Linux-v5.15/drivers/mtd/nand/raw/
Ddenali_dt.c3 * NAND Flash Controller Device Driver for DT
117 struct denali_dt *dt; in denali_dt_probe() local
123 dt = devm_kzalloc(dev, sizeof(*dt), GFP_KERNEL); in denali_dt_probe()
124 if (!dt) in denali_dt_probe()
126 denali = &dt->controller; in denali_dt_probe()
152 dt->clk = devm_clk_get(dev, "nand"); in denali_dt_probe()
153 if (IS_ERR(dt->clk)) in denali_dt_probe()
154 return PTR_ERR(dt->clk); in denali_dt_probe()
156 dt->clk_x = devm_clk_get(dev, "nand_x"); in denali_dt_probe()
157 if (IS_ERR(dt->clk_x)) in denali_dt_probe()
[all …]
/Linux-v5.15/drivers/video/
Dof_display_timing.c55 * @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 …]
Dvideomode.c13 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-v5.15/Documentation/devicetree/bindings/clock/
Dqcom,gcc.yaml18 - dt-bindings/clock/qcom,gcc-apq8084.h
19 - dt-bindings/reset/qcom,gcc-apq8084.h
20 - dt-bindings/clock/qcom,gcc-ipq4019.h
21 - dt-bindings/clock/qcom,gcc-ipq6018.h
22 - dt-bindings/reset/qcom,gcc-ipq6018.h
23 - dt-bindings/clock/qcom,gcc-ipq806x.h (qcom,gcc-ipq8064)
24 - dt-bindings/reset/qcom,gcc-ipq806x.h (qcom,gcc-ipq8064)
25 - dt-bindings/clock/qcom,gcc-msm8939.h
26 - dt-bindings/clock/qcom,gcc-msm8953.h
27 - dt-bindings/reset/qcom,gcc-msm8939.h
[all …]
/Linux-v5.15/drivers/rtc/
Drtc-max6902.c52 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 …]
Drtc-max6916.c53 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 …]
Drtc-v3020.c208 static int v3020_read_time(struct device *dev, struct rtc_time *dt) in v3020_read_time() argument
218 dt->tm_sec = bcd2bin(tmp); in v3020_read_time()
220 dt->tm_min = bcd2bin(tmp); in v3020_read_time()
222 dt->tm_hour = bcd2bin(tmp); in v3020_read_time()
224 dt->tm_mday = bcd2bin(tmp); in v3020_read_time()
226 dt->tm_mon = bcd2bin(tmp) - 1; in v3020_read_time()
228 dt->tm_wday = bcd2bin(tmp); in v3020_read_time()
230 dt->tm_year = bcd2bin(tmp)+100; in v3020_read_time()
233 dev_dbg(dev, "tm_hour: %i\n", dt->tm_hour); in v3020_read_time()
234 dev_dbg(dev, "tm_min : %i\n", dt->tm_min); in v3020_read_time()
[all …]
Drtc-ds1347.c50 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 …]
Drtc-ds1390.c117 "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 …]
Drtc-r9701.c68 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 …]
Drtc-pcf8583.c49 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->tm_sec); in pcf8583_set_datetime()
[all …]
/Linux-v5.15/drivers/iio/
Dindustrialio-sw-device.c68 void iio_unregister_sw_device_type(struct iio_sw_device_type *dt) in iio_unregister_sw_device_type() argument
73 iter = __iio_find_sw_device_type(dt->name, strlen(dt->name)); in iio_unregister_sw_device_type()
75 list_del(&dt->list); in iio_unregister_sw_device_type()
78 configfs_unregister_default_group(dt->group); in iio_unregister_sw_device_type()
85 struct iio_sw_device_type *dt; in iio_get_sw_device_type() local
88 dt = __iio_find_sw_device_type(name, strlen(name)); in iio_get_sw_device_type()
89 if (dt && !try_module_get(dt->owner)) in iio_get_sw_device_type()
90 dt = NULL; in iio_get_sw_device_type()
93 return dt; in iio_get_sw_device_type()
99 struct iio_sw_device_type *dt; in iio_sw_device_create() local
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/
Dwriting-schema.rst22 URI typically containing the binding's filename and path. For DT schema, it must
37 A DT specific property. Contains a list of email address(es)
57 A set of sub-schema defining all the DT properties for the
61 A property can also define a child DT node with child properties defined
70 A list of DT properties from the 'properties' section that
82 The 'properties' section of the schema contains all the DT properties for a
85 validation of DT files.
95 The Devicetree schemas don't exactly match the YAML encoded DT data produced by
116 The DT schema project must be installed in order to validate the DT schema
117 binding documents and validate DTS files using the DT schema. The DT schema
[all …]
Dsubmitting-patches.rst4 Submitting Devicetree (DT) binding patches
13 1) The Documentation/ and include/dt-bindings/ portion of the patch should
16 "dt-bindings: <binding dir>: ..."
22 2) DT binding files are written in DT schema format using json-schema
23 vocabulary and YAML file format. The DT binding files must pass validation
31 3) DT binding files should be dual licensed. The preferred license tag is
38 and Cc: the DT maintainers. Use scripts/get_maintainer.pl to identify
39 all of the DT maintainers.
45 previously documented in the corresponding DT binding text file
50 ("checkpatch: add DT compatible string documentation checks"). ]
/Linux-v5.15/drivers/perf/
Darm-ccn.c120 #define CCN_NUM_XP_WATCHPOINTS 2 /* See DT.dbg_id.num_watchpoints */
121 #define CCN_NUM_PMU_EVENT_COUNTERS 8 /* See DT.dbg_id.num_pmucntr */
143 struct arm_ccn_dt, pmu), struct arm_ccn, dt)
183 struct arm_ccn_dt dt; member
460 return &ccn->dt.cmp_mask[i].l; in arm_ccn_pmu_get_cmp_mask()
462 return &ccn->dt.cmp_mask[i].h; in arm_ccn_pmu_get_cmp_mask()
550 return cpumap_print_to_pagebuf(true, buf, cpumask_of(ccn->dt.cpu)); in arm_ccn_pmu_cpumask_show()
646 ccn->dt.pmu_counters_mask)) in arm_ccn_pmu_event_alloc()
650 ccn->dt.pmu_counters[CCN_IDX_PMU_CYCLE_COUNTER].event = event; in arm_ccn_pmu_event_alloc()
656 hw->idx = arm_ccn_pmu_alloc_bit(ccn->dt.pmu_counters_mask, in arm_ccn_pmu_event_alloc()
[all …]
/Linux-v5.15/drivers/gpu/drm/i915/gt/
Dselftest_gt_pm.c41 ktime_t dt[5]; in measure_clocks() local
48 dt[i] = ktime_get(); in measure_clocks()
52 dt[i] = ktime_sub(ktime_get(), dt[i]); in measure_clocks()
57 /* Use the median of both cycle/dt; close enough */ in measure_clocks()
61 sort(dt, 5, sizeof(*dt), cmp_u64, NULL); in measure_clocks()
62 *out_dt = div_u64(dt[1] + 2 * dt[2] + dt[3], 4); in measure_clocks()
106 u64 dt; in live_gt_clocks() local
111 measure_clocks(engine, &cycles, &dt); in live_gt_clocks()
114 expected = intel_gt_ns_to_clock_interval(engine->gt, dt); in live_gt_clocks()
117 engine->name, cycles, time, dt, expected, in live_gt_clocks()
[all …]
Dselftest_engine_pm.c72 u64 *dt, u64 *d_ring, u64 *d_ctx) in __measure_timestamps() argument
117 *dt = local_clock(); in __measure_timestamps()
119 *dt = local_clock() - *dt; in __measure_timestamps()
139 u64 s_ring[COUNT], s_ctx[COUNT], st[COUNT], d_ring, d_ctx, dt; in __live_engine_timestamps() local
156 dt = trifilter(st); in __live_engine_timestamps()
161 engine->name, dt, in __live_engine_timestamps()
166 if (3 * dt > 4 * d_ring || 4 * dt < 3 * d_ring) { in __live_engine_timestamps()
235 ktime_t de, dt; in live_engine_busy_stats() local
257 dt = ktime_sub(t[1], t[0]); in live_engine_busy_stats()
261 de, (int)div64_u64(100 * de, dt), dt); in live_engine_busy_stats()
[all …]
/Linux-v5.15/crypto/
Dansi_cprng.c31 * Note: DT is our counter value
43 unsigned char DT[DEFAULT_BLK_SZ]; member
91 hexdump("Input DT: ", ctx->DT, DEFAULT_BLK_SZ); in _get_more_prng_bytes()
106 memcpy(tmp, ctx->DT, DEFAULT_BLK_SZ); in _get_more_prng_bytes()
161 * Now update our DT value in _get_more_prng_bytes()
164 ctx->DT[i] += 1; in _get_more_prng_bytes()
165 if (ctx->DT[i] != 0) in _get_more_prng_bytes()
172 hexdump("Output DT: ", ctx->DT, DEFAULT_BLK_SZ); in _get_more_prng_bytes()
278 const unsigned char *V, const unsigned char *DT) in reset_prng_context() argument
296 if (DT) in reset_prng_context()
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/power/
Drockchip,power-controller.yaml110 "include/dt-bindings/power/px30-power.h"
111 "include/dt-bindings/power/rk3036-power.h"
112 "include/dt-bindings/power/rk3066-power.h"
113 "include/dt-bindings/power/rk3128-power.h"
114 "include/dt-bindings/power/rk3188-power.h"
115 "include/dt-bindings/power/rk3228-power.h"
116 "include/dt-bindings/power/rk3288-power.h"
117 "include/dt-bindings/power/rk3328-power.h"
118 "include/dt-bindings/power/rk3366-power.h"
119 "include/dt-bindings/power/rk3368-power.h"
[all …]
/Linux-v5.15/drivers/cpufreq/
Dimx-cpufreq-dt.c20 #include "cpufreq-dt.h"
32 /* cpufreq-dt device registered by imx-cpufreq-dt */
101 dt_pdev = platform_device_register_data(NULL, "cpufreq-dt", in imx_cpufreq_dt_probe()
107 dev_err(&pdev->dev, "Failed to register cpufreq-dt: %d\n", ret); in imx_cpufreq_dt_probe()
137 * match any OPP defined in DT. So clamp to minimum OPP defined in in imx_cpufreq_dt_probe()
138 * DT to avoid warning for "no OPPs". in imx_cpufreq_dt_probe()
164 &pdev->dev, "cpufreq-dt", -1, NULL, 0); in imx_cpufreq_dt_probe()
168 dev_err(&pdev->dev, "Failed to register cpufreq-dt: %d\n", ret); in imx_cpufreq_dt_probe()
190 .name = "imx-cpufreq-dt",
195 MODULE_ALIAS("platform:imx-cpufreq-dt");
/Linux-v5.15/drivers/clocksource/
Dtimer-digicolor.c74 struct digicolor_timer *dt = dc_timer(ce); in dc_timer_disable() local
75 writeb(CONTROL_DISABLE, dt->base + CONTROL(dt->timer_id)); in dc_timer_disable()
80 struct digicolor_timer *dt = dc_timer(ce); in dc_timer_enable() local
81 writeb(CONTROL_ENABLE | mode, dt->base + CONTROL(dt->timer_id)); in dc_timer_enable()
87 struct digicolor_timer *dt = dc_timer(ce); in dc_timer_set_count() local
88 writel(count, dt->base + COUNT(dt->timer_id)); in dc_timer_set_count()
106 struct digicolor_timer *dt = dc_timer(ce); in digicolor_clkevt_set_periodic() local
109 dc_timer_set_count(ce, dt->ticks_per_jiffy); in digicolor_clkevt_set_periodic()
/Linux-v5.15/lib/zstd/
Dfse_decompress.c88 size_t FSE_buildDTable_wksp(FSE_DTable *dt, const short *normalizedCounter, unsigned maxSymbolValue… in FSE_buildDTable_wksp() argument
90 void *const tdPtr = dt + 1; /* because *dt is unsigned, 32-bits aligned on 32-bits */ in FSE_buildDTable_wksp()
125 memcpy(dt, &DTableH, sizeof(DTableH)); in FSE_buildDTable_wksp()
163 size_t FSE_buildDTable_rle(FSE_DTable *dt, BYTE symbolValue) in FSE_buildDTable_rle() argument
165 void *ptr = dt; in FSE_buildDTable_rle()
167 void *dPtr = dt + 1; in FSE_buildDTable_rle()
180 size_t FSE_buildDTable_raw(FSE_DTable *dt, unsigned nbBits) in FSE_buildDTable_raw() argument
182 void *ptr = dt; in FSE_buildDTable_raw()
184 void *dPtr = dt + 1; in FSE_buildDTable_raw()
207 …able_generic(void *dst, size_t maxDstSize, const void *cSrc, size_t cSrcSize, const FSE_DTable *dt, in FSE_decompress_usingDTable_generic() argument
[all …]
/Linux-v5.15/Documentation/devicetree/
Dusage-model.rst17 The "Open Firmware Device Tree", or simply Devicetree (DT), is a data
23 Structurally, the DT is a tree, or acyclic graph with named nodes, and
45 The DT was originally created by Open Firmware as part of the
57 and 64-bit support, the decision was made to require DT support on all
59 Firmware. To do this, a DT representation called the Flattened Device
63 Device Tree Binary (dtb) and to modify a dtb at boot time. DT was
66 existing non-DT aware firmware.
71 out of mainline (nios) have some level of DT support.
80 The most important thing to understand is that the DT is simply a data
94 Linux uses DT data for three major purposes:
[all …]
/Linux-v5.15/include/trace/events/
Dxen.h383 TP_PROTO(struct desc_struct *dt, int entrynum, u64 desc),
384 TP_ARGS(dt, entrynum, desc),
386 __field(struct desc_struct *, dt)
390 TP_fast_assign(__entry->dt = dt;
394 TP_printk("dt %p entrynum %d entry %016llx",
395 __entry->dt, __entry->entrynum,
400 TP_PROTO(gate_desc *dt, int entrynum, const gate_desc *ent),
401 TP_ARGS(dt, entrynum, ent),
403 __field(gate_desc *, dt)
406 TP_fast_assign(__entry->dt = dt;
[all …]

12345678910>>...167