Home
last modified time | relevance | path

Searched refs:self (Results 1 – 25 of 260) sorted by relevance

1234567891011

/drivers/net/irda/
Ddonauboe.c244 toshoboe_dumpregs (struct toshoboe_cb *self) in toshoboe_dumpregs() argument
256 self->int_tx, self->int_rx, self->int_txunder, self->int_rxover, in toshoboe_dumpregs()
257 self->int_sip); in toshoboe_dumpregs()
274 if (self->ring) in toshoboe_dumpregs()
277 ringbase = virt_to_bus (self->ring); in toshoboe_dumpregs()
281 printk (" (%d,%02x)",self->ring->rx[i].len,self->ring->rx[i].control); in toshoboe_dumpregs()
285 printk (" (%d,%02x)",self->ring->tx[i].len,self->ring->tx[i].control); in toshoboe_dumpregs()
293 toshoboe_disablebm (struct toshoboe_cb *self) in toshoboe_disablebm() argument
298 pci_read_config_byte (self->pdev, PCI_COMMAND, &command); in toshoboe_disablebm()
300 pci_write_config_byte (self->pdev, PCI_COMMAND, command); in toshoboe_disablebm()
[all …]
Dirda-usb.c109 static void irda_usb_init_qos(struct irda_usb_cb *self) ;
112 static void irda_usb_change_speed_xbofs(struct irda_usb_cb *self);
115 static int irda_usb_open(struct irda_usb_cb *self);
116 static void irda_usb_close(struct irda_usb_cb *self);
148 static void irda_usb_build_header(struct irda_usb_cb *self, in irda_usb_build_header() argument
156 if (self->capability & IUC_STIR421X && in irda_usb_build_header()
157 ((self->new_speed != -1) || (self->new_xbofs != -1))) { in irda_usb_build_header()
162 if (self->new_speed == -1) in irda_usb_build_header()
163 self->new_speed = self->speed ; in irda_usb_build_header()
165 if (self->new_xbofs == -1) in irda_usb_build_header()
[all …]
Dsh_irda.c135 int (*xir_fre) (struct sh_irda_self *self);
136 int (*xir_trov) (struct sh_irda_self *self);
137 int (*xir_9) (struct sh_irda_self *self);
138 int (*xir_8) (struct sh_irda_self *self);
139 int (*xir_fte) (struct sh_irda_self *self);
168 static void sh_irda_write(struct sh_irda_self *self, u32 offset, u16 data) in sh_irda_write() argument
172 spin_lock_irqsave(&self->lock, flags); in sh_irda_write()
173 iowrite16(data, self->membase + offset); in sh_irda_write()
174 spin_unlock_irqrestore(&self->lock, flags); in sh_irda_write()
177 static u16 sh_irda_read(struct sh_irda_self *self, u32 offset) in sh_irda_read() argument
[all …]
Dvia-ircc.c81 static int via_ircc_dma_receive(struct via_ircc_cb *self);
82 static int via_ircc_dma_receive_complete(struct via_ircc_cb *self,
88 static void via_hw_init(struct via_ircc_cb *self);
89 static void via_ircc_change_speed(struct via_ircc_cb *self, __u32 baud);
91 static int via_ircc_is_receiving(struct via_ircc_cb *self);
100 static int RxTimerHandler(struct via_ircc_cb *self, int iobase);
101 static void hwreset(struct via_ircc_cb *self);
102 static int via_ircc_dma_xmit(struct via_ircc_cb *self, u16 iobase);
103 static int upload_rxdata(struct via_ircc_cb *self, int iobase);
289 struct via_ircc_cb *self; in via_ircc_open() local
[all …]
Dali-ircc.c105 static int ali_ircc_close(struct ali_ircc_cb *self);
108 static int ali_ircc_is_receiving(struct ali_ircc_cb *self);
112 static void ali_ircc_change_speed(struct ali_ircc_cb *self, __u32 baud);
117 static irqreturn_t ali_ircc_sir_interrupt(struct ali_ircc_cb *self);
118 static void ali_ircc_sir_receive(struct ali_ircc_cb *self);
119 static void ali_ircc_sir_write_wakeup(struct ali_ircc_cb *self);
127 static irqreturn_t ali_ircc_fir_interrupt(struct ali_ircc_cb *self);
128 static int ali_ircc_dma_receive(struct ali_ircc_cb *self);
129 static int ali_ircc_dma_receive_complete(struct ali_ircc_cb *self);
130 static int ali_ircc_dma_xmit_complete(struct ali_ircc_cb *self);
[all …]
Dw83977af_ir.c88 static int w83977af_close(struct w83977af_ir *self);
90 static int w83977af_dma_receive(struct w83977af_ir *self);
91 static int w83977af_dma_receive_complete(struct w83977af_ir *self);
95 static void w83977af_dma_write(struct w83977af_ir *self, int iobase);
96 static void w83977af_change_speed(struct w83977af_ir *self, __u32 speed);
97 static int w83977af_is_receiving(struct w83977af_ir *self);
157 struct w83977af_ir *self; in w83977af_open() local
184 self = netdev_priv(dev); in w83977af_open()
185 spin_lock_init(&self->lock); in w83977af_open()
189 self->io.fir_base = iobase; in w83977af_open()
[all …]
Dsh_sir.c127 static void sh_sir_write(struct sh_sir_self *self, u32 offset, u16 data) in sh_sir_write() argument
129 iowrite16(data, self->membase + offset); in sh_sir_write()
132 static u16 sh_sir_read(struct sh_sir_self *self, u32 offset) in sh_sir_read() argument
134 return ioread16(self->membase + offset); in sh_sir_read()
137 static void sh_sir_update_bits(struct sh_sir_self *self, u32 offset, in sh_sir_update_bits() argument
142 old = sh_sir_read(self, offset); in sh_sir_update_bits()
145 sh_sir_write(self, offset, new); in sh_sir_update_bits()
155 static void sh_sir_crc_reset(struct sh_sir_self *self) in sh_sir_crc_reset() argument
157 sh_sir_write(self, IRIF_CRC0, CRC_RST); in sh_sir_crc_reset()
160 static void sh_sir_crc_add(struct sh_sir_self *self, u8 data) in sh_sir_crc_add() argument
[all …]
Dnsc-ircc.c172 static int nsc_ircc_close(struct nsc_ircc_cb *self);
174 static void nsc_ircc_pio_receive(struct nsc_ircc_cb *self);
175 static int nsc_ircc_dma_receive(struct nsc_ircc_cb *self);
176 static int nsc_ircc_dma_receive_complete(struct nsc_ircc_cb *self, int iobase);
182 static void nsc_ircc_dma_xmit(struct nsc_ircc_cb *self, int iobase);
183 static __u8 nsc_ircc_change_speed(struct nsc_ircc_cb *self, __u32 baud);
184 static int nsc_ircc_is_receiving(struct nsc_ircc_cb *self);
360 struct nsc_ircc_cb *self; in nsc_ircc_open() local
392 self = netdev_priv(dev); in nsc_ircc_open()
393 self->netdev = dev; in nsc_ircc_open()
[all …]
Dsmsc-ircc2.c188 static void smsc_ircc_setup_io(struct smsc_ircc_cb *self, unsigned int fir_base, unsigned int sir_b…
189 static void smsc_ircc_setup_qos(struct smsc_ircc_cb *self);
190 static void smsc_ircc_init_chip(struct smsc_ircc_cb *self);
191 static int __exit smsc_ircc_close(struct smsc_ircc_cb *self);
192 static int smsc_ircc_dma_receive(struct smsc_ircc_cb *self);
193 static void smsc_ircc_dma_receive_complete(struct smsc_ircc_cb *self);
194 static void smsc_ircc_sir_receive(struct smsc_ircc_cb *self);
199 static void smsc_ircc_dma_xmit(struct smsc_ircc_cb *self, int bofs);
200 static void smsc_ircc_dma_xmit_complete(struct smsc_ircc_cb *self);
201 static void smsc_ircc_change_speed(struct smsc_ircc_cb *self, u32 speed);
[all …]
Dbfin_sir.c168 struct bfin_sir_self *self = netdev_priv(dev); in bfin_sir_is_receiving() local
169 struct bfin_sir_port *port = self->sir_port; in bfin_sir_is_receiving()
173 return self->rx_buff.state != OUTSIDE_FRAME; in bfin_sir_is_receiving()
180 struct bfin_sir_self *self = netdev_priv(dev); in bfin_sir_tx_chars() local
181 struct bfin_sir_port *port = self->sir_port; in bfin_sir_tx_chars()
183 if (self->tx_buff.len != 0) { in bfin_sir_tx_chars()
184 chr = *(self->tx_buff.data); in bfin_sir_tx_chars()
186 self->tx_buff.data++; in bfin_sir_tx_chars()
187 self->tx_buff.len--; in bfin_sir_tx_chars()
189 self->stats.tx_packets++; in bfin_sir_tx_chars()
[all …]
/drivers/net/wireless/cw1200/
Dcw1200_sdio.c68 static int cw1200_sdio_memcpy_fromio(struct hwbus_priv *self, in cw1200_sdio_memcpy_fromio() argument
72 return sdio_memcpy_fromio(self->func, dst, addr, count); in cw1200_sdio_memcpy_fromio()
75 static int cw1200_sdio_memcpy_toio(struct hwbus_priv *self, in cw1200_sdio_memcpy_toio() argument
79 return sdio_memcpy_toio(self->func, addr, (void *)src, count); in cw1200_sdio_memcpy_toio()
82 static void cw1200_sdio_lock(struct hwbus_priv *self) in cw1200_sdio_lock() argument
84 sdio_claim_host(self->func); in cw1200_sdio_lock()
87 static void cw1200_sdio_unlock(struct hwbus_priv *self) in cw1200_sdio_unlock() argument
89 sdio_release_host(self->func); in cw1200_sdio_unlock()
94 struct hwbus_priv *self = sdio_get_drvdata(func); in cw1200_sdio_irq_handler() local
97 if (self->core) in cw1200_sdio_irq_handler()
[all …]
Dcw1200_spi.c60 static int cw1200_spi_memcpy_fromio(struct hwbus_priv *self, in cw1200_spi_memcpy_fromio() argument
92 if (self->func->bits_per_word == 8) in cw1200_spi_memcpy_fromio()
99 ret = spi_sync(self->func, &m); in cw1200_spi_memcpy_fromio()
115 if (self->func->bits_per_word == 8) in cw1200_spi_memcpy_fromio()
126 static int cw1200_spi_memcpy_toio(struct hwbus_priv *self, in cw1200_spi_memcpy_toio() argument
157 if (self->func->bits_per_word == 8) in cw1200_spi_memcpy_toio()
179 rval = spi_sync(self->func, &m); in cw1200_spi_memcpy_toio()
187 if (self->func->bits_per_word == 8) in cw1200_spi_memcpy_toio()
197 static void cw1200_spi_lock(struct hwbus_priv *self) in cw1200_spi_lock() argument
205 add_wait_queue(&self->wq, &wait); in cw1200_spi_lock()
[all …]
Dhwbus.h23 int (*hwbus_memcpy_fromio)(struct hwbus_priv *self, unsigned int addr,
25 int (*hwbus_memcpy_toio)(struct hwbus_priv *self, unsigned int addr,
27 void (*lock)(struct hwbus_priv *self);
28 void (*unlock)(struct hwbus_priv *self);
29 size_t (*align_size)(struct hwbus_priv *self, size_t size);
30 int (*power_mgmt)(struct hwbus_priv *self, bool suspend);
/drivers/crypto/qat/qat_dh895xcc/
Dadf_dh895xcc_hw_data.c81 static uint32_t get_num_accels(struct adf_hw_device_data *self) in get_num_accels() argument
85 if (!self || !self->accel_mask) in get_num_accels()
89 if (self->accel_mask & (1 << i)) in get_num_accels()
95 static uint32_t get_num_aes(struct adf_hw_device_data *self) in get_num_aes() argument
99 if (!self || !self->ae_mask) in get_num_aes()
103 if (self->ae_mask & (1 << i)) in get_num_aes()
109 static uint32_t get_misc_bar_id(struct adf_hw_device_data *self) in get_misc_bar_id() argument
114 static uint32_t get_etr_bar_id(struct adf_hw_device_data *self) in get_etr_bar_id() argument
119 static enum dev_sku_info get_sku(struct adf_hw_device_data *self) in get_sku() argument
121 int sku = (self->fuses & ADF_DH895XCC_FUSECTL_SKU_MASK) in get_sku()
/drivers/usb/core/
Dhcd.c442 s = hcd->self.bus_name; in rh_string()
531 tbuf[0] = (device_may_wakeup(&hcd->self.root_hub->dev) in rh_call_control()
539 device_set_wakeup_enable(&hcd->self.root_hub->dev, 0); in rh_call_control()
544 if (device_can_wakeup(&hcd->self.root_hub->dev) in rh_call_control()
546 device_set_wakeup_enable(&hcd->self.root_hub->dev, 1); in rh_call_control()
597 if (device_can_wakeup(&hcd->self.root_hub->dev)) in rh_call_control()
621 dev_dbg (hcd->self.controller, "root hub device address %d\n", in rh_call_control()
637 dev_dbg (hcd->self.controller, "no endpoint features yet\n"); in rh_call_control()
662 usb_hub_adjust_deviceremovable(hcd->self.root_hub, in rh_call_control()
673 dev_dbg (hcd->self.controller, in rh_call_control()
[all …]
Dbuffer.c65 if (!hcd->self.controller->dma_mask && in hcd_buffer_create()
74 hcd->pool[i] = dma_pool_create(name, hcd->self.controller, in hcd_buffer_create()
131 return dma_alloc_coherent(hcd->self.controller, size, dma, mem_flags); in hcd_buffer_alloc()
159 dma_free_coherent(hcd->self.controller, size, addr, dma); in hcd_buffer_free()
Dhcd-pci.c87 if (!companion_hcd || !companion_hcd->self.root_hub) in for_each_companion()
105 udev = companion_hcd->self.root_hub; in ehci_pre_add()
125 companion_hcd->self.hs_companion = &hcd->self; in ehci_post_add()
127 udev = companion_hcd->self.root_hub; in ehci_post_add()
143 hcd->self.hs_companion = &companion_hcd->self; in non_ehci_add()
152 companion_hcd->self.hs_companion = NULL; in ehci_remove()
293 device_wakeup_enable(hcd->self.controller); in usb_hcd_pci_probe()
359 hcd->self.hs_companion = NULL; in usb_hcd_pci_remove()
/drivers/pci/hotplug/
Dsgi_hotplug.c248 dev_dbg(&slot->pci_bus->self->dev, "is already active\n"); in sn_slot_enable()
253 dev_dbg(&slot->pci_bus->self->dev, "L1 failure %d with message: %s", in sn_slot_enable()
259 dev_dbg(&slot->pci_bus->self->dev, "insert failed with error %d sub-error %d\n", in sn_slot_enable()
284 dev_dbg(&slot->pci_bus->self->dev, "Slot %s already inactive\n", slot->physical_path); in sn_slot_disable()
289 dev_dbg(&slot->pci_bus->self->dev, "Cannot remove last 33MHz card\n"); in sn_slot_disable()
294 dev_dbg(&slot->pci_bus->self->dev, "L1 failure %d with message \n%s\n", in sn_slot_disable()
300 dev_dbg(&slot->pci_bus->self->dev, "remove failed with error %d sub-error %d\n", in sn_slot_disable()
311 dev_dbg(&slot->pci_bus->self->dev, "remove successful\n"); in sn_slot_disable()
316 dev_dbg(&slot->pci_bus->self->dev,"remove failed rc = %d\n", rc); in sn_slot_disable()
369 dev_dbg(&slot->pci_bus->self->dev, "no device in slot\n"); in enable_slot()
[all …]
/drivers/usb/host/
Dehci-xilinx-of.c52 dev_warn(hcd->self.controller, "port %d cannot be enabled\n", portnum); in ehci_xilinx_port_handed_over()
54 dev_warn(hcd->self.controller, in ehci_xilinx_port_handed_over()
57 dev_warn(hcd->self.controller, in ehci_xilinx_port_handed_over()
60 dev_warn(hcd->self.controller, in ehci_xilinx_port_handed_over()
62 dev_warn(hcd->self.controller, in ehci_xilinx_port_handed_over()
65 dev_warn(hcd->self.controller, in ehci_xilinx_port_handed_over()
197 device_wakeup_enable(hcd->self.controller); in ehci_hcd_xilinx_of_probe()
Dohci-s3c2410.c54 return dev_get_platdata(hcd->self.controller); in to_s3c2410_info()
121 dev_dbg(hcd->self.controller, in ohci_s3c2410_hub_status_data()
172 dev_dbg(hcd->self.controller, in ohci_s3c2410_hub_control()
190 dev_dbg(hcd->self.controller, "SetPortFeat: POWER\n"); in ohci_s3c2410_hub_control()
199 dev_dbg(hcd->self.controller, in ohci_s3c2410_hub_control()
210 dev_dbg(hcd->self.controller, in ohci_s3c2410_hub_control()
219 dev_dbg(hcd->self.controller, in ohci_s3c2410_hub_control()
244 dev_dbg(hcd->self.controller, "wHubCharacteristics 0x%04x\n", in ohci_s3c2410_hub_control()
262 dev_dbg(hcd->self.controller, "wHubCharacteristics after 0x%04x\n", in ohci_s3c2410_hub_control()
270 dev_dbg(hcd->self.controller, "GetPortStatus(%d)\n", wIndex); in ohci_s3c2410_hub_control()
[all …]
Dsl811-hcd.c99 dev_dbg(hcd->self.controller, "power %s\n", in port_power()
101 sl811->board->port_power(hcd->self.controller, is_on); in port_power()
106 sl811->board->reset(hcd->self.controller); in port_power()
282 dev_dbg(sl811_to_hcd(sl811)->self.controller, "sof irq on\n"); in sofirq_on()
290 dev_dbg(sl811_to_hcd(sl811)->self.controller, "sof irq off\n"); in sofirq_off()
338 dev_dbg(sl811_to_hcd(sl811)->self.controller, in start()
392 dev_dbg(sl811_to_hcd(sl811)->self.controller, in start()
449 dev_dbg(sl811_to_hcd(sl811)->self.controller, in finish_request()
463 sl811_to_hcd(sl811)->self.bandwidth_allocated in finish_request()
596 dev_dbg(sl811_to_hcd(sl811)->self.controller, in checkdone()
[all …]
Dohci-omap.c179 const unsigned port = hcd->self.otg_port - 1; in start_hnp()
201 struct omap_usb_config *config = dev_get_platdata(hcd->self.controller); in ohci_omap_reset()
205 dev_dbg(hcd->self.controller, "starting USB Controller\n"); in ohci_omap_reset()
208 hcd->self.otg_port = config->otg; in ohci_omap_reset()
226 &ohci_to_hcd(ohci)->self); in ohci_omap_reset()
227 dev_dbg(hcd->self.controller, "init %s phy, status %d\n", in ohci_omap_reset()
234 dev_err(hcd->self.controller, "can't find phy\n"); in ohci_omap_reset()
370 device_wakeup_enable(hcd->self.controller); in usb_hcd_omap_probe()
399 dev_dbg(hcd->self.controller, "stopping USB Controller\n"); in usb_hcd_omap_remove()
Dohci-at91.c191 board = hcd->self.controller->platform_data; in usb_hcd_at91_probe()
198 device_wakeup_enable(hcd->self.controller); in usb_hcd_at91_probe()
261 struct at91_usbh_data *pdata = hcd->self.controller->platform_data; in ohci_at91_hub_status_data()
282 struct at91_usbh_data *pdata = dev_get_platdata(hcd->self.controller); in ohci_at91_hub_control()
287 dev_dbg(hcd->self.controller, in ohci_at91_hub_control()
296 dev_dbg(hcd->self.controller, "SetPortFeat: POWER\n"); in ohci_at91_hub_control()
309 dev_dbg(hcd->self.controller, in ohci_at91_hub_control()
320 dev_dbg(hcd->self.controller, in ohci_at91_hub_control()
329 dev_dbg(hcd->self.controller, in ohci_at91_hub_control()
351 dev_dbg(hcd->self.controller, "wHubCharacteristics 0x%04x\n", in ohci_at91_hub_control()
[all …]
Dehci-mem.c149 dma_free_coherent (ehci_to_hcd(ehci)->self.controller, in ehci_mem_cleanup()
166 ehci_to_hcd(ehci)->self.controller, in ehci_mem_init()
176 ehci_to_hcd(ehci)->self.controller, in ehci_mem_init()
190 ehci_to_hcd(ehci)->self.controller, in ehci_mem_init()
200 ehci_to_hcd(ehci)->self.controller, in ehci_mem_init()
210 dma_alloc_coherent (ehci_to_hcd(ehci)->self.controller, in ehci_mem_init()
/drivers/crypto/qat/qat_common/
Dadf_accel_devices.h143 uint32_t (*get_misc_bar_id)(struct adf_hw_device_data *self);
144 uint32_t (*get_etr_bar_id)(struct adf_hw_device_data *self);
145 uint32_t (*get_num_aes)(struct adf_hw_device_data *self);
146 uint32_t (*get_num_accels)(struct adf_hw_device_data *self);
147 enum dev_sku_info (*get_sku)(struct adf_hw_device_data *self);

1234567891011