Searched refs:offset (Results 76 - 100 of 2051) sorted by relevance

1234567891011>>

/drivers/video/
H A D68328fb.c198 var->red.offset = 0;
200 var->green.offset = 0;
202 var->blue.offset = 0;
204 var->transp.offset = 0;
208 var->red.offset = 0;
210 var->green.offset = 0;
212 var->blue.offset = 0;
214 var->transp.offset = 0;
219 var->red.offset = 0;
221 var->green.offset
[all...]
/drivers/gpio/
H A Dgpio-mc9s08dz60.c38 static void mc9s_gpio_to_reg_and_bit(int offset, u8 *reg, u8 *bit) argument
40 *reg = 0x20 + offset / GPIO_NUM_PER_GROUP;
41 *bit = offset % GPIO_NUM_PER_GROUP;
44 static int mc9s08dz60_get_value(struct gpio_chip *gc, unsigned offset) argument
50 mc9s_gpio_to_reg_and_bit(offset, &reg, &bit);
56 static int mc9s08dz60_set(struct mc9s08dz60 *mc9s, unsigned offset, int val) argument
61 mc9s_gpio_to_reg_and_bit(offset, &reg, &bit);
76 static void mc9s08dz60_set_value(struct gpio_chip *gc, unsigned offset, int val) argument
80 mc9s08dz60_set(mc9s, offset, val);
84 unsigned offset, in
83 mc9s08dz60_direction_output(struct gpio_chip *gc, unsigned offset, int val) argument
[all...]
H A Dgpio-pcf857x.c70 static int pcf857x_input8(struct gpio_chip *chip, unsigned offset) argument
76 gpio->out |= (1 << offset);
83 static int pcf857x_get8(struct gpio_chip *chip, unsigned offset) argument
89 return (value < 0) ? 0 : (value & (1 << offset));
92 static int pcf857x_output8(struct gpio_chip *chip, unsigned offset, int value) argument
95 unsigned bit = 1 << offset;
109 static void pcf857x_set8(struct gpio_chip *chip, unsigned offset, int value) argument
111 pcf857x_output8(chip, offset, value);
138 static int pcf857x_input16(struct gpio_chip *chip, unsigned offset) argument
144 gpio->out |= (1 << offset);
151 pcf857x_get16(struct gpio_chip *chip, unsigned offset) argument
160 pcf857x_output16(struct gpio_chip *chip, unsigned offset, int value) argument
177 pcf857x_set16(struct gpio_chip *chip, unsigned offset, int value) argument
[all...]
H A Dgpio-sch.c47 unsigned short offset, bit; local
51 offset = CGIO + gpio_num / 8;
54 curr_dirs = inb(gpio_ba + offset);
57 outb(curr_dirs | (1 << bit), gpio_ba + offset);
66 unsigned short offset, bit; local
68 offset = CGLV + gpio_num / 8;
71 res = !!(inb(gpio_ba + offset) & (1 << bit));
78 unsigned short offset, bit; local
82 offset = CGLV + gpio_num / 8;
85 curr_vals = inb(gpio_ba + offset);
98 unsigned short offset, bit; local
109 outb(curr_dirs & ~(1 << bit), gpio_ba + offset); local
[all...]
H A Dgpio-tps65912.c29 static int tps65912_gpio_get(struct gpio_chip *gc, unsigned offset) argument
34 val = tps65912_reg_read(tps65912, TPS65912_GPIO1 + offset);
42 static void tps65912_gpio_set(struct gpio_chip *gc, unsigned offset, argument
48 tps65912_set_bits(tps65912, TPS65912_GPIO1 + offset,
51 tps65912_clear_bits(tps65912, TPS65912_GPIO1 + offset,
55 static int tps65912_gpio_output(struct gpio_chip *gc, unsigned offset, argument
61 tps65912_gpio_set(gc, offset, value);
63 return tps65912_set_bits(tps65912, TPS65912_GPIO1 + offset,
67 static int tps65912_gpio_input(struct gpio_chip *gc, unsigned offset) argument
71 return tps65912_clear_bits(tps65912, TPS65912_GPIO1 + offset,
[all...]
/drivers/usb/gadget/
H A Dr8a66597-udc.h129 static inline u16 r8a66597_read(struct r8a66597 *r8a66597, unsigned long offset) argument
131 return ioread16(r8a66597->reg + offset);
135 unsigned long offset,
139 void __iomem *fifoaddr = r8a66597->reg + offset;
181 unsigned long offset)
183 iowrite16(val, r8a66597->reg + offset);
187 u16 val, u16 pat, unsigned long offset)
190 tmp = r8a66597_read(r8a66597, offset);
193 r8a66597_write(r8a66597, tmp, offset);
196 #define r8a66597_bclr(r8a66597, val, offset) \
134 r8a66597_read_fifo(struct r8a66597 *r8a66597, unsigned long offset, unsigned char *buf, int len) argument
180 r8a66597_write(struct r8a66597 *r8a66597, u16 val, unsigned long offset) argument
186 r8a66597_mdfy(struct r8a66597 *r8a66597, u16 val, u16 pat, unsigned long offset) argument
264 r8a66597_sudmac_read(struct r8a66597 *r8a66597, unsigned long offset) argument
270 r8a66597_sudmac_write(struct r8a66597 *r8a66597, u32 val, unsigned long offset) argument
[all...]
/drivers/net/ethernet/intel/igb/
H A De1000_nvm.c324 * @offset: offset of word in the EEPROM to read
330 s32 igb_read_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words, u16 *data) argument
339 * A check for invalid values: offset too large, too many words,
342 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) ||
359 if ((nvm->address_bits == 8) && (offset >= 128))
364 igb_shift_out_eec_bits(hw, (u16)(offset*2), nvm->address_bits);
369 * us to read the whole NVM from any offset
386 * @offset
392 igb_read_nvm_eerd(struct e1000_hw *hw, u16 offset, u16 words, u16 *data) argument
438 igb_write_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words, u16 *data) argument
524 u16 offset; local
[all...]
/drivers/mtd/
H A Dssfdc.c110 loff_t offset; local
124 for (k = 0, offset = 0; k < 4; k++, offset += mtd->erasesize) {
125 if (mtd_block_isbad(mtd, offset)) {
126 ret = mtd_read(mtd, offset, SECTOR_SIZE, &retlen,
136 cis_sector = (int)(offset >> SECTOR_SHIFT);
157 loff_t offset = (loff_t)sect_no << SECTOR_SHIFT; local
159 ret = mtd_read(mtd, offset, SECTOR_SIZE, &retlen, sect_buf);
203 int offset[2] = {6, 11}; /* offset o local
245 unsigned long offset; local
373 int sectors_per_block, offset, block_address; local
[all...]
H A Dcmdlinepart.c26 * <partdef> := <size>[@offset][<name>][ro][lk]
94 unsigned long offset = OFFSET_CONTINUOUS; local
120 /* check for offset */
124 offset = memparse(s, &s);
195 /* enter this partition (offset will be calculated later if it is zero at this point) */
197 parts[this_part].offset = offset;
210 dbg(("partition %d: name <%s>, offset %llx, size %llx, mask flags %x\n",
213 parts[this_part].offset,
320 unsigned long offset; local
[all...]
H A Dredboot.c74 unsigned long offset; local
80 offset = master->size + directory * master->erasesize;
81 while (mtd_block_isbad(master, offset)) {
82 if (!offset) {
87 offset -= master->erasesize;
90 offset = directory * master->erasesize;
91 while (mtd_block_isbad(master, offset)) {
92 offset += master->erasesize;
93 if (offset == master->size)
102 printk(KERN_NOTICE "Searching for RedBoot partition table in %s at offset
[all...]
H A Dmtdpart.c44 uint64_t offset; member in struct:mtd_part
68 res = part->master->_read(part->master, from + part->offset, len,
84 return part->master->_point(part->master, from + part->offset, len,
92 return part->master->_unpoint(part->master, from + part->offset, len);
97 unsigned long offset,
102 offset += part->offset;
103 return part->master->_get_unmapped_area(part->master, len, offset,
135 res = part->master->_read_oob(part->master, from + part->offset, ops);
179 return part->master->_write(part->master, to + part->offset, le
95 part_get_unmapped_area(struct mtd_info *mtd, unsigned long len, unsigned long offset, unsigned long flags) argument
534 mtd_add_partition(struct mtd_info *master, char *name, long long offset, long long length) argument
[all...]
/drivers/isdn/hardware/eicon/
H A Dhelpers.h29 int offset,
/drivers/mfd/
H A Ddm355evm_msp.c123 #define MSP_GPIO_REG(offset) (msp_gpios[(offset)] >> 3)
124 #define MSP_GPIO_MASK(offset) BIT(msp_gpios[(offset)] & 0x07)
126 static int msp_gpio_in(struct gpio_chip *chip, unsigned offset) argument
128 switch (MSP_GPIO_REG(offset)) {
140 static int msp_gpio_get(struct gpio_chip *chip, unsigned offset) argument
144 reg = MSP_GPIO_REG(offset);
150 return status & MSP_GPIO_MASK(offset);
153 static int msp_gpio_out(struct gpio_chip *chip, unsigned offset, in argument
175 msp_gpio_set(struct gpio_chip *chip, unsigned offset, int value) argument
246 int offset; member in struct:__anon1747
[all...]
/drivers/net/wireless/bcmdhd/include/
H A Dsdiovar.h39 int offset; member in struct:sdreg
/drivers/tty/serial/8250/
H A D8250.h89 static inline int serial_in(struct uart_8250_port *up, int offset) argument
91 return up->port.serial_in(&up->port, offset);
94 static inline void serial_out(struct uart_8250_port *up, int offset, int value) argument
96 up->port.serial_out(&up->port, offset, value);
/drivers/usb/storage/
H A Dprotocol.h53 unsigned int *offset, enum xfer_buf_dir dir);
/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/char/xilinx_hwicap/
H A Dbuffer_icap.c55 /* offset into bram, read & write */
96 * @offset: The word offset from which the data should be read.
102 u32 offset)
104 return in_be32(base_address + (offset << 2));
136 * buffer_icap_set_offset - Set the bram offset register.
140 * The bram offset register holds the starting bram address to transfer
168 * @offset: The word offset at which the data should be written.
169 * @data: The value to be written to the bram offset
101 buffer_icap_get_bram(void __iomem *base_address, u32 offset) argument
174 buffer_icap_set_bram(void __iomem *base_address, u32 offset, u32 data) argument
187 buffer_icap_device_read(struct hwicap_drvdata *drvdata, u32 offset, u32 count) argument
221 buffer_icap_device_write(struct hwicap_drvdata *drvdata, u32 offset, u32 count) argument
[all...]
/drivers/rapidio/
H A Drio-access.c30 #define RIO_16_BAD (offset & 1)
31 #define RIO_32_BAD (offset & 3)
44 (struct rio_mport *mport, u32 offset, type *value) \
51 res = mport->ops->lcread(mport, mport->id, offset, len, &data); \
68 (struct rio_mport *mport, u32 offset, type value) \
74 res = mport->ops->lcwrite(mport, mport->id, offset, len, value);\
104 (struct rio_mport *mport, u16 destid, u8 hopcount, u32 offset, type *value) \
111 res = mport->ops->cread(mport, mport->id, destid, hopcount, offset, len, &data); \
128 (struct rio_mport *mport, u16 destid, u8 hopcount, u32 offset, type value) \
134 res = mport->ops->cwrite(mport, mport->id, destid, hopcount, offset, le
[all...]
/drivers/mtd/maps/
H A Ddmv182.c69 offset: 0,
74 offset: MTDPART_OFS_NXTBLK
79 offset: MTDPART_OFS_NXTBLK,
84 offset: MTDPART_OFS_NXTBLK
89 offset: MTDPART_OFS_NXTBLK,
H A Dh720x-flash.c35 .offset = 0,
40 .offset = 0x00080000,
45 .offset = 0x000c0000,
50 .offset = 0x00240000,
55 .offset = MTDPART_OFS_APPEND
/drivers/net/arcnet/
H A Dcom90io.c51 static void com90io_copy_to_card(struct net_device *dev, int bufnum, int offset,
53 static void com90io_copy_from_card(struct net_device *dev, int bufnum, int offset,
91 static u_char get_buffer_byte(struct net_device *dev, unsigned offset) argument
95 outb(offset >> 8, _ADDR_HI);
96 outb(offset & 0xff, _ADDR_LO);
102 static void put_buffer_byte(struct net_device *dev, unsigned offset, u_char datum) argument
106 outb(offset >> 8, _ADDR_HI);
107 outb(offset & 0xff, _ADDR_LO);
115 static void get_whole_buffer(struct net_device *dev, unsigned offset, unsigned length, char *dest) argument
119 outb((offset >>
130 put_whole_buffer(struct net_device *dev, unsigned offset, unsigned length, char *dest) argument
346 com90io_copy_to_card(struct net_device *dev, int bufnum, int offset, void *buf, int count) argument
353 com90io_copy_from_card(struct net_device *dev, int bufnum, int offset, void *buf, int count) argument
[all...]
/drivers/platform/x86/
H A Dintel_scu_ipc.c109 static inline void ipc_data_writel(u32 data, u32 offset) /* Write ipc data */ argument
111 writel(data, ipcdev.ipc_base + 0x80 + offset);
127 static inline u8 ipc_data_readb(u32 offset) /* Read ipc byte data */ argument
129 return readb(ipcdev.ipc_base + IPC_READ_BUFFER + offset);
132 static inline u32 ipc_data_readl(u32 offset) /* Read ipc u32 data */ argument
134 return readl(ipcdev.ipc_base + IPC_READ_BUFFER + offset);
163 u32 offset = 0; local
177 for (nc = 0; nc < count; nc++, offset += 2) {
178 cbuf[offset] = addr[nc];
179 cbuf[offset
[all...]
/drivers/staging/tidspbridge/dynload/
H A Dreloc.c42 * offset Offset from LSB, 0 <= offset < BITS_PER_AU
49 int offset, unsigned sgn)
58 dp += (fieldsz + offset) >> LOG_TGTAU_BITS;
62 objval = *dp >> offset;
63 shift = TGTAU_BITS - offset;
90 * offset Offset from LSB, 0 <= offset < BITS_PER_AU
102 int fieldsz, int offset, unsigned sgn)
114 dp += (fieldsz + offset) >> LOG_TGTAU_BIT
48 dload_unpack(struct dload_state *dlthis, tgt_au_t * data, int fieldsz, int offset, unsigned sgn) argument
101 dload_repack(struct dload_state *dlthis, rvalue val, tgt_au_t * data, int fieldsz, int offset, unsigned sgn) argument
170 unsigned int offset = 0; local
[all...]
/drivers/mtd/nand/
H A Dfsmc_nand.c47 {.offset = 8, .length = 8},
48 {.offset = 24, .length = 8},
49 {.offset = 40, .length = 8},
50 {.offset = 56, .length = 8},
51 {.offset = 72, .length = 8},
52 {.offset = 88, .length = 8},
53 {.offset = 104, .length = 8},
54 {.offset = 120, .length = 8}
62 {.offset = 8, .length = 8},
63 {.offset
[all...]

Completed in 497 milliseconds

1234567891011>>