/linux-6.6.21/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 …]
|
/linux-6.6.21/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 | 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 | 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 | 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 | pata_parport.h | 33 #define delay_p (pi->delay ? udelay(pi->delay) : (void)0) 34 #define out_p(offs, byte) do { outb(byte, pi->port + offs); delay_p; } while (0) 35 #define in_p(offs) (delay_p, inb(pi->port + offs)) 46 #define w4w(data) do { outw(data, pi->port + 4); delay_p; } while (0) 47 #define w4l(data) do { outl(data, pi->port + 4); delay_p; } while (0) 48 #define r4w() (delay_p, inw(pi->port + 4)) 49 #define r4l() (delay_p, inl(pi->port + 4)) 60 void (*write_regr)(struct pi_adapter *pi, int cont, int regr, int val); 61 int (*read_regr)(struct pi_adapter *pi, int cont, int regr); 62 void (*write_block)(struct pi_adapter *pi, char *buf, int count); [all …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/drivers/gpu/drm/amd/pm/legacy-dpm/ |
D | kv_dpm.c | 367 struct kv_power_info *pi = adev->pm.dpm.priv; in kv_get_pi() local 369 return pi; in kv_get_pi() 449 struct kv_power_info *pi = kv_get_pi(adev); in kv_do_enable_didt() local 452 if (pi->caps_sq_ramping) { in kv_do_enable_didt() 461 if (pi->caps_db_ramping) { in kv_do_enable_didt() 470 if (pi->caps_td_ramping) { in kv_do_enable_didt() 479 if (pi->caps_tcp_ramping) { in kv_do_enable_didt() 491 struct kv_power_info *pi = kv_get_pi(adev); in kv_enable_didt() local 494 if (pi->caps_sq_ramping || in kv_enable_didt() 495 pi->caps_db_ramping || in kv_enable_didt() [all …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/block/partitions/ |
D | atari.c | 21 #define VALID_PARTITION(pi,hdsiz) \ argument 22 (((pi)->flg & 1) && \ 23 isalnum((pi)->id[0]) && isalnum((pi)->id[1]) && isalnum((pi)->id[2]) && \ 24 be32_to_cpu((pi)->st) <= (hdsiz) && \ 25 be32_to_cpu((pi)->st) + be32_to_cpu((pi)->siz) <= (hdsiz)) 38 struct partition_info *pi; in atari_partition() local 72 pi = &rs->part[0]; in atari_partition() 74 for (slot = 1; pi < &rs->part[4] && slot < state->limit; slot++, pi++) { in atari_partition() 79 if ( !(pi->flg & 1) ) in atari_partition() 82 if (memcmp (pi->id, "XGM", 3) != 0) { in atari_partition() [all …]
|
/linux-6.6.21/sound/aoa/soundbus/i2sbus/ |
D | pcm.c | 19 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 …]
|
/linux-6.6.21/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 …]
|