Searched refs:magic_len (Results 1 – 6 of 6) sorted by relevance
/openbmc/linux/drivers/net/wireless/ath/ath12k/ |
H A 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()
|
/openbmc/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()
|
/openbmc/linux/drivers/net/wireless/ath/ath10k/ |
H A D | core.c | 1473 size_t len, magic_len; in ath10k_core_fetch_board_data_api_n() local 1490 if (len < magic_len) { in ath10k_core_fetch_board_data_api_n() 1504 magic_len = ALIGN(magic_len, 4); in ath10k_core_fetch_board_data_api_n() 1505 if (len < magic_len) { in ath10k_core_fetch_board_data_api_n() 1512 data += magic_len; in ath10k_core_fetch_board_data_api_n() 1513 len -= magic_len; in ath10k_core_fetch_board_data_api_n() 1993 size_t magic_len, len, ie_len; in ath10k_core_fetch_firmware_api_n() local 2011 if (len < magic_len) { in ath10k_core_fetch_firmware_api_n() 2025 magic_len = ALIGN(magic_len, 4); in ath10k_core_fetch_firmware_api_n() 2027 len -= magic_len; in ath10k_core_fetch_firmware_api_n() [all …]
|
/openbmc/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()
|
/openbmc/linux/drivers/net/wireless/ath/ath11k/ |
H A 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()
|
/openbmc/linux/net/core/ |
H A D | filter.c | 7469 u8 magic_len, bool *eol) in bpf_search_tcp_opt() argument 7495 if (!magic_len) in bpf_search_tcp_opt() 7498 if (magic_len > kind_len - 2) in bpf_search_tcp_opt() 7501 if (!memcmp(&op[2], magic, magic_len)) in bpf_search_tcp_opt() 7516 u8 search_kind, search_len, copy_len, magic_len; in BPF_CALL_4() local 7538 magic_len = search_len - 2; in BPF_CALL_4() 7543 magic_len = 0; in BPF_CALL_4() 7563 op = bpf_search_tcp_opt(op, opend, search_kind, magic, magic_len, in BPF_CALL_4() 7592 u8 new_kind, new_kind_len, magic_len = 0, *opend; in BPF_CALL_4() local 7626 magic_len = 2; in BPF_CALL_4() [all …]
|