/linux/drivers/net/wireless/ath/ath11k/ |
H A D | fw.c | 13 size_t magic_len, len, ie_len; in ath11k_fw_request_firmware_api_n() local 31 magic_len = strlen(ATH11K_FIRMWARE_MAGIC) + 1; in ath11k_fw_request_firmware_api_n() 33 if (len < magic_len) { in ath11k_fw_request_firmware_api_n() 40 if (memcmp(data, ATH11K_FIRMWARE_MAGIC, magic_len) != 0) { in ath11k_fw_request_firmware_api_n() 47 magic_len = ALIGN(magic_len, 4); in ath11k_fw_request_firmware_api_n() 50 if (magic_len > len) { in ath11k_fw_request_firmware_api_n() 56 len -= magic_len; in ath11k_fw_request_firmware_api_n() 57 data += magic_len; in ath11k_fw_request_firmware_api_n()
|
H A D | core.c | 1303 size_t len, magic_len; in ath11k_core_fetch_board_data_api_n() local 1325 magic_len = strlen(ATH11K_BOARD_MAGIC) + 1; in ath11k_core_fetch_board_data_api_n() 1326 if (len < magic_len) { in ath11k_core_fetch_board_data_api_n() 1333 if (memcmp(data, ATH11K_BOARD_MAGIC, magic_len)) { in ath11k_core_fetch_board_data_api_n() 1340 magic_len = ALIGN(magic_len, 4); in ath11k_core_fetch_board_data_api_n() 1341 if (len < magic_len) { in ath11k_core_fetch_board_data_api_n() 1348 data += magic_len; in ath11k_core_fetch_board_data_api_n() 1349 len -= magic_len; in ath11k_core_fetch_board_data_api_n()
|
/linux/drivers/net/wireless/ath/ath12k/ |
H A D | fw.c | 13 size_t magic_len, len, ie_len; in ath12k_fw_request_firmware_api_n() local 31 magic_len = strlen(ATH12K_FIRMWARE_MAGIC) + 1; in ath12k_fw_request_firmware_api_n() 33 if (len < magic_len) { in ath12k_fw_request_firmware_api_n() 40 if (memcmp(data, ATH12K_FIRMWARE_MAGIC, magic_len) != 0) { in ath12k_fw_request_firmware_api_n() 47 magic_len = ALIGN(magic_len, 4); in ath12k_fw_request_firmware_api_n() 50 if (magic_len > len) { in ath12k_fw_request_firmware_api_n() 56 len -= magic_len; in ath12k_fw_request_firmware_api_n() 57 data += magic_len; in ath12k_fw_request_firmware_api_n()
|
H A D | core.c | 344 size_t len, magic_len; in ath12k_core_fetch_board_data_api_n() local 366 magic_len = strlen(ATH12K_BOARD_MAGIC) + 1; in ath12k_core_fetch_board_data_api_n() 367 if (len < magic_len) { in ath12k_core_fetch_board_data_api_n() 374 if (memcmp(data, ATH12K_BOARD_MAGIC, magic_len)) { in ath12k_core_fetch_board_data_api_n() 381 magic_len = ALIGN(magic_len, 4); in ath12k_core_fetch_board_data_api_n() 382 if (len < magic_len) { in ath12k_core_fetch_board_data_api_n() 389 data += magic_len; in ath12k_core_fetch_board_data_api_n() 390 len -= magic_len; in ath12k_core_fetch_board_data_api_n()
|
/linux/drivers/net/wan/ |
H A D | hdlc_ppp.c | 209 unsigned int magic_len = 0; in ppp_tx_cp() local 218 magic_len = sizeof(magic); in ppp_tx_cp() 221 sizeof(struct cp_header) + magic_len + len); in ppp_tx_cp() 230 cp->len = htons(sizeof(struct cp_header) + magic_len + len); in ppp_tx_cp() 232 if (magic_len) in ppp_tx_cp() 233 skb_put_data(skb, &magic, magic_len); in ppp_tx_cp() 241 for (i = 0; i < min_t(unsigned int, magic_len + len, DEBUG_CP); i++) { in ppp_tx_cp()
|
/linux/drivers/net/wireless/ath/ath10k/ |
H A D | core.c | 1489 size_t len, magic_len; in ath10k_core_fetch_board_data_api_n() local 1506 if (len < magic_len) { in ath10k_core_fetch_board_data_api_n() 1520 magic_len = ALIGN(magic_len, 4); in ath10k_core_fetch_board_data_api_n() 1521 if (len < magic_len) { in ath10k_core_fetch_board_data_api_n() 1528 data += magic_len; in ath10k_core_fetch_board_data_api_n() 1529 len -= magic_len; in ath10k_core_fetch_board_data_api_n() 2009 size_t magic_len, len, ie_len; in ath10k_core_fetch_firmware_api_n() local 2027 if (len < magic_len) { in ath10k_core_fetch_firmware_api_n() 2041 magic_len = ALIGN(magic_len, 4); in ath10k_core_fetch_firmware_api_n() 2043 len -= magic_len; in ath10k_core_fetch_firmware_api_n() [all …]
|
/linux/drivers/net/wireless/ath/ath6kl/ |
H A D | init.c | 955 size_t magic_len, len, ie_len; in ath6kl_fetch_fw_apin() local 975 magic_len = strlen(ATH6KL_FIRMWARE_MAGIC) + 1; in ath6kl_fetch_fw_apin() 977 if (len < magic_len) { in ath6kl_fetch_fw_apin() 979 len, magic_len); in ath6kl_fetch_fw_apin() 984 if (memcmp(data, ATH6KL_FIRMWARE_MAGIC, magic_len) != 0) { in ath6kl_fetch_fw_apin() 986 magic_len); in ath6kl_fetch_fw_apin() 991 len -= magic_len; in ath6kl_fetch_fw_apin() 992 data += magic_len; in ath6kl_fetch_fw_apin()
|
/linux/net/core/ |
H A D | filter.c | 7527 u8 magic_len, bool *eol) in bpf_search_tcp_opt() argument 7553 if (!magic_len) in bpf_search_tcp_opt() 7556 if (magic_len > kind_len - 2) in bpf_search_tcp_opt() 7559 if (!memcmp(&op[2], magic, magic_len)) in bpf_search_tcp_opt() 7574 u8 search_kind, search_len, copy_len, magic_len; in BPF_CALL_4() local 7596 magic_len = search_len - 2; in BPF_CALL_4() 7601 magic_len = 0; in BPF_CALL_4() 7621 op = bpf_search_tcp_opt(op, opend, search_kind, magic, magic_len, in BPF_CALL_4() 7650 u8 new_kind, new_kind_len, magic_len = 0, *opend; in BPF_CALL_4() local 7684 magic_len = 2; in BPF_CALL_4() [all …]
|