Home
last modified time | relevance | path

Searched refs:dev (Results 1 – 25 of 2070) sorted by relevance

12345678910>>...83

/linux-2.4.37.9/drivers/net/
Dnet_init.c77 struct net_device *dev; in alloc_netdev() local
81 alloc_size = sizeof (*dev) + sizeof_priv + 31; in alloc_netdev()
83 dev = (struct net_device *) kmalloc (alloc_size, GFP_KERNEL); in alloc_netdev()
84 if (dev == NULL) in alloc_netdev()
90 memset(dev, 0, alloc_size); in alloc_netdev()
93 dev->priv = (void *) (((long)(dev + 1) + 31) & ~31); in alloc_netdev()
95 setup(dev); in alloc_netdev()
96 strcpy(dev->name, mask); in alloc_netdev()
98 return dev; in alloc_netdev()
104 struct net_device *dev; in init_alloc_dev() local
[all …]
Dns83820.c376 #define __kick_rx(dev) writel(CR_RXE, dev->base + CR) argument
378 #define kick_rx(dev) do { \ argument
380 if (test_and_clear_bit(0, &dev->rx_info.idle)) { \
382 writel(dev->rx_info.phy_descs + (4 * DESC_SIZE * dev->rx_info.next_rx), dev->base + RXDP); \
383 if (dev->rx_info.next_rx == dev->rx_info.next_empty) \
384 printk(KERN_DEBUG "%s: uh-oh: next_rx == next_empty???\n", dev->net_dev.name);\
385 __kick_rx(dev); \
481 #define start_tx_okay(dev) \ argument
482 (((NR_TX_DESC-2 + dev->tx_done_idx - dev->tx_free_idx) % NR_TX_DESC) > MIN_TX_DESC_FREE)
498 static inline void build_rx_desc(struct ns83820 *dev, u32 *desc, dma_addr_t link, dma_addr_t buf, u… in build_rx_desc() argument
[all …]
Dde620.c159 #define DATA_PORT (dev->base_addr)
160 #define STATUS_PORT (dev->base_addr + 1)
161 #define COMMAND_PORT (dev->base_addr + 2)
269 de620_ready(struct net_device *dev) in de620_ready() argument
284 de620_send_command(struct net_device *dev, byte cmd) in de620_send_command() argument
286 de620_ready(dev); in de620_send_command()
293 de620_ready(dev); in de620_send_command()
298 de620_put_byte(struct net_device *dev, byte value) in de620_put_byte() argument
301 de620_ready(dev); in de620_put_byte()
303 de620_flip_ds(dev); in de620_put_byte()
[all …]
Dcirrus.c94 static inline u16 cirrus_read (struct net_device *dev,u16 reg) in cirrus_read() argument
96 outw (reg,dev->base_addr + PP_Address); in cirrus_read()
97 return (inw (dev->base_addr + PP_Data)); in cirrus_read()
100 static inline void cirrus_write (struct net_device *dev,u16 reg,u16 value) in cirrus_write() argument
102 outw (reg,dev->base_addr + PP_Address); in cirrus_write()
103 outw (value,dev->base_addr + PP_Data); in cirrus_write()
106 static inline void cirrus_set (struct net_device *dev,u16 reg,u16 value) in cirrus_set() argument
108 cirrus_write (dev,reg,cirrus_read (dev,reg) | value); in cirrus_set()
111 static inline void cirrus_clear (struct net_device *dev,u16 reg,u16 value) in cirrus_clear() argument
113 cirrus_write (dev,reg,cirrus_read (dev,reg) & ~value); in cirrus_clear()
[all …]
Dni5010.c103 extern int ni5010_probe(struct net_device *dev);
104 static int ni5010_probe1(struct net_device *dev, int ioaddr);
105 static int ni5010_open(struct net_device *dev);
106 static int ni5010_send_packet(struct sk_buff *skb, struct net_device *dev);
108 static void ni5010_rx(struct net_device *dev);
109 static void ni5010_timeout(struct net_device *dev);
110 static int ni5010_close(struct net_device *dev);
111 static struct net_device_stats *ni5010_get_stats(struct net_device *dev);
112 static void ni5010_set_multicast_list(struct net_device *dev);
113 static void reset_receiver(struct net_device *dev);
[all …]
/linux-2.4.37.9/drivers/net/tokenring/
Dtmsisa.c65 int tms_isa_probe(struct net_device *dev);
66 static int tms_isa_open(struct net_device *dev);
67 static int tms_isa_close(struct net_device *dev);
68 static void tms_isa_read_eeprom(struct net_device *dev);
69 static unsigned short tms_isa_setnselout_pins(struct net_device *dev);
71 static unsigned short tms_isa_sifreadb(struct net_device *dev, unsigned short reg) in tms_isa_sifreadb() argument
73 return inb(dev->base_addr + reg); in tms_isa_sifreadb()
76 static unsigned short tms_isa_sifreadw(struct net_device *dev, unsigned short reg) in tms_isa_sifreadw() argument
78 return inw(dev->base_addr + reg); in tms_isa_sifreadw()
81 static void tms_isa_sifwriteb(struct net_device *dev, unsigned short val, unsigned short reg) in tms_isa_sifwriteb() argument
[all …]
/linux-2.4.37.9/drivers/isdn/pcbit/
Dlayer2.c62 extern void pcbit_l3_receive(struct pcbit_dev *dev, ulong msg,
71 static void pcbit_transmit(struct pcbit_dev *dev);
73 static void pcbit_recv_ack(struct pcbit_dev *dev, unsigned char ack);
75 static void pcbit_l2_error(struct pcbit_dev *dev);
76 static void pcbit_l2_active_conf(struct pcbit_dev *dev, u_char info);
79 static void pcbit_firmware_bug(struct pcbit_dev *dev);
82 pcbit_sched_delivery(struct pcbit_dev *dev) in pcbit_sched_delivery() argument
84 queue_task(&dev->qdelivery, &tq_immediate); in pcbit_sched_delivery()
94 pcbit_l2_write(struct pcbit_dev *dev, ulong msg, ushort refnum, in pcbit_l2_write() argument
101 if (dev->l2_state != L2_RUNNING && dev->l2_state != L2_LOADING) { in pcbit_l2_write()
[all …]
Ddrv.c66 static int set_protocol_running(struct pcbit_dev * dev);
68 static void pcbit_clear_msn(struct pcbit_dev *dev);
69 static void pcbit_set_msn(struct pcbit_dev *dev, char *list);
70 static int pcbit_check_msn(struct pcbit_dev *dev, char *msn);
77 struct pcbit_dev *dev; in pcbit_init_dev() local
80 if ((dev=kmalloc(sizeof(struct pcbit_dev), GFP_KERNEL)) == NULL) in pcbit_init_dev()
86 dev_pcbit[board] = dev; in pcbit_init_dev()
87 memset(dev, 0, sizeof(struct pcbit_dev)); in pcbit_init_dev()
88 init_waitqueue_head(&dev->set_running_wq); in pcbit_init_dev()
91 dev->ph_mem = mem_base; in pcbit_init_dev()
[all …]
Dlayer2.h122 extern int pcbit_l2_write(struct pcbit_dev * dev, ulong msg, ushort refnum,
130 static __inline__ void log_state(struct pcbit_dev *dev) { in log_state() argument
132 (ulong) (dev->writeptr - dev->sh_mem)); in log_state()
134 (ulong) (dev->readptr - (dev->sh_mem + BANK2))); in log_state()
136 dev->rcv_seq, dev->send_seq, dev->unack_seq); in log_state()
142 struct pcbit_dev * dev; in chan2dev() local
147 if ((dev=dev_pcbit[i])) in chan2dev()
148 if (dev->b1 == chan || dev->b2 == chan) in chan2dev()
149 return dev; in chan2dev()
156 struct pcbit_dev * dev; in finddev() local
[all …]
/linux-2.4.37.9/drivers/sbus/char/
Dvfc_dev.c57 void vfc_lock_device(struct vfc_dev *dev) in vfc_lock_device() argument
59 down(&dev->device_lock_sem); in vfc_lock_device()
62 void vfc_unlock_device(struct vfc_dev *dev) in vfc_unlock_device() argument
64 up(&dev->device_lock_sem); in vfc_unlock_device()
68 void vfc_captstat_reset(struct vfc_dev *dev) in vfc_captstat_reset() argument
70 dev->control_reg |= VFC_CONTROL_CAPTRESET; in vfc_captstat_reset()
71 sbus_writel(dev->control_reg, &dev->regs->control); in vfc_captstat_reset()
72 dev->control_reg &= ~VFC_CONTROL_CAPTRESET; in vfc_captstat_reset()
73 sbus_writel(dev->control_reg, &dev->regs->control); in vfc_captstat_reset()
74 dev->control_reg |= VFC_CONTROL_CAPTRESET; in vfc_captstat_reset()
[all …]
/linux-2.4.37.9/drivers/usb/
Drtl8150.c110 static void rtl8150_disconnect(struct usb_device *dev, void *ptr);
111 static void *rtl8150_probe(struct usb_device *dev, unsigned int ifnum,
128 static int get_registers(rtl8150_t * dev, u16 indx, u16 size, void *data) in get_registers() argument
130 return usb_control_msg(dev->udev, usb_rcvctrlpipe(dev->udev, 0), in get_registers()
135 static int set_registers(rtl8150_t * dev, u16 indx, u16 size, void *data) in set_registers() argument
137 return usb_control_msg(dev->udev, usb_sndctrlpipe(dev->udev, 0), in set_registers()
144 rtl8150_t *dev; in ctrl_callback() local
156 dev = urb->context; in ctrl_callback()
157 clear_bit(RX_REG_SET, &dev->flags); in ctrl_callback()
160 static int async_set_registers(rtl8150_t * dev, u16 indx, u16 size) in async_set_registers() argument
[all …]
/linux-2.4.37.9/drivers/char/drm-4.0/
Di810_drv.c144 static int i810_setup(drm_device_t *dev) in i810_setup() argument
148 atomic_set(&dev->ioctl_count, 0); in i810_setup()
149 atomic_set(&dev->vma_count, 0); in i810_setup()
150 dev->buf_use = 0; in i810_setup()
151 atomic_set(&dev->buf_alloc, 0); in i810_setup()
153 drm_dma_setup(dev); in i810_setup()
155 atomic_set(&dev->total_open, 0); in i810_setup()
156 atomic_set(&dev->total_close, 0); in i810_setup()
157 atomic_set(&dev->total_ioctl, 0); in i810_setup()
158 atomic_set(&dev->total_irq, 0); in i810_setup()
[all …]
Dmga_drv.c145 static int mga_setup(drm_device_t *dev) in mga_setup() argument
149 atomic_set(&dev->ioctl_count, 0); in mga_setup()
150 atomic_set(&dev->vma_count, 0); in mga_setup()
151 dev->buf_use = 0; in mga_setup()
152 atomic_set(&dev->buf_alloc, 0); in mga_setup()
154 drm_dma_setup(dev); in mga_setup()
156 atomic_set(&dev->total_open, 0); in mga_setup()
157 atomic_set(&dev->total_close, 0); in mga_setup()
158 atomic_set(&dev->total_ioctl, 0); in mga_setup()
159 atomic_set(&dev->total_irq, 0); in mga_setup()
[all …]
Dtdfx_drv.c129 static int tdfx_setup(drm_device_t *dev) in tdfx_setup() argument
133 atomic_set(&dev->ioctl_count, 0); in tdfx_setup()
134 atomic_set(&dev->vma_count, 0); in tdfx_setup()
135 dev->buf_use = 0; in tdfx_setup()
136 atomic_set(&dev->buf_alloc, 0); in tdfx_setup()
138 atomic_set(&dev->total_open, 0); in tdfx_setup()
139 atomic_set(&dev->total_close, 0); in tdfx_setup()
140 atomic_set(&dev->total_ioctl, 0); in tdfx_setup()
141 atomic_set(&dev->total_irq, 0); in tdfx_setup()
142 atomic_set(&dev->total_ctx, 0); in tdfx_setup()
[all …]
Dr128_drv.c152 static int r128_setup(drm_device_t *dev) in r128_setup() argument
156 atomic_set(&dev->ioctl_count, 0); in r128_setup()
157 atomic_set(&dev->vma_count, 0); in r128_setup()
158 dev->buf_use = 0; in r128_setup()
159 atomic_set(&dev->buf_alloc, 0); in r128_setup()
161 drm_dma_setup(dev); in r128_setup()
163 atomic_set(&dev->total_open, 0); in r128_setup()
164 atomic_set(&dev->total_close, 0); in r128_setup()
165 atomic_set(&dev->total_ioctl, 0); in r128_setup()
166 atomic_set(&dev->total_irq, 0); in r128_setup()
[all …]
Dfops.c39 int drm_open_helper(struct inode *inode, struct file *filp, drm_device_t *dev) in drm_open_helper() argument
58 priv->dev = dev; in drm_open_helper()
62 down(&dev->struct_sem); in drm_open_helper()
63 if (!dev->file_last) { in drm_open_helper()
66 dev->file_first = priv; in drm_open_helper()
67 dev->file_last = priv; in drm_open_helper()
70 priv->prev = dev->file_last; in drm_open_helper()
71 dev->file_last->next = priv; in drm_open_helper()
72 dev->file_last = priv; in drm_open_helper()
74 up(&dev->struct_sem); in drm_open_helper()
[all …]
Dgamma_drv.c135 static int gamma_setup(drm_device_t *dev) in gamma_setup() argument
139 atomic_set(&dev->ioctl_count, 0); in gamma_setup()
140 atomic_set(&dev->vma_count, 0); in gamma_setup()
141 dev->buf_use = 0; in gamma_setup()
142 atomic_set(&dev->buf_alloc, 0); in gamma_setup()
144 drm_dma_setup(dev); in gamma_setup()
146 atomic_set(&dev->total_open, 0); in gamma_setup()
147 atomic_set(&dev->total_close, 0); in gamma_setup()
148 atomic_set(&dev->total_ioctl, 0); in gamma_setup()
149 atomic_set(&dev->total_irq, 0); in gamma_setup()
[all …]
/linux-2.4.37.9/drivers/sound/
Dmidibuf.c82 static void drain_midi_queue(int dev) in drain_midi_queue() argument
89 if (midi_devs[dev]->buffer_status != NULL) in drain_midi_queue()
90 while (!signal_pending(current) && midi_devs[dev]->buffer_status(dev)) in drain_midi_queue()
91 interruptible_sleep_on_timeout(&midi_sleeper[dev], in drain_midi_queue()
95 static void midi_input_intr(int dev, unsigned char data) in midi_input_intr() argument
97 if (midi_in_buf[dev] == NULL) in midi_input_intr()
107 if (SPACE_AVAIL(midi_in_buf[dev])) { in midi_input_intr()
108 QUEUE_BYTE(midi_in_buf[dev], data); in midi_input_intr()
109 wake_up(&input_sleeper[dev]); in midi_input_intr()
113 static void midi_output_intr(int dev) in midi_output_intr() argument
[all …]
Dmsnd_pinnacle.c79 dev.play_sample_size / 8 / \
80 dev.play_sample_rate / \
81 dev.play_channels)
84 dev.rec_sample_size / 8 / \
85 dev.rec_sample_rate / \
86 dev.rec_channels)
88 static multisound_dev_t dev; variable
98 static __inline__ int chk_send_dsp_cmd(multisound_dev_t *dev, register BYTE cmd) in chk_send_dsp_cmd() argument
100 if (msnd_send_dsp_cmd(dev, cmd) == 0) in chk_send_dsp_cmd()
103 return msnd_send_dsp_cmd(dev, cmd); in chk_send_dsp_cmd()
[all …]
/linux-2.4.37.9/arch/parisc/kernel/
Ddrivers.c42 #define for_each_padev(dev) \ argument
43 for (dev = root.child; dev != NULL; dev = next_dev(dev))
45 #define check_dev(dev) \ argument
46 (dev->id.hw_type != HPHW_FAULTY) ? dev : next_dev(dev)
55 struct parisc_device *next_dev(struct parisc_device *dev) in next_dev() argument
57 if (dev->child) { in next_dev()
58 return check_dev(dev->child); in next_dev()
59 } else if (dev->sibling) { in next_dev()
60 return dev->sibling; in next_dev()
65 dev = dev->parent; in next_dev()
[all …]
/linux-2.4.37.9/net/core/
Dethtool.c25 u32 ethtool_op_get_link(struct net_device *dev) in ethtool_op_get_link() argument
27 return netif_carrier_ok(dev) ? 1 : 0; in ethtool_op_get_link()
30 u32 ethtool_op_get_tx_csum(struct net_device *dev) in ethtool_op_get_tx_csum() argument
32 return (dev->features & NETIF_F_IP_CSUM) != 0; in ethtool_op_get_tx_csum()
35 int ethtool_op_set_tx_csum(struct net_device *dev, u32 data) in ethtool_op_set_tx_csum() argument
38 dev->features |= NETIF_F_IP_CSUM; in ethtool_op_set_tx_csum()
40 dev->features &= ~NETIF_F_IP_CSUM; in ethtool_op_set_tx_csum()
45 u32 ethtool_op_get_sg(struct net_device *dev) in ethtool_op_get_sg() argument
47 return (dev->features & NETIF_F_SG) != 0; in ethtool_op_get_sg()
50 int ethtool_op_set_sg(struct net_device *dev, u32 data) in ethtool_op_set_sg() argument
[all …]
Ddev.c174 static int net_run_sbin_hotplug(struct net_device *dev, char *action);
176 #define net_run_sbin_hotplug(dev, action) ({ 0; }) argument
244 dev_clear_fastroute(pt->dev); in dev_add_pack()
346 int netdev_boot_setup_check(struct net_device *dev) in netdev_boot_setup_check() argument
354 !strncmp(dev->name, s[i].name, strlen(s[i].name))) { in netdev_boot_setup_check()
355 dev->irq = s[i].map.irq; in netdev_boot_setup_check()
356 dev->base_addr = s[i].map.base_addr; in netdev_boot_setup_check()
357 dev->mem_start = s[i].map.mem_start; in netdev_boot_setup_check()
358 dev->mem_end = s[i].map.mem_end; in netdev_boot_setup_check()
414 struct net_device *dev; in __dev_get_by_name() local
[all …]
/linux-2.4.37.9/arch/mips/cobalt/
Dpci.c27 static void qube_expansion_slot_bist(struct pci_dev *dev) in qube_expansion_slot_bist() argument
32 pci_read_config_byte(dev, PCI_BIST, &ctrl); in qube_expansion_slot_bist()
36 pci_write_config_byte(dev, PCI_BIST, ctrl|PCI_BIST_START); in qube_expansion_slot_bist()
38 pci_read_config_byte(dev, PCI_BIST, &ctrl); in qube_expansion_slot_bist()
47 static void qube_expansion_slot_fixup(struct pci_dev *dev) in qube_expansion_slot_fixup() argument
55 pci_read_config_word(dev, PCI_COMMAND, &pci_cmd); in qube_expansion_slot_fixup()
57 pci_write_config_word(dev, PCI_COMMAND, pci_cmd); in qube_expansion_slot_fixup()
60 pci_write_config_byte(dev, PCI_INTERRUPT_LINE, COBALT_QUBE_SLOT_IRQ); in qube_expansion_slot_fixup()
61 dev->irq = COBALT_QUBE_SLOT_IRQ; in qube_expansion_slot_fixup()
63 ioaddr_base += 0x2000 * PCI_FUNC(dev->devfn); in qube_expansion_slot_fixup()
[all …]
/linux-2.4.37.9/drivers/scsi/aacraid/
Drx.c50 struct aac_dev *dev = dev_id; in aac_rx_intr() local
53 intstat = rx_readb(dev, MUnit.OISR); in aac_rx_intr()
59 mask = ~(rx_readb(dev, MUnit.OIMR)); in aac_rx_intr()
63 bellbits = rx_readl(dev, OutboundDoorbellReg); in aac_rx_intr()
65 aac_printf(dev, le32_to_cpu(rx_readl (dev, IndexRegs.Mailbox[5]))); in aac_rx_intr()
66 rx_writel(dev, MUnit.ODR,DoorBellPrintfReady); in aac_rx_intr()
67 rx_writel(dev, InboundDoorbellReg,DoorBellPrintfDone); in aac_rx_intr()
70 aac_command_normal(&dev->queues->queue[HostNormCmdQueue]); in aac_rx_intr()
71 rx_writel(dev, MUnit.ODR, DoorBellAdapterNormCmdReady); in aac_rx_intr()
74 aac_response_normal(&dev->queues->queue[HostNormRespQueue]); in aac_rx_intr()
[all …]
/linux-2.4.37.9/drivers/char/drm/
Ddrm_fops.h38 int DRM(open_helper)(struct inode *inode, struct file *filp, drm_device_t *dev) in DRM()
56 priv->dev = dev; in DRM()
60 down(&dev->struct_sem); in DRM()
61 if (!dev->file_last) { in DRM()
64 dev->file_first = priv; in DRM()
65 dev->file_last = priv; in DRM()
68 priv->prev = dev->file_last; in DRM()
69 dev->file_last->next = priv; in DRM()
70 dev->file_last = priv; in DRM()
72 up(&dev->struct_sem); in DRM()
[all …]

12345678910>>...83