/Linux-v4.19/drivers/clk/hisilicon/ |
D | clk-hisi-phase.c | 30 static int hisi_phase_regval_to_degrees(struct clk_hisi_phase *phase, in hisi_phase_regval_to_degrees() argument 35 for (i = 0; i < phase->phase_num; i++) in hisi_phase_regval_to_degrees() 36 if (phase->phase_regvals[i] == regval) in hisi_phase_regval_to_degrees() 37 return phase->phase_degrees[i]; in hisi_phase_regval_to_degrees() 44 struct clk_hisi_phase *phase = to_clk_hisi_phase(hw); in hisi_clk_get_phase() local 47 regval = readl(phase->reg); in hisi_clk_get_phase() 48 regval = (regval & phase->mask) >> phase->shift; in hisi_clk_get_phase() 50 return hisi_phase_regval_to_degrees(phase, regval); in hisi_clk_get_phase() 53 static int hisi_phase_degrees_to_regval(struct clk_hisi_phase *phase, in hisi_phase_degrees_to_regval() argument 58 for (i = 0; i < phase->phase_num; i++) in hisi_phase_degrees_to_regval() [all …]
|
/Linux-v4.19/drivers/clk/sunxi-ng/ |
D | ccu_phase.c | 18 struct ccu_phase *phase = hw_to_ccu_phase(hw); in ccu_phase_get_phase() local 25 reg = readl(phase->common.base + phase->common.reg); in ccu_phase_get_phase() 26 delay = (reg >> phase->shift); in ccu_phase_get_phase() 27 delay &= (1 << phase->width) - 1; in ccu_phase_get_phase() 61 struct ccu_phase *phase = hw_to_ccu_phase(hw); in ccu_phase_set_phase() local 113 spin_lock_irqsave(phase->common.lock, flags); in ccu_phase_set_phase() 114 reg = readl(phase->common.base + phase->common.reg); in ccu_phase_set_phase() 115 reg &= ~GENMASK(phase->width + phase->shift - 1, phase->shift); in ccu_phase_set_phase() 116 writel(reg | (delay << phase->shift), in ccu_phase_set_phase() 117 phase->common.base + phase->common.reg); in ccu_phase_set_phase() [all …]
|
/Linux-v4.19/drivers/clk/sunxi/ |
D | clk-mod0.c | 183 struct mmc_phase *phase = to_mmc_phase(hw); in mmc_get_phase() local 189 value = readl(phase->reg); in mmc_get_phase() 190 delay = (value >> phase->offset) & 0x3; in mmc_get_phase() 225 struct mmc_phase *phase = to_mmc_phase(hw); in mmc_set_phase() local 276 spin_lock_irqsave(phase->lock, flags); in mmc_set_phase() 277 value = readl(phase->reg); in mmc_set_phase() 278 value &= ~GENMASK(phase->offset + 3, phase->offset); in mmc_set_phase() 279 value |= delay << phase->offset; in mmc_set_phase() 280 writel(value, phase->reg); in mmc_set_phase() 281 spin_unlock_irqrestore(phase->lock, flags); in mmc_set_phase() [all …]
|
/Linux-v4.19/drivers/mmc/host/ |
D | sdhci-sirf.c | 83 int phase; in sdhci_sirf_execute_tuning() local 94 phase = 0; in sdhci_sirf_execute_tuning() 98 clock_setting | phase, in sdhci_sirf_execute_tuning() 105 mmc_hostname(mmc), phase); in sdhci_sirf_execute_tuning() 107 start = phase; in sdhci_sirf_execute_tuning() 108 end = phase; in sdhci_sirf_execute_tuning() 110 if (phase == (SIRF_TUNING_COUNT - 1) in sdhci_sirf_execute_tuning() 115 mmc_hostname(mmc), phase); in sdhci_sirf_execute_tuning() 123 } while (++phase < SIRF_TUNING_COUNT); in sdhci_sirf_execute_tuning() 130 phase = tuning_value; in sdhci_sirf_execute_tuning() [all …]
|
/Linux-v4.19/drivers/char/ |
D | ppdev.c | 396 pp->saved_state.phase = info->phase; in pp_do_ioctl() 398 info->phase = pp->state.phase; in pp_do_ioctl() 427 pp->state.phase = init_phase(mode); in pp_do_ioctl() 431 pp->pdev->port->ieee1284.phase = pp->state.phase; in pp_do_ioctl() 451 int phase; in pp_do_ioctl() local 453 if (copy_from_user(&phase, argp, sizeof(phase))) in pp_do_ioctl() 457 pp->state.phase = phase; in pp_do_ioctl() 460 pp->pdev->port->ieee1284.phase = phase; in pp_do_ioctl() 466 int phase; in pp_do_ioctl() local 469 phase = pp->pdev->port->ieee1284.phase; in pp_do_ioctl() [all …]
|
/Linux-v4.19/drivers/clk/meson/ |
D | clk-phase.c | 39 struct meson_clk_phase_data *phase = meson_clk_phase_data(clk); in meson_clk_phase_get_phase() local 42 val = meson_parm_read(clk->map, &phase->ph); in meson_clk_phase_get_phase() 44 return meson_clk_degrees_from_val(val, phase->ph.width); in meson_clk_phase_get_phase() 50 struct meson_clk_phase_data *phase = meson_clk_phase_data(clk); in meson_clk_phase_set_phase() local 53 val = meson_clk_degrees_to_val(degrees, phase->ph.width); in meson_clk_phase_set_phase() 54 meson_parm_write(clk->map, &phase->ph, val); in meson_clk_phase_set_phase()
|
/Linux-v4.19/include/trace/events/ |
D | clk.h | 164 TP_PROTO(struct clk_core *core, int phase), 166 TP_ARGS(core, phase), 170 __field( int, phase ) 175 __entry->phase = phase; 178 TP_printk("%s %d", __get_str(name), (int)__entry->phase) 183 TP_PROTO(struct clk_core *core, int phase), 185 TP_ARGS(core, phase) 190 TP_PROTO(struct clk_core *core, int phase), 192 TP_ARGS(core, phase)
|
/Linux-v4.19/drivers/parport/ |
D | ieee1284_ops.c | 58 port->physport->ieee1284.phase = IEEE1284_PH_FWD_DATA; in parport_ieee1284_write_compat() 144 port->physport->ieee1284.phase = IEEE1284_PH_FWD_IDLE; in parport_ieee1284_write_compat() 177 port->ieee1284.phase = IEEE1284_PH_REV_DATA; in parport_ieee1284_read_nibble() 230 port->physport->ieee1284.phase = IEEE1284_PH_REV_IDLE; in parport_ieee1284_read_nibble() 233 port->physport->ieee1284.phase = IEEE1284_PH_HBUSY_DAVAIL; in parport_ieee1284_read_nibble() 268 port->physport->ieee1284.phase = IEEE1284_PH_REV_DATA; in parport_ieee1284_read_byte() 318 port->physport->ieee1284.phase = IEEE1284_PH_REV_IDLE; in parport_ieee1284_read_byte() 321 port->physport->ieee1284.phase = IEEE1284_PH_HBUSY_DAVAIL; in parport_ieee1284_read_byte() 358 port->ieee1284.phase = IEEE1284_PH_REV_IDLE; in ecp_forward_to_reverse() 362 port->ieee1284.phase = IEEE1284_PH_ECP_DIR_UNKNOWN; in ecp_forward_to_reverse() [all …]
|
D | ieee1284.c | 248 if (port->ieee1284.phase != IEEE1284_PH_FWD_IDLE) { in parport_ieee1284_terminate() 267 port->ieee1284.phase = IEEE1284_PH_FWD_IDLE; in parport_ieee1284_terminate() 305 port->ieee1284.phase = IEEE1284_PH_FWD_IDLE; in parport_ieee1284_terminate() 374 port->ieee1284.phase = IEEE1284_PH_NEGOTIATION; in parport_negotiate() 412 port->ieee1284.phase = IEEE1284_PH_FWD_IDLE; in parport_negotiate() 513 port->ieee1284.phase = IEEE1284_PH_ECP_SETUP; in parport_negotiate() 529 port->ieee1284.phase = IEEE1284_PH_FWD_IDLE; in parport_negotiate() 535 port->ieee1284.phase = IEEE1284_PH_REV_IDLE; in parport_negotiate() 538 port->ieee1284.phase = IEEE1284_PH_FWD_IDLE; in parport_negotiate() 561 port->ieee1284.phase = IEEE1284_PH_HBUSY_DAVAIL; in parport_ieee1284_ack_data_avail() [all …]
|
/Linux-v4.19/drivers/char/ipmi/ |
D | kcs_bmc.c | 90 kcs_bmc->phase = KCS_PHASE_ERROR; in kcs_force_abort() 99 switch (kcs_bmc->phase) { in kcs_bmc_handle_data() 101 kcs_bmc->phase = KCS_PHASE_WRITE_DATA; in kcs_bmc_handle_data() 121 kcs_bmc->phase = KCS_PHASE_WRITE_DONE; in kcs_bmc_handle_data() 143 kcs_bmc->phase = KCS_PHASE_IDLE; in kcs_bmc_handle_data() 155 kcs_bmc->phase = KCS_PHASE_ABORT_ERROR2; in kcs_bmc_handle_data() 162 kcs_bmc->phase = KCS_PHASE_IDLE; in kcs_bmc_handle_data() 181 kcs_bmc->phase = KCS_PHASE_WRITE_START; in kcs_bmc_handle_cmd() 188 if (kcs_bmc->phase != KCS_PHASE_WRITE_DATA) { in kcs_bmc_handle_cmd() 193 kcs_bmc->phase = KCS_PHASE_WRITE_END_CMD; in kcs_bmc_handle_cmd() [all …]
|
/Linux-v4.19/drivers/scsi/pcmcia/ |
D | nsp_cs.c | 230 SCpnt->SCp.phase = PH_UNDETERMINED; in nsp_queuecommand_lck() 371 unsigned char phase, arbit; in nsphw_start_selection() local 375 phase = nsp_index_read(base, SCSIBUSMON); in nsphw_start_selection() 376 if(phase != BUSMON_BUS_FREE) { in nsphw_start_selection() 383 SCpnt->SCp.phase = PH_ARBSTART; in nsphw_start_selection() 403 SCpnt->SCp.phase = PH_SELSTART; in nsphw_start_selection() 550 unsigned char phase, i_src; in nsp_expect_signal() local 556 phase = nsp_index_read(base, SCSIBUSMON); in nsp_expect_signal() 557 if (phase == 0xff) { in nsp_expect_signal() 566 if ((phase & mask) != 0 && (phase & BUSMON_PHASE_MASK) == current_phase) { in nsp_expect_signal() [all …]
|
/Linux-v4.19/drivers/leds/trigger/ |
D | ledtrig-heartbeat.c | 29 unsigned int phase; member 54 switch (heartbeat_data->phase) { in led_heartbeat_function() 67 heartbeat_data->phase++; in led_heartbeat_function() 73 heartbeat_data->phase++; in led_heartbeat_function() 79 heartbeat_data->phase++; in led_heartbeat_function() 86 heartbeat_data->phase = 0; in led_heartbeat_function() 142 heartbeat_data->phase = 0; in heartbeat_trig_activate()
|
/Linux-v4.19/Documentation/devicetree/bindings/mmc/ |
D | exynos-dw-mshc.txt | 30 * samsung,dw-mshc-sdr-timing: Specifies the value of CIU clock phase shift value 31 in transmit mode and CIU clock phase shift value in receive mode for single 35 * samsung,dw-mshc-ddr-timing: Specifies the value of CUI clock phase shift value 36 in transmit mode and CIU clock phase shift value in receive mode for double 39 * samsung,dw-mshc-hs400-timing: Specifies the value of CIU TX and RX clock phase 45 - First Cell: CIU clock phase shift value for tx mode. 46 - Second Cell: CIU clock phase shift value for rx mode. 49 - valid value for tx phase shift and rx phase shift is 0 to 7. 50 - when CIU clock divider value is set to 3, all possible 8 phase shift 53 phase shift clocks should be 0.
|
/Linux-v4.19/drivers/isdn/i4l/ |
D | isdn_ttyfax.c | 83 if (f->phase == ISDN_FAX_PHASE_A) in isdn_tty_fax_modem_result() 84 f->phase = ISDN_FAX_PHASE_B; in isdn_tty_fax_modem_result() 222 if (f->phase == ISDN_FAX_PHASE_C) { in isdn_tty_fax_command() 233 f->phase = ISDN_FAX_PHASE_E; in isdn_tty_fax_command() 240 f->phase = ISDN_FAX_PHASE_C; in isdn_tty_fax_command() 260 f->phase = ISDN_FAX_PHASE_D; in isdn_tty_fax_command() 266 f->phase = ISDN_FAX_PHASE_B; in isdn_tty_fax_command() 274 f->phase = ISDN_FAX_PHASE_D; in isdn_tty_fax_command() 798 ((f->phase == ISDN_FAX_PHASE_B) || (f->phase == ISDN_FAX_PHASE_D))) { in isdn_tty_cmd_FCLASS2() 807 if (f->phase == ISDN_FAX_PHASE_B) { in isdn_tty_cmd_FCLASS2() [all …]
|
/Linux-v4.19/tools/power/pm-graph/ |
D | sleepgraph.py | 916 for phase in self.phases: 917 self.devicegroups.append([phase]) 959 for phase in self.phases: 960 list = self.dmesg[phase]['list'] 967 def phaseCollision(self, phase, isbegin, line): argument 971 if self.dmesg[phase][key] >= 0: 976 for phase in self.phases: 977 pend = self.dmesg[phase]['end'] 979 return phase 983 for phase in phaselist: [all …]
|
D | bootgraph.py | 230 def newAction(self, phase, name, pid, start, end, ret, ulen): argument 234 list = self.dmesg[phase]['list'] 274 for phase in self.phases: 275 dc = len(self.dmesg[phase]['list']) 276 sysvals.vprint('%9s mode: %.3f - %.3f (%d initcalls)' % (phase, 277 self.dmesg[phase]['start']*1000, 278 self.dmesg[phase]['end']*1000, dc)) 288 phase = 'kernel' 352 data.newAction(phase, f, pid, start, ktime, int(r), int(t)) 359 phase = 'user' [all …]
|
/Linux-v4.19/drivers/gpu/drm/i915/ |
D | i915_gem_evict.c | 134 }, **phase; in i915_gem_evict_something() local 178 phase = phases; in i915_gem_evict_something() 180 list_for_each_entry(vma, *phase, vm_link) in i915_gem_evict_something() 183 } while (*++phase); in i915_gem_evict_something() 396 }, **phase; in i915_gem_evict_vm() local 416 phase = phases; in i915_gem_evict_vm() 418 list_for_each_entry(vma, *phase, vm_link) { in i915_gem_evict_vm() 425 } while (*++phase); in i915_gem_evict_vm()
|
/Linux-v4.19/drivers/scsi/ |
D | NCR5380.c | 737 p = hostdata->connected->SCp.phase; in NCR5380_dma_complete() 939 unsigned char tmp[3], phase; in NCR5380_select() local 1167 phase = PHASE_MSGOUT; in NCR5380_select() 1168 NCR5380_transfer_pio(instance, &phase, &len, &data); in NCR5380_select() 1224 unsigned char *phase, int *count, in NCR5380_transfer_pio() argument 1228 unsigned char p = *phase, tmp; in NCR5380_transfer_pio() 1326 *phase = tmp & PHASE_MASK; in NCR5380_transfer_pio() 1328 *phase = PHASE_UNKNOWN; in NCR5380_transfer_pio() 1330 if (!c || (*phase == p)) in NCR5380_transfer_pio() 1374 unsigned char *msgptr, phase, tmp; in do_abort() local [all …]
|
D | mac53c94.c | 53 enum fsc_phase phase; /* what we're currently trying to do */ member 96 if (state->phase == idle) in mac53c94_queue_lck() 152 if (state->phase != idle || state->current_req != NULL) in mac53c94_start() 177 state->phase = selecting; in mac53c94_start() 212 intr, stat, seq, state->phase); in mac53c94_interrupt() 225 intr, stat, seq, state->phase); in mac53c94_interrupt() 233 intr, stat, seq, state->phase); in mac53c94_interrupt() 247 switch (state->phase) { in mac53c94_interrupt() 278 state->phase = dataing; in mac53c94_interrupt() 283 state->phase = completing; in mac53c94_interrupt() [all …]
|
D | mesh.c | 95 u8 phase; member 152 enum mesh_phase phase; /* what we're currently trying to do */ member 221 tlp->phase = (ms->msgphase << 4) + ms->phase; in dlog() 252 t, lp->bs1, lp->bs0, lp->phase); in dumplog() 277 lp->bs1, lp->bs0, lp->phase, lp->tgt); in dumpslog() 322 ms->phase, ms->msgphase, ms->conn_tgt, ms->data_ptr); in mesh_dump_regs() 399 ms->phase = idle; in mesh_init() 427 ms->phase = arbitrating; in mesh_start_cmd() 467 if (ms->phase != arbitrating) in mesh_start_cmd() 475 ms->phase = idle; in mesh_start_cmd() [all …]
|
/Linux-v4.19/drivers/staging/iio/Documentation/ |
D | sysfs-bus-iio-dds | 36 Stores phase into Y. 40 control the desired phase Y which is added to the phase 48 the desired value in rad. If shared across all phase registers 56 Specifies the active phase Y which is added to the phase 68 phase is controlled by the respective phase and frequency
|
/Linux-v4.19/drivers/scsi/arm/ |
D | fas216.c | 202 info->scsi.type, info->scsi.phase); in fas216_dumpinfo() 278 if (info->scsi.phase < ARRAY_SIZE(phases) && in fas216_drv_phase() 279 phases[info->scsi.phase]) in fas216_drv_phase() 280 return phases[info->scsi.phase]; in fas216_drv_phase() 567 info->scsi.phase = PHASE_MSGOUT_EXPECT; in fas216_handlesync() 608 info->scsi.phase = PHASE_MSGOUT_EXPECT; in fas216_handlesync() 637 SCp->phase -= bytes_transferred; in fas216_updateptrs() 719 total = info->scsi.SCp.phase; in fas216_cleanuptransfer() 737 if (info->scsi.phase == PHASE_DATAOUT) in fas216_cleanuptransfer() 757 info->scsi.SCp.phase); in fas216_transfer() [all …]
|
/Linux-v4.19/Documentation/isdn/ |
D | INTERFACE.fax | 58 - phase 61 If the phase changes because of an AT command, the LL driver 90 switching to phase C. 93 switching to phase D. 96 switching to phase B. 99 switching to phase B. 110 1: switching to phase B (next document) 115 switching to phase D. 118 OK message, switching to phase E.
|
/Linux-v4.19/Documentation/networking/ |
D | cops.txt | 52 dummy -seed -phase 2 -net 2000 -addr 2000.10 -zone "1033" 53 lt0 -seed -phase 1 -net 1000 -addr 1000.50 -zone "1033" 56 eth0 -seed -phase 2 -net 3000 -addr 3000.20 -zone "1033" 57 lt0 -seed -phase 1 -net 1000 -addr 1000.50 -zone "1033" 61 lt0 -seed -phase 1 -net 1000 -addr 1000.10 -zone "LocalTalk1" 62 lt1 -seed -phase 1 -net 2000 -addr 2000.20 -zone "LocalTalk2" 63 eth0 -seed -phase 2 -net 3000 -addr 3000.30 -zone "EtherTalk"
|
/Linux-v4.19/drivers/gpu/drm/arm/ |
D | malidp_crtc.c | 274 u32 phase; in malidp_crtc_atomic_check_scaling() local 305 phase = s->input_w; in malidp_crtc_atomic_check_scaling() 307 ((phase << SE_N_PHASE) / s->output_w + 1) / 2; in malidp_crtc_atomic_check_scaling() 309 phase = s->input_w; in malidp_crtc_atomic_check_scaling() 310 phase <<= (SE_SHIFT_N_PHASE + SE_N_PHASE); in malidp_crtc_atomic_check_scaling() 311 s->h_delta_phase = phase / s->output_w; in malidp_crtc_atomic_check_scaling() 314 phase = s->input_h; in malidp_crtc_atomic_check_scaling() 316 ((phase << SE_N_PHASE) / s->output_h + 1) / 2; in malidp_crtc_atomic_check_scaling() 318 phase = s->input_h; in malidp_crtc_atomic_check_scaling() 319 phase <<= (SE_SHIFT_N_PHASE + SE_N_PHASE); in malidp_crtc_atomic_check_scaling() [all …]
|