Lines Matching defs:c

3    Copyright (c) 2000-2001, 2010, Code Aurora Forum. All rights reserved.
930 struct discovery_state *c = &hdev->discovery;
931 return jiffies - c->timestamp;
1002 static inline void hci_conn_hash_add(struct hci_dev *hdev, struct hci_conn *c)
1005 list_add_tail_rcu(&c->list, &h->list);
1006 switch (c->type) {
1012 if (c->role == HCI_ROLE_SLAVE)
1031 static inline void hci_conn_hash_del(struct hci_dev *hdev, struct hci_conn *c)
1035 list_del_rcu(&c->list);
1038 switch (c->type) {
1044 if (c->role == HCI_ROLE_SLAVE)
1087 struct hci_conn_hash *c = &hdev->conn_hash;
1089 return c->acl_num + c->sco_num + c->le_num + c->cis_num + c->bis_num +
1090 c->pa_num;
1095 struct hci_conn_hash *c = &hdev->conn_hash;
1097 return c->cis_num + c->bis_num;
1103 struct hci_conn *c;
1107 list_for_each_entry_rcu(c, &h->list, list) {
1108 if (c == conn) {
1121 struct hci_conn *c;
1126 list_for_each_entry_rcu(c, &h->list, list) {
1127 if (c->handle == handle) {
1128 type = c->type;
1142 struct hci_conn *c;
1146 list_for_each_entry_rcu(c, &h->list, list) {
1147 if (bacmp(&c->dst, ba) || c->type != BIS_LINK)
1150 if (c->iso_qos.bcast.bis == bis) {
1152 return c;
1164 struct hci_conn *c;
1168 list_for_each_entry_rcu(c, &h->list, list) {
1169 if (c->type != PA_LINK)
1172 if (!test_bit(HCI_CONN_CREATE_PA_SYNC, &c->flags))
1176 return c;
1190 struct hci_conn *c;
1194 list_for_each_entry_rcu(c, &h->list, list) {
1195 if (bacmp(&c->dst, ba) || c->type != BIS_LINK ||
1196 !test_bit(HCI_CONN_PER_ADV, &c->flags))
1199 if (c->iso_qos.bcast.big == big &&
1200 c->iso_qos.bcast.bis == bis) {
1202 return c;
1214 struct hci_conn *c;
1218 list_for_each_entry_rcu(c, &h->list, list) {
1219 if (c->handle == handle) {
1221 return c;
1233 struct hci_conn *c;
1237 list_for_each_entry_rcu(c, &h->list, list) {
1238 if (c->type == type && !bacmp(&c->dst, ba)) {
1240 return c;
1254 struct hci_conn *c;
1258 list_for_each_entry_rcu(c, &h->list, list) {
1259 if (c->type == type && c->role == role && !bacmp(&c->dst, ba)) {
1261 return c;
1275 struct hci_conn *c;
1279 list_for_each_entry_rcu(c, &h->list, list) {
1280 if (c->type != LE_LINK)
1283 if (ba_type == c->dst_type && !bacmp(&c->dst, ba)) {
1285 return c;
1301 struct hci_conn *c;
1305 list_for_each_entry_rcu(c, &h->list, list) {
1306 if (c->type != CIS_LINK)
1310 if (cig != c->iso_qos.ucast.cig)
1314 if (id != c->iso_qos.ucast.cis)
1318 if (!ba || (ba_type == c->dst_type && !bacmp(&c->dst, ba))) {
1320 return c;
1333 struct hci_conn *c;
1337 list_for_each_entry_rcu(c, &h->list, list) {
1338 if (c->type != CIS_LINK)
1341 if (handle == c->iso_qos.ucast.cig) {
1343 return c;
1356 struct hci_conn *c;
1360 list_for_each_entry_rcu(c, &h->list, list) {
1361 if (c->type != BIS_LINK)
1364 if (handle == c->iso_qos.bcast.big) {
1366 return c;
1380 struct hci_conn *c;
1384 list_for_each_entry_rcu(c, &h->list, list) {
1385 if (c->type != PA_LINK)
1388 if (handle == c->iso_qos.bcast.big && num_bis == c->num_bis) {
1390 return c;
1404 struct hci_conn *c;
1408 list_for_each_entry_rcu(c, &h->list, list) {
1409 if (c->type != BIS_LINK || c->state != state || c->role != role)
1412 if (handle == c->iso_qos.bcast.big) {
1414 return c;
1427 struct hci_conn *c;
1431 list_for_each_entry_rcu(c, &h->list, list) {
1432 if (c->type != BIS_LINK ||
1433 !test_bit(HCI_CONN_PA_SYNC, &c->flags))
1436 if (c->iso_qos.bcast.big == big) {
1438 return c;
1450 struct hci_conn *c;
1454 list_for_each_entry_rcu(c, &h->list, list) {
1455 if (c->type != PA_LINK)
1462 if (c->state == BT_LISTEN)
1465 if (c->sync_handle == sync_handle) {
1467 return c;
1481 struct hci_conn *c;
1488 list_for_each_entry_rcu(c, &h->list, list) {
1489 if (c->type == type && c->state == state)
1490 func(c, data);
1501 struct hci_conn *c;
1508 list_for_each_entry_rcu(c, &h->list, list) {
1509 if (c->type == type && test_bit(flag, &c->flags))
1510 func(c, data);
1519 struct hci_conn *c;
1523 list_for_each_entry_rcu(c, &h->list, list) {
1524 if (c->type == LE_LINK && c->state == BT_CONNECT &&
1525 !test_bit(HCI_CONN_SCANNING, &c->flags)) {
1527 return c;
1540 struct hci_conn *c;
1544 list_for_each_entry_rcu(c, &h->list, list) {
1545 if (c->type == LE_LINK && c->state == BT_CONNECT &&
1546 test_bit(HCI_CONN_SCANNING, &c->flags)) {
1726 #define to_hci_conn(c) container_of(c, struct hci_conn, dev)
2345 int hci_mgmt_chan_register(struct hci_mgmt_chan *c);
2346 void hci_mgmt_chan_unregister(struct hci_mgmt_chan *c);