Home
last modified time | relevance | path

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

12345678910>>...25

/Linux-v5.10/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/
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 …]
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 …]
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 …]
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-v5.10/drivers/block/paride/
Dparide.c45 void pi_write_regr(PIA * pi, int cont, int regr, int val) in pi_write_regr() argument
47 pi->proto->write_regr(pi, cont, regr, val); in pi_write_regr()
52 int pi_read_regr(PIA * pi, int cont, int regr) in pi_read_regr() argument
54 return pi->proto->read_regr(pi, cont, regr); in pi_read_regr()
59 void pi_write_block(PIA * pi, char *buf, int count) in pi_write_block() argument
61 pi->proto->write_block(pi, buf, count); in pi_write_block()
66 void pi_read_block(PIA * pi, char *buf, int count) in pi_read_block() argument
68 pi->proto->read_block(pi, buf, count); in pi_read_block()
75 PIA *pi = (PIA *) p; in pi_wake_up() local
81 if (pi->claim_cont && !parport_claim(pi->pardev)) { in pi_wake_up()
[all …]
Dbpck6.c40 #define PPCSTRUCT(pi) ((Interface *)(pi->private)) argument
59 static int bpck6_read_regr(PIA *pi, int cont, int reg) in bpck6_read_regr() argument
68 out=ppc6_rd_port(PPCSTRUCT(pi),cont?reg|8:reg); in bpck6_read_regr()
72 static void bpck6_write_regr(PIA *pi, int cont, int reg, int val) in bpck6_write_regr() argument
77 ppc6_wr_port(PPCSTRUCT(pi),cont?reg|8:reg,(u8)val); in bpck6_write_regr()
81 static void bpck6_write_block( PIA *pi, char * buf, int len ) in bpck6_write_block() argument
83 ppc6_wr_port16_blk(PPCSTRUCT(pi),ATAPI_DATA,buf,(u32)len>>1); in bpck6_write_block()
86 static void bpck6_read_block( PIA *pi, char * buf, int len ) in bpck6_read_block() argument
88 ppc6_rd_port16_blk(PPCSTRUCT(pi),ATAPI_DATA,buf,(u32)len>>1); in bpck6_read_block()
91 static void bpck6_connect ( PIA *pi ) in bpck6_connect() argument
[all …]
Dfrpw.c47 static int frpw_read_regr( PIA *pi, int cont, int regr ) in frpw_read_regr() argument
63 static void frpw_write_regr( PIA *pi, int cont, int regr, int val) in frpw_write_regr() argument
74 static void frpw_read_block_int( PIA *pi, char * buf, int count, int regr ) in frpw_read_block_int() argument
78 switch(pi->mode) { in frpw_read_block_int()
135 static void frpw_read_block( PIA *pi, char * buf, int count) in frpw_read_block() argument
137 { frpw_read_block_int(pi,buf,count,0x08); in frpw_read_block()
140 static void frpw_write_block( PIA *pi, char * buf, int count ) in frpw_write_block() argument
144 switch(pi->mode) { in frpw_write_block()
173 static void frpw_connect ( PIA *pi ) in frpw_connect() argument
175 { pi->saved_r0 = r0(); in frpw_connect()
[all …]
Dbpck.c12 1.01 GRG 1998.05.05 init_proto, release_proto, pi->delay
13 1.02 GRG 1998.08.15 default pi->delay returned to 4
32 #define PC pi->private
48 static int bpck_read_regr( PIA *pi, int cont, int regr ) in bpck_read_regr() argument
54 switch (pi->mode) { in bpck_read_regr()
79 static void bpck_write_regr( PIA *pi, int cont, int regr, int val ) in bpck_write_regr() argument
85 switch (pi->mode) { in bpck_write_regr()
105 #define WR(r,v) bpck_write_regr(pi,2,r,v)
106 #define RR(r) (bpck_read_regr(pi,2,r))
108 static void bpck_write_block( PIA *pi, char * buf, int count ) in bpck_write_block() argument
[all …]
Dfriq.c51 static int friq_read_regr( PIA *pi, int cont, int regr ) in friq_read_regr() argument
66 static void friq_write_regr( PIA *pi, int cont, int regr, int val) in friq_write_regr() argument
77 static void friq_read_block_int( PIA *pi, char * buf, int count, int regr ) in friq_read_block_int() argument
81 switch(pi->mode) { in friq_read_block_int()
132 static void friq_read_block( PIA *pi, char * buf, int count) in friq_read_block() argument
134 { friq_read_block_int(pi,buf,count,0x08); in friq_read_block()
137 static void friq_write_block( PIA *pi, char * buf, int count ) in friq_write_block() argument
141 switch(pi->mode) { in friq_write_block()
169 static void friq_connect ( PIA *pi ) in friq_connect() argument
171 { pi->saved_r0 = r0(); in friq_connect()
[all …]
/Linux-v5.10/drivers/gpu/drm/radeon/
Dkv_dpm.c252 struct kv_power_info *pi = rdev->pm.dpm.priv; in kv_get_pi() local
254 return pi; in kv_get_pi()
334 struct kv_power_info *pi = kv_get_pi(rdev); in kv_do_enable_didt() local
337 if (pi->caps_sq_ramping) { in kv_do_enable_didt()
346 if (pi->caps_db_ramping) { in kv_do_enable_didt()
355 if (pi->caps_td_ramping) { in kv_do_enable_didt()
364 if (pi->caps_tcp_ramping) { in kv_do_enable_didt()
376 struct kv_power_info *pi = kv_get_pi(rdev); in kv_enable_didt() local
379 if (pi->caps_sq_ramping || in kv_enable_didt()
380 pi->caps_db_ramping || in kv_enable_didt()
[all …]
Dci_dpm.c183 struct ci_power_info *pi = rdev->pm.dpm.priv; in ci_get_pi() local
185 return pi; in ci_get_pi()
197 struct ci_power_info *pi = ci_get_pi(rdev); in ci_initialize_powertune_defaults() local
207 pi->powertune_defaults = &defaults_bonaire_xt; in ci_initialize_powertune_defaults()
213 pi->powertune_defaults = &defaults_saturn_xt; in ci_initialize_powertune_defaults()
217 pi->powertune_defaults = &defaults_hawaii_xt; in ci_initialize_powertune_defaults()
221 pi->powertune_defaults = &defaults_hawaii_pro; in ci_initialize_powertune_defaults()
231 pi->powertune_defaults = &defaults_bonaire_xt; in ci_initialize_powertune_defaults()
235 pi->dte_tj_offset = 0; in ci_initialize_powertune_defaults()
237 pi->caps_power_containment = true; in ci_initialize_powertune_defaults()
[all …]
Drv770_dpm.c56 struct rv7xx_power_info *pi = rdev->pm.dpm.priv; in rv770_get_pi() local
58 return pi; in rv770_get_pi()
63 struct evergreen_power_info *pi = rdev->pm.dpm.priv; in evergreen_get_pi() local
65 return pi; in evergreen_get_pi()
71 struct rv7xx_power_info *pi = rv770_get_pi(rdev); in rv770_enable_bif_dynamic_pcie_gen2() local
80 if (!pi->boot_in_gen2) { in rv770_enable_bif_dynamic_pcie_gen2()
145 struct rv7xx_power_info *pi = rv770_get_pi(rdev); in rv770_mg_clock_gating_enable() local
158 if (pi->mgcgtssm) in rv770_mg_clock_gating_enable()
237 struct rv7xx_power_info *pi = rv770_get_pi(rdev);
240 pi->soft_regs_start + reg_offset,
[all …]
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 …]
Dsumo_dpm.c83 struct sumo_power_info *pi = rdev->pm.dpm.priv; in sumo_get_pi() local
85 return pi; in sumo_get_pi()
286 struct sumo_power_info *pi = sumo_get_pi(rdev); in sumo_enable_clock_power_gating() local
288 if (pi->enable_gfx_clock_gating) in sumo_enable_clock_power_gating()
290 if (pi->enable_gfx_power_gating) in sumo_enable_clock_power_gating()
292 if (pi->enable_mg_clock_gating) in sumo_enable_clock_power_gating()
294 if (pi->enable_gfx_clock_gating) in sumo_enable_clock_power_gating()
296 if (pi->enable_gfx_power_gating) in sumo_enable_clock_power_gating()
304 struct sumo_power_info *pi = sumo_get_pi(rdev); in sumo_disable_clock_power_gating() local
306 if (pi->enable_gfx_clock_gating) in sumo_disable_clock_power_gating()
[all …]
Drv730_dpm.c43 struct rv7xx_power_info *pi = rv770_get_pi(rdev); in rv730_populate_sclk_value() local
45 u32 spll_func_cntl = pi->clk_regs.rv730.cg_spll_func_cntl; in rv730_populate_sclk_value()
46 u32 spll_func_cntl_2 = pi->clk_regs.rv730.cg_spll_func_cntl_2; in rv730_populate_sclk_value()
47 u32 spll_func_cntl_3 = pi->clk_regs.rv730.cg_spll_func_cntl_3; in rv730_populate_sclk_value()
48 u32 cg_spll_spread_spectrum = pi->clk_regs.rv730.cg_spll_spread_spectrum; in rv730_populate_sclk_value()
49 u32 cg_spll_spread_spectrum_2 = pi->clk_regs.rv730.cg_spll_spread_spectrum_2; in rv730_populate_sclk_value()
90 if (pi->sclk_ss) { in rv730_populate_sclk_value()
122 struct rv7xx_power_info *pi = rv770_get_pi(rdev); in rv730_populate_mclk_value() local
123 u32 mclk_pwrmgt_cntl = pi->clk_regs.rv730.mclk_pwrmgt_cntl; in rv730_populate_mclk_value()
124 u32 dll_cntl = pi->clk_regs.rv730.dll_cntl; in rv730_populate_mclk_value()
[all …]
Dtrinity_dpm.c357 struct trinity_power_info *pi = rdev->pm.dpm.priv; in trinity_get_pi() local
359 return pi; in trinity_get_pi()
364 struct trinity_power_info *pi = trinity_get_pi(rdev); in trinity_gfx_powergating_initialize() local
392 if (pi->override_dynamic_mgpg && (hw_rev == 0)) in trinity_gfx_powergating_initialize()
547 struct trinity_power_info *pi = trinity_get_pi(rdev); in trinity_enable_clock_power_gating() local
549 if (pi->enable_gfx_clock_gating) in trinity_enable_clock_power_gating()
551 if (pi->enable_mg_clock_gating) in trinity_enable_clock_power_gating()
553 if (pi->enable_gfx_power_gating) in trinity_enable_clock_power_gating()
555 if (pi->enable_mg_clock_gating) { in trinity_enable_clock_power_gating()
559 if (pi->enable_gfx_clock_gating) in trinity_enable_clock_power_gating()
[all …]
Drv740_dpm.c123 struct rv7xx_power_info *pi = rv770_get_pi(rdev); in rv740_populate_sclk_value() local
125 u32 spll_func_cntl = pi->clk_regs.rv770.cg_spll_func_cntl; in rv740_populate_sclk_value()
126 u32 spll_func_cntl_2 = pi->clk_regs.rv770.cg_spll_func_cntl_2; in rv740_populate_sclk_value()
127 u32 spll_func_cntl_3 = pi->clk_regs.rv770.cg_spll_func_cntl_3; in rv740_populate_sclk_value()
128 u32 cg_spll_spread_spectrum = pi->clk_regs.rv770.cg_spll_spread_spectrum; in rv740_populate_sclk_value()
129 u32 cg_spll_spread_spectrum_2 = pi->clk_regs.rv770.cg_spll_spread_spectrum_2; in rv740_populate_sclk_value()
158 if (pi->sclk_ss) { in rv740_populate_sclk_value()
190 struct rv7xx_power_info *pi = rv770_get_pi(rdev); in rv740_populate_mclk_value() local
191 u32 mpll_ad_func_cntl = pi->clk_regs.rv770.mpll_ad_func_cntl; in rv740_populate_mclk_value()
192 u32 mpll_ad_func_cntl_2 = pi->clk_regs.rv770.mpll_ad_func_cntl_2; in rv740_populate_mclk_value()
[all …]
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
245 if (pi->pwm_voltage_control) { in rs780_voltage_scaling_init()
246 fv_throt_pwm_range[0] = pi->min_voltage; in rs780_voltage_scaling_init()
[all …]
/Linux-v5.10/drivers/gpu/drm/amd/pm/powerplay/
Dkv_dpm.c379 struct kv_power_info *pi = adev->pm.dpm.priv; in kv_get_pi() local
381 return pi; in kv_get_pi()
461 struct kv_power_info *pi = kv_get_pi(adev); in kv_do_enable_didt() local
464 if (pi->caps_sq_ramping) { in kv_do_enable_didt()
473 if (pi->caps_db_ramping) { in kv_do_enable_didt()
482 if (pi->caps_td_ramping) { in kv_do_enable_didt()
491 if (pi->caps_tcp_ramping) { in kv_do_enable_didt()
503 struct kv_power_info *pi = kv_get_pi(adev); in kv_enable_didt() local
506 if (pi->caps_sq_ramping || in kv_enable_didt()
507 pi->caps_db_ramping || in kv_enable_didt()
[all …]
/Linux-v5.10/drivers/usb/typec/mux/
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-v5.10/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
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-v5.10/drivers/net/ethernet/chelsio/cxgb4/
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-v5.10/drivers/md/
Ddm-historical-service-time.c219 struct path_info *pi, *next; in free_paths() local
221 list_for_each_entry_safe(pi, next, paths, list) { in free_paths()
222 list_del(&pi->list); in free_paths()
223 kfree(pi); in free_paths()
241 struct path_info *pi; in hst_status() local
248 pi = path->pscontext; in hst_status()
252 DMEMIT("%llu %llu %llu ", pi->historical_service_time, in hst_status()
253 pi->outstanding, pi->stale_after); in hst_status()
268 struct path_info *pi; in hst_add_path() local
289 pi = kmalloc(sizeof(*pi), GFP_KERNEL); in hst_add_path()
[all …]
/Linux-v5.10/drivers/net/ethernet/intel/ice/
Dice_sched.c8 * @pi: port information structure
15 ice_sched_add_root_node(struct ice_port_info *pi, in ice_sched_add_root_node() argument
21 if (!pi) in ice_sched_add_root_node()
24 hw = pi->hw; in ice_sched_add_root_node()
39 pi->root = root; in ice_sched_add_root_node()
142 * @pi: port information structure
149 ice_sched_add_node(struct ice_port_info *pi, u8 layer, in ice_sched_add_node() argument
158 if (!pi) in ice_sched_add_node()
161 hw = pi->hw; in ice_sched_add_node()
164 parent = ice_sched_find_node_by_teid(pi->root, in ice_sched_add_node()
[all …]
/Linux-v5.10/sound/aoa/soundbus/i2sbus/
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>>...25