Home
last modified time | relevance | path

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

12

/drivers/atm/
Datmtcp.c17 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 …]
Deni.c311 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 …]
Dzatm.c316 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 …]
Diphase.c234 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 …]
Dfore200e.c857 struct atm_vcc* vcc; in fore200e_tx_irq() local
884 if ((vc_map->vcc == NULL) || in fore200e_tx_irq()
885 (test_bit(ATM_VF_READY, &vc_map->vcc->flags) == 0)) { in fore200e_tx_irq()
893 ASSERT(vc_map->vcc); in fore200e_tx_irq()
916 vcc = vc_map->vcc; in fore200e_tx_irq()
917 ASSERT(vcc); in fore200e_tx_irq()
920 if (vcc->pop) { in fore200e_tx_irq()
921 vcc->pop(vcc, entry->skb); in fore200e_tx_irq()
928 if (atomic_read(&sk_atm(vcc)->sk_wmem_alloc) < 0) { in fore200e_tx_irq()
929 atomic_set(&sk_atm(vcc)->sk_wmem_alloc, 0); in fore200e_tx_irq()
[all …]
Dnicstar.c128 static void free_scq(ns_dev *card, scq_info * scq, struct atm_vcc *vcc);
131 static int ns_open(struct atm_vcc *vcc);
132 static void ns_close(struct atm_vcc *vcc);
134 static int ns_send(struct atm_vcc *vcc, struct sk_buff *skb);
908 static void free_scq(ns_dev *card, scq_info *scq, struct atm_vcc *vcc) in free_scq() argument
915 vcc = ATM_SKB(scq->skb[i])->vcc; in free_scq()
916 if (vcc->pop != NULL) in free_scq()
917 vcc->pop(vcc, scq->skb[i]); in free_scq()
923 if (vcc == NULL) { in free_scq()
931 if (vcc->pop != NULL) in free_scq()
[all …]
Dadummy.c89 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 …]
Didt77252.c122 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 …]
Dhe.c98 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
341 vcc = atm_sk(s); in __find_vcc()
342 if (vcc->dev == he_dev->atm_dev && in __find_vcc()
343 vcc->vci == vci && vcc->vpi == vpi && in __find_vcc()
344 vcc->qos.rxtp.traffic_class != ATM_NONE) { in __find_vcc()
345 return vcc; in __find_vcc()
1648 struct atm_vcc *vcc = NULL; in he_service_rbrq() local
[all …]
Dsolos-pci.c101 struct atm_vcc *vcc; member
172 struct atm_vcc *vcc);
182 static inline void solos_pop(struct atm_vcc *vcc, struct sk_buff *skb) in solos_pop() argument
184 if (vcc->pop) in solos_pop()
185 vcc->pop(vcc, skb); in solos_pop()
781 struct atm_vcc *vcc; in solos_bh() local
829 vcc = find_vcc(card->atmdev[port], le16_to_cpu(header->vpi), in solos_bh()
831 if (!vcc) { in solos_bh()
839 atm_charge(vcc, skb->truesize); in solos_bh()
840 vcc->push(vcc, skb); in solos_bh()
[all …]
Dhorizon.c801 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 …]
Dfirestream.c376 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 FS_VCC (ATM_SKB(skb)->vcc)->last_skb = NULL; in process_txdone_queue()
740 wake_up_interruptible (& FS_VCC (ATM_SKB(skb)->vcc)->close_wait); 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 …]
Dambassador.c441 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 …]
Dhe.h134 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
/drivers/usb/atm/
Dusbatm.c150 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
327 vcc = instance->cached_vcc->vcc; in usbatm_extract_one_cell()
334 atomic_inc(&vcc->stats->rx_err); in usbatm_extract_one_cell()
[all …]
/drivers/leds/
Dleds-regulator.c33 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()
148 struct regulator *vcc; in regulator_led_probe() local
156 vcc = regulator_get_exclusive(&pdev->dev, "vled"); in regulator_led_probe()
157 if (IS_ERR(vcc)) { in regulator_led_probe()
159 return PTR_ERR(vcc); in regulator_led_probe()
168 led->cdev.max_brightness = led_regulator_get_max_brightness(vcc); in regulator_led_probe()
[all …]
/drivers/usb/phy/
Dphy-generic.c83 if (!IS_ERR(nop->vcc)) { in usb_gen_phy_init()
84 if (regulator_enable(nop->vcc)) in usb_gen_phy_init()
108 if (!IS_ERR(nop->vcc)) { in usb_gen_phy_shutdown()
109 if (regulator_disable(nop->vcc)) in usb_gen_phy_shutdown()
198 nop->vcc = devm_regulator_get(dev, "vcc"); in usb_phy_gen_create_phy()
199 if (IS_ERR(nop->vcc)) { in usb_phy_gen_create_phy()
201 PTR_ERR(nop->vcc)); in usb_phy_gen_create_phy()
Dphy-generic.h10 struct regulator *vcc; member
/drivers/video/fbdev/omap2/displays-new/
Dpanel-sharp-ls037v7dw01.c26 struct regulator *vcc; member
105 if (ddata->vcc) { in sharp_ls_enable()
106 r = regulator_enable(ddata->vcc); in sharp_ls_enable()
113 regulator_disable(ddata->vcc); in sharp_ls_enable()
151 if (ddata->vcc) in sharp_ls_disable()
152 regulator_disable(ddata->vcc); in sharp_ls_disable()
294 ddata->vcc = devm_regulator_get(&pdev->dev, "envdd"); in sharp_ls_probe_of()
295 if (IS_ERR(ddata->vcc)) { in sharp_ls_probe_of()
297 return PTR_ERR(ddata->vcc); in sharp_ls_probe_of()
/drivers/hwmon/
Dab8500.c38 int vcc; member
62 if (cfg->vcc < 0 || v_ntc >= cfg->vcc) in ab8500_voltage_to_temp()
65 r_ntc = v_ntc * cfg->r_up / (cfg->vcc - v_ntc); in ab8500_voltage_to_temp()
178 ab8500_data->cfg.vcc = THERMAL_VCC; in abx500_hwmon_init()
/drivers/pcmcia/
Dpcmcia_cis.c164 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()
Delectra_cf.c125 unsigned int vcc; in electra_cf_set_socket() local
131 vcc = (s->flags & SS_RESET) ? 0 : s->Vcc; in electra_cf_set_socket()
133 switch (vcc) { in electra_cf_set_socket()
/drivers/mmc/host/
Dpxamci.c80 struct regulator *vcc; member
86 host->vcc = regulator_get_optional(mmc_dev(host->mmc), "vmmc"); in pxamci_init_ocr()
88 if (IS_ERR(host->vcc)) in pxamci_init_ocr()
89 host->vcc = NULL; in pxamci_init_ocr()
91 host->mmc->ocr_avail = mmc_regulator_get_ocrmask(host->vcc); in pxamci_init_ocr()
97 if (host->vcc == NULL) { in pxamci_init_ocr()
111 if (host->vcc) { in pxamci_set_power()
115 ret = mmc_regulator_set_ocr(host->mmc, host->vcc, vdd); in pxamci_set_power()
119 ret = mmc_regulator_set_ocr(host->mmc, host->vcc, 0); in pxamci_set_power()
124 if (!host->vcc && host->pdata && in pxamci_set_power()
[all …]
Domap_hsmmc.c189 struct regulator *vcc; member
300 if (!host->vcc) in omap_hsmmc_set_power()
329 if (host->vcc) in omap_hsmmc_set_power()
330 ret = mmc_regulator_set_ocr(host->mmc, host->vcc, vdd); in omap_hsmmc_set_power()
334 if (ret < 0 && host->vcc) in omap_hsmmc_set_power()
336 host->vcc, 0); in omap_hsmmc_set_power()
342 if (host->vcc) { in omap_hsmmc_set_power()
345 host->vcc, 0); in omap_hsmmc_set_power()
384 host->vcc = reg; in omap_hsmmc_reg_get()
413 if ((host->vcc && regulator_is_enabled(host->vcc) > 0) || in omap_hsmmc_reg_get()
/drivers/usb/serial/
Diuu_phoenix.c65 int vcc; /* vcc (either 3 or 5 V) */ member
93 priv->vcc = vcc_default; in iuu_port_probe()
1102 static int iuu_vcc_set(struct usb_serial_port *port, unsigned int vcc) in iuu_vcc_set() argument
1112 buf[1] = vcc & 0xFF; in iuu_vcc_set()
1113 buf[2] = (vcc >> 8) & 0xFF; in iuu_vcc_set()
1114 buf[3] = (vcc >> 16) & 0xFF; in iuu_vcc_set()
1115 buf[4] = (vcc >> 24) & 0xFF; in iuu_vcc_set()
1138 return sprintf(buf, "%d\n", priv->vcc); in vcc_mode_show()
1160 priv->vcc = v; in vcc_mode_store()

12