Home
last modified time | relevance | path

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

/linux/drivers/char/ipmi/
H A Dipmi_kcs_sm.c116 int read_pos; member
133 kcs->read_pos = 0; in init_kcs_data()
203 if (kcs->read_pos >= MAX_KCS_READ_SIZE) { in read_next_byte()
208 kcs->read_data[kcs->read_pos] = read_data(kcs); in read_next_byte()
209 (kcs->read_pos)++; in read_next_byte()
256 kcs->read_pos = 0; in restart_kcs_transaction()
289 kcs->read_pos = 0; in start_kcs_transaction()
299 if (length < kcs->read_pos) { in get_kcs_result()
300 kcs->read_pos = length; in get_kcs_result()
304 memcpy(data, kcs->read_data, kcs->read_pos); in get_kcs_result()
[all …]
H 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()
169 memcpy(data, smic->read_data, smic->read_pos); in smic_get_result()
171 if ((length >= 3) && (smic->read_pos < 3)) { in smic_get_result()
173 smic->read_pos = 3; in smic_get_result()
179 return smic->read_pos; in smic_get_result()
[all …]
/linux/kernel/
H A Drelay.c807 size_t read_pos, in relay_file_read_consume() argument
824 if (!read_pos) in relay_file_read_consume()
827 read_subbuf = read_pos / buf->chan->subbuf_size; in relay_file_read_consume()
884 static size_t relay_file_read_subbuf_avail(size_t read_pos, in relay_file_read_subbuf_avail() argument
893 read_subbuf = read_pos / subbuf_size; in relay_file_read_subbuf_avail()
894 read_offset = read_pos % subbuf_size; in relay_file_read_subbuf_avail()
920 size_t read_pos = (consumed * subbuf_size + buf->bytes_consumed) in relay_file_read_start_pos() local
923 read_subbuf = read_pos / subbuf_size; in relay_file_read_start_pos()
927 if (read_pos >= padding_start && read_pos < padding_end) { in relay_file_read_start_pos()
929 read_pos = read_subbuf * subbuf_size; in relay_file_read_start_pos()
[all …]
/linux/drivers/media/firewire/
H 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()
1165 memcpy(&c->operand[write_pos], &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()
1176 c->operand[write_pos++] = msg[read_pos++]; in avc_ca_pmt()
1177 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()
[all …]
/linux/drivers/input/misc/
H A Dims-pcu.c94 u8 read_pos; member
413 if (pcu->read_pos < IMS_PCU_DATA_OFFSET + 1 + sizeof(data) + 1) { in ims_pcu_report_events()
415 pcu->read_pos); in ims_pcu_report_events()
443 memcpy(pcu->cmd_buf, pcu->read_buf, pcu->read_pos); in ims_pcu_handle_response()
444 pcu->cmd_buf_len = pcu->read_pos; in ims_pcu_handle_response()
455 pcu->read_pos = 0; in ims_pcu_reset_packet()
471 if (pcu->read_pos >= IMS_PCU_BUF_SIZE) { in ims_pcu_process_data()
474 pcu->read_pos); in ims_pcu_process_data()
480 pcu->read_buf[pcu->read_pos++] = data; in ims_pcu_process_data()
490 pcu->read_pos); in ims_pcu_process_data()
[all …]
/linux/Documentation/trace/coresight/
H A Dultrasoc-smb.rst31 buf_size buf_status read_pos write_pos
35 * ``read_pos``: Shows the value on the read pointer register.
/linux/security/integrity/ima/
H A Dima_kexec.c34 sf->read_pos = 0; in ima_free_kexec_file_buf()
76 ima_kexec_file.read_pos = 0; in ima_alloc_kexec_file_buf()
/linux/Documentation/ABI/testing/
H A Dsysfs-bus-coresight-devices-ultra_smb21 What: /sys/bus/coresight/devices/ultra_smb<N>/mgmt/read_pos
/linux/drivers/hwtracing/coresight/
H A Dultrasoc-smb.c175 coresight_simple_reg32(read_pos, SMB_LB_RD_ADDR_REG),