/drivers/pci/ |
H A D | msi.c | 265 int pos = dev->msi_cap; local 268 pci_read_config_dword(dev, pos + PCI_MSI_ADDRESS_LO, 271 pci_read_config_dword(dev, pos + PCI_MSI_ADDRESS_HI, 273 pci_read_config_word(dev, pos + PCI_MSI_DATA_64, &data); 276 pci_read_config_word(dev, pos + PCI_MSI_DATA_32, &data); 321 int pos = dev->msi_cap; local 324 pci_read_config_word(dev, pos + PCI_MSI_FLAGS, &msgctl); 327 pci_write_config_word(dev, pos + PCI_MSI_FLAGS, msgctl); 329 pci_write_config_dword(dev, pos + PCI_MSI_ADDRESS_LO, 332 pci_write_config_dword(dev, pos [all...] |
H A D | pci.h | 88 ssize_t (*read)(struct pci_dev *dev, loff_t pos, size_t count, void *buf); 89 ssize_t (*write)(struct pci_dev *dev, loff_t pos, size_t count, const void *buf); 228 int pos; /* capability position */ member in struct:pci_sriov
|
H A D | quirks.c | 2199 int pos, ttl = 48; local 2201 pos = pci_find_ht_capability(dev, HT_CAPTYPE_MSI_MAPPING); 2202 while (pos && ttl--) { 2205 if (pci_read_config_byte(dev, pos + HT_MSI_FLAGS, 2213 pos = pci_find_next_ht_capability(dev, pos, 2258 int pos, ttl = 48; local 2260 pos = pci_find_ht_capability(dev, HT_CAPTYPE_MSI_MAPPING); 2261 while (pos && ttl--) { 2264 if (pci_read_config_byte(dev, pos 2337 int pos, ttl = 48; local 2366 int pos; local 2399 int pos, ctrl_off; local 2424 int pos; local 2462 int pos, ttl = 48; local 2483 int pos; local 3251 int pos; local [all...] |
/drivers/pinctrl/nomadik/ |
H A D | pinctrl-abx500.c | 125 u8 pos = offset % 8; local 133 *bit = !!(val & BIT(pos)); 147 u8 pos = offset % 8; local 152 AB8500_MISC, reg, BIT(pos), val << pos); 206 u8 pos; local 229 pos = (offset - pullud->first_pin) << 1; 230 *pull_updown = (val >> pos) & AB8540_GPIO_PULL_UPDOWN_MASK; 242 u8 pos; local 260 pos [all...] |
/drivers/staging/lustre/lustre/llite/ |
H A D | statahead.c | 371 struct ll_sa_entry *pos, *next; local 377 list_for_each_entry_safe(pos, next, &sai->sai_entries, se_link) { 378 if (!is_omitted_entry(sai, pos->se_index)) 380 do_sa_entry_fini(sai, pos); 392 struct list_head *pos = &sai->sai_entries_stated; local 399 pos = &se->se_list; 404 list_add(&entry->se_list, pos); 1062 __u64 pos = 0; local 1086 page = ll_get_dir_page(dir, pos, &chain); 1095 PFID(ll_inode2fid(dir)), pos, sa 1364 __u64 pos = 0; local [all...] |
H A D | rw26.c | 473 loff_t pos, unsigned len, unsigned flags, 476 pgoff_t index = pos >> PAGE_CACHE_SHIFT; 479 unsigned from = pos & (PAGE_CACHE_SIZE - 1); 496 loff_t pos, unsigned len, unsigned copied, 499 unsigned from = pos & (PAGE_CACHE_SIZE - 1); 472 ll_write_begin(struct file *file, struct address_space *mapping, loff_t pos, unsigned len, unsigned flags, struct page **pagep, void **fsdata) argument 495 ll_write_end(struct file *file, struct address_space *mapping, loff_t pos, unsigned len, unsigned copied, struct page *page, void *fsdata) argument
|
H A D | dir.c | 482 __u64 pos = ctx->pos; local 492 page = ll_get_dir_page(inode, pos, &chain); 520 if (hash < pos) 541 ctx->pos = lhash; 552 pos = next; 553 if (pos == MDS_DIR_END_OFF) { 567 next = pos; 568 page = ll_get_dir_page(inode, pos, 579 pos [all...] |
/drivers/input/ |
H A D | input-mt.c | 341 const struct input_mt_pos *pos, int num_pos) 353 for (p = pos; p != pos + num_pos; p++) { 394 * @pos: the position array to match 404 const struct input_mt_pos *pos, int num_pos) 416 nrc = input_mt_set_matrix(mt, pos, num_pos); 340 input_mt_set_matrix(struct input_mt *mt, const struct input_mt_pos *pos, int num_pos) argument 403 input_mt_assign_slots(struct input_dev *dev, int *slots, const struct input_mt_pos *pos, int num_pos) argument
|
/drivers/media/usb/stk1160/ |
H A D | stk1160-video.c | 137 linesdone = buf->pos / bytesperline; 138 lineoff = buf->pos % bytesperline; /* offset in current line */ 180 buf->pos += lencopy; 223 buf->pos += lencopy; 296 dev->isoc_ctl.buf->pos = 0;
|
/drivers/media/usb/tm6000/ |
H A D | tm6000-video.c | 140 unsigned int cmd, cpysize, pktsize, size, field, block, line, pos = 0; local 225 pos = ((line << 1) - field - 1) * 228 if (pos + size > vbuf->vb.size) 244 pos = dev->isoc_ctl.pos; 255 memcpy(&voutp[pos], ptr, cpysize); 283 dev->isoc_ctl.pos = pos + cpysize; 305 unsigned int pos = dev->isoc_ctl.pos, cpysiz local 1417 tm6000_read(struct file *file, char __user *data, size_t count, loff_t *pos) argument [all...] |
/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_iov.c | 373 int pos; local 375 pos = pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_ERR); 376 if (!pos) 379 pci_read_config_dword(pdev, pos + PCI_ERR_UNCOR_SEVER, &err_sev); 381 pci_write_config_dword(pdev, pos + PCI_ERR_UNCOR_SEVER, err_sev);
|
/drivers/net/hamradio/ |
H A D | bpqether.c | 381 static void *bpq_seq_start(struct seq_file *seq, loff_t *pos) 389 if (*pos == 0) 393 if (i == *pos) 399 static void *bpq_seq_next(struct seq_file *seq, void *v, loff_t *pos) argument 404 ++*pos;
|
/drivers/pnp/ |
H A D | interface.c | 444 struct pnp_id *pos = dev->id; local 446 while (pos) { 447 str += sprintf(str, "%s\n", pos->id); 448 pos = pos->next;
|
/drivers/scsi/bfa/ |
H A D | bfad_debugfs.c | 183 size_t nbytes, loff_t *pos) 190 return simple_read_from_buffer(buf, nbytes, pos, 226 size_t nbytes, loff_t *pos) 236 rc = simple_read_from_buffer(buf, nbytes, pos, 239 if ((*pos + nbytes) >= bfad->reglen) { 182 bfad_debugfs_read(struct file *file, char __user *buf, size_t nbytes, loff_t *pos) argument 225 bfad_debugfs_read_regrd(struct file *file, char __user *buf, size_t nbytes, loff_t *pos) argument
|
/drivers/usb/misc/ |
H A D | usbsevseg.c | 233 int pos; local 236 pos = sizeof(mydev->decimals) - 1 - i; 238 buf[pos] = '0'; 240 buf[pos] = '1'; 242 buf[pos] = 'x';
|
/drivers/scsi/csiostor/ |
H A D | csio_init.c | 66 loff_t pos = *ppos; local 71 if (pos < 0) 73 if (pos >= avail) 75 if (count > avail - pos) 76 count = avail - pos; 84 ret = hw->chip_ops->chip_mc_read(hw, 0, pos, 87 ret = hw->chip_ops->chip_edc_read(hw, mem, pos, 92 ofst = pos % sizeof(data); 98 pos += len; 101 count = pos [all...] |
/drivers/input/misc/ |
H A D | keyspan_remote.c | 104 int pos; member in struct:bit_tester 158 if (dev->data.pos >= dev->data.len) { 160 "%s - Error ran out of data. pos: %d, len: %d\n", 161 __func__, dev->data.pos, dev->data.len); 167 (dev->data.pos < dev->data.len)) { 168 dev->data.tester += (dev->data.buffer[dev->data.pos++] << dev->data.bits_left); 204 remote->data.pos = 0; 220 while ((remote->data.bits_left >= 14 || remote->data.pos < remote->data.len) && !found) {
|
/drivers/mtd/nand/ |
H A D | nandsim.c | 996 struct list_head *pos, *n; local 997 list_for_each_safe(pos, n, &weak_blocks) { 998 list_del(pos); 999 kfree(list_entry(pos, struct weak_block, list)); 1001 list_for_each_safe(pos, n, &weak_pages) { 1002 list_del(pos); 1003 kfree(list_entry(pos, struct weak_page, list)); 1005 list_for_each_safe(pos, n, &grave_pages) { 1006 list_del(pos); 1007 kfree(list_entry(pos, struc 1346 get_pages(struct nandsim *ns, struct file *file, size_t count, loff_t pos) argument 1390 read_file(struct nandsim *ns, struct file *file, void *buf, size_t count, loff_t pos) argument 1405 write_file(struct nandsim *ns, struct file *file, void *buf, size_t count, loff_t pos) argument 1455 int pos = prandom_u32() % (num * 8); local 1477 loff_t pos; local 1568 loff_t pos = (loff_t)ns->regs.row * ns->geom.pgszoob; local [all...] |
/drivers/staging/lustre/lustre/lov/ |
H A D | lov_pool.c | 163 * index >= pos returned to the seq_file interface 164 * pos is from 0 to (pool->pool_obds.op_count - 1) 173 static void *pool_proc_next(struct seq_file *s, void *v, loff_t *pos) argument 181 if (*pos >= pool_tgt_count(iter->pool)) 194 (*pos)++; 199 static void *pool_proc_start(struct seq_file *s, loff_t *pos) argument 206 (*pos >= pool_tgt_count(pool))) { 224 if (*pos > 0) { 231 } while ((i < *pos) && (ptr != NULL));
|
/drivers/tty/ |
H A D | tty_ldisc.c | 200 static void *tty_ldiscs_seq_start(struct seq_file *m, loff_t *pos) argument 202 return (*pos < NR_LDISCS) ? pos : NULL; 205 static void *tty_ldiscs_seq_next(struct seq_file *m, void *v, loff_t *pos) argument 207 (*pos)++; 208 return (*pos < NR_LDISCS) ? pos : NULL;
|
/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_sp.c | 574 struct bnx2x_vlan_mac_registry_elem *pos; local 585 list_for_each_entry(pos, &o->head, link) { 587 memcpy(next, &pos->u, size); 608 struct bnx2x_vlan_mac_registry_elem *pos; local 616 list_for_each_entry(pos, &o->head, link) 617 if (ether_addr_equal(data->mac.mac, pos->u.mac.mac) && 618 (data->mac.is_inner_mac == pos->u.mac.is_inner_mac)) 628 struct bnx2x_vlan_mac_registry_elem *pos; local 632 list_for_each_entry(pos, &o->head, link) 633 if (data->vlan.vlan == pos 645 struct bnx2x_vlan_mac_registry_elem *pos; local 662 struct bnx2x_vlan_mac_registry_elem *pos; local 679 struct bnx2x_vlan_mac_registry_elem *pos; local 1062 struct bnx2x_vlan_mac_registry_elem *pos; local 1108 struct bnx2x_exeq_elem *pos; local 1125 struct bnx2x_exeq_elem *pos; local 1204 struct bnx2x_vlan_mac_registry_elem *pos; local 1481 struct bnx2x_exeq_elem query, *pos; local 1838 struct bnx2x_vlan_mac_registry_elem *pos = NULL; local 2391 struct bnx2x_mcast_list_elem *pos; local [all...] |
/drivers/base/ |
H A D | core.c | 2005 size_t pos = 0; local 2014 pos += snprintf(hdr + pos, hdrlen - pos, "SUBSYSTEM=%s", subsys); 2015 if (pos >= hdrlen) 2032 pos++; 2033 pos += snprintf(hdr + pos, hdrlen - pos, 2039 pos [all...] |
/drivers/net/wireless/rtlwifi/ |
H A D | base.c | 1677 u8 *pos, *end; local 1679 pos = (u8 *)mgmt->u.beacon.variable; 1681 while (pos < end) { 1682 if (pos + 2 + pos[1] > end) 1685 if (pos[0] == ie) 1686 return pos; 1688 pos += 2 + pos[1]; 1906 u8 *pos, *en local [all...] |
/drivers/vme/bridges/ |
H A D | vme_tsi148.c | 1979 struct list_head *pos, *temp; local 1985 list_for_each_safe(pos, temp, &list->entries) { 1986 list_del(pos); 1987 entry = list_entry(pos, struct tsi148_dma_entry, list); 2355 struct list_head *pos = NULL, *n; local 2614 list_for_each_safe(pos, n, &tsi148_bridge->lm_resources) { 2615 lm = list_entry(pos, struct vme_lm_resource, list); 2616 list_del(pos); 2621 list_for_each_safe(pos, n, &tsi148_bridge->dma_resources) { 2622 dma_ctrlr = list_entry(pos, struc 2661 struct list_head *pos = NULL; local [all...] |
/drivers/net/ethernet/sfc/ |
H A D | falcon.c | 604 size_t block_len, pos = 0; local 608 while (pos < len) { 609 block_len = min(len - pos, FALCON_SPI_MAX_LEN); 611 command = falcon_spi_munge_command(spi, SPI_READ, start + pos); 612 rc = falcon_spi_cmd(efx, spi, command, start + pos, NULL, 613 buffer + pos, block_len); 616 pos += block_len; 627 *retlen = pos; 680 size_t block_len, pos = 0; local 684 while (pos < le 793 unsigned pos, block_len; local [all...] |