Searched defs:offset (Results 26 - 50 of 1446) sorted by relevance

1234567891011>>

/drivers/infiniband/hw/qib/
H A Dqib_user_pages.c102 unsigned long offset, size_t size, int direction)
106 phys = pci_map_page(hwdev, page, offset, size, direction);
110 phys = pci_map_page(hwdev, page, offset, size, direction);
101 qib_map_page(struct pci_dev *hwdev, struct page *page, unsigned long offset, size_t size, int direction) argument
/drivers/leds/
H A Dleds-locomo.c21 enum led_brightness value, int offset)
28 locomo_writel(LOCOMO_LPT_TOFH, locomo_dev->mapbase + offset);
30 locomo_writel(LOCOMO_LPT_TOFL, locomo_dev->mapbase + offset);
20 locomoled_brightness_set(struct led_classdev *led_cdev, enum led_brightness value, int offset) argument
/drivers/misc/cb710/
H A Ddebug.c25 static inline int allow_reg_read(unsigned block, unsigned offset, unsigned bits) argument
28 offset *= bits/8;
29 return ((allow[block] >> offset) & mask) == mask;
/drivers/mtd/chips/
H A Dmap_rom.c60 * - return the address to which the offset maps
65 unsigned long offset,
69 return (unsigned long) map->virt + offset;
63 maprom_unmapped_area(struct mtd_info *mtd, unsigned long len, unsigned long offset, unsigned long flags) argument
/drivers/mtd/maps/
H A Dpmcmsp-flash.c55 int offset, coff; local
157 if (sscanf(env, "%x:%x:%n", &offset, &size,
167 msp_parts[i][j].offset = offset;
/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_fw_file_hdr.h19 __be32 offset; member in struct:bnx2x_fw_file_section
/drivers/net/wireless/b43legacy/
H A Dilt.c315 void b43legacy_ilt_write(struct b43legacy_wldev *dev, u16 offset, u16 val) argument
317 b43legacy_phy_write(dev, B43legacy_PHY_ILT_G_CTRL, offset);
322 void b43legacy_ilt_write32(struct b43legacy_wldev *dev, u16 offset, u32 val) argument
324 b43legacy_phy_write(dev, B43legacy_PHY_ILT_G_CTRL, offset);
332 u16 b43legacy_ilt_read(struct b43legacy_wldev *dev, u16 offset) argument
334 b43legacy_phy_write(dev, B43legacy_PHY_ILT_G_CTRL, offset);
/drivers/parisc/
H A Deisa_eeprom.c34 static loff_t eisa_eeprom_llseek(struct file *file, loff_t offset, int origin ) argument
41 offset += file->f_pos;
44 offset += HPEE_MAX_LENGTH;
47 return (offset >= 0 && offset < HPEE_MAX_LENGTH) ? (file->f_pos = offset) : -EINVAL;
/drivers/pps/
H A Dkapi.c41 static void pps_add_offset(struct pps_ktime *ts, struct pps_ktime *offset) argument
43 ts->nsec += offset->nsec;
52 ts->sec += offset->sec;
196 /* We have to add an offset? */
210 /* We have to add an offset? */
/drivers/rtc/
H A Drtc-proc.c22 static int rtc_proc_show(struct seq_file *seq, void *offset) argument
/drivers/scsi/
H A Dzorro7xx.c39 unsigned long offset; member in struct:zorro_driver_data
40 int absolute; /* offset is absolute address */
42 { .name = "PowerUP 603e+", .offset = 0xf40000, .absolute = 1 },
43 { .name = "WarpEngine 40xx", .offset = 0x40000 },
44 { .name = "A4091", .offset = 0x800000 },
45 { .name = "GForce 040/060", .offset = 0x40000 },
86 ioaddr = zdd->offset;
88 ioaddr = board + zdd->offset;
/drivers/staging/bcm/
H A Dvendorspecificextn.c93 UINT offset, UINT numOfBytes)
118 UINT offset, UINT numOfBytes, BOOLEAN bVerify)
142 UINT offset, UINT numOfBytes)
92 vendorextnReadSection(PVOID pContext, PUCHAR pBuffer, FLASH2X_SECTION_VAL SectionVal, UINT offset, UINT numOfBytes) argument
117 vendorextnWriteSection(PVOID pContext, PUCHAR pBuffer, FLASH2X_SECTION_VAL SectionVal, UINT offset, UINT numOfBytes, BOOLEAN bVerify) argument
141 vendorextnWriteSectionWithoutErase(PVOID pContext, PUCHAR pBuffer, FLASH2X_SECTION_VAL SectionVal, UINT offset, UINT numOfBytes) argument
/drivers/staging/comedi/
H A Dproc.c38 static int comedi_read(char *buf, char **start, off_t offset, int len, argument
77 i * driv->offset));
/drivers/staging/cxt1e1/
H A Dsbeproc.c55 sbecom_proc_get_sbe_info (char *buffer, char **start, off_t offset, argument
69 pr_info(">> sbecom_proc_get_sbe_info: entered, offset %d. length %d.\n",
70 (int) offset, (int) length);
197 * int f(char *buffer, char **start, off_t offset,
207 * Put the data of the requested offset at that
208 * offset within the buffer. Return the number (n)
211 * number of supplied bytes (= n - offset) is
215 * offset advanced by the number of bytes
220 * Put the data of the requested offset at the
226 * offset advance
[all...]
/drivers/staging/vme/devices/
H A Dvme_pio2_gpio.c35 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/tc/
H A Dtc.c44 long offset; local
52 offset = TC_OLDCARD;
55 err |= tc_preadb(pattern + 0, module + offset + TC_PATTERN0);
56 err |= tc_preadb(pattern + 1, module + offset + TC_PATTERN1);
57 err |= tc_preadb(pattern + 2, module + offset + TC_PATTERN2);
58 err |= tc_preadb(pattern + 3, module + offset + TC_PATTERN3);
64 offset = TC_NEWCARD;
68 module + offset + TC_PATTERN0);
70 module + offset + TC_PATTERN1);
72 module + offset
[all...]
/drivers/tty/serial/cpm_uart/
H A Dcpm_uart_cpm2.c61 unsigned long offset; local
93 offset = cpm_dpalloc(PROFF_SMC_SIZE, 64);
94 out_be16(pram, offset);
96 return cpm_muram_addr(offset);
/drivers/usb/musb/
H A Dmusb_io.h64 static inline u16 musb_readw(const void __iomem *addr, unsigned offset) argument
65 { return __raw_readw(addr + offset); }
67 static inline u32 musb_readl(const void __iomem *addr, unsigned offset) argument
68 { return __raw_readl(addr + offset); }
71 static inline void musb_writew(void __iomem *addr, unsigned offset, u16 data) argument
72 { __raw_writew(data, addr + offset); }
74 static inline void musb_writel(void __iomem *addr, unsigned offset, u32 data) argument
75 { __raw_writel(data, addr + offset); }
83 static inline u8 musb_readb(const void __iomem *addr, unsigned offset) argument
88 tmp = __raw_readw(addr + (offset
97 musb_writeb(void __iomem *addr, unsigned offset, u8 data) argument
112 musb_readb(const void __iomem *addr, unsigned offset) argument
115 musb_writeb(void __iomem *addr, unsigned offset, u8 data) argument
122 musb_readb(const void __iomem *addr, unsigned offset) argument
125 musb_readw(const void __iomem *addr, unsigned offset) argument
128 musb_readl(const void __iomem *addr, unsigned offset) argument
131 musb_writeb(void __iomem *addr, unsigned offset, u8 data) argument
134 musb_writew(void __iomem *addr, unsigned offset, u16 data) argument
137 musb_writel(void __iomem *addr, unsigned offset, u32 data) argument
[all...]
/drivers/usb/storage/
H A Dprotocol.c131 * 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/atm/
H A Dnicstarmac.c161 static u_int8_t read_eprom_byte(virt_addr_t base, u_int8_t offset) argument
179 (val | clocktab[j++] | ((offset >> i) & 1)));
182 (val | clocktab[j++] | ((offset >> i) & 1)));
/drivers/bcma/
H A Ddriver_chipcommon.c15 static inline u32 bcma_cc_write32_masked(struct bcma_drv_cc *cc, u16 offset, argument
19 value |= bcma_cc_read32(cc, offset) & ~mask;
20 bcma_cc_write32(cc, offset, value);
H A Dhost_soc.c13 static u8 bcma_host_soc_read8(struct bcma_device *core, u16 offset) argument
15 return readb(core->io_addr + offset);
18 static u16 bcma_host_soc_read16(struct bcma_device *core, u16 offset) argument
20 return readw(core->io_addr + offset);
23 static u32 bcma_host_soc_read32(struct bcma_device *core, u16 offset) argument
25 return readl(core->io_addr + offset);
28 static void bcma_host_soc_write8(struct bcma_device *core, u16 offset, argument
31 writeb(value, core->io_addr + offset);
34 static void bcma_host_soc_write16(struct bcma_device *core, u16 offset, argument
37 writew(value, core->io_addr + offset);
40 bcma_host_soc_write32(struct bcma_device *core, u16 offset, u32 value) argument
47 bcma_host_soc_block_read(struct bcma_device *core, void *buffer, size_t count, u16 offset, u8 reg_width) argument
90 bcma_host_soc_block_write(struct bcma_device *core, const void *buffer, size_t count, u16 offset, u8 reg_width) argument
135 bcma_host_soc_aread32(struct bcma_device *core, u16 offset) argument
140 bcma_host_soc_awrite32(struct bcma_device *core, u16 offset, u32 value) argument
[all...]
H A Dsprom.c17 #define SPOFF(offset) ((offset) / sizeof(u16))
23 static void bcma_sprom_read(struct bcma_bus *bus, u16 offset, u16 *sprom) argument
28 offset + (i * 2));
210 u16 offset; local
228 /* Most cards have SPROM moved by additional offset 0x30 (48 dwords).
231 offset = (bus->chipinfo.id == 0x4331) ? BCMA_CC_SPROM :
233 bcma_sprom_read(bus, offset, sprom);
/drivers/char/
H A Dgeneric_nvram.c34 static loff_t nvram_llseek(struct file *file, loff_t offset, int origin) argument
40 offset += file->f_pos;
43 offset += nvram_len;
46 offset = -1;
48 if (offset < 0)
51 file->f_pos = offset;
100 int part, offset; local
108 offset = pmac_get_partition(part);
109 if (copy_to_user((void __user*)arg, &offset, sizeof(offset)) !
[all...]
/drivers/dma/
H A Diovlock.c214 unsigned int offset, size_t len)
227 err = memcpy_toiovec(iov, vaddr + offset, len);
255 offset,
270 offset += copy;
212 dma_memcpy_pg_to_iovec(struct dma_chan *chan, struct iovec *iov, struct dma_pinned_list *pinned_list, struct page *page, unsigned int offset, size_t len) argument

Completed in 500 milliseconds

1234567891011>>