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