Lines Matching refs:req

127 	} __attribute__ ((packed))	*req = NULL;
247 m->m_pkthdr.len = m->m_len = sizeof(*req);
248 req = mtod(m, struct acl_con_req *);
249 req->hdr.type = NG_HCI_CMD_PKT;
250 req->hdr.length = sizeof(req->cp);
251 req->hdr.opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_LINK_CONTROL,
254 bcopy(&ep->bdaddr, &req->cp.bdaddr, sizeof(req->cp.bdaddr));
256 req->cp.pkt_type = (NG_HCI_PKT_DM1|NG_HCI_PKT_DH1);
258 req->cp.pkt_type |= (NG_HCI_PKT_DM3|NG_HCI_PKT_DH3);
260 req->cp.pkt_type |= (NG_HCI_PKT_DM5|NG_HCI_PKT_DH5);
262 req->cp.pkt_type &= unit->packet_mask;
263 if ((req->cp.pkt_type & (NG_HCI_PKT_DM1|NG_HCI_PKT_DH1|
266 req->cp.pkt_type = (NG_HCI_PKT_DM1|NG_HCI_PKT_DH1);
268 req->cp.pkt_type = htole16(req->cp.pkt_type);
271 req->cp.accept_role_switch = 1;
273 req->cp.accept_role_switch = 0;
282 req->cp.page_scan_rep_mode = 0;
283 req->cp.page_scan_mode = 0;
284 req->cp.clock_offset = 0;
286 req->cp.page_scan_rep_mode = n->page_scan_rep_mode;
287 req->cp.page_scan_mode = n->page_scan_mode;
288 req->cp.clock_offset = htole16(n->clock_offset);
327 } __attribute__ ((packed)) *req = NULL;
440 m->m_pkthdr.len = m->m_len = sizeof(*req);
441 req = mtod(m, struct sco_con_req *);
442 req->hdr.type = NG_HCI_CMD_PKT;
443 req->hdr.length = sizeof(req->cp);
444 req->hdr.opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_LINK_CONTROL,
447 req->cp.con_handle = htole16(acl_con->con_handle);
449 req->cp.pkt_type = NG_HCI_PKT_HV1;
451 req->cp.pkt_type |= NG_HCI_PKT_HV2;
453 req->cp.pkt_type |= NG_HCI_PKT_HV3;
455 req->cp.pkt_type &= unit->packet_mask;
456 if ((req->cp.pkt_type & (NG_HCI_PKT_HV1|
459 req->cp.pkt_type = NG_HCI_PKT_HV1;
461 req->cp.pkt_type = htole16(req->cp.pkt_type);
491 } __attribute__ ((packed)) *req = NULL;
614 m->m_pkthdr.len = m->m_len = sizeof(*req);
615 req = mtod(m, struct acl_con_req *);
616 req->hdr.type = NG_HCI_CMD_PKT;
617 req->hdr.length = sizeof(req->cp);
618 req->hdr.opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_LE,
621 bcopy(&ep->bdaddr, &req->cp.peer_addr, sizeof(req->cp.peer_addr));
622 req->cp.own_address_type = 0;
623 req->cp.peer_addr_type = (link_type == NG_HCI_LINK_LE_RANDOM)? 1:0;
624 req->cp.scan_interval = htole16(4);
625 req->cp.scan_window = htole16(4);
626 req->cp.filter_policy = 0;
627 req->cp.conn_interval_min = htole16(0xf);
628 req->cp.conn_interval_max = htole16(0xf);
629 req->cp.conn_latency = htole16(0);
630 req->cp.supervision_timeout = htole16(0xc80);
631 req->cp.min_ce_length = htole16(1);
632 req->cp.max_ce_length = htole16(1);
669 } __attribute__ ((packed)) *req = NULL;
727 m->m_pkthdr.len = m->m_len = sizeof(*req);
728 req = mtod(m, struct discon_req *);
729 req->hdr.type = NG_HCI_CMD_PKT;
730 req->hdr.length = sizeof(req->cp);
731 req->hdr.opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_LINK_CONTROL,
734 req->cp.con_handle = htole16(ep->con_handle);
735 req->cp.reason = ep->reason;
906 } __attribute__ ((packed)) *req = NULL;
1001 req = mtod(m, struct con_rsp_req *);
1002 req->hdr.type = NG_HCI_CMD_PKT;
1005 req->hdr.length = sizeof(req->cp.acc);
1006 req->hdr.opcode = htole16(NG_HCI_OPCODE(
1010 bcopy(&ep->bdaddr, &req->cp.acc.bdaddr,
1011 sizeof(req->cp.acc.bdaddr));
1023 req->cp.acc.role = NG_HCI_ROLE_MASTER;
1025 req->cp.acc.role = NG_HCI_ROLE_SLAVE;
1039 req->hdr.length = sizeof(req->cp.rej);
1040 req->hdr.opcode = htole16(NG_HCI_OPCODE(
1044 bcopy(&ep->bdaddr, &req->cp.rej.bdaddr,
1045 sizeof(req->cp.rej.bdaddr));
1047 req->cp.rej.reason = ep->status;
1057 m->m_pkthdr.len = m->m_len = sizeof(req->hdr) + req->hdr.length;
1155 } __attribute__ ((packed)) *req = NULL;
1221 m->m_pkthdr.len = m->m_len = sizeof(*req);
1222 req = mtod(m, struct qos_setup_req *);
1223 req->hdr.type = NG_HCI_CMD_PKT;
1224 req->hdr.length = sizeof(req->cp);
1225 req->hdr.opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_LINK_POLICY,
1228 req->cp.con_handle = htole16(ep->con_handle);
1229 req->cp.flags = ep->flags;
1230 req->cp.service_type = ep->service_type;
1231 req->cp.token_rate = htole32(ep->token_rate);
1232 req->cp.peak_bandwidth = htole32(ep->peak_bandwidth);
1233 req->cp.latency = htole32(ep->latency);
1234 req->cp.delay_variation = htole32(ep->delay_variation);