/net/wireless/ |
D | lib80211_crypt_wep.c | 108 u32 crc, klen, len; in lib80211_wep_encrypt() local 131 crc = ~crc32_le(~0, pos, len); in lib80211_wep_encrypt() 133 icv[0] = crc; in lib80211_wep_encrypt() 134 icv[1] = crc >> 8; in lib80211_wep_encrypt() 135 icv[2] = crc >> 16; in lib80211_wep_encrypt() 136 icv[3] = crc >> 24; in lib80211_wep_encrypt() 154 u32 crc, klen, plen; in lib80211_wep_decrypt() local 180 crc = ~crc32_le(~0, pos, plen); in lib80211_wep_decrypt() 181 icv[0] = crc; in lib80211_wep_decrypt() 182 icv[1] = crc >> 8; in lib80211_wep_decrypt() [all …]
|
D | lib80211_crypt_tkip.c | 332 u32 crc; in lib80211_tkip_encrypt() local 350 crc = ~crc32_le(~0, pos, len); in lib80211_tkip_encrypt() 352 icv[0] = crc; in lib80211_tkip_encrypt() 353 icv[1] = crc >> 8; in lib80211_tkip_encrypt() 354 icv[2] = crc >> 16; in lib80211_tkip_encrypt() 355 icv[3] = crc >> 24; in lib80211_tkip_encrypt() 385 u32 crc; in lib80211_tkip_decrypt() local 442 crc = ~crc32_le(~0, pos, plen); in lib80211_tkip_decrypt() 443 icv[0] = crc; in lib80211_tkip_decrypt() 444 icv[1] = crc >> 8; in lib80211_tkip_decrypt() [all …]
|
/net/can/ |
D | gw.c | 309 u8 crc = crc8->init_crc_val; in cgw_csum_crc8_rel() local 317 crc = crc8->crctab[crc ^ cf->data[i]]; in cgw_csum_crc8_rel() 320 crc = crc8->crctab[crc ^ cf->data[i]]; in cgw_csum_crc8_rel() 325 crc = crc8->crctab[crc ^ crc8->profile_data[0]]; in cgw_csum_crc8_rel() 329 crc = crc8->crctab[crc ^ crc8->profile_data[cf->data[1] & 0xF]]; in cgw_csum_crc8_rel() 333 crc = crc8->crctab[crc ^ (cf->can_id & 0xFF) ^ in cgw_csum_crc8_rel() 338 cf->data[crc8->result_idx] = crc ^ crc8->final_xor_val; in cgw_csum_crc8_rel() 344 u8 crc = crc8->init_crc_val; in cgw_csum_crc8_pos() local 348 crc = crc8->crctab[crc ^ cf->data[i]]; in cgw_csum_crc8_pos() 352 crc = crc8->crctab[crc ^ crc8->profile_data[0]]; in cgw_csum_crc8_pos() [all …]
|
/net/nfc/nci/ |
D | spi.c | 73 u16 crc; in nci_spi_send() local 75 crc = crc_ccitt(CRC_INIT, skb->data, skb->len); in nci_spi_send() 76 skb_put_u8(skb, crc >> 8); in nci_spi_send() 77 skb_put_u8(skb, crc & 0xFF); in nci_spi_send() 149 u16 crc; in send_acknowledge() local 163 crc = crc_ccitt(CRC_INIT, skb->data, skb->len); in send_acknowledge() 164 skb_put_u8(skb, crc >> 8); in send_acknowledge() 165 skb_put_u8(skb, crc & 0xFF); in send_acknowledge()
|
/net/nfc/ |
D | digital_core.c | 58 u16 crc; in digital_skb_add_crc() local 60 crc = crc_func(init, skb->data, skb->len); in digital_skb_add_crc() 63 crc = ~crc; in digital_skb_add_crc() 66 crc = __fswab16(crc); in digital_skb_add_crc() 68 skb_put_u8(skb, crc & 0xFF); in digital_skb_add_crc() 69 skb_put_u8(skb, (crc >> 8) & 0xFF); in digital_skb_add_crc() 76 u16 crc; in digital_skb_check_crc() local 81 crc = crc_func(crc_init, skb->data, skb->len - 2); in digital_skb_check_crc() 84 crc = ~crc; in digital_skb_check_crc() 87 crc = __swab16(crc); in digital_skb_check_crc() [all …]
|
/net/batman-adv/ |
D | bridge_loop_avoidance.c | 188 old_backbone_gw->crc ^= crc16(0, claim->addr, ETH_ALEN); in batadv_claim_release() 324 backbone_gw->crc = BATADV_BLA_CRC_INIT; in batadv_bla_del_backbone_claims() 513 entry->crc = BATADV_BLA_CRC_INIT; in batadv_bla_get_backbone_gw() 666 __be16 crc; in batadv_bla_send_announce() local 670 crc = htons(backbone_gw->crc); in batadv_bla_send_announce() 672 memcpy(&mac[4], &crc, 2); in batadv_bla_send_announce() 752 old_backbone_gw->crc ^= crc16(0, claim->addr, ETH_ALEN); in batadv_bla_add_claim() 760 backbone_gw->crc ^= crc16(0, claim->addr, ETH_ALEN); in batadv_bla_add_claim() 839 u16 backbone_crc, crc; in batadv_handle_announce() local 852 crc = ntohs(*((__be16 *)(&an_addr[4]))); in batadv_handle_announce() [all …]
|
D | translation-table.c | 892 tt_vlan->crc = htonl(vlan->tt.crc); in batadv_tt_prepare_tvlv_global_data() 976 tt_vlan->crc = htonl(vlan->tt.crc); in batadv_tt_prepare_tvlv_local_data() 1133 tt_local->vlan->tt.crc); in batadv_tt_local_seq_print_text() 1164 u32 crc; in batadv_tt_local_dump_entry() local 1173 crc = vlan->tt.crc; in batadv_tt_local_dump_entry() 1186 nla_put_u32(msg, BATADV_ATTR_TT_CRC32, crc) || in batadv_tt_local_dump_entry() 1926 last_ttvn, vlan->tt.crc, in batadv_tt_global_print_entry() 1958 last_ttvn, vlan->tt.crc, in batadv_tt_global_print_entry() 2037 u32 crc; in batadv_tt_global_dump_subentry() local 2044 crc = vlan->tt.crc; in batadv_tt_global_dump_subentry() [all …]
|
D | main.c | 641 u32 crc = 0; in batadv_skb_crc32() local 653 crc = crc32c(crc, data, len); in batadv_skb_crc32() 657 return htonl(crc); in batadv_skb_crc32()
|
D | types.h | 329 u32 crc; member 758 __be32 crc; member 1852 u16 crc; member
|
/net/ipv6/ |
D | calipso.c | 574 u16 crc, len = option[1] + 2; in calipso_validate() local 579 crc = crc_ccitt(0xffff, option, 8); in calipso_validate() 580 crc = crc_ccitt(crc, zero, sizeof(zero)); in calipso_validate() 582 crc = crc_ccitt(crc, option + 10, len - 10); in calipso_validate() 583 crc = ~crc; in calipso_validate() 584 if (option[8] != (crc & 0xff) || option[9] != ((crc >> 8) & 0xff)) in calipso_validate() 729 u16 crc; in calipso_genopt() local 761 crc = ~crc_ccitt(0xffff, calipso, len); in calipso_genopt() 762 calipso[8] = crc & 0xff; in calipso_genopt() 763 calipso[9] = (crc >> 8) & 0xff; in calipso_genopt()
|
/net/mac802154/ |
D | rx.c | 251 u16 crc; in ieee802154_rx() local 263 crc = crc_ccitt(0, skb->data, skb->len); in ieee802154_rx() 264 put_unaligned_le16(crc, skb_put(skb, 2)); in ieee802154_rx() 275 crc = crc_ccitt(0, skb->data, skb->len); in ieee802154_rx() 276 if (crc) { in ieee802154_rx()
|
D | tx.c | 59 u16 crc; in ieee802154_tx() local 72 crc = crc_ccitt(0, skb->data, skb->len); in ieee802154_tx() 73 put_unaligned_le16(crc, skb_put(skb, 2)); in ieee802154_tx()
|
/net/ceph/ |
D | messenger.c | 1264 u32 crc; in prepare_write_message() local 1317 crc = crc32c(0, &m->hdr, offsetof(struct ceph_msg_header, crc)); in prepare_write_message() 1318 con->out_msg->hdr.crc = cpu_to_le32(crc); in prepare_write_message() 1322 crc = crc32c(0, m->front.iov_base, m->front.iov_len); in prepare_write_message() 1323 con->out_msg->footer.front_crc = cpu_to_le32(crc); in prepare_write_message() 1325 crc = crc32c(0, m->middle->vec.iov_base, in prepare_write_message() 1327 con->out_msg->footer.middle_crc = cpu_to_le32(crc); in prepare_write_message() 1539 static u32 ceph_crc32c_page(u32 crc, struct page *page, in ceph_crc32c_page() argument 1547 crc = crc32c(crc, kaddr + page_offset, length); in ceph_crc32c_page() 1550 return crc; in ceph_crc32c_page() [all …]
|
D | auth_x.c | 821 sigblock->header_crc = msg->hdr.crc; in calc_signature() 848 sigblock->header_crc = msg->hdr.crc; in calc_signature()
|
/net/mac80211/ |
D | wep.c | 170 __le32 crc; in ieee80211_wep_decrypt_data() local 176 crc = cpu_to_le32(~crc32_le(~0, data, data_len)); in ieee80211_wep_decrypt_data() 177 if (memcmp(&crc, data + data_len, IEEE80211_WEP_ICV_LEN) != 0) in ieee80211_wep_decrypt_data()
|
D | util.c | 897 u64 filter, u32 crc, in _ieee802_11_parse_elems_crc() argument 965 crc = crc32_be(crc, pos - 2, elen + 2); in _ieee802_11_parse_elems_crc() 1015 crc = crc32_be(crc, pos - 2, elen + 2); in _ieee802_11_parse_elems_crc() 1065 crc = crc32_be(crc, pos - 2, elen + 2); in _ieee802_11_parse_elems_crc() 1074 crc = crc32_be(crc, pos - 2, elen + 2); in _ieee802_11_parse_elems_crc() 1204 crc = crc32_be(crc, pos - 2, elen + 2); in _ieee802_11_parse_elems_crc() 1232 crc = crc32_be(crc, pos - 2, elen + 2); in _ieee802_11_parse_elems_crc() 1269 return crc; in _ieee802_11_parse_elems_crc() 1344 u64 filter, u32 crc, u8 *transmitter_bssid, in ieee802_11_parse_elems_crc() argument 1373 crc = _ieee802_11_parse_elems_crc(start, len, action, elems, filter, in ieee802_11_parse_elems_crc() [all …]
|
D | ieee80211_i.h | 1997 u64 filter, u32 crc, u8 *transmitter_bssid,
|
/net/bluetooth/rfcomm/ |
D | core.c | 1136 unsigned char hdr[5], crc[1]; in rfcomm_send_test() local 1149 crc[0] = __fcs(hdr); in rfcomm_send_test() 1155 iv[2].iov_base = crc; in rfcomm_send_test() 1186 u8 *crc; in rfcomm_make_uih() local 1198 crc = skb_put(skb, 1); in rfcomm_make_uih() 1199 *crc = __fcs((void *) hdr); in rfcomm_make_uih()
|