/linux-2.4.37.9/drivers/net/ |
D | ppp_deflate.c | 61 static void z_comp_free __P((void *state)); 62 static void z_decomp_free __P((void *state)); 63 static int z_comp_init __P((void *state, unsigned char *options, 66 static int z_decomp_init __P((void *state, unsigned char *options, 69 static int z_compress __P((void *state, unsigned char *rptr, 72 static void z_incomp __P((void *state, unsigned char *ibuf, int icnt)); 73 static int z_decompress __P((void *state, unsigned char *ibuf, 75 static void z_comp_reset __P((void *state)); 76 static void z_decomp_reset __P((void *state)); 77 static void z_comp_stats __P((void *state, struct compstat *stats)); [all …]
|
/linux-2.4.37.9/lib/zlib_inflate/ |
D | inflate.c | 20 if (z == Z_NULL || z->state == Z_NULL || z->workspace == Z_NULL) 24 z->state->mode = z->state->nowrap ? BLOCKS : METHOD; 25 zlib_inflate_blocks_reset(z->state->blocks, z, Z_NULL); 33 if (z == Z_NULL || z->state == Z_NULL || z->workspace == Z_NULL) 35 if (z->state->blocks != Z_NULL) 36 zlib_inflate_blocks_free(z->state->blocks, z); 37 z->state = Z_NULL; 56 z->state = &WS(z)->internal_state; 57 z->state->blocks = Z_NULL; 60 z->state->nowrap = 0; [all …]
|
/linux-2.4.37.9/crypto/ |
D | wp512.c | 779 u64 state[8]; /* the cipher state */ in wp512_process_buffer() local 795 state[0] = block[0] ^ (K[0] = wctx->hash[0]); in wp512_process_buffer() 796 state[1] = block[1] ^ (K[1] = wctx->hash[1]); in wp512_process_buffer() 797 state[2] = block[2] ^ (K[2] = wctx->hash[2]); in wp512_process_buffer() 798 state[3] = block[3] ^ (K[3] = wctx->hash[3]); in wp512_process_buffer() 799 state[4] = block[4] ^ (K[4] = wctx->hash[4]); in wp512_process_buffer() 800 state[5] = block[5] ^ (K[5] = wctx->hash[5]); in wp512_process_buffer() 801 state[6] = block[6] ^ (K[6] = wctx->hash[6]); in wp512_process_buffer() 802 state[7] = block[7] ^ (K[7] = wctx->hash[7]); in wp512_process_buffer() 888 L[0] = C0[(int)(state[0] >> 56) ] ^ in wp512_process_buffer() [all …]
|
D | anubis.c | 582 u32 state[4]; in anubis_crypt() local 590 state[i] = in anubis_crypt() 604 T0[(state[0] >> 24) ] ^ in anubis_crypt() 605 T1[(state[1] >> 24) ] ^ in anubis_crypt() 606 T2[(state[2] >> 24) ] ^ in anubis_crypt() 607 T3[(state[3] >> 24) ] ^ in anubis_crypt() 610 T0[(state[0] >> 16) & 0xff] ^ in anubis_crypt() 611 T1[(state[1] >> 16) & 0xff] ^ in anubis_crypt() 612 T2[(state[2] >> 16) & 0xff] ^ in anubis_crypt() 613 T3[(state[3] >> 16) & 0xff] ^ in anubis_crypt() [all …]
|
D | khazad.c | 825 u64 state; in khazad_crypt() local 827 state = ((u64)plaintext[0] << 56) ^ in khazad_crypt() 838 state = T0[(int)(state >> 56) ] ^ in khazad_crypt() 839 T1[(int)(state >> 48) & 0xff] ^ in khazad_crypt() 840 T2[(int)(state >> 40) & 0xff] ^ in khazad_crypt() 841 T3[(int)(state >> 32) & 0xff] ^ in khazad_crypt() 842 T4[(int)(state >> 24) & 0xff] ^ in khazad_crypt() 843 T5[(int)(state >> 16) & 0xff] ^ in khazad_crypt() 844 T6[(int)(state >> 8) & 0xff] ^ in khazad_crypt() 845 T7[(int)(state ) & 0xff] ^ in khazad_crypt() [all …]
|
/linux-2.4.37.9/drivers/scsi/ |
D | mac53c94.c | 68 struct fsc_state *state, **prev_statep; in mac53c94_detect() local 88 state = (struct fsc_state *) host->hostdata; in mac53c94_detect() 89 if (state == 0) in mac53c94_detect() 91 state->host = host; in mac53c94_detect() 92 state->regs = (volatile struct mac53c94_regs *) in mac53c94_detect() 94 state->intr = node->intrs[0].line; in mac53c94_detect() 95 state->dma = (volatile struct dbdma_regs *) in mac53c94_detect() 97 state->dmaintr = node->intrs[1].line; in mac53c94_detect() 103 state->clk_freq = 25000000; in mac53c94_detect() 105 state->clk_freq = *(int *)clkprop; in mac53c94_detect() [all …]
|
/linux-2.4.37.9/drivers/pcmcia/ |
D | sa1100_h3600.c | 72 h3600_pcmcia_socket_state(struct pcmcia_state_array *state) in h3600_pcmcia_socket_state() argument 76 if (state->size < 2) in h3600_pcmcia_socket_state() 81 state->state[0].detect = levels & GPIO_H3600_PCMCIA_CD0 ? 0 : 1; in h3600_pcmcia_socket_state() 82 state->state[0].ready = levels & GPIO_H3600_PCMCIA_IRQ0 ? 1 : 0; in h3600_pcmcia_socket_state() 83 state->state[0].bvd1 = 0; in h3600_pcmcia_socket_state() 84 state->state[0].bvd2 = 0; in h3600_pcmcia_socket_state() 85 state->state[0].wrprot = 0; /* Not available on H3600. */ in h3600_pcmcia_socket_state() 86 state->state[0].vs_3v = 0; in h3600_pcmcia_socket_state() 87 state->state[0].vs_Xv = 0; in h3600_pcmcia_socket_state() 89 state->state[1].detect = levels & GPIO_H3600_PCMCIA_CD1 ? 0 : 1; in h3600_pcmcia_socket_state() [all …]
|
D | sa1111_generic.c | 77 int sa1111_pcmcia_socket_state(struct pcmcia_state_array *state) in sa1111_pcmcia_socket_state() argument 81 if (state->size < 2) in sa1111_pcmcia_socket_state() 86 state->state[0].detect = status & PCSR_S0_DETECT ? 0 : 1; in sa1111_pcmcia_socket_state() 87 state->state[0].ready = status & PCSR_S0_READY ? 1 : 0; in sa1111_pcmcia_socket_state() 88 state->state[0].bvd1 = status & PCSR_S0_BVD1 ? 1 : 0; in sa1111_pcmcia_socket_state() 89 state->state[0].bvd2 = status & PCSR_S0_BVD2 ? 1 : 0; in sa1111_pcmcia_socket_state() 90 state->state[0].wrprot = status & PCSR_S0_WP ? 1 : 0; in sa1111_pcmcia_socket_state() 91 state->state[0].vs_3v = status & PCSR_S0_VS1 ? 0 : 1; in sa1111_pcmcia_socket_state() 92 state->state[0].vs_Xv = status & PCSR_S0_VS2 ? 0 : 1; in sa1111_pcmcia_socket_state() 94 state->state[1].detect = status & PCSR_S1_DETECT ? 0 : 1; in sa1111_pcmcia_socket_state() [all …]
|
/linux-2.4.37.9/drivers/sound/ |
D | ali5455.c | 460 static void ali_set_spdif_output(struct ali_state *state, int slots, int rate) in ali_set_spdif_output() argument 464 struct ac97_codec *codec = state->card->ac97_codec[0]; in ali_set_spdif_output() 466 if (!(state->card->ac97_features & 4)) { in ali_set_spdif_output() 467 state->card->ac97_status &= ~SPDIF_ON; in ali_set_spdif_output() 474 if (!(state->card->ac97_status & VOL_MUTED)) { in ali_set_spdif_output() 478 state->card->ac97_status &= ~(VOL_MUTED | SPDIF_ON); in ali_set_spdif_output() 483 state->card->ac97_status = vol & VOL_MUTED; in ali_set_spdif_output() 501 state->card->ac97_status &= ~SPDIF_ON; in ali_set_spdif_output() 516 state->card->ac97_status |= SPDIF_ON; in ali_set_spdif_output() 523 state->card->ac97_status &= ~SPDIF_ON; in ali_set_spdif_output() [all …]
|
D | i810_audio.c | 569 static int i810_set_spdif_output(struct i810_state *state, int slots, int rate) in i810_set_spdif_output() argument 574 struct ac97_codec *codec = state->card->ac97_codec[0]; in i810_set_spdif_output() 577 state->card->ac97_status &= ~SPDIF_ON; in i810_set_spdif_output() 582 if ( !(state->card->ac97_status & VOL_MUTED) ) { in i810_set_spdif_output() 586 state->card->ac97_status &= ~(VOL_MUTED | SPDIF_ON); in i810_set_spdif_output() 591 state->card->ac97_status = vol & VOL_MUTED; in i810_set_spdif_output() 596 state->card->ac97_status |= SPDIF_ON; in i810_set_spdif_output() 598 state->card->ac97_status &= ~SPDIF_ON; in i810_set_spdif_output() 622 static void i810_set_dac_channels(struct i810_state *state, int channel) in i810_set_dac_channels() argument 625 struct ac97_codec *codec = state->card->ac97_codec[0]; in i810_set_dac_channels() [all …]
|
D | ymfpci.c | 92 static int ymf_playback_prepare(struct ymf_state *state); 93 static int ymf_capture_prepare(struct ymf_state *state); 357 static int prog_dmabuf(struct ymf_state *state, int rec) in prog_dmabuf() argument 366 w_16 = ymf_pcm_format_width(state->format.format) == 16; in prog_dmabuf() 367 dmabuf = rec ? &state->rpcm.dmabuf : &state->wpcm.dmabuf; in prog_dmabuf() 369 spin_lock_irqsave(&state->unit->reg_lock, flags); in prog_dmabuf() 373 spin_unlock_irqrestore(&state->unit->reg_lock, flags); in prog_dmabuf() 377 if ((ret = alloc_dmabuf(state->unit, dmabuf))) in prog_dmabuf() 398 redzone = ymf_calc_lend(state->format.rate); in prog_dmabuf() 399 redzone <<= state->format.shift; in prog_dmabuf() [all …]
|
D | trident.c | 482 static int ali_write_5_1(struct trident_state *state, const char *buffer, 485 static int ali_allocate_other_states_resources(struct trident_state *state, 487 static void ali_free_other_states_resources(struct trident_state *state); 505 #define lock_set_fmt(state) do { \ argument 506 spin_lock_irqsave(&state->card->lock, flags); \ 507 if (state->fmt_flag) { \ 508 spin_unlock_irqrestore(&state->card->lock, flags); \ 511 state->fmt_flag = 1; \ 512 spin_unlock_irqrestore(&state->card->lock, flags); \ 515 #define unlock_set_fmt(state) do { \ argument [all …]
|
D | cs46xx.c | 212 void *state; member 393 static int cs46xx_suspend_tbl(struct pci_dev *pcidev, u32 state); 672 card->channel[channel].state = NULL; in cs_free_pcm_channel() 707 static void cs_mute(struct cs_card *card, int state) in cs_mute() argument 712 (state == CS_TRUE) ? "Muting" : "UnMuting") ); in cs_mute() 714 if(state == CS_TRUE) in cs_mute() 744 static unsigned int cs_set_dac_rate(struct cs_state * state, unsigned int rate) in cs_set_dac_rate() argument 746 struct dmabuf *dmabuf = &state->dmabuf; in cs_set_dac_rate() 787 spin_lock_irqsave(&state->card->lock, flags); in cs_set_dac_rate() 788 cs461x_poke(state->card, BA1_PSRC, in cs_set_dac_rate() [all …]
|
/linux-2.4.37.9/drivers/acpi/utilities/ |
D | utmisc.c | 859 union acpi_generic_state *state; in acpi_ut_create_update_state_and_push() local 871 state = acpi_ut_create_update_state (object, action); in acpi_ut_create_update_state_and_push() 872 if (!state) { in acpi_ut_create_update_state_and_push() 876 acpi_ut_push_generic_state (state_list, state); in acpi_ut_create_update_state_and_push() 902 union acpi_generic_state *state; in acpi_ut_create_pkg_state_and_push() local 908 state = acpi_ut_create_pkg_state (internal_object, external_object, index); in acpi_ut_create_pkg_state_and_push() 909 if (!state) { in acpi_ut_create_pkg_state_and_push() 913 acpi_ut_push_generic_state (state_list, state); in acpi_ut_create_pkg_state_and_push() 934 union acpi_generic_state *state) in acpi_ut_push_generic_state() argument 941 state->common.next = *list_head; in acpi_ut_push_generic_state() [all …]
|
/linux-2.4.37.9/drivers/net/wan/ |
D | hdlc_fr.c | 124 pvc_device *pvc = hdlc->state.fr.first_pvc; in find_pvc() 140 pvc_device *pvc, **pvc_p = &hdlc->state.fr.first_pvc; in add_pvc() 171 pvc_device **pvc_p = &hdlc->state.fr.first_pvc; in delete_unused_pvcs() 287 if (pvc->master->state.fr.settings.lmi == LMI_NONE) in pvc_open() 288 pvc->state.active = 1; in pvc_open() 290 pvc->master->state.fr.dce_changed = 1; in pvc_open() 302 if (pvc->master->state.fr.settings.lmi == LMI_NONE) in pvc_close() 303 pvc->state.active = 0; in pvc_close() 305 if (pvc->master->state.fr.settings.dce) { in pvc_close() 306 pvc->master->state.fr.dce_changed = 1; in pvc_close() [all …]
|
/linux-2.4.37.9/drivers/acpi/dispatcher/ |
D | dswstate.c | 74 union acpi_generic_state *state; in acpi_ds_result_insert() local 80 state = walk_state->results; in acpi_ds_result_insert() 81 if (!state) { in acpi_ds_result_insert() 90 index, object, walk_state, state->results.num_results)); in acpi_ds_result_insert() 97 index, object, walk_state, state->results.num_results)); in acpi_ds_result_insert() 101 state->results.obj_desc [index] = object; in acpi_ds_result_insert() 102 state->results.num_results++; in acpi_ds_result_insert() 107 walk_state, state->results.num_results, walk_state->current_result)); in acpi_ds_result_insert() 134 union acpi_generic_state *state; in acpi_ds_result_remove() local 140 state = walk_state->results; in acpi_ds_result_remove() [all …]
|
/linux-2.4.37.9/drivers/video/riva/ |
D | riva_hw.c | 227 static int nv3_iterate(nv3_fifo_info *res_info, nv3_sim_state * state, nv3_arb_info *ainfo) in nv3_iterate() argument 258 ns = 1000000 * ainfo->vburst_size/(state->memory_width/8)/state->mclk_khz; in nv3_iterate() 262 if (state->enable_mp) in nv3_iterate() 270 ns = 1000000 * (ainfo->gburst_size/(state->memory_width/8))/state->mclk_khz; in nv3_iterate() 275 if (!state->gr_during_vid && ainfo->vid_en) in nv3_iterate() 325 … ns = 1000000 * (vmisses*state->mem_page_miss + state->mem_latency)/state->mclk_khz; in nv3_iterate() 329 …ns = 1000000*(misses*state->mem_page_miss + ainfo->vburst_size)/(state->memory_width/8)/state->mcl… in nv3_iterate() 341 … ns = 1000000*(gmisses*state->mem_page_miss + state->mem_latency)/state->mclk_khz ; in nv3_iterate() 345 …ns = 1000000*(misses*state->mem_page_miss + ainfo->gburst_size/(state->memory_width/8))/state->mcl… in nv3_iterate() 355 … ns = 1000000*(misses*state->mem_page_miss + mburst_size/(state->memory_width/8))/state->mclk_khz; in nv3_iterate() [all …]
|
/linux-2.4.37.9/drivers/char/ |
D | au1x00-serial.c | 160 static void autoconfig(struct serial_state * state); 346 icount = &info->state->icount; in receive_chars() 458 info->state->icount.tx++; in transmit_chars() 476 info->state->icount.tx++; in transmit_chars() 506 icount = &info->state->icount; in check_modem_status() 727 struct serial_state *state= info->state; local 741 if (!CONFIGURED_SERIAL_PORT(state) || !state->type) { 753 if (au_readl(UART_MOD_CNTRL + state->port) != 0x3) { 754 au_writel(3, UART_MOD_CNTRL + state->port); 758 printk("starting up ttys%d (irq %d)...", info->line, state->irq); [all …]
|
D | vac-serial.c | 27 #define IRQ_T(state) \ argument 28 ((state->flags & ASYNC_SHARE_IRQ) ? SA_SHIRQ : SA_INTERRUPT) 341 icount = &info->state->icount; in receive_chars() 426 info->state->icount.tx++; in transmit_chars() 444 info->state->icount.tx++; in transmit_chars() 652 struct serial_state *state= info->state; in startup() local 665 if (!state->port || !state->type) { in startup() 677 baget_printk("starting up ttys%d (irq %d)...", info->line, state->irq); in startup() 680 if (uart_config[info->state->type].flags & UART_STARTECH) { in startup() 689 if (state->irq && (!IRQ_ports[state->irq] || in startup() [all …]
|
D | serial.c | 287 static unsigned detect_uart_irq (struct serial_state * state); 288 static void autoconfig(struct serial_state * state); 502 if (info->state->type == PORT_16C950) { in rs_stop() 524 if (info->state->type == PORT_16C950) { in rs_start() 572 icount = &info->state->icount; in receive_chars() 698 info->state->icount.tx++; in transmit_chars() 716 info->state->icount.tx++; in transmit_chars() 746 icount = &info->state->icount; in check_modem_status() 882 info->state->irq, first_multi, in rs_interrupt() 952 info->state->irq, first_multi, in rs_interrupt_single() [all …]
|
D | serial_txx927.c | 334 icount = &info->state->icount; in receive_chars() 416 info->state->icount.tx++; in transmit_chars() 434 info->state->icount.tx++; in transmit_chars() 621 struct serial_state *state= info->state; in startup() local 635 if (!state->port) { in startup() 647 printk("starting up ttys%d (irq %d)...", info->line, state->irq); in startup() 663 if (state->irq && (!IRQ_ports[state->irq] || in startup() 664 !IRQ_ports[state->irq]->next_port)) { in startup() 665 if (IRQ_ports[state->irq]) { in startup() 670 retval = request_irq(state->irq, rs_interrupt_single, in startup() [all …]
|
/linux-2.4.37.9/drivers/char/ipmi/ |
D | ipmi_kcs_sm.c | 100 enum kcs_states state; member 118 kcs->state = KCS_IDLE; in init_kcs_data() 196 kcs->state = KCS_HOSED; in start_error_recovery() 198 kcs->state = KCS_ERROR0; in start_error_recovery() 259 kcs->state = KCS_WAIT_WRITE_START; in restart_kcs_transaction() 271 if ((kcs->state != KCS_IDLE) && (kcs->state != KCS_HOSED)) { in start_kcs_transaction() 281 kcs->state = KCS_START_OP; in start_kcs_transaction() 319 unsigned char state; in kcs_event() local 324 printk(" State = %d, %x\n", kcs->state, status); in kcs_event() 331 state = GET_STATUS_STATE(status); in kcs_event() [all …]
|
/linux-2.4.37.9/drivers/usb/ |
D | hpusbscsi.c | 405 PDEBUG(2, "state= %s", states[hpusbscsi->state]); in hpusbscsi_scsi_queuecommand() 406 if (hpusbscsi->state != HP_STATE_FREE) { in hpusbscsi_scsi_queuecommand() 414 hpusbscsi->state = HP_STATE_BEGINNING; in hpusbscsi_scsi_queuecommand() 415 PDEBUG(2, "state= %s", states[hpusbscsi->state]); in hpusbscsi_scsi_queuecommand() 433 hpusbscsi->state = HP_STATE_FREE; in hpusbscsi_scsi_queuecommand() 434 PDEBUG(2, "state= %s", states[hpusbscsi->state]); in hpusbscsi_scsi_queuecommand() 454 hpusbscsi->state = HP_STATE_FREE; in hpusbscsi_scsi_host_reset() 466 hpusbscsi->state = HP_STATE_FREE; in hpusbscsi_scsi_abort() 481 hpusbscsi->state = HP_STATE_FREE; in handle_usb_error() 491 if (hpusbscsi->state != HP_STATE_FREE) in control_interrupt_callback() [all …]
|
/linux-2.4.37.9/drivers/isdn/hisax/ |
D | isdnhdlc.c | 117 hdlc->state = HDLC_GET_DATA; in isdnhdlc_rcv_init() 138 hdlc->state = HDLC_SEND_FIRST_FLAG; in isdnhdlc_out_init() 141 hdlc->state = HDLC_SEND_FAST_FLAG; in isdnhdlc_out_init() 149 hdlc->state = HDLC_SENDFLAG_B0; in isdnhdlc_out_init() 213 switch(hdlc->state){ in isdnhdlc_decode() 221 hdlc->state = HDLC_GET_FLAG_B0; in isdnhdlc_decode() 227 hdlc->state = HDLC_GETFLAG_B1A6; in isdnhdlc_decode() 232 hdlc->state = HDLC_FAST_IDLE; in isdnhdlc_decode() 242 hdlc->state = HDLC_GETFLAG_B7; in isdnhdlc_decode() 252 hdlc->state = HDLC_GET_FLAG_B0; in isdnhdlc_decode() [all …]
|
D | st5481_hdlc.c | 72 hdlc->state = HDLC_GET_DATA; in hdlc_rcv_init() 94 hdlc->state = HDLC_SEND_FIRST_FLAG; in hdlc_out_init() 97 hdlc->state = HDLC_SEND_FAST_FLAG; in hdlc_out_init() 105 hdlc->state = HDLC_SENDFLAG_B0; in hdlc_out_init() 169 switch(hdlc->state){ in hdlc_decode() 177 hdlc->state = HDLC_GET_FLAG_B0; in hdlc_decode() 183 hdlc->state = HDLC_GETFLAG_B1A6; in hdlc_decode() 188 hdlc->state = HDLC_FAST_IDLE; in hdlc_decode() 198 hdlc->state = HDLC_GETFLAG_B7; in hdlc_decode() 208 hdlc->state = HDLC_GET_FLAG_B0; in hdlc_decode() [all …]
|