dlci 310 drivers/net/wan/dlci.c static int dlci_add(struct dlci_add *dlci) dlci 319 drivers/net/wan/dlci.c slave = dev_get_by_name(&init_net, dlci->devname); dlci 343 drivers/net/wan/dlci.c *(short *)(master->dev_addr) = dlci->dlci; dlci 358 drivers/net/wan/dlci.c strcpy(dlci->devname, master->name); dlci 373 drivers/net/wan/dlci.c static int dlci_del(struct dlci_add *dlci) dlci 384 drivers/net/wan/dlci.c master = __dev_get_by_name(&init_net, dlci->devname); dlci 120 drivers/net/wan/hdlc_fr.c int dlci; dlci 162 drivers/net/wan/hdlc_fr.c static inline void dlci_to_q922(u8 *hdr, u16 dlci) dlci 164 drivers/net/wan/hdlc_fr.c hdr[0] = (dlci >> 2) & 0xFC; dlci 165 drivers/net/wan/hdlc_fr.c hdr[1] = ((dlci << 4) & 0xF0) | 0x01; dlci 175 drivers/net/wan/hdlc_fr.c static inline struct pvc_device *find_pvc(hdlc_device *hdlc, u16 dlci) dlci 180 drivers/net/wan/hdlc_fr.c if (pvc->dlci == dlci) dlci 182 drivers/net/wan/hdlc_fr.c if (pvc->dlci > dlci) dlci 191 drivers/net/wan/hdlc_fr.c static struct pvc_device *add_pvc(struct net_device *dev, u16 dlci) dlci 197 drivers/net/wan/hdlc_fr.c if ((*pvc_p)->dlci == dlci) dlci 199 drivers/net/wan/hdlc_fr.c if ((*pvc_p)->dlci > dlci) dlci 211 drivers/net/wan/hdlc_fr.c pvc->dlci = dlci; dlci 274 drivers/net/wan/hdlc_fr.c static int fr_hard_header(struct sk_buff **skb_p, u16 dlci) dlci 335 drivers/net/wan/hdlc_fr.c dlci_to_q922(skb->data, dlci); dlci 398 drivers/net/wan/hdlc_fr.c info.dlci = pvc->dlci; dlci 430 drivers/net/wan/hdlc_fr.c if (!fr_hard_header(&skb, pvc->dlci)) { dlci 449 drivers/net/wan/hdlc_fr.c pvc->dlci, dlci 537 drivers/net/wan/hdlc_fr.c data[i] = pvc->dlci >> 8; dlci 538 drivers/net/wan/hdlc_fr.c data[i + 1] = pvc->dlci & 0xFF; dlci 540 drivers/net/wan/hdlc_fr.c data[i] = (pvc->dlci >> 4) & 0x3F; dlci 541 drivers/net/wan/hdlc_fr.c data[i + 1] = ((pvc->dlci << 3) & 0x78) | 0x80; dlci 790 drivers/net/wan/hdlc_fr.c u16 dlci; dlci 811 drivers/net/wan/hdlc_fr.c dlci = (skb->data[i] << 8) | skb->data[i + 1]; dlci 816 drivers/net/wan/hdlc_fr.c dlci = ((skb->data[i] & 0x3F) << 4) | dlci 821 drivers/net/wan/hdlc_fr.c pvc = add_pvc(dev, dlci); dlci 872 drivers/net/wan/hdlc_fr.c u16 dlci; dlci 879 drivers/net/wan/hdlc_fr.c dlci = q922_to_dlci(skb->data); dlci 881 drivers/net/wan/hdlc_fr.c if ((dlci == LMI_CCITT_ANSI_DLCI && dlci 884 drivers/net/wan/hdlc_fr.c (dlci == LMI_CISCO_DLCI && dlci 892 drivers/net/wan/hdlc_fr.c pvc = find_pvc(hdlc, dlci); dlci 896 drivers/net/wan/hdlc_fr.c dlci); dlci 905 drivers/net/wan/hdlc_fr.c dlci, fh->fecn ? "N" : "FF"); dlci 913 drivers/net/wan/hdlc_fr.c dlci, fh->becn ? "N" : "FF"); dlci 1056 drivers/net/wan/hdlc_fr.c static int fr_add_pvc(struct net_device *frad, unsigned int dlci, int type) dlci 1063 drivers/net/wan/hdlc_fr.c if ((pvc = add_pvc(frad, dlci)) == NULL) { dlci 1089 drivers/net/wan/hdlc_fr.c *(__be16*)dev->dev_addr = htons(dlci); dlci 1090 drivers/net/wan/hdlc_fr.c dlci_to_q922(dev->broadcast, dlci); dlci 1116 drivers/net/wan/hdlc_fr.c static int fr_del_pvc(hdlc_device *hdlc, unsigned int dlci, int type) dlci 1121 drivers/net/wan/hdlc_fr.c if ((pvc = find_pvc(hdlc, dlci)) == NULL) dlci 1257 drivers/net/wan/hdlc_fr.c if (pvc.dlci <= 0 || pvc.dlci >= 1024) dlci 1268 drivers/net/wan/hdlc_fr.c return fr_add_pvc(dev, pvc.dlci, result); dlci 1270 drivers/net/wan/hdlc_fr.c return fr_del_pvc(hdlc, pvc.dlci, result); dlci 328 drivers/net/wan/sdla.c short dlci; dlci 338 drivers/net/wan/sdla.c static void sdla_errors(struct net_device *dev, int cmd, int dlci, int ret, int len, void *data) dlci 383 drivers/net/wan/sdla.c pstatus->dlci, state); dlci 426 drivers/net/wan/sdla.c static int sdla_cmd(struct net_device *dev, int cmd, short dlci, short flags, dlci 447 drivers/net/wan/sdla.c cmd_buf->dlci = dlci; dlci 496 drivers/net/wan/sdla.c sdla_errors(dev, cmd, dlci, ret, len, &status); dlci 523 drivers/net/wan/sdla.c flp->dlci[i] = abs(flp->dlci[i]); dlci 526 drivers/net/wan/sdla.c sdla_cmd(slave, SDLA_ACTIVATE_DLCI, 0, 0, &flp->dlci[i], sizeof(short), NULL, NULL); dlci 545 drivers/net/wan/sdla.c flp->dlci[i] = -abs(flp->dlci[i]); dlci 548 drivers/net/wan/sdla.c sdla_cmd(slave, SDLA_DEACTIVATE_DLCI, 0, 0, &flp->dlci[i], sizeof(short), NULL, NULL); dlci 567 drivers/net/wan/sdla.c if (abs(flp->dlci[i]) == *(short *)(master->dev_addr)) dlci 576 drivers/net/wan/sdla.c flp->dlci[i] = -*(short *)(master->dev_addr); dlci 604 drivers/net/wan/sdla.c flp->dlci[i] = 0; dlci 639 drivers/net/wan/sdla.c ret = sdla_cmd(slave, SDLA_READ_DLCI_CONFIGURATION, abs(flp->dlci[i]), 0, dlci 642 drivers/net/wan/sdla.c ret = sdla_cmd(slave, SDLA_SET_DLCI_CONFIGURATION, abs(flp->dlci[i]), 0, dlci 761 drivers/net/wan/sdla.c short dlci, len, len2, split; dlci 766 drivers/net/wan/sdla.c len = dlci = 0; dlci 785 drivers/net/wan/sdla.c dlci = cmd->dlci; dlci 799 drivers/net/wan/sdla.c dlci = pbuf->dlci; dlci 809 drivers/net/wan/sdla.c if (flp->dlci[i] == dlci) dlci 815 drivers/net/wan/sdla.c dlci); dlci 950 drivers/net/wan/sdla.c if (flp->dlci[i]) dlci 951 drivers/net/wan/sdla.c dlcis[len++] = abs(flp->dlci[i]); dlci 957 drivers/net/wan/sdla.c if (flp->dlci[i] > 0) dlci 959 drivers/net/wan/sdla.c sdla_cmd(dev, SDLA_DELETE_DLCI, 0, 0, &flp->dlci[i], sizeof(flp->dlci[i]), NULL, NULL); dlci 995 drivers/net/wan/sdla.c short dlci[CONFIG_DLCI_MAX]; dlci 1018 drivers/net/wan/sdla.c if (flp->dlci[i]) dlci 1019 drivers/net/wan/sdla.c data.dlci[len++] = abs(flp->dlci[i]); dlci 1074 drivers/net/wan/sdla.c sdla_cmd(dev, SDLA_ADD_DLCI, 0, 0, data.dlci, len - sizeof(struct frad_conf), NULL, NULL); dlci 1076 drivers/net/wan/sdla.c if (flp->dlci[i] > 0) dlci 1077 drivers/net/wan/sdla.c sdla_cmd(dev, SDLA_ACTIVATE_DLCI, 0, 0, &flp->dlci[i], 2*sizeof(flp->dlci[i]), NULL, NULL); dlci 1082 drivers/net/wan/sdla.c if (flp->dlci[i]) dlci 1086 drivers/net/wan/sdla.c sdla_cmd(dev, SDLA_SET_DLCI_CONFIGURATION, abs(flp->dlci[i]), 0, &dlp->config, sizeof(struct dlci_conf), NULL, NULL); dlci 1234 drivers/net/wan/sdla.c if (flp->dlci[i]) dlci 1235 drivers/net/wan/sdla.c data.dlci[len++] = flp->dlci[i]; dlci 85 drivers/tty/n_gsm.c struct gsm_dlci *dlci; dlci 146 drivers/tty/n_gsm.c void (*data)(struct gsm_dlci *dlci, const u8 *data, int len); dlci 147 drivers/tty/n_gsm.c void (*prev_data)(struct gsm_dlci *dlci, const u8 *data, int len); dlci 228 drivers/tty/n_gsm.c struct gsm_dlci *dlci[NUM_DLCI]; dlci 418 drivers/tty/n_gsm.c static u8 gsm_encode_modem(const struct gsm_dlci *dlci) dlci 422 drivers/tty/n_gsm.c if (dlci->throttled) dlci 424 drivers/tty/n_gsm.c if (dlci->modem_tx & TIOCM_DTR) dlci 426 drivers/tty/n_gsm.c if (dlci->modem_tx & TIOCM_RTS) dlci 428 drivers/tty/n_gsm.c if (dlci->modem_tx & TIOCM_RI) dlci 430 drivers/tty/n_gsm.c if (dlci->modem_tx & TIOCM_CD) dlci 719 drivers/tty/n_gsm.c static void __gsm_data_queue(struct gsm_dlci *dlci, struct gsm_msg *msg) dlci 721 drivers/tty/n_gsm.c struct gsm_mux *gsm = dlci->gsm; dlci 770 drivers/tty/n_gsm.c static void gsm_data_queue(struct gsm_dlci *dlci, struct gsm_msg *msg) dlci 773 drivers/tty/n_gsm.c spin_lock_irqsave(&dlci->gsm->tx_lock, flags); dlci 774 drivers/tty/n_gsm.c __gsm_data_queue(dlci, msg); dlci 775 drivers/tty/n_gsm.c spin_unlock_irqrestore(&dlci->gsm->tx_lock, flags); dlci 790 drivers/tty/n_gsm.c static int gsm_dlci_data_output(struct gsm_mux *gsm, struct gsm_dlci *dlci) dlci 795 drivers/tty/n_gsm.c int h = dlci->adaption - 1; dlci 799 drivers/tty/n_gsm.c len = kfifo_len(dlci->fifo); dlci 809 drivers/tty/n_gsm.c msg = gsm_data_alloc(gsm, dlci->addr, size, gsm->ftype); dlci 815 drivers/tty/n_gsm.c switch (dlci->adaption) { dlci 820 drivers/tty/n_gsm.c *dp++ = gsm_encode_modem(dlci); dlci 823 drivers/tty/n_gsm.c WARN_ON(kfifo_out_locked(dlci->fifo, dp , len, &dlci->lock) != len); dlci 824 drivers/tty/n_gsm.c __gsm_data_queue(dlci, msg); dlci 844 drivers/tty/n_gsm.c struct gsm_dlci *dlci) dlci 853 drivers/tty/n_gsm.c if (dlci->adaption == 4) dlci 857 drivers/tty/n_gsm.c if (dlci->skb == NULL) { dlci 858 drivers/tty/n_gsm.c dlci->skb = skb_dequeue_tail(&dlci->skb_list); dlci 859 drivers/tty/n_gsm.c if (dlci->skb == NULL) dlci 863 drivers/tty/n_gsm.c len = dlci->skb->len + overhead; dlci 867 drivers/tty/n_gsm.c if (dlci->adaption == 3) { dlci 869 drivers/tty/n_gsm.c dev_kfree_skb_any(dlci->skb); dlci 870 drivers/tty/n_gsm.c dlci->skb = NULL; dlci 878 drivers/tty/n_gsm.c msg = gsm_data_alloc(gsm, dlci->addr, size, gsm->ftype); dlci 883 drivers/tty/n_gsm.c skb_queue_tail(&dlci->skb_list, dlci->skb); dlci 884 drivers/tty/n_gsm.c dlci->skb = NULL; dlci 889 drivers/tty/n_gsm.c if (dlci->adaption == 4) { /* Interruptible framed (Packetised Data) */ dlci 894 drivers/tty/n_gsm.c memcpy(dp, dlci->skb->data, len); dlci 895 drivers/tty/n_gsm.c skb_pull(dlci->skb, len); dlci 896 drivers/tty/n_gsm.c __gsm_data_queue(dlci, msg); dlci 898 drivers/tty/n_gsm.c dev_kfree_skb_any(dlci->skb); dlci 899 drivers/tty/n_gsm.c dlci->skb = NULL; dlci 924 drivers/tty/n_gsm.c struct gsm_dlci *dlci; dlci 928 drivers/tty/n_gsm.c dlci = gsm->dlci[i]; dlci 929 drivers/tty/n_gsm.c if (dlci == NULL || dlci->constipated) { dlci 933 drivers/tty/n_gsm.c if (dlci->adaption < 3 && !dlci->net) dlci 934 drivers/tty/n_gsm.c len = gsm_dlci_data_output(gsm, dlci); dlci 936 drivers/tty/n_gsm.c len = gsm_dlci_data_output_framed(gsm, dlci); dlci 954 drivers/tty/n_gsm.c static void gsm_dlci_data_kick(struct gsm_dlci *dlci) dlci 959 drivers/tty/n_gsm.c if (dlci->constipated) dlci 962 drivers/tty/n_gsm.c spin_lock_irqsave(&dlci->gsm->tx_lock, flags); dlci 964 drivers/tty/n_gsm.c sweep = (dlci->gsm->tx_bytes < TX_THRESH_LO); dlci 965 drivers/tty/n_gsm.c if (dlci->gsm->tx_bytes == 0) { dlci 966 drivers/tty/n_gsm.c if (dlci->net) dlci 967 drivers/tty/n_gsm.c gsm_dlci_data_output_framed(dlci->gsm, dlci); dlci 969 drivers/tty/n_gsm.c gsm_dlci_data_output(dlci->gsm, dlci); dlci 972 drivers/tty/n_gsm.c gsm_dlci_data_sweep(dlci->gsm); dlci 973 drivers/tty/n_gsm.c spin_unlock_irqrestore(&dlci->gsm->tx_lock, flags); dlci 1001 drivers/tty/n_gsm.c gsm_data_queue(gsm->dlci[0], msg); dlci 1014 drivers/tty/n_gsm.c static void gsm_process_modem(struct tty_struct *tty, struct gsm_dlci *dlci, dlci 1035 drivers/tty/n_gsm.c if (fc && !dlci->constipated) { dlci 1037 drivers/tty/n_gsm.c dlci->constipated = 1; dlci 1038 drivers/tty/n_gsm.c } else if (!fc && dlci->constipated) { dlci 1039 drivers/tty/n_gsm.c dlci->constipated = 0; dlci 1040 drivers/tty/n_gsm.c gsm_dlci_data_kick(dlci); dlci 1055 drivers/tty/n_gsm.c if ((mlines & TIOCM_CD) == 0 && (dlci->modem_rx & TIOCM_CD)) dlci 1060 drivers/tty/n_gsm.c tty_insert_flip_char(&dlci->port, 0, TTY_BREAK); dlci 1061 drivers/tty/n_gsm.c dlci->modem_rx = mlines; dlci 1081 drivers/tty/n_gsm.c struct gsm_dlci *dlci; dlci 1098 drivers/tty/n_gsm.c if (addr == 0 || addr >= NUM_DLCI || gsm->dlci[addr] == NULL) dlci 1100 drivers/tty/n_gsm.c dlci = gsm->dlci[addr]; dlci 1117 drivers/tty/n_gsm.c tty = tty_port_tty_get(&dlci->port); dlci 1118 drivers/tty/n_gsm.c gsm_process_modem(tty, dlci, modem, clen); dlci 1156 drivers/tty/n_gsm.c if (addr == 0 || addr >= NUM_DLCI || gsm->dlci[addr] == NULL) dlci 1163 drivers/tty/n_gsm.c port = &gsm->dlci[addr]->port; dlci 1177 drivers/tty/n_gsm.c static void gsm_dlci_begin_close(struct gsm_dlci *dlci); dlci 1199 drivers/tty/n_gsm.c struct gsm_dlci *dlci = gsm->dlci[0]; dlci 1201 drivers/tty/n_gsm.c if (dlci) { dlci 1202 drivers/tty/n_gsm.c dlci->dead = 1; dlci 1204 drivers/tty/n_gsm.c gsm_dlci_begin_close(dlci); dlci 1302 drivers/tty/n_gsm.c gsm_data_queue(gsm->dlci[0], msg); dlci 1372 drivers/tty/n_gsm.c if (gsm->dlci[0]->mode == DLCI_MODE_ADM) dlci 1419 drivers/tty/n_gsm.c static void gsm_dlci_close(struct gsm_dlci *dlci) dlci 1421 drivers/tty/n_gsm.c del_timer(&dlci->t1); dlci 1423 drivers/tty/n_gsm.c pr_debug("DLCI %d goes closed.\n", dlci->addr); dlci 1424 drivers/tty/n_gsm.c dlci->state = DLCI_CLOSED; dlci 1425 drivers/tty/n_gsm.c if (dlci->addr != 0) { dlci 1426 drivers/tty/n_gsm.c tty_port_tty_hangup(&dlci->port, false); dlci 1427 drivers/tty/n_gsm.c kfifo_reset(dlci->fifo); dlci 1429 drivers/tty/n_gsm.c dlci->gsm->dead = 1; dlci 1430 drivers/tty/n_gsm.c wake_up(&dlci->gsm->event); dlci 1442 drivers/tty/n_gsm.c static void gsm_dlci_open(struct gsm_dlci *dlci) dlci 1446 drivers/tty/n_gsm.c del_timer(&dlci->t1); dlci 1448 drivers/tty/n_gsm.c dlci->state = DLCI_OPEN; dlci 1450 drivers/tty/n_gsm.c pr_debug("DLCI %d goes open.\n", dlci->addr); dlci 1451 drivers/tty/n_gsm.c wake_up(&dlci->gsm->event); dlci 1471 drivers/tty/n_gsm.c struct gsm_dlci *dlci = from_timer(dlci, t, t1); dlci 1472 drivers/tty/n_gsm.c struct gsm_mux *gsm = dlci->gsm; dlci 1474 drivers/tty/n_gsm.c switch (dlci->state) { dlci 1476 drivers/tty/n_gsm.c dlci->retries--; dlci 1477 drivers/tty/n_gsm.c if (dlci->retries) { dlci 1478 drivers/tty/n_gsm.c gsm_command(dlci->gsm, dlci->addr, SABM|PF); dlci 1479 drivers/tty/n_gsm.c mod_timer(&dlci->t1, jiffies + gsm->t1 * HZ / 100); dlci 1480 drivers/tty/n_gsm.c } else if (!dlci->addr && gsm->control == (DM | PF)) { dlci 1483 drivers/tty/n_gsm.c dlci->addr); dlci 1484 drivers/tty/n_gsm.c dlci->mode = DLCI_MODE_ADM; dlci 1485 drivers/tty/n_gsm.c gsm_dlci_open(dlci); dlci 1487 drivers/tty/n_gsm.c gsm_dlci_close(dlci); dlci 1492 drivers/tty/n_gsm.c dlci->retries--; dlci 1493 drivers/tty/n_gsm.c if (dlci->retries) { dlci 1494 drivers/tty/n_gsm.c gsm_command(dlci->gsm, dlci->addr, DISC|PF); dlci 1495 drivers/tty/n_gsm.c mod_timer(&dlci->t1, jiffies + gsm->t1 * HZ / 100); dlci 1497 drivers/tty/n_gsm.c gsm_dlci_close(dlci); dlci 1512 drivers/tty/n_gsm.c static void gsm_dlci_begin_open(struct gsm_dlci *dlci) dlci 1514 drivers/tty/n_gsm.c struct gsm_mux *gsm = dlci->gsm; dlci 1515 drivers/tty/n_gsm.c if (dlci->state == DLCI_OPEN || dlci->state == DLCI_OPENING) dlci 1517 drivers/tty/n_gsm.c dlci->retries = gsm->n2; dlci 1518 drivers/tty/n_gsm.c dlci->state = DLCI_OPENING; dlci 1519 drivers/tty/n_gsm.c gsm_command(dlci->gsm, dlci->addr, SABM|PF); dlci 1520 drivers/tty/n_gsm.c mod_timer(&dlci->t1, jiffies + gsm->t1 * HZ / 100); dlci 1534 drivers/tty/n_gsm.c static void gsm_dlci_begin_close(struct gsm_dlci *dlci) dlci 1536 drivers/tty/n_gsm.c struct gsm_mux *gsm = dlci->gsm; dlci 1537 drivers/tty/n_gsm.c if (dlci->state == DLCI_CLOSED || dlci->state == DLCI_CLOSING) dlci 1539 drivers/tty/n_gsm.c dlci->retries = gsm->n2; dlci 1540 drivers/tty/n_gsm.c dlci->state = DLCI_CLOSING; dlci 1541 drivers/tty/n_gsm.c gsm_command(dlci->gsm, dlci->addr, DISC|PF); dlci 1542 drivers/tty/n_gsm.c mod_timer(&dlci->t1, jiffies + gsm->t1 * HZ / 100); dlci 1556 drivers/tty/n_gsm.c static void gsm_dlci_data(struct gsm_dlci *dlci, const u8 *data, int clen) dlci 1559 drivers/tty/n_gsm.c struct tty_port *port = &dlci->port; dlci 1566 drivers/tty/n_gsm.c switch (dlci->adaption) { dlci 1580 drivers/tty/n_gsm.c gsm_process_modem(tty, dlci, modem, clen); dlci 1603 drivers/tty/n_gsm.c static void gsm_dlci_command(struct gsm_dlci *dlci, const u8 *data, int len) dlci 1617 drivers/tty/n_gsm.c gsm_control_message(dlci->gsm, command, dlci 1620 drivers/tty/n_gsm.c gsm_control_response(dlci->gsm, command, dlci 1643 drivers/tty/n_gsm.c struct gsm_dlci *dlci = kzalloc(sizeof(struct gsm_dlci), GFP_ATOMIC); dlci 1644 drivers/tty/n_gsm.c if (dlci == NULL) dlci 1646 drivers/tty/n_gsm.c spin_lock_init(&dlci->lock); dlci 1647 drivers/tty/n_gsm.c mutex_init(&dlci->mutex); dlci 1648 drivers/tty/n_gsm.c dlci->fifo = &dlci->_fifo; dlci 1649 drivers/tty/n_gsm.c if (kfifo_alloc(&dlci->_fifo, 4096, GFP_KERNEL) < 0) { dlci 1650 drivers/tty/n_gsm.c kfree(dlci); dlci 1654 drivers/tty/n_gsm.c skb_queue_head_init(&dlci->skb_list); dlci 1655 drivers/tty/n_gsm.c timer_setup(&dlci->t1, gsm_dlci_t1, 0); dlci 1656 drivers/tty/n_gsm.c tty_port_init(&dlci->port); dlci 1657 drivers/tty/n_gsm.c dlci->port.ops = &gsm_port_ops; dlci 1658 drivers/tty/n_gsm.c dlci->gsm = gsm; dlci 1659 drivers/tty/n_gsm.c dlci->addr = addr; dlci 1660 drivers/tty/n_gsm.c dlci->adaption = gsm->adaption; dlci 1661 drivers/tty/n_gsm.c dlci->state = DLCI_CLOSED; dlci 1663 drivers/tty/n_gsm.c dlci->data = gsm_dlci_data; dlci 1665 drivers/tty/n_gsm.c dlci->data = gsm_dlci_command; dlci 1666 drivers/tty/n_gsm.c gsm->dlci[addr] = dlci; dlci 1667 drivers/tty/n_gsm.c return dlci; dlci 1680 drivers/tty/n_gsm.c struct gsm_dlci *dlci = container_of(port, struct gsm_dlci, port); dlci 1682 drivers/tty/n_gsm.c del_timer_sync(&dlci->t1); dlci 1683 drivers/tty/n_gsm.c dlci->gsm->dlci[dlci->addr] = NULL; dlci 1684 drivers/tty/n_gsm.c kfifo_free(dlci->fifo); dlci 1685 drivers/tty/n_gsm.c while ((dlci->skb = skb_dequeue(&dlci->skb_list))) dlci 1686 drivers/tty/n_gsm.c dev_kfree_skb(dlci->skb); dlci 1687 drivers/tty/n_gsm.c kfree(dlci); dlci 1690 drivers/tty/n_gsm.c static inline void dlci_get(struct gsm_dlci *dlci) dlci 1692 drivers/tty/n_gsm.c tty_port_get(&dlci->port); dlci 1695 drivers/tty/n_gsm.c static inline void dlci_put(struct gsm_dlci *dlci) dlci 1697 drivers/tty/n_gsm.c tty_port_put(&dlci->port); dlci 1700 drivers/tty/n_gsm.c static void gsm_destroy_network(struct gsm_dlci *dlci); dlci 1711 drivers/tty/n_gsm.c static void gsm_dlci_release(struct gsm_dlci *dlci) dlci 1713 drivers/tty/n_gsm.c struct tty_struct *tty = tty_port_tty_get(&dlci->port); dlci 1715 drivers/tty/n_gsm.c mutex_lock(&dlci->mutex); dlci 1716 drivers/tty/n_gsm.c gsm_destroy_network(dlci); dlci 1717 drivers/tty/n_gsm.c mutex_unlock(&dlci->mutex); dlci 1721 drivers/tty/n_gsm.c tty_port_tty_set(&dlci->port, NULL); dlci 1724 drivers/tty/n_gsm.c dlci->state = DLCI_CLOSED; dlci 1725 drivers/tty/n_gsm.c dlci_put(dlci); dlci 1744 drivers/tty/n_gsm.c struct gsm_dlci *dlci; dlci 1774 drivers/tty/n_gsm.c dlci = gsm->dlci[address]; dlci 1780 drivers/tty/n_gsm.c if (dlci == NULL) dlci 1781 drivers/tty/n_gsm.c dlci = gsm_dlci_alloc(gsm, address); dlci 1782 drivers/tty/n_gsm.c if (dlci == NULL) dlci 1784 drivers/tty/n_gsm.c if (dlci->dead) dlci 1788 drivers/tty/n_gsm.c gsm_dlci_open(dlci); dlci 1794 drivers/tty/n_gsm.c if (dlci == NULL || dlci->state == DLCI_CLOSED) { dlci 1800 drivers/tty/n_gsm.c gsm_dlci_close(dlci); dlci 1804 drivers/tty/n_gsm.c if (cr == 0 || dlci == NULL) dlci 1806 drivers/tty/n_gsm.c switch (dlci->state) { dlci 1808 drivers/tty/n_gsm.c gsm_dlci_close(dlci); dlci 1811 drivers/tty/n_gsm.c gsm_dlci_open(dlci); dlci 1819 drivers/tty/n_gsm.c if (dlci == NULL) dlci 1821 drivers/tty/n_gsm.c gsm_dlci_close(dlci); dlci 1831 drivers/tty/n_gsm.c if (dlci == NULL || dlci->state != DLCI_OPEN) { dlci 1835 drivers/tty/n_gsm.c dlci->data(dlci, gsm->buf, gsm->len); dlci 2024 drivers/tty/n_gsm.c struct gsm_dlci *dlci = gsm->dlci[0]; dlci 2027 drivers/tty/n_gsm.c if (!dlci) dlci 2039 drivers/tty/n_gsm.c gsm_dlci_begin_close(dlci); dlci 2041 drivers/tty/n_gsm.c dlci->state == DLCI_CLOSED); dlci 2061 drivers/tty/n_gsm.c struct gsm_dlci *dlci = gsm->dlci[0]; dlci 2080 drivers/tty/n_gsm.c if (dlci) dlci 2081 drivers/tty/n_gsm.c dlci->dead = 1; dlci 2086 drivers/tty/n_gsm.c if (gsm->dlci[i]) dlci 2087 drivers/tty/n_gsm.c gsm_dlci_release(gsm->dlci[i]); dlci 2106 drivers/tty/n_gsm.c struct gsm_dlci *dlci; dlci 2132 drivers/tty/n_gsm.c dlci = gsm_dlci_alloc(gsm, 0); dlci 2133 drivers/tty/n_gsm.c if (dlci == NULL) dlci 2325 drivers/tty/n_gsm.c gsm_dlci_begin_open(gsm->dlci[0]); dlci 2654 drivers/tty/n_gsm.c static void dlci_net_free(struct gsm_dlci *dlci) dlci 2656 drivers/tty/n_gsm.c if (!dlci->net) { dlci 2660 drivers/tty/n_gsm.c dlci->adaption = dlci->prev_adaption; dlci 2661 drivers/tty/n_gsm.c dlci->data = dlci->prev_data; dlci 2662 drivers/tty/n_gsm.c free_netdev(dlci->net); dlci 2663 drivers/tty/n_gsm.c dlci->net = NULL; dlci 2668 drivers/tty/n_gsm.c struct gsm_dlci *dlci; dlci 2671 drivers/tty/n_gsm.c dlci = mux_net->dlci; dlci 2673 drivers/tty/n_gsm.c if (dlci->net) { dlci 2674 drivers/tty/n_gsm.c unregister_netdev(dlci->net); dlci 2675 drivers/tty/n_gsm.c dlci_net_free(dlci); dlci 2693 drivers/tty/n_gsm.c struct gsm_dlci *dlci = mux_net->dlci; dlci 2696 drivers/tty/n_gsm.c skb_queue_head(&dlci->skb_list, skb); dlci 2699 drivers/tty/n_gsm.c gsm_dlci_data_kick(dlci); dlci 2716 drivers/tty/n_gsm.c static void gsm_mux_rx_netchar(struct gsm_dlci *dlci, dlci 2719 drivers/tty/n_gsm.c struct net_device *net = dlci->net; dlci 2768 drivers/tty/n_gsm.c static void gsm_destroy_network(struct gsm_dlci *dlci) dlci 2773 drivers/tty/n_gsm.c if (!dlci->net) dlci 2775 drivers/tty/n_gsm.c mux_net = netdev_priv(dlci->net); dlci 2781 drivers/tty/n_gsm.c static int gsm_create_network(struct gsm_dlci *dlci, struct gsm_netconfig *nc) dlci 2792 drivers/tty/n_gsm.c if (dlci->adaption > 2) dlci 2812 drivers/tty/n_gsm.c net->mtu = dlci->gsm->mtu; dlci 2814 drivers/tty/n_gsm.c net->max_mtu = dlci->gsm->mtu; dlci 2816 drivers/tty/n_gsm.c mux_net->dlci = dlci; dlci 2821 drivers/tty/n_gsm.c dlci->prev_adaption = dlci->adaption; dlci 2822 drivers/tty/n_gsm.c dlci->prev_data = dlci->data; dlci 2823 drivers/tty/n_gsm.c dlci->adaption = nc->adaption; dlci 2824 drivers/tty/n_gsm.c dlci->data = gsm_mux_rx_netchar; dlci 2825 drivers/tty/n_gsm.c dlci->net = net; dlci 2831 drivers/tty/n_gsm.c dlci_net_free(dlci); dlci 2859 drivers/tty/n_gsm.c static int gsmtty_modem_update(struct gsm_dlci *dlci, u8 brk) dlci 2869 drivers/tty/n_gsm.c modembits[1] = dlci->addr << 2 | 3; /* DLCI, EA, 1 */ dlci 2870 drivers/tty/n_gsm.c modembits[2] = gsm_encode_modem(dlci) << 1 | EA; dlci 2873 drivers/tty/n_gsm.c ctrl = gsm_control_send(dlci->gsm, CMD_MSC, modembits, len + 1); dlci 2876 drivers/tty/n_gsm.c return gsm_control_wait(dlci->gsm, ctrl); dlci 2881 drivers/tty/n_gsm.c struct gsm_dlci *dlci = container_of(port, struct gsm_dlci, port); dlci 2882 drivers/tty/n_gsm.c struct gsm_mux *gsm = dlci->gsm; dlci 2885 drivers/tty/n_gsm.c if (dlci->state != DLCI_OPEN) dlci 2894 drivers/tty/n_gsm.c if (gsm->encoding == 0 && gsm->dlci[0]->mode == DLCI_MODE_ADM && dlci 2895 drivers/tty/n_gsm.c !dlci->modem_rx) dlci 2898 drivers/tty/n_gsm.c return dlci->modem_rx & TIOCM_CD; dlci 2903 drivers/tty/n_gsm.c struct gsm_dlci *dlci = container_of(port, struct gsm_dlci, port); dlci 2904 drivers/tty/n_gsm.c unsigned int modem_tx = dlci->modem_tx; dlci 2909 drivers/tty/n_gsm.c if (modem_tx != dlci->modem_tx) { dlci 2910 drivers/tty/n_gsm.c dlci->modem_tx = modem_tx; dlci 2911 drivers/tty/n_gsm.c gsmtty_modem_update(dlci, 0); dlci 2924 drivers/tty/n_gsm.c struct gsm_dlci *dlci; dlci 2947 drivers/tty/n_gsm.c if (gsm->dlci[0] && gsm->dlci[0]->state != DLCI_OPEN) { dlci 2951 drivers/tty/n_gsm.c dlci = gsm->dlci[line]; dlci 2952 drivers/tty/n_gsm.c if (dlci == NULL) { dlci 2954 drivers/tty/n_gsm.c dlci = gsm_dlci_alloc(gsm, line); dlci 2956 drivers/tty/n_gsm.c if (dlci == NULL) { dlci 2960 drivers/tty/n_gsm.c ret = tty_port_install(&dlci->port, driver, tty); dlci 2963 drivers/tty/n_gsm.c dlci_put(dlci); dlci 2968 drivers/tty/n_gsm.c dlci_get(dlci); dlci 2969 drivers/tty/n_gsm.c dlci_get(gsm->dlci[0]); dlci 2971 drivers/tty/n_gsm.c tty->driver_data = dlci; dlci 2979 drivers/tty/n_gsm.c struct gsm_dlci *dlci = tty->driver_data; dlci 2980 drivers/tty/n_gsm.c struct tty_port *port = &dlci->port; dlci 2985 drivers/tty/n_gsm.c dlci->modem_rx = 0; dlci 2990 drivers/tty/n_gsm.c gsm_dlci_begin_open(dlci); dlci 2997 drivers/tty/n_gsm.c struct gsm_dlci *dlci = tty->driver_data; dlci 2999 drivers/tty/n_gsm.c if (dlci == NULL) dlci 3001 drivers/tty/n_gsm.c if (dlci->state == DLCI_CLOSED) dlci 3003 drivers/tty/n_gsm.c mutex_lock(&dlci->mutex); dlci 3004 drivers/tty/n_gsm.c gsm_destroy_network(dlci); dlci 3005 drivers/tty/n_gsm.c mutex_unlock(&dlci->mutex); dlci 3006 drivers/tty/n_gsm.c if (tty_port_close_start(&dlci->port, tty, filp) == 0) dlci 3008 drivers/tty/n_gsm.c gsm_dlci_begin_close(dlci); dlci 3009 drivers/tty/n_gsm.c if (tty_port_initialized(&dlci->port) && C_HUPCL(tty)) dlci 3010 drivers/tty/n_gsm.c tty_port_lower_dtr_rts(&dlci->port); dlci 3011 drivers/tty/n_gsm.c tty_port_close_end(&dlci->port, tty); dlci 3012 drivers/tty/n_gsm.c tty_port_tty_set(&dlci->port, NULL); dlci 3018 drivers/tty/n_gsm.c struct gsm_dlci *dlci = tty->driver_data; dlci 3019 drivers/tty/n_gsm.c if (dlci->state == DLCI_CLOSED) dlci 3021 drivers/tty/n_gsm.c tty_port_hangup(&dlci->port); dlci 3022 drivers/tty/n_gsm.c gsm_dlci_begin_close(dlci); dlci 3029 drivers/tty/n_gsm.c struct gsm_dlci *dlci = tty->driver_data; dlci 3030 drivers/tty/n_gsm.c if (dlci->state == DLCI_CLOSED) dlci 3033 drivers/tty/n_gsm.c sent = kfifo_in_locked(dlci->fifo, buf, len, &dlci->lock); dlci 3035 drivers/tty/n_gsm.c gsm_dlci_data_kick(dlci); dlci 3041 drivers/tty/n_gsm.c struct gsm_dlci *dlci = tty->driver_data; dlci 3042 drivers/tty/n_gsm.c if (dlci->state == DLCI_CLOSED) dlci 3044 drivers/tty/n_gsm.c return TX_SIZE - kfifo_len(dlci->fifo); dlci 3049 drivers/tty/n_gsm.c struct gsm_dlci *dlci = tty->driver_data; dlci 3050 drivers/tty/n_gsm.c if (dlci->state == DLCI_CLOSED) dlci 3052 drivers/tty/n_gsm.c return kfifo_len(dlci->fifo); dlci 3057 drivers/tty/n_gsm.c struct gsm_dlci *dlci = tty->driver_data; dlci 3058 drivers/tty/n_gsm.c if (dlci->state == DLCI_CLOSED) dlci 3064 drivers/tty/n_gsm.c kfifo_reset(dlci->fifo); dlci 3077 drivers/tty/n_gsm.c struct gsm_dlci *dlci = tty->driver_data; dlci 3078 drivers/tty/n_gsm.c if (dlci->state == DLCI_CLOSED) dlci 3080 drivers/tty/n_gsm.c return dlci->modem_rx; dlci 3086 drivers/tty/n_gsm.c struct gsm_dlci *dlci = tty->driver_data; dlci 3087 drivers/tty/n_gsm.c unsigned int modem_tx = dlci->modem_tx; dlci 3089 drivers/tty/n_gsm.c if (dlci->state == DLCI_CLOSED) dlci 3094 drivers/tty/n_gsm.c if (modem_tx != dlci->modem_tx) { dlci 3095 drivers/tty/n_gsm.c dlci->modem_tx = modem_tx; dlci 3096 drivers/tty/n_gsm.c return gsmtty_modem_update(dlci, 0); dlci 3105 drivers/tty/n_gsm.c struct gsm_dlci *dlci = tty->driver_data; dlci 3109 drivers/tty/n_gsm.c if (dlci->state == DLCI_CLOSED) dlci 3117 drivers/tty/n_gsm.c mutex_lock(&dlci->mutex); dlci 3118 drivers/tty/n_gsm.c index = gsm_create_network(dlci, &nc); dlci 3119 drivers/tty/n_gsm.c mutex_unlock(&dlci->mutex); dlci 3126 drivers/tty/n_gsm.c mutex_lock(&dlci->mutex); dlci 3127 drivers/tty/n_gsm.c gsm_destroy_network(dlci); dlci 3128 drivers/tty/n_gsm.c mutex_unlock(&dlci->mutex); dlci 3137 drivers/tty/n_gsm.c struct gsm_dlci *dlci = tty->driver_data; dlci 3138 drivers/tty/n_gsm.c if (dlci->state == DLCI_CLOSED) dlci 3150 drivers/tty/n_gsm.c struct gsm_dlci *dlci = tty->driver_data; dlci 3151 drivers/tty/n_gsm.c if (dlci->state == DLCI_CLOSED) dlci 3154 drivers/tty/n_gsm.c dlci->modem_tx &= ~TIOCM_DTR; dlci 3155 drivers/tty/n_gsm.c dlci->throttled = 1; dlci 3157 drivers/tty/n_gsm.c gsmtty_modem_update(dlci, 0); dlci 3162 drivers/tty/n_gsm.c struct gsm_dlci *dlci = tty->driver_data; dlci 3163 drivers/tty/n_gsm.c if (dlci->state == DLCI_CLOSED) dlci 3166 drivers/tty/n_gsm.c dlci->modem_tx |= TIOCM_DTR; dlci 3167 drivers/tty/n_gsm.c dlci->throttled = 0; dlci 3169 drivers/tty/n_gsm.c gsmtty_modem_update(dlci, 0); dlci 3174 drivers/tty/n_gsm.c struct gsm_dlci *dlci = tty->driver_data; dlci 3176 drivers/tty/n_gsm.c if (dlci->state == DLCI_CLOSED) dlci 3187 drivers/tty/n_gsm.c return gsmtty_modem_update(dlci, encode); dlci 3192 drivers/tty/n_gsm.c struct gsm_dlci *dlci = tty->driver_data; dlci 3193 drivers/tty/n_gsm.c struct gsm_mux *gsm = dlci->gsm; dlci 3195 drivers/tty/n_gsm.c dlci_put(dlci); dlci 3196 drivers/tty/n_gsm.c dlci_put(gsm->dlci[0]); dlci 67 include/linux/if_frad.h short dlci[CONFIG_DLCI_MAX]; dlci 203 include/linux/sdla.h short dlci; dlci 233 include/linux/sdla.h short dlci; dlci 124 include/net/bluetooth/rfcomm.h u8 dlci; dlci 134 include/net/bluetooth/rfcomm.h u8 dlci; dlci 144 include/net/bluetooth/rfcomm.h u8 dlci; dlci 149 include/net/bluetooth/rfcomm.h u8 dlci; dlci 180 include/net/bluetooth/rfcomm.h u8 dlci; dlci 229 include/net/bluetooth/rfcomm.h int rfcomm_send_rpn(struct rfcomm_session *s, int cr, u8 dlci, dlci 69 include/uapi/linux/hdlc/ioctl.h unsigned int dlci; dlci 73 include/uapi/linux/hdlc/ioctl.h unsigned int dlci; dlci 35 include/uapi/linux/if_frad.h short dlci; dlci 55 net/bluetooth/rfcomm/core.c static int rfcomm_send_sabm(struct rfcomm_session *s, u8 dlci); dlci 56 net/bluetooth/rfcomm/core.c static int rfcomm_send_disc(struct rfcomm_session *s, u8 dlci); dlci 60 net/bluetooth/rfcomm/core.c static int rfcomm_send_msc(struct rfcomm_session *s, int cr, u8 dlci, u8 v24_sig); dlci 86 net/bluetooth/rfcomm/core.c #define __addr(cr, dlci) (((dlci & 0x3f) << 2) | (cr << 1) | 0x01) dlci 89 net/bluetooth/rfcomm/core.c #define __srv_channel(dlci) (dlci >> 1) dlci 90 net/bluetooth/rfcomm/core.c #define __dir(dlci) (dlci & 0x01) dlci 355 net/bluetooth/rfcomm/core.c static struct rfcomm_dlc *rfcomm_dlc_get(struct rfcomm_session *s, u8 dlci) dlci 360 net/bluetooth/rfcomm/core.c if (d->dlci == dlci) dlci 375 net/bluetooth/rfcomm/core.c u8 dlci; dlci 393 net/bluetooth/rfcomm/core.c dlci = __dlci(__session_dir(s), channel); dlci 396 net/bluetooth/rfcomm/core.c if (rfcomm_dlc_get(s, dlci)) dlci 401 net/bluetooth/rfcomm/core.c d->dlci = dlci; dlci 402 net/bluetooth/rfcomm/core.c d->addr = __addr(s->initiator, dlci); dlci 443 net/bluetooth/rfcomm/core.c rfcomm_send_disc(s, d->dlci); dlci 458 net/bluetooth/rfcomm/core.c d, d->state, d->dlci, err, s); dlci 509 net/bluetooth/rfcomm/core.c BT_DBG("dlc %p state %ld dlci %d err %d", d, d->state, d->dlci, err); dlci 541 net/bluetooth/rfcomm/core.c u8 dlci; dlci 549 net/bluetooth/rfcomm/core.c dlci = __dlci(__session_dir(s), channel); dlci 550 net/bluetooth/rfcomm/core.c dlc = rfcomm_dlc_get(s, dlci); dlci 814 net/bluetooth/rfcomm/core.c static int rfcomm_send_sabm(struct rfcomm_session *s, u8 dlci) dlci 818 net/bluetooth/rfcomm/core.c BT_DBG("%p dlci %d", s, dlci); dlci 820 net/bluetooth/rfcomm/core.c cmd.addr = __addr(s->initiator, dlci); dlci 828 net/bluetooth/rfcomm/core.c static int rfcomm_send_ua(struct rfcomm_session *s, u8 dlci) dlci 832 net/bluetooth/rfcomm/core.c BT_DBG("%p dlci %d", s, dlci); dlci 834 net/bluetooth/rfcomm/core.c cmd.addr = __addr(!s->initiator, dlci); dlci 842 net/bluetooth/rfcomm/core.c static int rfcomm_send_disc(struct rfcomm_session *s, u8 dlci) dlci 846 net/bluetooth/rfcomm/core.c BT_DBG("%p dlci %d", s, dlci); dlci 848 net/bluetooth/rfcomm/core.c cmd.addr = __addr(s->initiator, dlci); dlci 861 net/bluetooth/rfcomm/core.c BT_DBG("dlc %p dlci %d", d, d->dlci); dlci 878 net/bluetooth/rfcomm/core.c static int rfcomm_send_dm(struct rfcomm_session *s, u8 dlci) dlci 882 net/bluetooth/rfcomm/core.c BT_DBG("%p dlci %d", s, dlci); dlci 884 net/bluetooth/rfcomm/core.c cmd.addr = __addr(!s->initiator, dlci); dlci 924 net/bluetooth/rfcomm/core.c BT_DBG("%p cr %d dlci %d mtu %d", s, cr, d->dlci, d->mtu); dlci 936 net/bluetooth/rfcomm/core.c pn->dlci = d->dlci; dlci 959 net/bluetooth/rfcomm/core.c int rfcomm_send_rpn(struct rfcomm_session *s, int cr, u8 dlci, dlci 971 net/bluetooth/rfcomm/core.c s, cr, dlci, bit_rate, data_bits, stop_bits, parity, dlci 984 net/bluetooth/rfcomm/core.c rpn->dlci = __addr(1, dlci); dlci 997 net/bluetooth/rfcomm/core.c static int rfcomm_send_rls(struct rfcomm_session *s, int cr, u8 dlci, u8 status) dlci 1016 net/bluetooth/rfcomm/core.c rls->dlci = __addr(1, dlci); dlci 1024 net/bluetooth/rfcomm/core.c static int rfcomm_send_msc(struct rfcomm_session *s, int cr, u8 dlci, u8 v24_sig) dlci 1043 net/bluetooth/rfcomm/core.c msc->dlci = __addr(1, dlci); dlci 1167 net/bluetooth/rfcomm/core.c static struct rfcomm_session *rfcomm_recv_ua(struct rfcomm_session *s, u8 dlci) dlci 1169 net/bluetooth/rfcomm/core.c BT_DBG("session %p state %ld dlci %d", s, s->state, dlci); dlci 1171 net/bluetooth/rfcomm/core.c if (dlci) { dlci 1173 net/bluetooth/rfcomm/core.c struct rfcomm_dlc *d = rfcomm_dlc_get(s, dlci); dlci 1175 net/bluetooth/rfcomm/core.c rfcomm_send_dm(s, dlci); dlci 1188 net/bluetooth/rfcomm/core.c rfcomm_send_msc(s, 1, dlci, d->v24_sig); dlci 1219 net/bluetooth/rfcomm/core.c static struct rfcomm_session *rfcomm_recv_dm(struct rfcomm_session *s, u8 dlci) dlci 1223 net/bluetooth/rfcomm/core.c BT_DBG("session %p state %ld dlci %d", s, s->state, dlci); dlci 1225 net/bluetooth/rfcomm/core.c if (dlci) { dlci 1227 net/bluetooth/rfcomm/core.c struct rfcomm_dlc *d = rfcomm_dlc_get(s, dlci); dlci 1249 net/bluetooth/rfcomm/core.c u8 dlci) dlci 1253 net/bluetooth/rfcomm/core.c BT_DBG("session %p state %ld dlci %d", s, s->state, dlci); dlci 1255 net/bluetooth/rfcomm/core.c if (dlci) { dlci 1256 net/bluetooth/rfcomm/core.c struct rfcomm_dlc *d = rfcomm_dlc_get(s, dlci); dlci 1258 net/bluetooth/rfcomm/core.c rfcomm_send_ua(s, dlci); dlci 1268 net/bluetooth/rfcomm/core.c rfcomm_send_dm(s, dlci); dlci 1290 net/bluetooth/rfcomm/core.c rfcomm_send_ua(d->session, d->dlci); dlci 1302 net/bluetooth/rfcomm/core.c rfcomm_send_msc(d->session, 1, d->dlci, d->v24_sig); dlci 1324 net/bluetooth/rfcomm/core.c static int rfcomm_recv_sabm(struct rfcomm_session *s, u8 dlci) dlci 1329 net/bluetooth/rfcomm/core.c BT_DBG("session %p state %ld dlci %d", s, s->state, dlci); dlci 1331 net/bluetooth/rfcomm/core.c if (!dlci) { dlci 1342 net/bluetooth/rfcomm/core.c d = rfcomm_dlc_get(s, dlci); dlci 1352 net/bluetooth/rfcomm/core.c channel = __srv_channel(dlci); dlci 1354 net/bluetooth/rfcomm/core.c d->dlci = dlci; dlci 1355 net/bluetooth/rfcomm/core.c d->addr = __addr(s->initiator, dlci); dlci 1360 net/bluetooth/rfcomm/core.c rfcomm_send_dm(s, dlci); dlci 1371 net/bluetooth/rfcomm/core.c d, d->state, d->dlci, pn->mtu, pn->flow_ctrl, pn->credits); dlci 1399 net/bluetooth/rfcomm/core.c u8 dlci = pn->dlci; dlci 1401 net/bluetooth/rfcomm/core.c BT_DBG("session %p state %ld dlci %d", s, s->state, dlci); dlci 1403 net/bluetooth/rfcomm/core.c if (!dlci) dlci 1406 net/bluetooth/rfcomm/core.c d = rfcomm_dlc_get(s, dlci); dlci 1419 net/bluetooth/rfcomm/core.c rfcomm_send_sabm(s, d->dlci); dlci 1424 net/bluetooth/rfcomm/core.c u8 channel = __srv_channel(dlci); dlci 1432 net/bluetooth/rfcomm/core.c d->dlci = dlci; dlci 1433 net/bluetooth/rfcomm/core.c d->addr = __addr(s->initiator, dlci); dlci 1441 net/bluetooth/rfcomm/core.c rfcomm_send_dm(s, dlci); dlci 1450 net/bluetooth/rfcomm/core.c u8 dlci = __get_dlci(rpn->dlci); dlci 1462 net/bluetooth/rfcomm/core.c dlci, cr, len, rpn->bit_rate, rpn->line_settings, rpn->flow_ctrl, dlci 1547 net/bluetooth/rfcomm/core.c rfcomm_send_rpn(s, 0, dlci, bit_rate, data_bits, stop_bits, dlci 1556 net/bluetooth/rfcomm/core.c u8 dlci = __get_dlci(rls->dlci); dlci 1558 net/bluetooth/rfcomm/core.c BT_DBG("dlci %d cr %d status 0x%x", dlci, cr, rls->status); dlci 1567 net/bluetooth/rfcomm/core.c rfcomm_send_rls(s, 0, dlci, rls->status); dlci 1576 net/bluetooth/rfcomm/core.c u8 dlci = __get_dlci(msc->dlci); dlci 1578 net/bluetooth/rfcomm/core.c BT_DBG("dlci %d cr %d v24 0x%x", dlci, cr, msc->v24_sig); dlci 1580 net/bluetooth/rfcomm/core.c d = rfcomm_dlc_get(s, dlci); dlci 1599 net/bluetooth/rfcomm/core.c rfcomm_send_msc(s, 0, dlci, msc->v24_sig); dlci 1668 net/bluetooth/rfcomm/core.c static int rfcomm_recv_data(struct rfcomm_session *s, u8 dlci, int pf, struct sk_buff *skb) dlci 1672 net/bluetooth/rfcomm/core.c BT_DBG("session %p state %ld dlci %d pf %d", s, s->state, dlci, pf); dlci 1674 net/bluetooth/rfcomm/core.c d = rfcomm_dlc_get(s, dlci); dlci 1676 net/bluetooth/rfcomm/core.c rfcomm_send_dm(s, dlci); dlci 1705 net/bluetooth/rfcomm/core.c u8 type, dlci, fcs; dlci 1713 net/bluetooth/rfcomm/core.c dlci = __get_dlci(hdr->addr); dlci 1734 net/bluetooth/rfcomm/core.c rfcomm_recv_sabm(s, dlci); dlci 1739 net/bluetooth/rfcomm/core.c s = rfcomm_recv_disc(s, dlci); dlci 1744 net/bluetooth/rfcomm/core.c s = rfcomm_recv_ua(s, dlci); dlci 1748 net/bluetooth/rfcomm/core.c s = rfcomm_recv_dm(s, dlci); dlci 1752 net/bluetooth/rfcomm/core.c if (dlci) { dlci 1753 net/bluetooth/rfcomm/core.c rfcomm_recv_data(s, dlci, __test_pf(hdr->ctrl), skb); dlci 1801 net/bluetooth/rfcomm/core.c rfcomm_send_msc(d->session, 1, d->dlci, d->v24_sig); dlci 1877 net/bluetooth/rfcomm/core.c rfcomm_send_dm(s, d->dlci); dlci 2160 net/bluetooth/rfcomm/core.c d->state, d->dlci, d->mtu, dlci 990 net/bluetooth/rfcomm/tty.c rfcomm_send_rpn(dev->dlc->session, 1, dev->dlc->dlci, baud,