serdev            117 drivers/bluetooth/btmtkuart.c 	struct serdev_device *serdev;
serdev            372 drivers/bluetooth/btmtkuart.c 	struct serdev_device *serdev = bdev->serdev;
serdev            385 drivers/bluetooth/btmtkuart.c 			len = serdev_device_write_buf(serdev, skb->data,
serdev            520 drivers/bluetooth/btmtkuart.c static int btmtkuart_receive_buf(struct serdev_device *serdev, const u8 *data,
serdev            523 drivers/bluetooth/btmtkuart.c 	struct btmtkuart_dev *bdev = serdev_device_get_drvdata(serdev);
serdev            535 drivers/bluetooth/btmtkuart.c static void btmtkuart_write_wakeup(struct serdev_device *serdev)
serdev            537 drivers/bluetooth/btmtkuart.c 	struct btmtkuart_dev *bdev = serdev_device_get_drvdata(serdev);
serdev            553 drivers/bluetooth/btmtkuart.c 	err = serdev_device_open(bdev->serdev);
serdev            556 drivers/bluetooth/btmtkuart.c 			   dev_name(&bdev->serdev->dev));
serdev            562 drivers/bluetooth/btmtkuart.c 			err = serdev_device_set_baudrate(bdev->serdev,
serdev            565 drivers/bluetooth/btmtkuart.c 			err = serdev_device_set_baudrate(bdev->serdev,
serdev            570 drivers/bluetooth/btmtkuart.c 				   dev_name(&bdev->serdev->dev));
serdev            574 drivers/bluetooth/btmtkuart.c 		serdev_device_set_flow_control(bdev->serdev, false);
serdev            580 drivers/bluetooth/btmtkuart.c 	dev = &bdev->serdev->dev;
serdev            601 drivers/bluetooth/btmtkuart.c 	serdev_device_close(bdev->serdev);
serdev            609 drivers/bluetooth/btmtkuart.c 	struct device *dev = &bdev->serdev->dev;
serdev            616 drivers/bluetooth/btmtkuart.c 	serdev_device_close(bdev->serdev);
serdev            626 drivers/bluetooth/btmtkuart.c 	serdev_device_write_flush(bdev->serdev);
serdev            686 drivers/bluetooth/btmtkuart.c 	err = serdev_device_set_baudrate(bdev->serdev,
serdev            694 drivers/bluetooth/btmtkuart.c 	serdev_device_set_flow_control(bdev->serdev, false);
serdev            698 drivers/bluetooth/btmtkuart.c 	err = serdev_device_write(bdev->serdev, &param, sizeof(param),
serdev            703 drivers/bluetooth/btmtkuart.c 	serdev_device_wait_until_sent(bdev->serdev, 0);
serdev            898 drivers/bluetooth/btmtkuart.c static int btmtkuart_parse_dt(struct serdev_device *serdev)
serdev            900 drivers/bluetooth/btmtkuart.c 	struct btmtkuart_dev *bdev = serdev_device_get_drvdata(serdev);
serdev            901 drivers/bluetooth/btmtkuart.c 	struct device_node *node = serdev->dev.of_node;
serdev            910 drivers/bluetooth/btmtkuart.c 		bdev->vcc = devm_regulator_get(&serdev->dev, "vcc");
serdev            916 drivers/bluetooth/btmtkuart.c 		bdev->osc = devm_clk_get_optional(&serdev->dev, "osc");
serdev            922 drivers/bluetooth/btmtkuart.c 		bdev->boot = devm_gpiod_get_optional(&serdev->dev, "boot",
serdev            929 drivers/bluetooth/btmtkuart.c 		bdev->pinctrl = devm_pinctrl_get(&serdev->dev);
serdev            939 drivers/bluetooth/btmtkuart.c 			dev_err(&serdev->dev,
serdev            951 drivers/bluetooth/btmtkuart.c 		bdev->reset = devm_gpiod_get_optional(&serdev->dev, "reset",
serdev            958 drivers/bluetooth/btmtkuart.c 		bdev->clk = devm_clk_get(&serdev->dev, "ref");
serdev            966 drivers/bluetooth/btmtkuart.c static int btmtkuart_probe(struct serdev_device *serdev)
serdev            972 drivers/bluetooth/btmtkuart.c 	bdev = devm_kzalloc(&serdev->dev, sizeof(*bdev), GFP_KERNEL);
serdev            976 drivers/bluetooth/btmtkuart.c 	bdev->data = of_device_get_match_data(&serdev->dev);
serdev            980 drivers/bluetooth/btmtkuart.c 	bdev->serdev = serdev;
serdev            981 drivers/bluetooth/btmtkuart.c 	serdev_device_set_drvdata(serdev, bdev);
serdev            983 drivers/bluetooth/btmtkuart.c 	serdev_device_set_client_ops(serdev, &btmtkuart_client_ops);
serdev            985 drivers/bluetooth/btmtkuart.c 	err = btmtkuart_parse_dt(serdev);
serdev            995 drivers/bluetooth/btmtkuart.c 		dev_err(&serdev->dev, "Can't allocate HCI device\n");
serdev           1010 drivers/bluetooth/btmtkuart.c 	SET_HCIDEV_DEV(hdev, &serdev->dev);
serdev           1051 drivers/bluetooth/btmtkuart.c 			devm_gpiod_put(&serdev->dev, bdev->boot);
serdev           1058 drivers/bluetooth/btmtkuart.c 		pm_runtime_no_callbacks(&serdev->dev);
serdev           1065 drivers/bluetooth/btmtkuart.c 		dev_err(&serdev->dev, "Can't register HCI device\n");
serdev           1079 drivers/bluetooth/btmtkuart.c static void btmtkuart_remove(struct serdev_device *serdev)
serdev           1081 drivers/bluetooth/btmtkuart.c 	struct btmtkuart_dev *bdev = serdev_device_get_drvdata(serdev);
serdev            135 drivers/bluetooth/hci_bcm.c 	if (hu->serdev)
serdev            136 drivers/bluetooth/hci_bcm.c 		serdev_device_set_baudrate(hu->serdev, speed);
serdev            197 drivers/bluetooth/hci_bcm.c 	if (device && device->hu && device->hu->serdev)
serdev            422 drivers/bluetooth/hci_bcm.c 	if (hu->serdev) {
serdev            423 drivers/bluetooth/hci_bcm.c 		bcm->dev = serdev_device_get_drvdata(hu->serdev);
serdev            460 drivers/bluetooth/hci_bcm.c 	if (!hu->serdev)
serdev            480 drivers/bluetooth/hci_bcm.c 	if (hu->serdev) {
serdev            481 drivers/bluetooth/hci_bcm.c 		bdev = serdev_device_get_drvdata(hu->serdev);
serdev           1372 drivers/bluetooth/hci_bcm.c static int bcm_serdev_probe(struct serdev_device *serdev)
serdev           1377 drivers/bluetooth/hci_bcm.c 	bcmdev = devm_kzalloc(&serdev->dev, sizeof(*bcmdev), GFP_KERNEL);
serdev           1381 drivers/bluetooth/hci_bcm.c 	bcmdev->dev = &serdev->dev;
serdev           1385 drivers/bluetooth/hci_bcm.c 	bcmdev->serdev_hu.serdev = serdev;
serdev           1386 drivers/bluetooth/hci_bcm.c 	serdev_device_set_drvdata(serdev, bcmdev);
serdev           1388 drivers/bluetooth/hci_bcm.c 	if (has_acpi_companion(&serdev->dev))
serdev           1400 drivers/bluetooth/hci_bcm.c 		dev_warn(&serdev->dev,
serdev           1407 drivers/bluetooth/hci_bcm.c 		dev_err(&serdev->dev, "Failed to power down\n");
serdev           1412 drivers/bluetooth/hci_bcm.c static void bcm_serdev_remove(struct serdev_device *serdev)
serdev           1414 drivers/bluetooth/hci_bcm.c 	struct bcm_device *bcmdev = serdev_device_get_drvdata(serdev);
serdev            204 drivers/bluetooth/hci_h5.c 	if (hu->serdev) {
serdev            205 drivers/bluetooth/hci_h5.c 		h5 = serdev_device_get_drvdata(hu->serdev);
serdev            250 drivers/bluetooth/hci_h5.c 	if (!hu->serdev)
serdev            783 drivers/bluetooth/hci_h5.c static int h5_serdev_probe(struct serdev_device *serdev)
serdev            786 drivers/bluetooth/hci_h5.c 	struct device *dev = &serdev->dev;
serdev            796 drivers/bluetooth/hci_h5.c 	h5->serdev_hu.serdev = serdev;
serdev            797 drivers/bluetooth/hci_h5.c 	serdev_device_set_drvdata(serdev, h5);
serdev            824 drivers/bluetooth/hci_h5.c static void h5_serdev_remove(struct serdev_device *serdev)
serdev            826 drivers/bluetooth/hci_h5.c 	struct h5 *h5 = serdev_device_get_drvdata(serdev);
serdev            887 drivers/bluetooth/hci_h5.c 	serdev_device_set_baudrate(h5->hu->serdev, controller_baudrate);
serdev            888 drivers/bluetooth/hci_h5.c 	serdev_device_set_flow_control(h5->hu->serdev, flow_control);
serdev            903 drivers/bluetooth/hci_h5.c 	serdev_device_set_flow_control(h5->hu->serdev, false);
serdev            904 drivers/bluetooth/hci_h5.c 	serdev_device_set_parity(h5->hu->serdev, SERDEV_PARITY_EVEN);
serdev            905 drivers/bluetooth/hci_h5.c 	serdev_device_set_baudrate(h5->hu->serdev, 115200);
serdev            927 drivers/bluetooth/hci_h5.c 	serdev_device_set_flow_control(h5->hu->serdev, false);
serdev            964 drivers/bluetooth/hci_h5.c 	reprobe->dev = get_device(&h5->hu->serdev->dev);
serdev            299 drivers/bluetooth/hci_ldisc.c 	if (hu->serdev)
serdev            317 drivers/bluetooth/hci_ldisc.c 	if (hu->serdev) {
serdev            318 drivers/bluetooth/hci_ldisc.c 		serdev_device_set_flow_control(hu->serdev, !enable);
serdev            319 drivers/bluetooth/hci_ldisc.c 		serdev_device_set_rts(hu->serdev, !enable);
serdev             67 drivers/bluetooth/hci_ll.c 	struct serdev_device *serdev;
serdev            129 drivers/bluetooth/hci_ll.c 	if (hu->serdev) {
serdev            130 drivers/bluetooth/hci_ll.c 		struct ll_device *lldev = serdev_device_get_drvdata(hu->serdev);
serdev            164 drivers/bluetooth/hci_ll.c 	if (hu->serdev) {
serdev            165 drivers/bluetooth/hci_ll.c 		struct ll_device *lldev = serdev_device_get_drvdata(hu->serdev);
serdev            540 drivers/bluetooth/hci_ll.c 	err = request_firmware(&fw, bts_scr_name, &lldev->serdev->dev);
serdev            612 drivers/bluetooth/hci_ll.c 	struct serdev_device *serdev = hu->serdev;
serdev            615 drivers/bluetooth/hci_ll.c 	if (!serdev)
serdev            618 drivers/bluetooth/hci_ll.c 	lldev = serdev_device_get_drvdata(serdev);
serdev            622 drivers/bluetooth/hci_ll.c 	serdev_device_set_flow_control(serdev, true);
serdev            629 drivers/bluetooth/hci_ll.c 		err = serdev_device_wait_for_cts(serdev, true, 200);
serdev            675 drivers/bluetooth/hci_ll.c 			serdev_device_set_baudrate(serdev, speed);
serdev            684 drivers/bluetooth/hci_ll.c static int hci_ti_probe(struct serdev_device *serdev)
serdev            691 drivers/bluetooth/hci_ll.c 	lldev = devm_kzalloc(&serdev->dev, sizeof(struct ll_device), GFP_KERNEL);
serdev            696 drivers/bluetooth/hci_ll.c 	serdev_device_set_drvdata(serdev, lldev);
serdev            697 drivers/bluetooth/hci_ll.c 	lldev->serdev = hu->serdev = serdev;
serdev            699 drivers/bluetooth/hci_ll.c 	lldev->enable_gpio = devm_gpiod_get_optional(&serdev->dev,
serdev            705 drivers/bluetooth/hci_ll.c 	lldev->ext_clk = devm_clk_get(&serdev->dev, "ext_clock");
serdev            709 drivers/bluetooth/hci_ll.c 	of_property_read_u32(serdev->dev.of_node, "max-speed", &max_speed);
serdev            713 drivers/bluetooth/hci_ll.c 	bdaddr_cell = nvmem_cell_get(&serdev->dev, "bd-address");
serdev            729 drivers/bluetooth/hci_ll.c 			dev_warn(&serdev->dev,
serdev            741 drivers/bluetooth/hci_ll.c 			dev_err(&serdev->dev, "Failed to read nvmem bd-address\n");
serdev            745 drivers/bluetooth/hci_ll.c 			dev_err(&serdev->dev, "Invalid nvmem bd-address length\n");
serdev            761 drivers/bluetooth/hci_ll.c static void hci_ti_remove(struct serdev_device *serdev)
serdev            763 drivers/bluetooth/hci_ll.c 	struct ll_device *lldev = serdev_device_get_drvdata(serdev);
serdev             76 drivers/bluetooth/hci_mrvl.c 	if (hu->serdev) {
serdev             77 drivers/bluetooth/hci_mrvl.c 		ret = serdev_device_open(hu->serdev);
serdev             95 drivers/bluetooth/hci_mrvl.c 	if (hu->serdev)
serdev             96 drivers/bluetooth/hci_mrvl.c 		serdev_device_close(hu->serdev);
serdev            369 drivers/bluetooth/hci_mrvl.c 	if (hu->serdev)
serdev            370 drivers/bluetooth/hci_mrvl.c 		serdev_device_set_baudrate(hu->serdev, 3000000);
serdev            396 drivers/bluetooth/hci_mrvl.c static int mrvl_serdev_probe(struct serdev_device *serdev)
serdev            400 drivers/bluetooth/hci_mrvl.c 	mrvldev = devm_kzalloc(&serdev->dev, sizeof(*mrvldev), GFP_KERNEL);
serdev            404 drivers/bluetooth/hci_mrvl.c 	mrvldev->hu.serdev = serdev;
serdev            405 drivers/bluetooth/hci_mrvl.c 	serdev_device_set_drvdata(serdev, mrvldev);
serdev            410 drivers/bluetooth/hci_mrvl.c static void mrvl_serdev_remove(struct serdev_device *serdev)
serdev            412 drivers/bluetooth/hci_mrvl.c 	struct mrvl_serdev *mrvldev = serdev_device_get_drvdata(serdev);
serdev            126 drivers/bluetooth/hci_nokia.c 	struct serdev_device *serdev;
serdev            151 drivers/bluetooth/hci_nokia.c static void nokia_flow_control(struct serdev_device *serdev, bool enable)
serdev            154 drivers/bluetooth/hci_nokia.c 		serdev_device_set_rts(serdev, true);
serdev            155 drivers/bluetooth/hci_nokia.c 		serdev_device_set_flow_control(serdev, true);
serdev            157 drivers/bluetooth/hci_nokia.c 		serdev_device_set_flow_control(serdev, false);
serdev            158 drivers/bluetooth/hci_nokia.c 		serdev_device_set_rts(serdev, false);
serdev            165 drivers/bluetooth/hci_nokia.c 	struct device *dev = &btdev->serdev->dev;
serdev            184 drivers/bluetooth/hci_nokia.c 	struct device *dev = &btdev->serdev->dev;
serdev            201 drivers/bluetooth/hci_nokia.c 	serdev_device_write_flush(btdev->serdev);
serdev            204 drivers/bluetooth/hci_nokia.c 	nokia_flow_control(btdev->serdev, false);
serdev            205 drivers/bluetooth/hci_nokia.c 	serdev_device_set_baudrate(btdev->serdev, INIT_BAUD_RATE);
serdev            210 drivers/bluetooth/hci_nokia.c 	err = serdev_device_wait_for_cts(btdev->serdev, true, 200);
serdev            216 drivers/bluetooth/hci_nokia.c 	nokia_flow_control(btdev->serdev, true);
serdev            224 drivers/bluetooth/hci_nokia.c 	struct device *dev = &btdev->serdev->dev;
serdev            264 drivers/bluetooth/hci_nokia.c 	struct device *dev = &btdev->serdev->dev;
serdev            310 drivers/bluetooth/hci_nokia.c 	nokia_flow_control(btdev->serdev, false);
serdev            311 drivers/bluetooth/hci_nokia.c 	serdev_device_set_baudrate(btdev->serdev, SETUP_BAUD_RATE);
serdev            312 drivers/bluetooth/hci_nokia.c 	err = serdev_device_wait_for_cts(btdev->serdev, true, 200);
serdev            317 drivers/bluetooth/hci_nokia.c 	nokia_flow_control(btdev->serdev, true);
serdev            327 drivers/bluetooth/hci_nokia.c 	struct device *dev = &btdev->serdev->dev;
serdev            396 drivers/bluetooth/hci_nokia.c 	struct device *dev = &btdev->serdev->dev;
serdev            401 drivers/bluetooth/hci_nokia.c 	nokia_flow_control(btdev->serdev, false);
serdev            407 drivers/bluetooth/hci_nokia.c 		pm_runtime_put(&btdev->serdev->dev);
serdev            441 drivers/bluetooth/hci_nokia.c 	nokia_flow_control(btdev->serdev, false);
serdev            442 drivers/bluetooth/hci_nokia.c 	serdev_device_set_baudrate(btdev->serdev, MAX_BAUD_RATE);
serdev            443 drivers/bluetooth/hci_nokia.c 	nokia_flow_control(btdev->serdev, true);
serdev            467 drivers/bluetooth/hci_nokia.c 	struct device *dev = &hu->serdev->dev;
serdev            480 drivers/bluetooth/hci_nokia.c 	dev_dbg(&btdev->serdev->dev, "flush device");
serdev            490 drivers/bluetooth/hci_nokia.c 	struct device *dev = &btdev->serdev->dev;
serdev            504 drivers/bluetooth/hci_nokia.c 	pm_runtime_disable(&btdev->serdev->dev);
serdev            536 drivers/bluetooth/hci_nokia.c 	struct device *dev = &btdev->serdev->dev;
serdev            573 drivers/bluetooth/hci_nokia.c 	struct device *dev = &btdev->serdev->dev;
serdev            626 drivers/bluetooth/hci_nokia.c 	struct device *dev = &btdev->serdev->dev;
serdev            647 drivers/bluetooth/hci_nokia.c 	struct device *dev = &btdev->serdev->dev;
serdev            660 drivers/bluetooth/hci_nokia.c 		serdev_device_wait_until_sent(btdev->serdev, 0);
serdev            683 drivers/bluetooth/hci_nokia.c static int nokia_bluetooth_serdev_probe(struct serdev_device *serdev)
serdev            685 drivers/bluetooth/hci_nokia.c 	struct device *dev = &serdev->dev;
serdev            694 drivers/bluetooth/hci_nokia.c 	btdev->hu.serdev = btdev->serdev = serdev;
serdev            695 drivers/bluetooth/hci_nokia.c 	serdev_device_set_drvdata(serdev, btdev);
serdev            755 drivers/bluetooth/hci_nokia.c static void nokia_bluetooth_serdev_remove(struct serdev_device *serdev)
serdev            757 drivers/bluetooth/hci_nokia.c 	struct nokia_bt_dev *btdev = serdev_device_get_drvdata(serdev);
serdev            764 drivers/bluetooth/hci_nokia.c 	struct serdev_device *serdev = to_serdev_device(dev);
serdev            766 drivers/bluetooth/hci_nokia.c 	nokia_flow_control(serdev, false);
serdev            772 drivers/bluetooth/hci_nokia.c 	struct serdev_device *serdev = to_serdev_device(dev);
serdev            774 drivers/bluetooth/hci_nokia.c 	nokia_flow_control(serdev, true);
serdev            173 drivers/bluetooth/hci_qca.c 	if (hu->serdev) {
serdev            174 drivers/bluetooth/hci_qca.c 		struct qca_serdev *qsd = serdev_device_get_drvdata(hu->serdev);
serdev            186 drivers/bluetooth/hci_qca.c 	if (hu->serdev) {
serdev            187 drivers/bluetooth/hci_qca.c 		struct qca_serdev *qsd = serdev_device_get_drvdata(hu->serdev);
serdev            511 drivers/bluetooth/hci_qca.c 	if (hu->serdev) {
serdev            513 drivers/bluetooth/hci_qca.c 		qcadev = serdev_device_get_drvdata(hu->serdev);
serdev            620 drivers/bluetooth/hci_qca.c 	if (hu->serdev) {
serdev            621 drivers/bluetooth/hci_qca.c 		qcadev = serdev_device_get_drvdata(hu->serdev);
serdev           1028 drivers/bluetooth/hci_qca.c 	if (hu->serdev)
serdev           1029 drivers/bluetooth/hci_qca.c 		serdev_device_wait_until_sent(hu->serdev,
serdev           1043 drivers/bluetooth/hci_qca.c 	if (hu->serdev)
serdev           1044 drivers/bluetooth/hci_qca.c 		serdev_device_set_baudrate(hu->serdev, speed);
serdev           1067 drivers/bluetooth/hci_qca.c 	serdev_device_write_flush(hu->serdev);
serdev           1069 drivers/bluetooth/hci_qca.c 	ret = serdev_device_write_buf(hu->serdev, &cmd, sizeof(cmd));
serdev           1075 drivers/bluetooth/hci_qca.c 	serdev_device_wait_until_sent(hu->serdev, timeout);
serdev           1188 drivers/bluetooth/hci_qca.c 	qcadev = serdev_device_get_drvdata(hu->serdev);
serdev           1190 drivers/bluetooth/hci_qca.c 		serdev_device_close(hu->serdev);
serdev           1195 drivers/bluetooth/hci_qca.c 		ret = serdev_device_open(hu->serdev);
serdev           1218 drivers/bluetooth/hci_qca.c 	serdev_device_close(hu->serdev);
serdev           1219 drivers/bluetooth/hci_qca.c 	ret = serdev_device_open(hu->serdev);
serdev           1424 drivers/bluetooth/hci_qca.c 	qcadev = serdev_device_get_drvdata(hu->serdev);
serdev           1479 drivers/bluetooth/hci_qca.c static int qca_serdev_probe(struct serdev_device *serdev)
serdev           1485 drivers/bluetooth/hci_qca.c 	qcadev = devm_kzalloc(&serdev->dev, sizeof(*qcadev), GFP_KERNEL);
serdev           1489 drivers/bluetooth/hci_qca.c 	qcadev->serdev_hu.serdev = serdev;
serdev           1490 drivers/bluetooth/hci_qca.c 	data = of_device_get_match_data(&serdev->dev);
serdev           1491 drivers/bluetooth/hci_qca.c 	serdev_device_set_drvdata(serdev, qcadev);
serdev           1492 drivers/bluetooth/hci_qca.c 	device_property_read_string(&serdev->dev, "firmware-name",
serdev           1496 drivers/bluetooth/hci_qca.c 		qcadev->bt_power = devm_kzalloc(&serdev->dev,
serdev           1502 drivers/bluetooth/hci_qca.c 		qcadev->bt_power->dev = &serdev->dev;
serdev           1513 drivers/bluetooth/hci_qca.c 		device_property_read_u32(&serdev->dev, "max-speed",
serdev           1525 drivers/bluetooth/hci_qca.c 		qcadev->bt_en = devm_gpiod_get(&serdev->dev, "enable",
serdev           1528 drivers/bluetooth/hci_qca.c 			dev_err(&serdev->dev, "failed to acquire enable gpio\n");
serdev           1532 drivers/bluetooth/hci_qca.c 		qcadev->susclk = devm_clk_get(&serdev->dev, NULL);
serdev           1534 drivers/bluetooth/hci_qca.c 			dev_err(&serdev->dev, "failed to acquire clk\n");
serdev           1555 drivers/bluetooth/hci_qca.c static void qca_serdev_remove(struct serdev_device *serdev)
serdev           1557 drivers/bluetooth/hci_qca.c 	struct qca_serdev *qcadev = serdev_device_get_drvdata(serdev);
serdev             62 drivers/bluetooth/hci_serdev.c 	struct serdev_device *serdev = hu->serdev;
serdev             75 drivers/bluetooth/hci_serdev.c 			len = serdev_device_write_buf(serdev,
serdev            100 drivers/bluetooth/hci_serdev.c 	BT_DBG("hdev %p serdev %p", hdev, hu->serdev);
serdev            107 drivers/bluetooth/hci_serdev.c 	serdev_device_write_flush(hu->serdev);
serdev            169 drivers/bluetooth/hci_serdev.c 		serdev_device_set_baudrate(hu->serdev, speed);
serdev            184 drivers/bluetooth/hci_serdev.c 			serdev_device_set_baudrate(hu->serdev, speed);
serdev            214 drivers/bluetooth/hci_serdev.c static void hci_uart_write_wakeup(struct serdev_device *serdev)
serdev            216 drivers/bluetooth/hci_serdev.c 	struct hci_uart *hu = serdev_device_get_drvdata(serdev);
serdev            220 drivers/bluetooth/hci_serdev.c 	if (!hu || serdev != hu->serdev) {
serdev            239 drivers/bluetooth/hci_serdev.c static int hci_uart_receive_buf(struct serdev_device *serdev, const u8 *data,
serdev            242 drivers/bluetooth/hci_serdev.c 	struct hci_uart *hu = serdev_device_get_drvdata(serdev);
serdev            244 drivers/bluetooth/hci_serdev.c 	if (!hu || serdev != hu->serdev) {
serdev            276 drivers/bluetooth/hci_serdev.c 	serdev_device_set_client_ops(hu->serdev, &hci_serdev_client_ops);
serdev            278 drivers/bluetooth/hci_serdev.c 	err = serdev_device_open(hu->serdev);
serdev            318 drivers/bluetooth/hci_serdev.c 	SET_HCIDEV_DEV(hdev, &hu->serdev->dev);
serdev            350 drivers/bluetooth/hci_serdev.c 	serdev_device_close(hu->serdev);
serdev            366 drivers/bluetooth/hci_serdev.c 	serdev_device_close(hu->serdev);
serdev             66 drivers/bluetooth/hci_uart.h 	struct serdev_device	*serdev;
serdev             66 drivers/gnss/mtk.c static int mtk_probe(struct serdev_device *serdev)
serdev             72 drivers/gnss/mtk.c 	gserial = gnss_serial_allocate(serdev, sizeof(*data));
serdev             84 drivers/gnss/mtk.c 	data->vcc = devm_regulator_get(&serdev->dev, "vcc");
serdev             90 drivers/gnss/mtk.c 	data->vbackup = devm_regulator_get_optional(&serdev->dev, "vbackup");
serdev            120 drivers/gnss/mtk.c static void mtk_remove(struct serdev_device *serdev)
serdev            122 drivers/gnss/mtk.c 	struct gnss_serial *gserial = serdev_device_get_drvdata(serdev);
serdev             25 drivers/gnss/serial.c 	struct serdev_device *serdev = gserial->serdev;
serdev             28 drivers/gnss/serial.c 	ret = serdev_device_open(serdev);
serdev             32 drivers/gnss/serial.c 	serdev_device_set_baudrate(serdev, gserial->speed);
serdev             33 drivers/gnss/serial.c 	serdev_device_set_flow_control(serdev, false);
serdev             35 drivers/gnss/serial.c 	ret = pm_runtime_get_sync(&serdev->dev);
serdev             37 drivers/gnss/serial.c 		pm_runtime_put_noidle(&serdev->dev);
serdev             44 drivers/gnss/serial.c 	serdev_device_close(serdev);
serdev             52 drivers/gnss/serial.c 	struct serdev_device *serdev = gserial->serdev;
serdev             54 drivers/gnss/serial.c 	serdev_device_close(serdev);
serdev             56 drivers/gnss/serial.c 	pm_runtime_put(&serdev->dev);
serdev             63 drivers/gnss/serial.c 	struct serdev_device *serdev = gserial->serdev;
serdev             67 drivers/gnss/serial.c 	ret = serdev_device_write(serdev, buf, count, MAX_SCHEDULE_TIMEOUT);
serdev             72 drivers/gnss/serial.c 	serdev_device_wait_until_sent(serdev, 0);
serdev             83 drivers/gnss/serial.c static int gnss_serial_receive_buf(struct serdev_device *serdev,
serdev             86 drivers/gnss/serial.c 	struct gnss_serial *gserial = serdev_device_get_drvdata(serdev);
serdev            110 drivers/gnss/serial.c static int gnss_serial_parse_dt(struct serdev_device *serdev)
serdev            112 drivers/gnss/serial.c 	struct gnss_serial *gserial = serdev_device_get_drvdata(serdev);
serdev            113 drivers/gnss/serial.c 	struct device_node *node = serdev->dev.of_node;
serdev            123 drivers/gnss/serial.c struct gnss_serial *gnss_serial_allocate(struct serdev_device *serdev,
serdev            134 drivers/gnss/serial.c 	gdev = gnss_allocate_device(&serdev->dev);
serdev            143 drivers/gnss/serial.c 	gserial->serdev = serdev;
serdev            146 drivers/gnss/serial.c 	serdev_device_set_drvdata(serdev, gserial);
serdev            147 drivers/gnss/serial.c 	serdev_device_set_client_ops(serdev, &gnss_serial_serdev_ops);
serdev            149 drivers/gnss/serial.c 	ret = gnss_serial_parse_dt(serdev);
serdev            173 drivers/gnss/serial.c 	struct serdev_device *serdev = gserial->serdev;
serdev            177 drivers/gnss/serial.c 		pm_runtime_enable(&serdev->dev);
serdev            192 drivers/gnss/serial.c 		pm_runtime_disable(&serdev->dev);
serdev            202 drivers/gnss/serial.c 	struct serdev_device *serdev = gserial->serdev;
serdev            207 drivers/gnss/serial.c 		pm_runtime_disable(&serdev->dev);
serdev             15 drivers/gnss/serial.h 	struct serdev_device *serdev;
serdev             40 drivers/gnss/sirf.c 	struct serdev_device *serdev;
serdev             64 drivers/gnss/sirf.c 		ret = serdev_device_open(data->serdev);
serdev             70 drivers/gnss/sirf.c 		serdev_device_set_baudrate(data->serdev, data->speed);
serdev             71 drivers/gnss/sirf.c 		serdev_device_set_flow_control(data->serdev, false);
serdev             84 drivers/gnss/sirf.c 		serdev_device_close(data->serdev);
serdev             91 drivers/gnss/sirf.c 	struct serdev_device *serdev = data->serdev;
serdev            106 drivers/gnss/sirf.c 	ret = pm_runtime_get_sync(&serdev->dev);
serdev            109 drivers/gnss/sirf.c 		pm_runtime_put_noidle(&serdev->dev);
serdev            128 drivers/gnss/sirf.c 	struct serdev_device *serdev = data->serdev;
serdev            132 drivers/gnss/sirf.c 	pm_runtime_put(&serdev->dev);
serdev            143 drivers/gnss/sirf.c 	struct serdev_device *serdev = data->serdev;
serdev            147 drivers/gnss/sirf.c 	ret = serdev_device_write(serdev, buf, count, MAX_SCHEDULE_TIMEOUT);
serdev            152 drivers/gnss/sirf.c 	serdev_device_wait_until_sent(serdev, 0);
serdev            163 drivers/gnss/sirf.c static int sirf_receive_buf(struct serdev_device *serdev,
serdev            166 drivers/gnss/sirf.c 	struct sirf_data *data = serdev_device_get_drvdata(serdev);
serdev            191 drivers/gnss/sirf.c 	struct device *dev = &data->serdev->dev;
serdev            244 drivers/gnss/sirf.c 		dev_warn(&data->serdev->dev, "timeout waiting for active state = %d\n",
serdev            382 drivers/gnss/sirf.c static int sirf_parse_dt(struct serdev_device *serdev)
serdev            384 drivers/gnss/sirf.c 	struct sirf_data *data = serdev_device_get_drvdata(serdev);
serdev            385 drivers/gnss/sirf.c 	struct device_node *node = serdev->dev.of_node;
serdev            395 drivers/gnss/sirf.c static int sirf_probe(struct serdev_device *serdev)
serdev            397 drivers/gnss/sirf.c 	struct device *dev = &serdev->dev;
serdev            414 drivers/gnss/sirf.c 	data->serdev = serdev;
serdev            421 drivers/gnss/sirf.c 	serdev_device_set_drvdata(serdev, data);
serdev            422 drivers/gnss/sirf.c 	serdev_device_set_client_ops(serdev, &sirf_serdev_ops);
serdev            424 drivers/gnss/sirf.c 	ret = sirf_parse_dt(serdev);
serdev            532 drivers/gnss/sirf.c static void sirf_remove(struct serdev_device *serdev)
serdev            534 drivers/gnss/sirf.c 	struct sirf_data *data = serdev_device_get_drvdata(serdev);
serdev            539 drivers/gnss/sirf.c 		pm_runtime_disable(&serdev->dev);
serdev            541 drivers/gnss/sirf.c 		sirf_runtime_suspend(&serdev->dev);
serdev             66 drivers/gnss/ubx.c static int ubx_probe(struct serdev_device *serdev)
serdev             72 drivers/gnss/ubx.c 	gserial = gnss_serial_allocate(serdev, sizeof(*data));
serdev             84 drivers/gnss/ubx.c 	data->vcc = devm_regulator_get(&serdev->dev, "vcc");
serdev             90 drivers/gnss/ubx.c 	data->v_bckp = devm_regulator_get_optional(&serdev->dev, "v-bckp");
serdev            120 drivers/gnss/ubx.c static void ubx_remove(struct serdev_device *serdev)
serdev            122 drivers/gnss/ubx.c 	struct gnss_serial *gserial = serdev_device_get_drvdata(serdev);
serdev             72 drivers/iio/chemical/pms7003.c 	struct serdev_device *serdev;
serdev             87 drivers/iio/chemical/pms7003.c 	ret = serdev_device_write(state->serdev, pms7003_cmd_tbl[cmd],
serdev            214 drivers/iio/chemical/pms7003.c static int pms7003_receive_buf(struct serdev_device *serdev,
serdev            217 drivers/iio/chemical/pms7003.c 	struct iio_dev *indio_dev = serdev_device_get_drvdata(serdev);
serdev            270 drivers/iio/chemical/pms7003.c static int pms7003_probe(struct serdev_device *serdev)
serdev            276 drivers/iio/chemical/pms7003.c 	indio_dev = devm_iio_device_alloc(&serdev->dev, sizeof(*state));
serdev            281 drivers/iio/chemical/pms7003.c 	serdev_device_set_drvdata(serdev, indio_dev);
serdev            282 drivers/iio/chemical/pms7003.c 	state->serdev = serdev;
serdev            283 drivers/iio/chemical/pms7003.c 	indio_dev->dev.parent = &serdev->dev;
serdev            294 drivers/iio/chemical/pms7003.c 	serdev_device_set_client_ops(serdev, &pms7003_serdev_ops);
serdev            295 drivers/iio/chemical/pms7003.c 	ret = devm_serdev_device_open(&serdev->dev, serdev);
serdev            299 drivers/iio/chemical/pms7003.c 	serdev_device_set_baudrate(serdev, 9600);
serdev            300 drivers/iio/chemical/pms7003.c 	serdev_device_set_flow_control(serdev, false);
serdev            302 drivers/iio/chemical/pms7003.c 	ret = serdev_device_set_parity(serdev, SERDEV_PARITY_NONE);
serdev            308 drivers/iio/chemical/pms7003.c 		dev_err(&serdev->dev, "failed to wakeup sensor\n");
serdev            314 drivers/iio/chemical/pms7003.c 		dev_err(&serdev->dev, "failed to enter passive mode\n");
serdev            318 drivers/iio/chemical/pms7003.c 	ret = devm_add_action_or_reset(&serdev->dev, pms7003_stop, state);
serdev            322 drivers/iio/chemical/pms7003.c 	ret = devm_iio_triggered_buffer_setup(&serdev->dev, indio_dev, NULL,
serdev            327 drivers/iio/chemical/pms7003.c 	return devm_iio_device_register(&serdev->dev, indio_dev);
serdev            189 drivers/mfd/rave-sp.c 	struct serdev_device *serdev;
serdev            308 drivers/mfd/rave-sp.c 	return serdev_device_write(sp->serdev, frame, length, HZ);
serdev            375 drivers/mfd/rave-sp.c 		dev_err(&sp->serdev->dev, "Command timeout\n");
serdev            406 drivers/mfd/rave-sp.c 	struct device *dev = &sp->serdev->dev;
serdev            444 drivers/mfd/rave-sp.c 	struct device *dev           = &sp->serdev->dev;
serdev            474 drivers/mfd/rave-sp.c static int rave_sp_receive_buf(struct serdev_device *serdev,
serdev            477 drivers/mfd/rave-sp.c 	struct device *dev = &serdev->dev;
serdev            696 drivers/mfd/rave-sp.c 	struct device *dev = &sp->serdev->dev;
serdev            768 drivers/mfd/rave-sp.c static int rave_sp_probe(struct serdev_device *serdev)
serdev            770 drivers/mfd/rave-sp.c 	struct device *dev = &serdev->dev;
serdev            786 drivers/mfd/rave-sp.c 	sp->serdev = serdev;
serdev            797 drivers/mfd/rave-sp.c 	serdev_device_set_client_ops(serdev, &rave_sp_serdev_device_ops);
serdev            798 drivers/mfd/rave-sp.c 	ret = devm_serdev_device_open(dev, serdev);
serdev            802 drivers/mfd/rave-sp.c 	serdev_device_set_baudrate(serdev, baud);
serdev            803 drivers/mfd/rave-sp.c 	serdev_device_set_flow_control(serdev, false);
serdev            805 drivers/mfd/rave-sp.c 	ret = serdev_device_set_parity(serdev, SERDEV_PARITY_NONE);
serdev            412 drivers/net/caif/caif_serial.c 	struct ser_device *serdev = netdev_priv(dev);
serdev            421 drivers/net/caif/caif_serial.c 	skb_queue_head_init(&serdev->head);
serdev            422 drivers/net/caif/caif_serial.c 	serdev->common.link_select = CAIF_LINK_LOW_LATENCY;
serdev            423 drivers/net/caif/caif_serial.c 	serdev->common.use_frag = true;
serdev            424 drivers/net/caif/caif_serial.c 	serdev->common.use_stx = ser_use_stx;
serdev            425 drivers/net/caif/caif_serial.c 	serdev->common.use_fcs = ser_use_fcs;
serdev            426 drivers/net/caif/caif_serial.c 	serdev->dev = dev;
serdev             53 drivers/net/ethernet/qualcomm/qca_uart.c 	struct serdev_device *serdev;
serdev             63 drivers/net/ethernet/qualcomm/qca_uart.c qca_tty_receive(struct serdev_device *serdev, const unsigned char *data,
serdev             66 drivers/net/ethernet/qualcomm/qca_uart.c 	struct qcauart *qca = serdev_device_get_drvdata(serdev);
serdev            151 drivers/net/ethernet/qualcomm/qca_uart.c 	written = serdev_device_write_buf(qca->serdev, qca->tx_head,
serdev            163 drivers/net/ethernet/qualcomm/qca_uart.c static void qca_tty_wakeup(struct serdev_device *serdev)
serdev            165 drivers/net/ethernet/qualcomm/qca_uart.c 	struct qcauart *qca = serdev_device_get_drvdata(serdev);
serdev            236 drivers/net/ethernet/qualcomm/qca_uart.c 	written = serdev_device_write_buf(qca->serdev, qca->tx_buffer,
serdev            271 drivers/net/ethernet/qualcomm/qca_uart.c 	qca->tx_buffer = devm_kmalloc(&qca->serdev->dev, len, GFP_KERNEL);
serdev            322 drivers/net/ethernet/qualcomm/qca_uart.c static int qca_uart_probe(struct serdev_device *serdev)
serdev            334 drivers/net/ethernet/qualcomm/qca_uart.c 	SET_NETDEV_DEV(qcauart_dev, &serdev->dev);
serdev            343 drivers/net/ethernet/qualcomm/qca_uart.c 	qca->serdev = serdev;
serdev            349 drivers/net/ethernet/qualcomm/qca_uart.c 	of_property_read_u32(serdev->dev.of_node, "current-speed", &speed);
serdev            351 drivers/net/ethernet/qualcomm/qca_uart.c 	mac = of_get_mac_address(serdev->dev.of_node);
serdev            358 drivers/net/ethernet/qualcomm/qca_uart.c 		dev_info(&serdev->dev, "Using random MAC address: %pM\n",
serdev            363 drivers/net/ethernet/qualcomm/qca_uart.c 	serdev_device_set_drvdata(serdev, qca);
serdev            364 drivers/net/ethernet/qualcomm/qca_uart.c 	serdev_device_set_client_ops(serdev, &qca_serdev_ops);
serdev            366 drivers/net/ethernet/qualcomm/qca_uart.c 	ret = serdev_device_open(serdev);
serdev            368 drivers/net/ethernet/qualcomm/qca_uart.c 		dev_err(&serdev->dev, "Unable to open device %s\n",
serdev            373 drivers/net/ethernet/qualcomm/qca_uart.c 	speed = serdev_device_set_baudrate(serdev, speed);
serdev            374 drivers/net/ethernet/qualcomm/qca_uart.c 	dev_info(&serdev->dev, "Using baudrate: %u\n", speed);
serdev            376 drivers/net/ethernet/qualcomm/qca_uart.c 	serdev_device_set_flow_control(serdev, false);
serdev            380 drivers/net/ethernet/qualcomm/qca_uart.c 		dev_err(&serdev->dev, "Unable to register net device %s\n",
serdev            382 drivers/net/ethernet/qualcomm/qca_uart.c 		serdev_device_close(serdev);
serdev            394 drivers/net/ethernet/qualcomm/qca_uart.c static void qca_uart_remove(struct serdev_device *serdev)
serdev            396 drivers/net/ethernet/qualcomm/qca_uart.c 	struct qcauart *qca = serdev_device_get_drvdata(serdev);
serdev            401 drivers/net/ethernet/qualcomm/qca_uart.c 	serdev_device_close(serdev);
serdev             59 drivers/tty/serdev/core.c 	struct serdev_device *serdev = to_serdev_device(dev);
serdev             60 drivers/tty/serdev/core.c 	kfree(serdev);
serdev            101 drivers/tty/serdev/core.c int serdev_device_add(struct serdev_device *serdev)
serdev            103 drivers/tty/serdev/core.c 	struct serdev_controller *ctrl = serdev->ctrl;
serdev            104 drivers/tty/serdev/core.c 	struct device *parent = serdev->dev.parent;
serdev            107 drivers/tty/serdev/core.c 	dev_set_name(&serdev->dev, "%s-%d", dev_name(parent), serdev->nr);
serdev            110 drivers/tty/serdev/core.c 	if (ctrl->serdev) {
serdev            111 drivers/tty/serdev/core.c 		dev_err(&serdev->dev, "controller busy\n");
serdev            114 drivers/tty/serdev/core.c 	ctrl->serdev = serdev;
serdev            116 drivers/tty/serdev/core.c 	err = device_add(&serdev->dev);
serdev            118 drivers/tty/serdev/core.c 		dev_err(&serdev->dev, "Can't add %s, status %d\n",
serdev            119 drivers/tty/serdev/core.c 			dev_name(&serdev->dev), err);
serdev            123 drivers/tty/serdev/core.c 	dev_dbg(&serdev->dev, "device %s registered\n", dev_name(&serdev->dev));
serdev            128 drivers/tty/serdev/core.c 	ctrl->serdev = NULL;
serdev            137 drivers/tty/serdev/core.c void serdev_device_remove(struct serdev_device *serdev)
serdev            139 drivers/tty/serdev/core.c 	struct serdev_controller *ctrl = serdev->ctrl;
serdev            141 drivers/tty/serdev/core.c 	device_unregister(&serdev->dev);
serdev            142 drivers/tty/serdev/core.c 	ctrl->serdev = NULL;
serdev            146 drivers/tty/serdev/core.c int serdev_device_open(struct serdev_device *serdev)
serdev            148 drivers/tty/serdev/core.c 	struct serdev_controller *ctrl = serdev->ctrl;
serdev            174 drivers/tty/serdev/core.c void serdev_device_close(struct serdev_device *serdev)
serdev            176 drivers/tty/serdev/core.c 	struct serdev_controller *ctrl = serdev->ctrl;
serdev            192 drivers/tty/serdev/core.c int devm_serdev_device_open(struct device *dev, struct serdev_device *serdev)
serdev            201 drivers/tty/serdev/core.c 	ret = serdev_device_open(serdev);
serdev            207 drivers/tty/serdev/core.c 	*dr = serdev;
serdev            214 drivers/tty/serdev/core.c void serdev_device_write_wakeup(struct serdev_device *serdev)
serdev            216 drivers/tty/serdev/core.c 	complete(&serdev->write_comp);
serdev            235 drivers/tty/serdev/core.c int serdev_device_write_buf(struct serdev_device *serdev,
serdev            238 drivers/tty/serdev/core.c 	struct serdev_controller *ctrl = serdev->ctrl;
serdev            269 drivers/tty/serdev/core.c int serdev_device_write(struct serdev_device *serdev,
serdev            273 drivers/tty/serdev/core.c 	struct serdev_controller *ctrl = serdev->ctrl;
serdev            277 drivers/tty/serdev/core.c 	if (!ctrl || !ctrl->ops->write_buf || !serdev->ops->write_wakeup)
serdev            283 drivers/tty/serdev/core.c 	mutex_lock(&serdev->write_lock);
serdev            285 drivers/tty/serdev/core.c 		reinit_completion(&serdev->write_comp);
serdev            298 drivers/tty/serdev/core.c 		timeout = wait_for_completion_interruptible_timeout(&serdev->write_comp,
serdev            301 drivers/tty/serdev/core.c 	mutex_unlock(&serdev->write_lock);
serdev            317 drivers/tty/serdev/core.c void serdev_device_write_flush(struct serdev_device *serdev)
serdev            319 drivers/tty/serdev/core.c 	struct serdev_controller *ctrl = serdev->ctrl;
serdev            328 drivers/tty/serdev/core.c int serdev_device_write_room(struct serdev_device *serdev)
serdev            330 drivers/tty/serdev/core.c 	struct serdev_controller *ctrl = serdev->ctrl;
serdev            335 drivers/tty/serdev/core.c 	return serdev->ctrl->ops->write_room(ctrl);
serdev            339 drivers/tty/serdev/core.c unsigned int serdev_device_set_baudrate(struct serdev_device *serdev, unsigned int speed)
serdev            341 drivers/tty/serdev/core.c 	struct serdev_controller *ctrl = serdev->ctrl;
serdev            351 drivers/tty/serdev/core.c void serdev_device_set_flow_control(struct serdev_device *serdev, bool enable)
serdev            353 drivers/tty/serdev/core.c 	struct serdev_controller *ctrl = serdev->ctrl;
serdev            362 drivers/tty/serdev/core.c int serdev_device_set_parity(struct serdev_device *serdev,
serdev            365 drivers/tty/serdev/core.c 	struct serdev_controller *ctrl = serdev->ctrl;
serdev            374 drivers/tty/serdev/core.c void serdev_device_wait_until_sent(struct serdev_device *serdev, long timeout)
serdev            376 drivers/tty/serdev/core.c 	struct serdev_controller *ctrl = serdev->ctrl;
serdev            385 drivers/tty/serdev/core.c int serdev_device_get_tiocm(struct serdev_device *serdev)
serdev            387 drivers/tty/serdev/core.c 	struct serdev_controller *ctrl = serdev->ctrl;
serdev            396 drivers/tty/serdev/core.c int serdev_device_set_tiocm(struct serdev_device *serdev, int set, int clear)
serdev            398 drivers/tty/serdev/core.c 	struct serdev_controller *ctrl = serdev->ctrl;
serdev            450 drivers/tty/serdev/core.c 	struct serdev_device *serdev;
serdev            452 drivers/tty/serdev/core.c 	serdev = kzalloc(sizeof(*serdev), GFP_KERNEL);
serdev            453 drivers/tty/serdev/core.c 	if (!serdev)
serdev            456 drivers/tty/serdev/core.c 	serdev->ctrl = ctrl;
serdev            457 drivers/tty/serdev/core.c 	device_initialize(&serdev->dev);
serdev            458 drivers/tty/serdev/core.c 	serdev->dev.parent = &ctrl->dev;
serdev            459 drivers/tty/serdev/core.c 	serdev->dev.bus = &serdev_bus_type;
serdev            460 drivers/tty/serdev/core.c 	serdev->dev.type = &serdev_device_type;
serdev            461 drivers/tty/serdev/core.c 	init_completion(&serdev->write_comp);
serdev            462 drivers/tty/serdev/core.c 	mutex_init(&serdev->write_lock);
serdev            463 drivers/tty/serdev/core.c 	return serdev;
serdev            524 drivers/tty/serdev/core.c 	struct serdev_device *serdev = NULL;
serdev            534 drivers/tty/serdev/core.c 		serdev = serdev_device_alloc(ctrl);
serdev            535 drivers/tty/serdev/core.c 		if (!serdev)
serdev            538 drivers/tty/serdev/core.c 		serdev->dev.of_node = node;
serdev            540 drivers/tty/serdev/core.c 		err = serdev_device_add(serdev);
serdev            542 drivers/tty/serdev/core.c 			dev_err(&serdev->dev,
serdev            544 drivers/tty/serdev/core.c 			serdev_device_put(serdev);
serdev            558 drivers/tty/serdev/core.c 	struct serdev_device *serdev = NULL;
serdev            565 drivers/tty/serdev/core.c 	serdev = serdev_device_alloc(ctrl);
serdev            566 drivers/tty/serdev/core.c 	if (!serdev) {
serdev            572 drivers/tty/serdev/core.c 	ACPI_COMPANION_SET(&serdev->dev, adev);
serdev            575 drivers/tty/serdev/core.c 	err = serdev_device_add(serdev);
serdev            577 drivers/tty/serdev/core.c 		dev_err(&serdev->dev,
serdev            579 drivers/tty/serdev/core.c 		serdev_device_put(serdev);
serdev            621 drivers/tty/serdev/core.c 	if (!ctrl->serdev)
serdev            677 drivers/tty/serdev/core.c 	struct serdev_device *serdev = to_serdev_device(dev);
serdev            679 drivers/tty/serdev/core.c 		serdev_device_remove(serdev);
serdev            106 include/linux/serdev.h 	struct serdev_device	*serdev;
serdev            115 include/linux/serdev.h static inline void *serdev_device_get_drvdata(const struct serdev_device *serdev)
serdev            117 include/linux/serdev.h 	return dev_get_drvdata(&serdev->dev);
serdev            120 include/linux/serdev.h static inline void serdev_device_set_drvdata(struct serdev_device *serdev, void *data)
serdev            122 include/linux/serdev.h 	dev_set_drvdata(&serdev->dev, data);
serdev            129 include/linux/serdev.h static inline void serdev_device_put(struct serdev_device *serdev)
serdev            131 include/linux/serdev.h 	if (serdev)
serdev            132 include/linux/serdev.h 		put_device(&serdev->dev);
serdev            135 include/linux/serdev.h static inline void serdev_device_set_client_ops(struct serdev_device *serdev,
serdev            138 include/linux/serdev.h 	serdev->ops = ops;
serdev            173 include/linux/serdev.h 	struct serdev_device *serdev = ctrl->serdev;
serdev            175 include/linux/serdev.h 	if (!serdev || !serdev->ops->write_wakeup)
serdev            178 include/linux/serdev.h 	serdev->ops->write_wakeup(serdev);
serdev            185 include/linux/serdev.h 	struct serdev_device *serdev = ctrl->serdev;
serdev            187 include/linux/serdev.h 	if (!serdev || !serdev->ops->receive_buf)
serdev            190 include/linux/serdev.h 	return serdev->ops->receive_buf(serdev, data, count);
serdev            242 include/linux/serdev.h static inline int serdev_device_write_buf(struct serdev_device *serdev,
serdev            249 include/linux/serdev.h static inline int serdev_device_get_tiocm(struct serdev_device *serdev)
serdev            253 include/linux/serdev.h static inline int serdev_device_set_tiocm(struct serdev_device *serdev, int set, int clear)
serdev            273 include/linux/serdev.h static inline bool serdev_device_get_cts(struct serdev_device *serdev)
serdev            275 include/linux/serdev.h 	int status = serdev_device_get_tiocm(serdev);
serdev            279 include/linux/serdev.h static inline int serdev_device_wait_for_cts(struct serdev_device *serdev, bool state, int timeout_ms)
serdev            286 include/linux/serdev.h 		signal = serdev_device_get_cts(serdev);
serdev            295 include/linux/serdev.h static inline int serdev_device_set_rts(struct serdev_device *serdev, bool enable)
serdev            298 include/linux/serdev.h 		return serdev_device_set_tiocm(serdev, TIOCM_RTS, 0);
serdev            300 include/linux/serdev.h 		return serdev_device_set_tiocm(serdev, 0, TIOCM_RTS);
serdev            303 include/linux/serdev.h int serdev_device_set_parity(struct serdev_device *serdev,