Searched refs:offset (Results 376 - 400 of 2051) sorted by relevance

<<11121314151617181920>>

/drivers/video/
H A Dimxfb.c182 .red = {.offset = 16, .length = 8,},
183 .green = {.offset = 8, .length = 8,},
184 .blue = {.offset = 0, .length = 8,},
185 .transp = {.offset = 0, .length = 0,},
189 .red = {.offset = 11, .length = 5,},
190 .green = {.offset = 5, .length = 6,},
191 .blue = {.offset = 0, .length = 5,},
192 .transp = {.offset = 0, .length = 0,},
196 .red = {.offset = 8, .length = 4,},
197 .green = {.offset
[all...]
/drivers/block/drbd/
H A Ddrbd_bitmap.c60 * directly, but either by bitnumber, or by page index and offset.
313 /* long word offset of _bitmap_ sector */
315 /* word offset from start of bitmap to word number _in_page_
566 /* offset and len in long words.*/
567 static void bm_memset(struct drbd_bitmap *b, size_t offset, int c, size_t len) argument
573 end = offset + len;
580 while (offset < end) {
581 do_now = min_t(size_t, ALIGN(offset + 1, LWPP), end) - offset;
582 idx = bm_word_to_page_idx(b, offset);
778 drbd_bm_merge_lel(struct drbd_conf *mdev, size_t offset, size_t number, unsigned long *buffer) argument
825 drbd_bm_get_lel(struct drbd_conf *mdev, size_t offset, size_t number, unsigned long *buffer) argument
[all...]
/drivers/dma/ioat/
H A Ddma_v3.c90 dma_addr_t addr, u32 offset, int idx)
94 raw->field[xor_idx_to_field[idx]] = addr + offset;
105 dma_addr_t addr, u32 offset, u8 coef, int idx)
110 raw->field[pq_idx_to_field[idx]] = addr + offset;
120 size_t offset = len - desc->hw->size; local
133 ioat_unmap(pdev, hw->dst_addr - offset, len,
157 ioat_unmap(pdev, src - offset, len,
163 ioat_unmap(pdev, xor->dst_addr - offset, len,
170 ioat_unmap(pdev, xor->dst_addr - offset, len,
200 ioat_unmap(pdev, src - offset, le
89 xor_set_src(struct ioat_raw_descriptor *descs[2], dma_addr_t addr, u32 offset, int idx) argument
104 pq_set_src(struct ioat_raw_descriptor *descs[2], dma_addr_t addr, u32 offset, u8 coef, int idx) argument
484 u32 offset = 0; local
622 u32 offset = 0; local
[all...]
/drivers/base/
H A Dfirmware_class.c291 char *buffer, loff_t offset, size_t count)
304 if (offset > fw->size) {
308 if (count > fw->size - offset)
309 count = fw->size - offset;
315 int page_nr = offset >> PAGE_SHIFT;
316 int page_ofs = offset & (PAGE_SIZE-1);
325 offset += page_cnt;
377 * @offset: buffer offset for write in total data store area
385 char *buffer, loff_t offset, size_
289 firmware_data_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buffer, loff_t offset, size_t count) argument
383 firmware_data_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buffer, loff_t offset, size_t count) argument
[all...]
/drivers/mfd/
H A Dhtc-i2cpld.c227 static void htcpld_chip_set(struct gpio_chip *chip, unsigned offset, int val) argument
243 chip_data->cache_out |= (1 << offset);
245 chip_data->cache_out &= ~(1 << offset);
261 static int htcpld_chip_get(struct gpio_chip *chip, unsigned offset) argument
280 val = (chip_data->cache_out >> offset) & 1;
283 val = (chip_data->cache_in >> offset) & 1;
292 unsigned offset, int value)
294 htcpld_chip_set(chip, offset, value);
299 unsigned offset)
303 * We do however make sure the offset i
291 htcpld_direction_output(struct gpio_chip *chip, unsigned offset, int value) argument
298 htcpld_direction_input(struct gpio_chip *chip, unsigned offset) argument
308 htcpld_chip_to_irq(struct gpio_chip *chip, unsigned offset) argument
[all...]
H A Dasic3.c90 static int asic3_gpio_get(struct gpio_chip *chip, unsigned offset);
428 unsigned offset, int out)
430 u32 mask = ASIC3_GPIO_TO_MASK(offset), out_reg;
436 gpio_base = ASIC3_GPIO_TO_BASE(offset);
440 gpio_base, offset);
463 unsigned offset)
465 return asic3_gpio_direction(chip, offset, 0);
469 unsigned offset, int value)
471 return asic3_gpio_direction(chip, offset, 1);
475 unsigned offset)
427 asic3_gpio_direction(struct gpio_chip *chip, unsigned offset, int out) argument
462 asic3_gpio_direction_input(struct gpio_chip *chip, unsigned offset) argument
468 asic3_gpio_direction_output(struct gpio_chip *chip, unsigned offset, int value) argument
474 asic3_gpio_get(struct gpio_chip *chip, unsigned offset) argument
493 asic3_gpio_set(struct gpio_chip *chip, unsigned offset, int value) argument
528 asic3_gpio_to_irq(struct gpio_chip *chip, unsigned offset) argument
[all...]
/drivers/usb/gadget/
H A Dm66592-udc.h528 static inline u16 m66592_read(struct m66592 *m66592, unsigned long offset) argument
530 return ioread16(m66592->reg + offset);
534 unsigned long offset,
537 void __iomem *fifoaddr = m66592->reg + offset;
549 unsigned long offset)
551 iowrite16(val, m66592->reg + offset);
555 unsigned long offset)
558 tmp = m66592_read(m66592, offset);
561 m66592_write(m66592, tmp, offset);
564 #define m66592_bclr(m66592, val, offset) \
533 m66592_read_fifo(struct m66592 *m66592, unsigned long offset, void *buf, unsigned long len) argument
548 m66592_write(struct m66592 *m66592, u16 val, unsigned long offset) argument
554 m66592_mdfy(struct m66592 *m66592, u16 val, u16 pat, unsigned long offset) argument
[all...]
/drivers/usb/host/
H A Dpci-quirks.c554 u32 cap, u8 offset)
577 pci_read_config_dword(pdev, offset + EHCI_USBLEGCTLSTS, &val);
578 pci_write_config_dword(pdev, offset + EHCI_USBLEGCTLSTS,
586 pci_write_config_byte(pdev, offset + 3, 1);
596 pci_read_config_dword(pdev, offset, &cap);
607 pci_write_config_byte(pdev, offset + 2, 0);
611 pci_write_config_dword(pdev, offset + EHCI_USBLEGCTLSTS, 0);
624 u8 offset, cap_length; local
642 offset = (hcc_params >> 8) & 0xff;
643 while (offset
552 ehci_bios_handoff(struct pci_dev *pdev, void __iomem *op_reg_base, u32 cap, u8 offset) argument
[all...]
/drivers/hwmon/
H A Dthmc50.c243 #define temp_reg(offset) \
244 static SENSOR_DEVICE_ATTR(temp##offset##_input, S_IRUGO, show_temp, \
245 NULL, offset - 1); \
246 static SENSOR_DEVICE_ATTR(temp##offset##_min, S_IRUGO | S_IWUSR, \
247 show_temp_min, set_temp_min, offset - 1); \
248 static SENSOR_DEVICE_ATTR(temp##offset##_max, S_IRUGO | S_IWUSR, \
249 show_temp_max, set_temp_max, offset - 1); \
250 static SENSOR_DEVICE_ATTR(temp##offset##_crit, S_IRUGO, \
251 show_temp_critical, NULL, offset - 1);
/drivers/isdn/hardware/eicon/
H A Ds_4bri.c50 dword regs[4], TrapID, offset, size; local
59 offset = IoAdapter->ControllerNumber * (IoAdapter->MemorySize >> factor);
69 regs[0] = READ_DWORD((base + offset) + 0x70);
70 regs[1] = READ_DWORD((base + offset) + 0x74);
71 regs[2] = READ_DWORD((base + offset) + 0x78);
72 regs[3] = READ_DWORD((base + offset) + 0x7c);
75 if ((regs[0] >= offset)
76 && (regs[0] < offset + (IoAdapter->MemorySize >> factor) - 1))
83 size = offset + (IoAdapter->MemorySize >> factor) - regs[0];
/drivers/mtd/tests/
H A Dmtd_torturetest.c419 unsigned offset, unsigned len, unsigned *bytesp,
432 int offset, len; local
461 " starting at offset 0x%x\n",
465 offset = first & ~0x7;
466 len = ((first + bytes) | 0x7) + 1 - offset;
468 print_bufs(read, written, offset, len);
504 * offset.
507 unsigned offset, unsigned len, unsigned *bytesp,
513 for (i = offset; i < offset
506 countdiffs(unsigned char *buf, unsigned char *check_buf, unsigned offset, unsigned len, unsigned *bytesp, unsigned *bitsp) argument
[all...]
/drivers/net/wireless/prism54/
H A Dislpci_eth.c85 int offset; local
117 offset = (4 - (long) skb->data) & 0x03;
118 offset += init_wds ? 6 : 0;
121 if (!skb_cloned(skb) && (skb_tailroom(skb) >= offset)) {
125 DEBUG(SHOW_TRACING, "skb offset %i wds %i\n", offset,
316 u32 index, offset; local
329 offset = ((unsigned long)
335 "frq->addr %x skb->data %p skb->len %u offset %u truesize %u\n ",
337 skb->len, offset, sk
[all...]
/drivers/scsi/bfa/
H A Dbfad_debugfs.c174 bfad_debugfs_lseek(struct file *file, loff_t offset, int orig) argument
183 file->f_pos = offset;
186 file->f_pos += offset;
189 file->f_pos = debug->buffer_len - offset;
224 bfad_reg_offset_check(struct bfa_s *bfa, u32 offset, u32 len) argument
229 area = (offset >> 15) & 0x7;
232 if ((offset + (len<<2)) > 0x8000) /* 8k dwords or 32KB */
236 if ((offset + (len<<2)) > 0x10000) /* 8k dwords or 32KB */
240 if ((offset + (len<<2)) > BFA_REG_ADDRMSK(&bfa->ioc))
323 /* offset an
[all...]
/drivers/scsi/
H A Dlibsrp.c330 int offset, err = 0; local
333 offset = cmd->add_cdb_len & ~3;
337 offset += data_out_desc_size(cmd);
349 (cmd->add_data + offset);
354 (cmd->add_data + offset);
371 int len = 0, offset = cmd->add_cdb_len & ~3; local
378 offset += data_out_desc_size(cmd);
385 md = (struct srp_direct_buf *) (cmd->add_data + offset);
389 id = (struct srp_indirect_buf *) (cmd->add_data + offset);
/drivers/video/geode/
H A Dgx1fb_core.c113 var->red.offset = 11; var->red.length = 5;
114 var->green.offset = 5; var->green.length = 6;
115 var->blue.offset = 0; var->blue.length = 5;
116 var->transp.offset = 0; var->transp.length = 0;
118 var->red.offset = 0; var->red.length = 8;
119 var->green.offset = 0; var->green.length = 8;
120 var->blue.offset = 0; var->blue.length = 8;
121 var->transp.offset = 0; var->transp.length = 0;
154 return chan << bf->offset;
/drivers/crypto/
H A Domap-aes.c135 static inline u32 omap_aes_read(struct omap_aes_dev *dd, u32 offset) argument
137 return __raw_readl(dd->io_base + offset);
140 static inline void omap_aes_write(struct omap_aes_dev *dd, u32 offset, argument
143 __raw_writel(value, dd->io_base + offset);
146 static inline void omap_aes_write_mask(struct omap_aes_dev *dd, u32 offset, argument
151 val = omap_aes_read(dd, offset);
154 omap_aes_write(dd, offset, val);
157 static void omap_aes_write_n(struct omap_aes_dev *dd, u32 offset, argument
160 for (; count--; value++, offset += 4)
161 omap_aes_write(dd, offset, *valu
164 omap_aes_wait(struct omap_aes_dev *dd, u32 offset, u32 bit) argument
394 sg_copy(struct scatterlist **sg, size_t *offset, void *buf, size_t buflen, size_t total, int out) argument
[all...]
/drivers/gpu/drm/exynos/
H A Dexynos_drm_fbdev.c68 unsigned long offset; local
82 offset = fbi->var.xoffset * (fb->bits_per_pixel >> 3);
83 offset += fbi->var.yoffset * fb->pitches[0];
86 fbi->screen_base = buffer->kvaddr + offset;
87 fbi->fix.smem_start = (unsigned long)(buffer->dma_addr + offset);
/drivers/gpu/drm/gma500/
H A Daccel_2d.c163 * @src_x offset in pixels
164 * @src_y offset in pixels
165 * @dst_x offset in pixels
166 * @dst_y offset in pixels
247 uint32_t offset; local
255 offset = psbfb->gtt->offset;
288 offset, stride, src_format,
289 offset, stride, dst_format,
/drivers/gpu/drm/nouveau/
H A Dnouveau_dma.c115 u64 offset; local
119 offset = vma->offset + delta;
122 nouveau_bo_wr32(pb, ip++, lower_32_bits(offset));
123 nouveau_bo_wr32(pb, ip++, upper_32_bits(offset) | length << 8);
/drivers/gpu/drm/radeon/
H A Dradeon_atpx_handler.c38 int offset, int len)
49 atrm_arg_elements[0].integer.value = offset;
61 memcpy(bios+offset, obj->buffer.pointer, obj->buffer.length);
79 int radeon_atrm_get_bios_chunk(uint8_t *bios, int offset, int len) argument
81 return radeon_atrm_call(radeon_atpx_priv.atrm_handle, bios, offset, len);
37 radeon_atrm_call(acpi_handle atrm_handle, uint8_t *bios, int offset, int len) argument
/drivers/net/arcnet/
H A Dcapmode.c160 hard->offset[0] = 0;
161 hard->offset[1] = ofs = 512 - length;
163 hard->offset[0] = 0;
164 hard->offset[1] = ofs = 512 - length - 3;
166 hard->offset[0] = ofs = 256 - length;
H A Drfc1051.c237 hard->offset[0] = 0;
238 hard->offset[1] = ofs = 512 - length;
240 hard->offset[0] = 0;
241 hard->offset[1] = ofs = 512 - length - 3;
243 hard->offset[0] = ofs = 256 - length;
/drivers/net/ethernet/intel/e1000e/
H A D80003es2lan.c116 static s32 e1000_read_kmrn_reg_80003es2lan(struct e1000_hw *hw, u32 offset,
118 static s32 e1000_write_kmrn_reg_80003es2lan(struct e1000_hw *hw, u32 offset,
427 * @offset: offset of the register to read
433 u32 offset, u16 *data)
444 if ((offset & MAX_PHY_REG_ADDRESS) < GG82563_MIN_ALT_REG) {
454 temp = (u16)((u16)offset >> GG82563_PAGE_SHIFT);
472 if (((u16)offset >> GG82563_PAGE_SHIFT) != temp) {
480 MAX_PHY_REG_ADDRESS & offset,
486 MAX_PHY_REG_ADDRESS & offset,
432 e1000_read_phy_reg_gg82563_80003es2lan(struct e1000_hw *hw, u32 offset, u16 *data) argument
503 e1000_write_phy_reg_gg82563_80003es2lan(struct e1000_hw *hw, u32 offset, u16 data) argument
575 e1000_write_nvm_80003es2lan(struct e1000_hw *hw, u16 offset, u16 words, u16 *data) argument
1276 e1000_read_kmrn_reg_80003es2lan(struct e1000_hw *hw, u32 offset, u16 *data) argument
1311 e1000_write_kmrn_reg_80003es2lan(struct e1000_hw *hw, u32 offset, u16 data) argument
[all...]
/drivers/net/ethernet/mellanox/mlx4/
H A Dpd.c113 int offset; local
120 offset = uar->index % ((int) pci_resource_len(dev->pdev, 2) /
123 offset = uar->index;
124 uar->pfn = (pci_resource_start(dev->pdev, 2) >> PAGE_SHIFT) + offset;
182 bf->offset = 0;
/drivers/net/wireless/rt2x00/
H A Drt2x00debug.c69 * - csr offset/value files
70 * - eeprom offset/value files
71 * - bbp offset/value files
72 * - rf offset/value files
128 * Requested offset for each register type.
270 loff_t *offset)
293 *offset += status;
326 loff_t *offset)
336 if (*offset)
369 *offset
267 rt2x00debug_read_queue_dump(struct file *file, char __user *buf, size_t length, loff_t *offset) argument
323 rt2x00debug_read_queue_stats(struct file *file, char __user *buf, size_t length, loff_t *offset) argument
382 rt2x00debug_read_crypto_stats(struct file *file, char __user *buf, size_t length, loff_t *offset) argument
529 rt2x00debug_read_dev_flags(struct file *file, char __user *buf, size_t length, loff_t *offset) argument
558 rt2x00debug_read_cap_flags(struct file *file, char __user *buf, size_t length, loff_t *offset) argument
[all...]

Completed in 1413 milliseconds

<<11121314151617181920>>