/drivers/char/ |
D | nozomi.c | 527 static void setup_memory(struct nozomi *dc) in setup_memory() argument 529 void __iomem *offset = dc->base_addr + dc->config_table.dl_start; in setup_memory() 536 dc->port[PORT_MDM].dl_addr[CH_A] = offset; in setup_memory() 537 dc->port[PORT_MDM].dl_addr[CH_B] = in setup_memory() 538 (offset += dc->config_table.dl_mdm_len1); in setup_memory() 539 dc->port[PORT_MDM].dl_size[CH_A] = in setup_memory() 540 dc->config_table.dl_mdm_len1 - buff_offset; in setup_memory() 541 dc->port[PORT_MDM].dl_size[CH_B] = in setup_memory() 542 dc->config_table.dl_mdm_len2 - buff_offset; in setup_memory() 545 dc->port[PORT_DIAG].dl_addr[CH_A] = in setup_memory() [all …]
|
/drivers/md/ |
D | dm-delay.c | 55 struct delay_c *dc = (struct delay_c *)data; in handle_delayed_timer() local 57 queue_work(kdelayd_wq, &dc->flush_expired_bios); in handle_delayed_timer() 60 static void queue_timeout(struct delay_c *dc, unsigned long expires) in queue_timeout() argument 62 mutex_lock(&dc->timer_lock); in queue_timeout() 64 if (!timer_pending(&dc->delay_timer) || expires < dc->delay_timer.expires) in queue_timeout() 65 mod_timer(&dc->delay_timer, expires); in queue_timeout() 67 mutex_unlock(&dc->timer_lock); in queue_timeout() 82 static struct bio *flush_delayed_bios(struct delay_c *dc, int flush_all) in flush_delayed_bios() argument 90 list_for_each_entry_safe(delayed, next, &dc->delayed_bios, list) { in flush_delayed_bios() 98 mempool_free(delayed, dc->delayed_pool); in flush_delayed_bios() [all …]
|
/drivers/isdn/hisax/ |
D | arcofi.c | 23 del_timer(&cs->dc.isac.arcofitimer); in add_arcofi_timer() 25 init_timer(&cs->dc.isac.arcofitimer); in add_arcofi_timer() 26 cs->dc.isac.arcofitimer.expires = jiffies + ((ARCOFI_TIMER_VALUE * HZ)/1000); in add_arcofi_timer() 27 add_timer(&cs->dc.isac.arcofitimer); in add_arcofi_timer() 35 cs->dc.isac.mon_txp = 0; in send_arcofi() 36 cs->dc.isac.mon_txc = cs->dc.isac.arcofi_list->len; in send_arcofi() 37 memcpy(cs->dc.isac.mon_tx, cs->dc.isac.arcofi_list->msg, cs->dc.isac.mon_txc); in send_arcofi() 38 switch(cs->dc.isac.arcofi_bc) { in send_arcofi() 40 case 1: cs->dc.isac.mon_tx[1] |= 0x40; in send_arcofi() 44 cs->dc.isac.mocr &= 0x0f; in send_arcofi() [all …]
|
D | isac.c | 50 switch (cs->dc.isac.ph_state) { in isac_new_ph() 267 cs->dc.isac.ph_state = (exval >> 2) & 0xf; in isac_interrupt() 269 debugl1(cs, "ph_state change %x", cs->dc.isac.ph_state); in isac_interrupt() 316 if (!cs->dc.isac.mon_rx) { in isac_interrupt() 317 if (!(cs->dc.isac.mon_rx = kmalloc(MAX_MON_FRAME, GFP_ATOMIC))) { in isac_interrupt() 320 cs->dc.isac.mocr &= 0xf0; in isac_interrupt() 321 cs->dc.isac.mocr |= 0x0a; in isac_interrupt() 322 cs->writeisac(cs, ISAC_MOCR, cs->dc.isac.mocr); in isac_interrupt() 325 cs->dc.isac.mon_rxp = 0; in isac_interrupt() 327 if (cs->dc.isac.mon_rxp >= MAX_MON_FRAME) { in isac_interrupt() [all …]
|
D | icc.c | 51 switch (cs->dc.icc.ph_state) { in icc_new_ph() 264 cs->dc.icc.ph_state = (exval >> 2) & 0xf; in icc_interrupt() 266 debugl1(cs, "ph_state change %x", cs->dc.icc.ph_state); in icc_interrupt() 313 if (!cs->dc.icc.mon_rx) { in icc_interrupt() 314 if (!(cs->dc.icc.mon_rx = kmalloc(MAX_MON_FRAME, GFP_ATOMIC))) { in icc_interrupt() 317 cs->dc.icc.mocr &= 0xf0; in icc_interrupt() 318 cs->dc.icc.mocr |= 0x0a; in icc_interrupt() 319 cs->writeisac(cs, ICC_MOCR, cs->dc.icc.mocr); in icc_interrupt() 322 cs->dc.icc.mon_rxp = 0; in icc_interrupt() 324 if (cs->dc.icc.mon_rxp >= MAX_MON_FRAME) { in icc_interrupt() [all …]
|
D | amd7930_fn.c | 133 cs->dc.amd7930.lmr1 = command; in Amd7930_ph_command() 161 cs->dc.amd7930.ph_state = (lsr & 0x7) + 2; in Amd7930_get_state() 170 … u_char index = stateHelper[cs->dc.amd7930.old_state]*8 + stateHelper[cs->dc.amd7930.ph_state]-1; in Amd7930_new_ph() 175 cs->dc.amd7930.ph_state, cs->dc.amd7930.old_state, message & 0x0f, index); in Amd7930_new_ph() 177 cs->dc.amd7930.old_state = cs->dc.amd7930.ph_state; in Amd7930_new_ph() 222 cs->dc.amd7930.old_state = 3; in Amd7930_new_ph() 360 if(!cs->dc.amd7930.tx_xmtlen) in Amd7930_fill_Dfifo() 364 else len = cs->dc.amd7930.tx_xmtlen; in Amd7930_fill_Dfifo() 392 if(!cs->dc.amd7930.tx_xmtlen) { in Amd7930_fill_Dfifo() 394 cs->dc.amd7930.tx_xmtlen = dtcrw; in Amd7930_fill_Dfifo() [all …]
|
D | enternow_pci.c | 216 … cs->dc.amd7930.ph_command(cs, (cs->dc.amd7930.lmr1 | (*chan + 1)), "MDL_BC_ASSIGN"); in enpci_card_msg() 228 … cs->dc.amd7930.ph_command(cs, (cs->dc.amd7930.lmr1 & ~(*chan + 1)), "MDL_BC_RELEASE"); in enpci_card_msg() 230 if (!(cs->dc.amd7930.lmr1 & 3)) { in enpci_card_msg() 375 cs->dc.amd7930.setIrqMask = &enpci_setIrqMask; in en_cs_init_rest()
|
D | amd7930_fn.h | 26 #define AmdIrqOff(cs) cs->dc.amd7930.setIrqMask(cs, 0) 27 #define AmdIrqOn(cs) cs->dc.amd7930.setIrqMask(cs, 1)
|
D | elsa.c | 509 cs->dc.isac.arcofi_bc = bc; in set_arcofi() 511 interruptible_sleep_on(&cs->dc.isac.arcofi_wait); in set_arcofi() 522 if (!cs->dc.isac.mon_tx) in check_arcofi() 523 if (!(cs->dc.isac.mon_tx=kmalloc(MAX_MON_FRAME, GFP_ATOMIC))) { in check_arcofi() 528 cs->dc.isac.arcofi_bc = 0; in check_arcofi() 530 interruptible_sleep_on(&cs->dc.isac.arcofi_wait); in check_arcofi() 532 debugl1(cs, "Arcofi response received %d bytes", cs->dc.isac.mon_rxp); in check_arcofi() 533 p = cs->dc.isac.mon_rx; in check_arcofi() 536 QuickHex(t, p, cs->dc.isac.mon_rxp); in check_arcofi() 538 if ((cs->dc.isac.mon_rxp == 2) && (cs->dc.isac.mon_rx[0] == 0xa0)) { in check_arcofi() [all …]
|
D | ipacx.c | 62 cs->dc.isac.ph_state); in ph_command() 82 cs->dc.isac.ph_state = event; in cic_int() 149 if ((cs->dc.isac.ph_state == IPACX_IND_RES) || in dch_l2l1() 150 (cs->dc.isac.ph_state == IPACX_IND_DR) || in dch_l2l1() 151 (cs->dc.isac.ph_state == IPACX_IND_DC)) in dch_l2l1()
|
D | w6692.c | 70 switch (cs->dc.w6692.ph_state) { in W6692_new_ph() 521 cs->dc.w6692.ph_state = v1 & W_CIR_COD_MASK; in W6692_interrupt() 523 debugl1(cs, "ph_state_change %x", cs->dc.w6692.ph_state); in W6692_interrupt() 626 if ((cs->dc.w6692.ph_state == W_L1IND_DRD)) { in W6692_l1hw() 631 cs->dc.w6692.ph_state = W_L1CMD_RST; in W6692_l1hw() 910 cs->dc.w6692.ph_state = W_L1CMD_RST; in initW6692()
|
D | hfc_sx.c | 609 cs->dc.hfcsx.ph_state = 1; in hfcsx_auxcmd() 721 debugl1(cs, "ph_state chg %d->%d", cs->dc.hfcsx.ph_state, in hfcsx_interrupt() 723 cs->dc.hfcsx.ph_state = exval; in hfcsx_interrupt() 1262 switch (cs->dc.hfcsx.ph_state) { in hfcsx_bh() 1281 switch (cs->dc.hfcsx.ph_state) { in hfcsx_bh() 1294 cs->dc.hfcsx.ph_state = 4; in hfcsx_bh() 1448 cs->dc.hfcsx.ph_state = 0; in setup_hfcsx()
|
D | hfc_pci.c | 784 cs->dc.hfcpci.ph_state = 1; in hfcpci_auxcmd() 956 debugl1(cs, "ph_state chg %d->%d", cs->dc.hfcpci.ph_state, in hfcpci_interrupt() 958 cs->dc.hfcpci.ph_state = exval; in hfcpci_interrupt() 1512 switch (cs->dc.hfcpci.ph_state) { in hfcpci_bh() 1532 switch (cs->dc.hfcpci.ph_state) { in hfcpci_bh() 1543 cs->dc.hfcpci.ph_state = 4; in hfcpci_bh() 1654 cs->dc.hfcpci.ph_state = 0; in setup_hfcpci()
|
D | gazel.c | 513 cs->dc.isac.adf2 = 0x87; in setup_gazelisa() 601 cs->dc.isac.adf2 = 0x87; in setup_gazelpci()
|
D | elsa_ser.c | 574 bcs->cs->dc.isac.arcofi_bc = st->l1.bc; in modem_l2l1() 576 interruptible_sleep_on(&bcs->cs->dc.isac.arcofi_wait); in modem_l2l1()
|
/drivers/media/dvb/ttpci/ |
D | av7110_hw.c | 1057 int av7110_osd_cmd(struct av7110 *av7110, osd_cmd_t *dc) in av7110_osd_cmd() argument 1064 switch (dc->cmd) { in av7110_osd_cmd() 1069 av7110->osdbpp[av7110->osdwin] = (dc->color - 1) & 7; in av7110_osd_cmd() 1072 dc->x1 - dc->x0 + 1, dc->y1 - dc->y0 + 1); in av7110_osd_cmd() 1075 if (!dc->data) { in av7110_osd_cmd() 1076 ret = MoveWindowAbs(av7110, av7110->osdwin, dc->x0, dc->y0); in av7110_osd_cmd() 1092 ret = DrawBlock(av7110, av7110->osdwin, 0, 0, 720, 576, dc->color); in av7110_osd_cmd() 1095 ret = OSDSetColor(av7110, dc->color, dc->x0, dc->y0, dc->x1, dc->y1); in av7110_osd_cmd() 1099 ret = OSDSetPalette(av7110, dc->data, dc->color, dc->x0); in av7110_osd_cmd() 1101 int i, len = dc->x0-dc->color+1; in av7110_osd_cmd() [all …]
|
D | av7110_hw.h | 488 extern int av7110_osd_cmd(struct av7110 *av7110, osd_cmd_t *dc);
|
/drivers/video/geode/ |
D | suspend_gx.c | 37 memcpy(par->dc, par->dc_regs, sizeof(par->dc)); in gx_save_regs() 92 for (i = 0; i < ARRAY_SIZE(par->dc); i++) { in gx_restore_display_ctlr() 101 write_dc(par, i, par->dc[i] & ~(DC_GENERAL_CFG_VIDE | in gx_restore_display_ctlr() 109 write_dc(par, i, par->dc[i] & ~(DC_DISPLAY_CFG_VDEN | in gx_restore_display_ctlr() 128 write_dc(par, i, par->dc[i]); in gx_restore_display_ctlr() 204 write_dc(par, DC_GENERAL_CFG, par->dc[DC_GENERAL_CFG] & in gx_disable_graphics() 207 write_dc(par, DC_DISPLAY_CFG, par->dc[DC_DISPLAY_CFG] & in gx_disable_graphics() 231 write_dc(par, DC_DISPLAY_CFG, par->dc[DC_DISPLAY_CFG]); in gx_enable_graphics() 233 write_dc(par, DC_GENERAL_CFG, par->dc[DC_GENERAL_CFG]); in gx_enable_graphics()
|
D | lxfb_ops.c | 601 memcpy(par->dc, par->dc_regs, sizeof(par->dc)); in lx_save_regs() 611 filt = par->dc[DC_IRQ_FILT_CTL] | DC_IRQ_FILT_CTL_H_FILT_SEL; in lx_save_regs() 662 for (i = 0; i < ARRAY_SIZE(par->dc); i++) { in lx_restore_display_ctlr() 677 write_dc(par, i, par->dc[i] | DC_DV_CTL_CLEAR_DV_RAM); in lx_restore_display_ctlr() 695 write_dc(par, i, par->dc[i]); in lx_restore_display_ctlr() 705 filt = par->dc[DC_IRQ_FILT_CTL] | DC_IRQ_FILT_CTL_H_FILT_SEL; in lx_restore_display_ctlr() 792 write_dc(par, DC_DISPLAY_CFG, par->dc[DC_DISPLAY_CFG]); in lx_restore_regs() 794 write_dc(par, DC_GENERAL_CFG, par->dc[DC_GENERAL_CFG]); in lx_restore_regs()
|
D | gxfb.h | 38 uint32_t dc[DC_REG_COUNT]; member
|
D | lxfb.h | 37 uint32_t dc[DC_REG_COUNT]; member
|
/drivers/i2c/busses/ |
D | i2c-ibm_iic.c | 184 u8 dc; in iic_dev_reset() local 193 dc = in_8(&iic->directcntl); in iic_dev_reset() 194 if (!DIRCTNL_FREE(dc)){ in iic_dev_reset() 202 dc = in_8(&iic->directcntl); in iic_dev_reset() 203 if (DIRCTNL_FREE(dc)) in iic_dev_reset() 207 dc ^= DIRCNTL_SCC; in iic_dev_reset() 208 out_8(&iic->directcntl, dc); in iic_dev_reset() 210 dc ^= DIRCNTL_SCC; in iic_dev_reset() 211 out_8(&iic->directcntl, dc); in iic_dev_reset()
|
/drivers/media/video/ |
D | saa7110.c | 252 struct video_decoder_capability *dc = arg; in saa7110_command() local 254 dc->flags = in saa7110_command() 257 dc->inputs = SAA7110_MAX_INPUT; in saa7110_command() 258 dc->outputs = SAA7110_MAX_OUTPUT; in saa7110_command()
|
/drivers/usb/serial/ |
D | safe_serial.c | 127 #define MY_USB_DEVICE(vend, prod, dc, ic, isc) \ argument 134 .bDeviceClass = (dc),\
|
/drivers/net/ixgb/ |
D | ixgb_ethtool.c | 69 {"tx_deferred_ok", IXGB_STAT(stats.dc)}, 381 *reg++ = IXGB_GET_STAT(adapter, dc); /* 120 */ in ixgb_get_regs()
|