/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/ |
D | phy_n.c | 25 #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 …]
|
D | phy_lcn.c | 79 #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 …]
|
D | phy_cmn.c | 26 #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 …]
|
D | phy_int.h | 32 #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 …]
|
/drivers/ata/pata_parport/ |
D | bpck6.c | 63 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 …]
|
D | pata_parport.c | 28 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 …]
|
D | frpw.c | 32 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 …]
|
D | bpck.c | 22 #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 …]
|
D | friq.c | 46 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 …]
|
D | on26.c | 43 static int on26_read_regr(struct pi_adapter *pi, int cont, int regr) in on26_read_regr() argument 49 switch (pi->mode) { in on26_read_regr() 72 static void on26_write_regr(struct pi_adapter *pi, int cont, int regr, int val) in on26_write_regr() argument 76 switch (pi->mode) { in on26_write_regr() 100 static void on26_connect(struct pi_adapter *pi) in on26_connect() argument 104 pi->saved_r0 = r0(); in on26_connect() 105 pi->saved_r2 = r2(); in on26_connect() 108 if (pi->mode) in on26_connect() 117 static void on26_disconnect(struct pi_adapter *pi) in on26_disconnect() argument 119 if (pi->mode >= 2) { in on26_disconnect() [all …]
|
D | epat.c | 37 static void epat_write_regr(struct pi_adapter *pi, int cont, int regr, int val) in epat_write_regr() argument 41 switch (pi->mode) { in epat_write_regr() 55 static int epat_read_regr(struct pi_adapter *pi, int cont, int regr) in epat_read_regr() argument 61 switch (pi->mode) { in epat_read_regr() 85 static void epat_read_block(struct pi_adapter *pi, char *buf, int count) in epat_read_block() argument 89 switch (pi->mode) { in epat_read_block() 168 static void epat_write_block(struct pi_adapter *pi, char *buf, int count) in epat_write_block() argument 172 switch (pi->mode) { in epat_write_block() 208 #define WR(r, v) epat_write_regr(pi, 2, r, v) 209 #define RR(r) epat_read_regr(pi, 2, r) [all …]
|
/drivers/gpu/drm/radeon/ |
D | kv_dpm.c | 153 struct kv_power_info *pi = rdev->pm.dpm.priv; in kv_get_pi() local 155 return pi; in kv_get_pi() 209 struct kv_power_info *pi = kv_get_pi(rdev); in kv_do_enable_didt() local 212 if (pi->caps_sq_ramping) { in kv_do_enable_didt() 221 if (pi->caps_db_ramping) { in kv_do_enable_didt() 230 if (pi->caps_td_ramping) { in kv_do_enable_didt() 239 if (pi->caps_tcp_ramping) { in kv_do_enable_didt() 251 struct kv_power_info *pi = kv_get_pi(rdev); in kv_enable_didt() local 254 if (pi->caps_sq_ramping || in kv_enable_didt() 255 pi->caps_db_ramping || in kv_enable_didt() [all …]
|
D | ci_dpm.c | 174 struct ci_power_info *pi = rdev->pm.dpm.priv; in ci_get_pi() local 176 return pi; in ci_get_pi() 188 struct ci_power_info *pi = ci_get_pi(rdev); in ci_initialize_powertune_defaults() local 198 pi->powertune_defaults = &defaults_bonaire_xt; in ci_initialize_powertune_defaults() 204 pi->powertune_defaults = &defaults_saturn_xt; in ci_initialize_powertune_defaults() 208 pi->powertune_defaults = &defaults_hawaii_xt; in ci_initialize_powertune_defaults() 212 pi->powertune_defaults = &defaults_hawaii_pro; in ci_initialize_powertune_defaults() 222 pi->powertune_defaults = &defaults_bonaire_xt; in ci_initialize_powertune_defaults() 226 pi->dte_tj_offset = 0; in ci_initialize_powertune_defaults() 228 pi->caps_power_containment = true; in ci_initialize_powertune_defaults() [all …]
|
D | rv770_dpm.c | 58 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 …]
|
D | rv6xx_dpm.c | 45 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 …]
|
D | sumo_dpm.c | 83 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 …]
|
D | trinity_dpm.c | 313 struct trinity_power_info *pi = rdev->pm.dpm.priv; in trinity_get_pi() local 315 return pi; in trinity_get_pi() 320 struct trinity_power_info *pi = trinity_get_pi(rdev); in trinity_gfx_powergating_initialize() local 348 if (pi->override_dynamic_mgpg && (hw_rev == 0)) in trinity_gfx_powergating_initialize() 503 struct trinity_power_info *pi = trinity_get_pi(rdev); in trinity_enable_clock_power_gating() local 505 if (pi->enable_gfx_clock_gating) in trinity_enable_clock_power_gating() 507 if (pi->enable_mg_clock_gating) in trinity_enable_clock_power_gating() 509 if (pi->enable_gfx_power_gating) in trinity_enable_clock_power_gating() 511 if (pi->enable_mg_clock_gating) { in trinity_enable_clock_power_gating() 515 if (pi->enable_gfx_clock_gating) in trinity_enable_clock_power_gating() [all …]
|
D | rv730_dpm.c | 41 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 …]
|
/drivers/gpu/drm/amd/pm/legacy-dpm/ |
D | kv_dpm.c | 369 struct kv_power_info *pi = adev->pm.dpm.priv; in kv_get_pi() local 371 return pi; in kv_get_pi() 451 struct kv_power_info *pi = kv_get_pi(adev); in kv_do_enable_didt() local 454 if (pi->caps_sq_ramping) { in kv_do_enable_didt() 463 if (pi->caps_db_ramping) { in kv_do_enable_didt() 472 if (pi->caps_td_ramping) { in kv_do_enable_didt() 481 if (pi->caps_tcp_ramping) { in kv_do_enable_didt() 493 struct kv_power_info *pi = kv_get_pi(adev); in kv_enable_didt() local 496 if (pi->caps_sq_ramping || in kv_enable_didt() 497 pi->caps_db_ramping || in kv_enable_didt() [all …]
|
/drivers/usb/typec/mux/ |
D | pi3usb30532.c | 31 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 …]
|
/drivers/md/ |
D | dm-ps-io-affinity.c | 29 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 …]
|
D | dm-ps-historical-service-time.c | 219 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() 271 struct path_info *pi; in hst_add_path() local 292 pi = kmalloc(sizeof(*pi), GFP_KERNEL); in hst_add_path() [all …]
|
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | pno.c | 40 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 …]
|
/drivers/net/ethernet/intel/ice/ |
D | ice_sched.c | 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() 40 pi->root = root; in ice_sched_add_root_node() 151 ice_sched_add_node(struct ice_port_info *pi, u8 layer, in ice_sched_add_node() argument 161 if (!pi) in ice_sched_add_node() 164 hw = pi->hw; in ice_sched_add_node() 167 parent = ice_sched_find_node_by_teid(pi->root, in ice_sched_add_node() 275 ice_sched_get_first_node(struct ice_port_info *pi, in ice_sched_get_first_node() argument 278 return pi->sib_head[parent->tc_num][layer]; in ice_sched_get_first_node() [all …]
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | sched.c | 41 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 …]
|