Lines Matching full: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()
163 ent = rsc_to_entry_header(rsc_hdr); in cmd_db_get_header()
164 for (j = 0; j < le16_to_cpu(rsc_hdr->cnt); j++, ent++) { in cmd_db_get_header()
165 if (memcmp(ent->id, query, sizeof(ent->id)) == 0) { in cmd_db_get_header()
167 *eh = ent; in cmd_db_get_header()
191 const struct entry_header *ent; in cmd_db_read_addr() local
193 ret = cmd_db_get_header(id, &ent, NULL); in cmd_db_read_addr()
195 return ret < 0 ? 0 : le32_to_cpu(ent->addr); in cmd_db_read_addr()
210 const struct entry_header *ent; in cmd_db_read_aux_data() local
213 ret = cmd_db_get_header(id, &ent, &rsc_hdr); in cmd_db_read_aux_data()
218 *len = le16_to_cpu(ent->len); in cmd_db_read_aux_data()
220 return rsc_offset(rsc_hdr, ent); in cmd_db_read_aux_data()
258 const struct entry_header *ent; in cmd_db_read_slave_id() local
261 ret = cmd_db_get_header(id, &ent, NULL); in cmd_db_read_slave_id()
265 addr = le32_to_cpu(ent->addr); in cmd_db_read_slave_id()
275 const struct entry_header *ent; in cmd_db_debugfs_dump() local
309 ent = rsc_to_entry_header(rsc); in cmd_db_debugfs_dump()
310 for (j = 0; j < le16_to_cpu(rsc->cnt); j++, ent++) { in cmd_db_debugfs_dump()
311 seq_printf(seq, "0x%05x: %*pEp", le32_to_cpu(ent->addr), in cmd_db_debugfs_dump()
312 (int)strnlen(ent->id, sizeof(ent->id)), ent->id); in cmd_db_debugfs_dump()
314 len = le16_to_cpu(ent->len); in cmd_db_debugfs_dump()
317 len, rsc_offset(rsc, ent)); in cmd_db_debugfs_dump()