Home
last modified time | relevance | path

Searched full:pi (Results 1 – 25 of 693) sorted by relevance

12345678910>>...28

/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/
H A Dphy_cmn.c26 #define VALID_RADIO(pi, radioid) ( \ argument
27 (ISNPHY(pi) ? VALID_N_RADIO(radioid) : false) || \
28 (ISLCNPHY(pi) ? VALID_LCN_RADIO(radioid) : false))
120 struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); in wlc_phyreg_enter() local
121 wlapi_bmac_ucode_wake_override_phyreg_set(pi->sh->physhim); in wlc_phyreg_enter()
126 struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); in wlc_phyreg_exit() local
127 wlapi_bmac_ucode_wake_override_phyreg_clear(pi->sh->physhim); in wlc_phyreg_exit()
132 struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); in wlc_radioreg_enter() local
133 wlapi_bmac_mctrl(pi->sh->physhim, MCTL_LOCK_RADIO, MCTL_LOCK_RADIO); in wlc_radioreg_enter()
140 struct brcms_phy *pi = container_of(pih, struct brcms_phy, pubpi_ro); in wlc_radioreg_exit() local
[all …]
H A Dphy_lcn.c79 #define wlc_lcnphy_enable_tx_gain_override(pi) \ argument
80 wlc_lcnphy_set_tx_gain_override(pi, true)
81 #define wlc_lcnphy_disable_tx_gain_override(pi) \ argument
82 wlc_lcnphy_set_tx_gain_override(pi, false)
84 #define wlc_lcnphy_iqcal_active(pi) \ argument
85 (read_phy_reg((pi), 0x451) & \
88 #define txpwrctrl_off(pi) (0x7 != ((read_phy_reg(pi, 0x4a4) & 0xE000) >> 13)) argument
89 #define wlc_lcnphy_tempsense_based_pwr_ctrl_enabled(pi) \ argument
90 (pi->temppwrctrl_capable)
91 #define wlc_lcnphy_tssi_based_pwr_ctrl_enabled(pi) \ argument
[all …]
H A Dphy_int.h32 #define ISNPHY(pi) PHYTYPE_IS((pi)->pubpi.phy_type, PHY_TYPE_N) argument
33 #define ISLCNPHY(pi) PHYTYPE_IS((pi)->pubpi.phy_type, PHY_TYPE_LCN) argument
169 #define PHY_PERICAL_MPHASE_PENDING(pi) \ argument
170 (pi->mphase_cal_phase_id > MPHASE_CAL_STATE_IDLE)
215 #define SCAN_INPROG_PHY(pi) \ argument
216 (mboolisset(pi->measure_hold, PHY_HOLD_FOR_SCAN))
218 #define PLT_INPROG_PHY(pi) (mboolisset(pi->measure_hold, PHY_HOLD_FOR_PLT)) argument
220 #define ASSOC_INPROG_PHY(pi) \ argument
221 (mboolisset(pi->measure_hold, PHY_HOLD_FOR_ASSOC))
223 #define SCAN_RM_IN_PROGRESS(pi) \ argument
[all …]
H A Dphy_n.c25 #define READ_RADIO_REG2(pi, radio_type, jspace, core, reg_name) \ argument
26 read_radio_reg(pi, radio_type##_##jspace##_##reg_name | \
31 #define WRITE_RADIO_REG2(pi, radio_type, jspace, core, reg_name, value) \ argument
32 write_radio_reg(pi, radio_type##_##jspace##_##reg_name | \
37 #define WRITE_RADIO_SYN(pi, radio_type, reg_name, value) \ argument
38 write_radio_reg(pi, radio_type##_##SYN##_##reg_name, value)
40 #define READ_RADIO_REG3(pi, radio_type, jspace, core, reg_name) \ argument
41 read_radio_reg(pi, ((core == PHY_CORE_0) ? \
45 #define WRITE_RADIO_REG3(pi, radio_type, jspace, core, reg_name, value) \ argument
46 write_radio_reg(pi, ((core == PHY_CORE_0) ? \
[all …]
/linux/drivers/ata/pata_parport/
H A Dbpck6.c63 static void bpck6_send_cmd(struct pi_adapter *pi, u8 cmd) in bpck6_send_cmd() argument
65 switch (mode_map[pi->mode]) { in bpck6_send_cmd()
70 parport_write_data(pi->pardev->port, cmd); in bpck6_send_cmd()
71 parport_frob_control(pi->pardev->port, 0, PARPORT_CONTROL_AUTOFD); in bpck6_send_cmd()
76 pi->pardev->port->ops->epp_write_addr(pi->pardev->port, &cmd, 1, 0); in bpck6_send_cmd()
81 static u8 bpck6_rd_data_byte(struct pi_adapter *pi) in bpck6_rd_data_byte() argument
85 switch (mode_map[pi->mode]) { in bpck6_rd_data_byte()
88 parport_frob_control(pi->pardev->port, PARPORT_CONTROL_STROBE, in bpck6_rd_data_byte()
90 data = parport_read_status(pi->pardev->port); in bpck6_rd_data_byte()
92 parport_frob_control(pi->pardev->port, PARPORT_CONTROL_STROBE, in bpck6_rd_data_byte()
[all …]
H A Dpata_parport.c28 static void pi_connect(struct pi_adapter *pi) in pi_connect() argument
30 parport_claim_or_block(pi->pardev); in pi_connect()
31 pi->proto->connect(pi); in pi_connect()
34 static void pi_disconnect(struct pi_adapter *pi) in pi_disconnect() argument
36 pi->proto->disconnect(pi); in pi_disconnect()
37 parport_release(pi->pardev); in pi_disconnect()
42 struct pi_adapter *pi = ap->host->private_data; in pata_parport_dev_select() local
50 pi->proto->write_regr(pi, 0, ATA_REG_DEVICE, tmp); in pata_parport_dev_select()
56 struct pi_adapter *pi = ap->host->private_data; in pata_parport_set_devctl() local
58 pi->proto->write_regr(pi, 1, 6, ctl); in pata_parport_set_devctl()
[all …]
H A Dfrpw.c32 static int frpw_read_regr(struct pi_adapter *pi, int cont, int regr) in frpw_read_regr() argument
47 static void frpw_write_regr(struct pi_adapter *pi, int cont, int regr, int val) in frpw_write_regr() argument
56 static void frpw_read_block_int(struct pi_adapter *pi, char *buf, int count, in frpw_read_block_int() argument
61 switch (pi->mode) { in frpw_read_block_int()
126 static void frpw_read_block(struct pi_adapter *pi, char *buf, int count) in frpw_read_block() argument
128 frpw_read_block_int(pi, buf, count, 0x08); in frpw_read_block()
131 static void frpw_write_block(struct pi_adapter *pi, char *buf, int count) in frpw_write_block() argument
135 switch (pi->mode) { in frpw_write_block()
170 static void frpw_connect(struct pi_adapter *pi) in frpw_connect() argument
172 pi->saved_r0 = r0(); in frpw_connect()
[all …]
H A Dbpck.c22 #define PC pi->private
38 static int bpck_read_regr(struct pi_adapter *pi, int cont, int regr) in bpck_read_regr() argument
44 switch (pi->mode) { in bpck_read_regr()
69 static void bpck_write_regr(struct pi_adapter *pi, int cont, int regr, int val) in bpck_write_regr() argument
75 switch (pi->mode) { in bpck_write_regr()
93 #define WR(r,v) bpck_write_regr(pi,2,r,v)
94 #define RR(r) (bpck_read_regr(pi,2,r))
96 static void bpck_write_block(struct pi_adapter *pi, char *buf, int count) in bpck_write_block() argument
100 switch (pi->mode) { in bpck_write_block()
151 static void bpck_read_block(struct pi_adapter *pi, char *buf, int count) in bpck_read_block() argument
[all …]
H A Dfriq.c46 static int friq_read_regr(struct pi_adapter *pi, int cont, int regr) in friq_read_regr() argument
60 static void friq_write_regr(struct pi_adapter *pi, int cont, int regr, int val) in friq_write_regr() argument
69 static void friq_read_block_int(struct pi_adapter *pi, char *buf, int count, int regr) in friq_read_block_int() argument
73 switch (pi->mode) { in friq_read_block_int()
126 static void friq_read_block(struct pi_adapter *pi, char *buf, int count) in friq_read_block() argument
128 friq_read_block_int(pi, buf, count, 0x08); in friq_read_block()
131 static void friq_write_block(struct pi_adapter *pi, char *buf, int count) in friq_write_block() argument
135 switch (pi->mode) { in friq_write_block()
166 static void friq_connect(struct pi_adapter *pi) in friq_connect() argument
168 pi->saved_r0 = r0(); in friq_connect()
[all …]
/linux/drivers/gpu/drm/radeon/
H A Dkv_dpm.c152 struct kv_power_info *pi = rdev->pm.dpm.priv; in kv_get_pi() local
154 return pi; in kv_get_pi()
208 struct kv_power_info *pi = kv_get_pi(rdev); in kv_do_enable_didt() local
211 if (pi->caps_sq_ramping) { in kv_do_enable_didt()
220 if (pi->caps_db_ramping) { in kv_do_enable_didt()
229 if (pi->caps_td_ramping) { in kv_do_enable_didt()
238 if (pi->caps_tcp_ramping) { in kv_do_enable_didt()
250 struct kv_power_info *pi = kv_get_pi(rdev); in kv_enable_didt() local
253 if (pi->caps_sq_ramping || in kv_enable_didt()
254 pi->caps_db_ramping || in kv_enable_didt()
[all …]
H A Dci_dpm.c169 struct ci_power_info *pi = rdev->pm.dpm.priv; in ci_get_pi() local
171 return pi; in ci_get_pi()
183 struct ci_power_info *pi = ci_get_pi(rdev); in ci_initialize_powertune_defaults() local
193 pi->powertune_defaults = &defaults_bonaire_xt; in ci_initialize_powertune_defaults()
199 pi->powertune_defaults = &defaults_saturn_xt; in ci_initialize_powertune_defaults()
203 pi->powertune_defaults = &defaults_hawaii_xt; in ci_initialize_powertune_defaults()
207 pi->powertune_defaults = &defaults_hawaii_pro; in ci_initialize_powertune_defaults()
217 pi->powertune_defaults = &defaults_bonaire_xt; in ci_initialize_powertune_defaults()
221 pi->dte_tj_offset = 0; in ci_initialize_powertune_defaults()
223 pi->caps_power_containment = true; in ci_initialize_powertune_defaults()
[all …]
H A Drv770_dpm.c58 struct rv7xx_power_info *pi = rdev->pm.dpm.priv; in rv770_get_pi() local
60 return pi; in rv770_get_pi()
65 struct evergreen_power_info *pi = rdev->pm.dpm.priv; in evergreen_get_pi() local
67 return pi; in evergreen_get_pi()
73 struct rv7xx_power_info *pi = rv770_get_pi(rdev); in rv770_enable_bif_dynamic_pcie_gen2() local
82 if (!pi->boot_in_gen2) { in rv770_enable_bif_dynamic_pcie_gen2()
147 struct rv7xx_power_info *pi = rv770_get_pi(rdev); in rv770_mg_clock_gating_enable() local
160 if (pi->mgcgtssm) in rv770_mg_clock_gating_enable()
239 struct rv7xx_power_info *pi = rv770_get_pi(rdev);
242 pi->soft_regs_start + reg_offset,
[all …]
H A Drv6xx_dpm.c45 struct rv6xx_power_info *pi = rdev->pm.dpm.priv; in rv6xx_get_pi() local
47 return pi; in rv6xx_get_pi()
162 struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); in rv6xx_output_stepping() local
167 pi->spll_ref_div, in rv6xx_output_stepping()
183 fb_divider = ((step->vco_frequency * pi->spll_ref_div) / ref_clk) >> in rv6xx_output_stepping()
184 pi->fb_div_scale; in rv6xx_output_stepping()
187 pi->spll_ref_div - 1); in rv6xx_output_stepping()
436 struct rv6xx_power_info *pi = rv6xx_get_pi(rdev); in rv6xx_calculate_engine_speed_stepping_parameters() local
438 pi->hw.sclks[R600_POWER_LEVEL_LOW] = in rv6xx_calculate_engine_speed_stepping_parameters()
440 pi->hw.sclks[R600_POWER_LEVEL_MEDIUM] = in rv6xx_calculate_engine_speed_stepping_parameters()
[all …]
H A Dsumo_dpm.c81 struct sumo_power_info *pi = rdev->pm.dpm.priv; in sumo_get_pi() local
83 return pi; in sumo_get_pi()
284 struct sumo_power_info *pi = sumo_get_pi(rdev); in sumo_enable_clock_power_gating() local
286 if (pi->enable_gfx_clock_gating) in sumo_enable_clock_power_gating()
288 if (pi->enable_gfx_power_gating) in sumo_enable_clock_power_gating()
290 if (pi->enable_mg_clock_gating) in sumo_enable_clock_power_gating()
292 if (pi->enable_gfx_clock_gating) in sumo_enable_clock_power_gating()
294 if (pi->enable_gfx_power_gating) in sumo_enable_clock_power_gating()
302 struct sumo_power_info *pi = sumo_get_pi(rdev); in sumo_disable_clock_power_gating() local
304 if (pi->enable_gfx_clock_gating) in sumo_disable_clock_power_gating()
[all …]
H A Drv730_dpm.c41 struct rv7xx_power_info *pi = rv770_get_pi(rdev); in rv730_populate_sclk_value() local
43 u32 spll_func_cntl = pi->clk_regs.rv730.cg_spll_func_cntl; in rv730_populate_sclk_value()
44 u32 spll_func_cntl_2 = pi->clk_regs.rv730.cg_spll_func_cntl_2; in rv730_populate_sclk_value()
45 u32 spll_func_cntl_3 = pi->clk_regs.rv730.cg_spll_func_cntl_3; in rv730_populate_sclk_value()
46 u32 cg_spll_spread_spectrum = pi->clk_regs.rv730.cg_spll_spread_spectrum; in rv730_populate_sclk_value()
47 u32 cg_spll_spread_spectrum_2 = pi->clk_regs.rv730.cg_spll_spread_spectrum_2; in rv730_populate_sclk_value()
88 if (pi->sclk_ss) { in rv730_populate_sclk_value()
120 struct rv7xx_power_info *pi = rv770_get_pi(rdev); in rv730_populate_mclk_value() local
121 u32 mclk_pwrmgt_cntl = pi->clk_regs.rv730.mclk_pwrmgt_cntl; in rv730_populate_mclk_value()
122 u32 dll_cntl = pi->clk_regs.rv730.dll_cntl; in rv730_populate_mclk_value()
[all …]
H A Dtrinity_dpm.c309 struct trinity_power_info *pi = rdev->pm.dpm.priv; in trinity_get_pi() local
311 return pi; in trinity_get_pi()
316 struct trinity_power_info *pi = trinity_get_pi(rdev); in trinity_gfx_powergating_initialize() local
344 if (pi->override_dynamic_mgpg && (hw_rev == 0)) in trinity_gfx_powergating_initialize()
499 struct trinity_power_info *pi = trinity_get_pi(rdev); in trinity_enable_clock_power_gating() local
501 if (pi->enable_gfx_clock_gating) in trinity_enable_clock_power_gating()
503 if (pi->enable_mg_clock_gating) in trinity_enable_clock_power_gating()
505 if (pi->enable_gfx_power_gating) in trinity_enable_clock_power_gating()
507 if (pi->enable_mg_clock_gating) { in trinity_enable_clock_power_gating()
511 if (pi->enable_gfx_clock_gating) in trinity_enable_clock_power_gating()
[all …]
H A Drs780_dpm.c44 struct igp_power_info *pi = rdev->pm.dpm.priv; in rs780_get_pi() local
46 return pi; in rs780_get_pi()
51 struct igp_power_info *pi = rs780_get_pi(rdev); in rs780_get_pm_mode_parameters() local
58 pi->crtc_id = 0; in rs780_get_pm_mode_parameters()
59 pi->refresh_rate = 60; in rs780_get_pm_mode_parameters()
65 pi->crtc_id = radeon_crtc->crtc_id; in rs780_get_pm_mode_parameters()
67 pi->refresh_rate = drm_mode_vrefresh(&crtc->mode); in rs780_get_pm_mode_parameters()
225 struct igp_power_info *pi = rs780_get_pi(rdev); in rs780_voltage_scaling_init() local
244 if (pi->pwm_voltage_control) { in rs780_voltage_scaling_init()
245 fv_throt_pwm_range[0] = pi->min_voltage; in rs780_voltage_scaling_init()
[all …]
H A Drv740_dpm.c122 struct rv7xx_power_info *pi = rv770_get_pi(rdev); in rv740_populate_sclk_value() local
124 u32 spll_func_cntl = pi->clk_regs.rv770.cg_spll_func_cntl; in rv740_populate_sclk_value()
125 u32 spll_func_cntl_2 = pi->clk_regs.rv770.cg_spll_func_cntl_2; in rv740_populate_sclk_value()
126 u32 spll_func_cntl_3 = pi->clk_regs.rv770.cg_spll_func_cntl_3; in rv740_populate_sclk_value()
127 u32 cg_spll_spread_spectrum = pi->clk_regs.rv770.cg_spll_spread_spectrum; in rv740_populate_sclk_value()
128 u32 cg_spll_spread_spectrum_2 = pi->clk_regs.rv770.cg_spll_spread_spectrum_2; in rv740_populate_sclk_value()
157 if (pi->sclk_ss) { in rv740_populate_sclk_value()
189 struct rv7xx_power_info *pi = rv770_get_pi(rdev); in rv740_populate_mclk_value() local
190 u32 mpll_ad_func_cntl = pi->clk_regs.rv770.mpll_ad_func_cntl; in rv740_populate_mclk_value()
191 u32 mpll_ad_func_cntl_2 = pi->clk_regs.rv770.mpll_ad_func_cntl_2; in rv740_populate_mclk_value()
[all …]
H A Dcypress_dpm.c51 struct rv7xx_power_info *pi = rv770_get_pi(rdev); in cypress_enable_bif_dynamic_pcie_gen2() local
58 if (!pi->boot_in_gen2) { in cypress_enable_bif_dynamic_pcie_gen2()
75 if (!pi->boot_in_gen2) { in cypress_enable_bif_dynamic_pcie_gen2()
99 struct rv7xx_power_info *pi = rv770_get_pi(rdev);
101 if (pi->gfx_clock_gating) {
173 struct rv7xx_power_info *pi = rv770_get_pi(rdev); in cypress_mg_clock_gating_enable() local
193 if (pi->mgcgtssm) in cypress_mg_clock_gating_enable()
214 if (pi->mgcgtssm) in cypress_mg_clock_gating_enable()
222 struct rv7xx_power_info *pi = rv770_get_pi(rdev); in cypress_enable_spread_spectrum() local
225 if (pi->sclk_ss) in cypress_enable_spread_spectrum()
[all …]
/linux/drivers/usb/typec/mux/
H A Dpi3usb30532.c31 static int pi3usb30532_set_conf(struct pi3usb30532 *pi, u8 new_conf) in pi3usb30532_set_conf() argument
35 if (pi->conf == new_conf) in pi3usb30532_set_conf()
38 ret = i2c_smbus_write_byte_data(pi->client, PI3USB30532_CONF, new_conf); in pi3usb30532_set_conf()
40 dev_err(&pi->client->dev, "Error writing conf: %d\n", ret); in pi3usb30532_set_conf()
44 pi->conf = new_conf; in pi3usb30532_set_conf()
51 struct pi3usb30532 *pi = typec_switch_get_drvdata(sw); in pi3usb30532_sw_set() local
55 mutex_lock(&pi->lock); in pi3usb30532_sw_set()
56 new_conf = pi->conf; in pi3usb30532_sw_set()
70 ret = pi3usb30532_set_conf(pi, new_conf); in pi3usb30532_sw_set()
71 mutex_unlock(&pi->lock); in pi3usb30532_sw_set()
[all …]
/linux/drivers/md/
H A Ddm-ps-io-affinity.c29 struct path_info *pi = s->path_map[cpu]; in ioa_free_path() local
31 if (!pi) in ioa_free_path()
34 if (refcount_dec_and_test(&pi->refcount)) { in ioa_free_path()
36 free_cpumask_var(pi->cpumask); in ioa_free_path()
37 kfree(pi); in ioa_free_path()
47 struct path_info *pi = NULL; in ioa_add_path() local
56 pi = kzalloc(sizeof(*pi), GFP_KERNEL); in ioa_add_path()
57 if (!pi) { in ioa_add_path()
62 pi->path = path; in ioa_add_path()
63 path->pscontext = pi; in ioa_add_path()
[all …]
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dpno.c40 static int brcmf_pno_store_request(struct brcmf_pno_info *pi, in brcmf_pno_store_request() argument
43 if (WARN(pi->n_reqs == BRCMF_PNO_MAX_BUCKETS, in brcmf_pno_store_request()
48 mutex_lock(&pi->req_lock); in brcmf_pno_store_request()
49 pi->reqs[pi->n_reqs++] = req; in brcmf_pno_store_request()
50 mutex_unlock(&pi->req_lock); in brcmf_pno_store_request()
54 static int brcmf_pno_remove_request(struct brcmf_pno_info *pi, u64 reqid) in brcmf_pno_remove_request() argument
58 mutex_lock(&pi->req_lock); in brcmf_pno_remove_request()
61 if (pi->n_reqs == 0) in brcmf_pno_remove_request()
65 for (i = 0; i < pi->n_reqs; i++) { in brcmf_pno_remove_request()
66 if (pi->reqs[i]->reqid == reqid) in brcmf_pno_remove_request()
[all …]
/linux/drivers/net/ethernet/intel/ice/
H A Dice_sched.c9 * @pi: port information structure
16 ice_sched_add_root_node(struct ice_port_info *pi, in ice_sched_add_root_node() argument
22 if (!pi) in ice_sched_add_root_node()
25 hw = pi->hw; in ice_sched_add_root_node()
39 pi->root = root; in ice_sched_add_root_node()
142 * @pi: port information structure
150 ice_sched_add_node(struct ice_port_info *pi, u8 layer, in ice_sched_add_node() argument
160 if (!pi) in ice_sched_add_node()
163 hw = pi->hw; in ice_sched_add_node()
166 parent = ice_sched_find_node_by_teid(pi->root, in ice_sched_add_node()
[all …]
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dsched.c41 static int t4_sched_class_fw_cmd(struct port_info *pi, in t4_sched_class_fw_cmd() argument
45 struct adapter *adap = pi->adapter; in t4_sched_class_fw_cmd()
46 struct sched_table *s = pi->sched_tbl; in t4_sched_class_fw_cmd()
71 static int t4_sched_bind_unbind_op(struct port_info *pi, void *arg, in t4_sched_bind_unbind_op() argument
74 struct adapter *adap = pi->adapter; in t4_sched_bind_unbind_op()
108 err = cxgb4_ethofld_send_flowc(adap->port[pi->port_id], in t4_sched_bind_unbind_op()
120 static void *t4_sched_entry_lookup(struct port_info *pi, in t4_sched_entry_lookup() argument
124 struct sched_table *s = pi->sched_tbl; in t4_sched_entry_lookup()
172 struct port_info *pi = netdev2pinfo(dev); in cxgb4_sched_queue_lookup() local
174 struct adapter *adap = pi->adapter; in cxgb4_sched_queue_lookup()
[all …]
/linux/sound/aoa/soundbus/i2sbus/
H A Dpcm.c19 struct pcm_info **pi, struct pcm_info **other) in get_pcm_info() argument
22 if (pi) in get_pcm_info()
23 *pi = &i2sdev->in; in get_pcm_info()
27 if (pi) in get_pcm_info()
28 *pi = &i2sdev->out; in get_pcm_info()
74 struct pcm_info *pi, *other; in i2sbus_pcm_open() local
88 get_pcm_info(i2sdev, in, &pi, &other); in i2sbus_pcm_open()
90 hw = &pi->substream->runtime->hw; in i2sbus_pcm_open()
93 if (pi->active) { in i2sbus_pcm_open()
195 err = snd_pcm_hw_constraint_integer(pi->substream->runtime, in i2sbus_pcm_open()
[all …]

12345678910>>...28