Home
last modified time | relevance | path

Searched refs:tpc (Results 1 – 25 of 38) sorted by relevance

12

/drivers/gpu/drm/nouveau/nvkm/engine/gr/
Dctxgf100.c1063 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 …]
Dctxgm204.c925 int gpc, tpc, id; in gm204_grctx_generate_tpcid() local
927 for (tpc = 0, id = 0; tpc < 4; tpc++) { in gm204_grctx_generate_tpcid()
929 if (tpc < gr->tpc_nr[gpc]) { in gm204_grctx_generate_tpcid()
930 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x698), id); in gm204_grctx_generate_tpcid()
931 nvkm_wr32(device, GPC_UNIT(gpc, 0x0c10 + tpc * 4), id); in gm204_grctx_generate_tpcid()
932 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x088), id); in gm204_grctx_generate_tpcid()
956 int tpc, gpc, i; in gm204_grctx_generate_405b60() local
968 tpc = gr->tpc_nr[gpc] - tpcnr[gpc]--; in gm204_grctx_generate_405b60()
970 dist[i / 4] |= ((gpc << 4) | tpc) << ((i % 4) * 8); in gm204_grctx_generate_405b60()
971 gpcs[gpc] |= i << (tpc * 8); in gm204_grctx_generate_405b60()
[all …]
Dgm204.c245 int gpc, tpc, ppc, rop; in gm204_gr_init() local
273 tpc = gr->tpc_nr[gpc] - tpcnr[gpc]--; in gm204_gr_init()
275 data[i / 8] |= tpc << ((i % 8) * 4); in gm204_gr_init()
319 for (tpc = 0; tpc < gr->tpc_nr[gpc]; tpc++) { in gm204_gr_init()
320 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x508), 0xffffffff); in gm204_gr_init()
321 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x50c), 0xffffffff); in gm204_gr_init()
322 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x224), 0xc0000000); in gm204_gr_init()
323 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x48c), 0xc0000000); in gm204_gr_init()
324 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x084), 0xc0000000); in gm204_gr_init()
325 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x430), 0xc0000000); in gm204_gr_init()
[all …]
Dgk104.c187 int gpc, tpc, rop; in gk104_gr_init() local
209 tpc = gr->tpc_nr[gpc] - tpcnr[gpc]--; in gk104_gr_init()
211 data[i / 8] |= tpc << ((i % 8) * 4); in gk104_gr_init()
255 for (tpc = 0; tpc < gr->tpc_nr[gpc]; tpc++) { in gk104_gr_init()
256 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x508), 0xffffffff); in gk104_gr_init()
257 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x50c), 0xffffffff); in gk104_gr_init()
258 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x224), 0xc0000000); in gk104_gr_init()
259 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x48c), 0xc0000000); in gk104_gr_init()
260 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x084), 0xc0000000); in gk104_gr_init()
261 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x644), 0x001ffffe); in gk104_gr_init()
[all …]
Dgm107.c317 int gpc, tpc, ppc, rop; in gm107_gr_init() local
338 tpc = gr->tpc_nr[gpc] - tpcnr[gpc]--; in gm107_gr_init()
340 data[i / 8] |= tpc << ((i % 8) * 4); in gm107_gr_init()
383 for (tpc = 0; tpc < gr->tpc_nr[gpc]; tpc++) { in gm107_gr_init()
384 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x508), 0xffffffff); in gm107_gr_init()
385 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x50c), 0xffffffff); in gm107_gr_init()
386 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x224), 0xc0000000); in gm107_gr_init()
387 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x48c), 0xc0000000); in gm107_gr_init()
388 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x084), 0xc0000000); in gm107_gr_init()
389 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x430), 0xc0000000); in gm107_gr_init()
[all …]
Dctxgk104.c893 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()
966 gf100_gr_mmio(gr, grctx->tpc); in gk104_grctx_generate_main()
1004 .tpc = gk104_grctx_pack_tpc,
Dctxgm107.c938 int gpc, tpc, id; in gm107_grctx_generate_tpcid() local
940 for (tpc = 0, id = 0; tpc < 4; tpc++) { in gm107_grctx_generate_tpcid()
942 if (tpc < gr->tpc_nr[gpc]) { in gm107_grctx_generate_tpcid()
943 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x698), id); in gm107_grctx_generate_tpcid()
944 nvkm_wr32(device, GPC_UNIT(gpc, 0x0c10 + tpc * 4), id); in gm107_grctx_generate_tpcid()
945 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x088), id); in gm107_grctx_generate_tpcid()
965 gf100_gr_mmio(gr, grctx->tpc); in gm107_grctx_generate_main()
1006 .tpc = gm107_grctx_pack_tpc,
Dctxgf108.c745 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,
Dgf100.c916 gf100_gr_trap_mp(struct gf100_gr *gr, int gpc, int tpc) in gf100_gr_trap_mp() argument
920 u32 werr = nvkm_rd32(device, TPC_UNIT(gpc, tpc, 0x648)); in gf100_gr_trap_mp()
921 u32 gerr = nvkm_rd32(device, TPC_UNIT(gpc, tpc, 0x650)); in gf100_gr_trap_mp()
930 gpc, tpc, gerr, glob, werr, warp ? warp->name : ""); in gf100_gr_trap_mp()
932 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x648), 0x00000000); in gf100_gr_trap_mp()
933 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x650), gerr); in gf100_gr_trap_mp()
937 gf100_gr_trap_tpc(struct gf100_gr *gr, int gpc, int tpc) in gf100_gr_trap_tpc() argument
941 u32 stat = nvkm_rd32(device, TPC_UNIT(gpc, tpc, 0x0508)); in gf100_gr_trap_tpc()
944 u32 trap = nvkm_rd32(device, TPC_UNIT(gpc, tpc, 0x0224)); in gf100_gr_trap_tpc()
945 nvkm_error(subdev, "GPC%d/TPC%d/TEX: %08x\n", gpc, tpc, trap); in gf100_gr_trap_tpc()
[all …]
Dgk20a.c189 int gpc, tpc; in gk20a_gr_init() local
222 tpc = gr->tpc_nr[gpc] - tpcnr[gpc]--; in gk20a_gr_init()
224 data[i / 8] |= tpc << ((i % 8) * 4); in gk20a_gr_init()
Dctxgf117.c233 gf100_gr_mmio(gr, grctx->tpc); in gf117_grctx_generate_main()
265 .tpc = gf117_grctx_pack_tpc,
Dctxgf104.c89 .tpc = gf104_grctx_pack_tpc,
Dctxgk110b.c79 .tpc = gk110b_grctx_pack_tpc,
Dctxgm206.c59 .tpc = gm204_grctx_pack_tpc,
Dctxgf110.c340 .tpc = gf100_grctx_pack_tpc,
Dctxgk208.c540 .tpc = gk208_grctx_pack_tpc,
Dctxgf119.c508 .tpc = gf119_grctx_pack_tpc,
Dctxgk110.c818 .tpc = gk110_grctx_pack_tpc,
/drivers/memstick/host/
Drtsx_pci_ms.c141 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 …]
Drtsx_usb_ms.c243 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 …]
Dr592.c50 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()
419 bool is_write = dev->req->tpc >= MS_TPC_SET_RW_REG_ADRS; in r592_transfer_fifo_pio()
468 is_write = dev->req->tpc >= MS_TPC_SET_RW_REG_ADRS; in r592_execute_tpc()
486 memstick_debug_get_tpc_name(dev->req->tpc), len); in r592_execute_tpc()
511 (dev->req->tpc << R592_TPC_EXEC_TPC_SHIFT) | in r592_execute_tpc()
/drivers/memstick/core/
Dmemstick.c269 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/iwlegacy/
D3945.c1384 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/
Dtx.c708 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()
/drivers/staging/rts5208/
Dms.c52 u8 tpc, u8 cnt, u8 cfg) in ms_transfer_tpc() argument
58 dev_dbg(rtsx_dev(chip), "%s: tpc = 0x%x\n", __func__, tpc); in ms_transfer_tpc()
62 rtsx_add_cmd(chip, WRITE_REG_CMD, MS_TPC, 0xFF, tpc); in ms_transfer_tpc()
85 if (!(tpc & 0x08)) { /* Read Packet */ in ms_transfer_tpc()
112 u8 tpc, u16 sec_cnt, u8 cfg, bool mode_2k, in ms_transfer_data() argument
137 rtsx_add_cmd(chip, WRITE_REG_CMD, MS_TPC, 0xFF, tpc); in ms_transfer_data()
186 u8 tpc, u8 cnt, u8 cfg, u8 *data, int data_len) in ms_write_bytes() argument
205 rtsx_add_cmd(chip, WRITE_REG_CMD, MS_TPC, 0xFF, tpc); in ms_write_bytes()
225 if (!(tpc & 0x08)) { in ms_write_bytes()
256 u8 tpc, u8 cnt, u8 cfg, u8 *data, int data_len) in ms_read_bytes() argument
[all …]

12