Searched refs:magic_len (Results 1 – 6 of 6) sorted by relevance
/Linux-v6.6/drivers/net/wireless/ath/ath12k/ |
D | core.c | 222 size_t len, magic_len; in ath12k_core_fetch_board_data_api_n() local 244 magic_len = strlen(ATH12K_BOARD_MAGIC) + 1; in ath12k_core_fetch_board_data_api_n() 245 if (len < magic_len) { in ath12k_core_fetch_board_data_api_n() 252 if (memcmp(data, ATH12K_BOARD_MAGIC, magic_len)) { in ath12k_core_fetch_board_data_api_n() 259 magic_len = ALIGN(magic_len, 4); in ath12k_core_fetch_board_data_api_n() 260 if (len < magic_len) { in ath12k_core_fetch_board_data_api_n() 267 data += magic_len; in ath12k_core_fetch_board_data_api_n() 268 len -= magic_len; in ath12k_core_fetch_board_data_api_n()
|
/Linux-v6.6/drivers/net/wan/ |
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-v6.6/drivers/net/wireless/ath/ath10k/ |
D | core.c | 1470 size_t len, magic_len; in ath10k_core_fetch_board_data_api_n() local 1486 magic_len = strlen(ATH10K_BOARD_MAGIC) + 1; in ath10k_core_fetch_board_data_api_n() 1487 if (len < magic_len) { in ath10k_core_fetch_board_data_api_n() 1494 if (memcmp(data, ATH10K_BOARD_MAGIC, magic_len)) { in ath10k_core_fetch_board_data_api_n() 1501 magic_len = ALIGN(magic_len, 4); in ath10k_core_fetch_board_data_api_n() 1502 if (len < magic_len) { in ath10k_core_fetch_board_data_api_n() 1509 data += magic_len; in ath10k_core_fetch_board_data_api_n() 1510 len -= magic_len; in ath10k_core_fetch_board_data_api_n() 1990 size_t magic_len, len, ie_len; in ath10k_core_fetch_firmware_api_n() local 2006 magic_len = strlen(ATH10K_FIRMWARE_MAGIC) + 1; in ath10k_core_fetch_firmware_api_n() [all …]
|
/Linux-v6.6/drivers/net/wireless/ath/ath6kl/ |
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-v6.6/drivers/net/wireless/ath/ath11k/ |
D | core.c | 1170 size_t len, magic_len; in ath11k_core_fetch_board_data_api_n() local 1192 magic_len = strlen(ATH11K_BOARD_MAGIC) + 1; in ath11k_core_fetch_board_data_api_n() 1193 if (len < magic_len) { in ath11k_core_fetch_board_data_api_n() 1200 if (memcmp(data, ATH11K_BOARD_MAGIC, magic_len)) { in ath11k_core_fetch_board_data_api_n() 1207 magic_len = ALIGN(magic_len, 4); in ath11k_core_fetch_board_data_api_n() 1208 if (len < magic_len) { in ath11k_core_fetch_board_data_api_n() 1215 data += magic_len; in ath11k_core_fetch_board_data_api_n() 1216 len -= magic_len; in ath11k_core_fetch_board_data_api_n()
|
/Linux-v6.6/net/core/ |
D | filter.c | 7372 u8 magic_len, bool *eol) in bpf_search_tcp_opt() argument 7398 if (!magic_len) in bpf_search_tcp_opt() 7401 if (magic_len > kind_len - 2) in bpf_search_tcp_opt() 7404 if (!memcmp(&op[2], magic, magic_len)) in bpf_search_tcp_opt() 7419 u8 search_kind, search_len, copy_len, magic_len; in BPF_CALL_4() local 7441 magic_len = search_len - 2; in BPF_CALL_4() 7446 magic_len = 0; in BPF_CALL_4() 7466 op = bpf_search_tcp_opt(op, opend, search_kind, magic, magic_len, in BPF_CALL_4() 7495 u8 new_kind, new_kind_len, magic_len = 0, *opend; in BPF_CALL_4() local 7529 magic_len = 2; in BPF_CALL_4() [all …]
|