Home
last modified time | relevance | path

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

/drivers/char/ipmi/
Dipmi_kcs_sm.c134 int read_pos; member
151 kcs->read_pos = 0; in init_kcs_data()
221 if (kcs->read_pos >= MAX_KCS_READ_SIZE) { in read_next_byte()
226 kcs->read_data[kcs->read_pos] = read_data(kcs); in read_next_byte()
227 (kcs->read_pos)++; in read_next_byte()
273 kcs->read_pos = 0; in restart_kcs_transaction()
304 kcs->read_pos = 0; in start_kcs_transaction()
314 if (length < kcs->read_pos) { in get_kcs_result()
315 kcs->read_pos = length; in get_kcs_result()
319 memcpy(data, kcs->read_data, kcs->read_pos); in get_kcs_result()
[all …]
Dipmi_smic_sm.c116 int read_pos; member
130 smic->read_pos = 0; in init_smic_data()
163 smic->read_pos = 0; in start_smic_transaction()
176 for (i = 0; i < smic->read_pos; i++) in smic_get_result()
180 if (length < smic->read_pos) { in smic_get_result()
181 smic->read_pos = length; in smic_get_result()
184 memcpy(data, smic->read_data, smic->read_pos); in smic_get_result()
186 if ((length >= 3) && (smic->read_pos < 3)) { in smic_get_result()
188 smic->read_pos = 3; in smic_get_result()
194 return smic->read_pos; in smic_get_result()
[all …]
/drivers/media/dvb/firewire/
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()
1161 memcpy(&c->operand[write_pos], &msg[read_pos], in avc_ca_pmt()
1163 read_pos += program_info_length; in avc_ca_pmt()
1166 while (read_pos < length) { in avc_ca_pmt()
1167 c->operand[write_pos++] = msg[read_pos++]; in avc_ca_pmt()
1168 c->operand[write_pos++] = msg[read_pos++]; in avc_ca_pmt()
1169 c->operand[write_pos++] = msg[read_pos++]; in avc_ca_pmt()
1171 ((msg[read_pos] & 0x0f) << 8) + msg[read_pos + 1]; in avc_ca_pmt()
[all …]