Lines Matching defs:tcmd
118 mrsas_alloc_tmp_dcmd(struct mrsas_softc *sc, struct mrsas_tmp_dcmd *tcmd,
4126 struct mrsas_tmp_dcmd *tcmd;
4136 tcmd = malloc(sizeof(struct mrsas_tmp_dcmd), M_MRSAS, M_NOWAIT);
4138 if (mrsas_alloc_tmp_dcmd(sc, tcmd, pd_list_size) != SUCCESS) {
4142 mrsas_free_tmp_dcmd(tcmd);
4143 free(tcmd, M_MRSAS);
4146 pd_list_mem = tcmd->tmp_dcmd_mem;
4147 pd_list_phys_addr = tcmd->tmp_dcmd_phys_addr;
4194 mrsas_free_tmp_dcmd(tcmd);
4195 free(tcmd, M_MRSAS);
4223 struct mrsas_tmp_dcmd *tcmd;
4233 tcmd = malloc(sizeof(struct mrsas_tmp_dcmd), M_MRSAS, M_NOWAIT);
4235 if (mrsas_alloc_tmp_dcmd(sc, tcmd, ld_list_size) != SUCCESS) {
4239 mrsas_free_tmp_dcmd(tcmd);
4240 free(tcmd, M_MRSAS);
4243 ld_list_mem = tcmd->tmp_dcmd_mem;
4244 ld_list_phys_addr = tcmd->tmp_dcmd_phys_addr;
4287 mrsas_free_tmp_dcmd(tcmd);
4288 free(tcmd, M_MRSAS);
4308 struct mrsas_tmp_dcmd *tcmd, int size)
4320 &tcmd->tmp_dcmd_tag)) {
4324 if (bus_dmamem_alloc(tcmd->tmp_dcmd_tag, (void **)&tcmd->tmp_dcmd_mem,
4325 BUS_DMA_NOWAIT, &tcmd->tmp_dcmd_dmamap)) {
4329 if (bus_dmamap_load(tcmd->tmp_dcmd_tag, tcmd->tmp_dcmd_dmamap,
4330 tcmd->tmp_dcmd_mem, size, mrsas_addr_cb,
4331 &tcmd->tmp_dcmd_phys_addr, BUS_DMA_NOWAIT)) {
4335 memset(tcmd->tmp_dcmd_mem, 0, size);