Lines Matching refs:transfer_buffer
74 u8 *transfer_buffer; member
89 memset(shark->transfer_buffer, 0, TB_LEN); in shark_write_val()
90 shark->transfer_buffer[0] = 0xc0; /* Write shift register command */ in shark_write_val()
92 shark->transfer_buffer[i] |= (val >> (24 - i * 8)) & 0xff; in shark_write_val()
96 shark->transfer_buffer, TB_LEN, in shark_write_val()
110 memset(shark->transfer_buffer, 0, TB_LEN); in shark_read_val()
111 shark->transfer_buffer[0] = 0x80; in shark_read_val()
114 shark->transfer_buffer, TB_LEN, in shark_read_val()
123 shark->transfer_buffer, TB_LEN, in shark_read_val()
131 val |= shark->transfer_buffer[i] << (24 - i * 8); in shark_read_val()
166 memset(shark->transfer_buffer, 0, TB_LEN); in shark_led_work()
168 shark->transfer_buffer[0] = 0xA0 + i; in shark_led_work()
169 shark->transfer_buffer[1] = brightness; in shark_led_work()
171 shark->transfer_buffer[0] = brightness ? 0xA9 : 0xA8; in shark_led_work()
174 shark->transfer_buffer, TB_LEN, in shark_led_work()
310 kfree(shark->transfer_buffer); in usb_shark_release()
324 shark->transfer_buffer = kmalloc(TB_LEN, GFP_KERNEL); in usb_shark_probe()
325 if (!shark->transfer_buffer) in usb_shark_probe()
366 kfree(shark->transfer_buffer); in usb_shark_probe()