| /linux/drivers/clk/hisilicon/ |
| H A 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/drivers/clk/sunxi-ng/ |
| H A D | ccu_phase.c | 15 struct ccu_phase *phase = hw_to_ccu_phase(hw); in ccu_phase_get_phase() local 22 reg = readl(phase->common.base + phase->common.reg); in ccu_phase_get_phase() 23 delay = (reg >> phase->shift); in ccu_phase_get_phase() 24 delay &= (1 << phase->width) - 1; in ccu_phase_get_phase() 58 struct ccu_phase *phase = hw_to_ccu_phase(hw); in ccu_phase_set_phase() local 110 spin_lock_irqsave(phase->common.lock, flags); in ccu_phase_set_phase() 111 reg = readl(phase->common.base + phase->common.reg); in ccu_phase_set_phase() 112 reg &= ~GENMASK(phase->width + phase->shift - 1, phase->shift); in ccu_phase_set_phase() 113 writel(reg | (delay << phase->shift), in ccu_phase_set_phase() 114 phase->common.base + phase->common.reg); in ccu_phase_set_phase() [all …]
|
| /linux/drivers/clk/sunxi/ |
| H A D | clk-mod0.c | 173 struct mmc_phase *phase = to_mmc_phase(hw); in mmc_get_phase() local 179 value = readl(phase->reg); in mmc_get_phase() 180 delay = (value >> phase->offset) & 0x3; in mmc_get_phase() 215 struct mmc_phase *phase = to_mmc_phase(hw); in mmc_set_phase() local 266 spin_lock_irqsave(phase->lock, flags); in mmc_set_phase() 267 value = readl(phase->reg); in mmc_set_phase() 268 value &= ~GENMASK(phase->offset + 3, phase->offset); in mmc_set_phase() 269 value |= delay << phase->offset; in mmc_set_phase() 270 writel(value, phase->reg); in mmc_set_phase() 271 spin_unlock_irqrestore(phase->lock, flags); in mmc_set_phase() [all …]
|
| /linux/drivers/hwmon/pmbus/ |
| H A D | mp2888.c | 94 mp2888_read_phase(struct i2c_client *client, struct mp2888_data *data, int page, int phase, u8 reg) in mp2888_read_phase() argument 98 ret = pmbus_read_word_data(client, page, phase, reg); in mp2888_read_phase() 102 if (!((phase + 1) % 2)) in mp2888_read_phase() 128 mp2888_read_phases(struct i2c_client *client, struct mp2888_data *data, int page, int phase) in mp2888_read_phases() argument 132 switch (phase) { in mp2888_read_phases() 134 ret = mp2888_read_phase(client, data, page, phase, MP2888_MFR_READ_CS1_2); in mp2888_read_phases() 137 ret = mp2888_read_phase(client, data, page, phase, MP2888_MFR_READ_CS3_4); in mp2888_read_phases() 140 ret = mp2888_read_phase(client, data, page, phase, MP2888_MFR_READ_CS5_6); in mp2888_read_phases() 143 ret = mp2888_read_phase(client, data, page, phase, MP2888_MFR_READ_CS7_8); in mp2888_read_phases() 146 ret = mp2888_read_phase(client, data, page, phase, MP2888_MFR_READ_CS9_10); in mp2888_read_phases() [all …]
|
| H A D | mp2856.c | 112 mp2856_read_word_helper(struct i2c_client *client, int page, int phase, u8 reg, in mp2856_read_word_helper() argument 115 int ret = pmbus_read_word_data(client, page, phase, reg); in mp2856_read_word_helper() 122 int phase, u8 reg) in mp2856_read_vout() argument 126 ret = mp2856_read_word_helper(client, page, phase, reg, in mp2856_read_vout() 140 int page, int phase, u8 reg) in mp2856_read_phase() argument 145 ret = pmbus_read_word_data(client, page, phase, reg); in mp2856_read_phase() 149 if (!((phase + 1) % MP2856_PAGE_NUM)) in mp2856_read_phase() 163 int page, int phase) in mp2856_read_phases() argument 168 switch (phase) { in mp2856_read_phases() 170 ret = mp2856_read_phase(client, data, page, phase, in mp2856_read_phases() [all …]
|
| H A D | ir35221.c | 25 int phase, int reg) in ir35221_read_word_data() argument 31 ret = pmbus_read_word_data(client, page, phase, in ir35221_read_word_data() 35 ret = pmbus_read_word_data(client, page, phase, in ir35221_read_word_data() 39 ret = pmbus_read_word_data(client, page, phase, in ir35221_read_word_data() 43 ret = pmbus_read_word_data(client, page, phase, in ir35221_read_word_data() 47 ret = pmbus_read_word_data(client, page, phase, in ir35221_read_word_data() 51 ret = pmbus_read_word_data(client, page, phase, in ir35221_read_word_data() 55 ret = pmbus_read_word_data(client, page, phase, in ir35221_read_word_data() 59 ret = pmbus_read_word_data(client, page, phase, in ir35221_read_word_data()
|
| H A D | mp2975.c | 143 mp2975_read_word_helper(struct i2c_client *client, int page, int phase, u8 reg, in mp2975_read_word_helper() argument 146 int ret = pmbus_read_word_data(client, page, phase, reg); in mp2975_read_word_helper() 210 int page, int phase, u8 reg) in mp2975_read_phase() argument 214 ret = pmbus_read_word_data(client, page, phase, reg); in mp2975_read_phase() 218 if (!((phase + 1) % MP2975_PAGE_NUM)) in mp2975_read_phase() 241 ret = pmbus_read_word_data(client, page, phase, PMBUS_READ_IOUT); in mp2975_read_phase() 251 int page, int phase) in mp2975_read_phases() argument 256 switch (phase) { in mp2975_read_phases() 258 ret = mp2975_read_phase(client, data, page, phase, in mp2975_read_phases() 262 ret = mp2975_read_phase(client, data, page, phase, in mp2975_read_phases() [all …]
|
| H A D | mp2891.c | 222 int phase, int reg) in mp2891_read_word_data() argument 230 ret = pmbus_read_word_data(client, page, phase, reg); in mp2891_read_word_data() 245 ret = pmbus_read_word_data(client, page, phase, READ_IIN_EST); in mp2891_read_word_data() 261 ret = pmbus_read_word_data(client, page, phase, READ_PIN_EST); in mp2891_read_word_data() 274 ret = pmbus_read_word_data(client, page, phase, reg); in mp2891_read_word_data() 282 ret = pmbus_read_word_data(client, page, phase, reg); in mp2891_read_word_data() 289 ret = pmbus_read_word_data(client, page, phase, reg); in mp2891_read_word_data() 302 ret = pmbus_read_word_data(client, page, phase, reg); in mp2891_read_word_data() 314 ret = pmbus_read_word_data(client, page, phase, reg); in mp2891_read_word_data() 321 ret = pmbus_read_word_data(client, page, phase, reg); in mp2891_read_word_data() [all …]
|
| H A D | lt7182s.c | 35 static int lt7182s_read_word_data(struct i2c_client *client, int page, int phase, int reg) in lt7182s_read_word_data() argument 42 ret = pmbus_read_word_data(client, page, phase, MFR_READ_ITH); in lt7182s_read_word_data() 44 ret = pmbus_read_word_data(client, 0, phase, MFR_READ_EXTVCC); in lt7182s_read_word_data() 47 ret = pmbus_read_word_data(client, page, phase, MFR_IOUT_PEAK); in lt7182s_read_word_data() 50 ret = pmbus_read_word_data(client, page, phase, MFR_VOUT_PEAK); in lt7182s_read_word_data() 53 ret = pmbus_read_word_data(client, page, phase, MFR_VIN_PEAK); in lt7182s_read_word_data() 56 ret = pmbus_read_word_data(client, page, phase, MFR_TEMPERATURE_1_PEAK); in lt7182s_read_word_data()
|
| H A D | ltc3815.c | 73 int phase, int reg) in ltc3815_read_word_data() argument 79 ret = pmbus_read_word_data(client, page, phase, in ltc3815_read_word_data() 83 ret = pmbus_read_word_data(client, page, phase, in ltc3815_read_word_data() 87 ret = pmbus_read_word_data(client, page, phase, in ltc3815_read_word_data() 91 ret = pmbus_read_word_data(client, page, phase, in ltc3815_read_word_data() 95 ret = pmbus_read_word_data(client, page, phase, in ltc3815_read_word_data()
|
| H A D | pim4328.c | 55 int phase, int reg) in pim4328_read_word_data() argument 62 if (phase == 0xff) in pim4328_read_word_data() 67 ret = pmbus_read_word_data(client, page, phase, in pim4328_read_word_data() 68 phase == 0 ? PIM4328_MFR_READ_VINA in pim4328_read_word_data() 72 ret = pmbus_read_word_data(client, page, phase, in pim4328_read_word_data() 73 phase == 0 ? PIM4328_MFR_READ_IINA in pim4328_read_word_data()
|
| H A D | pli1209bc.c | 26 int phase, int reg) in pli1209bc_read_word_data() argument 33 data = pmbus_read_word_data(client, page, phase, reg); in pli1209bc_read_word_data() 45 data = pmbus_read_word_data(client, page, phase, in pli1209bc_read_word_data() 51 return pmbus_read_word_data(client, page, phase, reg); in pli1209bc_read_word_data()
|
| /linux/drivers/char/ |
| H A D | ppdev.c | 404 pp->saved_state.phase = info->phase; in pp_do_ioctl() 406 info->phase = pp->state.phase; in pp_do_ioctl() 435 pp->state.phase = init_phase(mode); in pp_do_ioctl() 439 pp->pdev->port->ieee1284.phase = pp->state.phase; in pp_do_ioctl() 459 int phase; in pp_do_ioctl() local 461 if (copy_from_user(&phase, argp, sizeof(phase))) in pp_do_ioctl() 465 pp->state.phase = phase; in pp_do_ioctl() 468 pp->pdev->port->ieee1284.phase = phase; in pp_do_ioctl() 474 int phase; in pp_do_ioctl() local 477 phase = pp->pdev->port->ieee1284.phase; in pp_do_ioctl() [all …]
|
| /linux/lib/zstd/compress/ |
| H A D | zstd_cwksp.h | 168 ZSTD_cwksp_alloc_phase_e phase; member 303 ZSTD_cwksp_internal_advance_phase(ZSTD_cwksp* ws, ZSTD_cwksp_alloc_phase_e phase) in ZSTD_cwksp_internal_advance_phase() argument 305 assert(phase >= ws->phase); in ZSTD_cwksp_internal_advance_phase() 306 if (phase > ws->phase) { in ZSTD_cwksp_internal_advance_phase() 308 if (ws->phase < ZSTD_cwksp_alloc_aligned_init_once && in ZSTD_cwksp_internal_advance_phase() 309 phase >= ZSTD_cwksp_alloc_aligned_init_once) { in ZSTD_cwksp_internal_advance_phase() 327 ws->phase = phase; in ZSTD_cwksp_internal_advance_phase() 345 ZSTD_cwksp_reserve_internal(ZSTD_cwksp* ws, size_t bytes, ZSTD_cwksp_alloc_phase_e phase) in ZSTD_cwksp_reserve_internal() argument 348 if (ZSTD_isError(ZSTD_cwksp_internal_advance_phase(ws, phase)) || bytes == 0) { in ZSTD_cwksp_reserve_internal() 413 const ZSTD_cwksp_alloc_phase_e phase = ZSTD_cwksp_alloc_aligned_init_once; in ZSTD_cwksp_reserve_table() local [all …]
|
| /linux/drivers/parport/ |
| H A D | ieee1284_ops.c | 52 port->physport->ieee1284.phase = IEEE1284_PH_FWD_DATA; in parport_ieee1284_write_compat() 138 port->physport->ieee1284.phase = IEEE1284_PH_FWD_IDLE; in parport_ieee1284_write_compat() 171 port->ieee1284.phase = IEEE1284_PH_REV_DATA; in parport_ieee1284_read_nibble() 221 port->physport->ieee1284.phase = IEEE1284_PH_REV_IDLE; in parport_ieee1284_read_nibble() 224 port->physport->ieee1284.phase = IEEE1284_PH_HBUSY_DAVAIL; in parport_ieee1284_read_nibble() 259 port->physport->ieee1284.phase = IEEE1284_PH_REV_DATA; in parport_ieee1284_read_byte() 306 port->physport->ieee1284.phase = IEEE1284_PH_REV_IDLE; in parport_ieee1284_read_byte() 309 port->physport->ieee1284.phase = IEEE1284_PH_HBUSY_DAVAIL; in parport_ieee1284_read_byte() 345 port->ieee1284.phase = IEEE1284_PH_REV_IDLE; in ecp_forward_to_reverse() 348 port->ieee1284.phase = IEEE1284_PH_ECP_DIR_UNKNOWN; in ecp_forward_to_reverse() [all …]
|
| H A D | ieee1284.c | 242 if (port->ieee1284.phase != IEEE1284_PH_FWD_IDLE) { in parport_ieee1284_terminate() 260 port->ieee1284.phase = IEEE1284_PH_FWD_IDLE; in parport_ieee1284_terminate() 296 port->ieee1284.phase = IEEE1284_PH_FWD_IDLE; in parport_ieee1284_terminate() 364 port->ieee1284.phase = IEEE1284_PH_NEGOTIATION; in parport_negotiate() 401 port->ieee1284.phase = IEEE1284_PH_FWD_IDLE; in parport_negotiate() 498 port->ieee1284.phase = IEEE1284_PH_ECP_SETUP; in parport_negotiate() 513 port->ieee1284.phase = IEEE1284_PH_FWD_IDLE; in parport_negotiate() 518 port->ieee1284.phase = IEEE1284_PH_REV_IDLE; in parport_negotiate() 521 port->ieee1284.phase = IEEE1284_PH_FWD_IDLE; in parport_negotiate() 544 port->ieee1284.phase = IEEE1284_PH_HBUSY_DAVAIL; in parport_ieee1284_ack_data_avail() [all …]
|
| /linux/drivers/net/wwan/iosm/ |
| H A D | iosm_ipc_imem_ops.c | 19 ipc_imem_phase_get_string(ipc_imem->phase), if_id); in ipc_imem_sys_wwan_open() 24 ipc_imem_phase_get_string(ipc_imem->phase)); in ipc_imem_sys_wwan_open() 66 if (ipc_imem->phase != IPC_P_RUN) { in ipc_imem_sys_wwan_transmit() 68 ipc_imem_phase_get_string(ipc_imem->phase)); in ipc_imem_sys_wwan_transmit() 146 enum ipc_phase phase; in ipc_imem_is_channel_active() local 149 phase = ipc_imem->phase; in ipc_imem_is_channel_active() 152 switch (phase) { in ipc_imem_is_channel_active() 174 channel->channel_id, phase); in ipc_imem_is_channel_active() 203 curr_phase = ipc_imem->phase; in ipc_imem_sys_port_close() 294 ipc_imem_phase_get_string(ipc_imem->phase)); in ipc_imem_sys_port_open() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/dccg/dcn21/ |
| H A D | dcn21_dccg.c | 53 int phase; in dccg21_update_dpp_dto() local 67 phase = (req_dppclk + 9999) / 10000; in dccg21_update_dpp_dto() 69 if (phase > modulo) { in dccg21_update_dpp_dto() 74 phase = modulo; in dccg21_update_dpp_dto() 85 phase = 10; in dccg21_update_dpp_dto() 89 DPPCLK0_DTO_PHASE, phase, in dccg21_update_dpp_dto()
|
| /linux/drivers/char/ipmi/ |
| H A D | kcs_bmc_cdev_ipmi.c | 76 enum kcs_ipmi_phases phase; member 133 priv->phase = KCS_PHASE_ERROR; in kcs_bmc_ipmi_force_abort() 145 switch (priv->phase) { in kcs_bmc_ipmi_handle_data() 147 priv->phase = KCS_PHASE_WRITE_DATA; in kcs_bmc_ipmi_handle_data() 165 priv->phase = KCS_PHASE_WRITE_DONE; in kcs_bmc_ipmi_handle_data() 187 priv->phase = KCS_PHASE_IDLE; in kcs_bmc_ipmi_handle_data() 198 priv->phase = KCS_PHASE_ABORT_ERROR2; in kcs_bmc_ipmi_handle_data() 205 priv->phase = KCS_PHASE_IDLE; in kcs_bmc_ipmi_handle_data() 224 priv->phase = KCS_PHASE_WRITE_START; in kcs_bmc_ipmi_handle_cmd() 231 if (priv->phase != KCS_PHASE_WRITE_DATA) { in kcs_bmc_ipmi_handle_cmd() [all …]
|
| /linux/include/trace/events/ |
| H A D | clk.h | 200 TP_PROTO(struct clk_core *core, int phase), 202 TP_ARGS(core, phase), 206 __field( int, phase ) 211 __entry->phase = phase; 214 TP_printk("%s %d", __get_str(name), (int)__entry->phase) 219 TP_PROTO(struct clk_core *core, int phase), 221 TP_ARGS(core, phase) 226 TP_PROTO(struct clk_core *core, int phase), 228 TP_ARGS(core, phase) [all...] |
| /linux/drivers/leds/trigger/ |
| H A D | ledtrig-heartbeat.c | 27 unsigned int phase; member 52 switch (heartbeat_data->phase) { in led_heartbeat_function() 65 heartbeat_data->phase++; in led_heartbeat_function() 71 heartbeat_data->phase++; in led_heartbeat_function() 77 heartbeat_data->phase++; in led_heartbeat_function() 84 heartbeat_data->phase = 0; in led_heartbeat_function() 140 heartbeat_data->phase = 0; in heartbeat_trig_activate()
|
| /linux/tools/power/pm-graph/ |
| H A D | sleepgraph.py | 1548 for phase in sorted(self.dmesg.keys()): 1549 if '*' in phase: 1550 p = phase.split('*') 1552 self.dmesg[pnew] = self.dmesg.pop(phase) 1554 for phase in self.sortedPhases(): 1555 self.devicegroups.append([phase]) 1556 def nextPhase(self, phase, offset): argument 1557 order = self.dmesg[phase]['order'] + offset 1631 for phase in self.sortedPhases(): 1632 list = self.dmesg[phase]['list'] [all …]
|
| H A D | bootgraph.py | 237 def newAction(self, phase, name, pid, start, end, ret, ulen): argument 241 list = self.dmesg[phase]['list'] 281 for phase in self.phases: 282 dc = len(self.dmesg[phase]['list']) 283 sysvals.vprint('%9s mode: %.3f - %.3f (%d initcalls)' % (phase, 284 self.dmesg[phase]['start']*1000, 285 self.dmesg[phase]['end']*1000, dc)) 295 phase = 'kernel' 359 data.newAction(phase, f, pid, start, ktime, int(r), int(t)) 366 phase = 'user' [all …]
|
| /linux/drivers/staging/iio/Documentation/ |
| H A 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/drivers/mmc/host/ |
| H A D | mmci_stm32_sdmmc.c | 71 int phase, bool sampler __maybe_unused); 488 int unit, int phase, bool sampler) in sdmmc_dlyb_mp15_set_cfg() argument 495 FIELD_PREP(DLYB_CFGR_SEL_MASK, phase); in sdmmc_dlyb_mp15_set_cfg() 552 int unit __maybe_unused, int phase, in sdmmc_dlyb_mp25_set_cfg() argument 559 cr |= FIELD_PREP(DLYBSD_CR_RXTAPSEL_MASK, phase); in sdmmc_dlyb_mp25_set_cfg() 581 int phase, ret; in sdmmc_dlyb_phase_tuning() local 583 for (phase = 0; phase <= dlyb->max; phase++) { in sdmmc_dlyb_phase_tuning() 584 ret = dlyb->ops->set_cfg(dlyb, dlyb->unit, phase, false); in sdmmc_dlyb_phase_tuning() 596 end_of_len = phase; in sdmmc_dlyb_phase_tuning() 609 phase = end_of_len - max_len / 2; in sdmmc_dlyb_phase_tuning() [all …]
|