Lines Matching refs:rsc_hdr
38 * struct rsc_hdr: resource header information
47 struct rsc_hdr {
69 struct rsc_hdr header[MAX_SLV_ID];
84 * rsc_hdr.header_offset. In addition each slave could have auxiliary data
86 * entry_header.offset to the location pointed to by the rsc_hdr.data_offset.
105 static inline const void *rsc_to_entry_header(const struct rsc_hdr *hdr)
113 rsc_offset(const struct rsc_hdr *hdr, const struct entry_header *ent)
138 const struct rsc_hdr **rh)
140 const struct rsc_hdr *rsc_hdr;
153 rsc_hdr = &cmd_db_header->header[i];
154 if (!rsc_hdr->slv_id)
157 ent = rsc_to_entry_header(rsc_hdr);
158 for (j = 0; j < le16_to_cpu(rsc_hdr->cnt); j++, ent++) {
163 *rh = rsc_hdr;
205 const struct rsc_hdr *rsc_hdr;
207 ret = cmd_db_get_header(id, &ent, &rsc_hdr);
214 return rsc_offset(rsc_hdr, ent);
244 const struct rsc_hdr *rsc;