/drivers/net/can/ |
H A D | slcan.c | 259 unsigned char *pos; local 263 pos = sl->xbuff; 266 *pos = 'R'; /* becomes 'r' in standard frame format (SFF) */ 268 *pos = 'T'; /* becomes 't' in standard frame format (SSF) */ 273 endpos = pos + SLC_EFF_ID_LEN; 275 *pos |= 0x20; /* convert R/T to lower case for SFF */ 277 endpos = pos + SLC_SFF_ID_LEN; 281 pos++; 282 while (endpos >= pos) { 287 pos [all...] |
/drivers/net/ethernet/apm/xgene/ |
H A D | xgene_enet_main.h | 137 static inline u64 xgene_enet_set_field_value(int pos, int len, u64 val) argument 139 return (val & ((1ULL << len) - 1)) << pos; 151 static inline u64 xgene_enet_get_field_value(int pos, int len, u64 src) argument 153 return (src >> pos) & ((1ULL << len) - 1);
|
H A D | xgene_enet_hw.h | 65 #define CREATE_MASK(pos, len) GENMASK((pos)+(len)-1, (pos)) 66 #define CREATE_MASK_ULL(pos, len) GENMASK_ULL((pos)+(len)-1, (pos))
|
/drivers/nubus/ |
H A D | proc.c | 168 unsigned pos; local 172 pos = *_pos; 173 if (pos == 0) 176 if (--pos == 0)
|
/drivers/sh/clk/ |
H A D | core.c | 84 #define for_each_frequency(pos, r, freq) \ 85 for (pos = r->min, freq = r->func(pos, r); \ 86 pos <= r->max; pos++, freq = r->func(pos, r)) \ 125 static long clk_rate_table_iter(unsigned int pos, argument 129 unsigned long freq = freq_table[pos].frequency; 155 static long clk_rate_div_range_iter(unsigned int pos, argument 158 return clk_get_rate(rounder->arg) / pos; 175 clk_rate_mult_range_iter(unsigned int pos, struct clk_rate_round_data *rounder) argument 199 struct cpufreq_frequency_table *pos; local [all...] |
/drivers/staging/lustre/lnet/selftest/ |
H A D | timer.c | 73 struct list_head *pos; local 84 list_for_each_prev(pos, STTIMER_SLOT(timer->stt_expires)) { 85 stt_timer_t *old = list_entry(pos, stt_timer_t, stt_list); 90 list_add(&timer->stt_list, pos);
|
/drivers/net/wireless/hostap/ |
H A D | hostap_info.c | 255 u16 *pos; local 267 pos = (u16 *) buf; 268 pos++; 269 pos++; 279 res = (struct hfa384x_scan_result *) pos; 309 __le16 *pos; local 320 pos = (__le16 *) buf; 321 copy_len = result_size = le16_to_cpu(*pos); 330 pos++; 331 pos [all...] |
/drivers/char/agp/ |
H A D | parisc-agp.c | 293 u8 pos, id; local 299 pos = readb(info->lba_regs + PCI_CAPABILITY_LIST); 300 while (ttl-- && pos >= 0x40) { 301 pos &= ~3; 302 id = readb(info->lba_regs + pos + PCI_CAP_LIST_ID); 306 return pos; 307 pos = readb(info->lba_regs + pos + PCI_CAP_LIST_NEXT);
|
/drivers/gpio/ |
H A D | gpio-tc3589x.c | 62 unsigned pos = offset % 8; local 63 u8 data[] = {!!val << pos, 1 << pos}; 74 unsigned pos = offset % 8; local 78 return tc3589x_set_bits(tc3589x, reg, 1 << pos, 1 << pos); 87 unsigned pos = offset % 8; local 89 return tc3589x_set_bits(tc3589x, reg, 1 << pos, 0);
|
/drivers/media/platform/omap3isp/ |
H A D | ispcsiphy.c | 186 if (lanes->data[i].pol > 1 || lanes->data[i].pos > 3) 189 if (used_lanes & (1 << lanes->data[i].pos)) 192 used_lanes |= 1 << lanes->data[i].pos; 195 if (lanes->clk.pol > 1 || lanes->clk.pos > 3) 198 if (lanes->clk.pos == 0 || used_lanes & (1 << lanes->clk.pos)) 246 reg |= (lanes->data[i].pos << 253 reg |= lanes->clk.pos << ISPCSI2_PHY_CFG_CLOCK_POSITION_SHIFT;
|
/drivers/net/wireless/mwifiex/ |
H A D | wmm.h | 73 struct list_head *pos; local 76 list_for_each(pos, head)
|
H A D | debugfs.c | 563 int pos = 0, ret = 0; local 571 pos += snprintf(buf, PAGE_SIZE, "0"); 579 pos += snprintf(buf, PAGE_SIZE, "%u 0x%x 0x%x\n", 583 ret = simple_read_from_buffer(ubuf, count, ppos, buf, pos); 595 pos += snprintf(buf, PAGE_SIZE, "%u 0x%x 0x%x\n", saved_reg_type, 598 ret = simple_read_from_buffer(ubuf, count, ppos, buf, pos); 663 int pos = 0, ret = 0, i; local 671 pos += snprintf(buf, PAGE_SIZE, "0"); 683 pos += snprintf(buf, PAGE_SIZE, "%d %d ", saved_offset, saved_bytes); 686 pos 769 int pos, ret; local [all...] |
/drivers/rtc/ |
H A D | rtc-rp5c01.c | 165 char *buf, loff_t pos, size_t size) 173 for (count = 0; size > 0 && pos < RP5C01_MODE; count++, size--) { 179 data = rp5c01_read(priv, pos) << 4; 183 data |= rp5c01_read(priv, pos++); 195 char *buf, loff_t pos, size_t size) 203 for (count = 0; size > 0 && pos < RP5C01_MODE; count++, size--) { 209 rp5c01_write(priv, data >> 4, pos); 213 rp5c01_write(priv, data & 0xf, pos++); 163 rp5c01_nvram_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t pos, size_t size) argument 193 rp5c01_nvram_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t pos, size_t size) argument
|
/drivers/video/console/ |
H A D | sticon.c | 280 static unsigned long sticon_getxy(struct vc_data *conp, unsigned long pos, argument 285 if (pos >= conp->vc_origin && pos < conp->vc_scr_end) { 286 unsigned long offset = (pos - conp->vc_origin) / 2; 292 ret = pos + (conp->vc_cols - x) * 2; 294 unsigned long offset = pos - softback_curr; 296 if (pos < softback_curr) 301 ret = pos + (conp->vc_cols - x) * 2;
|
/drivers/misc/ |
H A D | spear13xx_pcie_gadget.c | 136 u32 pos, int cap, int *ttl) 141 spear_dbi_read_reg(config, pos, 1, &pos); 142 if (pos < 0x40) 144 pos &= ~3; 145 spear_dbi_read_reg(config, pos + PCI_CAP_LIST_ID, 1, &id); 149 return pos; 150 pos += PCI_CAP_LIST_NEXT; 156 u32 pos, int cap) 160 return pci_find_own_next_cap_ttl(config, pos, ca 135 pci_find_own_next_cap_ttl(struct spear_pcie_gadget_config *config, u32 pos, int cap, int *ttl) argument 155 pci_find_own_next_cap(struct spear_pcie_gadget_config *config, u32 pos, int cap) argument 203 u32 pos; local 457 u32 pos, pos1; local [all...] |
/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_debugfs.c | 32 static void *fm10k_dbg_desc_seq_start(struct seq_file *s, loff_t *pos) argument 36 return (*pos < ring->count) ? pos : NULL; 39 static void *fm10k_dbg_desc_seq_next(struct seq_file *s, void *v, loff_t *pos) argument 43 return (++(*pos) < ring->count) ? pos : NULL;
|
/drivers/video/fbdev/core/ |
H A D | modedb.c | 879 struct list_head *pos; local 884 list_for_each(pos, head) { 887 modelist = list_entry(pos, struct fb_modelist, list); 917 struct list_head *pos; local 922 list_for_each(pos, head) { 925 modelist = list_entry(pos, struct fb_modelist, list); 957 struct list_head *pos; local 962 list_for_each(pos, head) { 963 modelist = list_entry(pos, struct fb_modelist, list); 981 struct list_head *pos; local 1017 struct list_head *pos, *n; local 1037 struct list_head *pos, *n; local 1068 struct list_head *pos; local [all...] |
/drivers/firmware/ |
H A D | dell_rbu.c | 471 static ssize_t read_packet_data(char *buffer, loff_t pos, size_t count) argument 485 if (pos > rbu_data.imagesize) { 492 bytes_left = rbu_data.imagesize - pos; 498 if ((pos + count) > rbu_data.imagesize) { 509 static ssize_t read_rbu_mono_data(char *buffer, loff_t pos, size_t count) argument 521 return memory_read_from_buffer(buffer, count, &pos, 527 char *buffer, loff_t pos, size_t count) 534 ret_count = read_rbu_mono_data(buffer, pos, count); 536 ret_count = read_packet_data(buffer, pos, count); 581 char *buffer, loff_t pos, size_ 525 read_rbu_data(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buffer, loff_t pos, size_t count) argument 579 read_rbu_image_type(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buffer, loff_t pos, size_t count) argument 589 write_rbu_image_type(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buffer, loff_t pos, size_t count) argument 650 read_rbu_packet_size(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buffer, loff_t pos, size_t count) argument 663 write_rbu_packet_size(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buffer, loff_t pos, size_t count) argument [all...] |
/drivers/i2c/busses/ |
H A D | i2c-qup.c | 120 int pos; member in struct:qup_i2c_dev 272 if (qup->pos == 0) { 280 while (qup->pos < msg->len) { 286 if (qup->pos == msg->len - 1) 292 val |= (qup_tag | msg->buf[qup->pos]) << QUP_MSW_SHIFT; 294 val = qup_tag | msg->buf[qup->pos]; 297 if (idx & 1 || qup->pos == msg->len - 1) 300 qup->pos++; 311 qup->pos = 0; 347 } while (qup->pos < ms [all...] |
H A D | i2c-sh_mobile.c | 134 int pos; member in struct:sh_mobile_i2c_data 367 return pd->pos == -1; 372 return pd->pos == pd->msg->len - 1; 378 switch (pd->pos) { 384 *buf = pd->msg->buf[pd->pos]; 392 if (pd->pos == pd->msg->len) 404 pd->pos++; 414 if (pd->pos <= -1) { 424 if (pd->pos == 0) { 429 real_pos = pd->pos [all...] |
H A D | i2c-kempld.c | 68 int pos; member in struct:kempld_i2c_data 160 msg->buf[i2c->pos++] = kempld_read8(pld, KEMPLD_I2C_DATA); 163 if (i2c->pos >= msg->len) { 166 i2c->pos = 0; 185 kempld_write8(pld, KEMPLD_I2C_CMD, i2c->pos == (msg->len - 1) ? 188 kempld_write8(pld, KEMPLD_I2C_DATA, msg->buf[i2c->pos++]); 204 i2c->pos = 0;
|
/drivers/media/firewire/ |
H A D | firedtv-avc.c | 315 int i, n, pos = 1; local 319 operand[pos++] = 0x13; /* flowfunction relay */ 320 operand[pos++] = 0x80; /* dsd_sel_spec_valid_flags -> PID */ 321 operand[pos++] = (fdtv->channel_pid[i] >> 8) & 0x1f; 322 operand[pos++] = fdtv->channel_pid[i] & 0xff; 323 operand[pos++] = 0x00; /* tableID */ 324 operand[pos++] = 0x00; /* filter_length */ 330 return pos; 591 int pos, ret; local 600 case FIREDTV_DVB_S2: pos 630 int ret, pos, k; local 838 int pos, j, k, ret; local 975 int pos, ret; local 1016 int i, pos, ret; local [all...] |
/drivers/parisc/ |
H A D | lba_pci.c | 364 static int elroy_cfg_read(struct pci_bus *bus, unsigned int devfn, int pos, int size, u32 *data) argument 371 if ((pos > 255) || (devfn > 255)) 378 *data = lba_rd_cfg(d, tok, pos, size); 379 DBG_CFG("%s(%x+%2x) -> 0x%x (a)\n", __func__, tok, pos, *data); 384 DBG_CFG("%s(%x+%2x) -> -1 (b)\n", __func__, tok, pos); 394 LBA_CFG_ADDR_SETUP(d, tok | pos); 396 case 1: *data = READ_REG8 (data_reg + (pos & 3)); break; 397 case 2: *data = READ_REG16(data_reg + (pos & 2)); break; 400 DBG_CFG("%s(%x+%2x) -> 0x%x (c)\n", __func__, tok, pos, *data); 431 static int elroy_cfg_write(struct pci_bus *bus, unsigned int devfn, int pos, in argument 481 mercury_cfg_read(struct pci_bus *bus, unsigned int devfn, int pos, int size, u32 *data) argument 513 mercury_cfg_write(struct pci_bus *bus, unsigned int devfn, int pos, int size, u32 data) argument [all...] |
/drivers/video/fbdev/ |
H A D | vga16fb.c | 191 u32 xoffset, pos; local 195 pos = (info->var.xres_virtual * var->yoffset + xoffset) >> 2; 198 pos = (info->var.xres_virtual * (var->yoffset / fh) + xoffset) >> 3; 202 pos = (info->var.xres_virtual * var->yoffset + xoffset) >> 3; 204 vga_io_wcrt(VGA_CRTC_START_HI, pos >> 8); 205 vga_io_wcrt(VGA_CRTC_START_LO, pos & 0xFF); 319 u32 pos; local 388 pos = xres + right; 389 par->crtc[VGA_CRTC_H_SYNC_START] = pos; 390 pos [all...] |
/drivers/staging/lustre/lustre/obdclass/linux/ |
H A D | linux-module.c | 334 static void *obd_device_list_seq_start(struct seq_file *p, loff_t *pos) argument 336 if (*pos >= class_devno_max()) 339 return pos; 346 static void *obd_device_list_seq_next(struct seq_file *p, void *v, loff_t *pos) argument 348 ++*pos; 349 if (*pos >= class_devno_max()) 352 return pos;
|