Lines Matching refs:this
88 struct cfusbl *this = kmalloc(sizeof(struct cfusbl), GFP_ATOMIC);
90 if (!this)
95 memset(&this->layer, 0, sizeof(this->layer));
96 this->layer.receive = cfusbl_receive;
97 this->layer.transmit = cfusbl_transmit;
98 this->layer.ctrlcmd = cfusbl_ctrlcmd;
99 snprintf(this->layer.name, CAIF_LAYER_NAME_SZ, "usb%d", phyid);
100 this->layer.id = phyid;
108 ether_addr_copy(&this->tx_eth_hdr[ETH_ALEN], braddr);
109 ether_addr_copy(&this->tx_eth_hdr[ETH_ALEN], ethaddr);
110 this->tx_eth_hdr[12] = cpu_to_be16(ETH_P_802_EX1) & 0xff;
111 this->tx_eth_hdr[13] = (cpu_to_be16(ETH_P_802_EX1) >> 8) & 0xff;
113 this->tx_eth_hdr, this->tx_eth_hdr + ETH_ALEN,
114 this->tx_eth_hdr[12], this->tx_eth_hdr[13]);
116 return (struct cflayer *) this;