Searched refs:pos (Results 126 - 150 of 678) sorted by relevance

1234567891011>>

/drivers/net/can/
H A Dslcan.c259 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 Dxgene_enet_main.h137 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 Dxgene_enet_hw.h65 #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 Dproc.c168 unsigned pos; local
172 pos = *_pos;
173 if (pos == 0)
176 if (--pos == 0)
/drivers/sh/clk/
H A Dcore.c84 #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 Dtimer.c73 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 Dhostap_info.c255 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 Dparisc-agp.c293 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 Dgpio-tc3589x.c62 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 Dispcsiphy.c186 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 Dwmm.h73 struct list_head *pos; local
76 list_for_each(pos, head)
H A Ddebugfs.c563 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 Drtc-rp5c01.c165 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 Dsticon.c280 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 Dspear13xx_pcie_gadget.c136 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 Dfm10k_debugfs.c32 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 Dmodedb.c879 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 Ddell_rbu.c471 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 Di2c-qup.c120 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 Di2c-sh_mobile.c134 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 Di2c-kempld.c68 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 Dfiredtv-avc.c315 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 Dlba_pci.c364 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 Dvga16fb.c191 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 Dlinux-module.c334 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;

Completed in 646 milliseconds

1234567891011>>