Searched defs:off (Results 1 - 25 of 381) sorted by relevance

1234567891011>>

/drivers/gpu/drm/nouveau/core/subdev/devinit/
H A Dnv20.c36 uint32_t amount, off; local
52 for (off = amount; off > 0x2000000; off -= 0x2000000)
53 fbmem_poke(fb, off - 4, off);
H A Dnv10.c78 int off = nv_rd32(priv, 0x10020c) - 0x100000; local
80 fbmem_poke(fb, off, patt);
88 if (fbmem_peek(fb, off) == patt)
H A Dfbmem.h64 fbmem_peek(struct io_mapping *fb, u32 off) argument
66 u8 __iomem *p = io_mapping_map_atomic_wc(fb, off & PAGE_MASK);
67 u32 val = ioread32(p + (off & ~PAGE_MASK));
73 fbmem_poke(struct io_mapping *fb, u32 off, u32 val) argument
75 u8 __iomem *p = io_mapping_map_atomic_wc(fb, off & PAGE_MASK);
76 iowrite32(val, p + (off & ~PAGE_MASK));
82 fbmem_readback(struct io_mapping *fb, u32 off, u32 val) argument
84 fbmem_poke(fb, off, val);
85 return val == fbmem_peek(fb, off);
/drivers/pci/
H A Dvpd.c11 int pci_vpd_find_tag(const u8 *buf, unsigned int off, unsigned int len, u8 rdt) argument
15 for (i = off; i < len; ) {
46 int pci_vpd_find_info_keyword(const u8 *buf, unsigned int off, argument
51 for (i = off; i + PCI_VPD_INFO_FLD_HDR_SIZE <= off + len;) {
/drivers/gpio/
H A Dgpio-ucb1400.c15 static int ucb1400_gpio_dir_in(struct gpio_chip *gc, unsigned off) argument
19 ucb1400_gpio_set_direction(gpio->ac97, off, 0);
23 static int ucb1400_gpio_dir_out(struct gpio_chip *gc, unsigned off, int val) argument
27 ucb1400_gpio_set_direction(gpio->ac97, off, 1);
28 ucb1400_gpio_set_value(gpio->ac97, off, val);
32 static int ucb1400_gpio_get(struct gpio_chip *gc, unsigned off) argument
36 return ucb1400_gpio_get_value(gpio->ac97, off);
39 static void ucb1400_gpio_set(struct gpio_chip *gc, unsigned off, int val) argument
43 ucb1400_gpio_set_value(gpio->ac97, off, val);
H A Dgpio-adp5520.c25 static int adp5520_gpio_get_value(struct gpio_chip *chip, unsigned off) argument
37 if (test_bit(off, &dev->output))
42 return !!(reg_val & dev->lut[off]);
46 unsigned off, int val)
52 adp5520_set_bits(dev->master, ADP5520_GPIO_OUT, dev->lut[off]);
54 adp5520_clr_bits(dev->master, ADP5520_GPIO_OUT, dev->lut[off]);
57 static int adp5520_gpio_direction_input(struct gpio_chip *chip, unsigned off) argument
62 clear_bit(off, &dev->output);
65 dev->lut[off]);
69 unsigned off, in
45 adp5520_gpio_set_value(struct gpio_chip *chip, unsigned off, int val) argument
68 adp5520_gpio_direction_output(struct gpio_chip *chip, unsigned off, int val) argument
[all...]
/drivers/net/ethernet/brocade/bna/
H A Dcna_fwimg.c66 bfa_cb_image_get_chunk(enum bfi_asic_gen asic_gen, u32 off) argument
70 return (bfi_image_ct_cna + off);
72 return (bfi_image_ct2_cna + off);
/drivers/net/wireless/ath/
H A Dmain.c34 u32 off; local
51 off = ((unsigned long) skb->data) % common->cachelsz;
52 if (off != 0)
53 skb_reserve(skb, common->cachelsz - off);
/drivers/staging/lustre/lustre/obdclass/
H A Ddebug.c59 int block_debug_setup(void *addr, int len, __u64 off, __u64 id) argument
63 off = cpu_to_le64 (off);
65 memcpy(addr, (char *)&off, LPDS);
69 memcpy(addr, (char *)&off, LPDS);
76 int block_debug_check(char *who, void *addr, int end, __u64 off, __u64 id) argument
83 ne_off = le64_to_cpu (off);
86 CDEBUG(D_ERROR, "%s: id %#llx offset %llu off: %#llx != %#llx\n",
87 who, id, off, *(__u64 *)addr, ne_off);
92 who, id, off, *(__u6
[all...]
/drivers/xen/xenfs/
H A Dxenstored.c12 size_t size, loff_t *off)
15 return simple_read_from_buffer(buf, size, off, str, strlen(str));
11 xsd_read(struct file *file, char __user *buf, size_t size, loff_t *off) argument
/drivers/acpi/
H A Dbgrt.c55 struct bin_attribute *attr, char *buf, loff_t off, size_t count)
57 memcpy(buf, attr->private + off, count);
54 image_read(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument
H A Dec_sys.c32 size_t count, loff_t *off)
38 loff_t init_off = *off;
41 if (*off >= size)
43 if (*off + count >= size) {
44 size -= *off;
51 err = ec_read(*off, &byte_read);
54 if (put_user(byte_read, buf + *off - init_off)) {
55 if (*off - init_off)
56 return *off - init_off; /* partial read */
59 *off
31 acpi_ec_read_io(struct file *f, char __user *buf, size_t count, loff_t *off) argument
65 acpi_ec_write_io(struct file *f, const char __user *buf, size_t count, loff_t *off) argument
[all...]
/drivers/net/wireless/ath/wil6210/
H A Dioctl.c31 u32 off; local
48 off = a - wil->csr;
49 if (size >= WIL6210_MEM_SIZE - off) {
51 "off = 0x%08x size = 0x%08x\n", off, size);
/drivers/zorro/
H A Dzorro-sysfs.c66 char *buf, loff_t off, size_t count)
80 return memory_read_from_buffer(buf, count, &off, &cd, sizeof(cd));
64 zorro_read_config(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
/drivers/gpu/drm/nouveau/core/subdev/bios/
H A DM0209.c125 u16 off = bits / 8; local
127 info->data[i] = nv_ro32(bios, data + off);
/drivers/hid/
H A Dhid-roccat-lua.c30 char *buf, loff_t off, size_t count,
38 if (off >= real_size)
41 if (off != 0 || count != real_size)
52 void const *buf, loff_t off, size_t count,
60 if (off != 0 || count != real_size)
73 char *buf, loff_t off, size_t count) \
75 return lua_sysfs_write(fp, kobj, buf, off, count, \
82 char *buf, loff_t off, size_t count) \
84 return lua_sysfs_read(fp, kobj, buf, off, count, \
29 lua_sysfs_read(struct file *fp, struct kobject *kobj, char *buf, loff_t off, size_t count, size_t real_size, uint command) argument
51 lua_sysfs_write(struct file *fp, struct kobject *kobj, void const *buf, loff_t off, size_t count, size_t real_size, uint command) argument
H A Dhid-wiimote-debug.c27 loff_t *off)
38 if (*off > 0xffffff)
50 wiimote_cmd_set(wdata, WIIPROTO_REQ_RMEM, *off & 0xffff);
51 wiiproto_req_reeprom(wdata, *off, s);
72 *off += size;
128 size_t s, loff_t *off)
26 wiidebug_eeprom_read(struct file *f, char __user *u, size_t s, loff_t *off) argument
127 wiidebug_drm_write(struct file *f, const char __user *u, size_t s, loff_t *off) argument
/drivers/infiniband/hw/ipath/
H A Dipath_keys.c127 size_t off; local
156 off = sge->addr - mr->user_base;
158 off + sge->length > mr->length ||
164 off += mr->offset;
167 while (off >= mr->map[m]->segs[n].length) {
168 off -= mr->map[m]->segs[n].length;
176 isge->vaddr = mr->map[m]->segs[n].vaddr + off;
177 isge->length = mr->map[m]->segs[n].length - off;
207 size_t off; local
239 off
[all...]
/drivers/isdn/hisax/
H A Dnj_s.c19 static u_char dummyrr(struct IsdnCardState *cs, int chan, u_char off) argument
24 static void dummywr(struct IsdnCardState *cs, int chan, u_char off, u_char value) argument
H A Dnj_u.c19 static u_char dummyrr(struct IsdnCardState *cs, int chan, u_char off) argument
24 static void dummywr(struct IsdnCardState *cs, int chan, u_char off, u_char value) argument
/drivers/leds/
H A Dleds-asic3.c20 * Hence we turn the LEDs on/off via the TimeBase register.
25 * This driver supports hardware blinking with an on+off
65 u32 off; local
74 off = MS_TO_CLK(500);
77 off = MS_TO_CLK(*delay_off);
78 if ((on + off) > MAX_CLK)
83 asic3_write_register(asic, (base + ASIC3_LED_PeriodTime), (on + off));
89 *delay_off = CLK_TO_MS(off);
/drivers/media/pci/solo6x10/
H A Dsolo6x10-i2c.c33 u8 solo_i2c_readbyte(struct solo_dev *solo_dev, int id, u8 addr, u8 off) argument
41 msgs[0].buf = &off;
54 u8 off, u8 data)
59 buf[0] = off;
53 solo_i2c_writebyte(struct solo_dev *solo_dev, int id, u8 addr, u8 off, u8 data) argument
/drivers/media/pci/ttpci/
H A Dav7110_ipack.c46 int off; local
61 off = 9 + p->buf[8];
62 streamid = p->buf[off];
64 ai.off = 0;
65 ac3_off = ((p->buf[off + 2] << 8)|
66 p->buf[off + 3]);
68 f = dvb_filter_get_ac3info(p->buf + off + 3 + ac3_off,
71 nframes = (p->count - off - 3 - ac3_off) /
73 p->buf[off + 2] = (ac3_off >> 8) & 0xff;
74 p->buf[off
[all...]
/drivers/net/wireless/ath/ath9k/
H A Dahb.c55 static bool ath_ahb_eeprom_read(struct ath_common *common, u32 off, u16 *data) argument
62 if (off >= (ARRAY_SIZE(pdata->eeprom_data))) {
65 __func__, off);
69 *data = pdata->eeprom_data[off];
/drivers/net/wireless/b43/
H A Dppr.c83 u8 maxpwr, off; local
129 off = ((sprom->cck2gpo >> (i * 4)) & 0xf) * 2;
130 rates->cck[i] = maxpwr - off;
136 off = ((sprom_ofdm_po >> (i * 4)) & 0xf) * 2;
137 rates->ofdm[i] = maxpwr - off;
152 off = ((sprom_mcs_po[0] >> (i * 4)) & 0xf) * 2;
153 rates->mcs_20_cdd[i] = maxpwr - off;
158 off = ((sprom_mcs_po[1] >> (i * 4)) & 0xf) * 2;
159 rates->mcs_20_cdd[4 + i] = maxpwr - off;
176 off
[all...]

Completed in 455 milliseconds

1234567891011>>