Lines Matching defs:data

122  * @tvlv_value: tvlv buffer containing the gateway data
371 * batadv_nc_purge_orig() - purges all nc node data attached of the given
497 * @data: data to hash
500 * Return: the selected index in the hash table for the given data.
502 static u32 batadv_nc_hash_choose(const void *data, u32 size)
504 const struct batadv_nc_path *nc_path = data;
542 * @data: search key
548 void *data)
557 index = batadv_nc_hash_choose(data, hash->size);
562 if (!batadv_nc_hash_compare(&nc_path->hash_entry, data))
1045 * @skb: data skb to forward
1114 packet1 = (struct batadv_unicast_packet *)nc_packet->skb->data;
1115 packet2 = (struct batadv_unicast_packet *)skb->data;
1118 skb->data + sizeof(*packet2));
1125 packet1 = (struct batadv_unicast_packet *)skb->data;
1126 packet2 = (struct batadv_unicast_packet *)nc_packet->skb->data;
1128 skb->data + sizeof(*packet1));
1132 /* Instead of zero padding the smallest data buffer, we
1151 coded_packet = (struct batadv_coded_packet *)skb_dest->data;
1174 batadv_nc_memxor(skb_dest->data + coded_size,
1175 skb_src->data + unicast_size, coding_len);
1236 * @skb: data skb to forward
1264 * @skb: data skb to forward
1330 * @skb: data skb to forward
1376 * @skb: data skb to store
1395 /* Set data pointer to MAC header to mimic packets from our tx path */
1409 * @skb: data skb to forward
1503 * @skb: data skb to forward
1561 * @skb: data skb to store
1591 /* Clone skb and adjust skb->data to point at batman header */
1632 /* Set data pointer to MAC header to mimic packets from our tx path */
1639 * batadv_nc_skb_decode_packet() - decode given skb using the decode data stored
1643 * @nc_packet: decode data needed to decode the skb
1662 memcpy(&coded_packet_tmp, skb->data, sizeof(coded_packet_tmp));
1672 * and network to data
1709 batadv_nc_memxor(skb->data + h_size,
1710 nc_packet->skb->data + h_size,
1721 unicast_packet = (struct batadv_unicast_packet *)skb->data;
1733 * batadv_nc_find_decoding_packet() - search through buffered decoding data to
1734 * find the data needed to decode the coded packet
1737 * @coded: coded packet we try to find decode data for
1739 * Return: pointer to nc packet if the needed data was found or NULL otherwise.
1824 coded_packet = (struct batadv_coded_packet *)skb->data;