Lines Matching refs:uf

1931 	struct hci_ufilter uf = { .opcode = 0 };  in hci_sock_setsockopt_old()  local
1971 uf.type_mask = f->type_mask; in hci_sock_setsockopt_old()
1972 uf.opcode = f->opcode; in hci_sock_setsockopt_old()
1973 uf.event_mask[0] = *((u32 *) f->event_mask + 0); in hci_sock_setsockopt_old()
1974 uf.event_mask[1] = *((u32 *) f->event_mask + 1); in hci_sock_setsockopt_old()
1977 err = bt_copy_from_sockptr(&uf, sizeof(uf), optval, len); in hci_sock_setsockopt_old()
1982 uf.type_mask &= hci_sec_filter.type_mask; in hci_sock_setsockopt_old()
1983 uf.event_mask[0] &= *((u32 *) hci_sec_filter.event_mask + 0); in hci_sock_setsockopt_old()
1984 uf.event_mask[1] &= *((u32 *) hci_sec_filter.event_mask + 1); in hci_sock_setsockopt_old()
1990 f->type_mask = uf.type_mask; in hci_sock_setsockopt_old()
1991 f->opcode = uf.opcode; in hci_sock_setsockopt_old()
1992 *((u32 *) f->event_mask + 0) = uf.event_mask[0]; in hci_sock_setsockopt_old()
1993 *((u32 *) f->event_mask + 1) = uf.event_mask[1]; in hci_sock_setsockopt_old()
2058 struct hci_ufilter uf; in hci_sock_getsockopt_old() local
2099 memset(&uf, 0, sizeof(uf)); in hci_sock_getsockopt_old()
2100 uf.type_mask = f->type_mask; in hci_sock_getsockopt_old()
2101 uf.opcode = f->opcode; in hci_sock_getsockopt_old()
2102 uf.event_mask[0] = *((u32 *) f->event_mask + 0); in hci_sock_getsockopt_old()
2103 uf.event_mask[1] = *((u32 *) f->event_mask + 1); in hci_sock_getsockopt_old()
2106 len = min_t(unsigned int, len, sizeof(uf)); in hci_sock_getsockopt_old()
2107 if (copy_to_user(optval, &uf, len)) in hci_sock_getsockopt_old()