Lines Matching refs:val
17 static int lowpan_ctx_flag_active_set(void *data, u64 val) in lowpan_ctx_flag_active_set() argument
21 if (val != 0 && val != 1) in lowpan_ctx_flag_active_set()
24 if (val) in lowpan_ctx_flag_active_set()
32 static int lowpan_ctx_flag_active_get(void *data, u64 *val) in lowpan_ctx_flag_active_get() argument
34 *val = lowpan_iphc_ctx_is_active(data); in lowpan_ctx_flag_active_get()
42 static int lowpan_ctx_flag_c_set(void *data, u64 val) in lowpan_ctx_flag_c_set() argument
46 if (val != 0 && val != 1) in lowpan_ctx_flag_c_set()
49 if (val) in lowpan_ctx_flag_c_set()
57 static int lowpan_ctx_flag_c_get(void *data, u64 *val) in lowpan_ctx_flag_c_get() argument
59 *val = lowpan_iphc_ctx_is_compression(data); in lowpan_ctx_flag_c_get()
66 static int lowpan_ctx_plen_set(void *data, u64 val) in lowpan_ctx_plen_set() argument
72 if (val > 128) in lowpan_ctx_plen_set()
76 ctx->plen = val; in lowpan_ctx_plen_set()
82 static int lowpan_ctx_plen_get(void *data, u64 *val) in lowpan_ctx_plen_get() argument
89 *val = ctx->plen; in lowpan_ctx_plen_get()
216 static int lowpan_short_addr_get(void *data, u64 *val) in lowpan_short_addr_get() argument
221 *val = le16_to_cpu(wdev->short_addr); in lowpan_short_addr_get()