Lines Matching refs:uf
1208 struct hci_ufilter uf = { .opcode = 0 }; in hci_sock_setsockopt() local
1250 uf.type_mask = f->type_mask; in hci_sock_setsockopt()
1251 uf.opcode = f->opcode; in hci_sock_setsockopt()
1252 uf.event_mask[0] = *((u32 *) f->event_mask + 0); in hci_sock_setsockopt()
1253 uf.event_mask[1] = *((u32 *) f->event_mask + 1); in hci_sock_setsockopt()
1256 len = min_t(unsigned int, len, sizeof(uf)); in hci_sock_setsockopt()
1257 if (copy_from_user(&uf, optval, len)) { in hci_sock_setsockopt()
1263 uf.type_mask &= hci_sec_filter.type_mask; in hci_sock_setsockopt()
1264 uf.event_mask[0] &= *((u32 *) hci_sec_filter.event_mask + 0); in hci_sock_setsockopt()
1265 uf.event_mask[1] &= *((u32 *) hci_sec_filter.event_mask + 1); in hci_sock_setsockopt()
1271 f->type_mask = uf.type_mask; in hci_sock_setsockopt()
1272 f->opcode = uf.opcode; in hci_sock_setsockopt()
1273 *((u32 *) f->event_mask + 0) = uf.event_mask[0]; in hci_sock_setsockopt()
1274 *((u32 *) f->event_mask + 1) = uf.event_mask[1]; in hci_sock_setsockopt()
1291 struct hci_ufilter uf; in hci_sock_getsockopt() local
1332 memset(&uf, 0, sizeof(uf)); in hci_sock_getsockopt()
1333 uf.type_mask = f->type_mask; in hci_sock_getsockopt()
1334 uf.opcode = f->opcode; in hci_sock_getsockopt()
1335 uf.event_mask[0] = *((u32 *) f->event_mask + 0); in hci_sock_getsockopt()
1336 uf.event_mask[1] = *((u32 *) f->event_mask + 1); in hci_sock_getsockopt()
1339 len = min_t(unsigned int, len, sizeof(uf)); in hci_sock_getsockopt()
1340 if (copy_to_user(optval, &uf, len)) in hci_sock_getsockopt()