/drivers/staging/cxt1e1/ |
D | hwprobe.c | 53 show_two (hdw_info_t * hi, int brdno) in show_two() argument 64 ci = (ci_t *)(netdev_priv(hi->ndev)); in show_two() 66 switch (hi->promfmt) in show_two() 69 memcpy (sn, (FLD_TYPE1 *) (hi->mfg_info.pft1.Serial), 6); in show_two() 72 memcpy (sn, (FLD_TYPE2 *) (hi->mfg_info.pft2.Serial), 6); in show_two() 80 hi->devname, bid, in show_two() 84 (u_int8_t) hi->revid[0]); in show_two() 88 pdev = hi->pdev[0]; in show_two() 90 hi->devname, "MUSYCC", in show_two() 91 (unsigned long) hi->addr_mapped[0], hi->addr[0], in show_two() [all …]
|
D | linux.c | 425 hdw_info_t *hi; in create_chan() local 459 hi = (hdw_info_t *) ci->hdw_info; in create_chan() 460 if (hi->mfg_info_sts == EEPROM_OK) in create_chan() 462 switch (hi->promfmt) in create_chan() 465 memcpy (dev->dev_addr, (FLD_TYPE1 *) (hi->mfg_info.pft1.Serial), 6); in create_chan() 468 memcpy (dev->dev_addr, (FLD_TYPE2 *) (hi->mfg_info.pft2.Serial), 6); in create_chan() 955 c4_add_dev (hdw_info_t * hi, int brdno, unsigned long f0, unsigned long f1, in c4_add_dev() argument 964 pr_warning("%s: no memory for struct net_device !\n", hi->devname); in c4_add_dev() 971 ci->hdw_info = hi; in c4_add_dev() 980 strcpy (ci->devname, hi->devname); in c4_add_dev() [all …]
|
/drivers/acpi/acpica/ |
D | utmath.c | 62 u32 hi; member 112 ACPI_DIV_64_BY_32(0, dividend_ovl.part.hi, divisor, in acpi_ut_short_divide() 113 quotient.part.hi, remainder32); in acpi_ut_short_divide() 169 if (divisor.part.hi == 0) { in acpi_ut_divide() 174 remainder.part.hi = 0; in acpi_ut_divide() 180 ACPI_DIV_64_BY_32(0, dividend.part.hi, divisor.part.lo, in acpi_ut_divide() 181 quotient.part.hi, partial1); in acpi_ut_divide() 191 quotient.part.hi = 0; in acpi_ut_divide() 198 ACPI_SHIFT_RIGHT_64(normalized_divisor.part.hi, in acpi_ut_divide() 200 ACPI_SHIFT_RIGHT_64(normalized_dividend.part.hi, in acpi_ut_divide() [all …]
|
/drivers/hid/ |
D | hid-multitouch.c | 286 struct hid_input *hi) in mt_store_field() argument 296 static int mt_input_mapping(struct hid_device *hdev, struct hid_input *hi, in mt_input_mapping() argument 308 set_bit(INPUT_PROP_DIRECT, hi->input->propbit); in mt_input_mapping() 320 set_bit(INPUT_PROP_POINTER, hi->input->propbit); in mt_input_mapping() 321 set_bit(BTN_TOOL_FINGER, hi->input->keybit); in mt_input_mapping() 322 set_bit(BTN_TOOL_DOUBLETAP, hi->input->keybit); in mt_input_mapping() 323 set_bit(BTN_TOOL_TRIPLETAP, hi->input->keybit); in mt_input_mapping() 324 set_bit(BTN_TOOL_QUADTAP, hi->input->keybit); in mt_input_mapping() 337 set_bit(INPUT_PROP_DIRECT, hi->input->propbit); in mt_input_mapping() 339 set_bit(INPUT_PROP_POINTER, hi->input->propbit); in mt_input_mapping() [all …]
|
D | hid-microsoft.c | 59 #define ms_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \ 61 static int ms_ergonomy_kb_quirk(struct hid_input *hi, struct hid_usage *usage, in ms_ergonomy_kb_quirk() argument 64 struct input_dev *input = hi->input; in ms_ergonomy_kb_quirk() 83 static int ms_presenter_8k_quirk(struct hid_input *hi, struct hid_usage *usage, in ms_presenter_8k_quirk() argument 86 set_bit(EV_REP, hi->input->evbit); in ms_presenter_8k_quirk() 99 static int ms_input_mapping(struct hid_device *hdev, struct hid_input *hi, in ms_input_mapping() argument 109 int ret = ms_ergonomy_kb_quirk(hi, usage, bit, max); in ms_input_mapping() 115 ms_presenter_8k_quirk(hi, usage, bit, max)) in ms_input_mapping() 121 static int ms_input_mapped(struct hid_device *hdev, struct hid_input *hi, in ms_input_mapped() argument
|
D | hid-lg.c | 152 #define lg_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \ 155 static int lg_ultrax_remote_mapping(struct hid_input *hi, in lg_ultrax_remote_mapping() argument 161 set_bit(EV_REP, hi->input->evbit); in lg_ultrax_remote_mapping() 188 static int lg_dinovo_mapping(struct hid_input *hi, struct hid_usage *usage, in lg_dinovo_mapping() argument 204 static int lg_wireless_mapping(struct hid_input *hi, struct hid_usage *usage, in lg_wireless_mapping() argument 265 static int lg_input_mapping(struct hid_device *hdev, struct hid_input *hi, in lg_input_mapping() argument 285 lg_ultrax_remote_mapping(hi, usage, bit, max)) in lg_input_mapping() 289 lg_dinovo_mapping(hi, usage, bit, max)) in lg_input_mapping() 292 if ((quirks & LG_WIRELESS) && lg_wireless_mapping(hi, usage, bit, max)) in lg_input_mapping() 309 hid_map_usage(hi, usage, bit, max, EV_KEY, in lg_input_mapping() [all …]
|
D | hid-samsung.c | 99 hid_map_usage_clear(hi, usage, bit, max, EV_KEY, (c)) 102 struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, in samsung_kbd_mouse_input_mapping() argument 142 static int samsung_input_mapping(struct hid_device *hdev, struct hid_input *hi, in samsung_input_mapping() argument 150 hi, field, usage, bit, max); in samsung_input_mapping()
|
/drivers/isdn/hardware/eicon/ |
D | capidtmf.c | 252 long d, e, q1, q2, lo, mid, hi; in capidtmf_goertzel_result() local 272 hi = k >> 16; in capidtmf_goertzel_result() 275 hi += k >> 16; in capidtmf_goertzel_result() 276 hi += ((dword)(d >> 16)) * ((dword)(e >> 16)); in capidtmf_goertzel_result() 286 hi = -((long)(k >> 16)); in capidtmf_goertzel_result() 289 hi -= k >> 16; in capidtmf_goertzel_result() 290 hi -= ((dword)(d >> 16)) * ((dword)(e >> 16)); in capidtmf_goertzel_result() 296 hi = -hi; in capidtmf_goertzel_result() 304 hi += (k >> 16) << 1; in capidtmf_goertzel_result() 305 hi += ((dword)(d >> 16)) * ((dword)(d >> 16)); in capidtmf_goertzel_result() [all …]
|
/drivers/net/hamradio/ |
D | baycom_epp.c | 1003 struct hdlcdrv_ioctl hi; in baycom_ioctl() local 1008 if (copy_from_user(&hi, ifr->ifr_data, sizeof(hi))) in baycom_ioctl() 1010 switch (hi.cmd) { in baycom_ioctl() 1015 hi.data.cp.tx_delay = bc->ch_params.tx_delay; in baycom_ioctl() 1016 hi.data.cp.tx_tail = bc->ch_params.tx_tail; in baycom_ioctl() 1017 hi.data.cp.slottime = bc->ch_params.slottime; in baycom_ioctl() 1018 hi.data.cp.ppersist = bc->ch_params.ppersist; in baycom_ioctl() 1019 hi.data.cp.fulldup = bc->ch_params.fulldup; in baycom_ioctl() 1025 bc->ch_params.tx_delay = hi.data.cp.tx_delay; in baycom_ioctl() 1026 bc->ch_params.tx_tail = hi.data.cp.tx_tail; in baycom_ioctl() [all …]
|
D | baycom_par.c | 385 struct hdlcdrv_ioctl *hi, int cmd); 413 struct hdlcdrv_ioctl *hi, int cmd) in baycom_ioctl() argument 426 switch (hi->cmd) { in baycom_ioctl() 431 strcpy(hi->data.modename, bc->options ? "par96" : "picpar"); in baycom_ioctl() 432 if (copy_to_user(ifr->ifr_data, hi, sizeof(struct hdlcdrv_ioctl))) in baycom_ioctl() 439 hi->data.modename[sizeof(hi->data.modename)-1] = '\0'; in baycom_ioctl() 440 return baycom_setmode(bc, hi->data.modename); in baycom_ioctl() 443 strcpy(hi->data.modename, "par96,picpar"); in baycom_ioctl() 444 if (copy_to_user(ifr->ifr_data, hi, sizeof(struct hdlcdrv_ioctl))) in baycom_ioctl()
|
D | baycom_ser_fdx.c | 505 struct hdlcdrv_ioctl *hi, int cmd); 540 struct hdlcdrv_ioctl *hi, int cmd) in baycom_ioctl() argument 553 switch (hi->cmd) { in baycom_ioctl() 558 sprintf(hi->data.modename, "ser%u", bc->baud / 100); in baycom_ioctl() 560 strcat(hi->data.modename, (!bc->opt_dcd) ? "*" : "+"); in baycom_ioctl() 561 if (copy_to_user(ifr->ifr_data, hi, sizeof(struct hdlcdrv_ioctl))) in baycom_ioctl() 568 hi->data.modename[sizeof(hi->data.modename)-1] = '\0'; in baycom_ioctl() 569 return baycom_setmode(bc, hi->data.modename); in baycom_ioctl() 572 strcpy(hi->data.modename, "ser12,ser3,ser24"); in baycom_ioctl() 573 if (copy_to_user(ifr->ifr_data, hi, sizeof(struct hdlcdrv_ioctl))) in baycom_ioctl()
|
D | baycom_ser_hdx.c | 541 struct hdlcdrv_ioctl *hi, int cmd); 571 struct hdlcdrv_ioctl *hi, int cmd) in baycom_ioctl() argument 584 switch (hi->cmd) { in baycom_ioctl() 589 strcpy(hi->data.modename, "ser12"); in baycom_ioctl() 591 strcat(hi->data.modename, (!bc->opt_dcd) ? "*" : (bc->opt_dcd == -2) ? "@" : "+"); in baycom_ioctl() 592 if (copy_to_user(ifr->ifr_data, hi, sizeof(struct hdlcdrv_ioctl))) in baycom_ioctl() 599 hi->data.modename[sizeof(hi->data.modename)-1] = '\0'; in baycom_ioctl() 600 return baycom_setmode(bc, hi->data.modename); in baycom_ioctl() 603 strcpy(hi->data.modename, "ser12"); in baycom_ioctl() 604 if (copy_to_user(ifr->ifr_data, hi, sizeof(struct hdlcdrv_ioctl))) in baycom_ioctl()
|
/drivers/cpufreq/ |
D | e_powersaver.c | 93 u32 lo, hi; in eps_get() local 102 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_get() 111 u32 lo, hi; in eps_set_state() local 121 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_set_state() 125 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_set_state() 138 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_set_state() 148 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_set_state() 156 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_set_state() 208 u32 lo, hi; in eps_cpu_init() local 233 rdmsr(0x1153, lo, hi); in eps_cpu_init() [all …]
|
D | powernow-k8.c | 114 u32 lo, hi; in pending_bit_stuck() local 119 rdmsr(MSR_FIDVID_STATUS, lo, hi); in pending_bit_stuck() 129 u32 lo, hi; in query_current_values_with_pending_wait() local 133 rdmsr(MSR_PSTATE_STATUS, lo, hi); in query_current_values_with_pending_wait() 151 rdmsr(MSR_FIDVID_STATUS, lo, hi); in query_current_values_with_pending_wait() 154 data->currvid = hi & MSR_S_HI_CURRENT_VID; in query_current_values_with_pending_wait() 177 u32 lo, hi; in fidvid_msr_init() local 180 rdmsr(MSR_FIDVID_STATUS, lo, hi); in fidvid_msr_init() 181 vid = hi & MSR_S_HI_CURRENT_VID; in fidvid_msr_init() 184 hi = MSR_C_HI_STP_GNT_BENIGN; in fidvid_msr_init() [all …]
|
/drivers/lguest/ |
D | interrupts_and_traps.c | 27 static unsigned long idt_address(u32 lo, u32 hi) in idt_address() argument 29 return (lo & 0x0000FFFF) | (hi & 0xFFFF0000); in idt_address() 36 static int idt_type(u32 lo, u32 hi) in idt_type() argument 38 return (hi >> 8) & 0xF; in idt_type() 42 static bool idt_present(u32 lo, u32 hi) in idt_present() argument 44 return (hi & 0x8000); in idt_present() 72 static void set_guest_interrupt(struct lg_cpu *cpu, u32 lo, u32 hi, in set_guest_interrupt() argument 140 cpu->regs->eip = idt_address(lo, hi); in set_guest_interrupt() 146 if (idt_type(lo, hi) == 0xE) in set_guest_interrupt() 466 unsigned int num, u32 lo, u32 hi) in set_trap() argument [all …]
|
/drivers/char/ |
D | ds1620.c | 202 ds1620_out(THERM_WRITE_TH, 9, therm->hi); in ds1620_write_state() 209 therm->hi = cvt_9_to_int(ds1620_in(THERM_READ_TH, 9)); in ds1620_read_state() 253 if (get_user(therm.hi, uarg.i)) in ds1620_ioctl() 255 therm.lo = therm.hi - 3; in ds1620_ioctl() 262 therm.hi <<= 1; in ds1620_ioctl() 272 therm.hi >>= 1; in ds1620_ioctl() 275 if (put_user(therm.hi, uarg.i)) in ds1620_ioctl() 344 th.hi >> 1, th.hi & 1 ? 5 : 0, in proc_therm_ds1620_read() 388 th_start.hi = 1; in ds1620_init() 412 th.hi >> 1, th.hi & 1 ? 5 : 0, in ds1620_init()
|
/drivers/ptp/ |
D | ptp_ixp46x.c | 57 u32 lo, hi; in ixp_systime_read() local 60 hi = __raw_readl(®s->systime_hi); in ixp_systime_read() 62 ns = ((u64) hi) << 32; in ixp_systime_read() 71 u32 hi, lo; in ixp_systime_write() local 74 hi = ns >> 32; in ixp_systime_write() 78 __raw_writel(hi, ®s->systime_hi); in ixp_systime_write() 90 u32 ack = 0, lo, hi, val; in isr() local 97 hi = __raw_readl(®s->asms_hi); in isr() 101 event.timestamp = ((u64) hi) << 32; in isr() 111 hi = __raw_readl(®s->amms_hi); in isr() [all …]
|
D | ptp_pch.c | 160 u32 lo, hi; in pch_systime_read() local 163 hi = ioread32(®s->systime_hi); in pch_systime_read() 165 ns = ((u64) hi) << 32; in pch_systime_read() 174 u32 hi, lo; in pch_systime_write() local 177 hi = ns >> 32; in pch_systime_write() 181 iowrite32(hi, ®s->systime_hi); in pch_systime_write() 258 u32 lo, hi; in pch_rx_snap_read() local 261 hi = ioread32(&chip->regs->rx_snap_hi); in pch_rx_snap_read() 263 ns = ((u64) hi) << 32; in pch_rx_snap_read() 274 u32 lo, hi; in pch_tx_snap_read() local [all …]
|
/drivers/infiniband/hw/mthca/ |
D | mthca_doorbell.h | 59 static inline void mthca_write64(u32 hi, u32 lo, void __iomem *dest, in mthca_write64() argument 62 __raw_writeq((__force u64) cpu_to_be64((u64) hi << 32 | lo), dest); in mthca_write64() 88 static inline void mthca_write64(u32 hi, u32 lo, void __iomem *dest, in mthca_write64() argument 93 hi = (__force u32) cpu_to_be32(hi); in mthca_write64() 97 __raw_writel(hi, dest); in mthca_write64()
|
/drivers/ide/ |
D | ide-cd_verbose.c | 278 int lo = 0, mid, hi = ARRAY_SIZE(sense_data_texts); in ide_cd_log_error() local 286 while (hi > lo) { in ide_cd_log_error() 287 mid = (lo + hi) / 2; in ide_cd_log_error() 293 hi = mid; in ide_cd_log_error() 310 int lo = 0, mid, hi = ARRAY_SIZE(packet_command_texts); in ide_cd_log_error() local 313 while (hi > lo) { in ide_cd_log_error() 314 mid = (lo + hi) / 2; in ide_cd_log_error() 322 hi = mid; in ide_cd_log_error()
|
/drivers/net/ethernet/freescale/ |
D | gianfar_ptp.c | 158 u32 lo, hi; in tmr_cnt_read() local 161 hi = gfar_read(&etsects->regs->tmr_cnt_h); in tmr_cnt_read() 162 ns = ((u64) hi) << 32; in tmr_cnt_read() 170 u32 hi = ns >> 32; in tmr_cnt_write() local 174 gfar_write(&etsects->regs->tmr_cnt_h, hi); in tmr_cnt_write() 181 u32 lo, hi; in set_alarm() local 186 hi = ns >> 32; in set_alarm() 189 gfar_write(&etsects->regs->tmr_alarm1_h, hi); in set_alarm() 209 u32 ack = 0, lo, hi, mask, val; in isr() local 215 hi = gfar_read(&etsects->regs->tmr_etts1_h); in isr() [all …]
|
/drivers/gpu/drm/nouveau/ |
D | nv04_timer.c | 71 u32 hi, lo; in nv04_timer_read() local 74 hi = nv_rd32(dev, NV04_PTIMER_TIME_1); in nv04_timer_read() 76 } while (hi != nv_rd32(dev, NV04_PTIMER_TIME_1)); in nv04_timer_read() 78 return ((u64)hi << 32 | lo); in nv04_timer_read()
|
/drivers/usb/wusbcore/ |
D | cbaf.c | 249 struct wusb_cbaf_host_info *hi; in cbaf_send_host_info() local 253 hi = cbaf->buffer; in cbaf_send_host_info() 254 memset(hi, 0, sizeof(*hi)); in cbaf_send_host_info() 255 *hi = cbaf_host_info_defaults; in cbaf_send_host_info() 256 hi->CHID = cbaf->chid; in cbaf_send_host_info() 257 hi->LangID = 0; /* FIXME: I guess... */ in cbaf_send_host_info() 258 strlcpy(hi->HostFriendlyName, cbaf->host_name, CBA_NAME_LEN); in cbaf_send_host_info() 260 hi->HostFriendlyName_hdr.len = cpu_to_le16(name_len); in cbaf_send_host_info() 261 hi_size = sizeof(*hi) + name_len; in cbaf_send_host_info() 268 hi, hi_size, 1000 /* FIXME: arbitrary */); in cbaf_send_host_info()
|
/drivers/video/ |
D | edid.h | 66 #define COMBINE_HI_8LO( hi, lo ) \ argument 67 ( (((unsigned)hi) << 8) | (unsigned)lo ) 69 #define COMBINE_HI_4LO( hi, lo ) \ argument 70 ( (((unsigned)hi) << 4) | (unsigned)lo )
|
/drivers/char/hw_random/ |
D | via-rng.c | 135 u32 lo, hi, old_lo; in via_rng_init() local 156 rdmsr(MSR_VIA_RNG, lo, hi); in via_rng_init() 176 wrmsr(MSR_VIA_RNG, lo, hi); in via_rng_init() 180 rdmsr(MSR_VIA_RNG, lo, hi); in via_rng_init()
|