Lines Matching refs:ent
120 rsc_offset(const struct rsc_hdr *hdr, const struct entry_header *ent) in rsc_offset() argument
123 u16 loffset = le16_to_cpu(ent->offset); in rsc_offset()
148 const struct entry_header *ent; in cmd_db_get_header() local
150 u8 query[sizeof(ent->id)] __nonstring; in cmd_db_get_header()
168 ent = rsc_to_entry_header(rsc_hdr); in cmd_db_get_header()
169 for (j = 0; j < le16_to_cpu(rsc_hdr->cnt); j++, ent++) { in cmd_db_get_header()
170 if (memcmp(ent->id, query, sizeof(ent->id)) == 0) { in cmd_db_get_header()
172 *eh = ent; in cmd_db_get_header()
196 const struct entry_header *ent; in cmd_db_read_addr() local
198 ret = cmd_db_get_header(id, &ent, NULL); in cmd_db_read_addr()
200 return ret < 0 ? 0 : le32_to_cpu(ent->addr); in cmd_db_read_addr()
215 const struct entry_header *ent; in cmd_db_read_aux_data() local
218 ret = cmd_db_get_header(id, &ent, &rsc_hdr); in cmd_db_read_aux_data()
223 *len = le16_to_cpu(ent->len); in cmd_db_read_aux_data()
225 return rsc_offset(rsc_hdr, ent); in cmd_db_read_aux_data()
263 const struct entry_header *ent; in cmd_db_read_slave_id() local
266 ret = cmd_db_get_header(id, &ent, NULL); in cmd_db_read_slave_id()
270 addr = le32_to_cpu(ent->addr); in cmd_db_read_slave_id()
280 const struct entry_header *ent; in cmd_db_debugfs_dump() local
314 ent = rsc_to_entry_header(rsc); in cmd_db_debugfs_dump()
315 for (j = 0; j < le16_to_cpu(rsc->cnt); j++, ent++) { in cmd_db_debugfs_dump()
316 seq_printf(seq, "0x%05x: %*pEp", le32_to_cpu(ent->addr), in cmd_db_debugfs_dump()
317 (int)strnlen(ent->id, sizeof(ent->id)), ent->id); in cmd_db_debugfs_dump()
319 len = le16_to_cpu(ent->len); in cmd_db_debugfs_dump()
322 len, rsc_offset(rsc, ent)); in cmd_db_debugfs_dump()