Lines Matching refs:ent
114 rsc_offset(const struct rsc_hdr *hdr, const struct entry_header *ent)
117 u16 loffset = le16_to_cpu(ent->offset);
142 const struct entry_header *ent;
144 u8 query[sizeof(ent->id)] __nonstring;
162 ent = rsc_to_entry_header(rsc_hdr);
163 for (j = 0; j < le16_to_cpu(rsc_hdr->cnt); j++, ent++) {
164 if (memcmp(ent->id, query, sizeof(ent->id)) == 0) {
166 *eh = ent;
190 const struct entry_header *ent;
192 ret = cmd_db_get_header(id, &ent, NULL);
194 return ret < 0 ? 0 : le32_to_cpu(ent->addr);
209 const struct entry_header *ent;
212 ret = cmd_db_get_header(id, &ent, &rsc_hdr);
217 *len = le16_to_cpu(ent->len);
219 return rsc_offset(rsc_hdr, ent);
233 const struct entry_header *ent;
236 ret = cmd_db_get_header(id, &ent, NULL);
240 addr = le32_to_cpu(ent->addr);
250 const struct entry_header *ent;
284 ent = rsc_to_entry_header(rsc);
285 for (j = 0; j < le16_to_cpu(rsc->cnt); j++, ent++) {
286 seq_printf(seq, "0x%05x: %*pEp", le32_to_cpu(ent->addr),
287 (int)strnlen(ent->id, sizeof(ent->id)), ent->id);
289 len = le16_to_cpu(ent->len);
292 len, rsc_offset(rsc, ent));