Lines Matching refs:ins

259         struct sock_filter *ins = &inss[*i];
261 ins->code = code;
262 ins->k = data;
270 struct sock_filter *ins = &inss[*i];
272 ins->code = code;
273 ins->jt = jt;
274 ins->jf = jf;
275 ins->k = data;
290 struct sock_filter ins[512];
300 memzero(ins, sizeof(ins));
304 bpf_stmt(ins, &i, BPF_LD|BPF_W|BPF_ABS, offsetof(struct udev_monitor_netlink_header, magic));
306 bpf_jmp(ins, &i, BPF_JMP|BPF_JEQ|BPF_K, UDEV_MONITOR_MAGIC, 1, 0);
308 bpf_stmt(ins, &i, BPF_RET|BPF_K, 0xffffffff);
325 bpf_stmt(ins, &i, BPF_LD|BPF_W|BPF_ABS, offsetof(struct udev_monitor_netlink_header, filter_tag_bloom_hi));
327 bpf_stmt(ins, &i, BPF_ALU|BPF_AND|BPF_K, tag_bloom_hi);
329 bpf_jmp(ins, &i, BPF_JMP|BPF_JEQ|BPF_K, tag_bloom_hi, 0, 3);
332 bpf_stmt(ins, &i, BPF_LD|BPF_W|BPF_ABS, offsetof(struct udev_monitor_netlink_header, filter_tag_bloom_lo));
334 bpf_stmt(ins, &i, BPF_ALU|BPF_AND|BPF_K, tag_bloom_lo);
337 bpf_jmp(ins, &i, BPF_JMP|BPF_JEQ|BPF_K, tag_bloom_lo, 1 + (tag_matches * 6), 0);
341 bpf_stmt(ins, &i, BPF_RET|BPF_K, 0);
350 bpf_stmt(ins, &i, BPF_LD|BPF_W|BPF_ABS, offsetof(struct udev_monitor_netlink_header, filter_subsystem_hash));
353 bpf_jmp(ins, &i, BPF_JMP|BPF_JEQ|BPF_K, hash, 0, 1);
356 bpf_jmp(ins, &i, BPF_JMP|BPF_JEQ|BPF_K, hash, 0, 3);
359 bpf_stmt(ins, &i, BPF_LD|BPF_W|BPF_ABS, offsetof(struct udev_monitor_netlink_header, filter_devtype_hash));
362 bpf_jmp(ins, &i, BPF_JMP|BPF_JEQ|BPF_K, hash, 0, 1);
366 bpf_stmt(ins, &i, BPF_RET|BPF_K, 0xffffffff);
368 if (i+1 >= ELEMENTSOF(ins))
373 bpf_stmt(ins, &i, BPF_RET|BPF_K, 0);
377 bpf_stmt(ins, &i, BPF_RET|BPF_K, 0xffffffff);
382 filter.filter = ins;