/drivers/atm/ |
D | atmtcp.c | 17 extern int atm_init_aal5(struct atm_vcc *vcc); /* "raw" AAL5 transport */ 24 struct atm_vcc *vcc; /* control VCC; NULL if detached */ member 42 static int atmtcp_send_control(struct atm_vcc *vcc,int type, in atmtcp_send_control() argument 52 out_vcc = PRIV(vcc->dev) ? PRIV(vcc->dev)->vcc : NULL; in atmtcp_send_control() 57 out_vcc = PRIV(vcc->dev) ? PRIV(vcc->dev)->vcc : NULL; in atmtcp_send_control() 67 memset(&new_msg->vcc,0,sizeof(atm_kptr_t)); in atmtcp_send_control() 68 *(struct atm_vcc **) &new_msg->vcc = vcc; in atmtcp_send_control() 69 old_test = test_bit(flag,&vcc->flags); in atmtcp_send_control() 71 add_wait_queue(sk_sleep(sk_atm(vcc)), &wait); in atmtcp_send_control() 72 while (test_bit(flag,&vcc->flags) == old_test) { in atmtcp_send_control() [all …]
|
D | eni.c | 311 static void rx_ident_err(struct atm_vcc *vcc) in rx_ident_err() argument 317 dev = vcc->dev; in rx_ident_err() 323 eni_vcc = ENI_VCC(vcc); in rx_ident_err() 326 printk(KERN_ALERT " VCI %d, rxing %d, words %ld\n",vcc->vci, in rx_ident_err() 342 static int do_rx_dma(struct atm_vcc *vcc,struct sk_buff *skb, in do_rx_dma() argument 353 eni_dev = ENI_DEV(vcc->dev); in do_rx_dma() 354 eni_vcc = ENI_VCC(vcc); in do_rx_dma() 362 "mis-aligned RX data (0x%lx)\n",vcc->dev->number, in do_rx_dma() 363 vcc->vci,(unsigned long) paddr); in do_rx_dma() 366 ATM_SKB(skb)->vcc = vcc; in do_rx_dma() [all …]
|
D | zatm.c | 316 static void exception(struct atm_vcc *vcc) 319 struct zatm_dev *zatm_dev = ZATM_DEV(vcc->dev); 320 struct zatm_vcc *zatm_vcc = ZATM_VCC(vcc); 372 struct atm_vcc *vcc; in poll_rx() local 420 vcc = zatm_dev->rx_map[chan]; in poll_rx() 421 pos = ZATM_VCC(vcc)->pool; in poll_rx() 430 vcc = NULL; in poll_rx() 462 if (vcc) atomic_inc(&vcc->stats->rx_err); in poll_rx() 465 if (!atm_charge(vcc,skb->truesize)) { in poll_rx() 470 ATM_SKB(skb)->vcc = vcc; in poll_rx() [all …]
|
D | iphase.c | 234 static void clear_lockup (struct atm_vcc *vcc, IADEV *dev) { in clear_lockup() argument 243 if (vcc->qos.txtp.traffic_class == ATM_ABR) { in clear_lockup() 244 vcstatus = (vcstatus_t *) &(dev->testTable[vcc->vci]->vc_status); in clear_lockup() 248 abr_vc += vcc->vci; in clear_lockup() 249 eabr_vc += vcc->vci; in clear_lockup() 260 if((tempCellSlot == dev->testTable[vcc->vci]->lastTime) in clear_lockup() 261 && (tempFract == dev->testTable[vcc->vci]->fract)) in clear_lockup() 263 dev->testTable[vcc->vci]->lastTime = tempCellSlot; in clear_lockup() 264 dev->testTable[vcc->vci]->fract = tempFract; in clear_lockup() 280 shd_tbl[i] = vcc->vci; in clear_lockup() [all …]
|
D | fore200e.c | 859 struct atm_vcc* vcc; in fore200e_tx_irq() local 886 if ((vc_map->vcc == NULL) || in fore200e_tx_irq() 887 (test_bit(ATM_VF_READY, &vc_map->vcc->flags) == 0)) { in fore200e_tx_irq() 895 ASSERT(vc_map->vcc); in fore200e_tx_irq() 918 vcc = vc_map->vcc; in fore200e_tx_irq() 919 ASSERT(vcc); in fore200e_tx_irq() 922 if (vcc->pop) { in fore200e_tx_irq() 923 vcc->pop(vcc, entry->skb); in fore200e_tx_irq() 930 if (atomic_read(&sk_atm(vcc)->sk_wmem_alloc) < 0) { in fore200e_tx_irq() 931 atomic_set(&sk_atm(vcc)->sk_wmem_alloc, 0); in fore200e_tx_irq() [all …]
|
D | nicstar.c | 127 static void free_scq(ns_dev *card, scq_info * scq, struct atm_vcc *vcc); 130 static int ns_open(struct atm_vcc *vcc); 131 static void ns_close(struct atm_vcc *vcc); 133 static int ns_send(struct atm_vcc *vcc, struct sk_buff *skb); 910 static void free_scq(ns_dev *card, scq_info *scq, struct atm_vcc *vcc) in free_scq() argument 917 vcc = ATM_SKB(scq->skb[i])->vcc; in free_scq() 918 if (vcc->pop != NULL) in free_scq() 919 vcc->pop(vcc, scq->skb[i]); in free_scq() 925 if (vcc == NULL) { in free_scq() 933 if (vcc->pop != NULL) in free_scq() [all …]
|
D | solos-pci.c | 95 struct atm_vcc *vcc; member 163 struct atm_vcc *vcc); 174 static inline void solos_pop(struct atm_vcc *vcc, struct sk_buff *skb) in solos_pop() argument 176 if (vcc->pop) in solos_pop() 177 vcc->pop(vcc, skb); in solos_pop() 658 struct atm_vcc *vcc; in solos_bh() local 706 vcc = find_vcc(card->atmdev[port], le16_to_cpu(header->vpi), in solos_bh() 708 if (!vcc) { in solos_bh() 715 atm_charge(vcc, skb->truesize); in solos_bh() 716 vcc->push(vcc, skb); in solos_bh() [all …]
|
D | adummy.c | 89 adummy_open(struct atm_vcc *vcc) in adummy_open() argument 91 short vpi = vcc->vpi; in adummy_open() 92 int vci = vcc->vci; in adummy_open() 97 set_bit(ATM_VF_ADDR, &vcc->flags); in adummy_open() 98 set_bit(ATM_VF_READY, &vcc->flags); in adummy_open() 104 adummy_close(struct atm_vcc *vcc) in adummy_close() argument 106 clear_bit(ATM_VF_READY, &vcc->flags); in adummy_close() 107 clear_bit(ATM_VF_ADDR, &vcc->flags); in adummy_close() 111 adummy_send(struct atm_vcc *vcc, struct sk_buff *skb) in adummy_send() argument 113 if (vcc->pop) in adummy_send() [all …]
|
D | idt77252.c | 122 static int idt77252_open(struct atm_vcc *vcc); 123 static void idt77252_close(struct atm_vcc *vcc); 124 static int idt77252_send(struct atm_vcc *vcc, struct sk_buff *skb); 125 static int idt77252_send_oam(struct atm_vcc *vcc, void *cell, 130 static int idt77252_change_qos(struct atm_vcc *vcc, struct atm_qos *qos, 549 struct atm_vcc *vcc; in idt77252_tx_dump() local 559 vcc = NULL; in idt77252_tx_dump() 561 vcc = vc->rx_vcc; in idt77252_tx_dump() 563 vcc = vc->tx_vcc; in idt77252_tx_dump() 565 if (!vcc) in idt77252_tx_dump() [all …]
|
D | he.c | 98 static int he_open(struct atm_vcc *vcc); 99 static void he_close(struct atm_vcc *vcc); 100 static int he_send(struct atm_vcc *vcc, struct sk_buff *skb); 331 struct atm_vcc *vcc; in __find_vcc() local 342 vcc = atm_sk(s); in __find_vcc() 343 if (vcc->dev == he_dev->atm_dev && in __find_vcc() 344 vcc->vci == vci && vcc->vpi == vpi && in __find_vcc() 345 vcc->qos.rxtp.traffic_class != ATM_NONE) { in __find_vcc() 346 return vcc; in __find_vcc() 1668 struct atm_vcc *vcc = NULL; in he_service_rbrq() local [all …]
|
D | horizon.c | 801 if (ATM_SKB(skb)->vcc->pop) { in hrz_kfree_skb() 802 ATM_SKB(skb)->vcc->pop (ATM_SKB(skb)->vcc, skb); in hrz_kfree_skb() 1035 struct atm_vcc * vcc = ATM_SKB(skb)->vcc; in rx_schedule() local 1037 atomic_inc(&vcc->stats->rx); in rx_schedule() 1040 vcc->push (vcc, skb); in rx_schedule() 1189 atomic_inc(&ATM_SKB(skb)->vcc->stats->tx); in tx_schedule() 1338 ATM_SKB(skb)->vcc = atm_vcc; in rx_data_av_handler() 1462 static short setup_idle_tx_channel (hrz_dev * dev, hrz_vcc * vcc) { in setup_idle_tx_channel() argument 1507 u16 channel = vcc->channel; in setup_idle_tx_channel() 1517 vcc->tx_xbr_bits); in setup_idle_tx_channel() [all …]
|
D | firestream.c | 376 if (ATM_SKB(skb)->vcc->pop) in fs_kfree_skb() 377 ATM_SKB(skb)->vcc->pop (ATM_SKB(skb)->vcc, skb); in fs_kfree_skb() 738 if (skb == FS_VCC (ATM_SKB(skb)->vcc)->last_skb) { in process_txdone_queue() 739 wake_up_interruptible (& FS_VCC (ATM_SKB(skb)->vcc)->close_wait); in process_txdone_queue() 740 FS_VCC (ATM_SKB(skb)->vcc)->last_skb = NULL; in process_txdone_queue() 752 atomic_inc(&ATM_SKB(skb)->vcc->stats->tx); in process_txdone_queue() 818 ATM_SKB(skb)->vcc = atm_vcc; in process_incoming() 862 struct fs_vcc *vcc; in fs_open() local 893 vcc = kmalloc(sizeof(struct fs_vcc), GFP_KERNEL); in fs_open() 894 fs_dprintk (FS_DEBUG_ALLOC, "Alloc VCC: %p(%Zd)\n", vcc, sizeof(struct fs_vcc)); in fs_open() [all …]
|
D | ambassador.c | 441 if (ATM_SKB(skb)->vcc->pop) { in amb_kfree_skb() 442 ATM_SKB(skb)->vcc->pop (ATM_SKB(skb)->vcc, skb); in amb_kfree_skb() 457 atomic_inc(&ATM_SKB(skb)->vcc->stats->tx); in tx_complete() 492 ATM_SKB(skb)->vcc = atm_vcc; in rx_complete() 1025 amb_vcc * vcc; in amb_open() local 1139 vcc = kmalloc (sizeof(amb_vcc), GFP_KERNEL); in amb_open() 1140 if (!vcc) { in amb_open() 1144 atm_vcc->dev_data = (void *) vcc; in amb_open() 1155 vcc->tx_frame_bits = tx_frame_bits; in amb_open() 1189 vcc->rx_info.pool = pool; in amb_open() [all …]
|
D | he.h | 134 struct atm_vcc *vcc; member 237 #define HE_LOOKUP_VCC(dev, cid) ((dev)->he_vcc_table[(cid)].vcc) 241 struct atm_vcc *vcc; member 329 #define HE_VCC(vcc) ((struct he_vcc *)(vcc->dev_data)) argument
|
D | eni.h | 53 int (*rx)(struct atm_vcc *vcc); /* RX function, NULL if none */
|
/drivers/usb/atm/ |
D | usbatm.c | 150 struct atm_vcc *vcc; member 171 static int usbatm_atm_open(struct atm_vcc *vcc); 172 static void usbatm_atm_close(struct atm_vcc *vcc); 174 static int usbatm_atm_send(struct atm_vcc *vcc, struct sk_buff *skb); 198 static inline void usbatm_pop(struct atm_vcc *vcc, struct sk_buff *skb) in usbatm_pop() argument 200 if (vcc->pop) in usbatm_pop() 201 vcc->pop(vcc, skb); in usbatm_pop() 308 struct atm_vcc *vcc; in usbatm_extract_one_cell() local 329 vcc = instance->cached_vcc->vcc; in usbatm_extract_one_cell() 336 atomic_inc(&vcc->stats->rx_err); in usbatm_extract_one_cell() [all …]
|
/drivers/leds/ |
D | leds-regulator.c | 33 struct regulator *vcc; member 72 ret = regulator_enable(led->vcc); in regulator_led_enable() 88 ret = regulator_disable(led->vcc); in regulator_led_disable() 110 voltage = led_regulator_get_voltage(led->vcc, led->value); in regulator_led_set_value() 114 ret = regulator_set_voltage(led->vcc, voltage, voltage); in regulator_led_set_value() 147 struct regulator *vcc; in regulator_led_probe() local 155 vcc = regulator_get_exclusive(&pdev->dev, "vled"); in regulator_led_probe() 156 if (IS_ERR(vcc)) { in regulator_led_probe() 158 return PTR_ERR(vcc); in regulator_led_probe() 167 led->cdev.max_brightness = led_regulator_get_max_brightness(vcc); in regulator_led_probe() [all …]
|
/drivers/pcmcia/ |
D | m8xx_pcmcia.c | 274 static int voltage_set(int slot, int vcc, int vpp) in voltage_set() argument 278 switch (vcc) { in voltage_set() 296 if (vcc == vpp) in voltage_set() 307 if (!((vcc == 50) || (vcc == 0))) in voltage_set() 337 static int voltage_set(int slot, int vcc, int vpp) in voltage_set() argument 341 switch (vcc) { in voltage_set() 359 if (vcc == vpp) in voltage_set() 365 if ((vcc == 33) || (vcc == 50)) in voltage_set() 415 static inline int voltage_set(int slot, int vcc, int vpp) in voltage_set() argument 417 return m8xx_pcmcia_ops.voltage_set(slot, vcc, vpp); in voltage_set() [all …]
|
D | pcmcia_cis.c | 164 unsigned int vcc = p_dev->socket->socket.Vcc; in pcmcia_do_loop_config() local 176 if (cfg->vcc.present & (1 << CISTPL_POWER_VNOM)) { in pcmcia_do_loop_config() 177 if (vcc != cfg->vcc.param[CISTPL_POWER_VNOM] / 10000) in pcmcia_do_loop_config() 179 } else if (dflt->vcc.present & (1 << CISTPL_POWER_VNOM)) { in pcmcia_do_loop_config() 180 if (vcc != dflt->vcc.param[CISTPL_POWER_VNOM] / 10000) in pcmcia_do_loop_config()
|
D | electra_cf.c | 123 unsigned int vcc; in electra_cf_set_socket() local 129 vcc = (s->flags & SS_RESET) ? 0 : s->Vcc; in electra_cf_set_socket() 131 switch (vcc) { in electra_cf_set_socket()
|
D | at91_cf.c | 100 int vcc = gpio_is_valid(cf->board->vcc_pin); in at91_cf_get_status() local 105 if (!vcc || gpio_get_value(cf->board->vcc_pin)) in at91_cf_get_status()
|
/drivers/mmc/host/ |
D | pxamci.c | 77 struct regulator *vcc; member 83 host->vcc = regulator_get(mmc_dev(host->mmc), "vmmc"); in pxamci_init_ocr() 85 if (IS_ERR(host->vcc)) in pxamci_init_ocr() 86 host->vcc = NULL; in pxamci_init_ocr() 88 host->mmc->ocr_avail = mmc_regulator_get_ocrmask(host->vcc); in pxamci_init_ocr() 94 if (host->vcc == NULL) { in pxamci_init_ocr() 108 if (host->vcc) { in pxamci_set_power() 112 ret = mmc_regulator_set_ocr(host->mmc, host->vcc, vdd); in pxamci_set_power() 116 ret = mmc_regulator_set_ocr(host->mmc, host->vcc, 0); in pxamci_set_power() 121 if (!host->vcc && host->pdata && in pxamci_set_power() [all …]
|
D | mxcmmc.c | 146 struct regulator *vcc; member 158 host->vcc = regulator_get(mmc_dev(host->mmc), "vmmc"); in mxcmci_init_ocr() 160 if (IS_ERR(host->vcc)) { in mxcmci_init_ocr() 161 host->vcc = NULL; in mxcmci_init_ocr() 163 host->mmc->ocr_avail = mmc_regulator_get_ocrmask(host->vcc); in mxcmci_init_ocr() 169 if (host->vcc == NULL) { in mxcmci_init_ocr() 182 if (host->vcc) { in mxcmci_set_power() 184 mmc_regulator_set_ocr(host->mmc, host->vcc, vdd); in mxcmci_set_power() 186 mmc_regulator_set_ocr(host->mmc, host->vcc, 0); in mxcmci_set_power() 990 if (host->vcc) in mxcmci_remove() [all …]
|
D | mmci.c | 1079 if (host->vcc) in mmci_set_ios() 1080 ret = mmc_regulator_set_ocr(mmc, host->vcc, 0); in mmci_set_ios() 1083 if (host->vcc) { in mmci_set_ios() 1084 ret = mmc_regulator_set_ocr(mmc, host->vcc, ios->vdd); in mmci_set_ios() 1300 host->vcc = regulator_get(&dev->dev, "vmmc"); in mmci_probe() 1301 if (IS_ERR(host->vcc)) in mmci_probe() 1302 host->vcc = NULL; in mmci_probe() 1304 int mask = mmc_regulator_get_ocrmask(host->vcc); in mmci_probe() 1319 if (host->vcc == NULL) in mmci_probe() 1494 if (host->vcc) in mmci_remove() [all …]
|
/drivers/usb/serial/ |
D | iuu_phoenix.c | 84 int vcc; /* vcc (either 3 or 5 V) */ member 123 priv->vcc = vcc_default; in iuu_startup() 1182 static int iuu_vcc_set(struct usb_serial_port *port, unsigned int vcc) in iuu_vcc_set() argument 1194 buf[1] = vcc & 0xFF; in iuu_vcc_set() 1195 buf[2] = (vcc >> 8) & 0xFF; in iuu_vcc_set() 1196 buf[3] = (vcc >> 16) & 0xFF; in iuu_vcc_set() 1197 buf[4] = (vcc >> 24) & 0xFF; in iuu_vcc_set() 1220 return sprintf(buf, "%d\n", priv->vcc); in show_vcc_mode() 1242 priv->vcc = v; in store_vcc_mode()
|