Lines Matching refs:thread_id
43 static inline void cdns_nand_wait_thread_ready(uint8_t thread_id) in cdns_nand_wait_thread_ready() argument
50 reg &= (1U << (uint32_t)thread_id); in cdns_nand_wait_thread_ready()
54 static inline uint32_t cdns_nand_get_thread_status(uint8_t thread_id) in cdns_nand_get_thread_status() argument
59 mmio_write_32(CNF_CMDREG(CMD_STAT_PTR), (uint32_t)thread_id); in cdns_nand_get_thread_status()
68 static int cdns_nand_last_opr_status(uint8_t thread_id) in cdns_nand_last_opr_status() argument
77 if (thread_id > nthreads) { in cdns_nand_last_opr_status()
83 mmio_write_32(CNF_CMDREG(CMD_STAT_PTR), (uint32_t)thread_id); in cdns_nand_last_opr_status()
103 int cdns_nand_set_feature(uint8_t feat_addr, uint8_t feat_val, uint8_t thread_id) in cdns_nand_set_feature() argument
106 cdns_nand_wait_thread_ready(thread_id); in cdns_nand_set_feature()
116 reg |= (thread_id << CNF_CMDREG0_TRD); in cdns_nand_set_feature()
122 return cdns_nand_last_opr_status(thread_id); in cdns_nand_set_feature()
126 int cdns_nand_reset(uint8_t thread_id) in cdns_nand_reset() argument
129 cdns_nand_wait_thread_ready(thread_id); in cdns_nand_reset()
138 reg |= (thread_id << CNF_CMDREG0_TRD); in cdns_nand_reset()
144 return cdns_nand_last_opr_status(thread_id); in cdns_nand_reset()