/linux/drivers/thunderbolt/ |
A D | dma_test.c | 125 tb_xdomain_release_in_hopid(dt->xd, dt->rx_hopid); in dma_test_free_rings() 130 tb_xdomain_release_out_hopid(dt->xd, dt->tx_hopid); in dma_test_free_rings() 148 if (dt->packets_to_send && dt->packets_to_receive) in dma_test_start_rings() 194 ret = tb_xdomain_enable_paths(dt->xd, dt->tx_hopid, in dma_test_start_rings() 195 dt->tx_ring ? dt->tx_ring->hop : 0, in dma_test_start_rings() 197 dt->rx_ring ? dt->rx_ring->hop : 0); in dma_test_start_rings() 221 dt->tx_ring ? dt->tx_ring->hop : 0, in dma_test_stop_rings() 223 dt->rx_ring ? dt->rx_ring->hop : 0); in dma_test_stop_rings() 490 if (dt->link_speed && dt->xd->link_speed != dt->link_speed) { in dma_test_check_errors() 493 dt->xd->link_width != dt->link_width) { in dma_test_check_errors() [all …]
|
/linux/drivers/mtd/nand/raw/ |
A D | denali_dt.c | 116 struct denali_dt *dt; in denali_dt_probe() local 122 dt = devm_kzalloc(dev, sizeof(*dt), GFP_KERNEL); in denali_dt_probe() 123 if (!dt) in denali_dt_probe() 125 denali = &dt->controller; in denali_dt_probe() 150 if (IS_ERR(dt->clk)) in denali_dt_probe() 151 return PTR_ERR(dt->clk); in denali_dt_probe() 154 if (IS_ERR(dt->clk_x)) in denali_dt_probe() 158 if (IS_ERR(dt->clk_ecc)) in denali_dt_probe() 162 if (IS_ERR(dt->rst)) in denali_dt_probe() 163 return PTR_ERR(dt->rst); in denali_dt_probe() [all …]
|
/linux/drivers/video/ |
A D | of_display_timing.c | 58 struct display_timing *dt) in of_parse_display_timing() argument 63 memset(dt, 0, sizeof(*dt)); in of_parse_display_timing() 75 dt->flags = 0; in of_parse_display_timing() 94 dt->flags |= dt->flags & DISPLAY_FLAGS_PIXDATA_POSEDGE ? in of_parse_display_timing() 99 dt->flags |= DISPLAY_FLAGS_INTERLACED; in of_parse_display_timing() 103 dt->flags |= DISPLAY_FLAGS_DOUBLECLK; in of_parse_display_timing() 120 struct display_timing *dt) in of_get_display_timing() argument 199 struct display_timing *dt; in of_get_display_timings() local 202 dt = kzalloc(sizeof(*dt), GFP_KERNEL); in of_get_display_timings() 203 if (!dt) { in of_get_display_timings() [all …]
|
A D | videomode.c | 16 vm->pixelclock = dt->pixelclock.typ; in videomode_from_timing() 17 vm->hactive = dt->hactive.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() 24 vm->vback_porch = dt->vback_porch.typ; in videomode_from_timing() 25 vm->vsync_len = dt->vsync_len.typ; in videomode_from_timing() 27 vm->flags = dt->flags; in videomode_from_timing() 34 struct display_timing *dt; in videomode_from_timings() local 37 if (!dt) in videomode_from_timings() [all …]
|
/linux/drivers/rtc/ |
A D | rtc-max6902.c | 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() 89 dt->tm_year = dt->tm_year + 1900; in max6902_set_time() [all …]
|
A D | rtc-max6916.c | 66 dt->tm_sec = bcd2bin(buf[0]); in max6916_read_time() 67 dt->tm_min = bcd2bin(buf[1]); 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() 82 if (dt->tm_year < 100 || dt->tm_year > 199) { in max6916_set_time() 84 dt->tm_year + 1900); in max6916_set_time() 89 buf[1] = bin2bcd(dt->tm_sec); in max6916_set_time() 90 buf[2] = bin2bcd(dt->tm_min); in max6916_set_time() 92 buf[4] = bin2bcd(dt->tm_mday); in max6916_set_time() [all …]
|
A D | rtc-v3020.c | 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() 234 dev_dbg(dev, "tm_min : %i\n", dt->tm_min); in v3020_read_time() 235 dev_dbg(dev, "tm_sec : %i\n", dt->tm_sec); in v3020_read_time() 237 dev_dbg(dev, "tm_mon : %i\n", dt->tm_mon); in v3020_read_time() [all …]
|
A D | rtc-ds1347.c | 78 dt->tm_sec = bcd2bin(buf[0]); in ds1347_read_time() 79 dt->tm_min = bcd2bin(buf[1] & 0x7f); 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() 101 buf[0] = bin2bcd(dt->tm_sec); in ds1347_set_time() 102 buf[1] = bin2bcd(dt->tm_min); in ds1347_set_time() 104 buf[3] = bin2bcd(dt->tm_mday); in ds1347_set_time() 105 buf[4] = bin2bcd(dt->tm_mon + 1); in ds1347_set_time() 106 buf[5] = bin2bcd(dt->tm_wday + 1); in ds1347_set_time() [all …]
|
A D | rtc-ds1390.c | 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() 163 chip->txrx_buf[1] = bin2bcd(dt->tm_sec); in ds1390_set_time() 164 chip->txrx_buf[2] = bin2bcd(dt->tm_min); in ds1390_set_time() 165 chip->txrx_buf[3] = bin2bcd(dt->tm_hour); in ds1390_set_time() 166 chip->txrx_buf[4] = bin2bcd(dt->tm_wday); in ds1390_set_time() 167 chip->txrx_buf[5] = bin2bcd(dt->tm_mday); in ds1390_set_time() [all …]
|
A D | rtc-r9701.c | 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() 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() 95 ret = ret ? ret : write_reg(dev, RSECCNT, bin2bcd(dt->tm_sec)); in r9701_set_datetime() 96 ret = ret ? ret : write_reg(dev, RDAYCNT, bin2bcd(dt->tm_mday)); in r9701_set_datetime() [all …]
|
A D | rtc-pcf8583.c | 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() 95 buf[3] = bin2bcd(dt->tm_sec); in pcf8583_set_datetime() 96 buf[4] = bin2bcd(dt->tm_min); in pcf8583_set_datetime() 97 buf[5] = bin2bcd(dt->tm_hour); in pcf8583_set_datetime() 101 buf[6] = bin2bcd(dt->tm_mday) | (dt->tm_year << 6); in pcf8583_set_datetime() [all …]
|
A D | rtc-rx8025.c | 227 dt->tm_sec = bcd2bin(date[RX8025_REG_SEC] & 0x7f); in rx8025_get_time() 228 dt->tm_min = bcd2bin(date[RX8025_REG_MIN] & 0x7f); in rx8025_get_time() 237 dt->tm_year = bcd2bin(date[RX8025_REG_YEAR]) + 100; in rx8025_get_time() 239 dev_dbg(dev, "%s: date %ptRr\n", __func__, dt); in rx8025_get_time() 255 date[RX8025_REG_SEC] = bin2bcd(dt->tm_sec); in rx8025_set_time() 256 date[RX8025_REG_MIN] = bin2bcd(dt->tm_min); in rx8025_set_time() 258 date[RX8025_REG_HOUR] = bin2bcd(dt->tm_hour); in rx8025_set_time() 261 | bin2bcd((dt->tm_hour + 11) % 12 + 1); in rx8025_set_time() 263 date[RX8025_REG_WDAY] = bin2bcd(dt->tm_wday); in rx8025_set_time() 264 date[RX8025_REG_MDAY] = bin2bcd(dt->tm_mday); in rx8025_set_time() [all …]
|
A D | rtc-rx8010.c | 126 dt->tm_sec = bcd2bin(date[RX8010_SEC - RX8010_SEC] & 0x7f); in rx8010_get_time() 127 dt->tm_min = bcd2bin(date[RX8010_MIN - RX8010_SEC] & 0x7f); in rx8010_get_time() 131 dt->tm_year = bcd2bin(date[RX8010_YEAR - RX8010_SEC]) + 100; in rx8010_get_time() 132 dt->tm_wday = ffs(date[RX8010_WDAY - RX8010_SEC] & 0x7f); in rx8010_get_time() 148 date[RX8010_SEC - RX8010_SEC] = bin2bcd(dt->tm_sec); in rx8010_set_time() 149 date[RX8010_MIN - RX8010_SEC] = bin2bcd(dt->tm_min); in rx8010_set_time() 150 date[RX8010_HOUR - RX8010_SEC] = bin2bcd(dt->tm_hour); in rx8010_set_time() 151 date[RX8010_MDAY - RX8010_SEC] = bin2bcd(dt->tm_mday); in rx8010_set_time() 152 date[RX8010_MONTH - RX8010_SEC] = bin2bcd(dt->tm_mon + 1); in rx8010_set_time() 153 date[RX8010_YEAR - RX8010_SEC] = bin2bcd(dt->tm_year - 100); in rx8010_set_time() [all …]
|
A D | rtc-ds1343.c | 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() 224 buf[0] = bin2bcd(dt->tm_sec); in ds1343_set_time() 225 buf[1] = bin2bcd(dt->tm_min); in ds1343_set_time() 227 buf[3] = bin2bcd(dt->tm_wday + 1); in ds1343_set_time() 228 buf[4] = bin2bcd(dt->tm_mday); in ds1343_set_time() 229 buf[5] = bin2bcd(dt->tm_mon + 1); in ds1343_set_time() [all …]
|
/linux/drivers/iio/ |
A D | industrialio-sw-device.c | 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() 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() 102 if (!dt) { in iio_sw_device_create() 106 d = dt->ops->probe(name); in iio_sw_device_create() 110 d->device_type = dt; in iio_sw_device_create() 114 module_put(dt->owner); in iio_sw_device_create() 123 dt->ops->remove(d); in iio_sw_device_destroy() [all …]
|
/linux/Documentation/devicetree/bindings/clock/ |
A D | qcom,gcc.yaml | 18 - 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 25 - dt-bindings/clock/qcom,gcc-msm8939.h 26 - dt-bindings/clock/qcom,gcc-msm8953.h 27 - dt-bindings/reset/qcom,gcc-msm8939.h 28 - dt-bindings/clock/qcom,gcc-msm8660.h 29 - dt-bindings/reset/qcom,gcc-msm8660.h [all …]
|
/linux/drivers/perf/ |
A D | arm-ccn.c | 183 struct arm_ccn_dt dt; member 750 event->cpu = ccn->dt.cpu; in arm_ccn_pmu_event_init() 1203 struct arm_ccn *ccn = container_of(dt, struct arm_ccn, dt); in arm_ccn_pmu_offline_cpu() 1206 if (cpu != dt->cpu) in arm_ccn_pmu_offline_cpu() 1212 dt->cpu = target; in arm_ccn_pmu_offline_cpu() 1254 if (ccn->dt.id == 0) { in arm_ccn_pmu_init() 1258 ccn->dt.id); in arm_ccn_pmu_init() 1266 ccn->dt.pmu = (struct pmu) { in arm_ccn_pmu_init() 1302 &ccn->dt.node); in arm_ccn_pmu_init() 1312 &ccn->dt.node); in arm_ccn_pmu_init() [all …]
|
/linux/drivers/gpu/drm/i915/gt/ |
A D | selftest_gt_pm.c | 41 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() 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() 120 if (9 * time < 8 * dt || 8 * time > 9 * dt) { in live_gt_clocks()
|
A D | selftest_engine_pm.c | 117 *dt = local_clock(); in __measure_timestamps() 119 *dt = local_clock() - *dt; in __measure_timestamps() 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() 289 dt = ktime_sub(t[1], t[0]); in live_engine_busy_stats() 290 if (100 * de < 95 * dt || 95 * de > 100 * dt) { in live_engine_busy_stats() [all …]
|
/linux/drivers/block/drbd/ |
A D | drbd_proc.c | 142 dt = (jiffies - device->rs_mark_time[i]) / HZ; in drbd_syncer_progress() 143 if (dt > 180) in drbd_syncer_progress() 146 if (!dt) in drbd_syncer_progress() 147 dt++; in drbd_syncer_progress() 154 dbdt = Bit2KB(db/dt); in drbd_syncer_progress() 163 if (!dt) in drbd_syncer_progress() 164 dt++; in drbd_syncer_progress() 166 dbdt = Bit2KB(db/dt); in drbd_syncer_progress() 175 if (dt == 0) in drbd_syncer_progress() 176 dt = 1; in drbd_syncer_progress() [all …]
|
/linux/drivers/clocksource/ |
A D | timer-digicolor.c | 74 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/lib/zstd/common/ |
A D | fse_decompress.c | 66 void FSE_freeDTable (FSE_DTable* dt) in FSE_freeDTable() argument 68 ZSTD_free(dt); in FSE_freeDTable() 101 ZSTD_memcpy(dt, &DTableH, sizeof(DTableH)); in FSE_buildDTable_internal() 189 void* ptr = dt; in FSE_buildDTable_rle() 191 void* dPtr = dt + 1; in FSE_buildDTable_rle() 207 void* ptr = dt; in FSE_buildDTable_raw() 209 void* dPtr = dt + 1; in FSE_buildDTable_raw() 234 const FSE_DTable* dt, const unsigned fast) in FSE_decompress_usingDTable_generic() argument 248 FSE_initDState(&state1, &bitD, dt); in FSE_decompress_usingDTable_generic() 249 FSE_initDState(&state2, &bitD, dt); in FSE_decompress_usingDTable_generic() [all …]
|
/linux/drivers/macintosh/ |
A D | via-pmu-led.c | 84 struct device_node *dt; in via_pmu_led_init() local 91 dt = of_find_node_by_path("/"); in via_pmu_led_init() 92 if (dt == NULL) in via_pmu_led_init() 94 model = of_get_property(dt, "model", NULL); in via_pmu_led_init() 96 of_node_put(dt); in via_pmu_led_init() 103 of_node_put(dt); in via_pmu_led_init() 107 of_node_put(dt); in via_pmu_led_init()
|
/linux/lib/zstd/decompress/ |
A D | huf_decompress.c | 231 dt[uStart] = D; in HUF_readDTableX1_wksp_bmi2() 240 dt[uStart+0] = D; in HUF_readDTableX1_wksp_bmi2() 241 dt[uStart+1] = D; in HUF_readDTableX1_wksp_bmi2() 285 BYTE const c = dt[val].byte; in HUF_decodeSymbolX1() 286 BIT_skipBits(Dstream, dt[val].nbBits); in HUF_decodeSymbolX1() 700 HUF_fillDTableX2(dt, maxTableLog, in HUF_readDTableX2_wksp() 717 ZSTD_memcpy(op, dt+val, 2); in HUF_decodeSymbolX2() 718 BIT_skipBits(DStream, dt[val].nbBits); in HUF_decodeSymbolX2() 719 return dt[val].length; in HUF_decodeSymbolX2() 726 ZSTD_memcpy(op, dt+val, 1); in HUF_decodeLastSymbolX2() [all …]
|
/linux/Documentation/devicetree/bindings/power/ |
A D | rockchip,power-controller.yaml | 110 "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" 148 #include <dt-bindings/clock/rk3399-cru.h> [all …]
|