Home
last modified time | relevance | path

Searched refs:l2 (Results 1 – 25 of 38) sorted by relevance

12

/drivers/isdn/mISDN/
Dlayer2.c96 struct layer2 *l2 = fi->userdata; in l2m_debug() local
102 printk(KERN_DEBUG "l2 (tei %d): ", l2->tei); in l2m_debug()
109 l2headersize(struct layer2 *l2, int ui) in l2headersize() argument
111 return ((test_bit(FLG_MOD128, &l2->flag) && (!ui)) ? 2 : 1) + in l2headersize()
112 (test_bit(FLG_LAPD, &l2->flag) ? 2 : 1); in l2headersize()
116 l2addrsize(struct layer2 *l2) in l2addrsize() argument
118 return test_bit(FLG_LAPD, &l2->flag) ? 2 : 1; in l2addrsize()
122 l2_newid(struct layer2 *l2) in l2_newid() argument
126 id = l2->next_id++; in l2_newid()
128 l2->next_id = 1; in l2_newid()
[all …]
Dtei.c112 struct layer2 *l2; in da_deactivate() local
116 list_for_each_entry(l2, &mgr->layer2, list) { in da_deactivate()
117 if (l2->l2m.state > ST_L2_4) { in da_deactivate()
144 struct layer2 *l2; in da_timer() local
149 list_for_each_entry(l2, &mgr->layer2, list) { in da_timer()
150 if (l2->l2m.state > ST_L2_4) { in da_timer()
225 printk(KERN_DEBUG "tei(%d): ", tm->l2->tei); in tei_debug()
238 struct layer2 *l2; in get_free_id() local
240 list_for_each_entry(l2, &mgr->layer2, list) { in get_free_id()
241 if (l2->ch.nr > 63) { in get_free_id()
[all …]
Dlayer2.h43 struct layer2 *l2; member
/drivers/isdn/hisax/
Disdnl2.c106 static int l2addrsize(struct Layer2 *l2);
109 set_peer_busy(struct Layer2 *l2) { in set_peer_busy() argument
110 test_and_set_bit(FLG_PEER_BUSY, &l2->flag); in set_peer_busy()
111 if (!skb_queue_empty(&l2->i_queue) || in set_peer_busy()
112 !skb_queue_empty(&l2->ui_queue)) in set_peer_busy()
113 test_and_set_bit(FLG_L2BLOCK, &l2->flag); in set_peer_busy()
117 clear_peer_busy(struct Layer2 *l2) { in clear_peer_busy() argument
118 if (test_and_clear_bit(FLG_PEER_BUSY, &l2->flag)) in clear_peer_busy()
119 test_and_clear_bit(FLG_L2BLOCK, &l2->flag); in clear_peer_busy()
123 InitWin(struct Layer2 *l2) in InitWin() argument
[all …]
Dtei.c95 if (ptr->l2.tei == tei) in findtei()
122 st->l2.l2l1(st, PH_DATA | REQUEST, skb); in put_tei_msg()
130 if (st->l2.tei != -1) { in tei_id_request()
133 st->l2.tei); in tei_id_request()
163 ost->l2.l2tei(ost, MDL_ERROR | RESPONSE, NULL); in tei_id_assign()
220 if ((st->l2.tei != -1) && ((tei == GROUP_TEI) || (tei == st->l2.tei))) { in tei_id_chk_req()
223 put_tei_msg(st, ID_CHK_RES, random_ri(), st->l2.tei); in tei_id_chk_req()
239 if ((st->l2.tei != -1) && ((tei == GROUP_TEI) || (tei == st->l2.tei))) { in tei_id_remove()
255 "id verify request for tei %d", st->l2.tei); in tei_id_verify()
256 put_tei_msg(st, ID_VERIFY, 0, st->l2.tei); in tei_id_verify()
[all …]
Dcallc.c1024 (*stp)->l2.l2tei = dummy_pstack; in init_PStack()
1025 (*stp)->l2.l2l1 = dummy_pstack; in init_PStack()
1026 (*stp)->l2.l2l3 = dummy_pstack; in init_PStack()
1050 st->l2.sap = 0; in init_d_st()
1051 st->l2.tei = -1; in init_d_st()
1052 st->l2.flag = 0; in init_d_st()
1053 test_and_set_bit(FLG_MOD128, &st->l2.flag); in init_d_st()
1054 test_and_set_bit(FLG_LAPD, &st->l2.flag); in init_d_st()
1055 test_and_set_bit(FLG_ORIG, &st->l2.flag); in init_d_st()
1056 st->l2.maxlen = MAX_DFRAME_LEN; in init_d_st()
[all …]
Dlmgr.c23 st->l2.l2tei(st, MDL_ERROR | REQUEST, NULL); in error_handling_dchan()
38 test_bit(FLG_LAPD, &st->l2.flag) ? in hisax_manager()
40 if (test_bit(FLG_LAPD, &st->l2.flag)) in hisax_manager()
Disdnl3.c289 !test_bit(FLG_PTP, &p->st->l2.flag)) { in release_l3_process()
363 st->l2.l2l3 = no_l3_proto; in setstack_l3dc()
368 st->l2.l2l3 = no_l3_proto; in setstack_l3dc()
494 if (test_bit(FLG_L2BLOCK, &st->l2.flag)) { in lc_release_req()
Disdnl1.c256 if (tei == stptr->l2.tei) { in DChannel_proc_rcv()
284 st->l2.l2l1(st, PH_DEACTIVATE | CONFIRM, NULL); in BChannel_proc_xmt()
746 st->l2.l2l1(st, PH_DEACTIVATE | CONFIRM, NULL); in l1b_timer_deact()
917 st->l2.l2l1 = dch_l2l1; in setstack_HiSax()
Delsa_ser.c570 modem_set_dial(bcs->cs, test_bit(FLG_ORIG, &st->l2.flag)); in modem_l2l1()
593 st->l2.l2l1 = hscx_l2l1; in setstack_elsa()
608 st->l2.l2l1 = modem_l2l1; in setstack_elsa()
Dq931.c942 int l, l2; in prfacility() local
955 dp += sprintf(dp, " octet 5 %d\n", l2 = *p++ & 0x7f); in prfacility()
958 while (l2--) { in prfacility()
Dhscx.c209 st->l2.l2l1 = hscx_l2l1; in setstack_hscx()
Djade.c249 st->l2.l2l1 = jade_l2l1; in setstack_jade()
Dhfc_sx.c613 cs->stlist->l2.l2l1 = dch_nt_l2l1; in hfcsx_auxcmd()
1241 st->l2.l2l1 = hfcsx_l2l1; in setstack_2b()
Dconfig.c1623 cs->channel[0].d_st->l2.l2l1 = hisax_d_l2l1; in hisax_register()
1866 st->l2.l2l1 = hisax_b_l2l1; in hisax_bc_setstack()
Dhisax.h312 struct Layer2 l2; member
/drivers/scsi/arm/
Deesox.c238 unsigned long l1, l2; in eesoxscsi_buffer_in() local
242 l2 = readl(reg_dmadata) & mask; in eesoxscsi_buffer_in()
243 l2 |= readl(reg_dmadata) << 16; in eesoxscsi_buffer_in()
246 *(u32 *)buf = l2; in eesoxscsi_buffer_in()
317 unsigned long l1, l2; in eesoxscsi_buffer_out() local
321 l2 = *(u32 *)buf; in eesoxscsi_buffer_out()
326 writel(l2 << 16, reg_dmadata); in eesoxscsi_buffer_out()
327 writel(l2, reg_dmadata); in eesoxscsi_buffer_out()
/drivers/isdn/i4l/
Disdn_tty.c562 isdn_calc_usage(int si, int l2) in isdn_calc_usage() argument
568 switch(l2) { in isdn_calc_usage()
595 int l2 = m->mdmreg[REG_L2PROT]; in isdn_tty_dial() local
606 usg = isdn_calc_usage(si, l2); in isdn_tty_dial()
609 (l2 != ISDN_PROTO_L2_MODEM) in isdn_tty_dial()
611 && (l2 != ISDN_PROTO_L2_FAX) in isdn_tty_dial()
614 l2 = ISDN_PROTO_L2_TRANS; in isdn_tty_dial()
620 i = isdn_get_free_channel(usg, l2, m->mdmreg[REG_L3PROT], -1, -1, m->msn); in isdn_tty_dial()
644 info->last_l2 = l2; in isdn_tty_dial()
645 cmd.arg = info->isdn_channel + (l2 << 8); in isdn_tty_dial()
[all …]
/drivers/s390/net/
Dqeth_l2_main.c227 hdr->hdr.l2.flags[2] |= QETH_LAYER2_FLAG_BROADCAST; in qeth_l2_get_packet_type()
237 hdr->hdr.l2.flags[2] |= QETH_LAYER2_FLAG_MULTICAST; in qeth_l2_get_packet_type()
239 hdr->hdr.l2.flags[2] |= QETH_LAYER2_FLAG_UNICAST; in qeth_l2_get_packet_type()
245 hdr->hdr.l2.flags[2] |= QETH_LAYER2_FLAG_MULTICAST; in qeth_l2_get_packet_type()
247 hdr->hdr.l2.flags[2] |= QETH_LAYER2_FLAG_UNICAST; in qeth_l2_get_packet_type()
257 hdr->hdr.l2.id = QETH_HEADER_TYPE_LAYER2; in qeth_l2_fill_header()
261 hdr->hdr.l2.flags[2] |= QETH_LAYER2_FLAG_MULTICAST; in qeth_l2_fill_header()
263 hdr->hdr.l2.flags[2] |= QETH_LAYER2_FLAG_BROADCAST; in qeth_l2_fill_header()
267 hdr->hdr.l2.pkt_length = skb->len-QETH_HEADER_SIZE; in qeth_l2_fill_header()
272 hdr->hdr.l2.flags[2] |= QETH_LAYER2_FLAG_VLAN; in qeth_l2_fill_header()
[all …]
Dqeth_core_offl.c206 if (eddp->qh.hdr.l2.id == QETH_HEADER_TYPE_LAYER2) in qeth_eddp_create_segment_hdrs()
224 if (eddp->qh.hdr.l2.id == QETH_HEADER_TYPE_LAYER2) { in qeth_eddp_create_segment_hdrs()
401 if (eddp->qh.hdr.l2.id == QETH_HEADER_TYPE_LAYER2) { in __qeth_eddp_fill_context_tcp()
411 if (eddp->qh.hdr.l2.id == QETH_HEADER_TYPE_LAYER2) { in __qeth_eddp_fill_context_tcp()
412 eddp->qh.hdr.l2.pkt_length = data_len + ETH_HLEN + in __qeth_eddp_fill_context_tcp()
415 eddp->qh.hdr.l2.pkt_length += VLAN_HLEN; in __qeth_eddp_fill_context_tcp()
477 if (qhdr->hdr.l2.id == QETH_HEADER_TYPE_LAYER2) { in qeth_eddp_fill_context_tcp()
Dqeth_core.h295 struct qeth_hdr_layer2 l2; member
/drivers/isdn/capi/
Dcapidrv.c81 int l2; member
149 static inline u32 b1prot(int l2, int l3) in b1prot() argument
151 switch (l2) { in b1prot()
172 static inline u32 b2prot(int l2, int l3) in b2prot() argument
174 switch (l2) { in b2prot()
192 static inline u32 b3prot(int l2, int l3) in b3prot() argument
194 switch (l2) { in b3prot()
224 static _cstruct b1config(int l2, int l3) in b1config() argument
226 switch (l2) { in b1config()
1649 b1prot(bchan->l2, bchan->l3), /* B1protocol */ in capidrv_command()
[all …]
/drivers/staging/rt2870/
Drt_profile.c87 INT l1, l2, i; in rtstrstruncasecmp() local
90 l2 = strlen(s2); in rtstrstruncasecmp()
91 if (!l2) in rtstrstruncasecmp()
96 while (l1 >= l2) in rtstrstruncasecmp()
100 for(i=0; i<l2; i++) in rtstrstruncasecmp()
114 if (i == l2) in rtstrstruncasecmp()
132 INT l1, l2; in rtstrstr() local
134 l2 = strlen(s2); in rtstrstr()
135 if (!l2) in rtstrstr()
140 while (l1 >= l2) in rtstrstr()
[all …]
/drivers/staging/rt2860/
Drt_profile.c87 INT l1, l2, i; in rtstrstruncasecmp() local
90 l2 = strlen(s2); in rtstrstruncasecmp()
91 if (!l2) in rtstrstruncasecmp()
96 while (l1 >= l2) in rtstrstruncasecmp()
100 for(i=0; i<l2; i++) in rtstrstruncasecmp()
114 if (i == l2) in rtstrstruncasecmp()
132 INT l1, l2; in rtstrstr() local
134 l2 = strlen(s2); in rtstrstr()
135 if (!l2) in rtstrstr()
140 while (l1 >= l2) in rtstrstr()
[all …]
/drivers/scsi/
Dgdth_ioctl.h170 ulong32 l1, l2, l3, l4; member

12