/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
D | ctxgf100.c | 1063 int gpc, tpc; in gf100_grctx_generate_attrib() local 1071 for (tpc = 0; tpc < gr->tpc_nr[gpc]; tpc++) { in gf100_grctx_generate_attrib() 1072 const u32 o = TPC_UNIT(gpc, tpc, 0x0520); in gf100_grctx_generate_attrib() 1089 int gpc, tpc, id; in gf100_grctx_generate_tpcid() local 1091 for (tpc = 0, id = 0; tpc < 4; tpc++) { in gf100_grctx_generate_tpcid() 1093 if (tpc < gr->tpc_nr[gpc]) { in gf100_grctx_generate_tpcid() 1094 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x698), id); in gf100_grctx_generate_tpcid() 1095 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x4e8), id); in gf100_grctx_generate_tpcid() 1096 nvkm_wr32(device, GPC_UNIT(gpc, 0x0c10 + tpc * 4), id); in gf100_grctx_generate_tpcid() 1097 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x088), id); in gf100_grctx_generate_tpcid() [all …]
|
D | ctxgm200.c | 34 int gpc, tpc, id; in gm200_grctx_generate_tpcid() local 36 for (tpc = 0, id = 0; tpc < TPC_MAX_PER_GPC; tpc++) { in gm200_grctx_generate_tpcid() 38 if (tpc < gr->tpc_nr[gpc]) { in gm200_grctx_generate_tpcid() 39 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x698), id); in gm200_grctx_generate_tpcid() 40 nvkm_wr32(device, GPC_UNIT(gpc, 0x0c10 + tpc * 4), id); in gm200_grctx_generate_tpcid() 41 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x088), id); in gm200_grctx_generate_tpcid() 56 int tpc, gpc, i; in gm200_grctx_generate_405b60() local 68 tpc = gr->tpc_nr[gpc] - tpcnr[gpc]--; in gm200_grctx_generate_405b60() 70 dist[i / 4] |= ((gpc << 4) | tpc) << ((i % 4) * 8); in gm200_grctx_generate_405b60() 71 gpcs[gpc] |= i << (tpc * 8); in gm200_grctx_generate_405b60()
|
D | gp100.c | 59 int gpc, tpc, rop; in gp100_gr_init() local 74 tpc = gr->tpc_nr[gpc] - tpcnr[gpc]--; in gp100_gr_init() 76 data[i / 8] |= tpc << ((i % 8) * 4); in gp100_gr_init() 126 for (tpc = 0; tpc < gr->tpc_nr[gpc]; tpc++) { in gp100_gr_init() 127 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x508), 0xffffffff); in gp100_gr_init() 128 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x50c), 0xffffffff); in gp100_gr_init() 129 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x224), 0xc0000000); in gp100_gr_init() 130 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x48c), 0xc0000000); in gp100_gr_init() 131 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x084), 0xc0000000); in gp100_gr_init() 132 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x430), 0xc0000000); in gp100_gr_init() [all …]
|
D | gm200.c | 71 int gpc, tpc, rop; in gm200_gr_init() local 88 tpc = gr->tpc_nr[gpc] - tpcnr[gpc]--; in gm200_gr_init() 90 data[i / 8] |= tpc << ((i % 8) * 4); in gm200_gr_init() 136 for (tpc = 0; tpc < gr->tpc_nr[gpc]; tpc++) { in gm200_gr_init() 137 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x508), 0xffffffff); in gm200_gr_init() 138 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x50c), 0xffffffff); in gm200_gr_init() 139 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x224), 0xc0000000); in gm200_gr_init() 140 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x48c), 0xc0000000); in gm200_gr_init() 141 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x084), 0xc0000000); in gm200_gr_init() 142 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x430), 0xc0000000); in gm200_gr_init() [all …]
|
D | gm107.c | 319 int gpc, tpc, rop; in gm107_gr_init() local 340 tpc = gr->tpc_nr[gpc] - tpcnr[gpc]--; in gm107_gr_init() 342 data[i / 8] |= tpc << ((i % 8) * 4); in gm107_gr_init() 387 for (tpc = 0; tpc < gr->tpc_nr[gpc]; tpc++) { in gm107_gr_init() 388 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x508), 0xffffffff); in gm107_gr_init() 389 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x50c), 0xffffffff); in gm107_gr_init() 390 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x224), 0xc0000000); in gm107_gr_init() 391 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x48c), 0xc0000000); in gm107_gr_init() 392 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x084), 0xc0000000); in gm107_gr_init() 393 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x430), 0xc0000000); in gm107_gr_init() [all …]
|
D | gk104.c | 214 int gpc, tpc, rop; in gk104_gr_init() local 236 tpc = gr->tpc_nr[gpc] - tpcnr[gpc]--; in gk104_gr_init() 238 data[i / 8] |= tpc << ((i % 8) * 4); in gk104_gr_init() 285 for (tpc = 0; tpc < gr->tpc_nr[gpc]; tpc++) { in gk104_gr_init() 286 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x508), 0xffffffff); in gk104_gr_init() 287 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x50c), 0xffffffff); in gk104_gr_init() 288 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x224), 0xc0000000); in gk104_gr_init() 289 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x48c), 0xc0000000); in gk104_gr_init() 290 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x084), 0xc0000000); in gk104_gr_init() 291 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x644), 0x001ffffe); in gk104_gr_init() [all …]
|
D | ctxgk104.c | 893 int gpc, tpc, i; in gk104_grctx_generate_r418bb8() local 899 for (tpc = 0; tpc < gr->tpc_total; tpc++) { in gk104_grctx_generate_r418bb8() 905 data[tpc / 6] |= gpc << ((tpc % 6) * 5); in gk104_grctx_generate_r418bb8() 908 for (; tpc < 32; tpc++) in gk104_grctx_generate_r418bb8() 909 data[tpc / 6] |= 7 << ((tpc % 6) * 5); in gk104_grctx_generate_r418bb8() 958 gf100_gr_mmio(gr, grctx->tpc); in gk104_grctx_generate_main() 995 .tpc = gk104_grctx_pack_tpc,
|
D | ctxgm107.c | 940 int gpc, tpc, id; in gm107_grctx_generate_tpcid() local 942 for (tpc = 0, id = 0; tpc < 4; tpc++) { in gm107_grctx_generate_tpcid() 944 if (tpc < gr->tpc_nr[gpc]) { in gm107_grctx_generate_tpcid() 945 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x698), id); in gm107_grctx_generate_tpcid() 946 nvkm_wr32(device, GPC_UNIT(gpc, 0x0c10 + tpc * 4), id); in gm107_grctx_generate_tpcid() 947 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x088), id); in gm107_grctx_generate_tpcid() 968 gf100_gr_mmio(gr, grctx->tpc); in gm107_grctx_generate_main() 1007 .tpc = gm107_grctx_pack_tpc,
|
D | ctxgf108.c | 745 int gpc, tpc; in gf108_grctx_generate_attrib() local 753 for (tpc = 0; tpc < gr->tpc_nr[gpc]; tpc++) { in gf108_grctx_generate_attrib() 757 const u32 o = TPC_UNIT(gpc, tpc, 0x500); in gf108_grctx_generate_attrib() 786 .tpc = gf108_grctx_pack_tpc,
|
D | gf100.c | 1007 gf100_gr_trap_mp(struct gf100_gr *gr, int gpc, int tpc) in gf100_gr_trap_mp() argument 1011 u32 werr = nvkm_rd32(device, TPC_UNIT(gpc, tpc, 0x648)); in gf100_gr_trap_mp() 1012 u32 gerr = nvkm_rd32(device, TPC_UNIT(gpc, tpc, 0x650)); in gf100_gr_trap_mp() 1021 gpc, tpc, gerr, glob, werr, warp ? warp->name : ""); in gf100_gr_trap_mp() 1023 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x648), 0x00000000); in gf100_gr_trap_mp() 1024 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x650), gerr); in gf100_gr_trap_mp() 1028 gf100_gr_trap_tpc(struct gf100_gr *gr, int gpc, int tpc) in gf100_gr_trap_tpc() argument 1032 u32 stat = nvkm_rd32(device, TPC_UNIT(gpc, tpc, 0x0508)); in gf100_gr_trap_tpc() 1035 u32 trap = nvkm_rd32(device, TPC_UNIT(gpc, tpc, 0x0224)); in gf100_gr_trap_tpc() 1036 nvkm_error(subdev, "GPC%d/TPC%d/TEX: %08x\n", gpc, tpc, trap); in gf100_gr_trap_tpc() [all …]
|
D | ctxgp100.c | 102 int tpc, gpc, i; in gp100_grctx_generate_405b60() local 114 tpc = gr->tpc_nr[gpc] - tpcnr[gpc]--; in gp100_grctx_generate_405b60() 116 dist[i / 4] |= ((gpc << 4) | tpc) << ((i % 4) * 8); in gp100_grctx_generate_405b60() 117 gpcs[gpc + (gr->gpc_nr * (tpc / 4))] |= i << (tpc * 8); in gp100_grctx_generate_405b60()
|
D | gk20a.c | 226 int gpc, tpc; in gk20a_gr_init() local 256 tpc = gr->tpc_nr[gpc] - tpcnr[gpc]--; in gk20a_gr_init() 258 data[i / 8] |= tpc << ((i % 8) * 4); in gk20a_gr_init()
|
D | ctxgf117.c | 234 gf100_gr_mmio(gr, grctx->tpc); in gf117_grctx_generate_main() 266 .tpc = gf117_grctx_pack_tpc,
|
D | ctxgk110b.c | 79 .tpc = gk110b_grctx_pack_tpc,
|
D | ctxgf104.c | 89 .tpc = gf104_grctx_pack_tpc,
|
D | ctxgf110.c | 340 .tpc = gf100_grctx_pack_tpc,
|
D | ctxgk208.c | 540 .tpc = gk208_grctx_pack_tpc,
|
D | ctxgf119.c | 508 .tpc = gf119_grctx_pack_tpc,
|
D | ctxgk110.c | 818 .tpc = gk110_grctx_pack_tpc,
|
/drivers/memstick/host/ |
D | rtsx_pci_ms.c | 141 u8 tpc, u8 cfg, struct scatterlist *sg) in ms_transfer_data() argument 152 __func__, tpc, (data_dir == READ) ? "READ" : "WRITE", in ms_transfer_data() 165 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, MS_TPC, 0xFF, tpc); in ms_transfer_data() 211 static int ms_write_bytes(struct realtek_pci_ms *host, u8 tpc, in ms_write_bytes() argument 217 dev_dbg(ms_dev(host), "%s: tpc = 0x%02x\n", __func__, tpc); in ms_write_bytes() 231 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, MS_TPC, 0xFF, tpc); in ms_write_bytes() 258 if (!(tpc & 0x08)) { in ms_write_bytes() 279 static int ms_read_bytes(struct realtek_pci_ms *host, u8 tpc, in ms_read_bytes() argument 286 dev_dbg(ms_dev(host), "%s: tpc = 0x%02x\n", __func__, tpc); in ms_read_bytes() 293 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, MS_TPC, 0xFF, tpc); in ms_read_bytes() [all …]
|
D | rtsx_usb_ms.c | 243 u8 tpc, u8 cfg, struct scatterlist *sg) in ms_transfer_data() argument 254 __func__, tpc, (data_dir == READ) ? "READ" : "WRITE", in ms_transfer_data() 277 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MS_TPC, 0xFF, tpc); in ms_transfer_data() 328 static int ms_write_bytes(struct rtsx_usb_ms *host, u8 tpc, in ms_write_bytes() argument 334 dev_dbg(ms_dev(host), "%s: tpc = 0x%02x\n", __func__, tpc); in ms_write_bytes() 346 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MS_TPC, 0xFF, tpc); in ms_write_bytes() 376 if (!(tpc & 0x08)) { in ms_write_bytes() 395 static int ms_read_bytes(struct rtsx_usb_ms *host, u8 tpc, in ms_read_bytes() argument 402 dev_dbg(ms_dev(host), "%s: tpc = 0x%02x\n", __func__, tpc); in ms_read_bytes() 406 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MS_TPC, 0xFF, tpc); in ms_read_bytes() [all …]
|
D | r592.c | 50 const char *memstick_debug_get_tpc_name(int tpc) in memstick_debug_get_tpc_name() argument 52 return tpc_names[tpc-1]; in memstick_debug_get_tpc_name() 418 bool is_write = dev->req->tpc >= MS_TPC_SET_RW_REG_ADRS; in r592_transfer_fifo_pio() 467 is_write = dev->req->tpc >= MS_TPC_SET_RW_REG_ADRS; in r592_execute_tpc() 485 memstick_debug_get_tpc_name(dev->req->tpc), len); in r592_execute_tpc() 510 (dev->req->tpc << R592_TPC_EXEC_TPC_SHIFT) | in r592_execute_tpc()
|
/drivers/memstick/core/ |
D | memstick.c | 269 void memstick_init_req_sg(struct memstick_request *mrq, unsigned char tpc, in memstick_init_req_sg() argument 272 mrq->tpc = tpc; in memstick_init_req_sg() 273 if (tpc & 8) in memstick_init_req_sg() 281 if (tpc == MS_TPC_SET_CMD || tpc == MS_TPC_EX_SET_CMD) in memstick_init_req_sg() 299 void memstick_init_req(struct memstick_request *mrq, unsigned char tpc, in memstick_init_req() argument 302 mrq->tpc = tpc; in memstick_init_req() 303 if (tpc & 8) in memstick_init_req() 314 if (tpc == MS_TPC_SET_CMD || tpc == MS_TPC_EX_SET_CMD) in memstick_init_req()
|
/drivers/net/wireless/intel/iwlegacy/ |
D | 3945.c | 1384 scan_power_info->tpc.tx_gain = in il3945_hw_reg_set_scan_power() 1386 scan_power_info->tpc.dsp_atten = in il3945_hw_reg_set_scan_power() 1431 txpower.power[i].tpc = ch_info->power_info[i].tpc; in il3945_send_tx_power() 1436 txpower.power[i].tpc.tx_gain, in il3945_send_tx_power() 1437 txpower.power[i].tpc.dsp_atten, txpower.power[i].rate); in il3945_send_tx_power() 1442 txpower.power[i].tpc = ch_info->power_info[i].tpc; in il3945_send_tx_power() 1447 txpower.power[i].tpc.tx_gain, in il3945_send_tx_power() 1448 txpower.power[i].tpc.dsp_atten, txpower.power[i].rate); in il3945_send_tx_power() 1608 ch_info->power_info[rate_idx].tpc = in il3945_hw_reg_comp_txpower_temp() 2151 pwr_info->tpc.tx_gain = in il3945_txpower_set_from_eeprom() [all …]
|
/drivers/net/wireless/ath/carl9170/ |
D | tx.c | 708 unsigned int *phyrate, unsigned int *tpc, unsigned int *chains) in carl9170_tx_rate_tpc_chains() argument 715 *tpc = 0; in carl9170_tx_rate_tpc_chains() 721 *tpc += 2; in carl9170_tx_rate_tpc_chains() 735 *tpc += txpower[idx & 7]; in carl9170_tx_rate_tpc_chains() 748 *tpc += txpower[(rate->hw_value & 0x30) >> 4]; in carl9170_tx_rate_tpc_chains() 762 *tpc = min_t(unsigned int, *tpc, ar->hw->conf.power_level * 2); in carl9170_tx_rate_tpc_chains()
|