Lines Matching refs:addr

98 	u8 addr;		/* DLCI address + flags */
129 int addr;
533 * @addr: address EA from the frame
543 static void gsm_print_packet(const char *hdr, int addr, int cr,
549 pr_info("%s %d) %c: ", hdr, addr, "RC"[cr]);
633 * @addr: address for control frame
644 static void gsm_send(struct gsm_mux *gsm, int addr, int cr, int control)
653 cbuf[1] = (addr << 2) | (cr << 1) | EA;
663 ibuf[0] = (addr << 2) | (cr << 1) | EA;
679 gsm_print_packet("-->", addr, cr, control, NULL, 0);
685 * @addr: address for control frame
691 static inline void gsm_response(struct gsm_mux *gsm, int addr, int control)
693 gsm_send(gsm, addr, 0, control);
699 * @addr: address for control frame
705 static inline void gsm_command(struct gsm_mux *gsm, int addr, int control)
707 gsm_send(gsm, addr, 1, control);
717 * @addr: DLCI address
726 static struct gsm_msg *gsm_data_alloc(struct gsm_mux *gsm, u8 addr, int len,
735 m->addr = addr;
752 if (msg->addr > 0)
857 *--dp = (msg->addr << 2) | 2 | EA;
859 *--dp = (msg->addr << 2) | EA;
866 gsm_print_packet("Q> ", msg->addr, gsm->initiator, msg->ctrl,
929 msg = gsm_data_alloc(gsm, dlci->addr, size, gsm->ftype);
1008 msg = gsm_data_alloc(gsm, dlci->addr, size, gsm->ftype);
1208 unsigned int addr = 0;
1216 while (gsm_read_ea(&addr, *dp++) == 0) {
1226 addr >>= 1;
1228 if (addr == 0 || addr >= NUM_DLCI || gsm->dlci[addr] == NULL)
1230 dlci = gsm->dlci[addr];
1270 unsigned int addr = 0;
1275 while (gsm_read_ea(&addr, *dp++) == 0) {
1284 addr >>= 1;
1286 if (addr == 0 || addr >= NUM_DLCI || gsm->dlci[addr] == NULL)
1293 port = &gsm->dlci[addr]->port;
1556 pr_debug("DLCI %d goes closed.\n", dlci->addr);
1560 if (dlci->addr != 0) {
1591 pr_debug("DLCI %d goes open.\n", dlci->addr);
1619 gsm_command(dlci->gsm, dlci->addr, SABM|PF);
1621 } else if (!dlci->addr && gsm->control == (DM | PF)) {
1624 dlci->addr);
1635 gsm_command(dlci->gsm, dlci->addr, DISC|PF);
1663 gsm_command(dlci->gsm, dlci->addr, SABM|PF);
1704 gsm_command(dlci->gsm, dlci->addr, DISC|PF);
1797 * @addr: address of the DLCI
1804 static struct gsm_dlci *gsm_dlci_alloc(struct gsm_mux *gsm, int addr)
1821 dlci->addr = addr;
1824 if (addr) {
1831 gsm->dlci[addr] = dlci;
1848 dlci->gsm->dlci[dlci->addr] = NULL;
3059 modembits[0] = (dlci->addr << 2) | 2 | EA; /* DLCI, Valid, EA */