• Home
  • Raw
  • Download

Lines Matching refs:flags

471 	u8 flags = common->flags | event_flags;  in batadv_tt_local_event()  local
479 tt_change_node->change.flags = flags; in batadv_tt_local_event()
485 del_op_requested = flags & BATADV_TT_CLIENT_DEL; in batadv_tt_local_event()
501 del_op_entry = entry->change.flags & BATADV_TT_CLIENT_DEL; in batadv_tt_local_event()
511 entry->change.flags = flags; in batadv_tt_local_event()
672 if (tt_local->common.flags & BATADV_TT_CLIENT_PENDING) { in batadv_tt_local_add()
681 tt_local->common.flags &= ~BATADV_TT_CLIENT_PENDING; in batadv_tt_local_add()
685 if (tt_local->common.flags & BATADV_TT_CLIENT_ROAM) { in batadv_tt_local_add()
694 tt_local->common.flags &= ~BATADV_TT_CLIENT_ROAM; in batadv_tt_local_add()
736 tt_local->common.flags = BATADV_TT_CLIENT_NEW; in batadv_tt_local_add()
739 tt_local->common.flags |= BATADV_TT_CLIENT_WIFI; in batadv_tt_local_add()
750 tt_local->common.flags |= BATADV_TT_CLIENT_NOPURGE; in batadv_tt_local_add()
770 if (tt_global && !(tt_global->common.flags & BATADV_TT_CLIENT_ROAM)) { in batadv_tt_local_add()
788 tt_global->common.flags |= BATADV_TT_CLIENT_ROAM; in batadv_tt_local_add()
796 remote_flags = tt_local->common.flags & BATADV_TT_REMOTE_MASK; in batadv_tt_local_add()
799 tt_local->common.flags |= BATADV_TT_CLIENT_WIFI; in batadv_tt_local_add()
801 tt_local->common.flags &= ~BATADV_TT_CLIENT_WIFI; in batadv_tt_local_add()
810 tt_local->common.flags |= BATADV_TT_CLIENT_ISOLA; in batadv_tt_local_add()
812 tt_local->common.flags &= ~BATADV_TT_CLIENT_ISOLA; in batadv_tt_local_add()
817 if (remote_flags ^ (tt_local->common.flags & BATADV_TT_REMOTE_MASK)) in batadv_tt_local_add()
886 (*tt_data)->flags = BATADV_NO_FLAGS; in batadv_tt_prepare_tvlv_global_data()
965 (*tt_data)->flags = BATADV_NO_FLAGS; in batadv_tt_prepare_tvlv_local_data()
1018 tt_data->flags = BATADV_TT_OGM_DIFF; in batadv_tt_tvlv_container_update()
1114 no_purge = tt_common_entry->flags & np_flag; in batadv_tt_local_seq_print_text()
1119 ((tt_common_entry->flags & in batadv_tt_local_seq_print_text()
1122 ((tt_common_entry->flags & in batadv_tt_local_seq_print_text()
1124 ((tt_common_entry->flags & in batadv_tt_local_seq_print_text()
1126 ((tt_common_entry->flags & in batadv_tt_local_seq_print_text()
1128 ((tt_common_entry->flags & in batadv_tt_local_seq_print_text()
1187 nla_put_u32(msg, BATADV_ATTR_TT_FLAGS, common->flags)) in batadv_tt_local_dump_entry()
1190 if (!(common->flags & BATADV_TT_CLIENT_NOPURGE) && in batadv_tt_local_dump_entry()
1309 u16 flags, const char *message) in batadv_tt_local_set_pending() argument
1311 batadv_tt_local_event(bat_priv, tt_local_entry, flags); in batadv_tt_local_set_pending()
1317 tt_local_entry->common.flags |= BATADV_TT_CLIENT_PENDING; in batadv_tt_local_set_pending()
1341 u16 flags, curr_flags = BATADV_NO_FLAGS; in batadv_tt_local_remove() local
1348 curr_flags = tt_local_entry->common.flags; in batadv_tt_local_remove()
1350 flags = BATADV_TT_CLIENT_DEL; in batadv_tt_local_remove()
1356 flags |= BATADV_TT_CLIENT_ROAM; in batadv_tt_local_remove()
1358 tt_local_entry->common.flags |= BATADV_TT_CLIENT_ROAM; in batadv_tt_local_remove()
1361 if (!(tt_local_entry->common.flags & BATADV_TT_CLIENT_NEW)) { in batadv_tt_local_remove()
1362 batadv_tt_local_set_pending(bat_priv, tt_local_entry, flags, in batadv_tt_local_remove()
1411 if (tt_local_entry->common.flags & BATADV_TT_CLIENT_NOPURGE) in batadv_tt_local_purge_list()
1415 if (tt_local_entry->common.flags & BATADV_TT_CLIENT_PENDING) in batadv_tt_local_purge_list()
1568 u8 *flags) in batadv_tt_global_entry_has_orig() argument
1577 if (flags) in batadv_tt_global_entry_has_orig()
1578 *flags = orig_entry->flags; in batadv_tt_global_entry_has_orig()
1598 u16 flags = BATADV_NO_FLAGS; in batadv_tt_global_sync_flags() local
1603 flags |= orig_entry->flags; in batadv_tt_global_sync_flags()
1606 flags |= tt_global->common.flags & (~BATADV_TT_SYNC_MASK); in batadv_tt_global_sync_flags()
1607 tt_global->common.flags = flags; in batadv_tt_global_sync_flags()
1620 u8 flags) in batadv_tt_global_orig_entry_add() argument
1632 orig_entry->flags = flags; in batadv_tt_global_orig_entry_add()
1645 orig_entry->flags = flags; in batadv_tt_global_orig_entry_add()
1684 unsigned short vid, u16 flags, u8 ttvn) in batadv_tt_global_add() argument
1704 if ((flags & BATADV_TT_CLIENT_TEMP) && tt_local_entry && in batadv_tt_global_add()
1705 !(tt_local_entry->common.flags & BATADV_TT_CLIENT_NEW)) in batadv_tt_global_add()
1719 common->flags = flags & (~BATADV_TT_SYNC_MASK); in batadv_tt_global_add()
1726 if (flags & BATADV_TT_CLIENT_ROAM) in batadv_tt_global_add()
1758 if (flags & BATADV_TT_CLIENT_TEMP) { in batadv_tt_global_add()
1759 if (!(common->flags & BATADV_TT_CLIENT_TEMP)) in batadv_tt_global_add()
1774 if (common->flags & BATADV_TT_CLIENT_TEMP) { in batadv_tt_global_add()
1776 common->flags &= ~BATADV_TT_CLIENT_TEMP; in batadv_tt_global_add()
1784 common->flags |= flags & (~BATADV_TT_SYNC_MASK); in batadv_tt_global_add()
1793 if (common->flags & BATADV_TT_CLIENT_ROAM) { in batadv_tt_global_add()
1795 common->flags &= ~BATADV_TT_CLIENT_ROAM; in batadv_tt_global_add()
1802 flags & BATADV_TT_SYNC_MASK); in batadv_tt_global_add()
1820 flags & BATADV_TT_CLIENT_ROAM); in batadv_tt_global_add()
1821 tt_global_entry->common.flags |= local_flags & BATADV_TT_CLIENT_WIFI; in batadv_tt_global_add()
1823 if (!(flags & BATADV_TT_CLIENT_ROAM)) in batadv_tt_global_add()
1827 tt_global_entry->common.flags &= ~BATADV_TT_CLIENT_ROAM; in batadv_tt_global_add()
1902 u16 flags; in batadv_tt_global_print_entry() local
1905 flags = tt_common_entry->flags; in batadv_tt_global_print_entry()
1926 ((flags & BATADV_TT_CLIENT_ROAM) ? 'R' : '.'), in batadv_tt_global_print_entry()
1927 ((flags & BATADV_TT_CLIENT_WIFI) ? 'W' : '.'), in batadv_tt_global_print_entry()
1928 ((flags & BATADV_TT_CLIENT_ISOLA) ? 'I' : '.'), in batadv_tt_global_print_entry()
1929 ((flags & BATADV_TT_CLIENT_TEMP) ? 'T' : '.')); in batadv_tt_global_print_entry()
1958 ((flags & BATADV_TT_CLIENT_ROAM) ? 'R' : '.'), in batadv_tt_global_print_entry()
1959 ((flags & BATADV_TT_CLIENT_WIFI) ? 'W' : '.'), in batadv_tt_global_print_entry()
1960 ((flags & BATADV_TT_CLIENT_ISOLA) ? 'I' : '.'), in batadv_tt_global_print_entry()
1961 ((flags & BATADV_TT_CLIENT_TEMP) ? 'T' : '.')); in batadv_tt_global_print_entry()
2032 u16 flags = (common->flags & (~BATADV_TT_SYNC_MASK)) | orig->flags; in batadv_tt_global_dump_subentry() local
2062 nla_put_u32(msg, BATADV_ATTR_TT_FLAGS, flags)) in batadv_tt_global_dump_subentry()
2338 tt_global_entry->common.flags |= BATADV_TT_CLIENT_ROAM; in batadv_tt_global_del_roaming()
2481 if ((tt_global->common.flags & BATADV_TT_CLIENT_ROAM) && in batadv_tt_global_to_purge()
2487 if ((tt_global->common.flags & BATADV_TT_CLIENT_TEMP) && in batadv_tt_global_to_purge()
2575 if (tt_local_entry->common.flags & BATADV_TT_CLIENT_WIFI && in _batadv_is_ap_isolated()
2576 tt_global_entry->common.flags & BATADV_TT_CLIENT_WIFI) in _batadv_is_ap_isolated()
2580 if (tt_local_entry->common.flags & BATADV_TT_CLIENT_ISOLA && in _batadv_is_ap_isolated()
2581 tt_global_entry->common.flags & BATADV_TT_CLIENT_ISOLA) in _batadv_is_ap_isolated()
2614 (tt_local_entry->common.flags & BATADV_TT_CLIENT_PENDING)) in batadv_transtable_search()
2681 u8 flags; in batadv_tt_global_crc() local
2703 if (tt_common->flags & BATADV_TT_CLIENT_ROAM) in batadv_tt_global_crc()
2709 if (tt_common->flags & BATADV_TT_CLIENT_TEMP) in batadv_tt_global_crc()
2729 flags = tt_orig->flags; in batadv_tt_global_crc()
2730 crc_tmp = crc32c(crc_tmp, &flags, sizeof(flags)); in batadv_tt_global_crc()
2759 u8 flags; in batadv_tt_local_crc() local
2776 if (tt_common->flags & BATADV_TT_CLIENT_NEW) in batadv_tt_local_crc()
2788 flags = tt_common->flags & BATADV_TT_SYNC_MASK; in batadv_tt_local_crc()
2789 crc_tmp = crc32c(crc_tmp, &flags, sizeof(flags)); in batadv_tt_local_crc()
2924 u8 *flags) in batadv_tt_local_valid() argument
2928 if (tt_common_entry->flags & BATADV_TT_CLIENT_NEW) in batadv_tt_local_valid()
2931 if (flags) in batadv_tt_local_valid()
2932 *flags = tt_common_entry->flags; in batadv_tt_local_valid()
2951 u8 *flags) in batadv_tt_global_valid() argument
2957 if (tt_common_entry->flags & BATADV_TT_CLIENT_ROAM || in batadv_tt_global_valid()
2958 tt_common_entry->flags & BATADV_TT_CLIENT_TEMP) in batadv_tt_global_valid()
2966 flags); in batadv_tt_global_valid()
2987 u8 *flags), in batadv_tt_tvlv_generate() argument
2994 u8 flags; in batadv_tt_tvlv_generate() local
3013 ret = valid_cb(tt_common_entry, cb_data, &flags); in batadv_tt_tvlv_generate()
3018 tt_change->flags = flags; in batadv_tt_tvlv_generate()
3171 tvlv_tt_data->flags = BATADV_TT_REQUEST; in batadv_send_tt_request()
3188 tvlv_tt_data->flags |= BATADV_TT_FULL_TABLE; in batadv_send_tt_request()
3246 ((tt_data->flags & BATADV_TT_FULL_TABLE) ? 'F' : '.')); in batadv_send_other_tt_response()
3268 if (tt_data->flags & BATADV_TT_FULL_TABLE || in batadv_send_other_tt_response()
3320 tvlv_tt_data->flags = BATADV_TT_RESPONSE; in batadv_send_other_tt_response()
3324 tvlv_tt_data->flags |= BATADV_TT_FULL_TABLE; in batadv_send_other_tt_response()
3377 ((tt_data->flags & BATADV_TT_FULL_TABLE) ? 'F' : '.')); in batadv_send_my_tt_response()
3395 if (tt_data->flags & BATADV_TT_FULL_TABLE || my_ttvn != req_ttvn || in batadv_send_my_tt_response()
3439 tvlv_tt_data->flags = BATADV_TT_RESPONSE; in batadv_send_my_tt_response()
3443 tvlv_tt_data->flags |= BATADV_TT_FULL_TABLE; in batadv_send_my_tt_response()
3498 if ((tt_change + i)->flags & BATADV_TT_CLIENT_DEL) { in _batadv_tt_update_changes()
3499 roams = (tt_change + i)->flags & BATADV_TT_CLIENT_ROAM; in _batadv_tt_update_changes()
3509 (tt_change + i)->flags, ttvn)) in _batadv_tt_update_changes()
3586 if ((tt_local_entry->common.flags & BATADV_TT_CLIENT_PENDING) || in batadv_is_my_client()
3587 (tt_local_entry->common.flags & BATADV_TT_CLIENT_ROAM)) in batadv_is_my_client()
3617 ((tt_data->flags & BATADV_TT_FULL_TABLE) ? 'F' : '.')); in batadv_handle_tt_response()
3631 if (tt_data->flags & BATADV_TT_FULL_TABLE) { in batadv_handle_tt_response()
3840 static void batadv_tt_local_set_flags(struct batadv_priv *bat_priv, u16 flags, in batadv_tt_local_set_flags() argument
3858 if ((tt_common_entry->flags & flags) == flags) in batadv_tt_local_set_flags()
3860 tt_common_entry->flags |= flags; in batadv_tt_local_set_flags()
3862 if (!(tt_common_entry->flags & flags)) in batadv_tt_local_set_flags()
3864 tt_common_entry->flags &= ~flags; in batadv_tt_local_set_flags()
3898 if (!(tt_common->flags & BATADV_TT_CLIENT_PENDING)) in batadv_tt_local_purge_pending_clients()
4111 ret = tt_global_entry->common.flags & BATADV_TT_CLIENT_ROAM; in batadv_tt_global_client_is_roaming()
4137 ret = tt_local_entry->common.flags & BATADV_TT_CLIENT_ROAM; in batadv_tt_local_client_is_roaming()
4226 u8 flags, void *tvlv_value, in batadv_tt_tvlv_ogm_handler_v1() argument
4292 switch (tt_data->flags & BATADV_TT_DATA_TYPE_MASK) { in batadv_tt_tvlv_unicast_handler_v1()
4301 if (tt_data->flags & BATADV_TT_FULL_TABLE) in batadv_tt_tvlv_unicast_handler_v1()
4322 if (tt_data->flags & BATADV_TT_FULL_TABLE) in batadv_tt_tvlv_unicast_handler_v1()
4443 ret = tt->common.flags & BATADV_TT_CLIENT_ISOLA; in batadv_tt_global_is_isolated()