Lines Matching refs:transfer_buffer
70 u8 *transfer_buffer; member
80 memset(shark->transfer_buffer, 0, TB_LEN); in shark_write_reg()
81 shark->transfer_buffer[0] = 0x81; /* Write register command */ in shark_write_reg()
83 shark->transfer_buffer[i + 1] = (reg >> (40 - i * 8)) & 0xff; in shark_write_reg()
86 7, shark->transfer_buffer); in shark_write_reg()
90 shark->transfer_buffer, TB_LEN, in shark_write_reg()
106 memset(shark->transfer_buffer, 0, TB_LEN); in shark_read_reg()
107 shark->transfer_buffer[0] = 0x82; in shark_read_reg()
110 shark->transfer_buffer, TB_LEN, in shark_read_reg()
119 shark->transfer_buffer, TB_LEN, in shark_read_reg()
127 reg |= shark->transfer_buffer[i] << (16 - i * 8); in shark_read_reg()
130 3, shark->transfer_buffer); in shark_read_reg()
153 memset(shark->transfer_buffer, 0, TB_LEN); in shark_led_work()
154 shark->transfer_buffer[0] = 0x83 + i; in shark_led_work()
155 shark->transfer_buffer[1] = brightness; in shark_led_work()
159 shark->transfer_buffer, TB_LEN, in shark_led_work()
276 kfree(shark->transfer_buffer); in usb_shark_release()
290 shark->transfer_buffer = kmalloc(TB_LEN, GFP_KERNEL); in usb_shark_probe()
291 if (!shark->transfer_buffer) in usb_shark_probe()
331 kfree(shark->transfer_buffer); in usb_shark_probe()