/drivers/net/wireless/ath/ath5k/ |
H A D | pci.c | 75 ath5k_pci_eeprom_read(struct ath_common *common, u32 offset, u16 *data) argument 85 (void)ath5k_hw_reg_read(ah, AR5K_EEPROM_BASE + (4 * offset)); 87 ath5k_hw_reg_write(ah, offset, AR5K_EEPROM_BASE); 119 u32 total, offset; local 125 for (offset = 0x1f, octet = 0, total = 0; offset >= 0x1d; offset--) { 126 AR5K_EEPROM_READ(offset, data);
|
/drivers/net/wireless/rtlwifi/rtl8192de/ |
H A D | hw.h | 58 extern void rtl92de_write_dword_dbi(struct ieee80211_hw *hw, u16 offset, 60 extern u32 rtl92de_read_dword_dbi(struct ieee80211_hw *hw, u16 offset,
|
/drivers/spi/ |
H A D | spi-dw.h | 162 static inline u32 dw_readl(struct dw_spi *dws, u32 offset) argument 164 return __raw_readl(dws->regs + offset); 167 static inline void dw_writel(struct dw_spi *dws, u32 offset, u32 val) argument 169 __raw_writel(val, dws->regs + offset); 172 static inline u16 dw_readw(struct dw_spi *dws, u32 offset) argument 174 return __raw_readw(dws->regs + offset); 177 static inline void dw_writew(struct dw_spi *dws, u32 offset, u16 val) argument 179 __raw_writew(val, dws->regs + offset);
|
/drivers/staging/comedi/ |
H A D | proc.c | 38 static int comedi_read(char *buf, char **start, off_t offset, int len, argument 77 i * driv->offset));
|
/drivers/staging/rts_pstor/ |
H A D | rtsx_transport.h | 34 unsigned int *offset, enum xfer_buf_dir dir); 62 int use_sg, unsigned int *index, unsigned int *offset,
|
/drivers/target/iscsi/ |
H A D | iscsi_target_seq_pdu_list.h | 57 u32 offset; member in struct:iscsi_pdu 72 u32 offset; member in struct:iscsi_seq
|
H A D | iscsi_target_tmr.c | 232 u32 length = 0, offset = 0; local 272 offset = cmd->next_burst_len = cmd->write_data_done; 274 if ((conn->sess->sess_ops->FirstBurstLength - offset) >= 277 length = (cmd->data_length - offset); 279 length = (conn->sess->sess_ops->FirstBurstLength - offset); 282 if (iscsit_add_r2t_to_list(cmd, offset, length, 0, 0) < 0) { 511 if ((pdu->offset >= cmd->seq_start_offset) && 512 ((pdu->offset + pdu->length) <= 527 (seq->offset - seq->orig_offset); 530 seq->offset [all...] |
/drivers/tty/serial/8250/ |
H A D | 8250_early.c | 51 static unsigned int __init serial_in(struct uart_port *port, int offset) argument 55 return readb(port->membase + offset); 57 return readl(port->membase + (offset << 2)); 59 return inb(port->iobase + offset); 65 static void __init serial_out(struct uart_port *port, int offset, int value) argument 69 writeb(value, port->membase + offset); 72 writel(value, port->membase + (offset << 2)); 75 outb(value, port->iobase + offset);
|
/drivers/gpio/ |
H A D | gpio-mc33880.c | 61 static int __mc33880_set(struct mc33880 *mc, unsigned offset, int value) argument 64 mc->port_config |= 1 << offset; 66 mc->port_config &= ~(1 << offset); 72 static void mc33880_set(struct gpio_chip *chip, unsigned offset, int value) argument 78 __mc33880_set(mc, offset, value);
|
/drivers/infiniband/hw/ipath/ |
H A D | ipath_mmap.c | 92 unsigned long offset = vma->vm_pgoff << PAGE_SHIFT; local 106 if (context != ip->context || (__u64) offset != ip->offset) 146 ip->offset = dev->mmap_offset; 168 ip->offset = dev->mmap_offset;
|
/drivers/infiniband/hw/qib/ |
H A D | qib_mmap.c | 92 unsigned long offset = vma->vm_pgoff << PAGE_SHIFT; local 106 if (context != ip->context || (__u64) offset != ip->offset) 146 ip->offset = dev->mmap_offset; 168 ip->offset = dev->mmap_offset;
|
/drivers/leds/ |
H A D | leds-da903x.c | 51 int offset; local 59 offset = DA9030_LED_OFFSET(led->id); 63 da903x_write(led->master, DA9030_LED1_CONTROL + offset, val); 72 offset = DA9034_LED_OFFSET(led->id); 75 da903x_write(led->master, DA9034_LED1_CONTROL + offset, val);
|
/drivers/net/arcnet/ |
H A D | arc-rawmode.c | 186 hard->offset[0] = 0; 187 hard->offset[1] = ofs = 512 - length; 189 hard->offset[0] = 0; 190 hard->offset[1] = ofs = 512 - length - 3; 192 hard->offset[0] = ofs = 256 - length;
|
/drivers/scsi/be2iscsi/ |
H A D | be.h | 135 /* Byte offset into the page corresponding to given address */ 139 /* Returns bit offset within a DWORD of a bitfield */ 150 u32 offset, u32 value) 153 *dw &= ~(mask << offset); 154 *dw |= (mask & value) << offset; 164 static inline u32 amap_get(void *ptr, u32 dw_offset, u32 mask, u32 offset) argument 167 return mask & (*(dw + dw_offset) >> offset); 149 amap_set(void *ptr, u32 dw_offset, u32 mask, u32 offset, u32 value) argument
|
/drivers/mtd/ubi/ |
H A D | io.c | 35 * The erase counter header is always stored at offset zero. By default, the 36 * VID header is stored after the EC header at the closest aligned offset 38 * header at the closest aligned offset. But this default layout may be 40 * asked to put the VID header at further offset, and even at an unaligned 41 * offset. Of course, if the offset of the VID header is unaligned, UBI adds 42 * proper padding in front of it. Data offset may also be changed but it has to 71 * As it was noted above, the VID header may start at a non-aligned offset. 73 * the VID header may reside at offset 1984 which is the last 64 bytes of the 74 * last sub-page (EC header is always at offset zer 132 ubi_io_read(const struct ubi_device *ubi, void *buf, int pnum, int offset, int len) argument 241 ubi_io_write(struct ubi_device *ubi, const void *buf, int pnum, int offset, int len) argument 1342 ubi_dbg_check_write(struct ubi_device *ubi, const void *buf, int pnum, int offset, int len) argument 1407 ubi_dbg_check_all_ff(struct ubi_device *ubi, int pnum, int offset, int len) argument [all...] |
/drivers/firewire/ |
H A D | core-iso.c | 122 /* Convert DMA address to offset into virtually contiguous buffer. */ 127 ssize_t offset; local 131 offset = (ssize_t)completed - (ssize_t)address; 132 if (offset > 0 && offset <= PAGE_SIZE) 133 return (i << PAGE_SHIFT) + offset; 250 u32 channels_mask, u64 offset, bool allocate) 272 offset, data, 8)) { 305 u64 offset; local 308 offset 249 manage_channel(struct fw_card *card, int irm_id, int generation, u32 channels_mask, u64 offset, bool allocate) argument [all...] |
/drivers/media/dvb/dvb-core/ |
H A D | dvb_ringbuffer.c | 184 int offset, u8 __user *buf, size_t len) 192 if (offset > pktlen) return -EINVAL; 193 if ((offset + len) > pktlen) len = pktlen - offset; 195 idx = (idx + DVB_RINGBUFFER_PKTHDRSIZE + offset) % rbuf->size; 212 int offset, u8* buf, size_t len) 220 if (offset > pktlen) return -EINVAL; 221 if ((offset + len) > pktlen) len = pktlen - offset; 223 idx = (idx + DVB_RINGBUFFER_PKTHDRSIZE + offset) 183 dvb_ringbuffer_pkt_read_user(struct dvb_ringbuffer *rbuf, size_t idx, int offset, u8 __user *buf, size_t len) argument 211 dvb_ringbuffer_pkt_read(struct dvb_ringbuffer *rbuf, size_t idx, int offset, u8* buf, size_t len) argument [all...] |
/drivers/sfi/ |
H A D | sfi_core.c | 342 unsigned long offset, len; local 350 for (offset = 0; offset < len; offset += 16) { 353 syst_hdr = start + offset; 361 sfi_print_table_header(SFI_SYST_SEARCH_BEGIN + offset, 377 syst_pa = SFI_SYST_SEARCH_BEGIN + offset; 391 loff_t offset, size_t count) 408 cnt = memory_read_from_buffer(buf, count, &offset, 412 cnt = memory_read_from_buffer(buf, count, &offset, 389 sfi_table_show(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t offset, size_t count) argument [all...] |
/drivers/staging/rtl8712/ |
H A D | rtl871x_mp.h | 183 u32 offset; member in struct:rf_reg_param 188 u32 offset; member in struct:bb_reg_param 312 u32 r8712_bb_reg_read(struct _adapter *Adapter, u16 offset); 313 u8 r8712_bb_reg_write(struct _adapter *Adapter, u16 offset, u32 value); 314 u32 r8712_rf_reg_read(struct _adapter *Adapter, u8 path, u8 offset); 316 u8 offset, u32 value); 317 u32 r8712_get_bb_reg(struct _adapter *Adapter, u16 offset, u32 bitmask); 318 u8 r8712_set_bb_reg(struct _adapter *Adapter, u16 offset, 320 u32 r8712_get_rf_reg(struct _adapter *Adapter, u8 path, u8 offset, 322 u8 r8712_set_rf_reg(struct _adapter *Adapter, u8 path, u8 offset, [all...] |
/drivers/net/usb/ |
H A D | cdc_ncm.c | 661 u32 offset; local 676 * ^ offset 684 offset = ctx->tx_curr_offset; 700 offset = ALIGN(sizeof(struct usb_cdc_ncm_nth16), 706 /* store last valid offset before alignment */ 707 last_offset = offset; 708 /* align first Datagram offset correctly */ 709 offset = ALIGN(offset, ctx->tx_modulus) + ctx->tx_remainder; 711 cdc_ncm_zero_fill(skb_out->data, 0, offset, offse 960 int offset; local [all...] |
/drivers/pcmcia/ |
H A D | yenta_socket.c | 96 static inline u8 config_readb(struct yenta_socket *socket, unsigned offset) argument 99 pci_read_config_byte(socket->dev, offset, &val); 100 debug("%04x %02x\n", socket, offset, val); 104 static inline u16 config_readw(struct yenta_socket *socket, unsigned offset) argument 107 pci_read_config_word(socket->dev, offset, &val); 108 debug("%04x %04x\n", socket, offset, val); 112 static inline u32 config_readl(struct yenta_socket *socket, unsigned offset) argument 115 pci_read_config_dword(socket->dev, offset, &val); 116 debug("%04x %08x\n", socket, offset, val); 120 static inline void config_writeb(struct yenta_socket *socket, unsigned offset, u argument 126 config_writew(struct yenta_socket *socket, unsigned offset, u16 val) argument 132 config_writel(struct yenta_socket *socket, unsigned offset, u32 val) argument 176 int offset = 0, i; local [all...] |
/drivers/video/ |
H A D | ep93xx-fb.c | 166 info->var.transp.offset = 0; 174 info->var.red.offset = 0; 176 info->var.green.offset = 0; 178 info->var.blue.offset = 0; 187 info->var.red.offset = 11; 189 info->var.green.offset = 5; 191 info->var.blue.offset = 0; 200 info->var.red.offset = 16; 202 info->var.green.offset = 8; 204 info->var.blue.offset 315 unsigned int offset = vma->vm_pgoff << PAGE_SHIFT; local [all...] |
/drivers/video/sis/ |
H A D | sis.h | 325 #define MMIO_IN8(base, offset) readb((base+offset)) 326 #define MMIO_IN16(base, offset) readw((base+offset)) 327 #define MMIO_IN32(base, offset) readl((base+offset)) 329 #define MMIO_OUT8(base, offset, val) writeb(((u8)(val)), (base+offset)) 330 #define MMIO_OUT16(base, offset, val) writew(((u16)(val)), (base+offset)) 395 u32 offset; member in struct:SIS_OH [all...] |
/drivers/gpu/drm/mga/ |
H A D | mga_dma.c | 127 tail = primary->tail + dev_priv->primary->offset; 150 DRM_DEBUG(" head = 0x%06lx\n", (unsigned long)(head - dev_priv->primary->offset)); 151 DRM_DEBUG(" tail = 0x%06lx\n", (unsigned long)(tail - dev_priv->primary->offset)); 175 tail = primary->tail + dev_priv->primary->offset; 183 if (head == dev_priv->primary->offset) 186 primary->space = head - dev_priv->primary->offset; 188 DRM_DEBUG(" head = 0x%06lx\n", (unsigned long)(head - dev_priv->primary->offset)); 204 u32 head = dev_priv->primary->offset; 234 dev_priv->primary->offset)); 240 (unsigned long)(entry->age.head - dev_priv->primary->offset)); 449 unsigned offset; local [all...] |
/drivers/mtd/maps/ |
H A D | dilnetpc.c | 96 #define PCC_MWAOR_1_Lo 0x5C /* memory window 1 address offset low register */ 97 #define PCC_MWAOR_1_Hi 0x5D /* memory window 1 address offset high register */ 156 /* program offset of first flash location to appear in this window (0) */ 274 .offset = 0, 279 .offset = MTDPART_OFS_NXTBLK, 287 .offset = MTDPART_OFS_NXTBLK, 292 .offset = MTDPART_OFS_NXTBLK, 327 .offset = 0, 332 .offset = MTDPART_OFS_NXTBLK, 337 .offset [all...] |