/Linux-v5.10/drivers/atm/ |
D | atmtcp.c | 18 extern int atm_init_aal5(struct atm_vcc *vcc); /* "raw" AAL5 transport */ 25 struct atm_vcc *vcc; /* control VCC; NULL if detached */ member 37 * Hairy code ahead: the control VCC may be closed while we're still 43 static int atmtcp_send_control(struct atm_vcc *vcc,int type, in atmtcp_send_control() argument 53 out_vcc = PRIV(vcc->dev) ? PRIV(vcc->dev)->vcc : NULL; in atmtcp_send_control() 58 out_vcc = PRIV(vcc->dev) ? PRIV(vcc->dev)->vcc : NULL; in atmtcp_send_control() 68 memset(&new_msg->vcc,0,sizeof(atm_kptr_t)); in atmtcp_send_control() 69 *(struct atm_vcc **) &new_msg->vcc = vcc; in atmtcp_send_control() 70 old_test = test_bit(flag,&vcc->flags); in atmtcp_send_control() 72 add_wait_queue(sk_sleep(sk_atm(vcc)), &wait); in atmtcp_send_control() [all …]
|
D | eni.c | 307 static void rx_ident_err(struct atm_vcc *vcc) in rx_ident_err() argument 313 dev = vcc->dev; in rx_ident_err() 319 eni_vcc = ENI_VCC(vcc); in rx_ident_err() 322 printk(KERN_ALERT " VCI %d, rxing %d, words %ld\n",vcc->vci, in rx_ident_err() 338 static int do_rx_dma(struct atm_vcc *vcc,struct sk_buff *skb, in do_rx_dma() argument 349 eni_dev = ENI_DEV(vcc->dev); in do_rx_dma() 350 eni_vcc = ENI_VCC(vcc); in do_rx_dma() 360 "mis-aligned RX data (0x%lx)\n",vcc->dev->number, in do_rx_dma() 361 vcc->vci,(unsigned long) paddr); in do_rx_dma() 364 ATM_SKB(skb)->vcc = vcc; in do_rx_dma() [all …]
|
D | fore200e.c | 774 struct atm_vcc* vcc; in fore200e_tx_irq() local 800 /* vcc closed since the time the entry was submitted for tx? */ in fore200e_tx_irq() 801 if ((vc_map->vcc == NULL) || in fore200e_tx_irq() 802 (test_bit(ATM_VF_READY, &vc_map->vcc->flags) == 0)) { in fore200e_tx_irq() 804 DPRINTK(1, "no ready vcc found for PDU sent on device %d\n", in fore200e_tx_irq() 810 ASSERT(vc_map->vcc); in fore200e_tx_irq() 812 /* vcc closed then immediately re-opened? */ in fore200e_tx_irq() 815 /* when a vcc is closed, some PDUs may be still pending in the tx queue. in fore200e_tx_irq() 816 if the same vcc is immediately re-opened, those pending PDUs must in fore200e_tx_irq() 818 to the prior incarnation of that vcc. otherwise, sk_atm(vcc)->sk_wmem_alloc in fore200e_tx_irq() [all …]
|
D | zatm.c | 318 static void exception(struct atm_vcc *vcc) 321 struct zatm_dev *zatm_dev = ZATM_DEV(vcc->dev); 322 struct zatm_vcc *zatm_vcc = ZATM_VCC(vcc); 374 struct atm_vcc *vcc; in poll_rx() local 422 vcc = zatm_dev->rx_map[chan]; in poll_rx() 423 pos = ZATM_VCC(vcc)->pool; in poll_rx() 432 vcc = NULL; in poll_rx() 464 if (vcc) atomic_inc(&vcc->stats->rx_err); in poll_rx() 467 if (!atm_charge(vcc,skb->truesize)) { in poll_rx() 472 ATM_SKB(skb)->vcc = vcc; in poll_rx() [all …]
|
D | iphase.c | 206 printk("Fatal err, desc table vcc or skb is NULL\n"); in get_desc() 236 static void clear_lockup (struct atm_vcc *vcc, IADEV *dev) { in clear_lockup() argument 245 if (vcc->qos.txtp.traffic_class == ATM_ABR) { in clear_lockup() 246 vcstatus = (vcstatus_t *) &(dev->testTable[vcc->vci]->vc_status); in clear_lockup() 250 abr_vc += vcc->vci; in clear_lockup() 251 eabr_vc += vcc->vci; in clear_lockup() 262 if((tempCellSlot == dev->testTable[vcc->vci]->lastTime) in clear_lockup() 263 && (tempFract == dev->testTable[vcc->vci]->fract)) in clear_lockup() 265 dev->testTable[vcc->vci]->lastTime = tempCellSlot; in clear_lockup() 266 dev->testTable[vcc->vci]->fract = tempFract; in clear_lockup() [all …]
|
D | nicstar.c | 126 static void free_scq(ns_dev *card, scq_info * scq, struct atm_vcc *vcc); 129 static int ns_open(struct atm_vcc *vcc); 130 static void ns_close(struct atm_vcc *vcc); 132 static int ns_send(struct atm_vcc *vcc, struct sk_buff *skb); 901 /* For variable rate SCQ vcc must be NULL */ 902 static void free_scq(ns_dev *card, scq_info *scq, struct atm_vcc *vcc) in free_scq() argument 909 vcc = ATM_SKB(scq->skb[i])->vcc; in free_scq() 910 if (vcc->pop != NULL) in free_scq() 911 vcc->pop(vcc, scq->skb[i]); in free_scq() 915 } else { /* vcc must be != NULL */ in free_scq() [all …]
|
D | adummy.c | 90 adummy_open(struct atm_vcc *vcc) in adummy_open() argument 92 short vpi = vcc->vpi; in adummy_open() 93 int vci = vcc->vci; in adummy_open() 98 set_bit(ATM_VF_ADDR, &vcc->flags); in adummy_open() 99 set_bit(ATM_VF_READY, &vcc->flags); in adummy_open() 105 adummy_close(struct atm_vcc *vcc) in adummy_close() argument 107 clear_bit(ATM_VF_READY, &vcc->flags); in adummy_close() 108 clear_bit(ATM_VF_ADDR, &vcc->flags); in adummy_close() 112 adummy_send(struct atm_vcc *vcc, struct sk_buff *skb) in adummy_send() argument 114 if (vcc->pop) in adummy_send() [all …]
|
/Linux-v5.10/net/atm/ |
D | common.c | 45 struct atm_vcc *vcc = atm_sk(sk); in __vcc_insert_socket() local 46 struct hlist_head *head = &vcc_hash[vcc->vci & (VCC_HTABLE_SIZE - 1)]; in __vcc_insert_socket() 47 sk->sk_hash = vcc->vci & (VCC_HTABLE_SIZE - 1); in __vcc_insert_socket() 66 static bool vcc_tx_ready(struct atm_vcc *vcc, unsigned int size) in vcc_tx_ready() argument 68 struct sock *sk = sk_atm(vcc); in vcc_tx_ready() 70 if (sk_wmem_alloc_get(sk) && !atm_may_send(vcc, size)) { in vcc_tx_ready() 102 struct atm_vcc *vcc = atm_sk(sk); in vcc_writable() local 104 return (vcc->qos.txtp.max_sdu + in vcc_writable() 127 struct atm_vcc *vcc = atm_sk(sk); in vcc_release_cb() local 129 if (vcc->release_cb) in vcc_release_cb() [all …]
|
D | signaling.c | 37 static void modify_qos(struct atm_vcc *vcc, struct atmsvc_msg *msg) in modify_qos() argument 41 if (test_bit(ATM_VF_RELEASED, &vcc->flags) || in modify_qos() 42 !test_bit(ATM_VF_READY, &vcc->flags)) in modify_qos() 45 if (!vcc->dev->ops->change_qos) in modify_qos() 48 /* should lock VCC */ in modify_qos() 49 msg->reply = vcc->dev->ops->change_qos(vcc, &msg->qos, in modify_qos() 64 static int sigd_send(struct atm_vcc *vcc, struct sk_buff *skb) in sigd_send() argument 71 WARN_ON(refcount_sub_and_test(skb->truesize, &sk_atm(vcc)->sk_wmem_alloc)); in sigd_send() 72 vcc = *(struct atm_vcc **) &msg->vcc; in sigd_send() 73 pr_debug("%d (0x%lx)\n", (int)msg->type, (unsigned long)vcc); in sigd_send() [all …]
|
D | raw.c | 23 static void atm_push_raw(struct atm_vcc *vcc, struct sk_buff *skb) in atm_push_raw() argument 26 struct sock *sk = sk_atm(vcc); in atm_push_raw() 33 static void atm_pop_raw(struct atm_vcc *vcc, struct sk_buff *skb) in atm_pop_raw() argument 35 struct sock *sk = sk_atm(vcc); in atm_pop_raw() 38 vcc->vci, sk_wmem_alloc_get(sk), ATM_SKB(skb)->acct_truesize); in atm_pop_raw() 44 static int atm_send_aal0(struct atm_vcc *vcc, struct sk_buff *skb) in atm_send_aal0() argument 52 ((vcc->vpi << ATM_HDR_VPI_SHIFT) | in atm_send_aal0() 53 (vcc->vci << ATM_HDR_VCI_SHIFT))) { in atm_send_aal0() 57 return vcc->dev->ops->send(vcc, skb); in atm_send_aal0() 60 int atm_init_aal0(struct atm_vcc *vcc) in atm_init_aal0() argument [all …]
|
D | svc.c | 46 static void svc_disconnect(struct atm_vcc *vcc) in svc_disconnect() argument 50 struct sock *sk = sk_atm(vcc); in svc_disconnect() 52 pr_debug("%p\n", vcc); in svc_disconnect() 53 if (test_bit(ATM_VF_REGIS, &vcc->flags)) { in svc_disconnect() 54 sigd_enq(vcc, as_close, NULL, NULL, NULL); in svc_disconnect() 57 if (test_bit(ATM_VF_RELEASED, &vcc->flags) || !sigd) in svc_disconnect() 66 atm_return(vcc, skb->truesize); in svc_disconnect() 68 sigd_enq2(NULL, as_reject, vcc, NULL, NULL, &vcc->qos, 0); in svc_disconnect() 71 clear_bit(ATM_VF_REGIS, &vcc->flags); in svc_disconnect() 78 struct atm_vcc *vcc; in svc_release() local [all …]
|
D | clip.c | 115 pr_err("ATMARP: failed (entry %p, vcc 0x%p)\n", entry, clip_vcc); in unlink_clip_vcc() 132 pr_debug("releasing vcc %p->%p of entry %p\n", in neigh_check_cb() 133 cv, cv->vcc, entry); in neigh_check_cb() 134 vcc_release_async(cv->vcc, -ETIMEDOUT); in neigh_check_cb() 167 struct atm_vcc *vcc; in clip_arp_rcv() local 170 vcc = ATM_SKB(skb)->vcc; in clip_arp_rcv() 171 if (!vcc || !atm_charge(vcc, skb->truesize)) { in clip_arp_rcv() 175 pr_debug("pushing to %p\n", vcc); in clip_arp_rcv() 176 pr_debug("using %p\n", CLIP_VCC(vcc)->old_push); in clip_arp_rcv() 177 CLIP_VCC(vcc)->old_push(vcc, skb); in clip_arp_rcv() [all …]
|
D | lec.c | 82 struct atm_vcc *vcc, struct sk_buff *skb); 94 static int lec_mcast_make(struct lec_priv *priv, struct atm_vcc *vcc); 100 struct atm_vcc *vcc, 101 void (*old_push)(struct atm_vcc *vcc, 103 static void lec_vcc_close(struct lec_priv *priv, struct atm_vcc *vcc); 181 lec_send(struct atm_vcc *vcc, struct sk_buff *skb) in lec_send() argument 185 ATM_SKB(skb)->vcc = vcc; in lec_send() 186 atm_account_tx(vcc, skb); in lec_send() 188 if (vcc->send(vcc, skb) < 0) { in lec_send() 210 struct atm_vcc *vcc; in lec_start_xmit() local [all …]
|
D | proc.c | 141 static void pvc_info(struct seq_file *seq, struct atm_vcc *vcc) in pvc_info() argument 152 vcc->dev->number, vcc->vpi, vcc->vci, in pvc_info() 153 vcc->qos.aal >= ARRAY_SIZE(aal_name) ? "err" : in pvc_info() 154 aal_name[vcc->qos.aal], vcc->qos.rxtp.min_pcr, in pvc_info() 155 class_name[vcc->qos.rxtp.traffic_class], in pvc_info() 156 vcc->qos.txtp.min_pcr, in pvc_info() 157 class_name[vcc->qos.txtp.traffic_class]); in pvc_info() 158 if (test_bit(ATM_VF_IS_CLIP, &vcc->flags)) { in pvc_info() 159 struct clip_vcc *clip_vcc = CLIP_VCC(vcc); in pvc_info() 170 static const char *vcc_state(struct atm_vcc *vcc) in vcc_state() argument [all …]
|
D | pvc.c | 32 struct atm_vcc *vcc; in pvc_bind() local 41 vcc = ATM_SD(sock); in pvc_bind() 42 if (!test_bit(ATM_VF_HASQOS, &vcc->flags)) { in pvc_bind() 46 if (test_bit(ATM_VF_PARTIAL, &vcc->flags)) { in pvc_bind() 47 if (vcc->vpi != ATM_VPI_UNSPEC) in pvc_bind() 48 addr->sap_addr.vpi = vcc->vpi; in pvc_bind() 49 if (vcc->vci != ATM_VCI_UNSPEC) in pvc_bind() 50 addr->sap_addr.vci = vcc->vci; in pvc_bind() 93 struct atm_vcc *vcc = ATM_SD(sock); in pvc_getname() local 95 if (!vcc->dev || !test_bit(ATM_VF_ADDR, &vcc->flags)) in pvc_getname() [all …]
|
/Linux-v5.10/drivers/tty/ |
D | vcc.c | 2 /* vcc.c: sun4v virtual channel concentrator 17 #define DRV_MODULE_NAME "vcc" 52 /* Microseconds that thread will delay waiting for a vcc port ref */ 62 static const char vcc_driver_name[] = "vcc"; 63 static const char vcc_device_node[] = "vcc"; 116 * vcc_table_add() - Add VCC port to the VCC table 117 * @port: pointer to the VCC port 119 * Return: index of the port in the VCC table on success, 143 * vcc_table_remove() - Removes a VCC port from the VCC table 144 * @index: Index into the VCC table [all …]
|
/Linux-v5.10/arch/arm64/boot/dts/allwinner/ |
D | sun50i-a64-olinuxino.dts | 154 vcc-pc-supply = <®_dcdc1>; 155 vcc-pd-supply = <®_dcdc1>; 156 vcc-pe-supply = <®_aldo1>; 157 vcc-pg-supply = <®_dldo4>; 166 * vcc-pl-supply = <®_aldo2>; 171 vcc-pa-supply = <®_dcdc1>; 172 vcc-pb-supply = <®_dcdc1>; 173 vcc-pc-supply = <®_dcdc1>; 174 vcc-pd-supply = <®_dcdc1>; 175 vcc-pe-supply = <®_aldo1>; [all …]
|
D | sun50i-a100-allwinner-perf1.dts | 24 vcc-pb-supply = <®_dcdc1>; 25 vcc-pc-supply = <®_eldo1>; 26 vcc-pd-supply = <®_dcdc1>; 27 vcc-pe-supply = <®_dldo2>; 28 vcc-pf-supply = <®_dcdc1>; 29 vcc-pg-supply = <®_dldo1>; 30 vcc-ph-supply = <®_dcdc1>; 39 * vcc-pl-supply = <®_aldo3>; 65 regulator-name = "vcc-pll-avcc"; 72 regulator-name = "vcc-dram-1"; [all …]
|
D | sun50i-a64-pinephone.dtsi | 61 vcc-supply = <®_dcdc1>; 103 vcc-dsi-supply = <®_dldo1>; 111 vcc-supply = <®_ldo_io0>; 218 vcc-pb-supply = <®_dcdc1>; 219 vcc-pc-supply = <®_dcdc1>; 220 vcc-pd-supply = <®_dcdc1>; 221 vcc-pe-supply = <®_aldo1>; 222 vcc-pf-supply = <®_dcdc1>; 223 vcc-pg-supply = <®_dldo4>; 224 vcc-ph-supply = <®_dcdc1>; [all …]
|
/Linux-v5.10/include/linux/ |
D | atmdev.h | 65 ATM_VF_SESSION, /* VCC is p2mp session control descriptor */ 95 unsigned long flags; /* VCC flags (ATM_VF_*) */ 104 void (*release_cb)(struct atm_vcc *vcc); /* release_sock callback */ 105 void (*push)(struct atm_vcc *vcc,struct sk_buff *skb); 106 void (*pop)(struct atm_vcc *vcc,struct sk_buff *skb); /* optional */ 107 int (*push_oam)(struct atm_vcc *vcc,void *cell); 108 int (*send)(struct atm_vcc *vcc,struct sk_buff *skb); 118 struct atm_vcc *session; /* session VCC descriptor */ 135 static inline struct sock *sk_atm(struct atm_vcc *vcc) in sk_atm() argument 137 return (struct sock *)vcc; in sk_atm() [all …]
|
/Linux-v5.10/drivers/usb/atm/ |
D | usbatm.c | 38 * - unlink all active send urbs of a vcc that is being closed. 43 * - fixed memory leak and vcc->tx_inuse starvation bug 44 * when not enough memory left in vcc. 135 struct atm_vcc *vcc; member 156 static int usbatm_atm_open(struct atm_vcc *vcc); 157 static void usbatm_atm_close(struct atm_vcc *vcc); 159 static int usbatm_atm_send(struct atm_vcc *vcc, struct sk_buff *skb); 183 static inline void usbatm_pop(struct atm_vcc *vcc, struct sk_buff *skb) in usbatm_pop() argument 185 if (vcc->pop) in usbatm_pop() 186 vcc->pop(vcc, skb); in usbatm_pop() [all …]
|
/Linux-v5.10/drivers/pcmcia/ |
D | sa1111_badge4.c | 27 * PCM Vcc: 29 * PCM Vcc on BadgePAD 4 can be jumpered for 3v3 (short pins 1 and 3 35 * on JP6) or tied to PCM Vcc (short pins 2 and 4 on JP6). N.B., 39 * CF Vcc: 41 * CF Vcc on BadgePAD 4 can be jumpered either for 3v3 (short pins 1 49 * setup argument: pcmv=<pcm vcc>,<pcm vpp>,<cf vcc>. The units are 50 * tenths of volts; e.g. pcmv=33,120,50 indicates 3v3 PCM Vcc, 12v0 51 * PCM Vpp, and 5v0 CF Vcc. 79 if ((state->Vcc != 0) && in badge4_pcmcia_configure_socket() 80 (state->Vcc != badge4_pcmvcc)) { in badge4_pcmcia_configure_socket() [all …]
|
/Linux-v5.10/drivers/leds/ |
D | leds-regulator.c | 26 struct regulator *vcc; member 65 ret = regulator_enable(led->vcc); in regulator_led_enable() 67 dev_err(led->cdev.dev, "Failed to enable vcc: %d\n", ret); in regulator_led_enable() 81 ret = regulator_disable(led->vcc); in regulator_led_disable() 83 dev_err(led->cdev.dev, "Failed to disable vcc: %d\n", ret); in regulator_led_disable() 105 voltage = led_regulator_get_voltage(led->vcc, value); in regulator_led_brightness_set() 109 ret = regulator_set_voltage(led->vcc, voltage, voltage); in regulator_led_brightness_set() 127 struct regulator *vcc; in regulator_led_probe() local 135 vcc = devm_regulator_get_exclusive(&pdev->dev, "vled"); in regulator_led_probe() 136 if (IS_ERR(vcc)) { in regulator_led_probe() [all …]
|
/Linux-v5.10/arch/arm/boot/dts/ |
D | sunxi-libretech-all-h3-it.dtsi | 57 reg_vcc_dram: vcc-dram { 59 regulator-name = "vcc-dram"; 69 reg_vcc_io: vcc-io { 71 regulator-name = "vcc-io"; 79 reg_vcc_usbwifi: vcc-usbwifi { 81 regulator-name = "vcc-usbwifi"; 144 vcc-pa-supply = <®_vcc_io>; 145 vcc-pc-supply = <®_vcc_io>; 146 vcc-pd-supply = <®_vcc_io>; 147 vcc-pe-supply = <®_vcc_io>; [all …]
|
D | sun9i-a80-cubieboard4.dts | 194 vcc-pa-supply = <®_ldo_io1>; 195 vcc-pb-supply = <®_aldo2>; 196 vcc-pc-supply = <®_dcdc1>; 197 vcc-pd-supply = <®_dc1sw>; 198 vcc-pe-supply = <®_eldo2>; 199 vcc-pf-supply = <®_dcdc1>; 200 vcc-pg-supply = <®_ldo_io0>; 201 vcc-ph-supply = <®_dcdc1>; 209 vcc-pl-supply = <®_dldo2>; 210 vcc-pm-supply = <®_eldo3>; [all …]
|