trans 458 arch/arm/mm/alignment.c goto trans; trans 468 arch/arm/mm/alignment.c trans: trans 165 arch/powerpc/platforms/powermac/feature.c int htw, trans; trans 181 arch/powerpc/platforms/powermac/feature.c trans = (pmac_mb.model_id != PMAC_TYPE_YOSEMITE && trans 199 arch/powerpc/platforms/powermac/feature.c if (trans) trans 236 arch/powerpc/platforms/powermac/feature.c if (htw && trans) trans 253 arch/unicore32/mm/alignment.c goto trans; trans 261 arch/unicore32/mm/alignment.c trans: trans 63 drivers/firmware/pcdp.c if (if_pci.trans & PCDP_PCI_TRANS_IOPORT) trans 66 drivers/firmware/pcdp.c if (if_pci.trans & PCDP_PCI_TRANS_MMIO) trans 76 drivers/firmware/pcdp.h u8 trans; trans 1991 drivers/gpu/drm/amd/display/modules/color/color_gamma.c bool mod_color_calculate_curve(enum dc_transfer_func_predefined trans, trans 1999 drivers/gpu/drm/amd/display/modules/color/color_gamma.c if (trans == TRANSFER_FUNCTION_UNITY || trans 2000 drivers/gpu/drm/amd/display/modules/color/color_gamma.c trans == TRANSFER_FUNCTION_LINEAR) { trans 2012 drivers/gpu/drm/amd/display/modules/color/color_gamma.c } else if (trans == TRANSFER_FUNCTION_PQ) { trans 2036 drivers/gpu/drm/amd/display/modules/color/color_gamma.c } else if (trans == TRANSFER_FUNCTION_SRGB || trans 2037 drivers/gpu/drm/amd/display/modules/color/color_gamma.c trans == TRANSFER_FUNCTION_BT709 || trans 2038 drivers/gpu/drm/amd/display/modules/color/color_gamma.c trans == TRANSFER_FUNCTION_GAMMA22 || trans 2039 drivers/gpu/drm/amd/display/modules/color/color_gamma.c trans == TRANSFER_FUNCTION_GAMMA24 || trans 2040 drivers/gpu/drm/amd/display/modules/color/color_gamma.c trans == TRANSFER_FUNCTION_GAMMA26) { trans 2054 drivers/gpu/drm/amd/display/modules/color/color_gamma.c trans); trans 2063 drivers/gpu/drm/amd/display/modules/color/color_gamma.c } else if (trans == TRANSFER_FUNCTION_HLG) { trans 2091 drivers/gpu/drm/amd/display/modules/color/color_gamma.c bool mod_color_calculate_degamma_curve(enum dc_transfer_func_predefined trans, trans 2098 drivers/gpu/drm/amd/display/modules/color/color_gamma.c if (trans == TRANSFER_FUNCTION_UNITY || trans 2099 drivers/gpu/drm/amd/display/modules/color/color_gamma.c trans == TRANSFER_FUNCTION_LINEAR) { trans 2107 drivers/gpu/drm/amd/display/modules/color/color_gamma.c } else if (trans == TRANSFER_FUNCTION_PQ) { trans 2126 drivers/gpu/drm/amd/display/modules/color/color_gamma.c } else if (trans == TRANSFER_FUNCTION_SRGB || trans 2127 drivers/gpu/drm/amd/display/modules/color/color_gamma.c trans == TRANSFER_FUNCTION_BT709 || trans 2128 drivers/gpu/drm/amd/display/modules/color/color_gamma.c trans == TRANSFER_FUNCTION_GAMMA22 || trans 2129 drivers/gpu/drm/amd/display/modules/color/color_gamma.c trans == TRANSFER_FUNCTION_GAMMA24 || trans 2130 drivers/gpu/drm/amd/display/modules/color/color_gamma.c trans == TRANSFER_FUNCTION_GAMMA26) { trans 2140 drivers/gpu/drm/amd/display/modules/color/color_gamma.c trans); trans 2149 drivers/gpu/drm/amd/display/modules/color/color_gamma.c } else if (trans == TRANSFER_FUNCTION_HLG) { trans 106 drivers/gpu/drm/amd/display/modules/color/color_gamma.h bool mod_color_calculate_curve(enum dc_transfer_func_predefined trans, trans 110 drivers/gpu/drm/amd/display/modules/color/color_gamma.h bool mod_color_calculate_degamma_curve(enum dc_transfer_func_predefined trans, trans 4190 drivers/gpu/drm/i915/i915_reg.h #define HTOTAL(trans) _MMIO_TRANS2(trans, _HTOTAL_A) trans 4191 drivers/gpu/drm/i915/i915_reg.h #define HBLANK(trans) _MMIO_TRANS2(trans, _HBLANK_A) trans 4192 drivers/gpu/drm/i915/i915_reg.h #define HSYNC(trans) _MMIO_TRANS2(trans, _HSYNC_A) trans 4193 drivers/gpu/drm/i915/i915_reg.h #define VTOTAL(trans) _MMIO_TRANS2(trans, _VTOTAL_A) trans 4194 drivers/gpu/drm/i915/i915_reg.h #define VBLANK(trans) _MMIO_TRANS2(trans, _VBLANK_A) trans 4195 drivers/gpu/drm/i915/i915_reg.h #define VSYNC(trans) _MMIO_TRANS2(trans, _VSYNC_A) trans 4196 drivers/gpu/drm/i915/i915_reg.h #define BCLRPAT(trans) _MMIO_TRANS2(trans, _BCLRPAT_A) trans 4197 drivers/gpu/drm/i915/i915_reg.h #define VSYNCSHIFT(trans) _MMIO_TRANS2(trans, _VSYNCSHIFT_A) trans 4198 drivers/gpu/drm/i915/i915_reg.h #define PIPESRC(trans) _MMIO_TRANS2(trans, _PIPEASRC) trans 4199 drivers/gpu/drm/i915/i915_reg.h #define PIPE_MULT(trans) _MMIO_TRANS2(trans, _PIPE_MULT_A) trans 4309 drivers/gpu/drm/i915/i915_reg.h #define PSR_EVENT(trans) _MMIO_TRANS2(trans, _PSR_EVENT_TRANS_A) trans 8238 drivers/gpu/drm/i915/i915_reg.h #define HSW_TVIDEO_DIP_CTL(trans) _MMIO_TRANS2(trans, _HSW_VIDEO_DIP_CTL_A) trans 8239 drivers/gpu/drm/i915/i915_reg.h #define HSW_TVIDEO_DIP_GCP(trans) _MMIO_TRANS2(trans, _HSW_VIDEO_DIP_GCP_A) trans 8240 drivers/gpu/drm/i915/i915_reg.h #define HSW_TVIDEO_DIP_AVI_DATA(trans, i) _MMIO_TRANS2(trans, _HSW_VIDEO_DIP_AVI_DATA_A + (i) * 4) trans 8241 drivers/gpu/drm/i915/i915_reg.h #define HSW_TVIDEO_DIP_VS_DATA(trans, i) _MMIO_TRANS2(trans, _HSW_VIDEO_DIP_VS_DATA_A + (i) * 4) trans 8242 drivers/gpu/drm/i915/i915_reg.h #define HSW_TVIDEO_DIP_SPD_DATA(trans, i) _MMIO_TRANS2(trans, _HSW_VIDEO_DIP_SPD_DATA_A + (i) * 4) trans 8243 drivers/gpu/drm/i915/i915_reg.h #define HSW_TVIDEO_DIP_GMP_DATA(trans, i) _MMIO_TRANS2(trans, _HSW_VIDEO_DIP_GMP_DATA_A + (i) * 4) trans 8244 drivers/gpu/drm/i915/i915_reg.h #define HSW_TVIDEO_DIP_VSC_DATA(trans, i) _MMIO_TRANS2(trans, _HSW_VIDEO_DIP_VSC_DATA_A + (i) * 4) trans 8245 drivers/gpu/drm/i915/i915_reg.h #define GLK_TVIDEO_DIP_DRM_DATA(trans, i) _MMIO_TRANS2(trans, _GLK_VIDEO_DIP_DRM_DATA_A + (i) * 4) trans 8246 drivers/gpu/drm/i915/i915_reg.h #define ICL_VIDEO_DIP_PPS_DATA(trans, i) _MMIO_TRANS2(trans, _ICL_VIDEO_DIP_PPS_DATA_A + (i) * 4) trans 8247 drivers/gpu/drm/i915/i915_reg.h #define ICL_VIDEO_DIP_PPS_ECC(trans, i) _MMIO_TRANS2(trans, _ICL_VIDEO_DIP_PPS_ECC_A + (i) * 4) trans 8253 drivers/gpu/drm/i915/i915_reg.h #define HSW_STEREO_3D_CTL(trans) _MMIO_PIPE2(trans, _HSW_STEREO_3D_CTL_A) trans 9076 drivers/gpu/drm/i915/i915_reg.h #define HSW_AUD_CFG(trans) _MMIO_TRANS(trans, _HSW_AUD_CONFIG_A, _HSW_AUD_CONFIG_B) trans 9080 drivers/gpu/drm/i915/i915_reg.h #define HSW_AUD_MISC_CTRL(trans) _MMIO_TRANS(trans, _HSW_AUD_MISC_CTRL_A, _HSW_AUD_MISC_CTRL_B) trans 9084 drivers/gpu/drm/i915/i915_reg.h #define HSW_AUD_M_CTS_ENABLE(trans) _MMIO_TRANS(trans, _HSW_AUD_M_CTS_ENABLE_A, _HSW_AUD_M_CTS_ENABLE_B) trans 9091 drivers/gpu/drm/i915/i915_reg.h #define HSW_AUD_DIP_ELD_CTRL(trans) _MMIO_TRANS(trans, _HSW_AUD_DIP_ELD_CTRL_ST_A, _HSW_AUD_DIP_ELD_CTRL_ST_B) trans 9096 drivers/gpu/drm/i915/i915_reg.h #define AUD_DIG_CNVT(trans) _MMIO_TRANS(trans, _HSW_AUD_DIG_CNVT_1, _HSW_AUD_DIG_CNVT_2) trans 9101 drivers/gpu/drm/i915/i915_reg.h #define HSW_AUD_EDID_DATA(trans) _MMIO_TRANS(trans, _HSW_AUD_EDID_DATA_A, _HSW_AUD_EDID_DATA_B) trans 9105 drivers/gpu/drm/i915/i915_reg.h #define AUDIO_INACTIVE(trans) ((1 << 3) << ((trans) * 4)) trans 9106 drivers/gpu/drm/i915/i915_reg.h #define AUDIO_OUTPUT_ENABLE(trans) ((1 << 2) << ((trans) * 4)) trans 9107 drivers/gpu/drm/i915/i915_reg.h #define AUDIO_CP_READY(trans) ((1 << 1) << ((trans) * 4)) trans 9108 drivers/gpu/drm/i915/i915_reg.h #define AUDIO_ELD_VALID(trans) ((1 << 0) << ((trans) * 4)) trans 168 drivers/hid/hid-apple.c const struct apple_key_translation *trans; trans 171 drivers/hid/hid-apple.c for (trans = table; trans->from; trans++) trans 172 drivers/hid/hid-apple.c if (trans->from == from) trans 173 drivers/hid/hid-apple.c return trans; trans 182 drivers/hid/hid-apple.c const struct apple_key_translation *trans, *table; trans 201 drivers/hid/hid-apple.c trans = apple_find_translation (table, usage->code); trans 203 drivers/hid/hid-apple.c if (trans) { trans 204 drivers/hid/hid-apple.c if (test_bit(trans->from, input->key)) trans 205 drivers/hid/hid-apple.c code = trans->from; trans 206 drivers/hid/hid-apple.c else if (test_bit(trans->to, input->key)) trans 207 drivers/hid/hid-apple.c code = trans->to; trans 210 drivers/hid/hid-apple.c if (trans->flags & APPLE_FLAG_FKEY) { trans 226 drivers/hid/hid-apple.c code = do_translate ? trans->to : trans->from; trans 236 drivers/hid/hid-apple.c trans = apple_find_translation(powerbook_numlock_keys, trans 239 drivers/hid/hid-apple.c if (trans) { trans 247 drivers/hid/hid-apple.c input_event(input, usage->type, trans->to, trans 257 drivers/hid/hid-apple.c trans = apple_find_translation(apple_iso_keyboard, usage->code); trans 258 drivers/hid/hid-apple.c if (trans) { trans 259 drivers/hid/hid-apple.c input_event(input, usage->type, trans->to, value); trans 266 drivers/hid/hid-apple.c trans = apple_find_translation(swapped_option_cmd_keys, usage->code); trans 267 drivers/hid/hid-apple.c if (trans) { trans 268 drivers/hid/hid-apple.c input_event(input, usage->type, trans->to, value); trans 320 drivers/hid/hid-apple.c const struct apple_key_translation *trans; trans 325 drivers/hid/hid-apple.c for (trans = apple_fn_keys; trans->from; trans++) trans 326 drivers/hid/hid-apple.c set_bit(trans->to, input->keybit); trans 328 drivers/hid/hid-apple.c for (trans = powerbook_fn_keys; trans->from; trans++) trans 329 drivers/hid/hid-apple.c set_bit(trans->to, input->keybit); trans 331 drivers/hid/hid-apple.c for (trans = powerbook_numlock_keys; trans->from; trans++) trans 332 drivers/hid/hid-apple.c set_bit(trans->to, input->keybit); trans 334 drivers/hid/hid-apple.c for (trans = apple_iso_keyboard; trans->from; trans++) trans 335 drivers/hid/hid-apple.c set_bit(trans->to, input->keybit); trans 167 drivers/hid/hid-icade.c const struct icade_key *trans; trans 177 drivers/hid/hid-icade.c trans = icade_find_translation(usage->hid & HID_USAGE); trans 179 drivers/hid/hid-icade.c if (!trans) trans 183 drivers/hid/hid-icade.c trans->to, trans->press); trans 192 drivers/hid/hid-icade.c const struct icade_key *trans; trans 195 drivers/hid/hid-icade.c trans = icade_find_translation(usage->hid & HID_USAGE); trans 197 drivers/hid/hid-icade.c if (!trans) trans 200 drivers/hid/hid-icade.c hid_map_usage(hi, usage, bit, max, EV_KEY, trans->to); trans 201 drivers/hid/hid-icade.c set_bit(trans->to, hi->input->keybit); trans 7740 drivers/infiniband/hw/qib/qib_iba7322.c u64 trans, acc, prev_acc; trans 7750 drivers/infiniband/hw/qib/qib_iba7322.c trans = qib_read_kreg64(dd, KR_AHB_TRANS); trans 7751 drivers/infiniband/hw/qib/qib_iba7322.c if (trans & AHB_TRANS_RDY) trans 7765 drivers/infiniband/hw/qib/qib_iba7322.c trans = ((chan << 6) | addr) << (AHB_ADDR_LSB + 1); trans 7766 drivers/infiniband/hw/qib/qib_iba7322.c qib_write_kreg(dd, KR_AHB_TRANS, trans); trans 7769 drivers/infiniband/hw/qib/qib_iba7322.c trans = qib_read_kreg64(dd, KR_AHB_TRANS); trans 7770 drivers/infiniband/hw/qib/qib_iba7322.c if (trans & AHB_TRANS_RDY) trans 7779 drivers/infiniband/hw/qib/qib_iba7322.c trans = qib_read_kreg64(dd, KR_AHB_TRANS); trans 7780 drivers/infiniband/hw/qib/qib_iba7322.c rd_data = (uint32_t)(trans >> AHB_DATA_LSB); trans 7786 drivers/infiniband/hw/qib/qib_iba7322.c trans = ((chan << 6) | addr) << (AHB_ADDR_LSB + 1); trans 7787 drivers/infiniband/hw/qib/qib_iba7322.c trans |= ((uint64_t)wr_data << AHB_DATA_LSB); trans 7788 drivers/infiniband/hw/qib/qib_iba7322.c trans |= AHB_WR; trans 7789 drivers/infiniband/hw/qib/qib_iba7322.c qib_write_kreg(dd, KR_AHB_TRANS, trans); trans 7792 drivers/infiniband/hw/qib/qib_iba7322.c trans = qib_read_kreg64(dd, KR_AHB_TRANS); trans 7793 drivers/infiniband/hw/qib/qib_iba7322.c if (trans & AHB_TRANS_RDY) trans 659 drivers/infiniband/hw/qib/qib_sd7220.c u16 trans; trans 667 drivers/infiniband/hw/qib/qib_sd7220.c trans = kr_ibsd_epb_transaction_reg; trans 672 drivers/infiniband/hw/qib/qib_sd7220.c trans = kr_pciesd_epb_transaction_reg; trans 692 drivers/infiniband/hw/qib/qib_sd7220.c transval = qib_read_kreg32(dd, trans); trans 706 drivers/infiniband/hw/qib/qib_sd7220.c tries = epb_trans(dd, trans, transval, &transval); trans 714 drivers/infiniband/hw/qib/qib_sd7220.c tries = epb_trans(dd, trans, transval, &transval); trans 749 drivers/infiniband/hw/qib/qib_sd7220.c u16 trans; trans 763 drivers/infiniband/hw/qib/qib_sd7220.c trans = kr_ibsd_epb_transaction_reg; trans 770 drivers/infiniband/hw/qib/qib_sd7220.c trans = kr_pciesd_epb_transaction_reg; trans 794 drivers/infiniband/hw/qib/qib_sd7220.c transval = qib_read_kreg32(dd, trans); trans 811 drivers/infiniband/hw/qib/qib_sd7220.c tries = epb_trans(dd, trans, transval, &transval); trans 818 drivers/infiniband/hw/qib/qib_sd7220.c tries = epb_trans(dd, trans, transval, trans 824 drivers/infiniband/hw/qib/qib_sd7220.c tries = epb_trans(dd, trans, transval, trans 834 drivers/infiniband/hw/qib/qib_sd7220.c tries = epb_trans(dd, trans, transval, &transval); trans 843 drivers/infiniband/hw/qib/qib_sd7220.c tries = epb_trans(dd, trans, transval, &transval); trans 1053 drivers/input/keyboard/applespi.c const struct applespi_key_translation *trans; trans 1055 drivers/input/keyboard/applespi.c for (trans = table; trans->from; trans++) trans 1056 drivers/input/keyboard/applespi.c if (trans->from == key) trans 1057 drivers/input/keyboard/applespi.c return trans; trans 1064 drivers/input/keyboard/applespi.c const struct applespi_key_translation *trans; trans 1067 drivers/input/keyboard/applespi.c trans = applespi_find_translation(applespi_fn_codes, key); trans 1068 drivers/input/keyboard/applespi.c if (trans) { trans 1069 drivers/input/keyboard/applespi.c if (trans->flags & APPLE_FLAG_FKEY) trans 1076 drivers/input/keyboard/applespi.c key = trans->to; trans 1084 drivers/input/keyboard/applespi.c const struct applespi_key_translation *trans; trans 1086 drivers/input/keyboard/applespi.c trans = applespi_find_translation(apple_iso_keyboard, key); trans 1087 drivers/input/keyboard/applespi.c if (trans) trans 1088 drivers/input/keyboard/applespi.c key = trans->to; trans 55 drivers/input/serio/hp_sdc_mlc.c hp_sdc_transaction trans; trans 193 drivers/input/serio/hp_sdc_mlc.c if (priv->trans.act.semaphore != &mlc->csem) trans 203 drivers/input/serio/hp_sdc_mlc.c priv->trans.act.semaphore = &mlc->csem; trans 204 drivers/input/serio/hp_sdc_mlc.c priv->trans.actidx = 0; trans 205 drivers/input/serio/hp_sdc_mlc.c priv->trans.idx = 1; trans 206 drivers/input/serio/hp_sdc_mlc.c priv->trans.endidx = 5; trans 213 drivers/input/serio/hp_sdc_mlc.c __hp_sdc_enqueue_transaction(&priv->trans); trans 217 drivers/input/serio/hp_sdc_mlc.c priv->trans.act.semaphore = &mlc->osem; trans 243 drivers/input/serio/hp_sdc_mlc.c priv->trans.actidx = 0; trans 244 drivers/input/serio/hp_sdc_mlc.c priv->trans.idx = 1; trans 245 drivers/input/serio/hp_sdc_mlc.c priv->trans.act.semaphore = &mlc->osem; trans 246 drivers/input/serio/hp_sdc_mlc.c priv->trans.endidx = 6; trans 284 drivers/input/serio/hp_sdc_mlc.c priv->trans.actidx = 0; trans 285 drivers/input/serio/hp_sdc_mlc.c priv->trans.idx = 1; trans 286 drivers/input/serio/hp_sdc_mlc.c priv->trans.act.semaphore = &mlc->osem; trans 287 drivers/input/serio/hp_sdc_mlc.c priv->trans.endidx = 4; trans 299 drivers/input/serio/hp_sdc_mlc.c hp_sdc_enqueue_transaction(&priv->trans); trans 315 drivers/input/serio/hp_sdc_mlc.c hp_sdc_mlc_priv.trans.seq = hp_sdc_mlc_priv.tseq; trans 316 drivers/input/serio/hp_sdc_mlc.c hp_sdc_mlc_priv.trans.act.semaphore = &mlc->osem; trans 655 drivers/media/common/saa7146/saa7146_hlp.c saa7146_set_output_format(dev, vv->ov_fmt->trans); trans 1013 drivers/media/common/saa7146/saa7146_hlp.c saa7146_set_output_format(dev, sfmt->trans); trans 1023 drivers/media/common/saa7146/saa7146_hlp.c if( 0 != IS_PLANAR(sfmt->trans)) { trans 24 drivers/media/common/saa7146/saa7146_video.c .trans = RGB08_COMPOSED, trans 29 drivers/media/common/saa7146/saa7146_video.c .trans = RGB16_COMPOSED, trans 34 drivers/media/common/saa7146/saa7146_video.c .trans = RGB24_COMPOSED, trans 39 drivers/media/common/saa7146/saa7146_video.c .trans = RGB32_COMPOSED, trans 44 drivers/media/common/saa7146/saa7146_video.c .trans = RGB32_COMPOSED, trans 50 drivers/media/common/saa7146/saa7146_video.c .trans = Y8, trans 55 drivers/media/common/saa7146/saa7146_video.c .trans = YUV422_DECOMPOSED, trans 60 drivers/media/common/saa7146/saa7146_video.c .trans = YUV420_DECOMPOSED, trans 65 drivers/media/common/saa7146/saa7146_video.c .trans = YUV420_DECOMPOSED, trans 70 drivers/media/common/saa7146/saa7146_video.c .trans = YUV422_COMPOSED, trans 206 drivers/media/common/saa7146/saa7146_video.c if( 0 != IS_PLANAR(sfmt->trans)) { trans 1093 drivers/media/common/saa7146/saa7146_video.c if( 0 != IS_PLANAR(sfmt->trans)) { trans 536 drivers/mmc/host/au1xmmc.c int i, trans; trans 576 drivers/mmc/host/au1xmmc.c trans = host->flags & (HOST_F_XMIT | HOST_F_RECV); trans 578 drivers/mmc/host/au1xmmc.c if (!trans || cmd->error) { trans 1726 drivers/mtd/nand/raw/brcmnand/brcmnand.c u64 addr, unsigned int trans, u32 *buf, trans 1735 drivers/mtd/nand/raw/brcmnand/brcmnand.c for (i = 0; i < trans; i++, addr += FC_BYTES) { trans 1752 drivers/mtd/nand/raw/brcmnand/brcmnand.c mtd->oobsize / trans, trans 1823 drivers/mtd/nand/raw/brcmnand/brcmnand.c u64 addr, unsigned int trans, u32 *buf, u8 *oob) trans 1837 drivers/mtd/nand/raw/brcmnand/brcmnand.c err = brcmnand_dma_trans(host, addr, buf, trans * FC_BYTES, trans 1849 drivers/mtd/nand/raw/brcmnand/brcmnand.c err = brcmnand_read_by_pio(mtd, chip, addr, trans, buf, trans 1959 drivers/mtd/nand/raw/brcmnand/brcmnand.c unsigned int i, j, trans = mtd->writesize >> FC_SHIFT; trans 1981 drivers/mtd/nand/raw/brcmnand/brcmnand.c for (i = 0; i < trans; i++, addr += FC_BYTES) { trans 1999 drivers/mtd/nand/raw/brcmnand/brcmnand.c mtd->oobsize / trans, trans 242 drivers/mtd/sm_ftl.c struct mtd_info *mtd = ftl->trans->mtd; trans 325 drivers/mtd/sm_ftl.c struct mtd_info *mtd = ftl->trans->mtd; trans 463 drivers/mtd/sm_ftl.c struct mtd_info *mtd = ftl->trans->mtd; trans 1120 drivers/mtd/sm_ftl.c struct mtd_blktrans_dev *trans; trans 1161 drivers/mtd/sm_ftl.c trans = kzalloc(sizeof(struct mtd_blktrans_dev), GFP_KERNEL); trans 1162 drivers/mtd/sm_ftl.c if (!trans) trans 1165 drivers/mtd/sm_ftl.c ftl->trans = trans; trans 1166 drivers/mtd/sm_ftl.c trans->priv = ftl; trans 1168 drivers/mtd/sm_ftl.c trans->tr = tr; trans 1169 drivers/mtd/sm_ftl.c trans->mtd = mtd; trans 1170 drivers/mtd/sm_ftl.c trans->devnum = -1; trans 1171 drivers/mtd/sm_ftl.c trans->size = (ftl->block_size * ftl->max_lba * ftl->zone_count) >> 9; trans 1172 drivers/mtd/sm_ftl.c trans->readonly = ftl->readonly; trans 1182 drivers/mtd/sm_ftl.c trans->disk_attributes = ftl->disk_attributes; trans 1196 drivers/mtd/sm_ftl.c if (add_mtd_blktrans_dev(trans)) { trans 1202 drivers/mtd/sm_ftl.c kfree(trans); trans 1222 drivers/mtd/sm_ftl.c ftl->trans = NULL; trans 26 drivers/mtd/sm_ftl.h struct mtd_blktrans_dev *trans; trans 277 drivers/mtd/spi-nor/hisi-sfc.c size_t trans = min_t(size_t, HIFMC_DMA_MAX_LEN, len - offset); trans 280 drivers/mtd/spi-nor/hisi-sfc.c from + offset, host->dma_buffer, trans, FMC_OP_READ); trans 285 drivers/mtd/spi-nor/hisi-sfc.c memcpy(read_buf + offset, host->buffer, trans); trans 300 drivers/mtd/spi-nor/hisi-sfc.c size_t trans = min_t(size_t, HIFMC_DMA_MAX_LEN, len - offset); trans 302 drivers/mtd/spi-nor/hisi-sfc.c memcpy(host->buffer, write_buf + offset, trans); trans 304 drivers/mtd/spi-nor/hisi-sfc.c to + offset, host->dma_buffer, trans, FMC_OP_WRITE); trans 440 drivers/net/ethernet/mellanox/mlxsw/core.c static void mlxsw_emad_trans_timeout_schedule(struct mlxsw_reg_trans *trans) trans 444 drivers/net/ethernet/mellanox/mlxsw/core.c if (trans->core->fw_flash_in_progress) trans 447 drivers/net/ethernet/mellanox/mlxsw/core.c queue_delayed_work(trans->core->emad_wq, &trans->timeout_dw, timeout); trans 451 drivers/net/ethernet/mellanox/mlxsw/core.c struct mlxsw_reg_trans *trans) trans 456 drivers/net/ethernet/mellanox/mlxsw/core.c skb = skb_copy(trans->tx_skb, GFP_KERNEL); trans 464 drivers/net/ethernet/mellanox/mlxsw/core.c atomic_set(&trans->active, 1); trans 465 drivers/net/ethernet/mellanox/mlxsw/core.c err = mlxsw_core_skb_transmit(mlxsw_core, skb, &trans->tx_info); trans 470 drivers/net/ethernet/mellanox/mlxsw/core.c mlxsw_emad_trans_timeout_schedule(trans); trans 474 drivers/net/ethernet/mellanox/mlxsw/core.c static void mlxsw_emad_trans_finish(struct mlxsw_reg_trans *trans, int err) trans 476 drivers/net/ethernet/mellanox/mlxsw/core.c struct mlxsw_core *mlxsw_core = trans->core; trans 478 drivers/net/ethernet/mellanox/mlxsw/core.c dev_kfree_skb(trans->tx_skb); trans 480 drivers/net/ethernet/mellanox/mlxsw/core.c list_del_rcu(&trans->list); trans 482 drivers/net/ethernet/mellanox/mlxsw/core.c trans->err = err; trans 483 drivers/net/ethernet/mellanox/mlxsw/core.c complete(&trans->completion); trans 487 drivers/net/ethernet/mellanox/mlxsw/core.c struct mlxsw_reg_trans *trans) trans 491 drivers/net/ethernet/mellanox/mlxsw/core.c if (trans->retries < MLXSW_EMAD_MAX_RETRY) { trans 492 drivers/net/ethernet/mellanox/mlxsw/core.c trans->retries++; trans 493 drivers/net/ethernet/mellanox/mlxsw/core.c err = mlxsw_emad_transmit(trans->core, trans); trans 499 drivers/net/ethernet/mellanox/mlxsw/core.c mlxsw_emad_trans_finish(trans, err); trans 504 drivers/net/ethernet/mellanox/mlxsw/core.c struct mlxsw_reg_trans *trans = container_of(work, trans 508 drivers/net/ethernet/mellanox/mlxsw/core.c if (!atomic_dec_and_test(&trans->active)) trans 511 drivers/net/ethernet/mellanox/mlxsw/core.c mlxsw_emad_transmit_retry(trans->core, trans); trans 515 drivers/net/ethernet/mellanox/mlxsw/core.c struct mlxsw_reg_trans *trans, trans 520 drivers/net/ethernet/mellanox/mlxsw/core.c if (!atomic_dec_and_test(&trans->active)) trans 523 drivers/net/ethernet/mellanox/mlxsw/core.c err = mlxsw_emad_process_status_skb(skb, &trans->emad_status); trans 525 drivers/net/ethernet/mellanox/mlxsw/core.c mlxsw_emad_transmit_retry(mlxsw_core, trans); trans 530 drivers/net/ethernet/mellanox/mlxsw/core.c if (trans->cb) trans 531 drivers/net/ethernet/mellanox/mlxsw/core.c trans->cb(mlxsw_core, trans 533 drivers/net/ethernet/mellanox/mlxsw/core.c trans->reg->len, trans->cb_priv); trans 535 drivers/net/ethernet/mellanox/mlxsw/core.c mlxsw_emad_trans_finish(trans, err); trans 544 drivers/net/ethernet/mellanox/mlxsw/core.c struct mlxsw_reg_trans *trans; trans 552 drivers/net/ethernet/mellanox/mlxsw/core.c list_for_each_entry_rcu(trans, &mlxsw_core->emad.trans_list, list) { trans 553 drivers/net/ethernet/mellanox/mlxsw/core.c if (mlxsw_emad_get_tid(skb) == trans->tid) { trans 554 drivers/net/ethernet/mellanox/mlxsw/core.c mlxsw_emad_process_response(mlxsw_core, trans, skb); trans 648 drivers/net/ethernet/mellanox/mlxsw/core.c struct mlxsw_reg_trans *trans, trans 664 drivers/net/ethernet/mellanox/mlxsw/core.c list_add_tail(&trans->bulk_list, bulk_list); trans 665 drivers/net/ethernet/mellanox/mlxsw/core.c trans->core = mlxsw_core; trans 666 drivers/net/ethernet/mellanox/mlxsw/core.c trans->tx_skb = skb; trans 667 drivers/net/ethernet/mellanox/mlxsw/core.c trans->tx_info.local_port = MLXSW_PORT_CPU_PORT; trans 668 drivers/net/ethernet/mellanox/mlxsw/core.c trans->tx_info.is_emad = true; trans 669 drivers/net/ethernet/mellanox/mlxsw/core.c INIT_DELAYED_WORK(&trans->timeout_dw, mlxsw_emad_trans_timeout_work); trans 670 drivers/net/ethernet/mellanox/mlxsw/core.c trans->tid = tid; trans 671 drivers/net/ethernet/mellanox/mlxsw/core.c init_completion(&trans->completion); trans 672 drivers/net/ethernet/mellanox/mlxsw/core.c trans->cb = cb; trans 673 drivers/net/ethernet/mellanox/mlxsw/core.c trans->cb_priv = cb_priv; trans 674 drivers/net/ethernet/mellanox/mlxsw/core.c trans->reg = reg; trans 675 drivers/net/ethernet/mellanox/mlxsw/core.c trans->type = type; trans 677 drivers/net/ethernet/mellanox/mlxsw/core.c mlxsw_emad_construct(skb, reg, payload, type, trans->tid); trans 678 drivers/net/ethernet/mellanox/mlxsw/core.c mlxsw_core->driver->txhdr_construct(skb, &trans->tx_info); trans 681 drivers/net/ethernet/mellanox/mlxsw/core.c list_add_tail_rcu(&trans->list, &mlxsw_core->emad.trans_list); trans 683 drivers/net/ethernet/mellanox/mlxsw/core.c err = mlxsw_emad_transmit(mlxsw_core, trans); trans 690 drivers/net/ethernet/mellanox/mlxsw/core.c list_del_rcu(&trans->list); trans 692 drivers/net/ethernet/mellanox/mlxsw/core.c list_del(&trans->bulk_list); trans 693 drivers/net/ethernet/mellanox/mlxsw/core.c dev_kfree_skb(trans->tx_skb); trans 1569 drivers/net/ethernet/mellanox/mlxsw/core.c struct mlxsw_reg_trans *trans; trans 1572 drivers/net/ethernet/mellanox/mlxsw/core.c trans = kzalloc(sizeof(*trans), GFP_KERNEL); trans 1573 drivers/net/ethernet/mellanox/mlxsw/core.c if (!trans) trans 1576 drivers/net/ethernet/mellanox/mlxsw/core.c err = mlxsw_emad_reg_access(mlxsw_core, reg, payload, type, trans, trans 1579 drivers/net/ethernet/mellanox/mlxsw/core.c kfree(trans); trans 1607 drivers/net/ethernet/mellanox/mlxsw/core.c static int mlxsw_reg_trans_wait(struct mlxsw_reg_trans *trans) trans 1609 drivers/net/ethernet/mellanox/mlxsw/core.c struct mlxsw_core *mlxsw_core = trans->core; trans 1612 drivers/net/ethernet/mellanox/mlxsw/core.c wait_for_completion(&trans->completion); trans 1613 drivers/net/ethernet/mellanox/mlxsw/core.c cancel_delayed_work_sync(&trans->timeout_dw); trans 1614 drivers/net/ethernet/mellanox/mlxsw/core.c err = trans->err; trans 1616 drivers/net/ethernet/mellanox/mlxsw/core.c if (trans->retries) trans 1618 drivers/net/ethernet/mellanox/mlxsw/core.c trans->retries, MLXSW_EMAD_MAX_RETRY, trans->tid); trans 1621 drivers/net/ethernet/mellanox/mlxsw/core.c trans->tid, trans->reg->id, trans 1622 drivers/net/ethernet/mellanox/mlxsw/core.c mlxsw_reg_id_str(trans->reg->id), trans 1623 drivers/net/ethernet/mellanox/mlxsw/core.c mlxsw_core_reg_access_type_str(trans->type), trans 1624 drivers/net/ethernet/mellanox/mlxsw/core.c trans->emad_status, trans 1625 drivers/net/ethernet/mellanox/mlxsw/core.c mlxsw_emad_op_tlv_status_str(trans->emad_status)); trans 1627 drivers/net/ethernet/mellanox/mlxsw/core.c trans->emad_status, trans 1628 drivers/net/ethernet/mellanox/mlxsw/core.c mlxsw_emad_op_tlv_status_str(trans->emad_status)); trans 1631 drivers/net/ethernet/mellanox/mlxsw/core.c list_del(&trans->bulk_list); trans 1632 drivers/net/ethernet/mellanox/mlxsw/core.c kfree_rcu(trans, rcu); trans 1638 drivers/net/ethernet/mellanox/mlxsw/core.c struct mlxsw_reg_trans *trans; trans 1643 drivers/net/ethernet/mellanox/mlxsw/core.c list_for_each_entry_safe(trans, tmp, bulk_list, bulk_list) { trans 1644 drivers/net/ethernet/mellanox/mlxsw/core.c err = mlxsw_reg_trans_wait(trans); trans 453 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c struct switchdev_trans *trans, trans 461 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c if (switchdev_trans_ph_prepare(trans)) trans 585 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c struct switchdev_trans *trans, trans 595 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c struct switchdev_trans *trans, trans 602 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c if (switchdev_trans_ph_prepare(trans)) trans 650 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c struct switchdev_trans *trans, trans 657 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c if (switchdev_trans_ph_prepare(trans)) { trans 669 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c struct switchdev_trans *trans, trans 676 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c if (!switchdev_trans_ph_prepare(trans)) trans 691 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c struct switchdev_trans *trans, trans 698 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c if (switchdev_trans_ph_prepare(trans)) trans 732 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c struct switchdev_trans *trans, trans 741 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c if (switchdev_trans_ph_prepare(trans)) trans 803 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c struct switchdev_trans *trans, trans 810 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c if (switchdev_trans_ph_prepare(trans)) trans 829 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c struct switchdev_trans *trans) trans 836 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c err = mlxsw_sp_port_attr_stp_state_set(mlxsw_sp_port, trans, trans 842 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c trans, trans 846 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c err = mlxsw_sp_port_attr_br_flags_set(mlxsw_sp_port, trans, trans 851 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c err = mlxsw_sp_port_attr_br_ageing_set(mlxsw_sp_port, trans, trans 855 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c err = mlxsw_sp_port_attr_br_vlan_set(mlxsw_sp_port, trans, trans 860 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c err = mlxsw_sp_port_attr_mrouter_set(mlxsw_sp_port, trans, trans 865 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c err = mlxsw_sp_port_mc_disabled_set(mlxsw_sp_port, trans, trans 870 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c err = mlxsw_sp_port_attr_br_mrouter_set(mlxsw_sp_port, trans, trans 879 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c if (switchdev_trans_ph_commit(trans)) trans 1140 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c struct switchdev_trans *trans, trans 1155 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c switchdev_trans_ph_prepare(trans)) trans 1163 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c if (switchdev_trans_ph_commit(trans)) trans 1621 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c struct switchdev_trans *trans) trans 1633 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c if (switchdev_trans_ph_commit(trans)) trans 1747 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c struct switchdev_trans *trans, trans 1757 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c err = mlxsw_sp_port_vlans_add(mlxsw_sp_port, vlan, trans, trans 1760 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c if (switchdev_trans_ph_prepare(trans)) { trans 1772 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c trans); trans 3326 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c struct switchdev_trans *trans = port_obj_info->trans; trans 3344 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c if (switchdev_trans_ph_commit(trans)) trans 1207 drivers/net/ethernet/mscc/ocelot.c struct switchdev_trans *trans, trans 1214 drivers/net/ethernet/mscc/ocelot.c if (switchdev_trans_ph_prepare(trans)) trans 1306 drivers/net/ethernet/mscc/ocelot.c struct switchdev_trans *trans) trans 1313 drivers/net/ethernet/mscc/ocelot.c ocelot_port_attr_stp_state_set(ocelot_port, trans, trans 1336 drivers/net/ethernet/mscc/ocelot.c struct switchdev_trans *trans) trans 1384 drivers/net/ethernet/mscc/ocelot.c struct switchdev_trans *trans) trans 1462 drivers/net/ethernet/mscc/ocelot.c struct switchdev_trans *trans, trans 1471 drivers/net/ethernet/mscc/ocelot.c trans); trans 1475 drivers/net/ethernet/mscc/ocelot.c trans); trans 270 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov.h struct qlcnic_bc_trans *trans, trans 240 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c struct qlcnic_bc_trans *trans; trans 247 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans = list_first_entry(&t_list->wait_list, trans 249 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c list_del(&trans->list); trans 251 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c cmd.req.arg = (u32 *)trans->req_pay; trans 252 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c cmd.rsp.arg = (u32 *)trans->rsp_pay; trans 254 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c qlcnic_sriov_cleanup_transaction(trans); trans 696 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c static inline int qlcnic_sriov_alloc_bc_trans(struct qlcnic_bc_trans **trans) trans 698 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c *trans = kzalloc(sizeof(struct qlcnic_bc_trans), GFP_ATOMIC); trans 699 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c if (!*trans) trans 702 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c init_completion(&(*trans)->resp_cmpl); trans 749 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c static int qlcnic_sriov_prepare_bc_hdr(struct qlcnic_bc_trans *trans, trans 761 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->req_pay = (struct qlcnic_bc_payload *)cmd->req.arg; trans 762 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->rsp_pay = (struct qlcnic_bc_payload *)cmd->rsp.arg; trans 764 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->req_pay_size = (num_regs * 4); trans 766 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->rsp_pay_size = (num_regs * 4); trans 768 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c remainder = (trans->req_pay_size) % (bc_pay_sz); trans 769 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c num_frags = (trans->req_pay_size) / (bc_pay_sz); trans 773 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c if (qlcnic_sriov_alloc_bc_msg(&trans->req_hdr, num_frags)) trans 775 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c remainder = (trans->rsp_pay_size) % (bc_pay_sz); trans 776 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c num_frags = (trans->rsp_pay_size) / (bc_pay_sz); trans 779 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c if (qlcnic_sriov_alloc_bc_msg(&trans->rsp_hdr, num_frags)) trans 782 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c hdr = trans->req_hdr; trans 784 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c cmd->req.arg = (u32 *)trans->req_pay; trans 785 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c cmd->rsp.arg = (u32 *)trans->rsp_pay; trans 788 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c remainder = (trans->rsp_pay_size) % (bc_pay_sz); trans 789 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c num_frags = (trans->rsp_pay_size) / (bc_pay_sz); trans 792 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c cmd->req.num = trans->req_pay_size / 4; trans 793 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c cmd->rsp.num = trans->rsp_pay_size / 4; trans 794 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c hdr = trans->rsp_hdr; trans 795 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c cmd->op_type = trans->req_hdr->op_type; trans 798 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->trans_id = seq; trans 799 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->cmd_id = cmd_op; trans 813 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c static void qlcnic_sriov_cleanup_transaction(struct qlcnic_bc_trans *trans) trans 815 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c if (!trans) trans 817 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c kfree(trans->req_hdr); trans 818 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c kfree(trans->rsp_hdr); trans 819 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c kfree(trans); trans 823 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c struct qlcnic_bc_trans *trans, u8 type) trans 833 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c list_del(&trans->list); trans 858 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c static inline void qlcnic_sriov_wait_for_resp(struct qlcnic_bc_trans *trans) trans 860 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c struct completion *cmpl = &trans->resp_cmpl; trans 863 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->trans_state = QLC_END; trans 865 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->trans_state = QLC_ABORT; trans 870 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c static void qlcnic_sriov_handle_multi_frags(struct qlcnic_bc_trans *trans, trans 874 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->curr_rsp_frag++; trans 875 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c if (trans->curr_rsp_frag < trans->rsp_hdr->num_frags) trans 876 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->trans_state = QLC_INIT; trans 878 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->trans_state = QLC_END; trans 880 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->curr_req_frag++; trans 881 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c if (trans->curr_req_frag < trans->req_hdr->num_frags) trans 882 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->trans_state = QLC_INIT; trans 884 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->trans_state = QLC_WAIT_FOR_RESP; trans 888 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c static void qlcnic_sriov_wait_for_channel_free(struct qlcnic_bc_trans *trans, trans 891 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c struct qlcnic_vf_info *vf = trans->vf; trans 895 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->trans_state = QLC_ABORT; trans 900 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c qlcnic_sriov_handle_multi_frags(trans, type); trans 934 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c static int qlcnic_sriov_issue_bc_post(struct qlcnic_bc_trans *trans, u8 type) trans 936 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c struct qlcnic_vf_info *vf = trans->vf; trans 940 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c u8 pci_func = trans->func_id; trans 946 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c hdr = (u32 *)(trans->req_hdr + trans->curr_req_frag); trans 947 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c pay = (u32 *)(trans->req_pay + trans->curr_req_frag); trans 948 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c pay_size = qlcnic_sriov_get_bc_paysize(trans->req_pay_size, trans 949 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->curr_req_frag); trans 952 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c hdr = (u32 *)(trans->rsp_hdr + trans->curr_rsp_frag); trans 953 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c pay = (u32 *)(trans->rsp_pay + trans->curr_rsp_frag); trans 954 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c pay_size = qlcnic_sriov_get_bc_paysize(trans->rsp_pay_size, trans 955 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->curr_rsp_frag); trans 964 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c static int __qlcnic_sriov_send_bc_msg(struct qlcnic_bc_trans *trans, trans 973 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->trans_state = QLC_ABORT; trans 975 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c switch (trans->trans_state) { trans 977 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->trans_state = QLC_WAIT_FOR_CHANNEL_FREE; trans 978 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c if (qlcnic_sriov_issue_bc_post(trans, type)) trans 979 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->trans_state = QLC_ABORT; trans 982 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c qlcnic_sriov_wait_for_channel_free(trans, type); trans 985 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c qlcnic_sriov_wait_for_resp(trans); trans 1005 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c struct qlcnic_bc_trans *trans, int pci_func) trans 1014 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->vf = vf; trans 1015 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->func_id = pci_func; trans 1021 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->cmd_id != QLCNIC_BC_CMD_CHANNEL_INIT) trans 1026 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c vf->send_cmd = trans; trans 1027 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c err = __qlcnic_sriov_send_bc_msg(trans, vf, QLC_BC_COMMAND); trans 1028 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c qlcnic_sriov_clear_trans(vf, trans, QLC_BC_COMMAND); trans 1034 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c struct qlcnic_bc_trans *trans, trans 1039 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c qlcnic_sriov_pf_process_bc_cmd(adapter, trans, cmd); trans 1051 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c struct qlcnic_bc_trans *trans = NULL; trans 1063 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans = list_first_entry(&vf->rcv_act.wait_list, trans 1067 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c if (qlcnic_sriov_prepare_bc_hdr(trans, &cmd, trans->req_hdr->seq_id, trans 1071 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c __qlcnic_sriov_process_bc_cmd(adapter, trans, &cmd); trans 1072 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->trans_state = QLC_INIT; trans 1073 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c __qlcnic_sriov_send_bc_msg(trans, vf, QLC_BC_RESPONSE); trans 1077 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c req = qlcnic_sriov_clear_trans(vf, trans, QLC_BC_RESPONSE); trans 1078 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c qlcnic_sriov_cleanup_transaction(trans); trans 1087 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c struct qlcnic_bc_trans *trans; trans 1093 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans = vf->send_cmd; trans 1095 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c if (trans == NULL) trans 1098 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c if (trans->trans_id != hdr->seq_id) trans 1101 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c pay_size = qlcnic_sriov_get_bc_paysize(trans->rsp_pay_size, trans 1102 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->curr_rsp_frag); trans 1104 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c (u32 *)(trans->rsp_hdr + trans->curr_rsp_frag), trans 1105 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c (u32 *)(trans->rsp_pay + trans->curr_rsp_frag), trans 1107 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c if (++trans->curr_rsp_frag < trans->rsp_hdr->num_frags) trans 1110 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c complete(&trans->resp_cmpl); trans 1118 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c struct qlcnic_bc_trans *trans) trans 1123 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c list_add_tail(&trans->list, &t_list->wait_list); trans 1132 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c struct qlcnic_bc_trans *trans) trans 1138 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c __qlcnic_sriov_add_act_list(sriov, vf, trans); trans 1148 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c struct qlcnic_bc_trans *trans = NULL; trans 1156 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans = list_entry(node, struct qlcnic_bc_trans, list); trans 1157 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c if (trans->trans_id == hdr->seq_id) { trans 1165 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c curr_frag = trans->curr_req_frag; trans 1166 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c pay_size = qlcnic_sriov_get_bc_paysize(trans->req_pay_size, trans 1169 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c (u32 *)(trans->req_hdr + curr_frag), trans 1170 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c (u32 *)(trans->req_pay + curr_frag), trans 1172 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->curr_req_frag++; trans 1173 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c if (trans->curr_req_frag >= hdr->num_frags) { trans 1175 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c list_del(&trans->list); trans 1182 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c if (qlcnic_sriov_add_act_list(sriov, vf, trans)) trans 1183 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c qlcnic_sriov_cleanup_transaction(trans); trans 1192 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c struct qlcnic_bc_trans *trans; trans 1214 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c if (qlcnic_sriov_alloc_bc_trans(&trans)) trans 1223 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c qlcnic_sriov_cleanup_transaction(trans); trans 1228 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c if (qlcnic_sriov_prepare_bc_hdr(trans, &cmd, hdr->seq_id, trans 1231 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c qlcnic_sriov_cleanup_transaction(trans); trans 1235 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c pay_size = qlcnic_sriov_get_bc_paysize(trans->req_pay_size, trans 1236 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->curr_req_frag); trans 1238 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c (u32 *)(trans->req_hdr + trans->curr_req_frag), trans 1239 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c (u32 *)(trans->req_pay + trans->curr_req_frag), trans 1241 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->func_id = vf->pci_func; trans 1242 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->vf = vf; trans 1243 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->trans_id = hdr->seq_id; trans 1244 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->curr_req_frag++; trans 1246 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c if (qlcnic_sriov_soft_flr_check(adapter, trans, vf)) trans 1249 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c if (trans->curr_req_frag == trans->req_hdr->num_frags) { trans 1250 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c if (qlcnic_sriov_add_act_list(sriov, vf, trans)) { trans 1252 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c qlcnic_sriov_cleanup_transaction(trans); trans 1256 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c list_add_tail(&trans->list, &vf->rcv_pend.wait_list); trans 1351 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c struct qlcnic_bc_trans *trans) trans 1359 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c clear_bit(QLC_BC_VF_CHANNEL, &trans->vf->state); trans 1360 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c trans->trans_state = QLC_INIT; trans 1376 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c struct qlcnic_bc_trans *trans; trans 1382 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c rsp = qlcnic_sriov_alloc_bc_trans(&trans); trans 1386 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c rsp = qlcnic_sriov_prepare_bc_hdr(trans, cmd, seq, QLC_BC_COMMAND); trans 1398 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c err = qlcnic_sriov_send_bc_cmd(adapter, trans, func); trans 1407 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c if ((trans->req_hdr->cmd_op == QLCNIC_BC_CMD_CHANNEL_INIT) && trans 1408 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c !qlcnic_sriov_retry_bc_cmd(adapter, trans)) trans 1443 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c qlcnic_sriov_cleanup_transaction(trans); trans 739 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c static int qlcnic_sriov_pf_channel_cfg_cmd(struct qlcnic_bc_trans *trans, trans 742 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c struct qlcnic_vf_info *vf = trans->vf; trans 753 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c if (trans->req_hdr->cmd_op == QLCNIC_BC_CMD_CHANNEL_INIT) { trans 775 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c if (trans->req_hdr->cmd_op == QLCNIC_BC_CMD_CHANNEL_INIT) trans 911 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c static int qlcnic_sriov_pf_mac_address_cmd(struct qlcnic_bc_trans *trans, trans 914 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c struct qlcnic_vf_info *vf = trans->vf; trans 943 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c static int qlcnic_sriov_pf_create_tx_ctx_cmd(struct qlcnic_bc_trans *trans, trans 946 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c struct qlcnic_vf_info *vf = trans->vf; trans 981 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c static int qlcnic_sriov_pf_del_rx_ctx_cmd(struct qlcnic_bc_trans *trans, trans 984 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c struct qlcnic_vf_info *vf = trans->vf; trans 1016 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c static int qlcnic_sriov_pf_del_tx_ctx_cmd(struct qlcnic_bc_trans *trans, trans 1019 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c struct qlcnic_vf_info *vf = trans->vf; trans 1047 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c static int qlcnic_sriov_pf_cfg_lro_cmd(struct qlcnic_bc_trans *trans, trans 1050 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c struct qlcnic_vf_info *vf = trans->vf; trans 1064 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c static int qlcnic_sriov_pf_cfg_ip_cmd(struct qlcnic_bc_trans *trans, trans 1067 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c struct qlcnic_vf_info *vf = trans->vf; trans 1093 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c static int qlcnic_sriov_pf_cfg_intrpt_cmd(struct qlcnic_bc_trans *trans, trans 1096 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c struct qlcnic_vf_info *vf = trans->vf; trans 1122 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c static int qlcnic_sriov_pf_set_mtu_cmd(struct qlcnic_bc_trans *trans, trans 1125 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c struct qlcnic_vf_info *vf = trans->vf; trans 1151 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c static int qlcnic_sriov_pf_get_nic_info_cmd(struct qlcnic_bc_trans *trans, trans 1154 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c struct qlcnic_vf_info *vf = trans->vf; trans 1177 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c static int qlcnic_sriov_pf_cfg_rss_cmd(struct qlcnic_bc_trans *trans, trans 1180 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c struct qlcnic_vf_info *vf = trans->vf; trans 1278 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c static int qlcnic_sriov_pf_cfg_macvlan_cmd(struct qlcnic_bc_trans *trans, trans 1281 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c struct qlcnic_vf_info *vf = trans->vf; trans 1304 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c static int qlcnic_sriov_pf_linkevent_cmd(struct qlcnic_bc_trans *trans, trans 1307 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c struct qlcnic_vf_info *vf = trans->vf; trans 1321 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c static int qlcnic_sriov_pf_cfg_promisc_cmd(struct qlcnic_bc_trans *trans, trans 1324 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c struct qlcnic_vf_info *vf = trans->vf; trans 1334 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c static int qlcnic_sriov_pf_get_acl_cmd(struct qlcnic_bc_trans *trans, trans 1337 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c struct qlcnic_vf_info *vf = trans->vf; trans 1489 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c struct qlcnic_bc_trans *trans, trans 1494 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c cmd_op = trans->req_hdr->cmd_op; trans 1496 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c if (trans->req_hdr->op_type == QLC_BC_CMD) { trans 1499 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c qlcnic_pf_bc_cmd_hdlr[cmd_op].fn(trans, cmd); trans 1507 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c qlcnic_pf_fw_cmd_hdlr[i].fn(trans, cmd); trans 1648 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c struct qlcnic_bc_trans *trans) trans 1655 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c __qlcnic_sriov_add_act_list(sriov, vf, trans); trans 1706 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c struct qlcnic_bc_trans *trans, trans 1714 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c vf->flr_trans = trans; trans 1721 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c struct qlcnic_bc_trans *trans, trans 1724 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c struct qlcnic_bc_hdr *hdr = trans->req_hdr; trans 1729 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c qlcnic_sriov_handle_soft_flr(adapter, trans, vf); trans 107 drivers/net/ethernet/rocker/rocker.h struct switchdev_trans *trans); trans 114 drivers/net/ethernet/rocker/rocker.h struct switchdev_trans *trans); trans 1551 drivers/net/ethernet/rocker/rocker_main.c struct switchdev_trans *trans) trans 1558 drivers/net/ethernet/rocker/rocker_main.c if (switchdev_trans_ph_prepare(trans)) trans 1581 drivers/net/ethernet/rocker/rocker_main.c struct switchdev_trans *trans) trans 1604 drivers/net/ethernet/rocker/rocker_main.c struct switchdev_trans *trans) trans 1611 drivers/net/ethernet/rocker/rocker_main.c if (switchdev_trans_ph_prepare(trans)) trans 1615 drivers/net/ethernet/rocker/rocker_main.c trans); trans 1621 drivers/net/ethernet/rocker/rocker_main.c struct switchdev_trans *trans) trans 1629 drivers/net/ethernet/rocker/rocker_main.c if (switchdev_trans_ph_prepare(trans)) trans 1633 drivers/net/ethernet/rocker/rocker_main.c trans); trans 1639 drivers/net/ethernet/rocker/rocker_main.c struct switchdev_trans *trans) trans 1646 drivers/net/ethernet/rocker/rocker_main.c if (switchdev_trans_ph_prepare(trans)) trans 2067 drivers/net/ethernet/rocker/rocker_main.c struct switchdev_trans *trans) trans 2076 drivers/net/ethernet/rocker/rocker_main.c trans); trans 2081 drivers/net/ethernet/rocker/rocker_main.c trans); trans 2086 drivers/net/ethernet/rocker/rocker_main.c trans); trans 2091 drivers/net/ethernet/rocker/rocker_main.c trans); trans 2103 drivers/net/ethernet/rocker/rocker_main.c struct switchdev_trans *trans) trans 2112 drivers/net/ethernet/rocker/rocker_main.c trans); trans 2729 drivers/net/ethernet/rocker/rocker_main.c port_attr_info->trans); trans 2851 drivers/net/ethernet/rocker/rocker_main.c port_obj_info->trans); trans 2492 drivers/net/ethernet/rocker/rocker_ofdpa.c struct switchdev_trans *trans) trans 2501 drivers/net/ethernet/rocker/rocker_ofdpa.c !switchdev_trans_ph_prepare(trans)) trans 2505 drivers/net/ethernet/rocker/rocker_ofdpa.c if (switchdev_trans_ph_prepare(trans)) trans 2524 drivers/net/ethernet/rocker/rocker_ofdpa.c struct switchdev_trans *trans) trans 2529 drivers/net/ethernet/rocker/rocker_ofdpa.c if (!switchdev_trans_ph_prepare(trans)) { trans 532 drivers/net/wireless/broadcom/b43legacy/dma.c u32 trans = ring->dev->dma.translation; trans 544 drivers/net/wireless/broadcom/b43legacy/dma.c | trans); trans 560 drivers/net/wireless/broadcom/b43legacy/dma.c | trans); trans 72 drivers/net/wireless/intel/iwlwifi/cfg/1000.c .trans.device_family = IWL_DEVICE_FAMILY_1000, \ trans 77 drivers/net/wireless/intel/iwlwifi/cfg/1000.c .trans.base_params = &iwl1000_base_params, \ trans 81 drivers/net/wireless/intel/iwlwifi/cfg/1000.c .trans.csr = &iwl_csr_v1 trans 98 drivers/net/wireless/intel/iwlwifi/cfg/1000.c .trans.device_family = IWL_DEVICE_FAMILY_100, \ trans 103 drivers/net/wireless/intel/iwlwifi/cfg/1000.c .trans.base_params = &iwl1000_base_params, \ trans 108 drivers/net/wireless/intel/iwlwifi/cfg/1000.c .trans.csr = &iwl_csr_v1 trans 98 drivers/net/wireless/intel/iwlwifi/cfg/2000.c .trans.device_family = IWL_DEVICE_FAMILY_2000, \ trans 103 drivers/net/wireless/intel/iwlwifi/cfg/2000.c .trans.base_params = &iwl2000_base_params, \ trans 107 drivers/net/wireless/intel/iwlwifi/cfg/2000.c .trans.csr = &iwl_csr_v1 trans 126 drivers/net/wireless/intel/iwlwifi/cfg/2000.c .trans.device_family = IWL_DEVICE_FAMILY_2030, \ trans 131 drivers/net/wireless/intel/iwlwifi/cfg/2000.c .trans.base_params = &iwl2030_base_params, \ trans 135 drivers/net/wireless/intel/iwlwifi/cfg/2000.c .trans.csr = &iwl_csr_v1 trans 147 drivers/net/wireless/intel/iwlwifi/cfg/2000.c .trans.device_family = IWL_DEVICE_FAMILY_105, \ trans 152 drivers/net/wireless/intel/iwlwifi/cfg/2000.c .trans.base_params = &iwl2000_base_params, \ trans 157 drivers/net/wireless/intel/iwlwifi/cfg/2000.c .trans.csr = &iwl_csr_v1 trans 175 drivers/net/wireless/intel/iwlwifi/cfg/2000.c .trans.device_family = IWL_DEVICE_FAMILY_135, \ trans 180 drivers/net/wireless/intel/iwlwifi/cfg/2000.c .trans.base_params = &iwl2030_base_params, \ trans 185 drivers/net/wireless/intel/iwlwifi/cfg/2000.c .trans.csr = &iwl_csr_v1 trans 172 drivers/net/wireless/intel/iwlwifi/cfg/22000.c .trans.mq_rx_supported = true, \ trans 178 drivers/net/wireless/intel/iwlwifi/cfg/22000.c .trans.use_tfh = true, \ trans 179 drivers/net/wireless/intel/iwlwifi/cfg/22000.c .trans.rf_id = true, \ trans 180 drivers/net/wireless/intel/iwlwifi/cfg/22000.c .trans.gen2 = true, \ trans 193 drivers/net/wireless/intel/iwlwifi/cfg/22000.c .trans.device_family = IWL_DEVICE_FAMILY_22000, \ trans 194 drivers/net/wireless/intel/iwlwifi/cfg/22000.c .trans.base_params = &iwl_22000_base_params, \ trans 195 drivers/net/wireless/intel/iwlwifi/cfg/22000.c .trans.csr = &iwl_csr_v1, \ trans 200 drivers/net/wireless/intel/iwlwifi/cfg/22000.c .trans.device_family = IWL_DEVICE_FAMILY_22560, \ trans 201 drivers/net/wireless/intel/iwlwifi/cfg/22000.c .trans.base_params = &iwl_22560_base_params, \ trans 202 drivers/net/wireless/intel/iwlwifi/cfg/22000.c .trans.csr = &iwl_csr_v2 trans 206 drivers/net/wireless/intel/iwlwifi/cfg/22000.c .trans.umac_prph_offset = 0x300000, \ trans 207 drivers/net/wireless/intel/iwlwifi/cfg/22000.c .trans.device_family = IWL_DEVICE_FAMILY_AX210, \ trans 208 drivers/net/wireless/intel/iwlwifi/cfg/22000.c .trans.base_params = &iwl_22560_base_params, \ trans 209 drivers/net/wireless/intel/iwlwifi/cfg/22000.c .trans.csr = &iwl_csr_v1, \ trans 340 drivers/net/wireless/intel/iwlwifi/cfg/22000.c .trans.bisr_workaround = 1, trans 353 drivers/net/wireless/intel/iwlwifi/cfg/22000.c .trans.bisr_workaround = 1, trans 366 drivers/net/wireless/intel/iwlwifi/cfg/22000.c .trans.bisr_workaround = 1, trans 70 drivers/net/wireless/intel/iwlwifi/cfg/5000.c .trans.device_family = IWL_DEVICE_FAMILY_5000, \ trans 75 drivers/net/wireless/intel/iwlwifi/cfg/5000.c .trans.base_params = &iwl5000_base_params, \ trans 79 drivers/net/wireless/intel/iwlwifi/cfg/5000.c .trans.csr = &iwl_csr_v1 trans 118 drivers/net/wireless/intel/iwlwifi/cfg/5000.c .trans.device_family = IWL_DEVICE_FAMILY_5000, trans 123 drivers/net/wireless/intel/iwlwifi/cfg/5000.c .trans.base_params = &iwl5000_base_params, trans 128 drivers/net/wireless/intel/iwlwifi/cfg/5000.c .trans.csr = &iwl_csr_v1, trans 135 drivers/net/wireless/intel/iwlwifi/cfg/5000.c .trans.device_family = IWL_DEVICE_FAMILY_5150, \ trans 140 drivers/net/wireless/intel/iwlwifi/cfg/5000.c .trans.base_params = &iwl5000_base_params, \ trans 145 drivers/net/wireless/intel/iwlwifi/cfg/5000.c .trans.csr = &iwl_csr_v1 trans 119 drivers/net/wireless/intel/iwlwifi/cfg/6000.c .trans.device_family = IWL_DEVICE_FAMILY_6005, \ trans 124 drivers/net/wireless/intel/iwlwifi/cfg/6000.c .trans.base_params = &iwl6000_g2_base_params, \ trans 128 drivers/net/wireless/intel/iwlwifi/cfg/6000.c .trans.csr = &iwl_csr_v1 trans 174 drivers/net/wireless/intel/iwlwifi/cfg/6000.c .trans.device_family = IWL_DEVICE_FAMILY_6030, \ trans 179 drivers/net/wireless/intel/iwlwifi/cfg/6000.c .trans.base_params = &iwl6000_g2_base_params, \ trans 183 drivers/net/wireless/intel/iwlwifi/cfg/6000.c .trans.csr = &iwl_csr_v1 trans 211 drivers/net/wireless/intel/iwlwifi/cfg/6000.c .trans.device_family = IWL_DEVICE_FAMILY_6030, \ trans 216 drivers/net/wireless/intel/iwlwifi/cfg/6000.c .trans.base_params = &iwl6000_g2_base_params, \ trans 220 drivers/net/wireless/intel/iwlwifi/cfg/6000.c .trans.csr = &iwl_csr_v1 trans 265 drivers/net/wireless/intel/iwlwifi/cfg/6000.c .trans.device_family = IWL_DEVICE_FAMILY_6000i, \ trans 272 drivers/net/wireless/intel/iwlwifi/cfg/6000.c .trans.base_params = &iwl6000_base_params, \ trans 276 drivers/net/wireless/intel/iwlwifi/cfg/6000.c .trans.csr = &iwl_csr_v1 trans 298 drivers/net/wireless/intel/iwlwifi/cfg/6000.c .trans.device_family = IWL_DEVICE_FAMILY_6050, \ trans 305 drivers/net/wireless/intel/iwlwifi/cfg/6000.c .trans.base_params = &iwl6050_base_params, \ trans 310 drivers/net/wireless/intel/iwlwifi/cfg/6000.c .trans.csr = &iwl_csr_v1 trans 327 drivers/net/wireless/intel/iwlwifi/cfg/6000.c .trans.device_family = IWL_DEVICE_FAMILY_6150, \ trans 332 drivers/net/wireless/intel/iwlwifi/cfg/6000.c .trans.base_params = &iwl6050_base_params, \ trans 337 drivers/net/wireless/intel/iwlwifi/cfg/6000.c .trans.csr = &iwl_csr_v1 trans 355 drivers/net/wireless/intel/iwlwifi/cfg/6000.c .trans.device_family = IWL_DEVICE_FAMILY_6000, trans 360 drivers/net/wireless/intel/iwlwifi/cfg/6000.c .trans.base_params = &iwl6000_base_params, trans 364 drivers/net/wireless/intel/iwlwifi/cfg/6000.c .trans.csr = &iwl_csr_v1, trans 151 drivers/net/wireless/intel/iwlwifi/cfg/7000.c .trans.device_family = IWL_DEVICE_FAMILY_7000, \ trans 152 drivers/net/wireless/intel/iwlwifi/cfg/7000.c .trans.base_params = &iwl7000_base_params, \ trans 158 drivers/net/wireless/intel/iwlwifi/cfg/7000.c .trans.csr = &iwl_csr_v1 trans 137 drivers/net/wireless/intel/iwlwifi/cfg/8000.c .trans.device_family = IWL_DEVICE_FAMILY_8000, \ trans 138 drivers/net/wireless/intel/iwlwifi/cfg/8000.c .trans.base_params = &iwl8000_base_params, \ trans 155 drivers/net/wireless/intel/iwlwifi/cfg/8000.c .trans.csr = &iwl_csr_v1 trans 125 drivers/net/wireless/intel/iwlwifi/cfg/9000.c .trans.device_family = IWL_DEVICE_FAMILY_9000, \ trans 126 drivers/net/wireless/intel/iwlwifi/cfg/9000.c .trans.base_params = &iwl9000_base_params, \ trans 139 drivers/net/wireless/intel/iwlwifi/cfg/9000.c .trans.mq_rx_supported = true, \ trans 142 drivers/net/wireless/intel/iwlwifi/cfg/9000.c .trans.rf_id = true, \ trans 146 drivers/net/wireless/intel/iwlwifi/cfg/9000.c .trans.csr = &iwl_csr_v1, \ trans 438 drivers/net/wireless/intel/iwlwifi/dvm/agn.h iwl_trans_set_pmi(priv->trans, state); trans 105 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c val = iwl_trans_read_mem32(priv->trans, sram); trans 124 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c val = iwl_trans_read_mem32(priv->trans, sram); trans 401 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c iwl_get_cmd_string(priv->trans, (u32)cnt), trans 1795 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c pwrsave_status = iwl_read32(priv->trans, CSR_GP_CNTRL) & trans 636 drivers/net/wireless/intel/iwlwifi/dvm/dev.h struct iwl_trans *trans; trans 52 drivers/net/wireless/intel/iwlwifi/dvm/devices.c iwl_set_bits_mask_prph(priv->trans, APMG_DIGITAL_SVR_REG, trans 188 drivers/net/wireless/intel/iwlwifi/dvm/devices.c iwl_set_bit(priv->trans, CSR_GP_DRIVER_REG, trans 487 drivers/net/wireless/intel/iwlwifi/dvm/devices.c switch (priv->trans->trans_cfg->device_family) { trans 494 drivers/net/wireless/intel/iwlwifi/dvm/devices.c iwl_write32(priv->trans, CSR_GP_DRIVER_REG, trans 500 drivers/net/wireless/intel/iwlwifi/dvm/devices.c iwl_set_bit(priv->trans, CSR_GP_DRIVER_REG, trans 506 drivers/net/wireless/intel/iwlwifi/dvm/devices.c iwl_set_bit(priv->trans, CSR_GP_DRIVER_REG, trans 508 drivers/net/wireless/intel/iwlwifi/dvm/devices.c iwl_set_bit(priv->trans, CSR_GP_DRIVER_REG, trans 57 drivers/net/wireless/intel/iwlwifi/dvm/led.c iwl_write32(priv->trans, CSR_LED_REG, CSR_LED_REG_TURN_ON); trans 93 drivers/net/wireless/intel/iwlwifi/dvm/led.c reg = iwl_read32(priv->trans, CSR_LED_REG); trans 95 drivers/net/wireless/intel/iwlwifi/dvm/led.c iwl_write32(priv->trans, CSR_LED_REG, trans 124 drivers/net/wireless/intel/iwlwifi/dvm/led.c priv->trans->trans_cfg->base_params->led_compensation); trans 126 drivers/net/wireless/intel/iwlwifi/dvm/led.c priv->trans->trans_cfg->base_params->led_compensation); trans 197 drivers/net/wireless/intel/iwlwifi/dvm/led.c ret = led_classdev_register(priv->trans->dev, &priv->led); trans 165 drivers/net/wireless/intel/iwlwifi/dvm/lib.c iwl_trans_wait_tx_queues_empty(priv->trans, 0xffffffff); trans 1116 drivers/net/wireless/intel/iwlwifi/dvm/lib.c iwl_trans_stop_device(priv->trans); trans 1117 drivers/net/wireless/intel/iwlwifi/dvm/lib.c ret = iwl_trans_start_hw(priv->trans); trans 1228 drivers/net/wireless/intel/iwlwifi/dvm/lib.c iwl_get_cmd_string(priv->trans, cmd->id)); trans 1249 drivers/net/wireless/intel/iwlwifi/dvm/lib.c return iwl_trans_send_cmd(priv->trans, cmd); trans 104 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c if (priv->trans->max_skb_frags) trans 153 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c priv->trans->ops->d3_suspend && trans 154 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c priv->trans->ops->d3_resume && trans 155 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c device_can_wakeup(priv->trans->dev)) { trans 198 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c hw->wiphy->hw_version = priv->trans->hw_id; trans 244 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c ret = iwl_trans_start_hw(priv->trans); trans 256 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c ret = iwl_trans_start_hw(priv->trans); trans 384 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c iwl_write32(priv->trans, CSR_UCODE_DRV_GP1_SET, trans 387 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c iwl_trans_d3_suspend(priv->trans, false, true); trans 460 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c ret = iwl_trans_d3_resume(priv->trans, &d3_status, false, true); trans 470 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c iwl_write32(priv->trans, CSR_UCODE_DRV_GP1_CLR, trans 479 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c iwl_trans_read_mem_bytes(priv->trans, base, trans 501 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c iwl_trans_read_mem(priv->trans, 0x800000, trans 575 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c device_set_wakeup_enable(priv->trans->dev, enabled); trans 737 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c if (!priv->trans->ops->txq_enable) trans 1102 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c scd_queues = BIT(priv->trans->trans_cfg->base_params->num_of_queues) - 1; trans 1116 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c iwl_trans_wait_tx_queues_empty(priv->trans, scd_queues); trans 418 drivers/net/wireless/intel/iwlwifi/dvm/main.c if (!iwl_trans_grab_nic_access(priv->trans, ®_flags)) trans 422 drivers/net/wireless/intel/iwlwifi/dvm/main.c iwl_write32(priv->trans, HBUS_TARG_MEM_RADDR, ptr); trans 438 drivers/net/wireless/intel/iwlwifi/dvm/main.c ev = iwl_read32(priv->trans, HBUS_TARG_MEM_RDAT); trans 439 drivers/net/wireless/intel/iwlwifi/dvm/main.c time = iwl_read32(priv->trans, HBUS_TARG_MEM_RDAT); trans 442 drivers/net/wireless/intel/iwlwifi/dvm/main.c priv->trans->dev, 0, time, ev); trans 444 drivers/net/wireless/intel/iwlwifi/dvm/main.c data = iwl_read32(priv->trans, HBUS_TARG_MEM_RDAT); trans 446 drivers/net/wireless/intel/iwlwifi/dvm/main.c priv->trans->dev, time, data, ev); trans 450 drivers/net/wireless/intel/iwlwifi/dvm/main.c iwl_trans_release_nic_access(priv->trans, ®_flags); trans 469 drivers/net/wireless/intel/iwlwifi/dvm/main.c iwl_trans_read_mem_bytes(priv->trans, base, trans 510 drivers/net/wireless/intel/iwlwifi/dvm/main.c trace_iwlwifi_dev_ucode_wrap_event(priv->trans->dev, trans 670 drivers/net/wireless/intel/iwlwifi/dvm/main.c iwl_write32(priv->trans, CSR_UCODE_DRV_GP1_CLR, trans 940 drivers/net/wireless/intel/iwlwifi/dvm/main.c iwl_trans_stop_device(priv->trans); trans 1217 drivers/net/wireless/intel/iwlwifi/dvm/main.c struct iwl_trans *trans) trans 1219 drivers/net/wireless/intel/iwlwifi/dvm/main.c if (data->nvm_version >= trans->cfg->nvm_ver || trans 1220 drivers/net/wireless/intel/iwlwifi/dvm/main.c data->calib_version >= trans->cfg->nvm_calib_ver) { trans 1221 drivers/net/wireless/intel/iwlwifi/dvm/main.c IWL_DEBUG_INFO(trans, "device EEPROM VER=0x%x, CALIB=0x%x\n", trans 1226 drivers/net/wireless/intel/iwlwifi/dvm/main.c IWL_ERR(trans, trans 1228 drivers/net/wireless/intel/iwlwifi/dvm/main.c data->nvm_version, trans->cfg->nvm_ver, trans 1229 drivers/net/wireless/intel/iwlwifi/dvm/main.c data->calib_version, trans->cfg->nvm_calib_ver); trans 1233 drivers/net/wireless/intel/iwlwifi/dvm/main.c static struct iwl_op_mode *iwl_op_mode_dvm_start(struct iwl_trans *trans, trans 1265 drivers/net/wireless/intel/iwlwifi/dvm/main.c priv->trans = trans; trans 1266 drivers/net/wireless/intel/iwlwifi/dvm/main.c priv->dev = trans->dev; trans 1270 drivers/net/wireless/intel/iwlwifi/dvm/main.c switch (priv->trans->trans_cfg->device_family) { trans 1345 drivers/net/wireless/intel/iwlwifi/dvm/main.c priv->trans->trans_cfg->base_params->num_of_queues); trans 1358 drivers/net/wireless/intel/iwlwifi/dvm/main.c iwl_trans_configure(priv->trans, &trans_cfg); trans 1360 drivers/net/wireless/intel/iwlwifi/dvm/main.c trans->rx_mpdu_cmd = REPLY_RX_MPDU_CMD; trans 1361 drivers/net/wireless/intel/iwlwifi/dvm/main.c trans->rx_mpdu_cmd_hdr_size = sizeof(struct iwl_rx_mpdu_res_start); trans 1362 drivers/net/wireless/intel/iwlwifi/dvm/main.c trans->command_groups = trans_cfg.command_groups; trans 1363 drivers/net/wireless/intel/iwlwifi/dvm/main.c trans->command_groups_size = trans_cfg.command_groups_size; trans 1367 drivers/net/wireless/intel/iwlwifi/dvm/main.c SET_IEEE80211_DEV(priv->hw, priv->trans->dev); trans 1393 drivers/net/wireless/intel/iwlwifi/dvm/main.c priv->cfg->name, priv->trans->hw_rev); trans 1395 drivers/net/wireless/intel/iwlwifi/dvm/main.c if (iwl_trans_start_hw(priv->trans)) trans 1399 drivers/net/wireless/intel/iwlwifi/dvm/main.c if (iwl_read_eeprom(priv->trans, &priv->eeprom_blob, trans 1406 drivers/net/wireless/intel/iwlwifi/dvm/main.c iwl_trans_stop_device(priv->trans); trans 1408 drivers/net/wireless/intel/iwlwifi/dvm/main.c priv->nvm_data = iwl_parse_eeprom_data(priv->trans, priv->cfg, trans 1414 drivers/net/wireless/intel/iwlwifi/dvm/main.c if (iwl_nvm_check_version(priv->nvm_data, priv->trans)) trans 1449 drivers/net/wireless/intel/iwlwifi/dvm/main.c iwl_trans_configure(priv->trans, &trans_cfg); trans 1548 drivers/net/wireless/intel/iwlwifi/dvm/main.c iwl_trans_op_mode_leave(priv->trans); trans 1623 drivers/net/wireless/intel/iwlwifi/dvm/main.c struct iwl_trans *trans = priv->trans; trans 1646 drivers/net/wireless/intel/iwlwifi/dvm/main.c iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table)); trans 1649 drivers/net/wireless/intel/iwlwifi/dvm/main.c IWL_ERR(trans, "Start IWL Error Log Dump:\n"); trans 1650 drivers/net/wireless/intel/iwlwifi/dvm/main.c IWL_ERR(trans, "Status: 0x%08lX, count: %d\n", trans 1707 drivers/net/wireless/intel/iwlwifi/dvm/main.c struct iwl_trans *trans = priv->trans; trans 1729 drivers/net/wireless/intel/iwlwifi/dvm/main.c if (!iwl_trans_grab_nic_access(trans, ®_flags)) trans 1733 drivers/net/wireless/intel/iwlwifi/dvm/main.c iwl_write32(trans, HBUS_TARG_MEM_RADDR, ptr); trans 1738 drivers/net/wireless/intel/iwlwifi/dvm/main.c ev = iwl_read32(trans, HBUS_TARG_MEM_RDAT); trans 1739 drivers/net/wireless/intel/iwlwifi/dvm/main.c time = iwl_read32(trans, HBUS_TARG_MEM_RDAT); trans 1747 drivers/net/wireless/intel/iwlwifi/dvm/main.c trace_iwlwifi_dev_ucode_event(trans->dev, 0, trans 1753 drivers/net/wireless/intel/iwlwifi/dvm/main.c data = iwl_read32(trans, HBUS_TARG_MEM_RDAT); trans 1761 drivers/net/wireless/intel/iwlwifi/dvm/main.c trace_iwlwifi_dev_ucode_event(trans->dev, time, trans 1768 drivers/net/wireless/intel/iwlwifi/dvm/main.c iwl_trans_release_nic_access(trans, ®_flags); trans 1822 drivers/net/wireless/intel/iwlwifi/dvm/main.c struct iwl_trans *trans = priv->trans; trans 1845 drivers/net/wireless/intel/iwlwifi/dvm/main.c capacity = iwl_trans_read_mem32(trans, base); trans 1846 drivers/net/wireless/intel/iwlwifi/dvm/main.c mode = iwl_trans_read_mem32(trans, base + (1 * sizeof(u32))); trans 1847 drivers/net/wireless/intel/iwlwifi/dvm/main.c num_wraps = iwl_trans_read_mem32(trans, base + (2 * sizeof(u32))); trans 1848 drivers/net/wireless/intel/iwlwifi/dvm/main.c next_entry = iwl_trans_read_mem32(trans, base + (3 * sizeof(u32))); trans 1866 drivers/net/wireless/intel/iwlwifi/dvm/main.c IWL_ERR(trans, "Start IWL Event Log Dump: nothing in log\n"); trans 1993 drivers/net/wireless/intel/iwlwifi/dvm/main.c iwl_trans_set_bits_mask(priv->trans, CSR_HW_IF_CONFIG_REG, trans 1996 drivers/net/wireless/intel/iwlwifi/dvm/main.c (CSR_HW_REV_STEP(priv->trans->hw_rev) << trans 1998 drivers/net/wireless/intel/iwlwifi/dvm/main.c (CSR_HW_REV_DASH(priv->trans->hw_rev) << trans 2011 drivers/net/wireless/intel/iwlwifi/dvm/main.c iwl_trans_set_bits_mask(priv->trans, CSR_HW_IF_CONFIG_REG, trans 2026 drivers/net/wireless/intel/iwlwifi/dvm/main.c iwl_set_bit(priv->trans, CSR_HW_IF_CONFIG_REG, trans 2034 drivers/net/wireless/intel/iwlwifi/dvm/main.c iwl_set_bits_mask_prph(priv->trans, APMG_PS_CTRL_REG, trans 2115 drivers/net/wireless/intel/iwlwifi/dvm/main.c iwl_trans_free_tx_cmd(priv->trans, info->driver_data[1]); trans 203 drivers/net/wireless/intel/iwlwifi/dvm/power.c if (priv->trans->trans_cfg->base_params->shadow_reg_enable) trans 375 drivers/net/wireless/intel/iwlwifi/dvm/power.c priv->power_data.bus_pm = priv->trans->pm_support; trans 490 drivers/net/wireless/intel/iwlwifi/dvm/rx.c iwl_write32(priv->trans, CSR_UCODE_DRV_GP1_SET, trans 493 drivers/net/wireless/intel/iwlwifi/dvm/rx.c iwl_write_direct32(priv->trans, HBUS_TARG_MBX_C, trans 497 drivers/net/wireless/intel/iwlwifi/dvm/rx.c iwl_write32(priv->trans, CSR_UCODE_DRV_GP1_CLR, trans 499 drivers/net/wireless/intel/iwlwifi/dvm/rx.c iwl_write_direct32(priv->trans, HBUS_TARG_MBX_C, trans 1010 drivers/net/wireless/intel/iwlwifi/dvm/rx.c iwl_get_cmd_string(priv->trans, trans 165 drivers/net/wireless/intel/iwlwifi/dvm/tt.c iwl_write32(priv->trans, CSR_UCODE_DRV_GP1_CLR, trans 169 drivers/net/wireless/intel/iwlwifi/dvm/tt.c iwl_write32(priv->trans, CSR_UCODE_DRV_GP1_SET, trans 173 drivers/net/wireless/intel/iwlwifi/dvm/tt.c iwl_read32(priv->trans, CSR_UCODE_DRV_GP1); trans 174 drivers/net/wireless/intel/iwlwifi/dvm/tt.c if (iwl_trans_grab_nic_access(priv->trans, &flags)) trans 175 drivers/net/wireless/intel/iwlwifi/dvm/tt.c iwl_trans_release_nic_access(priv->trans, &flags); trans 346 drivers/net/wireless/intel/iwlwifi/dvm/tx.c dev_cmd = iwl_trans_alloc_tx_cmd(priv->trans); trans 437 drivers/net/wireless/intel/iwlwifi/dvm/tx.c if (iwl_trans_tx(priv->trans, skb, dev_cmd, txq_id)) trans 459 drivers/net/wireless/intel/iwlwifi/dvm/tx.c iwl_trans_free_tx_cmd(priv->trans, dev_cmd); trans 470 drivers/net/wireless/intel/iwlwifi/dvm/tx.c q < priv->trans->trans_cfg->base_params->num_of_queues; q++) { trans 565 drivers/net/wireless/intel/iwlwifi/dvm/tx.c iwl_trans_txq_disable(priv->trans, txq_id, true); trans 671 drivers/net/wireless/intel/iwlwifi/dvm/tx.c iwl_trans_txq_disable(priv->trans, txq_id, true); trans 699 drivers/net/wireless/intel/iwlwifi/dvm/tx.c iwl_trans_txq_enable(priv->trans, q, fifo, sta_priv->sta_id, tid, trans 765 drivers/net/wireless/intel/iwlwifi/dvm/tx.c iwl_trans_txq_disable(priv->trans, trans 1177 drivers/net/wireless/intel/iwlwifi/dvm/tx.c iwl_trans_reclaim(priv->trans, txq_id, ssn, &skbs); trans 1190 drivers/net/wireless/intel/iwlwifi/dvm/tx.c iwl_trans_free_tx_cmd(priv->trans, trans 1284 drivers/net/wireless/intel/iwlwifi/dvm/tx.c if (scd_flow >= priv->trans->trans_cfg->base_params->num_of_queues) { trans 1322 drivers/net/wireless/intel/iwlwifi/dvm/tx.c iwl_trans_reclaim(priv->trans, scd_flow, ba_resp_scd_ssn, trans 1366 drivers/net/wireless/intel/iwlwifi/dvm/tx.c iwl_trans_free_tx_cmd(priv->trans, info->driver_data[1]); trans 230 drivers/net/wireless/intel/iwlwifi/dvm/ucode.c iwl_trans_fw_alive(priv->trans, 0); trans 243 drivers/net/wireless/intel/iwlwifi/dvm/ucode.c iwl_trans_ac_txq_enable(priv->trans, i, trans 318 drivers/net/wireless/intel/iwlwifi/dvm/ucode.c ret = iwl_trans_start_fw(priv->trans, fw, false); trans 421 drivers/net/wireless/intel/iwlwifi/dvm/ucode.c iwl_trans_stop_device(priv->trans); trans 98 drivers/net/wireless/intel/iwlwifi/fw/dbg.c if (!iwl_trans_grab_nic_access(fwrt->trans, &flags)) trans 108 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_write_prph_no_grab(fwrt->trans, RSP_RADIO_CMD, rd_cmd); trans 109 drivers/net/wireless/intel/iwlwifi/fw/dbg.c *pos = (u8)iwl_read_prph_no_grab(fwrt->trans, RSP_RADIO_RDDAT); trans 116 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_trans_release_nic_access(fwrt->trans, &flags); trans 142 drivers/net/wireless/intel/iwlwifi/fw/dbg.c cpu_to_le32(iwl_trans_read_prph(fwrt->trans, trans 145 drivers/net/wireless/intel/iwlwifi/fw/dbg.c cpu_to_le32(iwl_trans_read_prph(fwrt->trans, trans 148 drivers/net/wireless/intel/iwlwifi/fw/dbg.c cpu_to_le32(iwl_trans_read_prph(fwrt->trans, trans 151 drivers/net/wireless/intel/iwlwifi/fw/dbg.c cpu_to_le32(iwl_trans_read_prph(fwrt->trans, trans 154 drivers/net/wireless/intel/iwlwifi/fw/dbg.c cpu_to_le32(iwl_trans_read_prph(fwrt->trans, trans 158 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_trans_write_prph(fwrt->trans, RXF_SET_FENCE_MODE + offset, 0x1); trans 160 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_trans_write_prph(fwrt->trans, RXF_LD_WR2FENCE + offset, 0x1); trans 162 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_trans_write_prph(fwrt->trans, trans 168 drivers/net/wireless/intel/iwlwifi/fw/dbg.c fifo_data[i] = iwl_trans_read_prph(fwrt->trans, trans 197 drivers/net/wireless/intel/iwlwifi/fw/dbg.c cpu_to_le32(iwl_trans_read_prph(fwrt->trans, trans 200 drivers/net/wireless/intel/iwlwifi/fw/dbg.c cpu_to_le32(iwl_trans_read_prph(fwrt->trans, trans 203 drivers/net/wireless/intel/iwlwifi/fw/dbg.c cpu_to_le32(iwl_trans_read_prph(fwrt->trans, trans 206 drivers/net/wireless/intel/iwlwifi/fw/dbg.c cpu_to_le32(iwl_trans_read_prph(fwrt->trans, trans 209 drivers/net/wireless/intel/iwlwifi/fw/dbg.c cpu_to_le32(iwl_trans_read_prph(fwrt->trans, trans 213 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_trans_write_prph(fwrt->trans, TXF_READ_MODIFY_ADDR + offset, trans 217 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_trans_read_prph(fwrt->trans, TXF_READ_MODIFY_DATA + offset); trans 222 drivers/net/wireless/intel/iwlwifi/fw/dbg.c fifo_data[i] = iwl_trans_read_prph(fwrt->trans, trans 236 drivers/net/wireless/intel/iwlwifi/fw/dbg.c if (!iwl_trans_grab_nic_access(fwrt->trans, &flags)) trans 246 drivers/net/wireless/intel/iwlwifi/fw/dbg.c fwrt->trans->trans_cfg->umac_prph_offset, 1); trans 254 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_trans_release_nic_access(fwrt->trans, &flags); trans 269 drivers/net/wireless/intel/iwlwifi/fw/dbg.c if (!iwl_trans_grab_nic_access(fwrt->trans, &flags)) trans 276 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_trans_write_prph(fwrt->trans, TXF_LARC_NUM, i); trans 286 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_trans_write_prph(fwrt->trans, trans 321 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_trans_write_prph(fwrt->trans, TXF_CPU2_NUM, i + trans 325 drivers/net/wireless/intel/iwlwifi/fw/dbg.c cpu_to_le32(iwl_trans_read_prph(fwrt->trans, trans 328 drivers/net/wireless/intel/iwlwifi/fw/dbg.c cpu_to_le32(iwl_trans_read_prph(fwrt->trans, trans 331 drivers/net/wireless/intel/iwlwifi/fw/dbg.c cpu_to_le32(iwl_trans_read_prph(fwrt->trans, trans 334 drivers/net/wireless/intel/iwlwifi/fw/dbg.c cpu_to_le32(iwl_trans_read_prph(fwrt->trans, trans 337 drivers/net/wireless/intel/iwlwifi/fw/dbg.c cpu_to_le32(iwl_trans_read_prph(fwrt->trans, trans 341 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_trans_write_prph(fwrt->trans, trans 346 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_trans_read_prph(fwrt->trans, trans 353 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_trans_read_prph(fwrt->trans, trans 359 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_trans_release_nic_access(fwrt->trans, &flags); trans 570 drivers/net/wireless/intel/iwlwifi/fw/dbg.c static void iwl_read_prph_block(struct iwl_trans *trans, u32 start, trans 576 drivers/net/wireless/intel/iwlwifi/fw/dbg.c *data++ = cpu_to_le32(iwl_read_prph_no_grab(trans, start + i)); trans 584 drivers/net/wireless/intel/iwlwifi/fw/dbg.c struct iwl_trans *trans = fwrt->trans; trans 593 drivers/net/wireless/intel/iwlwifi/fw/dbg.c IWL_DEBUG_INFO(trans, "WRT PRPH dump\n"); trans 595 drivers/net/wireless/intel/iwlwifi/fw/dbg.c if (!iwl_trans_grab_nic_access(trans, &flags)) trans 609 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_read_prph_block(trans, iwl_prph_dump_addr[i].start, trans 618 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_trans_release_nic_access(trans, &flags); trans 688 drivers/net/wireless/intel/iwlwifi/fw/dbg.c if (fwrt->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_AX210) { trans 691 drivers/net/wireless/intel/iwlwifi/fw/dbg.c } else if (fwrt->trans->trans_cfg->device_family >= trans 699 drivers/net/wireless/intel/iwlwifi/fw/dbg.c if (fwrt->trans->trans_cfg->mq_rx_supported) { trans 720 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_trans_read_mem_bytes(fwrt->trans, ofs, dump_mem->data, len); trans 807 drivers/net/wireless/intel/iwlwifi/fw/dbg.c dma_sync_single_for_cpu(fwrt->trans->dev, addr, trans 812 drivers/net/wireless/intel/iwlwifi/fw/dbg.c dma_sync_single_for_device(fwrt->trans->dev, addr, trans 832 drivers/net/wireless/intel/iwlwifi/fw/dbg.c u32 smem_len = fwrt->fw->dbg.n_mem_tlv ? 0 : fwrt->trans->cfg->smem_len; trans 834 drivers/net/wireless/intel/iwlwifi/fw/dbg.c 0 : fwrt->trans->cfg->dccm2_len; trans 838 drivers/net/wireless/intel/iwlwifi/fw/dbg.c if (!fwrt->trans->cfg->dccm_offset || !fwrt->trans->cfg->dccm_len) { trans 847 drivers/net/wireless/intel/iwlwifi/fw/dbg.c sram_ofs = fwrt->trans->cfg->dccm_offset; trans 848 drivers/net/wireless/intel/iwlwifi/fw/dbg.c sram_len = fwrt->trans->cfg->dccm_len; trans 852 drivers/net/wireless/intel/iwlwifi/fw/dbg.c if (test_bit(STATUS_FW_ERROR, &fwrt->trans->status)) { trans 861 drivers/net/wireless/intel/iwlwifi/fw/dbg.c if (fwrt->trans->trans_cfg->device_family == trans 899 drivers/net/wireless/intel/iwlwifi/fw/dbg.c fwrt->trans->cfg->d3_debug_data_length * 2; trans 927 drivers/net/wireless/intel/iwlwifi/fw/dbg.c cpu_to_le32(CSR_HW_REV_TYPE(fwrt->trans->hw_rev)); trans 929 drivers/net/wireless/intel/iwlwifi/fw/dbg.c cpu_to_le32(CSR_HW_REV_STEP(fwrt->trans->hw_rev)); trans 932 drivers/net/wireless/intel/iwlwifi/fw/dbg.c strncpy(dump_info->dev_human_readable, fwrt->trans->cfg->name, trans 1019 drivers/net/wireless/intel/iwlwifi/fw/dbg.c fwrt->trans->cfg->smem_offset, trans 1023 drivers/net/wireless/intel/iwlwifi/fw/dbg.c fwrt->trans->cfg->dccm2_offset, trans 1028 drivers/net/wireless/intel/iwlwifi/fw/dbg.c u32 addr = fwrt->trans->cfg->d3_debug_data_base_addr; trans 1029 drivers/net/wireless/intel/iwlwifi/fw/dbg.c size_t data_size = fwrt->trans->cfg->d3_debug_data_length; trans 1039 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_trans_read_mem_bytes(fwrt->trans, addr, trans 1071 drivers/net/wireless/intel/iwlwifi/fw/dbg.c prph_val = iwl_read_prph(fwrt->trans, addr + i); trans 1092 drivers/net/wireless/intel/iwlwifi/fw/dbg.c *val++ = cpu_to_le32(iwl_trans_read32(fwrt->trans, addr + i)); trans 1106 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_trans_read_mem_bytes(fwrt->trans, addr, range->data, trans 1126 drivers/net/wireless/intel/iwlwifi/fw/dbg.c dma_sync_single_for_cpu(fwrt->trans->dev, addr, page_size, trans 1129 drivers/net/wireless/intel/iwlwifi/fw/dbg.c dma_sync_single_for_device(fwrt->trans->dev, addr, page_size, trans 1142 drivers/net/wireless/intel/iwlwifi/fw/dbg.c if (!fwrt->trans->trans_cfg->gen2) trans 1146 drivers/net/wireless/intel/iwlwifi/fw/dbg.c page_size = fwrt->trans->init_dram.paging[idx].size; trans 1150 drivers/net/wireless/intel/iwlwifi/fw/dbg.c memcpy(range->data, fwrt->trans->init_dram.paging[idx].block, trans 1162 drivers/net/wireless/intel/iwlwifi/fw/dbg.c u32 start_addr = iwl_read_umac_prph(fwrt->trans, trans 1169 drivers/net/wireless/intel/iwlwifi/fw/dbg.c range->range_data_size = cpu_to_le32(fwrt->trans->dbg.fw_mon[idx].size); trans 1171 drivers/net/wireless/intel/iwlwifi/fw/dbg.c memcpy(range->data, fwrt->trans->dbg.fw_mon[idx].block, trans 1172 drivers/net/wireless/intel/iwlwifi/fw/dbg.c fwrt->trans->dbg.fw_mon[idx].size); trans 1243 drivers/net/wireless/intel/iwlwifi/fw/dbg.c if (!iwl_trans_grab_nic_access(fwrt->trans, &flags)) trans 1250 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_write_prph_no_grab(fwrt->trans, TXF_LARC_NUM + offs, iter->fifo); trans 1260 drivers/net/wireless/intel/iwlwifi/fw/dbg.c reg_dump->data = cpu_to_le32(iwl_read_prph_no_grab(fwrt->trans, trans 1272 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_write_prph_no_grab(fwrt->trans, TXF_READ_MODIFY_ADDR + offs, trans 1276 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_read_prph_no_grab(fwrt->trans, TXF_READ_MODIFY_DATA + offs); trans 1282 drivers/net/wireless/intel/iwlwifi/fw/dbg.c *data++ = cpu_to_le32(iwl_read_prph_no_grab(fwrt->trans, addr)); trans 1285 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_trans_release_nic_access(fwrt->trans, &flags); trans 1350 drivers/net/wireless/intel/iwlwifi/fw/dbg.c if (!iwl_trans_grab_nic_access(fwrt->trans, &flags)) trans 1365 drivers/net/wireless/intel/iwlwifi/fw/dbg.c reg_dump->data = cpu_to_le32(iwl_read_prph_no_grab(fwrt->trans, trans 1379 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_write_prph_no_grab(fwrt->trans, RXF_SET_FENCE_MODE + offs, 0x1); trans 1381 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_write_prph_no_grab(fwrt->trans, RXF_LD_WR2FENCE + offs, 0x1); trans 1383 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_write_prph_no_grab(fwrt->trans, RXF_LD_FENCE_OFFSET_ADDR + offs, trans 1390 drivers/net/wireless/intel/iwlwifi/fw/dbg.c *data++ = cpu_to_le32(iwl_read_prph_no_grab(fwrt->trans, addr)); trans 1393 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_trans_release_nic_access(fwrt->trans, &flags); trans 1419 drivers/net/wireless/intel/iwlwifi/fw/dbg.c if (!iwl_trans_grab_nic_access(fwrt->trans, &flags)) { trans 1424 drivers/net/wireless/intel/iwlwifi/fw/dbg.c write_ptr = iwl_read_prph_no_grab(fwrt->trans, write_ptr_addr); trans 1425 drivers/net/wireless/intel/iwlwifi/fw/dbg.c cycle_cnt = iwl_read_prph_no_grab(fwrt->trans, cycle_cnt_addr); trans 1427 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_trans_release_nic_access(fwrt->trans, &flags); trans 1444 drivers/net/wireless/intel/iwlwifi/fw/dbg.c switch (fwrt->trans->trans_cfg->device_family) { trans 1454 drivers/net/wireless/intel/iwlwifi/fw/dbg.c fwrt->trans->trans_cfg->device_family); trans 1469 drivers/net/wireless/intel/iwlwifi/fw/dbg.c const struct iwl_cfg *cfg = fwrt->trans->cfg; trans 1471 drivers/net/wireless/intel/iwlwifi/fw/dbg.c if (fwrt->trans->trans_cfg->device_family != IWL_DEVICE_FAMILY_9000 && trans 1472 drivers/net/wireless/intel/iwlwifi/fw/dbg.c fwrt->trans->trans_cfg->device_family != IWL_DEVICE_FAMILY_22000) { trans 1474 drivers/net/wireless/intel/iwlwifi/fw/dbg.c fwrt->trans->trans_cfg->device_family); trans 1495 drivers/net/wireless/intel/iwlwifi/fw/dbg.c if (fwrt->trans->trans_cfg->gen2) trans 1496 drivers/net/wireless/intel/iwlwifi/fw/dbg.c return fwrt->trans->init_dram.paging_cnt; trans 1543 drivers/net/wireless/intel/iwlwifi/fw/dbg.c if (fwrt->trans->trans_cfg->gen2) { trans 1546 drivers/net/wireless/intel/iwlwifi/fw/dbg.c fwrt->trans->init_dram.paging[i].size; trans 1562 drivers/net/wireless/intel/iwlwifi/fw/dbg.c if (fwrt->trans->dbg.num_blocks) trans 1563 drivers/net/wireless/intel/iwlwifi/fw/dbg.c size += fwrt->trans->dbg.fw_mon[0].size; trans 1743 drivers/net/wireless/intel/iwlwifi/fw/dbg.c cpu_to_le32(fwrt->trans->dbg.external_ini_cfg); trans 1748 drivers/net/wireless/intel/iwlwifi/fw/dbg.c dump->hw_step = cpu_to_le32(CSR_HW_REV_STEP(fwrt->trans->hw_rev)); trans 1749 drivers/net/wireless/intel/iwlwifi/fw/dbg.c dump->hw_type = cpu_to_le32(CSR_HW_REV_TYPE(fwrt->trans->hw_rev)); trans 1752 drivers/net/wireless/intel/iwlwifi/fw/dbg.c cpu_to_le32(CSR_HW_RFID_FLAVOR(fwrt->trans->hw_rf_id)); trans 1753 drivers/net/wireless/intel/iwlwifi/fw/dbg.c dump->rf_id_dash = cpu_to_le32(CSR_HW_RFID_DASH(fwrt->trans->hw_rf_id)); trans 1754 drivers/net/wireless/intel/iwlwifi/fw/dbg.c dump->rf_id_step = cpu_to_le32(CSR_HW_RFID_STEP(fwrt->trans->hw_rf_id)); trans 1755 drivers/net/wireless/intel/iwlwifi/fw/dbg.c dump->rf_id_type = cpu_to_le32(CSR_HW_RFID_TYPE(fwrt->trans->hw_rf_id)); trans 1952 drivers/net/wireless/intel/iwlwifi/fw/dbg.c fw_error_dump.trans_ptr = iwl_trans_dump_data(fwrt->trans, dump_mask); trans 1973 drivers/net/wireless/intel/iwlwifi/fw/dbg.c dev_coredumpsg(fwrt->trans->dev, sg_dump_data, file_len, trans 2016 drivers/net/wireless/intel/iwlwifi/fw/dbg.c dev_coredumpsg(fwrt->trans->dev, sg_dump_data, file_len, trans 2040 drivers/net/wireless/intel/iwlwifi/fw/dbg.c if (iwl_trans_dbg_ini_valid(fwrt->trans)) { trans 2075 drivers/net/wireless/intel/iwlwifi/fw/dbg.c if (!test_bit(STATUS_DEVICE_ENABLED, &fwrt->trans->status)) trans 2089 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_trans_sync_nmi(fwrt->trans); trans 2113 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_force_nmi(fwrt->trans); trans 2163 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_force_nmi(fwrt->trans); trans 2277 drivers/net/wireless/intel/iwlwifi/fw/dbg.c ret = iwl_trans_send_cmd(fwrt->trans, &hcmd); trans 2309 drivers/net/wireless/intel/iwlwifi/fw/dbg.c if (test_bit(STATUS_TRANS_DEAD, &fwrt->trans->status)) { trans 2317 drivers/net/wireless/intel/iwlwifi/fw/dbg.c if (iwl_trans_dbg_ini_valid(fwrt->trans)) trans 2352 drivers/net/wireless/intel/iwlwifi/fw/dbg.c const struct iwl_cfg *cfg = fwrt->trans->cfg; trans 2368 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_trans_read_mem_bytes(fwrt->trans, cfg->d3_debug_data_base_addr, trans 2378 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_dbg_tlv_del_timers(fwrt->trans); trans 2390 drivers/net/wireless/intel/iwlwifi/fw/dbg.c struct iwl_trans *trans = fwrt->trans; trans 2411 drivers/net/wireless/intel/iwlwifi/fw/dbg.c if (!iwl_trans_grab_nic_access(trans, &flags)) trans 2418 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_read_prph_no_grab(trans, fseq_regs[i].addr), trans 2421 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_trans_release_nic_access(trans, &flags); trans 2425 drivers/net/wireless/intel/iwlwifi/fw/dbg.c static int iwl_fw_dbg_suspend_resume_hcmd(struct iwl_trans *trans, bool suspend) trans 2438 drivers/net/wireless/intel/iwlwifi/fw/dbg.c return iwl_trans_send_cmd(trans, &hcmd); trans 2441 drivers/net/wireless/intel/iwlwifi/fw/dbg.c static void iwl_fw_dbg_stop_recording(struct iwl_trans *trans, trans 2444 drivers/net/wireless/intel/iwlwifi/fw/dbg.c if (trans->trans_cfg->device_family == IWL_DEVICE_FAMILY_7000) { trans 2445 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_set_bits_prph(trans, MON_BUFF_SAMPLE_CTL, 0x100); trans 2450 drivers/net/wireless/intel/iwlwifi/fw/dbg.c params->in_sample = iwl_read_umac_prph(trans, DBGC_IN_SAMPLE); trans 2451 drivers/net/wireless/intel/iwlwifi/fw/dbg.c params->out_ctrl = iwl_read_umac_prph(trans, DBGC_OUT_CTRL); trans 2454 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_write_umac_prph(trans, DBGC_IN_SAMPLE, 0); trans 2459 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_write_umac_prph(trans, DBGC_OUT_CTRL, 0); trans 2462 drivers/net/wireless/intel/iwlwifi/fw/dbg.c static int iwl_fw_dbg_restart_recording(struct iwl_trans *trans, trans 2468 drivers/net/wireless/intel/iwlwifi/fw/dbg.c if (trans->trans_cfg->device_family == IWL_DEVICE_FAMILY_7000) { trans 2469 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_clear_bits_prph(trans, MON_BUFF_SAMPLE_CTL, 0x100); trans 2470 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_clear_bits_prph(trans, MON_BUFF_SAMPLE_CTL, 0x1); trans 2471 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_set_bits_prph(trans, MON_BUFF_SAMPLE_CTL, 0x1); trans 2473 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_write_umac_prph(trans, DBGC_IN_SAMPLE, params->in_sample); trans 2474 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_write_umac_prph(trans, DBGC_OUT_CTRL, params->out_ctrl); trans 2486 drivers/net/wireless/intel/iwlwifi/fw/dbg.c if (test_bit(STATUS_FW_ERROR, &fwrt->trans->status)) trans 2491 drivers/net/wireless/intel/iwlwifi/fw/dbg.c ret = iwl_fw_dbg_suspend_resume_hcmd(fwrt->trans, stop); trans 2493 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_fw_dbg_stop_recording(fwrt->trans, params); trans 2495 drivers/net/wireless/intel/iwlwifi/fw/dbg.c ret = iwl_fw_dbg_restart_recording(fwrt->trans, params); trans 2499 drivers/net/wireless/intel/iwlwifi/fw/dbg.c fwrt->trans->dbg.rec_on = false; trans 205 drivers/net/wireless/intel/iwlwifi/fw/dbg.h if (iwl_trans_dbg_ini_valid(fwrt->trans)) trans 232 drivers/net/wireless/intel/iwlwifi/fw/dbg.h if (!iwl_trans_dbg_ini_valid(fwrt->trans) || trans 275 drivers/net/wireless/intel/iwlwifi/fw/dbg.h fwrt->trans->dbg.ini_dest != IWL_FW_INI_LOCATION_INVALID)) trans 276 drivers/net/wireless/intel/iwlwifi/fw/dbg.h fwrt->trans->dbg.rec_on = true; trans 296 drivers/net/wireless/intel/iwlwifi/fw/dbg.h fwrt->trans->cfg->d3_debug_data_length && fwrt->ops && trans 305 drivers/net/wireless/intel/iwlwifi/fw/dbg.h !fwrt->trans->trans_cfg->gen2 && trans 317 drivers/net/wireless/intel/iwlwifi/fw/dbg.h iwl_dbg_tlv_del_timers(fwrt->trans); trans 362 drivers/net/wireless/intel/iwlwifi/fw/dbg.h static inline void iwl_fw_lmac1_set_alive_err_table(struct iwl_trans *trans, trans 365 drivers/net/wireless/intel/iwlwifi/fw/dbg.h if (!(trans->dbg.error_event_table_tlv_status & trans 367 drivers/net/wireless/intel/iwlwifi/fw/dbg.h WARN_ON(trans->dbg.lmac_error_event_table[0] != trans 369 drivers/net/wireless/intel/iwlwifi/fw/dbg.h trans->dbg.lmac_error_event_table[0] = lmac_error_event_table; trans 372 drivers/net/wireless/intel/iwlwifi/fw/dbg.h static inline void iwl_fw_umac_set_alive_err_table(struct iwl_trans *trans, trans 375 drivers/net/wireless/intel/iwlwifi/fw/dbg.h if (!(trans->dbg.error_event_table_tlv_status & trans 377 drivers/net/wireless/intel/iwlwifi/fw/dbg.h WARN_ON(trans->dbg.umac_error_event_table != trans 379 drivers/net/wireless/intel/iwlwifi/fw/dbg.h trans->dbg.umac_error_event_table = umac_error_event_table; trans 384 drivers/net/wireless/intel/iwlwifi/fw/dbg.h if (iwl_trans_dbg_ini_valid(fwrt->trans) && fwrt->trans->dbg.hw_error) { trans 386 drivers/net/wireless/intel/iwlwifi/fw/dbg.h fwrt->trans->dbg.hw_error = false; trans 201 drivers/net/wireless/intel/iwlwifi/fw/debugfs.c return iwl_trans_send_cmd(fwrt->trans, &hcmd); trans 65 drivers/net/wireless/intel/iwlwifi/fw/init.c void iwl_fw_runtime_init(struct iwl_fw_runtime *fwrt, struct iwl_trans *trans, trans 73 drivers/net/wireless/intel/iwlwifi/fw/init.c fwrt->trans = trans; trans 75 drivers/net/wireless/intel/iwlwifi/fw/init.c fwrt->dev = trans->dev; trans 85 drivers/net/wireless/intel/iwlwifi/fw/paging.c dma_unmap_page(fwrt->trans->dev, paging->fw_paging_phys, trans 139 drivers/net/wireless/intel/iwlwifi/fw/paging.c phys = dma_map_page(fwrt->trans->dev, block, 0, trans 142 drivers/net/wireless/intel/iwlwifi/fw/paging.c if (dma_mapping_error(fwrt->trans->dev, phys)) { trans 212 drivers/net/wireless/intel/iwlwifi/fw/paging.c dma_sync_single_for_device(fwrt->trans->dev, trans 257 drivers/net/wireless/intel/iwlwifi/fw/paging.c dma_sync_single_for_device(fwrt->trans->dev, trans 317 drivers/net/wireless/intel/iwlwifi/fw/paging.c return iwl_trans_send_cmd(fwrt->trans, &hcmd); trans 325 drivers/net/wireless/intel/iwlwifi/fw/paging.c if (fwrt->trans->trans_cfg->gen2) trans 123 drivers/net/wireless/intel/iwlwifi/fw/runtime.h struct iwl_trans *trans; trans 185 drivers/net/wireless/intel/iwlwifi/fw/runtime.h void iwl_fw_runtime_init(struct iwl_fw_runtime *fwrt, struct iwl_trans *trans, trans 207 drivers/net/wireless/intel/iwlwifi/fw/runtime.h iwl_dbg_tlv_del_timers(fwrt->trans); trans 145 drivers/net/wireless/intel/iwlwifi/fw/smem.c ret = iwl_trans_send_cmd(fwrt->trans, &cmd); trans 154 drivers/net/wireless/intel/iwlwifi/fw/smem.c if (fwrt->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22000) trans 420 drivers/net/wireless/intel/iwlwifi/iwl-config.h struct iwl_cfg_trans_params trans; trans 282 drivers/net/wireless/intel/iwlwifi/iwl-context-info-gen3.h int iwl_pcie_ctxt_info_gen3_init(struct iwl_trans *trans, trans 284 drivers/net/wireless/intel/iwlwifi/iwl-context-info-gen3.h void iwl_pcie_ctxt_info_gen3_free(struct iwl_trans *trans); trans 222 drivers/net/wireless/intel/iwlwifi/iwl-context-info.h int iwl_pcie_ctxt_info_init(struct iwl_trans *trans, const struct fw_img *fw); trans 223 drivers/net/wireless/intel/iwlwifi/iwl-context-info.h void iwl_pcie_ctxt_info_free(struct iwl_trans *trans); trans 224 drivers/net/wireless/intel/iwlwifi/iwl-context-info.h void iwl_pcie_ctxt_info_free_paging(struct iwl_trans *trans); trans 225 drivers/net/wireless/intel/iwlwifi/iwl-context-info.h int iwl_pcie_init_fw_sec(struct iwl_trans *trans, trans 121 drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c void iwl_dbg_tlv_alloc(struct iwl_trans *trans, struct iwl_ucode_tlv *tlv, trans 129 drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c &trans->dbg.external_ini_cfg : &trans->dbg.internal_ini_cfg; trans 131 drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c IWL_DEBUG_FW(trans, "WRT: read TLV 0x%x, apply point %d\n", trans 135 drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c IWL_ERR(trans, "WRT: Unsupported TLV 0x%x\n", type); trans 140 drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c IWL_ERR(trans, "WRT: Unsupported TLV 0x%x version %u\n", type, trans 154 drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c void iwl_dbg_tlv_del_timers(struct iwl_trans *trans) trans 160 drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c void iwl_dbg_tlv_free(struct iwl_trans *trans) trans 165 drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c static int iwl_dbg_tlv_parse_bin(struct iwl_trans *trans, const u8 *data, trans 178 drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c IWL_ERR(trans, "invalid TLV len: %zd/%u\n", trans 185 drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c iwl_dbg_tlv_alloc(trans, tlv, true); trans 191 drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c void iwl_dbg_tlv_load_bin(struct device *dev, struct iwl_trans *trans) trans 203 drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c iwl_dbg_tlv_parse_bin(trans, fw->data, fw->size); trans 88 drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.h void iwl_dbg_tlv_load_bin(struct device *dev, struct iwl_trans *trans); trans 89 drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.h void iwl_dbg_tlv_free(struct iwl_trans *trans); trans 90 drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.h void iwl_dbg_tlv_alloc(struct iwl_trans *trans, struct iwl_ucode_tlv *tlv, trans 95 drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.h void iwl_dbg_tlv_del_timers(struct iwl_trans *trans); trans 42 drivers/net/wireless/intel/iwlwifi/iwl-devtrace-data.h const struct iwl_trans *trans, trans 44 drivers/net/wireless/intel/iwlwifi/iwl-devtrace-data.h TP_ARGS(dev, trans, rxbuf, len), trans 48 drivers/net/wireless/intel/iwlwifi/iwl-devtrace-data.h len - iwl_rx_trace_len(trans, rxbuf, len, NULL)) trans 51 drivers/net/wireless/intel/iwlwifi/iwl-devtrace-data.h size_t offs = iwl_rx_trace_len(trans, rxbuf, len, NULL); trans 58 drivers/net/wireless/intel/iwlwifi/iwl-devtrace-iwlwifi.h TP_PROTO(const struct device *dev, const struct iwl_trans *trans, trans 60 drivers/net/wireless/intel/iwlwifi/iwl-devtrace-iwlwifi.h TP_ARGS(dev, trans, pkt, len), trans 66 drivers/net/wireless/intel/iwlwifi/iwl-devtrace-iwlwifi.h iwl_rx_trace_len(trans, pkt, len, NULL)) trans 74 drivers/net/wireless/intel/iwlwifi/iwl-devtrace-iwlwifi.h iwl_rx_trace_len(trans, pkt, len, &hdr_offset)); trans 48 drivers/net/wireless/intel/iwlwifi/iwl-devtrace.h static inline size_t iwl_rx_trace_len(const struct iwl_trans *trans, trans 56 drivers/net/wireless/intel/iwlwifi/iwl-devtrace.h if (cmd->cmd != trans->rx_mpdu_cmd) trans 60 drivers/net/wireless/intel/iwlwifi/iwl-devtrace.h trans->rx_mpdu_cmd_hdr_size; trans 69 drivers/net/wireless/intel/iwlwifi/iwl-devtrace.h return sizeof(__le32) + sizeof(*cmd) + trans->rx_mpdu_cmd_hdr_size + trans 113 drivers/net/wireless/intel/iwlwifi/iwl-drv.c struct iwl_trans *trans; trans 215 drivers/net/wireless/intel/iwlwifi/iwl-drv.c const struct iwl_cfg *cfg = drv->trans->cfg; trans 218 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (drv->trans->trans_cfg->device_family == IWL_DEVICE_FAMILY_9000 && trans 219 drivers/net/wireless/intel/iwlwifi/iwl-drv.c (CSR_HW_REV_STEP(drv->trans->hw_rev) != SILICON_B_STEP && trans 220 drivers/net/wireless/intel/iwlwifi/iwl-drv.c CSR_HW_REV_STEP(drv->trans->hw_rev) != SILICON_C_STEP)) { trans 223 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->trans->hw_rev); trans 260 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->trans->dev, trans 1123 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (drv->trans->trans_cfg->device_family < trans 1126 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->trans->dbg.umac_error_event_table = trans 1129 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->trans->dbg.error_event_table_tlv_status |= trans 1139 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (drv->trans->trans_cfg->device_family < trans 1142 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->trans->dbg.lmac_error_event_table[0] = trans 1145 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->trans->dbg.error_event_table_tlv_status |= trans 1155 drivers/net/wireless/intel/iwlwifi/iwl-drv.c iwl_dbg_tlv_alloc(drv->trans, tlv, false); trans 1286 drivers/net/wireless/intel/iwlwifi/iwl-drv.c op_mode = ops->start(drv->trans, drv->trans->cfg, &drv->fw, dbgfs_dir); trans 1326 drivers/net/wireless/intel/iwlwifi/iwl-drv.c const unsigned int api_max = drv->trans->cfg->ucode_api_max; trans 1327 drivers/net/wireless/intel/iwlwifi/iwl-drv.c const unsigned int api_min = drv->trans->cfg->ucode_api_min; trans 1392 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->trans->cfg)) trans 1525 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->trans->trans_cfg->base_params->max_event_log_size; trans 1532 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->trans->trans_cfg->base_params->max_event_log_size; trans 1612 drivers/net/wireless/intel/iwlwifi/iwl-drv.c device_release_driver(drv->trans->dev); trans 1622 drivers/net/wireless/intel/iwlwifi/iwl-drv.c struct iwl_drv *iwl_drv_start(struct iwl_trans *trans) trans 1633 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->trans = trans; trans 1634 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->dev = trans->dev; trans 1639 drivers/net/wireless/intel/iwlwifi/iwl-drv.c iwl_dbg_tlv_load_bin(drv->trans->dev, drv->trans); trans 1643 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->dbgfs_drv = debugfs_create_dir(dev_name(trans->dev), trans 1647 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->trans->dbgfs_dir = debugfs_create_dir("trans", drv->dbgfs_drv); trans 1652 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(trans, "Couldn't request the fw\n"); trans 1661 drivers/net/wireless/intel/iwlwifi/iwl-drv.c iwl_dbg_tlv_free(drv->trans); trans 1687 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->trans->ops->debugfs_cleanup(drv->trans); trans 1692 drivers/net/wireless/intel/iwlwifi/iwl-drv.c iwl_dbg_tlv_free(drv->trans); trans 122 drivers/net/wireless/intel/iwlwifi/iwl-drv.h struct iwl_drv *iwl_drv_start(struct iwl_trans *trans); trans 731 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.c void iwl_init_ht_hw_capab(struct iwl_trans *trans, trans 737 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.c const struct iwl_cfg *cfg = trans->cfg; trans 769 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.c if ((trans->trans_cfg->mq_rx_supported && trans 809 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.c static void iwl_init_sbands(struct iwl_trans *trans, const struct iwl_cfg *cfg, trans 813 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.c struct device *dev = trans->dev; trans 825 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.c iwl_init_ht_hw_capab(trans, data, &sband->ht_cap, NL80211_BAND_2GHZ, trans 834 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.c iwl_init_ht_hw_capab(trans, data, &sband->ht_cap, NL80211_BAND_5GHZ, trans 845 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.c iwl_parse_eeprom_data(struct iwl_trans *trans, const struct iwl_cfg *cfg, trans 849 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.c struct device *dev = trans->dev; trans 924 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.c iwl_init_sbands(trans, cfg, data, eeprom, eeprom_size); trans 119 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.h iwl_parse_eeprom_data(struct iwl_trans *trans, const struct iwl_cfg *cfg, trans 126 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.h void iwl_init_ht_hw_capab(struct iwl_trans *trans, trans 94 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c static int iwl_eeprom_acquire_semaphore(struct iwl_trans *trans) trans 101 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c iwl_set_bit(trans, CSR_HW_IF_CONFIG_REG, trans 105 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c ret = iwl_poll_bit(trans, CSR_HW_IF_CONFIG_REG, trans 110 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c IWL_DEBUG_EEPROM(trans->dev, trans 120 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c static void iwl_eeprom_release_semaphore(struct iwl_trans *trans) trans 122 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c iwl_clear_bit(trans, CSR_HW_IF_CONFIG_REG, trans 126 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c static int iwl_eeprom_verify_signature(struct iwl_trans *trans, bool nvm_is_otp) trans 128 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c u32 gp = iwl_read32(trans, CSR_EEPROM_GP) & CSR_EEPROM_GP_VALID_MSK; trans 130 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c IWL_DEBUG_EEPROM(trans->dev, "EEPROM signature=0x%08x\n", gp); trans 135 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c IWL_ERR(trans, "EEPROM with bad signature: 0x%08x\n", trans 143 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c IWL_ERR(trans, "OTP with bad signature: 0x%08x\n", gp); trans 149 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c IWL_ERR(trans, trans 162 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c static void iwl_set_otp_access_absolute(struct iwl_trans *trans) trans 164 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c iwl_read32(trans, CSR_OTP_GP_REG); trans 166 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c iwl_clear_bit(trans, CSR_OTP_GP_REG, trans 170 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c static int iwl_nvm_is_otp(struct iwl_trans *trans) trans 175 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c switch (trans->hw_rev & CSR_HW_REV_TYPE_MSK) { trans 177 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c IWL_ERR(trans, "Unknown hardware type\n"); trans 185 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c otpgp = iwl_read32(trans, CSR_OTP_GP_REG); trans 192 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c static int iwl_init_otp_access(struct iwl_trans *trans) trans 196 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c ret = iwl_finish_nic_init(trans, trans->trans_cfg); trans 200 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c iwl_set_bits_prph(trans, APMG_PS_CTRL_REG, trans 203 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c iwl_clear_bits_prph(trans, APMG_PS_CTRL_REG, trans 210 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c if (trans->trans_cfg->base_params->shadow_ram_support) trans 211 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c iwl_set_bit(trans, CSR_DBG_LINK_PWR_MGMT_REG, trans 217 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c static int iwl_read_otp_word(struct iwl_trans *trans, u16 addr, trans 224 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c iwl_write32(trans, CSR_EEPROM_REG, trans 226 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c ret = iwl_poll_bit(trans, CSR_EEPROM_REG, trans 231 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c IWL_ERR(trans, "Time out reading OTP[%d]\n", addr); trans 234 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c r = iwl_read32(trans, CSR_EEPROM_REG); trans 236 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c otpgp = iwl_read32(trans, CSR_OTP_GP_REG); trans 240 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c iwl_set_bit(trans, CSR_OTP_GP_REG, trans 242 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c IWL_ERR(trans, "Uncorrectable OTP ECC error, abort OTP read\n"); trans 248 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c iwl_set_bit(trans, CSR_OTP_GP_REG, trans 250 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c IWL_ERR(trans, "Correctable OTP ECC error, continue read\n"); trans 259 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c static bool iwl_is_otp_empty(struct iwl_trans *trans) trans 266 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c if (!iwl_read_otp_word(trans, next_link_addr, &link_value)) { trans 268 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c IWL_ERR(trans, "OTP is empty\n"); trans 272 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c IWL_ERR(trans, "Unable to read first block of OTP list.\n"); trans 289 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c static int iwl_find_otp_image(struct iwl_trans *trans, trans 297 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c iwl_set_otp_access_absolute(trans); trans 300 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c if (iwl_is_otp_empty(trans)) trans 314 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c IWL_DEBUG_EEPROM(trans->dev, "OTP blocks %d addr 0x%x\n", trans 316 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c if (iwl_read_otp_word(trans, next_link_addr, &link_value)) trans 331 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c } while (usedblocks <= trans->trans_cfg->base_params->max_ll_items); trans 334 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c IWL_DEBUG_EEPROM(trans->dev, "OTP has no valid blocks\n"); trans 346 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c int iwl_read_eeprom(struct iwl_trans *trans, u8 **eeprom, size_t *eeprom_size) trans 349 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c u32 gp = iwl_read32(trans, CSR_EEPROM_GP); trans 360 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c nvm_is_otp = iwl_nvm_is_otp(trans); trans 364 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c sz = trans->trans_cfg->base_params->eeprom_size; trans 365 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c IWL_DEBUG_EEPROM(trans->dev, "NVM size = %d\n", sz); trans 371 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c ret = iwl_eeprom_verify_signature(trans, nvm_is_otp); trans 373 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c IWL_ERR(trans, "EEPROM not found, EEPROM_GP=0x%08x\n", gp); trans 378 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c ret = iwl_eeprom_acquire_semaphore(trans); trans 380 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c IWL_ERR(trans, "Failed to acquire EEPROM semaphore.\n"); trans 385 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c ret = iwl_init_otp_access(trans); trans 387 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c IWL_ERR(trans, "Failed to initialize OTP access.\n"); trans 391 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c iwl_write32(trans, CSR_EEPROM_GP, trans 392 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c iwl_read32(trans, CSR_EEPROM_GP) & trans 395 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c iwl_set_bit(trans, CSR_OTP_GP_REG, trans 399 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c if (!trans->trans_cfg->base_params->shadow_ram_support) { trans 400 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c ret = iwl_find_otp_image(trans, &validblockaddr); trans 408 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c ret = iwl_read_otp_word(trans, addr, &eeprom_data); trans 419 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c iwl_write32(trans, CSR_EEPROM_REG, trans 422 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c ret = iwl_poll_bit(trans, CSR_EEPROM_REG, trans 427 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c IWL_ERR(trans, trans 431 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c r = iwl_read32(trans, CSR_EEPROM_REG); trans 436 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c IWL_DEBUG_EEPROM(trans->dev, "NVM Type: %s\n", trans 439 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c iwl_eeprom_release_semaphore(trans); trans 446 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c iwl_eeprom_release_semaphore(trans); trans 63 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.h int iwl_read_eeprom(struct iwl_trans *trans, u8 **eeprom, size_t *eeprom_size); trans 127 drivers/net/wireless/intel/iwlwifi/iwl-fh.h static inline unsigned int FH_MEM_CBBC_QUEUE(struct iwl_trans *trans, trans 130 drivers/net/wireless/intel/iwlwifi/iwl-fh.h if (trans->trans_cfg->use_tfh) { trans 103 drivers/net/wireless/intel/iwlwifi/iwl-io.c void iwl_write8(struct iwl_trans *trans, u32 ofs, u8 val) trans 105 drivers/net/wireless/intel/iwlwifi/iwl-io.c trace_iwlwifi_dev_iowrite8(trans->dev, ofs, val); trans 106 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_trans_write8(trans, ofs, val); trans 110 drivers/net/wireless/intel/iwlwifi/iwl-io.c void iwl_write32(struct iwl_trans *trans, u32 ofs, u32 val) trans 112 drivers/net/wireless/intel/iwlwifi/iwl-io.c trace_iwlwifi_dev_iowrite32(trans->dev, ofs, val); trans 113 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_trans_write32(trans, ofs, val); trans 117 drivers/net/wireless/intel/iwlwifi/iwl-io.c void iwl_write64(struct iwl_trans *trans, u64 ofs, u64 val) trans 119 drivers/net/wireless/intel/iwlwifi/iwl-io.c trace_iwlwifi_dev_iowrite64(trans->dev, ofs, val); trans 120 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_trans_write32(trans, ofs, lower_32_bits(val)); trans 121 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_trans_write32(trans, ofs + 4, upper_32_bits(val)); trans 125 drivers/net/wireless/intel/iwlwifi/iwl-io.c u32 iwl_read32(struct iwl_trans *trans, u32 ofs) trans 127 drivers/net/wireless/intel/iwlwifi/iwl-io.c u32 val = iwl_trans_read32(trans, ofs); trans 129 drivers/net/wireless/intel/iwlwifi/iwl-io.c trace_iwlwifi_dev_ioread32(trans->dev, ofs, val); trans 136 drivers/net/wireless/intel/iwlwifi/iwl-io.c int iwl_poll_bit(struct iwl_trans *trans, u32 addr, trans 142 drivers/net/wireless/intel/iwlwifi/iwl-io.c if ((iwl_read32(trans, addr) & mask) == (bits & mask)) trans 152 drivers/net/wireless/intel/iwlwifi/iwl-io.c u32 iwl_read_direct32(struct iwl_trans *trans, u32 reg) trans 156 drivers/net/wireless/intel/iwlwifi/iwl-io.c if (iwl_trans_grab_nic_access(trans, &flags)) { trans 157 drivers/net/wireless/intel/iwlwifi/iwl-io.c value = iwl_read32(trans, reg); trans 158 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_trans_release_nic_access(trans, &flags); trans 165 drivers/net/wireless/intel/iwlwifi/iwl-io.c void iwl_write_direct32(struct iwl_trans *trans, u32 reg, u32 value) trans 169 drivers/net/wireless/intel/iwlwifi/iwl-io.c if (iwl_trans_grab_nic_access(trans, &flags)) { trans 170 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_write32(trans, reg, value); trans 171 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_trans_release_nic_access(trans, &flags); trans 176 drivers/net/wireless/intel/iwlwifi/iwl-io.c void iwl_write_direct64(struct iwl_trans *trans, u64 reg, u64 value) trans 180 drivers/net/wireless/intel/iwlwifi/iwl-io.c if (iwl_trans_grab_nic_access(trans, &flags)) { trans 181 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_write64(trans, reg, value); trans 182 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_trans_release_nic_access(trans, &flags); trans 187 drivers/net/wireless/intel/iwlwifi/iwl-io.c int iwl_poll_direct_bit(struct iwl_trans *trans, u32 addr, u32 mask, trans 193 drivers/net/wireless/intel/iwlwifi/iwl-io.c if ((iwl_read_direct32(trans, addr) & mask) == mask) trans 203 drivers/net/wireless/intel/iwlwifi/iwl-io.c u32 iwl_read_prph_no_grab(struct iwl_trans *trans, u32 ofs) trans 205 drivers/net/wireless/intel/iwlwifi/iwl-io.c u32 val = iwl_trans_read_prph(trans, ofs); trans 206 drivers/net/wireless/intel/iwlwifi/iwl-io.c trace_iwlwifi_dev_ioread_prph32(trans->dev, ofs, val); trans 211 drivers/net/wireless/intel/iwlwifi/iwl-io.c void iwl_write_prph_no_grab(struct iwl_trans *trans, u32 ofs, u32 val) trans 213 drivers/net/wireless/intel/iwlwifi/iwl-io.c trace_iwlwifi_dev_iowrite_prph32(trans->dev, ofs, val); trans 214 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_trans_write_prph(trans, ofs, val); trans 218 drivers/net/wireless/intel/iwlwifi/iwl-io.c void iwl_write_prph64_no_grab(struct iwl_trans *trans, u64 ofs, u64 val) trans 220 drivers/net/wireless/intel/iwlwifi/iwl-io.c trace_iwlwifi_dev_iowrite_prph64(trans->dev, ofs, val); trans 221 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_write_prph_no_grab(trans, ofs, val & 0xffffffff); trans 222 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_write_prph_no_grab(trans, ofs + 4, val >> 32); trans 226 drivers/net/wireless/intel/iwlwifi/iwl-io.c u32 iwl_read_prph(struct iwl_trans *trans, u32 ofs) trans 231 drivers/net/wireless/intel/iwlwifi/iwl-io.c if (iwl_trans_grab_nic_access(trans, &flags)) { trans 232 drivers/net/wireless/intel/iwlwifi/iwl-io.c val = iwl_read_prph_no_grab(trans, ofs); trans 233 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_trans_release_nic_access(trans, &flags); trans 239 drivers/net/wireless/intel/iwlwifi/iwl-io.c void iwl_write_prph(struct iwl_trans *trans, u32 ofs, u32 val) trans 243 drivers/net/wireless/intel/iwlwifi/iwl-io.c if (iwl_trans_grab_nic_access(trans, &flags)) { trans 244 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_write_prph_no_grab(trans, ofs, val); trans 245 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_trans_release_nic_access(trans, &flags); trans 250 drivers/net/wireless/intel/iwlwifi/iwl-io.c int iwl_poll_prph_bit(struct iwl_trans *trans, u32 addr, trans 256 drivers/net/wireless/intel/iwlwifi/iwl-io.c if ((iwl_read_prph(trans, addr) & mask) == (bits & mask)) trans 265 drivers/net/wireless/intel/iwlwifi/iwl-io.c void iwl_set_bits_prph(struct iwl_trans *trans, u32 ofs, u32 mask) trans 269 drivers/net/wireless/intel/iwlwifi/iwl-io.c if (iwl_trans_grab_nic_access(trans, &flags)) { trans 270 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_write_prph_no_grab(trans, ofs, trans 271 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_read_prph_no_grab(trans, ofs) | trans 273 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_trans_release_nic_access(trans, &flags); trans 278 drivers/net/wireless/intel/iwlwifi/iwl-io.c void iwl_set_bits_mask_prph(struct iwl_trans *trans, u32 ofs, trans 283 drivers/net/wireless/intel/iwlwifi/iwl-io.c if (iwl_trans_grab_nic_access(trans, &flags)) { trans 284 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_write_prph_no_grab(trans, ofs, trans 285 drivers/net/wireless/intel/iwlwifi/iwl-io.c (iwl_read_prph_no_grab(trans, ofs) & trans 287 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_trans_release_nic_access(trans, &flags); trans 292 drivers/net/wireless/intel/iwlwifi/iwl-io.c void iwl_clear_bits_prph(struct iwl_trans *trans, u32 ofs, u32 mask) trans 297 drivers/net/wireless/intel/iwlwifi/iwl-io.c if (iwl_trans_grab_nic_access(trans, &flags)) { trans 298 drivers/net/wireless/intel/iwlwifi/iwl-io.c val = iwl_read_prph_no_grab(trans, ofs); trans 299 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_write_prph_no_grab(trans, ofs, (val & ~mask)); trans 300 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_trans_release_nic_access(trans, &flags); trans 305 drivers/net/wireless/intel/iwlwifi/iwl-io.c void iwl_force_nmi(struct iwl_trans *trans) trans 307 drivers/net/wireless/intel/iwlwifi/iwl-io.c if (trans->trans_cfg->device_family < IWL_DEVICE_FAMILY_9000) trans 308 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_write_prph(trans, DEVICE_SET_NMI_REG, trans 310 drivers/net/wireless/intel/iwlwifi/iwl-io.c else if (trans->trans_cfg->device_family < IWL_DEVICE_FAMILY_AX210) trans 311 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_write_umac_prph(trans, UREG_NIC_SET_NMI_DRIVER, trans 314 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_write_umac_prph(trans, UREG_DOORBELL_TO_ISR6, trans 350 drivers/net/wireless/intel/iwlwifi/iwl-io.c static int iwl_dump_rfh(struct iwl_trans *trans, char **buf) trans 353 drivers/net/wireless/intel/iwlwifi/iwl-io.c int num_q = trans->num_rx_queues; trans 392 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_read_prph(trans, rfh_tbl[i])); trans 402 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_read_prph(trans, addr)); trans 409 drivers/net/wireless/intel/iwlwifi/iwl-io.c IWL_ERR(trans, "RFH register values:\n"); trans 411 drivers/net/wireless/intel/iwlwifi/iwl-io.c IWL_ERR(trans, " %34s: 0X%08x\n", trans 413 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_read_prph(trans, rfh_tbl[i])); trans 420 drivers/net/wireless/intel/iwlwifi/iwl-io.c IWL_ERR(trans, " %34s(q %d): 0X%08x\n", trans 422 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_read_prph(trans, addr)); trans 446 drivers/net/wireless/intel/iwlwifi/iwl-io.c int iwl_dump_fh(struct iwl_trans *trans, char **buf) trans 461 drivers/net/wireless/intel/iwlwifi/iwl-io.c if (trans->trans_cfg->mq_rx_supported) trans 462 drivers/net/wireless/intel/iwlwifi/iwl-io.c return iwl_dump_rfh(trans, buf); trans 480 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_read_direct32(trans, fh_tbl[i])); trans 486 drivers/net/wireless/intel/iwlwifi/iwl-io.c IWL_ERR(trans, "FH register values:\n"); trans 488 drivers/net/wireless/intel/iwlwifi/iwl-io.c IWL_ERR(trans, " %34s: 0X%08x\n", trans 490 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_read_direct32(trans, fh_tbl[i])); trans 495 drivers/net/wireless/intel/iwlwifi/iwl-io.c int iwl_finish_nic_init(struct iwl_trans *trans, trans 509 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_set_bit(trans, CSR_GP_CNTRL, trans 520 drivers/net/wireless/intel/iwlwifi/iwl-io.c err = iwl_poll_bit(trans, CSR_GP_CNTRL, trans 525 drivers/net/wireless/intel/iwlwifi/iwl-io.c IWL_DEBUG_INFO(trans, "Failed to wake NIC\n"); trans 64 drivers/net/wireless/intel/iwlwifi/iwl-io.h void iwl_write8(struct iwl_trans *trans, u32 ofs, u8 val); trans 65 drivers/net/wireless/intel/iwlwifi/iwl-io.h void iwl_write32(struct iwl_trans *trans, u32 ofs, u32 val); trans 66 drivers/net/wireless/intel/iwlwifi/iwl-io.h void iwl_write64(struct iwl_trans *trans, u64 ofs, u64 val); trans 67 drivers/net/wireless/intel/iwlwifi/iwl-io.h u32 iwl_read32(struct iwl_trans *trans, u32 ofs); trans 69 drivers/net/wireless/intel/iwlwifi/iwl-io.h static inline void iwl_set_bit(struct iwl_trans *trans, u32 reg, u32 mask) trans 71 drivers/net/wireless/intel/iwlwifi/iwl-io.h iwl_trans_set_bits_mask(trans, reg, mask, mask); trans 74 drivers/net/wireless/intel/iwlwifi/iwl-io.h static inline void iwl_clear_bit(struct iwl_trans *trans, u32 reg, u32 mask) trans 76 drivers/net/wireless/intel/iwlwifi/iwl-io.h iwl_trans_set_bits_mask(trans, reg, mask, 0); trans 79 drivers/net/wireless/intel/iwlwifi/iwl-io.h int iwl_poll_bit(struct iwl_trans *trans, u32 addr, trans 81 drivers/net/wireless/intel/iwlwifi/iwl-io.h int iwl_poll_direct_bit(struct iwl_trans *trans, u32 addr, u32 mask, trans 84 drivers/net/wireless/intel/iwlwifi/iwl-io.h u32 iwl_read_direct32(struct iwl_trans *trans, u32 reg); trans 85 drivers/net/wireless/intel/iwlwifi/iwl-io.h void iwl_write_direct32(struct iwl_trans *trans, u32 reg, u32 value); trans 86 drivers/net/wireless/intel/iwlwifi/iwl-io.h void iwl_write_direct64(struct iwl_trans *trans, u64 reg, u64 value); trans 89 drivers/net/wireless/intel/iwlwifi/iwl-io.h u32 iwl_read_prph_no_grab(struct iwl_trans *trans, u32 ofs); trans 90 drivers/net/wireless/intel/iwlwifi/iwl-io.h u32 iwl_read_prph(struct iwl_trans *trans, u32 ofs); trans 91 drivers/net/wireless/intel/iwlwifi/iwl-io.h void iwl_write_prph_no_grab(struct iwl_trans *trans, u32 ofs, u32 val); trans 92 drivers/net/wireless/intel/iwlwifi/iwl-io.h void iwl_write_prph64_no_grab(struct iwl_trans *trans, u64 ofs, u64 val); trans 93 drivers/net/wireless/intel/iwlwifi/iwl-io.h void iwl_write_prph(struct iwl_trans *trans, u32 ofs, u32 val); trans 94 drivers/net/wireless/intel/iwlwifi/iwl-io.h int iwl_poll_prph_bit(struct iwl_trans *trans, u32 addr, trans 96 drivers/net/wireless/intel/iwlwifi/iwl-io.h void iwl_set_bits_prph(struct iwl_trans *trans, u32 ofs, u32 mask); trans 97 drivers/net/wireless/intel/iwlwifi/iwl-io.h void iwl_set_bits_mask_prph(struct iwl_trans *trans, u32 ofs, trans 99 drivers/net/wireless/intel/iwlwifi/iwl-io.h void iwl_clear_bits_prph(struct iwl_trans *trans, u32 ofs, u32 mask); trans 100 drivers/net/wireless/intel/iwlwifi/iwl-io.h void iwl_force_nmi(struct iwl_trans *trans); trans 102 drivers/net/wireless/intel/iwlwifi/iwl-io.h int iwl_finish_nic_init(struct iwl_trans *trans, trans 106 drivers/net/wireless/intel/iwlwifi/iwl-io.h int iwl_dump_fh(struct iwl_trans *trans, char **buf); trans 113 drivers/net/wireless/intel/iwlwifi/iwl-io.h static inline u32 iwl_umac_prph(struct iwl_trans *trans, u32 ofs) trans 115 drivers/net/wireless/intel/iwlwifi/iwl-io.h return ofs + trans->trans_cfg->umac_prph_offset; trans 118 drivers/net/wireless/intel/iwlwifi/iwl-io.h static inline u32 iwl_read_umac_prph_no_grab(struct iwl_trans *trans, u32 ofs) trans 120 drivers/net/wireless/intel/iwlwifi/iwl-io.h return iwl_read_prph_no_grab(trans, ofs + trans 121 drivers/net/wireless/intel/iwlwifi/iwl-io.h trans->trans_cfg->umac_prph_offset); trans 124 drivers/net/wireless/intel/iwlwifi/iwl-io.h static inline u32 iwl_read_umac_prph(struct iwl_trans *trans, u32 ofs) trans 126 drivers/net/wireless/intel/iwlwifi/iwl-io.h return iwl_read_prph(trans, ofs + trans->trans_cfg->umac_prph_offset); trans 129 drivers/net/wireless/intel/iwlwifi/iwl-io.h static inline void iwl_write_umac_prph_no_grab(struct iwl_trans *trans, u32 ofs, trans 132 drivers/net/wireless/intel/iwlwifi/iwl-io.h iwl_write_prph_no_grab(trans, ofs + trans->trans_cfg->umac_prph_offset, trans 136 drivers/net/wireless/intel/iwlwifi/iwl-io.h static inline void iwl_write_umac_prph(struct iwl_trans *trans, u32 ofs, trans 139 drivers/net/wireless/intel/iwlwifi/iwl-io.h iwl_write_prph(trans, ofs + trans->trans_cfg->umac_prph_offset, val); trans 142 drivers/net/wireless/intel/iwlwifi/iwl-io.h static inline int iwl_poll_umac_prph_bit(struct iwl_trans *trans, u32 addr, trans 145 drivers/net/wireless/intel/iwlwifi/iwl-io.h return iwl_poll_prph_bit(trans, addr + trans 146 drivers/net/wireless/intel/iwlwifi/iwl-io.h trans->trans_cfg->umac_prph_offset, trans 424 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c static void iwl_init_vht_hw_capab(struct iwl_trans *trans, trans 429 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c const struct iwl_cfg *cfg = trans->cfg; trans 466 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c if (trans->trans_cfg->mq_rx_supported) trans 473 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c if (trans->trans_cfg->mq_rx_supported) trans 699 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c static void iwl_init_sbands(struct iwl_trans *trans, trans 704 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c struct device *dev = trans->dev; trans 705 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c const struct iwl_cfg *cfg = trans->cfg; trans 718 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c iwl_init_ht_hw_capab(trans, data, &sband->ht_cap, NL80211_BAND_2GHZ, trans 730 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c iwl_init_ht_hw_capab(trans, data, &sband->ht_cap, NL80211_BAND_5GHZ, trans 733 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c iwl_init_vht_hw_capab(trans, data, &sband->vht_cap, trans 820 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c static void iwl_set_hw_address_from_csr(struct iwl_trans *trans, trans 824 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c cpu_to_le32(iwl_read32(trans, trans 825 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c trans->trans_cfg->csr->mac_addr0_strap)); trans 827 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c cpu_to_le32(iwl_read32(trans, trans 828 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c trans->trans_cfg->csr->mac_addr1_strap)); trans 838 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c mac_addr0 = cpu_to_le32(iwl_read32(trans, trans 839 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c trans->trans_cfg->csr->mac_addr0_otp)); trans 840 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c mac_addr1 = cpu_to_le32(iwl_read32(trans, trans 841 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c trans->trans_cfg->csr->mac_addr1_otp)); trans 846 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c static void iwl_set_hw_address_family_8000(struct iwl_trans *trans, trans 876 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c IWL_ERR(trans, trans 882 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c __le32 mac_addr0 = cpu_to_le32(iwl_trans_read_prph(trans, trans 884 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c __le32 mac_addr1 = cpu_to_le32(iwl_trans_read_prph(trans, trans 892 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c IWL_ERR(trans, "mac address is not found\n"); trans 895 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c static int iwl_set_hw_address(struct iwl_trans *trans, trans 901 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c iwl_set_hw_address_from_csr(trans, data); trans 913 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c iwl_set_hw_address_family_8000(trans, cfg, data, trans 918 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c IWL_ERR(trans, "no valid mac address was found\n"); trans 922 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c IWL_INFO(trans, "base HW address: %pM\n", data->hw_addr); trans 928 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c iwl_nvm_no_wide_in_5ghz(struct iwl_trans *trans, const struct iwl_cfg *cfg, trans 940 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c if (trans->trans_cfg->device_family == IWL_DEVICE_FAMILY_7000) { trans 949 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c IWL_DEBUG_EEPROM(trans->dev, trans 960 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c iwl_parse_nvm_data(struct iwl_trans *trans, const struct iwl_cfg *cfg, trans 1012 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c IWL_ERR(trans, trans 1039 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c if (iwl_set_hw_address(trans, cfg, data, nvm_hw, mac_override)) { trans 1047 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c if (iwl_nvm_no_wide_in_5ghz(trans, cfg, nvm_hw)) trans 1050 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c iwl_init_sbands(trans, data, ch_section, tx_chains, rx_chains, trans 1274 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c int iwl_read_external_nvm(struct iwl_trans *trans, trans 1299 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c IWL_DEBUG_EEPROM(trans->dev, "Read from external NVM\n"); trans 1302 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c if (trans->cfg->nvm_type != IWL_NVM_EXT) trans 1313 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c ret = request_firmware(&fw_entry, nvm_file_name, trans->dev); trans 1315 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c IWL_ERR(trans, "ERROR: %s isn't available %d\n", trans 1320 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c IWL_INFO(trans, "Loaded NVM file %s (%zu bytes)\n", trans 1324 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c IWL_ERR(trans, "NVM file too large\n"); trans 1343 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c IWL_INFO(trans, "NVM Version %08X\n", le32_to_cpu(dword_buff[2])); trans 1344 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c IWL_INFO(trans, "NVM Manufacturing date %08X\n", trans 1348 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c if (trans->trans_cfg->device_family == IWL_DEVICE_FAMILY_8000 && trans 1349 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c CSR_HW_REV_STEP(trans->hw_rev) == SILICON_C_STEP && trans 1360 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c IWL_ERR(trans, trans 1372 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c if (trans->cfg->nvm_type != IWL_NVM_EXT) { trans 1384 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c IWL_ERR(trans, "ERROR - section too large (%d)\n", trans 1391 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c IWL_ERR(trans, "ERROR - section empty\n"); trans 1397 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c IWL_ERR(trans, trans 1416 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c iwl_nvm_fixups(trans->hw_id, section_id, temp, section_size); trans 1431 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c struct iwl_nvm_data *iwl_get_nvm(struct iwl_trans *trans, trans 1462 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c ret = iwl_trans_send_cmd(trans, &hcmd); trans 1477 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c IWL_INFO(trans, "OTP is empty\n"); trans 1485 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c iwl_set_hw_address_from_csr(trans, nvm); trans 1489 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c IWL_ERR(trans, "no valid mac address was found\n"); trans 1494 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c IWL_INFO(trans, "base HW address: %pM\n", nvm->hw_addr); trans 1500 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c IWL_WARN(trans, trans 1532 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c iwl_init_sbands(trans, nvm, trans 87 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.h iwl_parse_nvm_data(struct iwl_trans *trans, const struct iwl_cfg *cfg, trans 123 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.h int iwl_read_external_nvm(struct iwl_trans *trans, trans 135 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.h struct iwl_nvm_data *iwl_get_nvm(struct iwl_trans *trans, trans 145 drivers/net/wireless/intel/iwlwifi/iwl-op-mode.h struct iwl_op_mode *(*start)(struct iwl_trans *trans, trans 96 drivers/net/wireless/intel/iwlwifi/iwl-phy-db.c struct iwl_trans *trans; trans 116 drivers/net/wireless/intel/iwlwifi/iwl-phy-db.c struct iwl_phy_db *iwl_phy_db_init(struct iwl_trans *trans) trans 124 drivers/net/wireless/intel/iwlwifi/iwl-phy-db.c phy_db->trans = trans; trans 257 drivers/net/wireless/intel/iwlwifi/iwl-phy-db.c IWL_DEBUG_INFO(phy_db->trans, trans 348 drivers/net/wireless/intel/iwlwifi/iwl-phy-db.c IWL_DEBUG_INFO(phy_db->trans, trans 363 drivers/net/wireless/intel/iwlwifi/iwl-phy-db.c IWL_DEBUG_INFO(phy_db->trans, trans 378 drivers/net/wireless/intel/iwlwifi/iwl-phy-db.c return iwl_trans_send_cmd(phy_db->trans, &cmd); trans 407 drivers/net/wireless/intel/iwlwifi/iwl-phy-db.c IWL_ERR(phy_db->trans, trans 413 drivers/net/wireless/intel/iwlwifi/iwl-phy-db.c IWL_DEBUG_INFO(phy_db->trans, trans 427 drivers/net/wireless/intel/iwlwifi/iwl-phy-db.c IWL_DEBUG_INFO(phy_db->trans, trans 434 drivers/net/wireless/intel/iwlwifi/iwl-phy-db.c IWL_ERR(phy_db->trans, "Cannot get Phy DB cfg section\n"); trans 440 drivers/net/wireless/intel/iwlwifi/iwl-phy-db.c IWL_ERR(phy_db->trans, trans 448 drivers/net/wireless/intel/iwlwifi/iwl-phy-db.c IWL_ERR(phy_db->trans, trans 455 drivers/net/wireless/intel/iwlwifi/iwl-phy-db.c IWL_ERR(phy_db->trans, trans 465 drivers/net/wireless/intel/iwlwifi/iwl-phy-db.c IWL_ERR(phy_db->trans, trans 475 drivers/net/wireless/intel/iwlwifi/iwl-phy-db.c IWL_ERR(phy_db->trans, trans 480 drivers/net/wireless/intel/iwlwifi/iwl-phy-db.c IWL_DEBUG_INFO(phy_db->trans, trans 67 drivers/net/wireless/intel/iwlwifi/iwl-phy-db.h struct iwl_phy_db *iwl_phy_db_init(struct iwl_trans *trans); trans 67 drivers/net/wireless/intel/iwlwifi/iwl-scd.h static inline void iwl_scd_txq_set_chain(struct iwl_trans *trans, trans 70 drivers/net/wireless/intel/iwlwifi/iwl-scd.h iwl_set_bits_prph(trans, SCD_QUEUECHAIN_SEL, BIT(txq_id)); trans 73 drivers/net/wireless/intel/iwlwifi/iwl-scd.h static inline void iwl_scd_txq_enable_agg(struct iwl_trans *trans, trans 76 drivers/net/wireless/intel/iwlwifi/iwl-scd.h iwl_set_bits_prph(trans, SCD_AGGR_SEL, BIT(txq_id)); trans 79 drivers/net/wireless/intel/iwlwifi/iwl-scd.h static inline void iwl_scd_txq_disable_agg(struct iwl_trans *trans, trans 82 drivers/net/wireless/intel/iwlwifi/iwl-scd.h iwl_clear_bits_prph(trans, SCD_AGGR_SEL, BIT(txq_id)); trans 85 drivers/net/wireless/intel/iwlwifi/iwl-scd.h static inline void iwl_scd_disable_agg(struct iwl_trans *trans) trans 87 drivers/net/wireless/intel/iwlwifi/iwl-scd.h iwl_set_bits_prph(trans, SCD_AGGR_SEL, 0); trans 90 drivers/net/wireless/intel/iwlwifi/iwl-scd.h static inline void iwl_scd_activate_fifos(struct iwl_trans *trans) trans 92 drivers/net/wireless/intel/iwlwifi/iwl-scd.h iwl_write_prph(trans, SCD_TXFACT, IWL_MASK(0, 7)); trans 95 drivers/net/wireless/intel/iwlwifi/iwl-scd.h static inline void iwl_scd_deactivate_fifos(struct iwl_trans *trans) trans 97 drivers/net/wireless/intel/iwlwifi/iwl-scd.h iwl_write_prph(trans, SCD_TXFACT, 0); trans 100 drivers/net/wireless/intel/iwlwifi/iwl-scd.h static inline void iwl_scd_enable_set_active(struct iwl_trans *trans, trans 103 drivers/net/wireless/intel/iwlwifi/iwl-scd.h iwl_write_prph(trans, SCD_EN_CTRL, value); trans 130 drivers/net/wireless/intel/iwlwifi/iwl-scd.h static inline void iwl_scd_txq_set_inactive(struct iwl_trans *trans, trans 133 drivers/net/wireless/intel/iwlwifi/iwl-scd.h iwl_write_prph(trans, SCD_QUEUE_STATUS_BITS(txq_id), trans 73 drivers/net/wireless/intel/iwlwifi/iwl-trans.c struct iwl_trans *trans; trans 78 drivers/net/wireless/intel/iwlwifi/iwl-trans.c trans = devm_kzalloc(dev, sizeof(*trans) + priv_size, GFP_KERNEL); trans 79 drivers/net/wireless/intel/iwlwifi/iwl-trans.c if (!trans) trans 83 drivers/net/wireless/intel/iwlwifi/iwl-trans.c lockdep_init_map(&trans->sync_cmd_lockdep_map, "sync_cmd_lockdep_map", trans 87 drivers/net/wireless/intel/iwlwifi/iwl-trans.c trans->dev = dev; trans 88 drivers/net/wireless/intel/iwlwifi/iwl-trans.c trans->ops = ops; trans 89 drivers/net/wireless/intel/iwlwifi/iwl-trans.c trans->num_rx_queues = 1; trans 91 drivers/net/wireless/intel/iwlwifi/iwl-trans.c snprintf(trans->dev_cmd_pool_name, sizeof(trans->dev_cmd_pool_name), trans 92 drivers/net/wireless/intel/iwlwifi/iwl-trans.c "iwl_cmd_pool:%s", dev_name(trans->dev)); trans 93 drivers/net/wireless/intel/iwlwifi/iwl-trans.c trans->dev_cmd_pool = trans 94 drivers/net/wireless/intel/iwlwifi/iwl-trans.c kmem_cache_create(trans->dev_cmd_pool_name, trans 97 drivers/net/wireless/intel/iwlwifi/iwl-trans.c if (!trans->dev_cmd_pool) trans 102 drivers/net/wireless/intel/iwlwifi/iwl-trans.c return trans; trans 105 drivers/net/wireless/intel/iwlwifi/iwl-trans.c void iwl_trans_free(struct iwl_trans *trans) trans 107 drivers/net/wireless/intel/iwlwifi/iwl-trans.c kmem_cache_destroy(trans->dev_cmd_pool); trans 110 drivers/net/wireless/intel/iwlwifi/iwl-trans.c int iwl_trans_send_cmd(struct iwl_trans *trans, struct iwl_host_cmd *cmd) trans 115 drivers/net/wireless/intel/iwlwifi/iwl-trans.c test_bit(STATUS_RFKILL_OPMODE, &trans->status))) trans 118 drivers/net/wireless/intel/iwlwifi/iwl-trans.c if (unlikely(test_bit(STATUS_FW_ERROR, &trans->status))) trans 121 drivers/net/wireless/intel/iwlwifi/iwl-trans.c if (unlikely(trans->state != IWL_TRANS_FW_ALIVE)) { trans 122 drivers/net/wireless/intel/iwlwifi/iwl-trans.c IWL_ERR(trans, "%s bad state = %d\n", __func__, trans->state); trans 131 drivers/net/wireless/intel/iwlwifi/iwl-trans.c lock_map_acquire_read(&trans->sync_cmd_lockdep_map); trans 133 drivers/net/wireless/intel/iwlwifi/iwl-trans.c if (trans->wide_cmd_header && !iwl_cmd_groupid(cmd->id)) trans 136 drivers/net/wireless/intel/iwlwifi/iwl-trans.c ret = trans->ops->send_cmd(trans, cmd); trans 139 drivers/net/wireless/intel/iwlwifi/iwl-trans.c lock_map_release(&trans->sync_cmd_lockdep_map); trans 165 drivers/net/wireless/intel/iwlwifi/iwl-trans.c const char *iwl_get_cmd_string(struct iwl_trans *trans, u32 id) trans 175 drivers/net/wireless/intel/iwlwifi/iwl-trans.c if (!trans->command_groups || grp >= trans->command_groups_size || trans 176 drivers/net/wireless/intel/iwlwifi/iwl-trans.c !trans->command_groups[grp].arr) trans 179 drivers/net/wireless/intel/iwlwifi/iwl-trans.c arr = &trans->command_groups[grp]; trans 187 drivers/net/wireless/intel/iwlwifi/iwl-trans.c int iwl_cmd_groups_verify_sorted(const struct iwl_trans_config *trans) trans 192 drivers/net/wireless/intel/iwlwifi/iwl-trans.c for (i = 0; i < trans->command_groups_size; i++) { trans 193 drivers/net/wireless/intel/iwlwifi/iwl-trans.c arr = &trans->command_groups[i]; trans 547 drivers/net/wireless/intel/iwlwifi/iwl-trans.h int (*start_fw)(struct iwl_trans *trans, const struct fw_img *fw, trans 549 drivers/net/wireless/intel/iwlwifi/iwl-trans.h void (*fw_alive)(struct iwl_trans *trans, u32 scd_addr); trans 550 drivers/net/wireless/intel/iwlwifi/iwl-trans.h void (*stop_device)(struct iwl_trans *trans); trans 552 drivers/net/wireless/intel/iwlwifi/iwl-trans.h int (*d3_suspend)(struct iwl_trans *trans, bool test, bool reset); trans 553 drivers/net/wireless/intel/iwlwifi/iwl-trans.h int (*d3_resume)(struct iwl_trans *trans, enum iwl_d3_status *status, trans 556 drivers/net/wireless/intel/iwlwifi/iwl-trans.h int (*send_cmd)(struct iwl_trans *trans, struct iwl_host_cmd *cmd); trans 558 drivers/net/wireless/intel/iwlwifi/iwl-trans.h int (*tx)(struct iwl_trans *trans, struct sk_buff *skb, trans 560 drivers/net/wireless/intel/iwlwifi/iwl-trans.h void (*reclaim)(struct iwl_trans *trans, int queue, int ssn, trans 563 drivers/net/wireless/intel/iwlwifi/iwl-trans.h void (*set_q_ptrs)(struct iwl_trans *trans, int queue, int ptr); trans 565 drivers/net/wireless/intel/iwlwifi/iwl-trans.h bool (*txq_enable)(struct iwl_trans *trans, int queue, u16 ssn, trans 568 drivers/net/wireless/intel/iwlwifi/iwl-trans.h void (*txq_disable)(struct iwl_trans *trans, int queue, trans 571 drivers/net/wireless/intel/iwlwifi/iwl-trans.h int (*txq_alloc)(struct iwl_trans *trans, trans 575 drivers/net/wireless/intel/iwlwifi/iwl-trans.h void (*txq_free)(struct iwl_trans *trans, int queue); trans 576 drivers/net/wireless/intel/iwlwifi/iwl-trans.h int (*rxq_dma_data)(struct iwl_trans *trans, int queue, trans 579 drivers/net/wireless/intel/iwlwifi/iwl-trans.h void (*txq_set_shared_mode)(struct iwl_trans *trans, u32 txq_id, trans 582 drivers/net/wireless/intel/iwlwifi/iwl-trans.h int (*wait_tx_queues_empty)(struct iwl_trans *trans, u32 txq_bm); trans 583 drivers/net/wireless/intel/iwlwifi/iwl-trans.h int (*wait_txq_empty)(struct iwl_trans *trans, int queue); trans 584 drivers/net/wireless/intel/iwlwifi/iwl-trans.h void (*freeze_txq_timer)(struct iwl_trans *trans, unsigned long txqs, trans 586 drivers/net/wireless/intel/iwlwifi/iwl-trans.h void (*block_txq_ptrs)(struct iwl_trans *trans, bool block); trans 588 drivers/net/wireless/intel/iwlwifi/iwl-trans.h void (*write8)(struct iwl_trans *trans, u32 ofs, u8 val); trans 589 drivers/net/wireless/intel/iwlwifi/iwl-trans.h void (*write32)(struct iwl_trans *trans, u32 ofs, u32 val); trans 590 drivers/net/wireless/intel/iwlwifi/iwl-trans.h u32 (*read32)(struct iwl_trans *trans, u32 ofs); trans 591 drivers/net/wireless/intel/iwlwifi/iwl-trans.h u32 (*read_prph)(struct iwl_trans *trans, u32 ofs); trans 592 drivers/net/wireless/intel/iwlwifi/iwl-trans.h void (*write_prph)(struct iwl_trans *trans, u32 ofs, u32 val); trans 593 drivers/net/wireless/intel/iwlwifi/iwl-trans.h int (*read_mem)(struct iwl_trans *trans, u32 addr, trans 595 drivers/net/wireless/intel/iwlwifi/iwl-trans.h int (*write_mem)(struct iwl_trans *trans, u32 addr, trans 597 drivers/net/wireless/intel/iwlwifi/iwl-trans.h void (*configure)(struct iwl_trans *trans, trans 599 drivers/net/wireless/intel/iwlwifi/iwl-trans.h void (*set_pmi)(struct iwl_trans *trans, bool state); trans 600 drivers/net/wireless/intel/iwlwifi/iwl-trans.h void (*sw_reset)(struct iwl_trans *trans); trans 601 drivers/net/wireless/intel/iwlwifi/iwl-trans.h bool (*grab_nic_access)(struct iwl_trans *trans, unsigned long *flags); trans 602 drivers/net/wireless/intel/iwlwifi/iwl-trans.h void (*release_nic_access)(struct iwl_trans *trans, trans 604 drivers/net/wireless/intel/iwlwifi/iwl-trans.h void (*set_bits_mask)(struct iwl_trans *trans, u32 reg, u32 mask, trans 606 drivers/net/wireless/intel/iwlwifi/iwl-trans.h int (*suspend)(struct iwl_trans *trans); trans 607 drivers/net/wireless/intel/iwlwifi/iwl-trans.h void (*resume)(struct iwl_trans *trans); trans 609 drivers/net/wireless/intel/iwlwifi/iwl-trans.h struct iwl_trans_dump_data *(*dump_data)(struct iwl_trans *trans, trans 611 drivers/net/wireless/intel/iwlwifi/iwl-trans.h void (*debugfs_cleanup)(struct iwl_trans *trans); trans 612 drivers/net/wireless/intel/iwlwifi/iwl-trans.h void (*sync_nmi)(struct iwl_trans *trans); trans 832 drivers/net/wireless/intel/iwlwifi/iwl-trans.h const char *iwl_get_cmd_string(struct iwl_trans *trans, u32 id); trans 833 drivers/net/wireless/intel/iwlwifi/iwl-trans.h int iwl_cmd_groups_verify_sorted(const struct iwl_trans_config *trans); trans 835 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline void iwl_trans_configure(struct iwl_trans *trans, trans 838 drivers/net/wireless/intel/iwlwifi/iwl-trans.h trans->op_mode = trans_cfg->op_mode; trans 840 drivers/net/wireless/intel/iwlwifi/iwl-trans.h trans->ops->configure(trans, trans_cfg); trans 844 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline int iwl_trans_start_hw(struct iwl_trans *trans) trans 848 drivers/net/wireless/intel/iwlwifi/iwl-trans.h return trans->ops->start_hw(trans); trans 851 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline void iwl_trans_op_mode_leave(struct iwl_trans *trans) trans 855 drivers/net/wireless/intel/iwlwifi/iwl-trans.h if (trans->ops->op_mode_leave) trans 856 drivers/net/wireless/intel/iwlwifi/iwl-trans.h trans->ops->op_mode_leave(trans); trans 858 drivers/net/wireless/intel/iwlwifi/iwl-trans.h trans->op_mode = NULL; trans 860 drivers/net/wireless/intel/iwlwifi/iwl-trans.h trans->state = IWL_TRANS_NO_FW; trans 863 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline void iwl_trans_fw_alive(struct iwl_trans *trans, u32 scd_addr) trans 867 drivers/net/wireless/intel/iwlwifi/iwl-trans.h trans->state = IWL_TRANS_FW_ALIVE; trans 869 drivers/net/wireless/intel/iwlwifi/iwl-trans.h trans->ops->fw_alive(trans, scd_addr); trans 872 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline int iwl_trans_start_fw(struct iwl_trans *trans, trans 878 drivers/net/wireless/intel/iwlwifi/iwl-trans.h WARN_ON_ONCE(!trans->rx_mpdu_cmd); trans 880 drivers/net/wireless/intel/iwlwifi/iwl-trans.h clear_bit(STATUS_FW_ERROR, &trans->status); trans 881 drivers/net/wireless/intel/iwlwifi/iwl-trans.h return trans->ops->start_fw(trans, fw, run_in_rfkill); trans 884 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline void iwl_trans_stop_device(struct iwl_trans *trans) trans 888 drivers/net/wireless/intel/iwlwifi/iwl-trans.h trans->ops->stop_device(trans); trans 890 drivers/net/wireless/intel/iwlwifi/iwl-trans.h trans->state = IWL_TRANS_NO_FW; trans 893 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline int iwl_trans_d3_suspend(struct iwl_trans *trans, bool test, trans 897 drivers/net/wireless/intel/iwlwifi/iwl-trans.h if (!trans->ops->d3_suspend) trans 900 drivers/net/wireless/intel/iwlwifi/iwl-trans.h return trans->ops->d3_suspend(trans, test, reset); trans 903 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline int iwl_trans_d3_resume(struct iwl_trans *trans, trans 908 drivers/net/wireless/intel/iwlwifi/iwl-trans.h if (!trans->ops->d3_resume) trans 911 drivers/net/wireless/intel/iwlwifi/iwl-trans.h return trans->ops->d3_resume(trans, status, test, reset); trans 914 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline int iwl_trans_suspend(struct iwl_trans *trans) trans 916 drivers/net/wireless/intel/iwlwifi/iwl-trans.h if (!trans->ops->suspend) trans 919 drivers/net/wireless/intel/iwlwifi/iwl-trans.h return trans->ops->suspend(trans); trans 922 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline void iwl_trans_resume(struct iwl_trans *trans) trans 924 drivers/net/wireless/intel/iwlwifi/iwl-trans.h if (trans->ops->resume) trans 925 drivers/net/wireless/intel/iwlwifi/iwl-trans.h trans->ops->resume(trans); trans 929 drivers/net/wireless/intel/iwlwifi/iwl-trans.h iwl_trans_dump_data(struct iwl_trans *trans, u32 dump_mask) trans 931 drivers/net/wireless/intel/iwlwifi/iwl-trans.h if (!trans->ops->dump_data) trans 933 drivers/net/wireless/intel/iwlwifi/iwl-trans.h return trans->ops->dump_data(trans, dump_mask); trans 937 drivers/net/wireless/intel/iwlwifi/iwl-trans.h iwl_trans_alloc_tx_cmd(struct iwl_trans *trans) trans 939 drivers/net/wireless/intel/iwlwifi/iwl-trans.h return kmem_cache_zalloc(trans->dev_cmd_pool, GFP_ATOMIC); trans 942 drivers/net/wireless/intel/iwlwifi/iwl-trans.h int iwl_trans_send_cmd(struct iwl_trans *trans, struct iwl_host_cmd *cmd); trans 944 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline void iwl_trans_free_tx_cmd(struct iwl_trans *trans, trans 947 drivers/net/wireless/intel/iwlwifi/iwl-trans.h kmem_cache_free(trans->dev_cmd_pool, dev_cmd); trans 950 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline int iwl_trans_tx(struct iwl_trans *trans, struct sk_buff *skb, trans 953 drivers/net/wireless/intel/iwlwifi/iwl-trans.h if (unlikely(test_bit(STATUS_FW_ERROR, &trans->status))) trans 956 drivers/net/wireless/intel/iwlwifi/iwl-trans.h if (WARN_ON_ONCE(trans->state != IWL_TRANS_FW_ALIVE)) { trans 957 drivers/net/wireless/intel/iwlwifi/iwl-trans.h IWL_ERR(trans, "%s bad state = %d\n", __func__, trans->state); trans 961 drivers/net/wireless/intel/iwlwifi/iwl-trans.h return trans->ops->tx(trans, skb, dev_cmd, queue); trans 964 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline void iwl_trans_reclaim(struct iwl_trans *trans, int queue, trans 967 drivers/net/wireless/intel/iwlwifi/iwl-trans.h if (WARN_ON_ONCE(trans->state != IWL_TRANS_FW_ALIVE)) { trans 968 drivers/net/wireless/intel/iwlwifi/iwl-trans.h IWL_ERR(trans, "%s bad state = %d\n", __func__, trans->state); trans 972 drivers/net/wireless/intel/iwlwifi/iwl-trans.h trans->ops->reclaim(trans, queue, ssn, skbs); trans 975 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline void iwl_trans_set_q_ptrs(struct iwl_trans *trans, int queue, trans 978 drivers/net/wireless/intel/iwlwifi/iwl-trans.h if (WARN_ON_ONCE(trans->state != IWL_TRANS_FW_ALIVE)) { trans 979 drivers/net/wireless/intel/iwlwifi/iwl-trans.h IWL_ERR(trans, "%s bad state = %d\n", __func__, trans->state); trans 983 drivers/net/wireless/intel/iwlwifi/iwl-trans.h trans->ops->set_q_ptrs(trans, queue, ptr); trans 986 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline void iwl_trans_txq_disable(struct iwl_trans *trans, int queue, trans 989 drivers/net/wireless/intel/iwlwifi/iwl-trans.h trans->ops->txq_disable(trans, queue, configure_scd); trans 993 drivers/net/wireless/intel/iwlwifi/iwl-trans.h iwl_trans_txq_enable_cfg(struct iwl_trans *trans, int queue, u16 ssn, trans 999 drivers/net/wireless/intel/iwlwifi/iwl-trans.h if (WARN_ON_ONCE(trans->state != IWL_TRANS_FW_ALIVE)) { trans 1000 drivers/net/wireless/intel/iwlwifi/iwl-trans.h IWL_ERR(trans, "%s bad state = %d\n", __func__, trans->state); trans 1004 drivers/net/wireless/intel/iwlwifi/iwl-trans.h return trans->ops->txq_enable(trans, queue, ssn, trans 1009 drivers/net/wireless/intel/iwlwifi/iwl-trans.h iwl_trans_get_rxq_dma_data(struct iwl_trans *trans, int queue, trans 1012 drivers/net/wireless/intel/iwlwifi/iwl-trans.h if (WARN_ON_ONCE(!trans->ops->rxq_dma_data)) trans 1015 drivers/net/wireless/intel/iwlwifi/iwl-trans.h return trans->ops->rxq_dma_data(trans, queue, data); trans 1019 drivers/net/wireless/intel/iwlwifi/iwl-trans.h iwl_trans_txq_free(struct iwl_trans *trans, int queue) trans 1021 drivers/net/wireless/intel/iwlwifi/iwl-trans.h if (WARN_ON_ONCE(!trans->ops->txq_free)) trans 1024 drivers/net/wireless/intel/iwlwifi/iwl-trans.h trans->ops->txq_free(trans, queue); trans 1028 drivers/net/wireless/intel/iwlwifi/iwl-trans.h iwl_trans_txq_alloc(struct iwl_trans *trans, trans 1035 drivers/net/wireless/intel/iwlwifi/iwl-trans.h if (WARN_ON_ONCE(!trans->ops->txq_alloc)) trans 1038 drivers/net/wireless/intel/iwlwifi/iwl-trans.h if (WARN_ON_ONCE(trans->state != IWL_TRANS_FW_ALIVE)) { trans 1039 drivers/net/wireless/intel/iwlwifi/iwl-trans.h IWL_ERR(trans, "%s bad state = %d\n", __func__, trans->state); trans 1043 drivers/net/wireless/intel/iwlwifi/iwl-trans.h return trans->ops->txq_alloc(trans, flags, sta_id, tid, trans 1047 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline void iwl_trans_txq_set_shared_mode(struct iwl_trans *trans, trans 1050 drivers/net/wireless/intel/iwlwifi/iwl-trans.h if (trans->ops->txq_set_shared_mode) trans 1051 drivers/net/wireless/intel/iwlwifi/iwl-trans.h trans->ops->txq_set_shared_mode(trans, queue, shared_mode); trans 1054 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline void iwl_trans_txq_enable(struct iwl_trans *trans, int queue, trans 1067 drivers/net/wireless/intel/iwlwifi/iwl-trans.h iwl_trans_txq_enable_cfg(trans, queue, ssn, &cfg, queue_wdg_timeout); trans 1071 drivers/net/wireless/intel/iwlwifi/iwl-trans.h void iwl_trans_ac_txq_enable(struct iwl_trans *trans, int queue, int fifo, trans 1082 drivers/net/wireless/intel/iwlwifi/iwl-trans.h iwl_trans_txq_enable_cfg(trans, queue, 0, &cfg, queue_wdg_timeout); trans 1085 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline void iwl_trans_freeze_txq_timer(struct iwl_trans *trans, trans 1089 drivers/net/wireless/intel/iwlwifi/iwl-trans.h if (WARN_ON_ONCE(trans->state != IWL_TRANS_FW_ALIVE)) { trans 1090 drivers/net/wireless/intel/iwlwifi/iwl-trans.h IWL_ERR(trans, "%s bad state = %d\n", __func__, trans->state); trans 1094 drivers/net/wireless/intel/iwlwifi/iwl-trans.h if (trans->ops->freeze_txq_timer) trans 1095 drivers/net/wireless/intel/iwlwifi/iwl-trans.h trans->ops->freeze_txq_timer(trans, txqs, freeze); trans 1098 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline void iwl_trans_block_txq_ptrs(struct iwl_trans *trans, trans 1101 drivers/net/wireless/intel/iwlwifi/iwl-trans.h if (WARN_ON_ONCE(trans->state != IWL_TRANS_FW_ALIVE)) { trans 1102 drivers/net/wireless/intel/iwlwifi/iwl-trans.h IWL_ERR(trans, "%s bad state = %d\n", __func__, trans->state); trans 1106 drivers/net/wireless/intel/iwlwifi/iwl-trans.h if (trans->ops->block_txq_ptrs) trans 1107 drivers/net/wireless/intel/iwlwifi/iwl-trans.h trans->ops->block_txq_ptrs(trans, block); trans 1110 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline int iwl_trans_wait_tx_queues_empty(struct iwl_trans *trans, trans 1113 drivers/net/wireless/intel/iwlwifi/iwl-trans.h if (WARN_ON_ONCE(!trans->ops->wait_tx_queues_empty)) trans 1116 drivers/net/wireless/intel/iwlwifi/iwl-trans.h if (WARN_ON_ONCE(trans->state != IWL_TRANS_FW_ALIVE)) { trans 1117 drivers/net/wireless/intel/iwlwifi/iwl-trans.h IWL_ERR(trans, "%s bad state = %d\n", __func__, trans->state); trans 1121 drivers/net/wireless/intel/iwlwifi/iwl-trans.h return trans->ops->wait_tx_queues_empty(trans, txqs); trans 1124 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline int iwl_trans_wait_txq_empty(struct iwl_trans *trans, int queue) trans 1126 drivers/net/wireless/intel/iwlwifi/iwl-trans.h if (WARN_ON_ONCE(!trans->ops->wait_txq_empty)) trans 1129 drivers/net/wireless/intel/iwlwifi/iwl-trans.h if (WARN_ON_ONCE(trans->state != IWL_TRANS_FW_ALIVE)) { trans 1130 drivers/net/wireless/intel/iwlwifi/iwl-trans.h IWL_ERR(trans, "%s bad state = %d\n", __func__, trans->state); trans 1134 drivers/net/wireless/intel/iwlwifi/iwl-trans.h return trans->ops->wait_txq_empty(trans, queue); trans 1137 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline void iwl_trans_write8(struct iwl_trans *trans, u32 ofs, u8 val) trans 1139 drivers/net/wireless/intel/iwlwifi/iwl-trans.h trans->ops->write8(trans, ofs, val); trans 1142 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline void iwl_trans_write32(struct iwl_trans *trans, u32 ofs, u32 val) trans 1144 drivers/net/wireless/intel/iwlwifi/iwl-trans.h trans->ops->write32(trans, ofs, val); trans 1147 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline u32 iwl_trans_read32(struct iwl_trans *trans, u32 ofs) trans 1149 drivers/net/wireless/intel/iwlwifi/iwl-trans.h return trans->ops->read32(trans, ofs); trans 1152 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline u32 iwl_trans_read_prph(struct iwl_trans *trans, u32 ofs) trans 1154 drivers/net/wireless/intel/iwlwifi/iwl-trans.h return trans->ops->read_prph(trans, ofs); trans 1157 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline void iwl_trans_write_prph(struct iwl_trans *trans, u32 ofs, trans 1160 drivers/net/wireless/intel/iwlwifi/iwl-trans.h return trans->ops->write_prph(trans, ofs, val); trans 1163 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline int iwl_trans_read_mem(struct iwl_trans *trans, u32 addr, trans 1166 drivers/net/wireless/intel/iwlwifi/iwl-trans.h return trans->ops->read_mem(trans, addr, buf, dwords); trans 1169 drivers/net/wireless/intel/iwlwifi/iwl-trans.h #define iwl_trans_read_mem_bytes(trans, addr, buf, bufsize) \ trans 1173 drivers/net/wireless/intel/iwlwifi/iwl-trans.h iwl_trans_read_mem(trans, addr, buf, (bufsize) / sizeof(u32));\ trans 1176 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline u32 iwl_trans_read_mem32(struct iwl_trans *trans, u32 addr) trans 1180 drivers/net/wireless/intel/iwlwifi/iwl-trans.h if (WARN_ON(iwl_trans_read_mem(trans, addr, &value, 1))) trans 1186 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline int iwl_trans_write_mem(struct iwl_trans *trans, u32 addr, trans 1189 drivers/net/wireless/intel/iwlwifi/iwl-trans.h return trans->ops->write_mem(trans, addr, buf, dwords); trans 1192 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline u32 iwl_trans_write_mem32(struct iwl_trans *trans, u32 addr, trans 1195 drivers/net/wireless/intel/iwlwifi/iwl-trans.h return iwl_trans_write_mem(trans, addr, &val, 1); trans 1198 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline void iwl_trans_set_pmi(struct iwl_trans *trans, bool state) trans 1200 drivers/net/wireless/intel/iwlwifi/iwl-trans.h if (trans->ops->set_pmi) trans 1201 drivers/net/wireless/intel/iwlwifi/iwl-trans.h trans->ops->set_pmi(trans, state); trans 1204 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline void iwl_trans_sw_reset(struct iwl_trans *trans) trans 1206 drivers/net/wireless/intel/iwlwifi/iwl-trans.h if (trans->ops->sw_reset) trans 1207 drivers/net/wireless/intel/iwlwifi/iwl-trans.h trans->ops->sw_reset(trans); trans 1211 drivers/net/wireless/intel/iwlwifi/iwl-trans.h iwl_trans_set_bits_mask(struct iwl_trans *trans, u32 reg, u32 mask, u32 value) trans 1213 drivers/net/wireless/intel/iwlwifi/iwl-trans.h trans->ops->set_bits_mask(trans, reg, mask, value); trans 1216 drivers/net/wireless/intel/iwlwifi/iwl-trans.h #define iwl_trans_grab_nic_access(trans, flags) \ trans 1218 drivers/net/wireless/intel/iwlwifi/iwl-trans.h likely((trans)->ops->grab_nic_access(trans, flags))) trans 1221 drivers/net/wireless/intel/iwlwifi/iwl-trans.h iwl_trans_release_nic_access(struct iwl_trans *trans, unsigned long *flags) trans 1223 drivers/net/wireless/intel/iwlwifi/iwl-trans.h trans->ops->release_nic_access(trans, flags); trans 1227 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline void iwl_trans_fw_error(struct iwl_trans *trans) trans 1229 drivers/net/wireless/intel/iwlwifi/iwl-trans.h if (WARN_ON_ONCE(!trans->op_mode)) trans 1233 drivers/net/wireless/intel/iwlwifi/iwl-trans.h if (!test_and_set_bit(STATUS_FW_ERROR, &trans->status)) trans 1234 drivers/net/wireless/intel/iwlwifi/iwl-trans.h iwl_op_mode_nic_error(trans->op_mode); trans 1237 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline void iwl_trans_sync_nmi(struct iwl_trans *trans) trans 1239 drivers/net/wireless/intel/iwlwifi/iwl-trans.h if (trans->ops->sync_nmi) trans 1240 drivers/net/wireless/intel/iwlwifi/iwl-trans.h trans->ops->sync_nmi(trans); trans 1243 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline bool iwl_trans_dbg_ini_valid(struct iwl_trans *trans) trans 1245 drivers/net/wireless/intel/iwlwifi/iwl-trans.h return trans->dbg.internal_ini_cfg != IWL_INI_CFG_STATE_NOT_LOADED || trans 1246 drivers/net/wireless/intel/iwlwifi/iwl-trans.h trans->dbg.external_ini_cfg != IWL_INI_CFG_STATE_NOT_LOADED; trans 1257 drivers/net/wireless/intel/iwlwifi/iwl-trans.h void iwl_trans_free(struct iwl_trans *trans); trans 337 drivers/net/wireless/intel/iwlwifi/mvm/d3.c mvm->trans->num_rx_queues); trans 1057 drivers/net/wireless/intel/iwlwifi/mvm/d3.c if (mvm->trans->trans_cfg->device_family < IWL_DEVICE_FAMILY_9000) trans 1075 drivers/net/wireless/intel/iwlwifi/mvm/d3.c ret = iwl_trans_d3_suspend(mvm->trans, test, !unified_image); trans 1096 drivers/net/wireless/intel/iwlwifi/mvm/d3.c struct iwl_trans *trans = mvm->trans; trans 1103 drivers/net/wireless/intel/iwlwifi/mvm/d3.c ret = iwl_trans_suspend(trans); trans 1107 drivers/net/wireless/intel/iwlwifi/mvm/d3.c trans->system_pm_mode = IWL_PLAT_PM_MODE_D3; trans 1300 drivers/net/wireless/intel/iwlwifi/mvm/d3.c for (i = 1; i < mvm->trans->num_rx_queues; i++) trans 1665 drivers/net/wireless/intel/iwlwifi/mvm/d3.c if (mvm->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22000) { trans 1667 drivers/net/wireless/intel/iwlwifi/mvm/d3.c iwl_trans_set_q_ptrs(mvm->trans, trans 1899 drivers/net/wireless/intel/iwlwifi/mvm/d3.c u32 base = mvm->trans->dbg.lmac_error_event_table[0]; trans 1906 drivers/net/wireless/intel/iwlwifi/mvm/d3.c iwl_trans_read_mem_bytes(mvm->trans, base, trans 1940 drivers/net/wireless/intel/iwlwifi/mvm/d3.c set_bit(STATUS_FW_ERROR, &mvm->trans->status); trans 1948 drivers/net/wireless/intel/iwlwifi/mvm/d3.c ret = iwl_trans_d3_resume(mvm->trans, &d3_status, test, !unified_image); trans 2037 drivers/net/wireless/intel/iwlwifi/mvm/d3.c iwl_trans_resume(mvm->trans); trans 2049 drivers/net/wireless/intel/iwlwifi/mvm/d3.c mvm->trans->system_pm_mode = IWL_PLAT_PM_MODE_DISABLED; trans 2062 drivers/net/wireless/intel/iwlwifi/mvm/d3.c device_set_wakeup_enable(mvm->trans->dev, enabled); trans 2078 drivers/net/wireless/intel/iwlwifi/mvm/d3.c mvm->trans->system_pm_mode = IWL_PLAT_PM_MODE_D3; trans 2107 drivers/net/wireless/intel/iwlwifi/mvm/d3.c pme_asserted = iwl_trans_read_mem32(mvm->trans, trans 2149 drivers/net/wireless/intel/iwlwifi/mvm/d3.c mvm->trans->system_pm_mode = IWL_PLAT_PM_MODE_DISABLED; trans 223 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c iwl_trans_read_mem_bytes(mvm->trans, ofs, ptr, len); trans 750 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c mvm->trans->cfg->fw_name_pre); trans 754 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c mvm->fwrt.trans->cfg->name); trans 1062 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c iwl_force_nmi(mvm->trans); trans 1176 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c size_t mpdu_cmd_hdr_size = (mvm->trans->trans_cfg->device_family >= trans 1185 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c if (!mvm->trans->trans_cfg->mq_rx_supported) trans 1605 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c iwl_read_prph(mvm->trans, mvm->dbgfs_prph_reg_addr)); trans 1626 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c iwl_write_prph(mvm->trans, mvm->dbgfs_prph_reg_addr, value); trans 116 drivers/net/wireless/intel/iwlwifi/mvm/fw.c if (mvm->trans->num_rx_queues == 1) trans 122 drivers/net/wireless/intel/iwlwifi/mvm/fw.c 1 + (i % (mvm->trans->num_rx_queues - 1)); trans 138 drivers/net/wireless/intel/iwlwifi/mvm/fw.c num_queues = mvm->trans->num_rx_queues - 1; trans 152 drivers/net/wireless/intel/iwlwifi/mvm/fw.c iwl_trans_get_rxq_dma_data(mvm->trans, i + 1, &data); trans 238 drivers/net/wireless/intel/iwlwifi/mvm/fw.c iwl_fw_lmac1_set_alive_err_table(mvm->trans, lmac_error_event_table); trans 241 drivers/net/wireless/intel/iwlwifi/mvm/fw.c mvm->trans->dbg.lmac_error_event_table[1] = trans 249 drivers/net/wireless/intel/iwlwifi/mvm/fw.c mvm->trans->cfg->min_umac_error_event_table) { trans 261 drivers/net/wireless/intel/iwlwifi/mvm/fw.c iwl_fw_umac_set_alive_err_table(mvm->trans, trans 340 drivers/net/wireless/intel/iwlwifi/mvm/fw.c ret = iwl_trans_start_fw(mvm->trans, fw, run_in_rfkill); trans 354 drivers/net/wireless/intel/iwlwifi/mvm/fw.c struct iwl_trans *trans = mvm->trans; trans 360 drivers/net/wireless/intel/iwlwifi/mvm/fw.c if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22000) trans 363 drivers/net/wireless/intel/iwlwifi/mvm/fw.c iwl_read_umac_prph(trans, UMAG_SB_CPU_1_STATUS), trans 364 drivers/net/wireless/intel/iwlwifi/mvm/fw.c iwl_read_umac_prph(trans, trans 366 drivers/net/wireless/intel/iwlwifi/mvm/fw.c else if (trans->trans_cfg->device_family >= trans 370 drivers/net/wireless/intel/iwlwifi/mvm/fw.c iwl_read_prph(trans, SB_CPU_1_STATUS), trans 371 drivers/net/wireless/intel/iwlwifi/mvm/fw.c iwl_read_prph(trans, SB_CPU_2_STATUS)); trans 382 drivers/net/wireless/intel/iwlwifi/mvm/fw.c iwl_trans_fw_alive(mvm->trans, alive_data.scd_base_addr); trans 423 drivers/net/wireless/intel/iwlwifi/mvm/fw.c if (mvm->trans->cfg->tx_with_siso_diversity) trans 463 drivers/net/wireless/intel/iwlwifi/mvm/fw.c iwl_read_external_nvm(mvm->trans, mvm->nvm_file_name, trans 494 drivers/net/wireless/intel/iwlwifi/mvm/fw.c mvm->nvm_data = iwl_get_nvm(mvm->trans, mvm->fw); trans 518 drivers/net/wireless/intel/iwlwifi/mvm/fw.c !mvm->trans->cfg->tx_with_siso_diversity) { trans 520 drivers/net/wireless/intel/iwlwifi/mvm/fw.c } else if (mvm->trans->cfg->tx_with_siso_diversity) { trans 577 drivers/net/wireless/intel/iwlwifi/mvm/fw.c if (mvm->trans->trans_cfg->device_family < IWL_DEVICE_FAMILY_8000) { trans 596 drivers/net/wireless/intel/iwlwifi/mvm/fw.c WARN_ONCE(mvm->nvm_data->nvm_version < mvm->trans->cfg->nvm_ver, trans 598 drivers/net/wireless/intel/iwlwifi/mvm/fw.c mvm->nvm_data->nvm_version, mvm->trans->cfg->nvm_ver); trans 672 drivers/net/wireless/intel/iwlwifi/mvm/fw.c if (!mvm->trans->ltr_enabled) trans 923 drivers/net/wireless/intel/iwlwifi/mvm/fw.c ((mvm->trans->hw_rev & CSR_HW_REV_TYPE_MSK) == trans 1294 drivers/net/wireless/intel/iwlwifi/mvm/fw.c iwl_trans_stop_device(mvm->trans); trans 1295 drivers/net/wireless/intel/iwlwifi/mvm/fw.c ret = iwl_trans_start_hw(mvm->trans); trans 1323 drivers/net/wireless/intel/iwlwifi/mvm/fw.c ret = iwl_trans_start_hw(mvm->trans); trans 1342 drivers/net/wireless/intel/iwlwifi/mvm/fw.c if (!iwl_trans_dbg_ini_valid(mvm->trans)) { trans 1370 drivers/net/wireless/intel/iwlwifi/mvm/fw.c if (mvm->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22000) { trans 1524 drivers/net/wireless/intel/iwlwifi/mvm/fw.c ret = iwl_trans_start_hw(mvm->trans); trans 98 drivers/net/wireless/intel/iwlwifi/mvm/led.c iwl_write32(mvm->trans, CSR_LED_REG, trans 142 drivers/net/wireless/intel/iwlwifi/mvm/led.c ret = led_classdev_register(mvm->trans->dev, &mvm->led); trans 162 drivers/net/wireless/intel/iwlwifi/mvm/led.c if (mvm->trans->trans_cfg->device_family < IWL_DEVICE_FAMILY_8000) trans 253 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c regd = iwl_parse_nvm_mcc_info(mvm->trans->dev, mvm->cfg, trans 402 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c if (mvm->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_9000) trans 426 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c if (mvm->trans->num_rx_queues > 1) trans 429 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c if (mvm->trans->max_skb_frags) trans 450 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c hw->max_tx_fragments = mvm->trans->max_skb_frags; trans 599 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c hw->wiphy->hw_version = mvm->trans->hw_id; trans 680 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c mvm->trans->ops->d3_suspend && trans 681 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c mvm->trans->ops->d3_resume && trans 682 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c device_can_wakeup(mvm->trans->dev)) { trans 838 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c (mvm->trans->system_pm_mode == trans 2796 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c iwl_trans_freeze_txq_timer(mvm->trans, txqs, true); trans 2808 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c iwl_trans_freeze_txq_timer(mvm->trans, txqs, false); trans 3338 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c if (!mvm->trans->trans_cfg->gen2) { trans 3440 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c mvm->trans->num_rx_queues), trans 3449 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c for (q = 0; q < mvm->trans->num_rx_queues; q++) trans 4613 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c iwl_trans_wait_tx_queues_empty(mvm->trans, queues); trans 4690 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c iwl_trans_wait_tx_queues_empty(mvm->trans, msk); trans 4880 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c u32 qmask = BIT(mvm->trans->num_rx_queues) - 1; trans 4890 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c mvm->trans->num_rx_queues); trans 834 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h struct iwl_trans *trans; trans 1368 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h return mvm->trans->trans_cfg->use_tfh; trans 1374 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h return mvm->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22000; trans 1399 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h return mvm->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22000; trans 1942 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h return ((BIT(mvm->trans->trans_cfg->base_params->num_of_queues) - 1) & trans 1952 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h iwl_trans_stop_device(mvm->trans); trans 174 drivers/net/wireless/intel/iwlwifi/mvm/nvm.c IWL_DEBUG_EEPROM(mvm->trans->dev, trans 179 drivers/net/wireless/intel/iwlwifi/mvm/nvm.c IWL_DEBUG_EEPROM(mvm->trans->dev, trans 252 drivers/net/wireless/intel/iwlwifi/mvm/nvm.c mvm->trans->trans_cfg->base_params->eeprom_size) { trans 259 drivers/net/wireless/intel/iwlwifi/mvm/nvm.c IWL_DEBUG_EEPROM(mvm->trans->dev, trans 267 drivers/net/wireless/intel/iwlwifi/mvm/nvm.c iwl_nvm_fixups(mvm->trans->hw_id, section, data, offset); trans 269 drivers/net/wireless/intel/iwlwifi/mvm/nvm.c IWL_DEBUG_EEPROM(mvm->trans->dev, trans 284 drivers/net/wireless/intel/iwlwifi/mvm/nvm.c if (mvm->trans->cfg->nvm_type == IWL_NVM) { trans 291 drivers/net/wireless/intel/iwlwifi/mvm/nvm.c if (mvm->trans->cfg->nvm_type == IWL_NVM_SDP) trans 312 drivers/net/wireless/intel/iwlwifi/mvm/nvm.c if (mvm->trans->cfg->nvm_type == IWL_NVM_EXT && trans 327 drivers/net/wireless/intel/iwlwifi/mvm/nvm.c regulatory = mvm->trans->cfg->nvm_type == IWL_NVM_SDP ? trans 335 drivers/net/wireless/intel/iwlwifi/mvm/nvm.c return iwl_parse_nvm_data(mvm->trans, mvm->cfg, hw, sw, calib, trans 347 drivers/net/wireless/intel/iwlwifi/mvm/nvm.c IWL_DEBUG_EEPROM(mvm->trans->dev, "'Write to NVM\n"); trans 374 drivers/net/wireless/intel/iwlwifi/mvm/nvm.c IWL_DEBUG_EEPROM(mvm->trans->dev, "Read from NVM\n"); trans 376 drivers/net/wireless/intel/iwlwifi/mvm/nvm.c nvm_buffer = kmalloc(mvm->trans->trans_cfg->base_params->eeprom_size, trans 397 drivers/net/wireless/intel/iwlwifi/mvm/nvm.c iwl_nvm_fixups(mvm->trans->hw_id, section, temp, ret); trans 441 drivers/net/wireless/intel/iwlwifi/mvm/nvm.c ret = iwl_read_external_nvm(mvm->trans, mvm->nvm_file_name, trans 449 drivers/net/wireless/intel/iwlwifi/mvm/nvm.c ret = iwl_read_external_nvm(mvm->trans, trans 464 drivers/net/wireless/intel/iwlwifi/mvm/nvm.c IWL_DEBUG_EEPROM(mvm->trans->dev, "nvm version = %x\n", trans 155 drivers/net/wireless/intel/iwlwifi/mvm/ops.c reg_val |= CSR_HW_REV_STEP(mvm->trans->hw_rev) << trans 157 drivers/net/wireless/intel/iwlwifi/mvm/ops.c reg_val |= CSR_HW_REV_DASH(mvm->trans->hw_rev) << trans 176 drivers/net/wireless/intel/iwlwifi/mvm/ops.c if (mvm->trans->trans_cfg->device_family < IWL_DEVICE_FAMILY_8000) trans 182 drivers/net/wireless/intel/iwlwifi/mvm/ops.c iwl_trans_set_bits_mask(mvm->trans, CSR_HW_IF_CONFIG_REG, trans 201 drivers/net/wireless/intel/iwlwifi/mvm/ops.c if (!mvm->trans->cfg->apmg_not_supported) trans 202 drivers/net/wireless/intel/iwlwifi/mvm/ops.c iwl_set_bits_mask_prph(mvm->trans, APMG_PS_CTRL_REG, trans 612 drivers/net/wireless/intel/iwlwifi/mvm/ops.c iwl_op_mode_mvm_start(struct iwl_trans *trans, const struct iwl_cfg *cfg, trans 655 drivers/net/wireless/intel/iwlwifi/mvm/ops.c mvm->dev = trans->dev; trans 656 drivers/net/wireless/intel/iwlwifi/mvm/ops.c mvm->trans = trans; trans 661 drivers/net/wireless/intel/iwlwifi/mvm/ops.c iwl_fw_runtime_init(&mvm->fwrt, trans, fw, &iwl_mvm_fwrt_ops, mvm, trans 668 drivers/net/wireless/intel/iwlwifi/mvm/ops.c trans->rx_mpdu_cmd_hdr_size = trans 669 drivers/net/wireless/intel/iwlwifi/mvm/ops.c (trans->trans_cfg->device_family >= trans 675 drivers/net/wireless/intel/iwlwifi/mvm/ops.c trans->rx_mpdu_cmd_hdr_size = trans 678 drivers/net/wireless/intel/iwlwifi/mvm/ops.c if (WARN_ON(trans->num_rx_queues > 1)) trans 715 drivers/net/wireless/intel/iwlwifi/mvm/ops.c SET_IEEE80211_DEV(mvm->hw, mvm->trans->dev); trans 733 drivers/net/wireless/intel/iwlwifi/mvm/ops.c if (mvm->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22560) trans 757 drivers/net/wireless/intel/iwlwifi/mvm/ops.c trans->wide_cmd_header = true; trans 759 drivers/net/wireless/intel/iwlwifi/mvm/ops.c mvm->trans->trans_cfg->device_family < IWL_DEVICE_FAMILY_22560; trans 782 drivers/net/wireless/intel/iwlwifi/mvm/ops.c iwl_trans_configure(mvm->trans, &trans_cfg); trans 784 drivers/net/wireless/intel/iwlwifi/mvm/ops.c trans->rx_mpdu_cmd = REPLY_RX_MPDU_CMD; trans 785 drivers/net/wireless/intel/iwlwifi/mvm/ops.c trans->dbg.dest_tlv = mvm->fw->dbg.dest_tlv; trans 786 drivers/net/wireless/intel/iwlwifi/mvm/ops.c trans->dbg.n_dest_reg = mvm->fw->dbg.n_dest_reg; trans 787 drivers/net/wireless/intel/iwlwifi/mvm/ops.c memcpy(trans->dbg.conf_tlv, mvm->fw->dbg.conf_tlv, trans 788 drivers/net/wireless/intel/iwlwifi/mvm/ops.c sizeof(trans->dbg.conf_tlv)); trans 789 drivers/net/wireless/intel/iwlwifi/mvm/ops.c trans->dbg.trigger_tlv = mvm->fw->dbg.trigger_tlv; trans 791 drivers/net/wireless/intel/iwlwifi/mvm/ops.c trans->iml = mvm->fw->iml; trans 792 drivers/net/wireless/intel/iwlwifi/mvm/ops.c trans->iml_len = mvm->fw->iml_len; trans 798 drivers/net/wireless/intel/iwlwifi/mvm/ops.c mvm->phy_db = iwl_phy_db_init(trans); trans 805 drivers/net/wireless/intel/iwlwifi/mvm/ops.c mvm->cfg->name, mvm->trans->hw_rev); trans 810 drivers/net/wireless/intel/iwlwifi/mvm/ops.c IWL_DEBUG_EEPROM(mvm->trans->dev, trans 813 drivers/net/wireless/intel/iwlwifi/mvm/ops.c err = iwl_trans_start_hw(mvm->trans); trans 866 drivers/net/wireless/intel/iwlwifi/mvm/ops.c iwl_trans_op_mode_leave(trans); trans 890 drivers/net/wireless/intel/iwlwifi/mvm/ops.c iwl_trans_op_mode_leave(mvm->trans); trans 1082 drivers/net/wireless/intel/iwlwifi/mvm/ops.c iwl_trans_block_txq_ptrs(mvm->trans, false); trans 1219 drivers/net/wireless/intel/iwlwifi/mvm/ops.c iwl_trans_free_tx_cmd(mvm->trans, info->driver_data[1]); trans 1242 drivers/net/wireless/intel/iwlwifi/mvm/ops.c iwl_dbg_tlv_del_timers(mvm->trans); trans 1285 drivers/net/wireless/intel/iwlwifi/mvm/ops.c reprobe->dev = mvm->trans->dev; trans 1293 drivers/net/wireless/intel/iwlwifi/mvm/ops.c !test_bit(STATUS_TRANS_DEAD, &mvm->trans->status)) { trans 1301 drivers/net/wireless/intel/iwlwifi/mvm/ops.c iwl_trans_read_mem_bytes(mvm->trans, trans 1321 drivers/net/wireless/intel/iwlwifi/mvm/ops.c if (!test_bit(STATUS_TRANS_DEAD, &mvm->trans->status)) trans 3341 drivers/net/wireless/intel/iwlwifi/mvm/rs.c if (!mvm->trans->trans_cfg->gen2) trans 352 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c if (mvm->trans->trans_cfg->gen2 && trans 369 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c if (mvm->trans->trans_cfg->gen2) trans 1571 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c if (mvm->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22560) { trans 1672 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c if (mvm->trans->trans_cfg->device_family >= trans 1799 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c if (mvm->trans->trans_cfg->device_family == trans 1713 drivers/net/wireless/intel/iwlwifi/mvm/scan.c iwl_force_nmi(mvm->trans); trans 358 drivers/net/wireless/intel/iwlwifi/mvm/sta.c iwl_trans_txq_free(mvm->trans, queue); trans 403 drivers/net/wireless/intel/iwlwifi/mvm/sta.c iwl_trans_txq_disable(mvm->trans, queue, false); trans 672 drivers/net/wireless/intel/iwlwifi/mvm/sta.c ret = iwl_trans_wait_tx_queues_empty(mvm->trans, BIT(queue)); trans 681 drivers/net/wireless/intel/iwlwifi/mvm/sta.c iwl_trans_txq_disable(mvm->trans, queue, false); trans 688 drivers/net/wireless/intel/iwlwifi/mvm/sta.c iwl_trans_txq_enable_cfg(mvm->trans, queue, ssn, NULL, wdg_timeout); trans 709 drivers/net/wireless/intel/iwlwifi/mvm/sta.c iwl_trans_txq_set_shared_mode(mvm->trans, queue, true); trans 725 drivers/net/wireless/intel/iwlwifi/mvm/sta.c if (WARN(maxq >= mvm->trans->trans_cfg->base_params->num_of_queues, trans 727 drivers/net/wireless/intel/iwlwifi/mvm/sta.c mvm->trans->trans_cfg->base_params->num_of_queues)) trans 728 drivers/net/wireless/intel/iwlwifi/mvm/sta.c maxq = mvm->trans->trans_cfg->base_params->num_of_queues - 1; trans 747 drivers/net/wireless/intel/iwlwifi/mvm/sta.c mvm->trans->cfg->min_256_ba_txq_size); trans 752 drivers/net/wireless/intel/iwlwifi/mvm/sta.c mvm->trans->cfg->min_txq_size); trans 754 drivers/net/wireless/intel/iwlwifi/mvm/sta.c queue = iwl_trans_txq_alloc(mvm->trans, trans 874 drivers/net/wireless/intel/iwlwifi/mvm/sta.c inc_ssn = iwl_trans_txq_enable_cfg(mvm->trans, queue, ssn, trans 994 drivers/net/wireless/intel/iwlwifi/mvm/sta.c iwl_trans_txq_set_shared_mode(mvm->trans, queue, false); trans 1319 drivers/net/wireless/intel/iwlwifi/mvm/sta.c iwl_trans_txq_set_shared_mode(mvm->trans, queue, true); trans 1619 drivers/net/wireless/intel/iwlwifi/mvm/sta.c if (!mvm->trans->trans_cfg->gen2) trans 1659 drivers/net/wireless/intel/iwlwifi/mvm/sta.c dup_data = kcalloc(mvm->trans->num_rx_queues, trans 1672 drivers/net/wireless/intel/iwlwifi/mvm/sta.c for (q = 0; q < mvm->trans->num_rx_queues; q++) trans 1829 drivers/net/wireless/intel/iwlwifi/mvm/sta.c ret = iwl_trans_wait_txq_empty(mvm->trans, txq_id); trans 1864 drivers/net/wireless/intel/iwlwifi/mvm/sta.c ret = iwl_trans_wait_tx_queues_empty(mvm->trans, trans 1969 drivers/net/wireless/intel/iwlwifi/mvm/sta.c mvm->trans->trans_cfg->base_params->wd_timeout : trans 1987 drivers/net/wireless/intel/iwlwifi/mvm/sta.c mvm->trans->trans_cfg->base_params->wd_timeout : trans 2460 drivers/net/wireless/intel/iwlwifi/mvm/sta.c for (i = 0; i < mvm->trans->num_rx_queues; i++) { trans 2502 drivers/net/wireless/intel/iwlwifi/mvm/sta.c for (i = 0; i < mvm->trans->num_rx_queues; i++) { trans 2567 drivers/net/wireless/intel/iwlwifi/mvm/sta.c mvm->trans->num_rx_queues * trans 2847 drivers/net/wireless/intel/iwlwifi/mvm/sta.c if (mvm->trans->trans_cfg->gen2) trans 2942 drivers/net/wireless/intel/iwlwifi/mvm/sta.c ret = iwl_trans_wait_tx_queues_empty(mvm->trans, trans 3118 drivers/net/wireless/intel/iwlwifi/mvm/sta.c iwl_trans_wait_txq_empty(mvm->trans, txq_id); trans 3122 drivers/net/wireless/intel/iwlwifi/mvm/sta.c iwl_trans_wait_tx_queues_empty(mvm->trans, BIT(txq_id)); trans 3737 drivers/net/wireless/intel/iwlwifi/mvm/sta.c iwl_trans_block_txq_ptrs(mvm->trans, true); trans 3891 drivers/net/wireless/intel/iwlwifi/mvm/sta.c if (mvm->trans->trans_cfg->gen2) trans 499 drivers/net/wireless/intel/iwlwifi/mvm/tx.c dev_cmd = iwl_trans_alloc_tx_cmd(mvm->trans); trans 544 drivers/net/wireless/intel/iwlwifi/mvm/tx.c if (mvm->trans->trans_cfg->device_family >= trans 778 drivers/net/wireless/intel/iwlwifi/mvm/tx.c if (iwl_trans_tx(mvm->trans, skb, dev_cmd, queue)) { trans 779 drivers/net/wireless/intel/iwlwifi/mvm/tx.c iwl_trans_free_tx_cmd(mvm->trans, dev_cmd); trans 973 drivers/net/wireless/intel/iwlwifi/mvm/tx.c mvm->trans->max_skb_frags) trans 1147 drivers/net/wireless/intel/iwlwifi/mvm/tx.c iwl_trans_free_tx_cmd(mvm->trans, dev_cmd); trans 1179 drivers/net/wireless/intel/iwlwifi/mvm/tx.c if (iwl_trans_tx(mvm->trans, skb, dev_cmd, txq_id)) trans 1194 drivers/net/wireless/intel/iwlwifi/mvm/tx.c iwl_trans_free_tx_cmd(mvm->trans, dev_cmd); trans 1275 drivers/net/wireless/intel/iwlwifi/mvm/tx.c if (mvm->trans->trans_cfg->gen2) trans 1469 drivers/net/wireless/intel/iwlwifi/mvm/tx.c iwl_trans_reclaim(mvm->trans, txq_id, ssn, &skbs); trans 1479 drivers/net/wireless/intel/iwlwifi/mvm/tx.c iwl_trans_free_tx_cmd(mvm->trans, info->driver_data[1]); trans 1815 drivers/net/wireless/intel/iwlwifi/mvm/tx.c iwl_trans_reclaim(mvm->trans, txq, index, &reclaimed_skbs); trans 1840 drivers/net/wireless/intel/iwlwifi/mvm/tx.c iwl_trans_free_tx_cmd(mvm->trans, info->driver_data[1]); trans 94 drivers/net/wireless/intel/iwlwifi/mvm/utils.c ret = iwl_trans_send_cmd(mvm->trans, cmd); trans 150 drivers/net/wireless/intel/iwlwifi/mvm/utils.c ret = iwl_trans_send_cmd(mvm->trans, cmd); trans 464 drivers/net/wireless/intel/iwlwifi/mvm/utils.c struct iwl_trans *trans = mvm->trans; trans 466 drivers/net/wireless/intel/iwlwifi/mvm/utils.c u32 base = mvm->trans->dbg.umac_error_event_table; trans 469 drivers/net/wireless/intel/iwlwifi/mvm/utils.c !(mvm->trans->dbg.error_event_table_tlv_status & trans 473 drivers/net/wireless/intel/iwlwifi/mvm/utils.c iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table)); trans 479 drivers/net/wireless/intel/iwlwifi/mvm/utils.c IWL_ERR(trans, "Start IWL Error Log Dump:\n"); trans 480 drivers/net/wireless/intel/iwlwifi/mvm/utils.c IWL_ERR(trans, "Status: 0x%08lX, count: %d\n", trans 503 drivers/net/wireless/intel/iwlwifi/mvm/utils.c struct iwl_trans *trans = mvm->trans; trans 505 drivers/net/wireless/intel/iwlwifi/mvm/utils.c u32 val, base = mvm->trans->dbg.lmac_error_event_table[lmac_num]; trans 525 drivers/net/wireless/intel/iwlwifi/mvm/utils.c val = iwl_trans_read_mem32(trans, base); trans 529 drivers/net/wireless/intel/iwlwifi/mvm/utils.c IWL_ERR(trans, "HW error, resetting before reading\n"); trans 532 drivers/net/wireless/intel/iwlwifi/mvm/utils.c iwl_trans_sw_reset(trans); trans 534 drivers/net/wireless/intel/iwlwifi/mvm/utils.c err = iwl_finish_nic_init(trans, trans->trans_cfg); trans 539 drivers/net/wireless/intel/iwlwifi/mvm/utils.c iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table)); trans 545 drivers/net/wireless/intel/iwlwifi/mvm/utils.c IWL_ERR(trans, "Start IWL Error Log Dump:\n"); trans 546 drivers/net/wireless/intel/iwlwifi/mvm/utils.c IWL_ERR(trans, "Status: 0x%08lX, count: %d\n", trans 593 drivers/net/wireless/intel/iwlwifi/mvm/utils.c if (!test_bit(STATUS_DEVICE_ENABLED, &mvm->trans->status)) { trans 601 drivers/net/wireless/intel/iwlwifi/mvm/utils.c if (mvm->trans->dbg.lmac_error_event_table[1]) trans 944 drivers/net/wireless/intel/iwlwifi/mvm/utils.c mvm->trans->trans_cfg->base_params->wd_timeout; trans 988 drivers/net/wireless/intel/iwlwifi/mvm/utils.c return mvm->trans->trans_cfg->base_params->wd_timeout; trans 1434 drivers/net/wireless/intel/iwlwifi/mvm/utils.c if (mvm->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22000 && trans 1435 drivers/net/wireless/intel/iwlwifi/mvm/utils.c mvm->trans->cfg->gp2_reg_addr) trans 1436 drivers/net/wireless/intel/iwlwifi/mvm/utils.c reg_addr = mvm->trans->cfg->gp2_reg_addr; trans 1438 drivers/net/wireless/intel/iwlwifi/mvm/utils.c return iwl_read_prph(mvm->trans, reg_addr); trans 58 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c int iwl_pcie_ctxt_info_gen3_init(struct iwl_trans *trans, trans 61 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 70 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c trans->cfg->min_txq_size); trans 73 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c prph_scratch = dma_alloc_coherent(trans->dev, sizeof(*prph_scratch), trans 83 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c cpu_to_le16((u16)iwl_read32(trans, CSR_HW_REV)); trans 99 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c if (!iwl_trans_dbg_ini_valid(trans)) trans 100 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c iwl_pcie_alloc_fw_monitor(trans, 0); trans 101 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c if (trans->dbg.num_blocks) { trans 103 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c cpu_to_le64(trans->dbg.fw_mon[0].physical); trans 105 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c cpu_to_le32(trans->dbg.fw_mon[0].size); trans 109 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c ret = iwl_pcie_init_fw_sec(trans, fw, &prph_scratch->dram); trans 117 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c prph_info = dma_alloc_coherent(trans->dev, sizeof(*prph_info), trans 126 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c ctxt_info_gen3 = dma_alloc_coherent(trans->dev, trans 165 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c iml_img = dma_alloc_coherent(trans->dev, trans->iml_len, trans 170 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c memcpy(iml_img, trans->iml, trans->iml_len); trans 172 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c iwl_enable_fw_load_int_ctx_info(trans); trans 175 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c iwl_write64(trans, CSR_CTXT_INFO_ADDR, trans 177 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c iwl_write64(trans, CSR_IML_DATA_ADDR, trans 179 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c iwl_write32(trans, CSR_IML_SIZE_ADDR, trans->iml_len); trans 181 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c iwl_set_bit(trans, CSR_CTXT_INFO_BOOT_CTRL, trans 183 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_AX210) trans 184 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c iwl_write_umac_prph(trans, UREG_CPU_INIT_RUN, 1); trans 186 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c iwl_set_bit(trans, CSR_GP_CNTRL, CSR_AUTO_FUNC_INIT); trans 191 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c dma_free_coherent(trans->dev, trans 197 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c dma_free_coherent(trans->dev, trans 205 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c void iwl_pcie_ctxt_info_gen3_free(struct iwl_trans *trans) trans 207 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 212 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c dma_free_coherent(trans->dev, sizeof(*trans_pcie->ctxt_info_gen3), trans 218 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c iwl_pcie_ctxt_info_free_fw_img(trans); trans 220 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c dma_free_coherent(trans->dev, sizeof(*trans_pcie->prph_scratch), trans 226 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c dma_free_coherent(trans->dev, sizeof(*trans_pcie->prph_info), trans 60 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c void iwl_pcie_ctxt_info_free_paging(struct iwl_trans *trans) trans 62 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c struct iwl_self_init_dram *dram = &trans->init_dram; trans 72 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c dma_free_coherent(trans->dev, dram->paging[i].size, trans 81 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c int iwl_pcie_init_fw_sec(struct iwl_trans *trans, trans 85 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c struct iwl_self_init_dram *dram = &trans->init_dram; trans 91 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c iwl_pcie_ctxt_info_free_paging(trans); trans 108 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c ret = iwl_pcie_ctxt_info_alloc_dma(trans, &fw->sec[i], trans 120 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c ret = iwl_pcie_ctxt_info_alloc_dma(trans, trans 144 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c ret = iwl_pcie_ctxt_info_alloc_dma(trans, &fw->sec[fw_idx], trans 157 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c int iwl_pcie_ctxt_info_init(struct iwl_trans *trans, trans 160 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 166 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c ctxt_info = dma_alloc_coherent(trans->dev, sizeof(*ctxt_info), trans 174 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c cpu_to_le16((u16)iwl_read32(trans, CSR_HW_REV)); trans 216 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c ret = iwl_pcie_init_fw_sec(trans, fw, &ctxt_info->dram); trans 218 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c dma_free_coherent(trans->dev, sizeof(*trans_pcie->ctxt_info), trans 225 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c iwl_enable_fw_load_int_ctx_info(trans); trans 228 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c if (iwl_pcie_dbg_on(trans)) trans 229 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c iwl_pcie_apply_destination(trans); trans 232 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c iwl_write64(trans, CSR_CTXT_INFO_BA, trans_pcie->ctxt_info_dma_addr); trans 233 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c iwl_write_prph(trans, UREG_CPU_INIT_RUN, 1); trans 240 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c void iwl_pcie_ctxt_info_free(struct iwl_trans *trans) trans 242 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 247 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c dma_free_coherent(trans->dev, sizeof(*trans_pcie->ctxt_info), trans 253 drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c iwl_pcie_ctxt_info_free_fw_img(trans); trans 1001 drivers/net/wireless/intel/iwlwifi/pcie/drv.c iwl_trans = iwl_trans_pcie_alloc(pdev, ent, &cfg->trans); trans 1006 drivers/net/wireless/intel/iwlwifi/pcie/drv.c iwl_trans->trans_cfg = &cfg->trans; trans 1173 drivers/net/wireless/intel/iwlwifi/pcie/drv.c struct iwl_trans *trans = pci_get_drvdata(pdev); trans 1175 drivers/net/wireless/intel/iwlwifi/pcie/drv.c iwl_drv_stop(trans->drv); trans 1177 drivers/net/wireless/intel/iwlwifi/pcie/drv.c iwl_trans_pcie_free(trans); trans 1195 drivers/net/wireless/intel/iwlwifi/pcie/drv.c struct iwl_trans *trans = pci_get_drvdata(pdev); trans 1196 drivers/net/wireless/intel/iwlwifi/pcie/drv.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1209 drivers/net/wireless/intel/iwlwifi/pcie/drv.c if (!trans->op_mode) trans 1213 drivers/net/wireless/intel/iwlwifi/pcie/drv.c if (test_bit(STATUS_DEVICE_ENABLED, &trans->status)) trans 1225 drivers/net/wireless/intel/iwlwifi/pcie/drv.c iwl_enable_rfkill_int(trans); trans 1226 drivers/net/wireless/intel/iwlwifi/pcie/drv.c iwl_pcie_check_hw_rf_kill(trans); trans 254 drivers/net/wireless/intel/iwlwifi/pcie/internal.h static inline int iwl_queue_inc_wrap(struct iwl_trans *trans, int index) trans 257 drivers/net/wireless/intel/iwlwifi/pcie/internal.h (trans->trans_cfg->base_params->max_tfd_queue_size - 1); trans 264 drivers/net/wireless/intel/iwlwifi/pcie/internal.h static inline __le16 iwl_get_closed_rb_stts(struct iwl_trans *trans, trans 267 drivers/net/wireless/intel/iwlwifi/pcie/internal.h if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22560) { trans 282 drivers/net/wireless/intel/iwlwifi/pcie/internal.h static inline int iwl_queue_dec_wrap(struct iwl_trans *trans, int index) trans 285 drivers/net/wireless/intel/iwlwifi/pcie/internal.h (trans->trans_cfg->base_params->max_tfd_queue_size - 1); trans 529 drivers/net/wireless/intel/iwlwifi/pcie/internal.h struct iwl_trans *trans; trans 610 drivers/net/wireless/intel/iwlwifi/pcie/internal.h IWL_TRANS_GET_PCIE_TRANS(struct iwl_trans *trans) trans 612 drivers/net/wireless/intel/iwlwifi/pcie/internal.h return (void *)trans->trans_specific; trans 615 drivers/net/wireless/intel/iwlwifi/pcie/internal.h static inline void iwl_pcie_clear_irq(struct iwl_trans *trans, trans 626 drivers/net/wireless/intel/iwlwifi/pcie/internal.h iwl_write32(trans, CSR_MSIX_AUTOMASK_ST_AD, BIT(entry->entry)); trans 644 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_trans_pcie_free(struct iwl_trans *trans); trans 649 drivers/net/wireless/intel/iwlwifi/pcie/internal.h int _iwl_pcie_rx_init(struct iwl_trans *trans); trans 650 drivers/net/wireless/intel/iwlwifi/pcie/internal.h int iwl_pcie_rx_init(struct iwl_trans *trans); trans 651 drivers/net/wireless/intel/iwlwifi/pcie/internal.h int iwl_pcie_gen2_rx_init(struct iwl_trans *trans); trans 656 drivers/net/wireless/intel/iwlwifi/pcie/internal.h int iwl_pcie_rx_stop(struct iwl_trans *trans); trans 657 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_pcie_rx_free(struct iwl_trans *trans); trans 658 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_pcie_free_rbs_pool(struct iwl_trans *trans); trans 661 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_pcie_rxq_alloc_rbs(struct iwl_trans *trans, gfp_t priority, trans 663 drivers/net/wireless/intel/iwlwifi/pcie/internal.h int iwl_pcie_rx_alloc(struct iwl_trans *trans); trans 669 drivers/net/wireless/intel/iwlwifi/pcie/internal.h int iwl_pcie_alloc_ict(struct iwl_trans *trans); trans 670 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_pcie_free_ict(struct iwl_trans *trans); trans 671 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_pcie_reset_ict(struct iwl_trans *trans); trans 672 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_pcie_disable_ict(struct iwl_trans *trans); trans 677 drivers/net/wireless/intel/iwlwifi/pcie/internal.h int iwl_pcie_tx_init(struct iwl_trans *trans); trans 678 drivers/net/wireless/intel/iwlwifi/pcie/internal.h int iwl_pcie_gen2_tx_init(struct iwl_trans *trans, int txq_id, trans 680 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_pcie_tx_start(struct iwl_trans *trans, u32 scd_base_addr); trans 681 drivers/net/wireless/intel/iwlwifi/pcie/internal.h int iwl_pcie_tx_stop(struct iwl_trans *trans); trans 682 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_pcie_tx_free(struct iwl_trans *trans); trans 683 drivers/net/wireless/intel/iwlwifi/pcie/internal.h bool iwl_trans_pcie_txq_enable(struct iwl_trans *trans, int queue, u16 ssn, trans 686 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_trans_pcie_txq_disable(struct iwl_trans *trans, int queue, trans 688 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_trans_pcie_txq_set_shared_mode(struct iwl_trans *trans, u32 txq_id, trans 690 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_trans_pcie_log_scd_error(struct iwl_trans *trans, trans 692 drivers/net/wireless/intel/iwlwifi/pcie/internal.h int iwl_trans_pcie_tx(struct iwl_trans *trans, struct sk_buff *skb, trans 694 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_pcie_txq_check_wrptrs(struct iwl_trans *trans); trans 695 drivers/net/wireless/intel/iwlwifi/pcie/internal.h int iwl_trans_pcie_send_hcmd(struct iwl_trans *trans, struct iwl_host_cmd *cmd); trans 696 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_pcie_cmdq_reclaim(struct iwl_trans *trans, int txq_id, int idx); trans 697 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_pcie_gen2_txq_inc_wr_ptr(struct iwl_trans *trans, trans 699 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_pcie_hcmd_complete(struct iwl_trans *trans, trans 701 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_trans_pcie_reclaim(struct iwl_trans *trans, int txq_id, int ssn, trans 703 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_trans_pcie_set_q_ptrs(struct iwl_trans *trans, int txq_id, int ptr); trans 704 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_trans_pcie_tx_reset(struct iwl_trans *trans); trans 709 drivers/net/wireless/intel/iwlwifi/pcie/internal.h static inline u16 iwl_pcie_tfd_tb_get_len(struct iwl_trans *trans, void *_tfd, trans 712 drivers/net/wireless/intel/iwlwifi/pcie/internal.h if (trans->trans_cfg->use_tfh) { trans 728 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_pcie_dump_csr(struct iwl_trans *trans); trans 733 drivers/net/wireless/intel/iwlwifi/pcie/internal.h static inline void _iwl_disable_interrupts(struct iwl_trans *trans) trans 735 drivers/net/wireless/intel/iwlwifi/pcie/internal.h struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 737 drivers/net/wireless/intel/iwlwifi/pcie/internal.h clear_bit(STATUS_INT_ENABLED, &trans->status); trans 740 drivers/net/wireless/intel/iwlwifi/pcie/internal.h iwl_write32(trans, CSR_INT_MASK, 0x00000000); trans 744 drivers/net/wireless/intel/iwlwifi/pcie/internal.h iwl_write32(trans, CSR_INT, 0xffffffff); trans 745 drivers/net/wireless/intel/iwlwifi/pcie/internal.h iwl_write32(trans, CSR_FH_INT_STATUS, 0xffffffff); trans 748 drivers/net/wireless/intel/iwlwifi/pcie/internal.h iwl_write32(trans, CSR_MSIX_FH_INT_MASK_AD, trans 750 drivers/net/wireless/intel/iwlwifi/pcie/internal.h iwl_write32(trans, CSR_MSIX_HW_INT_MASK_AD, trans 753 drivers/net/wireless/intel/iwlwifi/pcie/internal.h IWL_DEBUG_ISR(trans, "Disabled interrupts\n"); trans 774 drivers/net/wireless/intel/iwlwifi/pcie/internal.h static inline int iwl_pcie_ctxt_info_alloc_dma(struct iwl_trans *trans, trans 778 drivers/net/wireless/intel/iwlwifi/pcie/internal.h dram->block = dma_alloc_coherent(trans->dev, sec->len, trans 790 drivers/net/wireless/intel/iwlwifi/pcie/internal.h static inline void iwl_pcie_ctxt_info_free_fw_img(struct iwl_trans *trans) trans 792 drivers/net/wireless/intel/iwlwifi/pcie/internal.h struct iwl_self_init_dram *dram = &trans->init_dram; trans 801 drivers/net/wireless/intel/iwlwifi/pcie/internal.h dma_free_coherent(trans->dev, dram->fw[i].size, trans 809 drivers/net/wireless/intel/iwlwifi/pcie/internal.h static inline void iwl_disable_interrupts(struct iwl_trans *trans) trans 811 drivers/net/wireless/intel/iwlwifi/pcie/internal.h struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 814 drivers/net/wireless/intel/iwlwifi/pcie/internal.h _iwl_disable_interrupts(trans); trans 818 drivers/net/wireless/intel/iwlwifi/pcie/internal.h static inline void _iwl_enable_interrupts(struct iwl_trans *trans) trans 820 drivers/net/wireless/intel/iwlwifi/pcie/internal.h struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 822 drivers/net/wireless/intel/iwlwifi/pcie/internal.h IWL_DEBUG_ISR(trans, "Enabling interrupts\n"); trans 823 drivers/net/wireless/intel/iwlwifi/pcie/internal.h set_bit(STATUS_INT_ENABLED, &trans->status); trans 826 drivers/net/wireless/intel/iwlwifi/pcie/internal.h iwl_write32(trans, CSR_INT_MASK, trans_pcie->inta_mask); trans 834 drivers/net/wireless/intel/iwlwifi/pcie/internal.h iwl_write32(trans, CSR_MSIX_FH_INT_MASK_AD, trans 836 drivers/net/wireless/intel/iwlwifi/pcie/internal.h iwl_write32(trans, CSR_MSIX_HW_INT_MASK_AD, trans 841 drivers/net/wireless/intel/iwlwifi/pcie/internal.h static inline void iwl_enable_interrupts(struct iwl_trans *trans) trans 843 drivers/net/wireless/intel/iwlwifi/pcie/internal.h struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 846 drivers/net/wireless/intel/iwlwifi/pcie/internal.h _iwl_enable_interrupts(trans); trans 849 drivers/net/wireless/intel/iwlwifi/pcie/internal.h static inline void iwl_enable_hw_int_msk_msix(struct iwl_trans *trans, u32 msk) trans 851 drivers/net/wireless/intel/iwlwifi/pcie/internal.h struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 853 drivers/net/wireless/intel/iwlwifi/pcie/internal.h iwl_write32(trans, CSR_MSIX_HW_INT_MASK_AD, ~msk); trans 857 drivers/net/wireless/intel/iwlwifi/pcie/internal.h static inline void iwl_enable_fh_int_msk_msix(struct iwl_trans *trans, u32 msk) trans 859 drivers/net/wireless/intel/iwlwifi/pcie/internal.h struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 861 drivers/net/wireless/intel/iwlwifi/pcie/internal.h iwl_write32(trans, CSR_MSIX_FH_INT_MASK_AD, ~msk); trans 865 drivers/net/wireless/intel/iwlwifi/pcie/internal.h static inline void iwl_enable_fw_load_int(struct iwl_trans *trans) trans 867 drivers/net/wireless/intel/iwlwifi/pcie/internal.h struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 869 drivers/net/wireless/intel/iwlwifi/pcie/internal.h IWL_DEBUG_ISR(trans, "Enabling FW load interrupt\n"); trans 872 drivers/net/wireless/intel/iwlwifi/pcie/internal.h iwl_write32(trans, CSR_INT_MASK, trans_pcie->inta_mask); trans 874 drivers/net/wireless/intel/iwlwifi/pcie/internal.h iwl_write32(trans, CSR_MSIX_HW_INT_MASK_AD, trans 876 drivers/net/wireless/intel/iwlwifi/pcie/internal.h iwl_enable_fh_int_msk_msix(trans, trans 881 drivers/net/wireless/intel/iwlwifi/pcie/internal.h static inline void iwl_enable_fw_load_int_ctx_info(struct iwl_trans *trans) trans 883 drivers/net/wireless/intel/iwlwifi/pcie/internal.h struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 885 drivers/net/wireless/intel/iwlwifi/pcie/internal.h IWL_DEBUG_ISR(trans, "Enabling ALIVE interrupt only\n"); trans 896 drivers/net/wireless/intel/iwlwifi/pcie/internal.h iwl_write32(trans, CSR_INT_MASK, trans_pcie->inta_mask); trans 898 drivers/net/wireless/intel/iwlwifi/pcie/internal.h iwl_enable_hw_int_msk_msix(trans, trans 904 drivers/net/wireless/intel/iwlwifi/pcie/internal.h iwl_enable_fh_int_msk_msix(trans, trans_pcie->fh_init_mask); trans 913 drivers/net/wireless/intel/iwlwifi/pcie/internal.h static inline void *iwl_pcie_get_tfd(struct iwl_trans *trans, trans 916 drivers/net/wireless/intel/iwlwifi/pcie/internal.h struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 918 drivers/net/wireless/intel/iwlwifi/pcie/internal.h if (trans->trans_cfg->use_tfh) trans 947 drivers/net/wireless/intel/iwlwifi/pcie/internal.h static inline void iwl_enable_rfkill_int(struct iwl_trans *trans) trans 949 drivers/net/wireless/intel/iwlwifi/pcie/internal.h struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 951 drivers/net/wireless/intel/iwlwifi/pcie/internal.h IWL_DEBUG_ISR(trans, "Enabling rfkill interrupt\n"); trans 954 drivers/net/wireless/intel/iwlwifi/pcie/internal.h iwl_write32(trans, CSR_INT_MASK, trans_pcie->inta_mask); trans 956 drivers/net/wireless/intel/iwlwifi/pcie/internal.h iwl_write32(trans, CSR_MSIX_FH_INT_MASK_AD, trans 958 drivers/net/wireless/intel/iwlwifi/pcie/internal.h iwl_enable_hw_int_msk_msix(trans, trans 962 drivers/net/wireless/intel/iwlwifi/pcie/internal.h if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_9000) { trans 968 drivers/net/wireless/intel/iwlwifi/pcie/internal.h iwl_set_bit(trans, CSR_GP_CNTRL, trans 973 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_pcie_handle_rfkill_irq(struct iwl_trans *trans); trans 975 drivers/net/wireless/intel/iwlwifi/pcie/internal.h static inline void iwl_wake_queue(struct iwl_trans *trans, trans 978 drivers/net/wireless/intel/iwlwifi/pcie/internal.h struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 981 drivers/net/wireless/intel/iwlwifi/pcie/internal.h IWL_DEBUG_TX_QUEUES(trans, "Wake hwq %d\n", txq->id); trans 982 drivers/net/wireless/intel/iwlwifi/pcie/internal.h iwl_op_mode_queue_not_full(trans->op_mode, txq->id); trans 986 drivers/net/wireless/intel/iwlwifi/pcie/internal.h static inline void iwl_stop_queue(struct iwl_trans *trans, trans 989 drivers/net/wireless/intel/iwlwifi/pcie/internal.h struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 992 drivers/net/wireless/intel/iwlwifi/pcie/internal.h iwl_op_mode_queue_full(trans->op_mode, txq->id); trans 993 drivers/net/wireless/intel/iwlwifi/pcie/internal.h IWL_DEBUG_TX_QUEUES(trans, "Stop hwq %d\n", txq->id); trans 995 drivers/net/wireless/intel/iwlwifi/pcie/internal.h IWL_DEBUG_TX_QUEUES(trans, "hwq %d already stopped\n", trans 1010 drivers/net/wireless/intel/iwlwifi/pcie/internal.h static inline bool iwl_is_rfkill_set(struct iwl_trans *trans) trans 1012 drivers/net/wireless/intel/iwlwifi/pcie/internal.h struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1019 drivers/net/wireless/intel/iwlwifi/pcie/internal.h return !(iwl_read32(trans, CSR_GP_CNTRL) & trans 1023 drivers/net/wireless/intel/iwlwifi/pcie/internal.h static inline void __iwl_trans_pcie_set_bits_mask(struct iwl_trans *trans, trans 1032 drivers/net/wireless/intel/iwlwifi/pcie/internal.h v = iwl_read32(trans, reg); trans 1035 drivers/net/wireless/intel/iwlwifi/pcie/internal.h iwl_write32(trans, reg, v); trans 1038 drivers/net/wireless/intel/iwlwifi/pcie/internal.h static inline void __iwl_trans_pcie_clear_bit(struct iwl_trans *trans, trans 1041 drivers/net/wireless/intel/iwlwifi/pcie/internal.h __iwl_trans_pcie_set_bits_mask(trans, reg, mask, 0); trans 1044 drivers/net/wireless/intel/iwlwifi/pcie/internal.h static inline void __iwl_trans_pcie_set_bit(struct iwl_trans *trans, trans 1047 drivers/net/wireless/intel/iwlwifi/pcie/internal.h __iwl_trans_pcie_set_bits_mask(trans, reg, mask, mask); trans 1050 drivers/net/wireless/intel/iwlwifi/pcie/internal.h static inline bool iwl_pcie_dbg_on(struct iwl_trans *trans) trans 1052 drivers/net/wireless/intel/iwlwifi/pcie/internal.h return (trans->dbg.dest_tlv || iwl_trans_dbg_ini_valid(trans)); trans 1055 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_trans_pcie_rf_kill(struct iwl_trans *trans, bool state); trans 1056 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_trans_pcie_dump_regs(struct iwl_trans *trans); trans 1057 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_trans_pcie_sync_nmi(struct iwl_trans *trans); trans 1060 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_trans_pcie_dbgfs_register(struct iwl_trans *trans); trans 1062 drivers/net/wireless/intel/iwlwifi/pcie/internal.h static inline void iwl_trans_pcie_dbgfs_register(struct iwl_trans *trans) { } trans 1068 drivers/net/wireless/intel/iwlwifi/pcie/internal.h int iwl_pcie_gen2_apm_init(struct iwl_trans *trans); trans 1069 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_pcie_apm_config(struct iwl_trans *trans); trans 1070 drivers/net/wireless/intel/iwlwifi/pcie/internal.h int iwl_pcie_prepare_card_hw(struct iwl_trans *trans); trans 1071 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_pcie_synchronize_irqs(struct iwl_trans *trans); trans 1072 drivers/net/wireless/intel/iwlwifi/pcie/internal.h bool iwl_pcie_check_hw_rf_kill(struct iwl_trans *trans); trans 1073 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_trans_pcie_handle_stop_rfkill(struct iwl_trans *trans, trans 1075 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_pcie_txq_free_tfd(struct iwl_trans *trans, struct iwl_txq *txq); trans 1076 drivers/net/wireless/intel/iwlwifi/pcie/internal.h int iwl_queue_space(struct iwl_trans *trans, const struct iwl_txq *q); trans 1077 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_pcie_apm_stop_master(struct iwl_trans *trans); trans 1079 drivers/net/wireless/intel/iwlwifi/pcie/internal.h int iwl_pcie_txq_init(struct iwl_trans *trans, struct iwl_txq *txq, trans 1081 drivers/net/wireless/intel/iwlwifi/pcie/internal.h int iwl_pcie_txq_alloc(struct iwl_trans *trans, trans 1083 drivers/net/wireless/intel/iwlwifi/pcie/internal.h int iwl_pcie_alloc_dma_ptr(struct iwl_trans *trans, trans 1085 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_pcie_free_dma_ptr(struct iwl_trans *trans, struct iwl_dma_ptr *ptr); trans 1086 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_pcie_apply_destination(struct iwl_trans *trans); trans 1090 drivers/net/wireless/intel/iwlwifi/pcie/internal.h struct iwl_tso_hdr_page *get_page_hdr(struct iwl_trans *trans, size_t len); trans 1094 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_pcie_alloc_fw_monitor(struct iwl_trans *trans, u8 max_power); trans 1097 drivers/net/wireless/intel/iwlwifi/pcie/internal.h int iwl_trans_pcie_gen2_start_fw(struct iwl_trans *trans, trans 1099 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_trans_pcie_gen2_fw_alive(struct iwl_trans *trans, u32 scd_addr); trans 1100 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_pcie_gen2_txq_free_memory(struct iwl_trans *trans, trans 1102 drivers/net/wireless/intel/iwlwifi/pcie/internal.h int iwl_trans_pcie_dyn_txq_alloc_dma(struct iwl_trans *trans, trans 1105 drivers/net/wireless/intel/iwlwifi/pcie/internal.h int iwl_trans_pcie_txq_alloc_response(struct iwl_trans *trans, trans 1108 drivers/net/wireless/intel/iwlwifi/pcie/internal.h int iwl_trans_pcie_dyn_txq_alloc(struct iwl_trans *trans, trans 1112 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_trans_pcie_dyn_txq_free(struct iwl_trans *trans, int queue); trans 1113 drivers/net/wireless/intel/iwlwifi/pcie/internal.h int iwl_trans_pcie_gen2_tx(struct iwl_trans *trans, struct sk_buff *skb, trans 1115 drivers/net/wireless/intel/iwlwifi/pcie/internal.h int iwl_trans_pcie_gen2_send_hcmd(struct iwl_trans *trans, trans 1117 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_trans_pcie_gen2_stop_device(struct iwl_trans *trans); trans 1118 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void _iwl_trans_pcie_gen2_stop_device(struct iwl_trans *trans); trans 1119 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_pcie_gen2_txq_unmap(struct iwl_trans *trans, int txq_id); trans 1120 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_pcie_gen2_tx_free(struct iwl_trans *trans); trans 1121 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_pcie_gen2_tx_stop(struct iwl_trans *trans); trans 1122 drivers/net/wireless/intel/iwlwifi/pcie/internal.h void iwl_pcie_d3_complete_suspend(struct iwl_trans *trans, trans 201 drivers/net/wireless/intel/iwlwifi/pcie/rx.c int iwl_pcie_rx_stop(struct iwl_trans *trans) trans 203 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22560) { trans 205 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write_umac_prph(trans, RFH_RXF_DMA_CFG_GEN3, 0); trans 206 drivers/net/wireless/intel/iwlwifi/pcie/rx.c return iwl_poll_umac_prph_bit(trans, RFH_GEN_STATUS_GEN3, trans 208 drivers/net/wireless/intel/iwlwifi/pcie/rx.c } else if (trans->trans_cfg->mq_rx_supported) { trans 209 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write_prph(trans, RFH_RXF_DMA_CFG, 0); trans 210 drivers/net/wireless/intel/iwlwifi/pcie/rx.c return iwl_poll_prph_bit(trans, RFH_GEN_STATUS, trans 213 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write_direct32(trans, FH_MEM_RCSR_CHNL0_CONFIG_REG, 0); trans 214 drivers/net/wireless/intel/iwlwifi/pcie/rx.c return iwl_poll_direct_bit(trans, FH_MEM_RSSR_RX_STATUS_REG, trans 223 drivers/net/wireless/intel/iwlwifi/pcie/rx.c static void iwl_pcie_rxq_inc_wr_ptr(struct iwl_trans *trans, trans 235 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (!trans->trans_cfg->base_params->shadow_reg_enable && trans 236 drivers/net/wireless/intel/iwlwifi/pcie/rx.c test_bit(STATUS_TPOWER_PMI, &trans->status)) { trans 237 drivers/net/wireless/intel/iwlwifi/pcie/rx.c reg = iwl_read32(trans, CSR_UCODE_DRV_GP1); trans 240 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_INFO(trans, "Rx queue requesting wakeup, GP1 = 0x%x\n", trans 242 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_set_bit(trans, CSR_GP_CNTRL, trans 243 drivers/net/wireless/intel/iwlwifi/pcie/rx.c BIT(trans->trans_cfg->csr->flag_mac_access_req)); trans 250 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (trans->trans_cfg->device_family == IWL_DEVICE_FAMILY_22560) trans 251 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write32(trans, HBUS_TARG_WRPTR, trans 254 drivers/net/wireless/intel/iwlwifi/pcie/rx.c else if (trans->trans_cfg->mq_rx_supported) trans 255 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write32(trans, RFH_Q_FRBDCB_WIDX_TRG(rxq->id), trans 258 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write32(trans, FH_RSCSR_CHNL0_WPTR, rxq->write_actual); trans 261 drivers/net/wireless/intel/iwlwifi/pcie/rx.c static void iwl_pcie_rxq_check_wrptr(struct iwl_trans *trans) trans 263 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 266 drivers/net/wireless/intel/iwlwifi/pcie/rx.c for (i = 0; i < trans->num_rx_queues; i++) { trans 272 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_rxq_inc_wr_ptr(trans, rxq); trans 278 drivers/net/wireless/intel/iwlwifi/pcie/rx.c static void iwl_pcie_restock_bd(struct iwl_trans *trans, trans 282 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22560) { trans 295 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_RX(trans, "Assigned virtual RB ID %u to queue %d index %d\n", trans 302 drivers/net/wireless/intel/iwlwifi/pcie/rx.c static void iwl_pcie_rxmq_restock(struct iwl_trans *trans, trans 315 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (!test_bit(STATUS_DEVICE_ENABLED, &trans->status)) trans 328 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_restock_bd(trans, rxq, rxb); trans 340 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_rxq_inc_wr_ptr(trans, rxq); trans 348 drivers/net/wireless/intel/iwlwifi/pcie/rx.c static void iwl_pcie_rxsq_restock(struct iwl_trans *trans, trans 361 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (!test_bit(STATUS_DEVICE_ENABLED, &trans->status)) trans 389 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_rxq_inc_wr_ptr(trans, rxq); trans 406 drivers/net/wireless/intel/iwlwifi/pcie/rx.c void iwl_pcie_rxq_restock(struct iwl_trans *trans, struct iwl_rxq *rxq) trans 408 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (trans->trans_cfg->mq_rx_supported) trans 409 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_rxmq_restock(trans, rxq); trans 411 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_rxsq_restock(trans, rxq); trans 418 drivers/net/wireless/intel/iwlwifi/pcie/rx.c static struct page *iwl_pcie_rx_alloc_page(struct iwl_trans *trans, trans 421 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 432 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_INFO(trans, "alloc_pages failed, order: %d\n", trans 439 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_CRIT(trans, trans 455 drivers/net/wireless/intel/iwlwifi/pcie/rx.c void iwl_pcie_rxq_alloc_rbs(struct iwl_trans *trans, gfp_t priority, trans 458 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 471 drivers/net/wireless/intel/iwlwifi/pcie/rx.c page = iwl_pcie_rx_alloc_page(trans, priority); trans 491 drivers/net/wireless/intel/iwlwifi/pcie/rx.c dma_map_page(trans->dev, page, 0, trans 494 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (dma_mapping_error(trans->dev, rxb->page_dma)) { trans 512 drivers/net/wireless/intel/iwlwifi/pcie/rx.c void iwl_pcie_free_rbs_pool(struct iwl_trans *trans) trans 514 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 520 drivers/net/wireless/intel/iwlwifi/pcie/rx.c dma_unmap_page(trans->dev, trans_pcie->rx_pool[i].page_dma, trans 535 drivers/net/wireless/intel/iwlwifi/pcie/rx.c static void iwl_pcie_rx_allocator(struct iwl_trans *trans) trans 537 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 542 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_TPT(trans, "Pending allocation requests = %d\n", pending); trans 575 drivers/net/wireless/intel/iwlwifi/pcie/rx.c page = iwl_pcie_rx_alloc_page(trans, gfp_mask); trans 581 drivers/net/wireless/intel/iwlwifi/pcie/rx.c rxb->page_dma = dma_map_page(trans->dev, page, 0, trans 584 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (dma_mapping_error(trans->dev, rxb->page_dma)) { trans 601 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_TPT(trans, trans 622 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_TPT(trans, "%s, exit.\n", __func__); trans 633 drivers/net/wireless/intel/iwlwifi/pcie/rx.c static void iwl_pcie_rx_allocator_get(struct iwl_trans *trans, trans 636 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 675 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_rx_allocator(trans_pcie->trans); trans 678 drivers/net/wireless/intel/iwlwifi/pcie/rx.c static int iwl_pcie_free_bd_size(struct iwl_trans *trans, bool use_rx_td) trans 685 drivers/net/wireless/intel/iwlwifi/pcie/rx.c return trans->trans_cfg->mq_rx_supported ? sizeof(__le64) : trans 689 drivers/net/wireless/intel/iwlwifi/pcie/rx.c static void iwl_pcie_free_rxq_dma(struct iwl_trans *trans, trans 692 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct device *dev = trans->dev; trans 693 drivers/net/wireless/intel/iwlwifi/pcie/rx.c bool use_rx_td = (trans->trans_cfg->device_family >= trans 695 drivers/net/wireless/intel/iwlwifi/pcie/rx.c int free_size = iwl_pcie_free_bd_size(trans, use_rx_td); trans 698 drivers/net/wireless/intel/iwlwifi/pcie/rx.c dma_free_coherent(trans->dev, trans 708 drivers/net/wireless/intel/iwlwifi/pcie/rx.c dma_free_coherent(trans->dev, trans 715 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (trans->trans_cfg->device_family < IWL_DEVICE_FAMILY_22560) trans 731 drivers/net/wireless/intel/iwlwifi/pcie/rx.c static int iwl_pcie_alloc_rxq_dma(struct iwl_trans *trans, trans 734 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 735 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct device *dev = trans->dev; trans 738 drivers/net/wireless/intel/iwlwifi/pcie/rx.c bool use_rx_td = (trans->trans_cfg->device_family >= trans 744 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (trans->trans_cfg->mq_rx_supported) trans 749 drivers/net/wireless/intel/iwlwifi/pcie/rx.c free_size = iwl_pcie_free_bd_size(trans, use_rx_td); trans 760 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (trans->trans_cfg->mq_rx_supported) { trans 796 drivers/net/wireless/intel/iwlwifi/pcie/rx.c for (i = 0; i < trans->num_rx_queues; i++) { trans 799 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_free_rxq_dma(trans, rxq); trans 805 drivers/net/wireless/intel/iwlwifi/pcie/rx.c int iwl_pcie_rx_alloc(struct iwl_trans *trans) trans 807 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 810 drivers/net/wireless/intel/iwlwifi/pcie/rx.c size_t rb_stts_size = trans->trans_cfg->device_family >= trans 817 drivers/net/wireless/intel/iwlwifi/pcie/rx.c trans_pcie->rxq = kcalloc(trans->num_rx_queues, sizeof(struct iwl_rxq), trans 829 drivers/net/wireless/intel/iwlwifi/pcie/rx.c dma_alloc_coherent(trans->dev, trans 830 drivers/net/wireless/intel/iwlwifi/pcie/rx.c rb_stts_size * trans->num_rx_queues, trans 838 drivers/net/wireless/intel/iwlwifi/pcie/rx.c for (i = 0; i < trans->num_rx_queues; i++) { trans 842 drivers/net/wireless/intel/iwlwifi/pcie/rx.c ret = iwl_pcie_alloc_rxq_dma(trans, rxq); trans 850 drivers/net/wireless/intel/iwlwifi/pcie/rx.c dma_free_coherent(trans->dev, trans 851 drivers/net/wireless/intel/iwlwifi/pcie/rx.c rb_stts_size * trans->num_rx_queues, trans 862 drivers/net/wireless/intel/iwlwifi/pcie/rx.c static void iwl_pcie_rx_hw_init(struct iwl_trans *trans, struct iwl_rxq *rxq) trans 864 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 884 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (!iwl_trans_grab_nic_access(trans, &flags)) trans 888 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write32(trans, FH_MEM_RCSR_CHNL0_CONFIG_REG, 0); trans 890 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write32(trans, FH_MEM_RCSR_CHNL0_RBDCB_WPTR, 0); trans 891 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write32(trans, FH_MEM_RCSR_CHNL0_FLUSH_RB_REQ, 0); trans 892 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write32(trans, FH_RSCSR_CHNL0_RDPTR, 0); trans 895 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write32(trans, FH_RSCSR_CHNL0_RBDCB_WPTR_REG, 0); trans 898 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write32(trans, FH_RSCSR_CHNL0_RBDCB_BASE_REG, trans 902 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write32(trans, FH_RSCSR_CHNL0_STTS_WPTR_REG, trans 913 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write32(trans, FH_MEM_RCSR_CHNL0_CONFIG_REG, trans 921 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_trans_release_nic_access(trans, &flags); trans 924 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write8(trans, CSR_INT_COALESCING, IWL_HOST_INT_TIMEOUT_DEF); trans 927 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (trans->cfg->host_interrupt_operation_mode) trans 928 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_set_bit(trans, CSR_INT_COALESCING, IWL_HOST_INT_OPER_MODE); trans 931 drivers/net/wireless/intel/iwlwifi/pcie/rx.c static void iwl_pcie_rx_mq_hw_init(struct iwl_trans *trans) trans 933 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 956 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (!iwl_trans_grab_nic_access(trans, &flags)) trans 960 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write_prph_no_grab(trans, RFH_RXF_DMA_CFG, 0); trans 962 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write_prph_no_grab(trans, RFH_RXF_RXQ_ACTIVE, 0); trans 964 drivers/net/wireless/intel/iwlwifi/pcie/rx.c for (i = 0; i < trans->num_rx_queues; i++) { trans 966 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write_prph64_no_grab(trans, trans 970 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write_prph64_no_grab(trans, trans 974 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write_prph64_no_grab(trans, trans 978 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write_prph_no_grab(trans, RFH_Q_FRBDCB_WIDX(i), 0); trans 979 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write_prph_no_grab(trans, RFH_Q_FRBDCB_RIDX(i), 0); trans 980 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write_prph_no_grab(trans, RFH_Q_URBDCB_WIDX(i), 0); trans 992 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write_prph_no_grab(trans, RFH_RXF_DMA_CFG, trans 1003 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write_prph_no_grab(trans, RFH_GEN_CFG, trans 1008 drivers/net/wireless/intel/iwlwifi/pcie/rx.c trans->cfg->integrated ? trans 1012 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write_prph_no_grab(trans, RFH_RXF_RXQ_ACTIVE, enabled); trans 1014 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_trans_release_nic_access(trans, &flags); trans 1017 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write8(trans, CSR_INT_COALESCING, IWL_HOST_INT_TIMEOUT_DEF); trans 1036 drivers/net/wireless/intel/iwlwifi/pcie/rx.c int _iwl_pcie_rx_init(struct iwl_trans *trans) trans 1038 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1044 drivers/net/wireless/intel/iwlwifi/pcie/rx.c err = iwl_pcie_rx_alloc(trans); trans 1060 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_free_rbs_pool(trans); trans 1065 drivers/net/wireless/intel/iwlwifi/pcie/rx.c for (i = 0; i < trans->num_rx_queues; i++) { trans 1077 drivers/net/wireless/intel/iwlwifi/pcie/rx.c memset(rxq->rb_stts, 0, (trans->trans_cfg->device_family >= trans 1091 drivers/net/wireless/intel/iwlwifi/pcie/rx.c queue_size = trans->trans_cfg->mq_rx_supported ? trans 1093 drivers/net/wireless/intel/iwlwifi/pcie/rx.c allocator_pool_size = trans->num_rx_queues * trans 1110 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_rxq_alloc_rbs(trans, GFP_KERNEL, def_rxq); trans 1115 drivers/net/wireless/intel/iwlwifi/pcie/rx.c int iwl_pcie_rx_init(struct iwl_trans *trans) trans 1117 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1118 drivers/net/wireless/intel/iwlwifi/pcie/rx.c int ret = _iwl_pcie_rx_init(trans); trans 1123 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (trans->trans_cfg->mq_rx_supported) trans 1124 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_rx_mq_hw_init(trans); trans 1126 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_rx_hw_init(trans, trans_pcie->rxq); trans 1128 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_rxq_restock(trans, trans_pcie->rxq); trans 1131 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_rxq_inc_wr_ptr(trans, trans_pcie->rxq); trans 1137 drivers/net/wireless/intel/iwlwifi/pcie/rx.c int iwl_pcie_gen2_rx_init(struct iwl_trans *trans) trans 1140 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write8(trans, CSR_INT_COALESCING, IWL_HOST_INT_TIMEOUT_DEF); trans 1146 drivers/net/wireless/intel/iwlwifi/pcie/rx.c return _iwl_pcie_rx_init(trans); trans 1149 drivers/net/wireless/intel/iwlwifi/pcie/rx.c void iwl_pcie_rx_free(struct iwl_trans *trans) trans 1151 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1154 drivers/net/wireless/intel/iwlwifi/pcie/rx.c size_t rb_stts_size = trans->trans_cfg->device_family >= trans 1163 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_INFO(trans, "Free NULL rx context\n"); trans 1169 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_free_rbs_pool(trans); trans 1172 drivers/net/wireless/intel/iwlwifi/pcie/rx.c dma_free_coherent(trans->dev, trans 1173 drivers/net/wireless/intel/iwlwifi/pcie/rx.c rb_stts_size * trans->num_rx_queues, trans 1180 drivers/net/wireless/intel/iwlwifi/pcie/rx.c for (i = 0; i < trans->num_rx_queues; i++) { trans 1183 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_free_rxq_dma(trans, rxq); trans 1205 drivers/net/wireless/intel/iwlwifi/pcie/rx.c static void iwl_pcie_rx_reuse_rbd(struct iwl_trans *trans, trans 1209 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1237 drivers/net/wireless/intel/iwlwifi/pcie/rx.c static void iwl_pcie_rx_handle_rb(struct iwl_trans *trans, trans 1243 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1252 drivers/net/wireless/intel/iwlwifi/pcie/rx.c dma_unmap_page(trans->dev, rxb->page_dma, max_len, DMA_FROM_DEVICE); trans 1270 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_RX(trans, trans 1283 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_RX(trans, trans 1286 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_get_cmd_string(trans, trans 1295 drivers/net/wireless/intel/iwlwifi/pcie/rx.c trace_iwlwifi_dev_rx(trans->dev, trans, pkt, len); trans 1296 drivers/net/wireless/intel/iwlwifi/pcie/rx.c trace_iwlwifi_dev_rx_data(trans->dev, trans, pkt, len); trans 1322 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_op_mode_rx(trans->op_mode, &rxq->napi, trans 1325 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_op_mode_rx_rss(trans->op_mode, &rxq->napi, trans 1344 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_hcmd_complete(trans, &rxcb); trans 1346 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_WARN(trans, "Claim null rxb?\n"); trans 1350 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22560) trans 1366 drivers/net/wireless/intel/iwlwifi/pcie/rx.c dma_map_page(trans->dev, rxb->page, 0, trans 1369 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (dma_mapping_error(trans->dev, rxb->page_dma)) { trans 1377 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_rx_reuse_rbd(trans, rxb, rxq, emergency); trans 1383 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_rx_reuse_rbd(trans, rxb, rxq, emergency); trans 1386 drivers/net/wireless/intel/iwlwifi/pcie/rx.c static struct iwl_rx_mem_buffer *iwl_pcie_get_rxb(struct iwl_trans *trans, trans 1389 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1395 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (!trans->trans_cfg->mq_rx_supported) { trans 1402 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22560) trans 1414 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_RX(trans, "Got virtual RB ID %u\n", (u32)rxb->vid); trans 1422 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_force_nmi(trans); trans 1429 drivers/net/wireless/intel/iwlwifi/pcie/rx.c static void iwl_pcie_rx_handle(struct iwl_trans *trans, int queue) trans 1431 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1446 drivers/net/wireless/intel/iwlwifi/pcie/rx.c r = le16_to_cpu(iwl_get_closed_rb_stts(trans, rxq)) & 0x0FFF; trans 1454 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_RX(trans, "Q %d: HW = SW = %d\n", rxq->id, r); trans 1468 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_TPT(trans, trans 1473 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_RX(trans, "Q %d: HW = %d, SW = %d\n", rxq->id, r, i); trans 1475 drivers/net/wireless/intel/iwlwifi/pcie/rx.c rxb = iwl_pcie_get_rxb(trans, rxq, i); trans 1479 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_rx_handle_rb(trans, rxq, rxb, emergency, i); trans 1491 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_rx_allocator_get(trans, rxq); trans 1501 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_TPT(trans, trans 1509 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_rxq_alloc_rbs(trans, GFP_ATOMIC, rxq); trans 1510 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_rxq_restock(trans, rxq); trans 1519 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22560) trans 1536 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_rxq_alloc_rbs(trans, GFP_ATOMIC, rxq); trans 1549 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_rxq_restock(trans, rxq); trans 1568 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct iwl_trans *trans = trans_pcie->trans; trans 1570 drivers/net/wireless/intel/iwlwifi/pcie/rx.c trace_iwlwifi_dev_irq_msix(trans->dev, entry, false, 0, 0); trans 1572 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (WARN_ON(entry->entry >= trans->num_rx_queues)) trans 1575 drivers/net/wireless/intel/iwlwifi/pcie/rx.c lock_map_acquire(&trans->sync_cmd_lockdep_map); trans 1578 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_rx_handle(trans, entry->entry); trans 1581 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_clear_irq(trans, entry); trans 1583 drivers/net/wireless/intel/iwlwifi/pcie/rx.c lock_map_release(&trans->sync_cmd_lockdep_map); trans 1591 drivers/net/wireless/intel/iwlwifi/pcie/rx.c static void iwl_pcie_irq_handle_error(struct iwl_trans *trans) trans 1593 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1597 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (trans->cfg->internal_wimax_coex && trans 1598 drivers/net/wireless/intel/iwlwifi/pcie/rx.c !trans->cfg->apmg_not_supported && trans 1599 drivers/net/wireless/intel/iwlwifi/pcie/rx.c (!(iwl_read_prph(trans, APMG_CLK_CTRL_REG) & trans 1601 drivers/net/wireless/intel/iwlwifi/pcie/rx.c (iwl_read_prph(trans, APMG_PS_CTRL_REG) & trans 1603 drivers/net/wireless/intel/iwlwifi/pcie/rx.c clear_bit(STATUS_SYNC_HCMD_ACTIVE, &trans->status); trans 1604 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_op_mode_wimax_active(trans->op_mode); trans 1609 drivers/net/wireless/intel/iwlwifi/pcie/rx.c for (i = 0; i < trans->trans_cfg->base_params->num_of_queues; i++) { trans 1617 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_trans_fw_error(trans); trans 1619 drivers/net/wireless/intel/iwlwifi/pcie/rx.c clear_bit(STATUS_SYNC_HCMD_ACTIVE, &trans->status); trans 1623 drivers/net/wireless/intel/iwlwifi/pcie/rx.c static u32 iwl_pcie_int_cause_non_ict(struct iwl_trans *trans) trans 1627 drivers/net/wireless/intel/iwlwifi/pcie/rx.c lockdep_assert_held(&IWL_TRANS_GET_PCIE_TRANS(trans)->irq_lock); trans 1629 drivers/net/wireless/intel/iwlwifi/pcie/rx.c trace_iwlwifi_dev_irq(trans->dev); trans 1632 drivers/net/wireless/intel/iwlwifi/pcie/rx.c inta = iwl_read32(trans, CSR_INT); trans 1651 drivers/net/wireless/intel/iwlwifi/pcie/rx.c static u32 iwl_pcie_int_cause_ict(struct iwl_trans *trans) trans 1653 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1658 drivers/net/wireless/intel/iwlwifi/pcie/rx.c trace_iwlwifi_dev_irq(trans->dev); trans 1664 drivers/net/wireless/intel/iwlwifi/pcie/rx.c trace_iwlwifi_dev_ict_read(trans->dev, trans_pcie->ict_index, read); trans 1674 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_ISR(trans, "ICT index %d value 0x%08X\n", trans 1681 drivers/net/wireless/intel/iwlwifi/pcie/rx.c trace_iwlwifi_dev_ict_read(trans->dev, trans_pcie->ict_index, trans 1703 drivers/net/wireless/intel/iwlwifi/pcie/rx.c void iwl_pcie_handle_rfkill_irq(struct iwl_trans *trans) trans 1705 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1710 drivers/net/wireless/intel/iwlwifi/pcie/rx.c prev = test_bit(STATUS_RFKILL_OPMODE, &trans->status); trans 1711 drivers/net/wireless/intel/iwlwifi/pcie/rx.c hw_rfkill = iwl_is_rfkill_set(trans); trans 1713 drivers/net/wireless/intel/iwlwifi/pcie/rx.c set_bit(STATUS_RFKILL_OPMODE, &trans->status); trans 1714 drivers/net/wireless/intel/iwlwifi/pcie/rx.c set_bit(STATUS_RFKILL_HW, &trans->status); trans 1719 drivers/net/wireless/intel/iwlwifi/pcie/rx.c report = test_bit(STATUS_RFKILL_OPMODE, &trans->status); trans 1721 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_WARN(trans, "RF_KILL bit toggled to %s.\n", trans 1727 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_trans_pcie_rf_kill(trans, report); trans 1732 drivers/net/wireless/intel/iwlwifi/pcie/rx.c &trans->status)) trans 1733 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_RF_KILL(trans, trans 1737 drivers/net/wireless/intel/iwlwifi/pcie/rx.c clear_bit(STATUS_RFKILL_HW, &trans->status); trans 1739 drivers/net/wireless/intel/iwlwifi/pcie/rx.c clear_bit(STATUS_RFKILL_OPMODE, &trans->status); trans 1745 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct iwl_trans *trans = dev_id; trans 1746 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1751 drivers/net/wireless/intel/iwlwifi/pcie/rx.c lock_map_acquire(&trans->sync_cmd_lockdep_map); trans 1759 drivers/net/wireless/intel/iwlwifi/pcie/rx.c inta = iwl_pcie_int_cause_ict(trans); trans 1761 drivers/net/wireless/intel/iwlwifi/pcie/rx.c inta = iwl_pcie_int_cause_non_ict(trans); trans 1764 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_ISR(trans, trans 1767 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_read32(trans, CSR_INT_MASK), trans 1768 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_read32(trans, CSR_FH_INT_STATUS)); trans 1770 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_ISR(trans, trans 1783 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_ISR(trans, "Ignore interrupt, inta == 0\n"); trans 1788 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (test_bit(STATUS_INT_ENABLED, &trans->status)) trans 1789 drivers/net/wireless/intel/iwlwifi/pcie/rx.c _iwl_enable_interrupts(trans); trans 1791 drivers/net/wireless/intel/iwlwifi/pcie/rx.c lock_map_release(&trans->sync_cmd_lockdep_map); trans 1800 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_WARN(trans, "HARDWARE GONE?? INTA == 0x%08x\n", inta); trans 1816 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write32(trans, CSR_INT, inta | ~trans_pcie->inta_mask); trans 1819 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_ISR(trans, "inta 0x%08x, enabled 0x%08x\n", trans 1820 drivers/net/wireless/intel/iwlwifi/pcie/rx.c inta, iwl_read32(trans, CSR_INT_MASK)); trans 1826 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_ERR(trans, "Hardware error detected. Restarting.\n"); trans 1829 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_disable_interrupts(trans); trans 1832 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_irq_handle_error(trans); trans 1841 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_ISR(trans, trans 1848 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_ISR(trans, "Alive interrupt\n"); trans 1850 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (trans->trans_cfg->gen2) { trans 1855 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_rxmq_restock(trans, trans_pcie->rxq); trans 1866 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_handle_rfkill_irq(trans); trans 1872 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_ERR(trans, "Microcode CT kill error detected.\n"); trans 1879 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_ERR(trans, "Microcode SW error detected. " trans 1882 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_irq_handle_error(trans); trans 1888 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_ISR(trans, "Wakeup interrupt\n"); trans 1889 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_rxq_check_wrptr(trans); trans 1890 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_txq_check_wrptrs(trans); trans 1902 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_ISR(trans, "Rx interrupt\n"); trans 1905 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write32(trans, CSR_FH_INT_STATUS, trans 1910 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write32(trans, trans 1925 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write8(trans, CSR_INT_PERIODIC_REG, trans 1936 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write8(trans, CSR_INT_PERIODIC_REG, trans 1942 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_rx_handle(trans, 0); trans 1948 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write32(trans, CSR_FH_INT_STATUS, CSR_FH_INT_TX_MASK); trans 1949 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_ISR(trans, "uCode load interrupt\n"); trans 1958 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_ERR(trans, "Unhandled INTA bits 0x%08x\n", inta & ~handled); trans 1963 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_WARN(trans, "Disabled INTA bits 0x%08x were pending\n", trans 1969 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (test_bit(STATUS_INT_ENABLED, &trans->status)) trans 1970 drivers/net/wireless/intel/iwlwifi/pcie/rx.c _iwl_enable_interrupts(trans); trans 1973 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_enable_fw_load_int(trans); trans 1976 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_enable_rfkill_int(trans); trans 1979 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_enable_fw_load_int_ctx_info(trans); trans 1983 drivers/net/wireless/intel/iwlwifi/pcie/rx.c lock_map_release(&trans->sync_cmd_lockdep_map); trans 1994 drivers/net/wireless/intel/iwlwifi/pcie/rx.c void iwl_pcie_free_ict(struct iwl_trans *trans) trans 1996 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1999 drivers/net/wireless/intel/iwlwifi/pcie/rx.c dma_free_coherent(trans->dev, ICT_SIZE, trans 2012 drivers/net/wireless/intel/iwlwifi/pcie/rx.c int iwl_pcie_alloc_ict(struct iwl_trans *trans) trans 2014 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 2017 drivers/net/wireless/intel/iwlwifi/pcie/rx.c dma_alloc_coherent(trans->dev, ICT_SIZE, trans 2024 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_free_ict(trans); trans 2034 drivers/net/wireless/intel/iwlwifi/pcie/rx.c void iwl_pcie_reset_ict(struct iwl_trans *trans) trans 2036 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 2043 drivers/net/wireless/intel/iwlwifi/pcie/rx.c _iwl_disable_interrupts(trans); trans 2053 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_ISR(trans, "CSR_DRAM_INT_TBL_REG =0x%x\n", val); trans 2055 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write32(trans, CSR_DRAM_INT_TBL_REG, val); trans 2058 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write32(trans, CSR_INT, trans_pcie->inta_mask); trans 2059 drivers/net/wireless/intel/iwlwifi/pcie/rx.c _iwl_enable_interrupts(trans); trans 2064 drivers/net/wireless/intel/iwlwifi/pcie/rx.c void iwl_pcie_disable_ict(struct iwl_trans *trans) trans 2066 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 2075 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct iwl_trans *trans = data; trans 2077 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (!trans) trans 2085 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write32(trans, CSR_INT_MASK, 0x00000000); trans 2099 drivers/net/wireless/intel/iwlwifi/pcie/rx.c struct iwl_trans *trans = trans_pcie->trans; trans 2103 drivers/net/wireless/intel/iwlwifi/pcie/rx.c lock_map_acquire(&trans->sync_cmd_lockdep_map); trans 2106 drivers/net/wireless/intel/iwlwifi/pcie/rx.c inta_fh = iwl_read32(trans, CSR_MSIX_FH_INT_CAUSES_AD); trans 2107 drivers/net/wireless/intel/iwlwifi/pcie/rx.c inta_hw = iwl_read32(trans, CSR_MSIX_HW_INT_CAUSES_AD); trans 2111 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write32(trans, CSR_MSIX_FH_INT_CAUSES_AD, inta_fh); trans 2112 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_write32(trans, CSR_MSIX_HW_INT_CAUSES_AD, inta_hw); trans 2115 drivers/net/wireless/intel/iwlwifi/pcie/rx.c trace_iwlwifi_dev_irq_msix(trans->dev, entry, true, inta_fh, inta_hw); trans 2118 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_ISR(trans, "Ignore interrupt, inta == 0\n"); trans 2119 drivers/net/wireless/intel/iwlwifi/pcie/rx.c lock_map_release(&trans->sync_cmd_lockdep_map); trans 2124 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_ISR(trans, trans 2127 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_read32(trans, CSR_MSIX_FH_INT_MASK_AD)); trans 2129 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_ISR(trans, trans 2139 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_rx_handle(trans, 0); trans 2146 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_rx_handle(trans, 1); trans 2152 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_ISR(trans, "uCode load interrupt\n"); trans 2166 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_ERR(trans, trans 2170 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_irq_handle_error(trans); trans 2175 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_ISR(trans, trans 2178 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_read32(trans, CSR_MSIX_HW_INT_MASK_AD)); trans 2180 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_ISR(trans, trans 2189 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_ISR(trans, "Alive interrupt\n"); trans 2191 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (trans->trans_cfg->gen2) { trans 2193 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_rxmq_restock(trans, trans_pcie->rxq); trans 2197 drivers/net/wireless/intel/iwlwifi/pcie/rx.c if (trans->trans_cfg->device_family == IWL_DEVICE_FAMILY_22560 && trans 2200 drivers/net/wireless/intel/iwlwifi/pcie/rx.c int res = iwl_read32(trans, CSR_IML_RESP_ADDR); trans 2202 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_ISR(trans, "IML transfer status: %d\n", res); trans 2205 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_irq_handle_error(trans); trans 2212 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_ISR(trans, trans 2219 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_ISR(trans, "Wakeup interrupt\n"); trans 2220 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_rxq_check_wrptr(trans); trans 2221 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_txq_check_wrptrs(trans); trans 2229 drivers/net/wireless/intel/iwlwifi/pcie/rx.c int res = iwl_read32(trans, CSR_IML_RESP_ADDR); trans 2231 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_DEBUG_ISR(trans, "IML transfer status: %d\n", res); trans 2234 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_irq_handle_error(trans); trans 2240 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_ERR(trans, "Microcode CT kill error detected.\n"); trans 2246 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_handle_rfkill_irq(trans); trans 2249 drivers/net/wireless/intel/iwlwifi/pcie/rx.c IWL_ERR(trans, trans 2253 drivers/net/wireless/intel/iwlwifi/pcie/rx.c trans->dbg.hw_error = true; trans 2254 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_irq_handle_error(trans); trans 2257 drivers/net/wireless/intel/iwlwifi/pcie/rx.c iwl_pcie_clear_irq(trans, entry); trans 2259 drivers/net/wireless/intel/iwlwifi/pcie/rx.c lock_map_release(&trans->sync_cmd_lockdep_map); trans 65 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c int iwl_pcie_gen2_apm_init(struct iwl_trans *trans) trans 69 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c IWL_DEBUG_INFO(trans, "Init card's basic functions\n"); trans 80 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_set_bit(trans, CSR_GIO_CHICKEN_BITS, trans 84 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_set_bit(trans, CSR_DBG_HPET_MEM_REG, CSR_DBG_HPET_MEM_REG_VAL); trans 90 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_set_bit(trans, CSR_HW_IF_CONFIG_REG, trans 93 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_pcie_apm_config(trans); trans 95 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c ret = iwl_finish_nic_init(trans, trans->trans_cfg); trans 99 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c set_bit(STATUS_DEVICE_ENABLED, &trans->status); trans 104 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c static void iwl_pcie_gen2_apm_stop(struct iwl_trans *trans, bool op_mode_leave) trans 106 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c IWL_DEBUG_INFO(trans, "Stop card, put in low power state\n"); trans 109 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c if (!test_bit(STATUS_DEVICE_ENABLED, &trans->status)) trans 110 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_pcie_gen2_apm_init(trans); trans 113 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_set_bit(trans, CSR_DBG_LINK_PWR_MGMT_REG, trans 115 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_set_bit(trans, CSR_HW_IF_CONFIG_REG, trans 119 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_clear_bit(trans, CSR_DBG_LINK_PWR_MGMT_REG, trans 124 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c clear_bit(STATUS_DEVICE_ENABLED, &trans->status); trans 127 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_pcie_apm_stop_master(trans); trans 129 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_trans_sw_reset(trans); trans 135 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_clear_bit(trans, CSR_GP_CNTRL, trans 136 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c BIT(trans->trans_cfg->csr->flag_init_done)); trans 139 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c void _iwl_trans_pcie_gen2_stop_device(struct iwl_trans *trans) trans 141 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 151 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_disable_interrupts(trans); trans 154 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_pcie_disable_ict(trans); trans 163 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c if (test_and_clear_bit(STATUS_DEVICE_ENABLED, &trans->status)) { trans 164 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c IWL_DEBUG_INFO(trans, trans 166 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_pcie_gen2_tx_stop(trans); trans 167 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_pcie_rx_stop(trans); trans 170 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_pcie_ctxt_info_free_paging(trans); trans 171 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22560) trans 172 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_pcie_ctxt_info_gen3_free(trans); trans 174 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_pcie_ctxt_info_free(trans); trans 177 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_clear_bit(trans, CSR_GP_CNTRL, trans 178 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c BIT(trans->trans_cfg->csr->flag_mac_access_req)); trans 181 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_pcie_gen2_apm_stop(trans, false); trans 183 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_trans_sw_reset(trans); trans 201 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_disable_interrupts(trans); trans 204 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c clear_bit(STATUS_SYNC_HCMD_ACTIVE, &trans->status); trans 205 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c clear_bit(STATUS_INT_ENABLED, &trans->status); trans 206 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c clear_bit(STATUS_TPOWER_PMI, &trans->status); trans 212 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_enable_rfkill_int(trans); trans 215 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_pcie_prepare_card_hw(trans); trans 218 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c void iwl_trans_pcie_gen2_stop_device(struct iwl_trans *trans) trans 220 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 225 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c was_in_rfkill = test_bit(STATUS_RFKILL_OPMODE, &trans->status); trans 226 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c _iwl_trans_pcie_gen2_stop_device(trans); trans 227 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_trans_pcie_handle_stop_rfkill(trans, was_in_rfkill); trans 231 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c static int iwl_pcie_gen2_nic_init(struct iwl_trans *trans) trans 233 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 235 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c trans->cfg->min_txq_size); trans 239 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_pcie_gen2_apm_init(trans); trans 242 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_op_mode_nic_config(trans->op_mode); trans 245 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c if (iwl_pcie_gen2_rx_init(trans)) trans 249 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c if (iwl_pcie_gen2_tx_init(trans, trans_pcie->cmd_queue, queue_size)) trans 253 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_set_bit(trans, CSR_MAC_SHADOW_REG_CTRL, 0x800FFFFF); trans 254 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c IWL_DEBUG_INFO(trans, "Enabling shadow registers in device\n"); trans 259 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c void iwl_trans_pcie_gen2_fw_alive(struct iwl_trans *trans, u32 scd_addr) trans 261 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 263 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_pcie_reset_ict(trans); trans 272 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_pcie_ctxt_info_free(trans); trans 278 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_enable_interrupts(trans); trans 280 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_pcie_check_hw_rf_kill(trans); trans 284 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c int iwl_trans_pcie_gen2_start_fw(struct iwl_trans *trans, trans 287 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 292 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c if (iwl_pcie_prepare_card_hw(trans)) { trans 293 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c IWL_WARN(trans, "Exit HW not ready\n"); trans 298 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_enable_rfkill_int(trans); trans 300 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_write32(trans, CSR_INT, 0xFFFFFFFF); trans 307 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_disable_interrupts(trans); trans 310 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_pcie_synchronize_irqs(trans); trans 315 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c hw_rfkill = iwl_pcie_check_hw_rf_kill(trans); trans 323 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c IWL_WARN(trans, trans 330 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_write32(trans, CSR_UCODE_DRV_GP1_CLR, CSR_UCODE_SW_BIT_RFKILL); trans 331 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_write32(trans, CSR_UCODE_DRV_GP1_CLR, trans 335 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c iwl_write32(trans, CSR_INT, 0xFFFFFFFF); trans 337 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c ret = iwl_pcie_gen2_nic_init(trans); trans 339 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c IWL_ERR(trans, "Unable to init nic\n"); trans 343 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22560) trans 344 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c ret = iwl_pcie_ctxt_info_gen3_init(trans, fw); trans 346 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c ret = iwl_pcie_ctxt_info_init(trans, fw); trans 351 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c hw_rfkill = iwl_pcie_check_hw_rf_kill(trans); trans 90 drivers/net/wireless/intel/iwlwifi/pcie/trans.c void iwl_trans_pcie_dump_regs(struct iwl_trans *trans) trans 96 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 120 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_ERR(trans, "iwlwifi transaction failed, dumping registers\n"); trans 124 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_ERR(trans, "iwlwifi device config registers:\n"); trans 130 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_ERR(trans, "iwlwifi device memory mapped registers:\n"); trans 132 drivers/net/wireless/intel/iwlwifi/pcie/trans.c *ptr = iwl_read32(trans, i); trans 137 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_ERR(trans, "iwlwifi device AER capability structure:\n"); trans 152 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_ERR(trans, "iwlwifi parent port (%s) config registers:\n", trans 165 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_ERR(trans, "iwlwifi root port (%s) AER cap structure:\n", trans 178 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_ERR(trans, "Read failed at 0x%X\n", i); trans 184 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static void iwl_trans_pcie_sw_reset(struct iwl_trans *trans) trans 187 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_set_bit(trans, trans->trans_cfg->csr->addr_sw_reset, trans 188 drivers/net/wireless/intel/iwlwifi/pcie/trans.c BIT(trans->trans_cfg->csr->flag_sw_reset)); trans 192 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static void iwl_pcie_free_fw_monitor(struct iwl_trans *trans) trans 196 drivers/net/wireless/intel/iwlwifi/pcie/trans.c for (i = 0; i < trans->dbg.num_blocks; i++) { trans 197 drivers/net/wireless/intel/iwlwifi/pcie/trans.c dma_free_coherent(trans->dev, trans->dbg.fw_mon[i].size, trans 198 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->dbg.fw_mon[i].block, trans 199 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->dbg.fw_mon[i].physical); trans 200 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->dbg.fw_mon[i].block = NULL; trans 201 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->dbg.fw_mon[i].physical = 0; trans 202 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->dbg.fw_mon[i].size = 0; trans 203 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->dbg.num_blocks--; trans 207 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static void iwl_pcie_alloc_fw_monitor_block(struct iwl_trans *trans, trans 217 drivers/net/wireless/intel/iwlwifi/pcie/trans.c cpu_addr = dma_alloc_coherent(trans->dev, size, &phys, trans 222 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_INFO(trans, trans 232 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_ERR(trans, trans 237 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->dbg.fw_mon[trans->dbg.num_blocks].block = cpu_addr; trans 238 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->dbg.fw_mon[trans->dbg.num_blocks].physical = phys; trans 239 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->dbg.fw_mon[trans->dbg.num_blocks].size = size; trans 240 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->dbg.num_blocks++; trans 243 drivers/net/wireless/intel/iwlwifi/pcie/trans.c void iwl_pcie_alloc_fw_monitor(struct iwl_trans *trans, u8 max_power) trans 261 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->dbg.num_blocks) trans 264 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_alloc_fw_monitor_block(trans, max_power, 11); trans 267 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static u32 iwl_trans_pcie_read_shr(struct iwl_trans *trans, u32 reg) trans 269 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write32(trans, HEEP_CTRL_WRD_PCIEX_CTRL_REG, trans 271 drivers/net/wireless/intel/iwlwifi/pcie/trans.c return iwl_read32(trans, HEEP_CTRL_WRD_PCIEX_DATA_REG); trans 274 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static void iwl_trans_pcie_write_shr(struct iwl_trans *trans, u32 reg, u32 val) trans 276 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write32(trans, HEEP_CTRL_WRD_PCIEX_DATA_REG, val); trans 277 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write32(trans, HEEP_CTRL_WRD_PCIEX_CTRL_REG, trans 281 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static void iwl_pcie_set_pwr(struct iwl_trans *trans, bool vaux) trans 283 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->cfg->apmg_not_supported) trans 286 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (vaux && pci_pme_capable(to_pci_dev(trans->dev), PCI_D3cold)) trans 287 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_set_bits_mask_prph(trans, APMG_PS_CTRL_REG, trans 291 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_set_bits_mask_prph(trans, APMG_PS_CTRL_REG, trans 299 drivers/net/wireless/intel/iwlwifi/pcie/trans.c void iwl_pcie_apm_config(struct iwl_trans *trans) trans 301 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 315 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_set_bit(trans, CSR_GIO_REG, CSR_GIO_REG_VAL_L0S_ENABLED); trans 317 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_clear_bit(trans, CSR_GIO_REG, CSR_GIO_REG_VAL_L0S_ENABLED); trans 318 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->pm_support = !(lctl & PCI_EXP_LNKCTL_ASPM_L0S); trans 321 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->ltr_enabled = cap & PCI_EXP_DEVCTL2_LTR_EN; trans 322 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_DEBUG_POWER(trans, "L1 %sabled - LTR %sabled\n", trans 324 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->ltr_enabled ? "En" : "Dis"); trans 332 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static int iwl_pcie_apm_init(struct iwl_trans *trans) trans 336 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_DEBUG_INFO(trans, "Init card's basic functions\n"); trans 344 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->trans_cfg->device_family < IWL_DEVICE_FAMILY_8000) trans 345 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_set_bit(trans, CSR_GIO_CHICKEN_BITS, trans 352 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_set_bit(trans, CSR_GIO_CHICKEN_BITS, trans 356 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_set_bit(trans, CSR_DBG_HPET_MEM_REG, CSR_DBG_HPET_MEM_REG_VAL); trans 362 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_set_bit(trans, CSR_HW_IF_CONFIG_REG, trans 365 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_apm_config(trans); trans 368 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->trans_cfg->base_params->pll_cfg) trans 369 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_set_bit(trans, CSR_ANA_PLL_CFG, CSR50_ANA_PLL_CFG_VAL); trans 371 drivers/net/wireless/intel/iwlwifi/pcie/trans.c ret = iwl_finish_nic_init(trans, trans->trans_cfg); trans 375 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->cfg->host_interrupt_operation_mode) { trans 390 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_read_prph(trans, OSC_CLK); trans 391 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_read_prph(trans, OSC_CLK); trans 392 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_set_bits_prph(trans, OSC_CLK, OSC_CLK_FORCE_CONTROL); trans 393 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_read_prph(trans, OSC_CLK); trans 394 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_read_prph(trans, OSC_CLK); trans 404 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (!trans->cfg->apmg_not_supported) { trans 405 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write_prph(trans, APMG_CLK_EN_REG, trans 410 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_set_bits_prph(trans, APMG_PCIDEV_STT_REG, trans 414 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write_prph(trans, APMG_RTC_INT_STT_REG, trans 418 drivers/net/wireless/intel/iwlwifi/pcie/trans.c set_bit(STATUS_DEVICE_ENABLED, &trans->status); trans 430 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static void iwl_pcie_apm_lp_xtal_enable(struct iwl_trans *trans) trans 438 drivers/net/wireless/intel/iwlwifi/pcie/trans.c __iwl_trans_pcie_set_bit(trans, CSR_GP_CNTRL, trans 441 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_pcie_sw_reset(trans); trans 443 drivers/net/wireless/intel/iwlwifi/pcie/trans.c ret = iwl_finish_nic_init(trans, trans->trans_cfg); trans 446 drivers/net/wireless/intel/iwlwifi/pcie/trans.c __iwl_trans_pcie_clear_bit(trans, CSR_GP_CNTRL, trans 455 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_clear_bits_prph(trans, APMG_PCIDEV_STT_REG, trans 462 drivers/net/wireless/intel/iwlwifi/pcie/trans.c apmg_xtal_cfg_reg = iwl_trans_pcie_read_shr(trans, trans 464 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_pcie_write_shr(trans, SHR_APMG_XTAL_CFG_REG, trans 468 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_pcie_sw_reset(trans); trans 471 drivers/net/wireless/intel/iwlwifi/pcie/trans.c apmg_gp1_reg = iwl_trans_pcie_read_shr(trans, SHR_APMG_GP1_REG); trans 472 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_pcie_write_shr(trans, SHR_APMG_GP1_REG, apmg_gp1_reg | trans 477 drivers/net/wireless/intel/iwlwifi/pcie/trans.c dl_cfg_reg = iwl_trans_pcie_read_shr(trans, SHR_APMG_DL_CFG_REG); trans 478 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_pcie_write_shr(trans, SHR_APMG_DL_CFG_REG, dl_cfg_reg & trans 485 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_set_bit(trans, CSR_HW_IF_CONFIG_REG, trans 492 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_clear_bit(trans, CSR_GP_CNTRL, trans 493 drivers/net/wireless/intel/iwlwifi/pcie/trans.c BIT(trans->trans_cfg->csr->flag_init_done)); trans 496 drivers/net/wireless/intel/iwlwifi/pcie/trans.c __iwl_trans_pcie_set_bit(trans, CSR_MONITOR_CFG_REG, trans 500 drivers/net/wireless/intel/iwlwifi/pcie/trans.c __iwl_trans_pcie_clear_bit(trans, CSR_GP_CNTRL, trans 505 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_pcie_write_shr(trans, SHR_APMG_XTAL_CFG_REG, trans 510 drivers/net/wireless/intel/iwlwifi/pcie/trans.c void iwl_pcie_apm_stop_master(struct iwl_trans *trans) trans 515 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_set_bit(trans, trans->trans_cfg->csr->addr_sw_reset, trans 516 drivers/net/wireless/intel/iwlwifi/pcie/trans.c BIT(trans->trans_cfg->csr->flag_stop_master)); trans 518 drivers/net/wireless/intel/iwlwifi/pcie/trans.c ret = iwl_poll_bit(trans, trans->trans_cfg->csr->addr_sw_reset, trans 519 drivers/net/wireless/intel/iwlwifi/pcie/trans.c BIT(trans->trans_cfg->csr->flag_master_dis), trans 520 drivers/net/wireless/intel/iwlwifi/pcie/trans.c BIT(trans->trans_cfg->csr->flag_master_dis), 100); trans 522 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_WARN(trans, "Master Disable Timed Out, 100 usec\n"); trans 524 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_DEBUG_INFO(trans, "stop master\n"); trans 527 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static void iwl_pcie_apm_stop(struct iwl_trans *trans, bool op_mode_leave) trans 529 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_DEBUG_INFO(trans, "Stop card, put in low power state\n"); trans 532 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (!test_bit(STATUS_DEVICE_ENABLED, &trans->status)) trans 533 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_apm_init(trans); trans 536 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->trans_cfg->device_family == IWL_DEVICE_FAMILY_7000) trans 537 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_set_bits_prph(trans, APMG_PCIDEV_STT_REG, trans 539 drivers/net/wireless/intel/iwlwifi/pcie/trans.c else if (trans->trans_cfg->device_family >= trans 541 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_set_bit(trans, CSR_DBG_LINK_PWR_MGMT_REG, trans 543 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_set_bit(trans, CSR_HW_IF_CONFIG_REG, trans 547 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_clear_bit(trans, CSR_DBG_LINK_PWR_MGMT_REG, trans 553 drivers/net/wireless/intel/iwlwifi/pcie/trans.c clear_bit(STATUS_DEVICE_ENABLED, &trans->status); trans 556 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_apm_stop_master(trans); trans 558 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->cfg->lp_xtal_workaround) { trans 559 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_apm_lp_xtal_enable(trans); trans 563 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_pcie_sw_reset(trans); trans 569 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_clear_bit(trans, CSR_GP_CNTRL, trans 570 drivers/net/wireless/intel/iwlwifi/pcie/trans.c BIT(trans->trans_cfg->csr->flag_init_done)); trans 573 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static int iwl_pcie_nic_init(struct iwl_trans *trans) trans 575 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 580 drivers/net/wireless/intel/iwlwifi/pcie/trans.c ret = iwl_pcie_apm_init(trans); trans 586 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_set_pwr(trans, false); trans 588 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_op_mode_nic_config(trans->op_mode); trans 591 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_rx_init(trans); trans 594 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (iwl_pcie_tx_init(trans)) trans 597 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->trans_cfg->base_params->shadow_reg_enable) { trans 599 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_set_bit(trans, CSR_MAC_SHADOW_REG_CTRL, 0x800FFFFF); trans 600 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_DEBUG_INFO(trans, "Enabling shadow registers in device\n"); trans 609 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static int iwl_pcie_set_hw_ready(struct iwl_trans *trans) trans 613 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_set_bit(trans, CSR_HW_IF_CONFIG_REG, trans 617 drivers/net/wireless/intel/iwlwifi/pcie/trans.c ret = iwl_poll_bit(trans, CSR_HW_IF_CONFIG_REG, trans 623 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_set_bit(trans, CSR_MBOX_SET_REG, CSR_MBOX_SET_REG_OS_ALIVE); trans 625 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_DEBUG_INFO(trans, "hardware%s ready\n", ret < 0 ? " not" : ""); trans 630 drivers/net/wireless/intel/iwlwifi/pcie/trans.c int iwl_pcie_prepare_card_hw(struct iwl_trans *trans) trans 636 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_DEBUG_INFO(trans, "iwl_trans_prepare_card_hw enter\n"); trans 638 drivers/net/wireless/intel/iwlwifi/pcie/trans.c ret = iwl_pcie_set_hw_ready(trans); trans 643 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_set_bit(trans, CSR_DBG_LINK_PWR_MGMT_REG, trans 649 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_set_bit(trans, CSR_HW_IF_CONFIG_REG, trans 653 drivers/net/wireless/intel/iwlwifi/pcie/trans.c ret = iwl_pcie_set_hw_ready(trans); trans 663 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_ERR(trans, "Couldn't prepare the card\n"); trans 671 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static void iwl_pcie_load_firmware_chunk_fh(struct iwl_trans *trans, trans 675 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write32(trans, FH_TCSR_CHNL_TX_CONFIG_REG(FH_SRVC_CHNL), trans 678 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write32(trans, FH_SRVC_CHNL_SRAM_ADDR_REG(FH_SRVC_CHNL), trans 681 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write32(trans, FH_TFDIB_CTRL0_REG(FH_SRVC_CHNL), trans 684 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write32(trans, FH_TFDIB_CTRL1_REG(FH_SRVC_CHNL), trans 688 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write32(trans, FH_TCSR_CHNL_TX_BUF_STS_REG(FH_SRVC_CHNL), trans 693 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write32(trans, FH_TCSR_CHNL_TX_CONFIG_REG(FH_SRVC_CHNL), trans 699 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static int iwl_pcie_load_firmware_chunk(struct iwl_trans *trans, trans 703 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 709 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (!iwl_trans_grab_nic_access(trans, &flags)) trans 712 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_load_firmware_chunk_fh(trans, dst_addr, phy_addr, trans 714 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_release_nic_access(trans, &flags); trans 719 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_ERR(trans, "Failed to load firmware chunk!\n"); trans 720 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_pcie_dump_regs(trans); trans 727 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static int iwl_pcie_load_section(struct iwl_trans *trans, u8 section_num, trans 735 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_DEBUG_FW(trans, "[%d] uCode section being loaded...\n", trans 738 drivers/net/wireless/intel/iwlwifi/pcie/trans.c v_addr = dma_alloc_coherent(trans->dev, chunk_sz, &p_addr, trans 741 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_DEBUG_INFO(trans, "Falling back to small chunks of DMA\n"); trans 743 drivers/net/wireless/intel/iwlwifi/pcie/trans.c v_addr = dma_alloc_coherent(trans->dev, chunk_sz, trans 761 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_set_bits_prph(trans, LMPM_CHICK, trans 765 drivers/net/wireless/intel/iwlwifi/pcie/trans.c ret = iwl_pcie_load_firmware_chunk(trans, dst_addr, p_addr, trans 769 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_clear_bits_prph(trans, LMPM_CHICK, trans 773 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_ERR(trans, trans 780 drivers/net/wireless/intel/iwlwifi/pcie/trans.c dma_free_coherent(trans->dev, chunk_sz, v_addr, p_addr); trans 784 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static int iwl_pcie_load_cpu_sections_8000(struct iwl_trans *trans, trans 813 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_DEBUG_FW(trans, trans 819 drivers/net/wireless/intel/iwlwifi/pcie/trans.c ret = iwl_pcie_load_section(trans, i, &image->sec[i]); trans 824 drivers/net/wireless/intel/iwlwifi/pcie/trans.c val = iwl_read_direct32(trans, FH_UCODE_LOAD_STATUS); trans 826 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write_direct32(trans, FH_UCODE_LOAD_STATUS, val); trans 833 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_enable_interrupts(trans); trans 835 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->trans_cfg->use_tfh) { trans 837 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write_prph(trans, UREG_UCODE_LOAD_STATUS, trans 840 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write_prph(trans, UREG_UCODE_LOAD_STATUS, trans 844 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write_direct32(trans, FH_UCODE_LOAD_STATUS, trans 847 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write_direct32(trans, FH_UCODE_LOAD_STATUS, trans 854 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static int iwl_pcie_load_cpu_sections(struct iwl_trans *trans, trans 879 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_DEBUG_FW(trans, trans 885 drivers/net/wireless/intel/iwlwifi/pcie/trans.c ret = iwl_pcie_load_section(trans, i, &image->sec[i]); trans 895 drivers/net/wireless/intel/iwlwifi/pcie/trans.c void iwl_pcie_apply_destination(struct iwl_trans *trans) trans 897 drivers/net/wireless/intel/iwlwifi/pcie/trans.c const struct iwl_fw_dbg_dest_tlv_v1 *dest = trans->dbg.dest_tlv; trans 900 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (iwl_trans_dbg_ini_valid(trans)) { trans 901 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (!trans->dbg.num_blocks) trans 904 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_DEBUG_FW(trans, trans 906 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write_umac_prph(trans, MON_BUFF_BASE_ADDR_VER2, trans 907 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->dbg.fw_mon[0].physical >> trans 909 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write_umac_prph(trans, MON_BUFF_END_ADDR_VER2, trans 910 drivers/net/wireless/intel/iwlwifi/pcie/trans.c (trans->dbg.fw_mon[0].physical + trans 911 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->dbg.fw_mon[0].size - 256) >> trans 916 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_INFO(trans, "Applying debug destination %s\n", trans 920 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_alloc_fw_monitor(trans, dest->size_power); trans 922 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_WARN(trans, "PCI should have external buffer debug\n"); trans 924 drivers/net/wireless/intel/iwlwifi/pcie/trans.c for (i = 0; i < trans->dbg.n_dest_reg; i++) { trans 930 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write32(trans, addr, val); trans 933 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_set_bit(trans, addr, BIT(val)); trans 936 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_clear_bit(trans, addr, BIT(val)); trans 939 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write_prph(trans, addr, val); trans 942 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_set_bits_prph(trans, addr, BIT(val)); trans 945 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_clear_bits_prph(trans, addr, BIT(val)); trans 948 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (iwl_read_prph(trans, addr) & BIT(val)) { trans 949 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_ERR(trans, trans 956 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_ERR(trans, "FW debug - unknown OP %d\n", trans 963 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (dest->monitor_mode == EXTERNAL_MODE && trans->dbg.fw_mon[0].size) { trans 964 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write_prph(trans, le32_to_cpu(dest->base_reg), trans 965 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->dbg.fw_mon[0].physical >> trans 967 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_8000) trans 968 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write_prph(trans, le32_to_cpu(dest->end_reg), trans 969 drivers/net/wireless/intel/iwlwifi/pcie/trans.c (trans->dbg.fw_mon[0].physical + trans 970 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->dbg.fw_mon[0].size - 256) >> trans 973 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write_prph(trans, le32_to_cpu(dest->end_reg), trans 974 drivers/net/wireless/intel/iwlwifi/pcie/trans.c (trans->dbg.fw_mon[0].physical + trans 975 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->dbg.fw_mon[0].size) >> trans 980 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static int iwl_pcie_load_given_ucode(struct iwl_trans *trans, trans 986 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_DEBUG_FW(trans, "working with %s CPU\n", trans 990 drivers/net/wireless/intel/iwlwifi/pcie/trans.c ret = iwl_pcie_load_cpu_sections(trans, image, 1, &first_ucode_section); trans 996 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write_prph(trans, trans 1001 drivers/net/wireless/intel/iwlwifi/pcie/trans.c ret = iwl_pcie_load_cpu_sections(trans, image, 2, trans 1009 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->trans_cfg->device_family == IWL_DEVICE_FAMILY_7000) { trans 1010 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_alloc_fw_monitor(trans, 0); trans 1012 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->dbg.fw_mon[0].size) { trans 1013 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write_prph(trans, MON_BUFF_BASE_ADDR, trans 1014 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->dbg.fw_mon[0].physical >> 4); trans 1015 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write_prph(trans, MON_BUFF_END_ADDR, trans 1016 drivers/net/wireless/intel/iwlwifi/pcie/trans.c (trans->dbg.fw_mon[0].physical + trans 1017 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->dbg.fw_mon[0].size) >> 4); trans 1019 drivers/net/wireless/intel/iwlwifi/pcie/trans.c } else if (iwl_pcie_dbg_on(trans)) { trans 1020 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_apply_destination(trans); trans 1023 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_enable_interrupts(trans); trans 1026 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write32(trans, CSR_RESET, 0); trans 1031 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static int iwl_pcie_load_given_ucode_8000(struct iwl_trans *trans, trans 1037 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_DEBUG_FW(trans, "working with %s CPU\n", trans 1040 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (iwl_pcie_dbg_on(trans)) trans 1041 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_apply_destination(trans); trans 1043 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_DEBUG_POWER(trans, "Original WFPM value = 0x%08X\n", trans 1044 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_read_prph(trans, WFPM_GP2)); trans 1051 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write_prph(trans, WFPM_GP2, 0x01010101); trans 1055 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write_prph(trans, RELEASE_CPU_RESET, RELEASE_CPU_RESET_BIT); trans 1058 drivers/net/wireless/intel/iwlwifi/pcie/trans.c ret = iwl_pcie_load_cpu_sections_8000(trans, image, 1, trans 1064 drivers/net/wireless/intel/iwlwifi/pcie/trans.c return iwl_pcie_load_cpu_sections_8000(trans, image, 2, trans 1068 drivers/net/wireless/intel/iwlwifi/pcie/trans.c bool iwl_pcie_check_hw_rf_kill(struct iwl_trans *trans) trans 1070 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1071 drivers/net/wireless/intel/iwlwifi/pcie/trans.c bool hw_rfkill = iwl_is_rfkill_set(trans); trans 1072 drivers/net/wireless/intel/iwlwifi/pcie/trans.c bool prev = test_bit(STATUS_RFKILL_OPMODE, &trans->status); trans 1076 drivers/net/wireless/intel/iwlwifi/pcie/trans.c set_bit(STATUS_RFKILL_HW, &trans->status); trans 1077 drivers/net/wireless/intel/iwlwifi/pcie/trans.c set_bit(STATUS_RFKILL_OPMODE, &trans->status); trans 1079 drivers/net/wireless/intel/iwlwifi/pcie/trans.c clear_bit(STATUS_RFKILL_HW, &trans->status); trans 1081 drivers/net/wireless/intel/iwlwifi/pcie/trans.c clear_bit(STATUS_RFKILL_OPMODE, &trans->status); trans 1084 drivers/net/wireless/intel/iwlwifi/pcie/trans.c report = test_bit(STATUS_RFKILL_OPMODE, &trans->status); trans 1087 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_pcie_rf_kill(trans, report); trans 1133 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static void iwl_pcie_map_non_rx_causes(struct iwl_trans *trans) trans 1135 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1138 drivers/net/wireless/intel/iwlwifi/pcie/trans.c (trans->trans_cfg->device_family != IWL_DEVICE_FAMILY_22560) ? trans 1148 drivers/net/wireless/intel/iwlwifi/pcie/trans.c (trans->trans_cfg->device_family != trans 1152 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write8(trans, CSR_MSIX_IVAR(causes[i].addr), val); trans 1153 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_clear_bit(trans, causes[i].mask_reg, trans 1158 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static void iwl_pcie_map_rx_causes(struct iwl_trans *trans) trans 1160 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1172 drivers/net/wireless/intel/iwlwifi/pcie/trans.c for (idx = 1; idx < trans->num_rx_queues; idx++) { trans 1173 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write8(trans, CSR_MSIX_RX_IVAR(idx), trans 1177 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write32(trans, CSR_MSIX_FH_INT_MASK_AD, ~val); trans 1182 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write8(trans, CSR_MSIX_RX_IVAR(0), val); trans 1185 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write8(trans, CSR_MSIX_RX_IVAR(1), val); trans 1190 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans *trans = trans_pcie->trans; trans 1193 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->trans_cfg->mq_rx_supported && trans 1194 drivers/net/wireless/intel/iwlwifi/pcie/trans.c test_bit(STATUS_DEVICE_ENABLED, &trans->status)) trans 1195 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write_umac_prph(trans, UREG_CHICK, trans 1204 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (test_bit(STATUS_DEVICE_ENABLED, &trans->status)) trans 1205 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write_umac_prph(trans, UREG_CHICK, UREG_CHICK_MSIX_ENABLE); trans 1214 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_map_rx_causes(trans); trans 1216 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_map_non_rx_causes(trans); trans 1221 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans *trans = trans_pcie->trans; trans 1228 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans_pcie->fh_init_mask = ~iwl_read32(trans, CSR_MSIX_FH_INT_MASK_AD); trans 1230 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans_pcie->hw_init_mask = ~iwl_read32(trans, CSR_MSIX_HW_INT_MASK_AD); trans 1234 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static void _iwl_trans_pcie_stop_device(struct iwl_trans *trans) trans 1236 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1246 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_disable_interrupts(trans); trans 1249 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_disable_ict(trans); trans 1258 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (test_and_clear_bit(STATUS_DEVICE_ENABLED, &trans->status)) { trans 1259 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_DEBUG_INFO(trans, trans 1261 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_tx_stop(trans); trans 1262 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_rx_stop(trans); trans 1265 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (!trans->cfg->apmg_not_supported) { trans 1266 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write_prph(trans, APMG_CLK_DIS_REG, trans 1273 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_clear_bit(trans, CSR_GP_CNTRL, trans 1274 drivers/net/wireless/intel/iwlwifi/pcie/trans.c BIT(trans->trans_cfg->csr->flag_mac_access_req)); trans 1277 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_apm_stop(trans, false); trans 1279 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_pcie_sw_reset(trans); trans 1297 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_disable_interrupts(trans); trans 1300 drivers/net/wireless/intel/iwlwifi/pcie/trans.c clear_bit(STATUS_SYNC_HCMD_ACTIVE, &trans->status); trans 1301 drivers/net/wireless/intel/iwlwifi/pcie/trans.c clear_bit(STATUS_INT_ENABLED, &trans->status); trans 1302 drivers/net/wireless/intel/iwlwifi/pcie/trans.c clear_bit(STATUS_TPOWER_PMI, &trans->status); trans 1308 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_enable_rfkill_int(trans); trans 1311 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_prepare_card_hw(trans); trans 1314 drivers/net/wireless/intel/iwlwifi/pcie/trans.c void iwl_pcie_synchronize_irqs(struct iwl_trans *trans) trans 1316 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1328 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static int iwl_trans_pcie_start_fw(struct iwl_trans *trans, trans 1331 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1336 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (iwl_pcie_prepare_card_hw(trans)) { trans 1337 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_WARN(trans, "Exit HW not ready\n"); trans 1342 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_enable_rfkill_int(trans); trans 1344 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write32(trans, CSR_INT, 0xFFFFFFFF); trans 1351 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_disable_interrupts(trans); trans 1354 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_synchronize_irqs(trans); trans 1359 drivers/net/wireless/intel/iwlwifi/pcie/trans.c hw_rfkill = iwl_pcie_check_hw_rf_kill(trans); trans 1367 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_WARN(trans, trans 1374 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write32(trans, CSR_UCODE_DRV_GP1_CLR, CSR_UCODE_SW_BIT_RFKILL); trans 1375 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write32(trans, CSR_UCODE_DRV_GP1_CLR, trans 1379 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write32(trans, CSR_INT, 0xFFFFFFFF); trans 1381 drivers/net/wireless/intel/iwlwifi/pcie/trans.c ret = iwl_pcie_nic_init(trans); trans 1383 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_ERR(trans, "Unable to init nic\n"); trans 1394 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_enable_fw_load_int(trans); trans 1397 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write32(trans, CSR_UCODE_DRV_GP1_CLR, CSR_UCODE_SW_BIT_RFKILL); trans 1398 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write32(trans, CSR_UCODE_DRV_GP1_CLR, CSR_UCODE_SW_BIT_RFKILL); trans 1401 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_8000) trans 1402 drivers/net/wireless/intel/iwlwifi/pcie/trans.c ret = iwl_pcie_load_given_ucode_8000(trans, fw); trans 1404 drivers/net/wireless/intel/iwlwifi/pcie/trans.c ret = iwl_pcie_load_given_ucode(trans, fw); trans 1407 drivers/net/wireless/intel/iwlwifi/pcie/trans.c hw_rfkill = iwl_pcie_check_hw_rf_kill(trans); trans 1416 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static void iwl_trans_pcie_fw_alive(struct iwl_trans *trans, u32 scd_addr) trans 1418 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_reset_ict(trans); trans 1419 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_tx_start(trans, scd_addr); trans 1422 drivers/net/wireless/intel/iwlwifi/pcie/trans.c void iwl_trans_pcie_handle_stop_rfkill(struct iwl_trans *trans, trans 1439 drivers/net/wireless/intel/iwlwifi/pcie/trans.c hw_rfkill = iwl_is_rfkill_set(trans); trans 1441 drivers/net/wireless/intel/iwlwifi/pcie/trans.c set_bit(STATUS_RFKILL_HW, &trans->status); trans 1442 drivers/net/wireless/intel/iwlwifi/pcie/trans.c set_bit(STATUS_RFKILL_OPMODE, &trans->status); trans 1444 drivers/net/wireless/intel/iwlwifi/pcie/trans.c clear_bit(STATUS_RFKILL_HW, &trans->status); trans 1445 drivers/net/wireless/intel/iwlwifi/pcie/trans.c clear_bit(STATUS_RFKILL_OPMODE, &trans->status); trans 1448 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_pcie_rf_kill(trans, hw_rfkill); trans 1451 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static void iwl_trans_pcie_stop_device(struct iwl_trans *trans) trans 1453 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1458 drivers/net/wireless/intel/iwlwifi/pcie/trans.c was_in_rfkill = test_bit(STATUS_RFKILL_OPMODE, &trans->status); trans 1459 drivers/net/wireless/intel/iwlwifi/pcie/trans.c _iwl_trans_pcie_stop_device(trans); trans 1460 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_pcie_handle_stop_rfkill(trans, was_in_rfkill); trans 1464 drivers/net/wireless/intel/iwlwifi/pcie/trans.c void iwl_trans_pcie_rf_kill(struct iwl_trans *trans, bool state) trans 1467 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_TRANS_GET_PCIE_TRANS(trans); trans 1471 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_WARN(trans, "reporting RF_KILL (radio %s)\n", trans 1473 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (iwl_op_mode_hw_rf_kill(trans->op_mode, state)) { trans 1474 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->trans_cfg->gen2) trans 1475 drivers/net/wireless/intel/iwlwifi/pcie/trans.c _iwl_trans_pcie_gen2_stop_device(trans); trans 1477 drivers/net/wireless/intel/iwlwifi/pcie/trans.c _iwl_trans_pcie_stop_device(trans); trans 1481 drivers/net/wireless/intel/iwlwifi/pcie/trans.c void iwl_pcie_d3_complete_suspend(struct iwl_trans *trans, trans 1484 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_disable_interrupts(trans); trans 1493 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_disable_ict(trans); trans 1495 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_synchronize_irqs(trans); trans 1497 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_clear_bit(trans, CSR_GP_CNTRL, trans 1498 drivers/net/wireless/intel/iwlwifi/pcie/trans.c BIT(trans->trans_cfg->csr->flag_mac_access_req)); trans 1499 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_clear_bit(trans, CSR_GP_CNTRL, trans 1500 drivers/net/wireless/intel/iwlwifi/pcie/trans.c BIT(trans->trans_cfg->csr->flag_init_done)); trans 1508 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_pcie_tx_reset(trans); trans 1511 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_set_pwr(trans, true); trans 1514 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static int iwl_trans_pcie_d3_suspend(struct iwl_trans *trans, bool test, trans 1518 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1523 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (!reset && trans->trans_cfg->device_family < IWL_DEVICE_FAMILY_AX210) { trans 1525 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_set_bit(trans, CSR_HW_IF_CONFIG_REG, trans 1529 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_AX210) { trans 1530 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write_umac_prph(trans, UREG_DOORBELL_TO_ISR6, trans 1541 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_ERR(trans, "Timeout entering D3\n"); trans 1545 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_d3_complete_suspend(trans, test, reset); trans 1550 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static int iwl_trans_pcie_d3_resume(struct iwl_trans *trans, trans 1554 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1559 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_enable_interrupts(trans); trans 1564 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_set_bit(trans, CSR_GP_CNTRL, trans 1565 drivers/net/wireless/intel/iwlwifi/pcie/trans.c BIT(trans->trans_cfg->csr->flag_mac_access_req)); trans 1567 drivers/net/wireless/intel/iwlwifi/pcie/trans.c ret = iwl_finish_nic_init(trans, trans->trans_cfg); trans 1580 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_reset_ict(trans); trans 1581 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_enable_interrupts(trans); trans 1583 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_set_pwr(trans, false); trans 1586 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_clear_bit(trans, CSR_GP_CNTRL, trans 1587 drivers/net/wireless/intel/iwlwifi/pcie/trans.c BIT(trans->trans_cfg->csr->flag_mac_access_req)); trans 1589 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_pcie_tx_reset(trans); trans 1591 drivers/net/wireless/intel/iwlwifi/pcie/trans.c ret = iwl_pcie_rx_init(trans); trans 1593 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_ERR(trans, trans 1599 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_DEBUG_POWER(trans, "WFPM value upon resume = 0x%08X\n", trans 1600 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_read_umac_prph(trans, WFPM_GP2)); trans 1602 drivers/net/wireless/intel/iwlwifi/pcie/trans.c val = iwl_read32(trans, CSR_RESET); trans 1610 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_AX210) { trans 1612 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write_umac_prph(trans, UREG_DOORBELL_TO_ISR6, trans 1623 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_ERR(trans, "Timeout exiting D3\n"); trans 1632 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans *trans, trans 1635 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1650 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_DEBUG_INFO(trans, trans 1657 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_DEBUG_INFO(trans, trans 1669 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans_pcie->trans->num_rx_queues = num_irqs + 1; trans 1673 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans_pcie->trans->num_rx_queues = num_irqs; trans 1676 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans_pcie->trans->num_rx_queues = num_irqs - 1; trans 1678 drivers/net/wireless/intel/iwlwifi/pcie/trans.c WARN_ON(trans_pcie->trans->num_rx_queues > IWL_MAX_RX_HW_QUEUES); trans 1697 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static void iwl_pcie_irq_set_affinity(struct iwl_trans *trans) trans 1700 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1703 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iter_rx_q = trans_pcie->trans->num_rx_queues - 1 + i; trans 1715 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_ERR(trans_pcie->trans, trans 1745 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_ERR(trans_pcie->trans, trans 1751 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_irq_set_affinity(trans_pcie->trans); trans 1756 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static int iwl_trans_pcie_clear_persistence_bit(struct iwl_trans *trans) trans 1760 drivers/net/wireless/intel/iwlwifi/pcie/trans.c switch (trans->trans_cfg->device_family) { trans 1771 drivers/net/wireless/intel/iwlwifi/pcie/trans.c hpm = iwl_read_umac_prph_no_grab(trans, HPM_DEBUG); trans 1773 drivers/net/wireless/intel/iwlwifi/pcie/trans.c u32 wprot_val = iwl_read_umac_prph_no_grab(trans, wprot); trans 1776 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_ERR(trans, trans 1780 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write_umac_prph_no_grab(trans, HPM_DEBUG, trans 1787 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static int iwl_pcie_gen2_force_power_gating(struct iwl_trans *trans) trans 1791 drivers/net/wireless/intel/iwlwifi/pcie/trans.c ret = iwl_finish_nic_init(trans, trans->trans_cfg); trans 1795 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_set_bits_prph(trans, HPM_HIPM_GEN_CFG, trans 1798 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_set_bits_prph(trans, HPM_HIPM_GEN_CFG, trans 1802 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_clear_bits_prph(trans, HPM_HIPM_GEN_CFG, trans 1805 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_pcie_sw_reset(trans); trans 1810 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static int _iwl_trans_pcie_start_hw(struct iwl_trans *trans) trans 1812 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1817 drivers/net/wireless/intel/iwlwifi/pcie/trans.c err = iwl_pcie_prepare_card_hw(trans); trans 1819 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_ERR(trans, "Error while preparing HW: %d\n", err); trans 1823 drivers/net/wireless/intel/iwlwifi/pcie/trans.c err = iwl_trans_pcie_clear_persistence_bit(trans); trans 1827 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_pcie_sw_reset(trans); trans 1829 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->trans_cfg->device_family == IWL_DEVICE_FAMILY_22000 && trans 1830 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->cfg->integrated) { trans 1831 drivers/net/wireless/intel/iwlwifi/pcie/trans.c err = iwl_pcie_gen2_force_power_gating(trans); trans 1836 drivers/net/wireless/intel/iwlwifi/pcie/trans.c err = iwl_pcie_apm_init(trans); trans 1843 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_enable_rfkill_int(trans); trans 1851 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_check_hw_rf_kill(trans); trans 1856 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static int iwl_trans_pcie_start_hw(struct iwl_trans *trans) trans 1858 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1862 drivers/net/wireless/intel/iwlwifi/pcie/trans.c ret = _iwl_trans_pcie_start_hw(trans); trans 1868 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static void iwl_trans_pcie_op_mode_leave(struct iwl_trans *trans) trans 1870 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1875 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_disable_interrupts(trans); trans 1877 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_apm_stop(trans, true); trans 1879 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_disable_interrupts(trans); trans 1881 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_disable_ict(trans); trans 1885 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_synchronize_irqs(trans); trans 1888 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static void iwl_trans_pcie_write8(struct iwl_trans *trans, u32 ofs, u8 val) trans 1890 drivers/net/wireless/intel/iwlwifi/pcie/trans.c writeb(val, IWL_TRANS_GET_PCIE_TRANS(trans)->hw_base + ofs); trans 1893 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static void iwl_trans_pcie_write32(struct iwl_trans *trans, u32 ofs, u32 val) trans 1895 drivers/net/wireless/intel/iwlwifi/pcie/trans.c writel(val, IWL_TRANS_GET_PCIE_TRANS(trans)->hw_base + ofs); trans 1898 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static u32 iwl_trans_pcie_read32(struct iwl_trans *trans, u32 ofs) trans 1900 drivers/net/wireless/intel/iwlwifi/pcie/trans.c return readl(IWL_TRANS_GET_PCIE_TRANS(trans)->hw_base + ofs); trans 1903 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static u32 iwl_trans_pcie_prph_msk(struct iwl_trans *trans) trans 1905 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22560) trans 1911 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static u32 iwl_trans_pcie_read_prph(struct iwl_trans *trans, u32 reg) trans 1913 drivers/net/wireless/intel/iwlwifi/pcie/trans.c u32 mask = iwl_trans_pcie_prph_msk(trans); trans 1915 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_pcie_write32(trans, HBUS_TARG_PRPH_RADDR, trans 1917 drivers/net/wireless/intel/iwlwifi/pcie/trans.c return iwl_trans_pcie_read32(trans, HBUS_TARG_PRPH_RDAT); trans 1920 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static void iwl_trans_pcie_write_prph(struct iwl_trans *trans, u32 addr, trans 1923 drivers/net/wireless/intel/iwlwifi/pcie/trans.c u32 mask = iwl_trans_pcie_prph_msk(trans); trans 1925 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_pcie_write32(trans, HBUS_TARG_PRPH_WADDR, trans 1927 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_pcie_write32(trans, HBUS_TARG_PRPH_WDAT, val); trans 1930 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static void iwl_trans_pcie_configure(struct iwl_trans *trans, trans 1933 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1957 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->command_groups = trans_cfg->command_groups; trans 1958 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->command_groups_size = trans_cfg->command_groups_size; trans 1969 drivers/net/wireless/intel/iwlwifi/pcie/trans.c void iwl_trans_pcie_free(struct iwl_trans *trans) trans 1971 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1974 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_synchronize_irqs(trans); trans 1976 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->trans_cfg->gen2) trans 1977 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_gen2_tx_free(trans); trans 1979 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_tx_free(trans); trans 1980 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_rx_free(trans); trans 1996 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_free_ict(trans); trans 1999 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_free_fw_monitor(trans); trans 2011 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_free(trans); trans 2014 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static void iwl_trans_pcie_set_pmi(struct iwl_trans *trans, bool state) trans 2017 drivers/net/wireless/intel/iwlwifi/pcie/trans.c set_bit(STATUS_TPOWER_PMI, &trans->status); trans 2019 drivers/net/wireless/intel/iwlwifi/pcie/trans.c clear_bit(STATUS_TPOWER_PMI, &trans->status); trans 2045 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static bool iwl_trans_pcie_grab_nic_access(struct iwl_trans *trans, trans 2049 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 2057 drivers/net/wireless/intel/iwlwifi/pcie/trans.c __iwl_trans_pcie_set_bit(trans, CSR_GP_CNTRL, trans 2058 drivers/net/wireless/intel/iwlwifi/pcie/trans.c BIT(trans->trans_cfg->csr->flag_mac_access_req)); trans 2059 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_8000) trans 2082 drivers/net/wireless/intel/iwlwifi/pcie/trans.c ret = iwl_poll_bit(trans, CSR_GP_CNTRL, trans 2083 drivers/net/wireless/intel/iwlwifi/pcie/trans.c BIT(trans->trans_cfg->csr->flag_val_mac_access_en), trans 2084 drivers/net/wireless/intel/iwlwifi/pcie/trans.c (BIT(trans->trans_cfg->csr->flag_mac_clock_ready) | trans 2087 drivers/net/wireless/intel/iwlwifi/pcie/trans.c u32 cntrl = iwl_read32(trans, CSR_GP_CNTRL); trans 2093 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_pcie_dump_regs(trans); trans 2098 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (test_bit(STATUS_TRANS_DEAD, &trans->status)) trans 2101 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_ERR(trans, "Device gone - scheduling removal!\n"); trans 2110 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_ERR(trans, trans 2124 drivers/net/wireless/intel/iwlwifi/pcie/trans.c set_bit(STATUS_TRANS_DEAD, &trans->status); trans 2126 drivers/net/wireless/intel/iwlwifi/pcie/trans.c removal->pdev = to_pci_dev(trans->dev); trans 2131 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write32(trans, CSR_RESET, trans 2149 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static void iwl_trans_pcie_release_nic_access(struct iwl_trans *trans, trans 2152 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 2165 drivers/net/wireless/intel/iwlwifi/pcie/trans.c __iwl_trans_pcie_clear_bit(trans, CSR_GP_CNTRL, trans 2166 drivers/net/wireless/intel/iwlwifi/pcie/trans.c BIT(trans->trans_cfg->csr->flag_mac_access_req)); trans 2177 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static int iwl_trans_pcie_read_mem(struct iwl_trans *trans, u32 addr, trans 2184 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (iwl_trans_grab_nic_access(trans, &flags)) { trans 2185 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write32(trans, HBUS_TARG_MEM_RADDR, addr); trans 2187 drivers/net/wireless/intel/iwlwifi/pcie/trans.c vals[offs] = iwl_read32(trans, HBUS_TARG_MEM_RDAT); trans 2188 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_release_nic_access(trans, &flags); trans 2195 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static int iwl_trans_pcie_write_mem(struct iwl_trans *trans, u32 addr, trans 2202 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (iwl_trans_grab_nic_access(trans, &flags)) { trans 2203 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write32(trans, HBUS_TARG_MEM_WADDR, addr); trans 2205 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write32(trans, HBUS_TARG_MEM_WDAT, trans 2207 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_release_nic_access(trans, &flags); trans 2214 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static void iwl_trans_pcie_freeze_txq_timer(struct iwl_trans *trans, trans 2218 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 2232 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_DEBUG_TX_QUEUES(trans, "%s TXQ %d\n", trans 2268 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static void iwl_trans_pcie_block_txq_ptrs(struct iwl_trans *trans, bool block) trans 2270 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 2273 drivers/net/wireless/intel/iwlwifi/pcie/trans.c for (i = 0; i < trans->trans_cfg->base_params->num_of_queues; i++) { trans 2284 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write32(trans, HBUS_TARG_WRPTR, trans 2297 drivers/net/wireless/intel/iwlwifi/pcie/trans.c void iwl_trans_pcie_log_scd_error(struct iwl_trans *trans, struct iwl_txq *txq) trans 2304 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->trans_cfg->use_tfh) { trans 2305 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_ERR(trans, "Queue %d is stuck %d %d\n", txq_id, trans 2311 drivers/net/wireless/intel/iwlwifi/pcie/trans.c status = iwl_read_prph(trans, SCD_QUEUE_STATUS_BITS(txq_id)); trans 2315 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_ERR(trans, trans 2320 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_read_prph(trans, SCD_QUEUE_RDPTR(txq_id)) & trans 2321 drivers/net/wireless/intel/iwlwifi/pcie/trans.c (trans->trans_cfg->base_params->max_tfd_queue_size - 1), trans 2322 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_read_prph(trans, SCD_QUEUE_WRPTR(txq_id)) & trans 2323 drivers/net/wireless/intel/iwlwifi/pcie/trans.c (trans->trans_cfg->base_params->max_tfd_queue_size - 1), trans 2324 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_read_direct32(trans, FH_TX_TRB_REG(fifo))); trans 2327 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static int iwl_trans_pcie_rxq_dma_data(struct iwl_trans *trans, int queue, trans 2330 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 2332 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (queue >= trans->num_rx_queues || !trans_pcie->rxq) trans 2343 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static int iwl_trans_pcie_wait_txq_empty(struct iwl_trans *trans, int txq_idx) trans 2345 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 2352 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (test_bit(STATUS_TRANS_DEAD, &trans->status)) trans 2358 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_DEBUG_TX_QUEUES(trans, "Emptying queue %d...\n", txq_idx); trans 2394 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_ERR(trans, trans 2396 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_pcie_log_scd_error(trans, txq); trans 2400 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_DEBUG_TX_QUEUES(trans, "Queue %d is now empty.\n", txq_idx); trans 2405 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static int iwl_trans_pcie_wait_txqs_empty(struct iwl_trans *trans, u32 txq_bm) trans 2407 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 2413 drivers/net/wireless/intel/iwlwifi/pcie/trans.c cnt < trans->trans_cfg->base_params->num_of_queues; trans 2423 drivers/net/wireless/intel/iwlwifi/pcie/trans.c ret = iwl_trans_pcie_wait_txq_empty(trans, cnt); trans 2431 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static void iwl_trans_pcie_set_bits_mask(struct iwl_trans *trans, u32 reg, trans 2434 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 2438 drivers/net/wireless/intel/iwlwifi/pcie/trans.c __iwl_trans_pcie_set_bits_mask(trans, reg, mask, value); trans 2476 drivers/net/wireless/intel/iwlwifi/pcie/trans.c void iwl_pcie_dump_csr(struct iwl_trans *trans) trans 2505 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_ERR(trans, "CSR values:\n"); trans 2506 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_ERR(trans, "(2nd byte of CSR_INT_COALESCING is " trans 2509 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_ERR(trans, " %25s: 0X%08x\n", trans 2511 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_read32(trans, csr_tbl[i])); trans 2518 drivers/net/wireless/intel/iwlwifi/pcie/trans.c debugfs_create_file(#name, mode, parent, trans, \ trans 2549 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans *trans = file->private_data; trans 2550 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 2559 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->trans_cfg->base_params->num_of_queues; trans 2569 drivers/net/wireless/intel/iwlwifi/pcie/trans.c cnt < trans->trans_cfg->base_params->num_of_queues; trans 2589 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans *trans = file->private_data; trans 2590 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 2595 drivers/net/wireless/intel/iwlwifi/pcie/trans.c bufsz = sizeof(char) * 121 * trans->num_rx_queues; trans 2604 drivers/net/wireless/intel/iwlwifi/pcie/trans.c for (i = 0; i < trans->num_rx_queues && pos < bufsz; i++) { trans 2620 drivers/net/wireless/intel/iwlwifi/pcie/trans.c u32 r = __le16_to_cpu(iwl_get_closed_rb_stts(trans, trans 2640 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans *trans = file->private_data; trans 2641 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 2698 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans *trans = file->private_data; trans 2699 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 2717 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans *trans = file->private_data; trans 2719 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_dump_csr(trans); trans 2728 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans *trans = file->private_data; trans 2732 drivers/net/wireless/intel/iwlwifi/pcie/trans.c ret = iwl_dump_fh(trans, &buf); trans 2746 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans *trans = file->private_data; trans 2747 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 2753 drivers/net/wireless/intel/iwlwifi/pcie/trans.c !(iwl_read32(trans, CSR_GP_CNTRL) & trans 2763 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans *trans = file->private_data; trans 2764 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 2773 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_WARN(trans, "changing debug rfkill %d->%d\n", trans 2776 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_handle_rfkill_irq(trans); trans 2784 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans *trans = inode->i_private; trans 2785 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 2787 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (!trans->dbg.dest_tlv || trans 2788 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->dbg.dest_tlv->monitor_mode != EXTERNAL_MODE) { trans 2789 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_ERR(trans, "Debug destination is not set to DRAM\n"); trans 2833 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans *trans = file->private_data; trans 2834 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 2835 drivers/net/wireless/intel/iwlwifi/pcie/trans.c void *cpu_addr = (void *)trans->dbg.fw_mon[0].block, *curr_buf; trans 2841 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->dbg.dest_tlv) { trans 2843 drivers/net/wireless/intel/iwlwifi/pcie/trans.c le32_to_cpu(trans->dbg.dest_tlv->write_ptr_reg); trans 2844 drivers/net/wireless/intel/iwlwifi/pcie/trans.c wrap_cnt_addr = le32_to_cpu(trans->dbg.dest_tlv->wrap_count); trans 2850 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (unlikely(!trans->dbg.rec_on)) trans 2861 drivers/net/wireless/intel/iwlwifi/pcie/trans.c write_ptr = iwl_read_prph(trans, write_ptr_addr) * sizeof(u32); trans 2862 drivers/net/wireless/intel/iwlwifi/pcie/trans.c wrap_cnt = iwl_read_prph(trans, wrap_cnt_addr); trans 2874 drivers/net/wireless/intel/iwlwifi/pcie/trans.c size = trans->dbg.fw_mon[0].size - data->prev_wr_ptr; trans 2892 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_WARN(trans, trans 2896 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_WARN(trans, trans 2926 drivers/net/wireless/intel/iwlwifi/pcie/trans.c void iwl_trans_pcie_dbgfs_register(struct iwl_trans *trans) trans 2928 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct dentry *dir = trans->dbgfs_dir; trans 2939 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static void iwl_trans_pcie_debugfs_cleanup(struct iwl_trans *trans) trans 2941 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 2950 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static u32 iwl_trans_pcie_get_cmdlen(struct iwl_trans *trans, void *tfd) trans 2952 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 2957 drivers/net/wireless/intel/iwlwifi/pcie/trans.c cmdlen += iwl_pcie_tfd_tb_get_len(trans, tfd, i); trans 2962 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static u32 iwl_trans_pcie_dump_rbs(struct iwl_trans *trans, trans 2966 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 2974 drivers/net/wireless/intel/iwlwifi/pcie/trans.c r = le16_to_cpu(iwl_get_closed_rb_stts(trans, rxq)) & 0x0FFF; trans 2982 drivers/net/wireless/intel/iwlwifi/pcie/trans.c dma_unmap_page(trans->dev, rxb->page_dma, max_len, trans 2993 drivers/net/wireless/intel/iwlwifi/pcie/trans.c rxb->page_dma = dma_map_page(trans->dev, rxb->page, 0, trans 3006 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static u32 iwl_trans_pcie_dump_csr(struct iwl_trans *trans, trans 3018 drivers/net/wireless/intel/iwlwifi/pcie/trans.c *val++ = cpu_to_le32(iwl_trans_pcie_read32(trans, i)); trans 3025 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static u32 iwl_trans_pcie_fh_regs_dump(struct iwl_trans *trans, trans 3033 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (!iwl_trans_grab_nic_access(trans, &flags)) trans 3040 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (!trans->trans_cfg->gen2) trans 3043 drivers/net/wireless/intel/iwlwifi/pcie/trans.c *val++ = cpu_to_le32(iwl_trans_pcie_read32(trans, i)); trans 3045 drivers/net/wireless/intel/iwlwifi/pcie/trans.c for (i = iwl_umac_prph(trans, FH_MEM_LOWER_BOUND_GEN2); trans 3046 drivers/net/wireless/intel/iwlwifi/pcie/trans.c i < iwl_umac_prph(trans, FH_MEM_UPPER_BOUND_GEN2); trans 3048 drivers/net/wireless/intel/iwlwifi/pcie/trans.c *val++ = cpu_to_le32(iwl_trans_pcie_read_prph(trans, trans 3051 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_release_nic_access(trans, &flags); trans 3059 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_pci_dump_marbh_monitor(struct iwl_trans *trans, trans 3068 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (!iwl_trans_grab_nic_access(trans, &flags)) trans 3071 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write_umac_prph_no_grab(trans, MON_DMARB_RD_CTL_ADDR, 0x1); trans 3073 drivers/net/wireless/intel/iwlwifi/pcie/trans.c buffer[i] = iwl_read_umac_prph_no_grab(trans, trans 3075 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write_umac_prph_no_grab(trans, MON_DMARB_RD_CTL_ADDR, 0x0); trans 3077 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_release_nic_access(trans, &flags); trans 3083 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_pcie_dump_pointers(struct iwl_trans *trans, trans 3088 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_AX210) { trans 3093 drivers/net/wireless/intel/iwlwifi/pcie/trans.c } else if (trans->dbg.dest_tlv) { trans 3094 drivers/net/wireless/intel/iwlwifi/pcie/trans.c write_ptr = le32_to_cpu(trans->dbg.dest_tlv->write_ptr_reg); trans 3095 drivers/net/wireless/intel/iwlwifi/pcie/trans.c wrap_cnt = le32_to_cpu(trans->dbg.dest_tlv->wrap_count); trans 3096 drivers/net/wireless/intel/iwlwifi/pcie/trans.c base = le32_to_cpu(trans->dbg.dest_tlv->base_reg); trans 3103 drivers/net/wireless/intel/iwlwifi/pcie/trans.c write_ptr_val = iwl_read_prph(trans, write_ptr); trans 3105 drivers/net/wireless/intel/iwlwifi/pcie/trans.c cpu_to_le32(iwl_read_prph(trans, wrap_cnt)); trans 3107 drivers/net/wireless/intel/iwlwifi/pcie/trans.c cpu_to_le32(iwl_read_prph(trans, base)); trans 3108 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_AX210) { trans 3110 drivers/net/wireless/intel/iwlwifi/pcie/trans.c cpu_to_le32(iwl_read_prph(trans, base_high)); trans 3117 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_pcie_dump_monitor(struct iwl_trans *trans, trans 3123 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->dbg.dest_tlv || trans 3124 drivers/net/wireless/intel/iwlwifi/pcie/trans.c (trans->dbg.num_blocks && trans 3125 drivers/net/wireless/intel/iwlwifi/pcie/trans.c (trans->trans_cfg->device_family == IWL_DEVICE_FAMILY_7000 || trans 3126 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_AX210))) { trans 3132 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_pcie_dump_pointers(trans, fw_mon_data); trans 3135 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->dbg.num_blocks) { trans 3137 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->dbg.fw_mon[0].block, trans 3138 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->dbg.fw_mon[0].size); trans 3140 drivers/net/wireless/intel/iwlwifi/pcie/trans.c monitor_len = trans->dbg.fw_mon[0].size; trans 3141 drivers/net/wireless/intel/iwlwifi/pcie/trans.c } else if (trans->dbg.dest_tlv->monitor_mode == SMEM_MODE) { trans 3147 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->dbg.dest_tlv->version) { trans 3148 drivers/net/wireless/intel/iwlwifi/pcie/trans.c base = (iwl_read_prph(trans, base) & trans 3150 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->dbg.dest_tlv->base_shift; trans 3152 drivers/net/wireless/intel/iwlwifi/pcie/trans.c base += trans->cfg->smem_offset; trans 3154 drivers/net/wireless/intel/iwlwifi/pcie/trans.c base = iwl_read_prph(trans, base) << trans 3155 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->dbg.dest_tlv->base_shift; trans 3158 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_read_mem(trans, base, fw_mon_data->data, trans 3160 drivers/net/wireless/intel/iwlwifi/pcie/trans.c } else if (trans->dbg.dest_tlv->monitor_mode == MARBH_MODE) { trans 3162 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_pci_dump_marbh_monitor(trans, trans 3177 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static int iwl_trans_get_fw_monitor_len(struct iwl_trans *trans, u32 *len) trans 3179 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->dbg.num_blocks) { trans 3182 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->dbg.fw_mon[0].size; trans 3183 drivers/net/wireless/intel/iwlwifi/pcie/trans.c return trans->dbg.fw_mon[0].size; trans 3184 drivers/net/wireless/intel/iwlwifi/pcie/trans.c } else if (trans->dbg.dest_tlv) { trans 3187 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->dbg.dest_tlv->version == 1) { trans 3188 drivers/net/wireless/intel/iwlwifi/pcie/trans.c cfg_reg = le32_to_cpu(trans->dbg.dest_tlv->base_reg); trans 3189 drivers/net/wireless/intel/iwlwifi/pcie/trans.c cfg_reg = iwl_read_prph(trans, cfg_reg); trans 3191 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->dbg.dest_tlv->base_shift; trans 3193 drivers/net/wireless/intel/iwlwifi/pcie/trans.c base += trans->cfg->smem_offset; trans 3197 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->dbg.dest_tlv->end_shift; trans 3200 drivers/net/wireless/intel/iwlwifi/pcie/trans.c base = le32_to_cpu(trans->dbg.dest_tlv->base_reg); trans 3201 drivers/net/wireless/intel/iwlwifi/pcie/trans.c end = le32_to_cpu(trans->dbg.dest_tlv->end_reg); trans 3203 drivers/net/wireless/intel/iwlwifi/pcie/trans.c base = iwl_read_prph(trans, base) << trans 3204 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->dbg.dest_tlv->base_shift; trans 3205 drivers/net/wireless/intel/iwlwifi/pcie/trans.c end = iwl_read_prph(trans, end) << trans 3206 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->dbg.dest_tlv->end_shift; trans 3209 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->trans_cfg->device_family >= trans 3211 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->dbg.dest_tlv->monitor_mode == MARBH_MODE) trans 3212 drivers/net/wireless/intel/iwlwifi/pcie/trans.c end += (1 << trans->dbg.dest_tlv->end_shift); trans 3224 drivers/net/wireless/intel/iwlwifi/pcie/trans.c *iwl_trans_pcie_dump_data(struct iwl_trans *trans, trans 3227 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 3234 drivers/net/wireless/intel/iwlwifi/pcie/trans.c bool dump_rbs = test_bit(STATUS_FW_ERROR, &trans->status) && trans 3235 drivers/net/wireless/intel/iwlwifi/pcie/trans.c !trans->trans_cfg->mq_rx_supported && trans 3252 drivers/net/wireless/intel/iwlwifi/pcie/trans.c monitor_len = iwl_trans_get_fw_monitor_len(trans, &len); trans 3260 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->trans_cfg->gen2) trans 3262 drivers/net/wireless/intel/iwlwifi/pcie/trans.c (iwl_umac_prph(trans, FH_MEM_UPPER_BOUND_GEN2) - trans 3263 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_umac_prph(trans, FH_MEM_LOWER_BOUND_GEN2)); trans 3275 drivers/net/wireless/intel/iwlwifi/pcie/trans.c le16_to_cpu(iwl_get_closed_rb_stts(trans, rxq)) trans 3284 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->trans_cfg->gen2 && dump_mask & BIT(IWL_FW_ERROR_DUMP_PAGING)) trans 3285 drivers/net/wireless/intel/iwlwifi/pcie/trans.c for (i = 0; i < trans->init_dram.paging_cnt; i++) trans 3288 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->init_dram.paging[i].size; trans 3309 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->trans_cfg->use_tfh) trans 3314 drivers/net/wireless/intel/iwlwifi/pcie/trans.c cmdlen = iwl_trans_pcie_get_cmdlen(trans, trans 3328 drivers/net/wireless/intel/iwlwifi/pcie/trans.c ptr = iwl_queue_dec_wrap(trans, ptr); trans 3338 drivers/net/wireless/intel/iwlwifi/pcie/trans.c len += iwl_trans_pcie_dump_csr(trans, &data); trans 3340 drivers/net/wireless/intel/iwlwifi/pcie/trans.c len += iwl_trans_pcie_fh_regs_dump(trans, &data); trans 3342 drivers/net/wireless/intel/iwlwifi/pcie/trans.c len += iwl_trans_pcie_dump_rbs(trans, &data, num_rbs); trans 3345 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->trans_cfg->gen2 && trans 3347 drivers/net/wireless/intel/iwlwifi/pcie/trans.c for (i = 0; i < trans->init_dram.paging_cnt; i++) { trans 3349 drivers/net/wireless/intel/iwlwifi/pcie/trans.c u32 page_len = trans->init_dram.paging[i].size; trans 3356 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->init_dram.paging[i].block, page_len); trans 3363 drivers/net/wireless/intel/iwlwifi/pcie/trans.c len += iwl_trans_pcie_dump_monitor(trans, &data, monitor_len); trans 3371 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static int iwl_trans_pcie_suspend(struct iwl_trans *trans) trans 3376 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static void iwl_trans_pcie_resume(struct iwl_trans *trans) trans 3465 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans *trans; trans 3492 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans = iwl_trans_alloc(sizeof(struct iwl_trans_pcie), &pdev->dev, ops, trans 3494 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (!trans) trans 3497 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 3499 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans_pcie->trans = trans; trans 3543 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->max_skb_frags = IWL_PCIE_MAX_FRAGS(trans_pcie); trans 3581 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_disable_interrupts(trans); trans 3583 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->hw_rev = iwl_read32(trans, CSR_HW_REV); trans 3584 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (trans->hw_rev == 0xffffffff) { trans 3597 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->hw_rev = (trans->hw_rev & 0xfff0) | trans 3598 drivers/net/wireless/intel/iwlwifi/pcie/trans.c (CSR_HW_REV_STEP(trans->hw_rev << 2) << 2); trans 3600 drivers/net/wireless/intel/iwlwifi/pcie/trans.c ret = iwl_pcie_prepare_card_hw(trans); trans 3602 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_WARN(trans, "Exit HW not ready\n"); trans 3610 drivers/net/wireless/intel/iwlwifi/pcie/trans.c ret = iwl_finish_nic_init(trans, cfg_trans); trans 3616 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_DEBUG_INFO(trans, "HW REV: 0x%0x\n", trans->hw_rev); trans 3618 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_set_interrupt_capa(pdev, trans, cfg_trans); trans 3619 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->hw_id = (pdev->device << 16) + pdev->subsystem_device; trans 3620 drivers/net/wireless/intel/iwlwifi/pcie/trans.c snprintf(trans->hw_id_str, sizeof(trans->hw_id_str), trans 3633 drivers/net/wireless/intel/iwlwifi/pcie/trans.c ret = iwl_pcie_alloc_ict(trans); trans 3640 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IRQF_SHARED, DRV_NAME, trans); trans 3642 drivers/net/wireless/intel/iwlwifi/pcie/trans.c IWL_ERR(trans, "Error allocating IRQ %d\n", pdev->irq); trans 3653 drivers/net/wireless/intel/iwlwifi/pcie/trans.c return trans; trans 3656 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_pcie_free_ict(trans); trans 3661 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_free(trans); trans 3665 drivers/net/wireless/intel/iwlwifi/pcie/trans.c void iwl_trans_pcie_sync_nmi(struct iwl_trans *trans) trans 3667 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 3669 drivers/net/wireless/intel/iwlwifi/pcie/trans.c bool interrupts_enabled = test_bit(STATUS_INT_ENABLED, &trans->status); trans 3684 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_disable_interrupts(trans); trans 3686 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_force_nmi(trans); trans 3688 drivers/net/wireless/intel/iwlwifi/pcie/trans.c u32 inta_hw = iwl_read32(trans, inta_addr); trans 3693 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_write32(trans, inta_addr, inta_hw & sw_err_bit); trans 3705 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_enable_interrupts(trans); trans 3707 drivers/net/wireless/intel/iwlwifi/pcie/trans.c iwl_trans_fw_error(trans); trans 65 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c void iwl_pcie_gen2_tx_stop(struct iwl_trans *trans) trans 67 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 82 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_gen2_txq_unmap(trans, txq_id); trans 94 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c struct iwl_trans *trans = iwl_trans_pcie_get_trans(trans_pcie); trans 116 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22560) { trans 135 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c void iwl_pcie_gen2_txq_inc_wr_ptr(struct iwl_trans *trans, trans 140 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c IWL_DEBUG_TX(trans, "Q:%d WR: 0x%x\n", txq->id, txq->write_ptr); trans 146 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_write32(trans, HBUS_TARG_WRPTR, txq->write_ptr | (txq->id << 16)); trans 149 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c static u8 iwl_pcie_gen2_get_num_tbs(struct iwl_trans *trans, trans 155 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c static void iwl_pcie_gen2_tfd_unmap(struct iwl_trans *trans, trans 159 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 163 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c num_tbs = iwl_pcie_gen2_get_num_tbs(trans, tfd); trans 166 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c IWL_ERR(trans, "Too many chunks: %i\n", num_tbs); trans 173 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c dma_unmap_page(trans->dev, trans 178 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c dma_unmap_single(trans->dev, trans 187 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c static void iwl_pcie_gen2_free_tfd(struct iwl_trans *trans, struct iwl_txq *txq) trans 196 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_gen2_tfd_unmap(trans, &txq->entries[idx].meta, trans 197 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_get_tfd(trans, txq, idx)); trans 210 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_op_mode_free_skb(trans->op_mode, skb); trans 216 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c static int iwl_pcie_gen2_set_tb(struct iwl_trans *trans, trans 220 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 221 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c int idx = iwl_pcie_gen2_get_num_tbs(trans, tfd); trans 230 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c IWL_ERR(trans, "Error can not send more than %d chunks\n", trans 243 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c static int iwl_pcie_gen2_build_amsdu(struct iwl_trans *trans, trans 250 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 261 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c trace_iwlwifi_dev_tx(trans->dev, skb, tfd, sizeof(*tfd), trans 274 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c hdr_page = get_page_hdr(trans, hdr_room); trans 330 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c tb_phys = dma_map_single(trans->dev, start_hdr, trans 332 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c if (unlikely(dma_mapping_error(trans->dev, tb_phys))) { trans 336 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_gen2_set_tb(trans, tfd, tb_phys, tb_len); trans 337 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c trace_iwlwifi_dev_tx_tb(trans->dev, skb, start_hdr, tb_len); trans 347 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c tb_phys = dma_map_single(trans->dev, tso.data, trans 349 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c if (unlikely(dma_mapping_error(trans->dev, tb_phys))) { trans 353 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_gen2_set_tb(trans, tfd, tb_phys, tb_len); trans 354 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c trace_iwlwifi_dev_tx_tb(trans->dev, skb, tso.data, trans 373 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_tfh_tfd *iwl_pcie_gen2_build_tx_amsdu(struct iwl_trans *trans, trans 382 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c struct iwl_tfh_tfd *tfd = iwl_pcie_get_tfd(trans, txq, idx); trans 389 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_gen2_set_tb(trans, tfd, tb_phys, IWL_FIRST_TB_SIZE); trans 404 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c tb_phys = dma_map_single(trans->dev, tb1_addr, len, DMA_TO_DEVICE); trans 405 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c if (unlikely(dma_mapping_error(trans->dev, tb_phys))) trans 411 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_gen2_set_tb(trans, tfd, tb_phys, len); trans 413 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c if (iwl_pcie_gen2_build_amsdu(trans, skb, tfd, trans 423 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_gen2_tfd_unmap(trans, out_meta, tfd); trans 427 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c static int iwl_pcie_gen2_tx_add_frags(struct iwl_trans *trans, trans 442 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c tb_phys = skb_frag_dma_map(trans->dev, frag, 0, trans 445 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c if (unlikely(dma_mapping_error(trans->dev, tb_phys))) trans 447 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c tb_idx = iwl_pcie_gen2_set_tb(trans, tfd, tb_phys, trans 449 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c trace_iwlwifi_dev_tx_tb(trans->dev, skb, trans 462 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_tfh_tfd *iwl_pcie_gen2_build_tx(struct iwl_trans *trans, trans 472 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c struct iwl_tfh_tfd *tfd = iwl_pcie_get_tfd(trans, txq, idx); trans 483 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_gen2_set_tb(trans, tfd, tb_phys, IWL_FIRST_TB_SIZE); trans 501 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c tb_phys = dma_map_single(trans->dev, tb1_addr, tb1_len, DMA_TO_DEVICE); trans 502 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c if (unlikely(dma_mapping_error(trans->dev, tb_phys))) trans 508 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_gen2_set_tb(trans, tfd, tb_phys, tb1_len); trans 509 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c trace_iwlwifi_dev_tx(trans->dev, skb, tfd, sizeof(*tfd), &dev_cmd->hdr, trans 516 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c tb_phys = dma_map_single(trans->dev, skb->data + hdr_len, trans 518 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c if (unlikely(dma_mapping_error(trans->dev, tb_phys))) trans 520 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_gen2_set_tb(trans, tfd, tb_phys, tb2_len); trans 521 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c trace_iwlwifi_dev_tx_tb(trans->dev, skb, trans 526 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c if (iwl_pcie_gen2_tx_add_frags(trans, skb, tfd, out_meta)) trans 530 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c tb_phys = dma_map_single(trans->dev, frag->data, trans 532 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c if (unlikely(dma_mapping_error(trans->dev, tb_phys))) trans 534 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_gen2_set_tb(trans, tfd, tb_phys, skb_headlen(frag)); trans 535 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c trace_iwlwifi_dev_tx_tb(trans->dev, skb, trans 538 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c if (iwl_pcie_gen2_tx_add_frags(trans, frag, tfd, out_meta)) trans 545 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_gen2_tfd_unmap(trans, out_meta, tfd); trans 550 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c struct iwl_tfh_tfd *iwl_pcie_gen2_build_tfd(struct iwl_trans *trans, trans 558 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c struct iwl_tfh_tfd *tfd = iwl_pcie_get_tfd(trans, txq, idx); trans 567 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c if (trans->trans_cfg->device_family < IWL_DEVICE_FAMILY_22560) trans 584 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c return iwl_pcie_gen2_build_tx_amsdu(trans, txq, dev_cmd, skb, trans 587 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c return iwl_pcie_gen2_build_tx(trans, txq, dev_cmd, skb, out_meta, trans 591 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c int iwl_trans_pcie_gen2_tx(struct iwl_trans *trans, struct sk_buff *skb, trans 594 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 612 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c if (iwl_queue_space(trans, txq) < txq->high_mark) { trans 613 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_stop_queue(trans, txq); trans 616 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c if (unlikely(iwl_queue_space(trans, txq) < 3)) { trans 643 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c tfd = iwl_pcie_gen2_build_tfd(trans, txq, dev_cmd, skb, out_meta); trans 649 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c if (trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22560) { trans 663 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_gen2_get_num_tbs(trans, tfd)); trans 670 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c txq->write_ptr = iwl_queue_inc_wrap(trans, txq->write_ptr); trans 671 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_gen2_txq_inc_wr_ptr(trans, txq); trans 691 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c static int iwl_pcie_gen2_enqueue_hcmd(struct iwl_trans *trans, trans 694 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 771 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_get_cmd_string(trans, cmd->id), cmd->id, copy_size)) { trans 779 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c tfd = iwl_pcie_get_tfd(trans, txq, txq->write_ptr); trans 782 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c if (iwl_queue_space(trans, txq) < ((cmd->flags & CMD_ASYNC) ? 2 : 1)) { trans 785 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c IWL_ERR(trans, "No space in command queue\n"); trans 786 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_op_mode_cmd_queue_full(trans->op_mode); trans 851 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c IWL_DEBUG_HC(trans, trans 853 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_get_cmd_string(trans, cmd->id), group_id, trans 860 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_gen2_set_tb(trans, tfd, iwl_pcie_get_first_tb_dma(txq, idx), trans 865 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c phys_addr = dma_map_single(trans->dev, trans 869 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c if (dma_mapping_error(trans->dev, phys_addr)) { trans 871 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_gen2_tfd_unmap(trans, out_meta, tfd); trans 874 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_gen2_set_tb(trans, tfd, phys_addr, trans 889 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c phys_addr = dma_map_single(trans->dev, (void *)data, trans 891 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c if (dma_mapping_error(trans->dev, phys_addr)) { trans 893 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_gen2_tfd_unmap(trans, out_meta, tfd); trans 896 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_gen2_set_tb(trans, tfd, phys_addr, cmdlen[i]); trans 905 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c trace_iwlwifi_dev_hcmd(trans->dev, cmd, cmd_size, &out_cmd->hdr_wide); trans 913 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c txq->write_ptr = iwl_queue_inc_wrap(trans, txq->write_ptr); trans 914 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_gen2_txq_inc_wr_ptr(trans, txq); trans 927 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c static int iwl_pcie_gen2_send_hcmd_sync(struct iwl_trans *trans, trans 930 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 931 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c const char *cmd_str = iwl_get_cmd_string(trans, cmd->id); trans 936 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c IWL_DEBUG_INFO(trans, "Attempting to send sync command %s\n", cmd_str); trans 939 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c &trans->status), trans 943 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c IWL_DEBUG_INFO(trans, "Setting HCMD_ACTIVE for command %s\n", cmd_str); trans 945 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c cmd_idx = iwl_pcie_gen2_enqueue_hcmd(trans, cmd); trans 948 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c clear_bit(STATUS_SYNC_HCMD_ACTIVE, &trans->status); trans 949 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c IWL_ERR(trans, "Error sending %s: enqueue_hcmd failed: %d\n", trans 956 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c &trans->status), trans 959 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c IWL_ERR(trans, "Error sending %s: time out after %dms.\n", trans 962 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c IWL_ERR(trans, "Current CMD queue read_ptr %d write_ptr %d\n", trans 965 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c clear_bit(STATUS_SYNC_HCMD_ACTIVE, &trans->status); trans 966 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c IWL_DEBUG_INFO(trans, "Clearing HCMD_ACTIVE for command %s\n", trans 970 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_trans_pcie_sync_nmi(trans); trans 974 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c if (test_bit(STATUS_FW_ERROR, &trans->status)) { trans 975 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c IWL_ERR(trans, "FW error in SYNC CMD %s\n", cmd_str); trans 982 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c test_bit(STATUS_RFKILL_OPMODE, &trans->status)) { trans 983 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c IWL_DEBUG_RF_KILL(trans, "RFKILL in SYNC CMD... no rsp\n"); trans 989 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c IWL_ERR(trans, "Error: Response NULL in '%s'\n", cmd_str); trans 1015 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c int iwl_trans_pcie_gen2_send_hcmd(struct iwl_trans *trans, trans 1019 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c test_bit(STATUS_RFKILL_OPMODE, &trans->status)) { trans 1020 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c IWL_DEBUG_RF_KILL(trans, "Dropping CMD 0x%x: RF KILL\n", trans 1032 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c ret = iwl_pcie_gen2_enqueue_hcmd(trans, cmd); trans 1034 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c IWL_ERR(trans, trans 1036 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_get_cmd_string(trans, cmd->id), ret); trans 1042 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c return iwl_pcie_gen2_send_hcmd_sync(trans, cmd); trans 1048 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c void iwl_pcie_gen2_txq_unmap(struct iwl_trans *trans, int txq_id) trans 1050 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1055 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c IWL_DEBUG_TX_REPLY(trans, "Q %d Free %d\n", trans 1067 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_gen2_free_tfd(trans, txq); trans 1068 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c txq->read_ptr = iwl_queue_inc_wrap(trans, txq->read_ptr); trans 1074 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_op_mode_free_skb(trans->op_mode, skb); trans 1080 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_wake_queue(trans, txq); trans 1083 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c void iwl_pcie_gen2_txq_free_memory(struct iwl_trans *trans, trans 1086 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1087 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c struct device *dev = trans->dev; trans 1100 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_free_dma_ptr(trans, &txq->bc_tbl); trans 1112 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c static void iwl_pcie_gen2_txq_free(struct iwl_trans *trans, int txq_id) trans 1114 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1121 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_gen2_txq_unmap(trans, txq_id); trans 1131 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_gen2_txq_free_memory(trans, txq); trans 1138 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c int iwl_trans_pcie_dyn_txq_alloc_dma(struct iwl_trans *trans, trans 1148 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c ret = iwl_pcie_alloc_dma_ptr(trans, &txq->bc_tbl, trans 1149 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c (trans->trans_cfg->device_family >= trans 1154 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c IWL_ERR(trans, "Scheduler BC Table allocation failed\n"); trans 1159 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c ret = iwl_pcie_txq_alloc(trans, txq, size, false); trans 1161 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c IWL_ERR(trans, "Tx queue alloc failed\n"); trans 1164 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c ret = iwl_pcie_txq_init(trans, txq, size, false); trans 1166 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c IWL_ERR(trans, "Tx queue init failed\n"); trans 1176 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_gen2_txq_free_memory(trans, txq); trans 1180 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c int iwl_trans_pcie_txq_alloc_response(struct iwl_trans *trans, trans 1184 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1213 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c wr_ptr &= (trans->trans_cfg->base_params->max_tfd_queue_size - 1); trans 1219 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c IWL_DEBUG_TX_QUEUES(trans, "Activate queue %d\n", qid); trans 1226 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_gen2_txq_free_memory(trans, txq); trans 1230 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c int iwl_trans_pcie_dyn_txq_alloc(struct iwl_trans *trans, trans 1249 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c ret = iwl_trans_pcie_dyn_txq_alloc_dma(trans, &txq, size, timeout); trans 1257 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c ret = iwl_trans_send_cmd(trans, &hcmd); trans 1261 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c return iwl_trans_pcie_txq_alloc_response(trans, txq, &hcmd); trans 1264 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_gen2_txq_free_memory(trans, txq); trans 1268 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c void iwl_trans_pcie_dyn_txq_free(struct iwl_trans *trans, int queue) trans 1270 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1279 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c WARN_ONCE(test_bit(STATUS_DEVICE_ENABLED, &trans->status), trans 1284 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_gen2_txq_unmap(trans, queue); trans 1286 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_gen2_txq_free_memory(trans, trans_pcie->txq[queue]); trans 1289 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c IWL_DEBUG_TX_QUEUES(trans, "Deactivate queue %d\n", queue); trans 1292 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c void iwl_pcie_gen2_tx_free(struct iwl_trans *trans) trans 1294 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1304 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_gen2_txq_free(trans, i); trans 1308 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c int iwl_pcie_gen2_tx_init(struct iwl_trans *trans, int txq_id, int queue_size) trans 1310 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1318 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c IWL_ERR(trans, "Not enough memory for tx queue\n"); trans 1322 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c ret = iwl_pcie_txq_alloc(trans, queue, queue_size, true); trans 1324 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c IWL_ERR(trans, "Tx %d queue init failed\n", txq_id); trans 1331 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c ret = iwl_pcie_txq_init(trans, queue, queue_size, trans 1334 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c IWL_ERR(trans, "Tx %d queue alloc failed\n", txq_id); trans 1343 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c iwl_pcie_gen2_tx_free(trans); trans 105 drivers/net/wireless/intel/iwlwifi/pcie/tx.c int iwl_queue_space(struct iwl_trans *trans, const struct iwl_txq *q) trans 116 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (q->n_window < trans->trans_cfg->base_params->max_tfd_queue_size) trans 119 drivers/net/wireless/intel/iwlwifi/pcie/tx.c max = trans->trans_cfg->base_params->max_tfd_queue_size - 1; trans 126 drivers/net/wireless/intel/iwlwifi/pcie/tx.c (trans->trans_cfg->base_params->max_tfd_queue_size - 1); trans 160 drivers/net/wireless/intel/iwlwifi/pcie/tx.c int iwl_pcie_alloc_dma_ptr(struct iwl_trans *trans, trans 166 drivers/net/wireless/intel/iwlwifi/pcie/tx.c ptr->addr = dma_alloc_coherent(trans->dev, size, trans 174 drivers/net/wireless/intel/iwlwifi/pcie/tx.c void iwl_pcie_free_dma_ptr(struct iwl_trans *trans, struct iwl_dma_ptr *ptr) trans 179 drivers/net/wireless/intel/iwlwifi/pcie/tx.c dma_free_coherent(trans->dev, ptr->size, ptr->addr, ptr->dma); trans 187 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iwl_trans *trans = iwl_trans_pcie_get_trans(trans_pcie); trans 197 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_trans_pcie_log_scd_error(trans, txq); trans 199 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_force_nmi(trans); trans 205 drivers/net/wireless/intel/iwlwifi/pcie/tx.c static void iwl_pcie_txq_update_byte_cnt_tbl(struct iwl_trans *trans, trans 210 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 250 drivers/net/wireless/intel/iwlwifi/pcie/tx.c static void iwl_pcie_txq_inval_byte_cnt_tbl(struct iwl_trans *trans, trans 254 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_TRANS_GET_PCIE_TRANS(trans); trans 280 drivers/net/wireless/intel/iwlwifi/pcie/tx.c static void iwl_pcie_txq_inc_wr_ptr(struct iwl_trans *trans, trans 283 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 295 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (!trans->trans_cfg->base_params->shadow_reg_enable && trans 297 drivers/net/wireless/intel/iwlwifi/pcie/tx.c test_bit(STATUS_TPOWER_PMI, &trans->status)) { trans 303 drivers/net/wireless/intel/iwlwifi/pcie/tx.c reg = iwl_read32(trans, CSR_UCODE_DRV_GP1); trans 306 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_DEBUG_INFO(trans, "Tx queue %d requesting wakeup, GP1 = 0x%x\n", trans 308 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_set_bit(trans, CSR_GP_CNTRL, trans 309 drivers/net/wireless/intel/iwlwifi/pcie/tx.c BIT(trans->trans_cfg->csr->flag_mac_access_req)); trans 319 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_DEBUG_TX(trans, "Q:%d WR: 0x%x\n", txq_id, txq->write_ptr); trans 321 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_write32(trans, HBUS_TARG_WRPTR, trans 325 drivers/net/wireless/intel/iwlwifi/pcie/tx.c void iwl_pcie_txq_check_wrptrs(struct iwl_trans *trans) trans 327 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 330 drivers/net/wireless/intel/iwlwifi/pcie/tx.c for (i = 0; i < trans->trans_cfg->base_params->num_of_queues; i++) { trans 338 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_txq_inc_wr_ptr(trans, txq); trans 345 drivers/net/wireless/intel/iwlwifi/pcie/tx.c static inline dma_addr_t iwl_pcie_tfd_tb_get_addr(struct iwl_trans *trans, trans 349 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (trans->trans_cfg->use_tfh) { trans 374 drivers/net/wireless/intel/iwlwifi/pcie/tx.c static inline void iwl_pcie_tfd_set_tb(struct iwl_trans *trans, void *tfd, trans 390 drivers/net/wireless/intel/iwlwifi/pcie/tx.c static inline u8 iwl_pcie_tfd_get_num_tbs(struct iwl_trans *trans, void *_tfd) trans 392 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (trans->trans_cfg->use_tfh) { trans 403 drivers/net/wireless/intel/iwlwifi/pcie/tx.c static void iwl_pcie_tfd_unmap(struct iwl_trans *trans, trans 407 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 409 drivers/net/wireless/intel/iwlwifi/pcie/tx.c void *tfd = iwl_pcie_get_tfd(trans, txq, index); trans 412 drivers/net/wireless/intel/iwlwifi/pcie/tx.c num_tbs = iwl_pcie_tfd_get_num_tbs(trans, tfd); trans 415 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_ERR(trans, "Too many chunks: %i\n", num_tbs); trans 424 drivers/net/wireless/intel/iwlwifi/pcie/tx.c dma_unmap_page(trans->dev, trans 425 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_tfd_tb_get_addr(trans, tfd, i), trans 426 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_tfd_tb_get_len(trans, tfd, i), trans 429 drivers/net/wireless/intel/iwlwifi/pcie/tx.c dma_unmap_single(trans->dev, trans 430 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_tfd_tb_get_addr(trans, tfd, trans 432 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_tfd_tb_get_len(trans, tfd, trans 439 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (trans->trans_cfg->use_tfh) { trans 460 drivers/net/wireless/intel/iwlwifi/pcie/tx.c void iwl_pcie_txq_free_tfd(struct iwl_trans *trans, struct iwl_txq *txq) trans 473 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_tfd_unmap(trans, &txq->entries[idx].meta, txq, rd_ptr); trans 486 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_op_mode_free_skb(trans->op_mode, skb); trans 492 drivers/net/wireless/intel/iwlwifi/pcie/tx.c static int iwl_pcie_txq_build_tfd(struct iwl_trans *trans, struct iwl_txq *txq, trans 495 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 504 drivers/net/wireless/intel/iwlwifi/pcie/tx.c num_tbs = iwl_pcie_tfd_get_num_tbs(trans, tfd); trans 508 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_ERR(trans, "Error can not send more than %d chunks\n", trans 517 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_tfd_set_tb(trans, tfd, num_tbs, addr, len); trans 522 drivers/net/wireless/intel/iwlwifi/pcie/tx.c int iwl_pcie_txq_alloc(struct iwl_trans *trans, struct iwl_txq *txq, trans 525 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 527 drivers/net/wireless/intel/iwlwifi/pcie/tx.c trans->trans_cfg->base_params->max_tfd_queue_size; trans 534 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (trans->trans_cfg->use_tfh) trans 560 drivers/net/wireless/intel/iwlwifi/pcie/tx.c txq->tfds = dma_alloc_coherent(trans->dev, tfd_sz, trans 569 drivers/net/wireless/intel/iwlwifi/pcie/tx.c txq->first_tb_bufs = dma_alloc_coherent(trans->dev, tb0_buf_sz, trans 577 drivers/net/wireless/intel/iwlwifi/pcie/tx.c dma_free_coherent(trans->dev, tfd_sz, txq->tfds, txq->dma_addr); trans 589 drivers/net/wireless/intel/iwlwifi/pcie/tx.c int iwl_pcie_txq_init(struct iwl_trans *trans, struct iwl_txq *txq, trans 594 drivers/net/wireless/intel/iwlwifi/pcie/tx.c trans->trans_cfg->base_params->max_tfd_queue_size; trans 636 drivers/net/wireless/intel/iwlwifi/pcie/tx.c static void iwl_pcie_clear_cmd_in_flight(struct iwl_trans *trans) trans 638 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 642 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (!trans->trans_cfg->base_params->apmg_wake_up_wa) trans 648 drivers/net/wireless/intel/iwlwifi/pcie/tx.c __iwl_trans_pcie_clear_bit(trans, CSR_GP_CNTRL, trans 649 drivers/net/wireless/intel/iwlwifi/pcie/tx.c BIT(trans->trans_cfg->csr->flag_mac_access_req)); trans 655 drivers/net/wireless/intel/iwlwifi/pcie/tx.c static void iwl_pcie_txq_unmap(struct iwl_trans *trans, int txq_id) trans 657 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 662 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_DEBUG_TX_REPLY(trans, "Q %d Free %d\n", trans 673 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_txq_free_tfd(trans, txq); trans 674 drivers/net/wireless/intel/iwlwifi/pcie/tx.c txq->read_ptr = iwl_queue_inc_wrap(trans, txq->read_ptr); trans 681 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_clear_cmd_in_flight(trans); trans 689 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_op_mode_free_skb(trans->op_mode, skb); trans 695 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_wake_queue(trans, txq); trans 706 drivers/net/wireless/intel/iwlwifi/pcie/tx.c static void iwl_pcie_txq_free(struct iwl_trans *trans, int txq_id) trans 708 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 710 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct device *dev = trans->dev; trans 716 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_txq_unmap(trans, txq_id); trans 729 drivers/net/wireless/intel/iwlwifi/pcie/tx.c trans->trans_cfg->base_params->max_tfd_queue_size, trans 748 drivers/net/wireless/intel/iwlwifi/pcie/tx.c void iwl_pcie_tx_start(struct iwl_trans *trans, u32 scd_base_addr) trans 750 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 751 drivers/net/wireless/intel/iwlwifi/pcie/tx.c int nq = trans->trans_cfg->base_params->num_of_queues; trans 762 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_read_prph(trans, SCD_SRAM_BASE_ADDR); trans 768 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_trans_write_mem(trans, trans_pcie->scd_base_addr + trans 772 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_write_prph(trans, SCD_DRAM_BASE_ADDR, trans 778 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (trans->trans_cfg->base_params->scd_chain_ext_wa) trans 779 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_write_prph(trans, SCD_CHAINEXT_EN, 0); trans 781 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_trans_ac_txq_enable(trans, trans_pcie->cmd_queue, trans 786 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_scd_activate_fifos(trans); trans 790 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_write_direct32(trans, FH_TCSR_CHNL_TX_CONFIG_REG(chan), trans 795 drivers/net/wireless/intel/iwlwifi/pcie/tx.c reg_val = iwl_read_direct32(trans, FH_TX_CHICKEN_BITS_REG); trans 796 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_write_direct32(trans, FH_TX_CHICKEN_BITS_REG, trans 800 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (trans->trans_cfg->device_family < IWL_DEVICE_FAMILY_8000) trans 801 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_clear_bits_prph(trans, APMG_PCIDEV_STT_REG, trans 805 drivers/net/wireless/intel/iwlwifi/pcie/tx.c void iwl_trans_pcie_tx_reset(struct iwl_trans *trans) trans 807 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 814 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (WARN_ON_ONCE(trans->trans_cfg->gen2)) trans 817 drivers/net/wireless/intel/iwlwifi/pcie/tx.c for (txq_id = 0; txq_id < trans->trans_cfg->base_params->num_of_queues; trans 820 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (trans->trans_cfg->use_tfh) trans 821 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_write_direct64(trans, trans 822 drivers/net/wireless/intel/iwlwifi/pcie/tx.c FH_MEM_CBBC_QUEUE(trans, txq_id), trans 825 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_write_direct32(trans, trans 826 drivers/net/wireless/intel/iwlwifi/pcie/tx.c FH_MEM_CBBC_QUEUE(trans, txq_id), trans 828 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_txq_unmap(trans, txq_id); trans 834 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_write_direct32(trans, FH_KW_MEM_ADDR_REG, trans 842 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_tx_start(trans, 0); trans 845 drivers/net/wireless/intel/iwlwifi/pcie/tx.c static void iwl_pcie_tx_stop_fh(struct iwl_trans *trans) trans 847 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 854 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (!iwl_trans_grab_nic_access(trans, &flags)) trans 859 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_write32(trans, FH_TCSR_CHNL_TX_CONFIG_REG(ch), 0x0); trans 864 drivers/net/wireless/intel/iwlwifi/pcie/tx.c ret = iwl_poll_bit(trans, FH_TSSR_TX_STATUS_REG, mask, mask, 5000); trans 866 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_ERR(trans, trans 868 drivers/net/wireless/intel/iwlwifi/pcie/tx.c ch, iwl_read32(trans, FH_TSSR_TX_STATUS_REG)); trans 870 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_trans_release_nic_access(trans, &flags); trans 879 drivers/net/wireless/intel/iwlwifi/pcie/tx.c int iwl_pcie_tx_stop(struct iwl_trans *trans) trans 881 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 885 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_scd_deactivate_fifos(trans); trans 888 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_tx_stop_fh(trans); trans 903 drivers/net/wireless/intel/iwlwifi/pcie/tx.c for (txq_id = 0; txq_id < trans->trans_cfg->base_params->num_of_queues; trans 905 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_txq_unmap(trans, txq_id); trans 915 drivers/net/wireless/intel/iwlwifi/pcie/tx.c void iwl_pcie_tx_free(struct iwl_trans *trans) trans 918 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 925 drivers/net/wireless/intel/iwlwifi/pcie/tx.c txq_id < trans->trans_cfg->base_params->num_of_queues; trans 927 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_txq_free(trans, txq_id); trans 935 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_free_dma_ptr(trans, &trans_pcie->kw); trans 937 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_free_dma_ptr(trans, &trans_pcie->scd_bc_tbls); trans 944 drivers/net/wireless/intel/iwlwifi/pcie/tx.c static int iwl_pcie_tx_alloc(struct iwl_trans *trans) trans 948 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 949 drivers/net/wireless/intel/iwlwifi/pcie/tx.c u16 bc_tbls_size = trans->trans_cfg->base_params->num_of_queues; trans 951 drivers/net/wireless/intel/iwlwifi/pcie/tx.c bc_tbls_size *= (trans->trans_cfg->device_family >= trans 963 drivers/net/wireless/intel/iwlwifi/pcie/tx.c ret = iwl_pcie_alloc_dma_ptr(trans, &trans_pcie->scd_bc_tbls, trans 966 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_ERR(trans, "Scheduler BC Table allocation failed\n"); trans 971 drivers/net/wireless/intel/iwlwifi/pcie/tx.c ret = iwl_pcie_alloc_dma_ptr(trans, &trans_pcie->kw, IWL_KW_SIZE); trans 973 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_ERR(trans, "Keep Warm allocation failed\n"); trans 978 drivers/net/wireless/intel/iwlwifi/pcie/tx.c kcalloc(trans->trans_cfg->base_params->num_of_queues, trans 981 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_ERR(trans, "Not enough memory for txq\n"); trans 987 drivers/net/wireless/intel/iwlwifi/pcie/tx.c for (txq_id = 0; txq_id < trans->trans_cfg->base_params->num_of_queues; trans 993 drivers/net/wireless/intel/iwlwifi/pcie/tx.c trans->cfg->min_txq_size); trans 996 drivers/net/wireless/intel/iwlwifi/pcie/tx.c trans->cfg->min_256_ba_txq_size); trans 998 drivers/net/wireless/intel/iwlwifi/pcie/tx.c ret = iwl_pcie_txq_alloc(trans, trans_pcie->txq[txq_id], trans 1001 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_ERR(trans, "Tx %d queue alloc failed\n", txq_id); trans 1010 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_tx_free(trans); trans 1015 drivers/net/wireless/intel/iwlwifi/pcie/tx.c int iwl_pcie_tx_init(struct iwl_trans *trans) trans 1017 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1023 drivers/net/wireless/intel/iwlwifi/pcie/tx.c ret = iwl_pcie_tx_alloc(trans); trans 1032 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_scd_deactivate_fifos(trans); trans 1035 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_write_direct32(trans, FH_KW_MEM_ADDR_REG, trans 1041 drivers/net/wireless/intel/iwlwifi/pcie/tx.c for (txq_id = 0; txq_id < trans->trans_cfg->base_params->num_of_queues; trans 1047 drivers/net/wireless/intel/iwlwifi/pcie/tx.c trans->cfg->min_txq_size); trans 1050 drivers/net/wireless/intel/iwlwifi/pcie/tx.c trans->cfg->min_256_ba_txq_size); trans 1051 drivers/net/wireless/intel/iwlwifi/pcie/tx.c ret = iwl_pcie_txq_init(trans, trans_pcie->txq[txq_id], trans 1054 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_ERR(trans, "Tx %d queue init failed\n", txq_id); trans 1064 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_write_direct32(trans, FH_MEM_CBBC_QUEUE(trans, txq_id), trans 1068 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_set_bits_prph(trans, SCD_GP_CTRL, SCD_GP_CTRL_AUTO_ACTIVE_MODE); trans 1069 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (trans->trans_cfg->base_params->num_of_queues > 20) trans 1070 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_set_bits_prph(trans, SCD_GP_CTRL, trans 1077 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_tx_free(trans); trans 1106 drivers/net/wireless/intel/iwlwifi/pcie/tx.c void iwl_trans_pcie_reclaim(struct iwl_trans *trans, int txq_id, int ssn, trans 1109 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1122 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_DEBUG_TX_QUEUES(trans, "Q %d inactive - ignoring idx %d\n", trans 1130 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_DEBUG_TX_REPLY(trans, "[Q %d] %d -> %d (%d)\n", trans 1135 drivers/net/wireless/intel/iwlwifi/pcie/tx.c last_to_free = iwl_queue_dec_wrap(trans, tfd_num); trans 1138 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_ERR(trans, trans 1141 drivers/net/wireless/intel/iwlwifi/pcie/tx.c trans->trans_cfg->base_params->max_tfd_queue_size, trans 1151 drivers/net/wireless/intel/iwlwifi/pcie/tx.c txq->read_ptr = iwl_queue_inc_wrap(trans, txq->read_ptr), trans 1164 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (!trans->trans_cfg->use_tfh) trans 1165 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_txq_inval_byte_cnt_tbl(trans, txq); trans 1167 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_txq_free_tfd(trans, txq); trans 1172 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (iwl_queue_space(trans, txq) > txq->low_mark && trans 1209 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_trans_tx(trans, skb, dev_cmd_ptr, txq_id); trans 1212 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (iwl_queue_space(trans, txq) > txq->low_mark) trans 1213 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_wake_queue(trans, txq); trans 1224 drivers/net/wireless/intel/iwlwifi/pcie/tx.c void iwl_trans_pcie_set_q_ptrs(struct iwl_trans *trans, int txq_id, int ptr) trans 1226 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1237 drivers/net/wireless/intel/iwlwifi/pcie/tx.c static int iwl_pcie_set_cmd_in_flight(struct iwl_trans *trans, trans 1240 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1246 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (test_bit(STATUS_TRANS_DEAD, &trans->status)) trans 1255 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (trans->trans_cfg->base_params->apmg_wake_up_wa && trans 1257 drivers/net/wireless/intel/iwlwifi/pcie/tx.c __iwl_trans_pcie_set_bit(trans, CSR_GP_CNTRL, trans 1258 drivers/net/wireless/intel/iwlwifi/pcie/tx.c BIT(trans->trans_cfg->csr->flag_mac_access_req)); trans 1260 drivers/net/wireless/intel/iwlwifi/pcie/tx.c ret = iwl_poll_bit(trans, CSR_GP_CNTRL, trans 1261 drivers/net/wireless/intel/iwlwifi/pcie/tx.c BIT(trans->trans_cfg->csr->flag_val_mac_access_en), trans 1262 drivers/net/wireless/intel/iwlwifi/pcie/tx.c (BIT(trans->trans_cfg->csr->flag_mac_clock_ready) | trans 1266 drivers/net/wireless/intel/iwlwifi/pcie/tx.c __iwl_trans_pcie_clear_bit(trans, CSR_GP_CNTRL, trans 1267 drivers/net/wireless/intel/iwlwifi/pcie/tx.c BIT(trans->trans_cfg->csr->flag_mac_access_req)); trans 1268 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_ERR(trans, "Failed to wake NIC for hcmd\n"); trans 1284 drivers/net/wireless/intel/iwlwifi/pcie/tx.c void iwl_pcie_cmdq_reclaim(struct iwl_trans *trans, int txq_id, int idx) trans 1286 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1297 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (idx >= trans->trans_cfg->base_params->max_tfd_queue_size || trans 1302 drivers/net/wireless/intel/iwlwifi/pcie/tx.c trans->trans_cfg->base_params->max_tfd_queue_size, trans 1307 drivers/net/wireless/intel/iwlwifi/pcie/tx.c for (idx = iwl_queue_inc_wrap(trans, idx); r != idx; trans 1308 drivers/net/wireless/intel/iwlwifi/pcie/tx.c r = iwl_queue_inc_wrap(trans, r)) { trans 1309 drivers/net/wireless/intel/iwlwifi/pcie/tx.c txq->read_ptr = iwl_queue_inc_wrap(trans, txq->read_ptr); trans 1312 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_ERR(trans, "HCMD skipped: index (%d) %d %d\n", trans 1314 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_force_nmi(trans); trans 1320 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_clear_cmd_in_flight(trans); trans 1327 drivers/net/wireless/intel/iwlwifi/pcie/tx.c static int iwl_pcie_txq_set_ratid_map(struct iwl_trans *trans, u16 ra_tid, trans 1330 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1340 drivers/net/wireless/intel/iwlwifi/pcie/tx.c tbl_dw = iwl_trans_read_mem32(trans, tbl_dw_addr); trans 1347 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_trans_write_mem32(trans, tbl_dw_addr, tbl_dw); trans 1356 drivers/net/wireless/intel/iwlwifi/pcie/tx.c bool iwl_trans_pcie_txq_enable(struct iwl_trans *trans, int txq_id, u16 ssn, trans 1360 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1376 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_scd_enable_set_active(trans, 0); trans 1379 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_scd_txq_set_inactive(trans, txq_id); trans 1383 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_scd_txq_set_chain(trans, txq_id); trans 1389 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_txq_set_ratid_map(trans, ra_tid, txq_id); trans 1392 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_scd_txq_enable_agg(trans, txq_id); trans 1400 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_scd_txq_disable_agg(trans, txq_id); trans 1416 drivers/net/wireless/intel/iwlwifi/pcie/tx.c scd_bug = !trans->trans_cfg->mq_rx_supported && trans 1427 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_write_direct32(trans, HBUS_TARG_WRPTR, trans 1433 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_write_prph(trans, SCD_QUEUE_RDPTR(txq_id), ssn); trans 1436 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_trans_write_mem32(trans, trans_pcie->scd_base_addr + trans 1438 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_trans_write_mem32(trans, trans 1445 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_write_prph(trans, SCD_QUEUE_STATUS_BITS(txq_id), trans 1454 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_scd_enable_set_active(trans, BIT(txq_id)); trans 1456 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_DEBUG_TX_QUEUES(trans, trans 1460 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_DEBUG_TX_QUEUES(trans, trans 1468 drivers/net/wireless/intel/iwlwifi/pcie/tx.c void iwl_trans_pcie_txq_set_shared_mode(struct iwl_trans *trans, u32 txq_id, trans 1471 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1477 drivers/net/wireless/intel/iwlwifi/pcie/tx.c void iwl_trans_pcie_txq_disable(struct iwl_trans *trans, int txq_id, trans 1480 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1495 drivers/net/wireless/intel/iwlwifi/pcie/tx.c WARN_ONCE(test_bit(STATUS_DEVICE_ENABLED, &trans->status), trans 1501 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_scd_txq_set_inactive(trans, txq_id); trans 1503 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_trans_write_mem(trans, stts_addr, (void *)zero_val, trans 1507 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_txq_unmap(trans, txq_id); trans 1510 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_DEBUG_TX_QUEUES(trans, "Deactivate queue %d\n", txq_id); trans 1524 drivers/net/wireless/intel/iwlwifi/pcie/tx.c static int iwl_pcie_enqueue_hcmd(struct iwl_trans *trans, trans 1527 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1543 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (WARN(!trans->wide_cmd_header && trans 1619 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_get_cmd_string(trans, cmd->id), trans 1627 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (iwl_queue_space(trans, txq) < ((cmd->flags & CMD_ASYNC) ? 2 : 1)) { trans 1630 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_ERR(trans, "No space in command queue\n"); trans 1631 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_op_mode_cmd_queue_full(trans->op_mode); trans 1708 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_DEBUG_HC(trans, trans 1710 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_get_cmd_string(trans, cmd->id), trans 1718 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_txq_build_tfd(trans, txq, trans 1724 drivers/net/wireless/intel/iwlwifi/pcie/tx.c phys_addr = dma_map_single(trans->dev, trans 1728 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (dma_mapping_error(trans->dev, phys_addr)) { trans 1729 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_tfd_unmap(trans, out_meta, txq, trans 1735 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_txq_build_tfd(trans, txq, phys_addr, trans 1750 drivers/net/wireless/intel/iwlwifi/pcie/tx.c phys_addr = dma_map_single(trans->dev, (void *)data, trans 1752 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (dma_mapping_error(trans->dev, phys_addr)) { trans 1753 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_tfd_unmap(trans, out_meta, txq, trans 1759 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_txq_build_tfd(trans, txq, phys_addr, cmdlen[i], false); trans 1768 drivers/net/wireless/intel/iwlwifi/pcie/tx.c trace_iwlwifi_dev_hcmd(trans->dev, cmd, cmd_size, &out_cmd->hdr_wide); trans 1775 drivers/net/wireless/intel/iwlwifi/pcie/tx.c ret = iwl_pcie_set_cmd_in_flight(trans, cmd); trans 1783 drivers/net/wireless/intel/iwlwifi/pcie/tx.c txq->write_ptr = iwl_queue_inc_wrap(trans, txq->write_ptr); trans 1784 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_txq_inc_wr_ptr(trans, txq); trans 1800 drivers/net/wireless/intel/iwlwifi/pcie/tx.c void iwl_pcie_hcmd_complete(struct iwl_trans *trans, trans 1812 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1822 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_print_hex_error(trans, pkt, 32); trans 1834 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_tfd_unmap(trans, meta, txq, index); trans 1846 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_op_mode_async_cb(trans->op_mode, cmd); trans 1848 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_cmdq_reclaim(trans, txq_id, index); trans 1851 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (!test_bit(STATUS_SYNC_HCMD_ACTIVE, &trans->status)) { trans 1852 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_WARN(trans, trans 1854 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_get_cmd_string(trans, cmd_id)); trans 1856 drivers/net/wireless/intel/iwlwifi/pcie/tx.c clear_bit(STATUS_SYNC_HCMD_ACTIVE, &trans->status); trans 1857 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_DEBUG_INFO(trans, "Clearing HCMD_ACTIVE for command %s\n", trans 1858 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_get_cmd_string(trans, cmd_id)); trans 1869 drivers/net/wireless/intel/iwlwifi/pcie/tx.c static int iwl_pcie_send_hcmd_async(struct iwl_trans *trans, trans 1878 drivers/net/wireless/intel/iwlwifi/pcie/tx.c ret = iwl_pcie_enqueue_hcmd(trans, cmd); trans 1880 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_ERR(trans, trans 1882 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_get_cmd_string(trans, cmd->id), ret); trans 1888 drivers/net/wireless/intel/iwlwifi/pcie/tx.c static int iwl_pcie_send_hcmd_sync(struct iwl_trans *trans, trans 1891 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 1896 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_DEBUG_INFO(trans, "Attempting to send sync command %s\n", trans 1897 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_get_cmd_string(trans, cmd->id)); trans 1900 drivers/net/wireless/intel/iwlwifi/pcie/tx.c &trans->status), trans 1902 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_get_cmd_string(trans, cmd->id))) trans 1905 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_DEBUG_INFO(trans, "Setting HCMD_ACTIVE for command %s\n", trans 1906 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_get_cmd_string(trans, cmd->id)); trans 1908 drivers/net/wireless/intel/iwlwifi/pcie/tx.c cmd_idx = iwl_pcie_enqueue_hcmd(trans, cmd); trans 1911 drivers/net/wireless/intel/iwlwifi/pcie/tx.c clear_bit(STATUS_SYNC_HCMD_ACTIVE, &trans->status); trans 1912 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_ERR(trans, trans 1914 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_get_cmd_string(trans, cmd->id), ret); trans 1920 drivers/net/wireless/intel/iwlwifi/pcie/tx.c &trans->status), trans 1923 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_ERR(trans, "Error sending %s: time out after %dms.\n", trans 1924 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_get_cmd_string(trans, cmd->id), trans 1927 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_ERR(trans, "Current CMD queue read_ptr %d write_ptr %d\n", trans 1930 drivers/net/wireless/intel/iwlwifi/pcie/tx.c clear_bit(STATUS_SYNC_HCMD_ACTIVE, &trans->status); trans 1931 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_DEBUG_INFO(trans, "Clearing HCMD_ACTIVE for command %s\n", trans 1932 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_get_cmd_string(trans, cmd->id)); trans 1935 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_trans_pcie_sync_nmi(trans); trans 1939 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (test_bit(STATUS_FW_ERROR, &trans->status)) { trans 1940 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_trans_pcie_dump_regs(trans); trans 1941 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_ERR(trans, "FW error in SYNC CMD %s\n", trans 1942 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_get_cmd_string(trans, cmd->id)); trans 1949 drivers/net/wireless/intel/iwlwifi/pcie/tx.c test_bit(STATUS_RFKILL_OPMODE, &trans->status)) { trans 1950 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_DEBUG_RF_KILL(trans, "RFKILL in SYNC CMD... no rsp\n"); trans 1956 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_ERR(trans, "Error: Response NULL in '%s'\n", trans 1957 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_get_cmd_string(trans, cmd->id)); trans 1983 drivers/net/wireless/intel/iwlwifi/pcie/tx.c int iwl_trans_pcie_send_hcmd(struct iwl_trans *trans, struct iwl_host_cmd *cmd) trans 1986 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (test_bit(STATUS_TRANS_DEAD, &trans->status)) trans 1990 drivers/net/wireless/intel/iwlwifi/pcie/tx.c test_bit(STATUS_RFKILL_OPMODE, &trans->status)) { trans 1991 drivers/net/wireless/intel/iwlwifi/pcie/tx.c IWL_DEBUG_RF_KILL(trans, "Dropping CMD 0x%x: RF KILL\n", trans 1997 drivers/net/wireless/intel/iwlwifi/pcie/tx.c return iwl_pcie_send_hcmd_async(trans, cmd); trans 2000 drivers/net/wireless/intel/iwlwifi/pcie/tx.c return iwl_pcie_send_hcmd_sync(trans, cmd); trans 2003 drivers/net/wireless/intel/iwlwifi/pcie/tx.c static int iwl_fill_data_tbs(struct iwl_trans *trans, struct sk_buff *skb, trans 2017 drivers/net/wireless/intel/iwlwifi/pcie/tx.c dma_addr_t tb_phys = dma_map_single(trans->dev, trans 2020 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (unlikely(dma_mapping_error(trans->dev, tb_phys))) trans 2022 drivers/net/wireless/intel/iwlwifi/pcie/tx.c trace_iwlwifi_dev_tx_tb(trans->dev, skb, trans 2025 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_txq_build_tfd(trans, txq, tb_phys, head_tb_len, false); trans 2037 drivers/net/wireless/intel/iwlwifi/pcie/tx.c tb_phys = skb_frag_dma_map(trans->dev, frag, 0, trans 2040 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (unlikely(dma_mapping_error(trans->dev, tb_phys))) trans 2042 drivers/net/wireless/intel/iwlwifi/pcie/tx.c trace_iwlwifi_dev_tx_tb(trans->dev, skb, trans 2045 drivers/net/wireless/intel/iwlwifi/pcie/tx.c tb_idx = iwl_pcie_txq_build_tfd(trans, txq, tb_phys, trans 2057 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iwl_tso_hdr_page *get_page_hdr(struct iwl_trans *trans, size_t len) trans 2059 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 2099 drivers/net/wireless/intel/iwlwifi/pcie/tx.c static int iwl_fill_data_tbs_amsdu(struct iwl_trans *trans, struct sk_buff *skb, trans 2121 drivers/net/wireless/intel/iwlwifi/pcie/tx.c trace_iwlwifi_dev_tx(trans->dev, skb, trans 2122 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_get_tfd(trans, txq, txq->write_ptr), trans 2136 drivers/net/wireless/intel/iwlwifi/pcie/tx.c hdr_page = get_page_hdr(trans, hdr_room); trans 2217 drivers/net/wireless/intel/iwlwifi/pcie/tx.c hdr_tb_phys = dma_map_single(trans->dev, start_hdr, trans 2219 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (unlikely(dma_mapping_error(trans->dev, hdr_tb_phys))) { trans 2223 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_txq_build_tfd(trans, txq, hdr_tb_phys, trans 2225 drivers/net/wireless/intel/iwlwifi/pcie/tx.c trace_iwlwifi_dev_tx_tb(trans->dev, skb, start_hdr, trans 2242 drivers/net/wireless/intel/iwlwifi/pcie/tx.c tb_phys = dma_map_single(trans->dev, tso.data, trans 2244 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (unlikely(dma_mapping_error(trans->dev, tb_phys))) { trans 2249 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_txq_build_tfd(trans, txq, tb_phys, trans 2251 drivers/net/wireless/intel/iwlwifi/pcie/tx.c trace_iwlwifi_dev_tx_tb(trans->dev, skb, tso.data, trans 2268 drivers/net/wireless/intel/iwlwifi/pcie/tx.c dma_sync_single_for_cpu(trans->dev, hdr_tb_phys, trans 2271 drivers/net/wireless/intel/iwlwifi/pcie/tx.c dma_sync_single_for_device(trans->dev, hdr_tb_phys, trans 2282 drivers/net/wireless/intel/iwlwifi/pcie/tx.c static int iwl_fill_data_tbs_amsdu(struct iwl_trans *trans, struct sk_buff *skb, trans 2295 drivers/net/wireless/intel/iwlwifi/pcie/tx.c int iwl_trans_pcie_tx(struct iwl_trans *trans, struct sk_buff *skb, trans 2298 drivers/net/wireless/intel/iwlwifi/pcie/tx.c struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); trans 2348 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (iwl_queue_space(trans, txq) < txq->high_mark) { trans 2349 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_stop_queue(trans, txq); trans 2352 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (unlikely(iwl_queue_space(trans, txq) < 3)) { trans 2421 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_txq_build_tfd(trans, txq, tb0_phys, trans 2429 drivers/net/wireless/intel/iwlwifi/pcie/tx.c tb1_phys = dma_map_single(trans->dev, tb1_addr, tb1_len, DMA_TO_DEVICE); trans 2430 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (unlikely(dma_mapping_error(trans->dev, tb1_phys))) trans 2432 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_txq_build_tfd(trans, txq, tb1_phys, tb1_len, false); trans 2434 drivers/net/wireless/intel/iwlwifi/pcie/tx.c trace_iwlwifi_dev_tx(trans->dev, skb, trans 2435 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_get_tfd(trans, txq, trans 2448 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (unlikely(iwl_fill_data_tbs_amsdu(trans, skb, txq, hdr_len, trans 2455 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (unlikely(iwl_fill_data_tbs(trans, skb, txq, hdr_len, trans 2460 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (unlikely(iwl_fill_data_tbs(trans, frag, txq, 0, trans 2469 drivers/net/wireless/intel/iwlwifi/pcie/tx.c tfd = iwl_pcie_get_tfd(trans, txq, txq->write_ptr); trans 2471 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_txq_update_byte_cnt_tbl(trans, txq, le16_to_cpu(tx_cmd->len), trans 2472 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_tfd_get_num_tbs(trans, tfd)); trans 2492 drivers/net/wireless/intel/iwlwifi/pcie/tx.c txq->write_ptr = iwl_queue_inc_wrap(trans, txq->write_ptr); trans 2494 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_txq_inc_wr_ptr(trans, txq); trans 2503 drivers/net/wireless/intel/iwlwifi/pcie/tx.c iwl_pcie_tfd_unmap(trans, out_meta, txq, txq->write_ptr); trans 47 drivers/net/wireless/quantenna/qtnfmac/bus.h struct qtnf_qlink_transport trans; trans 724 drivers/net/wireless/quantenna/qtnfmac/event.c struct sk_buff_head *event_queue = &bus->trans.event_queue; trans 18 drivers/net/wireless/quantenna/qtnfmac/trans.c struct qtnf_cmd_ctl_node *ctl_node = &bus->trans.curr_cmd; trans 83 drivers/net/wireless/quantenna/qtnfmac/trans.c struct qtnf_cmd_ctl_node *ctl_node = &bus->trans.curr_cmd; trans 114 drivers/net/wireless/quantenna/qtnfmac/trans.c struct qtnf_qlink_transport *trans = &bus->trans; trans 116 drivers/net/wireless/quantenna/qtnfmac/trans.c if (likely(skb_queue_len(&trans->event_queue) < trans 117 drivers/net/wireless/quantenna/qtnfmac/trans.c trans->event_queue_max_len)) { trans 118 drivers/net/wireless/quantenna/qtnfmac/trans.c skb_queue_tail(&trans->event_queue, skb); trans 131 drivers/net/wireless/quantenna/qtnfmac/trans.c struct qtnf_qlink_transport *trans = &bus->trans; trans 133 drivers/net/wireless/quantenna/qtnfmac/trans.c init_completion(&trans->curr_cmd.cmd_resp_completion); trans 134 drivers/net/wireless/quantenna/qtnfmac/trans.c spin_lock_init(&trans->curr_cmd.resp_lock); trans 136 drivers/net/wireless/quantenna/qtnfmac/trans.c spin_lock(&trans->curr_cmd.resp_lock); trans 137 drivers/net/wireless/quantenna/qtnfmac/trans.c trans->curr_cmd.seq_num = 0; trans 138 drivers/net/wireless/quantenna/qtnfmac/trans.c trans->curr_cmd.waiting_for_resp = false; trans 139 drivers/net/wireless/quantenna/qtnfmac/trans.c trans->curr_cmd.resp_skb = NULL; trans 140 drivers/net/wireless/quantenna/qtnfmac/trans.c spin_unlock(&trans->curr_cmd.resp_lock); trans 143 drivers/net/wireless/quantenna/qtnfmac/trans.c skb_queue_head_init(&trans->event_queue); trans 144 drivers/net/wireless/quantenna/qtnfmac/trans.c trans->event_queue_max_len = QTNF_MAX_EVENT_QUEUE_LEN; trans 149 drivers/net/wireless/quantenna/qtnfmac/trans.c struct sk_buff_head *event_queue = &bus->trans.event_queue; trans 789 drivers/pci/xen-pcifront.c struct xenbus_transaction trans; trans 811 drivers/pci/xen-pcifront.c err = xenbus_transaction_start(&trans); trans 819 drivers/pci/xen-pcifront.c err = xenbus_printf(trans, pdev->xdev->nodename, trans 822 drivers/pci/xen-pcifront.c err = xenbus_printf(trans, pdev->xdev->nodename, trans 825 drivers/pci/xen-pcifront.c err = xenbus_printf(trans, pdev->xdev->nodename, trans 829 drivers/pci/xen-pcifront.c xenbus_transaction_end(trans, 1); trans 834 drivers/pci/xen-pcifront.c err = xenbus_transaction_end(trans, 0); trans 119 drivers/platform/chrome/cros_ec_spi.c struct spi_transfer trans; trans 127 drivers/platform/chrome/cros_ec_spi.c memset(&trans, 0, sizeof(trans)); trans 128 drivers/platform/chrome/cros_ec_spi.c trans.delay_usecs = ec_spi->end_of_msg_delay; trans 129 drivers/platform/chrome/cros_ec_spi.c spi_message_add_tail(&trans, &msg); trans 152 drivers/platform/chrome/cros_ec_spi.c struct spi_transfer trans; trans 158 drivers/platform/chrome/cros_ec_spi.c memset(&trans, 0, sizeof(trans)); trans 159 drivers/platform/chrome/cros_ec_spi.c trans.cs_change = 1; trans 160 drivers/platform/chrome/cros_ec_spi.c trans.rx_buf = buf; trans 161 drivers/platform/chrome/cros_ec_spi.c trans.len = n; trans 164 drivers/platform/chrome/cros_ec_spi.c spi_message_add_tail(&trans, &msg); trans 386 drivers/platform/chrome/cros_ec_spi.c struct spi_transfer trans, trans_delay; trans 422 drivers/platform/chrome/cros_ec_spi.c memset(&trans, 0, sizeof(trans)); trans 423 drivers/platform/chrome/cros_ec_spi.c trans.tx_buf = ec_dev->dout; trans 424 drivers/platform/chrome/cros_ec_spi.c trans.rx_buf = rx_buf; trans 425 drivers/platform/chrome/cros_ec_spi.c trans.len = len; trans 426 drivers/platform/chrome/cros_ec_spi.c trans.cs_change = 1; trans 427 drivers/platform/chrome/cros_ec_spi.c spi_message_add_tail(&trans, &msg); trans 528 drivers/platform/chrome/cros_ec_spi.c struct spi_transfer trans; trans 554 drivers/platform/chrome/cros_ec_spi.c memset(&trans, 0, sizeof(trans)); trans 555 drivers/platform/chrome/cros_ec_spi.c trans.tx_buf = ec_dev->dout; trans 556 drivers/platform/chrome/cros_ec_spi.c trans.rx_buf = rx_buf; trans 557 drivers/platform/chrome/cros_ec_spi.c trans.len = len; trans 558 drivers/platform/chrome/cros_ec_spi.c trans.cs_change = 1; trans 560 drivers/platform/chrome/cros_ec_spi.c spi_message_add_tail(&trans, &msg); trans 422 drivers/scsi/ch.c ch_position(scsi_changer *ch, u_int trans, u_int elem, int rotate) trans 427 drivers/scsi/ch.c if (0 == trans) trans 428 drivers/scsi/ch.c trans = ch->firsts[CHET_MT]; trans 432 drivers/scsi/ch.c cmd[2] = (trans >> 8) & 0xff; trans 433 drivers/scsi/ch.c cmd[3] = trans & 0xff; trans 441 drivers/scsi/ch.c ch_move(scsi_changer *ch, u_int trans, u_int src, u_int dest, int rotate) trans 446 drivers/scsi/ch.c if (0 == trans) trans 447 drivers/scsi/ch.c trans = ch->firsts[CHET_MT]; trans 451 drivers/scsi/ch.c cmd[2] = (trans >> 8) & 0xff; trans 452 drivers/scsi/ch.c cmd[3] = trans & 0xff; trans 462 drivers/scsi/ch.c ch_exchange(scsi_changer *ch, u_int trans, u_int src, trans 469 drivers/scsi/ch.c if (0 == trans) trans 470 drivers/scsi/ch.c trans = ch->firsts[CHET_MT]; trans 474 drivers/scsi/ch.c cmd[2] = (trans >> 8) & 0xff; trans 475 drivers/scsi/ch.c cmd[3] = trans & 0xff; trans 186 drivers/spi/spi-bcm-qspi.c struct spi_transfer *trans; trans 549 drivers/spi/spi-bcm-qspi.c struct spi_transfer *trans) trans 553 drivers/spi/spi-bcm-qspi.c xp.speed_hz = trans->speed_hz; trans 554 drivers/spi/spi-bcm-qspi.c xp.bits_per_word = trans->bits_per_word; trans 589 drivers/spi/spi-bcm-qspi.c spi_transfer_is_last(qspi->master, qt->trans)) trans 601 drivers/spi/spi-bcm-qspi.c if (qt->trans->bits_per_word <= 8) trans 606 drivers/spi/spi-bcm-qspi.c if (qt->byte >= qt->trans->len) { trans 609 drivers/spi/spi-bcm-qspi.c if (qt->trans->delay_usecs && trans 612 drivers/spi/spi-bcm-qspi.c if (qt->trans->cs_change && trans 624 drivers/spi/spi-bcm-qspi.c qt->trans = NULL; trans 629 drivers/spi/spi-bcm-qspi.c qt->trans, qt->trans ? qt->trans->len : 0, qt->byte, ret); trans 667 drivers/spi/spi-bcm-qspi.c if (tp.trans->bits_per_word <= 8) { trans 668 drivers/spi/spi-bcm-qspi.c u8 *buf = tp.trans->rx_buf; trans 675 drivers/spi/spi-bcm-qspi.c u16 *buf = tp.trans->rx_buf; trans 730 drivers/spi/spi-bcm-qspi.c bcm_qspi_update_parms(qspi, spi, tp.trans); trans 734 drivers/spi/spi-bcm-qspi.c if (tp.trans->bits_per_word <= 8) { trans 735 drivers/spi/spi-bcm-qspi.c const u8 *buf = tp.trans->tx_buf; trans 741 drivers/spi/spi-bcm-qspi.c const u16 *buf = tp.trans->tx_buf; trans 755 drivers/spi/spi-bcm-qspi.c mspi_cdram |= ((tp.trans->bits_per_word <= 8) ? 0 : trans 879 drivers/spi/spi-bcm-qspi.c struct spi_transfer *trans) trans 886 drivers/spi/spi-bcm-qspi.c qspi->trans_pos.trans = trans; trans 889 drivers/spi/spi-bcm-qspi.c while (qspi->trans_pos.byte < trans->len) { trans 1229 drivers/spi/spi-bcm-qspi.c qspi->trans_pos.trans = NULL; trans 397 drivers/spi/spi-fsl-espi.c static int fsl_espi_trans(struct spi_message *m, struct spi_transfer *trans) trans 404 drivers/spi/spi-fsl-espi.c espi->swab = spi->mode & SPI_LSB_FIRST && trans->bits_per_word > 8; trans 417 drivers/spi/spi-fsl-espi.c if (trans->rx_nbits == SPI_NBITS_DUAL && !espi->rxskip) { trans 426 drivers/spi/spi-fsl-espi.c fsl_espi_setup_transfer(spi, trans); trans 428 drivers/spi/spi-fsl-espi.c ret = fsl_espi_bufs(spi, trans); trans 430 drivers/spi/spi-fsl-espi.c if (trans->delay_usecs) trans 431 drivers/spi/spi-fsl-espi.c udelay(trans->delay_usecs); trans 440 drivers/spi/spi-fsl-espi.c struct spi_transfer *t, trans = {}; trans 457 drivers/spi/spi-fsl-espi.c trans.len = m->frame_length; trans 458 drivers/spi/spi-fsl-espi.c trans.speed_hz = t->speed_hz; trans 459 drivers/spi/spi-fsl-espi.c trans.bits_per_word = t->bits_per_word; trans 460 drivers/spi/spi-fsl-espi.c trans.delay_usecs = delay_usecs; trans 461 drivers/spi/spi-fsl-espi.c trans.rx_nbits = rx_nbits; trans 463 drivers/spi/spi-fsl-espi.c if (trans.len) trans 464 drivers/spi/spi-fsl-espi.c ret = fsl_espi_trans(m, &trans); trans 466 drivers/spi/spi-fsl-espi.c m->actual_length = ret ? 0 : trans.len; trans 526 drivers/spi/spi-mt65xx.c struct spi_transfer *trans = mdata->cur_transfer; trans 534 drivers/spi/spi-mt65xx.c if (!master->can_dma(master, master->cur_msg->spi, trans)) { trans 535 drivers/spi/spi-mt65xx.c if (trans->rx_buf) { trans 538 drivers/spi/spi-mt65xx.c trans->rx_buf + mdata->num_xfered, cnt); trans 542 drivers/spi/spi-mt65xx.c memcpy(trans->rx_buf + trans 551 drivers/spi/spi-mt65xx.c if (mdata->num_xfered == trans->len) { trans 556 drivers/spi/spi-mt65xx.c len = trans->len - mdata->num_xfered; trans 562 drivers/spi/spi-mt65xx.c trans->tx_buf + mdata->num_xfered, cnt); trans 568 drivers/spi/spi-mt65xx.c trans->tx_buf + (cnt * 4) + mdata->num_xfered, trans 579 drivers/spi/spi-mt65xx.c trans->tx_dma += mdata->xfer_len; trans 581 drivers/spi/spi-mt65xx.c trans->rx_dma += mdata->xfer_len; trans 586 drivers/spi/spi-mt65xx.c trans->tx_dma = sg_dma_address(mdata->tx_sgl); trans 593 drivers/spi/spi-mt65xx.c trans->rx_dma = sg_dma_address(mdata->rx_sgl); trans 611 drivers/spi/spi-mt65xx.c mtk_spi_setup_dma_addr(master, trans); trans 778 drivers/spi/spi-pl022.c struct spi_transfer *trans = pl022->cur_transfer; trans 781 drivers/spi/spi-pl022.c if (trans->transfer_list.next != &msg->transfers) { trans 783 drivers/spi/spi-pl022.c list_entry(trans->transfer_list.next, trans 314 drivers/spi/spi-slave-mt27xx.c struct spi_transfer *trans = mdata->cur_transfer; trans 320 drivers/spi/spi-slave-mt27xx.c if (!trans) trans 328 drivers/spi/spi-slave-mt27xx.c if (trans->tx_buf) trans 329 drivers/spi/spi-slave-mt27xx.c dma_unmap_single(mdata->dev, trans->tx_dma, trans 330 drivers/spi/spi-slave-mt27xx.c trans->len, DMA_TO_DEVICE); trans 331 drivers/spi/spi-slave-mt27xx.c if (trans->rx_buf) trans 332 drivers/spi/spi-slave-mt27xx.c dma_unmap_single(mdata->dev, trans->rx_dma, trans 333 drivers/spi/spi-slave-mt27xx.c trans->len, DMA_FROM_DEVICE); trans 342 drivers/spi/spi-slave-mt27xx.c cnt = trans->len / 4; trans 343 drivers/spi/spi-slave-mt27xx.c if (trans->rx_buf) trans 345 drivers/spi/spi-slave-mt27xx.c trans->rx_buf, cnt); trans 346 drivers/spi/spi-slave-mt27xx.c remainder = trans->len % 4; trans 347 drivers/spi/spi-slave-mt27xx.c if (trans->rx_buf && remainder > 0) { trans 349 drivers/spi/spi-slave-mt27xx.c memcpy(trans->rx_buf + (cnt * 4), trans 812 drivers/staging/fsl-dpaa2/ethsw/ethsw.c struct switchdev_trans *trans, trans 817 drivers/staging/fsl-dpaa2/ethsw/ethsw.c if (switchdev_trans_ph_prepare(trans)) trans 824 drivers/staging/fsl-dpaa2/ethsw/ethsw.c struct switchdev_trans *trans, trans 834 drivers/staging/fsl-dpaa2/ethsw/ethsw.c struct switchdev_trans *trans, trans 840 drivers/staging/fsl-dpaa2/ethsw/ethsw.c if (switchdev_trans_ph_prepare(trans)) trans 857 drivers/staging/fsl-dpaa2/ethsw/ethsw.c struct switchdev_trans *trans) trans 863 drivers/staging/fsl-dpaa2/ethsw/ethsw.c err = port_attr_stp_state_set(netdev, trans, trans 867 drivers/staging/fsl-dpaa2/ethsw/ethsw.c err = port_attr_br_flags_pre_set(netdev, trans, trans 871 drivers/staging/fsl-dpaa2/ethsw/ethsw.c err = port_attr_br_flags_set(netdev, trans, trans 887 drivers/staging/fsl-dpaa2/ethsw/ethsw.c struct switchdev_trans *trans) trans 892 drivers/staging/fsl-dpaa2/ethsw/ethsw.c if (switchdev_trans_ph_prepare(trans)) trans 931 drivers/staging/fsl-dpaa2/ethsw/ethsw.c struct switchdev_trans *trans) trans 936 drivers/staging/fsl-dpaa2/ethsw/ethsw.c if (switchdev_trans_ph_prepare(trans)) trans 958 drivers/staging/fsl-dpaa2/ethsw/ethsw.c struct switchdev_trans *trans) trans 966 drivers/staging/fsl-dpaa2/ethsw/ethsw.c trans); trans 971 drivers/staging/fsl-dpaa2/ethsw/ethsw.c trans); trans 1104 drivers/staging/fsl-dpaa2/ethsw/ethsw.c port_attr_info->trans); trans 1291 drivers/staging/fsl-dpaa2/ethsw/ethsw.c port_obj_info->trans); trans 1320 drivers/usb/gadget/udc/dummy_hcd.c u32 trans = 0; trans 1356 drivers/usb/gadget/udc/dummy_hcd.c trans += this_sg; trans 1376 drivers/usb/gadget/udc/dummy_hcd.c return trans; trans 2228 drivers/usb/gadget/udc/omap_udc.c u32 trans = 0; trans 2233 drivers/usb/gadget/udc/omap_udc.c trans = omap_readw(USB_TRANSCEIVER_CTRL); trans 2235 drivers/usb/gadget/udc/omap_udc.c tmp >> 4, tmp & 0xf, ctrl_name, trans); trans 2239 drivers/usb/gadget/udc/omap_udc.c trx_mode(USB2_TRX_MODE(tmp), trans & CONF_USB2_UNI_R), trans 2240 drivers/usb/gadget/udc/omap_udc.c trx_mode(USB1_TRX_MODE(tmp), trans & CONF_USB1_UNI_R), trans 1213 drivers/usb/host/ehci-sched.c u32 trans; trans 1218 drivers/usb/host/ehci-sched.c trans = EHCI_ISOC_ACTIVE; trans 1219 drivers/usb/host/ehci-sched.c trans |= buf & 0x0fff; trans 1222 drivers/usb/host/ehci-sched.c trans |= EHCI_ITD_IOC; trans 1223 drivers/usb/host/ehci-sched.c trans |= length << 16; trans 1224 drivers/usb/host/ehci-sched.c uframe->transaction = cpu_to_hc32(ehci, trans); trans 2012 drivers/usb/host/ehci-sched.c u32 trans; trans 2017 drivers/usb/host/ehci-sched.c trans = SITD_STS_ACTIVE; trans 2020 drivers/usb/host/ehci-sched.c trans |= SITD_IOC; trans 2021 drivers/usb/host/ehci-sched.c trans |= length << 16; trans 2022 drivers/usb/host/ehci-sched.c packet->transaction = cpu_to_hc32(ehci, trans); trans 4046 drivers/usb/host/fotg210-hcd.c u32 trans; trans 4051 drivers/usb/host/fotg210-hcd.c trans = FOTG210_ISOC_ACTIVE; trans 4052 drivers/usb/host/fotg210-hcd.c trans |= buf & 0x0fff; trans 4055 drivers/usb/host/fotg210-hcd.c trans |= FOTG210_ITD_IOC; trans 4056 drivers/usb/host/fotg210-hcd.c trans |= length << 16; trans 4057 drivers/usb/host/fotg210-hcd.c uframe->transaction = cpu_to_hc32(fotg210, trans); trans 825 drivers/usb/renesas_usbhs/fifo.c pkt->trans, dir, trans 843 drivers/usb/renesas_usbhs/fifo.c usbhs_pipe_set_trans_count_if_bulk(pipe, pkt->trans); trans 907 drivers/usb/renesas_usbhs/fifo.c pkt->trans = len; trans 934 drivers/usb/renesas_usbhs/fifo.c int is_short = pkt->trans % usbhs_pipe_get_maxpacket(pipe); trans 936 drivers/usb/renesas_usbhs/fifo.c pkt->actual += pkt->trans; trans 1020 drivers/usb/renesas_usbhs/fifo.c pkt->trans = pkt->length; trans 1099 drivers/usb/renesas_usbhs/fifo.c pkt->trans = len; trans 1136 drivers/usb/renesas_usbhs/fifo.c pkt->actual += pkt->trans; trans 1139 drivers/usb/renesas_usbhs/fifo.c (pkt->trans < maxp)) { /* short packet */ trans 56 drivers/usb/renesas_usbhs/fifo.h int trans; trans 267 drivers/video/fbdev/acornfb.c u_int trans, struct fb_info *info) trans 30 drivers/video/fbdev/acornfb.h u_int trans:1; trans 823 drivers/video/fbdev/i810/i810_main.c u8 red, green, blue, trans, temp; trans 825 drivers/video/fbdev/i810/i810_main.c i810fb_getcolreg(bg, &red, &green, &blue, &trans, info); trans 834 drivers/video/fbdev/i810/i810_main.c i810fb_getcolreg(fg, &red, &green, &blue, &trans, info); trans 259 drivers/video/fbdev/imxfb.c u_int trans, struct fb_info *info) trans 277 drivers/video/fbdev/imxfb.c u_int trans, struct fb_info *info) trans 323 drivers/video/fbdev/imxfb.c ret = imxfb_setpalettereg(regno, red, green, blue, trans, info); trans 166 drivers/video/fbdev/mbx/mbxfb.c u_int trans, struct fb_info *info) trans 315 drivers/video/fbdev/mmp/fb/mmpfb.c unsigned int trans, struct fb_info *info) trans 1027 drivers/video/fbdev/mx3fb.c unsigned int trans, struct fb_info *fbi) trans 292 drivers/video/fbdev/omap/omapfb_main.c u16 trans = 0xffff; trans 302 drivers/video/fbdev/omap/omapfb_main.c trans = *transp++; trans 303 drivers/video/fbdev/omap/omapfb_main.c r = _setcolreg(info, index++, *red++, *green++, *blue++, trans, trans 1195 drivers/video/fbdev/omap2/omapfb/omapfb-main.c u16 trans = 0xffff; trans 1207 drivers/video/fbdev/omap2/omapfb/omapfb-main.c trans = *transp++; trans 1208 drivers/video/fbdev/omap2/omapfb/omapfb-main.c r = _setcolreg(info, index++, *red++, *green++, *blue++, trans, trans 490 drivers/video/fbdev/pxa168fb.c unsigned int blue, unsigned int trans, struct fb_info *info) trans 143 drivers/video/fbdev/pxafb.c u_int trans, struct fb_info *info) trans 188 drivers/video/fbdev/pxafb.c u_int trans, struct fb_info *info) trans 234 drivers/video/fbdev/pxafb.c ret = pxafb_setpalettereg(regno, red, green, blue, trans, info); trans 270 drivers/video/fbdev/sa1100fb.c u_int trans, struct fb_info *info) trans 292 drivers/video/fbdev/sa1100fb.c u_int trans, struct fb_info *info) trans 337 drivers/video/fbdev/sa1100fb.c ret = sa1100fb_setpalettereg(regno, red, green, blue, trans, info); trans 973 drivers/video/fbdev/sm712fb.c unsigned int trans, struct fb_info *info) trans 203 drivers/video/fbdev/w100fb.c u_int trans, struct fb_info *info) trans 309 drivers/xen/xenbus/xenbus_dev_frontend.c struct xenbus_transaction_holder *trans, *tmp; trans 320 drivers/xen/xenbus/xenbus_dev_frontend.c list_for_each_entry_safe(trans, tmp, &u->transactions, list) { trans 321 drivers/xen/xenbus/xenbus_dev_frontend.c xenbus_transaction_end(trans->handle, 1); trans 322 drivers/xen/xenbus/xenbus_dev_frontend.c list_del(&trans->list); trans 323 drivers/xen/xenbus/xenbus_dev_frontend.c kfree(trans); trans 354 drivers/xen/xenbus/xenbus_dev_frontend.c struct xenbus_transaction_holder *trans; trans 356 drivers/xen/xenbus/xenbus_dev_frontend.c list_for_each_entry(trans, &u->transactions, list) trans 357 drivers/xen/xenbus/xenbus_dev_frontend.c if (trans->handle.id == tx_id) trans 358 drivers/xen/xenbus/xenbus_dev_frontend.c return trans; trans 366 drivers/xen/xenbus/xenbus_dev_frontend.c struct xenbus_transaction_holder *trans = NULL; trans 375 drivers/xen/xenbus/xenbus_dev_frontend.c trans = xenbus_get_transaction(u, 0); trans 376 drivers/xen/xenbus/xenbus_dev_frontend.c if (WARN_ON(!trans)) trans 379 drivers/xen/xenbus/xenbus_dev_frontend.c list_del(&trans->list); trans 380 drivers/xen/xenbus/xenbus_dev_frontend.c kfree(trans); trans 382 drivers/xen/xenbus/xenbus_dev_frontend.c rc = kstrtou32(req->body, 10, &trans->handle.id); trans 387 drivers/xen/xenbus/xenbus_dev_frontend.c trans = xenbus_get_transaction(u, req->msg.tx_id); trans 388 drivers/xen/xenbus/xenbus_dev_frontend.c if (WARN_ON(!trans)) trans 390 drivers/xen/xenbus/xenbus_dev_frontend.c list_del(&trans->list); trans 391 drivers/xen/xenbus/xenbus_dev_frontend.c kfree(trans); trans 450 drivers/xen/xenbus/xenbus_dev_frontend.c struct xenbus_transaction_holder *trans = NULL; trans 457 drivers/xen/xenbus/xenbus_dev_frontend.c trans = kzalloc(sizeof(*trans), GFP_KERNEL); trans 458 drivers/xen/xenbus/xenbus_dev_frontend.c if (!trans) { trans 462 drivers/xen/xenbus/xenbus_dev_frontend.c trans->generation_id = xb_dev_generation_id; trans 463 drivers/xen/xenbus/xenbus_dev_frontend.c list_add(&trans->list, &u->transactions); trans 472 drivers/xen/xenbus/xenbus_dev_frontend.c trans = xenbus_get_transaction(u, msg->hdr.tx_id); trans 473 drivers/xen/xenbus/xenbus_dev_frontend.c if (trans && trans->generation_id != xb_dev_generation_id) { trans 474 drivers/xen/xenbus/xenbus_dev_frontend.c list_del(&trans->list); trans 475 drivers/xen/xenbus/xenbus_dev_frontend.c kfree(trans); trans 487 drivers/xen/xenbus/xenbus_dev_frontend.c if (rc && trans) { trans 488 drivers/xen/xenbus/xenbus_dev_frontend.c list_del(&trans->list); trans 489 drivers/xen/xenbus/xenbus_dev_frontend.c kfree(trans); trans 55 fs/btrfs/acl.c static int __btrfs_set_acl(struct btrfs_trans_handle *trans, trans 96 fs/btrfs/acl.c if (trans) trans 97 fs/btrfs/acl.c ret = btrfs_setxattr(trans, inode, name, value, size, 0); trans 126 fs/btrfs/acl.c int btrfs_init_acl(struct btrfs_trans_handle *trans, trans 141 fs/btrfs/acl.c ret = __btrfs_set_acl(trans, inode, default_acl, trans 148 fs/btrfs/acl.c ret = __btrfs_set_acl(trans, inode, acl, trans 1113 fs/btrfs/backref.c static int find_parent_nodes(struct btrfs_trans_handle *trans, trans 1146 fs/btrfs/backref.c if (!trans) { trans 1162 fs/btrfs/backref.c ret = btrfs_search_slot(trans, fs_info->extent_root, &key, path, 0, 0); trans 1168 fs/btrfs/backref.c if (trans && likely(trans->type != __TRANS_DUMMY) && trans 1171 fs/btrfs/backref.c if (trans && time_seq != SEQ_LAST) { trans 1177 fs/btrfs/backref.c delayed_refs = &trans->transaction->delayed_refs; trans 1365 fs/btrfs/backref.c static int btrfs_find_all_leafs(struct btrfs_trans_handle *trans, trans 1376 fs/btrfs/backref.c ret = find_parent_nodes(trans, fs_info, bytenr, time_seq, trans 1399 fs/btrfs/backref.c static int btrfs_find_all_roots_safe(struct btrfs_trans_handle *trans, trans 1420 fs/btrfs/backref.c ret = find_parent_nodes(trans, fs_info, bytenr, time_seq, trans 1438 fs/btrfs/backref.c int btrfs_find_all_roots(struct btrfs_trans_handle *trans, trans 1445 fs/btrfs/backref.c if (!trans) trans 1447 fs/btrfs/backref.c ret = btrfs_find_all_roots_safe(trans, fs_info, bytenr, trans 1449 fs/btrfs/backref.c if (!trans) trans 1472 fs/btrfs/backref.c struct btrfs_trans_handle *trans; trans 1486 fs/btrfs/backref.c trans = btrfs_join_transaction_nostart(root); trans 1487 fs/btrfs/backref.c if (IS_ERR(trans)) { trans 1488 fs/btrfs/backref.c if (PTR_ERR(trans) != -ENOENT && PTR_ERR(trans) != -EROFS) { trans 1489 fs/btrfs/backref.c ret = PTR_ERR(trans); trans 1492 fs/btrfs/backref.c trans = NULL; trans 1500 fs/btrfs/backref.c ret = find_parent_nodes(trans, fs_info, bytenr, elem.seq, tmp, trans 1518 fs/btrfs/backref.c if (trans) { trans 1520 fs/btrfs/backref.c btrfs_end_transaction(trans); trans 1901 fs/btrfs/backref.c struct btrfs_trans_handle *trans = NULL; trans 1914 fs/btrfs/backref.c trans = btrfs_attach_transaction(fs_info->extent_root); trans 1915 fs/btrfs/backref.c if (IS_ERR(trans)) { trans 1916 fs/btrfs/backref.c if (PTR_ERR(trans) != -ENOENT && trans 1917 fs/btrfs/backref.c PTR_ERR(trans) != -EROFS) trans 1918 fs/btrfs/backref.c return PTR_ERR(trans); trans 1919 fs/btrfs/backref.c trans = NULL; trans 1923 fs/btrfs/backref.c if (trans) trans 1928 fs/btrfs/backref.c ret = btrfs_find_all_leafs(trans, fs_info, extent_item_objectid, trans 1936 fs/btrfs/backref.c ret = btrfs_find_all_roots_safe(trans, fs_info, ref_node->val, trans 1959 fs/btrfs/backref.c if (trans) { trans 1961 fs/btrfs/backref.c btrfs_end_transaction(trans); trans 43 fs/btrfs/backref.h int btrfs_find_all_roots(struct btrfs_trans_handle *trans, trans 859 fs/btrfs/block-group.c int btrfs_remove_block_group(struct btrfs_trans_handle *trans, trans 862 fs/btrfs/block-group.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 922 fs/btrfs/block-group.c mutex_lock(&trans->transaction->cache_write_mutex); trans 927 fs/btrfs/block-group.c spin_lock(&trans->transaction->dirty_bgs_lock); trans 933 fs/btrfs/block-group.c spin_unlock(&trans->transaction->dirty_bgs_lock); trans 934 fs/btrfs/block-group.c btrfs_wait_cache_io(trans, block_group, path); trans 936 fs/btrfs/block-group.c spin_lock(&trans->transaction->dirty_bgs_lock); trans 944 fs/btrfs/block-group.c spin_unlock(&trans->transaction->dirty_bgs_lock); trans 945 fs/btrfs/block-group.c mutex_unlock(&trans->transaction->cache_write_mutex); trans 948 fs/btrfs/block-group.c ret = btrfs_orphan_add(trans, BTRFS_I(inode)); trans 972 fs/btrfs/block-group.c ret = btrfs_search_slot(trans, tree_root, &key, path, -1, 1); trans 978 fs/btrfs/block-group.c ret = btrfs_del_item(trans, tree_root, path); trans 1038 fs/btrfs/block-group.c spin_lock(&trans->transaction->dirty_bgs_lock); trans 1041 fs/btrfs/block-group.c spin_unlock(&trans->transaction->dirty_bgs_lock); trans 1095 fs/btrfs/block-group.c ret = remove_block_group_free_space(trans, block_group); trans 1102 fs/btrfs/block-group.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); trans 1108 fs/btrfs/block-group.c ret = btrfs_del_item(trans, root, path); trans 1255 fs/btrfs/block-group.c struct btrfs_trans_handle *trans; trans 1313 fs/btrfs/block-group.c trans = btrfs_start_trans_remove_block_group(fs_info, trans 1315 fs/btrfs/block-group.c if (IS_ERR(trans)) { trans 1317 fs/btrfs/block-group.c ret = PTR_ERR(trans); trans 1381 fs/btrfs/block-group.c ret = btrfs_remove_chunk(trans, block_group->key.objectid); trans 1402 fs/btrfs/block-group.c &trans->transaction->deleted_bgs); trans 1407 fs/btrfs/block-group.c btrfs_end_transaction(trans); trans 1866 fs/btrfs/block-group.c void btrfs_create_pending_block_groups(struct btrfs_trans_handle *trans) trans 1868 fs/btrfs/block-group.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1875 fs/btrfs/block-group.c if (!trans->can_flush_pending_bgs) trans 1878 fs/btrfs/block-group.c while (!list_empty(&trans->new_bgs)) { trans 1879 fs/btrfs/block-group.c block_group = list_first_entry(&trans->new_bgs, trans 1890 fs/btrfs/block-group.c ret = btrfs_insert_item(trans, extent_root, &key, &item, trans 1893 fs/btrfs/block-group.c btrfs_abort_transaction(trans, ret); trans 1894 fs/btrfs/block-group.c ret = btrfs_finish_chunk_alloc(trans, key.objectid, key.offset); trans 1896 fs/btrfs/block-group.c btrfs_abort_transaction(trans, ret); trans 1897 fs/btrfs/block-group.c add_block_group_free_space(trans, block_group); trans 1903 fs/btrfs/block-group.c btrfs_trans_release_chunk_metadata(trans); trans 1906 fs/btrfs/block-group.c int btrfs_make_block_group(struct btrfs_trans_handle *trans, u64 bytes_used, trans 1909 fs/btrfs/block-group.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1913 fs/btrfs/block-group.c btrfs_set_log_full_commit(trans); trans 1974 fs/btrfs/block-group.c list_add_tail(&cache->bg_list, &trans->new_bgs); trans 1975 fs/btrfs/block-group.c trans->delayed_ref_updates++; trans 1976 fs/btrfs/block-group.c btrfs_update_delayed_refs_rsv(trans); trans 2034 fs/btrfs/block-group.c struct btrfs_trans_handle *trans; trans 2039 fs/btrfs/block-group.c trans = btrfs_join_transaction(fs_info->extent_root); trans 2040 fs/btrfs/block-group.c if (IS_ERR(trans)) trans 2041 fs/btrfs/block-group.c return PTR_ERR(trans); trans 2049 fs/btrfs/block-group.c if (test_bit(BTRFS_TRANS_DIRTY_BG_RUN, &trans->transaction->flags)) { trans 2050 fs/btrfs/block-group.c u64 transid = trans->transid; trans 2053 fs/btrfs/block-group.c btrfs_end_transaction(trans); trans 2067 fs/btrfs/block-group.c ret = btrfs_chunk_alloc(trans, alloc_flags, CHUNK_ALLOC_FORCE); trans 2083 fs/btrfs/block-group.c ret = btrfs_chunk_alloc(trans, alloc_flags, CHUNK_ALLOC_FORCE); trans 2091 fs/btrfs/block-group.c check_system_chunk(trans, alloc_flags); trans 2096 fs/btrfs/block-group.c btrfs_end_transaction(trans); trans 2120 fs/btrfs/block-group.c static int write_one_cache_group(struct btrfs_trans_handle *trans, trans 2124 fs/btrfs/block-group.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 2130 fs/btrfs/block-group.c ret = btrfs_search_slot(trans, extent_root, &cache->key, path, 0, 1); trans 2148 fs/btrfs/block-group.c struct btrfs_trans_handle *trans, trans 2172 fs/btrfs/block-group.c if (trans->aborted) trans 2189 fs/btrfs/block-group.c ret = create_free_space_inode(trans, block_group, path); trans 2201 fs/btrfs/block-group.c ret = btrfs_update_inode(trans, root, inode); trans 2213 fs/btrfs/block-group.c btrfs_abort_transaction(trans, ret); trans 2219 fs/btrfs/block-group.c if (block_group->cache_generation == trans->transid && trans 2231 fs/btrfs/block-group.c ret = btrfs_truncate_free_space_cache(trans, NULL, inode); trans 2255 fs/btrfs/block-group.c if (test_bit(BTRFS_TRANS_CACHE_ENOSPC, &trans->transaction->flags)) { trans 2277 fs/btrfs/block-group.c ret = btrfs_prealloc_file_range_trans(inode, trans, 0, 0, num_pages, trans 2291 fs/btrfs/block-group.c set_bit(BTRFS_TRANS_CACHE_ENOSPC, &trans->transaction->flags); trans 2300 fs/btrfs/block-group.c block_group->cache_generation = trans->transid; trans 2308 fs/btrfs/block-group.c int btrfs_setup_space_cache(struct btrfs_trans_handle *trans) trans 2310 fs/btrfs/block-group.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 2312 fs/btrfs/block-group.c struct btrfs_transaction *cur_trans = trans->transaction; trans 2327 fs/btrfs/block-group.c cache_save_setup(cache, trans, path); trans 2346 fs/btrfs/block-group.c int btrfs_start_dirty_block_groups(struct btrfs_trans_handle *trans) trans 2348 fs/btrfs/block-group.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 2350 fs/btrfs/block-group.c struct btrfs_transaction *cur_trans = trans->transaction; trans 2369 fs/btrfs/block-group.c btrfs_create_pending_block_groups(trans); trans 2382 fs/btrfs/block-group.c mutex_lock(&trans->transaction->cache_write_mutex); trans 2396 fs/btrfs/block-group.c btrfs_wait_cache_io(trans, cache, path); trans 2415 fs/btrfs/block-group.c cache_save_setup(cache, trans, path); trans 2419 fs/btrfs/block-group.c ret = btrfs_write_out_cache(trans, cache, path); trans 2439 fs/btrfs/block-group.c ret = write_one_cache_group(trans, path, cache); trans 2460 fs/btrfs/block-group.c btrfs_abort_transaction(trans, ret); trans 2478 fs/btrfs/block-group.c mutex_unlock(&trans->transaction->cache_write_mutex); trans 2479 fs/btrfs/block-group.c mutex_lock(&trans->transaction->cache_write_mutex); trans 2481 fs/btrfs/block-group.c mutex_unlock(&trans->transaction->cache_write_mutex); trans 2487 fs/btrfs/block-group.c ret = btrfs_run_delayed_refs(trans, 0); trans 2509 fs/btrfs/block-group.c int btrfs_write_dirty_block_groups(struct btrfs_trans_handle *trans) trans 2511 fs/btrfs/block-group.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 2513 fs/btrfs/block-group.c struct btrfs_transaction *cur_trans = trans->transaction; trans 2553 fs/btrfs/block-group.c btrfs_wait_cache_io(trans, cache, path); trans 2566 fs/btrfs/block-group.c cache_save_setup(cache, trans, path); trans 2569 fs/btrfs/block-group.c ret = btrfs_run_delayed_refs(trans, trans 2574 fs/btrfs/block-group.c ret = btrfs_write_out_cache(trans, cache, path); trans 2588 fs/btrfs/block-group.c ret = write_one_cache_group(trans, path, cache); trans 2605 fs/btrfs/block-group.c ret = write_one_cache_group(trans, path, cache); trans 2608 fs/btrfs/block-group.c btrfs_abort_transaction(trans, ret); trans 2627 fs/btrfs/block-group.c btrfs_wait_cache_io(trans, cache, path); trans 2635 fs/btrfs/block-group.c int btrfs_update_block_group(struct btrfs_trans_handle *trans, trans 2638 fs/btrfs/block-group.c struct btrfs_fs_info *info = trans->fs_info; trans 2714 fs/btrfs/block-group.c spin_lock(&trans->transaction->dirty_bgs_lock); trans 2717 fs/btrfs/block-group.c &trans->transaction->dirty_bgs); trans 2718 fs/btrfs/block-group.c trans->delayed_ref_updates++; trans 2721 fs/btrfs/block-group.c spin_unlock(&trans->transaction->dirty_bgs_lock); trans 2738 fs/btrfs/block-group.c btrfs_update_delayed_refs_rsv(trans); trans 2848 fs/btrfs/block-group.c int btrfs_force_chunk_alloc(struct btrfs_trans_handle *trans, u64 type) trans 2850 fs/btrfs/block-group.c u64 alloc_flags = btrfs_get_alloc_profile(trans->fs_info, type); trans 2852 fs/btrfs/block-group.c return btrfs_chunk_alloc(trans, alloc_flags, CHUNK_ALLOC_FORCE); trans 2864 fs/btrfs/block-group.c int btrfs_chunk_alloc(struct btrfs_trans_handle *trans, u64 flags, trans 2867 fs/btrfs/block-group.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 2874 fs/btrfs/block-group.c if (trans->allocating_chunk) trans 2918 fs/btrfs/block-group.c trans->allocating_chunk = true; trans 2943 fs/btrfs/block-group.c check_system_chunk(trans, flags); trans 2945 fs/btrfs/block-group.c ret = btrfs_alloc_chunk(trans, flags); trans 2946 fs/btrfs/block-group.c trans->allocating_chunk = false; trans 2978 fs/btrfs/block-group.c if (trans->chunk_bytes_reserved >= (u64)SZ_2M) trans 2979 fs/btrfs/block-group.c btrfs_create_pending_block_groups(trans); trans 3000 fs/btrfs/block-group.c void check_system_chunk(struct btrfs_trans_handle *trans, u64 type) trans 3002 fs/btrfs/block-group.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 3041 fs/btrfs/block-group.c ret = btrfs_alloc_chunk(trans, flags); trans 3049 fs/btrfs/block-group.c trans->chunk_bytes_reserved += thresh; trans 200 fs/btrfs/block-group.h int btrfs_remove_block_group(struct btrfs_trans_handle *trans, trans 205 fs/btrfs/block-group.h int btrfs_make_block_group(struct btrfs_trans_handle *trans, u64 bytes_used, trans 207 fs/btrfs/block-group.h void btrfs_create_pending_block_groups(struct btrfs_trans_handle *trans); trans 210 fs/btrfs/block-group.h int btrfs_start_dirty_block_groups(struct btrfs_trans_handle *trans); trans 211 fs/btrfs/block-group.h int btrfs_write_dirty_block_groups(struct btrfs_trans_handle *trans); trans 212 fs/btrfs/block-group.h int btrfs_setup_space_cache(struct btrfs_trans_handle *trans); trans 213 fs/btrfs/block-group.h int btrfs_update_block_group(struct btrfs_trans_handle *trans, trans 219 fs/btrfs/block-group.h int btrfs_chunk_alloc(struct btrfs_trans_handle *trans, u64 flags, trans 221 fs/btrfs/block-group.h int btrfs_force_chunk_alloc(struct btrfs_trans_handle *trans, u64 type); trans 222 fs/btrfs/block-group.h void check_system_chunk(struct btrfs_trans_handle *trans, const u64 type); trans 359 fs/btrfs/block-rsv.c const struct btrfs_trans_handle *trans, trans 366 fs/btrfs/block-rsv.c (root == fs_info->csum_root && trans->adding_csums) || trans 368 fs/btrfs/block-rsv.c block_rsv = trans->block_rsv; trans 379 fs/btrfs/block-rsv.c struct btrfs_block_rsv *btrfs_use_block_rsv(struct btrfs_trans_handle *trans, trans 389 fs/btrfs/block-rsv.c block_rsv = get_block_rsv(trans, root); trans 82 fs/btrfs/block-rsv.h struct btrfs_block_rsv *btrfs_use_block_rsv(struct btrfs_trans_handle *trans, trans 18 fs/btrfs/ctree.c static int split_node(struct btrfs_trans_handle *trans, struct btrfs_root trans 20 fs/btrfs/ctree.c static int split_leaf(struct btrfs_trans_handle *trans, struct btrfs_root *root, trans 23 fs/btrfs/ctree.c static int push_node_left(struct btrfs_trans_handle *trans, trans 26 fs/btrfs/ctree.c static int balance_node_right(struct btrfs_trans_handle *trans, trans 218 fs/btrfs/ctree.c int btrfs_copy_root(struct btrfs_trans_handle *trans, trans 230 fs/btrfs/ctree.c trans->transid != fs_info->running_transaction->transid); trans 232 fs/btrfs/ctree.c trans->transid != root->last_trans); trans 240 fs/btrfs/ctree.c cow = btrfs_alloc_tree_block(trans, root, 0, new_root_objectid, trans 247 fs/btrfs/ctree.c btrfs_set_header_generation(cow, trans->transid); trans 258 fs/btrfs/ctree.c WARN_ON(btrfs_header_generation(buf) > trans->transid); trans 260 fs/btrfs/ctree.c ret = btrfs_inc_ref(trans, root, cow, 1); trans 262 fs/btrfs/ctree.c ret = btrfs_inc_ref(trans, root, cow, 0); trans 884 fs/btrfs/ctree.c static noinline int update_ref_for_cow(struct btrfs_trans_handle *trans, trans 915 fs/btrfs/ctree.c ret = btrfs_lookup_extent_info(trans, fs_info, buf->start, trans 942 fs/btrfs/ctree.c ret = btrfs_inc_ref(trans, root, buf, 1); trans 948 fs/btrfs/ctree.c ret = btrfs_dec_ref(trans, root, buf, 0); trans 951 fs/btrfs/ctree.c ret = btrfs_inc_ref(trans, root, cow, 1); trans 960 fs/btrfs/ctree.c ret = btrfs_inc_ref(trans, root, cow, 1); trans 962 fs/btrfs/ctree.c ret = btrfs_inc_ref(trans, root, cow, 0); trans 969 fs/btrfs/ctree.c ret = btrfs_set_disk_extent_flags(trans, trans 980 fs/btrfs/ctree.c ret = btrfs_inc_ref(trans, root, cow, 1); trans 982 fs/btrfs/ctree.c ret = btrfs_inc_ref(trans, root, cow, 0); trans 985 fs/btrfs/ctree.c ret = btrfs_dec_ref(trans, root, buf, 1); trans 996 fs/btrfs/ctree.c struct btrfs_trans_handle *trans, trans 1027 fs/btrfs/ctree.c trans->can_flush_pending_bgs = false; trans 1029 fs/btrfs/ctree.c ret = btrfs_alloc_tree_block(trans, root, parent_start, trans 1032 fs/btrfs/ctree.c trans->can_flush_pending_bgs = true; trans 1049 fs/btrfs/ctree.c static noinline int __btrfs_cow_block(struct btrfs_trans_handle *trans, trans 1070 fs/btrfs/ctree.c trans->transid != fs_info->running_transaction->transid); trans 1072 fs/btrfs/ctree.c trans->transid != root->last_trans); trans 1084 fs/btrfs/ctree.c cow = alloc_tree_block_no_bg_flush(trans, root, parent_start, &disk_key, trans 1093 fs/btrfs/ctree.c btrfs_set_header_generation(cow, trans->transid); trans 1104 fs/btrfs/ctree.c ret = update_ref_for_cow(trans, root, buf, cow, &last_ref); trans 1106 fs/btrfs/ctree.c btrfs_abort_transaction(trans, ret); trans 1111 fs/btrfs/ctree.c ret = btrfs_reloc_cow_block(trans, root, buf, cow); trans 1113 fs/btrfs/ctree.c btrfs_abort_transaction(trans, ret); trans 1129 fs/btrfs/ctree.c btrfs_free_tree_block(trans, root, buf, parent_start, trans 1134 fs/btrfs/ctree.c WARN_ON(trans->transid != btrfs_header_generation(parent)); trans 1140 fs/btrfs/ctree.c trans->transid); trans 1145 fs/btrfs/ctree.c btrfs_abort_transaction(trans, ret); trans 1149 fs/btrfs/ctree.c btrfs_free_tree_block(trans, root, buf, parent_start, trans 1449 fs/btrfs/ctree.c static inline int should_cow_block(struct btrfs_trans_handle *trans, trans 1470 fs/btrfs/ctree.c if (btrfs_header_generation(buf) == trans->transid && trans 1484 fs/btrfs/ctree.c noinline int btrfs_cow_block(struct btrfs_trans_handle *trans, trans 1497 fs/btrfs/ctree.c if (trans->transaction != fs_info->running_transaction) trans 1499 fs/btrfs/ctree.c trans->transid, trans 1502 fs/btrfs/ctree.c if (trans->transid != fs_info->generation) trans 1504 fs/btrfs/ctree.c trans->transid, fs_info->generation); trans 1506 fs/btrfs/ctree.c if (!should_cow_block(trans, root, buf)) { trans 1507 fs/btrfs/ctree.c trans->dirty = true; trans 1524 fs/btrfs/ctree.c btrfs_qgroup_trace_subtree_after_cow(trans, root, buf); trans 1525 fs/btrfs/ctree.c ret = __btrfs_cow_block(trans, root, buf, parent, trans 1584 fs/btrfs/ctree.c int btrfs_realloc_node(struct btrfs_trans_handle *trans, trans 1608 fs/btrfs/ctree.c WARN_ON(trans->transaction != fs_info->running_transaction); trans 1609 fs/btrfs/ctree.c WARN_ON(trans->transid != fs_info->generation); trans 1678 fs/btrfs/ctree.c err = __btrfs_cow_block(trans, root, cur, parent, i, trans 1842 fs/btrfs/ctree.c static noinline int balance_level(struct btrfs_trans_handle *trans, trans 1863 fs/btrfs/ctree.c WARN_ON(btrfs_header_generation(mid) != trans->transid); trans 1892 fs/btrfs/ctree.c ret = btrfs_cow_block(trans, root, child, mid, 0, &child); trans 1914 fs/btrfs/ctree.c btrfs_free_tree_block(trans, root, mid, 0, 1); trans 1930 fs/btrfs/ctree.c wret = btrfs_cow_block(trans, root, left, trans 1945 fs/btrfs/ctree.c wret = btrfs_cow_block(trans, root, right, trans 1956 fs/btrfs/ctree.c wret = push_node_left(trans, left, mid, 1); trans 1965 fs/btrfs/ctree.c wret = push_node_left(trans, mid, right, 1); trans 1973 fs/btrfs/ctree.c btrfs_free_tree_block(trans, root, right, 0, 1); trans 2001 fs/btrfs/ctree.c wret = balance_node_right(trans, mid, left); trans 2007 fs/btrfs/ctree.c wret = push_node_left(trans, left, mid, 1); trans 2018 fs/btrfs/ctree.c btrfs_free_tree_block(trans, root, mid, 0, 1); trans 2070 fs/btrfs/ctree.c static noinline int push_nodes_for_insert(struct btrfs_trans_handle *trans, trans 2088 fs/btrfs/ctree.c WARN_ON(btrfs_header_generation(mid) != trans->transid); trans 2113 fs/btrfs/ctree.c ret = btrfs_cow_block(trans, root, left, parent, trans 2118 fs/btrfs/ctree.c wret = push_node_left(trans, left, mid, 0); trans 2167 fs/btrfs/ctree.c ret = btrfs_cow_block(trans, root, right, trans 2173 fs/btrfs/ctree.c wret = balance_node_right(trans, right, mid); trans 2511 fs/btrfs/ctree.c setup_nodes_for_search(struct btrfs_trans_handle *trans, trans 2531 fs/btrfs/ctree.c sret = split_node(trans, root, p, level); trans 2551 fs/btrfs/ctree.c sret = balance_level(trans, root, p, level); trans 2730 fs/btrfs/ctree.c int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root *root, trans 2798 fs/btrfs/ctree.c if (!should_cow_block(trans, root, b)) { trans 2799 fs/btrfs/ctree.c trans->dirty = true; trans 2818 fs/btrfs/ctree.c err = btrfs_cow_block(trans, root, b, NULL, 0, trans 2821 fs/btrfs/ctree.c err = btrfs_cow_block(trans, root, b, trans 2867 fs/btrfs/ctree.c err = setup_nodes_for_search(trans, root, p, b, level, trans 2937 fs/btrfs/ctree.c err = split_leaf(trans, root, key, trans 3246 fs/btrfs/ctree.c static int push_node_left(struct btrfs_trans_handle *trans, trans 3250 fs/btrfs/ctree.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 3259 fs/btrfs/ctree.c WARN_ON(btrfs_header_generation(src) != trans->transid); trans 3260 fs/btrfs/ctree.c WARN_ON(btrfs_header_generation(dst) != trans->transid); trans 3285 fs/btrfs/ctree.c btrfs_abort_transaction(trans, ret); trans 3320 fs/btrfs/ctree.c static int balance_node_right(struct btrfs_trans_handle *trans, trans 3324 fs/btrfs/ctree.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 3331 fs/btrfs/ctree.c WARN_ON(btrfs_header_generation(src) != trans->transid); trans 3332 fs/btrfs/ctree.c WARN_ON(btrfs_header_generation(dst) != trans->transid); trans 3361 fs/btrfs/ctree.c btrfs_abort_transaction(trans, ret); trans 3385 fs/btrfs/ctree.c static noinline int insert_new_root(struct btrfs_trans_handle *trans, trans 3406 fs/btrfs/ctree.c c = alloc_tree_block_no_bg_flush(trans, root, 0, &lower_key, level, trans 3417 fs/btrfs/ctree.c WARN_ON(lower_gen != trans->transid); trans 3446 fs/btrfs/ctree.c static void insert_ptr(struct btrfs_trans_handle *trans, trans 3460 fs/btrfs/ctree.c BUG_ON(nritems == BTRFS_NODEPTRS_PER_BLOCK(trans->fs_info)); trans 3479 fs/btrfs/ctree.c WARN_ON(trans->transid == 0); trans 3480 fs/btrfs/ctree.c btrfs_set_node_ptr_generation(lower, slot, trans->transid); trans 3494 fs/btrfs/ctree.c static noinline int split_node(struct btrfs_trans_handle *trans, trans 3507 fs/btrfs/ctree.c WARN_ON(btrfs_header_generation(c) != trans->transid); trans 3519 fs/btrfs/ctree.c ret = insert_new_root(trans, root, path, level + 1); trans 3523 fs/btrfs/ctree.c ret = push_nodes_for_insert(trans, root, path, level); trans 3536 fs/btrfs/ctree.c split = alloc_tree_block_no_bg_flush(trans, root, 0, &disk_key, level, trans 3546 fs/btrfs/ctree.c btrfs_abort_transaction(trans, ret); trans 3560 fs/btrfs/ctree.c insert_ptr(trans, path, &disk_key, split->start, trans 3777 fs/btrfs/ctree.c static int push_leaf_right(struct btrfs_trans_handle *trans, struct btrfs_root trans 3816 fs/btrfs/ctree.c ret = btrfs_cow_block(trans, root, right, upper, trans 4012 fs/btrfs/ctree.c static int push_leaf_left(struct btrfs_trans_handle *trans, struct btrfs_root trans 4053 fs/btrfs/ctree.c ret = btrfs_cow_block(trans, root, left, trans 4081 fs/btrfs/ctree.c static noinline void copy_for_split(struct btrfs_trans_handle *trans, trans 4087 fs/btrfs/ctree.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 4121 fs/btrfs/ctree.c insert_ptr(trans, path, &disk_key, right->start, path->slots[1] + 1, 1); trans 4151 fs/btrfs/ctree.c static noinline int push_for_double_split(struct btrfs_trans_handle *trans, trans 4170 fs/btrfs/ctree.c ret = push_leaf_right(trans, root, path, 1, space_needed, 0, slot); trans 4193 fs/btrfs/ctree.c ret = push_leaf_left(trans, root, path, 1, space_needed, 0, slot); trans 4211 fs/btrfs/ctree.c static noinline int split_leaf(struct btrfs_trans_handle *trans, trans 4243 fs/btrfs/ctree.c wret = push_leaf_right(trans, root, path, space_needed, trans 4251 fs/btrfs/ctree.c wret = push_leaf_left(trans, root, path, space_needed, trans 4264 fs/btrfs/ctree.c ret = insert_new_root(trans, root, path, 1); trans 4317 fs/btrfs/ctree.c right = alloc_tree_block_no_bg_flush(trans, root, 0, &disk_key, 0, trans 4327 fs/btrfs/ctree.c insert_ptr(trans, path, &disk_key, trans 4336 fs/btrfs/ctree.c insert_ptr(trans, path, &disk_key, trans 4353 fs/btrfs/ctree.c copy_for_split(trans, path, l, right, slot, mid, nritems); trans 4364 fs/btrfs/ctree.c push_for_double_split(trans, root, path, data_size); trans 4371 fs/btrfs/ctree.c static noinline int setup_leaf_for_split(struct btrfs_trans_handle *trans, trans 4401 fs/btrfs/ctree.c ret = btrfs_search_slot(trans, root, &key, path, 0, 1); trans 4426 fs/btrfs/ctree.c ret = split_leaf(trans, root, &key, path, ins_len, 1); trans 4522 fs/btrfs/ctree.c int btrfs_split_item(struct btrfs_trans_handle *trans, trans 4529 fs/btrfs/ctree.c ret = setup_leaf_for_split(trans, root, path, trans 4546 fs/btrfs/ctree.c int btrfs_duplicate_item(struct btrfs_trans_handle *trans, trans 4557 fs/btrfs/ctree.c ret = setup_leaf_for_split(trans, root, path, trans 4836 fs/btrfs/ctree.c int btrfs_insert_empty_items(struct btrfs_trans_handle *trans, trans 4852 fs/btrfs/ctree.c ret = btrfs_search_slot(trans, root, cpu_key, path, total_size, 1); trans 4870 fs/btrfs/ctree.c int btrfs_insert_item(struct btrfs_trans_handle *trans, struct btrfs_root *root, trans 4882 fs/btrfs/ctree.c ret = btrfs_insert_empty_item(trans, root, path, cpu_key, data_size); trans 4949 fs/btrfs/ctree.c static noinline void btrfs_del_leaf(struct btrfs_trans_handle *trans, trans 4954 fs/btrfs/ctree.c WARN_ON(btrfs_header_generation(leaf) != trans->transid); trans 4966 fs/btrfs/ctree.c btrfs_free_tree_block(trans, root, leaf, 0, 1); trans 4973 fs/btrfs/ctree.c int btrfs_del_items(struct btrfs_trans_handle *trans, struct btrfs_root *root, trans 5028 fs/btrfs/ctree.c btrfs_del_leaf(trans, root, path, leaf); trans 5049 fs/btrfs/ctree.c wret = push_leaf_left(trans, root, path, 1, 1, trans 5056 fs/btrfs/ctree.c wret = push_leaf_right(trans, root, path, 1, trans 5064 fs/btrfs/ctree.c btrfs_del_leaf(trans, root, path, leaf); trans 2399 fs/btrfs/ctree.h int btrfs_run_delayed_refs(struct btrfs_trans_handle *trans, trans 2405 fs/btrfs/ctree.h int btrfs_lookup_extent_info(struct btrfs_trans_handle *trans, trans 2415 fs/btrfs/ctree.h struct extent_buffer *btrfs_alloc_tree_block(struct btrfs_trans_handle *trans, trans 2421 fs/btrfs/ctree.h void btrfs_free_tree_block(struct btrfs_trans_handle *trans, trans 2425 fs/btrfs/ctree.h int btrfs_alloc_reserved_file_extent(struct btrfs_trans_handle *trans, trans 2429 fs/btrfs/ctree.h int btrfs_alloc_logged_file_extent(struct btrfs_trans_handle *trans, trans 2435 fs/btrfs/ctree.h int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root, trans 2437 fs/btrfs/ctree.h int btrfs_dec_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root, trans 2439 fs/btrfs/ctree.h int btrfs_set_disk_extent_flags(struct btrfs_trans_handle *trans, trans 2442 fs/btrfs/ctree.h int btrfs_free_extent(struct btrfs_trans_handle *trans, struct btrfs_ref *ref); trans 2449 fs/btrfs/ctree.h int btrfs_finish_extent_commit(struct btrfs_trans_handle *trans); trans 2450 fs/btrfs/ctree.h int btrfs_inc_extent_ref(struct btrfs_trans_handle *trans, trans 2499 fs/btrfs/ctree.h int btrfs_delayed_refs_qgroup_accounting(struct btrfs_trans_handle *trans, trans 2529 fs/btrfs/ctree.h int btrfs_cow_block(struct btrfs_trans_handle *trans, trans 2533 fs/btrfs/ctree.h int btrfs_copy_root(struct btrfs_trans_handle *trans, trans 2541 fs/btrfs/ctree.h int btrfs_split_item(struct btrfs_trans_handle *trans, trans 2546 fs/btrfs/ctree.h int btrfs_duplicate_item(struct btrfs_trans_handle *trans, trans 2552 fs/btrfs/ctree.h int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root *root, trans 2561 fs/btrfs/ctree.h int btrfs_realloc_node(struct btrfs_trans_handle *trans, trans 2571 fs/btrfs/ctree.h int btrfs_del_items(struct btrfs_trans_handle *trans, struct btrfs_root *root, trans 2573 fs/btrfs/ctree.h static inline int btrfs_del_item(struct btrfs_trans_handle *trans, trans 2577 fs/btrfs/ctree.h return btrfs_del_items(trans, root, path, path->slots[0], 1); trans 2583 fs/btrfs/ctree.h int btrfs_insert_item(struct btrfs_trans_handle *trans, struct btrfs_root *root, trans 2585 fs/btrfs/ctree.h int btrfs_insert_empty_items(struct btrfs_trans_handle *trans, trans 2591 fs/btrfs/ctree.h static inline int btrfs_insert_empty_item(struct btrfs_trans_handle *trans, trans 2597 fs/btrfs/ctree.h return btrfs_insert_empty_items(trans, root, path, key, &data_size, 1); trans 2620 fs/btrfs/ctree.h int btrfs_drop_subtree(struct btrfs_trans_handle *trans, trans 2672 fs/btrfs/ctree.h int btrfs_add_root_ref(struct btrfs_trans_handle *trans, u64 root_id, trans 2675 fs/btrfs/ctree.h int btrfs_del_root_ref(struct btrfs_trans_handle *trans, u64 root_id, trans 2678 fs/btrfs/ctree.h int btrfs_del_root(struct btrfs_trans_handle *trans, trans 2680 fs/btrfs/ctree.h int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, trans 2683 fs/btrfs/ctree.h int __must_check btrfs_update_root(struct btrfs_trans_handle *trans, trans 2694 fs/btrfs/ctree.h void btrfs_update_root_times(struct btrfs_trans_handle *trans, trans 2698 fs/btrfs/ctree.h int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, u8 *uuid, u8 type, trans 2700 fs/btrfs/ctree.h int btrfs_uuid_tree_remove(struct btrfs_trans_handle *trans, u8 *uuid, u8 type, trans 2709 fs/btrfs/ctree.h int btrfs_insert_dir_item(struct btrfs_trans_handle *trans, const char *name, trans 2712 fs/btrfs/ctree.h struct btrfs_dir_item *btrfs_lookup_dir_item(struct btrfs_trans_handle *trans, trans 2718 fs/btrfs/ctree.h btrfs_lookup_dir_index_item(struct btrfs_trans_handle *trans, trans 2727 fs/btrfs/ctree.h int btrfs_delete_one_dir_name(struct btrfs_trans_handle *trans, trans 2731 fs/btrfs/ctree.h int btrfs_insert_xattr_item(struct btrfs_trans_handle *trans, trans 2736 fs/btrfs/ctree.h struct btrfs_dir_item *btrfs_lookup_xattr(struct btrfs_trans_handle *trans, trans 2747 fs/btrfs/ctree.h int btrfs_insert_orphan_item(struct btrfs_trans_handle *trans, trans 2749 fs/btrfs/ctree.h int btrfs_del_orphan_item(struct btrfs_trans_handle *trans, trans 2754 fs/btrfs/ctree.h int btrfs_insert_inode_ref(struct btrfs_trans_handle *trans, trans 2758 fs/btrfs/ctree.h int btrfs_del_inode_ref(struct btrfs_trans_handle *trans, trans 2762 fs/btrfs/ctree.h int btrfs_insert_empty_inode(struct btrfs_trans_handle *trans, trans 2765 fs/btrfs/ctree.h int btrfs_lookup_inode(struct btrfs_trans_handle *trans, struct btrfs_root trans 2770 fs/btrfs/ctree.h btrfs_lookup_inode_extref(struct btrfs_trans_handle *trans, trans 2785 fs/btrfs/ctree.h int btrfs_del_csums(struct btrfs_trans_handle *trans, trans 2791 fs/btrfs/ctree.h int btrfs_insert_file_extent(struct btrfs_trans_handle *trans, trans 2797 fs/btrfs/ctree.h int btrfs_lookup_file_extent(struct btrfs_trans_handle *trans, trans 2801 fs/btrfs/ctree.h int btrfs_csum_file_blocks(struct btrfs_trans_handle *trans, trans 2825 fs/btrfs/ctree.h int btrfs_unlink_inode(struct btrfs_trans_handle *trans, trans 2829 fs/btrfs/ctree.h int btrfs_add_link(struct btrfs_trans_handle *trans, trans 2835 fs/btrfs/ctree.h int btrfs_truncate_inode_items(struct btrfs_trans_handle *trans, trans 2845 fs/btrfs/ctree.h int btrfs_create_subvol_root(struct btrfs_trans_handle *trans, trans 2878 fs/btrfs/ctree.h int btrfs_update_inode(struct btrfs_trans_handle *trans, trans 2881 fs/btrfs/ctree.h int btrfs_update_inode_fallback(struct btrfs_trans_handle *trans, trans 2883 fs/btrfs/ctree.h int btrfs_orphan_add(struct btrfs_trans_handle *trans, trans 2894 fs/btrfs/ctree.h struct btrfs_trans_handle *trans, int mode, trans 2922 fs/btrfs/ctree.h int btrfs_add_inode_defrag(struct btrfs_trans_handle *trans, trans 2930 fs/btrfs/ctree.h int __btrfs_drop_extents(struct btrfs_trans_handle *trans, trans 2937 fs/btrfs/ctree.h int btrfs_drop_extents(struct btrfs_trans_handle *trans, trans 2944 fs/btrfs/ctree.h int btrfs_mark_extent_written(struct btrfs_trans_handle *trans, trans 2956 fs/btrfs/ctree.h int btrfs_defrag_leaves(struct btrfs_trans_handle *trans, trans 3151 fs/btrfs/ctree.h void __btrfs_abort_transaction(struct btrfs_trans_handle *trans, trans 3159 fs/btrfs/ctree.h #define btrfs_abort_transaction(trans, errno) \ trans 3163 fs/btrfs/ctree.h &((trans)->fs_info->fs_state))) { \ trans 3169 fs/btrfs/ctree.h btrfs_debug((trans)->fs_info, \ trans 3174 fs/btrfs/ctree.h __btrfs_abort_transaction((trans), __func__, \ trans 3329 fs/btrfs/ctree.h int btrfs_init_acl(struct btrfs_trans_handle *trans, trans 3334 fs/btrfs/ctree.h static inline int btrfs_init_acl(struct btrfs_trans_handle *trans, trans 3343 fs/btrfs/ctree.h int btrfs_init_reloc_root(struct btrfs_trans_handle *trans, trans 3345 fs/btrfs/ctree.h int btrfs_update_reloc_root(struct btrfs_trans_handle *trans, trans 3349 fs/btrfs/ctree.h int btrfs_reloc_cow_block(struct btrfs_trans_handle *trans, trans 3354 fs/btrfs/ctree.h int btrfs_reloc_post_snapshot(struct btrfs_trans_handle *trans, trans 36 fs/btrfs/delalloc-space.c struct btrfs_trans_handle *trans; trans 59 fs/btrfs/delalloc-space.c trans = btrfs_join_transaction(root); trans 60 fs/btrfs/delalloc-space.c if (IS_ERR(trans)) trans 61 fs/btrfs/delalloc-space.c return PTR_ERR(trans); trans 63 fs/btrfs/delalloc-space.c ret = btrfs_chunk_alloc(trans, alloc_target, trans 65 fs/btrfs/delalloc-space.c btrfs_end_transaction(trans); trans 100 fs/btrfs/delalloc-space.c trans = btrfs_join_transaction(root); trans 101 fs/btrfs/delalloc-space.c if (IS_ERR(trans)) trans 102 fs/btrfs/delalloc-space.c return PTR_ERR(trans); trans 105 fs/btrfs/delalloc-space.c &trans->transaction->flags) || trans 107 fs/btrfs/delalloc-space.c ret = btrfs_commit_transaction(trans); trans 123 fs/btrfs/delalloc-space.c btrfs_end_transaction(trans); trans 547 fs/btrfs/delayed-inode.c static int btrfs_delayed_item_reserve_metadata(struct btrfs_trans_handle *trans, trans 557 fs/btrfs/delayed-inode.c if (!trans->bytes_reserved) trans 560 fs/btrfs/delayed-inode.c src_rsv = trans->block_rsv; trans 603 fs/btrfs/delayed-inode.c struct btrfs_trans_handle *trans, trans 614 fs/btrfs/delayed-inode.c src_rsv = trans->block_rsv; trans 628 fs/btrfs/delayed-inode.c if (!src_rsv || (!trans->bytes_reserved && trans 802 fs/btrfs/delayed-inode.c static int btrfs_insert_delayed_item(struct btrfs_trans_handle *trans, trans 813 fs/btrfs/delayed-inode.c ret = btrfs_insert_empty_item(trans, root, path, &delayed_item->key, trans 835 fs/btrfs/delayed-inode.c static int btrfs_insert_delayed_items(struct btrfs_trans_handle *trans, trans 849 fs/btrfs/delayed-inode.c ret = btrfs_insert_delayed_item(trans, root, path, curr); trans 874 fs/btrfs/delayed-inode.c static int btrfs_batch_delete_items(struct btrfs_trans_handle *trans, trans 923 fs/btrfs/delayed-inode.c ret = btrfs_del_items(trans, root, path, path->slots[0], nitems); trans 937 fs/btrfs/delayed-inode.c static int btrfs_delete_delayed_items(struct btrfs_trans_handle *trans, trans 953 fs/btrfs/delayed-inode.c ret = btrfs_search_slot(trans, root, &curr->key, path, -1, 1); trans 974 fs/btrfs/delayed-inode.c btrfs_batch_delete_items(trans, root, path, curr); trans 1012 fs/btrfs/delayed-inode.c static int __btrfs_update_delayed_inode(struct btrfs_trans_handle *trans, trans 1035 fs/btrfs/delayed-inode.c ret = btrfs_lookup_inode(trans, root, path, &key, mod); trans 1071 fs/btrfs/delayed-inode.c btrfs_del_item(trans, root, path); trans 1089 fs/btrfs/delayed-inode.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); trans 1101 fs/btrfs/delayed-inode.c static inline int btrfs_update_delayed_inode(struct btrfs_trans_handle *trans, trans 1114 fs/btrfs/delayed-inode.c ret = __btrfs_update_delayed_inode(trans, root, path, node); trans 1120 fs/btrfs/delayed-inode.c __btrfs_commit_inode_delayed_items(struct btrfs_trans_handle *trans, trans 1126 fs/btrfs/delayed-inode.c ret = btrfs_insert_delayed_items(trans, path, node->root, node); trans 1130 fs/btrfs/delayed-inode.c ret = btrfs_delete_delayed_items(trans, path, node->root, node); trans 1134 fs/btrfs/delayed-inode.c ret = btrfs_update_delayed_inode(trans, node->root, path, node); trans 1144 fs/btrfs/delayed-inode.c static int __btrfs_run_delayed_items(struct btrfs_trans_handle *trans, int nr) trans 1146 fs/btrfs/delayed-inode.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1154 fs/btrfs/delayed-inode.c if (trans->aborted) trans 1162 fs/btrfs/delayed-inode.c block_rsv = trans->block_rsv; trans 1163 fs/btrfs/delayed-inode.c trans->block_rsv = &fs_info->delayed_block_rsv; trans 1169 fs/btrfs/delayed-inode.c ret = __btrfs_commit_inode_delayed_items(trans, path, trans 1174 fs/btrfs/delayed-inode.c btrfs_abort_transaction(trans, ret); trans 1186 fs/btrfs/delayed-inode.c trans->block_rsv = block_rsv; trans 1191 fs/btrfs/delayed-inode.c int btrfs_run_delayed_items(struct btrfs_trans_handle *trans) trans 1193 fs/btrfs/delayed-inode.c return __btrfs_run_delayed_items(trans, -1); trans 1196 fs/btrfs/delayed-inode.c int btrfs_run_delayed_items_nr(struct btrfs_trans_handle *trans, int nr) trans 1198 fs/btrfs/delayed-inode.c return __btrfs_run_delayed_items(trans, nr); trans 1201 fs/btrfs/delayed-inode.c int btrfs_commit_inode_delayed_items(struct btrfs_trans_handle *trans, trans 1227 fs/btrfs/delayed-inode.c block_rsv = trans->block_rsv; trans 1228 fs/btrfs/delayed-inode.c trans->block_rsv = &delayed_node->root->fs_info->delayed_block_rsv; trans 1230 fs/btrfs/delayed-inode.c ret = __btrfs_commit_inode_delayed_items(trans, path, delayed_node); trans 1234 fs/btrfs/delayed-inode.c trans->block_rsv = block_rsv; trans 1242 fs/btrfs/delayed-inode.c struct btrfs_trans_handle *trans; trans 1259 fs/btrfs/delayed-inode.c trans = btrfs_join_transaction(delayed_node->root); trans 1260 fs/btrfs/delayed-inode.c if (IS_ERR(trans)) { trans 1261 fs/btrfs/delayed-inode.c ret = PTR_ERR(trans); trans 1272 fs/btrfs/delayed-inode.c block_rsv = trans->block_rsv; trans 1273 fs/btrfs/delayed-inode.c trans->block_rsv = &fs_info->delayed_block_rsv; trans 1277 fs/btrfs/delayed-inode.c ret = __btrfs_update_delayed_inode(trans, delayed_node->root, trans 1284 fs/btrfs/delayed-inode.c trans->block_rsv = block_rsv; trans 1286 fs/btrfs/delayed-inode.c btrfs_end_transaction(trans); trans 1316 fs/btrfs/delayed-inode.c struct btrfs_trans_handle *trans; trans 1342 fs/btrfs/delayed-inode.c trans = btrfs_join_transaction(root); trans 1343 fs/btrfs/delayed-inode.c if (IS_ERR(trans)) { trans 1350 fs/btrfs/delayed-inode.c block_rsv = trans->block_rsv; trans 1351 fs/btrfs/delayed-inode.c trans->block_rsv = &root->fs_info->delayed_block_rsv; trans 1353 fs/btrfs/delayed-inode.c __btrfs_commit_inode_delayed_items(trans, path, delayed_node); trans 1355 fs/btrfs/delayed-inode.c trans->block_rsv = block_rsv; trans 1356 fs/btrfs/delayed-inode.c btrfs_end_transaction(trans); trans 1436 fs/btrfs/delayed-inode.c int btrfs_insert_delayed_dir_index(struct btrfs_trans_handle *trans, trans 1463 fs/btrfs/delayed-inode.c btrfs_set_stack_dir_transid(dir_item, trans->transid); trans 1469 fs/btrfs/delayed-inode.c ret = btrfs_delayed_item_reserve_metadata(trans, dir->root, delayed_item); trans 1479 fs/btrfs/delayed-inode.c btrfs_err(trans->fs_info, trans 1511 fs/btrfs/delayed-inode.c int btrfs_delete_delayed_dir_index(struct btrfs_trans_handle *trans, trans 1527 fs/btrfs/delayed-inode.c ret = btrfs_delete_delayed_insertion_item(trans->fs_info, node, trans 1540 fs/btrfs/delayed-inode.c ret = btrfs_delayed_item_reserve_metadata(trans, dir->root, item); trans 1546 fs/btrfs/delayed-inode.c btrfs_err(trans->fs_info, trans 1555 fs/btrfs/delayed-inode.c btrfs_err(trans->fs_info, trans 1733 fs/btrfs/delayed-inode.c static void fill_stack_inode_item(struct btrfs_trans_handle *trans, trans 1747 fs/btrfs/delayed-inode.c btrfs_set_stack_inode_transid(inode_item, trans->transid); trans 1828 fs/btrfs/delayed-inode.c int btrfs_delayed_update_inode(struct btrfs_trans_handle *trans, trans 1840 fs/btrfs/delayed-inode.c fill_stack_inode_item(trans, &delayed_node->inode_item, inode); trans 1844 fs/btrfs/delayed-inode.c ret = btrfs_delayed_inode_reserve_metadata(trans, root, BTRFS_I(inode), trans 1849 fs/btrfs/delayed-inode.c fill_stack_inode_item(trans, &delayed_node->inode_item, inode); trans 88 fs/btrfs/delayed-inode.h int btrfs_insert_delayed_dir_index(struct btrfs_trans_handle *trans, trans 94 fs/btrfs/delayed-inode.h int btrfs_delete_delayed_dir_index(struct btrfs_trans_handle *trans, trans 99 fs/btrfs/delayed-inode.h int btrfs_run_delayed_items(struct btrfs_trans_handle *trans); trans 100 fs/btrfs/delayed-inode.h int btrfs_run_delayed_items_nr(struct btrfs_trans_handle *trans, int nr); trans 104 fs/btrfs/delayed-inode.h int btrfs_commit_inode_delayed_items(struct btrfs_trans_handle *trans, trans 112 fs/btrfs/delayed-inode.h int btrfs_delayed_update_inode(struct btrfs_trans_handle *trans, trans 53 fs/btrfs/delayed-ref.c int btrfs_should_throttle_delayed_refs(struct btrfs_trans_handle *trans) trans 56 fs/btrfs/delayed-ref.c atomic_read(&trans->transaction->delayed_refs.num_entries); trans 61 fs/btrfs/delayed-ref.c avg_runtime = trans->fs_info->avg_delayed_ref_runtime; trans 68 fs/btrfs/delayed-ref.c return btrfs_check_space_for_delayed_refs(trans->fs_info); trans 99 fs/btrfs/delayed-ref.c void btrfs_update_delayed_refs_rsv(struct btrfs_trans_handle *trans) trans 101 fs/btrfs/delayed-ref.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 105 fs/btrfs/delayed-ref.c if (!trans->delayed_ref_updates) trans 109 fs/btrfs/delayed-ref.c trans->delayed_ref_updates); trans 114 fs/btrfs/delayed-ref.c trans->delayed_ref_updates = 0; trans 415 fs/btrfs/delayed-ref.c static inline void drop_delayed_ref(struct btrfs_trans_handle *trans, trans 430 fs/btrfs/delayed-ref.c static bool merge_ref(struct btrfs_trans_handle *trans, trans 460 fs/btrfs/delayed-ref.c drop_delayed_ref(trans, delayed_refs, head, next); trans 463 fs/btrfs/delayed-ref.c drop_delayed_ref(trans, delayed_refs, head, ref); trans 477 fs/btrfs/delayed-ref.c void btrfs_merge_delayed_refs(struct btrfs_trans_handle *trans, trans 481 fs/btrfs/delayed-ref.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 511 fs/btrfs/delayed-ref.c if (merge_ref(trans, delayed_refs, head, ref, seq)) trans 595 fs/btrfs/delayed-ref.c static int insert_delayed_ref(struct btrfs_trans_handle *trans, trans 635 fs/btrfs/delayed-ref.c drop_delayed_ref(trans, root, href, exist); trans 650 fs/btrfs/delayed-ref.c static noinline void update_existing_head_ref(struct btrfs_trans_handle *trans, trans 656 fs/btrfs/delayed-ref.c &trans->transaction->delayed_refs; trans 657 fs/btrfs/delayed-ref.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 725 fs/btrfs/delayed-ref.c trans->delayed_ref_updates += csum_leaves; trans 799 fs/btrfs/delayed-ref.c add_delayed_ref_head(struct btrfs_trans_handle *trans, trans 809 fs/btrfs/delayed-ref.c delayed_refs = &trans->transaction->delayed_refs; trans 813 fs/btrfs/delayed-ref.c if (btrfs_qgroup_trace_extent_nolock(trans->fs_info, trans 820 fs/btrfs/delayed-ref.c trace_add_delayed_ref_head(trans->fs_info, head_ref, action); trans 825 fs/btrfs/delayed-ref.c update_existing_head_ref(trans, existing, head_ref, trans 838 fs/btrfs/delayed-ref.c trans->delayed_ref_updates += trans 839 fs/btrfs/delayed-ref.c btrfs_csum_bytes_to_leaves(trans->fs_info, trans 845 fs/btrfs/delayed-ref.c trans->delayed_ref_updates++; trans 911 fs/btrfs/delayed-ref.c int btrfs_add_delayed_tree_ref(struct btrfs_trans_handle *trans, trans 916 fs/btrfs/delayed-ref.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 973 fs/btrfs/delayed-ref.c delayed_refs = &trans->transaction->delayed_refs; trans 980 fs/btrfs/delayed-ref.c head_ref = add_delayed_ref_head(trans, head_ref, record, trans 984 fs/btrfs/delayed-ref.c ret = insert_delayed_ref(trans, delayed_refs, head_ref, &ref->node); trans 991 fs/btrfs/delayed-ref.c btrfs_update_delayed_refs_rsv(trans); trans 1008 fs/btrfs/delayed-ref.c int btrfs_add_delayed_data_ref(struct btrfs_trans_handle *trans, trans 1013 fs/btrfs/delayed-ref.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1069 fs/btrfs/delayed-ref.c delayed_refs = &trans->transaction->delayed_refs; trans 1076 fs/btrfs/delayed-ref.c head_ref = add_delayed_ref_head(trans, head_ref, record, trans 1080 fs/btrfs/delayed-ref.c ret = insert_delayed_ref(trans, delayed_refs, head_ref, &ref->node); trans 1087 fs/btrfs/delayed-ref.c btrfs_update_delayed_refs_rsv(trans); trans 1089 fs/btrfs/delayed-ref.c trace_add_delayed_data_ref(trans->fs_info, &ref->node, ref, trans 1101 fs/btrfs/delayed-ref.c int btrfs_add_delayed_extent_op(struct btrfs_trans_handle *trans, trans 1117 fs/btrfs/delayed-ref.c delayed_refs = &trans->transaction->delayed_refs; trans 1120 fs/btrfs/delayed-ref.c add_delayed_ref_head(trans, head_ref, NULL, BTRFS_UPDATE_DELAYED_HEAD, trans 1129 fs/btrfs/delayed-ref.c btrfs_update_delayed_refs_rsv(trans); trans 335 fs/btrfs/delayed-ref.h int btrfs_add_delayed_tree_ref(struct btrfs_trans_handle *trans, trans 339 fs/btrfs/delayed-ref.h int btrfs_add_delayed_data_ref(struct btrfs_trans_handle *trans, trans 343 fs/btrfs/delayed-ref.h int btrfs_add_delayed_extent_op(struct btrfs_trans_handle *trans, trans 346 fs/btrfs/delayed-ref.h void btrfs_merge_delayed_refs(struct btrfs_trans_handle *trans, trans 368 fs/btrfs/delayed-ref.h void btrfs_update_delayed_refs_rsv(struct btrfs_trans_handle *trans); trans 374 fs/btrfs/delayed-ref.h int btrfs_should_throttle_delayed_refs(struct btrfs_trans_handle *trans); trans 278 fs/btrfs/dev-replace.c int btrfs_run_dev_replace(struct btrfs_trans_handle *trans) trans 280 fs/btrfs/dev-replace.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 306 fs/btrfs/dev-replace.c ret = btrfs_search_slot(trans, dev_root, &key, path, -1, 1); trans 327 fs/btrfs/dev-replace.c ret = btrfs_del_item(trans, dev_root, path); trans 340 fs/btrfs/dev-replace.c ret = btrfs_insert_empty_item(trans, dev_root, path, trans 399 fs/btrfs/dev-replace.c struct btrfs_trans_handle *trans; trans 421 fs/btrfs/dev-replace.c trans = btrfs_attach_transaction(root); trans 422 fs/btrfs/dev-replace.c if (!IS_ERR(trans)) { trans 423 fs/btrfs/dev-replace.c ret = btrfs_commit_transaction(trans); trans 426 fs/btrfs/dev-replace.c } else if (PTR_ERR(trans) != -ENOENT) { trans 427 fs/btrfs/dev-replace.c return PTR_ERR(trans); trans 482 fs/btrfs/dev-replace.c trans = btrfs_start_transaction(root, 1); trans 483 fs/btrfs/dev-replace.c if (IS_ERR(trans)) { trans 484 fs/btrfs/dev-replace.c ret = PTR_ERR(trans); trans 494 fs/btrfs/dev-replace.c ret = btrfs_commit_transaction(trans); trans 573 fs/btrfs/dev-replace.c struct btrfs_trans_handle *trans; trans 609 fs/btrfs/dev-replace.c trans = btrfs_start_transaction(root, 0); trans 610 fs/btrfs/dev-replace.c if (IS_ERR(trans)) { trans 612 fs/btrfs/dev-replace.c return PTR_ERR(trans); trans 614 fs/btrfs/dev-replace.c ret = btrfs_commit_transaction(trans); trans 713 fs/btrfs/dev-replace.c trans = btrfs_start_transaction(root, 0); trans 714 fs/btrfs/dev-replace.c if (!IS_ERR(trans)) trans 715 fs/btrfs/dev-replace.c btrfs_commit_transaction(trans); trans 802 fs/btrfs/dev-replace.c struct btrfs_trans_handle *trans; trans 859 fs/btrfs/dev-replace.c trans = btrfs_start_transaction(root, 0); trans 860 fs/btrfs/dev-replace.c if (IS_ERR(trans)) { trans 862 fs/btrfs/dev-replace.c return PTR_ERR(trans); trans 864 fs/btrfs/dev-replace.c ret = btrfs_commit_transaction(trans); trans 12 fs/btrfs/dev-replace.h int btrfs_run_dev_replace(struct btrfs_trans_handle *trans); trans 19 fs/btrfs/dir-item.c *trans, trans 33 fs/btrfs/dir-item.c ret = btrfs_insert_empty_item(trans, root, path, cpu_key, data_size); trans 55 fs/btrfs/dir-item.c int btrfs_insert_xattr_item(struct btrfs_trans_handle *trans, trans 77 fs/btrfs/dir-item.c dir_item = insert_with_overflow(trans, root, path, &key, data_size, trans 88 fs/btrfs/dir-item.c btrfs_set_dir_transid(leaf, dir_item, trans->transid); trans 108 fs/btrfs/dir-item.c int btrfs_insert_dir_item(struct btrfs_trans_handle *trans, const char *name, trans 135 fs/btrfs/dir-item.c dir_item = insert_with_overflow(trans, root, path, &key, data_size, trans 149 fs/btrfs/dir-item.c btrfs_set_dir_transid(leaf, dir_item, trans->transid); trans 163 fs/btrfs/dir-item.c ret2 = btrfs_insert_delayed_dir_index(trans, name, name_len, dir, trans 179 fs/btrfs/dir-item.c struct btrfs_dir_item *btrfs_lookup_dir_item(struct btrfs_trans_handle *trans, trans 195 fs/btrfs/dir-item.c ret = btrfs_search_slot(trans, root, &key, path, ins_len, cow); trans 272 fs/btrfs/dir-item.c btrfs_lookup_dir_index_item(struct btrfs_trans_handle *trans, trans 287 fs/btrfs/dir-item.c ret = btrfs_search_slot(trans, root, &key, path, ins_len, cow); trans 343 fs/btrfs/dir-item.c struct btrfs_dir_item *btrfs_lookup_xattr(struct btrfs_trans_handle *trans, trans 357 fs/btrfs/dir-item.c ret = btrfs_search_slot(trans, root, &key, path, ins_len, cow); trans 407 fs/btrfs/dir-item.c int btrfs_delete_one_dir_name(struct btrfs_trans_handle *trans, trans 423 fs/btrfs/dir-item.c ret = btrfs_del_item(trans, root, path); trans 55 fs/btrfs/disk-io.c static int btrfs_destroy_delayed_refs(struct btrfs_transaction *trans, trans 1222 fs/btrfs/disk-io.c struct btrfs_root *btrfs_create_tree(struct btrfs_trans_handle *trans, trans 1225 fs/btrfs/disk-io.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1249 fs/btrfs/disk-io.c leaf = btrfs_alloc_tree_block(trans, root, 0, objectid, NULL, 0, 0, 0); trans 1265 fs/btrfs/disk-io.c btrfs_set_root_generation(&root->root_item, trans->transid); trans 1279 fs/btrfs/disk-io.c ret = btrfs_insert_root(trans, tree_root, &key, &root->root_item); trans 1298 fs/btrfs/disk-io.c static struct btrfs_root *alloc_log_tree(struct btrfs_trans_handle *trans, trans 1323 fs/btrfs/disk-io.c leaf = btrfs_alloc_tree_block(trans, root, 0, BTRFS_TREE_LOG_OBJECTID, trans 1337 fs/btrfs/disk-io.c int btrfs_init_log_root_tree(struct btrfs_trans_handle *trans, trans 1342 fs/btrfs/disk-io.c log_root = alloc_log_tree(trans, fs_info); trans 1350 fs/btrfs/disk-io.c int btrfs_add_log_tree(struct btrfs_trans_handle *trans, trans 1357 fs/btrfs/disk-io.c log_root = alloc_log_tree(trans, fs_info); trans 1361 fs/btrfs/disk-io.c log_root->last_trans = trans->transid; trans 1724 fs/btrfs/disk-io.c struct btrfs_trans_handle *trans; trans 1756 fs/btrfs/disk-io.c trans = btrfs_attach_transaction(root); trans 1757 fs/btrfs/disk-io.c if (IS_ERR(trans)) { trans 1758 fs/btrfs/disk-io.c if (PTR_ERR(trans) != -ENOENT) trans 1762 fs/btrfs/disk-io.c if (transid == trans->transid) { trans 1763 fs/btrfs/disk-io.c btrfs_commit_transaction(trans); trans 1765 fs/btrfs/disk-io.c btrfs_end_transaction(trans); trans 3959 fs/btrfs/disk-io.c struct btrfs_trans_handle *trans; trans 3970 fs/btrfs/disk-io.c trans = btrfs_join_transaction(root); trans 3971 fs/btrfs/disk-io.c if (IS_ERR(trans)) trans 3972 fs/btrfs/disk-io.c return PTR_ERR(trans); trans 3973 fs/btrfs/disk-io.c return btrfs_commit_transaction(trans); trans 4265 fs/btrfs/disk-io.c static int btrfs_destroy_delayed_refs(struct btrfs_transaction *trans, trans 4273 fs/btrfs/disk-io.c delayed_refs = &trans->delayed_refs; trans 4320 fs/btrfs/disk-io.c btrfs_qgroup_destroy_extent_records(trans); trans 124 fs/btrfs/disk-io.h int btrfs_init_log_root_tree(struct btrfs_trans_handle *trans, trans 126 fs/btrfs/disk-io.h int btrfs_add_log_tree(struct btrfs_trans_handle *trans, trans 128 fs/btrfs/disk-io.h void btrfs_cleanup_dirty_bgs(struct btrfs_transaction *trans, trans 130 fs/btrfs/disk-io.h void btrfs_cleanup_one_transaction(struct btrfs_transaction *trans, trans 132 fs/btrfs/disk-io.h struct btrfs_root *btrfs_create_tree(struct btrfs_trans_handle *trans, trans 39 fs/btrfs/extent-tree.c static int __btrfs_free_extent(struct btrfs_trans_handle *trans, trans 47 fs/btrfs/extent-tree.c static int alloc_reserved_file_extent(struct btrfs_trans_handle *trans, trans 51 fs/btrfs/extent-tree.c static int alloc_reserved_tree_block(struct btrfs_trans_handle *trans, trans 150 fs/btrfs/extent-tree.c int btrfs_lookup_extent_info(struct btrfs_trans_handle *trans, trans 178 fs/btrfs/extent-tree.c if (!trans) { trans 191 fs/btrfs/extent-tree.c ret = btrfs_search_slot(trans, fs_info->extent_root, &key, path, 0, 0); trans 218 fs/btrfs/extent-tree.c if (trans) trans 219 fs/btrfs/extent-tree.c btrfs_abort_transaction(trans, ret); trans 233 fs/btrfs/extent-tree.c if (!trans) trans 236 fs/btrfs/extent-tree.c delayed_refs = &trans->transaction->delayed_refs; trans 476 fs/btrfs/extent-tree.c static noinline int lookup_extent_data_ref(struct btrfs_trans_handle *trans, trans 482 fs/btrfs/extent-tree.c struct btrfs_root *root = trans->fs_info->extent_root; trans 502 fs/btrfs/extent-tree.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); trans 552 fs/btrfs/extent-tree.c static noinline int insert_extent_data_ref(struct btrfs_trans_handle *trans, trans 558 fs/btrfs/extent-tree.c struct btrfs_root *root = trans->fs_info->extent_root; trans 577 fs/btrfs/extent-tree.c ret = btrfs_insert_empty_item(trans, root, path, &key, size); trans 603 fs/btrfs/extent-tree.c ret = btrfs_insert_empty_item(trans, root, path, &key, trans 631 fs/btrfs/extent-tree.c static noinline int remove_extent_data_ref(struct btrfs_trans_handle *trans, trans 654 fs/btrfs/extent-tree.c btrfs_print_v0_err(trans->fs_info); trans 655 fs/btrfs/extent-tree.c btrfs_abort_transaction(trans, -EINVAL); trans 665 fs/btrfs/extent-tree.c ret = btrfs_del_item(trans, trans->fs_info->extent_root, path); trans 719 fs/btrfs/extent-tree.c static noinline int lookup_tree_block_ref(struct btrfs_trans_handle *trans, trans 724 fs/btrfs/extent-tree.c struct btrfs_root *root = trans->fs_info->extent_root; trans 737 fs/btrfs/extent-tree.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); trans 743 fs/btrfs/extent-tree.c static noinline int insert_tree_block_ref(struct btrfs_trans_handle *trans, trans 760 fs/btrfs/extent-tree.c ret = btrfs_insert_empty_item(trans, trans->fs_info->extent_root, trans 818 fs/btrfs/extent-tree.c int lookup_inline_extent_backref(struct btrfs_trans_handle *trans, trans 825 fs/btrfs/extent-tree.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 864 fs/btrfs/extent-tree.c ret = btrfs_search_slot(trans, root, &key, path, extra_size, 1); trans 907 fs/btrfs/extent-tree.c btrfs_abort_transaction(trans, err); trans 1071 fs/btrfs/extent-tree.c static int lookup_extent_backref(struct btrfs_trans_handle *trans, trans 1079 fs/btrfs/extent-tree.c ret = lookup_inline_extent_backref(trans, path, ref_ret, bytenr, trans 1089 fs/btrfs/extent-tree.c ret = lookup_tree_block_ref(trans, path, bytenr, parent, trans 1092 fs/btrfs/extent-tree.c ret = lookup_extent_data_ref(trans, path, bytenr, parent, trans 1169 fs/btrfs/extent-tree.c int insert_inline_extent_backref(struct btrfs_trans_handle *trans, trans 1179 fs/btrfs/extent-tree.c ret = lookup_inline_extent_backref(trans, path, &iref, bytenr, trans 1187 fs/btrfs/extent-tree.c setup_inline_extent_backref(trans->fs_info, path, iref, parent, trans 1195 fs/btrfs/extent-tree.c static int insert_extent_backref(struct btrfs_trans_handle *trans, trans 1203 fs/btrfs/extent-tree.c ret = insert_tree_block_ref(trans, path, bytenr, parent, trans 1206 fs/btrfs/extent-tree.c ret = insert_extent_data_ref(trans, path, bytenr, parent, trans 1213 fs/btrfs/extent-tree.c static int remove_extent_backref(struct btrfs_trans_handle *trans, trans 1225 fs/btrfs/extent-tree.c ret = remove_extent_data_ref(trans, path, refs_to_drop, trans 1229 fs/btrfs/extent-tree.c ret = btrfs_del_item(trans, trans->fs_info->extent_root, path); trans 1370 fs/btrfs/extent-tree.c int btrfs_inc_extent_ref(struct btrfs_trans_handle *trans, trans 1373 fs/btrfs/extent-tree.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1383 fs/btrfs/extent-tree.c ret = btrfs_add_delayed_tree_ref(trans, generic_ref, trans 1386 fs/btrfs/extent-tree.c ret = btrfs_add_delayed_data_ref(trans, generic_ref, 0, trans 1431 fs/btrfs/extent-tree.c static int __btrfs_inc_extent_ref(struct btrfs_trans_handle *trans, trans 1453 fs/btrfs/extent-tree.c ret = insert_inline_extent_backref(trans, path, bytenr, num_bytes, trans 1478 fs/btrfs/extent-tree.c ret = insert_extent_backref(trans, path, bytenr, parent, root_objectid, trans 1481 fs/btrfs/extent-tree.c btrfs_abort_transaction(trans, ret); trans 1487 fs/btrfs/extent-tree.c static int run_delayed_data_ref(struct btrfs_trans_handle *trans, trans 1504 fs/btrfs/extent-tree.c trace_run_delayed_data_ref(trans->fs_info, node, ref, node->action); trans 1513 fs/btrfs/extent-tree.c ret = alloc_reserved_file_extent(trans, parent, ref_root, trans 1518 fs/btrfs/extent-tree.c ret = __btrfs_inc_extent_ref(trans, node, parent, ref_root, trans 1522 fs/btrfs/extent-tree.c ret = __btrfs_free_extent(trans, node, parent, trans 1550 fs/btrfs/extent-tree.c static int run_delayed_extent_op(struct btrfs_trans_handle *trans, trans 1554 fs/btrfs/extent-tree.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1564 fs/btrfs/extent-tree.c if (trans->aborted) trans 1587 fs/btrfs/extent-tree.c ret = btrfs_search_slot(trans, fs_info->extent_root, &key, path, 0, 1); trans 1624 fs/btrfs/extent-tree.c btrfs_abort_transaction(trans, err); trans 1637 fs/btrfs/extent-tree.c static int run_delayed_tree_ref(struct btrfs_trans_handle *trans, trans 1648 fs/btrfs/extent-tree.c trace_run_delayed_tree_ref(trans->fs_info, node, ref, node->action); trans 1655 fs/btrfs/extent-tree.c btrfs_err(trans->fs_info, trans 1663 fs/btrfs/extent-tree.c ret = alloc_reserved_tree_block(trans, node, extent_op); trans 1665 fs/btrfs/extent-tree.c ret = __btrfs_inc_extent_ref(trans, node, parent, ref_root, trans 1668 fs/btrfs/extent-tree.c ret = __btrfs_free_extent(trans, node, parent, ref_root, trans 1677 fs/btrfs/extent-tree.c static int run_one_delayed_ref(struct btrfs_trans_handle *trans, trans 1684 fs/btrfs/extent-tree.c if (trans->aborted) { trans 1686 fs/btrfs/extent-tree.c btrfs_pin_extent(trans->fs_info, node->bytenr, trans 1693 fs/btrfs/extent-tree.c ret = run_delayed_tree_ref(trans, node, extent_op, trans 1697 fs/btrfs/extent-tree.c ret = run_delayed_data_ref(trans, node, extent_op, trans 1702 fs/btrfs/extent-tree.c btrfs_pin_extent(trans->fs_info, node->bytenr, trans 1757 fs/btrfs/extent-tree.c static int run_and_cleanup_extent_op(struct btrfs_trans_handle *trans, trans 1768 fs/btrfs/extent-tree.c ret = run_delayed_extent_op(trans, head, extent_op); trans 1812 fs/btrfs/extent-tree.c static int cleanup_ref_head(struct btrfs_trans_handle *trans, trans 1816 fs/btrfs/extent-tree.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1820 fs/btrfs/extent-tree.c delayed_refs = &trans->transaction->delayed_refs; trans 1822 fs/btrfs/extent-tree.c ret = run_and_cleanup_extent_op(trans, head); trans 1851 fs/btrfs/extent-tree.c ret = btrfs_del_csums(trans, fs_info->csum_root, trans 1865 fs/btrfs/extent-tree.c struct btrfs_trans_handle *trans) trans 1868 fs/btrfs/extent-tree.c &trans->transaction->delayed_refs; trans 1897 fs/btrfs/extent-tree.c static int btrfs_run_delayed_refs_for_head(struct btrfs_trans_handle *trans, trans 1901 fs/btrfs/extent-tree.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1908 fs/btrfs/extent-tree.c delayed_refs = &trans->transaction->delayed_refs; trans 1955 fs/btrfs/extent-tree.c ret = run_one_delayed_ref(trans, ref, extent_op, trans 1971 fs/btrfs/extent-tree.c btrfs_merge_delayed_refs(trans, delayed_refs, locked_ref); trans 1981 fs/btrfs/extent-tree.c static noinline int __btrfs_run_delayed_refs(struct btrfs_trans_handle *trans, trans 1984 fs/btrfs/extent-tree.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1992 fs/btrfs/extent-tree.c delayed_refs = &trans->transaction->delayed_refs; trans 1995 fs/btrfs/extent-tree.c locked_ref = btrfs_obtain_ref_head(trans); trans 2018 fs/btrfs/extent-tree.c btrfs_merge_delayed_refs(trans, delayed_refs, locked_ref); trans 2020 fs/btrfs/extent-tree.c ret = btrfs_run_delayed_refs_for_head(trans, locked_ref, trans 2033 fs/btrfs/extent-tree.c ret = cleanup_ref_head(trans, locked_ref); trans 2161 fs/btrfs/extent-tree.c int btrfs_run_delayed_refs(struct btrfs_trans_handle *trans, trans 2164 fs/btrfs/extent-tree.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 2172 fs/btrfs/extent-tree.c if (trans->aborted) trans 2178 fs/btrfs/extent-tree.c delayed_refs = &trans->transaction->delayed_refs; trans 2186 fs/btrfs/extent-tree.c ret = __btrfs_run_delayed_refs(trans, count); trans 2188 fs/btrfs/extent-tree.c btrfs_abort_transaction(trans, ret); trans 2193 fs/btrfs/extent-tree.c btrfs_create_pending_block_groups(trans); trans 2218 fs/btrfs/extent-tree.c int btrfs_set_disk_extent_flags(struct btrfs_trans_handle *trans, trans 2235 fs/btrfs/extent-tree.c ret = btrfs_add_delayed_extent_op(trans, bytenr, num_bytes, extent_op); trans 2417 fs/btrfs/extent-tree.c static int __btrfs_mod_ref(struct btrfs_trans_handle *trans, trans 2479 fs/btrfs/extent-tree.c ret = btrfs_inc_extent_ref(trans, &generic_ref); trans 2481 fs/btrfs/extent-tree.c ret = btrfs_free_extent(trans, &generic_ref); trans 2493 fs/btrfs/extent-tree.c ret = btrfs_inc_extent_ref(trans, &generic_ref); trans 2495 fs/btrfs/extent-tree.c ret = btrfs_free_extent(trans, &generic_ref); trans 2505 fs/btrfs/extent-tree.c int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root, trans 2508 fs/btrfs/extent-tree.c return __btrfs_mod_ref(trans, root, buf, full_backref, 1); trans 2511 fs/btrfs/extent-tree.c int btrfs_dec_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root, trans 2514 fs/btrfs/extent-tree.c return __btrfs_mod_ref(trans, root, buf, full_backref, 0); trans 2880 fs/btrfs/extent-tree.c int btrfs_finish_extent_commit(struct btrfs_trans_handle *trans) trans 2882 fs/btrfs/extent-tree.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 2895 fs/btrfs/extent-tree.c while (!trans->aborted) { trans 2922 fs/btrfs/extent-tree.c deleted_bgs = &trans->transaction->deleted_bgs; trans 2927 fs/btrfs/extent-tree.c if (!trans->aborted) trans 2948 fs/btrfs/extent-tree.c static int __btrfs_free_extent(struct btrfs_trans_handle *trans, trans 2954 fs/btrfs/extent-tree.c struct btrfs_fs_info *info = trans->fs_info; trans 2986 fs/btrfs/extent-tree.c ret = lookup_extent_backref(trans, path, &iref, bytenr, num_bytes, trans 3013 fs/btrfs/extent-tree.c ret = remove_extent_backref(trans, path, NULL, trans 3017 fs/btrfs/extent-tree.c btrfs_abort_transaction(trans, ret); trans 3032 fs/btrfs/extent-tree.c ret = btrfs_search_slot(trans, extent_root, trans 3054 fs/btrfs/extent-tree.c ret = btrfs_search_slot(trans, extent_root, trans 3066 fs/btrfs/extent-tree.c btrfs_abort_transaction(trans, ret); trans 3077 fs/btrfs/extent-tree.c btrfs_abort_transaction(trans, ret); trans 3080 fs/btrfs/extent-tree.c btrfs_abort_transaction(trans, ret); trans 3089 fs/btrfs/extent-tree.c btrfs_abort_transaction(trans, ret); trans 3108 fs/btrfs/extent-tree.c btrfs_abort_transaction(trans, ret); trans 3127 fs/btrfs/extent-tree.c ret = remove_extent_backref(trans, path, iref, trans 3131 fs/btrfs/extent-tree.c btrfs_abort_transaction(trans, ret); trans 3149 fs/btrfs/extent-tree.c ret = btrfs_del_items(trans, extent_root, path, path->slots[0], trans 3152 fs/btrfs/extent-tree.c btrfs_abort_transaction(trans, ret); trans 3158 fs/btrfs/extent-tree.c ret = btrfs_del_csums(trans, info->csum_root, bytenr, trans 3161 fs/btrfs/extent-tree.c btrfs_abort_transaction(trans, ret); trans 3166 fs/btrfs/extent-tree.c ret = add_to_free_space_tree(trans, bytenr, num_bytes); trans 3168 fs/btrfs/extent-tree.c btrfs_abort_transaction(trans, ret); trans 3172 fs/btrfs/extent-tree.c ret = btrfs_update_block_group(trans, bytenr, num_bytes, 0); trans 3174 fs/btrfs/extent-tree.c btrfs_abort_transaction(trans, ret); trans 3191 fs/btrfs/extent-tree.c static noinline int check_ref_cleanup(struct btrfs_trans_handle *trans, trans 3198 fs/btrfs/extent-tree.c delayed_refs = &trans->transaction->delayed_refs; trans 3228 fs/btrfs/extent-tree.c btrfs_cleanup_ref_head_accounting(trans->fs_info, delayed_refs, head); trans 3240 fs/btrfs/extent-tree.c void btrfs_free_tree_block(struct btrfs_trans_handle *trans, trans 3259 fs/btrfs/extent-tree.c ret = btrfs_add_delayed_tree_ref(trans, &generic_ref, NULL, trans 3265 fs/btrfs/extent-tree.c if (last_ref && btrfs_header_generation(buf) == trans->transid) { trans 3269 fs/btrfs/extent-tree.c ret = check_ref_cleanup(trans, buf->start); trans 3304 fs/btrfs/extent-tree.c int btrfs_free_extent(struct btrfs_trans_handle *trans, struct btrfs_ref *ref) trans 3306 fs/btrfs/extent-tree.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 3326 fs/btrfs/extent-tree.c ret = btrfs_add_delayed_tree_ref(trans, ref, NULL, trans 3329 fs/btrfs/extent-tree.c ret = btrfs_add_delayed_data_ref(trans, ref, 0, trans 3701 fs/btrfs/extent-tree.c struct btrfs_trans_handle *trans; trans 3704 fs/btrfs/extent-tree.c trans = current->journal_info; trans 3705 fs/btrfs/extent-tree.c if (trans) trans 3708 fs/btrfs/extent-tree.c trans = btrfs_join_transaction(root); trans 3710 fs/btrfs/extent-tree.c if (IS_ERR(trans)) { trans 3711 fs/btrfs/extent-tree.c ret = PTR_ERR(trans); trans 3715 fs/btrfs/extent-tree.c ret = btrfs_chunk_alloc(trans, ffe_ctl->flags, trans 3728 fs/btrfs/extent-tree.c btrfs_abort_transaction(trans, ret); trans 3732 fs/btrfs/extent-tree.c btrfs_end_transaction(trans); trans 4189 fs/btrfs/extent-tree.c static int alloc_reserved_file_extent(struct btrfs_trans_handle *trans, trans 4194 fs/btrfs/extent-tree.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 4215 fs/btrfs/extent-tree.c ret = btrfs_insert_empty_item(trans, fs_info->extent_root, path, trans 4226 fs/btrfs/extent-tree.c btrfs_set_extent_generation(leaf, extent_item, trans->transid); trans 4249 fs/btrfs/extent-tree.c ret = remove_from_free_space_tree(trans, ins->objectid, ins->offset); trans 4253 fs/btrfs/extent-tree.c ret = btrfs_update_block_group(trans, ins->objectid, ins->offset, 1); trans 4263 fs/btrfs/extent-tree.c static int alloc_reserved_tree_block(struct btrfs_trans_handle *trans, trans 4267 fs/btrfs/extent-tree.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 4300 fs/btrfs/extent-tree.c ret = btrfs_insert_empty_item(trans, fs_info->extent_root, path, trans 4311 fs/btrfs/extent-tree.c btrfs_set_extent_generation(leaf, extent_item, trans->transid); trans 4338 fs/btrfs/extent-tree.c ret = remove_from_free_space_tree(trans, extent_key.objectid, trans 4343 fs/btrfs/extent-tree.c ret = btrfs_update_block_group(trans, extent_key.objectid, trans 4356 fs/btrfs/extent-tree.c int btrfs_alloc_reserved_file_extent(struct btrfs_trans_handle *trans, trans 4370 fs/btrfs/extent-tree.c ret = btrfs_add_delayed_data_ref(trans, &generic_ref, trans 4380 fs/btrfs/extent-tree.c int btrfs_alloc_logged_file_extent(struct btrfs_trans_handle *trans, trans 4384 fs/btrfs/extent-tree.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 4412 fs/btrfs/extent-tree.c ret = alloc_reserved_file_extent(trans, 0, root_objectid, 0, owner, trans 4421 fs/btrfs/extent-tree.c btrfs_init_new_buffer(struct btrfs_trans_handle *trans, struct btrfs_root *root, trans 4455 fs/btrfs/extent-tree.c btrfs_set_header_generation(buf, trans->transid); trans 4474 fs/btrfs/extent-tree.c set_extent_dirty(&trans->transaction->dirty_pages, buf->start, trans 4477 fs/btrfs/extent-tree.c trans->dirty = true; trans 4486 fs/btrfs/extent-tree.c struct extent_buffer *btrfs_alloc_tree_block(struct btrfs_trans_handle *trans, trans 4506 fs/btrfs/extent-tree.c buf = btrfs_init_new_buffer(trans, root, root->alloc_bytenr, trans 4514 fs/btrfs/extent-tree.c block_rsv = btrfs_use_block_rsv(trans, root, blocksize); trans 4523 fs/btrfs/extent-tree.c buf = btrfs_init_new_buffer(trans, root, ins.objectid, level, trans 4558 fs/btrfs/extent-tree.c ret = btrfs_add_delayed_tree_ref(trans, &generic_ref, trans 4595 fs/btrfs/extent-tree.c static noinline void reada_walk_down(struct btrfs_trans_handle *trans, trans 4640 fs/btrfs/extent-tree.c ret = btrfs_lookup_extent_info(trans, fs_info, bytenr, trans 4683 fs/btrfs/extent-tree.c static noinline int walk_down_proc(struct btrfs_trans_handle *trans, trans 4706 fs/btrfs/extent-tree.c ret = btrfs_lookup_extent_info(trans, fs_info, trans 4730 fs/btrfs/extent-tree.c ret = btrfs_inc_ref(trans, root, eb, 1); trans 4732 fs/btrfs/extent-tree.c ret = btrfs_dec_ref(trans, root, eb, 0); trans 4734 fs/btrfs/extent-tree.c ret = btrfs_set_disk_extent_flags(trans, eb->start, trans 4756 fs/btrfs/extent-tree.c static int check_ref_exists(struct btrfs_trans_handle *trans, trans 4768 fs/btrfs/extent-tree.c ret = lookup_extent_backref(trans, path, &iref, bytenr, trans 4792 fs/btrfs/extent-tree.c static noinline int do_walk_down(struct btrfs_trans_handle *trans, trans 4840 fs/btrfs/extent-tree.c ret = btrfs_lookup_extent_info(trans, fs_info, bytenr, level - 1, 1, trans 4888 fs/btrfs/extent-tree.c reada_walk_down(trans, root, wc, path); trans 4941 fs/btrfs/extent-tree.c ret = check_ref_exists(trans, root, bytenr, parent, trans 4958 fs/btrfs/extent-tree.c ret = btrfs_qgroup_trace_subtree(trans, next, trans 4979 fs/btrfs/extent-tree.c ret = btrfs_free_extent(trans, &ref); trans 5006 fs/btrfs/extent-tree.c static noinline int walk_up_proc(struct btrfs_trans_handle *trans, trans 5041 fs/btrfs/extent-tree.c ret = btrfs_lookup_extent_info(trans, fs_info, trans 5065 fs/btrfs/extent-tree.c ret = btrfs_dec_ref(trans, root, eb, 1); trans 5067 fs/btrfs/extent-tree.c ret = btrfs_dec_ref(trans, root, eb, 0); trans 5070 fs/btrfs/extent-tree.c ret = btrfs_qgroup_trace_leaf_items(trans, eb); trans 5080 fs/btrfs/extent-tree.c btrfs_header_generation(eb) == trans->transid) { trans 5101 fs/btrfs/extent-tree.c btrfs_free_tree_block(trans, root, eb, parent, wc->refs[level] == 1); trans 5113 fs/btrfs/extent-tree.c static noinline int walk_down_tree(struct btrfs_trans_handle *trans, trans 5123 fs/btrfs/extent-tree.c ret = walk_down_proc(trans, root, path, wc, lookup_info); trans 5134 fs/btrfs/extent-tree.c ret = do_walk_down(trans, root, path, wc, &lookup_info); trans 5145 fs/btrfs/extent-tree.c static noinline int walk_up_tree(struct btrfs_trans_handle *trans, trans 5161 fs/btrfs/extent-tree.c ret = walk_up_proc(trans, root, path, wc); trans 5199 fs/btrfs/extent-tree.c struct btrfs_trans_handle *trans; trans 5224 fs/btrfs/extent-tree.c trans = btrfs_start_transaction(tree_root, 0); trans 5225 fs/btrfs/extent-tree.c if (IS_ERR(trans)) { trans 5226 fs/btrfs/extent-tree.c err = PTR_ERR(trans); trans 5230 fs/btrfs/extent-tree.c err = btrfs_run_delayed_items(trans); trans 5235 fs/btrfs/extent-tree.c trans->block_rsv = block_rsv; trans 5282 fs/btrfs/extent-tree.c ret = btrfs_lookup_extent_info(trans, fs_info, trans 5312 fs/btrfs/extent-tree.c ret = walk_down_tree(trans, root, path, wc); trans 5318 fs/btrfs/extent-tree.c ret = walk_up_tree(trans, root, path, wc, BTRFS_MAX_LEVEL); trans 5340 fs/btrfs/extent-tree.c if (btrfs_should_end_transaction(trans) || trans 5342 fs/btrfs/extent-tree.c ret = btrfs_update_root(trans, tree_root, trans 5346 fs/btrfs/extent-tree.c btrfs_abort_transaction(trans, ret); trans 5351 fs/btrfs/extent-tree.c btrfs_end_transaction_throttle(trans); trans 5359 fs/btrfs/extent-tree.c trans = btrfs_start_transaction(tree_root, 0); trans 5360 fs/btrfs/extent-tree.c if (IS_ERR(trans)) { trans 5361 fs/btrfs/extent-tree.c err = PTR_ERR(trans); trans 5365 fs/btrfs/extent-tree.c trans->block_rsv = block_rsv; trans 5372 fs/btrfs/extent-tree.c ret = btrfs_del_root(trans, &root->root_key); trans 5374 fs/btrfs/extent-tree.c btrfs_abort_transaction(trans, ret); trans 5383 fs/btrfs/extent-tree.c btrfs_abort_transaction(trans, ret); trans 5392 fs/btrfs/extent-tree.c btrfs_del_orphan_item(trans, tree_root, trans 5398 fs/btrfs/extent-tree.c btrfs_add_dropped_root(trans, root); trans 5406 fs/btrfs/extent-tree.c btrfs_end_transaction_throttle(trans); trans 5431 fs/btrfs/extent-tree.c int btrfs_drop_subtree(struct btrfs_trans_handle *trans, trans 5478 fs/btrfs/extent-tree.c wret = walk_down_tree(trans, root, path, wc); trans 5484 fs/btrfs/extent-tree.c wret = walk_up_tree(trans, root, path, wc, parent_level); trans 34 fs/btrfs/file-item.c int btrfs_insert_file_extent(struct btrfs_trans_handle *trans, trans 55 fs/btrfs/file-item.c ret = btrfs_insert_empty_item(trans, root, path, &file_key, trans 68 fs/btrfs/file-item.c btrfs_set_file_extent_generation(leaf, item, trans->transid); trans 81 fs/btrfs/file-item.c btrfs_lookup_csum(struct btrfs_trans_handle *trans, trans 99 fs/btrfs/file-item.c ret = btrfs_search_slot(trans, root, &file_key, path, 0, cow); trans 134 fs/btrfs/file-item.c int btrfs_lookup_file_extent(struct btrfs_trans_handle *trans, trans 147 fs/btrfs/file-item.c ret = btrfs_search_slot(trans, root, &file_key, path, ins_len, cow); trans 593 fs/btrfs/file-item.c int btrfs_del_csums(struct btrfs_trans_handle *trans, trans 596 fs/btrfs/file-item.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 619 fs/btrfs/file-item.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); trans 674 fs/btrfs/file-item.c ret = btrfs_del_items(trans, root, path, trans 718 fs/btrfs/file-item.c ret = btrfs_split_item(trans, root, path, &key, offset); trans 720 fs/btrfs/file-item.c btrfs_abort_transaction(trans, ret); trans 738 fs/btrfs/file-item.c int btrfs_csum_file_blocks(struct btrfs_trans_handle *trans, trans 771 fs/btrfs/file-item.c item = btrfs_lookup_csum(trans, root, path, bytenr, 1); trans 823 fs/btrfs/file-item.c ret = btrfs_search_slot(trans, root, &file_key, path, trans 895 fs/btrfs/file-item.c ret = btrfs_insert_empty_item(trans, root, path, &file_key, trans 133 fs/btrfs/file.c int btrfs_add_inode_defrag(struct btrfs_trans_handle *trans, trans 148 fs/btrfs/file.c if (trans) trans 149 fs/btrfs/file.c transid = trans->transid; trans 747 fs/btrfs/file.c int __btrfs_drop_extents(struct btrfs_trans_handle *trans, trans 788 fs/btrfs/file.c ret = btrfs_lookup_file_extent(trans, root, path, ino, trans 889 fs/btrfs/file.c ret = btrfs_duplicate_item(trans, root, path, trans 921 fs/btrfs/file.c ret = btrfs_inc_extent_ref(trans, &ref); trans 1008 fs/btrfs/file.c ret = btrfs_free_extent(trans, &ref); trans 1022 fs/btrfs/file.c ret = btrfs_del_items(trans, root, path, del_slot, trans 1025 fs/btrfs/file.c btrfs_abort_transaction(trans, ret); trans 1047 fs/btrfs/file.c ret = btrfs_del_items(trans, root, path, del_slot, del_nr); trans 1049 fs/btrfs/file.c btrfs_abort_transaction(trans, ret); trans 1089 fs/btrfs/file.c int btrfs_drop_extents(struct btrfs_trans_handle *trans, trans 1099 fs/btrfs/file.c ret = __btrfs_drop_extents(trans, root, inode, path, start, end, NULL, trans 1145 fs/btrfs/file.c int btrfs_mark_extent_written(struct btrfs_trans_handle *trans, trans 1148 fs/btrfs/file.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1179 fs/btrfs/file.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); trans 1190 fs/btrfs/file.c btrfs_abort_transaction(trans, ret); trans 1197 fs/btrfs/file.c btrfs_abort_transaction(trans, ret); trans 1203 fs/btrfs/file.c btrfs_abort_transaction(trans, ret); trans 1223 fs/btrfs/file.c trans->transid); trans 1231 fs/btrfs/file.c trans->transid); trans 1250 fs/btrfs/file.c trans->transid); trans 1258 fs/btrfs/file.c trans->transid); trans 1273 fs/btrfs/file.c ret = btrfs_duplicate_item(trans, root, path, &new_key); trans 1279 fs/btrfs/file.c btrfs_abort_transaction(trans, ret); trans 1286 fs/btrfs/file.c btrfs_set_file_extent_generation(leaf, fi, trans->transid); trans 1293 fs/btrfs/file.c btrfs_set_file_extent_generation(leaf, fi, trans->transid); trans 1303 fs/btrfs/file.c ret = btrfs_inc_extent_ref(trans, &ref); trans 1305 fs/btrfs/file.c btrfs_abort_transaction(trans, ret); trans 1314 fs/btrfs/file.c btrfs_abort_transaction(trans, ret); trans 1338 fs/btrfs/file.c ret = btrfs_free_extent(trans, &ref); trans 1340 fs/btrfs/file.c btrfs_abort_transaction(trans, ret); trans 1356 fs/btrfs/file.c ret = btrfs_free_extent(trans, &ref); trans 1358 fs/btrfs/file.c btrfs_abort_transaction(trans, ret); trans 1367 fs/btrfs/file.c btrfs_set_file_extent_generation(leaf, fi, trans->transid); trans 1374 fs/btrfs/file.c btrfs_set_file_extent_generation(leaf, fi, trans->transid); trans 1379 fs/btrfs/file.c ret = btrfs_del_items(trans, root, path, del_slot, del_nr); trans 1381 fs/btrfs/file.c btrfs_abort_transaction(trans, ret); trans 2068 fs/btrfs/file.c struct btrfs_trans_handle *trans; trans 2194 fs/btrfs/file.c trans = btrfs_start_transaction(root, 0); trans 2195 fs/btrfs/file.c if (IS_ERR(trans)) { trans 2196 fs/btrfs/file.c ret = PTR_ERR(trans); trans 2202 fs/btrfs/file.c ret = btrfs_log_dentry_safe(trans, dentry, start, end, &ctx); trans 2223 fs/btrfs/file.c ret = btrfs_sync_log(trans, root, &ctx); trans 2225 fs/btrfs/file.c ret = btrfs_end_transaction(trans); trans 2229 fs/btrfs/file.c ret = btrfs_commit_transaction(trans); trans 2231 fs/btrfs/file.c ret = btrfs_end_transaction(trans); trans 2289 fs/btrfs/file.c static int fill_holes(struct btrfs_trans_handle *trans, trans 2293 fs/btrfs/file.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 2309 fs/btrfs/file.c ret = btrfs_search_slot(trans, root, &key, path, 0, 1); trans 2353 fs/btrfs/file.c ret = btrfs_insert_file_extent(trans, root, btrfs_ino(inode), trans 2376 fs/btrfs/file.c hole_em->generation = trans->transid; trans 2463 fs/btrfs/file.c static int btrfs_insert_clone_extent(struct btrfs_trans_handle *trans, trans 2489 fs/btrfs/file.c ret = btrfs_insert_empty_item(trans, root, path, &key, trans 2515 fs/btrfs/file.c ret = btrfs_inc_extent_ref(trans, &ref); trans 2538 fs/btrfs/file.c struct btrfs_trans_handle *trans = NULL; trans 2568 fs/btrfs/file.c trans = btrfs_start_transaction(root, rsv_count); trans 2569 fs/btrfs/file.c if (IS_ERR(trans)) { trans 2570 fs/btrfs/file.c ret = PTR_ERR(trans); trans 2571 fs/btrfs/file.c trans = NULL; trans 2578 fs/btrfs/file.c trans->block_rsv = rsv; trans 2582 fs/btrfs/file.c ret = __btrfs_drop_extents(trans, root, inode, path, trans 2594 fs/btrfs/file.c btrfs_abort_transaction(trans, ret); trans 2598 fs/btrfs/file.c trans->block_rsv = &fs_info->trans_block_rsv; trans 2602 fs/btrfs/file.c ret = fill_holes(trans, BTRFS_I(inode), path, trans 2611 fs/btrfs/file.c btrfs_abort_transaction(trans, ret); trans 2619 fs/btrfs/file.c ret = btrfs_insert_clone_extent(trans, inode, path, trans 2622 fs/btrfs/file.c btrfs_abort_transaction(trans, ret); trans 2632 fs/btrfs/file.c ret = btrfs_update_inode(trans, root, inode); trans 2636 fs/btrfs/file.c btrfs_end_transaction(trans); trans 2639 fs/btrfs/file.c trans = btrfs_start_transaction(root, rsv_count); trans 2640 fs/btrfs/file.c if (IS_ERR(trans)) { trans 2641 fs/btrfs/file.c ret = PTR_ERR(trans); trans 2642 fs/btrfs/file.c trans = NULL; trans 2649 fs/btrfs/file.c trans->block_rsv = rsv; trans 2677 fs/btrfs/file.c trans->block_rsv = &fs_info->trans_block_rsv; trans 2697 fs/btrfs/file.c ret = fill_holes(trans, BTRFS_I(inode), path, trans 2701 fs/btrfs/file.c btrfs_abort_transaction(trans, ret); trans 2706 fs/btrfs/file.c ret = btrfs_insert_clone_extent(trans, inode, path, clone_info, trans 2709 fs/btrfs/file.c btrfs_abort_transaction(trans, ret); trans 2715 fs/btrfs/file.c if (!trans) trans 2718 fs/btrfs/file.c trans->block_rsv = &fs_info->trans_block_rsv; trans 2720 fs/btrfs/file.c btrfs_end_transaction(trans); trans 2722 fs/btrfs/file.c *trans_out = trans; trans 2735 fs/btrfs/file.c struct btrfs_trans_handle *trans = NULL; trans 2850 fs/btrfs/file.c &trans); trans 2855 fs/btrfs/file.c ASSERT(trans != NULL); trans 2858 fs/btrfs/file.c ret = btrfs_update_inode(trans, root, inode); trans 2860 fs/btrfs/file.c btrfs_end_transaction(trans); trans 2879 fs/btrfs/file.c trans = btrfs_start_transaction(root, 1); trans 2880 fs/btrfs/file.c if (IS_ERR(trans)) { trans 2881 fs/btrfs/file.c ret = PTR_ERR(trans); trans 2885 fs/btrfs/file.c ret = btrfs_update_inode(trans, root, inode); trans 2886 fs/btrfs/file.c ret2 = btrfs_end_transaction(trans); trans 2939 fs/btrfs/file.c struct btrfs_trans_handle *trans; trans 2947 fs/btrfs/file.c trans = btrfs_start_transaction(root, 1); trans 2948 fs/btrfs/file.c if (IS_ERR(trans)) trans 2949 fs/btrfs/file.c return PTR_ERR(trans); trans 2954 fs/btrfs/file.c ret = btrfs_update_inode(trans, root, inode); trans 2955 fs/btrfs/file.c ret2 = btrfs_end_transaction(trans); trans 39 fs/btrfs/free-space-cache.c struct btrfs_trans_handle *trans, trans 132 fs/btrfs/free-space-cache.c struct btrfs_trans_handle *trans, trans 144 fs/btrfs/free-space-cache.c ret = btrfs_insert_empty_inode(trans, root, path, ino); trans 158 fs/btrfs/free-space-cache.c btrfs_set_inode_generation(leaf, inode_item, trans->transid); trans 166 fs/btrfs/free-space-cache.c btrfs_set_inode_transid(leaf, inode_item, trans->transid); trans 174 fs/btrfs/free-space-cache.c ret = btrfs_insert_empty_item(trans, root, path, &key, trans 192 fs/btrfs/free-space-cache.c int create_free_space_inode(struct btrfs_trans_handle *trans, trans 199 fs/btrfs/free-space-cache.c ret = btrfs_find_free_objectid(trans->fs_info->tree_root, &ino); trans 203 fs/btrfs/free-space-cache.c return __create_free_space_inode(trans->fs_info->tree_root, trans, path, trans 226 fs/btrfs/free-space-cache.c int btrfs_truncate_free_space_cache(struct btrfs_trans_handle *trans, trans 242 fs/btrfs/free-space-cache.c mutex_lock(&trans->transaction->cache_write_mutex); trans 246 fs/btrfs/free-space-cache.c btrfs_wait_cache_io(trans, block_group, path); trans 267 fs/btrfs/free-space-cache.c ret = btrfs_truncate_inode_items(trans, root, inode, trans 272 fs/btrfs/free-space-cache.c ret = btrfs_update_inode(trans, root, inode); trans 276 fs/btrfs/free-space-cache.c mutex_unlock(&trans->transaction->cache_write_mutex); trans 278 fs/btrfs/free-space-cache.c btrfs_abort_transaction(trans, ret); trans 997 fs/btrfs/free-space-cache.c update_cache_item(struct btrfs_trans_handle *trans, trans 1012 fs/btrfs/free-space-cache.c ret = btrfs_search_slot(trans, root, &key, path, 0, 1); trans 1034 fs/btrfs/free-space-cache.c BTRFS_I(inode)->generation = trans->transid; trans 1039 fs/btrfs/free-space-cache.c btrfs_set_free_space_generation(leaf, header, trans->transid); trans 1149 fs/btrfs/free-space-cache.c struct btrfs_trans_handle *trans, trans 1166 fs/btrfs/free-space-cache.c ret = update_cache_item(trans, root, inode, path, offset, trans 1181 fs/btrfs/free-space-cache.c btrfs_update_inode(trans, root, inode); trans 1185 fs/btrfs/free-space-cache.c spin_lock(&trans->transaction->dirty_bgs_lock); trans 1201 fs/btrfs/free-space-cache.c spin_unlock(&trans->transaction->dirty_bgs_lock); trans 1211 fs/btrfs/free-space-cache.c struct btrfs_trans_handle *trans, trans 1215 fs/btrfs/free-space-cache.c return __btrfs_wait_cache_io(root, trans, NULL, io_ctl, path, 0); trans 1218 fs/btrfs/free-space-cache.c int btrfs_wait_cache_io(struct btrfs_trans_handle *trans, trans 1222 fs/btrfs/free-space-cache.c return __btrfs_wait_cache_io(block_group->fs_info->tree_root, trans, trans 1242 fs/btrfs/free-space-cache.c struct btrfs_trans_handle *trans) trans 1282 fs/btrfs/free-space-cache.c io_ctl_set_generation(io_ctl, trans->transid); trans 1357 fs/btrfs/free-space-cache.c btrfs_update_inode(trans, root, inode); trans 1377 fs/btrfs/free-space-cache.c int btrfs_write_out_cache(struct btrfs_trans_handle *trans, trans 1381 fs/btrfs/free-space-cache.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1398 fs/btrfs/free-space-cache.c block_group, &block_group->io_ctl, trans); trans 3502 fs/btrfs/free-space-cache.c struct btrfs_trans_handle *trans, trans 3505 fs/btrfs/free-space-cache.c return __create_free_space_inode(root, trans, path, trans 3552 fs/btrfs/free-space-cache.c struct btrfs_trans_handle *trans, trans 3566 fs/btrfs/free-space-cache.c ret = __btrfs_write_out_cache(root, inode, ctl, NULL, &io_ctl, trans); trans 3575 fs/btrfs/free-space-cache.c ret = btrfs_wait_cache_io_root(root, trans, &io_ctl, path); trans 56 fs/btrfs/free-space-cache.h int create_free_space_inode(struct btrfs_trans_handle *trans, trans 62 fs/btrfs/free-space-cache.h int btrfs_truncate_free_space_cache(struct btrfs_trans_handle *trans, trans 66 fs/btrfs/free-space-cache.h int btrfs_wait_cache_io(struct btrfs_trans_handle *trans, trans 69 fs/btrfs/free-space-cache.h int btrfs_write_out_cache(struct btrfs_trans_handle *trans, trans 75 fs/btrfs/free-space-cache.h struct btrfs_trans_handle *trans, trans 80 fs/btrfs/free-space-cache.h struct btrfs_trans_handle *trans, trans 15 fs/btrfs/free-space-tree.c static int __add_block_group_free_space(struct btrfs_trans_handle *trans, trans 47 fs/btrfs/free-space-tree.c static int add_new_free_space_info(struct btrfs_trans_handle *trans, trans 51 fs/btrfs/free-space-tree.c struct btrfs_root *root = trans->fs_info->free_space_root; trans 61 fs/btrfs/free-space-tree.c ret = btrfs_insert_empty_item(trans, root, path, &key, sizeof(*info)); trans 80 fs/btrfs/free-space-tree.c struct btrfs_trans_handle *trans, trans 93 fs/btrfs/free-space-tree.c ret = btrfs_search_slot(trans, root, &key, path, 0, cow); trans 111 fs/btrfs/free-space-tree.c static int btrfs_search_prev_slot(struct btrfs_trans_handle *trans, trans 118 fs/btrfs/free-space-tree.c ret = btrfs_search_slot(trans, root, key, p, ins_len, cow); trans 182 fs/btrfs/free-space-tree.c int convert_free_space_to_bitmaps(struct btrfs_trans_handle *trans, trans 186 fs/btrfs/free-space-tree.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 216 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, -1, 1); trans 252 fs/btrfs/free-space-tree.c ret = btrfs_del_items(trans, root, path, path->slots[0], nr); trans 258 fs/btrfs/free-space-tree.c info = search_free_space_info(trans, block_group, path, 1); trans 297 fs/btrfs/free-space-tree.c ret = btrfs_insert_empty_item(trans, root, path, &key, trans 317 fs/btrfs/free-space-tree.c btrfs_abort_transaction(trans, ret); trans 322 fs/btrfs/free-space-tree.c int convert_free_space_to_extents(struct btrfs_trans_handle *trans, trans 326 fs/btrfs/free-space-tree.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 355 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, -1, 1); trans 397 fs/btrfs/free-space-tree.c ret = btrfs_del_items(trans, root, path, path->slots[0], nr); trans 403 fs/btrfs/free-space-tree.c info = search_free_space_info(trans, block_group, path, 1); trans 427 fs/btrfs/free-space-tree.c ret = btrfs_insert_empty_item(trans, root, path, &key, 0); trans 451 fs/btrfs/free-space-tree.c btrfs_abort_transaction(trans, ret); trans 455 fs/btrfs/free-space-tree.c static int update_free_space_extent_count(struct btrfs_trans_handle *trans, trans 468 fs/btrfs/free-space-tree.c info = search_free_space_info(trans, block_group, path, 1); trans 483 fs/btrfs/free-space-tree.c ret = convert_free_space_to_bitmaps(trans, block_group, path); trans 486 fs/btrfs/free-space-tree.c ret = convert_free_space_to_extents(trans, block_group, path); trans 558 fs/btrfs/free-space-tree.c static int free_space_next_bitmap(struct btrfs_trans_handle *trans, trans 575 fs/btrfs/free-space-tree.c return btrfs_search_prev_slot(trans, root, &key, p, 0, 1); trans 583 fs/btrfs/free-space-tree.c static int modify_free_space_bitmap(struct btrfs_trans_handle *trans, trans 607 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, 0, 1); trans 616 fs/btrfs/free-space-tree.c ret = free_space_next_bitmap(trans, root, path); trans 625 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, 0, 1); trans 643 fs/btrfs/free-space-tree.c ret = free_space_next_bitmap(trans, root, path); trans 656 fs/btrfs/free-space-tree.c ret = free_space_next_bitmap(trans, root, path); trans 689 fs/btrfs/free-space-tree.c ret = update_free_space_extent_count(trans, block_group, path, trans 696 fs/btrfs/free-space-tree.c static int remove_free_space_extent(struct btrfs_trans_handle *trans, trans 701 fs/btrfs/free-space-tree.c struct btrfs_root *root = trans->fs_info->free_space_root; trans 712 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, -1, 1); trans 744 fs/btrfs/free-space-tree.c ret = btrfs_del_item(trans, root, path); trans 755 fs/btrfs/free-space-tree.c ret = btrfs_insert_empty_item(trans, root, path, &key, 0); trans 768 fs/btrfs/free-space-tree.c ret = btrfs_insert_empty_item(trans, root, path, &key, 0); trans 775 fs/btrfs/free-space-tree.c ret = update_free_space_extent_count(trans, block_group, path, trans 783 fs/btrfs/free-space-tree.c int __remove_from_free_space_tree(struct btrfs_trans_handle *trans, trans 792 fs/btrfs/free-space-tree.c ret = __add_block_group_free_space(trans, block_group, path); trans 804 fs/btrfs/free-space-tree.c return modify_free_space_bitmap(trans, block_group, path, trans 807 fs/btrfs/free-space-tree.c return remove_free_space_extent(trans, block_group, path, trans 812 fs/btrfs/free-space-tree.c int remove_from_free_space_tree(struct btrfs_trans_handle *trans, trans 819 fs/btrfs/free-space-tree.c if (!btrfs_fs_compat_ro(trans->fs_info, FREE_SPACE_TREE)) trans 828 fs/btrfs/free-space-tree.c block_group = btrfs_lookup_block_group(trans->fs_info, start); trans 836 fs/btrfs/free-space-tree.c ret = __remove_from_free_space_tree(trans, block_group, path, start, trans 844 fs/btrfs/free-space-tree.c btrfs_abort_transaction(trans, ret); trans 848 fs/btrfs/free-space-tree.c static int add_free_space_extent(struct btrfs_trans_handle *trans, trans 853 fs/btrfs/free-space-tree.c struct btrfs_root *root = trans->fs_info->free_space_root; trans 889 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, -1, 1); trans 912 fs/btrfs/free-space-tree.c ret = btrfs_del_item(trans, root, path); trans 929 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, -1, 1); trans 953 fs/btrfs/free-space-tree.c ret = btrfs_del_item(trans, root, path); trans 963 fs/btrfs/free-space-tree.c ret = btrfs_insert_empty_item(trans, root, path, &new_key, 0); trans 968 fs/btrfs/free-space-tree.c ret = update_free_space_extent_count(trans, block_group, path, trans 976 fs/btrfs/free-space-tree.c int __add_to_free_space_tree(struct btrfs_trans_handle *trans, trans 985 fs/btrfs/free-space-tree.c ret = __add_block_group_free_space(trans, block_group, path); trans 997 fs/btrfs/free-space-tree.c return modify_free_space_bitmap(trans, block_group, path, trans 1000 fs/btrfs/free-space-tree.c return add_free_space_extent(trans, block_group, path, start, trans 1005 fs/btrfs/free-space-tree.c int add_to_free_space_tree(struct btrfs_trans_handle *trans, trans 1012 fs/btrfs/free-space-tree.c if (!btrfs_fs_compat_ro(trans->fs_info, FREE_SPACE_TREE)) trans 1021 fs/btrfs/free-space-tree.c block_group = btrfs_lookup_block_group(trans->fs_info, start); trans 1029 fs/btrfs/free-space-tree.c ret = __add_to_free_space_tree(trans, block_group, path, start, size); trans 1036 fs/btrfs/free-space-tree.c btrfs_abort_transaction(trans, ret); trans 1045 fs/btrfs/free-space-tree.c static int populate_free_space_tree(struct btrfs_trans_handle *trans, trans 1048 fs/btrfs/free-space-tree.c struct btrfs_root *extent_root = trans->fs_info->extent_root; trans 1065 fs/btrfs/free-space-tree.c ret = add_new_free_space_info(trans, block_group, path2); trans 1098 fs/btrfs/free-space-tree.c ret = __add_to_free_space_tree(trans, trans 1108 fs/btrfs/free-space-tree.c start += trans->fs_info->nodesize; trans 1123 fs/btrfs/free-space-tree.c ret = __add_to_free_space_tree(trans, block_group, path2, trans 1140 fs/btrfs/free-space-tree.c struct btrfs_trans_handle *trans; trans 1147 fs/btrfs/free-space-tree.c trans = btrfs_start_transaction(tree_root, 0); trans 1148 fs/btrfs/free-space-tree.c if (IS_ERR(trans)) trans 1149 fs/btrfs/free-space-tree.c return PTR_ERR(trans); trans 1152 fs/btrfs/free-space-tree.c free_space_root = btrfs_create_tree(trans, trans 1164 fs/btrfs/free-space-tree.c ret = populate_free_space_tree(trans, block_group); trans 1174 fs/btrfs/free-space-tree.c return btrfs_commit_transaction(trans); trans 1178 fs/btrfs/free-space-tree.c btrfs_abort_transaction(trans, ret); trans 1179 fs/btrfs/free-space-tree.c btrfs_end_transaction(trans); trans 1183 fs/btrfs/free-space-tree.c static int clear_free_space_tree(struct btrfs_trans_handle *trans, trans 1202 fs/btrfs/free-space-tree.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); trans 1211 fs/btrfs/free-space-tree.c ret = btrfs_del_items(trans, root, path, 0, nr); trans 1226 fs/btrfs/free-space-tree.c struct btrfs_trans_handle *trans; trans 1231 fs/btrfs/free-space-tree.c trans = btrfs_start_transaction(tree_root, 0); trans 1232 fs/btrfs/free-space-tree.c if (IS_ERR(trans)) trans 1233 fs/btrfs/free-space-tree.c return PTR_ERR(trans); trans 1239 fs/btrfs/free-space-tree.c ret = clear_free_space_tree(trans, free_space_root); trans 1243 fs/btrfs/free-space-tree.c ret = btrfs_del_root(trans, &free_space_root->root_key); trans 1252 fs/btrfs/free-space-tree.c btrfs_free_tree_block(trans, free_space_root, free_space_root->node, trans 1259 fs/btrfs/free-space-tree.c return btrfs_commit_transaction(trans); trans 1262 fs/btrfs/free-space-tree.c btrfs_abort_transaction(trans, ret); trans 1263 fs/btrfs/free-space-tree.c btrfs_end_transaction(trans); trans 1267 fs/btrfs/free-space-tree.c static int __add_block_group_free_space(struct btrfs_trans_handle *trans, trans 1275 fs/btrfs/free-space-tree.c ret = add_new_free_space_info(trans, block_group, path); trans 1279 fs/btrfs/free-space-tree.c return __add_to_free_space_tree(trans, block_group, path, trans 1284 fs/btrfs/free-space-tree.c int add_block_group_free_space(struct btrfs_trans_handle *trans, trans 1287 fs/btrfs/free-space-tree.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1304 fs/btrfs/free-space-tree.c ret = __add_block_group_free_space(trans, block_group, path); trans 1310 fs/btrfs/free-space-tree.c btrfs_abort_transaction(trans, ret); trans 1314 fs/btrfs/free-space-tree.c int remove_block_group_free_space(struct btrfs_trans_handle *trans, trans 1317 fs/btrfs/free-space-tree.c struct btrfs_root *root = trans->fs_info->free_space_root; trans 1325 fs/btrfs/free-space-tree.c if (!btrfs_fs_compat_ro(trans->fs_info, FREE_SPACE_TREE)) trans 1347 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, -1, 1); trans 1376 fs/btrfs/free-space-tree.c ret = btrfs_del_items(trans, root, path, path->slots[0], nr); trans 1386 fs/btrfs/free-space-tree.c btrfs_abort_transaction(trans, ret); trans 23 fs/btrfs/free-space-tree.h int add_block_group_free_space(struct btrfs_trans_handle *trans, trans 25 fs/btrfs/free-space-tree.h int remove_block_group_free_space(struct btrfs_trans_handle *trans, trans 27 fs/btrfs/free-space-tree.h int add_to_free_space_tree(struct btrfs_trans_handle *trans, trans 29 fs/btrfs/free-space-tree.h int remove_from_free_space_tree(struct btrfs_trans_handle *trans, trans 34 fs/btrfs/free-space-tree.h search_free_space_info(struct btrfs_trans_handle *trans, trans 37 fs/btrfs/free-space-tree.h int __add_to_free_space_tree(struct btrfs_trans_handle *trans, trans 40 fs/btrfs/free-space-tree.h int __remove_from_free_space_tree(struct btrfs_trans_handle *trans, trans 43 fs/btrfs/free-space-tree.h int convert_free_space_to_bitmaps(struct btrfs_trans_handle *trans, trans 46 fs/btrfs/free-space-tree.h int convert_free_space_to_extents(struct btrfs_trans_handle *trans, trans 74 fs/btrfs/inode-item.c btrfs_lookup_inode_extref(struct btrfs_trans_handle *trans, trans 88 fs/btrfs/inode-item.c ret = btrfs_search_slot(trans, root, &key, path, ins_len, cow); trans 98 fs/btrfs/inode-item.c static int btrfs_del_inode_extref(struct btrfs_trans_handle *trans, trans 124 fs/btrfs/inode-item.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); trans 153 fs/btrfs/inode-item.c ret = btrfs_del_item(trans, root, path); trans 171 fs/btrfs/inode-item.c int btrfs_del_inode_ref(struct btrfs_trans_handle *trans, trans 198 fs/btrfs/inode-item.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); trans 221 fs/btrfs/inode-item.c ret = btrfs_del_item(trans, root, path); trans 239 fs/btrfs/inode-item.c return btrfs_del_inode_extref(trans, root, name, name_len, trans 251 fs/btrfs/inode-item.c static int btrfs_insert_inode_extref(struct btrfs_trans_handle *trans, trans 274 fs/btrfs/inode-item.c ret = btrfs_insert_empty_item(trans, root, path, &key, trans 309 fs/btrfs/inode-item.c int btrfs_insert_inode_ref(struct btrfs_trans_handle *trans, trans 332 fs/btrfs/inode-item.c ret = btrfs_insert_empty_item(trans, root, path, &key, trans 379 fs/btrfs/inode-item.c ret = btrfs_insert_inode_extref(trans, root, name, trans 388 fs/btrfs/inode-item.c int btrfs_insert_empty_inode(struct btrfs_trans_handle *trans, trans 398 fs/btrfs/inode-item.c ret = btrfs_insert_empty_item(trans, root, path, &key, trans 403 fs/btrfs/inode-item.c int btrfs_lookup_inode(struct btrfs_trans_handle *trans, struct btrfs_root trans 414 fs/btrfs/inode-item.c ret = btrfs_search_slot(trans, root, location, path, ins_len, cow); trans 397 fs/btrfs/inode-map.c struct btrfs_trans_handle *trans) trans 428 fs/btrfs/inode-map.c rsv = trans->block_rsv; trans 429 fs/btrfs/inode-map.c trans->block_rsv = &fs_info->trans_block_rsv; trans 431 fs/btrfs/inode-map.c num_bytes = trans->bytes_reserved; trans 439 fs/btrfs/inode-map.c trans->bytes_reserved = btrfs_calc_insert_metadata_size(fs_info, 10); trans 440 fs/btrfs/inode-map.c ret = btrfs_block_rsv_add(root, trans->block_rsv, trans 441 fs/btrfs/inode-map.c trans->bytes_reserved, trans 445 fs/btrfs/inode-map.c trace_btrfs_space_reservation(fs_info, "ino_cache", trans->transid, trans 446 fs/btrfs/inode-map.c trans->bytes_reserved, 1); trans 458 fs/btrfs/inode-map.c ret = create_free_ino_inode(root, trans, path); trans 465 fs/btrfs/inode-map.c ret = btrfs_update_inode(trans, root, inode); trans 467 fs/btrfs/inode-map.c btrfs_abort_transaction(trans, ret); trans 472 fs/btrfs/inode-map.c ret = btrfs_truncate_free_space_cache(trans, NULL, inode); trans 475 fs/btrfs/inode-map.c btrfs_abort_transaction(trans, ret); trans 501 fs/btrfs/inode-map.c ret = btrfs_prealloc_file_range_trans(inode, trans, 0, 0, prealloc, trans 509 fs/btrfs/inode-map.c ret = btrfs_write_out_ino_cache(root, trans, path, inode); trans 514 fs/btrfs/inode-map.c trace_btrfs_space_reservation(fs_info, "ino_cache", trans->transid, trans 515 fs/btrfs/inode-map.c trans->bytes_reserved, 0); trans 516 fs/btrfs/inode-map.c btrfs_block_rsv_release(fs_info, trans->block_rsv, trans 517 fs/btrfs/inode-map.c trans->bytes_reserved); trans 519 fs/btrfs/inode-map.c trans->block_rsv = rsv; trans 520 fs/btrfs/inode-map.c trans->bytes_reserved = num_bytes; trans 11 fs/btrfs/inode-map.h struct btrfs_trans_handle *trans); trans 149 fs/btrfs/inode.c static int btrfs_init_inode_security(struct btrfs_trans_handle *trans, trans 155 fs/btrfs/inode.c err = btrfs_init_acl(trans, inode, dir); trans 157 fs/btrfs/inode.c err = btrfs_xattr_security_init(trans, inode, dir, qstr); trans 166 fs/btrfs/inode.c static int insert_inline_extent(struct btrfs_trans_handle *trans, trans 200 fs/btrfs/inode.c ret = btrfs_insert_empty_item(trans, root, path, &key, trans 208 fs/btrfs/inode.c btrfs_set_file_extent_generation(leaf, ei, trans->transid); trans 256 fs/btrfs/inode.c ret = btrfs_update_inode(trans, root, inode); trans 275 fs/btrfs/inode.c struct btrfs_trans_handle *trans; trans 303 fs/btrfs/inode.c trans = btrfs_join_transaction(root); trans 304 fs/btrfs/inode.c if (IS_ERR(trans)) { trans 306 fs/btrfs/inode.c return PTR_ERR(trans); trans 308 fs/btrfs/inode.c trans->block_rsv = &BTRFS_I(inode)->block_rsv; trans 317 fs/btrfs/inode.c ret = __btrfs_drop_extents(trans, root, inode, path, trans 321 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 327 fs/btrfs/inode.c ret = insert_inline_extent(trans, path, extent_inserted, trans 332 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 350 fs/btrfs/inode.c btrfs_end_transaction(trans); trans 2142 fs/btrfs/inode.c static noinline int add_pending_csums(struct btrfs_trans_handle *trans, trans 2149 fs/btrfs/inode.c trans->adding_csums = true; trans 2150 fs/btrfs/inode.c ret = btrfs_csum_file_blocks(trans, trans 2152 fs/btrfs/inode.c trans->adding_csums = false; trans 2359 fs/btrfs/inode.c static int insert_reserved_file_extent(struct btrfs_trans_handle *trans, trans 2388 fs/btrfs/inode.c ret = __btrfs_drop_extents(trans, root, inode, path, file_pos, trans 2400 fs/btrfs/inode.c ret = btrfs_insert_empty_item(trans, root, path, &ins, trans 2408 fs/btrfs/inode.c btrfs_set_file_extent_generation(leaf, fi, trans->transid); trans 2436 fs/btrfs/inode.c ret = btrfs_alloc_reserved_file_extent(trans, root, trans 2719 fs/btrfs/inode.c struct btrfs_trans_handle *trans; trans 2787 fs/btrfs/inode.c trans = btrfs_join_transaction(root); trans 2788 fs/btrfs/inode.c if (IS_ERR(trans)) { trans 2789 fs/btrfs/inode.c ret = PTR_ERR(trans); trans 2823 fs/btrfs/inode.c ret = btrfs_drop_extents(trans, root, inode, start, trans 2838 fs/btrfs/inode.c ret = btrfs_search_slot(trans, root, &key, path, 0, 1); trans 2866 fs/btrfs/inode.c ret = btrfs_insert_empty_item(trans, root, path, &key, trans 2869 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 2881 fs/btrfs/inode.c btrfs_set_file_extent_generation(leaf, item, trans->transid); trans 2895 fs/btrfs/inode.c ret = btrfs_inc_extent_ref(trans, &ref); trans 2897 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 2905 fs/btrfs/inode.c btrfs_end_transaction(trans); trans 3112 fs/btrfs/inode.c struct btrfs_trans_handle *trans = NULL; trans 3162 fs/btrfs/inode.c trans = btrfs_join_transaction_nolock(root); trans 3164 fs/btrfs/inode.c trans = btrfs_join_transaction(root); trans 3165 fs/btrfs/inode.c if (IS_ERR(trans)) { trans 3166 fs/btrfs/inode.c ret = PTR_ERR(trans); trans 3167 fs/btrfs/inode.c trans = NULL; trans 3170 fs/btrfs/inode.c trans->block_rsv = &BTRFS_I(inode)->block_rsv; trans 3171 fs/btrfs/inode.c ret = btrfs_update_inode_fallback(trans, root, inode); trans 3173 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 3197 fs/btrfs/inode.c trans = btrfs_join_transaction_nolock(root); trans 3199 fs/btrfs/inode.c trans = btrfs_join_transaction(root); trans 3200 fs/btrfs/inode.c if (IS_ERR(trans)) { trans 3201 fs/btrfs/inode.c ret = PTR_ERR(trans); trans 3202 fs/btrfs/inode.c trans = NULL; trans 3206 fs/btrfs/inode.c trans->block_rsv = &BTRFS_I(inode)->block_rsv; trans 3214 fs/btrfs/inode.c ret = btrfs_mark_extent_written(trans, BTRFS_I(inode), trans 3220 fs/btrfs/inode.c ret = insert_reserved_file_extent(trans, inode, trans 3236 fs/btrfs/inode.c trans->transid); trans 3238 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 3242 fs/btrfs/inode.c ret = add_pending_csums(trans, inode, &ordered_extent->list); trans 3244 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 3249 fs/btrfs/inode.c ret = btrfs_update_inode_fallback(trans, root, inode); trans 3251 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 3272 fs/btrfs/inode.c if (trans) trans 3273 fs/btrfs/inode.c btrfs_end_transaction(trans); trans 3517 fs/btrfs/inode.c int btrfs_orphan_add(struct btrfs_trans_handle *trans, trans 3522 fs/btrfs/inode.c ret = btrfs_insert_orphan_item(trans, inode->root, btrfs_ino(inode)); trans 3524 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 3535 fs/btrfs/inode.c static int btrfs_orphan_del(struct btrfs_trans_handle *trans, trans 3538 fs/btrfs/inode.c return btrfs_del_orphan_item(trans, inode->root, btrfs_ino(inode)); trans 3551 fs/btrfs/inode.c struct btrfs_trans_handle *trans; trans 3679 fs/btrfs/inode.c trans = btrfs_start_transaction(root, 1); trans 3680 fs/btrfs/inode.c if (IS_ERR(trans)) { trans 3681 fs/btrfs/inode.c ret = PTR_ERR(trans); trans 3686 fs/btrfs/inode.c ret = btrfs_del_orphan_item(trans, root, trans 3688 fs/btrfs/inode.c btrfs_end_transaction(trans); trans 3705 fs/btrfs/inode.c trans = btrfs_join_transaction(root); trans 3706 fs/btrfs/inode.c if (!IS_ERR(trans)) trans 3707 fs/btrfs/inode.c btrfs_end_transaction(trans); trans 3983 fs/btrfs/inode.c static void fill_inode_item(struct btrfs_trans_handle *trans, trans 4025 fs/btrfs/inode.c btrfs_set_token_inode_transid(leaf, item, trans->transid, &token); trans 4034 fs/btrfs/inode.c static noinline int btrfs_update_inode_item(struct btrfs_trans_handle *trans, trans 4047 fs/btrfs/inode.c ret = btrfs_lookup_inode(trans, root, path, &BTRFS_I(inode)->location, trans 4059 fs/btrfs/inode.c fill_inode_item(trans, leaf, inode_item, inode); trans 4061 fs/btrfs/inode.c btrfs_set_inode_last_trans(trans, inode); trans 4071 fs/btrfs/inode.c noinline int btrfs_update_inode(struct btrfs_trans_handle *trans, trans 4087 fs/btrfs/inode.c btrfs_update_root_times(trans, root); trans 4089 fs/btrfs/inode.c ret = btrfs_delayed_update_inode(trans, root, inode); trans 4091 fs/btrfs/inode.c btrfs_set_inode_last_trans(trans, inode); trans 4095 fs/btrfs/inode.c return btrfs_update_inode_item(trans, root, inode); trans 4098 fs/btrfs/inode.c noinline int btrfs_update_inode_fallback(struct btrfs_trans_handle *trans, trans 4104 fs/btrfs/inode.c ret = btrfs_update_inode(trans, root, inode); trans 4106 fs/btrfs/inode.c return btrfs_update_inode_item(trans, root, inode); trans 4115 fs/btrfs/inode.c static int __btrfs_unlink_inode(struct btrfs_trans_handle *trans, trans 4136 fs/btrfs/inode.c di = btrfs_lookup_dir_item(trans, root, path, dir_ino, trans 4142 fs/btrfs/inode.c ret = btrfs_delete_one_dir_name(trans, root, path, di); trans 4165 fs/btrfs/inode.c ret = btrfs_del_inode_ref(trans, root, name, name_len, ino, trans 4171 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 4175 fs/btrfs/inode.c ret = btrfs_delete_delayed_dir_index(trans, dir, index); trans 4177 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 4181 fs/btrfs/inode.c ret = btrfs_del_inode_ref_in_log(trans, root, name, name_len, inode, trans 4184 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 4188 fs/btrfs/inode.c ret = btrfs_del_dir_entries_in_log(trans, root, name, name_len, dir, trans 4193 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 4215 fs/btrfs/inode.c ret = btrfs_update_inode(trans, root, &dir->vfs_inode); trans 4220 fs/btrfs/inode.c int btrfs_unlink_inode(struct btrfs_trans_handle *trans, trans 4226 fs/btrfs/inode.c ret = __btrfs_unlink_inode(trans, root, dir, inode, name, name_len); trans 4229 fs/btrfs/inode.c ret = btrfs_update_inode(trans, root, &inode->vfs_inode); trans 4259 fs/btrfs/inode.c struct btrfs_trans_handle *trans; trans 4263 fs/btrfs/inode.c trans = __unlink_start_trans(dir); trans 4264 fs/btrfs/inode.c if (IS_ERR(trans)) trans 4265 fs/btrfs/inode.c return PTR_ERR(trans); trans 4267 fs/btrfs/inode.c btrfs_record_unlink_dir(trans, BTRFS_I(dir), BTRFS_I(d_inode(dentry)), trans 4270 fs/btrfs/inode.c ret = btrfs_unlink_inode(trans, root, BTRFS_I(dir), trans 4277 fs/btrfs/inode.c ret = btrfs_orphan_add(trans, BTRFS_I(inode)); trans 4283 fs/btrfs/inode.c btrfs_end_transaction(trans); trans 4288 fs/btrfs/inode.c static int btrfs_unlink_subvol(struct btrfs_trans_handle *trans, trans 4317 fs/btrfs/inode.c di = btrfs_lookup_dir_item(trans, root, path, dir_ino, trans 4327 fs/btrfs/inode.c ret = btrfs_delete_one_dir_name(trans, root, path, di); trans 4329 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 4351 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 4360 fs/btrfs/inode.c ret = btrfs_del_root_ref(trans, objectid, trans 4364 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 4369 fs/btrfs/inode.c ret = btrfs_delete_delayed_dir_index(trans, BTRFS_I(dir), index); trans 4371 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 4378 fs/btrfs/inode.c ret = btrfs_update_inode_fallback(trans, root, dir); trans 4380 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 4511 fs/btrfs/inode.c struct btrfs_trans_handle *trans; trans 4551 fs/btrfs/inode.c trans = btrfs_start_transaction(root, 0); trans 4552 fs/btrfs/inode.c if (IS_ERR(trans)) { trans 4553 fs/btrfs/inode.c err = PTR_ERR(trans); trans 4556 fs/btrfs/inode.c trans->block_rsv = &block_rsv; trans 4557 fs/btrfs/inode.c trans->bytes_reserved = block_rsv.size; trans 4559 fs/btrfs/inode.c btrfs_record_snapshot_destroy(trans, BTRFS_I(dir)); trans 4561 fs/btrfs/inode.c ret = btrfs_unlink_subvol(trans, dir, dentry); trans 4564 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 4568 fs/btrfs/inode.c btrfs_record_root_in_trans(trans, dest); trans 4576 fs/btrfs/inode.c ret = btrfs_insert_orphan_item(trans, trans 4580 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 4586 fs/btrfs/inode.c ret = btrfs_uuid_tree_remove(trans, dest->root_item.uuid, trans 4590 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 4595 fs/btrfs/inode.c ret = btrfs_uuid_tree_remove(trans, trans 4600 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 4607 fs/btrfs/inode.c trans->block_rsv = NULL; trans 4608 fs/btrfs/inode.c trans->bytes_reserved = 0; trans 4609 fs/btrfs/inode.c ret = btrfs_end_transaction(trans); trans 4643 fs/btrfs/inode.c struct btrfs_trans_handle *trans; trans 4651 fs/btrfs/inode.c trans = __unlink_start_trans(dir); trans 4652 fs/btrfs/inode.c if (IS_ERR(trans)) trans 4653 fs/btrfs/inode.c return PTR_ERR(trans); trans 4656 fs/btrfs/inode.c err = btrfs_unlink_subvol(trans, dir, dentry); trans 4660 fs/btrfs/inode.c err = btrfs_orphan_add(trans, BTRFS_I(inode)); trans 4667 fs/btrfs/inode.c err = btrfs_unlink_inode(trans, root, BTRFS_I(dir), trans 4683 fs/btrfs/inode.c if (last_unlink_trans >= trans->transid) trans 4687 fs/btrfs/inode.c btrfs_end_transaction(trans); trans 4710 fs/btrfs/inode.c int btrfs_truncate_inode_items(struct btrfs_trans_handle *trans, trans 4790 fs/btrfs/inode.c btrfs_should_end_transaction(trans)) { trans 4795 fs/btrfs/inode.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); trans 4953 fs/btrfs/inode.c ret = btrfs_free_extent(trans, &ref); trans 4955 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 4959 fs/btrfs/inode.c if (btrfs_should_throttle_delayed_refs(trans)) trans 4971 fs/btrfs/inode.c ret = btrfs_del_items(trans, root, path, trans 4975 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 5009 fs/btrfs/inode.c err = btrfs_del_items(trans, root, path, pending_del_slot, trans 5012 fs/btrfs/inode.c btrfs_abort_transaction(trans, err); trans 5155 fs/btrfs/inode.c struct btrfs_trans_handle *trans; trans 5174 fs/btrfs/inode.c trans = btrfs_start_transaction(root, 3); trans 5175 fs/btrfs/inode.c if (IS_ERR(trans)) trans 5176 fs/btrfs/inode.c return PTR_ERR(trans); trans 5178 fs/btrfs/inode.c ret = btrfs_drop_extents(trans, root, inode, offset, offset + len, 1); trans 5180 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 5181 fs/btrfs/inode.c btrfs_end_transaction(trans); trans 5185 fs/btrfs/inode.c ret = btrfs_insert_file_extent(trans, root, btrfs_ino(BTRFS_I(inode)), trans 5188 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 5190 fs/btrfs/inode.c btrfs_update_inode(trans, root, inode); trans 5191 fs/btrfs/inode.c btrfs_end_transaction(trans); trans 5297 fs/btrfs/inode.c struct btrfs_trans_handle *trans; trans 5331 fs/btrfs/inode.c trans = btrfs_start_transaction(root, 1); trans 5332 fs/btrfs/inode.c if (IS_ERR(trans)) { trans 5334 fs/btrfs/inode.c return PTR_ERR(trans); trans 5340 fs/btrfs/inode.c ret = btrfs_update_inode(trans, root, inode); trans 5342 fs/btrfs/inode.c btrfs_end_transaction(trans); trans 5511 fs/btrfs/inode.c struct btrfs_trans_handle *trans; trans 5544 fs/btrfs/inode.c trans = btrfs_join_transaction(root); trans 5545 fs/btrfs/inode.c if (IS_ERR(trans)) trans 5546 fs/btrfs/inode.c return trans; trans 5549 fs/btrfs/inode.c trans->block_rsv = &fs_info->trans_block_rsv; trans 5550 fs/btrfs/inode.c trans->bytes_reserved = delayed_refs_extra; trans 5551 fs/btrfs/inode.c btrfs_block_rsv_migrate(rsv, trans->block_rsv, trans 5554 fs/btrfs/inode.c return trans; trans 5560 fs/btrfs/inode.c struct btrfs_trans_handle *trans; trans 5607 fs/btrfs/inode.c trans = evict_refill_and_join(root, rsv); trans 5608 fs/btrfs/inode.c if (IS_ERR(trans)) trans 5611 fs/btrfs/inode.c trans->block_rsv = rsv; trans 5613 fs/btrfs/inode.c ret = btrfs_truncate_inode_items(trans, root, inode, 0, 0); trans 5614 fs/btrfs/inode.c trans->block_rsv = &fs_info->trans_block_rsv; trans 5615 fs/btrfs/inode.c btrfs_end_transaction(trans); trans 5632 fs/btrfs/inode.c trans = evict_refill_and_join(root, rsv); trans 5633 fs/btrfs/inode.c if (!IS_ERR(trans)) { trans 5634 fs/btrfs/inode.c trans->block_rsv = rsv; trans 5635 fs/btrfs/inode.c btrfs_orphan_del(trans, BTRFS_I(inode)); trans 5636 fs/btrfs/inode.c trans->block_rsv = &fs_info->trans_block_rsv; trans 5637 fs/btrfs/inode.c btrfs_end_transaction(trans); trans 6238 fs/btrfs/inode.c struct btrfs_trans_handle *trans; trans 6244 fs/btrfs/inode.c trans = btrfs_join_transaction(root); trans 6245 fs/btrfs/inode.c if (IS_ERR(trans)) trans 6246 fs/btrfs/inode.c return PTR_ERR(trans); trans 6248 fs/btrfs/inode.c ret = btrfs_update_inode(trans, root, inode); trans 6251 fs/btrfs/inode.c btrfs_end_transaction(trans); trans 6252 fs/btrfs/inode.c trans = btrfs_start_transaction(root, 1); trans 6253 fs/btrfs/inode.c if (IS_ERR(trans)) trans 6254 fs/btrfs/inode.c return PTR_ERR(trans); trans 6256 fs/btrfs/inode.c ret = btrfs_update_inode(trans, root, inode); trans 6258 fs/btrfs/inode.c btrfs_end_transaction(trans); trans 6411 fs/btrfs/inode.c static struct inode *btrfs_new_inode(struct btrfs_trans_handle *trans, trans 6476 fs/btrfs/inode.c BTRFS_I(inode)->generation = trans->transid; trans 6519 fs/btrfs/inode.c ret = btrfs_insert_empty_items(trans, root, path, key, sizes, nitems); trans 6535 fs/btrfs/inode.c fill_inode_item(trans, path->nodes[0], inode_item, inode); trans 6562 fs/btrfs/inode.c btrfs_set_inode_last_trans(trans, inode); trans 6564 fs/btrfs/inode.c btrfs_update_root_times(trans, root); trans 6566 fs/btrfs/inode.c ret = btrfs_inode_inherit_props(trans, inode, dir); trans 6589 fs/btrfs/inode.c int btrfs_add_link(struct btrfs_trans_handle *trans, trans 6608 fs/btrfs/inode.c ret = btrfs_add_root_ref(trans, key.objectid, trans 6612 fs/btrfs/inode.c ret = btrfs_insert_inode_ref(trans, root, name, name_len, ino, trans 6620 fs/btrfs/inode.c ret = btrfs_insert_dir_item(trans, name, name_len, parent_inode, &key, trans 6625 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 6644 fs/btrfs/inode.c ret = btrfs_update_inode(trans, root, &parent_inode->vfs_inode); trans 6646 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 6653 fs/btrfs/inode.c err = btrfs_del_root_ref(trans, key.objectid, trans 6657 fs/btrfs/inode.c btrfs_abort_transaction(trans, err); trans 6662 fs/btrfs/inode.c err = btrfs_del_inode_ref(trans, root, name, name_len, trans 6665 fs/btrfs/inode.c btrfs_abort_transaction(trans, err); trans 6672 fs/btrfs/inode.c static int btrfs_add_nondir(struct btrfs_trans_handle *trans, trans 6676 fs/btrfs/inode.c int err = btrfs_add_link(trans, dir, inode, trans 6688 fs/btrfs/inode.c struct btrfs_trans_handle *trans; trans 6700 fs/btrfs/inode.c trans = btrfs_start_transaction(root, 5); trans 6701 fs/btrfs/inode.c if (IS_ERR(trans)) trans 6702 fs/btrfs/inode.c return PTR_ERR(trans); trans 6708 fs/btrfs/inode.c inode = btrfs_new_inode(trans, root, dir, dentry->d_name.name, trans 6726 fs/btrfs/inode.c err = btrfs_init_inode_security(trans, inode, dir, &dentry->d_name); trans 6730 fs/btrfs/inode.c err = btrfs_add_nondir(trans, BTRFS_I(dir), dentry, BTRFS_I(inode), trans 6735 fs/btrfs/inode.c btrfs_update_inode(trans, root, inode); trans 6739 fs/btrfs/inode.c btrfs_end_transaction(trans); trans 6752 fs/btrfs/inode.c struct btrfs_trans_handle *trans; trans 6764 fs/btrfs/inode.c trans = btrfs_start_transaction(root, 5); trans 6765 fs/btrfs/inode.c if (IS_ERR(trans)) trans 6766 fs/btrfs/inode.c return PTR_ERR(trans); trans 6772 fs/btrfs/inode.c inode = btrfs_new_inode(trans, root, dir, dentry->d_name.name, trans 6790 fs/btrfs/inode.c err = btrfs_init_inode_security(trans, inode, dir, &dentry->d_name); trans 6794 fs/btrfs/inode.c err = btrfs_update_inode(trans, root, inode); trans 6798 fs/btrfs/inode.c err = btrfs_add_nondir(trans, BTRFS_I(dir), dentry, BTRFS_I(inode), trans 6807 fs/btrfs/inode.c btrfs_end_transaction(trans); trans 6819 fs/btrfs/inode.c struct btrfs_trans_handle *trans = NULL; trans 6844 fs/btrfs/inode.c trans = btrfs_start_transaction(root, inode->i_nlink ? 5 : 6); trans 6845 fs/btrfs/inode.c if (IS_ERR(trans)) { trans 6846 fs/btrfs/inode.c err = PTR_ERR(trans); trans 6847 fs/btrfs/inode.c trans = NULL; trans 6859 fs/btrfs/inode.c err = btrfs_add_nondir(trans, BTRFS_I(dir), dentry, BTRFS_I(inode), trans 6868 fs/btrfs/inode.c err = btrfs_update_inode(trans, root, inode); trans 6876 fs/btrfs/inode.c err = btrfs_orphan_del(trans, BTRFS_I(inode)); trans 6881 fs/btrfs/inode.c ret = btrfs_log_new_name(trans, BTRFS_I(inode), NULL, parent, trans 6884 fs/btrfs/inode.c err = btrfs_commit_transaction(trans); trans 6885 fs/btrfs/inode.c trans = NULL; trans 6890 fs/btrfs/inode.c if (trans) trans 6891 fs/btrfs/inode.c btrfs_end_transaction(trans); trans 6904 fs/btrfs/inode.c struct btrfs_trans_handle *trans; trans 6915 fs/btrfs/inode.c trans = btrfs_start_transaction(root, 5); trans 6916 fs/btrfs/inode.c if (IS_ERR(trans)) trans 6917 fs/btrfs/inode.c return PTR_ERR(trans); trans 6923 fs/btrfs/inode.c inode = btrfs_new_inode(trans, root, dir, dentry->d_name.name, trans 6936 fs/btrfs/inode.c err = btrfs_init_inode_security(trans, inode, dir, &dentry->d_name); trans 6941 fs/btrfs/inode.c err = btrfs_update_inode(trans, root, inode); trans 6945 fs/btrfs/inode.c err = btrfs_add_link(trans, BTRFS_I(dir), BTRFS_I(inode), trans 6954 fs/btrfs/inode.c btrfs_end_transaction(trans); trans 9203 fs/btrfs/inode.c struct btrfs_trans_handle *trans; trans 9252 fs/btrfs/inode.c trans = btrfs_start_transaction(root, 2); trans 9253 fs/btrfs/inode.c if (IS_ERR(trans)) { trans 9254 fs/btrfs/inode.c ret = PTR_ERR(trans); trans 9271 fs/btrfs/inode.c trans->block_rsv = rsv; trans 9274 fs/btrfs/inode.c ret = btrfs_truncate_inode_items(trans, root, inode, trans 9277 fs/btrfs/inode.c trans->block_rsv = &fs_info->trans_block_rsv; trans 9281 fs/btrfs/inode.c ret = btrfs_update_inode(trans, root, inode); trans 9285 fs/btrfs/inode.c btrfs_end_transaction(trans); trans 9288 fs/btrfs/inode.c trans = btrfs_start_transaction(root, 2); trans 9289 fs/btrfs/inode.c if (IS_ERR(trans)) { trans 9290 fs/btrfs/inode.c ret = PTR_ERR(trans); trans 9291 fs/btrfs/inode.c trans = NULL; trans 9299 fs/btrfs/inode.c trans->block_rsv = rsv; trans 9309 fs/btrfs/inode.c btrfs_end_transaction(trans); trans 9315 fs/btrfs/inode.c trans = btrfs_start_transaction(root, 1); trans 9316 fs/btrfs/inode.c if (IS_ERR(trans)) { trans 9317 fs/btrfs/inode.c ret = PTR_ERR(trans); trans 9323 fs/btrfs/inode.c if (trans) { trans 9326 fs/btrfs/inode.c trans->block_rsv = &fs_info->trans_block_rsv; trans 9327 fs/btrfs/inode.c ret2 = btrfs_update_inode(trans, root, inode); trans 9331 fs/btrfs/inode.c ret2 = btrfs_end_transaction(trans); trans 9345 fs/btrfs/inode.c int btrfs_create_subvol_root(struct btrfs_trans_handle *trans, trans 9354 fs/btrfs/inode.c inode = btrfs_new_inode(trans, new_root, NULL, "..", 2, trans 9367 fs/btrfs/inode.c err = btrfs_subvol_inherit_props(trans, new_root, parent_root); trans 9373 fs/btrfs/inode.c err = btrfs_update_inode(trans, new_root, inode); trans 9609 fs/btrfs/inode.c struct btrfs_trans_handle *trans; trans 9649 fs/btrfs/inode.c trans = btrfs_start_transaction(root, 12); trans 9650 fs/btrfs/inode.c if (IS_ERR(trans)) { trans 9651 fs/btrfs/inode.c ret = PTR_ERR(trans); trans 9656 fs/btrfs/inode.c btrfs_record_root_in_trans(trans, dest); trans 9675 fs/btrfs/inode.c btrfs_set_log_full_commit(trans); trans 9679 fs/btrfs/inode.c ret = btrfs_insert_inode_ref(trans, dest, trans 9692 fs/btrfs/inode.c btrfs_set_log_full_commit(trans); trans 9696 fs/btrfs/inode.c ret = btrfs_insert_inode_ref(trans, root, trans 9717 fs/btrfs/inode.c btrfs_record_unlink_dir(trans, BTRFS_I(old_dir), trans 9719 fs/btrfs/inode.c btrfs_record_unlink_dir(trans, BTRFS_I(new_dir), trans 9725 fs/btrfs/inode.c ret = btrfs_unlink_subvol(trans, old_dir, old_dentry); trans 9727 fs/btrfs/inode.c ret = __btrfs_unlink_inode(trans, root, BTRFS_I(old_dir), trans 9732 fs/btrfs/inode.c ret = btrfs_update_inode(trans, root, old_inode); trans 9735 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 9741 fs/btrfs/inode.c ret = btrfs_unlink_subvol(trans, new_dir, new_dentry); trans 9743 fs/btrfs/inode.c ret = __btrfs_unlink_inode(trans, dest, BTRFS_I(new_dir), trans 9748 fs/btrfs/inode.c ret = btrfs_update_inode(trans, dest, new_inode); trans 9751 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 9755 fs/btrfs/inode.c ret = btrfs_add_link(trans, BTRFS_I(new_dir), BTRFS_I(old_inode), trans 9759 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 9763 fs/btrfs/inode.c ret = btrfs_add_link(trans, BTRFS_I(old_dir), BTRFS_I(new_inode), trans 9767 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 9778 fs/btrfs/inode.c ret = btrfs_log_new_name(trans, BTRFS_I(old_inode), trans 9792 fs/btrfs/inode.c ret = btrfs_log_new_name(trans, BTRFS_I(new_inode), trans 9822 fs/btrfs/inode.c btrfs_set_log_full_commit(trans); trans 9834 fs/btrfs/inode.c ret = btrfs_sync_log(trans, BTRFS_I(old_inode)->root, trans 9840 fs/btrfs/inode.c ret = btrfs_sync_log(trans, BTRFS_I(new_inode)->root, trans 9858 fs/btrfs/inode.c ret = btrfs_commit_transaction(trans); trans 9862 fs/btrfs/inode.c ret2 = btrfs_end_transaction(trans); trans 9876 fs/btrfs/inode.c static int btrfs_whiteout_for_rename(struct btrfs_trans_handle *trans, trans 9890 fs/btrfs/inode.c inode = btrfs_new_inode(trans, root, dir, trans 9907 fs/btrfs/inode.c ret = btrfs_init_inode_security(trans, inode, dir, trans 9912 fs/btrfs/inode.c ret = btrfs_add_nondir(trans, BTRFS_I(dir), dentry, trans 9917 fs/btrfs/inode.c ret = btrfs_update_inode(trans, root, inode); trans 9932 fs/btrfs/inode.c struct btrfs_trans_handle *trans; trans 10005 fs/btrfs/inode.c trans = btrfs_start_transaction(root, trans_num_items); trans 10006 fs/btrfs/inode.c if (IS_ERR(trans)) { trans 10007 fs/btrfs/inode.c ret = PTR_ERR(trans); trans 10012 fs/btrfs/inode.c btrfs_record_root_in_trans(trans, dest); trans 10021 fs/btrfs/inode.c btrfs_set_log_full_commit(trans); trans 10025 fs/btrfs/inode.c ret = btrfs_insert_inode_ref(trans, dest, trans 10042 fs/btrfs/inode.c btrfs_record_unlink_dir(trans, BTRFS_I(old_dir), trans 10046 fs/btrfs/inode.c ret = btrfs_unlink_subvol(trans, old_dir, old_dentry); trans 10048 fs/btrfs/inode.c ret = __btrfs_unlink_inode(trans, root, BTRFS_I(old_dir), trans 10053 fs/btrfs/inode.c ret = btrfs_update_inode(trans, root, old_inode); trans 10056 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 10065 fs/btrfs/inode.c ret = btrfs_unlink_subvol(trans, new_dir, new_dentry); trans 10068 fs/btrfs/inode.c ret = btrfs_unlink_inode(trans, dest, BTRFS_I(new_dir), trans 10074 fs/btrfs/inode.c ret = btrfs_orphan_add(trans, trans 10077 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 10082 fs/btrfs/inode.c ret = btrfs_add_link(trans, BTRFS_I(new_dir), BTRFS_I(old_inode), trans 10086 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 10097 fs/btrfs/inode.c ret = btrfs_log_new_name(trans, BTRFS_I(old_inode), trans 10110 fs/btrfs/inode.c ret = btrfs_whiteout_for_rename(trans, root, old_dir, trans 10114 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 10136 fs/btrfs/inode.c btrfs_set_log_full_commit(trans); trans 10142 fs/btrfs/inode.c ret = btrfs_sync_log(trans, BTRFS_I(old_inode)->root, &ctx); trans 10151 fs/btrfs/inode.c ret = btrfs_commit_transaction(trans); trans 10155 fs/btrfs/inode.c ret2 = btrfs_end_transaction(trans); trans 10352 fs/btrfs/inode.c struct btrfs_trans_handle *trans; trans 10377 fs/btrfs/inode.c trans = btrfs_start_transaction(root, 7); trans 10378 fs/btrfs/inode.c if (IS_ERR(trans)) trans 10379 fs/btrfs/inode.c return PTR_ERR(trans); trans 10385 fs/btrfs/inode.c inode = btrfs_new_inode(trans, root, dir, dentry->d_name.name, trans 10405 fs/btrfs/inode.c err = btrfs_init_inode_security(trans, inode, dir, &dentry->d_name); trans 10418 fs/btrfs/inode.c err = btrfs_insert_empty_item(trans, root, path, &key, trans 10427 fs/btrfs/inode.c btrfs_set_file_extent_generation(leaf, ei, trans->transid); trans 10444 fs/btrfs/inode.c err = btrfs_update_inode(trans, root, inode); trans 10451 fs/btrfs/inode.c err = btrfs_add_nondir(trans, BTRFS_I(dir), dentry, trans 10459 fs/btrfs/inode.c btrfs_end_transaction(trans); trans 10471 fs/btrfs/inode.c struct btrfs_trans_handle *trans) trans 10487 fs/btrfs/inode.c if (trans) trans 10491 fs/btrfs/inode.c trans = btrfs_start_transaction(root, 3); trans 10492 fs/btrfs/inode.c if (IS_ERR(trans)) { trans 10493 fs/btrfs/inode.c ret = PTR_ERR(trans); trans 10511 fs/btrfs/inode.c btrfs_end_transaction(trans); trans 10526 fs/btrfs/inode.c ret = insert_reserved_file_extent(trans, inode, trans 10534 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 10536 fs/btrfs/inode.c btrfs_end_transaction(trans); trans 10559 fs/btrfs/inode.c em->generation = trans->transid; trans 10591 fs/btrfs/inode.c ret = btrfs_update_inode(trans, root, inode); trans 10594 fs/btrfs/inode.c btrfs_abort_transaction(trans, ret); trans 10596 fs/btrfs/inode.c btrfs_end_transaction(trans); trans 10601 fs/btrfs/inode.c btrfs_end_transaction(trans); trans 10619 fs/btrfs/inode.c struct btrfs_trans_handle *trans, int mode, trans 10624 fs/btrfs/inode.c min_size, actual_len, alloc_hint, trans); trans 10650 fs/btrfs/inode.c struct btrfs_trans_handle *trans; trans 10660 fs/btrfs/inode.c trans = btrfs_start_transaction(root, 5); trans 10661 fs/btrfs/inode.c if (IS_ERR(trans)) trans 10662 fs/btrfs/inode.c return PTR_ERR(trans); trans 10668 fs/btrfs/inode.c inode = btrfs_new_inode(trans, root, dir, NULL, 0, trans 10682 fs/btrfs/inode.c ret = btrfs_init_inode_security(trans, inode, dir, NULL); trans 10686 fs/btrfs/inode.c ret = btrfs_update_inode(trans, root, inode); trans 10689 fs/btrfs/inode.c ret = btrfs_orphan_add(trans, BTRFS_I(inode)); trans 10705 fs/btrfs/inode.c btrfs_end_transaction(trans); trans 192 fs/btrfs/ioctl.c struct btrfs_trans_handle *trans; trans 302 fs/btrfs/ioctl.c trans = btrfs_start_transaction(root, 3); trans 303 fs/btrfs/ioctl.c if (IS_ERR(trans)) { trans 304 fs/btrfs/ioctl.c ret = PTR_ERR(trans); trans 309 fs/btrfs/ioctl.c ret = btrfs_set_prop(trans, inode, "btrfs.compression", comp, trans 312 fs/btrfs/ioctl.c btrfs_abort_transaction(trans, ret); trans 316 fs/btrfs/ioctl.c ret = btrfs_set_prop(trans, inode, "btrfs.compression", NULL, trans 319 fs/btrfs/ioctl.c btrfs_abort_transaction(trans, ret); trans 328 fs/btrfs/ioctl.c ret = btrfs_update_inode(trans, root, inode); trans 331 fs/btrfs/ioctl.c btrfs_end_transaction(trans); trans 391 fs/btrfs/ioctl.c struct btrfs_trans_handle *trans; trans 450 fs/btrfs/ioctl.c trans = btrfs_start_transaction(root, 1); trans 451 fs/btrfs/ioctl.c if (IS_ERR(trans)) { trans 452 fs/btrfs/ioctl.c ret = PTR_ERR(trans); trans 459 fs/btrfs/ioctl.c ret = btrfs_update_inode(trans, root, inode); trans 461 fs/btrfs/ioctl.c btrfs_end_transaction(trans); trans 562 fs/btrfs/ioctl.c struct btrfs_trans_handle *trans; trans 605 fs/btrfs/ioctl.c trans = btrfs_start_transaction(root, 0); trans 606 fs/btrfs/ioctl.c if (IS_ERR(trans)) { trans 607 fs/btrfs/ioctl.c ret = PTR_ERR(trans); trans 611 fs/btrfs/ioctl.c trans->block_rsv = &block_rsv; trans 612 fs/btrfs/ioctl.c trans->bytes_reserved = block_rsv.size; trans 614 fs/btrfs/ioctl.c ret = btrfs_qgroup_inherit(trans, 0, objectid, inherit); trans 618 fs/btrfs/ioctl.c leaf = btrfs_alloc_tree_block(trans, root, 0, objectid, NULL, 0, 0, 0); trans 639 fs/btrfs/ioctl.c btrfs_set_root_generation(root_item, trans->transid); trans 652 fs/btrfs/ioctl.c btrfs_set_root_ctransid(root_item, trans->transid); trans 653 fs/btrfs/ioctl.c btrfs_set_root_otransid(root_item, trans->transid); trans 664 fs/btrfs/ioctl.c ret = btrfs_insert_root(trans, fs_info->tree_root, &key, trans 673 fs/btrfs/ioctl.c btrfs_abort_transaction(trans, ret); trans 677 fs/btrfs/ioctl.c btrfs_record_root_in_trans(trans, new_root); trans 679 fs/btrfs/ioctl.c ret = btrfs_create_subvol_root(trans, new_root, root, new_dirid); trans 682 fs/btrfs/ioctl.c btrfs_abort_transaction(trans, ret); trans 695 fs/btrfs/ioctl.c btrfs_abort_transaction(trans, ret); trans 699 fs/btrfs/ioctl.c ret = btrfs_insert_dir_item(trans, name, namelen, BTRFS_I(dir), &key, trans 702 fs/btrfs/ioctl.c btrfs_abort_transaction(trans, ret); trans 707 fs/btrfs/ioctl.c ret = btrfs_update_inode(trans, root, dir); trans 709 fs/btrfs/ioctl.c btrfs_abort_transaction(trans, ret); trans 713 fs/btrfs/ioctl.c ret = btrfs_add_root_ref(trans, objectid, root->root_key.objectid, trans 716 fs/btrfs/ioctl.c btrfs_abort_transaction(trans, ret); trans 720 fs/btrfs/ioctl.c ret = btrfs_uuid_tree_add(trans, root_item->uuid, trans 723 fs/btrfs/ioctl.c btrfs_abort_transaction(trans, ret); trans 727 fs/btrfs/ioctl.c trans->block_rsv = NULL; trans 728 fs/btrfs/ioctl.c trans->bytes_reserved = 0; trans 732 fs/btrfs/ioctl.c *async_transid = trans->transid; trans 733 fs/btrfs/ioctl.c err = btrfs_commit_transaction_async(trans, 1); trans 735 fs/btrfs/ioctl.c err = btrfs_commit_transaction(trans); trans 737 fs/btrfs/ioctl.c err = btrfs_commit_transaction(trans); trans 763 fs/btrfs/ioctl.c struct btrfs_trans_handle *trans; trans 835 fs/btrfs/ioctl.c trans = btrfs_start_transaction(root, 0); trans 836 fs/btrfs/ioctl.c if (IS_ERR(trans)) { trans 837 fs/btrfs/ioctl.c ret = PTR_ERR(trans); trans 843 fs/btrfs/ioctl.c &trans->transaction->pending_snapshots); trans 846 fs/btrfs/ioctl.c *async_transid = trans->transid; trans 847 fs/btrfs/ioctl.c ret = btrfs_commit_transaction_async(trans, 1); trans 849 fs/btrfs/ioctl.c ret = btrfs_commit_transaction(trans); trans 851 fs/btrfs/ioctl.c ret = btrfs_commit_transaction(trans); trans 1606 fs/btrfs/ioctl.c struct btrfs_trans_handle *trans; trans 1719 fs/btrfs/ioctl.c trans = btrfs_start_transaction(root, 0); trans 1720 fs/btrfs/ioctl.c if (IS_ERR(trans)) { trans 1721 fs/btrfs/ioctl.c ret = PTR_ERR(trans); trans 1724 fs/btrfs/ioctl.c ret = btrfs_grow_device(trans, device, new_size); trans 1725 fs/btrfs/ioctl.c btrfs_commit_transaction(trans); trans 1918 fs/btrfs/ioctl.c struct btrfs_trans_handle *trans; trans 1980 fs/btrfs/ioctl.c trans = btrfs_start_transaction(root, 1); trans 1981 fs/btrfs/ioctl.c if (IS_ERR(trans)) { trans 1982 fs/btrfs/ioctl.c ret = PTR_ERR(trans); trans 1986 fs/btrfs/ioctl.c ret = btrfs_update_root(trans, fs_info->tree_root, trans 1989 fs/btrfs/ioctl.c btrfs_end_transaction(trans); trans 1993 fs/btrfs/ioctl.c ret = btrfs_commit_transaction(trans); trans 3306 fs/btrfs/ioctl.c static int clone_finish_inode_update(struct btrfs_trans_handle *trans, trans 3328 fs/btrfs/ioctl.c ret = btrfs_update_inode(trans, root, inode); trans 3330 fs/btrfs/ioctl.c btrfs_abort_transaction(trans, ret); trans 3331 fs/btrfs/ioctl.c btrfs_end_transaction(trans); trans 3334 fs/btrfs/ioctl.c ret = btrfs_end_transaction(trans); trans 3365 fs/btrfs/ioctl.c struct btrfs_trans_handle *trans, trans 3461 fs/btrfs/ioctl.c ret = btrfs_drop_extents(trans, root, dst, drop_start, aligned_end, 1); trans 3464 fs/btrfs/ioctl.c ret = btrfs_insert_empty_item(trans, root, path, new_key, size); trans 3503 fs/btrfs/ioctl.c struct btrfs_trans_handle *trans; trans 3662 fs/btrfs/ioctl.c &clone_info, &trans); trans 3692 fs/btrfs/ioctl.c trans = btrfs_start_transaction(root, 3); trans 3693 fs/btrfs/ioctl.c if (IS_ERR(trans)) { trans 3694 fs/btrfs/ioctl.c ret = PTR_ERR(trans); trans 3698 fs/btrfs/ioctl.c ret = clone_copy_inline_extent(inode, trans, path, trans 3703 fs/btrfs/ioctl.c btrfs_abort_transaction(trans, ret); trans 3704 fs/btrfs/ioctl.c btrfs_end_transaction(trans); trans 3713 fs/btrfs/ioctl.c ret = clone_finish_inode_update(trans, inode, last_dest_end, trans 3742 fs/btrfs/ioctl.c NULL, &trans); trans 3746 fs/btrfs/ioctl.c ret = clone_finish_inode_update(trans, inode, destoff + len, trans 3958 fs/btrfs/ioctl.c struct btrfs_trans_handle *trans; trans 4002 fs/btrfs/ioctl.c trans = btrfs_start_transaction(root, 1); trans 4003 fs/btrfs/ioctl.c if (IS_ERR(trans)) { trans 4005 fs/btrfs/ioctl.c ret = PTR_ERR(trans); trans 4010 fs/btrfs/ioctl.c di = btrfs_lookup_dir_item(trans, fs_info->tree_root, path, trans 4014 fs/btrfs/ioctl.c btrfs_end_transaction(trans); trans 4027 fs/btrfs/ioctl.c btrfs_end_transaction(trans); trans 4195 fs/btrfs/ioctl.c struct btrfs_trans_handle *trans; trans 4199 fs/btrfs/ioctl.c trans = btrfs_attach_transaction_barrier(root); trans 4200 fs/btrfs/ioctl.c if (IS_ERR(trans)) { trans 4201 fs/btrfs/ioctl.c if (PTR_ERR(trans) != -ENOENT) trans 4202 fs/btrfs/ioctl.c return PTR_ERR(trans); trans 4208 fs/btrfs/ioctl.c transid = trans->transid; trans 4209 fs/btrfs/ioctl.c ret = btrfs_commit_transaction_async(trans, 0); trans 4211 fs/btrfs/ioctl.c btrfs_end_transaction(trans); trans 4791 fs/btrfs/ioctl.c struct btrfs_trans_handle *trans; trans 4808 fs/btrfs/ioctl.c trans = btrfs_join_transaction(root); trans 4809 fs/btrfs/ioctl.c if (IS_ERR(trans)) { trans 4810 fs/btrfs/ioctl.c ret = PTR_ERR(trans); trans 4815 fs/btrfs/ioctl.c ret = btrfs_add_qgroup_relation(trans, sa->src, sa->dst); trans 4817 fs/btrfs/ioctl.c ret = btrfs_del_qgroup_relation(trans, sa->src, sa->dst); trans 4821 fs/btrfs/ioctl.c err = btrfs_run_qgroups(trans); trans 4825 fs/btrfs/ioctl.c err = btrfs_end_transaction(trans); trans 4841 fs/btrfs/ioctl.c struct btrfs_trans_handle *trans; trans 4863 fs/btrfs/ioctl.c trans = btrfs_join_transaction(root); trans 4864 fs/btrfs/ioctl.c if (IS_ERR(trans)) { trans 4865 fs/btrfs/ioctl.c ret = PTR_ERR(trans); trans 4870 fs/btrfs/ioctl.c ret = btrfs_create_qgroup(trans, sa->qgroupid); trans 4872 fs/btrfs/ioctl.c ret = btrfs_remove_qgroup(trans, sa->qgroupid); trans 4875 fs/btrfs/ioctl.c err = btrfs_end_transaction(trans); trans 4891 fs/btrfs/ioctl.c struct btrfs_trans_handle *trans; trans 4909 fs/btrfs/ioctl.c trans = btrfs_join_transaction(root); trans 4910 fs/btrfs/ioctl.c if (IS_ERR(trans)) { trans 4911 fs/btrfs/ioctl.c ret = PTR_ERR(trans); trans 4921 fs/btrfs/ioctl.c ret = btrfs_limit_qgroup(trans, qgroupid, &sa->lim); trans 4923 fs/btrfs/ioctl.c err = btrfs_end_transaction(trans); trans 5012 fs/btrfs/ioctl.c struct btrfs_trans_handle *trans; trans 5040 fs/btrfs/ioctl.c trans = btrfs_start_transaction(root, 3); trans 5041 fs/btrfs/ioctl.c if (IS_ERR(trans)) { trans 5042 fs/btrfs/ioctl.c ret = PTR_ERR(trans); trans 5043 fs/btrfs/ioctl.c trans = NULL; trans 5047 fs/btrfs/ioctl.c sa->rtransid = trans->transid; trans 5055 fs/btrfs/ioctl.c ret = btrfs_uuid_tree_remove(trans, root_item->received_uuid, trans 5059 fs/btrfs/ioctl.c btrfs_abort_transaction(trans, ret); trans 5060 fs/btrfs/ioctl.c btrfs_end_transaction(trans); trans 5072 fs/btrfs/ioctl.c ret = btrfs_update_root(trans, fs_info->tree_root, trans 5075 fs/btrfs/ioctl.c btrfs_end_transaction(trans); trans 5079 fs/btrfs/ioctl.c ret = btrfs_uuid_tree_add(trans, sa->uuid, trans 5083 fs/btrfs/ioctl.c btrfs_abort_transaction(trans, ret); trans 5084 fs/btrfs/ioctl.c btrfs_end_transaction(trans); trans 5088 fs/btrfs/ioctl.c ret = btrfs_commit_transaction(trans); trans 5201 fs/btrfs/ioctl.c struct btrfs_trans_handle *trans; trans 5222 fs/btrfs/ioctl.c trans = btrfs_start_transaction(root, 0); trans 5223 fs/btrfs/ioctl.c if (IS_ERR(trans)) { trans 5224 fs/btrfs/ioctl.c ret = PTR_ERR(trans); trans 5231 fs/btrfs/ioctl.c ret = btrfs_commit_transaction(trans); trans 5346 fs/btrfs/ioctl.c struct btrfs_trans_handle *trans; trans 5380 fs/btrfs/ioctl.c trans = btrfs_start_transaction(root, 0); trans 5381 fs/btrfs/ioctl.c if (IS_ERR(trans)) { trans 5382 fs/btrfs/ioctl.c ret = PTR_ERR(trans); trans 5403 fs/btrfs/ioctl.c ret = btrfs_commit_transaction(trans); trans 9 fs/btrfs/orphan.c int btrfs_insert_orphan_item(struct btrfs_trans_handle *trans, trans 24 fs/btrfs/orphan.c ret = btrfs_insert_empty_item(trans, root, path, &key, 0); trans 30 fs/btrfs/orphan.c int btrfs_del_orphan_item(struct btrfs_trans_handle *trans, trans 45 fs/btrfs/orphan.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); trans 53 fs/btrfs/orphan.c ret = btrfs_del_item(trans, root, path); trans 75 fs/btrfs/props.c int btrfs_set_prop(struct btrfs_trans_handle *trans, struct inode *inode, trans 87 fs/btrfs/props.c ret = btrfs_setxattr(trans, inode, handler->xattr_name, trans 98 fs/btrfs/props.c ret = btrfs_setxattr(trans, inode, handler->xattr_name, value, trans 104 fs/btrfs/props.c btrfs_setxattr(trans, inode, handler->xattr_name, NULL, trans 323 fs/btrfs/props.c static int inherit_props(struct btrfs_trans_handle *trans, trans 366 fs/btrfs/props.c ret = btrfs_block_rsv_add(root, trans->block_rsv, trans 372 fs/btrfs/props.c ret = btrfs_setxattr(trans, inode, h->xattr_name, value, trans 377 fs/btrfs/props.c btrfs_setxattr(trans, inode, h->xattr_name, trans 385 fs/btrfs/props.c btrfs_block_rsv_release(fs_info, trans->block_rsv, trans 396 fs/btrfs/props.c int btrfs_inode_inherit_props(struct btrfs_trans_handle *trans, trans 403 fs/btrfs/props.c return inherit_props(trans, inode, dir); trans 406 fs/btrfs/props.c int btrfs_subvol_inherit_props(struct btrfs_trans_handle *trans, trans 429 fs/btrfs/props.c ret = inherit_props(trans, child_inode, parent_inode); trans 13 fs/btrfs/props.h int btrfs_set_prop(struct btrfs_trans_handle *trans, struct inode *inode, trans 20 fs/btrfs/props.h int btrfs_inode_inherit_props(struct btrfs_trans_handle *trans, trans 24 fs/btrfs/props.h int btrfs_subvol_inherit_props(struct btrfs_trans_handle *trans, trans 533 fs/btrfs/qgroup.c static int add_qgroup_relation_item(struct btrfs_trans_handle *trans, u64 src, trans 537 fs/btrfs/qgroup.c struct btrfs_root *quota_root = trans->fs_info->quota_root; trans 549 fs/btrfs/qgroup.c ret = btrfs_insert_empty_item(trans, quota_root, path, &key, 0); trans 557 fs/btrfs/qgroup.c static int del_qgroup_relation_item(struct btrfs_trans_handle *trans, u64 src, trans 561 fs/btrfs/qgroup.c struct btrfs_root *quota_root = trans->fs_info->quota_root; trans 573 fs/btrfs/qgroup.c ret = btrfs_search_slot(trans, quota_root, &key, path, -1, 1); trans 582 fs/btrfs/qgroup.c ret = btrfs_del_item(trans, quota_root, path); trans 588 fs/btrfs/qgroup.c static int add_qgroup_item(struct btrfs_trans_handle *trans, trans 615 fs/btrfs/qgroup.c ret = btrfs_insert_empty_item(trans, quota_root, path, &key, trans 623 fs/btrfs/qgroup.c btrfs_set_qgroup_info_generation(leaf, qgroup_info, trans->transid); trans 634 fs/btrfs/qgroup.c ret = btrfs_insert_empty_item(trans, quota_root, path, &key, trans 656 fs/btrfs/qgroup.c static int del_qgroup_item(struct btrfs_trans_handle *trans, u64 qgroupid) trans 659 fs/btrfs/qgroup.c struct btrfs_root *quota_root = trans->fs_info->quota_root; trans 670 fs/btrfs/qgroup.c ret = btrfs_search_slot(trans, quota_root, &key, path, -1, 1); trans 679 fs/btrfs/qgroup.c ret = btrfs_del_item(trans, quota_root, path); trans 686 fs/btrfs/qgroup.c ret = btrfs_search_slot(trans, quota_root, &key, path, -1, 1); trans 695 fs/btrfs/qgroup.c ret = btrfs_del_item(trans, quota_root, path); trans 702 fs/btrfs/qgroup.c static int update_qgroup_limit_item(struct btrfs_trans_handle *trans, trans 705 fs/btrfs/qgroup.c struct btrfs_root *quota_root = trans->fs_info->quota_root; trans 721 fs/btrfs/qgroup.c ret = btrfs_search_slot(trans, quota_root, &key, path, 0, 1); trans 744 fs/btrfs/qgroup.c static int update_qgroup_info_item(struct btrfs_trans_handle *trans, trans 747 fs/btrfs/qgroup.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 767 fs/btrfs/qgroup.c ret = btrfs_search_slot(trans, quota_root, &key, path, 0, 1); trans 777 fs/btrfs/qgroup.c btrfs_set_qgroup_info_generation(l, qgroup_info, trans->transid); trans 790 fs/btrfs/qgroup.c static int update_qgroup_status_item(struct btrfs_trans_handle *trans) trans 792 fs/btrfs/qgroup.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 809 fs/btrfs/qgroup.c ret = btrfs_search_slot(trans, quota_root, &key, path, 0, 1); trans 820 fs/btrfs/qgroup.c btrfs_set_qgroup_status_generation(l, ptr, trans->transid); trans 834 fs/btrfs/qgroup.c static int btrfs_clean_quota_tree(struct btrfs_trans_handle *trans, trans 854 fs/btrfs/qgroup.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); trans 867 fs/btrfs/qgroup.c ret = btrfs_del_items(trans, root, path, 0, nr); trans 889 fs/btrfs/qgroup.c struct btrfs_trans_handle *trans = NULL; trans 911 fs/btrfs/qgroup.c trans = btrfs_start_transaction(tree_root, 2); trans 912 fs/btrfs/qgroup.c if (IS_ERR(trans)) { trans 913 fs/btrfs/qgroup.c ret = PTR_ERR(trans); trans 914 fs/btrfs/qgroup.c trans = NULL; trans 921 fs/btrfs/qgroup.c quota_root = btrfs_create_tree(trans, BTRFS_QUOTA_TREE_OBJECTID); trans 924 fs/btrfs/qgroup.c btrfs_abort_transaction(trans, ret); trans 931 fs/btrfs/qgroup.c btrfs_abort_transaction(trans, ret); trans 939 fs/btrfs/qgroup.c ret = btrfs_insert_empty_item(trans, quota_root, path, &key, trans 942 fs/btrfs/qgroup.c btrfs_abort_transaction(trans, ret); trans 949 fs/btrfs/qgroup.c btrfs_set_qgroup_status_generation(leaf, ptr, trans->transid); trans 967 fs/btrfs/qgroup.c btrfs_abort_transaction(trans, ret); trans 977 fs/btrfs/qgroup.c ret = add_qgroup_item(trans, quota_root, trans 980 fs/btrfs/qgroup.c btrfs_abort_transaction(trans, ret); trans 987 fs/btrfs/qgroup.c btrfs_abort_transaction(trans, ret); trans 993 fs/btrfs/qgroup.c btrfs_abort_transaction(trans, ret); trans 1002 fs/btrfs/qgroup.c ret = add_qgroup_item(trans, quota_root, BTRFS_FS_TREE_OBJECTID); trans 1004 fs/btrfs/qgroup.c btrfs_abort_transaction(trans, ret); trans 1011 fs/btrfs/qgroup.c btrfs_abort_transaction(trans, ret); trans 1015 fs/btrfs/qgroup.c ret = btrfs_commit_transaction(trans); trans 1016 fs/btrfs/qgroup.c trans = NULL; trans 1050 fs/btrfs/qgroup.c if (trans) trans 1051 fs/btrfs/qgroup.c btrfs_end_transaction(trans); trans 1060 fs/btrfs/qgroup.c struct btrfs_trans_handle *trans = NULL; trans 1073 fs/btrfs/qgroup.c trans = btrfs_start_transaction(fs_info->tree_root, 1); trans 1074 fs/btrfs/qgroup.c if (IS_ERR(trans)) { trans 1075 fs/btrfs/qgroup.c ret = PTR_ERR(trans); trans 1089 fs/btrfs/qgroup.c ret = btrfs_clean_quota_tree(trans, quota_root); trans 1091 fs/btrfs/qgroup.c btrfs_abort_transaction(trans, ret); trans 1095 fs/btrfs/qgroup.c ret = btrfs_del_root(trans, "a_root->root_key); trans 1097 fs/btrfs/qgroup.c btrfs_abort_transaction(trans, ret); trans 1106 fs/btrfs/qgroup.c btrfs_free_tree_block(trans, quota_root, quota_root->node, 0, 1); trans 1113 fs/btrfs/qgroup.c ret = btrfs_end_transaction(trans); trans 1243 fs/btrfs/qgroup.c int btrfs_add_qgroup_relation(struct btrfs_trans_handle *trans, u64 src, trans 1246 fs/btrfs/qgroup.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1283 fs/btrfs/qgroup.c ret = add_qgroup_relation_item(trans, src, dst); trans 1287 fs/btrfs/qgroup.c ret = add_qgroup_relation_item(trans, dst, src); trans 1289 fs/btrfs/qgroup.c del_qgroup_relation_item(trans, src, dst); trans 1307 fs/btrfs/qgroup.c static int __del_qgroup_relation(struct btrfs_trans_handle *trans, u64 src, trans 1310 fs/btrfs/qgroup.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1348 fs/btrfs/qgroup.c ret = del_qgroup_relation_item(trans, src, dst); trans 1351 fs/btrfs/qgroup.c ret2 = del_qgroup_relation_item(trans, dst, src); trans 1370 fs/btrfs/qgroup.c int btrfs_del_qgroup_relation(struct btrfs_trans_handle *trans, u64 src, trans 1373 fs/btrfs/qgroup.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1377 fs/btrfs/qgroup.c ret = __del_qgroup_relation(trans, src, dst); trans 1383 fs/btrfs/qgroup.c int btrfs_create_qgroup(struct btrfs_trans_handle *trans, u64 qgroupid) trans 1385 fs/btrfs/qgroup.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1402 fs/btrfs/qgroup.c ret = add_qgroup_item(trans, quota_root, qgroupid); trans 1417 fs/btrfs/qgroup.c int btrfs_remove_qgroup(struct btrfs_trans_handle *trans, u64 qgroupid) trans 1419 fs/btrfs/qgroup.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1444 fs/btrfs/qgroup.c ret = del_qgroup_item(trans, qgroupid); trans 1451 fs/btrfs/qgroup.c ret = __del_qgroup_relation(trans, qgroupid, trans 1465 fs/btrfs/qgroup.c int btrfs_limit_qgroup(struct btrfs_trans_handle *trans, u64 qgroupid, trans 1468 fs/btrfs/qgroup.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1532 fs/btrfs/qgroup.c ret = update_qgroup_limit_item(trans, qgroup); trans 1606 fs/btrfs/qgroup.c int btrfs_qgroup_trace_extent(struct btrfs_trans_handle *trans, u64 bytenr, trans 1609 fs/btrfs/qgroup.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1621 fs/btrfs/qgroup.c delayed_refs = &trans->transaction->delayed_refs; trans 1636 fs/btrfs/qgroup.c int btrfs_qgroup_trace_leaf_items(struct btrfs_trans_handle *trans, trans 1639 fs/btrfs/qgroup.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1669 fs/btrfs/qgroup.c ret = btrfs_qgroup_trace_extent(trans, bytenr, num_bytes, trans 1785 fs/btrfs/qgroup.c static int qgroup_trace_extent_swap(struct btrfs_trans_handle* trans, trans 1793 fs/btrfs/qgroup.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1880 fs/btrfs/qgroup.c ret = btrfs_qgroup_trace_extent(trans, src_path->nodes[dst_level]->start, trans 1884 fs/btrfs/qgroup.c ret = btrfs_qgroup_trace_extent(trans, trans 1892 fs/btrfs/qgroup.c ret = btrfs_qgroup_trace_leaf_items(trans, src_path->nodes[0]); trans 1895 fs/btrfs/qgroup.c ret = btrfs_qgroup_trace_leaf_items(trans, dst_path->nodes[0]); trans 1924 fs/btrfs/qgroup.c static int qgroup_trace_new_subtree_blocks(struct btrfs_trans_handle* trans, trans 1930 fs/btrfs/qgroup.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1999 fs/btrfs/qgroup.c ret = qgroup_trace_extent_swap(trans, src_eb, dst_path, cur_level, trans 2015 fs/btrfs/qgroup.c ret = qgroup_trace_new_subtree_blocks(trans, src_eb, trans 2037 fs/btrfs/qgroup.c static int qgroup_trace_subtree_swap(struct btrfs_trans_handle *trans, trans 2042 fs/btrfs/qgroup.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 2077 fs/btrfs/qgroup.c ret = qgroup_trace_new_subtree_blocks(trans, src_eb, dst_path, level, trans 2090 fs/btrfs/qgroup.c int btrfs_qgroup_trace_subtree(struct btrfs_trans_handle *trans, trans 2094 fs/btrfs/qgroup.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 2113 fs/btrfs/qgroup.c ret = btrfs_qgroup_trace_leaf_items(trans, root_eb); trans 2171 fs/btrfs/qgroup.c ret = btrfs_qgroup_trace_extent(trans, child_bytenr, trans 2179 fs/btrfs/qgroup.c ret = btrfs_qgroup_trace_leaf_items(trans, trans 2415 fs/btrfs/qgroup.c int btrfs_qgroup_account_extent(struct btrfs_trans_handle *trans, u64 bytenr, trans 2419 fs/btrfs/qgroup.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 2451 fs/btrfs/qgroup.c trace_btrfs_qgroup_account_extent(fs_info, trans->transid, bytenr, trans 2507 fs/btrfs/qgroup.c int btrfs_qgroup_account_extents(struct btrfs_trans_handle *trans) trans 2509 fs/btrfs/qgroup.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 2518 fs/btrfs/qgroup.c delayed_refs = &trans->transaction->delayed_refs; trans 2551 fs/btrfs/qgroup.c ret = btrfs_find_all_roots(trans, fs_info, trans 2560 fs/btrfs/qgroup.c ret = btrfs_qgroup_account_extent(trans, record->bytenr, trans 2575 fs/btrfs/qgroup.c trace_qgroup_num_dirty_extents(fs_info, trans->transid, trans 2583 fs/btrfs/qgroup.c int btrfs_run_qgroups(struct btrfs_trans_handle *trans) trans 2585 fs/btrfs/qgroup.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 2599 fs/btrfs/qgroup.c ret = update_qgroup_info_item(trans, qgroup); trans 2603 fs/btrfs/qgroup.c ret = update_qgroup_limit_item(trans, qgroup); trans 2615 fs/btrfs/qgroup.c ret = update_qgroup_status_item(trans); trans 2628 fs/btrfs/qgroup.c int btrfs_qgroup_inherit(struct btrfs_trans_handle *trans, u64 srcid, trans 2635 fs/btrfs/qgroup.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 2655 fs/btrfs/qgroup.c if (trans->transaction->state == TRANS_STATE_COMMIT_DOING) trans 2692 fs/btrfs/qgroup.c ret = add_qgroup_item(trans, quota_root, objectid); trans 2704 fs/btrfs/qgroup.c ret = add_qgroup_relation_item(trans, objectid, trans 2708 fs/btrfs/qgroup.c ret = add_qgroup_relation_item(trans, *i_qgroups, trans 2732 fs/btrfs/qgroup.c ret = update_qgroup_limit_item(trans, dstgroup); trans 3049 fs/btrfs/qgroup.c static int qgroup_rescan_leaf(struct btrfs_trans_handle *trans, trans 3052 fs/btrfs/qgroup.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 3117 fs/btrfs/qgroup.c ret = btrfs_qgroup_account_extent(trans, found.objectid, trans 3138 fs/btrfs/qgroup.c struct btrfs_trans_handle *trans = NULL; trans 3154 fs/btrfs/qgroup.c trans = btrfs_start_transaction(fs_info->fs_root, 0); trans 3155 fs/btrfs/qgroup.c if (IS_ERR(trans)) { trans 3156 fs/btrfs/qgroup.c err = PTR_ERR(trans); trans 3162 fs/btrfs/qgroup.c err = qgroup_rescan_leaf(trans, path); trans 3165 fs/btrfs/qgroup.c btrfs_commit_transaction(trans); trans 3167 fs/btrfs/qgroup.c btrfs_end_transaction(trans); trans 3186 fs/btrfs/qgroup.c trans = btrfs_start_transaction(fs_info->quota_root, 1); trans 3187 fs/btrfs/qgroup.c if (IS_ERR(trans)) { trans 3188 fs/btrfs/qgroup.c err = PTR_ERR(trans); trans 3189 fs/btrfs/qgroup.c trans = NULL; trans 3198 fs/btrfs/qgroup.c if (trans) { trans 3199 fs/btrfs/qgroup.c ret = update_qgroup_status_item(trans); trans 3210 fs/btrfs/qgroup.c if (!trans) trans 3213 fs/btrfs/qgroup.c btrfs_end_transaction(trans); trans 3314 fs/btrfs/qgroup.c struct btrfs_trans_handle *trans; trans 3331 fs/btrfs/qgroup.c trans = btrfs_join_transaction(fs_info->fs_root); trans 3332 fs/btrfs/qgroup.c if (IS_ERR(trans)) { trans 3334 fs/btrfs/qgroup.c return PTR_ERR(trans); trans 3336 fs/btrfs/qgroup.c ret = btrfs_commit_transaction(trans); trans 3837 fs/btrfs/qgroup.c int btrfs_qgroup_add_swapped_blocks(struct btrfs_trans_handle *trans, trans 3947 fs/btrfs/qgroup.c int btrfs_qgroup_trace_subtree_after_cow(struct btrfs_trans_handle *trans, trans 4014 fs/btrfs/qgroup.c ret = qgroup_trace_subtree_swap(trans, reloc_eb, subvol_eb, trans 4029 fs/btrfs/qgroup.c void btrfs_qgroup_destroy_extent_records(struct btrfs_transaction *trans) trans 4035 fs/btrfs/qgroup.c root = &trans->delayed_refs.dirty_extent_root; trans 241 fs/btrfs/qgroup.h int btrfs_add_qgroup_relation(struct btrfs_trans_handle *trans, u64 src, trans 243 fs/btrfs/qgroup.h int btrfs_del_qgroup_relation(struct btrfs_trans_handle *trans, u64 src, trans 245 fs/btrfs/qgroup.h int btrfs_create_qgroup(struct btrfs_trans_handle *trans, u64 qgroupid); trans 246 fs/btrfs/qgroup.h int btrfs_remove_qgroup(struct btrfs_trans_handle *trans, u64 qgroupid); trans 247 fs/btrfs/qgroup.h int btrfs_limit_qgroup(struct btrfs_trans_handle *trans, u64 qgroupid, trans 306 fs/btrfs/qgroup.h int btrfs_qgroup_trace_extent(struct btrfs_trans_handle *trans, u64 bytenr, trans 315 fs/btrfs/qgroup.h int btrfs_qgroup_trace_leaf_items(struct btrfs_trans_handle *trans, trans 327 fs/btrfs/qgroup.h int btrfs_qgroup_trace_subtree(struct btrfs_trans_handle *trans, trans 330 fs/btrfs/qgroup.h int btrfs_qgroup_account_extent(struct btrfs_trans_handle *trans, u64 bytenr, trans 333 fs/btrfs/qgroup.h int btrfs_qgroup_account_extents(struct btrfs_trans_handle *trans); trans 334 fs/btrfs/qgroup.h int btrfs_run_qgroups(struct btrfs_trans_handle *trans); trans 335 fs/btrfs/qgroup.h int btrfs_qgroup_inherit(struct btrfs_trans_handle *trans, u64 srcid, trans 409 fs/btrfs/qgroup.h int btrfs_qgroup_add_swapped_blocks(struct btrfs_trans_handle *trans, trans 415 fs/btrfs/qgroup.h int btrfs_qgroup_trace_subtree_after_cow(struct btrfs_trans_handle *trans, trans 417 fs/btrfs/qgroup.h void btrfs_qgroup_destroy_extent_records(struct btrfs_transaction *trans); trans 470 fs/btrfs/relocation.c static int update_backref_cache(struct btrfs_trans_handle *trans, trans 477 fs/btrfs/relocation.c cache->last_trans = trans->transid; trans 481 fs/btrfs/relocation.c if (cache->last_trans == trans->transid) trans 1201 fs/btrfs/relocation.c static int clone_backref_node(struct btrfs_trans_handle *trans, trans 1215 fs/btrfs/relocation.c update_backref_cache(trans, cache); trans 1384 fs/btrfs/relocation.c static struct btrfs_root *create_reloc_root(struct btrfs_trans_handle *trans, trans 1405 fs/btrfs/relocation.c ret = btrfs_copy_root(trans, root, root->commit_root, &eb, trans 1426 fs/btrfs/relocation.c ret = btrfs_copy_root(trans, root, root->node, &eb, trans 1434 fs/btrfs/relocation.c btrfs_set_root_generation(root_item, trans->transid); trans 1446 fs/btrfs/relocation.c ret = btrfs_insert_root(trans, fs_info->tree_root, trans 1453 fs/btrfs/relocation.c reloc_root->last_trans = trans->transid; trans 1461 fs/btrfs/relocation.c int btrfs_init_reloc_root(struct btrfs_trans_handle *trans, trans 1480 fs/btrfs/relocation.c reloc_root->last_trans = trans->transid; trans 1488 fs/btrfs/relocation.c if (!trans->reloc_reserved) { trans 1489 fs/btrfs/relocation.c rsv = trans->block_rsv; trans 1490 fs/btrfs/relocation.c trans->block_rsv = rc->block_rsv; trans 1493 fs/btrfs/relocation.c reloc_root = create_reloc_root(trans, root, root->root_key.objectid); trans 1495 fs/btrfs/relocation.c trans->block_rsv = rsv; trans 1506 fs/btrfs/relocation.c int btrfs_update_reloc_root(struct btrfs_trans_handle *trans, trans 1539 fs/btrfs/relocation.c ret = btrfs_update_root(trans, fs_info->tree_root, trans 1662 fs/btrfs/relocation.c int replace_file_extents(struct btrfs_trans_handle *trans, trans 1760 fs/btrfs/relocation.c ret = btrfs_inc_extent_ref(trans, &ref); trans 1762 fs/btrfs/relocation.c btrfs_abort_transaction(trans, ret); trans 1771 fs/btrfs/relocation.c ret = btrfs_free_extent(trans, &ref); trans 1773 fs/btrfs/relocation.c btrfs_abort_transaction(trans, ret); trans 1805 fs/btrfs/relocation.c int replace_path(struct btrfs_trans_handle *trans, struct reloc_control *rc, trans 1845 fs/btrfs/relocation.c ret = btrfs_cow_block(trans, dest, eb, NULL, 0, &eb); trans 1912 fs/btrfs/relocation.c ret = btrfs_cow_block(trans, dest, eb, parent, trans 1937 fs/btrfs/relocation.c ret = btrfs_search_slot(trans, src, &key, path, 0, 1); trans 1955 fs/btrfs/relocation.c ret = btrfs_qgroup_add_swapped_blocks(trans, dest, trans 1978 fs/btrfs/relocation.c ret = btrfs_inc_extent_ref(trans, &ref); trans 1984 fs/btrfs/relocation.c ret = btrfs_inc_extent_ref(trans, &ref); trans 1991 fs/btrfs/relocation.c ret = btrfs_free_extent(trans, &ref); trans 1998 fs/btrfs/relocation.c ret = btrfs_free_extent(trans, &ref); trans 2198 fs/btrfs/relocation.c static void insert_dirty_subvol(struct btrfs_trans_handle *trans, trans 2214 fs/btrfs/relocation.c btrfs_update_reloc_root(trans, root); trans 2270 fs/btrfs/relocation.c struct btrfs_trans_handle *trans = NULL; trans 2325 fs/btrfs/relocation.c trans = btrfs_start_transaction(root, 0); trans 2326 fs/btrfs/relocation.c if (IS_ERR(trans)) { trans 2327 fs/btrfs/relocation.c err = PTR_ERR(trans); trans 2328 fs/btrfs/relocation.c trans = NULL; trans 2331 fs/btrfs/relocation.c trans->block_rsv = rc->block_rsv; trans 2348 fs/btrfs/relocation.c ret = replace_path(trans, rc, root, reloc_root, path, trans 2376 fs/btrfs/relocation.c btrfs_end_transaction_throttle(trans); trans 2377 fs/btrfs/relocation.c trans = NULL; trans 2390 fs/btrfs/relocation.c ret = btrfs_cow_block(trans, root, leaf, NULL, 0, &leaf); trans 2399 fs/btrfs/relocation.c insert_dirty_subvol(trans, rc, root); trans 2401 fs/btrfs/relocation.c if (trans) trans 2402 fs/btrfs/relocation.c btrfs_end_transaction_throttle(trans); trans 2418 fs/btrfs/relocation.c struct btrfs_trans_handle *trans; trans 2437 fs/btrfs/relocation.c trans = btrfs_join_transaction(rc->extent_root); trans 2438 fs/btrfs/relocation.c if (IS_ERR(trans)) { trans 2442 fs/btrfs/relocation.c return PTR_ERR(trans); trans 2447 fs/btrfs/relocation.c btrfs_end_transaction(trans); trans 2471 fs/btrfs/relocation.c btrfs_update_reloc_root(trans, root); trans 2479 fs/btrfs/relocation.c btrfs_commit_transaction(trans); trans 2481 fs/btrfs/relocation.c btrfs_end_transaction(trans); trans 2595 fs/btrfs/relocation.c static int record_reloc_root_in_trans(struct btrfs_trans_handle *trans, trans 2601 fs/btrfs/relocation.c if (reloc_root->last_trans == trans->transid) trans 2608 fs/btrfs/relocation.c return btrfs_record_root_in_trans(trans, root); trans 2612 fs/btrfs/relocation.c struct btrfs_root *select_reloc_root(struct btrfs_trans_handle *trans, trans 2630 fs/btrfs/relocation.c record_reloc_root_in_trans(trans, root); trans 2634 fs/btrfs/relocation.c btrfs_record_root_in_trans(trans, root); trans 2744 fs/btrfs/relocation.c static int reserve_metadata_space(struct btrfs_trans_handle *trans, trans 2756 fs/btrfs/relocation.c trans->block_rsv = rc->block_rsv; trans 2792 fs/btrfs/relocation.c static int do_relocation(struct btrfs_trans_handle *trans, trans 2822 fs/btrfs/relocation.c root = select_reloc_root(trans, rc, upper, edges); trans 2842 fs/btrfs/relocation.c ret = btrfs_search_slot(trans, root, key, path, 0, 1); trans 2907 fs/btrfs/relocation.c ret = btrfs_cow_block(trans, root, eb, upper->eb, trans 2920 fs/btrfs/relocation.c trans->transid); trans 2929 fs/btrfs/relocation.c ret = btrfs_inc_extent_ref(trans, &ref); trans 2932 fs/btrfs/relocation.c ret = btrfs_drop_subtree(trans, root, eb, upper->eb); trans 2955 fs/btrfs/relocation.c static int link_to_upper(struct btrfs_trans_handle *trans, trans 2963 fs/btrfs/relocation.c return do_relocation(trans, rc, node, &key, path, 0); trans 2966 fs/btrfs/relocation.c static int finish_pending_nodes(struct btrfs_trans_handle *trans, trans 2984 fs/btrfs/relocation.c ret = link_to_upper(trans, rc, node, path); trans 3081 fs/btrfs/relocation.c static int relocate_tree_block(struct btrfs_trans_handle *trans, trans 3101 fs/btrfs/relocation.c ret = reserve_metadata_space(trans, rc, node); trans 3110 fs/btrfs/relocation.c btrfs_record_root_in_trans(trans, root); trans 3117 fs/btrfs/relocation.c ret = btrfs_search_slot(trans, root, key, path, 0, 1); trans 3125 fs/btrfs/relocation.c ret = do_relocation(trans, rc, node, key, path, 1); trans 3137 fs/btrfs/relocation.c int relocate_tree_blocks(struct btrfs_trans_handle *trans, trans 3178 fs/btrfs/relocation.c ret = relocate_tree_block(trans, rc, node, &block->key, trans 3186 fs/btrfs/relocation.c err = finish_pending_nodes(trans, rc, path, err); trans 3609 fs/btrfs/relocation.c struct btrfs_trans_handle *trans; trans 3629 fs/btrfs/relocation.c trans = btrfs_join_transaction(root); trans 3630 fs/btrfs/relocation.c if (IS_ERR(trans)) { trans 3631 fs/btrfs/relocation.c ret = PTR_ERR(trans); trans 3635 fs/btrfs/relocation.c ret = btrfs_truncate_free_space_cache(trans, block_group, inode); trans 3637 fs/btrfs/relocation.c btrfs_end_transaction(trans); trans 4030 fs/btrfs/relocation.c struct btrfs_trans_handle *trans; trans 4055 fs/btrfs/relocation.c trans = btrfs_join_transaction(rc->extent_root); trans 4056 fs/btrfs/relocation.c if (IS_ERR(trans)) { trans 4063 fs/btrfs/relocation.c return PTR_ERR(trans); trans 4065 fs/btrfs/relocation.c btrfs_commit_transaction(trans); trans 4074 fs/btrfs/relocation.c struct btrfs_trans_handle *trans = NULL; trans 4104 fs/btrfs/relocation.c trans = btrfs_start_transaction(rc->extent_root, 0); trans 4105 fs/btrfs/relocation.c if (IS_ERR(trans)) { trans 4106 fs/btrfs/relocation.c err = PTR_ERR(trans); trans 4107 fs/btrfs/relocation.c trans = NULL; trans 4111 fs/btrfs/relocation.c if (update_backref_cache(trans, &rc->backref_cache)) { trans 4112 fs/btrfs/relocation.c btrfs_end_transaction(trans); trans 4113 fs/btrfs/relocation.c trans = NULL; trans 4134 fs/btrfs/relocation.c btrfs_print_v0_err(trans->fs_info); trans 4135 fs/btrfs/relocation.c btrfs_abort_transaction(trans, err); trans 4156 fs/btrfs/relocation.c ret = relocate_tree_blocks(trans, rc, &blocks); trans 4167 fs/btrfs/relocation.c btrfs_end_transaction_throttle(trans); trans 4169 fs/btrfs/relocation.c trans = NULL; trans 4182 fs/btrfs/relocation.c if (trans && progress && err == -ENOSPC) { trans 4183 fs/btrfs/relocation.c ret = btrfs_force_chunk_alloc(trans, rc->block_group->flags); trans 4194 fs/btrfs/relocation.c if (trans) { trans 4195 fs/btrfs/relocation.c btrfs_end_transaction_throttle(trans); trans 4221 fs/btrfs/relocation.c trans = btrfs_join_transaction(rc->extent_root); trans 4222 fs/btrfs/relocation.c if (IS_ERR(trans)) { trans 4223 fs/btrfs/relocation.c err = PTR_ERR(trans); trans 4226 fs/btrfs/relocation.c btrfs_commit_transaction(trans); trans 4236 fs/btrfs/relocation.c static int __insert_orphan_inode(struct btrfs_trans_handle *trans, trans 4248 fs/btrfs/relocation.c ret = btrfs_insert_empty_inode(trans, root, path, objectid); trans 4275 fs/btrfs/relocation.c struct btrfs_trans_handle *trans; trans 4285 fs/btrfs/relocation.c trans = btrfs_start_transaction(root, 6); trans 4286 fs/btrfs/relocation.c if (IS_ERR(trans)) trans 4287 fs/btrfs/relocation.c return ERR_CAST(trans); trans 4293 fs/btrfs/relocation.c err = __insert_orphan_inode(trans, root, objectid); trans 4303 fs/btrfs/relocation.c err = btrfs_orphan_add(trans, BTRFS_I(inode)); trans 4305 fs/btrfs/relocation.c btrfs_end_transaction(trans); trans 4471 fs/btrfs/relocation.c struct btrfs_trans_handle *trans; trans 4474 fs/btrfs/relocation.c trans = btrfs_start_transaction(fs_info->tree_root, 0); trans 4475 fs/btrfs/relocation.c if (IS_ERR(trans)) trans 4476 fs/btrfs/relocation.c return PTR_ERR(trans); trans 4482 fs/btrfs/relocation.c ret = btrfs_update_root(trans, fs_info->tree_root, trans 4485 fs/btrfs/relocation.c err = btrfs_end_transaction(trans); trans 4507 fs/btrfs/relocation.c struct btrfs_trans_handle *trans; trans 4585 fs/btrfs/relocation.c trans = btrfs_join_transaction(rc->extent_root); trans 4586 fs/btrfs/relocation.c if (IS_ERR(trans)) { trans 4587 fs/btrfs/relocation.c err = PTR_ERR(trans); trans 4608 fs/btrfs/relocation.c btrfs_end_transaction(trans); trans 4617 fs/btrfs/relocation.c err = btrfs_commit_transaction(trans); trans 4625 fs/btrfs/relocation.c trans = btrfs_join_transaction(rc->extent_root); trans 4626 fs/btrfs/relocation.c if (IS_ERR(trans)) { trans 4627 fs/btrfs/relocation.c err = PTR_ERR(trans); trans 4630 fs/btrfs/relocation.c err = btrfs_commit_transaction(trans); trans 4706 fs/btrfs/relocation.c int btrfs_reloc_cow_block(struct btrfs_trans_handle *trans, trans 4756 fs/btrfs/relocation.c ret = replace_file_extents(trans, rc, root, cow); trans 4795 fs/btrfs/relocation.c int btrfs_reloc_post_snapshot(struct btrfs_trans_handle *trans, trans 4819 fs/btrfs/relocation.c reloc_root = create_reloc_root(trans, root->reloc_root, trans 4829 fs/btrfs/relocation.c ret = clone_backref_node(trans, rc, root, reloc_root); trans 120 fs/btrfs/root-tree.c int btrfs_update_root(struct btrfs_trans_handle *trans, struct btrfs_root trans 136 fs/btrfs/root-tree.c ret = btrfs_search_slot(trans, root, key, path, 0, 1); trans 146 fs/btrfs/root-tree.c btrfs_abort_transaction(trans, ret); trans 162 fs/btrfs/root-tree.c ret = btrfs_search_slot(trans, root, key, path, trans 165 fs/btrfs/root-tree.c btrfs_abort_transaction(trans, ret); trans 169 fs/btrfs/root-tree.c ret = btrfs_del_item(trans, root, path); trans 171 fs/btrfs/root-tree.c btrfs_abort_transaction(trans, ret); trans 175 fs/btrfs/root-tree.c ret = btrfs_insert_empty_item(trans, root, path, trans 178 fs/btrfs/root-tree.c btrfs_abort_transaction(trans, ret); trans 199 fs/btrfs/root-tree.c int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, trans 206 fs/btrfs/root-tree.c return btrfs_insert_item(trans, root, key, item, sizeof(*item)); trans 281 fs/btrfs/root-tree.c struct btrfs_trans_handle *trans; trans 285 fs/btrfs/root-tree.c trans = btrfs_join_transaction(tree_root); trans 286 fs/btrfs/root-tree.c if (IS_ERR(trans)) { trans 287 fs/btrfs/root-tree.c err = PTR_ERR(trans); trans 292 fs/btrfs/root-tree.c err = btrfs_del_orphan_item(trans, tree_root, trans 294 fs/btrfs/root-tree.c btrfs_end_transaction(trans); trans 329 fs/btrfs/root-tree.c int btrfs_del_root(struct btrfs_trans_handle *trans, trans 332 fs/btrfs/root-tree.c struct btrfs_root *root = trans->fs_info->tree_root; trans 339 fs/btrfs/root-tree.c ret = btrfs_search_slot(trans, root, key, path, -1, 1); trans 345 fs/btrfs/root-tree.c ret = btrfs_del_item(trans, root, path); trans 351 fs/btrfs/root-tree.c int btrfs_del_root_ref(struct btrfs_trans_handle *trans, u64 root_id, trans 356 fs/btrfs/root-tree.c struct btrfs_root *tree_root = trans->fs_info->tree_root; trans 373 fs/btrfs/root-tree.c ret = btrfs_search_slot(trans, tree_root, &key, path, -1, 1); trans 388 fs/btrfs/root-tree.c ret = btrfs_del_item(trans, tree_root, path); trans 424 fs/btrfs/root-tree.c int btrfs_add_root_ref(struct btrfs_trans_handle *trans, u64 root_id, trans 428 fs/btrfs/root-tree.c struct btrfs_root *tree_root = trans->fs_info->tree_root; trans 444 fs/btrfs/root-tree.c ret = btrfs_insert_empty_item(trans, tree_root, path, &key, trans 447 fs/btrfs/root-tree.c btrfs_abort_transaction(trans, ret); trans 491 fs/btrfs/root-tree.c void btrfs_update_root_times(struct btrfs_trans_handle *trans, trans 499 fs/btrfs/root-tree.c btrfs_set_root_ctransid(item, trans->transid); trans 3589 fs/btrfs/scrub.c struct btrfs_trans_handle *trans; trans 3591 fs/btrfs/scrub.c trans = btrfs_join_transaction(root); trans 3592 fs/btrfs/scrub.c if (IS_ERR(trans)) trans 3593 fs/btrfs/scrub.c ret = PTR_ERR(trans); trans 3595 fs/btrfs/scrub.c ret = btrfs_commit_transaction(trans); trans 6964 fs/btrfs/send.c struct btrfs_trans_handle *trans = NULL; trans 6976 fs/btrfs/send.c if (trans) trans 6977 fs/btrfs/send.c return btrfs_end_transaction(trans); trans 6983 fs/btrfs/send.c if (!trans) { trans 6984 fs/btrfs/send.c trans = btrfs_join_transaction(sctx->send_root); trans 6985 fs/btrfs/send.c if (IS_ERR(trans)) trans 6986 fs/btrfs/send.c return PTR_ERR(trans); trans 6990 fs/btrfs/send.c return btrfs_commit_transaction(trans); trans 359 fs/btrfs/space-info.c struct btrfs_trans_handle *trans; trans 372 fs/btrfs/space-info.c trans = (struct btrfs_trans_handle *)current->journal_info; trans 379 fs/btrfs/space-info.c if (trans) trans 436 fs/btrfs/space-info.c if (wait_ordered && !trans) { trans 465 fs/btrfs/space-info.c struct btrfs_trans_handle *trans; trans 470 fs/btrfs/space-info.c trans = (struct btrfs_trans_handle *)current->journal_info; trans 471 fs/btrfs/space-info.c if (trans) trans 498 fs/btrfs/space-info.c trans = btrfs_join_transaction(fs_info->extent_root); trans 499 fs/btrfs/space-info.c if (IS_ERR(trans)) trans 500 fs/btrfs/space-info.c return PTR_ERR(trans); trans 507 fs/btrfs/space-info.c if (test_bit(BTRFS_TRANS_HAVE_FREE_BGS, &trans->transaction->flags) || trans 537 fs/btrfs/space-info.c return btrfs_commit_transaction(trans); trans 539 fs/btrfs/space-info.c btrfs_end_transaction(trans); trans 553 fs/btrfs/space-info.c struct btrfs_trans_handle *trans; trans 565 fs/btrfs/space-info.c trans = btrfs_join_transaction(root); trans 566 fs/btrfs/space-info.c if (IS_ERR(trans)) { trans 567 fs/btrfs/space-info.c ret = PTR_ERR(trans); trans 570 fs/btrfs/space-info.c ret = btrfs_run_delayed_items_nr(trans, nr); trans 571 fs/btrfs/space-info.c btrfs_end_transaction(trans); trans 580 fs/btrfs/space-info.c trans = btrfs_join_transaction(root); trans 581 fs/btrfs/space-info.c if (IS_ERR(trans)) { trans 582 fs/btrfs/space-info.c ret = PTR_ERR(trans); trans 589 fs/btrfs/space-info.c btrfs_run_delayed_refs(trans, nr); trans 590 fs/btrfs/space-info.c btrfs_end_transaction(trans); trans 594 fs/btrfs/space-info.c trans = btrfs_join_transaction(root); trans 595 fs/btrfs/space-info.c if (IS_ERR(trans)) { trans 596 fs/btrfs/space-info.c ret = PTR_ERR(trans); trans 599 fs/btrfs/space-info.c ret = btrfs_chunk_alloc(trans, trans 603 fs/btrfs/space-info.c btrfs_end_transaction(trans); trans 238 fs/btrfs/super.c void __btrfs_abort_transaction(struct btrfs_trans_handle *trans, trans 242 fs/btrfs/super.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 244 fs/btrfs/super.c trans->aborted = errno; trans 247 fs/btrfs/super.c if (!trans->dirty && list_empty(&trans->new_bgs)) { trans 256 fs/btrfs/super.c WRITE_ONCE(trans->transaction->aborted, errno); trans 1245 fs/btrfs/super.c struct btrfs_trans_handle *trans; trans 1258 fs/btrfs/super.c trans = btrfs_attach_transaction_barrier(root); trans 1259 fs/btrfs/super.c if (IS_ERR(trans)) { trans 1261 fs/btrfs/super.c if (PTR_ERR(trans) == -ENOENT) { trans 1278 fs/btrfs/super.c trans = btrfs_start_transaction(root, 0); trans 1280 fs/btrfs/super.c if (IS_ERR(trans)) trans 1281 fs/btrfs/super.c return PTR_ERR(trans); trans 1283 fs/btrfs/super.c return btrfs_commit_transaction(trans); trans 2225 fs/btrfs/super.c struct btrfs_trans_handle *trans; trans 2236 fs/btrfs/super.c trans = btrfs_attach_transaction_barrier(root); trans 2237 fs/btrfs/super.c if (IS_ERR(trans)) { trans 2239 fs/btrfs/super.c if (PTR_ERR(trans) == -ENOENT) trans 2241 fs/btrfs/super.c return PTR_ERR(trans); trans 2243 fs/btrfs/super.c return btrfs_commit_transaction(trans); trans 244 fs/btrfs/tests/btrfs-tests.c void btrfs_init_dummy_trans(struct btrfs_trans_handle *trans, trans 247 fs/btrfs/tests/btrfs-tests.c memset(trans, 0, sizeof(*trans)); trans 248 fs/btrfs/tests/btrfs-tests.c trans->transid = 1; trans 249 fs/btrfs/tests/btrfs-tests.c trans->type = __TRANS_DUMMY; trans 250 fs/btrfs/tests/btrfs-tests.c trans->fs_info = fs_info; trans 47 fs/btrfs/tests/btrfs-tests.h void btrfs_init_dummy_trans(struct btrfs_trans_handle *trans, trans 19 fs/btrfs/tests/free-space-tree-tests.c static int __check_free_space_extents(struct btrfs_trans_handle *trans, trans 34 fs/btrfs/tests/free-space-tree-tests.c info = search_free_space_info(trans, cache, path, 0); trans 108 fs/btrfs/tests/free-space-tree-tests.c static int check_free_space_extents(struct btrfs_trans_handle *trans, trans 119 fs/btrfs/tests/free-space-tree-tests.c info = search_free_space_info(trans, cache, path, 0); trans 128 fs/btrfs/tests/free-space-tree-tests.c ret = __check_free_space_extents(trans, fs_info, cache, path, extents, trans 135 fs/btrfs/tests/free-space-tree-tests.c ret = convert_free_space_to_extents(trans, cache, path); trans 141 fs/btrfs/tests/free-space-tree-tests.c ret = convert_free_space_to_bitmaps(trans, cache, path); trans 147 fs/btrfs/tests/free-space-tree-tests.c return __check_free_space_extents(trans, fs_info, cache, path, extents, trans 151 fs/btrfs/tests/free-space-tree-tests.c static int test_empty_block_group(struct btrfs_trans_handle *trans, trans 161 fs/btrfs/tests/free-space-tree-tests.c return check_free_space_extents(trans, fs_info, cache, path, trans 165 fs/btrfs/tests/free-space-tree-tests.c static int test_remove_all(struct btrfs_trans_handle *trans, trans 174 fs/btrfs/tests/free-space-tree-tests.c ret = __remove_from_free_space_tree(trans, cache, path, trans 182 fs/btrfs/tests/free-space-tree-tests.c return check_free_space_extents(trans, fs_info, cache, path, trans 186 fs/btrfs/tests/free-space-tree-tests.c static int test_remove_beginning(struct btrfs_trans_handle *trans, trans 198 fs/btrfs/tests/free-space-tree-tests.c ret = __remove_from_free_space_tree(trans, cache, path, trans 205 fs/btrfs/tests/free-space-tree-tests.c return check_free_space_extents(trans, fs_info, cache, path, trans 210 fs/btrfs/tests/free-space-tree-tests.c static int test_remove_end(struct btrfs_trans_handle *trans, trans 221 fs/btrfs/tests/free-space-tree-tests.c ret = __remove_from_free_space_tree(trans, cache, path, trans 230 fs/btrfs/tests/free-space-tree-tests.c return check_free_space_extents(trans, fs_info, cache, path, trans 234 fs/btrfs/tests/free-space-tree-tests.c static int test_remove_middle(struct btrfs_trans_handle *trans, trans 247 fs/btrfs/tests/free-space-tree-tests.c ret = __remove_from_free_space_tree(trans, cache, path, trans 255 fs/btrfs/tests/free-space-tree-tests.c return check_free_space_extents(trans, fs_info, cache, path, trans 259 fs/btrfs/tests/free-space-tree-tests.c static int test_merge_left(struct btrfs_trans_handle *trans, trans 270 fs/btrfs/tests/free-space-tree-tests.c ret = __remove_from_free_space_tree(trans, cache, path, trans 278 fs/btrfs/tests/free-space-tree-tests.c ret = __add_to_free_space_tree(trans, cache, path, cache->key.objectid, trans 285 fs/btrfs/tests/free-space-tree-tests.c ret = __add_to_free_space_tree(trans, cache, path, trans 293 fs/btrfs/tests/free-space-tree-tests.c return check_free_space_extents(trans, fs_info, cache, path, trans 297 fs/btrfs/tests/free-space-tree-tests.c static int test_merge_right(struct btrfs_trans_handle *trans, trans 308 fs/btrfs/tests/free-space-tree-tests.c ret = __remove_from_free_space_tree(trans, cache, path, trans 316 fs/btrfs/tests/free-space-tree-tests.c ret = __add_to_free_space_tree(trans, cache, path, trans 324 fs/btrfs/tests/free-space-tree-tests.c ret = __add_to_free_space_tree(trans, cache, path, trans 332 fs/btrfs/tests/free-space-tree-tests.c return check_free_space_extents(trans, fs_info, cache, path, trans 336 fs/btrfs/tests/free-space-tree-tests.c static int test_merge_both(struct btrfs_trans_handle *trans, trans 347 fs/btrfs/tests/free-space-tree-tests.c ret = __remove_from_free_space_tree(trans, cache, path, trans 355 fs/btrfs/tests/free-space-tree-tests.c ret = __add_to_free_space_tree(trans, cache, path, cache->key.objectid, trans 362 fs/btrfs/tests/free-space-tree-tests.c ret = __add_to_free_space_tree(trans, cache, path, trans 370 fs/btrfs/tests/free-space-tree-tests.c ret = __add_to_free_space_tree(trans, cache, path, trans 378 fs/btrfs/tests/free-space-tree-tests.c return check_free_space_extents(trans, fs_info, cache, path, trans 382 fs/btrfs/tests/free-space-tree-tests.c static int test_merge_none(struct btrfs_trans_handle *trans, trans 395 fs/btrfs/tests/free-space-tree-tests.c ret = __remove_from_free_space_tree(trans, cache, path, trans 403 fs/btrfs/tests/free-space-tree-tests.c ret = __add_to_free_space_tree(trans, cache, path, cache->key.objectid, trans 410 fs/btrfs/tests/free-space-tree-tests.c ret = __add_to_free_space_tree(trans, cache, path, trans 418 fs/btrfs/tests/free-space-tree-tests.c ret = __add_to_free_space_tree(trans, cache, path, trans 426 fs/btrfs/tests/free-space-tree-tests.c return check_free_space_extents(trans, fs_info, cache, path, trans 442 fs/btrfs/tests/free-space-tree-tests.c struct btrfs_trans_handle trans; trans 486 fs/btrfs/tests/free-space-tree-tests.c btrfs_init_dummy_trans(&trans, root->fs_info); trans 495 fs/btrfs/tests/free-space-tree-tests.c ret = add_block_group_free_space(&trans, cache); trans 502 fs/btrfs/tests/free-space-tree-tests.c ret = convert_free_space_to_bitmaps(&trans, cache, path); trans 509 fs/btrfs/tests/free-space-tree-tests.c ret = test_func(&trans, root->fs_info, cache, path, alignment); trans 513 fs/btrfs/tests/free-space-tree-tests.c ret = remove_block_group_free_space(&trans, cache); trans 17 fs/btrfs/tests/qgroup-tests.c struct btrfs_trans_handle trans; trans 27 fs/btrfs/tests/qgroup-tests.c btrfs_init_dummy_trans(&trans, NULL); trans 40 fs/btrfs/tests/qgroup-tests.c ret = btrfs_insert_empty_item(&trans, root, path, &ins, size); trans 70 fs/btrfs/tests/qgroup-tests.c struct btrfs_trans_handle trans; trans 77 fs/btrfs/tests/qgroup-tests.c btrfs_init_dummy_trans(&trans, NULL); trans 90 fs/btrfs/tests/qgroup-tests.c ret = btrfs_search_slot(&trans, root, &key, path, 0, 1); trans 112 fs/btrfs/tests/qgroup-tests.c ret = btrfs_insert_empty_item(&trans, root, path, &key, 0); trans 122 fs/btrfs/tests/qgroup-tests.c struct btrfs_trans_handle trans; trans 127 fs/btrfs/tests/qgroup-tests.c btrfs_init_dummy_trans(&trans, NULL); trans 140 fs/btrfs/tests/qgroup-tests.c ret = btrfs_search_slot(&trans, root, &key, path, -1, 1); trans 146 fs/btrfs/tests/qgroup-tests.c btrfs_del_item(&trans, root, path); trans 154 fs/btrfs/tests/qgroup-tests.c struct btrfs_trans_handle trans; trans 161 fs/btrfs/tests/qgroup-tests.c btrfs_init_dummy_trans(&trans, NULL); trans 174 fs/btrfs/tests/qgroup-tests.c ret = btrfs_search_slot(&trans, root, &key, path, 0, 1); trans 196 fs/btrfs/tests/qgroup-tests.c ret = btrfs_search_slot(&trans, root, &key, path, -1, 1); trans 202 fs/btrfs/tests/qgroup-tests.c btrfs_del_item(&trans, root, path); trans 210 fs/btrfs/tests/qgroup-tests.c struct btrfs_trans_handle trans; trans 216 fs/btrfs/tests/qgroup-tests.c btrfs_init_dummy_trans(&trans, fs_info); trans 219 fs/btrfs/tests/qgroup-tests.c ret = btrfs_create_qgroup(&trans, BTRFS_FS_TREE_OBJECTID); trans 230 fs/btrfs/tests/qgroup-tests.c ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &old_roots, trans 243 fs/btrfs/tests/qgroup-tests.c ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &new_roots, trans 252 fs/btrfs/tests/qgroup-tests.c ret = btrfs_qgroup_account_extent(&trans, nodesize, nodesize, old_roots, trans 267 fs/btrfs/tests/qgroup-tests.c ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &old_roots, trans 279 fs/btrfs/tests/qgroup-tests.c ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &new_roots, trans 288 fs/btrfs/tests/qgroup-tests.c ret = btrfs_qgroup_account_extent(&trans, nodesize, nodesize, old_roots, trans 311 fs/btrfs/tests/qgroup-tests.c struct btrfs_trans_handle trans; trans 317 fs/btrfs/tests/qgroup-tests.c btrfs_init_dummy_trans(&trans, fs_info); trans 325 fs/btrfs/tests/qgroup-tests.c ret = btrfs_create_qgroup(&trans, BTRFS_FIRST_FREE_OBJECTID); trans 331 fs/btrfs/tests/qgroup-tests.c ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &old_roots, trans 344 fs/btrfs/tests/qgroup-tests.c ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &new_roots, trans 353 fs/btrfs/tests/qgroup-tests.c ret = btrfs_qgroup_account_extent(&trans, nodesize, nodesize, old_roots, trans 366 fs/btrfs/tests/qgroup-tests.c ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &old_roots, trans 379 fs/btrfs/tests/qgroup-tests.c ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &new_roots, trans 388 fs/btrfs/tests/qgroup-tests.c ret = btrfs_qgroup_account_extent(&trans, nodesize, nodesize, old_roots, trans 407 fs/btrfs/tests/qgroup-tests.c ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &old_roots, trans 420 fs/btrfs/tests/qgroup-tests.c ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &new_roots, trans 429 fs/btrfs/tests/qgroup-tests.c ret = btrfs_qgroup_account_extent(&trans, nodesize, nodesize, old_roots, trans 82 fs/btrfs/transaction.c static noinline void switch_commit_roots(struct btrfs_trans_handle *trans) trans 84 fs/btrfs/transaction.c struct btrfs_transaction *cur_trans = trans->transaction; trans 85 fs/btrfs/transaction.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 107 fs/btrfs/transaction.c btrfs_free_log(trans, root); trans 115 fs/btrfs/transaction.c static inline void extwriter_counter_inc(struct btrfs_transaction *trans, trans 119 fs/btrfs/transaction.c atomic_inc(&trans->num_extwriters); trans 122 fs/btrfs/transaction.c static inline void extwriter_counter_dec(struct btrfs_transaction *trans, trans 126 fs/btrfs/transaction.c atomic_dec(&trans->num_extwriters); trans 129 fs/btrfs/transaction.c static inline void extwriter_counter_init(struct btrfs_transaction *trans, trans 132 fs/btrfs/transaction.c atomic_set(&trans->num_extwriters, ((type & TRANS_EXTWRITERS) ? 1 : 0)); trans 135 fs/btrfs/transaction.c static inline int extwriter_counter_read(struct btrfs_transaction *trans) trans 137 fs/btrfs/transaction.c return atomic_read(&trans->num_extwriters); trans 144 fs/btrfs/transaction.c void btrfs_trans_release_chunk_metadata(struct btrfs_trans_handle *trans) trans 146 fs/btrfs/transaction.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 148 fs/btrfs/transaction.c if (!trans->chunk_bytes_reserved) trans 151 fs/btrfs/transaction.c WARN_ON_ONCE(!list_empty(&trans->new_bgs)); trans 154 fs/btrfs/transaction.c trans->chunk_bytes_reserved); trans 155 fs/btrfs/transaction.c trans->chunk_bytes_reserved = 0; trans 284 fs/btrfs/transaction.c static int record_root_in_trans(struct btrfs_trans_handle *trans, trans 291 fs/btrfs/transaction.c root->last_trans < trans->transid) || force) { trans 308 fs/btrfs/transaction.c if (root->last_trans == trans->transid && !force) { trans 316 fs/btrfs/transaction.c root->last_trans = trans->transid; trans 337 fs/btrfs/transaction.c btrfs_init_reloc_root(trans, root); trans 345 fs/btrfs/transaction.c void btrfs_add_dropped_root(struct btrfs_trans_handle *trans, trans 349 fs/btrfs/transaction.c struct btrfs_transaction *cur_trans = trans->transaction; trans 364 fs/btrfs/transaction.c int btrfs_record_root_in_trans(struct btrfs_trans_handle *trans, trans 377 fs/btrfs/transaction.c if (root->last_trans == trans->transid && trans 382 fs/btrfs/transaction.c record_root_in_trans(trans, root, 0); trans 388 fs/btrfs/transaction.c static inline int is_transaction_blocked(struct btrfs_transaction *trans) trans 390 fs/btrfs/transaction.c return (trans->state >= TRANS_STATE_BLOCKED && trans 391 fs/btrfs/transaction.c trans->state < TRANS_STATE_UNBLOCKED && trans 392 fs/btrfs/transaction.c !trans->aborted); trans 634 fs/btrfs/transaction.c struct btrfs_trans_handle *trans; trans 644 fs/btrfs/transaction.c trans = start_transaction(root, num_items, TRANS_START, trans 646 fs/btrfs/transaction.c if (!IS_ERR(trans) || PTR_ERR(trans) != -ENOSPC) trans 647 fs/btrfs/transaction.c return trans; trans 649 fs/btrfs/transaction.c trans = btrfs_start_transaction(root, 0); trans 650 fs/btrfs/transaction.c if (IS_ERR(trans)) trans 651 fs/btrfs/transaction.c return trans; trans 657 fs/btrfs/transaction.c btrfs_end_transaction(trans); trans 661 fs/btrfs/transaction.c trans->block_rsv = &fs_info->trans_block_rsv; trans 662 fs/btrfs/transaction.c trans->bytes_reserved = num_bytes; trans 664 fs/btrfs/transaction.c trans->transid, num_bytes, 1); trans 666 fs/btrfs/transaction.c return trans; trans 720 fs/btrfs/transaction.c struct btrfs_trans_handle *trans; trans 722 fs/btrfs/transaction.c trans = start_transaction(root, 0, TRANS_ATTACH, trans 724 fs/btrfs/transaction.c if (trans == ERR_PTR(-ENOENT)) trans 727 fs/btrfs/transaction.c return trans; trans 799 fs/btrfs/transaction.c static int should_end_transaction(struct btrfs_trans_handle *trans) trans 801 fs/btrfs/transaction.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 809 fs/btrfs/transaction.c int btrfs_should_end_transaction(struct btrfs_trans_handle *trans) trans 811 fs/btrfs/transaction.c struct btrfs_transaction *cur_trans = trans->transaction; trans 818 fs/btrfs/transaction.c return should_end_transaction(trans); trans 821 fs/btrfs/transaction.c static void btrfs_trans_release_metadata(struct btrfs_trans_handle *trans) trans 824 fs/btrfs/transaction.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 826 fs/btrfs/transaction.c if (!trans->block_rsv) { trans 827 fs/btrfs/transaction.c ASSERT(!trans->bytes_reserved); trans 831 fs/btrfs/transaction.c if (!trans->bytes_reserved) trans 834 fs/btrfs/transaction.c ASSERT(trans->block_rsv == &fs_info->trans_block_rsv); trans 836 fs/btrfs/transaction.c trans->transid, trans->bytes_reserved, 0); trans 837 fs/btrfs/transaction.c btrfs_block_rsv_release(fs_info, trans->block_rsv, trans 838 fs/btrfs/transaction.c trans->bytes_reserved); trans 839 fs/btrfs/transaction.c trans->bytes_reserved = 0; trans 842 fs/btrfs/transaction.c static int __btrfs_end_transaction(struct btrfs_trans_handle *trans, trans 845 fs/btrfs/transaction.c struct btrfs_fs_info *info = trans->fs_info; trans 846 fs/btrfs/transaction.c struct btrfs_transaction *cur_trans = trans->transaction; trans 847 fs/btrfs/transaction.c int lock = (trans->type != TRANS_JOIN_NOLOCK); trans 850 fs/btrfs/transaction.c if (refcount_read(&trans->use_count) > 1) { trans 851 fs/btrfs/transaction.c refcount_dec(&trans->use_count); trans 852 fs/btrfs/transaction.c trans->block_rsv = trans->orig_rsv; trans 856 fs/btrfs/transaction.c btrfs_trans_release_metadata(trans); trans 857 fs/btrfs/transaction.c trans->block_rsv = NULL; trans 859 fs/btrfs/transaction.c btrfs_create_pending_block_groups(trans); trans 861 fs/btrfs/transaction.c btrfs_trans_release_chunk_metadata(trans); trans 865 fs/btrfs/transaction.c return btrfs_commit_transaction(trans); trans 870 fs/btrfs/transaction.c if (trans->type & __TRANS_FREEZABLE) trans 876 fs/btrfs/transaction.c extwriter_counter_dec(cur_trans, trans->type); trans 881 fs/btrfs/transaction.c if (current->journal_info == trans) trans 887 fs/btrfs/transaction.c if (trans->aborted || trans 893 fs/btrfs/transaction.c kmem_cache_free(btrfs_trans_handle_cachep, trans); trans 897 fs/btrfs/transaction.c int btrfs_end_transaction(struct btrfs_trans_handle *trans) trans 899 fs/btrfs/transaction.c return __btrfs_end_transaction(trans, 0); trans 902 fs/btrfs/transaction.c int btrfs_end_transaction_throttle(struct btrfs_trans_handle *trans) trans 904 fs/btrfs/transaction.c return __btrfs_end_transaction(trans, 1); trans 1051 fs/btrfs/transaction.c static int btrfs_write_and_wait_transaction(struct btrfs_trans_handle *trans) trans 1055 fs/btrfs/transaction.c struct extent_io_tree *dirty_pages = &trans->transaction->dirty_pages; trans 1056 fs/btrfs/transaction.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1064 fs/btrfs/transaction.c extent_io_tree_release(&trans->transaction->dirty_pages); trans 1084 fs/btrfs/transaction.c static int update_cowonly_root(struct btrfs_trans_handle *trans, trans 1102 fs/btrfs/transaction.c ret = btrfs_update_root(trans, tree_root, trans 1121 fs/btrfs/transaction.c static noinline int commit_cowonly_roots(struct btrfs_trans_handle *trans) trans 1123 fs/btrfs/transaction.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1124 fs/btrfs/transaction.c struct list_head *dirty_bgs = &trans->transaction->dirty_bgs; trans 1125 fs/btrfs/transaction.c struct list_head *io_bgs = &trans->transaction->io_bgs; trans 1131 fs/btrfs/transaction.c ret = btrfs_cow_block(trans, fs_info->tree_root, eb, NULL, trans 1139 fs/btrfs/transaction.c ret = btrfs_run_delayed_refs(trans, (unsigned long)-1); trans 1143 fs/btrfs/transaction.c ret = btrfs_run_dev_stats(trans); trans 1146 fs/btrfs/transaction.c ret = btrfs_run_dev_replace(trans); trans 1149 fs/btrfs/transaction.c ret = btrfs_run_qgroups(trans); trans 1153 fs/btrfs/transaction.c ret = btrfs_setup_space_cache(trans); trans 1158 fs/btrfs/transaction.c ret = btrfs_run_delayed_refs(trans, (unsigned long)-1); trans 1171 fs/btrfs/transaction.c &trans->transaction->switch_commits); trans 1172 fs/btrfs/transaction.c ret = update_cowonly_root(trans, root); trans 1175 fs/btrfs/transaction.c ret = btrfs_run_delayed_refs(trans, (unsigned long)-1); trans 1181 fs/btrfs/transaction.c ret = btrfs_write_dirty_block_groups(trans); trans 1184 fs/btrfs/transaction.c ret = btrfs_run_delayed_refs(trans, (unsigned long)-1); trans 1193 fs/btrfs/transaction.c &trans->transaction->switch_commits); trans 1220 fs/btrfs/transaction.c static noinline int commit_fs_roots(struct btrfs_trans_handle *trans) trans 1222 fs/btrfs/transaction.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1243 fs/btrfs/transaction.c btrfs_free_log(trans, root); trans 1244 fs/btrfs/transaction.c btrfs_update_reloc_root(trans, root); trans 1246 fs/btrfs/transaction.c btrfs_save_ino_cache(root, trans); trans 1254 fs/btrfs/transaction.c &trans->transaction->switch_commits); trans 1259 fs/btrfs/transaction.c err = btrfs_update_root(trans, fs_info->tree_root, trans 1279 fs/btrfs/transaction.c struct btrfs_trans_handle *trans; trans 1286 fs/btrfs/transaction.c trans = btrfs_start_transaction(root, 0); trans 1287 fs/btrfs/transaction.c if (IS_ERR(trans)) trans 1288 fs/btrfs/transaction.c return PTR_ERR(trans); trans 1290 fs/btrfs/transaction.c ret = btrfs_defrag_leaves(trans, root); trans 1292 fs/btrfs/transaction.c btrfs_end_transaction(trans); trans 1316 fs/btrfs/transaction.c static int qgroup_account_snapshot(struct btrfs_trans_handle *trans, trans 1339 fs/btrfs/transaction.c record_root_in_trans(trans, src, 1); trans 1347 fs/btrfs/transaction.c ret = commit_fs_roots(trans); trans 1350 fs/btrfs/transaction.c ret = btrfs_qgroup_account_extents(trans); trans 1355 fs/btrfs/transaction.c ret = btrfs_qgroup_inherit(trans, src->root_key.objectid, dst_objectid, trans 1372 fs/btrfs/transaction.c ret = commit_cowonly_roots(trans); trans 1375 fs/btrfs/transaction.c switch_commit_roots(trans); trans 1376 fs/btrfs/transaction.c ret = btrfs_write_and_wait_transaction(trans); trans 1391 fs/btrfs/transaction.c record_root_in_trans(trans, parent, 1); trans 1404 fs/btrfs/transaction.c static noinline int create_pending_snapshot(struct btrfs_trans_handle *trans, trans 1408 fs/btrfs/transaction.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1443 fs/btrfs/transaction.c btrfs_set_skip_qgroup(trans, objectid); trans 1460 fs/btrfs/transaction.c rsv = trans->block_rsv; trans 1461 fs/btrfs/transaction.c trans->block_rsv = &pending->block_rsv; trans 1462 fs/btrfs/transaction.c trans->bytes_reserved = trans->block_rsv->reserved; trans 1464 fs/btrfs/transaction.c trans->transid, trans 1465 fs/btrfs/transaction.c trans->bytes_reserved, 1); trans 1469 fs/btrfs/transaction.c record_root_in_trans(trans, parent_root, 0); trans 1489 fs/btrfs/transaction.c btrfs_abort_transaction(trans, ret); trans 1500 fs/btrfs/transaction.c ret = btrfs_run_delayed_items(trans); trans 1502 fs/btrfs/transaction.c btrfs_abort_transaction(trans, ret); trans 1506 fs/btrfs/transaction.c record_root_in_trans(trans, root, 0); trans 1507 fs/btrfs/transaction.c btrfs_set_root_last_snapshot(&root->root_item, trans->transid); trans 1519 fs/btrfs/transaction.c trans->transid); trans 1534 fs/btrfs/transaction.c btrfs_set_root_otransid(new_root_item, trans->transid); trans 1537 fs/btrfs/transaction.c ret = btrfs_cow_block(trans, root, old, NULL, 0, &old); trans 1541 fs/btrfs/transaction.c btrfs_abort_transaction(trans, ret); trans 1547 fs/btrfs/transaction.c ret = btrfs_copy_root(trans, root, old, &tmp, objectid); trans 1552 fs/btrfs/transaction.c btrfs_abort_transaction(trans, ret); trans 1561 fs/btrfs/transaction.c key.offset = trans->transid; trans 1562 fs/btrfs/transaction.c ret = btrfs_insert_root(trans, tree_root, &key, new_root_item); trans 1566 fs/btrfs/transaction.c btrfs_abort_transaction(trans, ret); trans 1573 fs/btrfs/transaction.c ret = btrfs_add_root_ref(trans, objectid, trans 1578 fs/btrfs/transaction.c btrfs_abort_transaction(trans, ret); trans 1586 fs/btrfs/transaction.c btrfs_abort_transaction(trans, ret); trans 1590 fs/btrfs/transaction.c ret = btrfs_reloc_post_snapshot(trans, pending); trans 1592 fs/btrfs/transaction.c btrfs_abort_transaction(trans, ret); trans 1596 fs/btrfs/transaction.c ret = btrfs_run_delayed_refs(trans, (unsigned long)-1); trans 1598 fs/btrfs/transaction.c btrfs_abort_transaction(trans, ret); trans 1608 fs/btrfs/transaction.c ret = qgroup_account_snapshot(trans, root, parent_root, trans 1613 fs/btrfs/transaction.c ret = btrfs_insert_dir_item(trans, dentry->d_name.name, trans 1619 fs/btrfs/transaction.c btrfs_abort_transaction(trans, ret); trans 1627 fs/btrfs/transaction.c ret = btrfs_update_inode_fallback(trans, parent_root, parent_inode); trans 1629 fs/btrfs/transaction.c btrfs_abort_transaction(trans, ret); trans 1632 fs/btrfs/transaction.c ret = btrfs_uuid_tree_add(trans, new_uuid.b, BTRFS_UUID_KEY_SUBVOL, trans 1635 fs/btrfs/transaction.c btrfs_abort_transaction(trans, ret); trans 1639 fs/btrfs/transaction.c ret = btrfs_uuid_tree_add(trans, new_root_item->received_uuid, trans 1643 fs/btrfs/transaction.c btrfs_abort_transaction(trans, ret); trans 1648 fs/btrfs/transaction.c ret = btrfs_run_delayed_refs(trans, (unsigned long)-1); trans 1650 fs/btrfs/transaction.c btrfs_abort_transaction(trans, ret); trans 1657 fs/btrfs/transaction.c trans->block_rsv = rsv; trans 1658 fs/btrfs/transaction.c trans->bytes_reserved = 0; trans 1660 fs/btrfs/transaction.c btrfs_clear_skip_qgroup(trans); trans 1673 fs/btrfs/transaction.c static noinline int create_pending_snapshots(struct btrfs_trans_handle *trans) trans 1676 fs/btrfs/transaction.c struct list_head *head = &trans->transaction->pending_snapshots; trans 1681 fs/btrfs/transaction.c ret = create_pending_snapshot(trans, pending); trans 1712 fs/btrfs/transaction.c struct btrfs_transaction *trans; trans 1716 fs/btrfs/transaction.c trans = info->running_transaction; trans 1717 fs/btrfs/transaction.c if (trans) trans 1718 fs/btrfs/transaction.c ret = (trans->state >= TRANS_STATE_COMMIT_START); trans 1725 fs/btrfs/transaction.c struct btrfs_transaction *trans; trans 1729 fs/btrfs/transaction.c trans = info->running_transaction; trans 1730 fs/btrfs/transaction.c if (trans) trans 1731 fs/btrfs/transaction.c ret = is_transaction_blocked(trans); trans 1741 fs/btrfs/transaction.c struct btrfs_transaction *trans) trans 1744 fs/btrfs/transaction.c trans->state >= TRANS_STATE_COMMIT_START || trans->aborted); trans 1753 fs/btrfs/transaction.c struct btrfs_transaction *trans) trans 1756 fs/btrfs/transaction.c trans->state >= TRANS_STATE_UNBLOCKED || trans->aborted); trans 1786 fs/btrfs/transaction.c int btrfs_commit_transaction_async(struct btrfs_trans_handle *trans, trans 1789 fs/btrfs/transaction.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1798 fs/btrfs/transaction.c ac->newtrans = btrfs_join_transaction(trans->root); trans 1806 fs/btrfs/transaction.c cur_trans = trans->transaction; trans 1809 fs/btrfs/transaction.c btrfs_end_transaction(trans); trans 1826 fs/btrfs/transaction.c if (current->journal_info == trans) trans 1834 fs/btrfs/transaction.c static void cleanup_transaction(struct btrfs_trans_handle *trans, int err) trans 1836 fs/btrfs/transaction.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1837 fs/btrfs/transaction.c struct btrfs_transaction *cur_trans = trans->transaction; trans 1839 fs/btrfs/transaction.c WARN_ON(refcount_read(&trans->use_count) > 1); trans 1841 fs/btrfs/transaction.c btrfs_abort_transaction(trans, err); trans 1863 fs/btrfs/transaction.c btrfs_cleanup_one_transaction(trans->transaction, fs_info); trans 1870 fs/btrfs/transaction.c if (trans->type & __TRANS_FREEZABLE) trans 1875 fs/btrfs/transaction.c trace_btrfs_transaction_commit(trans->root); trans 1877 fs/btrfs/transaction.c if (current->journal_info == trans) trans 1881 fs/btrfs/transaction.c kmem_cache_free(btrfs_trans_handle_cachep, trans); trans 1888 fs/btrfs/transaction.c static void btrfs_cleanup_pending_block_groups(struct btrfs_trans_handle *trans) trans 1890 fs/btrfs/transaction.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1893 fs/btrfs/transaction.c list_for_each_entry_safe(block_group, tmp, &trans->new_bgs, bg_list) { trans 1899 fs/btrfs/transaction.c static inline int btrfs_start_delalloc_flush(struct btrfs_trans_handle *trans) trans 1901 fs/btrfs/transaction.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1916 fs/btrfs/transaction.c struct list_head *head = &trans->transaction->pending_snapshots; trans 1936 fs/btrfs/transaction.c static inline void btrfs_wait_delalloc_flush(struct btrfs_trans_handle *trans) trans 1938 fs/btrfs/transaction.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1944 fs/btrfs/transaction.c struct list_head *head = &trans->transaction->pending_snapshots; trans 1958 fs/btrfs/transaction.c int btrfs_commit_transaction(struct btrfs_trans_handle *trans) trans 1960 fs/btrfs/transaction.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 1961 fs/btrfs/transaction.c struct btrfs_transaction *cur_trans = trans->transaction; trans 1971 fs/btrfs/transaction.c trans->dirty = true; trans 1976 fs/btrfs/transaction.c btrfs_end_transaction(trans); trans 1980 fs/btrfs/transaction.c btrfs_trans_release_metadata(trans); trans 1981 fs/btrfs/transaction.c trans->block_rsv = NULL; trans 1986 fs/btrfs/transaction.c ret = btrfs_run_delayed_refs(trans, 0); trans 1988 fs/btrfs/transaction.c btrfs_end_transaction(trans); trans 1992 fs/btrfs/transaction.c cur_trans = trans->transaction; trans 2001 fs/btrfs/transaction.c btrfs_create_pending_block_groups(trans); trans 2003 fs/btrfs/transaction.c ret = btrfs_run_delayed_refs(trans, 0); trans 2005 fs/btrfs/transaction.c btrfs_end_transaction(trans); trans 2032 fs/btrfs/transaction.c ret = btrfs_start_dirty_block_groups(trans); trans 2034 fs/btrfs/transaction.c btrfs_end_transaction(trans); trans 2044 fs/btrfs/transaction.c ret = btrfs_end_transaction(trans); trans 2089 fs/btrfs/transaction.c extwriter_counter_dec(cur_trans, trans->type); trans 2091 fs/btrfs/transaction.c ret = btrfs_start_delalloc_flush(trans); trans 2095 fs/btrfs/transaction.c ret = btrfs_run_delayed_items(trans); trans 2103 fs/btrfs/transaction.c ret = btrfs_run_delayed_items(trans); trans 2107 fs/btrfs/transaction.c btrfs_wait_delalloc_flush(trans); trans 2138 fs/btrfs/transaction.c ret = create_pending_snapshots(trans); trans 2154 fs/btrfs/transaction.c ret = btrfs_run_delayed_items(trans); trans 2160 fs/btrfs/transaction.c ret = btrfs_run_delayed_refs(trans, (unsigned long)-1); trans 2172 fs/btrfs/transaction.c WARN_ON(cur_trans != trans->transaction); trans 2189 fs/btrfs/transaction.c ret = commit_fs_roots(trans); trans 2205 fs/btrfs/transaction.c btrfs_free_log_root_tree(trans, fs_info); trans 2211 fs/btrfs/transaction.c ret = btrfs_run_delayed_refs(trans, (unsigned long)-1); trans 2222 fs/btrfs/transaction.c ret = btrfs_qgroup_account_extents(trans); trans 2229 fs/btrfs/transaction.c ret = commit_cowonly_roots(trans); trans 2261 fs/btrfs/transaction.c switch_commit_roots(trans); trans 2277 fs/btrfs/transaction.c btrfs_trans_release_chunk_metadata(trans); trans 2287 fs/btrfs/transaction.c ret = btrfs_write_and_wait_transaction(trans); trans 2304 fs/btrfs/transaction.c btrfs_finish_extent_commit(trans); trans 2325 fs/btrfs/transaction.c if (trans->type & __TRANS_FREEZABLE) trans 2328 fs/btrfs/transaction.c trace_btrfs_transaction_commit(trans->root); trans 2332 fs/btrfs/transaction.c if (current->journal_info == trans) trans 2335 fs/btrfs/transaction.c kmem_cache_free(btrfs_trans_handle_cachep, trans); trans 2342 fs/btrfs/transaction.c btrfs_trans_release_metadata(trans); trans 2343 fs/btrfs/transaction.c btrfs_cleanup_pending_block_groups(trans); trans 2344 fs/btrfs/transaction.c btrfs_trans_release_chunk_metadata(trans); trans 2345 fs/btrfs/transaction.c trans->block_rsv = NULL; trans 2347 fs/btrfs/transaction.c if (current->journal_info == trans) trans 2349 fs/btrfs/transaction.c cleanup_transaction(trans, ret); trans 146 fs/btrfs/transaction.h static inline void btrfs_set_inode_last_trans(struct btrfs_trans_handle *trans, trans 150 fs/btrfs/transaction.h BTRFS_I(inode)->last_trans = trans->transaction->transid; trans 160 fs/btrfs/transaction.h static inline void btrfs_set_skip_qgroup(struct btrfs_trans_handle *trans, trans 165 fs/btrfs/transaction.h delayed_refs = &trans->transaction->delayed_refs; trans 170 fs/btrfs/transaction.h static inline void btrfs_clear_skip_qgroup(struct btrfs_trans_handle *trans) trans 174 fs/btrfs/transaction.h delayed_refs = &trans->transaction->delayed_refs; trans 179 fs/btrfs/transaction.h int btrfs_end_transaction(struct btrfs_trans_handle *trans); trans 197 fs/btrfs/transaction.h int btrfs_commit_transaction(struct btrfs_trans_handle *trans); trans 198 fs/btrfs/transaction.h int btrfs_commit_transaction_async(struct btrfs_trans_handle *trans, trans 214 fs/btrfs/transaction.h int btrfs_end_transaction_throttle(struct btrfs_trans_handle *trans); trans 215 fs/btrfs/transaction.h int btrfs_should_end_transaction(struct btrfs_trans_handle *trans); trans 217 fs/btrfs/transaction.h int btrfs_record_root_in_trans(struct btrfs_trans_handle *trans, trans 228 fs/btrfs/transaction.h void btrfs_add_dropped_root(struct btrfs_trans_handle *trans, trans 230 fs/btrfs/transaction.h void btrfs_trans_release_chunk_metadata(struct btrfs_trans_handle *trans); trans 19 fs/btrfs/tree-defrag.c int btrfs_defrag_leaves(struct btrfs_trans_handle *trans, trans 84 fs/btrfs/tree-defrag.c wret = btrfs_search_slot(trans, root, &key, path, 0, 1); trans 100 fs/btrfs/tree-defrag.c ret = btrfs_realloc_node(trans, root, trans 139 fs/btrfs/tree-defrag.c root->defrag_trans_start = trans->transid; trans 94 fs/btrfs/tree-log.c static int btrfs_log_inode(struct btrfs_trans_handle *trans, trans 100 fs/btrfs/tree-log.c static int link_to_fixup_dir(struct btrfs_trans_handle *trans, trans 103 fs/btrfs/tree-log.c static noinline int replay_dir_deletes(struct btrfs_trans_handle *trans, trans 137 fs/btrfs/tree-log.c static int start_log_trans(struct btrfs_trans_handle *trans, trans 147 fs/btrfs/tree-log.c if (btrfs_need_log_full_commit(trans)) { trans 161 fs/btrfs/tree-log.c ret = btrfs_init_log_root_tree(trans, fs_info); trans 166 fs/btrfs/tree-log.c ret = btrfs_add_log_tree(trans, root); trans 282 fs/btrfs/tree-log.c struct btrfs_trans_handle *trans; trans 342 fs/btrfs/tree-log.c static noinline int overwrite_item(struct btrfs_trans_handle *trans, trans 458 fs/btrfs/tree-log.c ret = btrfs_insert_empty_item(trans, root, path, trans 540 fs/btrfs/tree-log.c trans->transid); trans 580 fs/btrfs/tree-log.c static noinline int replay_one_extent(struct btrfs_trans_handle *trans, trans 631 fs/btrfs/tree-log.c ret = btrfs_lookup_file_extent(trans, root, path, trans 663 fs/btrfs/tree-log.c ret = btrfs_drop_extents(trans, root, inode, start, extent_end, 1); trans 677 fs/btrfs/tree-log.c ret = btrfs_insert_empty_item(trans, root, path, key, trans 699 fs/btrfs/tree-log.c ret = btrfs_qgroup_trace_extent(trans, trans 725 fs/btrfs/tree-log.c ret = btrfs_inc_extent_ref(trans, &ref); trans 733 fs/btrfs/tree-log.c ret = btrfs_alloc_logged_file_extent(trans, trans 811 fs/btrfs/tree-log.c ret = btrfs_del_csums(trans, trans 816 fs/btrfs/tree-log.c ret = btrfs_csum_file_blocks(trans, trans 828 fs/btrfs/tree-log.c ret = overwrite_item(trans, root, path, eb, slot, key); trans 835 fs/btrfs/tree-log.c ret = btrfs_update_inode(trans, root, inode); trans 850 fs/btrfs/tree-log.c static noinline int drop_one_dir_item(struct btrfs_trans_handle *trans, trans 880 fs/btrfs/tree-log.c ret = link_to_fixup_dir(trans, root, path, location.objectid); trans 884 fs/btrfs/tree-log.c ret = btrfs_unlink_inode(trans, root, dir, BTRFS_I(inode), name, trans 889 fs/btrfs/tree-log.c ret = btrfs_run_delayed_items(trans); trans 999 fs/btrfs/tree-log.c static inline int __add_inode_ref(struct btrfs_trans_handle *trans, trans 1061 fs/btrfs/tree-log.c ret = btrfs_unlink_inode(trans, root, dir, inode, trans 1066 fs/btrfs/tree-log.c ret = btrfs_run_delayed_items(trans); trans 1130 fs/btrfs/tree-log.c ret = btrfs_unlink_inode(trans, root, trans 1137 fs/btrfs/tree-log.c trans); trans 1155 fs/btrfs/tree-log.c di = btrfs_lookup_dir_index_item(trans, root, path, btrfs_ino(dir), trans 1158 fs/btrfs/tree-log.c ret = drop_one_dir_item(trans, root, path, dir, di); trans 1165 fs/btrfs/tree-log.c di = btrfs_lookup_dir_item(trans, root, path, btrfs_ino(dir), trans 1168 fs/btrfs/tree-log.c ret = drop_one_dir_item(trans, root, path, dir, di); trans 1228 fs/btrfs/tree-log.c static int unlink_old_inode_refs(struct btrfs_trans_handle *trans, trans 1288 fs/btrfs/tree-log.c ret = btrfs_unlink_inode(trans, root, BTRFS_I(dir), trans 1349 fs/btrfs/tree-log.c static int add_link(struct btrfs_trans_handle *trans, struct btrfs_root *root, trans 1386 fs/btrfs/tree-log.c ret = btrfs_unlink_inode(trans, root, BTRFS_I(dir), BTRFS_I(other_inode), trans 1397 fs/btrfs/tree-log.c ret = btrfs_run_delayed_items(trans); trans 1401 fs/btrfs/tree-log.c ret = btrfs_add_link(trans, BTRFS_I(dir), BTRFS_I(inode), trans 1416 fs/btrfs/tree-log.c static noinline int add_inode_ref(struct btrfs_trans_handle *trans, trans 1505 fs/btrfs/tree-log.c ret = __add_inode_ref(trans, root, path, log, trans 1530 fs/btrfs/tree-log.c ret = btrfs_unlink_inode(trans, root, trans 1546 fs/btrfs/tree-log.c ret = add_link(trans, root, dir, inode, name, namelen, trans 1551 fs/btrfs/tree-log.c btrfs_update_inode(trans, root, inode); trans 1571 fs/btrfs/tree-log.c ret = unlink_old_inode_refs(trans, root, path, BTRFS_I(inode), eb, slot, trans 1577 fs/btrfs/tree-log.c ret = overwrite_item(trans, root, path, eb, slot, key); trans 1586 fs/btrfs/tree-log.c static int insert_orphan_item(struct btrfs_trans_handle *trans, trans 1591 fs/btrfs/tree-log.c ret = btrfs_insert_orphan_item(trans, root, ino); trans 1709 fs/btrfs/tree-log.c static noinline int fixup_inode_link_count(struct btrfs_trans_handle *trans, trans 1738 fs/btrfs/tree-log.c btrfs_update_inode(trans, root, inode); trans 1744 fs/btrfs/tree-log.c ret = replay_dir_deletes(trans, root, NULL, path, trans 1749 fs/btrfs/tree-log.c ret = insert_orphan_item(trans, root, ino); trans 1757 fs/btrfs/tree-log.c static noinline int fixup_inode_link_counts(struct btrfs_trans_handle *trans, trans 1769 fs/btrfs/tree-log.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); trans 1784 fs/btrfs/tree-log.c ret = btrfs_del_item(trans, root, path); trans 1793 fs/btrfs/tree-log.c ret = fixup_inode_link_count(trans, root, inode); trans 1817 fs/btrfs/tree-log.c static noinline int link_to_fixup_dir(struct btrfs_trans_handle *trans, trans 1834 fs/btrfs/tree-log.c ret = btrfs_insert_empty_item(trans, root, path, &key, 0); trans 1842 fs/btrfs/tree-log.c ret = btrfs_update_inode(trans, root, inode); trans 1858 fs/btrfs/tree-log.c static noinline int insert_one_name(struct btrfs_trans_handle *trans, trans 1878 fs/btrfs/tree-log.c ret = btrfs_add_link(trans, BTRFS_I(dir), BTRFS_I(inode), name, trans 1928 fs/btrfs/tree-log.c static noinline int replay_one_name(struct btrfs_trans_handle *trans, trans 1963 fs/btrfs/tree-log.c exists = btrfs_lookup_inode(trans, root, path, &log_key, 0); trans 1971 fs/btrfs/tree-log.c dst_di = btrfs_lookup_dir_item(trans, root, path, key->objectid, trans 1974 fs/btrfs/tree-log.c dst_di = btrfs_lookup_dir_index_item(trans, root, path, trans 2009 fs/btrfs/tree-log.c ret = drop_one_dir_item(trans, root, path, BTRFS_I(dir), dst_di); trans 2019 fs/btrfs/tree-log.c ret = btrfs_update_inode(trans, root, dir); trans 2036 fs/btrfs/tree-log.c ret = insert_one_name(trans, root, key->objectid, key->offset, trans 2053 fs/btrfs/tree-log.c static noinline int replay_one_dir_item(struct btrfs_trans_handle *trans, trans 2072 fs/btrfs/tree-log.c ret = replay_one_name(trans, root, path, eb, di, key); trans 2117 fs/btrfs/tree-log.c ret = link_to_fixup_dir(trans, root, fixup_path, trans 2215 fs/btrfs/tree-log.c static noinline int check_item_in_log(struct btrfs_trans_handle *trans, trans 2254 fs/btrfs/tree-log.c log_di = btrfs_lookup_dir_item(trans, log, log_path, trans 2258 fs/btrfs/tree-log.c log_di = btrfs_lookup_dir_index_item(trans, log, trans 2274 fs/btrfs/tree-log.c ret = link_to_fixup_dir(trans, root, trans 2283 fs/btrfs/tree-log.c ret = btrfs_unlink_inode(trans, root, BTRFS_I(dir), trans 2286 fs/btrfs/tree-log.c ret = btrfs_run_delayed_items(trans); trans 2318 fs/btrfs/tree-log.c static int replay_xattr_deletes(struct btrfs_trans_handle *trans, trans 2379 fs/btrfs/tree-log.c di = btrfs_lookup_xattr(trans, root, path, ino, trans 2387 fs/btrfs/tree-log.c ret = btrfs_delete_one_dir_name(trans, root, trans 2426 fs/btrfs/tree-log.c static noinline int replay_dir_deletes(struct btrfs_trans_handle *trans, trans 2494 fs/btrfs/tree-log.c ret = check_item_in_log(trans, root, log, path, trans 2584 fs/btrfs/tree-log.c ret = replay_xattr_deletes(wc->trans, root, log, trans 2590 fs/btrfs/tree-log.c ret = replay_dir_deletes(wc->trans, trans 2595 fs/btrfs/tree-log.c ret = overwrite_item(wc->trans, root, path, trans 2619 fs/btrfs/tree-log.c ret = btrfs_drop_extents(wc->trans, root, inode, trans 2623 fs/btrfs/tree-log.c ret = btrfs_update_inode(wc->trans, trans 2631 fs/btrfs/tree-log.c ret = link_to_fixup_dir(wc->trans, root, trans 2642 fs/btrfs/tree-log.c ret = replay_one_dir_item(wc->trans, root, path, trans 2653 fs/btrfs/tree-log.c ret = overwrite_item(wc->trans, root, path, trans 2659 fs/btrfs/tree-log.c ret = add_inode_ref(wc->trans, root, log, path, trans 2665 fs/btrfs/tree-log.c ret = replay_one_extent(wc->trans, root, path, trans 2670 fs/btrfs/tree-log.c ret = replay_one_dir_item(wc->trans, root, path, trans 2680 fs/btrfs/tree-log.c static noinline int walk_down_log_tree(struct btrfs_trans_handle *trans, trans 2740 fs/btrfs/tree-log.c if (trans) { trans 2787 fs/btrfs/tree-log.c static noinline int walk_up_log_tree(struct btrfs_trans_handle *trans, trans 2824 fs/btrfs/tree-log.c if (trans) { trans 2856 fs/btrfs/tree-log.c static int walk_log_tree(struct btrfs_trans_handle *trans, trans 2877 fs/btrfs/tree-log.c wret = walk_down_log_tree(trans, log, path, &level, wc); trans 2885 fs/btrfs/tree-log.c wret = walk_up_log_tree(trans, log, path, &level, wc); trans 2906 fs/btrfs/tree-log.c if (trans) { trans 2935 fs/btrfs/tree-log.c static int update_log_root(struct btrfs_trans_handle *trans, trans 2944 fs/btrfs/tree-log.c ret = btrfs_insert_root(trans, fs_info->log_root_tree, trans 2947 fs/btrfs/tree-log.c ret = btrfs_update_root(trans, fs_info->log_root_tree, trans 3036 fs/btrfs/tree-log.c int btrfs_sync_log(struct btrfs_trans_handle *trans, trans 3086 fs/btrfs/tree-log.c if (btrfs_need_log_full_commit(trans)) { trans 3104 fs/btrfs/tree-log.c btrfs_abort_transaction(trans, ret); trans 3105 fs/btrfs/tree-log.c btrfs_set_log_full_commit(trans); trans 3155 fs/btrfs/tree-log.c ret = update_log_root(trans, log, &new_root_item); trans 3167 fs/btrfs/tree-log.c btrfs_set_log_full_commit(trans); trans 3170 fs/btrfs/tree-log.c btrfs_abort_transaction(trans, ret); trans 3213 fs/btrfs/tree-log.c if (btrfs_need_log_full_commit(trans)) { trans 3226 fs/btrfs/tree-log.c btrfs_set_log_full_commit(trans); trans 3227 fs/btrfs/tree-log.c btrfs_abort_transaction(trans, ret); trans 3236 fs/btrfs/tree-log.c btrfs_set_log_full_commit(trans); trans 3258 fs/btrfs/tree-log.c btrfs_set_log_full_commit(trans); trans 3259 fs/btrfs/tree-log.c btrfs_abort_transaction(trans, ret); trans 3298 fs/btrfs/tree-log.c static void free_log_tree(struct btrfs_trans_handle *trans, trans 3307 fs/btrfs/tree-log.c ret = walk_log_tree(trans, log, &wc); trans 3309 fs/btrfs/tree-log.c if (trans) trans 3310 fs/btrfs/tree-log.c btrfs_abort_transaction(trans, ret); trans 3325 fs/btrfs/tree-log.c int btrfs_free_log(struct btrfs_trans_handle *trans, struct btrfs_root *root) trans 3328 fs/btrfs/tree-log.c free_log_tree(trans, root->log_root); trans 3334 fs/btrfs/tree-log.c int btrfs_free_log_root_tree(struct btrfs_trans_handle *trans, trans 3338 fs/btrfs/tree-log.c free_log_tree(trans, fs_info->log_root_tree); trans 3354 fs/btrfs/tree-log.c static bool inode_logged(struct btrfs_trans_handle *trans, trans 3357 fs/btrfs/tree-log.c if (inode->logged_trans == trans->transid) trans 3360 fs/btrfs/tree-log.c if (inode->last_trans == trans->transid && trans 3362 fs/btrfs/tree-log.c !test_bit(BTRFS_FS_LOG_RECOVERING, &trans->fs_info->flags)) trans 3389 fs/btrfs/tree-log.c int btrfs_del_dir_entries_in_log(struct btrfs_trans_handle *trans, trans 3402 fs/btrfs/tree-log.c if (!inode_logged(trans, dir)) trans 3418 fs/btrfs/tree-log.c di = btrfs_lookup_dir_item(trans, log, path, dir_ino, trans 3425 fs/btrfs/tree-log.c ret = btrfs_delete_one_dir_name(trans, log, path, di); trans 3433 fs/btrfs/tree-log.c di = btrfs_lookup_dir_index_item(trans, log, path, dir_ino, trans 3440 fs/btrfs/tree-log.c ret = btrfs_delete_one_dir_name(trans, log, path, di); trans 3459 fs/btrfs/tree-log.c ret = btrfs_search_slot(trans, log, &key, path, 0, 1); trans 3486 fs/btrfs/tree-log.c btrfs_set_log_full_commit(trans); trans 3489 fs/btrfs/tree-log.c btrfs_abort_transaction(trans, ret); trans 3497 fs/btrfs/tree-log.c int btrfs_del_inode_ref_in_log(struct btrfs_trans_handle *trans, trans 3506 fs/btrfs/tree-log.c if (!inode_logged(trans, inode)) trans 3515 fs/btrfs/tree-log.c ret = btrfs_del_inode_ref(trans, log, name, name_len, btrfs_ino(inode), trans 3519 fs/btrfs/tree-log.c btrfs_set_log_full_commit(trans); trans 3522 fs/btrfs/tree-log.c btrfs_abort_transaction(trans, ret); trans 3533 fs/btrfs/tree-log.c static noinline int insert_dir_log_key(struct btrfs_trans_handle *trans, trans 3549 fs/btrfs/tree-log.c ret = btrfs_insert_empty_item(trans, log, path, &key, sizeof(*item)); trans 3566 fs/btrfs/tree-log.c static noinline int log_dir_items(struct btrfs_trans_handle *trans, trans 3590 fs/btrfs/tree-log.c ret = btrfs_search_forward(root, &min_key, path, trans->transid); trans 3630 fs/btrfs/tree-log.c ret = overwrite_item(trans, log, dst_path, trans 3668 fs/btrfs/tree-log.c ret = overwrite_item(trans, log, dst_path, src, i, trans 3701 fs/btrfs/tree-log.c (btrfs_dir_transid(src, di) == trans->transid || trans 3725 fs/btrfs/tree-log.c if (btrfs_header_generation(path->nodes[0]) != trans->transid) { trans 3726 fs/btrfs/tree-log.c ret = overwrite_item(trans, log, dst_path, trans 3746 fs/btrfs/tree-log.c ret = insert_dir_log_key(trans, log, path, key_type, trans 3766 fs/btrfs/tree-log.c static noinline int log_directory_changes(struct btrfs_trans_handle *trans, trans 3781 fs/btrfs/tree-log.c ret = log_dir_items(trans, root, inode, path, dst_path, key_type, trans 3803 fs/btrfs/tree-log.c static int drop_objectid_items(struct btrfs_trans_handle *trans, trans 3818 fs/btrfs/tree-log.c ret = btrfs_search_slot(trans, log, &key, path, -1, 1); trans 3840 fs/btrfs/tree-log.c ret = btrfs_del_items(trans, log, path, start_slot, trans 3856 fs/btrfs/tree-log.c static void fill_inode_item(struct btrfs_trans_handle *trans, trans 3906 fs/btrfs/tree-log.c btrfs_set_token_inode_transid(leaf, item, trans->transid, &token); trans 3912 fs/btrfs/tree-log.c static int log_inode_item(struct btrfs_trans_handle *trans, trans 3919 fs/btrfs/tree-log.c ret = btrfs_insert_empty_item(trans, log, path, trans 3925 fs/btrfs/tree-log.c fill_inode_item(trans, path->nodes[0], inode_item, &inode->vfs_inode, trans 3931 fs/btrfs/tree-log.c static int log_csums(struct btrfs_trans_handle *trans, trans 3946 fs/btrfs/tree-log.c ret = btrfs_del_csums(trans, log_root, sums->bytenr, sums->len); trans 3950 fs/btrfs/tree-log.c return btrfs_csum_file_blocks(trans, log_root, sums); trans 3953 fs/btrfs/tree-log.c static noinline int copy_items(struct btrfs_trans_handle *trans, trans 3960 fs/btrfs/tree-log.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 3989 fs/btrfs/tree-log.c ret = btrfs_insert_empty_items(trans, log, dst_path, trans 4006 fs/btrfs/tree-log.c fill_inode_item(trans, dst_path->nodes[0], inode_item, trans 4025 fs/btrfs/tree-log.c if (btrfs_file_extent_generation(src, extent) < trans->transid) trans 4075 fs/btrfs/tree-log.c ret = log_csums(trans, log, sums); trans 4097 fs/btrfs/tree-log.c static int log_extent_csums(struct btrfs_trans_handle *trans, trans 4122 fs/btrfs/tree-log.c ret = btrfs_lookup_csums_range(trans->fs_info->csum_root, trans 4134 fs/btrfs/tree-log.c ret = log_csums(trans, log_root, sums); trans 4142 fs/btrfs/tree-log.c static int log_one_extent(struct btrfs_trans_handle *trans, trans 4158 fs/btrfs/tree-log.c ret = log_extent_csums(trans, inode, log, em); trans 4162 fs/btrfs/tree-log.c ret = __btrfs_drop_extents(trans, log, &inode->vfs_inode, path, em->start, trans 4173 fs/btrfs/tree-log.c ret = btrfs_insert_empty_item(trans, log, path, &key, trans 4183 fs/btrfs/tree-log.c btrfs_set_token_file_extent_generation(leaf, fi, trans->transid, trans 4235 fs/btrfs/tree-log.c static int btrfs_log_prealloc_extents(struct btrfs_trans_handle *trans, trans 4302 fs/btrfs/tree-log.c ret = copy_items(trans, inode, dst_path, path, trans 4333 fs/btrfs/tree-log.c ret = btrfs_truncate_inode_items(trans, trans 4356 fs/btrfs/tree-log.c ret = copy_items(trans, inode, dst_path, path, trans 4367 fs/btrfs/tree-log.c static int btrfs_log_changed_extents(struct btrfs_trans_handle *trans, trans 4452 fs/btrfs/tree-log.c ret = log_one_extent(trans, inode, root, em, path, ctx); trans 4462 fs/btrfs/tree-log.c ret = btrfs_log_prealloc_extents(trans, inode, path); trans 4516 fs/btrfs/tree-log.c static int btrfs_log_all_xattrs(struct btrfs_trans_handle *trans, trans 4543 fs/btrfs/tree-log.c ret = copy_items(trans, inode, dst_path, path, trans 4568 fs/btrfs/tree-log.c ret = copy_items(trans, inode, dst_path, path, trans 4586 fs/btrfs/tree-log.c static int btrfs_log_holes(struct btrfs_trans_handle *trans, trans 4639 fs/btrfs/tree-log.c ret = btrfs_insert_file_extent(trans, root->log_root, trans 4682 fs/btrfs/tree-log.c ret = btrfs_insert_file_extent(trans, root->log_root, trans 4834 fs/btrfs/tree-log.c static int log_conflicting_inodes(struct btrfs_trans_handle *trans, trans 4885 fs/btrfs/tree-log.c ret = btrfs_log_inode(trans, root, trans 4932 fs/btrfs/tree-log.c if (BTRFS_I(inode)->logged_trans == trans->transid) { trans 4945 fs/btrfs/tree-log.c ret = btrfs_log_inode(trans, root, BTRFS_I(inode), trans 5024 fs/btrfs/tree-log.c static int btrfs_log_inode(struct btrfs_trans_handle *trans, trans 5084 fs/btrfs/tree-log.c ret = btrfs_commit_inode_delayed_items(trans, inode); trans 5114 fs/btrfs/tree-log.c ret = drop_objectid_items(trans, log, path, ino, max_key_type); trans 5138 fs/btrfs/tree-log.c ret = drop_objectid_items(trans, log, path, ino, trans 5146 fs/btrfs/tree-log.c ret = btrfs_truncate_inode_items(trans, trans 5158 fs/btrfs/tree-log.c ret = drop_objectid_items(trans, log, path, ino, trans 5175 fs/btrfs/tree-log.c path, trans->transid); trans 5194 fs/btrfs/tree-log.c inode->generation == trans->transid && trans 5213 fs/btrfs/tree-log.c ret = copy_items(trans, inode, dst_path, path, trans 5223 fs/btrfs/tree-log.c err = log_conflicting_inodes(trans, root, path, trans 5236 fs/btrfs/tree-log.c ret = copy_items(trans, inode, dst_path, path, trans 5256 fs/btrfs/tree-log.c ret = copy_items(trans, inode, dst_path, path, trans 5275 fs/btrfs/tree-log.c ret = copy_items(trans, inode, dst_path, path, trans 5296 fs/btrfs/tree-log.c ret = copy_items(trans, inode, dst_path, path, trans 5308 fs/btrfs/tree-log.c err = btrfs_log_all_xattrs(trans, root, inode, path, dst_path); trans 5315 fs/btrfs/tree-log.c err = btrfs_log_holes(trans, root, inode, path); trans 5323 fs/btrfs/tree-log.c err = log_inode_item(trans, log, dst_path, inode); trans 5325 fs/btrfs/tree-log.c err = btrfs_log_all_xattrs(trans, root, inode, path, trans 5333 fs/btrfs/tree-log.c ret = btrfs_log_changed_extents(trans, root, inode, dst_path, trans 5372 fs/btrfs/tree-log.c ret = log_directory_changes(trans, root, inode, path, dst_path, trans 5389 fs/btrfs/tree-log.c inode->logged_trans = trans->transid; trans 5418 fs/btrfs/tree-log.c static bool btrfs_must_commit_transaction(struct btrfs_trans_handle *trans, trans 5430 fs/btrfs/tree-log.c btrfs_set_log_full_commit(trans); trans 5444 fs/btrfs/tree-log.c static noinline int check_parent_dirs_for_sync(struct btrfs_trans_handle *trans, trans 5471 fs/btrfs/tree-log.c if (btrfs_must_commit_transaction(trans, inode)) { trans 5481 fs/btrfs/tree-log.c if (btrfs_must_commit_transaction(trans, inode)) trans 5544 fs/btrfs/tree-log.c static int log_new_dir_dentries(struct btrfs_trans_handle *trans, trans 5584 fs/btrfs/tree-log.c ret = btrfs_search_forward(log, &min_key, path, trans->transid); trans 5610 fs/btrfs/tree-log.c if (btrfs_dir_transid(leaf, di) < trans->transid && trans 5624 fs/btrfs/tree-log.c if (btrfs_inode_in_log(BTRFS_I(di_inode), trans->transid)) { trans 5632 fs/btrfs/tree-log.c ret = btrfs_log_inode(trans, root, BTRFS_I(di_inode), trans 5635 fs/btrfs/tree-log.c btrfs_must_commit_transaction(trans, BTRFS_I(di_inode))) trans 5675 fs/btrfs/tree-log.c static int btrfs_log_all_parents(struct btrfs_trans_handle *trans, trans 5679 fs/btrfs/tree-log.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 5776 fs/btrfs/tree-log.c ret = btrfs_log_inode(trans, root, BTRFS_I(dir_inode), trans 5779 fs/btrfs/tree-log.c btrfs_must_commit_transaction(trans, BTRFS_I(dir_inode))) trans 5782 fs/btrfs/tree-log.c ret = log_new_dir_dentries(trans, root, trans 5796 fs/btrfs/tree-log.c static int log_new_ancestors(struct btrfs_trans_handle *trans, trans 5824 fs/btrfs/tree-log.c ret = btrfs_log_inode(trans, root, BTRFS_I(inode), trans 5859 fs/btrfs/tree-log.c static int log_new_ancestors_fast(struct btrfs_trans_handle *trans, trans 5880 fs/btrfs/tree-log.c ret = btrfs_log_inode(trans, root, inode, trans 5897 fs/btrfs/tree-log.c static int log_all_new_ancestors(struct btrfs_trans_handle *trans, trans 5913 fs/btrfs/tree-log.c return log_new_ancestors_fast(trans, inode, parent, ctx); trans 5968 fs/btrfs/tree-log.c ret = log_new_ancestors(trans, root, path, ctx); trans 5986 fs/btrfs/tree-log.c static int btrfs_log_inode_parent(struct btrfs_trans_handle *trans, trans 6023 fs/btrfs/tree-log.c ret = check_parent_dirs_for_sync(trans, inode, parent, sb, trans 6033 fs/btrfs/tree-log.c if (btrfs_inode_in_log(inode, trans->transid) || trans 6039 fs/btrfs/tree-log.c ret = start_log_trans(trans, root, ctx); trans 6043 fs/btrfs/tree-log.c ret = btrfs_log_inode(trans, root, inode, inode_only, start, end, ctx); trans 6105 fs/btrfs/tree-log.c ret = btrfs_log_all_parents(trans, inode, ctx); trans 6110 fs/btrfs/tree-log.c ret = log_all_new_ancestors(trans, inode, parent, ctx); trans 6115 fs/btrfs/tree-log.c ret = log_new_dir_dentries(trans, root, inode, ctx); trans 6120 fs/btrfs/tree-log.c btrfs_set_log_full_commit(trans); trans 6137 fs/btrfs/tree-log.c int btrfs_log_dentry_safe(struct btrfs_trans_handle *trans, trans 6146 fs/btrfs/tree-log.c ret = btrfs_log_inode_parent(trans, BTRFS_I(d_inode(dentry)), parent, trans 6161 fs/btrfs/tree-log.c struct btrfs_trans_handle *trans; trans 6178 fs/btrfs/tree-log.c trans = btrfs_start_transaction(fs_info->tree_root, 0); trans 6179 fs/btrfs/tree-log.c if (IS_ERR(trans)) { trans 6180 fs/btrfs/tree-log.c ret = PTR_ERR(trans); trans 6184 fs/btrfs/tree-log.c wc.trans = trans; trans 6187 fs/btrfs/tree-log.c ret = walk_log_tree(trans, log_root_tree, &wc); trans 6261 fs/btrfs/tree-log.c btrfs_record_root_in_trans(trans, wc.replay_dest); trans 6262 fs/btrfs/tree-log.c ret = walk_log_tree(trans, log, &wc); trans 6265 fs/btrfs/tree-log.c ret = fixup_inode_link_counts(trans, wc.replay_dest, trans 6316 fs/btrfs/tree-log.c ret = btrfs_commit_transaction(trans); trans 6327 fs/btrfs/tree-log.c if (wc.trans) trans 6328 fs/btrfs/tree-log.c btrfs_end_transaction(wc.trans); trans 6344 fs/btrfs/tree-log.c void btrfs_record_unlink_dir(struct btrfs_trans_handle *trans, trans 6359 fs/btrfs/tree-log.c inode->last_unlink_trans = trans->transid; trans 6366 fs/btrfs/tree-log.c if (dir->logged_trans == trans->transid) trans 6373 fs/btrfs/tree-log.c if (inode->logged_trans == trans->transid) trans 6391 fs/btrfs/tree-log.c dir->last_unlink_trans = trans->transid; trans 6407 fs/btrfs/tree-log.c void btrfs_record_snapshot_destroy(struct btrfs_trans_handle *trans, trans 6411 fs/btrfs/tree-log.c dir->last_unlink_trans = trans->transid; trans 6431 fs/btrfs/tree-log.c int btrfs_log_new_name(struct btrfs_trans_handle *trans, trans 6436 fs/btrfs/tree-log.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 6444 fs/btrfs/tree-log.c inode->last_unlink_trans = trans->transid; trans 6459 fs/btrfs/tree-log.c ret = btrfs_log_inode_parent(trans, inode, parent, 0, LLONG_MAX, trans 6466 fs/btrfs/tree-log.c ret = btrfs_sync_log(trans, inode->root, &ctx2); trans 6473 fs/btrfs/tree-log.c ret = btrfs_log_inode_parent(trans, inode, parent, 0, LLONG_MAX, trans 33 fs/btrfs/tree-log.h static inline void btrfs_set_log_full_commit(struct btrfs_trans_handle *trans) trans 35 fs/btrfs/tree-log.h WRITE_ONCE(trans->fs_info->last_trans_log_full_commit, trans->transid); trans 38 fs/btrfs/tree-log.h static inline int btrfs_need_log_full_commit(struct btrfs_trans_handle *trans) trans 40 fs/btrfs/tree-log.h return READ_ONCE(trans->fs_info->last_trans_log_full_commit) == trans 41 fs/btrfs/tree-log.h trans->transid; trans 44 fs/btrfs/tree-log.h int btrfs_sync_log(struct btrfs_trans_handle *trans, trans 46 fs/btrfs/tree-log.h int btrfs_free_log(struct btrfs_trans_handle *trans, struct btrfs_root *root); trans 47 fs/btrfs/tree-log.h int btrfs_free_log_root_tree(struct btrfs_trans_handle *trans, trans 50 fs/btrfs/tree-log.h int btrfs_log_dentry_safe(struct btrfs_trans_handle *trans, trans 55 fs/btrfs/tree-log.h int btrfs_del_dir_entries_in_log(struct btrfs_trans_handle *trans, trans 59 fs/btrfs/tree-log.h int btrfs_del_inode_ref_in_log(struct btrfs_trans_handle *trans, trans 65 fs/btrfs/tree-log.h void btrfs_record_unlink_dir(struct btrfs_trans_handle *trans, trans 68 fs/btrfs/tree-log.h void btrfs_record_snapshot_destroy(struct btrfs_trans_handle *trans, trans 77 fs/btrfs/tree-log.h int btrfs_log_new_name(struct btrfs_trans_handle *trans, trans 82 fs/btrfs/uuid-tree.c int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, u8 *uuid, u8 type, trans 85 fs/btrfs/uuid-tree.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 112 fs/btrfs/uuid-tree.c ret = btrfs_insert_empty_item(trans, uuid_root, path, &key, trans 147 fs/btrfs/uuid-tree.c int btrfs_uuid_tree_remove(struct btrfs_trans_handle *trans, u8 *uuid, u8 type, trans 150 fs/btrfs/uuid-tree.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 176 fs/btrfs/uuid-tree.c ret = btrfs_search_slot(trans, uuid_root, &key, path, -1, 1); trans 214 fs/btrfs/uuid-tree.c ret = btrfs_del_item(trans, uuid_root, path); trans 232 fs/btrfs/uuid-tree.c struct btrfs_trans_handle *trans; trans 236 fs/btrfs/uuid-tree.c trans = btrfs_start_transaction(uuid_root, 1); trans 237 fs/btrfs/uuid-tree.c if (IS_ERR(trans)) { trans 238 fs/btrfs/uuid-tree.c ret = PTR_ERR(trans); trans 242 fs/btrfs/uuid-tree.c ret = btrfs_uuid_tree_remove(trans, uuid, type, subid); trans 243 fs/btrfs/uuid-tree.c btrfs_end_transaction(trans); trans 192 fs/btrfs/volumes.c static int init_first_rw_device(struct btrfs_trans_handle *trans); trans 1761 fs/btrfs/volumes.c static int btrfs_free_dev_extent(struct btrfs_trans_handle *trans, trans 1782 fs/btrfs/volumes.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); trans 1808 fs/btrfs/volumes.c ret = btrfs_del_item(trans, root, path); trans 1813 fs/btrfs/volumes.c set_bit(BTRFS_TRANS_HAVE_FREE_BGS, &trans->transaction->flags); trans 1820 fs/btrfs/volumes.c static int btrfs_alloc_dev_extent(struct btrfs_trans_handle *trans, trans 1841 fs/btrfs/volumes.c ret = btrfs_insert_empty_item(trans, root, path, &key, trans 1928 fs/btrfs/volumes.c static int btrfs_add_dev_item(struct btrfs_trans_handle *trans, trans 1946 fs/btrfs/volumes.c ret = btrfs_insert_empty_item(trans, trans->fs_info->chunk_root, path, trans 1972 fs/btrfs/volumes.c write_extent_buffer(leaf, trans->fs_info->fs_devices->metadata_uuid, trans 2003 fs/btrfs/volumes.c struct btrfs_trans_handle *trans; trans 2009 fs/btrfs/volumes.c trans = btrfs_start_transaction(root, 0); trans 2010 fs/btrfs/volumes.c if (IS_ERR(trans)) { trans 2012 fs/btrfs/volumes.c return PTR_ERR(trans); trans 2018 fs/btrfs/volumes.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); trans 2022 fs/btrfs/volumes.c btrfs_abort_transaction(trans, ret); trans 2023 fs/btrfs/volumes.c btrfs_end_transaction(trans); trans 2027 fs/btrfs/volumes.c ret = btrfs_del_item(trans, root, path); trans 2029 fs/btrfs/volumes.c btrfs_abort_transaction(trans, ret); trans 2030 fs/btrfs/volumes.c btrfs_end_transaction(trans); trans 2036 fs/btrfs/volumes.c ret = btrfs_commit_transaction(trans); trans 2520 fs/btrfs/volumes.c static int btrfs_finish_sprout(struct btrfs_trans_handle *trans) trans 2522 fs/btrfs/volumes.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 2543 fs/btrfs/volumes.c ret = btrfs_search_slot(trans, root, &key, path, 0, 1); trans 2596 fs/btrfs/volumes.c struct btrfs_trans_handle *trans; trans 2649 fs/btrfs/volumes.c trans = btrfs_start_transaction(root, 0); trans 2650 fs/btrfs/volumes.c if (IS_ERR(trans)) { trans 2651 fs/btrfs/volumes.c ret = PTR_ERR(trans); trans 2657 fs/btrfs/volumes.c device->generation = trans->transid; trans 2677 fs/btrfs/volumes.c btrfs_abort_transaction(trans, ret); trans 2722 fs/btrfs/volumes.c ret = init_first_rw_device(trans); trans 2725 fs/btrfs/volumes.c btrfs_abort_transaction(trans, ret); trans 2730 fs/btrfs/volumes.c ret = btrfs_add_dev_item(trans, device); trans 2732 fs/btrfs/volumes.c btrfs_abort_transaction(trans, ret); trans 2737 fs/btrfs/volumes.c ret = btrfs_finish_sprout(trans); trans 2739 fs/btrfs/volumes.c btrfs_abort_transaction(trans, ret); trans 2747 fs/btrfs/volumes.c ret = btrfs_commit_transaction(trans); trans 2761 fs/btrfs/volumes.c trans = btrfs_attach_transaction(root); trans 2762 fs/btrfs/volumes.c if (IS_ERR(trans)) { trans 2763 fs/btrfs/volumes.c if (PTR_ERR(trans) == -ENOENT) trans 2765 fs/btrfs/volumes.c ret = PTR_ERR(trans); trans 2766 fs/btrfs/volumes.c trans = NULL; trans 2769 fs/btrfs/volumes.c ret = btrfs_commit_transaction(trans); trans 2797 fs/btrfs/volumes.c if (trans) trans 2798 fs/btrfs/volumes.c btrfs_end_transaction(trans); trans 2810 fs/btrfs/volumes.c static noinline int btrfs_update_device(struct btrfs_trans_handle *trans, trans 2828 fs/btrfs/volumes.c ret = btrfs_search_slot(trans, root, &key, path, 0, 1); trans 2856 fs/btrfs/volumes.c int btrfs_grow_device(struct btrfs_trans_handle *trans, trans 2888 fs/btrfs/volumes.c &trans->transaction->dev_update_list); trans 2891 fs/btrfs/volumes.c return btrfs_update_device(trans, device); trans 2894 fs/btrfs/volumes.c static int btrfs_free_chunk(struct btrfs_trans_handle *trans, u64 chunk_offset) trans 2896 fs/btrfs/volumes.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 2910 fs/btrfs/volumes.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); trans 2920 fs/btrfs/volumes.c ret = btrfs_del_item(trans, root, path); trans 3012 fs/btrfs/volumes.c int btrfs_remove_chunk(struct btrfs_trans_handle *trans, u64 chunk_offset) trans 3014 fs/btrfs/volumes.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 3033 fs/btrfs/volumes.c check_system_chunk(trans, map->type); trans 3044 fs/btrfs/volumes.c ret = btrfs_free_dev_extent(trans, device, trans 3049 fs/btrfs/volumes.c btrfs_abort_transaction(trans, ret); trans 3062 fs/btrfs/volumes.c ret = btrfs_update_device(trans, device); trans 3065 fs/btrfs/volumes.c btrfs_abort_transaction(trans, ret); trans 3071 fs/btrfs/volumes.c ret = btrfs_free_chunk(trans, chunk_offset); trans 3073 fs/btrfs/volumes.c btrfs_abort_transaction(trans, ret); trans 3082 fs/btrfs/volumes.c btrfs_abort_transaction(trans, ret); trans 3087 fs/btrfs/volumes.c ret = btrfs_remove_block_group(trans, chunk_offset, em); trans 3089 fs/btrfs/volumes.c btrfs_abort_transaction(trans, ret); trans 3102 fs/btrfs/volumes.c struct btrfs_trans_handle *trans; trans 3126 fs/btrfs/volumes.c trans = btrfs_start_trans_remove_block_group(root->fs_info, trans 3128 fs/btrfs/volumes.c if (IS_ERR(trans)) { trans 3129 fs/btrfs/volumes.c ret = PTR_ERR(trans); trans 3138 fs/btrfs/volumes.c ret = btrfs_remove_chunk(trans, chunk_offset); trans 3139 fs/btrfs/volumes.c btrfs_end_transaction(trans); trans 3240 fs/btrfs/volumes.c struct btrfs_trans_handle *trans; trans 3243 fs/btrfs/volumes.c trans = btrfs_join_transaction(fs_info->tree_root); trans 3244 fs/btrfs/volumes.c if (IS_ERR(trans)) trans 3245 fs/btrfs/volumes.c return PTR_ERR(trans); trans 3247 fs/btrfs/volumes.c ret = btrfs_force_chunk_alloc(trans, trans 3249 fs/btrfs/volumes.c btrfs_end_transaction(trans); trans 3262 fs/btrfs/volumes.c struct btrfs_trans_handle *trans; trans 3274 fs/btrfs/volumes.c trans = btrfs_start_transaction(root, 0); trans 3275 fs/btrfs/volumes.c if (IS_ERR(trans)) { trans 3277 fs/btrfs/volumes.c return PTR_ERR(trans); trans 3284 fs/btrfs/volumes.c ret = btrfs_insert_empty_item(trans, root, path, &key, trans 3306 fs/btrfs/volumes.c err = btrfs_commit_transaction(trans); trans 3315 fs/btrfs/volumes.c struct btrfs_trans_handle *trans; trans 3324 fs/btrfs/volumes.c trans = btrfs_start_transaction(root, 0); trans 3325 fs/btrfs/volumes.c if (IS_ERR(trans)) { trans 3327 fs/btrfs/volumes.c return PTR_ERR(trans); trans 3334 fs/btrfs/volumes.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); trans 3342 fs/btrfs/volumes.c ret = btrfs_del_item(trans, root, path); trans 3345 fs/btrfs/volumes.c err = btrfs_commit_transaction(trans); trans 4470 fs/btrfs/volumes.c struct btrfs_trans_handle *trans = NULL; trans 4511 fs/btrfs/volumes.c if (trans) trans 4519 fs/btrfs/volumes.c trans = btrfs_start_transaction(fs_info->uuid_root, 2); trans 4520 fs/btrfs/volumes.c if (IS_ERR(trans)) { trans 4521 fs/btrfs/volumes.c ret = PTR_ERR(trans); trans 4530 fs/btrfs/volumes.c ret = btrfs_uuid_tree_add(trans, root_item.uuid, trans 4541 fs/btrfs/volumes.c ret = btrfs_uuid_tree_add(trans, trans 4553 fs/btrfs/volumes.c if (trans) { trans 4554 fs/btrfs/volumes.c ret = btrfs_end_transaction(trans); trans 4555 fs/btrfs/volumes.c trans = NULL; trans 4578 fs/btrfs/volumes.c if (trans && !IS_ERR(trans)) trans 4579 fs/btrfs/volumes.c btrfs_end_transaction(trans); trans 4654 fs/btrfs/volumes.c struct btrfs_trans_handle *trans; trans 4664 fs/btrfs/volumes.c trans = btrfs_start_transaction(tree_root, 2); trans 4665 fs/btrfs/volumes.c if (IS_ERR(trans)) trans 4666 fs/btrfs/volumes.c return PTR_ERR(trans); trans 4668 fs/btrfs/volumes.c uuid_root = btrfs_create_tree(trans, BTRFS_UUID_TREE_OBJECTID); trans 4671 fs/btrfs/volumes.c btrfs_abort_transaction(trans, ret); trans 4672 fs/btrfs/volumes.c btrfs_end_transaction(trans); trans 4678 fs/btrfs/volumes.c ret = btrfs_commit_transaction(trans); trans 4719 fs/btrfs/volumes.c struct btrfs_trans_handle *trans; trans 4749 fs/btrfs/volumes.c trans = btrfs_start_transaction(root, 0); trans 4750 fs/btrfs/volumes.c if (IS_ERR(trans)) { trans 4752 fs/btrfs/volumes.c return PTR_ERR(trans); trans 4770 fs/btrfs/volumes.c ret = btrfs_commit_transaction(trans); trans 4775 fs/btrfs/volumes.c btrfs_end_transaction(trans); trans 4860 fs/btrfs/volumes.c trans = btrfs_start_transaction(root, 0); trans 4861 fs/btrfs/volumes.c if (IS_ERR(trans)) { trans 4862 fs/btrfs/volumes.c ret = PTR_ERR(trans); trans 4870 fs/btrfs/volumes.c &trans->transaction->dev_update_list); trans 4878 fs/btrfs/volumes.c ret = btrfs_update_device(trans, device); trans 4880 fs/btrfs/volumes.c btrfs_abort_transaction(trans, ret); trans 4881 fs/btrfs/volumes.c btrfs_end_transaction(trans); trans 4883 fs/btrfs/volumes.c ret = btrfs_commit_transaction(trans); trans 4954 fs/btrfs/volumes.c static int __btrfs_alloc_chunk(struct btrfs_trans_handle *trans, trans 4957 fs/btrfs/volumes.c struct btrfs_fs_info *info = trans->fs_info; trans 5200 fs/btrfs/volumes.c ret = btrfs_make_block_group(trans, 0, type, start, chunk_size); trans 5210 fs/btrfs/volumes.c &trans->transaction->dev_update_list); trans 5235 fs/btrfs/volumes.c int btrfs_finish_chunk_alloc(struct btrfs_trans_handle *trans, trans 5238 fs/btrfs/volumes.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 5279 fs/btrfs/volumes.c ret = btrfs_update_device(trans, device); trans 5282 fs/btrfs/volumes.c ret = btrfs_alloc_dev_extent(trans, device, chunk_offset, trans 5318 fs/btrfs/volumes.c ret = btrfs_insert_item(trans, chunk_root, &key, chunk, item_size); trans 5340 fs/btrfs/volumes.c int btrfs_alloc_chunk(struct btrfs_trans_handle *trans, u64 type) trans 5344 fs/btrfs/volumes.c lockdep_assert_held(&trans->fs_info->chunk_mutex); trans 5345 fs/btrfs/volumes.c chunk_offset = find_next_chunk(trans->fs_info); trans 5346 fs/btrfs/volumes.c return __btrfs_alloc_chunk(trans, chunk_offset, type); trans 5349 fs/btrfs/volumes.c static noinline int init_first_rw_device(struct btrfs_trans_handle *trans) trans 5351 fs/btrfs/volumes.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 5359 fs/btrfs/volumes.c ret = __btrfs_alloc_chunk(trans, chunk_offset, alloc_profile); trans 5365 fs/btrfs/volumes.c ret = __btrfs_alloc_chunk(trans, sys_chunk_offset, alloc_profile); trans 7427 fs/btrfs/volumes.c static int update_dev_stat_item(struct btrfs_trans_handle *trans, trans 7430 fs/btrfs/volumes.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 7446 fs/btrfs/volumes.c ret = btrfs_search_slot(trans, dev_root, &key, path, -1, 1); trans 7457 fs/btrfs/volumes.c ret = btrfs_del_item(trans, dev_root, path); trans 7470 fs/btrfs/volumes.c ret = btrfs_insert_empty_item(trans, dev_root, path, trans 7495 fs/btrfs/volumes.c int btrfs_run_dev_stats(struct btrfs_trans_handle *trans) trans 7497 fs/btrfs/volumes.c struct btrfs_fs_info *fs_info = trans->fs_info; trans 7523 fs/btrfs/volumes.c ret = update_dev_stat_item(trans, device); trans 7647 fs/btrfs/volumes.c void btrfs_commit_device_sizes(struct btrfs_transaction *trans) trans 7651 fs/btrfs/volumes.c ASSERT(trans->state == TRANS_STATE_COMMIT_DOING); trans 7653 fs/btrfs/volumes.c if (list_empty(&trans->dev_update_list)) trans 7661 fs/btrfs/volumes.c mutex_lock(&trans->fs_info->chunk_mutex); trans 7662 fs/btrfs/volumes.c list_for_each_entry_safe(curr, next, &trans->dev_update_list, trans 7668 fs/btrfs/volumes.c mutex_unlock(&trans->fs_info->chunk_mutex); trans 435 fs/btrfs/volumes.h int btrfs_alloc_chunk(struct btrfs_trans_handle *trans, u64 type); trans 459 fs/btrfs/volumes.h int btrfs_grow_device(struct btrfs_trans_handle *trans, trans 483 fs/btrfs/volumes.h int btrfs_run_dev_stats(struct btrfs_trans_handle *trans); trans 492 fs/btrfs/volumes.h int btrfs_finish_chunk_alloc(struct btrfs_trans_handle *trans, trans 494 fs/btrfs/volumes.h int btrfs_remove_chunk(struct btrfs_trans_handle *trans, u64 chunk_offset); trans 571 fs/btrfs/volumes.h void btrfs_commit_device_sizes(struct btrfs_transaction *trans); trans 79 fs/btrfs/xattr.c int btrfs_setxattr(struct btrfs_trans_handle *trans, struct inode *inode, trans 89 fs/btrfs/xattr.c ASSERT(trans); trans 100 fs/btrfs/xattr.c di = btrfs_lookup_xattr(trans, root, path, trans 107 fs/btrfs/xattr.c ret = btrfs_delete_one_dir_name(trans, root, path, di); trans 132 fs/btrfs/xattr.c ret = btrfs_insert_xattr_item(trans, root, path, btrfs_ino(BTRFS_I(inode)), trans 193 fs/btrfs/xattr.c ret = btrfs_delete_one_dir_name(trans, root, path, di); trans 229 fs/btrfs/xattr.c struct btrfs_trans_handle *trans; trans 232 fs/btrfs/xattr.c trans = btrfs_start_transaction(root, 2); trans 233 fs/btrfs/xattr.c if (IS_ERR(trans)) trans 234 fs/btrfs/xattr.c return PTR_ERR(trans); trans 236 fs/btrfs/xattr.c ret = btrfs_setxattr(trans, inode, name, value, size, flags); trans 242 fs/btrfs/xattr.c ret = btrfs_update_inode(trans, root, inode); trans 245 fs/btrfs/xattr.c btrfs_end_transaction(trans); trans 377 fs/btrfs/xattr.c struct btrfs_trans_handle *trans; trans 385 fs/btrfs/xattr.c trans = btrfs_start_transaction(root, 2); trans 386 fs/btrfs/xattr.c if (IS_ERR(trans)) trans 387 fs/btrfs/xattr.c return PTR_ERR(trans); trans 389 fs/btrfs/xattr.c ret = btrfs_set_prop(trans, inode, name, value, size, flags); trans 393 fs/btrfs/xattr.c ret = btrfs_update_inode(trans, root, inode); trans 397 fs/btrfs/xattr.c btrfs_end_transaction(trans); trans 441 fs/btrfs/xattr.c struct btrfs_trans_handle *trans = fs_private; trans 461 fs/btrfs/xattr.c err = btrfs_setxattr(trans, inode, name, xattr->value, trans 471 fs/btrfs/xattr.c int btrfs_xattr_security_init(struct btrfs_trans_handle *trans, trans 476 fs/btrfs/xattr.c &btrfs_initxattrs, trans); trans 15 fs/btrfs/xattr.h int btrfs_setxattr(struct btrfs_trans_handle *trans, struct inode *inode, trans 21 fs/btrfs/xattr.h int btrfs_xattr_security_init(struct btrfs_trans_handle *trans, trans 74 fs/gfs2/log.h extern void gfs2_log_commit(struct gfs2_sbd *sdp, struct gfs2_trans *trans); trans 269 fs/ocfs2/cluster/tcp.c int trans; trans 271 fs/ocfs2/cluster/tcp.c trans = o2net_sys_err_translations[err]; trans 274 fs/ocfs2/cluster/tcp.c BUG_ON(err != O2NET_ERR_NONE && trans == 0); trans 275 fs/ocfs2/cluster/tcp.c return trans; trans 240 fs/xfs/libxfs/xfs_attr.c xfs_trans_ichgtime(args->trans, dp, XFS_ICHGTIME_CHG); trans 243 fs/xfs/libxfs/xfs_attr.c xfs_trans_set_sync(args->trans); trans 245 fs/xfs/libxfs/xfs_attr.c error2 = xfs_trans_commit(args->trans); trans 246 fs/xfs/libxfs/xfs_attr.c args->trans = NULL; trans 297 fs/xfs/libxfs/xfs_attr.c xfs_trans_bhold(args->trans, leaf_bp); trans 298 fs/xfs/libxfs/xfs_attr.c error = xfs_defer_finish(&args->trans); trans 299 fs/xfs/libxfs/xfs_attr.c xfs_trans_bhold_release(args->trans, leaf_bp); trans 301 fs/xfs/libxfs/xfs_attr.c xfs_trans_brelse(args->trans, leaf_bp); trans 392 fs/xfs/libxfs/xfs_attr.c rsvd ? XFS_TRANS_RESERVE : 0, &args.trans); trans 397 fs/xfs/libxfs/xfs_attr.c error = xfs_trans_reserve_quota_nblks(args.trans, dp, args.total, 0, trans 403 fs/xfs/libxfs/xfs_attr.c xfs_trans_ijoin(args.trans, dp, 0); trans 407 fs/xfs/libxfs/xfs_attr.c if (!args.trans) { trans 417 fs/xfs/libxfs/xfs_attr.c xfs_trans_set_sync(args.trans); trans 420 fs/xfs/libxfs/xfs_attr.c xfs_trans_ichgtime(args.trans, dp, XFS_ICHGTIME_CHG); trans 425 fs/xfs/libxfs/xfs_attr.c xfs_trans_log_inode(args.trans, dp, XFS_ILOG_CORE); trans 426 fs/xfs/libxfs/xfs_attr.c error = xfs_trans_commit(args.trans); trans 432 fs/xfs/libxfs/xfs_attr.c if (args.trans) trans 433 fs/xfs/libxfs/xfs_attr.c xfs_trans_cancel(args.trans); trans 478 fs/xfs/libxfs/xfs_attr.c &args.trans); trans 487 fs/xfs/libxfs/xfs_attr.c xfs_trans_ijoin(args.trans, dp, 0); trans 498 fs/xfs/libxfs/xfs_attr.c xfs_trans_set_sync(args.trans); trans 501 fs/xfs/libxfs/xfs_attr.c xfs_trans_ichgtime(args.trans, dp, XFS_ICHGTIME_CHG); trans 506 fs/xfs/libxfs/xfs_attr.c xfs_trans_log_inode(args.trans, dp, XFS_ILOG_CORE); trans 507 fs/xfs/libxfs/xfs_attr.c error = xfs_trans_commit(args.trans); trans 513 fs/xfs/libxfs/xfs_attr.c if (args.trans) trans 514 fs/xfs/libxfs/xfs_attr.c xfs_trans_cancel(args.trans); trans 592 fs/xfs/libxfs/xfs_attr.c error = xfs_attr3_leaf_read(args->trans, args->dp, args->blkno, -1, &bp); trans 602 fs/xfs/libxfs/xfs_attr.c xfs_trans_brelse(args->trans, bp); trans 606 fs/xfs/libxfs/xfs_attr.c xfs_trans_brelse(args->trans, bp); trans 644 fs/xfs/libxfs/xfs_attr.c error = xfs_defer_finish(&args->trans); trans 652 fs/xfs/libxfs/xfs_attr.c error = xfs_trans_roll_inode(&args->trans, dp); trans 667 fs/xfs/libxfs/xfs_attr.c error = xfs_trans_roll_inode(&args->trans, dp); trans 717 fs/xfs/libxfs/xfs_attr.c error = xfs_attr3_leaf_read(args->trans, args->dp, args->blkno, trans 732 fs/xfs/libxfs/xfs_attr.c error = xfs_defer_finish(&args->trans); trans 740 fs/xfs/libxfs/xfs_attr.c error = xfs_trans_roll_inode(&args->trans, dp); trans 772 fs/xfs/libxfs/xfs_attr.c error = xfs_attr3_leaf_read(args->trans, args->dp, args->blkno, -1, &bp); trans 778 fs/xfs/libxfs/xfs_attr.c xfs_trans_brelse(args->trans, bp); trans 792 fs/xfs/libxfs/xfs_attr.c error = xfs_defer_finish(&args->trans); trans 816 fs/xfs/libxfs/xfs_attr.c error = xfs_attr3_leaf_read(args->trans, args->dp, args->blkno, -1, &bp); trans 822 fs/xfs/libxfs/xfs_attr.c xfs_trans_brelse(args->trans, bp); trans 826 fs/xfs/libxfs/xfs_attr.c xfs_trans_brelse(args->trans, bp); trans 914 fs/xfs/libxfs/xfs_attr.c error = xfs_defer_finish(&args->trans); trans 922 fs/xfs/libxfs/xfs_attr.c error = xfs_trans_roll_inode(&args->trans, dp); trans 938 fs/xfs/libxfs/xfs_attr.c error = xfs_defer_finish(&args->trans); trans 959 fs/xfs/libxfs/xfs_attr.c error = xfs_trans_roll_inode(&args->trans, dp); trans 1034 fs/xfs/libxfs/xfs_attr.c error = xfs_defer_finish(&args->trans); trans 1042 fs/xfs/libxfs/xfs_attr.c error = xfs_trans_roll_inode(&args->trans, dp); trans 1154 fs/xfs/libxfs/xfs_attr.c error = xfs_defer_finish(&args->trans); trans 1160 fs/xfs/libxfs/xfs_attr.c error = xfs_trans_roll_inode(&args->trans, dp); trans 1176 fs/xfs/libxfs/xfs_attr.c error = xfs_attr3_leaf_read(args->trans, args->dp, 0, -1, &bp); trans 1185 fs/xfs/libxfs/xfs_attr.c error = xfs_defer_finish(&args->trans); trans 1189 fs/xfs/libxfs/xfs_attr.c xfs_trans_brelse(args->trans, bp); trans 1269 fs/xfs/libxfs/xfs_attr.c error = xfs_da3_node_read(state->args->trans, trans 1288 fs/xfs/libxfs/xfs_attr.c error = xfs_da3_node_read(state->args->trans, trans 1347 fs/xfs/libxfs/xfs_attr.c xfs_trans_brelse(args->trans, state->path.blk[i].bp); trans 589 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_log_inode(args->trans, dp, XFS_ILOG_CORE | XFS_ILOG_ADATA); trans 641 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_log_inode(args->trans, dp, XFS_ILOG_CORE | XFS_ILOG_ADATA); trans 643 fs/xfs/libxfs/xfs_attr_leaf.c xfs_sbversion_add_attr2(mp, args->trans); trans 717 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr_fork_remove(dp, args->trans); trans 726 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_log_inode(args->trans, dp, trans 730 fs/xfs/libxfs/xfs_attr_leaf.c xfs_sbversion_add_attr2(mp, args->trans); trans 829 fs/xfs/libxfs/xfs_attr_leaf.c xfs_bmap_local_to_extents_empty(args->trans, dp, XFS_ATTR_FORK); trans 846 fs/xfs/libxfs/xfs_attr_leaf.c nargs.trans = args->trans; trans 1034 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr_fork_remove(dp, args->trans); trans 1048 fs/xfs/libxfs/xfs_attr_leaf.c nargs.trans = args->trans; trans 1098 fs/xfs/libxfs/xfs_attr_leaf.c error = xfs_attr3_leaf_read(args->trans, dp, 0, -1, &bp1); trans 1102 fs/xfs/libxfs/xfs_attr_leaf.c error = xfs_da_get_buf(args->trans, dp, blkno, -1, &bp2, XFS_ATTR_FORK); trans 1107 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_buf_set_type(args->trans, bp2, XFS_BLFT_ATTR_LEAF_BUF); trans 1114 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_log_buf(args->trans, bp2, 0, args->geo->blksize - 1); trans 1135 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_log_buf(args->trans, bp1, 0, args->geo->blksize - 1); trans 1164 fs/xfs/libxfs/xfs_attr_leaf.c error = xfs_da_get_buf(args->trans, args->dp, blkno, -1, &bp, trans 1169 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_buf_set_type(args->trans, bp, XFS_BLFT_ATTR_LEAF_BUF); trans 1193 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_log_buf(args->trans, bp, 0, args->geo->blksize - 1); trans 1331 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_log_buf(args->trans, bp, trans 1369 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_log_buf(args->trans, bp, trans 1377 fs/xfs/libxfs/xfs_attr_leaf.c mp = args->trans->t_mountp; trans 1399 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_log_buf(args->trans, bp, trans 1432 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_log_buf(args->trans, bp, trans 1469 fs/xfs/libxfs/xfs_attr_leaf.c struct xfs_trans *trans = args->trans; trans 1510 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_log_buf(trans, bp, 0, args->geo->blksize - 1); trans 1690 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_log_buf(args->trans, blk1->bp, 0, args->geo->blksize - 1); trans 1691 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_log_buf(args->trans, blk2->bp, 0, args->geo->blksize - 1); trans 1933 fs/xfs/libxfs/xfs_attr_leaf.c error = xfs_attr3_leaf_read(state->args->trans, state->args->dp, trans 1947 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_brelse(state->args->trans, bp); trans 2086 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_log_buf(args->trans, bp, trans 2093 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_log_buf(args->trans, bp, trans 2121 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_log_buf(args->trans, bp, trans 2237 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_log_buf(state->args->trans, save_blk->bp, 0, trans 2664 fs/xfs/libxfs/xfs_attr_leaf.c error = xfs_attr3_leaf_read(args->trans, args->dp, args->blkno, -1, &bp); trans 2692 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_log_buf(args->trans, bp, trans 2700 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_log_buf(args->trans, bp, trans 2707 fs/xfs/libxfs/xfs_attr_leaf.c return xfs_trans_roll_inode(&args->trans, args->dp); trans 2731 fs/xfs/libxfs/xfs_attr_leaf.c error = xfs_attr3_leaf_read(args->trans, args->dp, args->blkno, -1, &bp); trans 2745 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_log_buf(args->trans, bp, trans 2751 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_log_buf(args->trans, bp, trans 2758 fs/xfs/libxfs/xfs_attr_leaf.c return xfs_trans_roll_inode(&args->trans, args->dp); trans 2793 fs/xfs/libxfs/xfs_attr_leaf.c error = xfs_attr3_leaf_read(args->trans, args->dp, args->blkno, -1, &bp1); trans 2801 fs/xfs/libxfs/xfs_attr_leaf.c error = xfs_attr3_leaf_read(args->trans, args->dp, args->blkno2, trans 2851 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_log_buf(args->trans, bp1, trans 2858 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_log_buf(args->trans, bp1, trans 2863 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_log_buf(args->trans, bp2, trans 2869 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_log_buf(args->trans, bp2, trans 2876 fs/xfs/libxfs/xfs_attr_leaf.c error = xfs_trans_roll_inode(&args->trans, args->dp); trans 403 fs/xfs/libxfs/xfs_attr_remote.c error = xfs_trans_read_buf(mp, args->trans, trans 413 fs/xfs/libxfs/xfs_attr_remote.c xfs_trans_brelse(args->trans, bp); trans 455 fs/xfs/libxfs/xfs_attr_remote.c error = xfs_bmap_first_unused(args->trans, args->dp, blkcnt, &lfileoff, trans 480 fs/xfs/libxfs/xfs_attr_remote.c error = xfs_bmapi_write(args->trans, dp, (xfs_fileoff_t)lblkno, trans 485 fs/xfs/libxfs/xfs_attr_remote.c error = xfs_defer_finish(&args->trans); trans 498 fs/xfs/libxfs/xfs_attr_remote.c error = xfs_trans_roll_inode(&args->trans, dp); trans 618 fs/xfs/libxfs/xfs_attr_remote.c error = xfs_bunmapi(args->trans, args->dp, lblkno, blkcnt, trans 622 fs/xfs/libxfs/xfs_attr_remote.c error = xfs_defer_finish(&args->trans); trans 629 fs/xfs/libxfs/xfs_attr_remote.c error = xfs_trans_roll_inode(&args->trans, args->dp); trans 1007 fs/xfs/libxfs/xfs_bmap.c dargs.trans = tp; trans 336 fs/xfs/libxfs/xfs_da_btree.c struct xfs_trans *tp = args->trans; trans 512 fs/xfs/libxfs/xfs_da_btree.c xfs_trans_log_buf(state->args->trans, addblk->bp, trans 524 fs/xfs/libxfs/xfs_da_btree.c xfs_trans_log_buf(state->args->trans, addblk->bp, trans 570 fs/xfs/libxfs/xfs_da_btree.c tp = args->trans; trans 817 fs/xfs/libxfs/xfs_da_btree.c tp = state->args->trans; trans 943 fs/xfs/libxfs/xfs_da_btree.c xfs_trans_log_buf(state->args->trans, oldblk->bp, trans 949 fs/xfs/libxfs/xfs_da_btree.c xfs_trans_log_buf(state->args->trans, oldblk->bp, trans 1112 fs/xfs/libxfs/xfs_da_btree.c error = xfs_da3_node_read(args->trans, dp, child, -1, &bp, trans 1132 fs/xfs/libxfs/xfs_da_btree.c xfs_trans_log_buf(args->trans, root_blk->bp, 0, trans 1227 fs/xfs/libxfs/xfs_da_btree.c error = xfs_da3_node_read(state->args->trans, dp, trans 1234 fs/xfs/libxfs/xfs_da_btree.c xfs_trans_brelse(state->args->trans, bp); trans 1337 fs/xfs/libxfs/xfs_da_btree.c xfs_trans_log_buf(state->args->trans, blk->bp, trans 1376 fs/xfs/libxfs/xfs_da_btree.c xfs_trans_log_buf(state->args->trans, drop_blk->bp, trans 1381 fs/xfs/libxfs/xfs_da_btree.c xfs_trans_log_buf(state->args->trans, drop_blk->bp, trans 1385 fs/xfs/libxfs/xfs_da_btree.c xfs_trans_log_buf(state->args->trans, drop_blk->bp, trans 1423 fs/xfs/libxfs/xfs_da_btree.c tp = state->args->trans; trans 1519 fs/xfs/libxfs/xfs_da_btree.c error = xfs_da3_node_read(args->trans, args->dp, blkno, trans 1747 fs/xfs/libxfs/xfs_da_btree.c error = xfs_da3_node_read(args->trans, dp, trans 1757 fs/xfs/libxfs/xfs_da_btree.c xfs_trans_log_buf(args->trans, bp, 0, sizeof(*tmp_info)-1); trans 1768 fs/xfs/libxfs/xfs_da_btree.c error = xfs_da3_node_read(args->trans, dp, trans 1778 fs/xfs/libxfs/xfs_da_btree.c xfs_trans_log_buf(args->trans, bp, 0, sizeof(*tmp_info)-1); trans 1783 fs/xfs/libxfs/xfs_da_btree.c xfs_trans_log_buf(args->trans, old_blk->bp, 0, sizeof(*tmp_info) - 1); trans 1784 fs/xfs/libxfs/xfs_da_btree.c xfs_trans_log_buf(args->trans, new_blk->bp, 0, sizeof(*tmp_info) - 1); trans 1827 fs/xfs/libxfs/xfs_da_btree.c error = xfs_da3_node_read(args->trans, args->dp, trans 1837 fs/xfs/libxfs/xfs_da_btree.c xfs_trans_log_buf(args->trans, bp, 0, trans 1844 fs/xfs/libxfs/xfs_da_btree.c error = xfs_da3_node_read(args->trans, args->dp, trans 1854 fs/xfs/libxfs/xfs_da_btree.c xfs_trans_log_buf(args->trans, bp, 0, trans 1859 fs/xfs/libxfs/xfs_da_btree.c xfs_trans_log_buf(args->trans, save_blk->bp, 0, sizeof(*save_info) - 1); trans 1932 fs/xfs/libxfs/xfs_da_btree.c error = xfs_da3_node_read(args->trans, dp, blkno, -1, &bp, trans 1944 fs/xfs/libxfs/xfs_da_btree.c xfs_trans_brelse(args->trans, blk->bp); trans 2065 fs/xfs/libxfs/xfs_da_btree.c struct xfs_trans *tp = args->trans; trans 2207 fs/xfs/libxfs/xfs_da_btree.c tp = args->trans; trans 2408 fs/xfs/libxfs/xfs_da_btree.c tp = args->trans; trans 2592 fs/xfs/libxfs/xfs_da_btree.c struct xfs_trans *trans, trans 2617 fs/xfs/libxfs/xfs_da_btree.c bp = xfs_trans_get_buf_map(trans, dp->i_mount->m_ddev_targp, trans 2622 fs/xfs/libxfs/xfs_da_btree.c xfs_trans_brelse(trans, bp); trans 2640 fs/xfs/libxfs/xfs_da_btree.c struct xfs_trans *trans, trans 2666 fs/xfs/libxfs/xfs_da_btree.c error = xfs_trans_read_buf_map(dp->i_mount, trans, trans 59 fs/xfs/libxfs/xfs_da_btree.h struct xfs_trans *trans; /* current trans (changes over time) */ trans 184 fs/xfs/libxfs/xfs_da_btree.h int xfs_da_get_buf(struct xfs_trans *trans, struct xfs_inode *dp, trans 187 fs/xfs/libxfs/xfs_da_btree.h int xfs_da_read_buf(struct xfs_trans *trans, struct xfs_inode *dp, trans 226 fs/xfs/libxfs/xfs_dir2.c args->trans = tp; trans 270 fs/xfs/libxfs/xfs_dir2.c args->trans = tp; trans 364 fs/xfs/libxfs/xfs_dir2.c args->trans = tp; trans 438 fs/xfs/libxfs/xfs_dir2.c args->trans = tp; trans 499 fs/xfs/libxfs/xfs_dir2.c args->trans = tp; trans 583 fs/xfs/libxfs/xfs_dir2.c xfs_trans_log_inode(args->trans, dp, XFS_ILOG_CORE); trans 649 fs/xfs/libxfs/xfs_dir2.c tp = args->trans; trans 351 fs/xfs/libxfs/xfs_dir2_block.c tp = args->trans; trans 638 fs/xfs/libxfs/xfs_dir2_block.c xfs_trans_brelse(args->trans, bp); trans 668 fs/xfs/libxfs/xfs_dir2_block.c tp = args->trans; trans 778 fs/xfs/libxfs/xfs_dir2_block.c tp = args->trans; trans 923 fs/xfs/libxfs/xfs_dir2_block.c tp = args->trans; trans 1072 fs/xfs/libxfs/xfs_dir2_block.c tp = args->trans; trans 651 fs/xfs/libxfs/xfs_dir2_data.c tp = args->trans; trans 720 fs/xfs/libxfs/xfs_dir2_data.c xfs_trans_log_buf(args->trans, bp, (uint)((char *)dep - (char *)hdr), trans 742 fs/xfs/libxfs/xfs_dir2_data.c xfs_trans_log_buf(args->trans, bp, 0, trans 765 fs/xfs/libxfs/xfs_dir2_data.c xfs_trans_log_buf(args->trans, bp, (uint)((char *)dup - (char *)hdr), trans 771 fs/xfs/libxfs/xfs_dir2_data.c xfs_trans_log_buf(args->trans, bp, trans 304 fs/xfs/libxfs/xfs_dir2_leaf.c struct xfs_trans *tp = args->trans; trans 355 fs/xfs/libxfs/xfs_dir2_leaf.c tp = args->trans; trans 566 fs/xfs/libxfs/xfs_dir2_leaf.c struct xfs_trans *tp = args->trans; trans 1029 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_trans_log_buf(args->trans, bp, trans 1057 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_trans_log_buf(args->trans, bp, trans 1077 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_trans_log_buf(args->trans, bp, trans 1099 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_trans_log_buf(args->trans, bp, (uint)((char *)ltp - (char *)leaf), trans 1131 fs/xfs/libxfs/xfs_dir2_leaf.c tp = args->trans; trans 1189 fs/xfs/libxfs/xfs_dir2_leaf.c tp = args->trans; trans 1483 fs/xfs/libxfs/xfs_dir2_leaf.c tp = args->trans; trans 1564 fs/xfs/libxfs/xfs_dir2_leaf.c tp = args->trans; trans 1664 fs/xfs/libxfs/xfs_dir2_leaf.c tp = args->trans; trans 249 fs/xfs/libxfs/xfs_dir2_node.c struct xfs_trans *tp = args->trans; trans 303 fs/xfs/libxfs/xfs_dir2_node.c xfs_trans_log_buf(args->trans, bp, trans 324 fs/xfs/libxfs/xfs_dir2_node.c xfs_trans_log_buf(args->trans, bp, 0, trans 356 fs/xfs/libxfs/xfs_dir2_node.c tp = args->trans; trans 583 fs/xfs/libxfs/xfs_dir2_node.c tp = args->trans; trans 735 fs/xfs/libxfs/xfs_dir2_node.c tp = args->trans; trans 1223 fs/xfs/libxfs/xfs_dir2_node.c tp = args->trans; trans 1497 fs/xfs/libxfs/xfs_dir2_node.c error = xfs_dir3_leafn_read(state->args->trans, dp, trans 1520 fs/xfs/libxfs/xfs_dir2_node.c xfs_trans_brelse(state->args->trans, bp); trans 1625 fs/xfs/libxfs/xfs_dir2_node.c struct xfs_trans *tp = args->trans; trans 1746 fs/xfs/libxfs/xfs_dir2_node.c struct xfs_trans *tp = args->trans; trans 1857 fs/xfs/libxfs/xfs_dir2_node.c struct xfs_trans *tp = args->trans; trans 2068 fs/xfs/libxfs/xfs_dir2_node.c xfs_trans_brelse(args->trans, state->path.blk[i].bp); trans 2075 fs/xfs/libxfs/xfs_dir2_node.c xfs_trans_brelse(args->trans, state->extrablk.bp); trans 2224 fs/xfs/libxfs/xfs_dir2_node.c xfs_trans_brelse(args->trans, state->extrablk.bp); trans 2231 fs/xfs/libxfs/xfs_dir2_node.c xfs_trans_brelse(args->trans, state->path.blk[i].bp); trans 2256 fs/xfs/libxfs/xfs_dir2_node.c tp = args->trans; trans 250 fs/xfs/libxfs/xfs_dir2_sf.c xfs_trans_log_inode(args->trans, dp, logflags); trans 349 fs/xfs/libxfs/xfs_dir2_sf.c xfs_trans_log_inode(args->trans, dp, XFS_ILOG_CORE | XFS_ILOG_DDATA); trans 747 fs/xfs/libxfs/xfs_dir2_sf.c xfs_trans_log_inode(args->trans, dp, XFS_ILOG_CORE); trans 770 fs/xfs/libxfs/xfs_dir2_sf.c xfs_trans_log_inode(args->trans, dp, XFS_ILOG_CORE | XFS_ILOG_DDATA); trans 943 fs/xfs/libxfs/xfs_dir2_sf.c xfs_trans_log_inode(args->trans, dp, XFS_ILOG_CORE | XFS_ILOG_DDATA); trans 1067 fs/xfs/libxfs/xfs_dir2_sf.c xfs_trans_log_inode(args->trans, dp, XFS_ILOG_DDATA); trans 1140 fs/xfs/libxfs/xfs_dir2_sf.c xfs_trans_log_inode(args->trans, dp, XFS_ILOG_CORE | XFS_ILOG_DDATA); trans 1213 fs/xfs/libxfs/xfs_dir2_sf.c xfs_trans_log_inode(args->trans, dp, XFS_ILOG_CORE | XFS_ILOG_DDATA); trans 161 fs/xfs/scrub/attr.c args.trans = context->tp; trans 282 fs/xfs/scrub/dabtree.c xfs_trans_brelse(ds->dargs.trans, trans 348 fs/xfs/scrub/dabtree.c xfs_trans_brelse(dargs->trans, blk->bp); trans 358 fs/xfs/scrub/dabtree.c error = xfs_da_read_buf(dargs->trans, dargs->dp, blk->blkno, -2, trans 405 fs/xfs/scrub/dabtree.c xfs_trans_buf_set_type(dargs->trans, blk->bp, trans 414 fs/xfs/scrub/dabtree.c xfs_trans_buf_set_type(dargs->trans, blk->bp, trans 423 fs/xfs/scrub/dabtree.c xfs_trans_buf_set_type(dargs->trans, blk->bp, trans 432 fs/xfs/scrub/dabtree.c xfs_trans_buf_set_type(dargs->trans, blk->bp, trans 463 fs/xfs/scrub/dabtree.c xfs_trans_brelse(dargs->trans, blk->bp); trans 495 fs/xfs/scrub/dabtree.c ds.dargs.trans = sc->tp; trans 220 fs/xfs/scrub/dir.c error = xfs_dir3_data_read(ds->dargs.trans, dp, rec_bno, -2, &bp); trans 276 fs/xfs/scrub/dir.c xfs_trans_brelse(ds->dargs.trans, bp); trans 653 fs/xfs/scrub/dir.c args.trans = sc->tp; trans 32 fs/xfs/xfs_attr_inactive.c struct xfs_trans **trans, trans 75 fs/xfs/xfs_attr_inactive.c bp = xfs_trans_get_buf(*trans, trans 80 fs/xfs/xfs_attr_inactive.c xfs_trans_binval(*trans, bp); trans 84 fs/xfs/xfs_attr_inactive.c error = xfs_trans_roll_inode(trans, dp); trans 104 fs/xfs/xfs_attr_inactive.c struct xfs_trans **trans, trans 142 fs/xfs/xfs_attr_inactive.c xfs_trans_brelse(*trans, bp); trans 169 fs/xfs/xfs_attr_inactive.c xfs_trans_brelse(*trans, bp); /* unlock for trans. in freextent() */ trans 176 fs/xfs/xfs_attr_inactive.c tmp = xfs_attr3_leaf_freextent(trans, dp, trans 193 fs/xfs/xfs_attr_inactive.c struct xfs_trans **trans, trans 211 fs/xfs/xfs_attr_inactive.c xfs_trans_brelse(*trans, bp); /* no locks for later trans */ trans 219 fs/xfs/xfs_attr_inactive.c xfs_trans_brelse(*trans, bp); trans 224 fs/xfs/xfs_attr_inactive.c xfs_trans_brelse(*trans, bp); /* no locks for later trans */ trans 238 fs/xfs/xfs_attr_inactive.c error = xfs_da3_node_read(*trans, dp, child_fsb, -1, &child_bp, trans 253 fs/xfs/xfs_attr_inactive.c error = xfs_attr3_node_inactive(trans, dp, child_bp, trans 258 fs/xfs/xfs_attr_inactive.c error = xfs_attr3_leaf_inactive(trans, dp, child_bp); trans 262 fs/xfs/xfs_attr_inactive.c xfs_trans_brelse(*trans, child_bp); trans 271 fs/xfs/xfs_attr_inactive.c error = xfs_da_get_buf(*trans, dp, 0, child_blkno, &child_bp, trans 275 fs/xfs/xfs_attr_inactive.c xfs_trans_binval(*trans, child_bp); trans 282 fs/xfs/xfs_attr_inactive.c error = xfs_da3_node_read(*trans, dp, 0, parent_blkno, trans 289 fs/xfs/xfs_attr_inactive.c xfs_trans_brelse(*trans, bp); trans 294 fs/xfs/xfs_attr_inactive.c error = xfs_trans_roll_inode(trans, dp); trans 310 fs/xfs/xfs_attr_inactive.c struct xfs_trans **trans, trans 324 fs/xfs/xfs_attr_inactive.c error = xfs_da3_node_read(*trans, dp, 0, -1, &bp, XFS_ATTR_FORK); trans 337 fs/xfs/xfs_attr_inactive.c error = xfs_attr3_node_inactive(trans, dp, bp, 1); trans 341 fs/xfs/xfs_attr_inactive.c error = xfs_attr3_leaf_inactive(trans, dp, bp); trans 345 fs/xfs/xfs_attr_inactive.c xfs_trans_brelse(*trans, bp); trans 354 fs/xfs/xfs_attr_inactive.c error = xfs_da_get_buf(*trans, dp, 0, blkno, &bp, XFS_ATTR_FORK); trans 357 fs/xfs/xfs_attr_inactive.c xfs_trans_binval(*trans, bp); /* remove from cache */ trans 361 fs/xfs/xfs_attr_inactive.c error = xfs_trans_roll_inode(trans, dp); trans 378 fs/xfs/xfs_attr_inactive.c struct xfs_trans *trans; trans 393 fs/xfs/xfs_attr_inactive.c error = xfs_trans_alloc(mp, &M_RES(mp)->tr_attrinval, 0, 0, 0, &trans); trans 407 fs/xfs/xfs_attr_inactive.c xfs_trans_ijoin(trans, dp, 0); trans 417 fs/xfs/xfs_attr_inactive.c error = xfs_attr3_root_inactive(&trans, dp); trans 421 fs/xfs/xfs_attr_inactive.c error = xfs_itruncate_extents(&trans, dp, XFS_ATTR_FORK, 0); trans 427 fs/xfs/xfs_attr_inactive.c xfs_attr_fork_remove(dp, trans); trans 429 fs/xfs/xfs_attr_inactive.c error = xfs_trans_commit(trans); trans 434 fs/xfs/xfs_attr_inactive.c xfs_trans_cancel(trans); trans 157 fs/xfs/xfs_dir2_readdir.c error = xfs_dir3_block_read(args->trans, dp, &bp); trans 214 fs/xfs/xfs_dir2_readdir.c xfs_trans_brelse(args->trans, bp); trans 225 fs/xfs/xfs_dir2_readdir.c xfs_trans_brelse(args->trans, bp); trans 257 fs/xfs/xfs_dir2_readdir.c error = xfs_iread_extents(args->trans, dp, XFS_DATA_FORK); trans 279 fs/xfs/xfs_dir2_readdir.c error = xfs_dir3_data_read(args->trans, dp, map.br_startoff, -1, &bp); trans 385 fs/xfs/xfs_dir2_readdir.c xfs_trans_brelse(args->trans, bp); trans 481 fs/xfs/xfs_dir2_readdir.c xfs_trans_brelse(args->trans, bp); trans 514 fs/xfs/xfs_dir2_readdir.c args.trans = tp; trans 1847 fs/xfs/xfs_log_recover.c struct xlog_recover *trans, trans 1858 fs/xfs/xfs_log_recover.c list_splice_init(&trans->r_itemq, &sort_list); trans 1869 fs/xfs/xfs_log_recover.c trans, item, pass); trans 1891 fs/xfs/xfs_log_recover.c trans, item, pass); trans 1904 fs/xfs/xfs_log_recover.c list_splice_init(&sort_list, &trans->r_itemq); trans 1912 fs/xfs/xfs_log_recover.c list_splice(&buffer_list, &trans->r_itemq); trans 1914 fs/xfs/xfs_log_recover.c list_splice_tail(&inode_list, &trans->r_itemq); trans 1916 fs/xfs/xfs_log_recover.c list_splice_tail(&inode_buffer_list, &trans->r_itemq); trans 1918 fs/xfs/xfs_log_recover.c list_splice_tail(&cancel_list, &trans->r_itemq); trans 3994 fs/xfs/xfs_log_recover.c struct xlog_recover *trans, trans 3997 fs/xfs/xfs_log_recover.c trace_xfs_log_recover_item_recover(log, trans, item, XLOG_RECOVER_PASS1); trans 4028 fs/xfs/xfs_log_recover.c struct xlog_recover *trans, trans 4032 fs/xfs/xfs_log_recover.c trace_xfs_log_recover_item_recover(log, trans, item, XLOG_RECOVER_PASS2); trans 4037 fs/xfs/xfs_log_recover.c trans->r_lsn); trans 4040 fs/xfs/xfs_log_recover.c trans->r_lsn); trans 4042 fs/xfs/xfs_log_recover.c return xlog_recover_efi_pass2(log, item, trans->r_lsn); trans 4046 fs/xfs/xfs_log_recover.c return xlog_recover_rui_pass2(log, item, trans->r_lsn); trans 4050 fs/xfs/xfs_log_recover.c return xlog_recover_cui_pass2(log, item, trans->r_lsn); trans 4054 fs/xfs/xfs_log_recover.c return xlog_recover_bui_pass2(log, item, trans->r_lsn); trans 4059 fs/xfs/xfs_log_recover.c trans->r_lsn); trans 4076 fs/xfs/xfs_log_recover.c struct xlog_recover *trans, trans 4084 fs/xfs/xfs_log_recover.c error = xlog_recover_commit_pass2(log, trans, trans 4102 fs/xfs/xfs_log_recover.c struct xlog_recover *trans, trans 4115 fs/xfs/xfs_log_recover.c hlist_del_init(&trans->r_list); trans 4117 fs/xfs/xfs_log_recover.c error = xlog_recover_reorder_trans(log, trans, pass); trans 4121 fs/xfs/xfs_log_recover.c list_for_each_entry_safe(item, next, &trans->r_itemq, ri_list) { trans 4124 fs/xfs/xfs_log_recover.c error = xlog_recover_commit_pass1(log, trans, item); trans 4131 fs/xfs/xfs_log_recover.c error = xlog_recover_items_pass2(log, trans, trans 4149 fs/xfs/xfs_log_recover.c error = xlog_recover_items_pass2(log, trans, trans 4155 fs/xfs/xfs_log_recover.c list_splice_init(&done_list, &trans->r_itemq); trans 4174 fs/xfs/xfs_log_recover.c struct xlog_recover *trans, trans 4186 fs/xfs/xfs_log_recover.c if (list_empty(&trans->r_itemq)) { trans 4193 fs/xfs/xfs_log_recover.c xlog_recover_add_item(&trans->r_itemq); trans 4194 fs/xfs/xfs_log_recover.c ptr = (char *)&trans->r_theader + trans 4201 fs/xfs/xfs_log_recover.c item = list_entry(trans->r_itemq.prev, xlog_recover_item_t, ri_list); trans 4210 fs/xfs/xfs_log_recover.c trace_xfs_log_recover_item_add_cont(log, trans, item, 0); trans 4230 fs/xfs/xfs_log_recover.c struct xlog_recover *trans, trans 4240 fs/xfs/xfs_log_recover.c if (list_empty(&trans->r_itemq)) { trans 4261 fs/xfs/xfs_log_recover.c xlog_recover_add_item(&trans->r_itemq); trans 4262 fs/xfs/xfs_log_recover.c memcpy(&trans->r_theader, dp, len); trans 4271 fs/xfs/xfs_log_recover.c item = list_entry(trans->r_itemq.prev, xlog_recover_item_t, ri_list); trans 4275 fs/xfs/xfs_log_recover.c xlog_recover_add_item(&trans->r_itemq); trans 4276 fs/xfs/xfs_log_recover.c item = list_entry(trans->r_itemq.prev, trans 4301 fs/xfs/xfs_log_recover.c trace_xfs_log_recover_item_add(log, trans, item, 0); trans 4312 fs/xfs/xfs_log_recover.c struct xlog_recover *trans) trans 4317 fs/xfs/xfs_log_recover.c hlist_del_init(&trans->r_list); trans 4319 fs/xfs/xfs_log_recover.c list_for_each_entry_safe(item, n, &trans->r_itemq, ri_list) { trans 4329 fs/xfs/xfs_log_recover.c kmem_free(trans); trans 4338 fs/xfs/xfs_log_recover.c struct xlog_recover *trans, trans 4361 fs/xfs/xfs_log_recover.c error = xlog_recover_add_to_trans(log, trans, dp, len); trans 4364 fs/xfs/xfs_log_recover.c error = xlog_recover_add_to_cont_trans(log, trans, dp, len); trans 4367 fs/xfs/xfs_log_recover.c error = xlog_recover_commit_trans(log, trans, pass, trans 4387 fs/xfs/xfs_log_recover.c xlog_recover_free_trans(trans); trans 4404 fs/xfs/xfs_log_recover.c struct xlog_recover *trans; trans 4410 fs/xfs/xfs_log_recover.c hlist_for_each_entry(trans, rhp, r_list) { trans 4411 fs/xfs/xfs_log_recover.c if (trans->r_log_tid == tid) trans 4412 fs/xfs/xfs_log_recover.c return trans; trans 4428 fs/xfs/xfs_log_recover.c trans = kmem_zalloc(sizeof(struct xlog_recover), 0); trans 4429 fs/xfs/xfs_log_recover.c trans->r_log_tid = tid; trans 4430 fs/xfs/xfs_log_recover.c trans->r_lsn = be64_to_cpu(rhead->h_lsn); trans 4431 fs/xfs/xfs_log_recover.c INIT_LIST_HEAD(&trans->r_itemq); trans 4432 fs/xfs/xfs_log_recover.c INIT_HLIST_NODE(&trans->r_list); trans 4433 fs/xfs/xfs_log_recover.c hlist_add_head(&trans->r_list, rhp); trans 4453 fs/xfs/xfs_log_recover.c struct xlog_recover *trans; trans 4476 fs/xfs/xfs_log_recover.c trans = xlog_recover_ophdr_to_trans(rhash, rhead, ohead); trans 4477 fs/xfs/xfs_log_recover.c if (!trans) { trans 4505 fs/xfs/xfs_log_recover.c if (log->l_recovery_lsn != trans->r_lsn && trans 4510 fs/xfs/xfs_log_recover.c log->l_recovery_lsn = trans->r_lsn; trans 4513 fs/xfs/xfs_log_recover.c return xlog_recovery_process_trans(log, trans, dp, len, trans 5506 fs/xfs/xfs_log_recover.c struct xlog_recover *trans; trans 5508 fs/xfs/xfs_log_recover.c hlist_for_each_entry_safe(trans, tmp, &rhash[i], r_list) trans 5509 fs/xfs/xfs_log_recover.c xlog_recover_free_trans(trans); trans 1991 fs/xfs/xfs_trace.h TP_PROTO(struct xlog *log, struct xlog_recover *trans, trans 1993 fs/xfs/xfs_trace.h TP_ARGS(log, trans, item, pass), trans 2007 fs/xfs/xfs_trace.h __entry->tid = trans->r_log_tid; trans 2008 fs/xfs/xfs_trace.h __entry->lsn = trans->r_lsn; trans 2028 fs/xfs/xfs_trace.h TP_PROTO(struct xlog *log, struct xlog_recover *trans, \ trans 2030 fs/xfs/xfs_trace.h TP_ARGS(log, trans, item, pass)) trans 1085 fs/xfs/xfs_trans.c struct xfs_trans *trans = *tpp; trans 1089 fs/xfs/xfs_trans.c trace_xfs_trans_roll(trans, _RET_IP_); trans 1094 fs/xfs/xfs_trans.c tres.tr_logres = trans->t_log_res; trans 1095 fs/xfs/xfs_trans.c tres.tr_logcount = trans->t_log_count; trans 1097 fs/xfs/xfs_trans.c *tpp = xfs_trans_dup(trans); trans 1106 fs/xfs/xfs_trans.c error = __xfs_trans_commit(trans, true); trans 831 include/linux/filter.h bpf_aux_classic_check_t trans, bool save_orig); trans 36 include/media/drv-intf/saa7146_vv.h u32 trans; trans 111 include/net/9p/client.h void *trans; trans 68 include/net/af_vsock.h void *trans; trans 1373 include/net/netfilter/nf_tables.h #define nft_trans_rule(trans) \ trans 1374 include/net/netfilter/nf_tables.h (((struct nft_trans_rule *)trans->data)->rule) trans 1375 include/net/netfilter/nf_tables.h #define nft_trans_flow_rule(trans) \ trans 1376 include/net/netfilter/nf_tables.h (((struct nft_trans_rule *)trans->data)->flow) trans 1377 include/net/netfilter/nf_tables.h #define nft_trans_rule_id(trans) \ trans 1378 include/net/netfilter/nf_tables.h (((struct nft_trans_rule *)trans->data)->rule_id) trans 1386 include/net/netfilter/nf_tables.h #define nft_trans_set(trans) \ trans 1387 include/net/netfilter/nf_tables.h (((struct nft_trans_set *)trans->data)->set) trans 1388 include/net/netfilter/nf_tables.h #define nft_trans_set_id(trans) \ trans 1389 include/net/netfilter/nf_tables.h (((struct nft_trans_set *)trans->data)->set_id) trans 1390 include/net/netfilter/nf_tables.h #define nft_trans_set_bound(trans) \ trans 1391 include/net/netfilter/nf_tables.h (((struct nft_trans_set *)trans->data)->bound) trans 1400 include/net/netfilter/nf_tables.h #define nft_trans_chain_update(trans) \ trans 1401 include/net/netfilter/nf_tables.h (((struct nft_trans_chain *)trans->data)->update) trans 1402 include/net/netfilter/nf_tables.h #define nft_trans_chain_name(trans) \ trans 1403 include/net/netfilter/nf_tables.h (((struct nft_trans_chain *)trans->data)->name) trans 1404 include/net/netfilter/nf_tables.h #define nft_trans_chain_stats(trans) \ trans 1405 include/net/netfilter/nf_tables.h (((struct nft_trans_chain *)trans->data)->stats) trans 1406 include/net/netfilter/nf_tables.h #define nft_trans_chain_policy(trans) \ trans 1407 include/net/netfilter/nf_tables.h (((struct nft_trans_chain *)trans->data)->policy) trans 1414 include/net/netfilter/nf_tables.h #define nft_trans_table_update(trans) \ trans 1415 include/net/netfilter/nf_tables.h (((struct nft_trans_table *)trans->data)->update) trans 1416 include/net/netfilter/nf_tables.h #define nft_trans_table_enable(trans) \ trans 1417 include/net/netfilter/nf_tables.h (((struct nft_trans_table *)trans->data)->enable) trans 1425 include/net/netfilter/nf_tables.h #define nft_trans_elem_set(trans) \ trans 1426 include/net/netfilter/nf_tables.h (((struct nft_trans_elem *)trans->data)->set) trans 1427 include/net/netfilter/nf_tables.h #define nft_trans_elem(trans) \ trans 1428 include/net/netfilter/nf_tables.h (((struct nft_trans_elem *)trans->data)->elem) trans 1429 include/net/netfilter/nf_tables.h #define nft_trans_elem_set_bound(trans) \ trans 1430 include/net/netfilter/nf_tables.h (((struct nft_trans_elem *)trans->data)->bound) trans 1438 include/net/netfilter/nf_tables.h #define nft_trans_obj(trans) \ trans 1439 include/net/netfilter/nf_tables.h (((struct nft_trans_obj *)trans->data)->obj) trans 1440 include/net/netfilter/nf_tables.h #define nft_trans_obj_newobj(trans) \ trans 1441 include/net/netfilter/nf_tables.h (((struct nft_trans_obj *)trans->data)->newobj) trans 1442 include/net/netfilter/nf_tables.h #define nft_trans_obj_update(trans) \ trans 1443 include/net/netfilter/nf_tables.h (((struct nft_trans_obj *)trans->data)->update) trans 1449 include/net/netfilter/nf_tables.h #define nft_trans_flowtable(trans) \ trans 1450 include/net/netfilter/nf_tables.h (((struct nft_trans_flowtable *)trans->data)->flowtable) trans 259 include/net/sctp/sctp.h struct sctp_transport *trans) trans 261 include/net/sctp/sctp.h if (asoc->stats.max_obs_rto < (__u64)trans->rto) { trans 262 include/net/sctp/sctp.h asoc->stats.max_obs_rto = trans->rto; trans 265 include/net/sctp/sctp.h memcpy(&asoc->stats.obs_rto_ipaddr, &trans->ipaddr, trans 266 include/net/sctp/sctp.h trans->af_specific->sockaddr_len); trans 99 include/net/sctp/tsnmap.h struct sctp_transport *trans); trans 23 include/net/switchdev.h static inline bool switchdev_trans_ph_prepare(struct switchdev_trans *trans) trans 25 include/net/switchdev.h return trans && trans->ph_prepare; trans 28 include/net/switchdev.h static inline bool switchdev_trans_ph_commit(struct switchdev_trans *trans) trans 30 include/net/switchdev.h return trans && !trans->ph_prepare; trans 133 include/net/switchdev.h struct switchdev_trans *trans; trans 140 include/net/switchdev.h struct switchdev_trans *trans; trans 188 include/net/switchdev.h struct switchdev_trans *trans, trans 201 include/net/switchdev.h struct switchdev_trans *trans)); trans 272 include/net/switchdev.h struct switchdev_trans *trans, trans 294 include/net/switchdev.h struct switchdev_trans *trans)) trans 93 lib/gen_crc32table.c static void output_table(uint32_t (*table)[256], int rows, int len, char *trans) trans 102 lib/gen_crc32table.c printf("%s(0x%8.8xL), ", trans, table[j][i]); trans 104 lib/gen_crc32table.c printf("%s(0x%8.8xL)},\n", trans, table[j][len - 1]); trans 1012 net/9p/client.c clnt->trans = NULL; trans 225 net/9p/trans_fd.c ts = client->trans; trans 254 net/9p/trans_fd.c ts = client->trans; trans 416 net/9p/trans_fd.c ts = client->trans; trans 578 net/9p/trans_fd.c struct p9_trans_fd *ts = client->trans; trans 659 net/9p/trans_fd.c struct p9_trans_fd *ts = client->trans; trans 816 net/9p/trans_fd.c client->trans = ts; trans 842 net/9p/trans_fd.c client->trans = p; trans 892 net/9p/trans_fd.c ts = client->trans; trans 152 net/9p/trans_rdma.c struct p9_trans_rdma *rdma = clnt->trans; trans 242 net/9p/trans_rdma.c struct p9_trans_rdma *rdma = c->trans; trans 293 net/9p/trans_rdma.c struct p9_trans_rdma *rdma = client->trans; trans 344 net/9p/trans_rdma.c struct p9_trans_rdma *rdma = client->trans; trans 385 net/9p/trans_rdma.c struct p9_trans_rdma *rdma = client->trans; trans 414 net/9p/trans_rdma.c struct p9_trans_rdma *rdma = client->trans; trans 549 net/9p/trans_rdma.c rdma = client->trans; trans 597 net/9p/trans_rdma.c struct p9_trans_rdma *rdma = client->trans; trans 654 net/9p/trans_rdma.c client->trans = rdma; trans 104 net/9p/trans_virtio.c struct virtio_chan *chan = client->trans; trans 256 net/9p/trans_virtio.c struct virtio_chan *chan = client->trans; trans 395 net/9p/trans_virtio.c struct virtio_chan *chan = client->trans; trans 679 net/9p/trans_virtio.c client->trans = (void *)chan; trans 1290 net/core/filter.c bpf_aux_classic_check_t trans) trans 1306 net/core/filter.c if (trans) { trans 1307 net/core/filter.c err = trans(fp->insns, fp->len); trans 1384 net/core/filter.c bpf_aux_classic_check_t trans, bool save_orig) trans 1417 net/core/filter.c fp = bpf_prepare_filter(fp, trans); trans 29 net/dsa/dsa_priv.h struct switchdev_trans *trans; trans 51 net/dsa/dsa_priv.h struct switchdev_trans *trans; trans 59 net/dsa/dsa_priv.h struct switchdev_trans *trans; trans 130 net/dsa/dsa_priv.h struct switchdev_trans *trans); trans 138 net/dsa/dsa_priv.h struct switchdev_trans *trans); trans 140 net/dsa/dsa_priv.h struct switchdev_trans *trans); trans 148 net/dsa/dsa_priv.h struct switchdev_trans *trans); trans 152 net/dsa/dsa_priv.h struct switchdev_trans *trans); trans 154 net/dsa/dsa_priv.h struct switchdev_trans *trans); trans 156 net/dsa/dsa_priv.h struct switchdev_trans *trans); trans 159 net/dsa/dsa_priv.h struct switchdev_trans *trans); trans 27 net/dsa/port.c struct switchdev_trans *trans) trans 32 net/dsa/port.c if (switchdev_trans_ph_prepare(trans)) trans 211 net/dsa/port.c struct switchdev_trans *trans) trans 217 net/dsa/port.c if (switchdev_trans_ph_prepare(trans)) trans 242 net/dsa/port.c struct switchdev_trans *trans) trans 248 net/dsa/port.c .trans = trans, trans 251 net/dsa/port.c if (switchdev_trans_ph_prepare(trans)) trans 260 net/dsa/port.c struct switchdev_trans *trans) trans 272 net/dsa/port.c struct switchdev_trans *trans) trans 278 net/dsa/port.c if (switchdev_trans_ph_prepare(trans)) trans 289 net/dsa/port.c struct switchdev_trans *trans) trans 294 net/dsa/port.c if (switchdev_trans_ph_prepare(trans)) trans 340 net/dsa/port.c struct switchdev_trans *trans) trans 345 net/dsa/port.c .trans = trans, trans 366 net/dsa/port.c struct switchdev_trans *trans) trans 371 net/dsa/port.c .trans = trans, trans 398 net/dsa/port.c struct switchdev_trans trans; trans 401 net/dsa/port.c trans.ph_prepare = true; trans 402 net/dsa/port.c err = dsa_port_vlan_add(dp, &vlan, &trans); trans 406 net/dsa/port.c trans.ph_prepare = false; trans 407 net/dsa/port.c return dsa_port_vlan_add(dp, &vlan, &trans); trans 277 net/dsa/slave.c struct switchdev_trans *trans) trans 284 net/dsa/slave.c ret = dsa_port_set_state(dp, attr->u.stp_state, trans); trans 288 net/dsa/slave.c trans); trans 291 net/dsa/slave.c ret = dsa_port_ageing_time(dp, attr->u.ageing_time, trans); trans 295 net/dsa/slave.c trans); trans 298 net/dsa/slave.c ret = dsa_port_bridge_flags(dp, attr->u.brport_flags, trans); trans 301 net/dsa/slave.c ret = dsa_port_mrouter(dp->cpu_dp, attr->u.mrouter, trans); trans 313 net/dsa/slave.c struct switchdev_trans *trans) trans 327 net/dsa/slave.c err = dsa_port_vlan_add(dp, &vlan, trans); trans 337 net/dsa/slave.c err = dsa_port_vlan_add(dp->cpu_dp, &vlan, trans); trans 346 net/dsa/slave.c struct switchdev_trans *trans, trans 361 net/dsa/slave.c err = dsa_port_mdb_add(dp, SWITCHDEV_OBJ_PORT_MDB(obj), trans); trans 368 net/dsa/slave.c trans); trans 371 net/dsa/slave.c err = dsa_slave_vlan_add(dev, obj, trans); trans 36 net/dsa/switch.c struct switchdev_trans *trans = info->trans; trans 38 net/dsa/switch.c if (switchdev_trans_ph_prepare(trans)) { trans 99 net/dsa/switch.c struct switchdev_trans trans = {0}; trans 102 net/dsa/switch.c false, &trans); trans 167 net/dsa/switch.c if (switchdev_trans_ph_prepare(info->trans)) trans 269 net/dsa/switch.c if (switchdev_trans_ph_prepare(info->trans)) trans 36 net/llc/llc_conn.c struct llc_conn_state_trans *trans, trans 360 net/llc/llc_conn.c struct llc_conn_state_trans *trans; trans 365 net/llc/llc_conn.c trans = llc_qualify_conn_ev(sk, skb); trans 366 net/llc/llc_conn.c if (trans) { trans 367 net/llc/llc_conn.c rc = llc_exec_conn_trans_actions(sk, trans, skb); trans 368 net/llc/llc_conn.c if (!rc && trans->next_state != NO_STATE_CHANGE) { trans 369 net/llc/llc_conn.c llc->state = trans->next_state; trans 434 net/llc/llc_conn.c struct llc_conn_state_trans *trans, trans 440 net/llc/llc_conn.c for (next_action = trans->ev_actions; trans 145 net/llc/llc_sap.c struct llc_sap_state_trans *trans, trans 149 net/llc/llc_sap.c const llc_sap_action_t *next_action = trans->ev_actions; trans 169 net/llc/llc_sap.c struct llc_sap_state_trans *trans; trans 173 net/llc/llc_sap.c trans = llc_find_sap_trans(sap, skb); trans 174 net/llc/llc_sap.c if (!trans) trans 181 net/llc/llc_sap.c rc = llc_exec_sap_trans_actions(sap, trans, skb); trans 187 net/llc/llc_sap.c sap->state = trans->next_state; trans 4175 net/mac80211/mlme.c u16 trans = 1; trans 4212 net/mac80211/mlme.c trans = auth_data->sae_trans; trans 4214 net/mac80211/mlme.c auth_data->expected_transaction = trans; trans 4221 net/mac80211/mlme.c ieee80211_send_auth(sdata, trans, auth_data->algorithm, status, trans 110 net/netfilter/nf_tables_api.c struct nft_trans *trans; trans 112 net/netfilter/nf_tables_api.c trans = kzalloc(sizeof(struct nft_trans) + size, gfp); trans 113 net/netfilter/nf_tables_api.c if (trans == NULL) trans 116 net/netfilter/nf_tables_api.c trans->msg_type = msg_type; trans 117 net/netfilter/nf_tables_api.c trans->ctx = *ctx; trans 119 net/netfilter/nf_tables_api.c return trans; trans 128 net/netfilter/nf_tables_api.c static void nft_trans_destroy(struct nft_trans *trans) trans 130 net/netfilter/nf_tables_api.c list_del(&trans->list); trans 131 net/netfilter/nf_tables_api.c kfree(trans); trans 137 net/netfilter/nf_tables_api.c struct nft_trans *trans; trans 142 net/netfilter/nf_tables_api.c list_for_each_entry_reverse(trans, &net->nft.commit_list, list) { trans 143 net/netfilter/nf_tables_api.c switch (trans->msg_type) { trans 145 net/netfilter/nf_tables_api.c if (nft_trans_set(trans) == set) trans 146 net/netfilter/nf_tables_api.c nft_trans_set_bound(trans) = true; trans 149 net/netfilter/nf_tables_api.c if (nft_trans_elem_set(trans) == set) trans 150 net/netfilter/nf_tables_api.c nft_trans_elem_set_bound(trans) = true; trans 197 net/netfilter/nf_tables_api.c struct nft_trans *trans; trans 199 net/netfilter/nf_tables_api.c trans = nft_trans_alloc(ctx, msg_type, sizeof(struct nft_trans_table)); trans 200 net/netfilter/nf_tables_api.c if (trans == NULL) trans 206 net/netfilter/nf_tables_api.c list_add_tail(&trans->list, &ctx->net->nft.commit_list); trans 224 net/netfilter/nf_tables_api.c struct nft_trans *trans; trans 226 net/netfilter/nf_tables_api.c trans = nft_trans_alloc(ctx, msg_type, sizeof(struct nft_trans_chain)); trans 227 net/netfilter/nf_tables_api.c if (trans == NULL) trans 233 net/netfilter/nf_tables_api.c list_add_tail(&trans->list, &ctx->net->nft.commit_list); trans 234 net/netfilter/nf_tables_api.c return trans; trans 239 net/netfilter/nf_tables_api.c struct nft_trans *trans; trans 241 net/netfilter/nf_tables_api.c trans = nft_trans_chain_add(ctx, NFT_MSG_DELCHAIN); trans 242 net/netfilter/nf_tables_api.c if (IS_ERR(trans)) trans 243 net/netfilter/nf_tables_api.c return PTR_ERR(trans); trans 295 net/netfilter/nf_tables_api.c struct nft_trans *trans; trans 297 net/netfilter/nf_tables_api.c trans = nft_trans_alloc(ctx, msg_type, sizeof(struct nft_trans_rule)); trans 298 net/netfilter/nf_tables_api.c if (trans == NULL) trans 302 net/netfilter/nf_tables_api.c nft_trans_rule_id(trans) = trans 305 net/netfilter/nf_tables_api.c nft_trans_rule(trans) = rule; trans 306 net/netfilter/nf_tables_api.c list_add_tail(&trans->list, &ctx->net->nft.commit_list); trans 308 net/netfilter/nf_tables_api.c return trans; trans 313 net/netfilter/nf_tables_api.c struct nft_trans *trans; trans 316 net/netfilter/nf_tables_api.c trans = nft_trans_rule_add(ctx, NFT_MSG_DELRULE, rule); trans 317 net/netfilter/nf_tables_api.c if (trans == NULL) trans 322 net/netfilter/nf_tables_api.c nft_trans_destroy(trans); trans 349 net/netfilter/nf_tables_api.c struct nft_trans *trans; trans 351 net/netfilter/nf_tables_api.c trans = nft_trans_alloc(ctx, msg_type, sizeof(struct nft_trans_set)); trans 352 net/netfilter/nf_tables_api.c if (trans == NULL) trans 356 net/netfilter/nf_tables_api.c nft_trans_set_id(trans) = trans 360 net/netfilter/nf_tables_api.c nft_trans_set(trans) = set; trans 361 net/netfilter/nf_tables_api.c list_add_tail(&trans->list, &ctx->net->nft.commit_list); trans 383 net/netfilter/nf_tables_api.c struct nft_trans *trans; trans 385 net/netfilter/nf_tables_api.c trans = nft_trans_alloc(ctx, msg_type, sizeof(struct nft_trans_obj)); trans 386 net/netfilter/nf_tables_api.c if (trans == NULL) trans 392 net/netfilter/nf_tables_api.c nft_trans_obj(trans) = obj; trans 393 net/netfilter/nf_tables_api.c list_add_tail(&trans->list, &ctx->net->nft.commit_list); trans 415 net/netfilter/nf_tables_api.c struct nft_trans *trans; trans 417 net/netfilter/nf_tables_api.c trans = nft_trans_alloc(ctx, msg_type, trans 419 net/netfilter/nf_tables_api.c if (trans == NULL) trans 425 net/netfilter/nf_tables_api.c nft_trans_flowtable(trans) = flowtable; trans 426 net/netfilter/nf_tables_api.c list_add_tail(&trans->list, &ctx->net->nft.commit_list); trans 805 net/netfilter/nf_tables_api.c struct nft_trans *trans; trans 819 net/netfilter/nf_tables_api.c trans = nft_trans_alloc(ctx, NFT_MSG_NEWTABLE, trans 821 net/netfilter/nf_tables_api.c if (trans == NULL) trans 826 net/netfilter/nf_tables_api.c nft_trans_table_enable(trans) = false; trans 832 net/netfilter/nf_tables_api.c nft_trans_table_enable(trans) = true; trans 838 net/netfilter/nf_tables_api.c nft_trans_table_update(trans) = true; trans 839 net/netfilter/nf_tables_api.c list_add_tail(&trans->list, &ctx->net->nft.commit_list); trans 842 net/netfilter/nf_tables_api.c nft_trans_destroy(trans); trans 1491 net/netfilter/nf_tables_api.c static void nft_chain_stats_replace(struct nft_trans *trans) trans 1493 net/netfilter/nf_tables_api.c struct nft_base_chain *chain = nft_base_chain(trans->ctx.chain); trans 1495 net/netfilter/nf_tables_api.c if (!nft_trans_chain_stats(trans)) trans 1498 net/netfilter/nf_tables_api.c rcu_swap_protected(chain->stats, nft_trans_chain_stats(trans), trans 1499 net/netfilter/nf_tables_api.c lockdep_commit_lock_is_held(trans->ctx.net)); trans 1501 net/netfilter/nf_tables_api.c if (!nft_trans_chain_stats(trans)) trans 1658 net/netfilter/nf_tables_api.c struct nft_trans *trans; trans 1747 net/netfilter/nf_tables_api.c trans = nft_trans_chain_add(ctx, NFT_MSG_NEWCHAIN); trans 1748 net/netfilter/nf_tables_api.c if (IS_ERR(trans)) { trans 1749 net/netfilter/nf_tables_api.c err = PTR_ERR(trans); trans 1755 net/netfilter/nf_tables_api.c nft_trans_chain_policy(trans) = NFT_CHAIN_POLICY_UNSET; trans 1757 net/netfilter/nf_tables_api.c nft_trans_chain_policy(trans) = policy; trans 1781 net/netfilter/nf_tables_api.c struct nft_trans *trans; trans 1832 net/netfilter/nf_tables_api.c trans = nft_trans_alloc(ctx, NFT_MSG_NEWCHAIN, trans 1834 net/netfilter/nf_tables_api.c if (trans == NULL) trans 1837 net/netfilter/nf_tables_api.c nft_trans_chain_stats(trans) = stats; trans 1838 net/netfilter/nf_tables_api.c nft_trans_chain_update(trans) = true; trans 1841 net/netfilter/nf_tables_api.c nft_trans_chain_policy(trans) = policy; trans 1843 net/netfilter/nf_tables_api.c nft_trans_chain_policy(trans) = -1; trans 1867 net/netfilter/nf_tables_api.c nft_trans_chain_name(trans) = name; trans 1869 net/netfilter/nf_tables_api.c list_add_tail(&trans->list, &ctx->net->nft.commit_list); trans 1874 net/netfilter/nf_tables_api.c kfree(trans); trans 2728 net/netfilter/nf_tables_api.c struct nft_trans *trans = NULL; trans 2857 net/netfilter/nf_tables_api.c trans = nft_trans_rule_add(&ctx, NFT_MSG_NEWRULE, rule); trans 2858 net/netfilter/nf_tables_api.c if (trans == NULL) { trans 2864 net/netfilter/nf_tables_api.c nft_trans_destroy(trans); trans 2870 net/netfilter/nf_tables_api.c trans = nft_trans_rule_add(&ctx, NFT_MSG_NEWRULE, rule); trans 2871 net/netfilter/nf_tables_api.c if (!trans) { trans 2899 net/netfilter/nf_tables_api.c nft_trans_flow_rule(trans) = flow; trans 2921 net/netfilter/nf_tables_api.c struct nft_trans *trans; trans 2923 net/netfilter/nf_tables_api.c list_for_each_entry(trans, &net->nft.commit_list, list) { trans 2924 net/netfilter/nf_tables_api.c struct nft_rule *rule = nft_trans_rule(trans); trans 2926 net/netfilter/nf_tables_api.c if (trans->msg_type == NFT_MSG_NEWRULE && trans 2927 net/netfilter/nf_tables_api.c id == nft_trans_rule_id(trans)) trans 3190 net/netfilter/nf_tables_api.c struct nft_trans *trans; trans 3193 net/netfilter/nf_tables_api.c list_for_each_entry(trans, &net->nft.commit_list, list) { trans 3194 net/netfilter/nf_tables_api.c if (trans->msg_type == NFT_MSG_NEWSET) { trans 3195 net/netfilter/nf_tables_api.c struct nft_set *set = nft_trans_set(trans); trans 3197 net/netfilter/nf_tables_api.c if (id == nft_trans_set_id(trans) && trans 4411 net/netfilter/nf_tables_api.c struct nft_trans *trans; trans 4413 net/netfilter/nf_tables_api.c trans = nft_trans_alloc(ctx, msg_type, sizeof(struct nft_trans_elem)); trans 4414 net/netfilter/nf_tables_api.c if (trans == NULL) trans 4417 net/netfilter/nf_tables_api.c nft_trans_elem_set(trans) = set; trans 4418 net/netfilter/nf_tables_api.c return trans; trans 4505 net/netfilter/nf_tables_api.c struct nft_trans *trans; trans 4667 net/netfilter/nf_tables_api.c trans = nft_trans_elem_alloc(ctx, NFT_MSG_NEWSETELEM, set); trans 4668 net/netfilter/nf_tables_api.c if (trans == NULL) trans 4702 net/netfilter/nf_tables_api.c nft_trans_elem(trans) = elem; trans 4703 net/netfilter/nf_tables_api.c list_add_tail(&trans->list, &ctx->net->nft.commit_list); trans 4709 net/netfilter/nf_tables_api.c kfree(trans); trans 4817 net/netfilter/nf_tables_api.c struct nft_trans *trans; trans 4860 net/netfilter/nf_tables_api.c trans = nft_trans_elem_alloc(ctx, NFT_MSG_DELSETELEM, set); trans 4861 net/netfilter/nf_tables_api.c if (trans == NULL) { trans 4876 net/netfilter/nf_tables_api.c nft_trans_elem(trans) = elem; trans 4877 net/netfilter/nf_tables_api.c list_add_tail(&trans->list, &ctx->net->nft.commit_list); trans 4881 net/netfilter/nf_tables_api.c kfree(trans); trans 4895 net/netfilter/nf_tables_api.c struct nft_trans *trans; trans 4898 net/netfilter/nf_tables_api.c trans = nft_trans_alloc_gfp(ctx, NFT_MSG_DELSETELEM, trans 4900 net/netfilter/nf_tables_api.c if (!trans) trans 4910 net/netfilter/nf_tables_api.c nft_trans_elem_set(trans) = set; trans 4911 net/netfilter/nf_tables_api.c nft_trans_elem(trans) = *elem; trans 4912 net/netfilter/nf_tables_api.c list_add_tail(&trans->list, &ctx->net->nft.commit_list); trans 4916 net/netfilter/nf_tables_api.c kfree(trans); trans 5189 net/netfilter/nf_tables_api.c struct nft_trans *trans; trans 5192 net/netfilter/nf_tables_api.c trans = nft_trans_alloc(ctx, NFT_MSG_NEWOBJ, trans 5194 net/netfilter/nf_tables_api.c if (!trans) trans 5203 net/netfilter/nf_tables_api.c nft_trans_obj(trans) = obj; trans 5204 net/netfilter/nf_tables_api.c nft_trans_obj_update(trans) = true; trans 5205 net/netfilter/nf_tables_api.c nft_trans_obj_newobj(trans) = newobj; trans 5206 net/netfilter/nf_tables_api.c list_add_tail(&trans->list, &ctx->net->nft.commit_list); trans 5211 net/netfilter/nf_tables_api.c kfree(trans); trans 6492 net/netfilter/nf_tables_api.c static void nft_chain_commit_drop_policy(struct nft_trans *trans) trans 6496 net/netfilter/nf_tables_api.c if (nft_trans_chain_policy(trans) != NF_DROP) trans 6499 net/netfilter/nf_tables_api.c if (!nft_is_base_chain(trans->ctx.chain)) trans 6502 net/netfilter/nf_tables_api.c basechain = nft_base_chain(trans->ctx.chain); trans 6506 net/netfilter/nf_tables_api.c static void nft_chain_commit_update(struct nft_trans *trans) trans 6510 net/netfilter/nf_tables_api.c if (nft_trans_chain_name(trans)) { trans 6511 net/netfilter/nf_tables_api.c rhltable_remove(&trans->ctx.table->chains_ht, trans 6512 net/netfilter/nf_tables_api.c &trans->ctx.chain->rhlhead, trans 6514 net/netfilter/nf_tables_api.c swap(trans->ctx.chain->name, nft_trans_chain_name(trans)); trans 6515 net/netfilter/nf_tables_api.c rhltable_insert_key(&trans->ctx.table->chains_ht, trans 6516 net/netfilter/nf_tables_api.c trans->ctx.chain->name, trans 6517 net/netfilter/nf_tables_api.c &trans->ctx.chain->rhlhead, trans 6521 net/netfilter/nf_tables_api.c if (!nft_is_base_chain(trans->ctx.chain)) trans 6524 net/netfilter/nf_tables_api.c nft_chain_stats_replace(trans); trans 6526 net/netfilter/nf_tables_api.c basechain = nft_base_chain(trans->ctx.chain); trans 6528 net/netfilter/nf_tables_api.c switch (nft_trans_chain_policy(trans)) { trans 6531 net/netfilter/nf_tables_api.c basechain->policy = nft_trans_chain_policy(trans); trans 6536 net/netfilter/nf_tables_api.c static void nft_obj_commit_update(struct nft_trans *trans) trans 6541 net/netfilter/nf_tables_api.c obj = nft_trans_obj(trans); trans 6542 net/netfilter/nf_tables_api.c newobj = nft_trans_obj_newobj(trans); trans 6550 net/netfilter/nf_tables_api.c static void nft_commit_release(struct nft_trans *trans) trans 6552 net/netfilter/nf_tables_api.c switch (trans->msg_type) { trans 6554 net/netfilter/nf_tables_api.c nf_tables_table_destroy(&trans->ctx); trans 6557 net/netfilter/nf_tables_api.c free_percpu(nft_trans_chain_stats(trans)); trans 6558 net/netfilter/nf_tables_api.c kfree(nft_trans_chain_name(trans)); trans 6561 net/netfilter/nf_tables_api.c nf_tables_chain_destroy(&trans->ctx); trans 6564 net/netfilter/nf_tables_api.c nf_tables_rule_destroy(&trans->ctx, nft_trans_rule(trans)); trans 6567 net/netfilter/nf_tables_api.c nft_set_destroy(nft_trans_set(trans)); trans 6570 net/netfilter/nf_tables_api.c nf_tables_set_elem_destroy(&trans->ctx, trans 6571 net/netfilter/nf_tables_api.c nft_trans_elem_set(trans), trans 6572 net/netfilter/nf_tables_api.c nft_trans_elem(trans).priv); trans 6575 net/netfilter/nf_tables_api.c nft_obj_destroy(&trans->ctx, nft_trans_obj(trans)); trans 6578 net/netfilter/nf_tables_api.c nf_tables_flowtable_destroy(nft_trans_flowtable(trans)); trans 6582 net/netfilter/nf_tables_api.c if (trans->put_net) trans 6583 net/netfilter/nf_tables_api.c put_net(trans->ctx.net); trans 6585 net/netfilter/nf_tables_api.c kfree(trans); trans 6590 net/netfilter/nf_tables_api.c struct nft_trans *trans, *next; trans 6602 net/netfilter/nf_tables_api.c list_for_each_entry_safe(trans, next, &head, list) { trans 6603 net/netfilter/nf_tables_api.c list_del(&trans->list); trans 6604 net/netfilter/nf_tables_api.c nft_commit_release(trans); trans 6641 net/netfilter/nf_tables_api.c struct nft_trans *trans, *next; trans 6643 net/netfilter/nf_tables_api.c list_for_each_entry_safe(trans, next, &net->nft.commit_list, list) { trans 6644 net/netfilter/nf_tables_api.c struct nft_chain *chain = trans->ctx.chain; trans 6646 net/netfilter/nf_tables_api.c if (trans->msg_type == NFT_MSG_NEWRULE || trans 6647 net/netfilter/nf_tables_api.c trans->msg_type == NFT_MSG_DELRULE) { trans 6753 net/netfilter/nf_tables_api.c struct nft_trans *trans; trans 6768 net/netfilter/nf_tables_api.c trans = list_last_entry(&net->nft.commit_list, trans 6770 net/netfilter/nf_tables_api.c get_net(trans->ctx.net); trans 6771 net/netfilter/nf_tables_api.c WARN_ON_ONCE(trans->put_net); trans 6773 net/netfilter/nf_tables_api.c trans->put_net = true; trans 6786 net/netfilter/nf_tables_api.c struct nft_trans *trans, *next; trans 6806 net/netfilter/nf_tables_api.c list_for_each_entry_safe(trans, next, &net->nft.commit_list, list) { trans 6809 net/netfilter/nf_tables_api.c if (trans->msg_type == NFT_MSG_NEWRULE || trans 6810 net/netfilter/nf_tables_api.c trans->msg_type == NFT_MSG_DELRULE) { trans 6811 net/netfilter/nf_tables_api.c chain = trans->ctx.chain; trans 6836 net/netfilter/nf_tables_api.c list_for_each_entry_safe(trans, next, &net->nft.commit_list, list) { trans 6837 net/netfilter/nf_tables_api.c switch (trans->msg_type) { trans 6839 net/netfilter/nf_tables_api.c if (nft_trans_table_update(trans)) { trans 6840 net/netfilter/nf_tables_api.c if (!nft_trans_table_enable(trans)) { trans 6842 net/netfilter/nf_tables_api.c trans->ctx.table); trans 6843 net/netfilter/nf_tables_api.c trans->ctx.table->flags |= NFT_TABLE_F_DORMANT; trans 6846 net/netfilter/nf_tables_api.c nft_clear(net, trans->ctx.table); trans 6848 net/netfilter/nf_tables_api.c nf_tables_table_notify(&trans->ctx, NFT_MSG_NEWTABLE); trans 6849 net/netfilter/nf_tables_api.c nft_trans_destroy(trans); trans 6852 net/netfilter/nf_tables_api.c list_del_rcu(&trans->ctx.table->list); trans 6853 net/netfilter/nf_tables_api.c nf_tables_table_notify(&trans->ctx, NFT_MSG_DELTABLE); trans 6856 net/netfilter/nf_tables_api.c if (nft_trans_chain_update(trans)) { trans 6857 net/netfilter/nf_tables_api.c nft_chain_commit_update(trans); trans 6858 net/netfilter/nf_tables_api.c nf_tables_chain_notify(&trans->ctx, NFT_MSG_NEWCHAIN); trans 6861 net/netfilter/nf_tables_api.c nft_chain_commit_drop_policy(trans); trans 6862 net/netfilter/nf_tables_api.c nft_clear(net, trans->ctx.chain); trans 6863 net/netfilter/nf_tables_api.c nf_tables_chain_notify(&trans->ctx, NFT_MSG_NEWCHAIN); trans 6864 net/netfilter/nf_tables_api.c nft_trans_destroy(trans); trans 6868 net/netfilter/nf_tables_api.c nft_chain_del(trans->ctx.chain); trans 6869 net/netfilter/nf_tables_api.c nf_tables_chain_notify(&trans->ctx, NFT_MSG_DELCHAIN); trans 6870 net/netfilter/nf_tables_api.c nf_tables_unregister_hook(trans->ctx.net, trans 6871 net/netfilter/nf_tables_api.c trans->ctx.table, trans 6872 net/netfilter/nf_tables_api.c trans->ctx.chain); trans 6875 net/netfilter/nf_tables_api.c nft_clear(trans->ctx.net, nft_trans_rule(trans)); trans 6876 net/netfilter/nf_tables_api.c nf_tables_rule_notify(&trans->ctx, trans 6877 net/netfilter/nf_tables_api.c nft_trans_rule(trans), trans 6879 net/netfilter/nf_tables_api.c nft_trans_destroy(trans); trans 6882 net/netfilter/nf_tables_api.c list_del_rcu(&nft_trans_rule(trans)->list); trans 6883 net/netfilter/nf_tables_api.c nf_tables_rule_notify(&trans->ctx, trans 6884 net/netfilter/nf_tables_api.c nft_trans_rule(trans), trans 6886 net/netfilter/nf_tables_api.c nft_rule_expr_deactivate(&trans->ctx, trans 6887 net/netfilter/nf_tables_api.c nft_trans_rule(trans), trans 6891 net/netfilter/nf_tables_api.c nft_clear(net, nft_trans_set(trans)); trans 6895 net/netfilter/nf_tables_api.c if (nft_set_is_anonymous(nft_trans_set(trans)) && trans 6896 net/netfilter/nf_tables_api.c !list_empty(&nft_trans_set(trans)->bindings)) trans 6897 net/netfilter/nf_tables_api.c trans->ctx.table->use--; trans 6899 net/netfilter/nf_tables_api.c nf_tables_set_notify(&trans->ctx, nft_trans_set(trans), trans 6901 net/netfilter/nf_tables_api.c nft_trans_destroy(trans); trans 6904 net/netfilter/nf_tables_api.c list_del_rcu(&nft_trans_set(trans)->list); trans 6905 net/netfilter/nf_tables_api.c nf_tables_set_notify(&trans->ctx, nft_trans_set(trans), trans 6909 net/netfilter/nf_tables_api.c te = (struct nft_trans_elem *)trans->data; trans 6912 net/netfilter/nf_tables_api.c nf_tables_setelem_notify(&trans->ctx, te->set, trans 6915 net/netfilter/nf_tables_api.c nft_trans_destroy(trans); trans 6918 net/netfilter/nf_tables_api.c te = (struct nft_trans_elem *)trans->data; trans 6920 net/netfilter/nf_tables_api.c nf_tables_setelem_notify(&trans->ctx, te->set, trans 6928 net/netfilter/nf_tables_api.c if (nft_trans_obj_update(trans)) { trans 6929 net/netfilter/nf_tables_api.c nft_obj_commit_update(trans); trans 6930 net/netfilter/nf_tables_api.c nf_tables_obj_notify(&trans->ctx, trans 6931 net/netfilter/nf_tables_api.c nft_trans_obj(trans), trans 6934 net/netfilter/nf_tables_api.c nft_clear(net, nft_trans_obj(trans)); trans 6935 net/netfilter/nf_tables_api.c nf_tables_obj_notify(&trans->ctx, trans 6936 net/netfilter/nf_tables_api.c nft_trans_obj(trans), trans 6938 net/netfilter/nf_tables_api.c nft_trans_destroy(trans); trans 6942 net/netfilter/nf_tables_api.c nft_obj_del(nft_trans_obj(trans)); trans 6943 net/netfilter/nf_tables_api.c nf_tables_obj_notify(&trans->ctx, nft_trans_obj(trans), trans 6947 net/netfilter/nf_tables_api.c nft_clear(net, nft_trans_flowtable(trans)); trans 6948 net/netfilter/nf_tables_api.c nf_tables_flowtable_notify(&trans->ctx, trans 6949 net/netfilter/nf_tables_api.c nft_trans_flowtable(trans), trans 6951 net/netfilter/nf_tables_api.c nft_trans_destroy(trans); trans 6954 net/netfilter/nf_tables_api.c list_del_rcu(&nft_trans_flowtable(trans)->list); trans 6955 net/netfilter/nf_tables_api.c nf_tables_flowtable_notify(&trans->ctx, trans 6956 net/netfilter/nf_tables_api.c nft_trans_flowtable(trans), trans 6959 net/netfilter/nf_tables_api.c nft_trans_flowtable(trans)); trans 6985 net/netfilter/nf_tables_api.c static void nf_tables_abort_release(struct nft_trans *trans) trans 6987 net/netfilter/nf_tables_api.c switch (trans->msg_type) { trans 6989 net/netfilter/nf_tables_api.c nf_tables_table_destroy(&trans->ctx); trans 6992 net/netfilter/nf_tables_api.c nf_tables_chain_destroy(&trans->ctx); trans 6995 net/netfilter/nf_tables_api.c nf_tables_rule_destroy(&trans->ctx, nft_trans_rule(trans)); trans 6998 net/netfilter/nf_tables_api.c nft_set_destroy(nft_trans_set(trans)); trans 7001 net/netfilter/nf_tables_api.c nft_set_elem_destroy(nft_trans_elem_set(trans), trans 7002 net/netfilter/nf_tables_api.c nft_trans_elem(trans).priv, true); trans 7005 net/netfilter/nf_tables_api.c nft_obj_destroy(&trans->ctx, nft_trans_obj(trans)); trans 7008 net/netfilter/nf_tables_api.c nf_tables_flowtable_destroy(nft_trans_flowtable(trans)); trans 7011 net/netfilter/nf_tables_api.c kfree(trans); trans 7016 net/netfilter/nf_tables_api.c struct nft_trans *trans, *next; trans 7019 net/netfilter/nf_tables_api.c list_for_each_entry_safe_reverse(trans, next, &net->nft.commit_list, trans 7021 net/netfilter/nf_tables_api.c switch (trans->msg_type) { trans 7023 net/netfilter/nf_tables_api.c if (nft_trans_table_update(trans)) { trans 7024 net/netfilter/nf_tables_api.c if (nft_trans_table_enable(trans)) { trans 7026 net/netfilter/nf_tables_api.c trans->ctx.table); trans 7027 net/netfilter/nf_tables_api.c trans->ctx.table->flags |= NFT_TABLE_F_DORMANT; trans 7029 net/netfilter/nf_tables_api.c nft_trans_destroy(trans); trans 7031 net/netfilter/nf_tables_api.c list_del_rcu(&trans->ctx.table->list); trans 7035 net/netfilter/nf_tables_api.c nft_clear(trans->ctx.net, trans->ctx.table); trans 7036 net/netfilter/nf_tables_api.c nft_trans_destroy(trans); trans 7039 net/netfilter/nf_tables_api.c if (nft_trans_chain_update(trans)) { trans 7040 net/netfilter/nf_tables_api.c free_percpu(nft_trans_chain_stats(trans)); trans 7041 net/netfilter/nf_tables_api.c kfree(nft_trans_chain_name(trans)); trans 7042 net/netfilter/nf_tables_api.c nft_trans_destroy(trans); trans 7044 net/netfilter/nf_tables_api.c trans->ctx.table->use--; trans 7045 net/netfilter/nf_tables_api.c nft_chain_del(trans->ctx.chain); trans 7046 net/netfilter/nf_tables_api.c nf_tables_unregister_hook(trans->ctx.net, trans 7047 net/netfilter/nf_tables_api.c trans->ctx.table, trans 7048 net/netfilter/nf_tables_api.c trans->ctx.chain); trans 7052 net/netfilter/nf_tables_api.c trans->ctx.table->use++; trans 7053 net/netfilter/nf_tables_api.c nft_clear(trans->ctx.net, trans->ctx.chain); trans 7054 net/netfilter/nf_tables_api.c nft_trans_destroy(trans); trans 7057 net/netfilter/nf_tables_api.c trans->ctx.chain->use--; trans 7058 net/netfilter/nf_tables_api.c list_del_rcu(&nft_trans_rule(trans)->list); trans 7059 net/netfilter/nf_tables_api.c nft_rule_expr_deactivate(&trans->ctx, trans 7060 net/netfilter/nf_tables_api.c nft_trans_rule(trans), trans 7064 net/netfilter/nf_tables_api.c trans->ctx.chain->use++; trans 7065 net/netfilter/nf_tables_api.c nft_clear(trans->ctx.net, nft_trans_rule(trans)); trans 7066 net/netfilter/nf_tables_api.c nft_rule_expr_activate(&trans->ctx, nft_trans_rule(trans)); trans 7067 net/netfilter/nf_tables_api.c nft_trans_destroy(trans); trans 7070 net/netfilter/nf_tables_api.c trans->ctx.table->use--; trans 7071 net/netfilter/nf_tables_api.c if (nft_trans_set_bound(trans)) { trans 7072 net/netfilter/nf_tables_api.c nft_trans_destroy(trans); trans 7075 net/netfilter/nf_tables_api.c list_del_rcu(&nft_trans_set(trans)->list); trans 7078 net/netfilter/nf_tables_api.c trans->ctx.table->use++; trans 7079 net/netfilter/nf_tables_api.c nft_clear(trans->ctx.net, nft_trans_set(trans)); trans 7080 net/netfilter/nf_tables_api.c nft_trans_destroy(trans); trans 7083 net/netfilter/nf_tables_api.c if (nft_trans_elem_set_bound(trans)) { trans 7084 net/netfilter/nf_tables_api.c nft_trans_destroy(trans); trans 7087 net/netfilter/nf_tables_api.c te = (struct nft_trans_elem *)trans->data; trans 7092 net/netfilter/nf_tables_api.c te = (struct nft_trans_elem *)trans->data; trans 7098 net/netfilter/nf_tables_api.c nft_trans_destroy(trans); trans 7101 net/netfilter/nf_tables_api.c if (nft_trans_obj_update(trans)) { trans 7102 net/netfilter/nf_tables_api.c kfree(nft_trans_obj_newobj(trans)); trans 7103 net/netfilter/nf_tables_api.c nft_trans_destroy(trans); trans 7105 net/netfilter/nf_tables_api.c trans->ctx.table->use--; trans 7106 net/netfilter/nf_tables_api.c nft_obj_del(nft_trans_obj(trans)); trans 7110 net/netfilter/nf_tables_api.c trans->ctx.table->use++; trans 7111 net/netfilter/nf_tables_api.c nft_clear(trans->ctx.net, nft_trans_obj(trans)); trans 7112 net/netfilter/nf_tables_api.c nft_trans_destroy(trans); trans 7115 net/netfilter/nf_tables_api.c trans->ctx.table->use--; trans 7116 net/netfilter/nf_tables_api.c list_del_rcu(&nft_trans_flowtable(trans)->list); trans 7118 net/netfilter/nf_tables_api.c nft_trans_flowtable(trans)); trans 7121 net/netfilter/nf_tables_api.c trans->ctx.table->use++; trans 7122 net/netfilter/nf_tables_api.c nft_clear(trans->ctx.net, nft_trans_flowtable(trans)); trans 7123 net/netfilter/nf_tables_api.c nft_trans_destroy(trans); trans 7130 net/netfilter/nf_tables_api.c list_for_each_entry_safe_reverse(trans, next, trans 7132 net/netfilter/nf_tables_api.c list_del(&trans->list); trans 7133 net/netfilter/nf_tables_api.c nf_tables_abort_release(trans); trans 330 net/netfilter/nf_tables_offload.c struct nft_trans *trans; trans 334 net/netfilter/nf_tables_offload.c list_for_each_entry(trans, &net->nft.commit_list, list) { trans 335 net/netfilter/nf_tables_offload.c if (trans->ctx.family != NFPROTO_NETDEV) trans 338 net/netfilter/nf_tables_offload.c switch (trans->msg_type) { trans 340 net/netfilter/nf_tables_offload.c if (!(trans->ctx.chain->flags & NFT_CHAIN_HW_OFFLOAD) || trans 341 net/netfilter/nf_tables_offload.c nft_trans_chain_update(trans)) trans 344 net/netfilter/nf_tables_offload.c policy = nft_trans_chain_policy(trans); trans 345 net/netfilter/nf_tables_offload.c err = nft_flow_offload_chain(trans->ctx.chain, &policy, trans 349 net/netfilter/nf_tables_offload.c if (!(trans->ctx.chain->flags & NFT_CHAIN_HW_OFFLOAD)) trans 352 net/netfilter/nf_tables_offload.c policy = nft_trans_chain_policy(trans); trans 353 net/netfilter/nf_tables_offload.c err = nft_flow_offload_chain(trans->ctx.chain, &policy, trans 357 net/netfilter/nf_tables_offload.c if (!(trans->ctx.chain->flags & NFT_CHAIN_HW_OFFLOAD)) trans 360 net/netfilter/nf_tables_offload.c if (trans->ctx.flags & NLM_F_REPLACE || trans 361 net/netfilter/nf_tables_offload.c !(trans->ctx.flags & NLM_F_APPEND)) { trans 365 net/netfilter/nf_tables_offload.c err = nft_flow_offload_rule(trans->ctx.chain, trans 366 net/netfilter/nf_tables_offload.c nft_trans_rule(trans), trans 367 net/netfilter/nf_tables_offload.c nft_trans_flow_rule(trans), trans 371 net/netfilter/nf_tables_offload.c if (!(trans->ctx.chain->flags & NFT_CHAIN_HW_OFFLOAD)) trans 374 net/netfilter/nf_tables_offload.c err = nft_flow_offload_rule(trans->ctx.chain, trans 375 net/netfilter/nf_tables_offload.c nft_trans_rule(trans), trans 376 net/netfilter/nf_tables_offload.c nft_trans_flow_rule(trans), trans 385 net/netfilter/nf_tables_offload.c list_for_each_entry(trans, &net->nft.commit_list, list) { trans 386 net/netfilter/nf_tables_offload.c if (trans->ctx.family != NFPROTO_NETDEV) trans 389 net/netfilter/nf_tables_offload.c switch (trans->msg_type) { trans 391 net/netfilter/nf_tables_offload.c if (!(trans->ctx.chain->flags & NFT_CHAIN_HW_OFFLOAD)) trans 394 net/netfilter/nf_tables_offload.c nft_flow_rule_destroy(nft_trans_flow_rule(trans)); trans 490 net/rds/af_rds.c int trans; trans 521 net/rds/af_rds.c trans = (rs->rs_transport ? rs->rs_transport->t_type : trans 523 net/rds/af_rds.c if (put_user(trans, (int __user *)optval) || trans 168 net/rds/bind.c struct rds_transport *trans; trans 246 net/rds/bind.c trans = rs->rs_transport; trans 247 net/rds/bind.c if (!trans->laddr_check || trans 248 net/rds/bind.c trans->laddr_check(sock_net(sock->sk), trans 254 net/rds/bind.c trans = rds_trans_get_preferred(sock_net(sock->sk), trans 256 net/rds/bind.c if (!trans) { trans 262 net/rds/bind.c rs->rs_transport = trans; trans 86 net/rds/connection.c struct rds_transport *trans, trans 94 net/rds/connection.c conn->c_trans == trans && trans 163 net/rds/connection.c struct rds_transport *trans, trans 173 net/rds/connection.c int npaths = (trans->t_mp_capable ? RDS_MPATH_WORKERS : 1); trans 176 net/rds/connection.c conn = rds_conn_lookup(net, head, laddr, faddr, trans, tos, dev_if); trans 243 net/rds/connection.c if (is_outgoing && trans->t_prefer_loopback) { trans 248 net/rds/connection.c trans = &rds_loop_transport; trans 252 net/rds/connection.c conn->c_trans = trans; trans 264 net/rds/connection.c ret = trans->conn_alloc(conn, GFP_ATOMIC); trans 275 net/rds/connection.c strnlen(trans->t_name, sizeof(trans->t_name)) ? trans 276 net/rds/connection.c trans->t_name : "[unknown]", is_outgoing ? "(outgoing)" : ""); trans 289 net/rds/connection.c trans->conn_free(conn->c_path[0].cp_transport_data); trans 302 net/rds/connection.c found = rds_conn_lookup(net, head, laddr, faddr, trans, trans 315 net/rds/connection.c trans->conn_free(cp->cp_transport_data); trans 338 net/rds/connection.c struct rds_transport *trans, u8 tos, trans 341 net/rds/connection.c return __rds_conn_create(net, laddr, faddr, trans, gfp, tos, 0, dev_if); trans 348 net/rds/connection.c struct rds_transport *trans, trans 351 net/rds/connection.c return __rds_conn_create(net, laddr, faddr, trans, gfp, tos, 1, dev_if); trans 55 net/rds/rdma_transport.c struct rds_transport *trans; trans 64 net/rds/rdma_transport.c trans = &rds_ib_transport; trans 85 net/rds/rdma_transport.c ret = trans->cm_handle_connect(cm_id, event, isv6); trans 106 net/rds/rdma_transport.c ret = trans->cm_initiate_connect(cm_id, isv6); trans 115 net/rds/rdma_transport.c trans->cm_connect_complete(conn, event); trans 772 net/rds/rds.h struct rds_transport *trans, trans 778 net/rds/rds.h struct rds_transport *trans, trans 1004 net/rds/rds.h void rds_trans_register(struct rds_transport *trans); trans 1005 net/rds/rds.h void rds_trans_unregister(struct rds_transport *trans); trans 1009 net/rds/rds.h void rds_trans_put(struct rds_transport *trans); trans 126 net/rds/stats.c goto trans; trans 140 net/rds/stats.c trans: trans 44 net/rds/transport.c void rds_trans_register(struct rds_transport *trans) trans 46 net/rds/transport.c BUG_ON(strlen(trans->t_name) + 1 > TRANSNAMSIZ); trans 50 net/rds/transport.c if (transports[trans->t_type]) trans 52 net/rds/transport.c trans->t_type); trans 54 net/rds/transport.c transports[trans->t_type] = trans; trans 55 net/rds/transport.c printk(KERN_INFO "Registered RDS/%s transport\n", trans->t_name); trans 62 net/rds/transport.c void rds_trans_unregister(struct rds_transport *trans) trans 66 net/rds/transport.c transports[trans->t_type] = NULL; trans 67 net/rds/transport.c printk(KERN_INFO "Unregistered RDS/%s transport\n", trans->t_name); trans 73 net/rds/transport.c void rds_trans_put(struct rds_transport *trans) trans 75 net/rds/transport.c if (trans) trans 76 net/rds/transport.c module_put(trans->t_owner); trans 84 net/rds/transport.c struct rds_transport *trans; trans 96 net/rds/transport.c trans = transports[i]; trans 98 net/rds/transport.c if (trans && (trans->laddr_check(net, addr, scope_id) == 0) && trans 99 net/rds/transport.c (!trans->t_owner || try_module_get(trans->t_owner))) { trans 100 net/rds/transport.c ret = trans; trans 112 net/rds/transport.c struct rds_transport *trans; trans 117 net/rds/transport.c trans = transports[i]; trans 119 net/rds/transport.c if (trans && trans->t_type == t_type && trans 120 net/rds/transport.c (!trans->t_owner || try_module_get(trans->t_owner))) { trans 121 net/rds/transport.c ret = trans; trans 140 net/rds/transport.c struct rds_transport *trans; trans 149 net/rds/transport.c trans = transports[i]; trans 150 net/rds/transport.c if (!trans || !trans->stats_info_copy) trans 153 net/rds/transport.c part = trans->stats_info_copy(iter, avail); trans 1103 net/sctp/associola.c struct sctp_transport *trans; trans 1119 net/sctp/associola.c trans = list_entry(pos, struct sctp_transport, transports); trans 1120 net/sctp/associola.c if (!sctp_assoc_lookup_paddr(new, &trans->ipaddr)) { trans 1121 net/sctp/associola.c sctp_assoc_rm_peer(asoc, trans); trans 1126 net/sctp/associola.c sctp_transport_reset(trans); trans 1158 net/sctp/associola.c list_for_each_entry(trans, &new->peer.transport_addr_list, trans 1160 net/sctp/associola.c if (!sctp_assoc_lookup_paddr(asoc, &trans->ipaddr) && trans 1161 net/sctp/associola.c !sctp_assoc_add_peer(asoc, &trans->ipaddr, trans 1162 net/sctp/associola.c GFP_ATOMIC, trans->state)) trans 1222 net/sctp/associola.c static u8 sctp_trans_score(const struct sctp_transport *trans) trans 1224 net/sctp/associola.c switch (trans->state) { trans 1275 net/sctp/associola.c struct sctp_transport *trans = asoc->peer.retran_path; trans 1289 net/sctp/associola.c for (trans = list_next_entry(trans, transports); 1; trans 1290 net/sctp/associola.c trans = list_next_entry(trans, transports)) { trans 1292 net/sctp/associola.c if (&trans->transports == &asoc->peer.transport_addr_list) trans 1294 net/sctp/associola.c if (trans->state == SCTP_UNCONFIRMED) trans 1296 net/sctp/associola.c trans_next = sctp_trans_elect_best(trans, trans_next); trans 1301 net/sctp/associola.c if (trans == asoc->peer.retran_path) trans 1313 net/sctp/associola.c struct sctp_transport *trans, *trans_pri = NULL, *trans_sec = NULL; trans 1317 net/sctp/associola.c list_for_each_entry(trans, &asoc->peer.transport_addr_list, trans 1320 net/sctp/associola.c if (trans->state == SCTP_INACTIVE || trans 1321 net/sctp/associola.c trans->state == SCTP_UNCONFIRMED) trans 1326 net/sctp/associola.c if (trans->state == SCTP_PF) { trans 1327 net/sctp/associola.c trans_pf = sctp_trans_elect_best(trans, trans_pf); trans 1332 net/sctp/associola.c ktime_after(trans->last_time_heard, trans 1335 net/sctp/associola.c trans_pri = trans; trans 1337 net/sctp/associola.c ktime_after(trans->last_time_heard, trans 1339 net/sctp/associola.c trans_sec = trans; trans 759 net/sctp/sm_make_chunk.c struct sctp_transport *trans; trans 844 net/sctp/sm_make_chunk.c list_for_each_entry(trans, &asoc->peer.transport_addr_list, trans 846 net/sctp/sm_make_chunk.c trans->sack_generation = 0; trans 141 net/sctp/sm_sideeffect.c struct sctp_transport *trans = asoc->peer.last_data_from; trans 147 net/sctp/sm_sideeffect.c (!trans && (asoc->param_flags & SPP_SACKDELAY_DISABLE)) || trans 148 net/sctp/sm_sideeffect.c (trans && (trans->param_flags & SPP_SACKDELAY_DISABLE))) trans 183 net/sctp/sm_sideeffect.c if (trans) { trans 185 net/sctp/sm_sideeffect.c if (asoc->peer.sack_cnt >= trans->sackfreq - 1) trans 189 net/sctp/sm_sideeffect.c trans->sackdelay; trans 625 net/sctp/socket.c struct sctp_transport *trans; trans 627 net/sctp/socket.c list_for_each_entry(trans, trans 629 net/sctp/socket.c trans->cwnd = min(4*asoc->pathmtu, max_t(__u32, trans 631 net/sctp/socket.c trans->ssthresh = asoc->peer.i.a_rwnd; trans 632 net/sctp/socket.c trans->rto = asoc->rto_initial; trans 633 net/sctp/socket.c sctp_max_rto(asoc, trans); trans 634 net/sctp/socket.c trans->rtt = trans->srtt = trans->rttvar = 0; trans 636 net/sctp/socket.c sctp_transport_route(trans, NULL, trans 2436 net/sctp/socket.c struct sctp_transport *trans, trans 2445 net/sctp/socket.c if (params->spp_flags & SPP_HB_DEMAND && trans) { trans 2446 net/sctp/socket.c struct net *net = sock_net(trans->asoc->base.sk); trans 2448 net/sctp/socket.c error = sctp_primitive_REQUESTHEARTBEAT(net, trans->asoc, trans); trans 2468 net/sctp/socket.c if (trans) { trans 2469 net/sctp/socket.c trans->hbinterval = trans 2481 net/sctp/socket.c if (trans) { trans 2482 net/sctp/socket.c trans->param_flags = trans 2483 net/sctp/socket.c (trans->param_flags & ~SPP_HB) | hb_change; trans 2499 net/sctp/socket.c if (trans) { trans 2500 net/sctp/socket.c trans->pathmtu = params->spp_pathmtu; trans 2510 net/sctp/socket.c if (trans) { trans 2511 net/sctp/socket.c int update = (trans->param_flags & SPP_PMTUD_DISABLE) && trans 2513 net/sctp/socket.c trans->param_flags = trans 2514 net/sctp/socket.c (trans->param_flags & ~SPP_PMTUD) | pmtud_change; trans 2516 net/sctp/socket.c sctp_transport_pmtu(trans, sctp_opt2sk(sp)); trans 2533 net/sctp/socket.c if (trans) { trans 2534 net/sctp/socket.c trans->sackdelay = trans 2545 net/sctp/socket.c if (trans) { trans 2546 net/sctp/socket.c trans->param_flags = trans 2547 net/sctp/socket.c (trans->param_flags & ~SPP_SACKDELAY) | trans 2564 net/sctp/socket.c if (trans) { trans 2565 net/sctp/socket.c trans->pathmaxrxt = params->spp_pathmaxrxt; trans 2574 net/sctp/socket.c if (trans) { trans 2575 net/sctp/socket.c if (trans->ipaddr.sa.sa_family == AF_INET6) { trans 2576 net/sctp/socket.c trans->flowlabel = params->spp_ipv6_flowlabel & trans 2578 net/sctp/socket.c trans->flowlabel |= SCTP_FLOWLABEL_SET_MASK; trans 2602 net/sctp/socket.c if (trans) { trans 2603 net/sctp/socket.c trans->dscp = params->spp_dscp & SCTP_DSCP_VAL_MASK; trans 2604 net/sctp/socket.c trans->dscp |= SCTP_DSCP_SET_MASK; trans 2630 net/sctp/socket.c struct sctp_transport *trans = NULL; trans 2666 net/sctp/socket.c trans = sctp_addr_id2transport(sk, ¶ms.spp_address, trans 2668 net/sctp/socket.c if (!trans) trans 2684 net/sctp/socket.c if (params.spp_flags & SPP_HB_DEMAND && !trans && !asoc) trans 2688 net/sctp/socket.c error = sctp_apply_peer_addr_params(¶ms, trans, asoc, sp, trans 2698 net/sctp/socket.c if (!trans && asoc) { trans 2699 net/sctp/socket.c list_for_each_entry(trans, &asoc->peer.transport_addr_list, trans 2701 net/sctp/socket.c sctp_apply_peer_addr_params(¶ms, trans, asoc, sp, trans 2723 net/sctp/socket.c struct sctp_transport *trans; trans 2739 net/sctp/socket.c list_for_each_entry(trans, &asoc->peer.transport_addr_list, trans 2742 net/sctp/socket.c trans->sackdelay = msecs_to_jiffies(params->sack_delay); trans 2743 net/sctp/socket.c trans->param_flags = trans 2744 net/sctp/socket.c sctp_spp_sackdelay_enable(trans->param_flags); trans 2747 net/sctp/socket.c trans->param_flags = trans 2748 net/sctp/socket.c sctp_spp_sackdelay_disable(trans->param_flags); trans 2750 net/sctp/socket.c trans->sackfreq = params->sack_freq; trans 2751 net/sctp/socket.c trans->param_flags = trans 2752 net/sctp/socket.c sctp_spp_sackdelay_enable(trans->param_flags); trans 3042 net/sctp/socket.c struct sctp_transport *trans; trans 3063 net/sctp/socket.c trans = sctp_addr_id2transport(sk, &prim.ssp_addr, prim.ssp_assoc_id); trans 3064 net/sctp/socket.c if (!trans) trans 3067 net/sctp/socket.c sctp_assoc_set_primary(trans->asoc, trans); trans 3964 net/sctp/socket.c struct sctp_transport *trans; trans 3974 net/sctp/socket.c trans = sctp_addr_id2transport(sk, &val.spt_address, trans 3976 net/sctp/socket.c if (!trans) trans 3980 net/sctp/socket.c trans->pathmaxrxt = val.spt_pathmaxrxt; trans 3981 net/sctp/socket.c trans->pf_retrans = val.spt_pathpfthld; trans 3992 net/sctp/socket.c list_for_each_entry(trans, &asoc->peer.transport_addr_list, trans 3995 net/sctp/socket.c trans->pathmaxrxt = val.spt_pathmaxrxt; trans 3996 net/sctp/socket.c trans->pf_retrans = val.spt_pathpfthld; trans 5936 net/sctp/socket.c struct sctp_transport *trans = NULL; trans 5956 net/sctp/socket.c trans = sctp_addr_id2transport(sk, ¶ms.spp_address, trans 5958 net/sctp/socket.c if (!trans) { trans 5975 net/sctp/socket.c if (trans) { trans 5977 net/sctp/socket.c params.spp_hbinterval = jiffies_to_msecs(trans->hbinterval); trans 5978 net/sctp/socket.c params.spp_pathmtu = trans->pathmtu; trans 5979 net/sctp/socket.c params.spp_pathmaxrxt = trans->pathmaxrxt; trans 5980 net/sctp/socket.c params.spp_sackdelay = jiffies_to_msecs(trans->sackdelay); trans 5983 net/sctp/socket.c params.spp_flags = trans->param_flags; trans 5984 net/sctp/socket.c if (trans->flowlabel & SCTP_FLOWLABEL_SET_MASK) { trans 5985 net/sctp/socket.c params.spp_ipv6_flowlabel = trans->flowlabel & trans 5989 net/sctp/socket.c if (trans->dscp & SCTP_DSCP_SET_MASK) { trans 5990 net/sctp/socket.c params.spp_dscp = trans->dscp & SCTP_DSCP_VAL_MASK; trans 7193 net/sctp/socket.c struct sctp_transport *trans; trans 7203 net/sctp/socket.c trans = sctp_addr_id2transport(sk, &val.spt_address, trans 7205 net/sctp/socket.c if (!trans) trans 7208 net/sctp/socket.c val.spt_pathmaxrxt = trans->pathmaxrxt; trans 7209 net/sctp/socket.c val.spt_pathpfthld = trans->pf_retrans; trans 625 net/sctp/transport.c unsigned long sctp_transport_timeout(struct sctp_transport *trans) trans 628 net/sctp/transport.c unsigned long timeout = trans->rto >> 1; trans 630 net/sctp/transport.c if (trans->state != SCTP_UNCONFIRMED && trans 631 net/sctp/transport.c trans->state != SCTP_PF) trans 632 net/sctp/transport.c timeout += trans->hbinterval; trans 96 net/sctp/tsnmap.c struct sctp_transport *trans) trans 115 net/sctp/tsnmap.c if (trans) trans 116 net/sctp/tsnmap.c trans->sack_generation = trans 117 net/sctp/tsnmap.c trans->asoc->peer.sack_generation; trans 104 net/switchdev/switchdev.c struct switchdev_trans *trans) trans 111 net/switchdev/switchdev.c .trans = trans, trans 132 net/switchdev/switchdev.c struct switchdev_trans trans; trans 142 net/switchdev/switchdev.c trans.ph_prepare = true; trans 144 net/switchdev/switchdev.c &trans); trans 153 net/switchdev/switchdev.c trans.ph_prepare = false; trans 155 net/switchdev/switchdev.c &trans); trans 224 net/switchdev/switchdev.c struct switchdev_trans *trans, trans 232 net/switchdev/switchdev.c .trans = trans, trans 251 net/switchdev/switchdev.c struct switchdev_trans trans; trans 263 net/switchdev/switchdev.c trans.ph_prepare = true; trans 265 net/switchdev/switchdev.c dev, obj, &trans, extack); trans 274 net/switchdev/switchdev.c trans.ph_prepare = false; trans 276 net/switchdev/switchdev.c dev, obj, &trans, extack); trans 453 net/switchdev/switchdev.c struct switchdev_trans *trans, trans 466 net/switchdev/switchdev.c return add_cb(dev, port_obj_info->obj, port_obj_info->trans, trans 492 net/switchdev/switchdev.c struct switchdev_trans *trans, trans 559 net/switchdev/switchdev.c struct switchdev_trans *trans)) trans 568 net/switchdev/switchdev.c port_attr_info->trans); trans 593 net/switchdev/switchdev.c struct switchdev_trans *trans)) trans 238 net/vmw_vsock/hyperv_transport.c struct hvsock *hvs = vsk->trans; trans 330 net/vmw_vsock/hyperv_transport.c hvs_new = vnew->trans; trans 333 net/vmw_vsock/hyperv_transport.c hvs = vsock_sk(sk)->trans; trans 430 net/vmw_vsock/hyperv_transport.c vsk->trans = hvs; trans 440 net/vmw_vsock/hyperv_transport.c struct hvsock *h = vsk->trans; trans 473 net/vmw_vsock/hyperv_transport.c hvs_shutdown_lock_held(vsk->trans, mode); trans 504 net/vmw_vsock/hyperv_transport.c hvs_shutdown_lock_held(vsk->trans, SHUTDOWN_MASK); trans 531 net/vmw_vsock/hyperv_transport.c struct hvsock *hvs = vsk->trans; trans 586 net/vmw_vsock/hyperv_transport.c struct hvsock *hvs = vsk->trans; trans 626 net/vmw_vsock/hyperv_transport.c struct hvsock *hvs = vsk->trans; trans 673 net/vmw_vsock/hyperv_transport.c struct hvsock *hvs = vsk->trans; trans 697 net/vmw_vsock/hyperv_transport.c struct hvsock *hvs = vsk->trans; trans 709 net/vmw_vsock/hyperv_transport.c struct hvsock *hvs = vsk->trans; trans 725 net/vmw_vsock/hyperv_transport.c struct hvsock *hvs = vsk->trans; trans 181 net/vmw_vsock/virtio_transport_common.c vvs = vsk->trans; trans 275 net/vmw_vsock/virtio_transport_common.c struct virtio_vsock_sock *vvs = vsk->trans; trans 359 net/vmw_vsock/virtio_transport_common.c struct virtio_vsock_sock *vvs = vsk->trans; trans 372 net/vmw_vsock/virtio_transport_common.c struct virtio_vsock_sock *vvs = vsk->trans; trans 384 net/vmw_vsock/virtio_transport_common.c struct virtio_vsock_sock *vvs = vsk->trans; trans 404 net/vmw_vsock/virtio_transport_common.c vsk->trans = vvs; trans 407 net/vmw_vsock/virtio_transport_common.c struct virtio_vsock_sock *ptrans = psk->trans; trans 431 net/vmw_vsock/virtio_transport_common.c struct virtio_vsock_sock *vvs = vsk->trans; trans 439 net/vmw_vsock/virtio_transport_common.c struct virtio_vsock_sock *vvs = vsk->trans; trans 447 net/vmw_vsock/virtio_transport_common.c struct virtio_vsock_sock *vvs = vsk->trans; trans 455 net/vmw_vsock/virtio_transport_common.c struct virtio_vsock_sock *vvs = vsk->trans; trans 473 net/vmw_vsock/virtio_transport_common.c struct virtio_vsock_sock *vvs = vsk->trans; trans 485 net/vmw_vsock/virtio_transport_common.c struct virtio_vsock_sock *vvs = vsk->trans; trans 585 net/vmw_vsock/virtio_transport_common.c struct virtio_vsock_sock *vvs = vsk->trans; trans 673 net/vmw_vsock/virtio_transport_common.c struct virtio_vsock_sock *vvs = vsk->trans; trans 825 net/vmw_vsock/virtio_transport_common.c struct virtio_vsock_sock *vvs = vsk->trans; trans 885 net/vmw_vsock/virtio_transport_common.c struct virtio_vsock_sock *vvs = vsk->trans; trans 1048 net/vmw_vsock/virtio_transport_common.c struct virtio_vsock_sock *vvs = vsk->trans; trans 856 net/vmw_vsock/vmci_transport.c struct vmci_transport *trans = client_data; trans 865 net/vmw_vsock/vmci_transport.c !vmci_handle_is_equal(trans->qp_handle, e_payload->handle)) trans 874 net/vmw_vsock/vmci_transport.c spin_lock_bh(&trans->lock); trans 875 net/vmw_vsock/vmci_transport.c if (!trans->sk) trans 881 net/vmw_vsock/vmci_transport.c bh_lock_sock(trans->sk); trans 883 net/vmw_vsock/vmci_transport.c vmci_transport_handle_detach(trans->sk); trans 885 net/vmw_vsock/vmci_transport.c bh_unlock_sock(trans->sk); trans 887 net/vmw_vsock/vmci_transport.c spin_unlock_bh(&trans->lock); trans 1578 net/vmw_vsock/vmci_transport.c vsk->trans = kmalloc(sizeof(struct vmci_transport), GFP_KERNEL); trans 1579 net/vmw_vsock/vmci_transport.c if (!vsk->trans) trans 1665 net/vmw_vsock/vmci_transport.c vsk->trans = NULL; trans 30 net/vmw_vsock/vmci_transport.h #define vmci_trans(_vsk) ((struct vmci_transport *)((_vsk)->trans)) trans 761 net/xfrm/xfrm_input.c struct xfrm_trans_tasklet *trans = (void *)data; trans 766 net/xfrm/xfrm_input.c skb_queue_splice_init(&trans->queue, &queue); trans 776 net/xfrm/xfrm_input.c struct xfrm_trans_tasklet *trans; trans 778 net/xfrm/xfrm_input.c trans = this_cpu_ptr(&xfrm_trans_tasklet); trans 780 net/xfrm/xfrm_input.c if (skb_queue_len(&trans->queue) >= netdev_max_backlog) trans 784 net/xfrm/xfrm_input.c __skb_queue_tail(&trans->queue, skb); trans 785 net/xfrm/xfrm_input.c tasklet_schedule(&trans->tasklet); trans 801 net/xfrm/xfrm_input.c struct xfrm_trans_tasklet *trans; trans 803 net/xfrm/xfrm_input.c trans = &per_cpu(xfrm_trans_tasklet, i); trans 804 net/xfrm/xfrm_input.c __skb_queue_head_init(&trans->queue); trans 805 net/xfrm/xfrm_input.c tasklet_init(&trans->tasklet, xfrm_trans_reinject, trans 806 net/xfrm/xfrm_input.c (unsigned long)trans); trans 517 security/apparmor/domain.c for (*name = profile->file.trans.table[index]; !label && *name; trans 568 security/apparmor/domain.c stack = profile->file.trans.table[xindex & AA_X_INDEX_MASK]; trans 149 security/apparmor/include/audit.h const char *trans; trans 179 security/apparmor/include/file.h struct aa_domain trans; trans 207 security/apparmor/include/file.h aa_free_domain_entries(&rules->trans); trans 98 security/apparmor/mount.c if (aad(sa)->mnt.trans) { trans 100 security/apparmor/mount.c audit_log_untrustedstring(ab, aad(sa)->mnt.trans); trans 132 security/apparmor/mount.c const char *type, const char *trans, trans 171 security/apparmor/mount.c aad(&sa)->mnt.trans = trans; trans 486 security/apparmor/policy_unpack.c profile->file.trans.table = kcalloc(size, sizeof(char *), trans 488 security/apparmor/policy_unpack.c if (!profile->file.trans.table) trans 491 security/apparmor/policy_unpack.c profile->file.trans.size = size; trans 500 security/apparmor/policy_unpack.c profile->file.trans.table[i] = str; trans 538 security/apparmor/policy_unpack.c aa_free_domain_entries(&profile->file.trans); trans 1014 security/apparmor/policy_unpack.c profile->file.trans.size)) { trans 275 sound/oss/dmasound/dmasound_core.c static ssize_t sound_copy_translate(TRANS *trans, const u_char __user *userPtr, trans 283 sound/oss/dmasound/dmasound_core.c ct_func = trans->ct_ulaw; trans 286 sound/oss/dmasound/dmasound_core.c ct_func = trans->ct_alaw; trans 289 sound/oss/dmasound/dmasound_core.c ct_func = trans->ct_s8; trans 292 sound/oss/dmasound/dmasound_core.c ct_func = trans->ct_u8; trans 295 sound/oss/dmasound/dmasound_core.c ct_func = trans->ct_s16be; trans 298 sound/oss/dmasound/dmasound_core.c ct_func = trans->ct_u16be; trans 301 sound/oss/dmasound/dmasound_core.c ct_func = trans->ct_s16le; trans 304 sound/oss/dmasound/dmasound_core.c ct_func = trans->ct_u16le; trans 28 tools/testing/selftests/powerpc/ptrace/ptrace-tm-gpr.c trans: trans 69 tools/testing/selftests/powerpc/ptrace/ptrace-tm-gpr.c goto trans; trans 35 tools/testing/selftests/powerpc/ptrace/ptrace-tm-spd-gpr.c trans: trans 76 tools/testing/selftests/powerpc/ptrace/ptrace-tm-spd-gpr.c goto trans; trans 29 tools/testing/selftests/powerpc/ptrace/ptrace-tm-spd-tar.c trans: trans 82 tools/testing/selftests/powerpc/ptrace/ptrace-tm-spd-tar.c goto trans; trans 49 tools/testing/selftests/powerpc/ptrace/ptrace-tm-spd-vsx.c trans: trans 83 tools/testing/selftests/powerpc/ptrace/ptrace-tm-spd-vsx.c goto trans; trans 40 tools/testing/selftests/powerpc/ptrace/ptrace-tm-spr.c trans: trans 83 tools/testing/selftests/powerpc/ptrace/ptrace-tm-spr.c goto trans; trans 23 tools/testing/selftests/powerpc/ptrace/ptrace-tm-tar.c trans: trans 71 tools/testing/selftests/powerpc/ptrace/ptrace-tm-tar.c goto trans; trans 36 tools/testing/selftests/powerpc/ptrace/ptrace-tm-vsx.c trans: trans 71 tools/testing/selftests/powerpc/ptrace/ptrace-tm-vsx.c goto trans;