/drivers/net/wireless/ath/ath6kl/ |
H A D | bmi.c | 118 u32 offset; local 143 offset = 0; 144 memcpy(&(ar->bmi.cmd_buf[offset]), &cid, sizeof(cid)); 145 offset += sizeof(cid); 146 memcpy(&(ar->bmi.cmd_buf[offset]), &addr, sizeof(addr)); 147 offset += sizeof(addr); 148 memcpy(&(ar->bmi.cmd_buf[offset]), &rx_len, sizeof(rx_len)); 149 offset += sizeof(len); 151 ret = ath6kl_hif_bmi_write(ar, ar->bmi.cmd_buf, offset); 174 u32 offset; local 241 u32 offset; local 288 u32 offset; local 324 u32 offset; local 367 u32 offset; local 407 u32 offset; local 458 u32 offset; local [all...] |
/drivers/oprofile/ |
H A D | oprofile_files.c | 31 size_t count, loff_t *offset) 34 buf, count, offset); 39 size_t count, loff_t *offset) 44 if (*offset) 68 static ssize_t depth_read(struct file *file, char __user *buf, size_t count, loff_t *offset) argument 71 offset); 75 static ssize_t depth_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) argument 80 if (*offset) 105 static ssize_t pointer_size_read(struct file *file, char __user *buf, size_t count, loff_t *offset) argument 107 return oprofilefs_ulong_to_user(sizeof(void *), buf, count, offset); 30 timeout_read(struct file *file, char __user *buf, size_t count, loff_t *offset) argument 38 timeout_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) argument 117 cpu_type_read(struct file *file, char __user *buf, size_t count, loff_t *offset) argument 129 enable_read(struct file *file, char __user *buf, size_t count, loff_t *offset) argument 135 enable_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) argument 166 dump_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) argument [all...] |
/drivers/xen/xen-pciback/ |
H A D | conf_space_capability.c | 25 .offset = PCI_CAP_LIST_ID, 67 static int vpd_address_write(struct pci_dev *dev, int offset, u16 value, argument 74 return pci_write_config_word(dev, offset, value); 79 .offset = PCI_VPD_ADDR, 85 .offset = PCI_VPD_DATA, 93 static int pm_caps_read(struct pci_dev *dev, int offset, u16 *value, argument 99 err = pci_read_config_word(dev, offset, &real_value); 113 static int pm_ctrl_write(struct pci_dev *dev, int offset, u16 new_value, argument 120 err = pci_read_config_word(dev, offset, &old_value); 130 err = pci_write_config_word(dev, offset, new_valu 148 pm_ctrl_init(struct pci_dev *dev, int offset) argument [all...] |
/drivers/bcma/ |
H A D | host_pci.c | 24 /* Provides access to the requested core. Returns base offset that has to be 40 static u8 bcma_host_pci_read8(struct bcma_device *core, u16 offset) argument 42 offset += bcma_host_pci_provide_access_to_core(core); 43 return ioread8(core->bus->mmio + offset); 46 static u16 bcma_host_pci_read16(struct bcma_device *core, u16 offset) argument 48 offset += bcma_host_pci_provide_access_to_core(core); 49 return ioread16(core->bus->mmio + offset); 52 static u32 bcma_host_pci_read32(struct bcma_device *core, u16 offset) argument 54 offset += bcma_host_pci_provide_access_to_core(core); 55 return ioread32(core->bus->mmio + offset); 58 bcma_host_pci_write8(struct bcma_device *core, u16 offset, u8 value) argument 65 bcma_host_pci_write16(struct bcma_device *core, u16 offset, u16 value) argument 72 bcma_host_pci_write32(struct bcma_device *core, u16 offset, u32 value) argument 80 bcma_host_pci_block_read(struct bcma_device *core, void *buffer, size_t count, u16 offset, u8 reg_width) argument 103 bcma_host_pci_block_write(struct bcma_device *core, const void *buffer, size_t count, u16 offset, u8 reg_width) argument 127 bcma_host_pci_aread32(struct bcma_device *core, u16 offset) argument 134 bcma_host_pci_awrite32(struct bcma_device *core, u16 offset, u32 value) argument [all...] |
/drivers/gpio/ |
H A D | gpio-pl061.c | 68 static int pl061_direction_input(struct gpio_chip *gc, unsigned offset) argument 74 if (offset >= gc->ngpio) 79 gpiodir &= ~(1 << offset); 86 static int pl061_direction_output(struct gpio_chip *gc, unsigned offset, argument 93 if (offset >= gc->ngpio) 97 writeb(!!value << offset, chip->base + (1 << (offset + 2))); 99 gpiodir |= 1 << offset; 106 writeb(!!value << offset, chip->base + (1 << (offset 112 pl061_get_value(struct gpio_chip *gc, unsigned offset) argument 119 pl061_set_value(struct gpio_chip *gc, unsigned offset, int value) argument 126 pl061_to_irq(struct gpio_chip *gc, unsigned offset) argument 140 int offset = d->irq - chip->irq_base; local 184 int offset; local 315 int offset; local 336 int offset; local [all...] |
H A D | gpio-tps65910.c | 23 static int tps65910_gpio_get(struct gpio_chip *gc, unsigned offset) argument 28 tps65910->read(tps65910, TPS65910_GPIO0 + offset, 1, &val); 36 static void tps65910_gpio_set(struct gpio_chip *gc, unsigned offset, argument 42 tps65910_set_bits(tps65910, TPS65910_GPIO0 + offset, 45 tps65910_clear_bits(tps65910, TPS65910_GPIO0 + offset, 49 static int tps65910_gpio_output(struct gpio_chip *gc, unsigned offset, argument 55 tps65910_gpio_set(gc, offset, value); 57 return tps65910_set_bits(tps65910, TPS65910_GPIO0 + offset, 61 static int tps65910_gpio_input(struct gpio_chip *gc, unsigned offset) argument 65 return tps65910_clear_bits(tps65910, TPS65910_GPIO0 + offset, [all...] |
H A D | gpio-da9052.c | 59 static unsigned char da9052_gpio_port_odd(unsigned offset) argument 61 return offset % 2; 64 static int da9052_gpio_get(struct gpio_chip *gc, unsigned offset) argument 71 DA9052_GPIO_0_1_REG + (offset >> 1)); 75 if (da9052_gpio_port_odd(offset)) { 84 if (offset < DA9052_GPIO_MAX_PORTS_PER_REGISTER) 92 if (ret & (1 << DA9052_GPIO_SHIFT_COUNT(offset))) 97 if (da9052_gpio_port_odd(offset)) 106 static void da9052_gpio_set(struct gpio_chip *gc, unsigned offset, int value) argument 111 if (da9052_gpio_port_odd(offset)) { 132 da9052_gpio_direction_input(struct gpio_chip *gc, unsigned offset) argument 157 da9052_gpio_direction_output(struct gpio_chip *gc, unsigned offset, int value) argument 183 da9052_gpio_to_irq(struct gpio_chip *gc, u32 offset) argument [all...] |
H A D | gpio-twl4030.c | 208 static int twl_request(struct gpio_chip *chip, unsigned offset) argument 215 if (offset >= TWL4030_GPIO_MAX) { 220 offset -= TWL4030_GPIO_MAX; 221 if (offset) { 268 gpio_usage_count |= (0x1 << offset); 275 static void twl_free(struct gpio_chip *chip, unsigned offset) argument 277 if (offset >= TWL4030_GPIO_MAX) { 278 twl4030_led_set_value(offset - TWL4030_GPIO_MAX, 1); 284 gpio_usage_count &= ~BIT(offset); 293 static int twl_direction_in(struct gpio_chip *chip, unsigned offset) argument 300 twl_get(struct gpio_chip *chip, unsigned offset) argument 313 twl_direction_out(struct gpio_chip *chip, unsigned offset, int value) argument 324 twl_set(struct gpio_chip *chip, unsigned offset, int value) argument 332 twl_to_irq(struct gpio_chip *chip, unsigned offset) argument [all...] |
/drivers/infiniband/hw/ehca/ |
H A D | hcp_phyp.h | 69 static inline u64 hipz_galpa_load(struct h_galpa galpa, u32 offset) argument 71 u64 addr = galpa.fw_handle + offset; 75 static inline void hipz_galpa_store(struct h_galpa galpa, u32 offset, u64 value) argument 77 u64 addr = galpa.fw_handle + offset;
|
/drivers/net/ethernet/intel/ixgb/ |
H A D | ixgb_osdep.h | 54 #define IXGB_WRITE_REG_ARRAY(a, reg, offset, value) ( \ 55 writel((value), ((a)->hw_addr + IXGB_##reg + ((offset) << 2)))) 57 #define IXGB_READ_REG_ARRAY(a, reg, offset) ( \ 58 readl((a)->hw_addr + IXGB_##reg + ((offset) << 2)))
|
/drivers/net/wireless/b43/ |
H A D | pio.h | 108 static inline u16 b43_piotx_read16(struct b43_pio_txqueue *q, u16 offset) argument 110 return b43_read16(q->dev, q->mmio_base + offset); 113 static inline u32 b43_piotx_read32(struct b43_pio_txqueue *q, u16 offset) argument 115 return b43_read32(q->dev, q->mmio_base + offset); 119 u16 offset, u16 value) 121 b43_write16(q->dev, q->mmio_base + offset, value); 125 u16 offset, u32 value) 127 b43_write32(q->dev, q->mmio_base + offset, value); 131 static inline u16 b43_piorx_read16(struct b43_pio_rxqueue *q, u16 offset) argument 133 return b43_read16(q->dev, q->mmio_base + offset); 118 b43_piotx_write16(struct b43_pio_txqueue *q, u16 offset, u16 value) argument 124 b43_piotx_write32(struct b43_pio_txqueue *q, u16 offset, u32 value) argument 136 b43_piorx_read32(struct b43_pio_rxqueue *q, u16 offset) argument 141 b43_piorx_write16(struct b43_pio_rxqueue *q, u16 offset, u16 value) argument 147 b43_piorx_write32(struct b43_pio_rxqueue *q, u16 offset, u32 value) argument [all...] |
H A D | bus.c | 53 static u16 b43_bus_bcma_read16(struct b43_bus_dev *dev, u16 offset) argument 55 return bcma_read16(dev->bdev, offset); 57 static u32 b43_bus_bcma_read32(struct b43_bus_dev *dev, u16 offset) argument 59 return bcma_read32(dev->bdev, offset); 62 void b43_bus_bcma_write16(struct b43_bus_dev *dev, u16 offset, u16 value) argument 64 bcma_write16(dev->bdev, offset, value); 67 void b43_bus_bcma_write32(struct b43_bus_dev *dev, u16 offset, u32 value) argument 69 bcma_write32(dev->bdev, offset, value); 73 size_t count, u16 offset, u8 reg_width) 75 bcma_block_read(dev->bdev, buffer, count, offset, reg_widt 72 b43_bus_bcma_block_read(struct b43_bus_dev *dev, void *buffer, size_t count, u16 offset, u8 reg_width) argument 78 b43_bus_bcma_block_write(struct b43_bus_dev *dev, const void *buffer, size_t count, u16 offset, u8 reg_width) argument 155 b43_bus_ssb_read16(struct b43_bus_dev *dev, u16 offset) argument 159 b43_bus_ssb_read32(struct b43_bus_dev *dev, u16 offset) argument 163 b43_bus_ssb_write16(struct b43_bus_dev *dev, u16 offset, u16 value) argument 167 b43_bus_ssb_write32(struct b43_bus_dev *dev, u16 offset, u32 value) argument 171 b43_bus_ssb_block_read(struct b43_bus_dev *dev, void *buffer, size_t count, u16 offset, u8 reg_width) argument 177 b43_bus_ssb_block_write(struct b43_bus_dev *dev, const void *buffer, size_t count, u16 offset, u8 reg_width) argument [all...] |
/drivers/char/tpm/ |
H A D | tpm_atmel.h | 29 #define atmel_getb(chip, offset) readb(chip->vendor->iobase + offset); 30 #define atmel_putb(val, chip, offset) writeb(val, chip->vendor->iobase + offset) 81 #define atmel_getb(chip, offset) inb(chip->vendor->base + offset) 82 #define atmel_putb(val, chip, offset) outb(val, chip->vendor->base + offset)
|
/drivers/pinctrl/ |
H A D | pinctrl-coh901.c | 84 * COH 901 335 registers, just at different offset. 130 * its context. It calculates the port offset from the given pin 131 * offset, muliplies by the port stride and adds the register offset 327 static int u300_gpio_request(struct gpio_chip *chip, unsigned offset) argument 333 int gpio = chip->base + offset; 338 static void u300_gpio_free(struct gpio_chip *chip, unsigned offset) argument 340 int gpio = chip->base + offset; 345 static int u300_gpio_get(struct gpio_chip *chip, unsigned offset) argument 349 return readl(U300_PIN_REG(offset, di 352 u300_gpio_set(struct gpio_chip *chip, unsigned offset, int value) argument 369 u300_gpio_direction_input(struct gpio_chip *chip, unsigned offset) argument 384 u300_gpio_direction_output(struct gpio_chip *chip, unsigned offset, int value) argument 413 u300_gpio_to_irq(struct gpio_chip *chip, unsigned offset) argument 424 u300_gpio_config_get(struct gpio_chip *chip, unsigned offset, unsigned long *config) argument 483 u300_gpio_config_set(struct gpio_chip *chip, unsigned offset, enum pin_config_param param) argument 546 u300_toggle_trigger(struct u300_gpio *gpio, unsigned offset) argument 569 int offset = d->irq - gpio->irq_base; local 605 int offset = d->irq - gpio->irq_base; local 619 int offset = d->irq - gpio->irq_base; local 659 int offset = pinoffset + irqoffset; local 676 u300_gpio_init_pin(struct u300_gpio *gpio, int offset, const struct u300_gpio_confdata *conf) argument 717 int offset = (i*8) + j; local [all...] |
/drivers/staging/ft1000/ft1000-pcmcia/ |
H A D | ft1000.h | 26 #define FT1000_DPRAM_BASE 0x0000 /* Dual Port RAM starting offset */ 81 extern u16 ft1000_read_dpram(struct net_device *dev, int offset); 83 extern u16 ft1000_read_dpram_mag_16(struct net_device *dev, int offset, int Index); 84 extern u32 ft1000_read_dpram_mag_32(struct net_device *dev, int offset); 85 void ft1000_write_dpram_mag_32(struct net_device *dev, int offset, u32 value); 88 static inline u16 ft1000_read_reg(struct net_device *dev, u16 offset) argument 90 return inw(dev->base_addr + offset); 94 static inline void ft1000_write_reg(struct net_device *dev, u16 offset, u16 value) argument 96 outw(value, dev->base_addr + offset);
|
/drivers/staging/ramster/ |
H A D | xvmalloc.h | 24 u32 *offset, gfp_t flags); 25 void xv_free(struct xv_pool *pool, struct page *page, u32 offset);
|
H A D | xvmalloc.c | 55 * Given <page, offset> pair, provide a dereferencable pointer. 59 static void *get_ptr_atomic(struct page *page, u16 offset) argument 64 return base + offset; 117 * @offset: offset within the page where block is located. 121 * <page, offset> to identify this block and returns index 123 * Otherwise, returns 0 and <page, offset> params are not touched. 126 struct page **page, u32 *offset) 146 *offset = pool->freelist[slindex].offset; 125 find_block(struct xv_pool *pool, u32 size, struct page **page, u32 *offset) argument 187 insert_block(struct xv_pool *pool, struct page *page, u32 offset, struct block_header *block) argument 220 remove_block(struct xv_pool *pool, struct page *page, u32 offset, struct block_header *block, u32 slindex) argument 340 xv_malloc(struct xv_pool *pool, u32 size, struct page **page, u32 *offset, gfp_t flags) argument 419 xv_free(struct xv_pool *pool, struct page *page, u32 offset) argument [all...] |
/drivers/gpu/drm/radeon/ |
H A D | radeon_sa.c | 117 * Principe is simple, we keep a list of sub allocation in offset 118 * order (first entry has offset == 0, last entry has the highest 119 * offset). 138 unsigned offset = 0, wasted = 0; local 150 offset = 0; 153 if ((tmp->offset - offset) >= size) { 157 offset = tmp->offset + tmp->size; 158 wasted = offset [all...] |
/drivers/gpu/drm/ |
H A D | drm_memory.c | 41 static void *agp_remap(unsigned long offset, unsigned long size, argument 54 offset -= dev->hose->mem_space->start; 58 if (agpmem->bound <= offset 60 (offset + size)) 75 phys_page_map = (agpmem->memory->pages + (offset - agpmem->bound) / PAGE_SIZE); 105 static inline void *agp_remap(unsigned long offset, unsigned long size, argument 117 map->handle = agp_remap(map->offset, map->size, dev); 119 map->handle = ioremap(map->offset, map->size); 127 map->handle = agp_remap(map->offset, map->size, dev); 129 map->handle = ioremap_wc(map->offset, ma [all...] |
/drivers/macintosh/ |
H A D | nvram.c | 21 static loff_t nvram_llseek(struct file *file, loff_t offset, int origin) argument 27 offset += file->f_pos; 30 offset += NVRAM_SIZE; 33 offset = -1; 35 if (offset < 0) 38 file->f_pos = offset; 84 int part, offset; local 89 offset = pmac_get_partition(part); 90 if (copy_to_user((void __user*)arg, &offset, sizeof(offset)) ! [all...] |
/drivers/usb/storage/ |
H A D | protocol.c | 131 * Update the **sgptr and *offset variables so that the next copy will 136 unsigned int *offset, enum xfer_buf_dir dir) 155 * and the starting offset within the page, and update 156 * the *offset and **sgptr values for the next loop. 161 ((sg->offset + *offset) >> PAGE_SHIFT); 162 unsigned int poff = (sg->offset + *offset) & (PAGE_SIZE-1); 163 unsigned int sglen = sg->length - *offset; 169 *offset 134 usb_stor_access_xfer_buf(unsigned char *buffer, unsigned int buflen, struct scsi_cmnd *srb, struct scatterlist **sgptr, unsigned int *offset, enum xfer_buf_dir dir) argument 211 unsigned int offset = 0; local [all...] |
/drivers/staging/vme/devices/ |
H A D | vme_pio2_gpio.c | 35 static int pio2_gpio_get(struct gpio_chip *chip, unsigned int offset) argument 41 if ((card->bank[PIO2_CHANNEL_BANK[offset]].config == OUTPUT) | 42 (card->bank[PIO2_CHANNEL_BANK[offset]].config == NOFIT)) { 49 PIO2_REGS_DATA[PIO2_CHANNEL_BANK[offset]]); 59 if (reg & PIO2_CHANNEL_BIT[offset]) { 60 if (card->bank[PIO2_CHANNEL_BANK[offset]].config != BOTH) 65 if (card->bank[PIO2_CHANNEL_BANK[offset]].config != BOTH) 72 static void pio2_gpio_set(struct gpio_chip *chip, unsigned int offset, argument 79 if ((card->bank[PIO2_CHANNEL_BANK[offset]].config == INPUT) | 80 (card->bank[PIO2_CHANNEL_BANK[offset]] 104 pio2_gpio_dir_in(struct gpio_chip *chip, unsigned offset) argument 123 pio2_gpio_dir_out(struct gpio_chip *chip, unsigned offset, int value) argument [all...] |
/drivers/tty/serial/8250/ |
H A D | 8250_dw.c | 33 static void dw8250_serial_out(struct uart_port *p, int offset, int value) argument 37 if (offset == UART_LCR) 40 offset <<= p->regshift; 41 writeb(value, p->membase + offset); 44 static unsigned int dw8250_serial_in(struct uart_port *p, int offset) argument 46 offset <<= p->regshift; 48 return readb(p->membase + offset); 51 static void dw8250_serial_out32(struct uart_port *p, int offset, int value) argument 55 if (offset == UART_LCR) 58 offset << 62 dw8250_serial_in32(struct uart_port *p, int offset) argument [all...] |
/drivers/target/iscsi/ |
H A D | iscsi_target_seq_pdu_list.c | 42 " offset: %d, xfer_len: %d, seq_send_order: %d," 44 seq->offset, seq->xfer_len, seq->seq_send_order, 59 pr_debug("i: %d, offset: %d, length: %d," 60 " pdu_send_order: %d, seq_no: %d\n", i, pdu->offset, 214 u32 burstlength = 0, offset = 0; local 228 while (offset < cmd->data_length) { 233 offset += bl->immediate_data_length; 241 if ((offset + conn->conn_ops->MaxRecvDataSegmentLength) 244 (cmd->data_length - offset); 245 offset 294 u32 burstlength = 0, offset = 0, i = 0; local 533 iscsit_get_pdu_holder( struct iscsi_cmd *cmd, u32 offset, u32 length) argument 635 iscsit_get_seq_holder( struct iscsi_cmd *cmd, u32 offset, u32 length) argument [all...] |
/drivers/net/wireless/rt2x00/ |
H A D | rt2800lib.h | 27 const unsigned int offset, u32 *value); 29 const unsigned int offset, u32 *value); 31 const unsigned int offset, u32 value); 33 const unsigned int offset, u32 value); 36 const unsigned int offset, 39 const unsigned int offset, 43 const unsigned int offset, 53 const unsigned int offset, 58 rt2800ops->register_read(rt2x00dev, offset, value); 62 const unsigned int offset, 52 rt2800_register_read(struct rt2x00_dev *rt2x00dev, const unsigned int offset, u32 *value) argument 61 rt2800_register_read_lock(struct rt2x00_dev *rt2x00dev, const unsigned int offset, u32 *value) argument 70 rt2800_register_write(struct rt2x00_dev *rt2x00dev, const unsigned int offset, u32 value) argument 79 rt2800_register_write_lock(struct rt2x00_dev *rt2x00dev, const unsigned int offset, u32 value) argument 88 rt2800_register_multiread(struct rt2x00_dev *rt2x00dev, const unsigned int offset, void *value, const u32 length) argument 97 rt2800_register_multiwrite(struct rt2x00_dev *rt2x00dev, const unsigned int offset, const void *value, const u32 length) argument 107 rt2800_regbusy_read(struct rt2x00_dev *rt2x00dev, const unsigned int offset, const struct rt2x00_field32 field, u32 *reg) argument [all...] |