/Linux-v5.4/drivers/input/misc/ |
D | gp2ap002a00f.c | 39 static int gp2a_report(struct gp2a_data *dt) in gp2a_report() argument 41 int vo = gpio_get_value(dt->pdata->vout_gpio); in gp2a_report() 43 input_report_switch(dt->input, SW_FRONT_PROXIMITY, !vo); in gp2a_report() 44 input_sync(dt->input); in gp2a_report() 51 struct gp2a_data *dt = handle; in gp2a_irq() local 53 gp2a_report(dt); in gp2a_irq() 58 static int gp2a_enable(struct gp2a_data *dt) in gp2a_enable() argument 60 return i2c_smbus_write_byte_data(dt->i2c_client, GP2A_ADDR_OPMOD, in gp2a_enable() 64 static int gp2a_disable(struct gp2a_data *dt) in gp2a_disable() argument 66 return i2c_smbus_write_byte_data(dt->i2c_client, GP2A_ADDR_OPMOD, in gp2a_disable() [all …]
|
/Linux-v5.4/drivers/video/ |
D | of_display_timing.c | 57 struct display_timing *dt) in of_parse_display_timing() argument 62 memset(dt, 0, sizeof(*dt)); in of_parse_display_timing() 64 ret |= parse_timing_property(np, "hback-porch", &dt->hback_porch); in of_parse_display_timing() 65 ret |= parse_timing_property(np, "hfront-porch", &dt->hfront_porch); in of_parse_display_timing() 66 ret |= parse_timing_property(np, "hactive", &dt->hactive); in of_parse_display_timing() 67 ret |= parse_timing_property(np, "hsync-len", &dt->hsync_len); in of_parse_display_timing() 68 ret |= parse_timing_property(np, "vback-porch", &dt->vback_porch); in of_parse_display_timing() 69 ret |= parse_timing_property(np, "vfront-porch", &dt->vfront_porch); in of_parse_display_timing() 70 ret |= parse_timing_property(np, "vactive", &dt->vactive); in of_parse_display_timing() 71 ret |= parse_timing_property(np, "vsync-len", &dt->vsync_len); in of_parse_display_timing() [all …]
|
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-v5.4/drivers/rtc/ |
D | rtc-r9701.c | 68 static int r9701_get_datetime(struct device *dev, struct rtc_time *dt) in r9701_get_datetime() argument 78 memset(dt, 0, sizeof(*dt)); in r9701_get_datetime() 80 dt->tm_sec = bcd2bin(buf[0]); /* RSECCNT */ in r9701_get_datetime() 81 dt->tm_min = bcd2bin(buf[1]); /* RMINCNT */ in r9701_get_datetime() 82 dt->tm_hour = bcd2bin(buf[2]); /* RHRCNT */ in r9701_get_datetime() 84 dt->tm_mday = bcd2bin(buf[3]); /* RDAYCNT */ in r9701_get_datetime() 85 dt->tm_mon = bcd2bin(buf[4]) - 1; /* RMONCNT */ in r9701_get_datetime() 86 dt->tm_year = bcd2bin(buf[5]) + 100; /* RYRCNT */ in r9701_get_datetime() 95 static int r9701_set_datetime(struct device *dev, struct rtc_time *dt) in r9701_set_datetime() argument 99 year = dt->tm_year + 1900; in r9701_set_datetime() [all …]
|
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 …]
|
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 …]
|
D | rtc-ds1347.c | 44 static int ds1347_read_time(struct device *dev, struct rtc_time *dt) in ds1347_read_time() argument 57 dt->tm_sec = bcd2bin(buf[0]); in ds1347_read_time() 58 dt->tm_min = bcd2bin(buf[1]); in ds1347_read_time() 59 dt->tm_hour = bcd2bin(buf[2] & 0x3F); in ds1347_read_time() 60 dt->tm_mday = bcd2bin(buf[3]); in ds1347_read_time() 61 dt->tm_mon = bcd2bin(buf[4]) - 1; in ds1347_read_time() 62 dt->tm_wday = bcd2bin(buf[5]) - 1; in ds1347_read_time() 63 dt->tm_year = bcd2bin(buf[6]) + 100; in ds1347_read_time() 68 static int ds1347_set_time(struct device *dev, struct rtc_time *dt) in ds1347_set_time() argument 76 buf[0] = bin2bcd(dt->tm_sec); in ds1347_set_time() [all …]
|
D | rtc-v3020.c | 208 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 …]
|
D | rtc-ds1390.c | 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 163 chip->txrx_buf[1] = bin2bcd(dt->tm_sec); in ds1390_set_time() [all …]
|
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->tm_sec); in pcf8583_set_datetime() [all …]
|
D | rtc-rx8025.c | 179 static int rx8025_get_time(struct device *dev, struct rtc_time *dt) in rx8025_get_time() argument 195 dt->tm_sec = bcd2bin(date[RX8025_REG_SEC] & 0x7f); in rx8025_get_time() 196 dt->tm_min = bcd2bin(date[RX8025_REG_MIN] & 0x7f); in rx8025_get_time() 198 dt->tm_hour = bcd2bin(date[RX8025_REG_HOUR] & 0x3f); in rx8025_get_time() 200 dt->tm_hour = bcd2bin(date[RX8025_REG_HOUR] & 0x1f) % 12 in rx8025_get_time() 203 dt->tm_mday = bcd2bin(date[RX8025_REG_MDAY] & 0x3f); in rx8025_get_time() 204 dt->tm_mon = bcd2bin(date[RX8025_REG_MONTH] & 0x1f) - 1; in rx8025_get_time() 205 dt->tm_year = bcd2bin(date[RX8025_REG_YEAR]) + 100; in rx8025_get_time() 207 dev_dbg(dev, "%s: date %ptRr\n", __func__, dt); in rx8025_get_time() 212 static int rx8025_set_time(struct device *dev, struct rtc_time *dt) in rx8025_set_time() argument [all …]
|
D | rtc-rx8010.c | 108 static int rx8010_get_time(struct device *dev, struct rtc_time *dt) in rx8010_get_time() argument 129 dt->tm_sec = bcd2bin(date[RX8010_SEC - RX8010_SEC] & 0x7f); in rx8010_get_time() 130 dt->tm_min = bcd2bin(date[RX8010_MIN - RX8010_SEC] & 0x7f); in rx8010_get_time() 131 dt->tm_hour = bcd2bin(date[RX8010_HOUR - RX8010_SEC] & 0x3f); in rx8010_get_time() 132 dt->tm_mday = bcd2bin(date[RX8010_MDAY - RX8010_SEC] & 0x3f); in rx8010_get_time() 133 dt->tm_mon = bcd2bin(date[RX8010_MONTH - RX8010_SEC] & 0x1f) - 1; in rx8010_get_time() 134 dt->tm_year = bcd2bin(date[RX8010_YEAR - RX8010_SEC]) + 100; in rx8010_get_time() 135 dt->tm_wday = ffs(date[RX8010_WDAY - RX8010_SEC] & 0x7f); in rx8010_get_time() 140 static int rx8010_set_time(struct device *dev, struct rtc_time *dt) in rx8010_set_time() argument 147 if ((dt->tm_year < 100) || (dt->tm_year > 199)) in rx8010_set_time() [all …]
|
/Linux-v5.4/drivers/mtd/nand/raw/ |
D | denali_dt.c | 150 struct denali_dt *dt; in denali_dt_probe() local 156 dt = devm_kzalloc(dev, sizeof(*dt), GFP_KERNEL); in denali_dt_probe() 157 if (!dt) in denali_dt_probe() 159 denali = &dt->controller; in denali_dt_probe() 185 dt->clk = devm_clk_get(dev, "nand"); in denali_dt_probe() 186 if (IS_ERR(dt->clk)) in denali_dt_probe() 187 return PTR_ERR(dt->clk); in denali_dt_probe() 189 dt->clk_x = devm_clk_get(dev, "nand_x"); in denali_dt_probe() 190 if (IS_ERR(dt->clk_x)) in denali_dt_probe() 191 return PTR_ERR(dt->clk_x); in denali_dt_probe() [all …]
|
/Linux-v5.4/drivers/iio/ |
D | industrialio-sw-device.c | 68 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.4/drivers/perf/ |
D | arm-ccn.c | 143 struct arm_ccn_dt, pmu), struct arm_ccn, dt) 183 struct arm_ccn_dt dt; member 465 return &ccn->dt.cmp_mask[i].l; in arm_ccn_pmu_get_cmp_mask() 467 return &ccn->dt.cmp_mask[i].h; in arm_ccn_pmu_get_cmp_mask() 555 return cpumap_print_to_pagebuf(true, buf, cpumask_of(ccn->dt.cpu)); in arm_ccn_pmu_cpumask_show() 651 ccn->dt.pmu_counters_mask)) in arm_ccn_pmu_event_alloc() 655 ccn->dt.pmu_counters[CCN_IDX_PMU_CYCLE_COUNTER].event = event; in arm_ccn_pmu_event_alloc() 661 hw->idx = arm_ccn_pmu_alloc_bit(ccn->dt.pmu_counters_mask, in arm_ccn_pmu_event_alloc() 672 ccn->dt.pmu_counters[hw->idx].source = source; in arm_ccn_pmu_event_alloc() 684 clear_bit(hw->idx, ccn->dt.pmu_counters_mask); in arm_ccn_pmu_event_alloc() [all …]
|
/Linux-v5.4/lib/zstd/ |
D | fse_decompress.c | 95 size_t FSE_buildDTable_wksp(FSE_DTable *dt, const short *normalizedCounter, unsigned maxSymbolValue… in FSE_buildDTable_wksp() argument 97 void *const tdPtr = dt + 1; /* because *dt is unsigned, 32-bits aligned on 32-bits */ in FSE_buildDTable_wksp() 132 memcpy(dt, &DTableH, sizeof(DTableH)); in FSE_buildDTable_wksp() 170 size_t FSE_buildDTable_rle(FSE_DTable *dt, BYTE symbolValue) in FSE_buildDTable_rle() argument 172 void *ptr = dt; in FSE_buildDTable_rle() 174 void *dPtr = dt + 1; in FSE_buildDTable_rle() 187 size_t FSE_buildDTable_raw(FSE_DTable *dt, unsigned nbBits) in FSE_buildDTable_raw() argument 189 void *ptr = dt; in FSE_buildDTable_raw() 191 void *dPtr = dt + 1; in FSE_buildDTable_raw() 214 …able_generic(void *dst, size_t maxDstSize, const void *cSrc, size_t cSrcSize, const FSE_DTable *dt, in FSE_decompress_usingDTable_generic() argument [all …]
|
D | huf_decompress.c | 96 HUF_DEltX2 *const dt = (HUF_DEltX2 *)dtPtr; in HUF_readDTableX2_wksp() local 150 dt[u] = D; in HUF_readDTableX2_wksp() 158 static BYTE HUF_decodeSymbolX2(BIT_DStream_t *Dstream, const HUF_DEltX2 *dt, const U32 dtLog) in HUF_decodeSymbolX2() argument 161 BYTE const c = dt[val].byte; in HUF_decodeSymbolX2() 162 BIT_skipBits(Dstream, dt[val].nbBits); in HUF_decodeSymbolX2() 166 #define HUF_DECODE_SYMBOLX2_0(ptr, DStreamPtr) *ptr++ = HUF_decodeSymbolX2(DStreamPtr, dt, dtLog) 176 …TE *p, BIT_DStream_t *const bitDPtr, BYTE *const pEnd, const HUF_DEltX2 *const dt, const U32 dtLog) in HUF_decodeStreamX2() argument 204 const HUF_DEltX2 *const dt = (const HUF_DEltX2 *)dtPtr; in HUF_decompress1X2_usingDTable_internal() local 215 HUF_decodeStreamX2(op, &bitD, oend, dt, dtLog); in HUF_decompress1X2_usingDTable_internal() 258 const HUF_DEltX2 *const dt = (const HUF_DEltX2 *)dtPtr; in HUF_decompress4X2_usingDTable_internal() local [all …]
|
/Linux-v5.4/Documentation/devicetree/bindings/soc/rockchip/ |
D | power_domain.txt | 26 "include/dt-bindings/power/px30-power.h" - for PX30 type power domain. 27 "include/dt-bindings/power/rk3036-power.h" - for RK3036 type power domain. 28 "include/dt-bindings/power/rk3066-power.h" - for RK3066 type power domain. 29 "include/dt-bindings/power/rk3128-power.h" - for RK3128 type power domain. 30 "include/dt-bindings/power/rk3188-power.h" - for RK3188 type power domain. 31 "include/dt-bindings/power/rk3228-power.h" - for RK3228 type power domain. 32 "include/dt-bindings/power/rk3288-power.h" - for RK3288 type power domain. 33 "include/dt-bindings/power/rk3328-power.h" - for RK3328 type power domain. 34 "include/dt-bindings/power/rk3366-power.h" - for RK3366 type power domain. 35 "include/dt-bindings/power/rk3368-power.h" - for RK3368 type power domain. [all …]
|
/Linux-v5.4/drivers/clocksource/ |
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-v5.4/drivers/block/drbd/ |
D | drbd_proc.c | 93 unsigned long db, dt, dbdt, rt, rs_total, rs_left; in drbd_syncer_progress() local 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() 149 rt = (dt * (rs_left / (db/100+1)))/100; /* seconds */ in drbd_syncer_progress() 154 dbdt = Bit2KB(db/dt); in drbd_syncer_progress() 162 dt = (jiffies - device->rs_mark_time[i]) / HZ; in drbd_syncer_progress() 163 if (!dt) in drbd_syncer_progress() 164 dt++; in drbd_syncer_progress() [all …]
|
/Linux-v5.4/drivers/macintosh/ |
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-v5.4/tools/testing/selftests/bpf/progs/ |
D | netcnt_prog.c | 31 __u64 ts, dt; in bpf_nextcnt() local 51 dt = ts - percpu_cnt->prev_ts; in bpf_nextcnt() 53 dt *= MAX_BPS; in bpf_nextcnt() 54 dt /= NS_PER_SEC; in bpf_nextcnt() 56 if (cnt->bytes + percpu_cnt->bytes - percpu_cnt->prev_bytes < dt) in bpf_nextcnt() 61 if (dt > REFRESH_TIME_NS) { in bpf_nextcnt()
|
/Linux-v5.4/drivers/iio/pressure/ |
D | ms5611_core.c | 126 s64 off, sens, dt; in ms5611_temp_and_pressure_compensate() local 128 dt = t - (chip_info->prom[5] << 8); in ms5611_temp_and_pressure_compensate() 129 off = ((s64)chip_info->prom[2] << 16) + ((chip_info->prom[4] * dt) >> 7); in ms5611_temp_and_pressure_compensate() 130 sens = ((s64)chip_info->prom[1] << 15) + ((chip_info->prom[3] * dt) >> 8); in ms5611_temp_and_pressure_compensate() 132 t = 2000 + ((chip_info->prom[6] * dt) >> 23); in ms5611_temp_and_pressure_compensate() 136 t2 = (dt * dt) >> 31; in ms5611_temp_and_pressure_compensate() 162 s64 off, sens, dt; in ms5607_temp_and_pressure_compensate() local 164 dt = t - (chip_info->prom[5] << 8); in ms5607_temp_and_pressure_compensate() 165 off = ((s64)chip_info->prom[2] << 17) + ((chip_info->prom[4] * dt) >> 6); in ms5607_temp_and_pressure_compensate() 166 sens = ((s64)chip_info->prom[1] << 16) + ((chip_info->prom[3] * dt) >> 7); in ms5607_temp_and_pressure_compensate() [all …]
|
/Linux-v5.4/lib/ |
D | dynamic_debug.c | 144 struct ddebug_table *dt; in ddebug_change() local 151 list_for_each_entry(dt, &ddebug_tables, link) { in ddebug_change() 155 !match_wildcard(query->module, dt->mod_name)) in ddebug_change() 158 for (i = 0; i < dt->num_ddebugs; i++) { in ddebug_change() 159 struct _ddebug *dp = &dt->ddebugs[i]; in ddebug_change() 203 dt->mod_name, dp->function, in ddebug_change() 886 struct ddebug_table *dt; in ddebug_add_module() local 888 dt = kzalloc(sizeof(*dt), GFP_KERNEL); in ddebug_add_module() 889 if (dt == NULL) { in ddebug_add_module() 899 dt->mod_name = name; in ddebug_add_module() [all …]
|
/Linux-v5.4/include/trace/events/ |
D | xen.h | 399 TP_PROTO(struct desc_struct *dt, int entrynum, u64 desc), 400 TP_ARGS(dt, entrynum, desc), 402 __field(struct desc_struct *, dt) 406 TP_fast_assign(__entry->dt = dt; 411 __entry->dt, __entry->entrynum, 416 TP_PROTO(gate_desc *dt, int entrynum, const gate_desc *ent), 417 TP_ARGS(dt, entrynum, ent), 419 __field(gate_desc *, dt) 422 TP_fast_assign(__entry->dt = dt; 426 __entry->dt, __entry->entrynum) [all …]
|