Lines Matching refs:this
37 struct cffrml *this = kzalloc(sizeof(struct cffrml), GFP_ATOMIC);
38 if (!this)
40 this->pcpu_refcnt = alloc_percpu(int);
41 if (this->pcpu_refcnt == NULL) {
42 kfree(this);
48 this->layer.receive = cffrml_receive;
49 this->layer.transmit = cffrml_transmit;
50 this->layer.ctrlcmd = cffrml_ctrlcmd;
51 snprintf(this->layer.name, CAIF_LAYER_NAME_SZ, "frm%d", phyid);
52 this->dofcs = use_fcs;
53 this->layer.id = phyid;
54 return (struct cflayer *) this;
59 struct cffrml *this = container_obj(layer);
60 free_percpu(this->pcpu_refcnt);
64 void cffrml_set_uplayer(struct cflayer *this, struct cflayer *up)
66 this->up = up;
69 void cffrml_set_dnlayer(struct cflayer *this, struct cflayer *dn)
71 this->dn = dn;
88 struct cffrml *this;
89 this = container_obj(layr);
95 if (!this->dofcs)
108 if (this->dofcs) {
143 struct cffrml *this = container_obj(layr);
144 if (this->dofcs) {
178 struct cffrml *this = container_obj(layr);
179 if (layr != NULL && this->pcpu_refcnt != NULL)
180 this_cpu_dec(*this->pcpu_refcnt);
185 struct cffrml *this = container_obj(layr);
186 if (layr != NULL && this->pcpu_refcnt != NULL)
187 this_cpu_inc(*this->pcpu_refcnt);
193 struct cffrml *this = container_obj(layr);
195 refcnt += *per_cpu_ptr(this->pcpu_refcnt, i);