rdata 118 arch/m68k/include/asm/mac_iop.h __u8 rdata; /* read a data byte */ rdata 350 crypto/ansi_cprng.c u8 *rdata, unsigned int dlen) rdata 354 crypto/ansi_cprng.c return get_prng_bytes(rdata, dlen, prng, 0); rdata 386 crypto/ansi_cprng.c u8 *rdata, unsigned int dlen) rdata 390 crypto/ansi_cprng.c return get_prng_bytes(rdata, dlen, prng, 1); rdata 396 crypto/ansi_cprng.c u8 rdata[DEFAULT_BLK_SZ]; rdata 415 crypto/ansi_cprng.c rc = get_prng_bytes(rdata, DEFAULT_BLK_SZ, prng, 0); rdata 145 crypto/jitterentropy-kcapi.c u8 *rdata, unsigned int dlen) rdata 151 crypto/jitterentropy-kcapi.c ret = jent_read_entropy(rng->entropy_collector, rdata, dlen); rdata 156 drivers/acpi/ec.c u8 *rdata; rdata 667 drivers/acpi/ec.c t->rdata[t->ri++] = acpi_ec_read_data(ec); rdata 688 drivers/acpi/ec.c t->rdata[t->ri++] = 0x00; rdata 825 drivers/acpi/ec.c if (!ec || (!t) || (t->wlen && !t->wdata) || (t->rlen && !t->rdata)) rdata 827 drivers/acpi/ec.c if (t->rdata) rdata 828 drivers/acpi/ec.c memset(t->rdata, 0, t->rlen); rdata 852 drivers/acpi/ec.c .wdata = NULL, .rdata = &d, rdata 861 drivers/acpi/ec.c .wdata = NULL, .rdata = NULL, rdata 873 drivers/acpi/ec.c .wdata = &address, .rdata = &d, rdata 885 drivers/acpi/ec.c .wdata = wdata, .rdata = NULL, rdata 924 drivers/acpi/ec.c u8 *rdata, unsigned rdata_len) rdata 927 drivers/acpi/ec.c .wdata = wdata, .rdata = rdata, rdata 1141 drivers/acpi/ec.c t->rdata = pval; rdata 1629 drivers/android/binder.c struct binder_ref_data *rdata) rdata 1644 drivers/android/binder.c if (rdata) rdata 1645 drivers/android/binder.c *rdata = ref->data; rdata 1685 drivers/android/binder.c struct binder_ref_data *rdata) rdata 1702 drivers/android/binder.c if (rdata) rdata 1703 drivers/android/binder.c *rdata = ref->data; rdata 1727 drivers/android/binder.c uint32_t desc, bool strong, struct binder_ref_data *rdata) rdata 1729 drivers/android/binder.c return binder_update_ref_for_handle(proc, desc, false, strong, rdata); rdata 1750 drivers/android/binder.c struct binder_ref_data *rdata) rdata 1767 drivers/android/binder.c *rdata = ref->data; rdata 2323 drivers/android/binder.c struct binder_ref_data rdata; rdata 2328 drivers/android/binder.c hdr->type == BINDER_TYPE_HANDLE, &rdata); rdata 2337 drivers/android/binder.c rdata.debug_id, rdata.desc); rdata 2443 drivers/android/binder.c struct binder_ref_data rdata; rdata 2467 drivers/android/binder.c &thread->todo, &rdata); rdata 2476 drivers/android/binder.c fp->handle = rdata.desc; rdata 2479 drivers/android/binder.c trace_binder_transaction_node_to_ref(t, node, &rdata); rdata 2483 drivers/android/binder.c rdata.debug_id, rdata.desc); rdata 3629 drivers/android/binder.c struct binder_ref_data rdata; rdata 3643 drivers/android/binder.c strong, NULL, &rdata); rdata 3649 drivers/android/binder.c &rdata); rdata 3650 drivers/android/binder.c if (!ret && rdata.desc != target) { rdata 3653 drivers/android/binder.c target, rdata.desc); rdata 3679 drivers/android/binder.c rdata.debug_id, rdata.desc, rdata.strong, rdata 3680 drivers/android/binder.c rdata.weak); rdata 141 drivers/android/binder_trace.h struct binder_ref_data *rdata), rdata 142 drivers/android/binder_trace.h TP_ARGS(t, node, rdata), rdata 155 drivers/android/binder_trace.h __entry->ref_debug_id = rdata->debug_id; rdata 156 drivers/android/binder_trace.h __entry->ref_desc = rdata->desc; rdata 166 drivers/android/binder_trace.h struct binder_ref_data *rdata), rdata 167 drivers/android/binder_trace.h TP_ARGS(t, node, rdata), rdata 178 drivers/android/binder_trace.h __entry->ref_debug_id = rdata->debug_id; rdata 179 drivers/android/binder_trace.h __entry->ref_desc = rdata->desc; rdata 382 drivers/fsi/fsi-master-ast-cf.c uint32_t rdata = 0; rdata 392 drivers/fsi/fsi-master-ast-cf.c rdata = ioread32be(master->sram + RSP_DATA); rdata 393 drivers/fsi/fsi-master-ast-cf.c crc = crc4(crc, rdata, size); rdata 395 drivers/fsi/fsi-master-ast-cf.c *response = rdata; rdata 399 drivers/fsi/fsi-master-ast-cf.c trace_fsi_master_acf_copro_response(master, rtag, rcrc, rdata, crc == 0); rdata 592 drivers/hid/hid-multitouch.c struct mt_report_data *rdata; rdata 596 drivers/hid/hid-multitouch.c rdata = devm_kzalloc(&td->hdev->dev, sizeof(*rdata), GFP_KERNEL); rdata 597 drivers/hid/hid-multitouch.c if (!rdata) rdata 600 drivers/hid/hid-multitouch.c rdata->report = report; rdata 601 drivers/hid/hid-multitouch.c rdata->application = mt_find_application(td, report); rdata 603 drivers/hid/hid-multitouch.c if (!rdata->application) { rdata 604 drivers/hid/hid-multitouch.c devm_kfree(&td->hdev->dev, rdata); rdata 616 drivers/hid/hid-multitouch.c rdata->is_mt_collection = true; rdata 620 drivers/hid/hid-multitouch.c list_add_tail(&rdata->list, &td->reports); rdata 622 drivers/hid/hid-multitouch.c return rdata; rdata 628 drivers/hid/hid-multitouch.c struct mt_report_data *tmp, *rdata = NULL; rdata 632 drivers/hid/hid-multitouch.c rdata = tmp; rdata 637 drivers/hid/hid-multitouch.c if (!rdata) rdata 638 drivers/hid/hid-multitouch.c rdata = mt_allocate_report_data(td, report); rdata 640 drivers/hid/hid-multitouch.c return rdata; rdata 1144 drivers/hid/hid-multitouch.c struct mt_report_data *rdata) rdata 1147 drivers/hid/hid-multitouch.c struct hid_report *report = rdata->report; rdata 1148 drivers/hid/hid-multitouch.c struct mt_application *app = rdata->application; rdata 1296 drivers/hid/hid-multitouch.c struct mt_report_data *rdata; rdata 1298 drivers/hid/hid-multitouch.c rdata = mt_find_report_data(td, field->report); rdata 1299 drivers/hid/hid-multitouch.c if (!rdata) { rdata 1304 drivers/hid/hid-multitouch.c application = rdata->application; rdata 1348 drivers/hid/hid-multitouch.c if (rdata->is_mt_collection) rdata 1368 drivers/hid/hid-multitouch.c struct mt_report_data *rdata; rdata 1370 drivers/hid/hid-multitouch.c rdata = mt_find_report_data(td, field->report); rdata 1371 drivers/hid/hid-multitouch.c if (rdata && rdata->is_mt_collection) { rdata 1384 drivers/hid/hid-multitouch.c struct mt_report_data *rdata; rdata 1386 drivers/hid/hid-multitouch.c rdata = mt_find_report_data(td, field->report); rdata 1387 drivers/hid/hid-multitouch.c if (rdata && rdata->is_mt_collection) rdata 1397 drivers/hid/hid-multitouch.c struct mt_report_data *rdata; rdata 1402 drivers/hid/hid-multitouch.c rdata = mt_find_report_data(td, report); rdata 1403 drivers/hid/hid-multitouch.c if (rdata && rdata->is_mt_collection) rdata 1404 drivers/hid/hid-multitouch.c return mt_touch_report(hid, rdata); rdata 1547 drivers/hid/hid-multitouch.c struct mt_report_data *rdata; rdata 1553 drivers/hid/hid-multitouch.c rdata = mt_find_report_data(td, report); rdata 1554 drivers/hid/hid-multitouch.c if (!rdata) { rdata 1559 drivers/hid/hid-multitouch.c mt_application = rdata->application; rdata 1561 drivers/hid/hid-multitouch.c if (rdata->is_mt_collection) { rdata 4423 drivers/infiniband/hw/qib/qib_iba7220.c u8 rdata; rdata 4440 drivers/infiniband/hw/qib/qib_iba7220.c ret = qib_twsi_blk_rd(dd, QIB_TWSI_TEMP_DEV, regnum, &rdata, 1); rdata 4442 drivers/infiniband/hw/qib/qib_iba7220.c ret = rdata; rdata 1017 drivers/infiniband/hw/qib/qib_sd7220.c u8 rdata[4]; rdata 1102 drivers/infiniband/hw/qib/qib_sd7220.c data = rxeq_init_vals[idx].rdata[vidx]; rdata 1226 drivers/infiniband/hw/qib/qib_sd7220.c val = rxeq_init_vals[ridx].rdata[vsel]; rdata 86 drivers/md/dm-log-userspace-base.c char *rdata, size_t *rdata_size) rdata 97 drivers/md/dm-log-userspace-base.c data_size, rdata, rdata_size); rdata 197 drivers/md/dm-log-userspace-base.c uint64_t rdata; rdata 198 drivers/md/dm-log-userspace-base.c size_t rdata_size = sizeof(rdata); rdata 275 drivers/md/dm-log-userspace-base.c rdata_size = sizeof(rdata); rdata 277 drivers/md/dm-log-userspace-base.c NULL, 0, (char *)&rdata, &rdata_size); rdata 284 drivers/md/dm-log-userspace-base.c lc->region_size = (uint32_t)rdata; rdata 172 drivers/md/dm-log-userspace-transfer.c char *rdata, size_t *rdata_size) rdata 221 drivers/md/dm-log-userspace-transfer.c pkg.data = rdata; rdata 16 drivers/md/dm-log-userspace-transfer.h char *rdata, size_t *rdata_size); rdata 203 drivers/media/dvb-frontends/ascot2e.c u8 rdata; rdata 206 drivers/media/dvb-frontends/ascot2e.c res = ascot2e_read_reg(priv, reg, &rdata); rdata 209 drivers/media/dvb-frontends/ascot2e.c data = ((data & mask) | (rdata & (mask ^ 0xFF))); rdata 300 drivers/media/dvb-frontends/cxd2841er.c u8 rdata; rdata 303 drivers/media/dvb-frontends/cxd2841er.c res = cxd2841er_read_reg(priv, addr, reg, &rdata); rdata 306 drivers/media/dvb-frontends/cxd2841er.c data = ((data & mask) | (rdata & (mask ^ 0xFF))); rdata 35 drivers/media/dvb-frontends/cxd2880/cxd2880_io.c u8 rdata = 0x00; rdata 37 drivers/media/dvb-frontends/cxd2880/cxd2880_io.c ret = io->read_regs(io, tgt, sub_address, &rdata, 1); rdata 41 drivers/media/dvb-frontends/cxd2880/cxd2880_io.c data = (data & mask) | (rdata & (mask ^ 0xff)); rdata 29 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c u8 rdata = 0x00; rdata 48 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c 0x10, &rdata, 1); rdata 52 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c *unlock_detected = (rdata & 0x10) ? 1 : 0; rdata 53 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c *sync_stat = rdata & 0x07; rdata 54 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c *ts_lock_stat = (rdata & 0x20) ? 1 : 0; rdata 87 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c u8 rdata = 0x00; rdata 125 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c 0x1b, &rdata, 1); rdata 133 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c *mode = (enum cxd2880_dvbt_mode)((rdata >> 2) & 0x03); rdata 134 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c *guard = (enum cxd2880_dvbt_guard)(rdata & 0x03); rdata 142 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c u8 rdata[4]; rdata 175 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c 0x1d, rdata, 4); rdata 184 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c ((rdata[0] & 0x1f) << 24) | (rdata[1] << 16) | (rdata[2] << 8) | rdata 185 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c (rdata[3]); rdata 212 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c u8 rdata[7]; rdata 251 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c 0x29, rdata, 7); rdata 276 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c (enum cxd2880_dvbt_constellation)((rdata[0] >> 6) & 0x03); rdata 277 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c info->hierarchy = (enum cxd2880_dvbt_hierarchy)((rdata[0] >> 3) & 0x07); rdata 278 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c info->rate_hp = (enum cxd2880_dvbt_coderate)(rdata[0] & 0x07); rdata 279 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c info->rate_lp = (enum cxd2880_dvbt_coderate)((rdata[1] >> 5) & 0x07); rdata 280 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c info->guard = (enum cxd2880_dvbt_guard)((rdata[1] >> 3) & 0x03); rdata 281 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c info->mode = (enum cxd2880_dvbt_mode)((rdata[1] >> 1) & 0x03); rdata 282 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c info->fnum = (rdata[2] >> 6) & 0x03; rdata 283 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c info->length_indicator = rdata[2] & 0x3f; rdata 284 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c info->cell_id = (rdata[3] << 8) | rdata[4]; rdata 285 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c info->reserved_even = rdata[5] & 0x3f; rdata 286 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c info->reserved_odd = rdata[6] & 0x3f; rdata 298 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c u8 rdata[3]; rdata 321 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c 0x26, rdata, 3); rdata 325 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c if (!(rdata[0] & 0x01)) rdata 328 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c *pen = (rdata[1] << 8) | rdata[2]; rdata 394 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c u8 rdata[2]; rdata 420 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c 0x13, rdata, 2); rdata 428 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c *reg_value = (rdata[0] << 8) | rdata[1]; rdata 20 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_mon.c u8 rdata[2]; rdata 63 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_mon.c 0x15, rdata, 2); rdata 67 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_mon.c if (rdata[0] || rdata[1]) rdata 72 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_mon.c 0x11, rdata, 2); rdata 77 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_mon.c cxd2880_convert2s_complement((rdata[0] << 3) | rdata 78 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_mon.c ((rdata[1] & 0xe0) >> 5), 11); rdata 48 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c u8 rdata[2]; rdata 77 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c 0x39, rdata, 1); rdata 83 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c if ((rdata[0] & 0x01) == 0) { rdata 90 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c 0x22, rdata, 2); rdata 96 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c *pre_bit_err = (rdata[0] << 8) | rdata[1]; rdata 100 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c 0x6f, rdata, 1); rdata 108 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c *pre_bit_count = ((rdata[0] & 0x07) == 0) ? rdata 109 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c 256 : (0x1000 << (rdata[0] & 0x07)); rdata 200 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c u8 rdata[3]; rdata 225 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c 0x15, rdata, 3); rdata 229 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c if ((rdata[0] & 0x40) == 0) rdata 232 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c *post_bit_err = ((rdata[0] & 0x3f) << 16) | (rdata[1] << 8) | rdata[2]; rdata 242 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c 0x60, rdata, 1); rdata 246 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c period_exp = (rdata[0] & 0x1f); rdata 368 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c u8 rdata[3]; rdata 391 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c 0x18, rdata, 3); rdata 395 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c if ((rdata[0] & 0x01) == 0) rdata 398 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c *block_err = (rdata[1] << 8) | rdata[2]; rdata 408 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c 0x5c, rdata, 1); rdata 412 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c *block_count = 1U << (rdata[0] & 0x0f); rdata 424 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c u8 rdata[3]; rdata 446 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c 0x18, rdata, 3); rdata 450 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c if ((rdata[0] & 0x01) == 0) rdata 453 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c *block_err = (rdata[1] << 8) | rdata[2]; rdata 463 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c 0xdc, rdata, 1); rdata 467 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c *block_count = 1U << (rdata[0] & 0x0f); rdata 1745 drivers/media/dvb-frontends/drx39xyj/drx_driver.h u8 *rdata); /* data to read */ rdata 1764 drivers/media/dvb-frontends/drx39xyj/drx_driver.h u16 *rdata); /* data to read */ rdata 1783 drivers/media/dvb-frontends/drx39xyj/drx_driver.h u32 *rdata); /* data to read */ rdata 542 drivers/media/dvb-frontends/drx39xyj/drxj.c u16 wdata, u16 *rdata); rdata 1765 drivers/media/dvb-frontends/drx39xyj/drxj.c u16 wdata, u16 *rdata) rdata 1770 drivers/media/dvb-frontends/drx39xyj/drxj.c if (rdata == NULL) rdata 1775 drivers/media/dvb-frontends/drx39xyj/drxj.c rc = drxdap_fasi_read_reg16(dev_addr, raddr, rdata, 0); rdata 1838 drivers/media/dvb-frontends/drx39xyj/drxj.c u16 wdata, u16 *rdata) rdata 1842 drivers/media/dvb-frontends/drx39xyj/drxj.c if (rdata == NULL) rdata 1857 drivers/media/dvb-frontends/drx39xyj/drxj.c rc = drxdap_fasi_read_reg16(dev_addr, raddr, rdata, rdata 1876 drivers/media/dvb-frontends/drx39xyj/drxj.c u16 wdata, u16 *rdata) rdata 1884 drivers/media/dvb-frontends/drx39xyj/drxj.c raddr, wdata, rdata); rdata 1886 drivers/media/dvb-frontends/drx39xyj/drxj.c return drxj_dap_rm_write_reg16short(dev_addr, waddr, raddr, wdata, rdata); rdata 379 drivers/media/dvb-frontends/helene.c u8 rdata; rdata 382 drivers/media/dvb-frontends/helene.c res = helene_read_reg(priv, reg, &rdata); rdata 385 drivers/media/dvb-frontends/helene.c data = ((data & mask) | (rdata & (mask ^ 0xFF))); rdata 904 drivers/media/dvb-frontends/helene.c u8 rdata[2]; rdata 955 drivers/media/dvb-frontends/helene.c helene_read_regs(priv, 0x1A, rdata, sizeof(rdata)); rdata 957 drivers/media/dvb-frontends/helene.c if (rdata[0] != 0x00) { rdata 959 drivers/media/dvb-frontends/helene.c "HELENE tuner CPU error 0x%x\n", rdata[0]); rdata 110 drivers/media/radio/tea575x.c u16 l, rdata; rdata 128 drivers/media/radio/tea575x.c rdata = tea->ops->get_pins(tea); rdata 130 drivers/media/radio/tea575x.c tea->stereo = (rdata & TEA575X_MOST) ? 0 : 1; rdata 131 drivers/media/radio/tea575x.c if (rdata & TEA575X_DATA) rdata 318 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c u8 index, u8 *wdata, u8 *rdata) rdata 321 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c &wdata[1], 25, rdata, 24); rdata 166 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c u8 *rdata, rdata 169 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c if (!rdata) rlen = 0; rdata 172 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c return pvr2_i2c_read(hdw,i2c_addr,wdata,wlen,rdata,rlen); rdata 186 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) rdata 207 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c if (rlen > 0) rdata[0] = 0; rdata 208 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c if (rlen > 1) rdata[1] = 0; rdata 229 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c rdata[2] = 0xc1; rdata 232 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c rdata[0] = 0; rdata 233 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c rdata[1] = 0; rdata 244 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c rdata[0] = (val >> 8) & 0xffu; rdata 245 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c rdata[1] = val & 0xffu; rdata 256 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) rdata 262 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c return pvr2_i2c_basic_op(hdw,i2c_addr,wdata,wlen,rdata,rlen); rdata 269 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) rdata 282 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) rdata 297 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c return pvr2_i2c_basic_op(hdw,i2c_addr,wdata,wlen,rdata,rlen); rdata 332 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c ret = pvr2_i2c_basic_op(hdw,i2c_addr,wbuf,2,rdata,rlen); rdata 334 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c if ((ret != 0) || (*rdata == 0x04) || (*rdata == 0x0a)) { rdata 125 drivers/net/ethernet/amd/xgbe/xgbe-desc.c struct xgbe_ring_data *rdata; rdata 131 drivers/net/ethernet/amd/xgbe/xgbe-desc.c if (ring->rdata) { rdata 133 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata = XGBE_GET_DESC_DATA(ring, i); rdata 134 drivers/net/ethernet/amd/xgbe/xgbe-desc.c xgbe_unmap_rdata(pdata, rdata); rdata 137 drivers/net/ethernet/amd/xgbe/xgbe-desc.c kfree(ring->rdata); rdata 138 drivers/net/ethernet/amd/xgbe/xgbe-desc.c ring->rdata = NULL; rdata 235 drivers/net/ethernet/amd/xgbe/xgbe-desc.c ring->rdata = xgbe_alloc_node(size, ring->node); rdata 236 drivers/net/ethernet/amd/xgbe/xgbe-desc.c if (!ring->rdata) rdata 241 drivers/net/ethernet/amd/xgbe/xgbe-desc.c ring->rdesc, &ring->rdesc_dma, ring->rdata, ring->node); rdata 358 drivers/net/ethernet/amd/xgbe/xgbe-desc.c struct xgbe_ring_data *rdata) rdata 376 drivers/net/ethernet/amd/xgbe/xgbe-desc.c xgbe_set_buffer_data(&rdata->rx.hdr, &ring->rx_hdr_pa, rdata 380 drivers/net/ethernet/amd/xgbe/xgbe-desc.c xgbe_set_buffer_data(&rdata->rx.buf, &ring->rx_buf_pa, rdata 391 drivers/net/ethernet/amd/xgbe/xgbe-desc.c struct xgbe_ring_data *rdata; rdata 408 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata = XGBE_GET_DESC_DATA(ring, j); rdata 410 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata->rdesc = rdesc; rdata 411 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata->rdesc_dma = rdesc_dma; rdata 433 drivers/net/ethernet/amd/xgbe/xgbe-desc.c struct xgbe_ring_data *rdata; rdata 449 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata = XGBE_GET_DESC_DATA(ring, j); rdata 451 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata->rdesc = rdesc; rdata 452 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata->rdesc_dma = rdesc_dma; rdata 454 drivers/net/ethernet/amd/xgbe/xgbe-desc.c if (xgbe_map_rx_buffer(pdata, ring, rdata)) rdata 471 drivers/net/ethernet/amd/xgbe/xgbe-desc.c struct xgbe_ring_data *rdata) rdata 473 drivers/net/ethernet/amd/xgbe/xgbe-desc.c if (rdata->skb_dma) { rdata 474 drivers/net/ethernet/amd/xgbe/xgbe-desc.c if (rdata->mapped_as_page) { rdata 475 drivers/net/ethernet/amd/xgbe/xgbe-desc.c dma_unmap_page(pdata->dev, rdata->skb_dma, rdata 476 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata->skb_dma_len, DMA_TO_DEVICE); rdata 478 drivers/net/ethernet/amd/xgbe/xgbe-desc.c dma_unmap_single(pdata->dev, rdata->skb_dma, rdata 479 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata->skb_dma_len, DMA_TO_DEVICE); rdata 481 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata->skb_dma = 0; rdata 482 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata->skb_dma_len = 0; rdata 485 drivers/net/ethernet/amd/xgbe/xgbe-desc.c if (rdata->skb) { rdata 486 drivers/net/ethernet/amd/xgbe/xgbe-desc.c dev_kfree_skb_any(rdata->skb); rdata 487 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata->skb = NULL; rdata 490 drivers/net/ethernet/amd/xgbe/xgbe-desc.c if (rdata->rx.hdr.pa.pages) rdata 491 drivers/net/ethernet/amd/xgbe/xgbe-desc.c put_page(rdata->rx.hdr.pa.pages); rdata 493 drivers/net/ethernet/amd/xgbe/xgbe-desc.c if (rdata->rx.hdr.pa_unmap.pages) { rdata 494 drivers/net/ethernet/amd/xgbe/xgbe-desc.c dma_unmap_page(pdata->dev, rdata->rx.hdr.pa_unmap.pages_dma, rdata 495 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata->rx.hdr.pa_unmap.pages_len, rdata 497 drivers/net/ethernet/amd/xgbe/xgbe-desc.c put_page(rdata->rx.hdr.pa_unmap.pages); rdata 500 drivers/net/ethernet/amd/xgbe/xgbe-desc.c if (rdata->rx.buf.pa.pages) rdata 501 drivers/net/ethernet/amd/xgbe/xgbe-desc.c put_page(rdata->rx.buf.pa.pages); rdata 503 drivers/net/ethernet/amd/xgbe/xgbe-desc.c if (rdata->rx.buf.pa_unmap.pages) { rdata 504 drivers/net/ethernet/amd/xgbe/xgbe-desc.c dma_unmap_page(pdata->dev, rdata->rx.buf.pa_unmap.pages_dma, rdata 505 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata->rx.buf.pa_unmap.pages_len, rdata 507 drivers/net/ethernet/amd/xgbe/xgbe-desc.c put_page(rdata->rx.buf.pa_unmap.pages); rdata 510 drivers/net/ethernet/amd/xgbe/xgbe-desc.c memset(&rdata->tx, 0, sizeof(rdata->tx)); rdata 511 drivers/net/ethernet/amd/xgbe/xgbe-desc.c memset(&rdata->rx, 0, sizeof(rdata->rx)); rdata 513 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata->mapped_as_page = 0; rdata 515 drivers/net/ethernet/amd/xgbe/xgbe-desc.c if (rdata->state_saved) { rdata 516 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata->state_saved = 0; rdata 517 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata->state.skb = NULL; rdata 518 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata->state.len = 0; rdata 519 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata->state.error = 0; rdata 527 drivers/net/ethernet/amd/xgbe/xgbe-desc.c struct xgbe_ring_data *rdata; rdata 554 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata = XGBE_GET_DESC_DATA(ring, cur_index); rdata 564 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata->skb_dma = skb_dma; rdata 565 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata->skb_dma_len = packet->header_len; rdata 575 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata = XGBE_GET_DESC_DATA(ring, cur_index); rdata 588 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata->skb_dma = skb_dma; rdata 589 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata->skb_dma_len = len; rdata 600 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata = XGBE_GET_DESC_DATA(ring, cur_index); rdata 621 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata->skb_dma = skb_dma; rdata 622 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata->skb_dma_len = len; rdata 623 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata->mapped_as_page = 1; rdata 634 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata = XGBE_GET_DESC_DATA(ring, cur_index); rdata 642 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata = XGBE_GET_DESC_DATA(ring, cur_index - 1); rdata 643 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata->skb = skb; rdata 654 drivers/net/ethernet/amd/xgbe/xgbe-desc.c rdata = XGBE_GET_DESC_DATA(ring, start_index++); rdata 655 drivers/net/ethernet/amd/xgbe/xgbe-desc.c xgbe_unmap_rdata(pdata, rdata); rdata 1389 drivers/net/ethernet/amd/xgbe/xgbe-dev.c static void xgbe_tx_desc_reset(struct xgbe_ring_data *rdata) rdata 1391 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct xgbe_ring_desc *rdesc = rdata->rdesc; rdata 1411 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct xgbe_ring_data *rdata; rdata 1419 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdata = XGBE_GET_DESC_DATA(ring, i); rdata 1422 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_tx_desc_reset(rdata); rdata 1429 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdata = XGBE_GET_DESC_DATA(ring, start_index); rdata 1431 drivers/net/ethernet/amd/xgbe/xgbe-dev.c upper_32_bits(rdata->rdesc_dma)); rdata 1433 drivers/net/ethernet/amd/xgbe/xgbe-dev.c lower_32_bits(rdata->rdesc_dma)); rdata 1439 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct xgbe_ring_data *rdata, unsigned int index) rdata 1441 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct xgbe_ring_desc *rdesc = rdata->rdesc; rdata 1465 drivers/net/ethernet/amd/xgbe/xgbe-dev.c hdr_dma = rdata->rx.hdr.dma_base + rdata->rx.hdr.dma_off; rdata 1466 drivers/net/ethernet/amd/xgbe/xgbe-dev.c buf_dma = rdata->rx.buf.dma_base + rdata->rx.buf.dma_off; rdata 1490 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct xgbe_ring_data *rdata; rdata 1498 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdata = XGBE_GET_DESC_DATA(ring, i); rdata 1501 drivers/net/ethernet/amd/xgbe/xgbe-dev.c xgbe_rx_desc_reset(pdata, rdata, i); rdata 1508 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdata = XGBE_GET_DESC_DATA(ring, start_index); rdata 1510 drivers/net/ethernet/amd/xgbe/xgbe-dev.c upper_32_bits(rdata->rdesc_dma)); rdata 1512 drivers/net/ethernet/amd/xgbe/xgbe-dev.c lower_32_bits(rdata->rdesc_dma)); rdata 1515 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdata = XGBE_GET_DESC_DATA(ring, start_index + ring->rdesc_count - 1); rdata 1517 drivers/net/ethernet/amd/xgbe/xgbe-dev.c lower_32_bits(rdata->rdesc_dma)); rdata 1645 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct xgbe_ring_data *rdata; rdata 1652 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdata = XGBE_GET_DESC_DATA(ring, ring->cur); rdata 1654 drivers/net/ethernet/amd/xgbe/xgbe-dev.c lower_32_bits(rdata->rdesc_dma)); rdata 1670 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct xgbe_ring_data *rdata; rdata 1725 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdata = XGBE_GET_DESC_DATA(ring, cur_index); rdata 1726 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdesc = rdata->rdesc; rdata 1771 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdata = XGBE_GET_DESC_DATA(ring, cur_index); rdata 1772 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdesc = rdata->rdesc; rdata 1776 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdesc->desc0 = cpu_to_le32(lower_32_bits(rdata->skb_dma)); rdata 1777 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdesc->desc1 = cpu_to_le32(upper_32_bits(rdata->skb_dma)); rdata 1781 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdata->skb_dma_len); rdata 1834 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdata = XGBE_GET_DESC_DATA(ring, cur_index); rdata 1835 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdesc = rdata->rdesc; rdata 1838 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdesc->desc0 = cpu_to_le32(lower_32_bits(rdata->skb_dma)); rdata 1839 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdesc->desc1 = cpu_to_le32(upper_32_bits(rdata->skb_dma)); rdata 1843 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdata->skb_dma_len); rdata 1865 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdata->tx.packets = tx_packets; rdata 1866 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdata->tx.bytes = tx_bytes; rdata 1878 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdata = XGBE_GET_DESC_DATA(ring, start_index); rdata 1879 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdesc = rdata->rdesc; rdata 1908 drivers/net/ethernet/amd/xgbe/xgbe-dev.c struct xgbe_ring_data *rdata; rdata 1916 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdata = XGBE_GET_DESC_DATA(ring, ring->cur); rdata 1917 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdesc = rdata->rdesc; rdata 1952 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdata->rx.hdr_len = XGMAC_GET_BITS_LE(rdesc->desc2, rdata 1954 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (rdata->rx.hdr_len) rdata 1990 drivers/net/ethernet/amd/xgbe/xgbe-dev.c rdata->rx.len = XGMAC_GET_BITS_LE(rdesc->desc3, RX_NORMAL_DESC3, PL); rdata 2056 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->ext_stats.rxq_bytes[channel->queue_index] += rdata->rx.len; rdata 1187 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_ring_data *rdata; rdata 1198 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdata = XGBE_GET_DESC_DATA(ring, j); rdata 1199 drivers/net/ethernet/amd/xgbe/xgbe-drv.c desc_if->unmap_rdata(pdata, rdata); rdata 1210 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_ring_data *rdata; rdata 1221 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdata = XGBE_GET_DESC_DATA(ring, j); rdata 1222 drivers/net/ethernet/amd/xgbe/xgbe-drv.c desc_if->unmap_rdata(pdata, rdata); rdata 2522 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_ring_data *rdata; rdata 2525 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdata = XGBE_GET_DESC_DATA(ring, ring->dirty); rdata 2528 drivers/net/ethernet/amd/xgbe/xgbe-drv.c desc_if->unmap_rdata(pdata, rdata); rdata 2530 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (desc_if->map_rx_buffer(pdata, ring, rdata)) rdata 2533 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_if->rx_desc_reset(pdata, rdata, ring->dirty); rdata 2543 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdata = XGBE_GET_DESC_DATA(ring, ring->dirty - 1); rdata 2545 drivers/net/ethernet/amd/xgbe/xgbe-drv.c lower_32_bits(rdata->rdesc_dma)); rdata 2550 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_ring_data *rdata, rdata 2556 drivers/net/ethernet/amd/xgbe/xgbe-drv.c skb = napi_alloc_skb(napi, rdata->rx.hdr.dma_len); rdata 2563 drivers/net/ethernet/amd/xgbe/xgbe-drv.c dma_sync_single_range_for_cpu(pdata->dev, rdata->rx.hdr.dma_base, rdata 2564 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdata->rx.hdr.dma_off, rdata 2565 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdata->rx.hdr.dma_len, DMA_FROM_DEVICE); rdata 2567 drivers/net/ethernet/amd/xgbe/xgbe-drv.c packet = page_address(rdata->rx.hdr.pa.pages) + rdata 2568 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdata->rx.hdr.pa.pages_offset; rdata 2575 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static unsigned int xgbe_rx_buf1_len(struct xgbe_ring_data *rdata, rdata 2583 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (rdata->rx.hdr_len) rdata 2584 drivers/net/ethernet/amd/xgbe/xgbe-drv.c return rdata->rx.hdr_len; rdata 2590 drivers/net/ethernet/amd/xgbe/xgbe-drv.c return rdata->rx.hdr.dma_len; rdata 2595 drivers/net/ethernet/amd/xgbe/xgbe-drv.c return min_t(unsigned int, rdata->rx.hdr.dma_len, rdata->rx.len); rdata 2598 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static unsigned int xgbe_rx_buf2_len(struct xgbe_ring_data *rdata, rdata 2604 drivers/net/ethernet/amd/xgbe/xgbe-drv.c return rdata->rx.buf.dma_len; rdata 2609 drivers/net/ethernet/amd/xgbe/xgbe-drv.c return rdata->rx.len - len; rdata 2618 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_ring_data *rdata; rdata 2641 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdata = XGBE_GET_DESC_DATA(ring, ring->dirty); rdata 2642 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdesc = rdata->rdesc; rdata 2655 drivers/net/ethernet/amd/xgbe/xgbe-drv.c tx_packets += rdata->tx.packets; rdata 2656 drivers/net/ethernet/amd/xgbe/xgbe-drv.c tx_bytes += rdata->tx.bytes; rdata 2660 drivers/net/ethernet/amd/xgbe/xgbe-drv.c desc_if->unmap_rdata(pdata, rdata); rdata 2661 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_if->tx_desc_reset(rdata); rdata 2688 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_ring_data *rdata; rdata 2710 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdata = XGBE_GET_DESC_DATA(ring, ring->cur); rdata 2716 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (!received && rdata->state_saved) { rdata 2717 drivers/net/ethernet/amd/xgbe/xgbe-drv.c skb = rdata->state.skb; rdata 2718 drivers/net/ethernet/amd/xgbe/xgbe-drv.c error = rdata->state.error; rdata 2719 drivers/net/ethernet/amd/xgbe/xgbe-drv.c len = rdata->state.len; rdata 2728 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdata = XGBE_GET_DESC_DATA(ring, ring->cur); rdata 2762 drivers/net/ethernet/amd/xgbe/xgbe-drv.c buf1_len = xgbe_rx_buf1_len(rdata, packet); rdata 2764 drivers/net/ethernet/amd/xgbe/xgbe-drv.c buf2_len = xgbe_rx_buf2_len(rdata, packet, len); rdata 2768 drivers/net/ethernet/amd/xgbe/xgbe-drv.c skb = xgbe_create_skb(pdata, napi, rdata, rdata 2778 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdata->rx.buf.dma_base, rdata 2779 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdata->rx.buf.dma_off, rdata 2780 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdata->rx.buf.dma_len, rdata 2784 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdata->rx.buf.pa.pages, rdata 2785 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdata->rx.buf.pa.pages_offset, rdata 2787 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdata->rx.buf.dma_len); rdata 2788 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdata->rx.buf.pa.pages = NULL; rdata 2861 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdata = XGBE_GET_DESC_DATA(ring, ring->cur); rdata 2862 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdata->state_saved = 1; rdata 2863 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdata->state.skb = skb; rdata 2864 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdata->state.len = len; rdata 2865 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdata->state.error = error; rdata 2945 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_ring_data *rdata; rdata 2949 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdata = XGBE_GET_DESC_DATA(ring, idx); rdata 2950 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdesc = rdata->rdesc; rdata 2965 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_ring_data *rdata; rdata 2968 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdata = XGBE_GET_DESC_DATA(ring, idx); rdata 2969 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rdesc = rdata->rdesc; rdata 259 drivers/net/ethernet/amd/xgbe/xgbe.h ((_ring)->rdata + \ rdata 463 drivers/net/ethernet/amd/xgbe/xgbe.h struct xgbe_ring_data *rdata; rdata 6161 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c ramrod_param.rdata = bnx2x_sp(bp, rx_mode_rdata); rdata 888 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct eth_classify_rules_ramrod_data *)(raw->rdata); rdata 1049 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct mac_configuration_cmd *)(raw->rdata); rdata 1072 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct eth_classify_rules_ramrod_data *)(raw->rdata); rdata 1122 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct eth_classify_rules_ramrod_data *)(raw->rdata); rdata 1188 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct mac_configuration_cmd *)(raw->rdata); rdata 2095 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c u32 cid, u8 func_id, void *rdata, dma_addr_t rdata_mapping, int state, rdata 2101 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c raw->rdata = rdata; rdata 2113 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c u8 cl_id, u32 cid, u8 func_id, void *rdata, dma_addr_t rdata_mapping, rdata 2131 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_init_raw_obj(&o->raw, cl_id, cid, func_id, rdata, rdata_mapping, rdata 2137 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c u8 cl_id, u32 cid, u8 func_id, void *rdata, rdata 2144 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_init_vlan_mac_common(mac_obj, cl_id, cid, func_id, rdata, rdata 2191 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c u8 cl_id, u32 cid, u8 func_id, void *rdata, rdata 2198 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_init_vlan_mac_common(vlan_obj, cl_id, cid, func_id, rdata, rdata 2232 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c u8 cl_id, u32 cid, u8 func_id, void *rdata, rdata 2241 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_init_vlan_mac_common(vlan_mac_obj, cl_id, cid, func_id, rdata, rdata 2312 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct tstorm_eth_mac_filter_config *)p->rdata; rdata 2447 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct eth_filter_rules_ramrod_data *data = p->rdata; rdata 2835 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct eth_multicast_rules_ramrod_data *)(r->rdata); rdata 3335 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct eth_multicast_rules_ramrod_data *)(r->rdata); rdata 3378 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct eth_multicast_rules_ramrod_data *)(raw->rdata); rdata 3663 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct mac_configuration_cmd *)(r->rdata); rdata 3696 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct mac_configuration_cmd *)(r->rdata); rdata 3834 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct mac_configuration_cmd *)(raw->rdata); rdata 3882 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct mac_configuration_cmd *)(raw->rdata); rdata 4069 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c u8 engine_id, void *rdata, dma_addr_t rdata_mapping, rdata 4075 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata, rdata_mapping, state, pstate, type); rdata 4487 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct eth_rss_update_ramrod_data *)(r->rdata); rdata 4630 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c void *rdata, dma_addr_t rdata_mapping, rdata 4634 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_init_raw_obj(&rss_obj->raw, cl_id, cid, func_id, rdata, rdata 5051 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct client_init_ramrod_data *rdata = rdata 5052 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct client_init_ramrod_data *)o->rdata; rdata 5057 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c memset(rdata, 0, sizeof(*rdata)); rdata 5060 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_q_fill_setup_data_cmn(bp, params, rdata); rdata 5077 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct client_init_ramrod_data *rdata = rdata 5078 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct client_init_ramrod_data *)o->rdata; rdata 5083 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c memset(rdata, 0, sizeof(*rdata)); rdata 5086 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_q_fill_setup_data_cmn(bp, params, rdata); rdata 5087 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_q_fill_setup_data_e2(bp, params, rdata); rdata 5104 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct tx_queue_init_ramrod_data *rdata = rdata 5105 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct tx_queue_init_ramrod_data *)o->rdata; rdata 5123 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c memset(rdata, 0, sizeof(*rdata)); rdata 5126 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_q_fill_setup_tx_only(bp, params, rdata); rdata 5129 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->cids[cid_index], rdata->general.client_id, rdata 5130 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->general.sp_client_id, rdata->general.cos); rdata 5219 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct client_update_ramrod_data *rdata = rdata 5220 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct client_update_ramrod_data *)o->rdata; rdata 5233 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c memset(rdata, 0, sizeof(*rdata)); rdata 5236 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_q_fill_update_data(bp, o, update_params, rdata); rdata 5316 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct tpa_update_ramrod_data *rdata = rdata 5317 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct tpa_update_ramrod_data *)o->rdata; rdata 5324 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c memset(rdata, 0, sizeof(*rdata)); rdata 5327 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_q_fill_update_tpa_data(bp, o, update_tpa_params, rdata); rdata 5661 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c void *rdata, rdata 5673 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c obj->rdata = rdata; rdata 6139 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct function_start_data *rdata = rdata 6140 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct function_start_data *)o->rdata; rdata 6144 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c memset(rdata, 0, sizeof(*rdata)); rdata 6147 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->function_mode = (u8)start_params->mf_mode; rdata 6148 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->sd_vlan_tag = cpu_to_le16(start_params->sd_vlan_tag); rdata 6149 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->path_id = BP_PATH(bp); rdata 6150 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->network_cos_mode = start_params->network_cos_mode; rdata 6151 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->dmae_cmd_id = BNX2X_FW_DMAE_C; rdata 6153 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->vxlan_dst_port = cpu_to_le16(start_params->vxlan_dst_port); rdata 6154 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->geneve_dst_port = cpu_to_le16(start_params->geneve_dst_port); rdata 6155 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->inner_clss_l2gre = start_params->inner_clss_l2gre; rdata 6156 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->inner_clss_l2geneve = start_params->inner_clss_l2geneve; rdata 6157 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->inner_clss_vxlan = start_params->inner_clss_vxlan; rdata 6158 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->inner_rss = start_params->inner_rss; rdata 6160 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->sd_accept_mf_clss_fail = start_params->class_fail; rdata 6162 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->sd_accept_mf_clss_fail_match_ethtype = 1; rdata 6163 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->sd_accept_mf_clss_fail_ethtype = rdata 6167 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->sd_vlan_force_pri_flg = start_params->sd_vlan_force_pri; rdata 6168 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->sd_vlan_force_pri_val = start_params->sd_vlan_force_pri_val; rdata 6170 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->sd_vlan_eth_type = rdata 6173 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->sd_vlan_eth_type = rdata 6176 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->no_added_tags = start_params->no_added_tags; rdata 6178 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->c2s_pri_tt_valid = start_params->c2s_pri_valid; rdata 6179 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (rdata->c2s_pri_tt_valid) { rdata 6180 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c memcpy(rdata->c2s_pri_trans_table.val, rdata 6183 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->c2s_pri_default = start_params->c2s_pri_default; rdata 6201 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct function_update_data *rdata = rdata 6202 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct function_update_data *)o->rdata; rdata 6207 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c memset(rdata, 0, sizeof(*rdata)); rdata 6212 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->tx_switch_suspend_change_flg = 1; rdata 6213 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->tx_switch_suspend = rdata 6220 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->sd_vlan_tag_change_flg = 1; rdata 6221 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->sd_vlan_tag = rdata 6227 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->sd_vlan_eth_type_change_flg = 1; rdata 6228 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->sd_vlan_eth_type = rdata 6234 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->sd_vlan_force_pri_change_flg = 1; rdata 6237 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->sd_vlan_force_pri_flg = 1; rdata 6238 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->sd_vlan_force_pri_flg = rdata 6244 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->update_tunn_cfg_flg = 1; rdata 6247 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->inner_clss_l2gre = 1; rdata 6250 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->inner_clss_vxlan = 1; rdata 6253 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->inner_clss_l2geneve = 1; rdata 6256 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->inner_rss = 1; rdata 6257 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->vxlan_dst_port = rdata 6259 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->geneve_dst_port = rdata 6263 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->echo = SWITCH_UPDATE; rdata 6280 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct function_update_data *rdata = rdata 6286 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c memset(rdata, 0, sizeof(*rdata)); rdata 6289 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->vif_id_change_flg = 1; rdata 6290 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->vif_id = cpu_to_le16(afex_update_params->vif_id); rdata 6291 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->afex_default_vlan_change_flg = 1; rdata 6292 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->afex_default_vlan = rdata 6294 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->allowed_priorities_change_flg = 1; rdata 6295 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->allowed_priorities = afex_update_params->allowed_priorities; rdata 6296 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->echo = AFEX_UPDATE; rdata 6306 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->vif_id, rdata 6307 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->afex_default_vlan, rdata->allowed_priorities); rdata 6319 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct afex_vif_list_ramrod_data *rdata = rdata 6323 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c u64 *p_rdata = (u64 *)rdata; rdata 6325 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c memset(rdata, 0, sizeof(*rdata)); rdata 6328 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->vif_list_index = cpu_to_le16(afex_vif_params->vif_list_index); rdata 6329 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->func_bit_map = afex_vif_params->func_bit_map; rdata 6330 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->afex_vif_list_command = afex_vif_params->afex_vif_list_command; rdata 6331 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->func_to_clear = afex_vif_params->func_to_clear; rdata 6334 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->echo = afex_vif_params->afex_vif_list_command; rdata 6344 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->afex_vif_list_command, rdata->vif_list_index, rdata 6345 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->func_bit_map, rdata->func_to_clear); rdata 6370 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct flow_control_configuration *rdata = rdata 6371 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct flow_control_configuration *)o->rdata; rdata 6377 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c memset(rdata, 0, sizeof(*rdata)); rdata 6379 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->dcb_enabled = tx_start_params->dcb_enabled; rdata 6380 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->dcb_version = tx_start_params->dcb_version; rdata 6381 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->dont_add_pri_0_en = tx_start_params->dont_add_pri_0_en; rdata 6383 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c for (i = 0; i < ARRAY_SIZE(rdata->traffic_type_to_priority_cos); i++) rdata 6384 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->traffic_type_to_priority_cos[i] = rdata 6388 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->dcb_outer_pri[i] = tx_start_params->dcb_outer_pri[i]; rdata 6405 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct set_timesync_ramrod_data *rdata = rdata 6406 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct set_timesync_ramrod_data *)o->rdata; rdata 6411 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c memset(rdata, 0, sizeof(*rdata)); rdata 6414 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->drift_adjust_cmd = set_timesync_params->drift_adjust_cmd; rdata 6415 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->offset_cmd = set_timesync_params->offset_cmd; rdata 6416 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->add_sub_drift_adjust_value = rdata 6418 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->drift_adjust_value = set_timesync_params->drift_adjust_value; rdata 6419 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->drift_adjust_period = set_timesync_params->drift_adjust_period; rdata 6420 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->offset_delta.lo = rdata 6422 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->offset_delta.hi = rdata 6426 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->drift_adjust_cmd, rdata->offset_cmd, rdata 6427 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->add_sub_drift_adjust_value, rdata->drift_adjust_value, rdata 6428 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->drift_adjust_period, rdata->offset_delta.lo, rdata 6429 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rdata->offset_delta.hi); rdata 6468 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c void *rdata, dma_addr_t rdata_mapping, rdata 6476 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c obj->rdata = rdata; rdata 84 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h void *rdata; rdata 488 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h void *rdata; rdata 1078 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h void *rdata; rdata 1340 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h void *rdata; rdata 1392 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h void *rdata, dma_addr_t rdata_mapping, rdata 1404 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h u8 cid_cnt, u8 func_id, void *rdata, rdata 1416 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h u8 cl_id, u32 cid, u8 func_id, void *rdata, rdata 1423 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h u8 cl_id, u32 cid, u8 func_id, void *rdata, rdata 1430 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h u8 cl_id, u32 cid, u8 func_id, void *rdata, rdata 1471 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h u8 engine_id, void *rdata, dma_addr_t rdata_mapping, rdata 1513 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h void *rdata, dma_addr_t rdata_mapping, rdata 629 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c ramrod->rdata = bnx2x_vf_sp(bp, vf, rx_mode_rdata.e2); rdata 46 drivers/net/ethernet/cavium/liquidio/octeon_nic.h void *rdata; rdata 89 drivers/net/ethernet/qlogic/qed/qed_roce.c union rdma_eqe_data rdata = data->rdma_data; rdata 92 drivers/net/ethernet/qlogic/qed/qed_roce.c (void *)&rdata.async_handle); rdata 50 drivers/net/usb/cx82310_eth.c u8 *wdata, int wlen, u8 *rdata, int rlen) rdata 109 drivers/net/usb/cx82310_eth.c if (rdata) rdata 110 drivers/net/usb/cx82310_eth.c memcpy(rdata, buf + 4, rdata 459 drivers/phy/rockchip/phy-rockchip-typec.c u32 i, rdata; rdata 476 drivers/phy/rockchip/phy-rockchip-typec.c rdata = readl(tcphy->base + CMN_DIAG_HSCLK_SEL); rdata 477 drivers/phy/rockchip/phy-rockchip-typec.c rdata &= ~CLK_PLL_MASK; rdata 478 drivers/phy/rockchip/phy-rockchip-typec.c rdata |= CLK_PLL_CONFIG; rdata 479 drivers/phy/rockchip/phy-rockchip-typec.c writel(rdata, tcphy->base + CMN_DIAG_HSCLK_SEL); rdata 531 drivers/phy/rockchip/phy-rockchip-typec.c u16 rdata; rdata 555 drivers/phy/rockchip/phy-rockchip-typec.c rdata = readl(tcphy->base + XCVR_DIAG_PLLDRC_CTRL(lane)); rdata 556 drivers/phy/rockchip/phy-rockchip-typec.c rdata = (rdata & 0x8fff) | 0x6000; rdata 557 drivers/phy/rockchip/phy-rockchip-typec.c writel(rdata, tcphy->base + XCVR_DIAG_PLLDRC_CTRL(lane)); rdata 45 drivers/pinctrl/spear/pinctrl-plgpio.c u32 rdata; /* read data register */ rdata 174 drivers/pinctrl/spear/pinctrl-plgpio.c return is_plgpio_set(plgpio->base, offset, plgpio->regs.rdata); rdata 492 drivers/pinctrl/spear/pinctrl-plgpio.c plgpio->regs.rdata = val; rdata 160 drivers/platform/x86/msi-laptop.c u8 wdata = 0, rdata; rdata 164 drivers/platform/x86/msi-laptop.c &rdata, 1); rdata 168 drivers/platform/x86/msi-laptop.c return (int) rdata / 31; rdata 173 drivers/platform/x86/msi-laptop.c u8 wdata = 4, rdata; rdata 177 drivers/platform/x86/msi-laptop.c &rdata, 1); rdata 181 drivers/platform/x86/msi-laptop.c return !!(rdata & 8); rdata 186 drivers/platform/x86/msi-laptop.c u8 wdata[2], rdata; rdata 192 drivers/platform/x86/msi-laptop.c &rdata, 1); rdata 197 drivers/platform/x86/msi-laptop.c wdata[1] = (rdata & 0xF7) | (enable ? 8 : 0); rdata 206 drivers/platform/x86/msi-laptop.c u8 wdata = 0, rdata; rdata 216 drivers/platform/x86/msi-laptop.c result = ec_read(MSI_STANDARD_EC_COMMAND_ADDRESS, &rdata); rdata 220 drivers/platform/x86/msi-laptop.c if (!!(rdata & mask) != status) { rdata 222 drivers/platform/x86/msi-laptop.c if (rdata & mask) rdata 223 drivers/platform/x86/msi-laptop.c wdata = rdata & ~mask; rdata 225 drivers/platform/x86/msi-laptop.c wdata = rdata | mask; rdata 237 drivers/platform/x86/msi-laptop.c u8 wdata = 0, rdata; rdata 240 drivers/platform/x86/msi-laptop.c result = ec_transaction(MSI_EC_COMMAND_WIRELESS, &wdata, 1, &rdata, 1); rdata 245 drivers/platform/x86/msi-laptop.c *wlan = !!(rdata & 8); rdata 248 drivers/platform/x86/msi-laptop.c *bluetooth = !!(rdata & 128); rdata 255 drivers/platform/x86/msi-laptop.c u8 rdata; rdata 258 drivers/platform/x86/msi-laptop.c result = ec_read(MSI_STANDARD_EC_COMMAND_ADDRESS, &rdata); rdata 262 drivers/platform/x86/msi-laptop.c wlan_s = !!(rdata & MSI_STANDARD_EC_WLAN_MASK); rdata 264 drivers/platform/x86/msi-laptop.c bluetooth_s = !!(rdata & MSI_STANDARD_EC_BLUETOOTH_MASK); rdata 266 drivers/platform/x86/msi-laptop.c threeg_s = !!(rdata & MSI_STANDARD_EC_3G_MASK); rdata 273 drivers/platform/x86/msi-laptop.c u8 rdata; rdata 276 drivers/platform/x86/msi-laptop.c result = ec_read(MSI_STANDARD_EC_DEVICES_EXISTS_ADDRESS, &rdata); rdata 280 drivers/platform/x86/msi-laptop.c threeg_exists = !!(rdata & MSI_STANDARD_EC_3G_MASK); rdata 441 drivers/platform/x86/msi-laptop.c u8 rdata; rdata 444 drivers/platform/x86/msi-laptop.c result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); rdata 448 drivers/platform/x86/msi-laptop.c return sprintf(buf, "%i\n", !!(rdata & MSI_STANDARD_EC_TOUCHPAD_MASK)); rdata 455 drivers/platform/x86/msi-laptop.c u8 rdata; rdata 458 drivers/platform/x86/msi-laptop.c result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); rdata 462 drivers/platform/x86/msi-laptop.c return sprintf(buf, "%i\n", !!(rdata & MSI_STANDARD_EC_TURBO_MASK)); rdata 469 drivers/platform/x86/msi-laptop.c u8 rdata; rdata 472 drivers/platform/x86/msi-laptop.c result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); rdata 476 drivers/platform/x86/msi-laptop.c return sprintf(buf, "%i\n", !!(rdata & MSI_STANDARD_EC_ECO_MASK)); rdata 483 drivers/platform/x86/msi-laptop.c u8 rdata; rdata 486 drivers/platform/x86/msi-laptop.c result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); rdata 490 drivers/platform/x86/msi-laptop.c return sprintf(buf, "%i\n", (!!(rdata & MSI_STANDARD_EC_TURBO_MASK)) | rdata 491 drivers/platform/x86/msi-laptop.c (!!(rdata & MSI_STANDARD_EC_TURBO_COOLDOWN_MASK) << 1)); rdata 498 drivers/platform/x86/msi-laptop.c u8 rdata; rdata 501 drivers/platform/x86/msi-laptop.c result = ec_read(MSI_STANDARD_EC_FAN_ADDRESS, &rdata); rdata 505 drivers/platform/x86/msi-laptop.c return sprintf(buf, "%i\n", !!(rdata & MSI_STANDARD_EC_AUTOFAN_MASK)); rdata 792 drivers/platform/x86/msi-laptop.c u8 rdata; rdata 795 drivers/platform/x86/msi-laptop.c result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); rdata 800 drivers/platform/x86/msi-laptop.c (rdata & MSI_STANDARD_EC_TOUCHPAD_MASK) ? rdata 749 drivers/regulator/act8865-regulator.c struct act8865_regulator_data *rdata; rdata 751 drivers/regulator/act8865-regulator.c rdata = act8865_get_regulator_data(desc->id, pdata); rdata 752 drivers/regulator/act8865-regulator.c if (rdata) { rdata 753 drivers/regulator/act8865-regulator.c config.init_data = rdata->init_data; rdata 754 drivers/regulator/act8865-regulator.c config.of_node = rdata->of_node; rdata 666 drivers/regulator/da9063-regulator.c struct da9063_regulator_data *rdata; rdata 704 drivers/regulator/da9063-regulator.c rdata = &pdata->regulator_data[n]; rdata 705 drivers/regulator/da9063-regulator.c rdata->id = i; rdata 706 drivers/regulator/da9063-regulator.c rdata->initdata = da9063_matches[i].init_data; rdata 899 drivers/regulator/max8997-regulator.c struct max8997_regulator_data *rdata; rdata 917 drivers/regulator/max8997-regulator.c rdata = devm_kcalloc(&pdev->dev, rdata 918 drivers/regulator/max8997-regulator.c pdata->num_regulators, sizeof(*rdata), rdata 920 drivers/regulator/max8997-regulator.c if (!rdata) { rdata 925 drivers/regulator/max8997-regulator.c pdata->regulators = rdata; rdata 937 drivers/regulator/max8997-regulator.c rdata->id = i; rdata 938 drivers/regulator/max8997-regulator.c rdata->initdata = of_get_regulator_init_data(&pdev->dev, rdata 941 drivers/regulator/max8997-regulator.c rdata->reg_node = reg_np; rdata 942 drivers/regulator/max8997-regulator.c rdata++; rdata 472 drivers/regulator/max8998.c struct max8998_regulator_data *rdata; rdata 485 drivers/regulator/max8998.c rdata = devm_kcalloc(iodev->dev, rdata 486 drivers/regulator/max8998.c pdata->num_regulators, sizeof(*rdata), rdata 488 drivers/regulator/max8998.c if (!rdata) { rdata 493 drivers/regulator/max8998.c pdata->regulators = rdata; rdata 500 drivers/regulator/max8998.c rdata->id = regulators[i].id; rdata 501 drivers/regulator/max8998.c rdata->initdata = of_get_regulator_init_data(iodev->dev, rdata 504 drivers/regulator/max8998.c rdata->reg_node = reg_np; rdata 505 drivers/regulator/max8998.c ++rdata; rdata 507 drivers/regulator/max8998.c pdata->num_regulators = rdata - pdata->regulators; rdata 834 drivers/regulator/s2mps11.c struct of_regulator_match *rdata, struct s2mps11_info *s2mps11) rdata 844 drivers/regulator/s2mps11.c if (!rdata[reg].init_data || !rdata[reg].of_node) rdata 848 drivers/regulator/s2mps11.c rdata[reg].of_node, rdata 857 drivers/regulator/s2mps11.c reg, rdata[reg].name); rdata 863 drivers/regulator/s2mps11.c reg, rdata[reg].name); rdata 868 drivers/regulator/s2mps11.c struct of_regulator_match *rdata, struct s2mps11_info *s2mps11, rdata 879 drivers/regulator/s2mps11.c of_regulator_match(&pdev->dev, reg_np, rdata, rdev_num); rdata 881 drivers/regulator/s2mps11.c s2mps14_pmic_dt_parse_ext_control_gpio(pdev, rdata, s2mps11); rdata 1125 drivers/regulator/s2mps11.c struct of_regulator_match *rdata = NULL; rdata 1186 drivers/regulator/s2mps11.c rdata = kcalloc(rdev_num, sizeof(*rdata), GFP_KERNEL); rdata 1187 drivers/regulator/s2mps11.c if (!rdata) rdata 1191 drivers/regulator/s2mps11.c rdata[i].name = regulators[i].name; rdata 1193 drivers/regulator/s2mps11.c ret = s2mps11_pmic_dt_parse(pdev, rdata, s2mps11, rdev_num); rdata 1210 drivers/regulator/s2mps11.c config.init_data = rdata[i].init_data; rdata 1211 drivers/regulator/s2mps11.c config.of_node = rdata[i].of_node; rdata 1242 drivers/regulator/s2mps11.c kfree(rdata); rdata 428 drivers/regulator/s5m8767.c struct sec_regulator_data *rdata, rdata 433 drivers/regulator/s5m8767.c if (rdata->id != S5M8767_BUCK9) rdata 439 drivers/regulator/s5m8767.c if (opmode->id == rdata->id) { rdata 440 drivers/regulator/s5m8767.c mode = s5m8767_opmode_reg[rdata->id][opmode->mode]; rdata 447 drivers/regulator/s5m8767.c rdata->reg_node, mode); rdata 451 drivers/regulator/s5m8767.c if (!rdata->ext_control_gpiod) { rdata 454 drivers/regulator/s5m8767.c rdata->reg_node); rdata 458 drivers/regulator/s5m8767.c config->ena_gpiod = rdata->ext_control_gpiod; rdata 525 drivers/regulator/s5m8767.c struct sec_regulator_data *rdata; rdata 544 drivers/regulator/s5m8767.c rdata = devm_kcalloc(&pdev->dev, rdata 545 drivers/regulator/s5m8767.c pdata->num_regulators, sizeof(*rdata), rdata 547 drivers/regulator/s5m8767.c if (!rdata) rdata 556 drivers/regulator/s5m8767.c pdata->regulators = rdata; rdata 570 drivers/regulator/s5m8767.c rdata->ext_control_gpiod = devm_gpiod_get_from_of_node( rdata 577 drivers/regulator/s5m8767.c if (PTR_ERR(rdata->ext_control_gpiod) == -ENOENT) rdata 578 drivers/regulator/s5m8767.c rdata->ext_control_gpiod = NULL; rdata 579 drivers/regulator/s5m8767.c else if (IS_ERR(rdata->ext_control_gpiod)) rdata 580 drivers/regulator/s5m8767.c return PTR_ERR(rdata->ext_control_gpiod); rdata 582 drivers/regulator/s5m8767.c rdata->id = i; rdata 583 drivers/regulator/s5m8767.c rdata->initdata = of_get_regulator_init_data( rdata 586 drivers/regulator/s5m8767.c rdata->reg_node = reg_np; rdata 587 drivers/regulator/s5m8767.c rdata++; rdata 28 drivers/reset/reset-uniphier-glue.c struct reset_simple_data rdata; rdata 52 drivers/reset/reset-uniphier-glue.c priv->rdata.membase = devm_ioremap_resource(dev, res); rdata 53 drivers/reset/reset-uniphier-glue.c if (IS_ERR(priv->rdata.membase)) rdata 54 drivers/reset/reset-uniphier-glue.c return PTR_ERR(priv->rdata.membase); rdata 79 drivers/reset/reset-uniphier-glue.c spin_lock_init(&priv->rdata.lock); rdata 80 drivers/reset/reset-uniphier-glue.c priv->rdata.rcdev.owner = THIS_MODULE; rdata 81 drivers/reset/reset-uniphier-glue.c priv->rdata.rcdev.nr_resets = size * BITS_PER_BYTE; rdata 82 drivers/reset/reset-uniphier-glue.c priv->rdata.rcdev.ops = &reset_simple_ops; rdata 83 drivers/reset/reset-uniphier-glue.c priv->rdata.rcdev.of_node = dev->of_node; rdata 84 drivers/reset/reset-uniphier-glue.c priv->rdata.active_low = true; rdata 88 drivers/reset/reset-uniphier-glue.c ret = devm_reset_controller_register(dev, &priv->rdata.rcdev); rdata 176 drivers/rtc/rtc-x1205.c unsigned char rdata[10] = { 0, reg_base }; rdata 177 drivers/rtc/rtc-x1205.c unsigned char *buf = rdata + 2; rdata 226 drivers/rtc/rtc-x1205.c xfer = i2c_master_send(client, rdata, sizeof(rdata)); rdata 227 drivers/rtc/rtc-x1205.c if (xfer != sizeof(rdata)) { rdata 231 drivers/rtc/rtc-x1205.c xfer, rdata[1], rdata[2]); rdata 3815 drivers/s390/block/dasd_eckd.c struct format_data_t *rdata) rdata 3817 drivers/s390/block/dasd_eckd.c if (rdata->intensity & DASD_FMT_INT_ESE_FULL) rdata 3819 drivers/s390/block/dasd_eckd.c else if (rdata->intensity == 0) rdata 3820 drivers/s390/block/dasd_eckd.c return dasd_eckd_release_space_trks(device, rdata->start_unit, rdata 3821 drivers/s390/block/dasd_eckd.c rdata->stop_unit); rdata 337 drivers/s390/block/dasd_ioctl.c struct format_data_t *rdata) rdata 344 drivers/s390/block/dasd_ioctl.c return device->discipline->release_space(device, rdata); rdata 352 drivers/s390/block/dasd_ioctl.c struct format_data_t rdata; rdata 376 drivers/s390/block/dasd_ioctl.c if (copy_from_user(&rdata, argp, sizeof(rdata))) { rdata 381 drivers/s390/block/dasd_ioctl.c rc = dasd_release_space(base, &rdata); rdata 293 drivers/scsi/bnx2fc/bnx2fc.h struct fc_rport_priv *rdata; rdata 75 drivers/scsi/bnx2fc/bnx2fc_els.c lport = tgt->rdata->local_port; rdata 187 drivers/scsi/bnx2fc/bnx2fc_els.c struct fc_lport *lport = tgt->rdata->local_port; rdata 215 drivers/scsi/bnx2fc/bnx2fc_els.c struct fc_lport *lport = tgt->rdata->local_port; rdata 243 drivers/scsi/bnx2fc/bnx2fc_els.c struct fc_lport *lport = tgt->rdata->local_port; rdata 586 drivers/scsi/bnx2fc/bnx2fc_els.c struct fc_lport *lport = tgt->rdata->local_port; rdata 628 drivers/scsi/bnx2fc/bnx2fc_els.c struct fc_lport *lport = tgt->rdata->local_port; rdata 217 drivers/scsi/bnx2fc/bnx2fc_fcoe.c struct fc_rport_priv *rdata = tgt->rdata; rdata 223 drivers/scsi/bnx2fc/bnx2fc_fcoe.c "r_ctl = 0x%x\n", rdata->ids.port_id, rdata 183 drivers/scsi/bnx2fc/bnx2fc_hwi.c struct fc_rport_priv *rdata = tgt->rdata; rdata 221 drivers/scsi/bnx2fc/bnx2fc_hwi.c ofld_req2.tx_max_fc_pay_len = rdata->maxframe_size; rdata 264 drivers/scsi/bnx2fc/bnx2fc_hwi.c ofld_req3.tx_total_conc_seqs = rdata->max_seq; rdata 266 drivers/scsi/bnx2fc/bnx2fc_hwi.c ofld_req3.tx_max_conc_seqs_c3 = rdata->max_seq; rdata 283 drivers/scsi/bnx2fc/bnx2fc_hwi.c ofld_req3.flags |= (((rdata->sp_features & FC_SP_FT_EDTR) ? 1 : 0) << rdata 286 drivers/scsi/bnx2fc/bnx2fc_hwi.c ofld_req3.flags |= (((rdata->sp_features & FC_SP_FT_SEQC) ? 1 : 0) << rdata 296 drivers/scsi/bnx2fc/bnx2fc_hwi.c ofld_req3.flags |= (((rdata->flags & FC_RP_FLAGS_REC_SUPPORTED) rdata 826 drivers/scsi/bnx2fc/bnx2fc_io.c struct fc_rport_priv *rdata = tgt->rdata; rdata 838 drivers/scsi/bnx2fc/bnx2fc_io.c u32 r_a_tov = rdata->r_a_tov; rdata 21 drivers/scsi/bnx2fc/bnx2fc_tgt.c struct fc_rport_priv *rdata); rdata 82 drivers/scsi/bnx2fc/bnx2fc_tgt.c struct fc_rport_priv *rdata) rdata 84 drivers/scsi/bnx2fc/bnx2fc_tgt.c struct fc_rport *rport = rdata->rport; rdata 92 drivers/scsi/bnx2fc/bnx2fc_tgt.c rval = bnx2fc_init_tgt(tgt, port, rdata); rdata 163 drivers/scsi/bnx2fc/bnx2fc_tgt.c fc_rport_logoff(rdata); rdata 272 drivers/scsi/bnx2fc/bnx2fc_tgt.c tgt->rdata->ids.port_id, tgt->num_active_ios.counter); rdata 352 drivers/scsi/bnx2fc/bnx2fc_tgt.c struct fc_rport_priv *rdata) rdata 355 drivers/scsi/bnx2fc/bnx2fc_tgt.c struct fc_rport *rport = rdata->rport; rdata 362 drivers/scsi/bnx2fc/bnx2fc_tgt.c tgt->rdata = rdata; rdata 392 drivers/scsi/bnx2fc/bnx2fc_tgt.c if (rdata->flags & FC_RP_FLAGS_RETRY && rdata 393 drivers/scsi/bnx2fc/bnx2fc_tgt.c rdata->ids.roles & FC_RPORT_ROLE_FCP_TARGET && rdata 394 drivers/scsi/bnx2fc/bnx2fc_tgt.c !(rdata->ids.roles & FC_RPORT_ROLE_FCP_INITIATOR)) { rdata 440 drivers/scsi/bnx2fc/bnx2fc_tgt.c struct fc_rport_priv *rdata, rdata 446 drivers/scsi/bnx2fc/bnx2fc_tgt.c struct fc_rport *rport = rdata->rport; rdata 452 drivers/scsi/bnx2fc/bnx2fc_tgt.c event, rdata->ids.port_id); rdata 469 drivers/scsi/bnx2fc/bnx2fc_tgt.c rdata->ids.port_id); rdata 473 drivers/scsi/bnx2fc/bnx2fc_tgt.c if (rdata->spp_type != FC_TYPE_FCP) { rdata 478 drivers/scsi/bnx2fc/bnx2fc_tgt.c if (!(rdata->ids.roles & FC_RPORT_ROLE_FCP_TARGET)) { rdata 502 drivers/scsi/bnx2fc/bnx2fc_tgt.c bnx2fc_offload_session(port, tgt, rdata); rdata 528 drivers/scsi/bnx2fc/bnx2fc_tgt.c port_id = rdata->ids.port_id; rdata 584 drivers/scsi/bnx2fc/bnx2fc_tgt.c struct fc_rport_priv *rdata; rdata 590 drivers/scsi/bnx2fc/bnx2fc_tgt.c rdata = tgt->rdata; rdata 591 drivers/scsi/bnx2fc/bnx2fc_tgt.c if (rdata->ids.port_id == port_id) { rdata 592 drivers/scsi/bnx2fc/bnx2fc_tgt.c if (rdata->rp_state != RPORT_ST_DELETE) { rdata 599 drivers/scsi/bnx2fc/bnx2fc_tgt.c rdata->ids.port_id); rdata 2006 drivers/scsi/fcoe/fcoe_ctlr.c static inline struct fcoe_rport *fcoe_ctlr_rport(struct fc_rport_priv *rdata) rdata 2008 drivers/scsi/fcoe/fcoe_ctlr.c return container_of(rdata, struct fcoe_rport, rdata); rdata 2124 drivers/scsi/fcoe/fcoe_ctlr.c struct fc_rport_priv *rdata, rdata 2128 drivers/scsi/fcoe/fcoe_ctlr.c struct fcoe_rport *frport = fcoe_ctlr_rport(rdata); rdata 2131 drivers/scsi/fcoe/fcoe_ctlr.c rdata->ids.port_id, event); rdata 2145 drivers/scsi/fcoe/fcoe_ctlr.c rdata->ids.port_id); rdata 2146 drivers/scsi/fcoe/fcoe_ctlr.c fc_rport_logoff(rdata); rdata 2167 drivers/scsi/fcoe/fcoe_ctlr.c struct fc_rport_priv *rdata; rdata 2170 drivers/scsi/fcoe/fcoe_ctlr.c list_for_each_entry_rcu(rdata, &lport->disc.rports, peers) { rdata 2171 drivers/scsi/fcoe/fcoe_ctlr.c if (kref_get_unless_zero(&rdata->kref)) { rdata 2172 drivers/scsi/fcoe/fcoe_ctlr.c fc_rport_logoff(rdata); rdata 2173 drivers/scsi/fcoe/fcoe_ctlr.c kref_put(&rdata->kref, fc_rport_destroy); rdata 2348 drivers/scsi/fcoe/fcoe_ctlr.c frport->rdata.ids.node_name = rdata 2356 drivers/scsi/fcoe/fcoe_ctlr.c frport->rdata.ids.port_id = ntoh24(vn->fd_fc_id); rdata 2357 drivers/scsi/fcoe/fcoe_ctlr.c frport->rdata.ids.port_name = rdata 2411 drivers/scsi/fcoe/fcoe_ctlr.c if (frport->rdata.ids.port_id != fip->port_id) rdata 2431 drivers/scsi/fcoe/fcoe_ctlr.c if (fip->lp->wwpn > frport->rdata.ids.port_name && rdata 2462 drivers/scsi/fcoe/fcoe_ctlr.c if (frport->rdata.ids.port_id != fip->port_id) rdata 2492 drivers/scsi/fcoe/fcoe_ctlr.c struct fc_rport_priv *rdata; rdata 2497 drivers/scsi/fcoe/fcoe_ctlr.c port_id = new->rdata.ids.port_id; rdata 2502 drivers/scsi/fcoe/fcoe_ctlr.c rdata = fc_rport_create(lport, port_id); rdata 2503 drivers/scsi/fcoe/fcoe_ctlr.c if (!rdata) { rdata 2507 drivers/scsi/fcoe/fcoe_ctlr.c mutex_lock(&rdata->rp_mutex); rdata 2510 drivers/scsi/fcoe/fcoe_ctlr.c rdata->ops = &fcoe_ctlr_vn_rport_ops; rdata 2511 drivers/scsi/fcoe/fcoe_ctlr.c rdata->disc_id = lport->disc.disc_id; rdata 2513 drivers/scsi/fcoe/fcoe_ctlr.c ids = &rdata->ids; rdata 2515 drivers/scsi/fcoe/fcoe_ctlr.c ids->port_name != new->rdata.ids.port_name) || rdata 2517 drivers/scsi/fcoe/fcoe_ctlr.c ids->node_name != new->rdata.ids.node_name)) { rdata 2518 drivers/scsi/fcoe/fcoe_ctlr.c mutex_unlock(&rdata->rp_mutex); rdata 2520 drivers/scsi/fcoe/fcoe_ctlr.c fc_rport_logoff(rdata); rdata 2521 drivers/scsi/fcoe/fcoe_ctlr.c mutex_lock(&rdata->rp_mutex); rdata 2523 drivers/scsi/fcoe/fcoe_ctlr.c ids->port_name = new->rdata.ids.port_name; rdata 2524 drivers/scsi/fcoe/fcoe_ctlr.c ids->node_name = new->rdata.ids.node_name; rdata 2525 drivers/scsi/fcoe/fcoe_ctlr.c mutex_unlock(&rdata->rp_mutex); rdata 2527 drivers/scsi/fcoe/fcoe_ctlr.c frport = fcoe_ctlr_rport(rdata); rdata 2530 drivers/scsi/fcoe/fcoe_ctlr.c rdata->rp_state); rdata 2550 drivers/scsi/fcoe/fcoe_ctlr.c struct fc_rport_priv *rdata; rdata 2554 drivers/scsi/fcoe/fcoe_ctlr.c rdata = fc_rport_lookup(lport, port_id); rdata 2555 drivers/scsi/fcoe/fcoe_ctlr.c if (rdata) { rdata 2556 drivers/scsi/fcoe/fcoe_ctlr.c frport = fcoe_ctlr_rport(rdata); rdata 2559 drivers/scsi/fcoe/fcoe_ctlr.c kref_put(&rdata->kref, fc_rport_destroy); rdata 2583 drivers/scsi/fcoe/fcoe_ctlr.c if (new->rdata.ids.port_id == fip->port_id) { rdata 2592 drivers/scsi/fcoe/fcoe_ctlr.c if (new->rdata.ids.port_id == fip->port_id) { rdata 2593 drivers/scsi/fcoe/fcoe_ctlr.c if (new->rdata.ids.port_name > fip->lp->wwpn) { rdata 2605 drivers/scsi/fcoe/fcoe_ctlr.c new->rdata.ids.port_id); rdata 2614 drivers/scsi/fcoe/fcoe_ctlr.c new->rdata.ids.port_id); rdata 2630 drivers/scsi/fcoe/fcoe_ctlr.c new->rdata.ids.port_id, fcoe_ctlr_state(fip->state)); rdata 2646 drivers/scsi/fcoe/fcoe_ctlr.c struct fc_rport_priv *rdata; rdata 2654 drivers/scsi/fcoe/fcoe_ctlr.c rdata = fc_rport_lookup(lport, new->rdata.ids.port_id); rdata 2655 drivers/scsi/fcoe/fcoe_ctlr.c if (rdata) { rdata 2656 drivers/scsi/fcoe/fcoe_ctlr.c if (rdata->ids.node_name == new->rdata.ids.node_name && rdata 2657 drivers/scsi/fcoe/fcoe_ctlr.c rdata->ids.port_name == new->rdata.ids.port_name) { rdata 2658 drivers/scsi/fcoe/fcoe_ctlr.c frport = fcoe_ctlr_rport(rdata); rdata 2661 drivers/scsi/fcoe/fcoe_ctlr.c rdata->ids.port_id); rdata 2665 drivers/scsi/fcoe/fcoe_ctlr.c rdata->ids.port_id); rdata 2666 drivers/scsi/fcoe/fcoe_ctlr.c fc_rport_login(rdata); rdata 2670 drivers/scsi/fcoe/fcoe_ctlr.c kref_put(&rdata->kref, fc_rport_destroy); rdata 2682 drivers/scsi/fcoe/fcoe_ctlr.c new->rdata.ids.port_id); rdata 2699 drivers/scsi/fcoe/fcoe_ctlr.c struct fc_rport_priv *rdata; rdata 2706 drivers/scsi/fcoe/fcoe_ctlr.c list_for_each_entry_rcu(rdata, &lport->disc.rports, peers) { rdata 2707 drivers/scsi/fcoe/fcoe_ctlr.c if (!kref_get_unless_zero(&rdata->kref)) rdata 2709 drivers/scsi/fcoe/fcoe_ctlr.c frport = fcoe_ctlr_rport(rdata); rdata 2711 drivers/scsi/fcoe/fcoe_ctlr.c kref_put(&rdata->kref, fc_rport_destroy); rdata 2720 drivers/scsi/fcoe/fcoe_ctlr.c rdata->ids.port_name, rdata->ids.port_id); rdata 2721 drivers/scsi/fcoe/fcoe_ctlr.c fc_rport_logoff(rdata); rdata 2724 drivers/scsi/fcoe/fcoe_ctlr.c kref_put(&rdata->kref, fc_rport_destroy); rdata 2868 drivers/scsi/fcoe/fcoe_ctlr.c frport->rdata.ids.node_name = rdata 3057 drivers/scsi/fcoe/fcoe_ctlr.c struct fc_rport_priv *rdata; rdata 3064 drivers/scsi/fcoe/fcoe_ctlr.c list_for_each_entry_rcu(rdata, &disc->rports, peers) { rdata 3065 drivers/scsi/fcoe/fcoe_ctlr.c if (!kref_get_unless_zero(&rdata->kref)) rdata 3067 drivers/scsi/fcoe/fcoe_ctlr.c frport = fcoe_ctlr_rport(rdata); rdata 3069 drivers/scsi/fcoe/fcoe_ctlr.c fc_rport_login(rdata); rdata 3070 drivers/scsi/fcoe/fcoe_ctlr.c kref_put(&rdata->kref, fc_rport_destroy); rdata 1689 drivers/scsi/fnic/fnic_scsi.c struct fc_rport_libfc_priv *rdata; rdata 1701 drivers/scsi/fnic/fnic_scsi.c rdata = rport->dd_data; rdata 1703 drivers/scsi/fnic/fnic_scsi.c if (!rdata) { rdata 1707 drivers/scsi/fnic/fnic_scsi.c lport = rdata->local_port; rdata 53 drivers/scsi/libfc/fc_disc.c struct fc_rport_priv *rdata; rdata 57 drivers/scsi/libfc/fc_disc.c list_for_each_entry(rdata, &disc->rports, peers) { rdata 58 drivers/scsi/libfc/fc_disc.c if (kref_get_unless_zero(&rdata->kref)) { rdata 59 drivers/scsi/libfc/fc_disc.c fc_rport_logoff(rdata); rdata 60 drivers/scsi/libfc/fc_disc.c kref_put(&rdata->kref, fc_rport_destroy); rdata 258 drivers/scsi/libfc/fc_disc.c struct fc_rport_priv *rdata; rdata 278 drivers/scsi/libfc/fc_disc.c list_for_each_entry(rdata, &disc->rports, peers) { rdata 279 drivers/scsi/libfc/fc_disc.c if (!kref_get_unless_zero(&rdata->kref)) rdata 281 drivers/scsi/libfc/fc_disc.c if (rdata->disc_id) { rdata 282 drivers/scsi/libfc/fc_disc.c if (rdata->disc_id == disc->disc_id) rdata 283 drivers/scsi/libfc/fc_disc.c fc_rport_login(rdata); rdata 285 drivers/scsi/libfc/fc_disc.c fc_rport_logoff(rdata); rdata 287 drivers/scsi/libfc/fc_disc.c kref_put(&rdata->kref, fc_rport_destroy); rdata 388 drivers/scsi/libfc/fc_disc.c struct fc_rport_priv *rdata; rdata 436 drivers/scsi/libfc/fc_disc.c rdata = fc_rport_create(lport, ids.port_id); rdata 437 drivers/scsi/libfc/fc_disc.c if (rdata) { rdata 438 drivers/scsi/libfc/fc_disc.c rdata->ids.port_name = ids.port_name; rdata 439 drivers/scsi/libfc/fc_disc.c rdata->disc_id = disc->disc_id; rdata 571 drivers/scsi/libfc/fc_disc.c struct fc_rport_priv *rdata = rdata_arg; rdata 579 drivers/scsi/libfc/fc_disc.c lport = rdata->local_port; rdata 596 drivers/scsi/libfc/fc_disc.c mutex_lock(&rdata->rp_mutex); rdata 597 drivers/scsi/libfc/fc_disc.c if (rdata->ids.port_name == -1) rdata 598 drivers/scsi/libfc/fc_disc.c rdata->ids.port_name = port_name; rdata 599 drivers/scsi/libfc/fc_disc.c else if (rdata->ids.port_name != port_name) { rdata 602 drivers/scsi/libfc/fc_disc.c rdata->ids.port_id, port_name); rdata 603 drivers/scsi/libfc/fc_disc.c mutex_unlock(&rdata->rp_mutex); rdata 604 drivers/scsi/libfc/fc_disc.c fc_rport_logoff(rdata); rdata 606 drivers/scsi/libfc/fc_disc.c new_rdata = fc_rport_create(lport, rdata->ids.port_id); rdata 614 drivers/scsi/libfc/fc_disc.c rdata->disc_id = disc->disc_id; rdata 615 drivers/scsi/libfc/fc_disc.c mutex_unlock(&rdata->rp_mutex); rdata 616 drivers/scsi/libfc/fc_disc.c fc_rport_login(rdata); rdata 620 drivers/scsi/libfc/fc_disc.c fc_rport_logoff(rdata); rdata 630 drivers/scsi/libfc/fc_disc.c kref_put(&rdata->kref, fc_rport_destroy); rdata 643 drivers/scsi/libfc/fc_disc.c struct fc_rport_priv *rdata) rdata 652 drivers/scsi/libfc/fc_disc.c if (!lport->tt.elsct_send(lport, rdata->ids.port_id, fp, FC_NS_GPN_ID, rdata 653 drivers/scsi/libfc/fc_disc.c fc_disc_gpn_id_resp, rdata, rdata 656 drivers/scsi/libfc/fc_disc.c kref_get(&rdata->kref); rdata 667 drivers/scsi/libfc/fc_disc.c struct fc_rport_priv *rdata; rdata 671 drivers/scsi/libfc/fc_disc.c rdata = fc_rport_create(lport, dp->port_id); rdata 672 drivers/scsi/libfc/fc_disc.c if (!rdata) rdata 674 drivers/scsi/libfc/fc_disc.c rdata->disc_id = 0; rdata 675 drivers/scsi/libfc/fc_disc.c return fc_disc_gpn_id_req(lport, rdata); rdata 52 drivers/scsi/libfc/fc_libfc.h #define FC_RPORT_DBG(rdata, fmt, args...) \ rdata 53 drivers/scsi/libfc/fc_libfc.h FC_RPORT_ID_DBG((rdata)->local_port, (rdata)->ids.port_id, fmt, ##args) rdata 169 drivers/scsi/libfc/fc_lport.c struct fc_rport_priv *rdata, rdata 173 drivers/scsi/libfc/fc_lport.c rdata->ids.port_id); rdata 179 drivers/scsi/libfc/fc_lport.c lport->dns_rdata = rdata; rdata 182 drivers/scsi/libfc/fc_lport.c lport->ms_rdata = rdata; rdata 189 drivers/scsi/libfc/fc_lport.c "%d state", rdata->ids.port_id, rdata 191 drivers/scsi/libfc/fc_lport.c fc_rport_logoff(rdata); rdata 197 drivers/scsi/libfc/fc_lport.c if (rdata->ids.port_id == FC_FID_DIR_SERV) rdata 199 drivers/scsi/libfc/fc_lport.c else if (rdata->ids.port_id == FC_FID_MGMT_SERV) rdata 916 drivers/scsi/libfc/fc_lport.c static int fc_lport_els_prli(struct fc_rport_priv *rdata, u32 spp_len, rdata 1400 drivers/scsi/libfc/fc_lport.c struct fc_rport_priv *rdata; rdata 1410 drivers/scsi/libfc/fc_lport.c rdata = fc_rport_create(lport, FC_FID_DIR_SERV); rdata 1412 drivers/scsi/libfc/fc_lport.c if (!rdata) rdata 1415 drivers/scsi/libfc/fc_lport.c rdata->ops = &fc_lport_rport_ops; rdata 1416 drivers/scsi/libfc/fc_lport.c fc_rport_login(rdata); rdata 1515 drivers/scsi/libfc/fc_lport.c struct fc_rport_priv *rdata; rdata 1525 drivers/scsi/libfc/fc_lport.c rdata = fc_rport_create(lport, FC_FID_MGMT_SERV); rdata 1527 drivers/scsi/libfc/fc_lport.c if (!rdata) rdata 1530 drivers/scsi/libfc/fc_lport.c rdata->ops = &fc_lport_rport_ops; rdata 1531 drivers/scsi/libfc/fc_lport.c fc_rport_login(rdata); rdata 2061 drivers/scsi/libfc/fc_lport.c struct fc_rport_priv *rdata; rdata 2075 drivers/scsi/libfc/fc_lport.c rdata = rport->dd_data; rdata 2077 drivers/scsi/libfc/fc_lport.c rdata->e_d_tov); rdata 2085 drivers/scsi/libfc/fc_lport.c rdata = rport->dd_data; rdata 2087 drivers/scsi/libfc/fc_lport.c rdata->e_d_tov); rdata 2093 drivers/scsi/libfc/fc_lport.c rdata = lport->dns_rdata; rdata 2094 drivers/scsi/libfc/fc_lport.c if (!rdata) rdata 2096 drivers/scsi/libfc/fc_lport.c tov = rdata->e_d_tov; rdata 2098 drivers/scsi/libfc/fc_lport.c rdata = fc_rport_lookup(lport, did); rdata 2099 drivers/scsi/libfc/fc_lport.c if (!rdata) rdata 2101 drivers/scsi/libfc/fc_lport.c tov = rdata->e_d_tov; rdata 2102 drivers/scsi/libfc/fc_lport.c kref_put(&rdata->kref, fc_rport_destroy); rdata 107 drivers/scsi/libfc/fc_rport.c struct fc_rport_priv *rdata = NULL, *tmp_rdata; rdata 113 drivers/scsi/libfc/fc_rport.c rdata = tmp_rdata; rdata 117 drivers/scsi/libfc/fc_rport.c return rdata; rdata 130 drivers/scsi/libfc/fc_rport.c struct fc_rport_priv *rdata; rdata 131 drivers/scsi/libfc/fc_rport.c size_t rport_priv_size = sizeof(*rdata); rdata 135 drivers/scsi/libfc/fc_rport.c rdata = fc_rport_lookup(lport, port_id); rdata 136 drivers/scsi/libfc/fc_rport.c if (rdata) rdata 137 drivers/scsi/libfc/fc_rport.c return rdata; rdata 141 drivers/scsi/libfc/fc_rport.c rdata = kzalloc(rport_priv_size, GFP_KERNEL); rdata 142 drivers/scsi/libfc/fc_rport.c if (!rdata) rdata 145 drivers/scsi/libfc/fc_rport.c rdata->ids.node_name = -1; rdata 146 drivers/scsi/libfc/fc_rport.c rdata->ids.port_name = -1; rdata 147 drivers/scsi/libfc/fc_rport.c rdata->ids.port_id = port_id; rdata 148 drivers/scsi/libfc/fc_rport.c rdata->ids.roles = FC_RPORT_ROLE_UNKNOWN; rdata 150 drivers/scsi/libfc/fc_rport.c kref_init(&rdata->kref); rdata 151 drivers/scsi/libfc/fc_rport.c mutex_init(&rdata->rp_mutex); rdata 152 drivers/scsi/libfc/fc_rport.c rdata->local_port = lport; rdata 153 drivers/scsi/libfc/fc_rport.c rdata->rp_state = RPORT_ST_INIT; rdata 154 drivers/scsi/libfc/fc_rport.c rdata->event = RPORT_EV_NONE; rdata 155 drivers/scsi/libfc/fc_rport.c rdata->flags = FC_RP_FLAGS_REC_SUPPORTED; rdata 156 drivers/scsi/libfc/fc_rport.c rdata->e_d_tov = lport->e_d_tov; rdata 157 drivers/scsi/libfc/fc_rport.c rdata->r_a_tov = lport->r_a_tov; rdata 158 drivers/scsi/libfc/fc_rport.c rdata->maxframe_size = FC_MIN_MAX_PAYLOAD; rdata 159 drivers/scsi/libfc/fc_rport.c INIT_DELAYED_WORK(&rdata->retry_work, fc_rport_timeout); rdata 160 drivers/scsi/libfc/fc_rport.c INIT_WORK(&rdata->event_work, fc_rport_work); rdata 162 drivers/scsi/libfc/fc_rport.c rdata->lld_event_callback = lport->tt.rport_event_callback; rdata 163 drivers/scsi/libfc/fc_rport.c list_add_rcu(&rdata->peers, &lport->disc.rports); rdata 165 drivers/scsi/libfc/fc_rport.c return rdata; rdata 175 drivers/scsi/libfc/fc_rport.c struct fc_rport_priv *rdata; rdata 177 drivers/scsi/libfc/fc_rport.c rdata = container_of(kref, struct fc_rport_priv, kref); rdata 178 drivers/scsi/libfc/fc_rport.c kfree_rcu(rdata, rcu); rdata 186 drivers/scsi/libfc/fc_rport.c static const char *fc_rport_state(struct fc_rport_priv *rdata) rdata 190 drivers/scsi/libfc/fc_rport.c cp = fc_rport_state_names[rdata->rp_state]; rdata 240 drivers/scsi/libfc/fc_rport.c static void fc_rport_state_enter(struct fc_rport_priv *rdata, rdata 243 drivers/scsi/libfc/fc_rport.c lockdep_assert_held(&rdata->rp_mutex); rdata 245 drivers/scsi/libfc/fc_rport.c if (rdata->rp_state != new) rdata 246 drivers/scsi/libfc/fc_rport.c rdata->retries = 0; rdata 247 drivers/scsi/libfc/fc_rport.c rdata->rp_state = new; rdata 259 drivers/scsi/libfc/fc_rport.c struct fc_rport_priv *rdata = rdata 263 drivers/scsi/libfc/fc_rport.c struct fc_lport *lport = rdata->local_port; rdata 270 drivers/scsi/libfc/fc_rport.c mutex_lock(&rdata->rp_mutex); rdata 271 drivers/scsi/libfc/fc_rport.c event = rdata->event; rdata 272 drivers/scsi/libfc/fc_rport.c rport_ops = rdata->ops; rdata 273 drivers/scsi/libfc/fc_rport.c rport = rdata->rport; rdata 275 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "work event %u\n", event); rdata 279 drivers/scsi/libfc/fc_rport.c ids = rdata->ids; rdata 280 drivers/scsi/libfc/fc_rport.c rdata->event = RPORT_EV_NONE; rdata 281 drivers/scsi/libfc/fc_rport.c rdata->major_retries = 0; rdata 282 drivers/scsi/libfc/fc_rport.c kref_get(&rdata->kref); rdata 283 drivers/scsi/libfc/fc_rport.c mutex_unlock(&rdata->rp_mutex); rdata 286 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "No rport!\n"); rdata 290 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Failed to add the rport\n"); rdata 291 drivers/scsi/libfc/fc_rport.c fc_rport_logoff(rdata); rdata 292 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); rdata 295 drivers/scsi/libfc/fc_rport.c mutex_lock(&rdata->rp_mutex); rdata 296 drivers/scsi/libfc/fc_rport.c if (rdata->rport) rdata 297 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "rport already allocated\n"); rdata 298 drivers/scsi/libfc/fc_rport.c rdata->rport = rport; rdata 299 drivers/scsi/libfc/fc_rport.c rport->maxframe_size = rdata->maxframe_size; rdata 300 drivers/scsi/libfc/fc_rport.c rport->supported_classes = rdata->supported_classes; rdata 304 drivers/scsi/libfc/fc_rport.c rpriv->rp_state = rdata->rp_state; rdata 305 drivers/scsi/libfc/fc_rport.c rpriv->flags = rdata->flags; rdata 306 drivers/scsi/libfc/fc_rport.c rpriv->e_d_tov = rdata->e_d_tov; rdata 307 drivers/scsi/libfc/fc_rport.c rpriv->r_a_tov = rdata->r_a_tov; rdata 308 drivers/scsi/libfc/fc_rport.c mutex_unlock(&rdata->rp_mutex); rdata 311 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "callback ev %d\n", event); rdata 312 drivers/scsi/libfc/fc_rport.c rport_ops->event_callback(lport, rdata, event); rdata 314 drivers/scsi/libfc/fc_rport.c if (rdata->lld_event_callback) { rdata 315 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "lld callback ev %d\n", event); rdata 316 drivers/scsi/libfc/fc_rport.c rdata->lld_event_callback(lport, rdata, event); rdata 318 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); rdata 324 drivers/scsi/libfc/fc_rport.c if (rdata->prli_count) { rdata 329 drivers/scsi/libfc/fc_rport.c prov->prlo(rdata); rdata 333 drivers/scsi/libfc/fc_rport.c port_id = rdata->ids.port_id; rdata 334 drivers/scsi/libfc/fc_rport.c mutex_unlock(&rdata->rp_mutex); rdata 337 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "callback ev %d\n", event); rdata 338 drivers/scsi/libfc/fc_rport.c rport_ops->event_callback(lport, rdata, event); rdata 340 drivers/scsi/libfc/fc_rport.c if (rdata->lld_event_callback) { rdata 341 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "lld callback ev %d\n", event); rdata 342 drivers/scsi/libfc/fc_rport.c rdata->lld_event_callback(lport, rdata, event); rdata 344 drivers/scsi/libfc/fc_rport.c if (cancel_delayed_work_sync(&rdata->retry_work)) rdata 345 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); rdata 356 drivers/scsi/libfc/fc_rport.c mutex_lock(&rdata->rp_mutex); rdata 357 drivers/scsi/libfc/fc_rport.c rdata->rport = NULL; rdata 358 drivers/scsi/libfc/fc_rport.c mutex_unlock(&rdata->rp_mutex); rdata 362 drivers/scsi/libfc/fc_rport.c mutex_lock(&rdata->rp_mutex); rdata 363 drivers/scsi/libfc/fc_rport.c if (rdata->rp_state == RPORT_ST_DELETE) { rdata 365 drivers/scsi/libfc/fc_rport.c rdata->event = RPORT_EV_NONE; rdata 366 drivers/scsi/libfc/fc_rport.c mutex_unlock(&rdata->rp_mutex); rdata 367 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); rdata 368 drivers/scsi/libfc/fc_rport.c } else if ((rdata->flags & FC_RP_STARTED) && rdata 369 drivers/scsi/libfc/fc_rport.c rdata->major_retries < rdata 371 drivers/scsi/libfc/fc_rport.c rdata->major_retries++; rdata 372 drivers/scsi/libfc/fc_rport.c rdata->event = RPORT_EV_NONE; rdata 373 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "work restart\n"); rdata 374 drivers/scsi/libfc/fc_rport.c fc_rport_enter_flogi(rdata); rdata 375 drivers/scsi/libfc/fc_rport.c mutex_unlock(&rdata->rp_mutex); rdata 377 drivers/scsi/libfc/fc_rport.c mutex_unlock(&rdata->rp_mutex); rdata 378 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "work delete\n"); rdata 380 drivers/scsi/libfc/fc_rport.c list_del_rcu(&rdata->peers); rdata 382 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); rdata 388 drivers/scsi/libfc/fc_rport.c rdata->event = RPORT_EV_NONE; rdata 389 drivers/scsi/libfc/fc_rport.c if (rdata->rp_state == RPORT_ST_READY) { rdata 390 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "work reopen\n"); rdata 391 drivers/scsi/libfc/fc_rport.c fc_rport_enter_ready(rdata); rdata 393 drivers/scsi/libfc/fc_rport.c mutex_unlock(&rdata->rp_mutex); rdata 398 drivers/scsi/libfc/fc_rport.c mutex_unlock(&rdata->rp_mutex); rdata 401 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); rdata 424 drivers/scsi/libfc/fc_rport.c int fc_rport_login(struct fc_rport_priv *rdata) rdata 426 drivers/scsi/libfc/fc_rport.c mutex_lock(&rdata->rp_mutex); rdata 428 drivers/scsi/libfc/fc_rport.c if (rdata->flags & FC_RP_STARTED) { rdata 429 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "port already started\n"); rdata 430 drivers/scsi/libfc/fc_rport.c mutex_unlock(&rdata->rp_mutex); rdata 434 drivers/scsi/libfc/fc_rport.c rdata->flags |= FC_RP_STARTED; rdata 435 drivers/scsi/libfc/fc_rport.c switch (rdata->rp_state) { rdata 437 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "ADISC port\n"); rdata 438 drivers/scsi/libfc/fc_rport.c fc_rport_enter_adisc(rdata); rdata 441 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Restart deleted port\n"); rdata 444 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Login to port\n"); rdata 445 drivers/scsi/libfc/fc_rport.c fc_rport_enter_flogi(rdata); rdata 448 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Login in progress, state %s\n", rdata 449 drivers/scsi/libfc/fc_rport.c fc_rport_state(rdata)); rdata 452 drivers/scsi/libfc/fc_rport.c mutex_unlock(&rdata->rp_mutex); rdata 472 drivers/scsi/libfc/fc_rport.c static void fc_rport_enter_delete(struct fc_rport_priv *rdata, rdata 475 drivers/scsi/libfc/fc_rport.c lockdep_assert_held(&rdata->rp_mutex); rdata 477 drivers/scsi/libfc/fc_rport.c if (rdata->rp_state == RPORT_ST_DELETE) rdata 480 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Delete port\n"); rdata 482 drivers/scsi/libfc/fc_rport.c fc_rport_state_enter(rdata, RPORT_ST_DELETE); rdata 484 drivers/scsi/libfc/fc_rport.c kref_get(&rdata->kref); rdata 485 drivers/scsi/libfc/fc_rport.c if (rdata->event == RPORT_EV_NONE && rdata 486 drivers/scsi/libfc/fc_rport.c !queue_work(rport_event_queue, &rdata->event_work)) rdata 487 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); rdata 489 drivers/scsi/libfc/fc_rport.c rdata->event = event; rdata 500 drivers/scsi/libfc/fc_rport.c int fc_rport_logoff(struct fc_rport_priv *rdata) rdata 502 drivers/scsi/libfc/fc_rport.c struct fc_lport *lport = rdata->local_port; rdata 503 drivers/scsi/libfc/fc_rport.c u32 port_id = rdata->ids.port_id; rdata 505 drivers/scsi/libfc/fc_rport.c mutex_lock(&rdata->rp_mutex); rdata 507 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Remove port\n"); rdata 509 drivers/scsi/libfc/fc_rport.c rdata->flags &= ~FC_RP_STARTED; rdata 510 drivers/scsi/libfc/fc_rport.c if (rdata->rp_state == RPORT_ST_DELETE) { rdata 511 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Port in Delete state, not removing\n"); rdata 523 drivers/scsi/libfc/fc_rport.c fc_rport_enter_logo(rdata); rdata 529 drivers/scsi/libfc/fc_rport.c fc_rport_enter_delete(rdata, RPORT_EV_STOP); rdata 531 drivers/scsi/libfc/fc_rport.c mutex_unlock(&rdata->rp_mutex); rdata 542 drivers/scsi/libfc/fc_rport.c static void fc_rport_enter_ready(struct fc_rport_priv *rdata) rdata 544 drivers/scsi/libfc/fc_rport.c lockdep_assert_held(&rdata->rp_mutex); rdata 546 drivers/scsi/libfc/fc_rport.c fc_rport_state_enter(rdata, RPORT_ST_READY); rdata 548 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Port is Ready\n"); rdata 550 drivers/scsi/libfc/fc_rport.c kref_get(&rdata->kref); rdata 551 drivers/scsi/libfc/fc_rport.c if (rdata->event == RPORT_EV_NONE && rdata 552 drivers/scsi/libfc/fc_rport.c !queue_work(rport_event_queue, &rdata->event_work)) rdata 553 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); rdata 555 drivers/scsi/libfc/fc_rport.c rdata->event = RPORT_EV_READY; rdata 570 drivers/scsi/libfc/fc_rport.c struct fc_rport_priv *rdata = rdata 573 drivers/scsi/libfc/fc_rport.c mutex_lock(&rdata->rp_mutex); rdata 574 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Port timeout, state %s\n", fc_rport_state(rdata)); rdata 576 drivers/scsi/libfc/fc_rport.c switch (rdata->rp_state) { rdata 578 drivers/scsi/libfc/fc_rport.c fc_rport_enter_flogi(rdata); rdata 581 drivers/scsi/libfc/fc_rport.c fc_rport_enter_plogi(rdata); rdata 584 drivers/scsi/libfc/fc_rport.c fc_rport_enter_prli(rdata); rdata 587 drivers/scsi/libfc/fc_rport.c fc_rport_enter_rtv(rdata); rdata 590 drivers/scsi/libfc/fc_rport.c fc_rport_enter_adisc(rdata); rdata 599 drivers/scsi/libfc/fc_rport.c mutex_unlock(&rdata->rp_mutex); rdata 600 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); rdata 610 drivers/scsi/libfc/fc_rport.c static void fc_rport_error(struct fc_rport_priv *rdata, int err) rdata 612 drivers/scsi/libfc/fc_rport.c struct fc_lport *lport = rdata->local_port; rdata 614 drivers/scsi/libfc/fc_rport.c lockdep_assert_held(&rdata->rp_mutex); rdata 616 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Error %d in state %s, retries %d\n", rdata 617 drivers/scsi/libfc/fc_rport.c -err, fc_rport_state(rdata), rdata->retries); rdata 619 drivers/scsi/libfc/fc_rport.c switch (rdata->rp_state) { rdata 621 drivers/scsi/libfc/fc_rport.c rdata->flags &= ~FC_RP_STARTED; rdata 622 drivers/scsi/libfc/fc_rport.c fc_rport_enter_delete(rdata, RPORT_EV_FAILED); rdata 626 drivers/scsi/libfc/fc_rport.c rdata->flags &= ~FC_RP_STARTED; rdata 627 drivers/scsi/libfc/fc_rport.c fc_rport_enter_delete(rdata, RPORT_EV_FAILED); rdata 629 drivers/scsi/libfc/fc_rport.c fc_rport_enter_logo(rdata); rdata 632 drivers/scsi/libfc/fc_rport.c fc_rport_enter_ready(rdata); rdata 636 drivers/scsi/libfc/fc_rport.c fc_rport_enter_logo(rdata); rdata 656 drivers/scsi/libfc/fc_rport.c static void fc_rport_error_retry(struct fc_rport_priv *rdata, int err) rdata 658 drivers/scsi/libfc/fc_rport.c unsigned long delay = msecs_to_jiffies(rdata->e_d_tov); rdata 660 drivers/scsi/libfc/fc_rport.c lockdep_assert_held(&rdata->rp_mutex); rdata 666 drivers/scsi/libfc/fc_rport.c if (rdata->retries < rdata->local_port->max_rport_retry_count) { rdata 667 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Error %d in state %s, retrying\n", rdata 668 drivers/scsi/libfc/fc_rport.c err, fc_rport_state(rdata)); rdata 669 drivers/scsi/libfc/fc_rport.c rdata->retries++; rdata 673 drivers/scsi/libfc/fc_rport.c kref_get(&rdata->kref); rdata 674 drivers/scsi/libfc/fc_rport.c if (!schedule_delayed_work(&rdata->retry_work, delay)) rdata 675 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); rdata 680 drivers/scsi/libfc/fc_rport.c fc_rport_error(rdata, err); rdata 693 drivers/scsi/libfc/fc_rport.c static int fc_rport_login_complete(struct fc_rport_priv *rdata, rdata 696 drivers/scsi/libfc/fc_rport.c struct fc_lport *lport = rdata->local_port; rdata 709 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Fabric bit set in FLOGI\n"); rdata 720 drivers/scsi/libfc/fc_rport.c if (e_d_tov > rdata->e_d_tov) rdata 721 drivers/scsi/libfc/fc_rport.c rdata->e_d_tov = e_d_tov; rdata 723 drivers/scsi/libfc/fc_rport.c rdata->maxframe_size = fc_plogi_get_maxframe(flogi, lport->mfs); rdata 736 drivers/scsi/libfc/fc_rport.c struct fc_rport_priv *rdata = rp_arg; rdata 737 drivers/scsi/libfc/fc_rport.c struct fc_lport *lport = rdata->local_port; rdata 743 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Received a FLOGI %s\n", rdata 749 drivers/scsi/libfc/fc_rport.c mutex_lock(&rdata->rp_mutex); rdata 751 drivers/scsi/libfc/fc_rport.c if (rdata->rp_state != RPORT_ST_FLOGI) { rdata 752 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Received a FLOGI response, but in state " rdata 753 drivers/scsi/libfc/fc_rport.c "%s\n", fc_rport_state(rdata)); rdata 760 drivers/scsi/libfc/fc_rport.c fc_rport_error(rdata, PTR_ERR(fp)); rdata 768 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "FLOGI ELS rejected, reason %x expl %x\n", rdata 773 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "FLOGI ELS invalid opcode %x\n", opcode); rdata 777 drivers/scsi/libfc/fc_rport.c if (fc_rport_login_complete(rdata, fp)) { rdata 778 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "FLOGI failed, no login\n"); rdata 789 drivers/scsi/libfc/fc_rport.c if (r_a_tov > rdata->r_a_tov) rdata 790 drivers/scsi/libfc/fc_rport.c rdata->r_a_tov = r_a_tov; rdata 792 drivers/scsi/libfc/fc_rport.c if (rdata->ids.port_name < lport->wwpn) rdata 793 drivers/scsi/libfc/fc_rport.c fc_rport_enter_plogi(rdata); rdata 795 drivers/scsi/libfc/fc_rport.c fc_rport_state_enter(rdata, RPORT_ST_PLOGI_WAIT); rdata 799 drivers/scsi/libfc/fc_rport.c mutex_unlock(&rdata->rp_mutex); rdata 801 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); rdata 804 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Bad FLOGI response\n"); rdata 805 drivers/scsi/libfc/fc_rport.c fc_rport_error_retry(rdata, err); rdata 815 drivers/scsi/libfc/fc_rport.c static void fc_rport_enter_flogi(struct fc_rport_priv *rdata) rdata 817 drivers/scsi/libfc/fc_rport.c struct fc_lport *lport = rdata->local_port; rdata 820 drivers/scsi/libfc/fc_rport.c lockdep_assert_held(&rdata->rp_mutex); rdata 823 drivers/scsi/libfc/fc_rport.c return fc_rport_enter_plogi(rdata); rdata 825 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Entered FLOGI state from %s state\n", rdata 826 drivers/scsi/libfc/fc_rport.c fc_rport_state(rdata)); rdata 828 drivers/scsi/libfc/fc_rport.c fc_rport_state_enter(rdata, RPORT_ST_FLOGI); rdata 832 drivers/scsi/libfc/fc_rport.c return fc_rport_error_retry(rdata, -FC_EX_ALLOC_ERR); rdata 834 drivers/scsi/libfc/fc_rport.c kref_get(&rdata->kref); rdata 835 drivers/scsi/libfc/fc_rport.c if (!lport->tt.elsct_send(lport, rdata->ids.port_id, fp, ELS_FLOGI, rdata 836 drivers/scsi/libfc/fc_rport.c fc_rport_flogi_resp, rdata, rdata 838 drivers/scsi/libfc/fc_rport.c fc_rport_error_retry(rdata, -FC_EX_XMIT_ERR); rdata 839 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); rdata 854 drivers/scsi/libfc/fc_rport.c struct fc_rport_priv *rdata; rdata 876 drivers/scsi/libfc/fc_rport.c rdata = fc_rport_lookup(lport, sid); rdata 877 drivers/scsi/libfc/fc_rport.c if (!rdata) { rdata 882 drivers/scsi/libfc/fc_rport.c mutex_lock(&rdata->rp_mutex); rdata 884 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Received FLOGI in %s state\n", rdata 885 drivers/scsi/libfc/fc_rport.c fc_rport_state(rdata)); rdata 887 drivers/scsi/libfc/fc_rport.c switch (rdata->rp_state) { rdata 903 drivers/scsi/libfc/fc_rport.c mutex_unlock(&rdata->rp_mutex); rdata 919 drivers/scsi/libfc/fc_rport.c fc_rport_enter_delete(rdata, RPORT_EV_LOGO); rdata 920 drivers/scsi/libfc/fc_rport.c mutex_unlock(&rdata->rp_mutex); rdata 925 drivers/scsi/libfc/fc_rport.c if (fc_rport_login_complete(rdata, fp)) { rdata 926 drivers/scsi/libfc/fc_rport.c mutex_unlock(&rdata->rp_mutex); rdata 948 drivers/scsi/libfc/fc_rport.c if (rdata->rp_state != RPORT_ST_FLOGI) { rdata 949 drivers/scsi/libfc/fc_rport.c if (rdata->ids.port_name < lport->wwpn) rdata 950 drivers/scsi/libfc/fc_rport.c fc_rport_enter_plogi(rdata); rdata 952 drivers/scsi/libfc/fc_rport.c fc_rport_state_enter(rdata, RPORT_ST_PLOGI_WAIT); rdata 955 drivers/scsi/libfc/fc_rport.c mutex_unlock(&rdata->rp_mutex); rdata 956 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); rdata 961 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); rdata 980 drivers/scsi/libfc/fc_rport.c struct fc_rport_priv *rdata = rdata_arg; rdata 981 drivers/scsi/libfc/fc_rport.c struct fc_lport *lport = rdata->local_port; rdata 987 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Received a PLOGI %s\n", fc_els_resp_type(fp)); rdata 992 drivers/scsi/libfc/fc_rport.c mutex_lock(&rdata->rp_mutex); rdata 994 drivers/scsi/libfc/fc_rport.c if (rdata->rp_state != RPORT_ST_PLOGI) { rdata 995 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Received a PLOGI response, but in state " rdata 996 drivers/scsi/libfc/fc_rport.c "%s\n", fc_rport_state(rdata)); rdata 1003 drivers/scsi/libfc/fc_rport.c fc_rport_error_retry(rdata, PTR_ERR(fp)); rdata 1010 drivers/scsi/libfc/fc_rport.c rdata->ids.port_name = get_unaligned_be64(&plp->fl_wwpn); rdata 1011 drivers/scsi/libfc/fc_rport.c rdata->ids.node_name = get_unaligned_be64(&plp->fl_wwnn); rdata 1014 drivers/scsi/libfc/fc_rport.c rdata->sp_features = ntohs(plp->fl_csp.sp_features); rdata 1017 drivers/scsi/libfc/fc_rport.c fc_rport_login_complete(rdata, fp); rdata 1022 drivers/scsi/libfc/fc_rport.c rdata->max_seq = csp_seq; rdata 1023 drivers/scsi/libfc/fc_rport.c rdata->maxframe_size = fc_plogi_get_maxframe(plp, lport->mfs); rdata 1024 drivers/scsi/libfc/fc_rport.c fc_rport_enter_prli(rdata); rdata 1030 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "PLOGI bad response\n"); rdata 1032 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "PLOGI ELS rejected, reason %x expl %x\n", rdata 1034 drivers/scsi/libfc/fc_rport.c fc_rport_error_retry(rdata, -FC_EX_ELS_RJT); rdata 1039 drivers/scsi/libfc/fc_rport.c mutex_unlock(&rdata->rp_mutex); rdata 1041 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); rdata 1045 drivers/scsi/libfc/fc_rport.c fc_rport_compatible_roles(struct fc_lport *lport, struct fc_rport_priv *rdata) rdata 1047 drivers/scsi/libfc/fc_rport.c if (rdata->ids.roles == FC_PORT_ROLE_UNKNOWN) rdata 1049 drivers/scsi/libfc/fc_rport.c if ((rdata->ids.roles & FC_PORT_ROLE_FCP_TARGET) && rdata 1052 drivers/scsi/libfc/fc_rport.c if ((rdata->ids.roles & FC_PORT_ROLE_FCP_INITIATOR) && rdata 1064 drivers/scsi/libfc/fc_rport.c static void fc_rport_enter_plogi(struct fc_rport_priv *rdata) rdata 1066 drivers/scsi/libfc/fc_rport.c struct fc_lport *lport = rdata->local_port; rdata 1069 drivers/scsi/libfc/fc_rport.c lockdep_assert_held(&rdata->rp_mutex); rdata 1071 drivers/scsi/libfc/fc_rport.c if (!fc_rport_compatible_roles(lport, rdata)) { rdata 1072 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "PLOGI suppressed for incompatible role\n"); rdata 1073 drivers/scsi/libfc/fc_rport.c fc_rport_state_enter(rdata, RPORT_ST_PLOGI_WAIT); rdata 1077 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Port entered PLOGI state from %s state\n", rdata 1078 drivers/scsi/libfc/fc_rport.c fc_rport_state(rdata)); rdata 1080 drivers/scsi/libfc/fc_rport.c fc_rport_state_enter(rdata, RPORT_ST_PLOGI); rdata 1082 drivers/scsi/libfc/fc_rport.c rdata->maxframe_size = FC_MIN_MAX_PAYLOAD; rdata 1085 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "%s frame alloc failed\n", __func__); rdata 1086 drivers/scsi/libfc/fc_rport.c fc_rport_error_retry(rdata, -FC_EX_ALLOC_ERR); rdata 1089 drivers/scsi/libfc/fc_rport.c rdata->e_d_tov = lport->e_d_tov; rdata 1091 drivers/scsi/libfc/fc_rport.c kref_get(&rdata->kref); rdata 1092 drivers/scsi/libfc/fc_rport.c if (!lport->tt.elsct_send(lport, rdata->ids.port_id, fp, ELS_PLOGI, rdata 1093 drivers/scsi/libfc/fc_rport.c fc_rport_plogi_resp, rdata, rdata 1095 drivers/scsi/libfc/fc_rport.c fc_rport_error_retry(rdata, -FC_EX_XMIT_ERR); rdata 1096 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); rdata 1113 drivers/scsi/libfc/fc_rport.c struct fc_rport_priv *rdata = rdata_arg; rdata 1126 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Received a PRLI %s\n", fc_els_resp_type(fp)); rdata 1131 drivers/scsi/libfc/fc_rport.c mutex_lock(&rdata->rp_mutex); rdata 1133 drivers/scsi/libfc/fc_rport.c if (rdata->rp_state != RPORT_ST_PRLI) { rdata 1134 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Received a PRLI response, but in state " rdata 1135 drivers/scsi/libfc/fc_rport.c "%s\n", fc_rport_state(rdata)); rdata 1142 drivers/scsi/libfc/fc_rport.c fc_rport_error_retry(rdata, PTR_ERR(fp)); rdata 1147 drivers/scsi/libfc/fc_rport.c rdata->ids.roles = FC_RPORT_ROLE_UNKNOWN; rdata 1153 drivers/scsi/libfc/fc_rport.c fc_rport_error_retry(rdata, -FC_EX_SEQ_ERR); rdata 1158 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "PRLI spp_flags = 0x%x spp_type 0x%x\n", rdata 1160 drivers/scsi/libfc/fc_rport.c rdata->spp_type = pp->spp.spp_type; rdata 1163 drivers/scsi/libfc/fc_rport.c fc_rport_error(rdata, -FC_EX_SEQ_ERR); rdata 1165 drivers/scsi/libfc/fc_rport.c fc_rport_error_retry(rdata, -FC_EX_SEQ_ERR); rdata 1169 drivers/scsi/libfc/fc_rport.c fc_rport_error_retry(rdata, -FC_EX_SEQ_ERR); rdata 1175 drivers/scsi/libfc/fc_rport.c rdata->flags |= FC_RP_FLAGS_RETRY; rdata 1177 drivers/scsi/libfc/fc_rport.c rdata->flags |= FC_RP_FLAGS_CONF_REQ; rdata 1182 drivers/scsi/libfc/fc_rport.c prov = fc_passive_prov[rdata->spp_type]; rdata 1185 drivers/scsi/libfc/fc_rport.c prov->prli(rdata, pp->prli.prli_spp_len, rdata 1191 drivers/scsi/libfc/fc_rport.c if (rdata->spp_type != FC_TYPE_FCP || rdata 1198 drivers/scsi/libfc/fc_rport.c rdata->supported_classes = FC_COS_CLASS3; rdata 1204 drivers/scsi/libfc/fc_rport.c rdata->ids.roles = roles; rdata 1205 drivers/scsi/libfc/fc_rport.c fc_rport_enter_rtv(rdata); rdata 1210 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "PRLI bad response\n"); rdata 1212 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "PRLI ELS rejected, reason %x expl %x\n", rdata 1216 drivers/scsi/libfc/fc_rport.c fc_rport_enter_plogi(rdata); rdata 1220 drivers/scsi/libfc/fc_rport.c fc_rport_error_retry(rdata, FC_EX_ELS_RJT); rdata 1226 drivers/scsi/libfc/fc_rport.c mutex_unlock(&rdata->rp_mutex); rdata 1228 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); rdata 1237 drivers/scsi/libfc/fc_rport.c static void fc_rport_enter_prli(struct fc_rport_priv *rdata) rdata 1239 drivers/scsi/libfc/fc_rport.c struct fc_lport *lport = rdata->local_port; rdata 1247 drivers/scsi/libfc/fc_rport.c lockdep_assert_held(&rdata->rp_mutex); rdata 1253 drivers/scsi/libfc/fc_rport.c if (rdata->ids.port_id >= FC_FID_DOM_MGR) { rdata 1254 drivers/scsi/libfc/fc_rport.c fc_rport_enter_ready(rdata); rdata 1263 drivers/scsi/libfc/fc_rport.c fc_rport_enter_ready(rdata); rdata 1267 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Port entered PRLI state from %s state\n", rdata 1268 drivers/scsi/libfc/fc_rport.c fc_rport_state(rdata)); rdata 1270 drivers/scsi/libfc/fc_rport.c fc_rport_state_enter(rdata, RPORT_ST_PRLI); rdata 1274 drivers/scsi/libfc/fc_rport.c fc_rport_error_retry(rdata, -FC_EX_ALLOC_ERR); rdata 1283 drivers/scsi/libfc/fc_rport.c prov->prli(rdata, sizeof(pp->spp), NULL, &pp->spp); rdata 1286 drivers/scsi/libfc/fc_rport.c fc_fill_fc_hdr(fp, FC_RCTL_ELS_REQ, rdata->ids.port_id, rdata 1290 drivers/scsi/libfc/fc_rport.c kref_get(&rdata->kref); rdata 1292 drivers/scsi/libfc/fc_rport.c NULL, rdata, 2 * lport->r_a_tov)) { rdata 1293 drivers/scsi/libfc/fc_rport.c fc_rport_error_retry(rdata, -FC_EX_XMIT_ERR); rdata 1294 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); rdata 1313 drivers/scsi/libfc/fc_rport.c struct fc_rport_priv *rdata = rdata_arg; rdata 1316 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Received a RTV %s\n", fc_els_resp_type(fp)); rdata 1321 drivers/scsi/libfc/fc_rport.c mutex_lock(&rdata->rp_mutex); rdata 1323 drivers/scsi/libfc/fc_rport.c if (rdata->rp_state != RPORT_ST_RTV) { rdata 1324 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Received a RTV response, but in state " rdata 1325 drivers/scsi/libfc/fc_rport.c "%s\n", fc_rport_state(rdata)); rdata 1332 drivers/scsi/libfc/fc_rport.c fc_rport_error(rdata, PTR_ERR(fp)); rdata 1348 drivers/scsi/libfc/fc_rport.c if (tov > rdata->r_a_tov) rdata 1349 drivers/scsi/libfc/fc_rport.c rdata->r_a_tov = tov; rdata 1355 drivers/scsi/libfc/fc_rport.c if (tov > rdata->e_d_tov) rdata 1356 drivers/scsi/libfc/fc_rport.c rdata->e_d_tov = tov; rdata 1360 drivers/scsi/libfc/fc_rport.c fc_rport_enter_ready(rdata); rdata 1365 drivers/scsi/libfc/fc_rport.c mutex_unlock(&rdata->rp_mutex); rdata 1367 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); rdata 1376 drivers/scsi/libfc/fc_rport.c static void fc_rport_enter_rtv(struct fc_rport_priv *rdata) rdata 1379 drivers/scsi/libfc/fc_rport.c struct fc_lport *lport = rdata->local_port; rdata 1381 drivers/scsi/libfc/fc_rport.c lockdep_assert_held(&rdata->rp_mutex); rdata 1383 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Port entered RTV state from %s state\n", rdata 1384 drivers/scsi/libfc/fc_rport.c fc_rport_state(rdata)); rdata 1386 drivers/scsi/libfc/fc_rport.c fc_rport_state_enter(rdata, RPORT_ST_RTV); rdata 1390 drivers/scsi/libfc/fc_rport.c fc_rport_error_retry(rdata, -FC_EX_ALLOC_ERR); rdata 1394 drivers/scsi/libfc/fc_rport.c kref_get(&rdata->kref); rdata 1395 drivers/scsi/libfc/fc_rport.c if (!lport->tt.elsct_send(lport, rdata->ids.port_id, fp, ELS_RTV, rdata 1396 drivers/scsi/libfc/fc_rport.c fc_rport_rtv_resp, rdata, rdata 1398 drivers/scsi/libfc/fc_rport.c fc_rport_error_retry(rdata, -FC_EX_XMIT_ERR); rdata 1399 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); rdata 1408 drivers/scsi/libfc/fc_rport.c static void fc_rport_recv_rtv_req(struct fc_rport_priv *rdata, rdata 1411 drivers/scsi/libfc/fc_rport.c struct fc_lport *lport = rdata->local_port; rdata 1416 drivers/scsi/libfc/fc_rport.c lockdep_assert_held(&rdata->rp_mutex); rdata 1419 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Received RTV request\n"); rdata 1448 drivers/scsi/libfc/fc_rport.c struct fc_rport_priv *rdata = rdata_arg; rdata 1449 drivers/scsi/libfc/fc_rport.c struct fc_lport *lport = rdata->local_port; rdata 1455 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); rdata 1464 drivers/scsi/libfc/fc_rport.c static void fc_rport_enter_logo(struct fc_rport_priv *rdata) rdata 1466 drivers/scsi/libfc/fc_rport.c struct fc_lport *lport = rdata->local_port; rdata 1469 drivers/scsi/libfc/fc_rport.c lockdep_assert_held(&rdata->rp_mutex); rdata 1471 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Port sending LOGO from %s state\n", rdata 1472 drivers/scsi/libfc/fc_rport.c fc_rport_state(rdata)); rdata 1477 drivers/scsi/libfc/fc_rport.c kref_get(&rdata->kref); rdata 1478 drivers/scsi/libfc/fc_rport.c if (!lport->tt.elsct_send(lport, rdata->ids.port_id, fp, ELS_LOGO, rdata 1479 drivers/scsi/libfc/fc_rport.c fc_rport_logo_resp, rdata, 0)) rdata 1480 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); rdata 1496 drivers/scsi/libfc/fc_rport.c struct fc_rport_priv *rdata = rdata_arg; rdata 1500 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Received a ADISC response\n"); rdata 1505 drivers/scsi/libfc/fc_rport.c mutex_lock(&rdata->rp_mutex); rdata 1507 drivers/scsi/libfc/fc_rport.c if (rdata->rp_state != RPORT_ST_ADISC) { rdata 1508 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Received a ADISC resp but in state %s\n", rdata 1509 drivers/scsi/libfc/fc_rport.c fc_rport_state(rdata)); rdata 1516 drivers/scsi/libfc/fc_rport.c fc_rport_error(rdata, PTR_ERR(fp)); rdata 1528 drivers/scsi/libfc/fc_rport.c ntoh24(adisc->adisc_port_id) != rdata->ids.port_id || rdata 1529 drivers/scsi/libfc/fc_rport.c get_unaligned_be64(&adisc->adisc_wwpn) != rdata->ids.port_name || rdata 1530 drivers/scsi/libfc/fc_rport.c get_unaligned_be64(&adisc->adisc_wwnn) != rdata->ids.node_name) { rdata 1531 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "ADISC error or mismatch\n"); rdata 1532 drivers/scsi/libfc/fc_rport.c fc_rport_enter_flogi(rdata); rdata 1534 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "ADISC OK\n"); rdata 1535 drivers/scsi/libfc/fc_rport.c fc_rport_enter_ready(rdata); rdata 1540 drivers/scsi/libfc/fc_rport.c mutex_unlock(&rdata->rp_mutex); rdata 1542 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); rdata 1551 drivers/scsi/libfc/fc_rport.c static void fc_rport_enter_adisc(struct fc_rport_priv *rdata) rdata 1553 drivers/scsi/libfc/fc_rport.c struct fc_lport *lport = rdata->local_port; rdata 1556 drivers/scsi/libfc/fc_rport.c lockdep_assert_held(&rdata->rp_mutex); rdata 1558 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "sending ADISC from %s state\n", rdata 1559 drivers/scsi/libfc/fc_rport.c fc_rport_state(rdata)); rdata 1561 drivers/scsi/libfc/fc_rport.c fc_rport_state_enter(rdata, RPORT_ST_ADISC); rdata 1565 drivers/scsi/libfc/fc_rport.c fc_rport_error_retry(rdata, -FC_EX_ALLOC_ERR); rdata 1568 drivers/scsi/libfc/fc_rport.c kref_get(&rdata->kref); rdata 1569 drivers/scsi/libfc/fc_rport.c if (!lport->tt.elsct_send(lport, rdata->ids.port_id, fp, ELS_ADISC, rdata 1570 drivers/scsi/libfc/fc_rport.c fc_rport_adisc_resp, rdata, rdata 1572 drivers/scsi/libfc/fc_rport.c fc_rport_error_retry(rdata, -FC_EX_XMIT_ERR); rdata 1573 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); rdata 1582 drivers/scsi/libfc/fc_rport.c static void fc_rport_recv_adisc_req(struct fc_rport_priv *rdata, rdata 1585 drivers/scsi/libfc/fc_rport.c struct fc_lport *lport = rdata->local_port; rdata 1590 drivers/scsi/libfc/fc_rport.c lockdep_assert_held(&rdata->rp_mutex); rdata 1593 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Received ADISC request\n"); rdata 1620 drivers/scsi/libfc/fc_rport.c static void fc_rport_recv_rls_req(struct fc_rport_priv *rdata, rdata 1624 drivers/scsi/libfc/fc_rport.c struct fc_lport *lport = rdata->local_port; rdata 1632 drivers/scsi/libfc/fc_rport.c lockdep_assert_held(&rdata->rp_mutex); rdata 1634 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Received RLS request while in state %s\n", rdata 1635 drivers/scsi/libfc/fc_rport.c fc_rport_state(rdata)); rdata 1691 drivers/scsi/libfc/fc_rport.c struct fc_rport_priv *rdata; rdata 1696 drivers/scsi/libfc/fc_rport.c rdata = fc_rport_lookup(lport, fc_frame_sid(fp)); rdata 1697 drivers/scsi/libfc/fc_rport.c if (!rdata) { rdata 1704 drivers/scsi/libfc/fc_rport.c mutex_lock(&rdata->rp_mutex); rdata 1706 drivers/scsi/libfc/fc_rport.c switch (rdata->rp_state) { rdata 1714 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Reject ELS PRLI " rdata 1716 drivers/scsi/libfc/fc_rport.c fc_rport_state(rdata)); rdata 1717 drivers/scsi/libfc/fc_rport.c mutex_unlock(&rdata->rp_mutex); rdata 1718 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); rdata 1723 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, rdata 1725 drivers/scsi/libfc/fc_rport.c fc_frame_payload_op(fp), fc_rport_state(rdata)); rdata 1726 drivers/scsi/libfc/fc_rport.c mutex_unlock(&rdata->rp_mutex); rdata 1727 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); rdata 1733 drivers/scsi/libfc/fc_rport.c fc_rport_recv_prli_req(rdata, fp); rdata 1736 drivers/scsi/libfc/fc_rport.c fc_rport_recv_prlo_req(rdata, fp); rdata 1739 drivers/scsi/libfc/fc_rport.c fc_rport_recv_adisc_req(rdata, fp); rdata 1750 drivers/scsi/libfc/fc_rport.c fc_rport_recv_rls_req(rdata, fp); rdata 1753 drivers/scsi/libfc/fc_rport.c fc_rport_recv_rtv_req(rdata, fp); rdata 1760 drivers/scsi/libfc/fc_rport.c mutex_unlock(&rdata->rp_mutex); rdata 1761 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); rdata 1838 drivers/scsi/libfc/fc_rport.c struct fc_rport_priv *rdata; rdata 1860 drivers/scsi/libfc/fc_rport.c rdata = fc_rport_create(lport, sid); rdata 1861 drivers/scsi/libfc/fc_rport.c if (!rdata) { rdata 1868 drivers/scsi/libfc/fc_rport.c mutex_lock(&rdata->rp_mutex); rdata 1871 drivers/scsi/libfc/fc_rport.c rdata->ids.port_name = get_unaligned_be64(&pl->fl_wwpn); rdata 1872 drivers/scsi/libfc/fc_rport.c rdata->ids.node_name = get_unaligned_be64(&pl->fl_wwnn); rdata 1885 drivers/scsi/libfc/fc_rport.c switch (rdata->rp_state) { rdata 1887 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Received PLOGI in INIT state\n"); rdata 1890 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Received PLOGI in PLOGI_WAIT state\n"); rdata 1893 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Received PLOGI in PLOGI state\n"); rdata 1894 drivers/scsi/libfc/fc_rport.c if (rdata->ids.port_name < lport->wwpn) { rdata 1895 drivers/scsi/libfc/fc_rport.c mutex_unlock(&rdata->rp_mutex); rdata 1905 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Received PLOGI in logged-in state %d " rdata 1906 drivers/scsi/libfc/fc_rport.c "- ignored for now\n", rdata->rp_state); rdata 1911 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Received PLOGI in state %s - send busy\n", rdata 1912 drivers/scsi/libfc/fc_rport.c fc_rport_state(rdata)); rdata 1913 drivers/scsi/libfc/fc_rport.c mutex_unlock(&rdata->rp_mutex); rdata 1918 drivers/scsi/libfc/fc_rport.c if (!fc_rport_compatible_roles(lport, rdata)) { rdata 1919 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Received PLOGI for incompatible role\n"); rdata 1920 drivers/scsi/libfc/fc_rport.c mutex_unlock(&rdata->rp_mutex); rdata 1929 drivers/scsi/libfc/fc_rport.c rdata->maxframe_size = fc_plogi_get_maxframe(pl, lport->mfs); rdata 1941 drivers/scsi/libfc/fc_rport.c fc_rport_enter_prli(rdata); rdata 1943 drivers/scsi/libfc/fc_rport.c mutex_unlock(&rdata->rp_mutex); rdata 1957 drivers/scsi/libfc/fc_rport.c static void fc_rport_recv_prli_req(struct fc_rport_priv *rdata, rdata 1960 drivers/scsi/libfc/fc_rport.c struct fc_lport *lport = rdata->local_port; rdata 1974 drivers/scsi/libfc/fc_rport.c lockdep_assert_held(&rdata->rp_mutex); rdata 1976 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Received PRLI request while in state %s\n", rdata 1977 drivers/scsi/libfc/fc_rport.c fc_rport_state(rdata)); rdata 2016 drivers/scsi/libfc/fc_rport.c rdata->spp_type = rspp->spp_type; rdata 2026 drivers/scsi/libfc/fc_rport.c active = prov->prli(rdata, plen, rspp, spp); rdata 2029 drivers/scsi/libfc/fc_rport.c passive = prov->prli(rdata, plen, rspp, spp); rdata 2034 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "PRLI rspp type %x " rdata 2073 drivers/scsi/libfc/fc_rport.c static void fc_rport_recv_prlo_req(struct fc_rport_priv *rdata, rdata 2076 drivers/scsi/libfc/fc_rport.c struct fc_lport *lport = rdata->local_port; rdata 2088 drivers/scsi/libfc/fc_rport.c lockdep_assert_held(&rdata->rp_mutex); rdata 2090 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Received PRLO request while in state %s\n", rdata 2091 drivers/scsi/libfc/fc_rport.c fc_rport_state(rdata)); rdata 2123 drivers/scsi/libfc/fc_rport.c fc_rport_enter_prli(rdata); rdata 2147 drivers/scsi/libfc/fc_rport.c struct fc_rport_priv *rdata; rdata 2156 drivers/scsi/libfc/fc_rport.c rdata = fc_rport_lookup(lport, sid); rdata 2157 drivers/scsi/libfc/fc_rport.c if (rdata) { rdata 2158 drivers/scsi/libfc/fc_rport.c mutex_lock(&rdata->rp_mutex); rdata 2159 drivers/scsi/libfc/fc_rport.c FC_RPORT_DBG(rdata, "Received LOGO request while in state %s\n", rdata 2160 drivers/scsi/libfc/fc_rport.c fc_rport_state(rdata)); rdata 2162 drivers/scsi/libfc/fc_rport.c fc_rport_enter_delete(rdata, RPORT_EV_STOP); rdata 2163 drivers/scsi/libfc/fc_rport.c mutex_unlock(&rdata->rp_mutex); rdata 2164 drivers/scsi/libfc/fc_rport.c kref_put(&rdata->kref, fc_rport_destroy); rdata 2190 drivers/scsi/libfc/fc_rport.c static int fc_rport_fcp_prli(struct fc_rport_priv *rdata, u32 spp_len, rdata 2194 drivers/scsi/libfc/fc_rport.c struct fc_lport *lport = rdata->local_port; rdata 2198 drivers/scsi/libfc/fc_rport.c rdata->ids.roles = FC_RPORT_ROLE_UNKNOWN; rdata 2200 drivers/scsi/libfc/fc_rport.c rdata->ids.roles |= FC_RPORT_ROLE_FCP_INITIATOR; rdata 2202 drivers/scsi/libfc/fc_rport.c rdata->ids.roles |= FC_RPORT_ROLE_FCP_TARGET; rdata 2204 drivers/scsi/libfc/fc_rport.c rdata->flags |= FC_RP_FLAGS_RETRY; rdata 2205 drivers/scsi/libfc/fc_rport.c rdata->supported_classes = FC_COS_CLASS3; rdata 2234 drivers/scsi/libfc/fc_rport.c static int fc_rport_t0_prli(struct fc_rport_priv *rdata, u32 spp_len, rdata 6860 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_rport_data *rdata = rport->dd_data; rdata 6861 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_nodelist *ndlp = rdata->pnode; rdata 6906 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_rport_data *rdata = rport->hostdata; \ rdata 6908 drivers/scsi/lpfc/lpfc_attr.c (rdata->target) ? cast rdata->target->field : 0); \ rdata 392 drivers/scsi/lpfc/lpfc_bsg.c struct lpfc_rport_data *rdata = fc_bsg_to_rport(job)->dd_data; rdata 393 drivers/scsi/lpfc/lpfc_bsg.c struct lpfc_nodelist *ndlp = rdata->pnode; rdata 666 drivers/scsi/lpfc/lpfc_bsg.c struct lpfc_rport_data *rdata = fc_bsg_to_rport(job)->dd_data; rdata 667 drivers/scsi/lpfc/lpfc_bsg.c struct lpfc_nodelist *ndlp = rdata->pnode; rdata 1602 drivers/scsi/lpfc/lpfc_els.c struct lpfc_rport_data *rdata; rdata 1767 drivers/scsi/lpfc/lpfc_els.c rdata = rport->dd_data; rdata 1768 drivers/scsi/lpfc/lpfc_els.c if (rdata->pnode == ndlp) { rdata 1772 drivers/scsi/lpfc/lpfc_els.c rdata->pnode = lpfc_nlp_get(new_ndlp); rdata 1848 drivers/scsi/lpfc/lpfc_els.c rdata = rport->dd_data; rdata 1849 drivers/scsi/lpfc/lpfc_els.c put_node = rdata->pnode != NULL; rdata 1851 drivers/scsi/lpfc/lpfc_els.c rdata->pnode = NULL; rdata 80 drivers/scsi/lpfc/lpfc_hbadisc.c struct lpfc_rport_data *rdata; rdata 84 drivers/scsi/lpfc/lpfc_hbadisc.c rdata = rport->dd_data; rdata 85 drivers/scsi/lpfc/lpfc_hbadisc.c ndlp = rdata->pnode; rdata 114 drivers/scsi/lpfc/lpfc_hbadisc.c struct lpfc_rport_data *rdata; rdata 124 drivers/scsi/lpfc/lpfc_hbadisc.c rdata = rport->dd_data; rdata 125 drivers/scsi/lpfc/lpfc_hbadisc.c ndlp = rdata->pnode; rdata 145 drivers/scsi/lpfc/lpfc_hbadisc.c put_node = rdata->pnode != NULL; rdata 147 drivers/scsi/lpfc/lpfc_hbadisc.c rdata->pnode = NULL; rdata 208 drivers/scsi/lpfc/lpfc_hbadisc.c struct lpfc_rport_data *rdata; rdata 249 drivers/scsi/lpfc/lpfc_hbadisc.c rdata = rport->dd_data; rdata 262 drivers/scsi/lpfc/lpfc_hbadisc.c put_node = rdata->pnode != NULL; rdata 263 drivers/scsi/lpfc/lpfc_hbadisc.c rdata->pnode = NULL; rdata 283 drivers/scsi/lpfc/lpfc_hbadisc.c put_node = rdata->pnode != NULL; rdata 284 drivers/scsi/lpfc/lpfc_hbadisc.c rdata->pnode = NULL; rdata 4119 drivers/scsi/lpfc/lpfc_hbadisc.c struct lpfc_rport_data *rdata; rdata 4141 drivers/scsi/lpfc/lpfc_hbadisc.c rdata = rport->dd_data; rdata 4144 drivers/scsi/lpfc/lpfc_hbadisc.c if (rdata) { rdata 4145 drivers/scsi/lpfc/lpfc_hbadisc.c if (rdata->pnode == ndlp) rdata 4147 drivers/scsi/lpfc/lpfc_hbadisc.c rdata->pnode = NULL; rdata 4171 drivers/scsi/lpfc/lpfc_hbadisc.c rdata = rport->dd_data; rdata 4172 drivers/scsi/lpfc/lpfc_hbadisc.c rdata->pnode = lpfc_nlp_get(ndlp); rdata 5205 drivers/scsi/lpfc/lpfc_hbadisc.c struct lpfc_rport_data *rdata; rdata 5259 drivers/scsi/lpfc/lpfc_hbadisc.c rdata = rport->dd_data; rdata 5260 drivers/scsi/lpfc/lpfc_hbadisc.c rdata->pnode = NULL; rdata 146 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_rport_data *rdata; rdata 161 drivers/scsi/lpfc/lpfc_scsi.c rdata = lpfc_cmd->rdata; rdata 162 drivers/scsi/lpfc/lpfc_scsi.c pnode = rdata->pnode; rdata 487 drivers/scsi/lpfc/lpfc_scsi.c if (psb->rdata && psb->rdata->pnode && rdata 488 drivers/scsi/lpfc/lpfc_scsi.c psb->rdata->pnode->vport == vport) rdata 489 drivers/scsi/lpfc/lpfc_scsi.c psb->rdata = NULL; rdata 541 drivers/scsi/lpfc/lpfc_scsi.c if (psb->rdata && psb->rdata->pnode) rdata 542 drivers/scsi/lpfc/lpfc_scsi.c ndlp = psb->rdata->pnode; rdata 991 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_rport_data *rdata; rdata 1024 drivers/scsi/lpfc/lpfc_scsi.c rdata = lpfc_rport_data_from_scsi_device(sc->device); rdata 1025 drivers/scsi/lpfc/lpfc_scsi.c if (rdata && rdata->pnode) { rdata 1026 drivers/scsi/lpfc/lpfc_scsi.c ndlp = rdata->pnode; rdata 3493 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_nodelist *pnode = lpfc_cmd->rdata->pnode; rdata 3800 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_rport_data *rdata = lpfc_cmd->rdata; rdata 3801 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_nodelist *pnode = rdata->pnode; rdata 4201 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_rport_data *rdata = lpfc_cmd->rdata; rdata 4202 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_nodelist *ndlp = rdata->pnode; rdata 4501 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_rport_data *rdata; rdata 4510 drivers/scsi/lpfc/lpfc_scsi.c rdata = lpfc_rport_data_from_scsi_device(cmnd->device); rdata 4513 drivers/scsi/lpfc/lpfc_scsi.c if (unlikely(!rdata) || unlikely(!rport)) rdata 4521 drivers/scsi/lpfc/lpfc_scsi.c ndlp = rdata->pnode; rdata 4587 drivers/scsi/lpfc/lpfc_scsi.c lpfc_cmd->rdata = rdata; rdata 5028 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_rport_data *rdata; rdata 5033 drivers/scsi/lpfc/lpfc_scsi.c rdata = lpfc_rport_data_from_scsi_device(cmnd->device); rdata 5034 drivers/scsi/lpfc/lpfc_scsi.c if (!rdata || !rdata->pnode || !NLP_CHK_NODE_ACT(rdata->pnode)) rdata 5036 drivers/scsi/lpfc/lpfc_scsi.c pnode = rdata->pnode; rdata 5042 drivers/scsi/lpfc/lpfc_scsi.c lpfc_cmd->rdata = rdata; rdata 5121 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_rport_data *rdata; rdata 5125 drivers/scsi/lpfc/lpfc_scsi.c rdata = lpfc_rport_data_from_scsi_device(cmnd->device); rdata 5126 drivers/scsi/lpfc/lpfc_scsi.c if (!rdata) { rdata 5128 drivers/scsi/lpfc/lpfc_scsi.c "0797 Tgt Map rport failure: rdata x%px\n", rdata); rdata 5131 drivers/scsi/lpfc/lpfc_scsi.c pnode = rdata->pnode; rdata 5143 drivers/scsi/lpfc/lpfc_scsi.c rdata = lpfc_rport_data_from_scsi_device(cmnd->device); rdata 5144 drivers/scsi/lpfc/lpfc_scsi.c if (!rdata) rdata 5146 drivers/scsi/lpfc/lpfc_scsi.c pnode = rdata->pnode; rdata 5216 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_rport_data *rdata; rdata 5223 drivers/scsi/lpfc/lpfc_scsi.c rdata = lpfc_rport_data_from_scsi_device(cmnd->device); rdata 5224 drivers/scsi/lpfc/lpfc_scsi.c if (!rdata || !rdata->pnode) { rdata 5227 drivers/scsi/lpfc/lpfc_scsi.c rdata); rdata 5230 drivers/scsi/lpfc/lpfc_scsi.c pnode = rdata->pnode; rdata 5238 drivers/scsi/lpfc/lpfc_scsi.c "0721 Device Reset rport failure: rdata x%px\n", rdata); rdata 5287 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_rport_data *rdata; rdata 5294 drivers/scsi/lpfc/lpfc_scsi.c rdata = lpfc_rport_data_from_scsi_device(cmnd->device); rdata 5295 drivers/scsi/lpfc/lpfc_scsi.c if (!rdata || !rdata->pnode) { rdata 5298 drivers/scsi/lpfc/lpfc_scsi.c rdata); rdata 5301 drivers/scsi/lpfc/lpfc_scsi.c pnode = rdata->pnode; rdata 5309 drivers/scsi/lpfc/lpfc_scsi.c "0722 Target Reset rport failure: rdata x%px\n", rdata); rdata 1131 drivers/scsi/lpfc/lpfc_sli.c ndlp = lpfc_cmd->rdata->pnode; rdata 11354 drivers/scsi/lpfc/lpfc_sli.c if ((lpfc_cmd->rdata) && (lpfc_cmd->rdata->pnode) && rdata 11355 drivers/scsi/lpfc/lpfc_sli.c (lpfc_cmd->rdata->pnode->nlp_sid == tgt_id) && rdata 11360 drivers/scsi/lpfc/lpfc_sli.c if ((lpfc_cmd->rdata) && (lpfc_cmd->rdata->pnode) && rdata 11361 drivers/scsi/lpfc/lpfc_sli.c (lpfc_cmd->rdata->pnode->nlp_sid == tgt_id)) rdata 11659 drivers/scsi/lpfc/lpfc_sli.c ndlp = lpfc_cmd->rdata->pnode; rdata 409 drivers/scsi/lpfc/lpfc_sli.h struct lpfc_rport_data *rdata; rdata 208 drivers/scsi/qedf/qedf.h struct fc_rport_priv *rdata; rdata 325 drivers/scsi/qedf/qedf_debugfs.c struct fc_rport_priv *rdata; rdata 355 drivers/scsi/qedf/qedf_debugfs.c rdata = fcport->rdata; rdata 356 drivers/scsi/qedf/qedf_debugfs.c if (rdata == NULL) rdata 359 drivers/scsi/qedf/qedf_debugfs.c rdata->rport->node_name, rdata->rport->port_name, rdata 360 drivers/scsi/qedf/qedf_debugfs.c rdata->ids.port_id, rdata 361 drivers/scsi/qedf/qedf_debugfs.c fc_rport_state_names[rdata->rp_state], rdata 107 drivers/scsi/qedf/qedf_els.c did = fcport->rdata->ids.port_id; rdata 330 drivers/scsi/qedf/qedf_els.c hton24(fh->fh_s_id, fcport->rdata->ids.port_id); rdata 352 drivers/scsi/qedf/qedf_els.c struct fc_rport_priv *rdata; rdata 375 drivers/scsi/qedf/qedf_els.c rdata = fcport->rdata; rdata 376 drivers/scsi/qedf/qedf_els.c if (rdata && !kref_get_unless_zero(&rdata->kref)) { rdata 377 drivers/scsi/qedf/qedf_els.c fcport->rdata = NULL; rdata 378 drivers/scsi/qedf/qedf_els.c rdata = NULL; rdata 381 drivers/scsi/qedf/qedf_els.c if (rdata && rdata->rp_state == RPORT_ST_READY) { rdata 383 drivers/scsi/qedf/qedf_els.c port_id = rdata->ids.port_id; rdata 386 drivers/scsi/qedf/qedf_els.c fc_rport_logoff(rdata); rdata 387 drivers/scsi/qedf/qedf_els.c kref_put(&rdata->kref, fc_rport_destroy); rdata 390 drivers/scsi/qedf/qedf_els.c rdata = fc_rport_create(lport, port_id); rdata 391 drivers/scsi/qedf/qedf_els.c if (rdata) { rdata 393 drivers/scsi/qedf/qedf_els.c fc_rport_login(rdata); rdata 394 drivers/scsi/qedf/qedf_els.c fcport->rdata = rdata; rdata 397 drivers/scsi/qedf/qedf_els.c fcport->rdata = NULL; rdata 822 drivers/scsi/qedf/qedf_io.c io_log->port_id = fcport->rdata->ids.port_id; rdata 1616 drivers/scsi/qedf/qedf_io.c fcport->rdata->ids.port_id, fcport->rport->scsi_target_id); rdata 1835 drivers/scsi/qedf/qedf_io.c struct fc_rport_priv *rdata; rdata 1853 drivers/scsi/qedf/qedf_io.c rdata = fcport->rdata; rdata 1855 drivers/scsi/qedf/qedf_io.c if (!rdata || !kref_get_unless_zero(&rdata->kref)) { rdata 1861 drivers/scsi/qedf/qedf_io.c r_a_tov = rdata->r_a_tov; rdata 1930 drivers/scsi/qedf/qedf_io.c kref_put(&rdata->kref, fc_rport_destroy); rdata 2192 drivers/scsi/qedf/qedf_io.c refcount, fcport, fcport->rdata->ids.port_id); rdata 2402 drivers/scsi/qedf/qedf_io.c struct fc_rport_priv *rdata = fcport->rdata; rdata 2409 drivers/scsi/qedf/qedf_io.c if (!rdata || !kref_get_unless_zero(&rdata->kref)) { rdata 2414 drivers/scsi/qedf/qedf_io.c QEDF_ERR(NULL, "portid=%06x tm_flags =%s\n", rdata->ids.port_id, rdata 2470 drivers/scsi/qedf/qedf_io.c if (!fcport->rdata) rdata 2476 drivers/scsi/qedf/qedf_io.c fcport, fcport->rdata->ids.port_id); rdata 2484 drivers/scsi/qedf/qedf_io.c kref_put(&rdata->kref, fc_rport_destroy); rdata 355 drivers/scsi/qedf/qedf_main.c struct fc_rport_priv *rdata; rdata 423 drivers/scsi/qedf/qedf_main.c list_for_each_entry_rcu(rdata, &lport->disc.rports, peers) { rdata 424 drivers/scsi/qedf/qedf_main.c if (kref_get_unless_zero(&rdata->kref)) { rdata 425 drivers/scsi/qedf/qedf_main.c fc_rport_login(rdata); rdata 426 drivers/scsi/qedf/qedf_main.c kref_put(&rdata->kref, fc_rport_destroy); rdata 655 drivers/scsi/qedf/qedf_main.c struct fc_rport_priv *rdata; rdata 668 drivers/scsi/qedf/qedf_main.c rdata = fcport->rdata; rdata 669 drivers/scsi/qedf/qedf_main.c if (!rdata || !kref_get_unless_zero(&rdata->kref)) { rdata 681 drivers/scsi/qedf/qedf_main.c rdata->ids.port_id); rdata 694 drivers/scsi/qedf/qedf_main.c io_req->sc_cmd, sc_cmd, rdata->ids.port_id); rdata 704 drivers/scsi/qedf/qedf_main.c refcount, rdata->ids.port_id); rdata 716 drivers/scsi/qedf/qedf_main.c io_req->xid, rdata->ids.port_id); rdata 739 drivers/scsi/qedf/qedf_main.c rdata->ids.port_id); rdata 784 drivers/scsi/qedf/qedf_main.c kref_put(&rdata->kref, fc_rport_destroy); rdata 826 drivers/scsi/qedf/qedf_main.c if (fcport->rdata) rdata 829 drivers/scsi/qedf/qedf_main.c fcport, fcport->rdata->ids.port_id); rdata 947 drivers/scsi/qedf/qedf_main.c struct fc_rport_priv *rdata; rdata 951 drivers/scsi/qedf/qedf_main.c rdata = fcport->rdata; rdata 952 drivers/scsi/qedf/qedf_main.c if (rdata == NULL) rdata 954 drivers/scsi/qedf/qedf_main.c if (rdata->ids.port_id == port_id) { rdata 1035 drivers/scsi/qedf/qedf_main.c struct fc_rport_priv *rdata = NULL; rdata 1040 drivers/scsi/qedf/qedf_main.c rdata = fc_rport_lookup(lport, ntoh24(fh->fh_d_id)); rdata 1041 drivers/scsi/qedf/qedf_main.c if (rdata) { rdata 1042 drivers/scsi/qedf/qedf_main.c rdata->retries = lport->max_rport_retry_count; rdata 1043 drivers/scsi/qedf/qedf_main.c kref_put(&rdata->kref, fc_rport_destroy); rdata 1249 drivers/scsi/qedf/qedf_main.c "portid=%06x.\n", fcport->rdata->ids.port_id); rdata 1254 drivers/scsi/qedf/qedf_main.c "for portid=%06x.\n", fcport->rdata->ids.port_id); rdata 1260 drivers/scsi/qedf/qedf_main.c "fw_cid=%08x handle=%d.\n", fcport->rdata->ids.port_id, rdata 1277 drivers/scsi/qedf/qedf_main.c conn_info.tx_max_fc_pay_len = fcport->rdata->maxframe_size; rdata 1280 drivers/scsi/qedf/qedf_main.c conn_info.rx_max_fc_pay_len = fcport->rdata->maxframe_size; rdata 1297 drivers/scsi/qedf/qedf_main.c conn_info.max_conc_seqs_c3 = fcport->rdata->max_seq; rdata 1300 drivers/scsi/qedf/qedf_main.c port_id = fcport->rdata->rport->port_id; rdata 1311 drivers/scsi/qedf/qedf_main.c fcport->rdata->ids.port_id); rdata 1315 drivers/scsi/qedf/qedf_main.c ((fcport->rdata->sp_features & FC_SP_FT_SEQC) ? 1 : 0) << rdata 1322 drivers/scsi/qedf/qedf_main.c "for portid=%06x.\n", fcport->rdata->ids.port_id); rdata 1327 drivers/scsi/qedf/qedf_main.c fcport->rdata->ids.port_id, total_sqe); rdata 1353 drivers/scsi/qedf/qedf_main.c "port_id=%06x.\n", fcport->rdata->ids.port_id); rdata 1365 drivers/scsi/qedf/qedf_main.c struct fc_rport_priv *rdata = fcport->rdata; rdata 1368 drivers/scsi/qedf/qedf_main.c fcport->rdata->ids.port_id); rdata 1376 drivers/scsi/qedf/qedf_main.c fcport->rdata = NULL; rdata 1378 drivers/scsi/qedf/qedf_main.c kref_put(&rdata->kref, fc_rport_destroy); rdata 1387 drivers/scsi/qedf/qedf_main.c struct fc_rport_priv *rdata, rdata 1391 drivers/scsi/qedf/qedf_main.c struct fc_rport *rport = rdata->rport; rdata 1399 drivers/scsi/qedf/qedf_main.c "port_id = 0x%x\n", event, rdata->ids.port_id); rdata 1415 drivers/scsi/qedf/qedf_main.c "reached.\n", rdata->ids.port_id); rdata 1426 drivers/scsi/qedf/qedf_main.c rdata->ids.port_id); rdata 1439 drivers/scsi/qedf/qedf_main.c rdata->ids.port_id); rdata 1443 drivers/scsi/qedf/qedf_main.c if (rdata->spp_type != FC_TYPE_FCP) { rdata 1448 drivers/scsi/qedf/qedf_main.c if (!(rdata->ids.roles & FC_RPORT_ROLE_FCP_TARGET)) { rdata 1455 drivers/scsi/qedf/qedf_main.c kref_get(&rdata->kref); rdata 1456 drivers/scsi/qedf/qedf_main.c fcport->rdata = rdata; rdata 1466 drivers/scsi/qedf/qedf_main.c if (rdata->flags & FC_RP_FLAGS_RETRY && rdata 1467 drivers/scsi/qedf/qedf_main.c rdata->ids.roles & FC_RPORT_ROLE_FCP_TARGET && rdata 1468 drivers/scsi/qedf/qedf_main.c !(rdata->ids.roles & FC_RPORT_ROLE_FCP_INITIATOR)) { rdata 1472 drivers/scsi/qedf/qedf_main.c rdata->ids.port_id); rdata 1499 drivers/scsi/qedf/qedf_main.c port_id = rdata->ids.port_id; rdata 968 drivers/soc/mediatek/mtk-pmic-wrap.c int (*pwrap_read)(struct pmic_wrapper *wrp, u32 adr, u32 *rdata); rdata 1066 drivers/soc/mediatek/mtk-pmic-wrap.c static int pwrap_read16(struct pmic_wrapper *wrp, u32 adr, u32 *rdata) rdata 1082 drivers/soc/mediatek/mtk-pmic-wrap.c *rdata = PWRAP_GET_WACS_RDATA(pwrap_readl(wrp, PWRAP_WACS2_RDATA)); rdata 1089 drivers/soc/mediatek/mtk-pmic-wrap.c static int pwrap_read32(struct pmic_wrapper *wrp, u32 adr, u32 *rdata) rdata 1093 drivers/soc/mediatek/mtk-pmic-wrap.c *rdata = 0; rdata 1108 drivers/soc/mediatek/mtk-pmic-wrap.c *rdata += (PWRAP_GET_WACS_RDATA(pwrap_readl(wrp, rdata 1117 drivers/soc/mediatek/mtk-pmic-wrap.c static int pwrap_read(struct pmic_wrapper *wrp, u32 adr, u32 *rdata) rdata 1119 drivers/soc/mediatek/mtk-pmic-wrap.c return wrp->slave->pwrap_read(wrp, adr, rdata); rdata 1140 drivers/soc/mediatek/mtk-pmic-wrap.c int ret, msb, rdata; rdata 1161 drivers/soc/mediatek/mtk-pmic-wrap.c pwrap_read(wrp, adr, &rdata); rdata 1172 drivers/soc/mediatek/mtk-pmic-wrap.c static int pwrap_regmap_read(void *context, u32 adr, u32 *rdata) rdata 1174 drivers/soc/mediatek/mtk-pmic-wrap.c return pwrap_read(context, adr, rdata); rdata 1223 drivers/soc/mediatek/mtk-pmic-wrap.c u32 rdata; rdata 1233 drivers/soc/mediatek/mtk-pmic-wrap.c &rdata); rdata 1234 drivers/soc/mediatek/mtk-pmic-wrap.c if (rdata == PWRAP_DEW_READ_TEST_VAL) { rdata 1254 drivers/soc/mediatek/mtk-pmic-wrap.c u32 rdata; rdata 1271 drivers/soc/mediatek/mtk-pmic-wrap.c wrp->slave->dew_regs[PWRAP_DEW_READ_TEST], &rdata); rdata 1272 drivers/soc/mediatek/mtk-pmic-wrap.c if (rdata != PWRAP_DEW_READ_TEST_VAL) { rdata 1275 drivers/soc/mediatek/mtk-pmic-wrap.c PWRAP_DEW_READ_TEST_VAL, rdata); rdata 1352 drivers/soc/mediatek/mtk-pmic-wrap.c u32 rdata; rdata 1356 drivers/soc/mediatek/mtk-pmic-wrap.c &rdata); rdata 1360 drivers/soc/mediatek/mtk-pmic-wrap.c return rdata == 1; rdata 1366 drivers/soc/mediatek/mtk-pmic-wrap.c u32 rdata = 0; rdata 1444 drivers/soc/mediatek/mtk-pmic-wrap.c &rdata) || rdata 1445 drivers/soc/mediatek/mtk-pmic-wrap.c (rdata != PWRAP_DEW_WRITE_TEST_VAL)) { rdata 1446 drivers/soc/mediatek/mtk-pmic-wrap.c dev_err(wrp->dev, "rdata=0x%04X\n", rdata); rdata 1643 drivers/soc/mediatek/mtk-pmic-wrap.c u32 rdata; rdata 1646 drivers/soc/mediatek/mtk-pmic-wrap.c rdata = pwrap_readl(wrp, PWRAP_INT_FLG); rdata 1647 drivers/soc/mediatek/mtk-pmic-wrap.c dev_err(wrp->dev, "unexpected interrupt int=0x%x\n", rdata); rdata 1651 drivers/soc/mediatek/mtk-pmic-wrap.c rdata = pwrap_readl(wrp, PWRAP_INT1_FLG); rdata 1652 drivers/soc/mediatek/mtk-pmic-wrap.c dev_err(wrp->dev, "unexpected interrupt int1=0x%x\n", rdata); rdata 208 drivers/target/tcm_fc/tfc_sess.c struct fc_rport_priv *rdata) rdata 215 drivers/target/tcm_fc/tfc_sess.c ft_format_wwn(&initiatorname[0], TRANSPORT_IQN_LEN, rdata->ids.port_name); rdata 347 drivers/target/tcm_fc/tfc_sess.c static int ft_prli_locked(struct fc_rport_priv *rdata, u32 spp_len, rdata 354 drivers/target/tcm_fc/tfc_sess.c tport = ft_tport_get(rdata->local_port); rdata 379 drivers/target/tcm_fc/tfc_sess.c sess = ft_sess_create(tport, rdata->ids.port_id, rdata); rdata 388 drivers/target/tcm_fc/tfc_sess.c rdata->prli_count++; rdata 390 drivers/target/tcm_fc/tfc_sess.c sess->port_name = rdata->ids.port_name; rdata 391 drivers/target/tcm_fc/tfc_sess.c sess->max_frame = rdata->maxframe_size; rdata 421 drivers/target/tcm_fc/tfc_sess.c static int ft_prli(struct fc_rport_priv *rdata, u32 spp_len, rdata 427 drivers/target/tcm_fc/tfc_sess.c ret = ft_prli_locked(rdata, spp_len, rspp, spp); rdata 429 drivers/target/tcm_fc/tfc_sess.c TFC_SESS_DBG(rdata->local_port, "port_id %x flags %x ret %x\n", rdata 430 drivers/target/tcm_fc/tfc_sess.c rdata->ids.port_id, rspp ? rspp->spp_flags : 0, ret); rdata 450 drivers/target/tcm_fc/tfc_sess.c static void ft_prlo(struct fc_rport_priv *rdata) rdata 456 drivers/target/tcm_fc/tfc_sess.c tport = rcu_dereference_protected(rdata->local_port->prov[FC_TYPE_FCP], rdata 463 drivers/target/tcm_fc/tfc_sess.c sess = ft_sess_delete(tport, rdata->ids.port_id); rdata 470 drivers/target/tcm_fc/tfc_sess.c rdata->prli_count--; rdata 105 drivers/tty/serial/ar933x_uart.c unsigned int rdata; rdata 107 drivers/tty/serial/ar933x_uart.c rdata = ch & AR933X_UART_DATA_TX_RX_MASK; rdata 108 drivers/tty/serial/ar933x_uart.c rdata |= AR933X_UART_DATA_TX_CSR; rdata 109 drivers/tty/serial/ar933x_uart.c ar933x_uart_write(up, AR933X_UART_DATA_REG, rdata); rdata 117 drivers/tty/serial/ar933x_uart.c unsigned int rdata; rdata 120 drivers/tty/serial/ar933x_uart.c rdata = ar933x_uart_read(up, AR933X_UART_DATA_REG); rdata 123 drivers/tty/serial/ar933x_uart.c return (rdata & AR933X_UART_DATA_TX_CSR) ? 0 : TIOCSER_TEMT; rdata 310 drivers/tty/serial/ar933x_uart.c unsigned int rdata; rdata 313 drivers/tty/serial/ar933x_uart.c rdata = ar933x_uart_read(up, AR933X_UART_DATA_REG); rdata 314 drivers/tty/serial/ar933x_uart.c if ((rdata & AR933X_UART_DATA_RX_CSR) == 0) rdata 322 drivers/tty/serial/ar933x_uart.c ch = rdata & AR933X_UART_DATA_TX_RX_MASK; rdata 346 drivers/tty/serial/ar933x_uart.c unsigned int rdata; rdata 348 drivers/tty/serial/ar933x_uart.c rdata = ar933x_uart_read(up, AR933X_UART_DATA_REG); rdata 349 drivers/tty/serial/ar933x_uart.c if ((rdata & AR933X_UART_DATA_TX_CSR) == 0) rdata 194 drivers/usb/atm/cxacru.c u8 *wdata, int wsize, u8 *rdata, int rsize); rdata 610 drivers/usb/atm/cxacru.c u8 *wdata, int wsize, u8 *rdata, int rsize) rdata 697 drivers/usb/atm/cxacru.c memcpy(rdata + offd, rbuf + offb + 4, min_t(int, stride, rsize - offd)); rdata 589 drivers/usb/host/ohci-dbg.c u32 rdata; rdata 624 drivers/usb/host/ohci-dbg.c rdata = ohci_readl (ohci, ®s->fminterval); rdata 627 drivers/usb/host/ohci-dbg.c rdata, (rdata >> 31) ? "FIT " : "", rdata 628 drivers/usb/host/ohci-dbg.c (rdata >> 16) & 0xefff, rdata & 0xffff); rdata 632 drivers/usb/host/ohci-dbg.c rdata = ohci_readl (ohci, ®s->fmremaining); rdata 634 drivers/usb/host/ohci-dbg.c rdata, (rdata >> 31) ? "FRT " : "", rdata 635 drivers/usb/host/ohci-dbg.c rdata & 0x3fff); rdata 639 drivers/usb/host/ohci-dbg.c rdata = ohci_readl (ohci, ®s->periodicstart); rdata 641 drivers/usb/host/ohci-dbg.c rdata & 0x3fff); rdata 645 drivers/usb/host/ohci-dbg.c rdata = ohci_readl (ohci, ®s->lsthresh); rdata 647 drivers/usb/host/ohci-dbg.c rdata & 0x3fff); rdata 1321 fs/cifs/cifsglob.h struct cifs_readdata *rdata, rdata 1324 fs/cifs/cifsglob.h struct cifs_readdata *rdata, rdata 553 fs/cifs/cifsproto.h int cifs_async_readv(struct cifs_readdata *rdata); rdata 1555 fs/cifs/cifssmb.c struct cifs_readdata *rdata = mid->callback_data; rdata 1557 fs/cifs/cifssmb.c return __cifs_readv_discard(server, mid, rdata->result); rdata 1565 fs/cifs/cifssmb.c struct cifs_readdata *rdata = mid->callback_data; rdata 1572 fs/cifs/cifssmb.c __func__, mid->mid, rdata->offset, rdata->bytes); rdata 1602 fs/cifs/cifssmb.c rdata->iov[0].iov_base = buf; rdata 1603 fs/cifs/cifssmb.c rdata->iov[0].iov_len = server->vals->header_preamble_size; rdata 1604 fs/cifs/cifssmb.c rdata->iov[1].iov_base = buf + server->vals->header_preamble_size; rdata 1605 fs/cifs/cifssmb.c rdata->iov[1].iov_len = rdata 1608 fs/cifs/cifssmb.c rdata->iov[0].iov_base, rdata->iov[0].iov_len); rdata 1610 fs/cifs/cifssmb.c rdata->iov[1].iov_base, rdata->iov[1].iov_len); rdata 1613 fs/cifs/cifssmb.c rdata->result = server->ops->map_error(buf, false); rdata 1614 fs/cifs/cifssmb.c if (rdata->result != 0) { rdata 1616 fs/cifs/cifssmb.c __func__, rdata->result); rdata 1626 fs/cifs/cifssmb.c rdata->result = -EIO; rdata 1645 fs/cifs/cifssmb.c rdata->result = -EIO; rdata 1664 fs/cifs/cifssmb.c use_rdma_mr = rdata->mr; rdata 1669 fs/cifs/cifssmb.c rdata->result = -EIO; rdata 1673 fs/cifs/cifssmb.c length = rdata->read_into_pages(server, rdata, data_len); rdata 1695 fs/cifs/cifssmb.c struct cifs_readdata *rdata = mid->callback_data; rdata 1696 fs/cifs/cifssmb.c struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); rdata 1698 fs/cifs/cifssmb.c struct smb_rqst rqst = { .rq_iov = rdata->iov, rdata 1700 fs/cifs/cifssmb.c .rq_pages = rdata->pages, rdata 1701 fs/cifs/cifssmb.c .rq_offset = rdata->page_offset, rdata 1702 fs/cifs/cifssmb.c .rq_npages = rdata->nr_pages, rdata 1703 fs/cifs/cifssmb.c .rq_pagesz = rdata->pagesz, rdata 1704 fs/cifs/cifssmb.c .rq_tailsz = rdata->tailsz }; rdata 1708 fs/cifs/cifssmb.c __func__, mid->mid, mid->mid_state, rdata->result, rdata 1709 fs/cifs/cifssmb.c rdata->bytes); rdata 1724 fs/cifs/cifssmb.c task_io_account_read(rdata->got_bytes); rdata 1725 fs/cifs/cifssmb.c cifs_stats_bytes_read(tcon, rdata->got_bytes); rdata 1729 fs/cifs/cifssmb.c rdata->result = -EAGAIN; rdata 1730 fs/cifs/cifssmb.c if (server->sign && rdata->got_bytes) rdata 1732 fs/cifs/cifssmb.c rdata->got_bytes = 0; rdata 1734 fs/cifs/cifssmb.c task_io_account_read(rdata->got_bytes); rdata 1735 fs/cifs/cifssmb.c cifs_stats_bytes_read(tcon, rdata->got_bytes); rdata 1738 fs/cifs/cifssmb.c rdata->result = -EIO; rdata 1741 fs/cifs/cifssmb.c queue_work(cifsiod_wq, &rdata->work); rdata 1748 fs/cifs/cifssmb.c cifs_async_readv(struct cifs_readdata *rdata) rdata 1753 fs/cifs/cifssmb.c struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); rdata 1754 fs/cifs/cifssmb.c struct smb_rqst rqst = { .rq_iov = rdata->iov, rdata 1758 fs/cifs/cifssmb.c __func__, rdata->offset, rdata->bytes); rdata 1764 fs/cifs/cifssmb.c if ((rdata->offset >> 32) > 0) { rdata 1774 fs/cifs/cifssmb.c smb->hdr.Pid = cpu_to_le16((__u16)rdata->pid); rdata 1775 fs/cifs/cifssmb.c smb->hdr.PidHigh = cpu_to_le16((__u16)(rdata->pid >> 16)); rdata 1778 fs/cifs/cifssmb.c smb->Fid = rdata->cfile->fid.netfid; rdata 1779 fs/cifs/cifssmb.c smb->OffsetLow = cpu_to_le32(rdata->offset & 0xFFFFFFFF); rdata 1781 fs/cifs/cifssmb.c smb->OffsetHigh = cpu_to_le32(rdata->offset >> 32); rdata 1783 fs/cifs/cifssmb.c smb->MaxCount = cpu_to_le16(rdata->bytes & 0xFFFF); rdata 1784 fs/cifs/cifssmb.c smb->MaxCountHigh = cpu_to_le32(rdata->bytes >> 16); rdata 1795 fs/cifs/cifssmb.c rdata->iov[0].iov_base = smb; rdata 1796 fs/cifs/cifssmb.c rdata->iov[0].iov_len = 4; rdata 1797 fs/cifs/cifssmb.c rdata->iov[1].iov_base = (char *)smb + 4; rdata 1798 fs/cifs/cifssmb.c rdata->iov[1].iov_len = get_rfc1002_length(smb); rdata 1800 fs/cifs/cifssmb.c kref_get(&rdata->refcount); rdata 1802 fs/cifs/cifssmb.c cifs_readv_callback, NULL, rdata, 0, NULL); rdata 1807 fs/cifs/cifssmb.c kref_put(&rdata->refcount, cifs_readdata_release); rdata 3270 fs/cifs/file.c struct cifs_readdata *rdata; rdata 3272 fs/cifs/file.c rdata = kzalloc(sizeof(*rdata), GFP_KERNEL); rdata 3273 fs/cifs/file.c if (rdata != NULL) { rdata 3274 fs/cifs/file.c rdata->pages = pages; rdata 3275 fs/cifs/file.c kref_init(&rdata->refcount); rdata 3276 fs/cifs/file.c INIT_LIST_HEAD(&rdata->list); rdata 3277 fs/cifs/file.c init_completion(&rdata->done); rdata 3278 fs/cifs/file.c INIT_WORK(&rdata->work, complete); rdata 3281 fs/cifs/file.c return rdata; rdata 3303 fs/cifs/file.c struct cifs_readdata *rdata = container_of(refcount, rdata 3306 fs/cifs/file.c if (rdata->mr) { rdata 3307 fs/cifs/file.c smbd_deregister_mr(rdata->mr); rdata 3308 fs/cifs/file.c rdata->mr = NULL; rdata 3311 fs/cifs/file.c if (rdata->cfile) rdata 3312 fs/cifs/file.c cifsFileInfo_put(rdata->cfile); rdata 3314 fs/cifs/file.c kvfree(rdata->pages); rdata 3315 fs/cifs/file.c kfree(rdata); rdata 3319 fs/cifs/file.c cifs_read_allocate_pages(struct cifs_readdata *rdata, unsigned int nr_pages) rdata 3331 fs/cifs/file.c rdata->pages[i] = page; rdata 3338 fs/cifs/file.c put_page(rdata->pages[i]); rdata 3339 fs/cifs/file.c rdata->pages[i] = NULL; rdata 3348 fs/cifs/file.c struct cifs_readdata *rdata = container_of(refcount, rdata 3352 fs/cifs/file.c kref_put(&rdata->ctx->refcount, cifs_aio_ctx_release); rdata 3353 fs/cifs/file.c for (i = 0; i < rdata->nr_pages; i++) { rdata 3354 fs/cifs/file.c put_page(rdata->pages[i]); rdata 3369 fs/cifs/file.c cifs_readdata_to_iov(struct cifs_readdata *rdata, struct iov_iter *iter) rdata 3371 fs/cifs/file.c size_t remaining = rdata->got_bytes; rdata 3374 fs/cifs/file.c for (i = 0; i < rdata->nr_pages; i++) { rdata 3375 fs/cifs/file.c struct page *page = rdata->pages[i]; rdata 3398 fs/cifs/file.c struct cifs_readdata *rdata = container_of(work, rdata 3401 fs/cifs/file.c complete(&rdata->done); rdata 3402 fs/cifs/file.c collect_uncached_read_data(rdata->ctx); rdata 3404 fs/cifs/file.c kref_put(&rdata->refcount, cifs_uncached_readdata_release); rdata 3409 fs/cifs/file.c struct cifs_readdata *rdata, struct iov_iter *iter, rdata 3414 fs/cifs/file.c unsigned int nr_pages = rdata->nr_pages; rdata 3415 fs/cifs/file.c unsigned int page_offset = rdata->page_offset; rdata 3417 fs/cifs/file.c rdata->got_bytes = 0; rdata 3418 fs/cifs/file.c rdata->tailsz = PAGE_SIZE; rdata 3420 fs/cifs/file.c struct page *page = rdata->pages[i]; rdata 3422 fs/cifs/file.c unsigned int segment_size = rdata->pagesz; rdata 3432 fs/cifs/file.c rdata->pages[i] = NULL; rdata 3433 fs/cifs/file.c rdata->nr_pages--; rdata 3443 fs/cifs/file.c rdata->tailsz = len; rdata 3450 fs/cifs/file.c else if (rdata->mr) rdata 3459 fs/cifs/file.c rdata->got_bytes += result; rdata 3462 fs/cifs/file.c return rdata->got_bytes > 0 && result != -ECONNABORTED ? rdata 3463 fs/cifs/file.c rdata->got_bytes : result; rdata 3468 fs/cifs/file.c struct cifs_readdata *rdata, unsigned int len) rdata 3470 fs/cifs/file.c return uncached_fill_pages(server, rdata, NULL, len); rdata 3475 fs/cifs/file.c struct cifs_readdata *rdata, rdata 3478 fs/cifs/file.c return uncached_fill_pages(server, rdata, iter, iter->count); rdata 3481 fs/cifs/file.c static int cifs_resend_rdata(struct cifs_readdata *rdata, rdata 3489 fs/cifs/file.c tlink_tcon(rdata->cfile->tlink)->ses->server; rdata 3492 fs/cifs/file.c if (rdata->cfile->invalidHandle) { rdata 3493 fs/cifs/file.c rc = cifs_reopen_file(rdata->cfile, true); rdata 3506 fs/cifs/file.c rc = server->ops->wait_mtu_credits(server, rdata->bytes, rdata 3512 fs/cifs/file.c if (rsize < rdata->bytes) { rdata 3516 fs/cifs/file.c } while (rsize < rdata->bytes); rdata 3517 fs/cifs/file.c rdata->credits = credits; rdata 3519 fs/cifs/file.c rc = adjust_credits(server, &rdata->credits, rdata->bytes); rdata 3521 fs/cifs/file.c if (rdata->cfile->invalidHandle) rdata 3524 fs/cifs/file.c rc = server->ops->async_readv(rdata); rdata 3530 fs/cifs/file.c list_add_tail(&rdata->list, rdata_list); rdata 3535 fs/cifs/file.c add_credits_and_wake_if(server, &rdata->credits, 0); rdata 3539 fs/cifs/file.c kref_put(&rdata->refcount, cifs_uncached_readdata_release); rdata 3548 fs/cifs/file.c struct cifs_readdata *rdata; rdata 3609 fs/cifs/file.c rdata = cifs_readdata_direct_alloc( rdata 3611 fs/cifs/file.c if (!rdata) { rdata 3618 fs/cifs/file.c rdata->page_offset = start; rdata 3619 fs/cifs/file.c rdata->tailsz = npages > 1 ? rdata 3627 fs/cifs/file.c rdata = cifs_readdata_alloc(npages, rdata 3629 fs/cifs/file.c if (!rdata) { rdata 3635 fs/cifs/file.c rc = cifs_read_allocate_pages(rdata, npages); rdata 3637 fs/cifs/file.c kvfree(rdata->pages); rdata 3638 fs/cifs/file.c kfree(rdata); rdata 3643 fs/cifs/file.c rdata->tailsz = PAGE_SIZE; rdata 3646 fs/cifs/file.c rdata->cfile = cifsFileInfo_get(open_file); rdata 3647 fs/cifs/file.c rdata->nr_pages = npages; rdata 3648 fs/cifs/file.c rdata->offset = offset; rdata 3649 fs/cifs/file.c rdata->bytes = cur_len; rdata 3650 fs/cifs/file.c rdata->pid = pid; rdata 3651 fs/cifs/file.c rdata->pagesz = PAGE_SIZE; rdata 3652 fs/cifs/file.c rdata->read_into_pages = cifs_uncached_read_into_pages; rdata 3653 fs/cifs/file.c rdata->copy_into_pages = cifs_uncached_copy_into_pages; rdata 3654 fs/cifs/file.c rdata->credits = credits_on_stack; rdata 3655 fs/cifs/file.c rdata->ctx = ctx; rdata 3658 fs/cifs/file.c rc = adjust_credits(server, &rdata->credits, rdata->bytes); rdata 3661 fs/cifs/file.c if (rdata->cfile->invalidHandle) rdata 3664 fs/cifs/file.c rc = server->ops->async_readv(rdata); rdata 3668 fs/cifs/file.c add_credits_and_wake_if(server, &rdata->credits, 0); rdata 3669 fs/cifs/file.c kref_put(&rdata->refcount, rdata 3678 fs/cifs/file.c list_add_tail(&rdata->list, rdata_list); rdata 3689 fs/cifs/file.c struct cifs_readdata *rdata, *tmp; rdata 3706 fs/cifs/file.c list_for_each_entry_safe(rdata, tmp, &ctx->list, list) { rdata 3708 fs/cifs/file.c if (!try_wait_for_completion(&rdata->done)) { rdata 3713 fs/cifs/file.c if (rdata->result == -EAGAIN) { rdata 3716 fs/cifs/file.c unsigned int got_bytes = rdata->got_bytes; rdata 3718 fs/cifs/file.c list_del_init(&rdata->list); rdata 3726 fs/cifs/file.c if (got_bytes && got_bytes < rdata->bytes) { rdata 3729 fs/cifs/file.c rc = cifs_readdata_to_iov(rdata, to); rdata 3731 fs/cifs/file.c kref_put(&rdata->refcount, rdata 3743 fs/cifs/file.c rdata, rdata 3747 fs/cifs/file.c rdata->offset + got_bytes, rdata 3748 fs/cifs/file.c rdata->bytes - got_bytes, rdata 3749 fs/cifs/file.c rdata->cfile, cifs_sb, rdata 3752 fs/cifs/file.c kref_put(&rdata->refcount, rdata 3759 fs/cifs/file.c } else if (rdata->result) rdata 3760 fs/cifs/file.c rc = rdata->result; rdata 3762 fs/cifs/file.c rc = cifs_readdata_to_iov(rdata, to); rdata 3765 fs/cifs/file.c if (rdata->got_bytes && rdata->got_bytes < rdata->bytes) rdata 3768 fs/cifs/file.c ctx->total_len += rdata->got_bytes; rdata 3770 fs/cifs/file.c list_del_init(&rdata->list); rdata 3771 fs/cifs/file.c kref_put(&rdata->refcount, cifs_uncached_readdata_release); rdata 4095 fs/cifs/file.c struct cifs_readdata *rdata = container_of(work, rdata 4098 fs/cifs/file.c got_bytes = rdata->got_bytes; rdata 4099 fs/cifs/file.c for (i = 0; i < rdata->nr_pages; i++) { rdata 4100 fs/cifs/file.c struct page *page = rdata->pages[i]; rdata 4104 fs/cifs/file.c if (rdata->result == 0 || rdata 4105 fs/cifs/file.c (rdata->result == -EAGAIN && got_bytes)) { rdata 4112 fs/cifs/file.c if (rdata->result == 0 || rdata 4113 fs/cifs/file.c (rdata->result == -EAGAIN && got_bytes)) rdata 4114 fs/cifs/file.c cifs_readpage_to_fscache(rdata->mapping->host, page); rdata 4119 fs/cifs/file.c rdata->pages[i] = NULL; rdata 4121 fs/cifs/file.c kref_put(&rdata->refcount, cifs_readdata_release); rdata 4126 fs/cifs/file.c struct cifs_readdata *rdata, struct iov_iter *iter, rdata 4133 fs/cifs/file.c unsigned int nr_pages = rdata->nr_pages; rdata 4134 fs/cifs/file.c unsigned int page_offset = rdata->page_offset; rdata 4137 fs/cifs/file.c eof = CIFS_I(rdata->mapping->host)->server_eof; rdata 4141 fs/cifs/file.c rdata->got_bytes = 0; rdata 4142 fs/cifs/file.c rdata->tailsz = PAGE_SIZE; rdata 4144 fs/cifs/file.c struct page *page = rdata->pages[i]; rdata 4145 fs/cifs/file.c unsigned int to_read = rdata->pagesz; rdata 4160 fs/cifs/file.c n = rdata->tailsz = len; rdata 4177 fs/cifs/file.c rdata->pages[i] = NULL; rdata 4178 fs/cifs/file.c rdata->nr_pages--; rdata 4185 fs/cifs/file.c rdata->pages[i] = NULL; rdata 4186 fs/cifs/file.c rdata->nr_pages--; rdata 4194 fs/cifs/file.c else if (rdata->mr) rdata 4203 fs/cifs/file.c rdata->got_bytes += result; rdata 4206 fs/cifs/file.c return rdata->got_bytes > 0 && result != -ECONNABORTED ? rdata 4207 fs/cifs/file.c rdata->got_bytes : result; rdata 4212 fs/cifs/file.c struct cifs_readdata *rdata, unsigned int len) rdata 4214 fs/cifs/file.c return readpages_fill_pages(server, rdata, NULL, len); rdata 4219 fs/cifs/file.c struct cifs_readdata *rdata, rdata 4222 fs/cifs/file.c return readpages_fill_pages(server, rdata, iter, iter->count); rdata 4336 fs/cifs/file.c struct cifs_readdata *rdata; rdata 4372 fs/cifs/file.c rdata = cifs_readdata_alloc(nr_pages, cifs_readv_complete); rdata 4373 fs/cifs/file.c if (!rdata) { rdata 4386 fs/cifs/file.c rdata->cfile = cifsFileInfo_get(open_file); rdata 4387 fs/cifs/file.c rdata->mapping = mapping; rdata 4388 fs/cifs/file.c rdata->offset = offset; rdata 4389 fs/cifs/file.c rdata->bytes = bytes; rdata 4390 fs/cifs/file.c rdata->pid = pid; rdata 4391 fs/cifs/file.c rdata->pagesz = PAGE_SIZE; rdata 4392 fs/cifs/file.c rdata->tailsz = PAGE_SIZE; rdata 4393 fs/cifs/file.c rdata->read_into_pages = cifs_readpages_read_into_pages; rdata 4394 fs/cifs/file.c rdata->copy_into_pages = cifs_readpages_copy_into_pages; rdata 4395 fs/cifs/file.c rdata->credits = credits_on_stack; rdata 4399 fs/cifs/file.c rdata->pages[rdata->nr_pages++] = page; rdata 4402 fs/cifs/file.c rc = adjust_credits(server, &rdata->credits, rdata->bytes); rdata 4405 fs/cifs/file.c if (rdata->cfile->invalidHandle) rdata 4408 fs/cifs/file.c rc = server->ops->async_readv(rdata); rdata 4412 fs/cifs/file.c add_credits_and_wake_if(server, &rdata->credits, 0); rdata 4413 fs/cifs/file.c for (i = 0; i < rdata->nr_pages; i++) { rdata 4414 fs/cifs/file.c page = rdata->pages[i]; rdata 4420 fs/cifs/file.c kref_put(&rdata->refcount, cifs_readdata_release); rdata 4424 fs/cifs/file.c kref_put(&rdata->refcount, cifs_readdata_release); rdata 3958 fs/cifs/smb2ops.c struct cifs_readdata *rdata = mid->callback_data; rdata 3983 fs/cifs/smb2ops.c rdata->iov[0].iov_base = buf; rdata 3984 fs/cifs/smb2ops.c rdata->iov[0].iov_len = 0; rdata 3985 fs/cifs/smb2ops.c rdata->iov[1].iov_base = buf; rdata 3986 fs/cifs/smb2ops.c rdata->iov[1].iov_len = rdata 3989 fs/cifs/smb2ops.c rdata->iov[0].iov_base, rdata->iov[0].iov_len); rdata 3991 fs/cifs/smb2ops.c rdata->iov[1].iov_base, rdata->iov[1].iov_len); rdata 3993 fs/cifs/smb2ops.c rdata->result = server->ops->map_error(buf, true); rdata 3994 fs/cifs/smb2ops.c if (rdata->result != 0) { rdata 3996 fs/cifs/smb2ops.c __func__, rdata->result); rdata 4004 fs/cifs/smb2ops.c use_rdma_mr = rdata->mr; rdata 4021 fs/cifs/smb2ops.c rdata->result = -EIO; rdata 4022 fs/cifs/smb2ops.c dequeue_mid(mid, rdata->result); rdata 4037 fs/cifs/smb2ops.c rdata->result = -EIO; rdata 4038 fs/cifs/smb2ops.c dequeue_mid(mid, rdata->result); rdata 4044 fs/cifs/smb2ops.c rdata->result = -EIO; rdata 4045 fs/cifs/smb2ops.c dequeue_mid(mid, rdata->result); rdata 4049 fs/cifs/smb2ops.c rdata->result = init_read_bvec(pages, npages, page_data_size, rdata 4051 fs/cifs/smb2ops.c if (rdata->result != 0) { rdata 4052 fs/cifs/smb2ops.c dequeue_mid(mid, rdata->result); rdata 4066 fs/cifs/smb2ops.c rdata->result = -EIO; rdata 4067 fs/cifs/smb2ops.c dequeue_mid(mid, rdata->result); rdata 4071 fs/cifs/smb2ops.c length = rdata->copy_into_pages(server, rdata, &iter); rdata 3531 fs/cifs/smb2pdu.c struct cifs_io_parms *io_parms, struct cifs_readdata *rdata, rdata 3569 fs/cifs/smb2pdu.c if (server->rdma && rdata && !server->sign && rdata 3570 fs/cifs/smb2pdu.c rdata->bytes >= server->smbd_conn->rdma_readwrite_threshold) { rdata 3576 fs/cifs/smb2pdu.c rdata->mr = smbd_register_mr( rdata 3577 fs/cifs/smb2pdu.c server->smbd_conn, rdata->pages, rdata 3578 fs/cifs/smb2pdu.c rdata->nr_pages, rdata->page_offset, rdata 3579 fs/cifs/smb2pdu.c rdata->tailsz, true, need_invalidate); rdata 3580 fs/cifs/smb2pdu.c if (!rdata->mr) rdata 3591 fs/cifs/smb2pdu.c v1->offset = cpu_to_le64(rdata->mr->mr->iova); rdata 3592 fs/cifs/smb2pdu.c v1->token = cpu_to_le32(rdata->mr->mr->rkey); rdata 3593 fs/cifs/smb2pdu.c v1->length = cpu_to_le32(rdata->mr->mr->length); rdata 3629 fs/cifs/smb2pdu.c struct cifs_readdata *rdata = mid->callback_data; rdata 3630 fs/cifs/smb2pdu.c struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); rdata 3633 fs/cifs/smb2pdu.c (struct smb2_sync_hdr *)rdata->iov[0].iov_base; rdata 3635 fs/cifs/smb2pdu.c struct smb_rqst rqst = { .rq_iov = &rdata->iov[1], rdata 3637 fs/cifs/smb2pdu.c .rq_pages = rdata->pages, rdata 3638 fs/cifs/smb2pdu.c .rq_offset = rdata->page_offset, rdata 3639 fs/cifs/smb2pdu.c .rq_npages = rdata->nr_pages, rdata 3640 fs/cifs/smb2pdu.c .rq_pagesz = rdata->pagesz, rdata 3641 fs/cifs/smb2pdu.c .rq_tailsz = rdata->tailsz }; rdata 3644 fs/cifs/smb2pdu.c __func__, mid->mid, mid->mid_state, rdata->result, rdata 3645 fs/cifs/smb2pdu.c rdata->bytes); rdata 3661 fs/cifs/smb2pdu.c task_io_account_read(rdata->got_bytes); rdata 3662 fs/cifs/smb2pdu.c cifs_stats_bytes_read(tcon, rdata->got_bytes); rdata 3666 fs/cifs/smb2pdu.c rdata->result = -EAGAIN; rdata 3667 fs/cifs/smb2pdu.c if (server->sign && rdata->got_bytes) rdata 3669 fs/cifs/smb2pdu.c rdata->got_bytes = 0; rdata 3671 fs/cifs/smb2pdu.c task_io_account_read(rdata->got_bytes); rdata 3672 fs/cifs/smb2pdu.c cifs_stats_bytes_read(tcon, rdata->got_bytes); rdata 3679 fs/cifs/smb2pdu.c rdata->result = -EIO; rdata 3687 fs/cifs/smb2pdu.c if (rdata->mr) { rdata 3688 fs/cifs/smb2pdu.c smbd_deregister_mr(rdata->mr); rdata 3689 fs/cifs/smb2pdu.c rdata->mr = NULL; rdata 3692 fs/cifs/smb2pdu.c if (rdata->result && rdata->result != -ENODATA) { rdata 3695 fs/cifs/smb2pdu.c rdata->cfile->fid.persistent_fid, rdata 3696 fs/cifs/smb2pdu.c tcon->tid, tcon->ses->Suid, rdata->offset, rdata 3697 fs/cifs/smb2pdu.c rdata->bytes, rdata->result); rdata 3700 fs/cifs/smb2pdu.c rdata->cfile->fid.persistent_fid, rdata 3702 fs/cifs/smb2pdu.c rdata->offset, rdata->got_bytes); rdata 3704 fs/cifs/smb2pdu.c queue_work(cifsiod_wq, &rdata->work); rdata 3711 fs/cifs/smb2pdu.c smb2_async_readv(struct cifs_readdata *rdata) rdata 3717 fs/cifs/smb2pdu.c struct smb_rqst rqst = { .rq_iov = rdata->iov, rdata 3723 fs/cifs/smb2pdu.c __func__, rdata->offset, rdata->bytes); rdata 3725 fs/cifs/smb2pdu.c io_parms.tcon = tlink_tcon(rdata->cfile->tlink); rdata 3726 fs/cifs/smb2pdu.c io_parms.offset = rdata->offset; rdata 3727 fs/cifs/smb2pdu.c io_parms.length = rdata->bytes; rdata 3728 fs/cifs/smb2pdu.c io_parms.persistent_fid = rdata->cfile->fid.persistent_fid; rdata 3729 fs/cifs/smb2pdu.c io_parms.volatile_fid = rdata->cfile->fid.volatile_fid; rdata 3730 fs/cifs/smb2pdu.c io_parms.pid = rdata->pid; rdata 3735 fs/cifs/smb2pdu.c (void **) &buf, &total_len, &io_parms, rdata, 0, 0); rdata 3742 fs/cifs/smb2pdu.c rdata->iov[0].iov_base = buf; rdata 3743 fs/cifs/smb2pdu.c rdata->iov[0].iov_len = total_len; rdata 3747 fs/cifs/smb2pdu.c if (rdata->credits.value > 0) { rdata 3748 fs/cifs/smb2pdu.c shdr->CreditCharge = cpu_to_le16(DIV_ROUND_UP(rdata->bytes, rdata 3753 fs/cifs/smb2pdu.c rc = adjust_credits(server, &rdata->credits, rdata->bytes); rdata 3760 fs/cifs/smb2pdu.c kref_get(&rdata->refcount); rdata 3763 fs/cifs/smb2pdu.c smb3_handle_read_data, rdata, flags, rdata 3764 fs/cifs/smb2pdu.c &rdata->credits); rdata 3766 fs/cifs/smb2pdu.c kref_put(&rdata->refcount, cifs_readdata_release); rdata 185 fs/cifs/smb2proto.h extern int smb2_async_readv(struct cifs_readdata *rdata); rdata 159 include/crypto/rng.h u8 *rdata, unsigned int dlen) rdata 161 include/crypto/rng.h return crypto_rng_generate(tfm, NULL, 0, rdata, dlen); rdata 358 include/linux/acpi.h u8 *rdata, unsigned rdata_len); rdata 916 include/scsi/libfc.h int fc_rport_login(struct fc_rport_priv *rdata); rdata 917 include/scsi/libfc.h int fc_rport_logoff(struct fc_rport_priv *rdata); rdata 232 include/scsi/libfcoe.h struct fc_rport_priv rdata; rdata 48 include/trace/events/fsi_master_ast_cf.h TP_PROTO(const struct fsi_master_acf *master, u8 rtag, u8 rcrc, __be32 rdata, bool crc_ok), rdata 49 include/trace/events/fsi_master_ast_cf.h TP_ARGS(master, rtag, rcrc, rdata, crc_ok), rdata 54 include/trace/events/fsi_master_ast_cf.h __field(u32, rdata) rdata 61 include/trace/events/fsi_master_ast_cf.h __entry->rdata = be32_to_cpu(rdata); rdata 66 include/trace/events/fsi_master_ast_cf.h __entry->rdata, __entry->crc_ok ? ' ' : '!'