Lines Matching refs:uf
1863 struct hci_ufilter uf = { .opcode = 0 }; in hci_sock_setsockopt() local
1908 uf.type_mask = f->type_mask; in hci_sock_setsockopt()
1909 uf.opcode = f->opcode; in hci_sock_setsockopt()
1910 uf.event_mask[0] = *((u32 *) f->event_mask + 0); in hci_sock_setsockopt()
1911 uf.event_mask[1] = *((u32 *) f->event_mask + 1); in hci_sock_setsockopt()
1914 len = min_t(unsigned int, len, sizeof(uf)); in hci_sock_setsockopt()
1915 if (copy_from_sockptr(&uf, optval, len)) { in hci_sock_setsockopt()
1921 uf.type_mask &= hci_sec_filter.type_mask; in hci_sock_setsockopt()
1922 uf.event_mask[0] &= *((u32 *) hci_sec_filter.event_mask + 0); in hci_sock_setsockopt()
1923 uf.event_mask[1] &= *((u32 *) hci_sec_filter.event_mask + 1); in hci_sock_setsockopt()
1929 f->type_mask = uf.type_mask; in hci_sock_setsockopt()
1930 f->opcode = uf.opcode; in hci_sock_setsockopt()
1931 *((u32 *) f->event_mask + 0) = uf.event_mask[0]; in hci_sock_setsockopt()
1932 *((u32 *) f->event_mask + 1) = uf.event_mask[1]; in hci_sock_setsockopt()
1949 struct hci_ufilter uf; in hci_sock_getsockopt() local
1993 memset(&uf, 0, sizeof(uf)); in hci_sock_getsockopt()
1994 uf.type_mask = f->type_mask; in hci_sock_getsockopt()
1995 uf.opcode = f->opcode; in hci_sock_getsockopt()
1996 uf.event_mask[0] = *((u32 *) f->event_mask + 0); in hci_sock_getsockopt()
1997 uf.event_mask[1] = *((u32 *) f->event_mask + 1); in hci_sock_getsockopt()
2000 len = min_t(unsigned int, len, sizeof(uf)); in hci_sock_getsockopt()
2001 if (copy_to_user(optval, &uf, len)) in hci_sock_getsockopt()