Home
last modified time | relevance | path

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

12

/drivers/gpu/drm/nouveau/nvkm/engine/gr/
Dgv100.c28 gv100_gr_trap_sm(struct gf100_gr *gr, int gpc, int tpc, int sm) in gv100_gr_trap_sm() argument
32 u32 werr = nvkm_rd32(device, TPC_UNIT(gpc, tpc, 0x730 + (sm * 0x80))); in gv100_gr_trap_sm()
33 u32 gerr = nvkm_rd32(device, TPC_UNIT(gpc, tpc, 0x734 + (sm * 0x80))); in gv100_gr_trap_sm()
42 gpc, tpc, sm, gerr, glob, werr, warp ? warp->name : ""); in gv100_gr_trap_sm()
44 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x730 + sm * 0x80), 0x00000000); in gv100_gr_trap_sm()
45 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x734 + sm * 0x80), gerr); in gv100_gr_trap_sm()
49 gv100_gr_trap_mp(struct gf100_gr *gr, int gpc, int tpc) in gv100_gr_trap_mp() argument
51 gv100_gr_trap_sm(gr, gpc, tpc, 0); in gv100_gr_trap_mp()
52 gv100_gr_trap_sm(gr, gpc, tpc, 1); in gv100_gr_trap_mp()
63 gv100_gr_init_shader_exceptions(struct gf100_gr *gr, int gpc, int tpc) in gv100_gr_init_shader_exceptions() argument
[all …]
Dgf100.c1235 gf100_gr_trap_mp(struct gf100_gr *gr, int gpc, int tpc) in gf100_gr_trap_mp() argument
1239 u32 werr = nvkm_rd32(device, TPC_UNIT(gpc, tpc, 0x648)); in gf100_gr_trap_mp()
1240 u32 gerr = nvkm_rd32(device, TPC_UNIT(gpc, tpc, 0x650)); in gf100_gr_trap_mp()
1249 gpc, tpc, gerr, glob, werr, warp ? warp->name : ""); in gf100_gr_trap_mp()
1251 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x648), 0x00000000); in gf100_gr_trap_mp()
1252 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x650), gerr); in gf100_gr_trap_mp()
1256 gf100_gr_trap_tpc(struct gf100_gr *gr, int gpc, int tpc) in gf100_gr_trap_tpc() argument
1260 u32 stat = nvkm_rd32(device, TPC_UNIT(gpc, tpc, 0x0508)); in gf100_gr_trap_tpc()
1263 u32 trap = nvkm_rd32(device, TPC_UNIT(gpc, tpc, 0x0224)); in gf100_gr_trap_tpc()
1264 nvkm_error(subdev, "GPC%d/TPC%d/TEX: %08x\n", gpc, tpc, trap); in gf100_gr_trap_tpc()
[all …]
Dctxgf108.c749 int gpc, tpc; in gf108_grctx_generate_attrib() local
757 for (tpc = 0; tpc < gr->tpc_nr[gpc]; tpc++) { in gf108_grctx_generate_attrib()
761 const u32 o = TPC_UNIT(gpc, tpc, 0x500); in gf108_grctx_generate_attrib()
791 .tpc = gf108_grctx_pack_tpc,
Dctxgf100.c1072 int gpc, tpc; in gf100_grctx_generate_attrib() local
1080 for (tpc = 0; tpc < gr->tpc_nr[gpc]; tpc++) { in gf100_grctx_generate_attrib()
1081 const u32 o = TPC_UNIT(gpc, tpc, 0x0520); in gf100_grctx_generate_attrib()
1315 gf100_grctx_generate_sm_id(struct gf100_gr *gr, int gpc, int tpc, int sm) in gf100_grctx_generate_sm_id() argument
1318 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x698), sm); in gf100_grctx_generate_sm_id()
1319 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x4e8), sm); in gf100_grctx_generate_sm_id()
1320 nvkm_wr32(device, GPC_UNIT(gpc, 0x0c10 + tpc * 4), sm); in gf100_grctx_generate_sm_id()
1321 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x088), sm); in gf100_grctx_generate_sm_id()
1331 func->sm_id(gr, gr->sm[sm].gpc, gr->sm[sm].tpc, sm); in gf100_grctx_generate_floorsweep()
1377 gf100_gr_mmio(gr, grctx->tpc); in gf100_grctx_generate_main()
[all …]
Dctxgp100.c105 const u8 tpc = gr->sm[sm].tpc; in gp100_grctx_generate_smid_config() local
106 dist[sm / 4] |= ((gpc << 4) | tpc) << ((sm % 4) * 8); in gp100_grctx_generate_smid_config()
107 gpcs[gpc + (gr->func->gpc_nr * (tpc / 4))] |= sm << ((tpc % 4) * 8); in gp100_grctx_generate_smid_config()
Dctxgm200.c56 const u8 tpc = gr->sm[sm].tpc; in gm200_grctx_generate_smid_config() local
57 dist[sm / 4] |= ((gpc << 4) | tpc) << ((sm % 4) * 8); in gm200_grctx_generate_smid_config()
58 gpcs[gpc] |= sm << (tpc * 8); in gm200_grctx_generate_smid_config()
Dctxtu102.c34 tu102_grctx_generate_sm_id(struct gf100_gr *gr, int gpc, int tpc, int sm) in tu102_grctx_generate_sm_id() argument
37 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x608), sm); in tu102_grctx_generate_sm_id()
38 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x088), sm); in tu102_grctx_generate_sm_id()
Dgm107.c294 gm107_gr_init_shader_exceptions(struct gf100_gr *gr, int gpc, int tpc) in gm107_gr_init_shader_exceptions() argument
297 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x644), 0x00dffffe); in gm107_gr_init_shader_exceptions()
298 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x64c), 0x00000005); in gm107_gr_init_shader_exceptions()
302 gm107_gr_init_504430(struct gf100_gr *gr, int gpc, int tpc) in gm107_gr_init_504430() argument
305 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x430), 0xc0000000); in gm107_gr_init_504430()
Dctxgm107.c955 gm107_grctx_generate_sm_id(struct gf100_gr *gr, int gpc, int tpc, int sm) in gm107_grctx_generate_sm_id() argument
958 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x698), sm); in gm107_grctx_generate_sm_id()
959 nvkm_wr32(device, GPC_UNIT(gpc, 0x0c10 + tpc * 4), sm); in gm107_grctx_generate_sm_id()
960 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x088), sm); in gm107_grctx_generate_sm_id()
971 .tpc = gm107_grctx_pack_tpc,
Dctxgv100.c157 gv100_grctx_generate_sm_id(struct gf100_gr *gr, int gpc, int tpc, int sm) in gv100_grctx_generate_sm_id() argument
160 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x608), sm); in gv100_grctx_generate_sm_id()
161 nvkm_wr32(device, GPC_UNIT(gpc, 0x0c10 + tpc * 4), sm); in gv100_grctx_generate_sm_id()
162 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x088), sm); in gv100_grctx_generate_sm_id()
Dgp100.c72 gp100_gr_init_shader_exceptions(struct gf100_gr *gr, int gpc, int tpc) in gp100_gr_init_shader_exceptions() argument
75 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x644), 0x00dffffe); in gp100_gr_init_shader_exceptions()
76 nvkm_wr32(device, TPC_UNIT(gpc, tpc, 0x64c), 0x00000105); in gp100_gr_init_shader_exceptions()
Dgf100.h129 u8 tpc; member
174 void (*init_tex_hww_esr)(struct gf100_gr *, int gpc, int tpc);
175 void (*init_504430)(struct gf100_gr *, int gpc, int tpc);
176 void (*init_shader_exceptions)(struct gf100_gr *, int gpc, int tpc);
179 void (*trap_mp)(struct gf100_gr *, int gpc, int tpc);
Dctxgf104.c90 .tpc = gf104_grctx_pack_tpc,
Dctxgk110b.c80 .tpc = gk110b_grctx_pack_tpc,
Dctxgf110.c338 .tpc = gf100_grctx_pack_tpc,
Dctxgf100.h34 const struct gf100_gr_pack *tpc; member
58 void (*sm_id)(struct gf100_gr *, int gpc, int tpc, int sm);
Dctxgf119.c506 .tpc = gf119_grctx_pack_tpc,
Dctxgk208.c546 .tpc = gk208_grctx_pack_tpc,
Dctxgk110.c840 .tpc = gk110_grctx_pack_tpc,
/drivers/memstick/host/
Drtsx_pci_ms.c129 u8 tpc, u8 cfg, struct scatterlist *sg) in ms_transfer_data() argument
140 __func__, tpc, (data_dir == READ) ? "READ" : "WRITE", in ms_transfer_data()
153 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, MS_TPC, 0xFF, tpc); in ms_transfer_data()
199 static int ms_write_bytes(struct realtek_pci_ms *host, u8 tpc, in ms_write_bytes() argument
205 dev_dbg(ms_dev(host), "%s: tpc = 0x%02x\n", __func__, tpc); in ms_write_bytes()
219 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, MS_TPC, 0xFF, tpc); in ms_write_bytes()
246 if (!(tpc & 0x08)) { in ms_write_bytes()
267 static int ms_read_bytes(struct realtek_pci_ms *host, u8 tpc, in ms_read_bytes() argument
274 dev_dbg(ms_dev(host), "%s: tpc = 0x%02x\n", __func__, tpc); in ms_read_bytes()
281 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, MS_TPC, 0xFF, tpc); in ms_read_bytes()
[all …]
Drtsx_usb_ms.c231 u8 tpc, u8 cfg, struct scatterlist *sg) in ms_transfer_data() argument
242 __func__, tpc, (data_dir == READ) ? "READ" : "WRITE", in ms_transfer_data()
265 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MS_TPC, 0xFF, tpc); in ms_transfer_data()
316 static int ms_write_bytes(struct rtsx_usb_ms *host, u8 tpc, in ms_write_bytes() argument
322 dev_dbg(ms_dev(host), "%s: tpc = 0x%02x\n", __func__, tpc); in ms_write_bytes()
334 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MS_TPC, 0xFF, tpc); in ms_write_bytes()
364 if (!(tpc & 0x08)) { in ms_write_bytes()
383 static int ms_read_bytes(struct rtsx_usb_ms *host, u8 tpc, in ms_read_bytes() argument
390 dev_dbg(ms_dev(host), "%s: tpc = 0x%02x\n", __func__, tpc); in ms_read_bytes()
394 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, MS_TPC, 0xFF, tpc); in ms_read_bytes()
[all …]
Dr592.c47 static __maybe_unused const char *memstick_debug_get_tpc_name(int tpc) in memstick_debug_get_tpc_name() argument
49 return tpc_names[tpc-1]; in memstick_debug_get_tpc_name()
413 bool is_write = dev->req->tpc >= MS_TPC_SET_RW_REG_ADRS; in r592_transfer_fifo_pio()
462 is_write = dev->req->tpc >= MS_TPC_SET_RW_REG_ADRS; in r592_execute_tpc()
480 memstick_debug_get_tpc_name(dev->req->tpc), len); in r592_execute_tpc()
505 (dev->req->tpc << R592_TPC_EXEC_TPC_SHIFT) | in r592_execute_tpc()
/drivers/memstick/core/
Dmemstick.c265 void memstick_init_req_sg(struct memstick_request *mrq, unsigned char tpc, in memstick_init_req_sg() argument
268 mrq->tpc = tpc; in memstick_init_req_sg()
269 if (tpc & 8) in memstick_init_req_sg()
277 if (tpc == MS_TPC_SET_CMD || tpc == MS_TPC_EX_SET_CMD) in memstick_init_req_sg()
295 void memstick_init_req(struct memstick_request *mrq, unsigned char tpc, in memstick_init_req() argument
298 mrq->tpc = tpc; in memstick_init_req()
299 if (tpc & 8) in memstick_init_req()
310 if (tpc == MS_TPC_SET_CMD || tpc == MS_TPC_EX_SET_CMD) in memstick_init_req()
/drivers/net/wireless/intel/iwlegacy/
D3945.c1369 scan_power_info->tpc.tx_gain = in il3945_hw_reg_set_scan_power()
1371 scan_power_info->tpc.dsp_atten = in il3945_hw_reg_set_scan_power()
1416 txpower.power[i].tpc = ch_info->power_info[i].tpc; in il3945_send_tx_power()
1421 txpower.power[i].tpc.tx_gain, in il3945_send_tx_power()
1422 txpower.power[i].tpc.dsp_atten, txpower.power[i].rate); in il3945_send_tx_power()
1427 txpower.power[i].tpc = ch_info->power_info[i].tpc; in il3945_send_tx_power()
1432 txpower.power[i].tpc.tx_gain, in il3945_send_tx_power()
1433 txpower.power[i].tpc.dsp_atten, txpower.power[i].rate); in il3945_send_tx_power()
1593 ch_info->power_info[rate_idx].tpc = in il3945_hw_reg_comp_txpower_temp()
2134 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()

12