Lines Matching defs:data
80 const struct btmtkuart_data *data;
84 ((bdev)->data->flags & BTMTKUART_FLAG_STANDALONE_HW)
86 !((bdev)->data->flags & BTMTKUART_FLAG_STANDALONE_HW)
117 memcpy(wc->data, wmt_params->data, wmt_params->dlen);
152 wmt_evt = (struct btmtk_hci_wmt_evt *)bdev->evt_skb->data;
193 struct hci_event_hdr *hdr = (void *)skb->data;
253 len = serdev_device_write_buf(serdev, skb->data,
294 mtk_stp_split(struct btmtkuart_dev *bdev, const unsigned char *data, int count,
299 /* The cursor is reset when all the data of STP is consumed out */
305 bdev->stp_pad[bdev->stp_cursor] = *data;
307 data++;
316 /* Resync STP when unexpected data is being read */
325 /* Directly quit when there's no data found for H4 can process */
329 /* Tranlate to how much the size of data H4 can handle so far */
336 return data;
339 static void btmtkuart_recv(struct hci_dev *hdev, const u8 *data, size_t count)
342 const unsigned char *p_left = data, *p_h4;
347 /* The serial data received from MT7622 BT controller is
386 static int btmtkuart_receive_buf(struct serdev_device *serdev, const u8 *data,
391 btmtkuart_recv(bdev->hdev, data, count);
511 wmt_params.data = ¶m;
538 wmt_params.data = &baudrate;
572 wmt_params.data = NULL;
607 wmt_params.data = NULL;
626 wmt_params.data = NULL;
641 err = btmtk_setup_firmware(hdev, bdev->data->fwname, mtk_hci_wmt_sync);
667 wmt_params.data = ¶m;
712 wmt_params.data = ¶m;
836 bdev->data = of_device_get_match_data(&serdev->dev);
837 if (!bdev->data)
972 { .compatible = "mediatek,mt7622-bluetooth", .data = &mt7622_data},
973 { .compatible = "mediatek,mt7663u-bluetooth", .data = &mt7663_data},
974 { .compatible = "mediatek,mt7668u-bluetooth", .data = &mt7668_data},