Home
last modified time | relevance | path

Searched refs:dt (Results 1 – 25 of 62) sorted by relevance

123

/drivers/staging/lustre/lustre/include/
Ddt_object.h285 struct dt_object *dt, unsigned role);
287 struct dt_object *dt, unsigned role);
289 struct dt_object *dt);
291 struct dt_object *dt);
293 struct dt_object *dt);
310 struct dt_object *dt, struct lu_attr *attr,
318 struct dt_object *dt,
322 struct dt_object *dt,
331 int (*do_xattr_get)(const struct lu_env *env, struct dt_object *dt,
342 struct dt_object *dt,
[all …]
/drivers/input/misc/
Dgp2ap002a00f.c42 static int gp2a_report(struct gp2a_data *dt) in gp2a_report() argument
44 int vo = gpio_get_value(dt->pdata->vout_gpio); in gp2a_report()
46 input_report_switch(dt->input, SW_FRONT_PROXIMITY, !vo); in gp2a_report()
47 input_sync(dt->input); in gp2a_report()
54 struct gp2a_data *dt = handle; in gp2a_irq() local
56 gp2a_report(dt); in gp2a_irq()
61 static int gp2a_enable(struct gp2a_data *dt) in gp2a_enable() argument
63 return i2c_smbus_write_byte_data(dt->i2c_client, GP2A_ADDR_OPMOD, in gp2a_enable()
67 static int gp2a_disable(struct gp2a_data *dt) in gp2a_disable() argument
69 return i2c_smbus_write_byte_data(dt->i2c_client, GP2A_ADDR_OPMOD, in gp2a_disable()
[all …]
/drivers/rtc/
Drtc-r9701.c71 static int r9701_get_datetime(struct device *dev, struct rtc_time *dt) in r9701_get_datetime() argument
81 memset(dt, 0, sizeof(*dt)); in r9701_get_datetime()
83 dt->tm_sec = bcd2bin(buf[0]); /* RSECCNT */ in r9701_get_datetime()
84 dt->tm_min = bcd2bin(buf[1]); /* RMINCNT */ in r9701_get_datetime()
85 dt->tm_hour = bcd2bin(buf[2]); /* RHRCNT */ in r9701_get_datetime()
87 dt->tm_mday = bcd2bin(buf[3]); /* RDAYCNT */ in r9701_get_datetime()
88 dt->tm_mon = bcd2bin(buf[4]) - 1; /* RMONCNT */ in r9701_get_datetime()
89 dt->tm_year = bcd2bin(buf[5]) + 100; /* RYRCNT */ in r9701_get_datetime()
95 return rtc_valid_tm(dt); in r9701_get_datetime()
98 static int r9701_set_datetime(struct device *dev, struct rtc_time *dt) in r9701_set_datetime() argument
[all …]
Drtc-max6902.c56 static int max6902_read_time(struct device *dev, struct rtc_time *dt) in max6902_read_time() argument
70 dt->tm_sec = bcd2bin(buf[0]); in max6902_read_time()
71 dt->tm_min = bcd2bin(buf[1]); in max6902_read_time()
72 dt->tm_hour = bcd2bin(buf[2]); in max6902_read_time()
73 dt->tm_mday = bcd2bin(buf[3]); in max6902_read_time()
74 dt->tm_mon = bcd2bin(buf[4]) - 1; in max6902_read_time()
75 dt->tm_wday = bcd2bin(buf[5]); in max6902_read_time()
76 dt->tm_year = bcd2bin(buf[6]); in max6902_read_time()
85 dt->tm_year += century; in max6902_read_time()
86 dt->tm_year -= 1900; in max6902_read_time()
[all …]
Drtc-ds1347.c57 static int ds1347_read_time(struct device *dev, struct rtc_time *dt) in ds1347_read_time() argument
69 dt->tm_sec = bcd2bin(buf[0]); in ds1347_read_time()
70 dt->tm_min = bcd2bin(buf[1]); in ds1347_read_time()
71 dt->tm_hour = bcd2bin(buf[2] & 0x3F); in ds1347_read_time()
72 dt->tm_mday = bcd2bin(buf[3]); in ds1347_read_time()
73 dt->tm_mon = bcd2bin(buf[4]) - 1; in ds1347_read_time()
74 dt->tm_wday = bcd2bin(buf[5]) - 1; in ds1347_read_time()
75 dt->tm_year = bcd2bin(buf[6]) + 100; in ds1347_read_time()
77 return rtc_valid_tm(dt); in ds1347_read_time()
80 static int ds1347_set_time(struct device *dev, struct rtc_time *dt) in ds1347_set_time() argument
[all …]
Drtc-ds3234.c57 static int ds3234_read_time(struct device *dev, struct rtc_time *dt) in ds3234_read_time() argument
70 dt->tm_sec = bcd2bin(buf[0]); in ds3234_read_time()
71 dt->tm_min = bcd2bin(buf[1]); in ds3234_read_time()
72 dt->tm_hour = bcd2bin(buf[2] & 0x3f); in ds3234_read_time()
73 dt->tm_wday = bcd2bin(buf[3]) - 1; /* 0 = Sun */ in ds3234_read_time()
74 dt->tm_mday = bcd2bin(buf[4]); in ds3234_read_time()
75 dt->tm_mon = bcd2bin(buf[5] & 0x1f) - 1; /* 0 = Jan */ in ds3234_read_time()
76 dt->tm_year = bcd2bin(buf[6] & 0xff) + 100; /* Assume 20YY */ in ds3234_read_time()
78 return rtc_valid_tm(dt); in ds3234_read_time()
81 static int ds3234_set_time(struct device *dev, struct rtc_time *dt) in ds3234_set_time() argument
[all …]
Drtc-ds1390.c70 static int ds1390_read_time(struct device *dev, struct rtc_time *dt) in ds1390_read_time() argument
86 dt->tm_sec = bcd2bin(chip->txrx_buf[0]); in ds1390_read_time()
87 dt->tm_min = bcd2bin(chip->txrx_buf[1]); in ds1390_read_time()
88 dt->tm_hour = bcd2bin(chip->txrx_buf[2]); in ds1390_read_time()
89 dt->tm_wday = bcd2bin(chip->txrx_buf[3]); in ds1390_read_time()
90 dt->tm_mday = bcd2bin(chip->txrx_buf[4]); in ds1390_read_time()
92 dt->tm_mon = bcd2bin(chip->txrx_buf[5] & 0x7f) - 1; in ds1390_read_time()
94 dt->tm_year = bcd2bin(chip->txrx_buf[6]) + ((chip->txrx_buf[5] & 0x80) ? 100 : 0); in ds1390_read_time()
96 return rtc_valid_tm(dt); in ds1390_read_time()
99 static int ds1390_set_time(struct device *dev, struct rtc_time *dt) in ds1390_set_time() argument
[all …]
Drtc-v3020.c231 static int v3020_read_time(struct device *dev, struct rtc_time *dt) in v3020_read_time() argument
241 dt->tm_sec = bcd2bin(tmp); in v3020_read_time()
243 dt->tm_min = bcd2bin(tmp); in v3020_read_time()
245 dt->tm_hour = bcd2bin(tmp); in v3020_read_time()
247 dt->tm_mday = bcd2bin(tmp); in v3020_read_time()
249 dt->tm_mon = bcd2bin(tmp) - 1; in v3020_read_time()
251 dt->tm_wday = bcd2bin(tmp); in v3020_read_time()
253 dt->tm_year = bcd2bin(tmp)+100; in v3020_read_time()
256 dev_dbg(dev, "tm_hour: %i\n", dt->tm_hour); in v3020_read_time()
257 dev_dbg(dev, "tm_min : %i\n", dt->tm_min); in v3020_read_time()
[all …]
Drtc-pcf8583.c52 static int pcf8583_get_datetime(struct i2c_client *client, struct rtc_time *dt) in pcf8583_get_datetime() argument
74 dt->tm_year = buf[4] >> 6; in pcf8583_get_datetime()
75 dt->tm_wday = buf[5] >> 5; in pcf8583_get_datetime()
80 dt->tm_sec = bcd2bin(buf[1]); in pcf8583_get_datetime()
81 dt->tm_min = bcd2bin(buf[2]); in pcf8583_get_datetime()
82 dt->tm_hour = bcd2bin(buf[3]); in pcf8583_get_datetime()
83 dt->tm_mday = bcd2bin(buf[4]); in pcf8583_get_datetime()
84 dt->tm_mon = bcd2bin(buf[5]) - 1; in pcf8583_get_datetime()
90 static int pcf8583_set_datetime(struct i2c_client *client, struct rtc_time *dt, int datetoo) in pcf8583_set_datetime() argument
98 buf[3] = bin2bcd(dt->tm_sec); in pcf8583_set_datetime()
[all …]
Drtc-rx8025.c191 static int rx8025_get_time(struct device *dev, struct rtc_time *dt) in rx8025_get_time() argument
206 dt->tm_sec = bcd2bin(date[RX8025_REG_SEC] & 0x7f); in rx8025_get_time()
207 dt->tm_min = bcd2bin(date[RX8025_REG_MIN] & 0x7f); in rx8025_get_time()
209 dt->tm_hour = bcd2bin(date[RX8025_REG_HOUR] & 0x3f); in rx8025_get_time()
211 dt->tm_hour = bcd2bin(date[RX8025_REG_HOUR] & 0x1f) % 12 in rx8025_get_time()
214 dt->tm_mday = bcd2bin(date[RX8025_REG_MDAY] & 0x3f); in rx8025_get_time()
215 dt->tm_mon = bcd2bin(date[RX8025_REG_MONTH] & 0x1f) - 1; in rx8025_get_time()
216 dt->tm_year = bcd2bin(date[RX8025_REG_YEAR]); in rx8025_get_time()
218 if (dt->tm_year < 70) in rx8025_get_time()
219 dt->tm_year += 100; in rx8025_get_time()
[all …]
Drtc-ds1343.c383 static int ds1343_read_time(struct device *dev, struct rtc_time *dt) in ds1343_read_time() argument
393 dt->tm_sec = bcd2bin(buf[0]); in ds1343_read_time()
394 dt->tm_min = bcd2bin(buf[1]); in ds1343_read_time()
395 dt->tm_hour = bcd2bin(buf[2] & 0x3F); in ds1343_read_time()
396 dt->tm_wday = bcd2bin(buf[3]) - 1; in ds1343_read_time()
397 dt->tm_mday = bcd2bin(buf[4]); in ds1343_read_time()
398 dt->tm_mon = bcd2bin(buf[5] & 0x1F) - 1; in ds1343_read_time()
399 dt->tm_year = bcd2bin(buf[6]) + 100; /* year offset from 1900 */ in ds1343_read_time()
401 return rtc_valid_tm(dt); in ds1343_read_time()
404 static int ds1343_set_time(struct device *dev, struct rtc_time *dt) in ds1343_set_time() argument
[all …]
/drivers/video/
Dof_display_timing.c60 struct display_timing *dt) in of_parse_display_timing() argument
65 memset(dt, 0, sizeof(*dt)); in of_parse_display_timing()
67 ret |= parse_timing_property(np, "hback-porch", &dt->hback_porch); in of_parse_display_timing()
68 ret |= parse_timing_property(np, "hfront-porch", &dt->hfront_porch); in of_parse_display_timing()
69 ret |= parse_timing_property(np, "hactive", &dt->hactive); in of_parse_display_timing()
70 ret |= parse_timing_property(np, "hsync-len", &dt->hsync_len); in of_parse_display_timing()
71 ret |= parse_timing_property(np, "vback-porch", &dt->vback_porch); in of_parse_display_timing()
72 ret |= parse_timing_property(np, "vfront-porch", &dt->vfront_porch); in of_parse_display_timing()
73 ret |= parse_timing_property(np, "vactive", &dt->vactive); in of_parse_display_timing()
74 ret |= parse_timing_property(np, "vsync-len", &dt->vsync_len); in of_parse_display_timing()
[all …]
Dvideomode.c14 void videomode_from_timing(const struct display_timing *dt, in videomode_from_timing() argument
17 vm->pixelclock = dt->pixelclock.typ; in videomode_from_timing()
18 vm->hactive = dt->hactive.typ; in videomode_from_timing()
19 vm->hfront_porch = dt->hfront_porch.typ; in videomode_from_timing()
20 vm->hback_porch = dt->hback_porch.typ; in videomode_from_timing()
21 vm->hsync_len = dt->hsync_len.typ; in videomode_from_timing()
23 vm->vactive = dt->vactive.typ; in videomode_from_timing()
24 vm->vfront_porch = dt->vfront_porch.typ; in videomode_from_timing()
25 vm->vback_porch = dt->vback_porch.typ; in videomode_from_timing()
26 vm->vsync_len = dt->vsync_len.typ; in videomode_from_timing()
[all …]
/drivers/mtd/nand/
Ddenali_dt.c45 struct denali_dt *dt; in denali_dt_probe() local
58 dt = devm_kzalloc(&ofdev->dev, sizeof(*dt), GFP_KERNEL); in denali_dt_probe()
59 if (!dt) in denali_dt_probe()
61 denali = &dt->denali; in denali_dt_probe()
88 dt->clk = devm_clk_get(&ofdev->dev, NULL); in denali_dt_probe()
89 if (IS_ERR(dt->clk)) { in denali_dt_probe()
91 return PTR_ERR(dt->clk); in denali_dt_probe()
93 clk_prepare_enable(dt->clk); in denali_dt_probe()
99 platform_set_drvdata(ofdev, dt); in denali_dt_probe()
103 clk_disable_unprepare(dt->clk); in denali_dt_probe()
[all …]
/drivers/staging/lustre/lustre/obdclass/
Ddt_object.c243 struct dt_device *dt = dfh->dfh_dt; in dt_find_entry() local
251 obj = dt_locate(env, dt, fid); in dt_find_entry()
289 dt_store_resolve(const struct lu_env *env, struct dt_device *dt, in dt_store_resolve() argument
299 dfh->dfh_dt = dt; in dt_store_resolve()
305 result = dt->dd_ops->dt_root_get(env, dt, fid); in dt_store_resolve()
307 obj = dt_locate(env, dt, fid); in dt_store_resolve()
324 struct dt_device *dt, in dt_reg_open() argument
334 o = dt_locate(env, dt, fid); in dt_reg_open()
348 struct dt_device *dt, in dt_store_open() argument
356 dir = dt_store_resolve(env, dt, dirname, fid); in dt_store_open()
[all …]
/drivers/bus/
Darm-ccn.c149 struct arm_ccn_dt, pmu), struct arm_ccn, dt)
185 struct arm_ccn_dt dt; member
461 return &ccn->dt.cmp_mask[i].l; in arm_ccn_pmu_get_cmp_mask()
463 return &ccn->dt.cmp_mask[i].h; in arm_ccn_pmu_get_cmp_mask()
618 clear_bit(CCN_IDX_PMU_CYCLE_COUNTER, ccn->dt.pmu_counters_mask); in arm_ccn_pmu_event_destroy()
621 ccn->dt.pmu_counters[hw->idx].source; in arm_ccn_pmu_event_destroy()
629 clear_bit(hw->idx, ccn->dt.pmu_counters_mask); in arm_ccn_pmu_event_destroy()
632 ccn->dt.pmu_counters[hw->idx].source = NULL; in arm_ccn_pmu_event_destroy()
633 ccn->dt.pmu_counters[hw->idx].event = NULL; in arm_ccn_pmu_event_destroy()
745 ccn->dt.pmu_counters_mask)) in arm_ccn_pmu_event_init()
[all …]
/drivers/block/drbd/
Ddrbd_proc.c116 unsigned long db, dt, dbdt, rt, rs_total, rs_left; in drbd_syncer_progress() local
165 dt = (jiffies - device->rs_mark_time[i]) / HZ; in drbd_syncer_progress()
166 if (dt > 180) in drbd_syncer_progress()
169 if (!dt) in drbd_syncer_progress()
170 dt++; in drbd_syncer_progress()
172 rt = (dt * (rs_left / (db/100+1)))/100; /* seconds */ in drbd_syncer_progress()
177 dbdt = Bit2KB(db/dt); in drbd_syncer_progress()
185 dt = (jiffies - device->rs_mark_time[i]) / HZ; in drbd_syncer_progress()
186 if (!dt) in drbd_syncer_progress()
187 dt++; in drbd_syncer_progress()
[all …]
Ddrbd_req.c1566 unsigned long ent = 0, dt = 0, et, nt; /* effective timeout = ko_count * timeout */ in request_timer_fn() local
1575 dt = rcu_dereference(device->ldev->disk_conf)->disk_timeout * HZ / 10; in request_timer_fn()
1580 et = min_not_zero(dt, ent); in request_timer_fn()
1634 if (dt && oldest_submit_jif != now && in request_timer_fn()
1635 time_after(now, oldest_submit_jif + dt) && in request_timer_fn()
1636 !time_in_range(now, device->last_reattach_jif, device->last_reattach_jif + dt)) { in request_timer_fn()
1645 dt = (dt && oldest_submit_jif != now && time_before(now, oldest_submit_jif + dt)) in request_timer_fn()
1646 ? oldest_submit_jif + dt : now + et; in request_timer_fn()
1647 nt = time_before(ent, dt) ? ent : dt; in request_timer_fn()
/drivers/macintosh/
Dvia-pmu-led.c84 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()
/drivers/isdn/pcbit/
Dlayer2.h173 static __inline__ void pcbit_writeb(struct pcbit_dev *dev, unsigned char dt) in pcbit_writeb() argument
175 writeb(dt, dev->writeptr++); in pcbit_writeb()
180 static __inline__ void pcbit_writew(struct pcbit_dev *dev, unsigned short dt) in pcbit_writew() argument
187 writew(dt, dev->writeptr); in pcbit_writew()
191 writeb((u_char) (dt & 0x00ffU), dev->writeptr); in pcbit_writew()
193 writeb((u_char) (dt >> 8), dev->writeptr++); in pcbit_writew()
196 writew(dt, dev->writeptr); in pcbit_writew()
/drivers/gpu/drm/nouveau/core/subdev/fb/
Dgddr5.c40 int WL, CL, WR, at[2], dt, ds; in nouveau_gddr5_calc() local
64 dt = ram->next->bios.timing_20_2e_03; in nouveau_gddr5_calc()
84 ram->mr[1] |= (dt & 0x03) << 2; in nouveau_gddr5_calc()
/drivers/scsi/
Dch.c113 struct scsi_device **dt; /* ptrs to data transfer elements */ member
365 ch->dt = kcalloc(ch->counts[CHET_DT], sizeof(*ch->dt), in ch_readconfig()
368 if (!ch->dt) { in ch_readconfig()
389 ch->dt[elem] = NULL; in ch_readconfig()
392 ch->dt[elem] = NULL; in ch_readconfig()
402 ch->dt[elem] = in ch_readconfig()
406 if (!ch->dt[elem]) { in ch_readconfig()
411 ch->dt[elem]->vendor, in ch_readconfig()
412 ch->dt[elem]->model, in ch_readconfig()
413 ch->dt[elem]->rev); in ch_readconfig()
[all …]
/drivers/scsi/aic7xxx/
Daic79xx_osm.c2425 unsigned int dt; in ahd_linux_set_period() local
2447 dt = ppr_options & MSG_EXT_PPR_DT_REQ; in ahd_linux_set_period()
2459 dt ? AHD_SYNCRATE_MAX : AHD_SYNCRATE_ULTRA2); in ahd_linux_set_period()
2479 unsigned int dt = ppr_options & MSG_EXT_PPR_DT_REQ; in ahd_linux_set_offset() local
2493 dt ? AHD_SYNCRATE_MAX : AHD_SYNCRATE_ULTRA2); in ahd_linux_set_offset()
2502 static void ahd_linux_set_dt(struct scsi_target *starget, int dt) in ahd_linux_set_dt() argument
2521 dt ? "enabling" : "disabling"); in ahd_linux_set_dt()
2523 if (dt && spi_max_width(starget)) { in ahd_linux_set_dt()
2536 dt ? AHD_SYNCRATE_MAX : AHD_SYNCRATE_ULTRA2); in ahd_linux_set_dt()
2557 unsigned int dt; in ahd_linux_set_qas() local
[all …]
/drivers/media/rc/
Dsunxi-cir.c104 unsigned char dt; in sunxi_ir_irq() local
124 dt = readb(ir->base + SUNXI_IR_RXFIFO_REG); in sunxi_ir_irq()
125 rawir.pulse = (dt & 0x80) != 0; in sunxi_ir_irq()
126 rawir.duration = ((dt & 0x7f) + 1) * SUNXI_IR_SAMPLE; in sunxi_ir_irq()
/drivers/clk/rockchip/
Dclk.h225 df, dt, go, gs, gf) \ argument
237 .div_table = dt, \
327 #define DIVTBL(_id, cname, pname, f, o, s, w, df, dt) \ argument
339 .div_table = dt, \

123