Home
last modified time | relevance | path

Searched refs:st (Results 1 – 25 of 248) sorted by relevance

12345678910

/linux-2.4.37.9/drivers/net/hamradio/soundmodem/
Dsm_hapn4800.c66 struct mod_state_hapn48 *st = (struct mod_state_hapn48 *)(&sm->m); in modulator_hapn4800_10_u8() local
69 if (!st->tx_seq++) { in modulator_hapn4800_10_u8()
70 if (st->shreg <= 1) in modulator_hapn4800_10_u8()
71 st->shreg = hdlcdrv_getbits(&sm->hdrv) | 0x10000; in modulator_hapn4800_10_u8()
72 st->tx_bit = ((st->tx_bit << 1) | in modulator_hapn4800_10_u8()
73 (st->tx_bit & 1)); in modulator_hapn4800_10_u8()
74 st->tx_bit ^= (!(st->shreg & 1)); in modulator_hapn4800_10_u8()
75 st->shreg >>= 1; in modulator_hapn4800_10_u8()
76 st->tbl = hapn48_txfilt_10 + (st->tx_bit & 0xf); in modulator_hapn4800_10_u8()
78 if (st->tx_seq >= 10) in modulator_hapn4800_10_u8()
[all …]
Dsm_fsk9600.c69 struct mod_state_fsk96 *st = (struct mod_state_fsk96 *)(&sm->m); in modulator_9600_4_u8() local
72 if (!st->txphase++) { in modulator_9600_4_u8()
73 if (st->shreg <= 1) in modulator_9600_4_u8()
74 st->shreg = hdlcdrv_getbits(&sm->hdrv) | 0x10000; in modulator_9600_4_u8()
75 st->scram = (st->scram << 1) | (st->scram & 1); in modulator_9600_4_u8()
76 st->scram ^= !(st->shreg & 1); in modulator_9600_4_u8()
77 st->shreg >>= 1; in modulator_9600_4_u8()
78 if (st->scram & (SCRAM_TAP1 << 1)) in modulator_9600_4_u8()
79 st->scram ^= SCRAM_TAPN << 1; in modulator_9600_4_u8()
80 st->tx_bit = (st->tx_bit << 1) | (!!(st->scram & (SCRAM_TAP1 << 2))); in modulator_9600_4_u8()
[all …]
Dsm_psk4800.c96 struct mod_state_psk48 *st = (struct mod_state_psk48 *)(&sm->m); in modulator_4800_u8() local
101 if (!st->txseq++) { in modulator_4800_u8()
102 memmove(st->txbits+1, st->txbits, in modulator_4800_u8()
103 sizeof(st->txbits)-sizeof(st->txbits[0])); in modulator_4800_u8()
105 if (st->shreg <= 1) in modulator_4800_u8()
106 st->shreg = hdlcdrv_getbits(&sm->hdrv) | 0x10000; in modulator_4800_u8()
107 st->scram = (st->scram << 1) | in modulator_4800_u8()
108 (st->shreg & 1); in modulator_4800_u8()
109 st->shreg >>= 1; in modulator_4800_u8()
110 if (st->scram & SCRAM_TAP1) in modulator_4800_u8()
[all …]
Dsm_afsk2400_7.c67 struct mod_state_afsk24 *st = (struct mod_state_afsk24 *)(&sm->m); in modulator_2400_u8() local
70 if (st->tx_seq < 0x5555) { in modulator_2400_u8()
71 if (st->shreg <= 1) in modulator_2400_u8()
72 st->shreg = hdlcdrv_getbits(&sm->hdrv) | 0x10000; in modulator_2400_u8()
73 st->tx_bit = (st->tx_bit ^ (!(st->shreg & 1))) & 1; in modulator_2400_u8()
74 st->shreg >>= 1; in modulator_2400_u8()
75 st->phinc = dds_inc[st->tx_bit & 1]; in modulator_2400_u8()
77 st->tx_seq += 0x5555; in modulator_2400_u8()
78 st->tx_seq &= 0xffff; in modulator_2400_u8()
79 *buf = OFFSCOS(st->bit_pll); in modulator_2400_u8()
[all …]
Dsm_afsk2400_8.c67 struct mod_state_afsk24 *st = (struct mod_state_afsk24 *)(&sm->m); in modulator_2400_u8() local
70 if (st->tx_seq < 0x5555) { in modulator_2400_u8()
71 if (st->shreg <= 1) in modulator_2400_u8()
72 st->shreg = hdlcdrv_getbits(&sm->hdrv) | 0x10000; in modulator_2400_u8()
73 st->tx_bit = (st->tx_bit ^ (!(st->shreg & 1))) & 1; in modulator_2400_u8()
74 st->shreg >>= 1; in modulator_2400_u8()
75 st->phinc = dds_inc[st->tx_bit & 1]; in modulator_2400_u8()
77 st->tx_seq += 0x5555; in modulator_2400_u8()
78 st->tx_seq &= 0xffff; in modulator_2400_u8()
79 *buf = OFFSCOS(st->bit_pll); in modulator_2400_u8()
[all …]
Dsm_afsk1200.c61 struct mod_state_afsk12 *st = (struct mod_state_afsk12 *)(&sm->m); in modulator_1200_u8() local
64 if (!((st->txphase++) & 7)) { in modulator_1200_u8()
65 if (st->shreg <= 1) in modulator_1200_u8()
66 st->shreg = hdlcdrv_getbits(&sm->hdrv) | 0x10000; in modulator_1200_u8()
67 st->tx_bit = (st->tx_bit ^ (!(st->shreg & 1))) & 1; in modulator_1200_u8()
68 st->shreg >>= 1; in modulator_1200_u8()
70 st->dds_inc = dds_inc[st->tx_bit & 1]; in modulator_1200_u8()
71 *buf++ = OFFSCOS(st->bit_pll); in modulator_1200_u8()
72 st->bit_pll += st->dds_inc; in modulator_1200_u8()
80 struct mod_state_afsk12 *st = (struct mod_state_afsk12 *)(&sm->m); in modulator_1200_s16() local
[all …]
Dsm_afsk2666.c71 struct mod_state_afsk26 *st = (struct mod_state_afsk26 *)(&sm->m); in modulator_2666_u8() local
74 if (!st->tx_seq++) { in modulator_2666_u8()
75 if (st->shreg <= 1) in modulator_2666_u8()
76 st->shreg = hdlcdrv_getbits(&sm->hdrv) | 0x10000; in modulator_2666_u8()
77 st->scram = ((st->scram << 1) | (st->scram & 1)); in modulator_2666_u8()
78 st->scram ^= (!(st->shreg & 1)); in modulator_2666_u8()
79 st->shreg >>= 1; in modulator_2666_u8()
80 if (st->scram & (SCRAM_TAP1 << 1)) in modulator_2666_u8()
81 st->scram ^= SCRAM_TAPN << 1; in modulator_2666_u8()
82 st->phinc = afsk26_carfreq[!(st->scram & (SCRAM_TAP1 << 2))]; in modulator_2666_u8()
[all …]
/linux-2.4.37.9/drivers/isdn/hisax/
Disdnl2.c147 freewin(struct PStack *st) in freewin() argument
149 freewin1(&st->l2); in freewin()
162 cansend(struct PStack *st) in cansend() argument
166 if(test_bit(FLG_MOD128, &st->l2.flag)) in cansend()
167 p1 = (st->l2.vs - st->l2.va) % 128; in cansend()
169 p1 = (st->l2.vs - st->l2.va) % 8; in cansend()
170 return ((p1 < st->l2.window) && !test_bit(FLG_PEER_BUSY, &st->l2.flag)); in cansend()
217 enqueue_super(struct PStack *st, in enqueue_super() argument
220 if (test_bit(FLG_LAPB, &st->l2.flag)) in enqueue_super()
221 st->l1.bcs->tx_cnt += skb->len; in enqueue_super()
[all …]
Dtei.c38 void tei_handler(struct PStack *st, u_char pr, struct sk_buff *skb);
88 findtei(struct PStack *st, int tei) in findtei() argument
90 struct PStack *ptr = *(st->l1.stlistp); in findtei()
104 put_tei_msg(struct PStack *st, u_char m_id, unsigned int ri, u_char tei) in put_tei_msg() argument
123 st->l2.l2l1(st, PH_DATA | REQUEST, skb); in put_tei_msg()
129 struct PStack *st = fi->userdata; in tei_id_request() local
131 if (st->l2.tei != -1) { in tei_id_request()
132 st->ma.tei_m.printdebug(&st->ma.tei_m, in tei_id_request()
134 st->l2.tei); in tei_id_request()
137 st->ma.ri = random_ri(); in tei_id_request()
[all …]
Disdnl3.c74 struct PStack *st = fi->userdata; in l3m_debug() local
77 VHiSax_putstatus(st->l1.hardware, st->l3.debug_id, fmt, args); in l3m_debug()
157 l3_debug(pc->st, "newstate cr %d %d --> %d", in newl3state()
166 t->pc->st->lli.l4l3(t->pc->st, t->event, t->pc); in L3ExpireTimer()
219 no_l3_proto(struct PStack *st, int pr, void *arg) in no_l3_proto() argument
223 HiSax_putstatus(st->l1.hardware, "L3", "no D protocol"); in no_l3_proto()
230 no_l3_proto_spec(struct PStack *st, isdn_ctrl *ic) in no_l3_proto_spec() argument
237 extern void setstack_dss1(struct PStack *st);
241 extern void setstack_ni1(struct PStack *st);
245 extern void setstack_1tr6(struct PStack *st);
[all …]
Disdnl1.c145 struct PStack *st = fi->userdata; in l1m_debug() local
146 struct IsdnCardState *cs = st->l1.hardware; in l1m_debug()
158 struct PStack *st; in L1activated() local
160 st = cs->stlist; in L1activated()
161 while (st) { in L1activated()
162 if (test_and_clear_bit(FLG_L1_ACTIVATING, &st->l1.Flags)) in L1activated()
163 st->l1.l1l2(st, PH_ACTIVATE | CONFIRM, NULL); in L1activated()
165 st->l1.l1l2(st, PH_ACTIVATE | INDICATION, NULL); in L1activated()
166 st = st->next; in L1activated()
173 struct PStack *st; in L1deactivated() local
[all …]
Dl3dss1.c96 *dss1_new_l3_process(struct PStack *st, int cr) in dss1_new_l3_process() argument
99 if (!(proc = new_l3_process(st, cr))) in dss1_new_l3_process()
115 free_invoke_id(p->st,p->prot.dss1.invoke_id); in dss1_release_l3_process()
123 l3dss1_search_dummy_proc(struct PStack *st, int id) in l3dss1_search_dummy_proc() argument
124 { struct l3_process *pc = st->l3.proc; /* start of processes */ in l3dss1_search_dummy_proc()
141 l3dss1_dummy_return_result(struct PStack *st, int id, u_char *p, u_char nlen) in l3dss1_dummy_return_result() argument
146 if ((pc = l3dss1_search_dummy_proc(st, id))) in l3dss1_dummy_return_result()
149 cs = pc->st->l1.hardware; in l3dss1_dummy_return_result()
159 free_invoke_id(pc->st, pc->prot.dss1.invoke_id); in l3dss1_dummy_return_result()
166 l3_debug(st, "dummy return result id=0x%x result len=%d",id,nlen); in l3dss1_dummy_return_result()
[all …]
Dl3ni1.c94 *ni1_new_l3_process(struct PStack *st, int cr) in ni1_new_l3_process() argument
97 if (!(proc = new_l3_process(st, cr))) in ni1_new_l3_process()
113 free_invoke_id(p->st,p->prot.ni1.invoke_id); in ni1_release_l3_process()
121 l3ni1_search_dummy_proc(struct PStack *st, int id) in l3ni1_search_dummy_proc() argument
122 { struct l3_process *pc = st->l3.proc; /* start of processes */ in l3ni1_search_dummy_proc()
139 l3ni1_dummy_return_result(struct PStack *st, int id, u_char *p, u_char nlen) in l3ni1_dummy_return_result() argument
144 if ((pc = l3ni1_search_dummy_proc(st, id))) in l3ni1_dummy_return_result()
147 cs = pc->st->l1.hardware; in l3ni1_dummy_return_result()
157 free_invoke_id(pc->st, pc->prot.ni1.invoke_id); in l3ni1_dummy_return_result()
164 l3_debug(st, "dummy return result id=0x%x result len=%d",id,nlen); in l3ni1_dummy_return_result()
[all …]
Dhscx.c104 hscx_l2l1(struct PStack *st, int pr, void *arg) in hscx_l2l1() argument
113 if (st->l1.bcs->tx_skb) { in hscx_l2l1()
114 skb_queue_tail(&st->l1.bcs->squeue, skb); in hscx_l2l1()
117 st->l1.bcs->tx_skb = skb; in hscx_l2l1()
118 test_and_set_bit(BC_FLG_BUSY, &st->l1.bcs->Flag); in hscx_l2l1()
119 st->l1.bcs->hw.hscx.count = 0; in hscx_l2l1()
121 st->l1.bcs->cs->BC_Send_Data(st->l1.bcs); in hscx_l2l1()
125 if (st->l1.bcs->tx_skb) { in hscx_l2l1()
129 test_and_set_bit(BC_FLG_BUSY, &st->l1.bcs->Flag); in hscx_l2l1()
130 st->l1.bcs->tx_skb = skb; in hscx_l2l1()
[all …]
Djade.c147 jade_l2l1(struct PStack *st, int pr, void *arg) in jade_l2l1() argument
156 if (st->l1.bcs->tx_skb) { in jade_l2l1()
157 skb_queue_tail(&st->l1.bcs->squeue, skb); in jade_l2l1()
160 st->l1.bcs->tx_skb = skb; in jade_l2l1()
161 test_and_set_bit(BC_FLG_BUSY, &st->l1.bcs->Flag); in jade_l2l1()
162 st->l1.bcs->hw.hscx.count = 0; in jade_l2l1()
164 st->l1.bcs->cs->BC_Send_Data(st->l1.bcs); in jade_l2l1()
168 if (st->l1.bcs->tx_skb) { in jade_l2l1()
172 test_and_set_bit(BC_FLG_BUSY, &st->l1.bcs->Flag); in jade_l2l1()
173 st->l1.bcs->tx_skb = skb; in jade_l2l1()
[all …]
Dl3_1tr6.c41 l3_msg(pc->st, DL_DATA | REQUEST, skb); in l3_1TR6_message()
66 if (pc->st->l3.debug & L3_DEB_WARN) in l3_1tr6_error()
67 l3_debug(pc->st, msg); in l3_1tr6_error()
101 if (pc->st->l3.debug & L3_DEB_WARN) in l3_1tr6_setup_req()
102 l3_debug(pc->st, "Wrong MSN Code"); in l3_1tr6_setup_req()
157 l3_msg(pc->st, DL_DATA | REQUEST, skb); in l3_1tr6_setup_req()
219 if ((pc->para.setup.si1 != 7) && (pc->st->l3.debug & L3_DEB_WARN)) { in l3_1tr6_setup()
223 l3_debug(pc->st, tmp); in l3_1tr6_setup()
226 pc->st->l3.l3l4(pc->st, CC_SETUP | INDICATION, pc); in l3_1tr6_setup()
256 pc->st->l3.l3l4(pc->st, CC_MORE_INFO | INDICATION, pc); in l3_1tr6_setup_ack()
[all …]
Dlmgr.c17 error_handling_dchan(struct PStack *st, int Error) in error_handling_dchan() argument
24 st->l2.l2tei(st, MDL_ERROR | REQUEST, NULL); in error_handling_dchan()
30 hisax_manager(struct PStack *st, int pr, void *arg) in hisax_manager() argument
37 HiSax_putstatus(st->l1.hardware, "manager: MDL_ERROR", in hisax_manager()
39 test_bit(FLG_LAPD, &st->l2.flag) ? in hisax_manager()
41 if (test_bit(FLG_LAPD, &st->l2.flag)) in hisax_manager()
42 error_handling_dchan(st, Code); in hisax_manager()
48 setstack_manager(struct PStack *st) in setstack_manager() argument
50 st->ma.layer = hisax_manager; in setstack_manager()
Dipacx.c38 static void dch_l2l1(struct PStack *st, int pr, void *arg);
46 static void __devinit dch_setstack(struct PStack *st, struct IsdnCardState *cs);
48 static void bch_l2l1(struct PStack *st, int pr, void *arg);
56 static int bch_setstack(struct PStack *st, struct BCState *bcs);
100 dch_l2l1(struct PStack *st, int pr, void *arg) in dch_l2l1() argument
102 struct IsdnCardState *cs = (struct IsdnCardState *) st->l1.hardware; in dch_l2l1()
147 clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags); in dch_l2l1()
148 st->l1.l1l2(st, PH_PULL | CONFIRM, NULL); in dch_l2l1()
150 set_bit(FLG_L1_PULL_REQ, &st->l1.Flags); in dch_l2l1()
209 struct PStack *st; in dbusy_timer_handler() local
[all …]
Dcallc.c865 struct PStack *st = chanp->b_st; in release_b_st() local
871 releasestack_isdnl2(st); in release_b_st()
878 releasestack_transl2(st); in release_b_st()
885 *selectfreechannel(struct PStack *st, int bch) in selectfreechannel() argument
887 struct IsdnCardState *cs = st->l1.hardware; in selectfreechannel()
888 struct Channel *chanp = st->lli.userdata; in selectfreechannel()
910 chanp = st->lli.userdata; in selectfreechannel()
933 dchan_l3l4(struct PStack *st, int pr, void *arg) in dchan_l3l4() argument
936 struct IsdnCardState *cs = st->l1.hardware; in dchan_l3l4()
943 if (!(chanp = selectfreechannel(pc->st, pc->para.bchannel))) { in dchan_l3l4()
[all …]
Dhfc_2bs0.c333 if (bcs->st->lli.l1writewakeup && (count >= 0)) in hfc_fill_fifo()
334 bcs->st->lli.l1writewakeup(bcs->st, count); in hfc_fill_fifo()
476 hfc_l2l1(struct PStack *st, int pr, void *arg) in hfc_l2l1() argument
485 if (st->l1.bcs->tx_skb) { in hfc_l2l1()
486 skb_queue_tail(&st->l1.bcs->squeue, skb); in hfc_l2l1()
489 st->l1.bcs->tx_skb = skb; in hfc_l2l1()
490 test_and_set_bit(BC_FLG_BUSY, &st->l1.bcs->Flag); in hfc_l2l1()
491 st->l1.bcs->cs->BC_Send_Data(st->l1.bcs); in hfc_l2l1()
496 if (st->l1.bcs->tx_skb) { in hfc_l2l1()
502 test_and_set_bit(BC_FLG_BUSY, &st->l1.bcs->Flag); in hfc_l2l1()
[all …]
/linux-2.4.37.9/fs/udf/
Dpartition.c107 struct sparingTable *st = NULL; in udf_get_pblock_spar15() local
114 st = (struct sparingTable *)UDF_SB_TYPESPAR(sb,partition).s_spar_map[i]->b_data; in udf_get_pblock_spar15()
119 if (st) in udf_get_pblock_spar15()
121 for (i=0; i<st->reallocationTableLen; i++) in udf_get_pblock_spar15()
123 if (le32_to_cpu(st->mapEntry[i].origLocation) >= 0xFFFFFFF0) in udf_get_pblock_spar15()
125 else if (le32_to_cpu(st->mapEntry[i].origLocation) == packet) in udf_get_pblock_spar15()
127 return le32_to_cpu(st->mapEntry[i].mappedLocation) + in udf_get_pblock_spar15()
130 else if (le32_to_cpu(st->mapEntry[i].origLocation) > packet) in udf_get_pblock_spar15()
140 struct sparingTable *st = NULL; in udf_relocate_blocks() local
157 st = (struct sparingTable *)sdata->s_spar_map[j]->b_data; in udf_relocate_blocks()
[all …]
/linux-2.4.37.9/drivers/net/
Dsb1000.c492 unsigned char st[7]; in sb1000_reset() local
510 if ((status = card_send_command(ioaddr, name, Command0, st))) in sb1000_reset()
512 if (st[3] != 0xf0) in sb1000_reset()
521 unsigned char st[7]; in sb1000_check_CRC() local
526 if ((status = card_send_command(ioaddr, name, Command0, st))) in sb1000_check_CRC()
528 if (st[1] != st[3] || st[2] != st[4]) in sb1000_check_CRC()
530 crc = st[1] << 8 | st[2]; in sb1000_check_CRC()
537 unsigned char st[7]; in sb1000_start_get_set_command() local
540 return card_send_command(ioaddr, name, Command0, st); in sb1000_start_get_set_command()
546 unsigned char st[7]; in sb1000_end_get_set_command() local
[all …]
/linux-2.4.37.9/arch/sh64/kernel/
Dentry.S507 st.q SP, SAVED_R2, r2
508 st.q SP, SAVED_R3, r3
509 st.q SP, SAVED_R4, r4
510 st.q SP, SAVED_R5, r5
511 st.q SP, SAVED_R6, r6
512 st.q SP, SAVED_R18, r18
514 st.q SP, SAVED_T0, r3
552 st.q SP, 0, r0
553 st.q SP, 8, r1
555 st.q SP, 32, r0
[all …]
/linux-2.4.37.9/drivers/cdrom/
Dmcd.c255 int st = -1, retry; in statusCmd() local
261 st = getMcdStatus(MCD_STATUS_DELAY); in statusCmd()
262 if (st != -1) in statusCmd()
266 return st; in statusCmd()
276 int retry, st = -1; in mcdPlay() local
280 st = getMcdStatus(2 * MCD_STATUS_DELAY); in mcdPlay()
281 if (st != -1) in mcdPlay()
285 return st; in mcdPlay()
323 int i, st; in mcd_audio_ioctl() local
333 st = statusCmd(); in mcd_audio_ioctl()
[all …]
/linux-2.4.37.9/drivers/net/skfp/
Dlnkstat.c58 u_long st; local
63 st = 0 ;
66 st |= SMT_ERL_ALC ;
70 st |= SMT_ERL_ALC ;
72 st |= SMT_ERL_BLC ;
75 st |= SMT_ERL_NCC ; /* not copied condition */
77 st |= SMT_ERL_FEC ; /* frame error condition */
79 return st;
144 int st ; local
201 st = smt_get_error_word(smc) & 0xffff ;
[all …]

12345678910