Lines Matching refs:ctx
19 struct lowpan_iphc_ctx *ctx = data; in lowpan_ctx_flag_active_set() local
25 set_bit(LOWPAN_IPHC_CTX_FLAG_ACTIVE, &ctx->flags); in lowpan_ctx_flag_active_set()
27 clear_bit(LOWPAN_IPHC_CTX_FLAG_ACTIVE, &ctx->flags); in lowpan_ctx_flag_active_set()
44 struct lowpan_iphc_ctx *ctx = data; in lowpan_ctx_flag_c_set() local
50 set_bit(LOWPAN_IPHC_CTX_FLAG_COMPRESSION, &ctx->flags); in lowpan_ctx_flag_c_set()
52 clear_bit(LOWPAN_IPHC_CTX_FLAG_COMPRESSION, &ctx->flags); in lowpan_ctx_flag_c_set()
68 struct lowpan_iphc_ctx *ctx = data; in lowpan_ctx_plen_set() local
70 container_of(ctx, struct lowpan_iphc_ctx_table, table[ctx->id]); in lowpan_ctx_plen_set()
76 ctx->plen = val; in lowpan_ctx_plen_set()
84 struct lowpan_iphc_ctx *ctx = data; in lowpan_ctx_plen_get() local
86 container_of(ctx, struct lowpan_iphc_ctx_table, table[ctx->id]); in lowpan_ctx_plen_get()
89 *val = ctx->plen; in lowpan_ctx_plen_get()
99 struct lowpan_iphc_ctx *ctx = file->private; in lowpan_ctx_pfx_show() local
101 container_of(ctx, struct lowpan_iphc_ctx_table, table[ctx->id]); in lowpan_ctx_pfx_show()
105 be16_to_cpu(ctx->pfx.s6_addr16[0]), in lowpan_ctx_pfx_show()
106 be16_to_cpu(ctx->pfx.s6_addr16[1]), in lowpan_ctx_pfx_show()
107 be16_to_cpu(ctx->pfx.s6_addr16[2]), in lowpan_ctx_pfx_show()
108 be16_to_cpu(ctx->pfx.s6_addr16[3]), in lowpan_ctx_pfx_show()
109 be16_to_cpu(ctx->pfx.s6_addr16[4]), in lowpan_ctx_pfx_show()
110 be16_to_cpu(ctx->pfx.s6_addr16[5]), in lowpan_ctx_pfx_show()
111 be16_to_cpu(ctx->pfx.s6_addr16[6]), in lowpan_ctx_pfx_show()
112 be16_to_cpu(ctx->pfx.s6_addr16[7])); in lowpan_ctx_pfx_show()
129 struct lowpan_iphc_ctx *ctx = file->private; in lowpan_ctx_pfx_write() local
131 container_of(ctx, struct lowpan_iphc_ctx_table, table[ctx->id]); in lowpan_ctx_pfx_write()
151 ctx->pfx.s6_addr16[i] = cpu_to_be16(addr[i] & 0xffff); in lowpan_ctx_pfx_write()
167 struct dentry *ctx, u8 id) in lowpan_dev_debugfs_ctx_init() argument
178 root = debugfs_create_dir(buf, ctx); in lowpan_dev_debugfs_ctx_init()
180 debugfs_create_file("active", 0644, root, &ldev->ctx.table[id], in lowpan_dev_debugfs_ctx_init()
183 debugfs_create_file("compression", 0644, root, &ldev->ctx.table[id], in lowpan_dev_debugfs_ctx_init()
186 debugfs_create_file("prefix", 0644, root, &ldev->ctx.table[id], in lowpan_dev_debugfs_ctx_init()
189 debugfs_create_file("prefix_len", 0644, root, &ldev->ctx.table[id], in lowpan_dev_debugfs_ctx_init()
256 debugfs_create_file("show", 0644, contexts, &lowpan_dev(dev)->ctx, in lowpan_dev_debugfs_init()