/drivers/gpio/ |
H A D | gpio-adnp.c | 77 unsigned int pos = offset & 7; local 85 return (value & BIT(pos)) ? 1 : 0; 91 unsigned int pos = offset & 7; local 100 val |= BIT(pos); 102 val &= ~BIT(pos); 120 unsigned int pos = offset & 7; local 130 value &= ~BIT(pos); 140 if (err & BIT(pos)) 155 unsigned int pos = offset & 7; local 165 val |= BIT(pos); 345 unsigned int pos = d->hwirq & 7; local 355 unsigned int pos = d->hwirq & 7; local 365 unsigned int pos = d->hwirq & 7; local [all...] |
/drivers/misc/eeprom/ |
H A D | sunxi_sid.c | 64 loff_t pos, size_t size) 73 if (pos < 0 || pos >= sid_data->keysize) 75 if (size > sid_data->keysize - pos) 76 size = sid_data->keysize - pos; 79 buf[i] = sunxi_sid_read_byte(sid_data, pos + i); 62 sid_read(struct file *fd, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t pos, size_t size) argument
|
/drivers/net/wireless/iwlwifi/pcie/ |
H A D | trans.c | 1564 int pos = 0; local 1581 pos += scnprintf(buf + pos, bufsz - pos, 1589 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); 1602 int pos = 0; local 1605 pos += scnprintf(buf + pos, bufsz - pos, "read: %u\n", 1607 pos 1633 int pos = 0; local [all...] |
/drivers/thermal/ |
H A D | thermal_core.c | 66 struct thermal_governor *pos; local 71 list_for_each_entry(pos, &thermal_governor_list, governor_list) 72 if (!strncasecmp(name, pos->name, THERMAL_NAME_LENGTH)) 73 return pos; 82 struct thermal_zone_device *pos; local 100 list_for_each_entry(pos, &thermal_tz_list, node) { 105 if (pos->governor) 108 name = pos->tzp->governor_name; 111 pos->governor = governor; 122 struct thermal_zone_device *pos; local 192 struct thermal_instance *pos = NULL; local 257 struct thermal_zone_device *pos = NULL; local 293 struct thermal_cooling_device *pos = NULL; local 927 struct thermal_instance *pos; local 1033 struct thermal_instance *pos, *next; local 1226 struct thermal_cooling_device *pos = NULL; local 1596 struct thermal_zone_device *pos = NULL; local 1666 struct thermal_zone_device *pos = NULL, *ref = ERR_PTR(-EINVAL); local [all...] |
H A D | cpu_cooling.c | 150 struct cpufreq_frequency_table *pos, *table = local 159 cpufreq_for_each_valid_entry(pos, table) { 161 if (freq == pos->frequency) 166 descend = freq > pos->frequency; 168 freq = pos->frequency; 189 cpufreq_for_each_valid_entry(pos, table) { 191 if (freq == pos->frequency) 195 freq = pos->frequency;
|
/drivers/firmware/efi/ |
H A D | efi-pstore.c | 110 static void efi_pstore_scan_sysfs_enter(struct efivar_entry *pos, argument 114 pos->scanning = true; 138 * @pos: scanning entry 143 static void efi_pstore_scan_sysfs_exit(struct efivar_entry *pos, argument 147 __efi_pstore_scan_sysfs_exit(pos, true); 156 * @pos: entry to begin iterating from 162 * the list by passing @pos. @pos is updated on return to point to 164 * To begin iterating from the beginning of the list @pos must be %NULL. 166 static int efi_pstore_sysfs_entry_iter(void *data, struct efivar_entry **pos) argument [all...] |
/drivers/input/misc/ |
H A D | rotary_encoder.c | 37 unsigned int pos; member in struct:rotary_encoder 67 unsigned int pos = encoder->pos; local 72 pos += pdata->steps; 73 if (pos) 74 pos--; 77 if (pdata->rollover || pos < pdata->steps) 78 pos++; 82 pos %= pdata->steps; 84 encoder->pos [all...] |
/drivers/mtd/chips/ |
H A D | chipreg.c | 33 struct list_head *pos; local 38 list_for_each(pos, &chip_drvs_list) { 39 this = list_entry(pos, typeof(*this), list);
|
/drivers/cpufreq/ |
H A D | elanfreq.c | 150 struct cpufreq_frequency_table *pos; local 162 cpufreq_for_each_entry(pos, elanfreq_table) 163 if (pos->frequency > max_freq) 164 pos->frequency = CPUFREQ_ENTRY_INVALID;
|
H A D | exynos-cpufreq.c | 31 struct cpufreq_frequency_table *pos; local 33 cpufreq_for_each_entry(pos, freq_table) 34 if (pos->frequency == freq) 37 if (pos->frequency == CPUFREQ_TABLE_END) 40 return pos - freq_table;
|
/drivers/scsi/ |
H A D | NCR_D700.c | 129 char *pos = string, *next; local 132 while(pos != NULL && (next = strchr(pos, ':')) != NULL) { 135 if(!strncmp(pos, "slot:", 5)) 137 else if(!strncmp(pos, "siop:", 5)) 139 else if(!strncmp(pos, "id:", 3)) { 153 if((pos = strchr(pos, ARG_SEP)) != NULL) 154 pos++;
|
/drivers/staging/media/omap4iss/ |
H A D | iss_csiphy.c | 41 reg |= (phy->lanes.data[i].pos << 48 reg |= phy->lanes.clk.pos << CSI2_COMPLEXIO_CFG_CLOCK_POSITION_SHIFT; 177 if (lanes->data[i].pos == 0) 181 lanes->data[i].pos > (csi2->phy->max_data_lanes + 1)) 184 if (used_lanes & (1 << lanes->data[i].pos)) 187 used_lanes |= 1 << lanes->data[i].pos; 192 lanes->clk.pos > (csi2->phy->max_data_lanes + 1)) 195 if (lanes->clk.pos == 0 || used_lanes & (1 << lanes->clk.pos))
|
/drivers/net/wireless/mwifiex/ |
H A D | join.c | 397 u8 *pos; local 400 pos = (u8 *) assoc; 409 pos += sizeof(assoc->peer_sta_addr); 416 pos += sizeof(assoc->cap_info_bitmap); 417 pos += sizeof(assoc->listen_interval); 418 pos += sizeof(assoc->beacon_period); 419 pos += sizeof(assoc->dtim_period); 421 ssid_tlv = (struct mwifiex_ie_types_ssid_param_set *) pos; 426 pos += sizeof(ssid_tlv->header) + le16_to_cpu(ssid_tlv->header.len); 428 phy_tlv = (struct mwifiex_ie_types_phy_param_set *) pos; 793 u8 *pos = (u8 *) adhoc_start + local 1065 u8 *pos = local [all...] |
/drivers/pci/ |
H A D | pci.c | 143 u8 pos, int cap, int *ttl) 148 pci_bus_read_config_byte(bus, devfn, pos, &pos); 149 if (pos < 0x40) 151 pos &= ~3; 152 pci_bus_read_config_byte(bus, devfn, pos + PCI_CAP_LIST_ID, 157 return pos; 158 pos += PCI_CAP_LIST_NEXT; 164 u8 pos, int cap) 168 return __pci_find_next_cap_ttl(bus, devfn, pos, ca 142 __pci_find_next_cap_ttl(struct pci_bus *bus, unsigned int devfn, u8 pos, int cap, int *ttl) argument 163 __pci_find_next_cap(struct pci_bus *bus, unsigned int devfn, u8 pos, int cap) argument 171 pci_find_next_capability(struct pci_dev *dev, u8 pos, int cap) argument 221 int pos; local 246 int pos; local 274 int pos = PCI_CFG_SPACE_SIZE; local 331 __pci_find_next_ht_cap(struct pci_dev *dev, int pos, int ht_cap) argument 371 pci_find_next_ht_capability(struct pci_dev *dev, int pos, int ht_cap) argument 390 int pos; local 451 pci_wait_for_pending(struct pci_dev *dev, int pos, u16 mask) argument 960 int pos; local 981 int i = 0, pos; local 2125 int pos; local 2239 int pos; local 2284 int pos; local 3084 int pos; local 3158 int pos; local [all...] |
/drivers/s390/cio/ |
H A D | qdio_setup.c | 44 int pos; local 46 for (pos = 0; pos < count; pos += QBUFF_PER_PAGE) 47 free_page((unsigned long) buf[pos]); 58 int pos; local 60 for (pos = 0; pos < count; pos += QBUFF_PER_PAGE) { 61 buf[pos] 81 int pos; local [all...] |
/drivers/staging/rtl8723au/core/ |
H A D | rtw_ieee80211.c | 451 const u8 *pos; local 461 pos = wpa_ie; 463 pos += 8; 469 *group_cipher = rtw_get_wpa_cipher_suite(pos); 471 pos += WPA_SELECTOR_LEN; 483 /* count = le16_to_cpu(*(u16*)pos); */ 484 count = get_unaligned_le16(pos); 485 pos += 2; 497 *pairwise_cipher |= rtw_get_wpa_cipher_suite(pos); 499 pos 528 const u8 *pos; local [all...] |
/drivers/staging/rtl8192e/ |
H A D | rtllib_crypt_tkip.c | 300 u8 *pos; local 329 pos = skb_push(skb, 8); 330 memmove(pos, pos + 8, hdr_len); 331 pos += hdr_len; 334 *pos++ = Hi8(tkey->tx_iv16); 335 *pos++ = (Hi8(tkey->tx_iv16) | 0x20) & 0x7F; 336 *pos++ = Lo8(tkey->tx_iv16); 338 *pos++ = rc4key[0]; 339 *pos 381 u8 keyidx, *pos; local 554 u8 *pos; local [all...] |
/drivers/staging/rtl8192u/ieee80211/ |
H A D | ieee80211_crypt_tkip.c | 309 u8 *pos; local 338 pos = skb_push(skb, 8); 339 memmove(pos, pos + 8, hdr_len); 340 pos += hdr_len; 344 *pos++ = Hi8(tkey->tx_iv16); 345 *pos++ = (Hi8(tkey->tx_iv16) | 0x20) & 0x7F; 346 *pos++ = Lo8(tkey->tx_iv16); 350 *pos++ = rc4key[0]; 351 *pos 391 u8 keyidx, *pos; local 559 u8 *pos; local [all...] |
/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_gsc.c | 607 struct drm_exynos_pos *pos, struct drm_exynos_sz *sz) 610 struct drm_exynos_pos img_pos = *pos; 615 swap, pos->x, pos->y, pos->w, pos->h); 618 img_pos.w = pos->h; 619 img_pos.h = pos->w; 647 DRM_DEBUG_KMS("width[%d]range[%d]\n", pos->w, sc->range); 649 if (pos 606 gsc_src_set_size(struct device *dev, int swap, struct drm_exynos_pos *pos, struct drm_exynos_sz *sz) argument 1028 gsc_dst_set_size(struct device *dev, int swap, struct drm_exynos_pos *pos, struct drm_exynos_sz *sz) argument 1385 struct drm_exynos_pos *pos; local [all...] |
/drivers/net/wireless/libertas/ |
H A D | debugfs.c | 36 size_t pos = 0; local 43 pos += snprintf(buf+pos, len-pos, "state = %s\n", 45 pos += snprintf(buf+pos, len-pos, "region_code = %02x\n", 48 res = simple_read_from_buffer(userbuf, count, ppos, buf, pos); 100 size_t pos = 0; local 111 pos 174 size_t pos = 0; local 208 ssize_t pos = 0; local 232 size_t pos = 0; local 450 ssize_t pos = 0; local 531 ssize_t pos = 0; local 613 ssize_t pos = 0; local 862 size_t pos = 0; local [all...] |
/drivers/char/ |
H A D | bfin-otp.c | 39 static ssize_t bfin_otp_read(struct file *file, char __user *buff, size_t count, loff_t *pos) argument 54 page = *pos / (sizeof(u64) * 2); 56 flags = (*pos % (sizeof(u64) * 2) ? OTP_UPPER_HALF : OTP_LOWER_HALF); 72 *pos += sizeof(content); 120 static ssize_t bfin_otp_write(struct file *filp, const char __user *buff, size_t count, loff_t *pos) argument 146 page = *pos / (sizeof(u64) * 2); 148 flags = base_flags | (*pos % (sizeof(u64) * 2) ? OTP_UPPER_HALF : OTP_LOWER_HALF); 164 *pos += sizeof(content);
|
/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_fs.c | 58 static void *ipoib_mcg_seq_start(struct seq_file *file, loff_t *pos) argument 61 loff_t n = *pos; 78 loff_t *pos) 82 (*pos)++; 157 static void *ipoib_path_seq_start(struct seq_file *file, loff_t *pos) argument 160 loff_t n = *pos; 177 loff_t *pos) 181 (*pos)++; 77 ipoib_mcg_seq_next(struct seq_file *file, void *iter_ptr, loff_t *pos) argument 176 ipoib_path_seq_next(struct seq_file *file, void *iter_ptr, loff_t *pos) argument
|
/drivers/net/wireless/iwlwifi/ |
H A D | iwl-io.c | 240 int pos = 0; local 247 pos += scnprintf(*buf + pos, bufsz - pos, 251 pos += scnprintf(*buf + pos, bufsz - pos, 256 return pos;
|
/drivers/s390/block/ |
H A D | dasd_alias.c | 54 struct alias_server *pos; local 55 list_for_each_entry(pos, &aliastree.serverlist, server) { 56 if (!strncmp(pos->uid.vendor, uid->vendor, 58 && !strncmp(pos->uid.serial, uid->serial, 60 return pos; 68 struct alias_lcu *pos; local 69 list_for_each_entry(pos, &server->lculist, lcu) { 70 if (pos->uid.ssid == uid->ssid) 71 return pos; 79 struct alias_pav_group *pos; local 310 _add_device_to_lcu(struct alias_lcu *lcu, struct dasd_device *device, struct dasd_device *pos) argument 832 __stop_device_on_lcu(struct dasd_device *device, struct dasd_device *pos) argument 853 struct dasd_device *pos; local [all...] |
/drivers/staging/lustre/lustre/libcfs/linux/ |
H A D | linux-proc.c | 104 loff_t pos, void __user *buffer, int len)) 121 loff_t pos, void __user *buffer, int nob) 138 if (pos >= rc) { 142 tmpstr + pos, "\n"); 172 loff_t pos, void __user *buffer, int nob) 188 loff_t pos, void __user *buffer, int nob) 193 if (pos >= len) 197 cfs_tracefile + pos, "\n"); 211 loff_t pos, void __user *buffer, int nob) 218 if (pos > 101 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 120 __proc_dobitmasks(void *data, int write, loff_t pos, void __user *buffer, int nob) argument 171 __proc_dump_kernel(void *data, int write, loff_t pos, void __user *buffer, int nob) argument 187 __proc_daemon_file(void *data, int write, loff_t pos, void __user *buffer, int nob) argument 210 __proc_debug_mb(void *data, int write, loff_t pos, void __user *buffer, int nob) argument 347 __proc_cpt_table(void *data, int write, loff_t pos, void __user *buffer, int nob) argument [all...] |