Lines Matching refs:item
94 struct qmi_tlv_item *item; in qmi_tlv_get_item() local
103 item = pkt_data + offset; in qmi_tlv_get_item()
104 if (item->key == id) in qmi_tlv_get_item()
107 offset += sizeof(struct qmi_tlv_item) + item->len; in qmi_tlv_get_item()
114 struct qmi_tlv_item *item; in qmi_tlv_get() local
116 item = qmi_tlv_get_item(tlv, id); in qmi_tlv_get()
117 if (!item) in qmi_tlv_get()
120 *len = item->len; in qmi_tlv_get()
121 return item->data; in qmi_tlv_get()
126 struct qmi_tlv_item *item; in qmi_tlv_get_array() local
130 item = qmi_tlv_get_item(tlv, id); in qmi_tlv_get_array()
131 if (!item) in qmi_tlv_get_array()
134 ptr = item->data; in qmi_tlv_get_array()
148 *size = (item->len - len_size) / count; in qmi_tlv_get_array()
155 struct qmi_tlv_item *item; in qmi_tlv_alloc_item() local
171 item = newp + tlv->size; in qmi_tlv_alloc_item()
172 item->key = id; in qmi_tlv_alloc_item()
173 item->len = len; in qmi_tlv_alloc_item()
178 return item; in qmi_tlv_alloc_item()
183 struct qmi_tlv_item *item; in qmi_tlv_set() local
188 item = qmi_tlv_alloc_item(tlv, id, len); in qmi_tlv_set()
189 if (!item) { in qmi_tlv_set()
194 memcpy(item->data, buf, len); in qmi_tlv_set()
201 struct qmi_tlv_item *item; in qmi_tlv_set_array() local
209 item = qmi_tlv_alloc_item(tlv, id, len_size + array_size); in qmi_tlv_set_array()
210 if (!item) { in qmi_tlv_set_array()
215 ptr = item->data; in qmi_tlv_set_array()