rft
priv->rft = 8; /* Rx FIFO threshold */
if (priv->rft > max_fifo_threshold) {
priv->rft, max_fifo_threshold);
priv->rft = max_fifo_threshold;
unsigned char rft;
writel(priv->rft, priv->virtbase + I2C_RFTR);
u32 tft, rft;
rft = readl(priv->virtbase + I2C_RFTR);
for (count = rft; count > 0; count--) {
priv->cli.count -= rft;
priv->cli.xfer_bytes += rft;
hton24(ct->payload.rft.fid.fp_fid, lport->port_id);
ct->payload.rft.fts = lport->fcts;
struct fc_ns_rft rft;
CtReq->un.rft.port_id = cpu_to_be32(vport->fc_myDID);
CtReq->un.rft.app_serv_reg =
CtReq->un.rft.fcp_reg = cpu_to_be32(RFT_FCP_REG);
CtReq->un.rft.nvme_reg = cpu_to_be32(RFT_NVME_REG);
CtReq->un.rft.fcp_reg ? "FCP" : " ",
CtReq->un.rft.nvme_reg ? "NVME" : " ",
CtReq->un.rft.app_serv_reg ? "APPS" : " ",
} rft;
sizeof(struct rft))
struct rftype *rfts, *rft;
for (rft = rfts; rft < rfts + len; rft++) {
if (rft->fflags && ((fflags & rft->fflags) == rft->fflags)) {
ret = rdtgroup_add_file(kn, rft);
pr_warn("Failed to add %s, err=%d\n", rft->name, ret);
while (--rft >= rfts) {
if ((fflags & rft->fflags) == rft->fflags)
kernfs_remove_by_name(kn, rft->name);
struct rftype *rfts, *rft;
for (rft = rfts; rft < rfts + len; rft++) {
if (!strcmp(rft->name, name))
return rft;
struct rftype *rft;
rft = rdtgroup_get_rftype_by_name(config);
if (rft)
rft->fflags = fflags;
struct rftype *rfts, *rft;
for (rft = rfts; rft < rfts + len; rft++) {
if (!strcmp(rft->name, name))
iattr.ia_mode = rft->mode & mask;
static int rdtgroup_add_file(struct kernfs_node *parent_kn, struct rftype *rft)
kn = __kernfs_create_file(parent_kn, rft->name, rft->mode,
0, rft->kf_ops, rft, NULL, NULL);
struct rftype *rft = of->kn->priv;
if (rft->seq_show)
return rft->seq_show(of, m, arg);
struct rftype *rft = of->kn->priv;
if (rft->write)
return rft->write(of, buf, nbytes, off);
struct rftype *rft = of->kn->priv;
return rft->flags & RFTYPE_FLAGS_CPUS_LIST;