Lines Matching refs:packet
60 struct mchp_otpc_packet *packet; in mchp_otpc_id_to_packet() local
65 list_for_each_entry(packet, &otpc->packets, list) { in mchp_otpc_id_to_packet()
66 if (packet->id == id) in mchp_otpc_id_to_packet()
67 return packet; in mchp_otpc_id_to_packet()
150 struct mchp_otpc_packet *packet; in mchp_otpc_read() local
162 packet = mchp_otpc_id_to_packet(otpc, off / 4); in mchp_otpc_read()
163 if (!packet) in mchp_otpc_read()
165 offset = packet->offset; in mchp_otpc_read()
195 struct mchp_otpc_packet *packet; in mchp_otpc_init_packets_list() local
212 packet = devm_kzalloc(otpc->dev, sizeof(*packet), GFP_KERNEL); in mchp_otpc_init_packets_list()
213 if (!packet) in mchp_otpc_init_packets_list()
216 packet->id = id++; in mchp_otpc_init_packets_list()
217 packet->offset = word_pos; in mchp_otpc_init_packets_list()
218 INIT_LIST_HEAD(&packet->list); in mchp_otpc_init_packets_list()
219 list_add_tail(&packet->list, &otpc->packets); in mchp_otpc_init_packets_list()