/drivers/staging/comedi/drivers/ |
H A D | jr3_pci.c | 320 static int read_idm_word(const u8 *data, size_t size, int *pos, argument 326 if (pos && val) { 328 for (; *pos < size && !isxdigit(data[*pos]); (*pos)++) 332 for (; *pos < size; (*pos)++) { 333 value = hex_to_bin(data[*pos]); 349 int pos = 0; local 360 more = more && read_idm_word(data, size, &pos, 384 int pos = 0; local [all...] |
/drivers/staging/lustre/lnet/lnet/ |
H A D | router_proc.c | 73 #define LNET_PROC_CPT_GET(pos) \ 74 (int)(((pos) >> LNET_PROC_VPOS_BITS) & LNET_PROC_CPT_MASK) 76 #define LNET_PROC_VER_GET(pos) \ 77 (int)(((pos) >> LNET_PROC_HPOS_BITS) & LNET_PROC_VER_MASK) 79 #define LNET_PROC_HASH_GET(pos) \ 80 (int)(((pos) >> LNET_PROC_HOFF_BITS) & LNET_PROC_HASH_MASK) 82 #define LNET_PROC_HOFF_GET(pos) \ 83 (int)((pos) & LNET_PROC_HOFF_MASK) 96 loff_t pos, void __user *buffer, int len)) 113 loff_t pos, voi 93 proc_call_handler(void *data, int write, loff_t *ppos, void __user *buffer, size_t *lenp, int (*handler)(void *data, int write, loff_t pos, void __user *buffer, int len)) argument 112 __proc_lnet_stats(void *data, int write, loff_t pos, void __user *buffer, int nob) argument 595 __proc_lnet_buffers(void *data, int write, loff_t pos, void __user *buffer, int nob) argument 818 __proc_lnet_portal_rotor(void *data, int write, loff_t pos, void __user *buffer, int nob) argument [all...] |
/drivers/cpufreq/ |
H A D | cpufreq_stats.c | 368 struct cpufreq_frequency_table *pos; local 400 cpufreq_for_each_valid_entry(pos, table) 401 if (freq_table_get_index(stat, pos->frequency) == -1) 402 stat->freq_table[i++] = pos->frequency; 434 struct cpufreq_frequency_table *pos; local 456 cpufreq_for_each_valid_entry(pos, table) 457 powerstats->freq_table[i++] = pos->frequency; 568 struct cpufreq_frequency_table *table, *pos; local 580 cpufreq_for_each_valid_entry(pos, table) 599 struct cpufreq_frequency_table *table, *pos; local [all...] |
H A D | longhaul.h | 315 unsigned short pos; member in struct:mV_pos
|
/drivers/leds/ |
H A D | leds-lp5523.c | 476 int i, pos = 0; local 478 pos += sprintf(array + pos, "%x", LED_ACTIVE(led_mux, i)); 480 array[pos] = '\0'; 589 int i, ret, pos = 0; local 648 pos += sprintf(buf + pos, "LED %d FAIL\n", i); 657 if (pos == 0) 658 pos = sprintf(buf, "OK\n"); 661 pos [all...] |
/drivers/net/wireless/hostap/ |
H A D | hostap_download.c | 103 __le16 *pos = (__le16 *) buf; local 105 *pos++ = HFA384X_INW_DATA(HFA384X_AUXDATA_OFF); 134 __le16 *pos = (__le16 *) buf; local 136 HFA384X_OUTW_DATA(*pos++, HFA384X_AUXDATA_OFF); 151 int pos; local 158 pos = 0; 159 while (pos + 1 < PRISM2_PDA_SIZE / 2) { 160 len = le16_to_cpu(pda[pos]); 161 pdr = le16_to_cpu(pda[pos + 1]); 162 if (len == 0 || pos [all...] |
/drivers/staging/lustre/lustre/obdclass/ |
H A D | acl.c | 263 posix_acl_xattr_entry *entry, int *pos) 268 start = *pos; 278 *pos = i; 286 end = *pos; 301 int ext_count = le32_to_cpu(ext_header->a_count), pos = 0, rc = 0; local 307 ee = lustre_ext_acl_xattr_search(ext_header, &pe, &pos); 370 pos = 0; 373 &posix_header->a_entries[i], &pos); 420 int i, j, pos = 0, rc = 0; local 462 &posix_header->a_entries[i], &pos); 262 lustre_ext_acl_xattr_search(ext_acl_xattr_header *header, posix_acl_xattr_entry *entry, int *pos) argument [all...] |
/drivers/staging/nvec/ |
H A D | nvec.c | 230 return (msg->pos || msg->size) ? (msg->data[1] + 2) : 0; 398 msg->pos = 0; 480 if (nvec->tx->pos != nvec->tx->size) { 482 nvec->tx->pos = 0; 497 if (nvec->rx->pos != nvec_msg_size(nvec->rx)) { 500 (uint) nvec->rx->pos); 558 nvec->tx_scratch.pos = 0; 564 nvec->tx->pos = 0; 628 nvec->rx->pos = 1; 646 nvec->tx->pos [all...] |
/drivers/atm/ |
H A D | zatm.c | 362 unsigned long pos; local 368 pos = (zatm_dev->mbx_start[mbx] & ~0xffffUL) | zin(MTA(mbx)); 369 while (x = zin(MWA(mbx)), (pos & 0xffff) != x) { 375 EVENT("MBX: host 0x%lx, nic 0x%x\n",pos,x); 376 here = (u32 *) pos; 377 if (((pos += 16) & 0xffff) == zatm_dev->mbx_end[mbx]) 378 pos = zatm_dev->mbx_start[mbx]; 419 int pos; local 421 pos = ZATM_VCC(vcc)->pool; 422 if (skb == zatm_dev->last_free[pos]) 539 int pos,shift; local 561 int pos,shift; local 744 unsigned long pos; local [all...] |
/drivers/infiniband/hw/cxgb4/ |
H A D | device.c | 87 int pos; member in struct:c4iw_debugfs_data 113 return simple_read_from_buffer(buf, count, ppos, d->buf, d->pos); 207 size_t count, loff_t *pos) 237 space = qpd->bufsize - qpd->pos - 1; 252 cc = snprintf(qpd->buf + qpd->pos, space, 276 cc = snprintf(qpd->buf + qpd->pos, space, 292 cc = snprintf(qpd->buf + qpd->pos, space, 298 qpd->pos += cc; 326 qpd->pos = 0; 343 qpd->buf[qpd->pos 206 wr_log_clear(struct file *file, const char __user *buf, size_t count, loff_t *pos) argument 501 stats_clear(struct file *file, const char __user *buf, size_t count, loff_t *pos) argument 740 struct list_head *pos, *nxt; local [all...] |
/drivers/vme/bridges/ |
H A D | vme_ca91cx42.c | 1275 struct list_head *pos, *temp; local 1279 list_for_each_safe(pos, temp, &list->entries) { 1280 list_del(pos); 1281 entry = list_entry(pos, struct ca91cx42_dma_entry, list); 1600 struct list_head *pos = NULL, *n; local 1818 list_for_each_safe(pos, n, &ca91cx42_bridge->lm_resources) { 1819 lm = list_entry(pos, struct vme_lm_resource, list); 1820 list_del(pos); 1825 list_for_each_safe(pos, n, &ca91cx42_bridge->dma_resources) { 1826 dma_ctrlr = list_entry(pos, struc 1865 struct list_head *pos = NULL, *n; local [all...] |
/drivers/net/wireless/iwlwifi/mvm/ |
H A D | scan.c | 213 u8 *pos = NULL; local 234 pos = &frame->u.probe_req.variable[0]; 240 *pos++ = WLAN_EID_SSID; 241 *pos++ = ssid_len; 243 memcpy(pos, ssid, ssid_len); 244 pos += ssid_len; 253 memcpy(pos, band_ie, band_ie_len); 254 pos += band_ie_len; 259 memcpy(pos, common_ie, common_ie_len); 260 pos 1136 u8 *pos; local [all...] |
/drivers/staging/lustre/lustre/mgc/ |
H A D | mgc_request.c | 1115 int pos; local 1127 pos = snprintf(inst, PAGE_CACHE_SIZE, "%p", cfg->cfg_instance); 1128 if (pos >= PAGE_CACHE_SIZE) { 1140 pos = strlen(inst); 1143 ++pos; 1144 buf = inst + pos; 1145 bufsz = PAGE_CACHE_SIZE - pos; 1211 pos = 0; 1222 pos = cname - obdname; 1223 obdname[pos] [all...] |
/drivers/net/wireless/ath/ath6kl/ |
H A D | cfg80211.c | 302 static bool ath6kl_is_wpa_ie(const u8 *pos) argument 304 return pos[0] == WLAN_EID_VENDOR_SPECIFIC && pos[1] >= 4 && 305 pos[2] == 0x00 && pos[3] == 0x50 && 306 pos[4] == 0xf2 && pos[5] == 0x01; 309 static bool ath6kl_is_rsn_ie(const u8 *pos) argument 311 return pos[0] == WLAN_EID_RSN; 314 static bool ath6kl_is_wps_ie(const u8 *pos) argument 326 const u8 *pos; local 1895 int ret, pos; local 2622 ath6kl_is_p2p_ie(const u8 *pos) argument 2633 const u8 *pos; local 3054 const u8 *pos; local [all...] |
H A D | main.c | 427 u8 *ies = NULL, *wpa_ie = NULL, *pos; local 449 pos = ies; 450 while (pos && pos + 1 < ies + ies_len) { 451 if (pos + 2 + pos[1] > ies + ies_len) 453 if (pos[0] == WLAN_EID_RSN) 454 wpa_ie = pos; /* RSN IE */ 455 else if (pos[0] == WLAN_EID_VENDOR_SPECIFIC && 456 pos[ [all...] |
/drivers/base/ |
H A D | dma-coherent.c | 122 int pos, err; local 130 pos = (device_addr - mem->device_base) >> PAGE_SHIFT; 131 err = bitmap_allocate_region(mem->bitmap, pos, get_order(size)); 136 return mem->virt_base + (pos << PAGE_SHIFT);
|
/drivers/char/ |
H A D | misc.c | 66 static void *misc_seq_start(struct seq_file *seq, loff_t *pos) argument 69 return seq_list_start(&misc_list, *pos); 72 static void *misc_seq_next(struct seq_file *seq, void *v, loff_t *pos) argument 74 return seq_list_next(v, &misc_list, pos);
|
/drivers/char/tpm/ |
H A D | tpm_eventlog.c | 71 /* returns pointer to start of pos. entry of tcg log */ 72 static void *tpm_bios_measurements_start(struct seq_file *m, loff_t *pos) argument 80 /* read over *pos measurements */ 81 for (i = 0; i < *pos; i++) { 105 loff_t *pos) 126 (*pos)++; 104 tpm_bios_measurements_next(struct seq_file *m, void *v, loff_t *pos) argument
|
/drivers/clk/sunxi/ |
H A D | clk-factors.c | 37 #define SETMASK(len, pos) (((1U << (len)) - 1) << (pos)) 38 #define CLRMASK(len, pos) (~(SETMASK(len, pos)))
|
/drivers/crypto/qat/qat_common/ |
H A D | adf_cfg.c | 56 static void *qat_dev_cfg_start(struct seq_file *sfile, loff_t *pos) argument 61 return seq_list_start(&dev_cfg->sec_list, *pos); 79 static void *qat_dev_cfg_next(struct seq_file *sfile, void *v, loff_t *pos) argument 83 return seq_list_next(v, &dev_cfg->sec_list, pos);
|
/drivers/gpu/host1x/ |
H A D | cdma.h | 48 u32 pos; /* index to write to */ member in struct:push_buffer
|
/drivers/iio/pressure/ |
H A D | mpl3115.c | 143 int ret, pos = 0; local 155 MPL3115_OUT_PRESS, 3, &buffer[pos]); 160 pos += 4; 165 MPL3115_OUT_TEMP, 2, &buffer[pos]);
|
/drivers/net/wireless/rtlwifi/ |
H A D | ps.c | 724 u8 *pos, *end, *ie; local 729 pos = (u8 *)mgmt->u.beacon.variable; 733 while (pos + 1 < end) { 734 if (pos + 2 + pos[1] > end) 737 if (pos[0] == 221 && pos[1] > 4) { 738 if (memcmp(&pos[2], p2p_oui_ie_type, 4) == 0) { 739 ie = pos + 2+4; 743 pos 824 u8 *pos, *end, *ie; local [all...] |
/drivers/pnp/ |
H A D | core.c | 53 struct list_head *pos; local 61 list_for_each(pos, &pnp_protocols) { 62 struct pnp_protocol *cur = to_pnp_protocol(pos); 64 pos = &pnp_protocols;
|
/drivers/scsi/csiostor/ |
H A D | csio_hw_t4.c | 296 u32 pos, start, offset, memoffset, bar0; local 352 for (pos = start; len > 0; pos += mem_aperture, offset = 0) { 358 csio_wr_reg32(hw, pos,
|