/linux/drivers/thunderbolt/ |
H 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 : -1, in dma_test_start_rings() 197 dt->rx_ring ? dt->rx_ring->hop : -1); in dma_test_start_rings() 221 dt->tx_ring ? dt->tx_ring->hop : -1, in dma_test_stop_rings() 223 dt->rx_ring ? dt->rx_ring->hop : -1); in dma_test_stop_rings() 491 if (dt->link_speed && dt->xd->link_speed != dt->link_speed) { in dma_test_check_errors() 493 } else if (dt->link_width && dt->link_width != dt->xd->link_width) { in dma_test_check_errors() [all …]
|
/linux/drivers/mtd/nand/raw/ |
H A D | denali_dt.c | 115 struct denali_dt *dt; in denali_dt_probe() local 121 dt = devm_kzalloc(dev, sizeof(*dt), GFP_KERNEL); in denali_dt_probe() 122 if (!dt) in denali_dt_probe() 124 denali = &dt->controller; in denali_dt_probe() 149 if (IS_ERR(dt->clk)) in denali_dt_probe() 150 return PTR_ERR(dt->clk); in denali_dt_probe() 153 if (IS_ERR(dt->clk_x)) in denali_dt_probe() 157 if (IS_ERR(dt->clk_ecc)) in denali_dt_probe() 161 if (IS_ERR(dt->rst)) in denali_dt_probe() 162 return PTR_ERR(dt->rst); in denali_dt_probe() [all …]
|
/linux/drivers/video/ |
H 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 = kmalloc(sizeof(*dt), GFP_KERNEL); in of_get_display_timings() 203 if (!dt) { in of_get_display_timings() [all …]
|
H 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/ptp/ |
H A D | ptp_dfl_tod.c | 283 struct dfl_tod *dt; in dfl_tod_probe() local 285 dt = devm_kzalloc(dev, sizeof(*dt), GFP_KERNEL); in dfl_tod_probe() 286 if (!dt) in dfl_tod_probe() 290 if (IS_ERR(dt->tod_ctrl)) in dfl_tod_probe() 291 return PTR_ERR(dt->tod_ctrl); in dfl_tod_probe() 293 dt->dev = dev; in dfl_tod_probe() 294 spin_lock_init(&dt->tod_lock); in dfl_tod_probe() 295 dev_set_drvdata(dev, dt); in dfl_tod_probe() 299 dt->ptp_clock = ptp_clock_register(&dt->ptp_clock_ops, dev); in dfl_tod_probe() 300 if (IS_ERR(dt->ptp_clock)) in dfl_tod_probe() [all …]
|
/linux/drivers/rtc/ |
H 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 …]
|
H 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 …]
|
H 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 …]
|
H 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 …]
|
H 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 …]
|
H 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 …]
|
/linux/drivers/iio/ |
H 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/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() 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() 116 if (9 * time < 8 * dt || 8 * time > 9 * dt) { in live_gt_clocks()
|
H A D | selftest_engine_pm.c | 119 *dt = local_clock(); in __measure_timestamps() 121 *dt = local_clock() - *dt; in __measure_timestamps() 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 234 if (dt > 10000000) { in __spin_until_busier() 263 ktime_t de, dt; in live_engine_busy_stats() local 289 de, (int)div64_u64(100 * de, dt), dt); in live_engine_busy_stats() 325 if (100 * de < 95 * dt || 95 * de > 100 * dt) { in live_engine_busy_stats() [all …]
|
/linux/drivers/perf/ |
H 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() 1303 &ccn->dt.node); in arm_ccn_pmu_init() 1313 &ccn->dt.node); in arm_ccn_pmu_init() [all …]
|
/linux/Documentation/devicetree/bindings/clock/ |
H A D | qcom,sc7280-lpasscorecc.yaml | 17 include/dt-bindings/clock/qcom,lpasscorecc-sc7280.h 18 include/dt-bindings/clock/qcom,lpassaudiocc-sc7280.h 130 #include <dt-bindings/clock/qcom,rpmh.h> 131 #include <dt-bindings/clock/qcom,gcc-sc7280.h> 133 #include <dt-bindings/clock/qcom,lpasscorecc-sc7280.h> 148 #include <dt-bindings/clock/qcom,rpmh.h> 149 #include <dt-bindings/clock/qcom,gcc-sc7280.h> 162 #include <dt-bindings/clock/qcom,rpmh.h> 163 #include <dt-bindings/clock/qcom,gcc-sc7280.h> 177 #include <dt-bindings/clock/qcom,rpmh.h> [all …]
|
H A D | qcom,gpucc.yaml | 17 include/dt-bindings/clock/qcom,gpucc-sdm845.h 18 include/dt-bindings/clock/qcom,gpucc-sa8775p.h 19 include/dt-bindings/clock/qcom,gpucc-sc7180.h 20 include/dt-bindings/clock/qcom,gpucc-sc7280.h 21 include/dt-bindings/clock/qcom,gpucc-sc8280xp.h 22 include/dt-bindings/clock/qcom,gpucc-sm6350.h 23 include/dt-bindings/clock/qcom,gpucc-sm8150.h 24 include/dt-bindings/clock/qcom,gpucc-sm8250.h 25 include/dt-bindings/clock/qcom,gpucc-sm8350.h 90 #include <dt-bindings/clock/qcom,gcc-sdm845.h> [all …]
|
/linux/drivers/block/drbd/ |
H 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/ |
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 = dc_timer(ce); in digicolor_clkevt_set_periodic() local 106 dc_timer_set_count(ce, dt->ticks_per_jiffy); in digicolor_clkevt_set_periodic()
|
/linux/drivers/macintosh/ |
H 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/common/ |
H 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/arch/x86/kvm/ |
H A D | smm.c | 186 struct desc_ptr dt; in enter_smm_save_state_32() local 204 smram->gdtr.base = dt.address; in enter_smm_save_state_32() 205 smram->gdtr.limit = dt.size; in enter_smm_save_state_32() 209 smram->idtr.limit = dt.size; in enter_smm_save_state_32() 230 struct desc_ptr dt; in enter_smm_save_state_64() local 254 smram->idtr.limit = dt.size; in enter_smm_save_state_64() 260 smram->gdtr.limit = dt.size; in enter_smm_save_state_64() 277 struct desc_ptr dt; in enter_smm() local 324 dt.address = dt.size = 0; in enter_smm() 463 struct desc_ptr dt; in rsm_load_state_32() local [all …]
|
/linux/drivers/clk/at91/ |
H A D | Makefile | 18 obj-$(CONFIG_SOC_AT91RM9200) += at91rm9200.o dt-compat.o 19 obj-$(CONFIG_SOC_AT91SAM9) += at91sam9260.o at91sam9rl.o at91sam9x5.o dt-compat.o 20 obj-$(CONFIG_SOC_AT91SAM9) += at91sam9g45.o dt-compat.o 21 obj-$(CONFIG_SOC_AT91SAM9) += at91sam9n12.o at91sam9x5.o dt-compat.o 23 obj-$(CONFIG_SOC_SAMA5D3) += sama5d3.o dt-compat.o 24 obj-$(CONFIG_SOC_SAMA5D4) += sama5d4.o dt-compat.o 25 obj-$(CONFIG_SOC_SAMA5D2) += sama5d2.o dt-compat.o
|
/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()
|
/linux/Documentation/devicetree/bindings/power/ |
H A D | rockchip,power-controller.yaml | 112 "include/dt-bindings/power/px30-power.h" 113 "include/dt-bindings/power/rk3036-power.h" 114 "include/dt-bindings/power/rk3066-power.h" 115 "include/dt-bindings/power/rk3128-power.h" 116 "include/dt-bindings/power/rk3188-power.h" 117 "include/dt-bindings/power/rk3228-power.h" 118 "include/dt-bindings/power/rk3288-power.h" 119 "include/dt-bindings/power/rk3328-power.h" 120 "include/dt-bindings/power/rk3366-power.h" 154 #include <dt-bindings/clock/rk3399-cru.h> [all …]
|