Lines Matching refs:tcmd
122 mrsas_alloc_tmp_dcmd(struct mrsas_softc *sc, struct mrsas_tmp_dcmd *tcmd,
4586 struct mrsas_tmp_dcmd *tcmd;
4596 tcmd = malloc(sizeof(struct mrsas_tmp_dcmd), M_MRSAS, M_NOWAIT);
4598 if (mrsas_alloc_tmp_dcmd(sc, tcmd, pd_list_size) != SUCCESS) {
4602 mrsas_free_tmp_dcmd(tcmd);
4603 free(tcmd, M_MRSAS);
4606 pd_list_mem = tcmd->tmp_dcmd_mem;
4607 pd_list_phys_addr = tcmd->tmp_dcmd_phys_addr;
4664 mrsas_free_tmp_dcmd(tcmd);
4665 free(tcmd, M_MRSAS);
4693 struct mrsas_tmp_dcmd *tcmd;
4703 tcmd = malloc(sizeof(struct mrsas_tmp_dcmd), M_MRSAS, M_NOWAIT);
4705 if (mrsas_alloc_tmp_dcmd(sc, tcmd, ld_list_size) != SUCCESS) {
4709 mrsas_free_tmp_dcmd(tcmd);
4710 free(tcmd, M_MRSAS);
4713 ld_list_mem = tcmd->tmp_dcmd_mem;
4714 ld_list_phys_addr = tcmd->tmp_dcmd_phys_addr;
4767 mrsas_free_tmp_dcmd(tcmd);
4768 free(tcmd, M_MRSAS);
4788 struct mrsas_tmp_dcmd *tcmd, int size)
4800 &tcmd->tmp_dcmd_tag)) {
4804 if (bus_dmamem_alloc(tcmd->tmp_dcmd_tag, (void **)&tcmd->tmp_dcmd_mem,
4805 BUS_DMA_NOWAIT, &tcmd->tmp_dcmd_dmamap)) {
4809 if (bus_dmamap_load(tcmd->tmp_dcmd_tag, tcmd->tmp_dcmd_dmamap,
4810 tcmd->tmp_dcmd_mem, size, mrsas_addr_cb,
4811 &tcmd->tmp_dcmd_phys_addr, BUS_DMA_NOWAIT)) {
4815 memset(tcmd->tmp_dcmd_mem, 0, size);