Home
last modified time | relevance | path

Searched refs:position (Results 1 – 25 of 67) sorted by relevance

123

/drivers/acpi/acpica/
Dacmacros.h269 #define ACPI_MASK_BITS_ABOVE(position) (~((ACPI_UINT64_MAX) << ((u32) (position)))) argument
270 #define ACPI_MASK_BITS_BELOW(position) ((ACPI_UINT64_MAX) << ((u32) (position))) argument
285 #define ACPI_GET_BITS(source_ptr, position, mask) \ argument
286 ((*source_ptr >> position) & mask)
288 #define ACPI_SET_BITS(target_ptr, position, mask, value) \ argument
289 (*target_ptr |= ((value & mask) << position))
311 #define ACPI_EXTRACT_1BIT_FLAG(field, position) (ACPI_GET_1BIT_FLAG ((field) >> position)) argument
312 #define ACPI_EXTRACT_2BIT_FLAG(field, position) (ACPI_GET_2BIT_FLAG ((field) >> position)) argument
313 #define ACPI_EXTRACT_3BIT_FLAG(field, position) (ACPI_GET_3BIT_FLAG ((field) >> position)) argument
314 #define ACPI_EXTRACT_4BIT_FLAG(field, position) (ACPI_GET_4BIT_FLAG ((field) >> position)) argument
Duthex.c70 char acpi_ut_hex_to_ascii_char(u64 integer, u32 position) in acpi_ut_hex_to_ascii_char() argument
73 return (acpi_gbl_hex_to_ascii[(integer >> position) & 0xF]); in acpi_ut_hex_to_ascii_char()
Ddsfield.c291 u64 position; in acpi_ds_get_field_names() local
313 position = (u64) info->field_bit_position in acpi_ds_get_field_names()
316 if (position > ACPI_UINT32_MAX) { in acpi_ds_get_field_names()
322 info->field_bit_position = (u32) position; in acpi_ds_get_field_names()
428 position = (u64) info->field_bit_position in acpi_ds_get_field_names()
431 if (position > ACPI_UINT32_MAX) { in acpi_ds_get_field_names()
Dutstring.c163 u8 acpi_ut_valid_acpi_char(char character, u32 position) in acpi_ut_valid_acpi_char() argument
171 if (character == '!' && position == 3) { in acpi_ut_valid_acpi_char()
/drivers/media/dvb-frontends/
Dnxt200x.c427 u16 rambase, position, crc = 0; in nxt2002_load_firmware() local
446 for (position = 0; position < fw->size; position++) { in nxt2002_load_firmware()
450 buf[0] = ((rambase + position) >> 8); in nxt2002_load_firmware()
451 buf[1] = (rambase + position) & 0xFF; in nxt2002_load_firmware()
460 nxt200x_writebytes(state, chunkpos, &fw->data[position-3], 4); in nxt2002_load_firmware()
462 crc = nxt200x_crc(crc, fw->data[position]); in nxt2002_load_firmware()
464 if ((written == 255) || (position+1 == fw->size)) { in nxt2002_load_firmware()
467 &fw->data[position-(written %4) + 1], in nxt2002_load_firmware()
494 u16 rambase, position, crc=0; in nxt2004_load_firmware() local
507 for (position = 0; position < fw->size; position++) { in nxt2004_load_firmware()
[all …]
/drivers/misc/
Dvexpress-syscfg.c155 u32 site, position, dcc; in vexpress_syscfg_regmap_init() local
159 &position, &dcc); in vexpress_syscfg_regmap_init()
200 func, site, position, dcc, in vexpress_syscfg_regmap_init()
205 func->template[i] |= SYS_CFGCTRL_POSITION(position); in vexpress_syscfg_regmap_init()
/drivers/mtd/
Dmtdconcat.c847 uint64_t begin, position; in mtd_concat_create() local
867 begin = position = 0; in mtd_concat_create()
879 tmp64 = position - begin; in mtd_concat_create()
882 begin = position; in mtd_concat_create()
887 position += subdev[i]->size; in mtd_concat_create()
898 tmp64 = position - begin; in mtd_concat_create()
901 begin = position; in mtd_concat_create()
908 position += in mtd_concat_create()
917 tmp64 = position - begin; in mtd_concat_create()
/drivers/misc/lis3lv02d/
Dlis3lv02d.c186 int position[3]; in lis3lv02d_get_xyz() local
194 position[i] = (s16)le16_to_cpu(data[i]); in lis3lv02d_get_xyz()
200 position[i] = (s8)data[i * 2]; in lis3lv02d_get_xyz()
203 position[0] = lis3->read_data(lis3, OUTX); in lis3lv02d_get_xyz()
204 position[1] = lis3->read_data(lis3, OUTY); in lis3lv02d_get_xyz()
205 position[2] = lis3->read_data(lis3, OUTZ); in lis3lv02d_get_xyz()
209 position[i] = (position[i] * lis3->scale) / LIS3_ACCURACY; in lis3lv02d_get_xyz()
211 *x = lis3lv02d_get_axis(lis3->ac.x, position); in lis3lv02d_get_xyz()
212 *y = lis3lv02d_get_axis(lis3->ac.y, position); in lis3lv02d_get_xyz()
213 *z = lis3lv02d_get_axis(lis3->ac.z, position); in lis3lv02d_get_xyz()
[all …]
/drivers/gpu/drm/radeon/
Dradeon_display.c1868 u32 stat_crtc = 0, vbl = 0, position = 0; in radeon_get_crtc_scanoutpos() local
1884 position = RREG32(EVERGREEN_CRTC_STATUS_POSITION + in radeon_get_crtc_scanoutpos()
1891 position = RREG32(EVERGREEN_CRTC_STATUS_POSITION + in radeon_get_crtc_scanoutpos()
1898 position = RREG32(EVERGREEN_CRTC_STATUS_POSITION + in radeon_get_crtc_scanoutpos()
1905 position = RREG32(EVERGREEN_CRTC_STATUS_POSITION + in radeon_get_crtc_scanoutpos()
1912 position = RREG32(EVERGREEN_CRTC_STATUS_POSITION + in radeon_get_crtc_scanoutpos()
1919 position = RREG32(EVERGREEN_CRTC_STATUS_POSITION + in radeon_get_crtc_scanoutpos()
1926 position = RREG32(AVIVO_D1CRTC_STATUS_POSITION); in radeon_get_crtc_scanoutpos()
1931 position = RREG32(AVIVO_D2CRTC_STATUS_POSITION); in radeon_get_crtc_scanoutpos()
1943 position = (RREG32(RADEON_CRTC_VLINE_CRNT_VLINE) >> 16) & RADEON_CRTC_V_TOTAL; in radeon_get_crtc_scanoutpos()
[all …]
/drivers/bus/
Dvexpress-config.c70 u32 *position, u32 *dcc) in vexpress_config_get_topo() argument
77 vexpress_config_find_prop(node, "arm,vexpress,position", position); in vexpress_config_get_topo()
/drivers/gpu/drm/i915/
Di915_irq.c729 int position, vtotal; in __intel_get_crtc_scanline() local
736 position = __raw_i915_read32(dev_priv, PIPEDSL(pipe)) & DSL_LINEMASK_GEN2; in __intel_get_crtc_scanline()
738 position = __raw_i915_read32(dev_priv, PIPEDSL(pipe)) & DSL_LINEMASK_GEN3; in __intel_get_crtc_scanline()
752 if (HAS_DDI(dev) && !position) { in __intel_get_crtc_scanline()
759 if (temp != position) { in __intel_get_crtc_scanline()
760 position = temp; in __intel_get_crtc_scanline()
770 return (position + crtc->scanline_offset) % vtotal; in __intel_get_crtc_scanline()
781 int position; in i915_get_crtc_scanoutpos() local
824 position = __intel_get_crtc_scanline(intel_crtc); in i915_get_crtc_scanoutpos()
830position = (__raw_i915_read32(dev_priv, PIPEFRAMEPIXEL(pipe)) & PIPE_PIXEL_MASK) >> PIPE_PIXEL_SHI… in i915_get_crtc_scanoutpos()
[all …]
/drivers/firmware/
Ddmi-sysfs.c36 int position; member
502 return sprintf(buf, "%d\n", entry->position); in dmi_sysfs_entry_position()
509 static DMI_SYSFS_ATTR(entry, position);
597 entry->position = position_count++; in dmi_sysfs_register_handle()
/drivers/media/pci/saa7134/
Dsaa7134-video.c602 __u16 position; member
616 if (i < 15 && cl[i].position == cl[i+1].position) in set_cliplist()
619 saa_writeb(reg + 2, cl[i].position & 0xff); in set_cliplist()
620 saa_writeb(reg + 3, cl[i].position >> 8); in set_cliplist()
622 name,winbits,cl[i].position); in set_cliplist()
645 if (cla->position < clb->position) in cliplist_cmp()
647 if (cla->position > clb->position) in cliplist_cmp()
662 col[cols].position = clip_range(clips[i].c.left); in setup_clipping()
665 col[cols].position = clip_range(clips[i].c.left+clips[i].c.width); in setup_clipping()
668 row[rows].position = clip_range(clips[i].c.top / div); in setup_clipping()
[all …]
/drivers/staging/speakup/
DDefaultKeyAssignments29 KeyPad-period Say Position (current line, position and console)
30 InsKeyPad-period say colour attributes of current position.
/drivers/ide/
Dide-cd_ioctl.c185 int ide_cdrom_tray_move(struct cdrom_device_info *cdi, int position) in ide_cdrom_tray_move() argument
190 if (position) { in ide_cdrom_tray_move()
197 return cdrom_eject(drive, !position, &sense); in ide_cdrom_tray_move()
Dide-tape.c826 int seek, position; in ide_tape_discard_merge_buffer() local
830 position = ide_tape_read_position(drive); in ide_tape_discard_merge_buffer()
831 seek = position > 0 ? position : 0; in ide_tape_discard_merge_buffer()
1376 int block_offset = 0, position = tape->first_frame; in do_idetape_chrdev_ioctl() local
1388 position = ide_tape_read_position(drive); in do_idetape_chrdev_ioctl()
1389 if (position < 0) in do_idetape_chrdev_ioctl()
1400 mtget.mt_blkno = position / tape->user_bs_factor - block_offset; in do_idetape_chrdev_ioctl()
1412 mtpos.mt_blkno = position / tape->user_bs_factor - block_offset; in do_idetape_chrdev_ioctl()
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_display.c806 u32 vbl = 0, position = 0; in amdgpu_get_crtc_scanoutpos() local
818 if (amdgpu_display_page_flip_get_scanoutpos(adev, pipe, &vbl, &position) == 0) in amdgpu_get_crtc_scanoutpos()
828 *vpos = position & 0x1fff; in amdgpu_get_crtc_scanoutpos()
829 *hpos = (position >> 16) & 0x1fff; in amdgpu_get_crtc_scanoutpos()
/drivers/net/wireless/zd1211rw/
Dzd_mac.c510 int i, position = 0; in zd_mac_tx_failed() local
522 position ++; in zd_mac_tx_failed()
559 for (i=1; i<=position; i++) { in zd_mac_tx_failed()
563 i == position ? tx_status : NULL); in zd_mac_tx_failed()
983 int i, position = 0; in filter_ack() local
993 position ++; in filter_ack()
1007 for (i=1; i<position; i++) { in filter_ack()
/drivers/scsi/aic7xxx/aicasm/
Daicasm_macro_gram.y67 static void add_macro_arg(const char *argtext, int position);
/drivers/gpu/drm/qxl/
Dqxl_dev.h320 uint32_t position; member
438 struct qxl_point_1_6 position; member
446 struct qxl_point_1_6 position; member
/drivers/md/
Ddm-verity-fec.c69 u64 position, block; in fec_read_parity() local
72 position = (index + rsb) * v->fec->roots; in fec_read_parity()
73 block = position >> v->data_dev_block_bits; in fec_read_parity()
74 *offset = (unsigned)(position - (block << v->data_dev_block_bits)); in fec_read_parity()
/drivers/block/paride/
Dpcd.c177 static int pcd_tray_move(struct cdrom_device_info *cdi, int position);
528 static int pcd_tray_move(struct cdrom_device_info *cdi, int position) in pcd_tray_move() argument
530 char ej_cmd[12] = { 0x1b, 0, 0, 0, 3 - position, 0, 0, 0, 0, 0, 0, 0 }; in pcd_tray_move()
533 position ? "eject" : "close tray"); in pcd_tray_move()
/drivers/net/ethernet/smsc/
Dsmc9194.c433 int position; in smc_setmulticast() local
436 position = ether_crc_le(6, ha->addr) & 0x3f; in smc_setmulticast()
439 multicast_table[invert3[position&7]] |= in smc_setmulticast()
440 (1<<invert3[(position>>3)&7]); in smc_setmulticast()
/drivers/net/wireless/ath/ath5k/
Dphy.c197 u8 offset, bank, num_bits, col, position; in ath5k_hw_rfb_op() local
238 position = (first_bit - 1) % 8; in ath5k_hw_rfb_op()
244 position = 0, entry++) { in ath5k_hw_rfb_op()
246 last_bit = (position + bits_left > 8) ? 8 : in ath5k_hw_rfb_op()
247 position + bits_left; in ath5k_hw_rfb_op()
249 mask = (((1 << last_bit) - 1) ^ ((1 << position) - 1)) << in ath5k_hw_rfb_op()
254 rfb[entry] |= ((data << position) << (col * 8)) & mask; in ath5k_hw_rfb_op()
255 data >>= (8 - position); in ath5k_hw_rfb_op()
257 data |= (((rfb[entry] & mask) >> (col * 8)) >> position) in ath5k_hw_rfb_op()
259 bits_shifted += last_bit - position; in ath5k_hw_rfb_op()
[all …]
/drivers/nvdimm/
Dlabel.h95 __le16 position; member

123