Lines Matching refs:rfevent
33 struct rfkill_event rfevent; in rfkill_main() local
63 memset(&rfevent, 0, sizeof(rfevent)); in rfkill_main()
64 rfevent.soft = tvar == 1; in rfkill_main()
66 rfevent.idx = idx; in rfkill_main()
67 rfevent.op = RFKILL_OP_CHANGE; in rfkill_main()
69 rfevent.type = tid; in rfkill_main()
70 rfevent.op = RFKILL_OP_CHANGE_ALL; in rfkill_main()
72 xwrite(fd, &rfevent, sizeof(rfevent)); in rfkill_main()
75 while (sizeof(rfevent) == readall(fd, &rfevent, sizeof(rfevent))) { in rfkill_main()
79 if ((tid > 0 && tid != rfevent.type) || (idx != -1 && idx != rfevent.idx)) in rfkill_main()
82 sprintf(toybuf, "/sys/class/rfkill/rfkill%u/uevent", rfevent.idx); in rfkill_main()
94 xprintf("%u: %s: %s\n", rfevent.idx, name, type); in rfkill_main()
95 xprintf("\tSoft blocked: %s\n", rfevent.soft ? "yes" : "no"); in rfkill_main()
96 xprintf("\tHard blocked: %s\n", rfevent.hard ? "yes" : "no"); in rfkill_main()