Lines Matching defs:data
36 static int p8_i2c_occ_getscom(struct i2c_client *client, u32 address, u8 *data)
51 /* data from OCC is big-endian */
61 *(u64 *)data = be64_to_cpu(buf);
66 static int p8_i2c_occ_putscom(struct i2c_client *client, u32 address, u8 *data)
74 /* address is bus-endian; data passed through from user as-is */
76 memcpy(&buf[1], &data[4], sizeof(u32));
77 memcpy(&buf[2], data, sizeof(u32));
100 u8 *data)
104 memcpy(&data0, data, 4);
105 memcpy(&data1, data + 4, 4);
196 /* fetch the rest of the response data */
220 occ->poll_cmd_data = 0x10; /* P8 OCC poll data */