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()
787 tt_global->common.flags |= BATADV_TT_CLIENT_ROAM; in batadv_tt_local_add()
795 remote_flags = tt_local->common.flags & BATADV_TT_REMOTE_MASK; in batadv_tt_local_add()
798 tt_local->common.flags |= BATADV_TT_CLIENT_WIFI; in batadv_tt_local_add()
800 tt_local->common.flags &= ~BATADV_TT_CLIENT_WIFI; in batadv_tt_local_add()
809 tt_local->common.flags |= BATADV_TT_CLIENT_ISOLA; in batadv_tt_local_add()
811 tt_local->common.flags &= ~BATADV_TT_CLIENT_ISOLA; in batadv_tt_local_add()
816 if (remote_flags ^ (tt_local->common.flags & BATADV_TT_REMOTE_MASK)) in batadv_tt_local_add()
885 (*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()
1019 tt_data->flags = BATADV_TT_OGM_DIFF; in batadv_tt_tvlv_container_update()
1115 no_purge = tt_common_entry->flags & np_flag; in batadv_tt_local_seq_print_text()
1120 ((tt_common_entry->flags & in batadv_tt_local_seq_print_text()
1123 ((tt_common_entry->flags & in batadv_tt_local_seq_print_text()
1125 ((tt_common_entry->flags & in batadv_tt_local_seq_print_text()
1127 ((tt_common_entry->flags & in batadv_tt_local_seq_print_text()
1129 ((tt_common_entry->flags & in batadv_tt_local_seq_print_text()
1188 nla_put_u32(msg, BATADV_ATTR_TT_FLAGS, common->flags)) in batadv_tt_local_dump_entry()
1191 if (!(common->flags & BATADV_TT_CLIENT_NOPURGE) && in batadv_tt_local_dump_entry()
1310 u16 flags, const char *message) in batadv_tt_local_set_pending() argument
1312 batadv_tt_local_event(bat_priv, tt_local_entry, flags); in batadv_tt_local_set_pending()
1318 tt_local_entry->common.flags |= BATADV_TT_CLIENT_PENDING; in batadv_tt_local_set_pending()
1342 u16 flags, curr_flags = BATADV_NO_FLAGS; in batadv_tt_local_remove() local
1349 curr_flags = tt_local_entry->common.flags; in batadv_tt_local_remove()
1351 flags = BATADV_TT_CLIENT_DEL; in batadv_tt_local_remove()
1357 flags |= BATADV_TT_CLIENT_ROAM; in batadv_tt_local_remove()
1359 tt_local_entry->common.flags |= BATADV_TT_CLIENT_ROAM; in batadv_tt_local_remove()
1362 if (!(tt_local_entry->common.flags & BATADV_TT_CLIENT_NEW)) { in batadv_tt_local_remove()
1363 batadv_tt_local_set_pending(bat_priv, tt_local_entry, flags, in batadv_tt_local_remove()
1412 if (tt_local_entry->common.flags & BATADV_TT_CLIENT_NOPURGE) in batadv_tt_local_purge_list()
1416 if (tt_local_entry->common.flags & BATADV_TT_CLIENT_PENDING) in batadv_tt_local_purge_list()
1569 u8 *flags) in batadv_tt_global_entry_has_orig() argument
1578 if (flags) in batadv_tt_global_entry_has_orig()
1579 *flags = orig_entry->flags; in batadv_tt_global_entry_has_orig()
1599 u16 flags = BATADV_NO_FLAGS; in batadv_tt_global_sync_flags() local
1604 flags |= orig_entry->flags; in batadv_tt_global_sync_flags()
1607 flags |= tt_global->common.flags & (~BATADV_TT_SYNC_MASK); in batadv_tt_global_sync_flags()
1608 tt_global->common.flags = flags; in batadv_tt_global_sync_flags()
1621 u8 flags) in batadv_tt_global_orig_entry_add() argument
1633 orig_entry->flags = flags; in batadv_tt_global_orig_entry_add()
1646 orig_entry->flags = flags; in batadv_tt_global_orig_entry_add()
1685 unsigned short vid, u16 flags, u8 ttvn) in batadv_tt_global_add() argument
1705 if ((flags & BATADV_TT_CLIENT_TEMP) && tt_local_entry && in batadv_tt_global_add()
1706 !(tt_local_entry->common.flags & BATADV_TT_CLIENT_NEW)) in batadv_tt_global_add()
1720 common->flags = flags & (~BATADV_TT_SYNC_MASK); in batadv_tt_global_add()
1727 if (flags & BATADV_TT_CLIENT_ROAM) in batadv_tt_global_add()
1759 if (flags & BATADV_TT_CLIENT_TEMP) { in batadv_tt_global_add()
1760 if (!(common->flags & BATADV_TT_CLIENT_TEMP)) in batadv_tt_global_add()
1775 if (common->flags & BATADV_TT_CLIENT_TEMP) { in batadv_tt_global_add()
1777 common->flags &= ~BATADV_TT_CLIENT_TEMP; in batadv_tt_global_add()
1785 common->flags |= flags & (~BATADV_TT_SYNC_MASK); in batadv_tt_global_add()
1794 if (common->flags & BATADV_TT_CLIENT_ROAM) { in batadv_tt_global_add()
1796 common->flags &= ~BATADV_TT_CLIENT_ROAM; in batadv_tt_global_add()
1803 flags & BATADV_TT_SYNC_MASK); in batadv_tt_global_add()
1821 flags & BATADV_TT_CLIENT_ROAM); in batadv_tt_global_add()
1822 tt_global_entry->common.flags |= local_flags & BATADV_TT_CLIENT_WIFI; in batadv_tt_global_add()
1824 if (!(flags & BATADV_TT_CLIENT_ROAM)) in batadv_tt_global_add()
1828 tt_global_entry->common.flags &= ~BATADV_TT_CLIENT_ROAM; in batadv_tt_global_add()
1903 u16 flags; in batadv_tt_global_print_entry() local
1906 flags = tt_common_entry->flags; in batadv_tt_global_print_entry()
1927 ((flags & BATADV_TT_CLIENT_ROAM) ? 'R' : '.'), in batadv_tt_global_print_entry()
1928 ((flags & BATADV_TT_CLIENT_WIFI) ? 'W' : '.'), in batadv_tt_global_print_entry()
1929 ((flags & BATADV_TT_CLIENT_ISOLA) ? 'I' : '.'), in batadv_tt_global_print_entry()
1930 ((flags & BATADV_TT_CLIENT_TEMP) ? 'T' : '.')); in batadv_tt_global_print_entry()
1959 ((flags & BATADV_TT_CLIENT_ROAM) ? 'R' : '.'), in batadv_tt_global_print_entry()
1960 ((flags & BATADV_TT_CLIENT_WIFI) ? 'W' : '.'), in batadv_tt_global_print_entry()
1961 ((flags & BATADV_TT_CLIENT_ISOLA) ? 'I' : '.'), in batadv_tt_global_print_entry()
1962 ((flags & BATADV_TT_CLIENT_TEMP) ? 'T' : '.')); in batadv_tt_global_print_entry()
2033 u16 flags = (common->flags & (~BATADV_TT_SYNC_MASK)) | orig->flags; in batadv_tt_global_dump_subentry() local
2063 nla_put_u32(msg, BATADV_ATTR_TT_FLAGS, flags)) in batadv_tt_global_dump_subentry()
2339 tt_global_entry->common.flags |= BATADV_TT_CLIENT_ROAM; in batadv_tt_global_del_roaming()
2482 if ((tt_global->common.flags & BATADV_TT_CLIENT_ROAM) && in batadv_tt_global_to_purge()
2488 if ((tt_global->common.flags & BATADV_TT_CLIENT_TEMP) && in batadv_tt_global_to_purge()
2576 if (tt_local_entry->common.flags & BATADV_TT_CLIENT_WIFI && in _batadv_is_ap_isolated()
2577 tt_global_entry->common.flags & BATADV_TT_CLIENT_WIFI) in _batadv_is_ap_isolated()
2581 if (tt_local_entry->common.flags & BATADV_TT_CLIENT_ISOLA && in _batadv_is_ap_isolated()
2582 tt_global_entry->common.flags & BATADV_TT_CLIENT_ISOLA) in _batadv_is_ap_isolated()
2615 (tt_local_entry->common.flags & BATADV_TT_CLIENT_PENDING)) in batadv_transtable_search()
2682 u8 flags; in batadv_tt_global_crc() local
2704 if (tt_common->flags & BATADV_TT_CLIENT_ROAM) in batadv_tt_global_crc()
2710 if (tt_common->flags & BATADV_TT_CLIENT_TEMP) in batadv_tt_global_crc()
2730 flags = tt_orig->flags; in batadv_tt_global_crc()
2731 crc_tmp = crc32c(crc_tmp, &flags, sizeof(flags)); in batadv_tt_global_crc()
2760 u8 flags; in batadv_tt_local_crc() local
2777 if (tt_common->flags & BATADV_TT_CLIENT_NEW) in batadv_tt_local_crc()
2789 flags = tt_common->flags & BATADV_TT_SYNC_MASK; in batadv_tt_local_crc()
2790 crc_tmp = crc32c(crc_tmp, &flags, sizeof(flags)); in batadv_tt_local_crc()
2925 u8 *flags) in batadv_tt_local_valid() argument
2929 if (tt_common_entry->flags & BATADV_TT_CLIENT_NEW) in batadv_tt_local_valid()
2932 if (flags) in batadv_tt_local_valid()
2933 *flags = tt_common_entry->flags; in batadv_tt_local_valid()
2952 u8 *flags) in batadv_tt_global_valid() argument
2958 if (tt_common_entry->flags & BATADV_TT_CLIENT_ROAM || in batadv_tt_global_valid()
2959 tt_common_entry->flags & BATADV_TT_CLIENT_TEMP) in batadv_tt_global_valid()
2967 flags); in batadv_tt_global_valid()
2988 u8 *flags), in batadv_tt_tvlv_generate() argument
2995 u8 flags; in batadv_tt_tvlv_generate() local
3014 ret = valid_cb(tt_common_entry, cb_data, &flags); in batadv_tt_tvlv_generate()
3019 tt_change->flags = flags; in batadv_tt_tvlv_generate()
3172 tvlv_tt_data->flags = BATADV_TT_REQUEST; in batadv_send_tt_request()
3189 tvlv_tt_data->flags |= BATADV_TT_FULL_TABLE; in batadv_send_tt_request()
3247 ((tt_data->flags & BATADV_TT_FULL_TABLE) ? 'F' : '.')); in batadv_send_other_tt_response()
3269 if (tt_data->flags & BATADV_TT_FULL_TABLE || in batadv_send_other_tt_response()
3321 tvlv_tt_data->flags = BATADV_TT_RESPONSE; in batadv_send_other_tt_response()
3325 tvlv_tt_data->flags |= BATADV_TT_FULL_TABLE; in batadv_send_other_tt_response()
3378 ((tt_data->flags & BATADV_TT_FULL_TABLE) ? 'F' : '.')); in batadv_send_my_tt_response()
3396 if (tt_data->flags & BATADV_TT_FULL_TABLE || my_ttvn != req_ttvn || in batadv_send_my_tt_response()
3440 tvlv_tt_data->flags = BATADV_TT_RESPONSE; in batadv_send_my_tt_response()
3444 tvlv_tt_data->flags |= BATADV_TT_FULL_TABLE; in batadv_send_my_tt_response()
3499 if ((tt_change + i)->flags & BATADV_TT_CLIENT_DEL) { in _batadv_tt_update_changes()
3500 roams = (tt_change + i)->flags & BATADV_TT_CLIENT_ROAM; in _batadv_tt_update_changes()
3510 (tt_change + i)->flags, ttvn)) in _batadv_tt_update_changes()
3587 if ((tt_local_entry->common.flags & BATADV_TT_CLIENT_PENDING) || in batadv_is_my_client()
3588 (tt_local_entry->common.flags & BATADV_TT_CLIENT_ROAM)) in batadv_is_my_client()
3618 ((tt_data->flags & BATADV_TT_FULL_TABLE) ? 'F' : '.')); in batadv_handle_tt_response()
3632 if (tt_data->flags & BATADV_TT_FULL_TABLE) { in batadv_handle_tt_response()
3841 static void batadv_tt_local_set_flags(struct batadv_priv *bat_priv, u16 flags, in batadv_tt_local_set_flags() argument
3859 if ((tt_common_entry->flags & flags) == flags) in batadv_tt_local_set_flags()
3861 tt_common_entry->flags |= flags; in batadv_tt_local_set_flags()
3863 if (!(tt_common_entry->flags & flags)) in batadv_tt_local_set_flags()
3865 tt_common_entry->flags &= ~flags; in batadv_tt_local_set_flags()
3899 if (!(tt_common->flags & BATADV_TT_CLIENT_PENDING)) in batadv_tt_local_purge_pending_clients()
4112 ret = tt_global_entry->common.flags & BATADV_TT_CLIENT_ROAM; in batadv_tt_global_client_is_roaming()
4138 ret = tt_local_entry->common.flags & BATADV_TT_CLIENT_ROAM; in batadv_tt_local_client_is_roaming()
4227 u8 flags, void *tvlv_value, in batadv_tt_tvlv_ogm_handler_v1() argument
4293 switch (tt_data->flags & BATADV_TT_DATA_TYPE_MASK) { in batadv_tt_tvlv_unicast_handler_v1()
4302 if (tt_data->flags & BATADV_TT_FULL_TABLE) in batadv_tt_tvlv_unicast_handler_v1()
4323 if (tt_data->flags & BATADV_TT_FULL_TABLE) in batadv_tt_tvlv_unicast_handler_v1()
4446 ret = tt->common.flags & BATADV_TT_CLIENT_ISOLA; in batadv_tt_global_is_isolated()