Lines Matching refs:cpu_to_le16
676 d->res_count = cpu_to_le16(PAGE_SIZE); in ar_context_link_page()
751 if (next_res_count == cpu_to_le16(PAGE_SIZE)) { in ar_search_last_active_buffer()
764 if (next_res_count != cpu_to_le16(PAGE_SIZE)) in ar_search_last_active_buffer()
1024 d->req_count = cpu_to_le16(PAGE_SIZE); in ar_context_init()
1025 d->control = cpu_to_le16(DESCRIPTOR_INPUT_MORE | in ar_context_init()
1058 branch = d->control & cpu_to_le16(DESCRIPTOR_BRANCH_ALWAYS); in find_branch_descriptor()
1061 if (z == 2 && branch == cpu_to_le16(DESCRIPTOR_BRANCH_ALWAYS)) in find_branch_descriptor()
1166 ctx->buffer_tail->buffer->control = cpu_to_le16(DESCRIPTOR_OUTPUT_LAST); in context_init()
1167 ctx->buffer_tail->buffer->transfer_status = cpu_to_le16(0x8011); in context_init()
1258 (ctx->prev->control & cpu_to_le16(DESCRIPTOR_CMD)) == in context_append()
1259 cpu_to_le16(DESCRIPTOR_INPUT_MORE)) { in context_append()
1313 d[0].control = cpu_to_le16(DESCRIPTOR_KEY_IMMEDIATE); in at_context_queue_packet()
1314 d[0].res_count = cpu_to_le16(packet->timestamp); in at_context_queue_packet()
1345 d[0].req_count = cpu_to_le16(packet->header_length); in at_context_queue_packet()
1353 d[0].req_count = cpu_to_le16(12); in at_context_queue_packet()
1356 d[0].control |= cpu_to_le16(DESCRIPTOR_PING); in at_context_queue_packet()
1363 d[0].req_count = cpu_to_le16(8); in at_context_queue_packet()
1395 d[2].req_count = cpu_to_le16(packet->payload_length); in at_context_queue_packet()
1404 last->control |= cpu_to_le16(DESCRIPTOR_OUTPUT_LAST | in at_context_queue_packet()
2785 while (!(d->control & cpu_to_le16(DESCRIPTOR_BRANCH_ALWAYS))) { in handle_ir_packet_per_buffer()
2797 if (last->control & cpu_to_le16(DESCRIPTOR_IRQ_ALWAYS)) in handle_ir_packet_per_buffer()
2832 if (last->control & cpu_to_le16(DESCRIPTOR_IRQ_ALWAYS)) { in handle_ir_buffer_fill()
2862 if (pd->control & cpu_to_le16(DESCRIPTOR_BRANCH_ALWAYS)) in sync_it_packet_for_cpu()
2875 if (pd->control & cpu_to_le16(DESCRIPTOR_BRANCH_ALWAYS)) in sync_it_packet_for_cpu()
2889 } while (!(control & cpu_to_le16(DESCRIPTOR_BRANCH_ALWAYS))); in sync_it_packet_for_cpu()
2923 if (last->control & cpu_to_le16(DESCRIPTOR_IRQ_ALWAYS)) in handle_it_packet()
3241 d[0].control = cpu_to_le16(DESCRIPTOR_KEY_IMMEDIATE); in queue_iso_transmit()
3242 d[0].req_count = cpu_to_le16(8); in queue_iso_transmit()
3264 d[2].req_count = cpu_to_le16(p->header_length); in queue_iso_transmit()
3277 pd[i].req_count = cpu_to_le16(length); in queue_iso_transmit()
3295 last->control |= cpu_to_le16(DESCRIPTOR_OUTPUT_LAST | in queue_iso_transmit()
3338 d->control = cpu_to_le16(DESCRIPTOR_STATUS | in queue_iso_packet_per_buffer()
3341 d->control |= cpu_to_le16(DESCRIPTOR_WAIT); in queue_iso_packet_per_buffer()
3342 d->req_count = cpu_to_le16(header_size); in queue_iso_packet_per_buffer()
3351 pd->control = cpu_to_le16(DESCRIPTOR_STATUS | in queue_iso_packet_per_buffer()
3358 pd->req_count = cpu_to_le16(length); in queue_iso_packet_per_buffer()
3374 pd->control = cpu_to_le16(DESCRIPTOR_STATUS | in queue_iso_packet_per_buffer()
3378 pd->control |= cpu_to_le16(DESCRIPTOR_IRQ_ALWAYS); in queue_iso_packet_per_buffer()
3410 d->control = cpu_to_le16(DESCRIPTOR_INPUT_MORE | in queue_iso_buffer_fill()
3413 d->control |= cpu_to_le16(DESCRIPTOR_WAIT); in queue_iso_buffer_fill()
3415 d->control |= cpu_to_le16(DESCRIPTOR_IRQ_ALWAYS); in queue_iso_buffer_fill()
3421 d->req_count = cpu_to_le16(length); in queue_iso_buffer_fill()