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