| /drivers/video/fbdev/mmp/ |
| D | core.c | 16 static struct mmp_overlay *path_get_overlay(struct mmp_path *path, in path_get_overlay() argument 19 if (path && overlay_id < path->overlay_num) in path_get_overlay() 20 return &path->overlays[overlay_id]; in path_get_overlay() 24 static int path_check_status(struct mmp_path *path) in path_check_status() argument 27 for (i = 0; i < path->overlay_num; i++) in path_check_status() 28 if (path->overlays[i].status) in path_check_status() 41 static int path_get_modelist(struct mmp_path *path, in path_get_modelist() argument 44 BUG_ON(!path || !modelist); in path_get_modelist() 46 if (path->panel && path->panel->get_modelist) in path_get_modelist() 47 return path->panel->get_modelist(path->panel, modelist); in path_get_modelist() [all …]
|
| /drivers/thunderbolt/ |
| D | path.c | 108 struct tb_path *path; in tb_path_discover() local 153 path = kzalloc(sizeof(*path), GFP_KERNEL); in tb_path_discover() 154 if (!path) in tb_path_discover() 157 path->name = name; in tb_path_discover() 158 path->tb = src->sw->tb; in tb_path_discover() 159 path->path_length = num_hops; in tb_path_discover() 160 path->activated = true; in tb_path_discover() 161 path->alloc_hopid = alloc_hopid; in tb_path_discover() 163 path->hops = kcalloc(num_hops, sizeof(*path->hops), GFP_KERNEL); in tb_path_discover() 164 if (!path->hops) { in tb_path_discover() [all …]
|
| D | test.c | 846 struct tb_path *path; in tb_test_path_not_connected() local 856 path = tb_path_alloc(NULL, down, 8, up, 8, 0, "PCIe Down"); in tb_test_path_not_connected() 857 KUNIT_ASSERT_NULL(test, path); in tb_test_path_not_connected() 858 path = tb_path_alloc(NULL, down, 8, up, 8, 1, "PCIe Down"); in tb_test_path_not_connected() 859 KUNIT_ASSERT_NULL(test, path); in tb_test_path_not_connected() 898 struct tb_path *path; in tb_test_path_not_bonded_lane0() local 907 path = tb_path_alloc(NULL, down, 8, up, 8, 0, "PCIe Down"); in tb_test_path_not_bonded_lane0() 908 KUNIT_ASSERT_NOT_NULL(test, path); in tb_test_path_not_bonded_lane0() 909 KUNIT_ASSERT_EQ(test, path->path_length, ARRAY_SIZE(test_data)); in tb_test_path_not_bonded_lane0() 913 in_port = path->hops[i].in_port; in tb_test_path_not_bonded_lane0() [all …]
|
| D | tunnel.c | 261 static int tb_pci_init_path(struct tb_path *path) in tb_pci_init_path() argument 265 path->egress_fc_enable = TB_PATH_SOURCE | TB_PATH_INTERNAL; in tb_pci_init_path() 266 path->egress_shared_buffer = TB_PATH_NONE; in tb_pci_init_path() 267 path->ingress_fc_enable = TB_PATH_ALL; in tb_pci_init_path() 268 path->ingress_shared_buffer = TB_PATH_NONE; in tb_pci_init_path() 269 path->priority = TB_PCI_PRIORITY; in tb_pci_init_path() 270 path->weight = TB_PCI_WEIGHT; in tb_pci_init_path() 271 path->drop_packages = 0; in tb_pci_init_path() 273 tb_path_for_each_hop(path, hop) { in tb_pci_init_path() 298 struct tb_path *path; in tb_tunnel_discover_pci() local [all …]
|
| /drivers/net/wireless/realtek/rtw89/ |
| D | rtw8852c_rfk.c | 153 u8 path; in _wait_rx_mode() local 157 for (path = 0; path < RF_PATH_MAX; path++) { in _wait_rx_mode() 158 if (!(kpath & BIT(path))) in _wait_rx_mode() 162 2, 5000, false, rtwdev, path, 0x00, in _wait_rx_mode() 166 path, ret); in _wait_rx_mode() 304 enum rtw89_rf_path path, u8 index) in _dack_reload_by_path() argument 312 path_offset = (path == RF_PATH_A ? 0 : 0x28); in _dack_reload_by_path() 320 val32 |= dack->msbk_d[path][index][i + 12] << (i * 8); in _dack_reload_by_path() 329 val32 |= dack->msbk_d[path][index][i + 8] << (i * 8); in _dack_reload_by_path() 338 val32 |= dack->msbk_d[path][index][i + 4] << (i * 8); in _dack_reload_by_path() [all …]
|
| D | rtw8852a_rfk.c | 94 u8 path; in _wait_rx_mode() local 98 for (path = 0; path < RF_PATH_MAX; path++) { in _wait_rx_mode() 99 if (!(kpath & BIT(path))) in _wait_rx_mode() 103 2, 5000, false, rtwdev, path, 0x00, in _wait_rx_mode() 107 path, ret); in _wait_rx_mode() 254 enum rtw89_rf_path path, u8 index) in _dack_reload_by_path() argument 266 if (path == RF_PATH_A) in _dack_reload_by_path() 275 tmp |= dack->msbk_d[path][index][i + 12] << (i * 8); in _dack_reload_by_path() 283 tmp |= dack->msbk_d[path][index][i + 8] << (i * 8); in _dack_reload_by_path() 291 tmp |= dack->msbk_d[path][index][i + 4] << (i * 8); in _dack_reload_by_path() [all …]
|
| D | rtw8852b_rfk.c | 235 enum rtw89_rf_path path, bool is_bybb) in _rfk_rf_direct_cntrl() argument 238 rtw89_write_rf(rtwdev, path, RR_RSV1, RR_RSV1_RST, 0x1); in _rfk_rf_direct_cntrl() 240 rtw89_write_rf(rtwdev, path, RR_RSV1, RR_RSV1_RST, 0x0); in _rfk_rf_direct_cntrl() 244 enum rtw89_rf_path path, bool is_bybb) in _rfk_drf_direct_cntrl() argument 247 rtw89_write_rf(rtwdev, path, RR_BBDC, RR_BBDC_SEL, 0x1); in _rfk_drf_direct_cntrl() 249 rtw89_write_rf(rtwdev, path, RR_BBDC, RR_BBDC_SEL, 0x0); in _rfk_drf_direct_cntrl() 252 static bool _iqk_check_cal(struct rtw89_dev *rtwdev, u8 path) in _iqk_check_cal() argument 269 rtw89_debug(rtwdev, RTW89_DBG_RFK, "[IQK]S%x, ret=%d\n", path, ret); in _iqk_check_cal() 271 rtw89_debug(rtwdev, RTW89_DBG_RFK, "[IQK]S%x, 0x8008 = 0x%x\n", path, val); in _iqk_check_cal() 295 enum rtw89_rf_path path) in _set_rx_dck() argument [all …]
|
| D | rtw8851b_rfk.c | 141 u8 path) in _adc_fifo_rst() argument 149 enum rtw89_rf_path path, bool is_bybb) in _rfk_rf_direct_cntrl() argument 152 rtw89_write_rf(rtwdev, path, RR_RSV1, RR_RSV1_RST, 0x1); in _rfk_rf_direct_cntrl() 154 rtw89_write_rf(rtwdev, path, RR_RSV1, RR_RSV1_RST, 0x0); in _rfk_rf_direct_cntrl() 158 enum rtw89_rf_path path, bool is_bybb) in _rfk_drf_direct_cntrl() argument 161 rtw89_write_rf(rtwdev, path, RR_BBDC, RR_BBDC_SEL, 0x1); in _rfk_drf_direct_cntrl() 163 rtw89_write_rf(rtwdev, path, RR_BBDC, RR_BBDC_SEL, 0x0); in _rfk_drf_direct_cntrl() 169 u8 path; in _wait_rx_mode() local 172 for (path = 0; path < RF_PATH_MAX; path++) { in _wait_rx_mode() 173 if (!(kpath & BIT(path))) in _wait_rx_mode() [all …]
|
| D | rtw8852bt_rfk.c | 134 static void _rfk_get_thermal(struct rtw89_dev *rtwdev, u8 kidx, enum rtw89_rf_path path) in _rfk_get_thermal() argument 138 rtw89_write_rf(rtwdev, path, RR_TM, RR_TM_TRI, 0x1); in _rfk_get_thermal() 139 rtw89_write_rf(rtwdev, path, RR_TM, RR_TM_TRI, 0x0); in _rfk_get_thermal() 140 rtw89_write_rf(rtwdev, path, RR_TM, RR_TM_TRI, 0x1); in _rfk_get_thermal() 144 dpk->bp[path][kidx].ther_dpk = rtw89_read_rf(rtwdev, path, RR_TM, RR_TM_VAL); in _rfk_get_thermal() 147 dpk->bp[path][kidx].ther_dpk); in _rfk_get_thermal() 252 void _txck_force(struct rtw89_dev *rtwdev, enum rtw89_rf_path path, bool force, in _txck_force() argument 255 rtw89_phy_write32_mask(rtwdev, R_P0_RXCK | (path << 13), B_P0_TXCK_ON, 0x0); in _txck_force() 260 rtw89_phy_write32_mask(rtwdev, R_P0_RXCK | (path << 13), B_P0_TXCK_VAL, ck); in _txck_force() 261 rtw89_phy_write32_mask(rtwdev, R_P0_RXCK | (path << 13), B_P0_TXCK_ON, 0x1); in _txck_force() [all …]
|
| D | rtw8922a_rfk.c | 14 enum rtw89_rf_path path) in rtw8922a_tssi_cont_en() argument 19 rtw89_phy_write32_mask(rtwdev, tssi_trk_man[path], B_TSSI_CONT_EN, 0); in rtw8922a_tssi_cont_en() 21 rtw89_phy_write32_mask(rtwdev, tssi_trk_man[path], B_TSSI_CONT_EN, 1); in rtw8922a_tssi_cont_en() 48 u8 path; in rtw8922a_ctl_band_ch_bw() local 65 for (path = 0; path < RF_PATH_NUM_8922A; path++) { in rtw8922a_ctl_band_ch_bw() 66 if (!(kpath & BIT(path))) in rtw8922a_ctl_band_ch_bw() 70 if (rf_reg[path][i] == INV_RF_DATA) { in rtw8922a_ctl_band_ch_bw() 72 "[RFK] Invalid RF_0x18 for Path-%d\n", path); in rtw8922a_ctl_band_ch_bw() 76 rf_reg[path][i] &= ~(RR_CFGCH_BAND1 | RR_CFGCH_BW | in rtw8922a_ctl_band_ch_bw() 78 rf_reg[path][i] |= u32_encode_bits(central_ch, RR_CFGCH_CH); in rtw8922a_ctl_band_ch_bw() [all …]
|
| /drivers/video/fbdev/mmp/hw/ |
| D | mmp_ctrl.c | 122 struct mmp_path *path = overlay->path; in dmafetch_set_fmt() local 123 tmp = readl_relaxed(ctrl_regs(path) + dma_ctrl(0, path->id)); in dmafetch_set_fmt() 126 writel_relaxed(tmp, ctrl_regs(path) + dma_ctrl(0, path->id)); in dmafetch_set_fmt() 131 struct lcd_regs *regs = path_regs(overlay->path); in overlay_set_win() 171 struct mmp_path *path = overlay->path; in dmafetch_onoff() local 174 tmp = readl_relaxed(ctrl_regs(path) + dma_ctrl(0, path->id)); in dmafetch_onoff() 177 writel(tmp, ctrl_regs(path) + dma_ctrl(0, path->id)); in dmafetch_onoff() 181 static void path_enabledisable(struct mmp_path *path, int on) in path_enabledisable() argument 184 mutex_lock(&path->access_ok); in path_enabledisable() 185 tmp = readl_relaxed(ctrl_regs(path) + LCD_SCLK(path)); in path_enabledisable() [all …]
|
| /drivers/net/ethernet/mediatek/ |
| D | mtk_eth_path.c | 18 int (*set_path)(struct mtk_eth *eth, u64 path); 21 static const char *mtk_eth_path_name(u64 path) in mtk_eth_path_name() argument 23 switch (path) { in mtk_eth_path_name() 43 static int set_mux_gdm1_to_gmac1_esw(struct mtk_eth *eth, u64 path) in set_mux_gdm1_to_gmac1_esw() argument 48 switch (path) { in set_mux_gdm1_to_gmac1_esw() 71 mtk_eth_path_name(path), __func__, updated); in set_mux_gdm1_to_gmac1_esw() 76 static int set_mux_gmac2_gmac0_to_gephy(struct mtk_eth *eth, u64 path) in set_mux_gmac2_gmac0_to_gephy() argument 81 switch (path) { in set_mux_gmac2_gmac0_to_gephy() 94 mtk_eth_path_name(path), __func__, updated); in set_mux_gmac2_gmac0_to_gephy() 99 static int set_mux_u3_gmac2_to_qphy(struct mtk_eth *eth, u64 path) in set_mux_u3_gmac2_to_qphy() argument [all …]
|
| /drivers/interconnect/ |
| D | core.c | 170 struct icc_path *path; in path_init() local 173 path = kzalloc(struct_size(path, reqs, num_nodes), GFP_KERNEL); in path_init() 174 if (!path) in path_init() 177 path->num_nodes = num_nodes; in path_init() 183 hlist_add_head(&path->reqs[i].req_node, &node->req_list); in path_init() 184 path->reqs[i].node = node; in path_init() 185 path->reqs[i].dev = dev; in path_init() 186 path->reqs[i].enabled = true; in path_init() 193 return path; in path_init() 199 struct icc_path *path = ERR_PTR(-EPROBE_DEFER); in path_find() local [all …]
|
| D | bulk.c | 21 paths[i].path = of_icc_get(dev, paths[i].name); in of_icc_bulk_get() 22 if (IS_ERR(paths[i].path)) { in of_icc_bulk_get() 23 ret = PTR_ERR(paths[i].path); in of_icc_bulk_get() 27 paths[i].path = NULL; in of_icc_bulk_get() 49 icc_put(paths[num_paths].path); in icc_bulk_put() 50 paths[num_paths].path = NULL; in icc_bulk_put() 68 ret = icc_set_bw(paths[i].path, paths[i].avg_bw, paths[i].peak_bw); in icc_bulk_set_bw() 91 ret = icc_enable(paths[i].path); in icc_bulk_enable() 115 icc_disable(paths[num_paths].path); in icc_bulk_disable()
|
| /drivers/media/platform/mediatek/mdp3/ |
| D | mtk-mdp3-cmdq.c | 143 static int mdp_path_subfrm_require(const struct mdp_path *path, in mdp_path_subfrm_require() argument 147 const int p_id = path->mdp_dev->mdp_data->mdp_plat_id; in mdp_path_subfrm_require() 149 const struct mtk_mdp_driver_data *data = path->mdp_dev->mdp_data; in mdp_path_subfrm_require() 155 num_comp = CFG_GET(MT8183, path->config, num_components); in mdp_path_subfrm_require() 157 num_comp = CFG_GET(MT8195, path->config, num_components); in mdp_path_subfrm_require() 160 index = __get_pipe(path->mdp_dev, path->comps[0].comp->public_id); in mdp_path_subfrm_require() 162 mutex = __get_mutex(path->mdp_dev, p); in mdp_path_subfrm_require() 171 inner_id = CFG_GET(MT8183, path->config, components[index].type); in mdp_path_subfrm_require() 173 inner_id = CFG_GET(MT8195, path->config, components[index].type); in mdp_path_subfrm_require() 175 if (mdp_cfg_comp_is_dummy(path->mdp_dev, inner_id)) in mdp_path_subfrm_require() [all …]
|
| /drivers/net/wireless/realtek/rtw88/ |
| D | rtw8822c.c | 112 u32 path, i; in rtw8822c_dac_backup_reg() local 127 for (path = 0; path < DACK_PATH_8822C; path++) { in rtw8822c_dac_backup_reg() 130 val = rtw_read_rf(rtwdev, path, reg, RFREG_MASK); in rtw8822c_dac_backup_reg() 131 backup_rf[path * i + i].reg = reg; in rtw8822c_dac_backup_reg() 132 backup_rf[path * i + i].val = val; in rtw8822c_dac_backup_reg() 141 u32 path, i; in rtw8822c_dac_restore_reg() local 147 for (path = 0; path < DACK_PATH_8822C; path++) { in rtw8822c_dac_restore_reg() 149 val = backup_rf[path * i + i].val; in rtw8822c_dac_restore_reg() 150 reg = backup_rf[path * i + i].reg; in rtw8822c_dac_restore_reg() 151 rtw_write_rf(rtwdev, path, reg, RFREG_MASK, val); in rtw8822c_dac_restore_reg() [all …]
|
| /drivers/infiniband/ulp/rtrs/ |
| D | rtrs.c | 74 struct rtrs_path *path = con->path; in rtrs_iu_post_recv() local 80 list.lkey = path->dev->ib_pd->local_dma_lkey; in rtrs_iu_post_recv() 83 rtrs_wrn(con->path, in rtrs_iu_post_recv() 131 struct rtrs_path *path = con->path; in rtrs_iu_post_send() local 140 list.lkey = path->dev->ib_pd->local_dma_lkey; in rtrs_iu_post_send() 193 struct rtrs_path *path = con->path; in rtrs_post_rdma_write_imm_empty() local 197 sflags = (atomic_inc_return(&con->wr_cnt) % path->signal_interval) ? in rtrs_post_rdma_write_imm_empty() 216 rtrs_info(con->path, "QP event %s (%d) received\n", in qp_event_handler() 221 rtrs_info(con->path, "Unhandled QP event %s (%d) received\n", in qp_event_handler() 229 return con->cid >= con->path->irq_con_num; in is_pollqueue() [all …]
|
| /drivers/infiniband/ulp/ipoib/ |
| D | ipoib_main.c | 76 struct ipoib_path path; member 560 struct ipoib_path *path; in __path_find() local 564 path = rb_entry(n, struct ipoib_path, rb_node); in __path_find() 566 ret = memcmp(gid, path->pathrec.dgid.raw, in __path_find() 574 return path; in __path_find() 580 static int __path_add(struct net_device *dev, struct ipoib_path *path) in __path_add() argument 592 ret = memcmp(path->pathrec.dgid.raw, tpath->pathrec.dgid.raw, in __path_add() 602 rb_link_node(&path->rb_node, pn, n); in __path_add() 603 rb_insert_color(&path->rb_node, &priv->path_tree); in __path_add() 605 list_add_tail(&path->list, &priv->path_list); in __path_add() [all …]
|
| /drivers/net/ethernet/intel/ixgbe/ |
| D | ixgbe_dcb_nl.c | 46 if (dst->path[tx].prio_type != src->path[tx].prio_type) { in ixgbe_copy_dcb_cfg() 47 dst->path[tx].prio_type = src->path[tx].prio_type; in ixgbe_copy_dcb_cfg() 51 if (dst->path[tx].bwg_id != src->path[tx].bwg_id) { in ixgbe_copy_dcb_cfg() 52 dst->path[tx].bwg_id = src->path[tx].bwg_id; in ixgbe_copy_dcb_cfg() 56 if (dst->path[tx].bwg_percent != src->path[tx].bwg_percent) { in ixgbe_copy_dcb_cfg() 57 dst->path[tx].bwg_percent = src->path[tx].bwg_percent; in ixgbe_copy_dcb_cfg() 61 if (dst->path[tx].up_to_tc_bitmap != in ixgbe_copy_dcb_cfg() 62 src->path[tx].up_to_tc_bitmap) { in ixgbe_copy_dcb_cfg() 63 dst->path[tx].up_to_tc_bitmap = in ixgbe_copy_dcb_cfg() 64 src->path[tx].up_to_tc_bitmap; in ixgbe_copy_dcb_cfg() [all …]
|
| /drivers/xen/xenbus/ |
| D | xenbus_xs.c | 439 char *strings, *path; in xenbus_directory() local 442 path = join(dir, node); in xenbus_directory() 443 if (IS_ERR(path)) in xenbus_directory() 444 return ERR_CAST(path); in xenbus_directory() 446 strings = xs_single(t, XS_DIRECTORY, path, &len); in xenbus_directory() 447 kfree(path); in xenbus_directory() 477 char *path; in xenbus_read() local 480 path = join(dir, node); in xenbus_read() 481 if (IS_ERR(path)) in xenbus_read() 482 return ERR_CAST(path); in xenbus_read() [all …]
|
| /drivers/base/ |
| D | devtmpfs.c | 162 struct path path; in dev_mkdir() local 165 dentry = kern_path_create(AT_FDCWD, name, &path, LOOKUP_DIRECTORY); in dev_mkdir() 169 err = vfs_mkdir(&nop_mnt_idmap, d_inode(path.dentry), dentry, mode); in dev_mkdir() 173 done_path_create(&path, dentry); in dev_mkdir() 179 char *path; in create_path() local 184 path = kstrdup(nodepath, GFP_KERNEL); in create_path() 185 if (!path) in create_path() 188 s = path; in create_path() 194 err = dev_mkdir(path, 0755); in create_path() 200 kfree(path); in create_path() [all …]
|
| /drivers/md/ |
| D | dm-ps-queue-length.c | 38 struct dm_path *path; member 87 static int ql_status(struct path_selector *ps, struct dm_path *path, in ql_status() argument 94 if (!path) in ql_status() 97 pi = path->pscontext; in ql_status() 115 static int ql_add_path(struct path_selector *ps, struct dm_path *path, in ql_add_path() argument 151 pi->path = path; in ql_add_path() 155 path->pscontext = pi; in ql_add_path() 164 static void ql_fail_path(struct path_selector *ps, struct dm_path *path) in ql_fail_path() argument 167 struct path_info *pi = path->pscontext; in ql_fail_path() 175 static int ql_reinstate_path(struct path_selector *ps, struct dm_path *path) in ql_reinstate_path() argument [all …]
|
| D | dm-ps-service-time.c | 33 struct dm_path *path; member 83 static int st_status(struct path_selector *ps, struct dm_path *path, in st_status() argument 89 if (!path) in st_status() 92 pi = path->pscontext; in st_status() 112 static int st_add_path(struct path_selector *ps, struct dm_path *path, in st_add_path() argument 162 pi->path = path; in st_add_path() 167 path->pscontext = pi; in st_add_path() 176 static void st_fail_path(struct path_selector *ps, struct dm_path *path) in st_fail_path() argument 179 struct path_info *pi = path->pscontext; in st_fail_path() 187 static int st_reinstate_path(struct path_selector *ps, struct dm_path *path) in st_reinstate_path() argument [all …]
|
| /drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
| D | phy.c | 900 u8 band, u8 path, in _rtl8821ae_phy_set_txpower_by_rate_base() argument 907 if (path > RF90_PATH_D) { in _rtl8821ae_phy_set_txpower_by_rate_base() 909 "Invalid Rf Path %d in phy_SetTxPowerByRatBase()\n", path); in _rtl8821ae_phy_set_txpower_by_rate_base() 916 rtlphy->txpwr_by_rate_base_24g[path][txnum][0] = value; in _rtl8821ae_phy_set_txpower_by_rate_base() 919 rtlphy->txpwr_by_rate_base_24g[path][txnum][1] = value; in _rtl8821ae_phy_set_txpower_by_rate_base() 922 rtlphy->txpwr_by_rate_base_24g[path][txnum][2] = value; in _rtl8821ae_phy_set_txpower_by_rate_base() 925 rtlphy->txpwr_by_rate_base_24g[path][txnum][3] = value; in _rtl8821ae_phy_set_txpower_by_rate_base() 928 rtlphy->txpwr_by_rate_base_24g[path][txnum][4] = value; in _rtl8821ae_phy_set_txpower_by_rate_base() 931 rtlphy->txpwr_by_rate_base_24g[path][txnum][5] = value; in _rtl8821ae_phy_set_txpower_by_rate_base() 936 rate_section, path, txnum); in _rtl8821ae_phy_set_txpower_by_rate_base() [all …]
|
| /drivers/tty/hvc/ |
| D | hvc_iucv.c | 69 struct iucv_path *path; /* IUCV path pointer */ member 249 rc = __iucv_message_receive(priv->path, &rb->msg, 0, in hvc_iucv_write() 414 rc = __iucv_message_send(priv->path, &sb->msg, 0, 0, in hvc_iucv_send() 589 struct iucv_path *path; in hvc_iucv_hangup() local 591 path = NULL; in hvc_iucv_hangup() 594 path = priv->path; in hvc_iucv_hangup() 595 priv->path = NULL; in hvc_iucv_hangup() 610 if (path) { in hvc_iucv_hangup() 611 iucv_path_sever(path, NULL); in hvc_iucv_hangup() 612 iucv_path_free(path); in hvc_iucv_hangup() [all …]
|