Lines Matching full:ent
113 rsc_offset(const struct rsc_hdr *hdr, const struct entry_header *ent) in rsc_offset() argument
116 u16 loffset = le16_to_cpu(ent->offset); in rsc_offset()
141 const struct entry_header *ent; in cmd_db_get_header() local
157 ent = rsc_to_entry_header(rsc_hdr); in cmd_db_get_header()
158 for (j = 0; j < le16_to_cpu(rsc_hdr->cnt); j++, ent++) { in cmd_db_get_header()
159 if (memcmp(ent->id, query, sizeof(ent->id)) == 0) { in cmd_db_get_header()
161 *eh = ent; in cmd_db_get_header()
185 const struct entry_header *ent; in cmd_db_read_addr() local
187 ret = cmd_db_get_header(id, &ent, NULL); in cmd_db_read_addr()
189 return ret < 0 ? 0 : le32_to_cpu(ent->addr); in cmd_db_read_addr()
204 const struct entry_header *ent; in cmd_db_read_aux_data() local
207 ret = cmd_db_get_header(id, &ent, &rsc_hdr); in cmd_db_read_aux_data()
212 *len = le16_to_cpu(ent->len); in cmd_db_read_aux_data()
214 return rsc_offset(rsc_hdr, ent); in cmd_db_read_aux_data()
228 const struct entry_header *ent; in cmd_db_read_slave_id() local
231 ret = cmd_db_get_header(id, &ent, NULL); in cmd_db_read_slave_id()
235 addr = le32_to_cpu(ent->addr); in cmd_db_read_slave_id()
245 const struct entry_header *ent; in cmd_db_debugfs_dump() local
279 ent = rsc_to_entry_header(rsc); in cmd_db_debugfs_dump()
280 for (j = 0; j < le16_to_cpu(rsc->cnt); j++, ent++) { in cmd_db_debugfs_dump()
281 seq_printf(seq, "0x%05x: %*pEp", le32_to_cpu(ent->addr), in cmd_db_debugfs_dump()
282 (int)sizeof(ent->id), ent->id); in cmd_db_debugfs_dump()
284 len = le16_to_cpu(ent->len); in cmd_db_debugfs_dump()
287 len, rsc_offset(rsc, ent)); in cmd_db_debugfs_dump()