Searched refs:pos (Results 26 - 50 of 678) sorted by relevance

1234567891011>>

/drivers/parisc/
H A Deisa_enumerator.c325 unsigned int pos=0; local
343 while ((pos < maxlen) && (num_func <= es->num_functions)) {
344 pos+=configure_function(buf+pos, &function_len);
350 p0 = pos;
351 pos += configure_choise(buf+pos, &flags);
355 pos = p0 + function_len;
362 pos = p0 + function_len;
375 pos
[all...]
/drivers/platform/goldfish/
H A Dpdev_bus.c62 struct pdev_bus_dev *pos, *n; local
64 list_for_each_entry_safe(pos, n, &pdev_bus_removed_devices, list) {
65 list_del(&pos->list);
66 platform_device_unregister(&pos->pdev);
67 kfree(pos);
69 list_for_each_entry_safe(pos, n, &pdev_bus_new_devices, list) {
70 list_del(&pos->list);
71 ret = platform_device_register(&pos->pdev);
74 pos->pdev.name);
75 list_add_tail(&pos
81 struct pdev_bus_dev *pos, *n; local
[all...]
/drivers/pci/
H A Dhtirq.c30 unsigned pos; member in struct:ht_irq_cfg
42 pci_write_config_byte(cfg->dev, cfg->pos + 2, cfg->idx);
43 pci_write_config_dword(cfg->dev, cfg->pos + 4, msg->address_lo);
46 pci_write_config_byte(cfg->dev, cfg->pos + 2, cfg->idx + 1);
47 pci_write_config_dword(cfg->dev, cfg->pos + 4, msg->address_hi);
90 int max_irq, pos, irq; local
94 pos = pci_find_ht_capability(dev, HT_CAPTYPE_IRQ);
95 if (!pos)
100 pci_write_config_byte(dev, pos + 2, 1);
101 pci_read_config_dword(dev, pos
[all...]
H A Diov.c82 pci_read_config_word(dev, iov->pos + PCI_SRIOV_VF_DID, &virtfn->device);
190 pci_read_config_word(dev, iov->pos + PCI_SRIOV_INITIAL_VF, &initial);
199 pci_read_config_word(dev, iov->pos + PCI_SRIOV_VF_OFFSET, &offset);
200 pci_read_config_word(dev, iov->pos + PCI_SRIOV_VF_STRIDE, &stride);
246 pci_write_config_word(dev, iov->pos + PCI_SRIOV_NUM_VF, nr_virtfn);
249 pci_write_config_word(dev, iov->pos + PCI_SRIOV_CTRL, iov->ctrl);
274 pci_write_config_word(dev, iov->pos + PCI_SRIOV_CTRL, iov->ctrl);
275 pci_write_config_word(dev, iov->pos + PCI_SRIOV_NUM_VF, 0);
298 pci_write_config_word(dev, iov->pos + PCI_SRIOV_CTRL, iov->ctrl);
306 pci_write_config_word(dev, iov->pos
309 sriov_init(struct pci_dev *dev, int pos) argument
456 int pos; local
[all...]
/drivers/zorro/
H A Dproc.c34 loff_t pos = *ppos; local
36 if (pos >= sizeof(struct ConfigDev))
40 if (pos + nbytes > sizeof(struct ConfigDev))
41 nbytes = sizeof(struct ConfigDev) - pos;
51 if (copy_to_user(buf, (void *)&cd + pos, nbytes))
64 static void * zorro_seq_start(struct seq_file *m, loff_t *pos) argument
66 return (*pos < zorro_num_autocon) ? pos : NULL;
69 static void * zorro_seq_next(struct seq_file *m, void *v, loff_t *pos) argument
71 (*pos)
[all...]
/drivers/cpufreq/
H A Dppc_cbe_cpufreq.c70 struct cpufreq_frequency_table *pos; local
106 cpufreq_for_each_entry(pos, cbe_freqs) {
107 pos->frequency = max_freq / pos->driver_data;
108 pr_debug("%d: %d\n", (int)(pos - cbe_freqs), pos->frequency);
/drivers/pci/pcie/aer/
H A Daerdrv.c168 int pos; local
176 pos = pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_ERR);
178 pci_read_config_dword(pdev, pos + PCI_ERR_ROOT_COMMAND, &reg32);
180 pci_write_config_dword(pdev, pos + PCI_ERR_ROOT_COMMAND, reg32);
183 pci_read_config_dword(pdev, pos + PCI_ERR_ROOT_STATUS, &reg32);
184 pci_write_config_dword(pdev, pos + PCI_ERR_ROOT_STATUS, reg32);
201 int pos; local
203 pos = pci_find_ext_capability(pdev->port, PCI_EXT_CAP_ID_ERR);
211 pci_read_config_dword(pdev->port, pos + PCI_ERR_ROOT_STATUS, &status);
218 pci_read_config_dword(pdev->port, pos
346 int pos; local
392 int pos; local
[all...]
/drivers/isdn/capi/
H A Dkcapi_proc.c38 static void *controller_start(struct seq_file *seq, loff_t *pos)
43 if (*pos < CAPI_MAXCONTR)
44 return &capi_controller[*pos];
49 static void *controller_next(struct seq_file *seq, void *v, loff_t *pos) argument
51 ++*pos;
52 if (*pos < CAPI_MAXCONTR)
53 return &capi_controller[*pos];
143 static void *applications_start(struct seq_file *seq, loff_t *pos)
148 if (*pos < CAPI_MAXAPPL)
149 return &capi_applications[*pos];
155 applications_next(struct seq_file *seq, void *v, loff_t *pos) argument
256 capi_driver_next(struct seq_file *seq, void *v, loff_t *pos) argument
[all...]
/drivers/media/common/
H A Dcypress_firmware.c41 struct hexline *hx, int *pos)
43 u8 *b = (u8 *) &fw->data[*pos];
46 if (*pos >= fw->size)
52 if ((*pos + hx->len + 4) >= fw->size)
66 *pos += hx->len + 5;
68 return *pos;
75 int ret, pos = 0; local
95 ret = cypress_get_hexline(fw, hx, &pos);
40 cypress_get_hexline(const struct firmware *fw, struct hexline *hx, int *pos) argument
/drivers/s390/char/
H A Dhmcdrv_dev.c57 static loff_t hmcdrv_dev_seek(struct file *fp, loff_t pos, int whence);
59 size_t len, loff_t *pos);
61 size_t len, loff_t *pos);
160 static loff_t hmcdrv_dev_seek(struct file *fp, loff_t pos, int whence) argument
164 pos += fp->f_pos; /* new position stored in 'pos' */
186 if (pos < 0)
189 if (fp->f_pos != pos)
192 fp->f_pos = pos;
193 return pos;
221 hmcdrv_dev_read(struct file *fp, char __user *ubuf, size_t len, loff_t *pos) argument
246 hmcdrv_dev_write(struct file *fp, const char __user *ubuf, size_t len, loff_t *pos) argument
[all...]
H A Dtape_proc.c83 static void *tape_proc_start(struct seq_file *m, loff_t *pos) argument
85 if (*pos >= 256 / TAPE_MINORS_PER_DEV)
87 return (void *)((unsigned long) *pos + 1);
90 static void *tape_proc_next(struct seq_file *m, void *v, loff_t *pos) argument
92 ++*pos;
93 return tape_proc_start(m, pos);
/drivers/char/agp/
H A Disoch.c25 struct list_head *pos; local
27 list_for_each(pos, head) {
28 cur = list_entry(pos, struct agp_3_5_dev, list);
32 list_add_tail(new, pos);
39 struct list_head *pos, *tmp, *head = &list->list, *start = head->next; local
44 for (pos=start; pos!=head; ) {
45 cur = list_entry(pos, struct agp_3_5_dev, list);
51 tmp = pos;
52 pos
80 struct list_head *head = &dev_list->list, *pos; local
290 struct list_head *head = &dev_list->list, *pos; local
325 struct list_head *head, *pos; local
[all...]
/drivers/net/wireless/iwlwifi/mvm/
H A Dpower.c668 int pos = 0; local
674 pos += scnprintf(buf+pos, bufsz-pos, "power_scheme = %d\n",
676 pos += scnprintf(buf+pos, bufsz-pos, "flags = 0x%x\n",
678 pos += scnprintf(buf+pos, bufsz-pos, "keep_aliv
[all...]
/drivers/media/pci/cx18/
H A Dcx18-fileops.h27 loff_t *pos);
29 loff_t *pos);
/drivers/media/usb/tm6000/
H A Dtm6000-usb-isoc.h39 int pos, size, pktsize; member in struct:usb_isoc_ctl
/drivers/char/
H A Dps3flash.c106 size_t count, loff_t *pos)
117 __func__, __LINE__, count, *pos, userbuf, kernelbuf);
120 if (*pos >= size || !count)
123 if (*pos + count > size) {
126 __LINE__, count, size - *pos);
127 count = size - *pos;
130 sector = *pos / dev->bounce_size * priv->chunk_sectors;
131 offset = *pos % dev->bounce_size;
161 *pos += n;
175 const void *kernelbuf, size_t count, loff_t *pos)
105 ps3flash_read(char __user *userbuf, void *kernelbuf, size_t count, loff_t *pos) argument
174 ps3flash_write(const char __user *userbuf, const void *kernelbuf, size_t count, loff_t *pos) argument
249 ps3flash_user_read(struct file *file, char __user *buf, size_t count, loff_t *pos) argument
255 ps3flash_user_write(struct file *file, const char __user *buf, size_t count, loff_t *pos) argument
261 ps3flash_kernel_read(void *buf, size_t count, loff_t pos) argument
266 ps3flash_kernel_write(const void *buf, size_t count, loff_t pos) argument
[all...]
/drivers/vfio/pci/
H A Dvfio_pci_config.c117 int (*readfn)(struct vfio_pci_device *vdev, int pos, int count,
119 int (*writefn)(struct vfio_pci_device *vdev, int pos, int count,
180 static int vfio_default_config_read(struct vfio_pci_device *vdev, int pos, argument
186 memcpy(val, vdev->vconfig + pos, count);
196 ret = vfio_user_config_read(pdev, pos, &phys_val, count);
206 static int vfio_default_config_write(struct vfio_pci_device *vdev, int pos, argument
223 memcpy(&virt_val, vdev->vconfig + pos, count);
228 memcpy(vdev->vconfig + pos, &virt_val, count);
237 ret = vfio_user_config_read(pdev, pos, &phys_val, count);
244 ret = vfio_user_config_write(pdev, pos, phys_va
253 vfio_direct_config_read(struct vfio_pci_device *vdev, int pos, int count, struct perm_bits *perm, int offset, __le32 *val) argument
278 vfio_raw_config_write(struct vfio_pci_device *vdev, int pos, int count, struct perm_bits *perm, int offset, __le32 val) argument
291 vfio_raw_config_read(struct vfio_pci_device *vdev, int pos, int count, struct perm_bits *perm, int offset, __le32 *val) argument
471 vfio_basic_config_read(struct vfio_pci_device *vdev, int pos, int count, struct perm_bits *perm, int offset, __le32 *val) argument
492 vfio_basic_config_write(struct vfio_pci_device *vdev, int pos, int count, struct perm_bits *perm, int offset, __le32 val) argument
615 vfio_pm_config_write(struct vfio_pci_device *vdev, int pos, int count, struct perm_bits *perm, int offset, __le32 val) argument
823 vfio_find_cap_start(struct vfio_pci_device *vdev, int pos) argument
840 vfio_msi_config_read(struct vfio_pci_device *vdev, int pos, int count, struct perm_bits *perm, int offset, __le32 *val) argument
860 vfio_msi_config_write(struct vfio_pci_device *vdev, int pos, int count, struct perm_bits *perm, int offset, __le32 val) argument
940 vfio_msi_cap_len(struct vfio_pci_device *vdev, u8 pos) argument
971 vfio_vc_cap_len(struct vfio_pci_device *vdev, u16 pos) argument
1012 vfio_cap_len(struct vfio_pci_device *vdev, u8 cap, u8 pos) argument
1203 u8 pos, *prev, cap; local
1480 vfio_pci_cap_remaining_dword(struct vfio_pci_device *vdev, loff_t pos) argument
1577 loff_t pos = *ppos; local
[all...]
/drivers/gpu/drm/exynos/
H A Dexynos_drm_ipp.h18 #define for_each_ipp_ops(pos) \
19 for (pos = 0; pos < EXYNOS_DRM_OPS_MAX; pos++)
20 #define for_each_ipp_planar(pos) \
21 for (pos = 0; pos < EXYNOS_DRM_PLANAR_MAX; pos++)
132 struct drm_exynos_pos *pos, struct drm_exynos_sz *sz);
/drivers/media/usb/dvb-usb/
H A Ddvb-usb-firmware.c40 int ret,pos=0; local
47 while ((ret = dvb_usb_get_hexline(fw,&hx,&pos)) > 0) {
60 err("firmware download failed at %d with %d",pos,ret);
116 int *pos)
118 u8 *b = (u8 *) &fw->data[*pos];
120 if (*pos >= fw->size)
127 if ((*pos + hx->len + 4) >= fw->size)
142 *pos += hx->len + 5;
144 return *pos;
115 dvb_usb_get_hexline(const struct firmware *fw, struct hexline *hx, int *pos) argument
/drivers/staging/gdm72xx/
H A Dgdm_qos.c332 int i, index, pos; local
366 pos = 6;
367 sfid = ((buf[pos++]<<24)&0xff000000);
368 sfid += ((buf[pos++]<<16)&0xff0000);
369 sfid += ((buf[pos++]<<8)&0xff00);
370 sfid += (buf[pos++]);
386 qcb->csr[index].classifier_rule_en = ((buf[pos++]<<8)&0xff00);
387 qcb->csr[index].classifier_rule_en += buf[pos++];
390 qcb->csr[index].ip2s_mask = buf[pos++];
391 qcb->csr[index].ip2s_lo = buf[pos
[all...]
/drivers/crypto/qat/qat_common/
H A Dadf_transport_debug.c57 static void *adf_ring_start(struct seq_file *sfile, loff_t *pos) argument
62 if (*pos == 0)
65 if (*pos >= (ADF_SIZE_TO_RING_SIZE_IN_BYTES(ring->ring_size) /
70 (ADF_MSG_SIZE_TO_BYTES(ring->msg_size) * (*pos)++);
73 static void *adf_ring_next(struct seq_file *sfile, void *v, loff_t *pos) argument
77 if (*pos >= (ADF_SIZE_TO_RING_SIZE_IN_BYTES(ring->ring_size) /
82 (ADF_MSG_SIZE_TO_BYTES(ring->msg_size) * (*pos)++);
194 static void *adf_bank_start(struct seq_file *sfile, loff_t *pos) argument
197 if (*pos == 0)
200 if (*pos >
206 adf_bank_next(struct seq_file *sfile, void *v, loff_t *pos) argument
[all...]
/drivers/staging/rtl8188eu/core/
H A Drtw_ieee80211.c523 u8 *pos; local
536 pos = wpa_ie;
538 pos += 8;
544 *group_cipher = rtw_get_wpa_cipher_suite(pos);
545 pos += WPA_SELECTOR_LEN;
554 count = get_unaligned_le16(pos);
555 pos += 2;
565 *pairwise_cipher |= rtw_get_wpa_cipher_suite(pos);
567 pos += WPA_SELECTOR_LEN;
577 pos
592 u8 *pos; local
861 rtw_ieee802_11_parse_vendor_specific(u8 *pos, uint elen, struct rtw_ieee802_11_elems *elems, int show_errors) argument
957 u8 *pos = start; local
1105 u8 *pos = (u8 *)buf; local
1121 u8 *pos = (u8 *)ie; local
[all...]
/drivers/mtd/
H A Dmtdblock.c66 static int erase_write (struct mtd_info *mtd, unsigned long pos, argument
82 erase.addr = pos;
95 pos, len, mtd->name);
106 ret = mtd_write(mtd, pos, len, &retlen, buf);
144 static int do_cached_write (struct mtdblk_dev *mtdblk, unsigned long pos, argument
153 mtd->name, pos, len);
156 return mtd_write(mtd, pos, len, &retlen, buf);
159 unsigned long sect_start = (pos/sect_size)*sect_size;
160 unsigned int offset = pos - sect_start;
171 ret = erase_write (mtd, pos, siz
214 do_cached_read(struct mtdblk_dev *mtdblk, unsigned long pos, int len, char *buf) argument
[all...]
/drivers/video/fbdev/
H A Dcobalt_lcdfb.c183 unsigned long pos; local
186 pos = *ppos;
187 if (pos >= LCD_CHARS_MAX || count == 0)
193 if (pos + count > LCD_CHARS_MAX)
194 count = LCD_CHARS_MAX - pos;
201 lcd_write_control(info, LCD_TEXT_POS(pos));
208 if (pos == 0x0f)
209 pos = 0x40;
211 pos++;
229 unsigned long pos; local
[all...]
/drivers/soc/tegra/fuse/
H A Dfuse-tegra.c57 loff_t pos, size_t size)
61 if (pos < 0 || pos >= fuse_size)
64 if (size > fuse_size - pos)
65 size = fuse_size - pos;
68 buf[i] = fuse_readb(pos + i);
55 fuse_read(struct file *fd, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t pos, size_t size) argument

Completed in 1328 milliseconds

1234567891011>>