Lines Matching refs:packet
80 struct ljca_gpio_packet *packet =
85 packet->num = 1;
86 packet->item[0].index = gpio_id;
87 packet->item[0].value = config | ljca_gpio->connect_mode[gpio_id];
89 ret = ljca_transfer(ljca_gpio->ljca, LJCA_GPIO_CONFIG, (u8 *)packet,
90 struct_size(packet, item, packet->num), NULL, 0);
100 struct ljca_gpio_packet *packet =
105 packet->num = 1;
106 packet->item[0].index = gpio_id;
107 ret = ljca_transfer(ljca_gpio->ljca, LJCA_GPIO_READ, (u8 *)packet,
108 struct_size(packet, item, packet->num),
111 if (ret <= 0 || ack_packet->num != packet->num) {
124 struct ljca_gpio_packet *packet =
129 packet->num = 1;
130 packet->item[0].index = gpio_id;
131 packet->item[0].value = value & 1;
133 ret = ljca_transfer(ljca_gpio->ljca, LJCA_GPIO_WRITE, (u8 *)packet,
134 struct_size(packet, item, packet->num), NULL, 0);
252 struct ljca_gpio_packet *packet =
257 packet->num = 1;
258 packet->item[0].index = gpio_id;
259 packet->item[0].value = 0;
263 (u8 *)packet, struct_size(packet, item, packet->num),
287 const struct ljca_gpio_packet *packet = evt_data;
294 for (i = 0; i < packet->num; i++) {
296 packet->item[i].index);
300 packet->item[i].index);
305 set_bit(packet->item[i].index, ljca_gpio->reenable_irqs);