Home
last modified time | relevance | path

Searched refs:tdata (Results 1 – 22 of 22) sorted by relevance

/drivers/hwmon/
Dcoretemp.c108 struct temp_data *tdata = pdata->core_data[attr->index]; in show_label() local
110 if (tdata->is_pkg_data) in show_label()
113 return sprintf(buf, "Core %u\n", tdata->cpu_core_id); in show_label()
122 struct temp_data *tdata = pdata->core_data[attr->index]; in show_crit_alarm() local
124 mutex_lock(&tdata->update_lock); in show_crit_alarm()
125 rdmsr_on_cpu(tdata->cpu, tdata->status_reg, &eax, &edx); in show_crit_alarm()
126 mutex_unlock(&tdata->update_lock); in show_crit_alarm()
155 struct temp_data *tdata = pdata->core_data[attr->index]; in show_temp() local
157 mutex_lock(&tdata->update_lock); in show_temp()
160 if (!tdata->valid || time_after(jiffies, tdata->last_updated + HZ)) { in show_temp()
[all …]
Dhwmon.c141 struct hwmon_thermal_data *tdata = data; in hwmon_thermal_get_temp() local
142 struct hwmon_device *hwdev = to_hwmon_device(tdata->dev); in hwmon_thermal_get_temp()
146 ret = hwdev->chip->ops->read(tdata->dev, hwmon_temp, hwmon_temp_input, in hwmon_thermal_get_temp()
147 tdata->index, &t); in hwmon_thermal_get_temp()
168 struct hwmon_thermal_data *tdata; in hwmon_thermal_add_sensor() local
172 tdata = devm_kzalloc(dev, sizeof(*tdata), GFP_KERNEL); in hwmon_thermal_add_sensor()
173 if (!tdata) in hwmon_thermal_add_sensor()
176 tdata->dev = dev; in hwmon_thermal_add_sensor()
177 tdata->index = index; in hwmon_thermal_add_sensor()
179 tzd = devm_thermal_zone_of_sensor_register(dev, index, tdata, in hwmon_thermal_add_sensor()
[all …]
/drivers/hid/
Dhid-magicmouse.c192 static void magicmouse_emit_touch(struct magicmouse_sc *msc, int raw_id, u8 *tdata) in magicmouse_emit_touch() argument
199 id = (tdata[6] << 2 | tdata[5] >> 6) & 0xf; in magicmouse_emit_touch()
200 x = (tdata[1] << 28 | tdata[0] << 20) >> 20; in magicmouse_emit_touch()
201 y = -((tdata[2] << 24 | tdata[1] << 16) >> 20); in magicmouse_emit_touch()
202 size = tdata[5] & 0x3f; in magicmouse_emit_touch()
203 orientation = (tdata[6] >> 2) - 32; in magicmouse_emit_touch()
204 touch_major = tdata[3]; in magicmouse_emit_touch()
205 touch_minor = tdata[4]; in magicmouse_emit_touch()
206 state = tdata[7] & TOUCH_STATE_MASK; in magicmouse_emit_touch()
209 id = tdata[8] & 0xf; in magicmouse_emit_touch()
[all …]
Dhid-picolcd_fb.c95 u8 *tdata; in picolcd_fb_send_tile() local
127 tdata = vbitmap + (tile * 4 + chip) * 64; in picolcd_fb_send_tile()
130 hid_set_field(report1->field[0], 11 + i, tdata[i]); in picolcd_fb_send_tile()
132 hid_set_field(report2->field[0], 4 + i - 32, tdata[i]); in picolcd_fb_send_tile()
145 u8 tdata[64]; in picolcd_fb_update_tile() local
152 tdata[i] <<= 1; in picolcd_fb_update_tile()
153 tdata[i] |= (bdata[i/8] >> (i % 8)) & 0x01; in picolcd_fb_update_tile()
160 tdata[i] <<= 1; in picolcd_fb_update_tile()
161 tdata[i] |= (bdata[i] & 0x80) ? 0x01 : 0x00; in picolcd_fb_update_tile()
171 if (tdata[i] != vdata[i]) { in picolcd_fb_update_tile()
[all …]
/drivers/scsi/cxgbi/
Dlibcxgbi.c1261 struct cxgbi_task_data *tdata, u32 sw_tag, in cxgbi_ddp_reserve() argument
1267 struct cxgbi_task_tag_info *ttinfo = &tdata->ttinfo; in cxgbi_ddp_reserve()
1365 struct cxgbi_task_data *tdata = iscsi_task_cxgbi_data(task); in task_release_itt() local
1366 struct cxgbi_task_tag_info *ttinfo = &tdata->ttinfo; in task_release_itt()
1396 struct cxgbi_task_data *tdata = iscsi_task_cxgbi_data(task); in task_reserve_itt() local
1397 struct cxgbi_task_tag_info *ttinfo = &tdata->ttinfo; in task_reserve_itt()
1400 &tdata->dlen, 0); in task_reserve_itt()
1401 err = cxgbi_ddp_reserve(cconn, tdata, sw_tag, tdata->dlen); in task_reserve_itt()
1407 cconn->cep->csk, task, tdata->dlen, in task_reserve_itt()
1815 struct cxgbi_task_data *tdata = iscsi_task_cxgbi_data(task); in cxgbi_task_data_sgl_check() local
[all …]
/drivers/usb/typec/tcpm/
Dtcpci_mt6360.c41 struct tcpci_data tdata; member
59 static int mt6360_tcpc_init(struct tcpci *tcpci, struct tcpci_data *tdata) in mt6360_tcpc_init() argument
61 struct regmap *regmap = tdata->regmap; in mt6360_tcpc_init()
157 mti->tdata.regmap = dev_get_regmap(pdev->dev.parent, NULL); in mt6360_tcpc_probe()
158 if (!mti->tdata.regmap) { in mt6360_tcpc_probe()
167 mti->tdata.init = mt6360_tcpc_init; in mt6360_tcpc_probe()
168 mti->tcpci = tcpci_register_port(&pdev->dev, &mti->tdata); in mt6360_tcpc_probe()
Dtcpci_rt1711h.c71 static struct rt1711h_chip *tdata_to_rt1711h(struct tcpci_data *tdata) in tdata_to_rt1711h() argument
73 return container_of(tdata, struct rt1711h_chip, data); in tdata_to_rt1711h()
76 static int rt1711h_init(struct tcpci *tcpci, struct tcpci_data *tdata) in rt1711h_init() argument
79 struct rt1711h_chip *chip = tdata_to_rt1711h(tdata); in rt1711h_init()
107 static int rt1711h_set_vconn(struct tcpci *tcpci, struct tcpci_data *tdata, in rt1711h_set_vconn() argument
110 struct rt1711h_chip *chip = tdata_to_rt1711h(tdata); in rt1711h_set_vconn()
117 struct tcpci_data *tdata, in rt1711h_start_drp_toggling() argument
120 struct rt1711h_chip *chip = tdata_to_rt1711h(tdata); in rt1711h_start_drp_toggling()
Dtcpci_maxim.c70 static struct max_tcpci_chip *tdata_to_max_tcpci(struct tcpci_data *tdata) in tdata_to_max_tcpci() argument
72 return container_of(tdata, struct max_tcpci_chip, data); in tdata_to_max_tcpci()
214 static int max_tcpci_set_vbus(struct tcpci *tcpci, struct tcpci_data *tdata, bool source, bool sink) in max_tcpci_set_vbus() argument
216 struct max_tcpci_chip *chip = tdata_to_max_tcpci(tdata); in max_tcpci_set_vbus()
259 static void max_tcpci_frs_sourcing_vbus(struct tcpci *tcpci, struct tcpci_data *tdata) in max_tcpci_frs_sourcing_vbus() argument
266 max_tcpci_set_vbus(tcpci, tdata, true, false); in max_tcpci_frs_sourcing_vbus()
426 static int max_tcpci_start_toggling(struct tcpci *tcpci, struct tcpci_data *tdata, in max_tcpci_start_toggling() argument
429 struct max_tcpci_chip *chip = tdata_to_max_tcpci(tdata); in max_tcpci_start_toggling()
/drivers/scsi/fnic/
Dfnic_trace.c733 struct fc_trace_hdr *tdata; in fnic_fc_trace_get_data() local
752 tdata = (struct fc_trace_hdr *) in fnic_fc_trace_get_data()
754 if (!tdata) { in fnic_fc_trace_get_data()
760 copy_and_format_trace_data(tdata, in fnic_fc_trace_get_data()
763 fc_trace = (char *)tdata; in fnic_fc_trace_get_data()
794 void copy_and_format_trace_data(struct fc_trace_hdr *tdata, in copy_and_format_trace_data() argument
806 tdata->frame_type = tdata->frame_type & 0x7F; in copy_and_format_trace_data()
810 time64_to_tm(tdata->time_stamp.tv_sec, 0, &tm); in copy_and_format_trace_data()
818 tdata->time_stamp.tv_nsec, tdata->host_no, in copy_and_format_trace_data()
819 tdata->frame_type, tdata->frame_len); in copy_and_format_trace_data()
[all …]
Dfnic_trace.h123 void copy_and_format_trace_data(struct fc_trace_hdr *tdata,
Dfcpio.h480 struct fcpio_tdata tdata; member
/drivers/leds/trigger/
Dledtrig-transient.c165 struct transient_trig_data *tdata; in transient_trig_activate() local
167 tdata = kzalloc(sizeof(struct transient_trig_data), GFP_KERNEL); in transient_trig_activate()
168 if (!tdata) in transient_trig_activate()
171 led_set_trigger_data(led_cdev, tdata); in transient_trig_activate()
172 tdata->led_cdev = led_cdev; in transient_trig_activate()
174 timer_setup(&tdata->timer, transient_timer_function, 0); in transient_trig_activate()
/drivers/crypto/ccp/
Dccp-dev.c421 struct ccp_tasklet_data *tdata = (struct ccp_tasklet_data *)data; in ccp_do_cmd_complete() local
422 struct ccp_cmd *cmd = tdata->cmd; in ccp_do_cmd_complete()
426 complete(&tdata->completion); in ccp_do_cmd_complete()
438 struct ccp_tasklet_data tdata; in ccp_cmd_queue_thread() local
441 tasklet_init(&tasklet, ccp_do_cmd_complete, (unsigned long)&tdata); in ccp_cmd_queue_thread()
459 tdata.cmd = cmd; in ccp_cmd_queue_thread()
460 init_completion(&tdata.completion); in ccp_cmd_queue_thread()
462 wait_for_completion(&tdata.completion); in ccp_cmd_queue_thread()
/drivers/staging/axis-fifo/
Daxis-fifo.txt23 - xlnx,axi-str-rxd-tdata-width: Should be <0x20>
25 - xlnx,axi-str-txc-tdata-width: Should be <0x20>
27 - xlnx,axi-str-txd-tdata-width: Should be <0x20>
65 xlnx,axi-str-rxd-tdata-width = <0x20>;
67 xlnx,axi-str-txc-tdata-width = <0x20>;
69 xlnx,axi-str-txd-tdata-width = <0x20>;
/drivers/scsi/snic/
Dsnic_disc.c274 tgt->tdata.typ = le16_to_cpu(tgtid->tgt_type); in snic_tgt_create()
279 tgt->tdata.disc_id = 0; in snic_tgt_create()
286 switch (tgt->tdata.typ) { in snic_tgt_create()
312 tgt->id, snic_tgt_type_to_str(tgt->tdata.typ)); in snic_tgt_create()
Dsnic_disc.h80 struct snic_tgt_priv tdata; member
Dsnic_scsi.c1517 if ((snic_tgt_chkready(tgt) != 0) && (tgt->tdata.typ == SNIC_TGT_SAN)) in snic_send_abort_and_wait()
1796 if ((snic_tgt_chkready(tgt) != 0) && (tgt->tdata.typ == SNIC_TGT_SAN)) in snic_dr_clean_single_req()
2105 if (tgt->tdata.typ == SNIC_TGT_DAS) in snic_dev_reset_supported()
2627 if (tgt->tdata.typ == SNIC_TGT_DAS) in snic_tgt_scsi_abort_io()
/drivers/scsi/mvsas/
Dmv_sas.h310 void *tdata; member
/drivers/video/fbdev/
Damifb.c1961 unsigned long tdata = 0; in ami_set_var_cursorinfo() local
1963 get_user(tdata, data); in ami_set_var_cursorinfo()
1970 : "0" (datawords), "d" (tdata)); in ami_set_var_cursorinfo()
1973 datawords |= tdata & 1; in ami_set_var_cursorinfo()
1974 datawords |= (tdata & 2) << (16 - 1); in ami_set_var_cursorinfo()
/drivers/mmc/core/
Dmmc_test.c2099 struct mmc_test_multiple_rw *tdata, in mmc_test_rw_multiple() argument
2125 tdata->prepare & MMC_TEST_PREP_ERASE) { in mmc_test_rw_multiple()
2137 tdata->do_write, 0, 1, size / reqsize, in mmc_test_rw_multiple()
2138 tdata->do_nonblock_req, min_sg_len); in mmc_test_rw_multiple()
/drivers/scsi/aic7xxx/
Daic7xxx.h415 struct target_data tdata; member
Daic79xx.h446 struct target_data tdata; member