Lines Matching refs:uf

1287 	struct hci_ufilter uf = { .opcode = 0 };  in hci_sock_setsockopt()  local
1329 uf.type_mask = f->type_mask; in hci_sock_setsockopt()
1330 uf.opcode = f->opcode; in hci_sock_setsockopt()
1331 uf.event_mask[0] = *((u32 *) f->event_mask + 0); in hci_sock_setsockopt()
1332 uf.event_mask[1] = *((u32 *) f->event_mask + 1); in hci_sock_setsockopt()
1335 len = min_t(unsigned int, len, sizeof(uf)); in hci_sock_setsockopt()
1336 if (copy_from_user(&uf, optval, len)) { in hci_sock_setsockopt()
1342 uf.type_mask &= hci_sec_filter.type_mask; in hci_sock_setsockopt()
1343 uf.event_mask[0] &= *((u32 *) hci_sec_filter.event_mask + 0); in hci_sock_setsockopt()
1344 uf.event_mask[1] &= *((u32 *) hci_sec_filter.event_mask + 1); in hci_sock_setsockopt()
1350 f->type_mask = uf.type_mask; in hci_sock_setsockopt()
1351 f->opcode = uf.opcode; in hci_sock_setsockopt()
1352 *((u32 *) f->event_mask + 0) = uf.event_mask[0]; in hci_sock_setsockopt()
1353 *((u32 *) f->event_mask + 1) = uf.event_mask[1]; in hci_sock_setsockopt()
1370 struct hci_ufilter uf; in hci_sock_getsockopt() local
1411 memset(&uf, 0, sizeof(uf)); in hci_sock_getsockopt()
1412 uf.type_mask = f->type_mask; in hci_sock_getsockopt()
1413 uf.opcode = f->opcode; in hci_sock_getsockopt()
1414 uf.event_mask[0] = *((u32 *) f->event_mask + 0); in hci_sock_getsockopt()
1415 uf.event_mask[1] = *((u32 *) f->event_mask + 1); in hci_sock_getsockopt()
1418 len = min_t(unsigned int, len, sizeof(uf)); in hci_sock_getsockopt()
1419 if (copy_to_user(optval, &uf, len)) in hci_sock_getsockopt()