Lines Matching refs:val
23 static int lowpan_ctx_flag_active_set(void *data, u64 val) in lowpan_ctx_flag_active_set() argument
27 if (val != 0 && val != 1) in lowpan_ctx_flag_active_set()
30 if (val) in lowpan_ctx_flag_active_set()
38 static int lowpan_ctx_flag_active_get(void *data, u64 *val) in lowpan_ctx_flag_active_get() argument
40 *val = lowpan_iphc_ctx_is_active(data); in lowpan_ctx_flag_active_get()
48 static int lowpan_ctx_flag_c_set(void *data, u64 val) in lowpan_ctx_flag_c_set() argument
52 if (val != 0 && val != 1) in lowpan_ctx_flag_c_set()
55 if (val) in lowpan_ctx_flag_c_set()
63 static int lowpan_ctx_flag_c_get(void *data, u64 *val) in lowpan_ctx_flag_c_get() argument
65 *val = lowpan_iphc_ctx_is_compression(data); in lowpan_ctx_flag_c_get()
72 static int lowpan_ctx_plen_set(void *data, u64 val) in lowpan_ctx_plen_set() argument
78 if (val > 128) in lowpan_ctx_plen_set()
82 ctx->plen = val; in lowpan_ctx_plen_set()
88 static int lowpan_ctx_plen_get(void *data, u64 *val) in lowpan_ctx_plen_get() argument
95 *val = ctx->plen; in lowpan_ctx_plen_get()
248 static int lowpan_short_addr_get(void *data, u64 *val) in lowpan_short_addr_get() argument
253 *val = le16_to_cpu(wdev->short_addr); in lowpan_short_addr_get()