Home
last modified time | relevance | path

Searched refs:read_pos (Results 1 – 8 of 8) sorted by relevance

/drivers/char/ipmi/
A Dipmi_kcs_sm.c116 int read_pos; member
133 kcs->read_pos = 0; in init_kcs_data_with_state()
209 if (kcs->read_pos >= MAX_KCS_READ_SIZE) { in read_next_byte()
215 (kcs->read_pos)++; in read_next_byte()
262 kcs->read_pos = 0; in restart_kcs_transaction()
295 kcs->read_pos = 0; in start_kcs_transaction()
305 if (length < kcs->read_pos) { in get_kcs_result()
306 kcs->read_pos = length; in get_kcs_result()
312 if ((length >= 3) && (kcs->read_pos < 3)) { in get_kcs_result()
316 kcs->read_pos = 3; in get_kcs_result()
[all …]
A Dipmi_smic_sm.c98 int read_pos; member
112 smic->read_pos = 0; in init_smic_data()
148 smic->read_pos = 0; in start_smic_transaction()
161 for (i = 0; i < smic->read_pos; i++) in smic_get_result()
165 if (length < smic->read_pos) { in smic_get_result()
166 smic->read_pos = length; in smic_get_result()
173 smic->read_pos = 3; in smic_get_result()
179 return smic->read_pos; in smic_get_result()
225 smic->read_pos = 0; in start_error_recovery()
240 if (smic->read_pos >= MAX_SMIC_READ_SIZE) { in read_next_byte()
[all …]
/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_umsch_mm.c456 unsigned int read_pos, write_pos, available, i, read_bytes = 0; in amdgpu_debugfs_umsch_fwlog_read() local
469 read_pos = plog->rptr; in amdgpu_debugfs_umsch_fwlog_read()
475 if (!size || (read_pos == write_pos)) in amdgpu_debugfs_umsch_fwlog_read()
478 if (write_pos > read_pos) { in amdgpu_debugfs_umsch_fwlog_read()
479 available = write_pos - read_pos; in amdgpu_debugfs_umsch_fwlog_read()
482 read_num[0] = AMDGPU_UMSCHFW_LOG_SIZE - read_pos; in amdgpu_debugfs_umsch_fwlog_read()
494 if (read_pos == AMDGPU_UMSCHFW_LOG_SIZE) in amdgpu_debugfs_umsch_fwlog_read()
495 read_pos = plog->header_size; in amdgpu_debugfs_umsch_fwlog_read()
497 (log_buf + read_pos), read_num[i])) in amdgpu_debugfs_umsch_fwlog_read()
501 read_pos += read_num[i]; in amdgpu_debugfs_umsch_fwlog_read()
[all …]
A Damdgpu_vcn.c1136 unsigned int read_pos, write_pos, available, i, read_bytes = 0; in amdgpu_debugfs_vcn_fwlog_read() local
1149 read_pos = plog->rptr; in amdgpu_debugfs_vcn_fwlog_read()
1155 if (!size || (read_pos == write_pos)) in amdgpu_debugfs_vcn_fwlog_read()
1158 if (write_pos > read_pos) { in amdgpu_debugfs_vcn_fwlog_read()
1159 available = write_pos - read_pos; in amdgpu_debugfs_vcn_fwlog_read()
1162 read_num[0] = AMDGPU_VCNFW_LOG_SIZE - read_pos; in amdgpu_debugfs_vcn_fwlog_read()
1174 if (read_pos == AMDGPU_VCNFW_LOG_SIZE) in amdgpu_debugfs_vcn_fwlog_read()
1175 read_pos = plog->header_size; in amdgpu_debugfs_vcn_fwlog_read()
1177 (log_buf + read_pos), read_num[i])) in amdgpu_debugfs_vcn_fwlog_read()
1181 read_pos += read_num[i]; in amdgpu_debugfs_vcn_fwlog_read()
[all …]
/drivers/media/firewire/
A Dfiredtv-avc.c1100 int read_pos; in avc_ca_pmt() local
1153 read_pos = 6; in avc_ca_pmt()
1156 pmt_cmd_id = msg[read_pos++]; in avc_ca_pmt()
1167 read_pos += program_info_length; in avc_ca_pmt()
1170 while (read_pos + 4 < length) { in avc_ca_pmt()
1175 c->operand[write_pos++] = msg[read_pos++]; in avc_ca_pmt()
1179 ((msg[read_pos] & 0x0f) << 8) + msg[read_pos + 1]; in avc_ca_pmt()
1180 read_pos += 2; in avc_ca_pmt()
1186 if (read_pos >= length) { in avc_ca_pmt()
1190 pmt_cmd_id = msg[read_pos++]; in avc_ca_pmt()
[all …]
/drivers/input/misc/
A Dims-pcu.c93 u8 read_pos; member
433 memcpy(pcu->cmd_buf, pcu->read_buf, pcu->read_pos); in ims_pcu_handle_response()
434 pcu->cmd_buf_len = pcu->read_pos; in ims_pcu_handle_response()
454 pcu->read_buf[pcu->read_pos++] = data; in ims_pcu_process_data()
464 pcu->read_pos); in ims_pcu_process_data()
467 pcu->read_pos = 0; in ims_pcu_process_data()
476 if (pcu->read_pos < IMS_PCU_MIN_PACKET_LEN) { in ims_pcu_process_data()
479 pcu->read_pos); in ims_pcu_process_data()
483 pcu->read_pos); in ims_pcu_process_data()
490 pcu->read_pos = 0; in ims_pcu_process_data()
[all …]
/drivers/gpu/drm/mediatek/
A Dmtk_dp.c830 int read_pos; in mtk_dp_aux_read_rx_fifo() local
835 for (read_pos = 0; read_pos < length; read_pos++) { in mtk_dp_aux_read_rx_fifo()
842 buf[read_pos] = (u8)(mtk_dp_read(mtk_dp, MTK_DP_AUX_P0_3620) & in mtk_dp_aux_read_rx_fifo()
/drivers/hwtracing/coresight/
A Dultrasoc-smb.c178 coresight_simple_reg32(read_pos, SMB_LB_RD_ADDR_REG),

Completed in 25 milliseconds