Home
last modified time | relevance | path

Searched refs:priv (Results 1 – 25 of 577) sorted by relevance

12345678910>>...24

/linux-2.4.37.9/drivers/net/hamradio/
Ddmascc.c245 struct scc_priv priv[2]; member
255 static void write_scc(struct scc_priv *priv, int reg, int val);
256 static void write_scc_data(struct scc_priv *priv, int val, int fast);
257 static int read_scc(struct scc_priv *priv, int reg);
258 static int read_scc_data(struct scc_priv *priv);
269 static void rx_isr(struct scc_priv *priv);
270 static void special_condition(struct scc_priv *priv, int rc);
272 static void tx_isr(struct scc_priv *priv);
273 static void es_isr(struct scc_priv *priv);
274 static void tm_isr(struct scc_priv *priv);
[all …]
/linux-2.4.37.9/drivers/net/wireless/
Datmel.c568 static int atmel_lock_mac(struct atmel_private *priv);
569 static void atmel_wmem32(struct atmel_private *priv, u16 pos, u32 data);
570 static void atmel_command_irq(struct atmel_private *priv);
571 static int atmel_validate_channel(struct atmel_private *priv, int channel);
572 static void atmel_management_frame(struct atmel_private *priv, struct ieee802_11_hdr *header,
575 static void atmel_send_command(struct atmel_private *priv, int command, void *cmd, int cmd_size);
576 static int atmel_send_command_wait(struct atmel_private *priv, int command, void *cmd, int cmd_size…
577 static void atmel_transmit_management_frame(struct atmel_private *priv, struct ieee802_11_hdr *head…
580 static u8 atmel_get_mib8(struct atmel_private *priv, u8 type, u8 index);
581 static void atmel_set_mib8(struct atmel_private *priv, u8 type, u8 index, u8 data);
[all …]
Dorinoco.c464 #define SPY_NUMBER(priv) (priv->spy_number) argument
466 #define SPY_NUMBER(priv) 0 argument
492 #define MAX_MULTICAST(priv) (HERMES_MAX_MULTICAST) argument
561 static int __orinoco_hw_set_bitrate(struct orinoco_private *priv);
562 static int __orinoco_hw_setup_wep(struct orinoco_private *priv);
563 static int orinoco_hw_get_bssid(struct orinoco_private *priv, char buf[ETH_ALEN]);
564 static int orinoco_hw_get_essid(struct orinoco_private *priv, int *active,
566 static long orinoco_hw_get_freq(struct orinoco_private *priv);
567 static int orinoco_hw_get_bitratelist(struct orinoco_private *priv, int *numrates,
602 static int orinoco_debug_dump_recs(struct orinoco_private *priv);
[all …]
/linux-2.4.37.9/drivers/net/wireless/prism54/
Dislpci_dev.c58 isl_upload_firmware(islpci_private *priv) in isl_upload_firmware() argument
61 void __iomem *device_base = priv->device_base; in isl_upload_firmware()
90 rc = request_firmware(&fw_entry, priv->firmware, PRISM_FW_PDEV); in isl_upload_firmware()
94 "prism54", priv->firmware); in isl_upload_firmware()
106 "prism54", priv->firmware); in isl_upload_firmware()
147 priv->ndev->name, fw_entry->data + 40); in isl_upload_firmware()
188 islpci_private *priv = config; in islpci_interrupt() local
189 struct net_device *ndev = priv->ndev; in islpci_interrupt()
190 void __iomem *device = priv->device_base; in islpci_interrupt()
194 spin_lock(&priv->slock); in islpci_interrupt()
[all …]
Disl_ioctl.c51 prism54_mib_mode_helper(islpci_private *priv, u32 iw_mode) in prism54_mib_mode_helper() argument
64 priv->iw_mode = iw_mode; in prism54_mib_mode_helper()
94 mgt_set(priv, DOT11_OID_BSSTYPE, &bsstype); in prism54_mib_mode_helper()
95 mgt_set(priv, OID_INL_CONFIG, &config); in prism54_mib_mode_helper()
96 mgt_set(priv, OID_INL_MODE, &mode); in prism54_mib_mode_helper()
110 prism54_mib_init(islpci_private *priv) in prism54_mib_init() argument
115 .addr = priv->device_psm_buffer in prism54_mib_init()
128 mgt_set(priv, DOT11_OID_CHANNEL, &channel); in prism54_mib_init()
129 mgt_set(priv, DOT11_OID_AUTHENABLE, &authen); in prism54_mib_init()
130 mgt_set(priv, DOT11_OID_PRIVACYINVOKED, &wep); in prism54_mib_init()
[all …]
/linux-2.4.37.9/drivers/usb/
Dbrlvger.c123 static int brlvger_get_hw_version(struct brlvger_priv *priv,
125 static int brlvger_get_fw_version(struct brlvger_priv *priv,
127 static int brlvger_get_serial(struct brlvger_priv *priv,
129 static int brlvger_get_display_length(struct brlvger_priv *priv);
130 static int brlvger_set_display_on_off(struct brlvger_priv *priv, __u16 on);
131 static int brlvger_beep(struct brlvger_priv *priv, __u16 duration);
132 static int brlvger_set_display_voltage(struct brlvger_priv *priv,
135 struct brlvger_priv *priv, unsigned pipe_dir,
139 #define controlmsg(priv,pipe_dir,a,b,c,d,e,f) \ argument
140 mycontrolmsg(__FUNCTION__, priv, pipe_dir, \
[all …]
Duss720.c68 struct parport_uss720_private *priv = pp->private_data; in get_1284_register() local
69 struct usb_device *usbdev = priv->usbdev; in get_1284_register()
77 …rol_msg(usbdev, usb_rcvctrlpipe(usbdev,0), 3, 0xc0, ((unsigned int)reg) << 8, 0, priv->reg, 7, HZ); in get_1284_register()
85 (unsigned int)reg, (unsigned int)priv->reg[0], (unsigned int)priv->reg[1], in get_1284_register()
86 (unsigned int)priv->reg[2], (unsigned int)priv->reg[3], (unsigned int)priv->reg[4], in get_1284_register()
87 (unsigned int)priv->reg[5], (unsigned int)priv->reg[6]); in get_1284_register()
90 if (priv->reg[2] & priv->reg[1] & 0x10) in get_1284_register()
95 *val = priv->reg[(reg >= 9) ? 0 : regindex[reg]]; in get_1284_register()
101 struct parport_uss720_private *priv = pp->private_data; in set_1284_register() local
102 struct usb_device *usbdev = priv->usbdev; in set_1284_register()
[all …]
/linux-2.4.37.9/arch/cris/drivers/
Dgpio.c245 #define USE_PORTS(priv) ((priv)->minor <= GPIO_MINOR_B) argument
254 struct gpio_private *priv = (struct gpio_private *)file->private_data; in gpio_poll() local
256 poll_wait(file, &priv->alarm_wq, wait); in gpio_poll()
257 if (priv->minor == GPIO_MINOR_A) { in gpio_poll()
264 tmp = ~data & priv->highalarm & 0xFF; in gpio_poll()
271 } else if (priv->minor == GPIO_MINOR_B) in gpio_poll()
273 else if (priv->minor == GPIO_MINOR_G) in gpio_poll()
278 if ((data & priv->highalarm) || in gpio_poll()
279 (~data & priv->lowalarm)) { in gpio_poll()
289 struct gpio_private *priv = alarmlist; in etrax_gpio_wake_up_check() local
[all …]
/linux-2.4.37.9/drivers/net/
Daironet4500_core.c128 if (((struct awc_private*) dev->priv)->ejected) in awc_command_busy_clear_wait()
148 if (((struct awc_private*) dev->priv)->ejected) in awc_command_busy_clear_wait()
178 AWC_LOCK_COMMAND_ISSUING(cmd->priv); in awc_issue_command_and_block()
182 if (cmd->priv->sleeping_bap) udelay(sleep_before_command); in awc_issue_command_and_block()
188 if (cmd->priv->sleeping_bap) udelay(sleep_in_command); in awc_issue_command_and_block()
192 if(cmd->priv->enabled_interrupts & 0x10) in awc_issue_command_and_block()
193 cmd->priv->enabled_interrupts &= ~0x10; in awc_issue_command_and_block()
205 if (cmd->priv->ejected) in awc_issue_command_and_block()
226 if (cmd->priv->ejected) in awc_issue_command_and_block()
230 if (cmd->priv->sleeping_bap) udelay(sleep_in_command); in awc_issue_command_and_block()
[all …]
Darlan.c165 if (atomic_dec_and_test(&((struct arlan_private * )dev->priv)->card_users))\
168 atomic_inc(&((struct arlan_private * )dev->priv)->card_users);
172 {((struct arlan_private *) dev->priv)->under_command++;}
174 {((struct arlan_private *) dev->priv)->under_command =0;}
176 (((struct arlan_private *) dev->priv)->under_command)
181 {((struct arlan_private *) dev->priv)->under_toggle++;}
183 {((struct arlan_private *) dev->priv)->under_toggle=0;}
185 (((struct arlan_private *) dev->priv)->under_toggle)
191 struct arlan_private *priv = ((struct arlan_private *) dev->priv); in arlan_drop_tx() local
193 priv->stats.tx_errors++; in arlan_drop_tx()
[all …]
Dtlan.c384 TLanPrivateInfo *priv = dev->priv; in TLan_SetTimer() local
388 spin_lock_irqsave(&priv->lock, flags); in TLan_SetTimer()
389 if ( priv->timer.function != NULL && in TLan_SetTimer()
390 priv->timerType != TLAN_TIMER_ACTIVITY ) { in TLan_SetTimer()
392 spin_unlock_irqrestore(&priv->lock, flags); in TLan_SetTimer()
395 priv->timer.function = &TLan_Timer; in TLan_SetTimer()
397 spin_unlock_irqrestore(&priv->lock, flags); in TLan_SetTimer()
399 priv->timer.data = (unsigned long) dev; in TLan_SetTimer()
400 priv->timerSetAt = jiffies; in TLan_SetTimer()
401 priv->timerType = type; in TLan_SetTimer()
[all …]
Dibmlana.c231 ibmlana_priv *priv = (ibmlana_priv *) dev->priv; in InitDscrs() local
245 priv->tdastart = addr = 0; in InitDscrs()
246 priv->txbufstart = baddr = sizeof(tda_t) * TXBUFCNT; in InitDscrs()
256 tda.link = priv->tdastart; in InitDscrs()
267 priv->rxbufcnt = (dev->mem_end - dev->mem_start - baddr) / in InitDscrs()
272 priv->rrastart = raddr = priv->txbufstart + (TXBUFCNT * PKTSIZE); in InitDscrs()
273 priv->rdastart = addr = in InitDscrs()
274 priv->rrastart + (priv->rxbufcnt * sizeof(rra_t)); in InitDscrs()
275 priv->rxbufstart = baddr = in InitDscrs()
276 priv->rdastart + (priv->rxbufcnt * sizeof(rda_t)); in InitDscrs()
[all …]
Dsk_mca.c224 skmca_priv *priv = (skmca_priv *) dev->priv; in ResetBoard() local
226 SKMCA_WRITEB(CTRL_RESET_ON, priv->ctrladdr); in ResetBoard()
228 SKMCA_WRITEB(CTRL_RESET_OFF, priv->ctrladdr); in ResetBoard()
235 skmca_priv *priv = (skmca_priv *) dev->priv; in WaitLANCE() local
238 while ((SKMCA_READB(priv->ctrladdr) & STAT_IO_BUSY) == in WaitLANCE()
254 skmca_priv *priv = (skmca_priv *) dev->priv; in SetLANCE() local
269 priv->ctrladdr); in SetLANCE()
270 SKMCA_WRITEW(addr, priv->ioregaddr); in SetLANCE()
271 SKMCA_WRITEB(IOCMD_GO, priv->cmdaddr); in SetLANCE()
278 priv->ctrladdr); in SetLANCE()
[all …]
Dam79c961a.c189 struct dev_priv *priv = (struct dev_priv *)dev->priv; in am79c961_init_for_open() local
198 spin_lock_irqsave(priv->chip_lock, flags); in am79c961_init_for_open()
200 spin_unlock_irqrestore(priv->chip_lock, flags); in am79c961_init_for_open()
225 priv->rxhead = 0; in am79c961_init_for_open()
226 priv->rxtail = 0; in am79c961_init_for_open()
227 priv->rxhdr = hdr_addr; in am79c961_init_for_open()
230 priv->rxbuffer[i] = first_free_addr; in am79c961_init_for_open()
238 priv->txhead = 0; in am79c961_init_for_open()
239 priv->txtail = 0; in am79c961_init_for_open()
240 priv->txhdr = hdr_addr; in am79c961_init_for_open()
[all …]
/linux-2.4.37.9/drivers/message/fusion/
Dmptlan.c339 struct mpt_lan_priv *priv = (struct mpt_lan_priv *) dev->priv; in mpt_lan_ioc_reset() local
345 if (priv->mpt_rxfidx == NULL) in mpt_lan_ioc_reset()
358 atomic_set(&priv->buckets_out, 0); in mpt_lan_ioc_reset()
361 spin_lock_irqsave(&priv->rxfidx_lock, flags); in mpt_lan_ioc_reset()
362 priv->mpt_rxfidx_tail = -1; in mpt_lan_ioc_reset()
363 for (i = 0; i < priv->max_buckets_out; i++) in mpt_lan_ioc_reset()
364 priv->mpt_rxfidx[++priv->mpt_rxfidx_tail] = i; in mpt_lan_ioc_reset()
365 spin_unlock_irqrestore(&priv->rxfidx_lock, flags); in mpt_lan_ioc_reset()
411 struct mpt_lan_priv *priv = (struct mpt_lan_priv *) dev->priv; in mpt_lan_open() local
415 MPT_ADAPTER *mpt_dev = priv->mpt_dev; in mpt_lan_open()
[all …]
/linux-2.4.37.9/drivers/message/i2o/
Di2o_lan.c133 struct i2o_lan_local *priv = (struct i2o_lan_local *)dev->priv; in i2o_lan_handle_failure() local
134 struct i2o_device *i2o_dev = priv->i2o_dev; in i2o_lan_handle_failure()
151 atomic_dec(&priv->tx_out); in i2o_lan_handle_failure()
168 atomic_dec(&priv->buckets_out); in i2o_lan_handle_failure()
189 struct i2o_lan_local *priv = (struct i2o_lan_local *)dev->priv; in i2o_lan_handle_transaction_error() local
199 atomic_dec(&priv->tx_out); in i2o_lan_handle_transaction_error()
210 atomic_dec(&priv->buckets_out); in i2o_lan_handle_transaction_error()
251 struct i2o_lan_local *priv = (struct i2o_lan_local *)dev->priv; in i2o_lan_send_post_reply() local
271 atomic_dec(&priv->tx_out); in i2o_lan_send_post_reply()
291 struct i2o_lan_local *priv = (struct i2o_lan_local *)dev->priv; in i2o_lan_receive_post_reply() local
[all …]
/linux-2.4.37.9/net/atm/
Dlec.c74 static struct lec_arp_table* lec_arp_find(struct lec_priv *priv,
76 static int lec_arp_remove(struct lec_priv *priv,
117 struct lec_priv *priv; in lec_handle_bridge() local
136 priv = (struct lec_priv *)dev->priv; in lec_handle_bridge()
137 atm_force_charge(priv->lecd, skb2->truesize); in lec_handle_bridge()
138 skb_queue_tail(&priv->lecd->sk->receive_queue, skb2); in lec_handle_bridge()
139 wake_up(&priv->lecd->sleep); in lec_handle_bridge()
203 struct lec_priv *priv = (struct lec_priv *)dev->priv; in lec_open() local
206 memset(&priv->stats,0,sizeof(struct net_device_stats)); in lec_open()
212 lec_send(struct atm_vcc *vcc, struct sk_buff *skb, struct lec_priv *priv) in lec_send() argument
[all …]
/linux-2.4.37.9/drivers/usb/serial/
Ddigi_acceleport.c599 struct digi_port *priv = (struct digi_port *)(port->private); in digi_wakeup_write_lock() local
602 spin_lock_irqsave( &priv->dp_port_lock, flags ); in digi_wakeup_write_lock()
604 spin_unlock_irqrestore( &priv->dp_port_lock, flags ); in digi_wakeup_write_lock()
707 struct digi_port *priv = (struct digi_port *)(port->private); in digi_write_inb_command() local
712 dbg( "digi_write_inb_command: TOP: port=%d, count=%d", priv->dp_port_num, in digi_write_inb_command()
720 spin_lock_irqsave( &priv->dp_port_lock, flags ); in digi_write_inb_command()
725 || priv->dp_write_urb_in_use) && time_before(jiffies, timeout)) { in digi_write_inb_command()
728 &priv->dp_port_lock, flags ); in digi_write_inb_command()
732 spin_lock_irqsave( &priv->dp_port_lock, flags ); in digi_write_inb_command()
738 len = min(count, port->bulk_out_size-2-priv->dp_out_buf_len ); in digi_write_inb_command()
[all …]
Dcyberjack.c104 struct cyberjack_private *priv; in cyberjack_startup() local
114 priv = (struct cyberjack_private *)serial->port->private; in cyberjack_startup()
115 priv->rdtodo = 0; in cyberjack_startup()
116 priv->wrfilled = 0; in cyberjack_startup()
117 priv->wrsent = 0; in cyberjack_startup()
139 struct cyberjack_private *priv; in cyberjack_open() local
153 priv = (struct cyberjack_private *)port->private; in cyberjack_open()
154 priv->rdtodo = 0; in cyberjack_open()
155 priv->wrfilled = 0; in cyberjack_open()
156 priv->wrsent = 0; in cyberjack_open()
[all …]
/linux-2.4.37.9/drivers/acorn/net/
Dether3.c86 static int ether3_rx(struct net_device *dev, struct dev_priv *priv, unsigned int maxcnt);
87 static void ether3_tx(struct net_device *dev, struct dev_priv *priv);
129 struct dev_priv *priv = (struct dev_priv *)dev->priv; in ether3_setbuffer() local
132 ether3_outw(priv->regs.config1 | CFG1_LOCBUFMEM, REG_CONFIG1); in ether3_setbuffer()
133 ether3_outw(priv->regs.command | CMD_FIFOWRITE, REG_COMMAND); in ether3_setbuffer()
138 priv->broken = 1; in ether3_setbuffer()
146 ether3_outw(priv->regs.command | CMD_FIFOREAD, REG_COMMAND); in ether3_setbuffer()
148 ether3_outw(priv->regs.command | CMD_FIFOWRITE, REG_COMMAND); in ether3_setbuffer()
188 struct dev_priv *priv = (struct dev_priv *)dev->priv; in ether3_ledoff() local
189 ether3_outw(priv->regs.config2 |= CFG2_CTRLO, REG_CONFIG2); in ether3_ledoff()
[all …]
/linux-2.4.37.9/drivers/mtd/devices/
Dpmc551.c121 struct mypriv *priv = (struct mypriv *)mtd->priv; in pmc551_erase() local
142 eoff_hi = end & ~(priv->asize - 1); in pmc551_erase()
143 soff_hi = instr->addr & ~(priv->asize - 1); in pmc551_erase()
144 eoff_lo = end & (priv->asize - 1); in pmc551_erase()
145 soff_lo = instr->addr & (priv->asize - 1); in pmc551_erase()
149 if ( soff_hi == eoff_hi || mtd->size == priv->asize) { in pmc551_erase()
160 memset(ptr, 0xff, priv->asize); in pmc551_erase()
161 if (soff_hi + priv->asize >= mtd->size) { in pmc551_erase()
164 soff_hi += priv->asize; in pmc551_erase()
165 pmc551_point (mtd,(priv->base_map0|soff_hi), in pmc551_erase()
[all …]
/linux-2.4.37.9/drivers/char/drm-4.0/
Dfops.c42 drm_file_t *priv; in drm_open_helper() local
49 priv = drm_alloc(sizeof(*priv), DRM_MEM_FILES); in drm_open_helper()
50 if(priv == NULL) in drm_open_helper()
52 memset(priv, 0, sizeof(*priv)); in drm_open_helper()
54 filp->private_data = priv; in drm_open_helper()
55 priv->uid = current->euid; in drm_open_helper()
56 priv->pid = current->pid; in drm_open_helper()
57 priv->minor = minor; in drm_open_helper()
58 priv->dev = dev; in drm_open_helper()
59 priv->ioctl_count = 0; in drm_open_helper()
[all …]
/linux-2.4.37.9/drivers/hil/
Dhp_sdc_mlc.c133 struct hp_sdc_mlc_priv_s *priv; in hp_sdc_mlc_in() local
136 priv = mlc->priv; in hp_sdc_mlc_in()
143 if (priv->emtestmode) { in hp_sdc_mlc_in()
175 struct hp_sdc_mlc_priv_s *priv; in hp_sdc_mlc_cts() local
178 priv = mlc->priv; in hp_sdc_mlc_cts()
196 if (priv->trans.act.semaphore != &(mlc->csem)) goto poll; in hp_sdc_mlc_cts()
199 if (!(priv->tseq[4] & HP_SDC_USE_LOOP)) goto done; in hp_sdc_mlc_cts()
202 priv->trans.act.semaphore = &(mlc->csem); in hp_sdc_mlc_cts()
203 priv->trans.actidx = 0; in hp_sdc_mlc_cts()
204 priv->trans.idx = 1; in hp_sdc_mlc_cts()
[all …]
/linux-2.4.37.9/drivers/char/ipmi/
Dipmi_devintf.c61 struct ipmi_file_private *priv = handler_data; in file_receive_handler() local
65 spin_lock_irqsave(&(priv->recv_msg_lock), flags); in file_receive_handler()
67 was_empty = list_empty(&(priv->recv_msgs)); in file_receive_handler()
68 list_add_tail(&(msg->link), &(priv->recv_msgs)); in file_receive_handler()
71 wake_up_interruptible(&priv->wait); in file_receive_handler()
72 kill_fasync(&priv->fasync_queue, SIGIO, POLL_IN); in file_receive_handler()
75 spin_unlock_irqrestore(&(priv->recv_msg_lock), flags); in file_receive_handler()
80 struct ipmi_file_private *priv = file->private_data; in ipmi_poll() local
84 poll_wait(file, &priv->wait, wait); in ipmi_poll()
86 spin_lock_irqsave(&priv->recv_msg_lock, flags); in ipmi_poll()
[all …]
/linux-2.4.37.9/drivers/mtd/chips/
Djedec.c21 struct jedec_private *priv);
23 struct jedec_private *priv);
25 struct jedec_private *priv);
26 static void jedec_flash_chip_scan(struct jedec_private *priv,unsigned long start,
67 struct jedec_private *priv; in jedec_probe() local
73 memset(&priv,0,sizeof(priv)); in jedec_probe()
80 priv = (struct jedec_private *)&MTD[1]; in jedec_probe()
98 if (jedec_probe8(map,Base,priv) == 0) { in jedec_probe()
105 jedec_probe16(map,Base,priv); in jedec_probe()
107 jedec_probe32(map,Base,priv); in jedec_probe()
[all …]

12345678910>>...24