Lines Matching defs:info
76 union REG_MAX_EP info;
78 info.reg = rd32(XSCT_MAX_EP);
80 return info.bits.maxep;
85 union REG_OWNER_EPID info;
87 info.reg = rd32(XSCT_OWNER_EPID);
89 return info.bits.epid;
124 epbh->info = (union ep_buffer_info *)mem;
136 epbh->info = NULL;
143 union ep_buffer_info *info = epbh->info;
148 vlan_id[i] = info->v1i.vlan_id[i];
150 memset(info, 0, sizeof(union ep_buffer_info));
152 info->v1i.version = 0; /* version 0 */
155 info->v1i.mac_addr[i] = mac_addr[i];
157 info->v1i.head = 0;
158 info->v1i.tail = 1;
160 info->v1i.info_size = sizeof(union ep_buffer_info);
161 info->v1i.buffer_size = epbh->size - info->v1i.info_size;
163 info->v1i.frame_max = FJES_MTU_TO_FRAME_SIZE(mtu);
164 info->v1i.count_max =
165 EP_RING_NUM(info->v1i.buffer_size, info->v1i.frame_max);
168 info->v1i.vlan_id[i] = vlan_id[i];
170 info->v1i.rx_status |= FJES_RX_MTU_CHANGING_DONE;
451 req_buf->info.length = FJES_DEV_COMMAND_INFO_REQ_LEN;
453 res_buf->info.length = 0;
454 res_buf->info.code = 0;
462 res_buf->info.length) {
466 switch (res_buf->info.code) {
758 return (hw->ep_shm_info[src_epid].tx.info->v1i.rx_status &
808 hw->ep_shm_info[epidx].tx.info->v1i.rx_status |=
817 union ep_buffer_info *info;
828 info = hw->ep_shm_info[epidx].rx.info;
830 (info->v1i.rx_status &
857 union ep_buffer_info *info = epbh->info;
859 return (info->common.version == version);
864 union ep_buffer_info *info = epbh->info;
866 return ((info->v1i.frame_max == FJES_MTU_TO_FRAME_SIZE(mtu)) &&
867 info->v1i.rx_status & FJES_RX_MTU_CHANGING_DONE);
872 union ep_buffer_info *info = epbh->info;
880 if (vlan_id == info->v1i.vlan_id[i]) {
891 union ep_buffer_info *info = epbh->info;
895 if (info->v1i.vlan_id[i] == 0) {
896 info->v1i.vlan_id[i] = vlan_id;
905 union ep_buffer_info *info = epbh->info;
910 if (vlan_id == info->v1i.vlan_id[i])
911 info->v1i.vlan_id[i] = 0;
918 union ep_buffer_info *info = epbh->info;
920 if (!(info->v1i.rx_status & FJES_RX_MTU_CHANGING_DONE))
923 if (info->v1i.count_max == 0)
926 return EP_RING_EMPTY(info->v1i.head, info->v1i.tail,
927 info->v1i.count_max);
933 union ep_buffer_info *info = epbh->info;
938 (info->v1i.head,
939 info->v1i.count_max) *
940 info->v1i.frame_max]);
951 union ep_buffer_info *info = epbh->info;
956 EP_RING_INDEX_INC(epbh->info->v1i.head, info->v1i.count_max);
962 union ep_buffer_info *info = epbh->info;
965 if (EP_RING_FULL(info->v1i.head, info->v1i.tail, info->v1i.count_max))
969 (info->v1i.tail - 1,
970 info->v1i.count_max) *
971 info->v1i.frame_max]);
976 EP_RING_INDEX_INC(epbh->info->v1i.tail, info->v1i.count_max);
986 struct my_s {u8 es_status; u8 zone; } *info;
1004 info = (struct my_s *)&res_buf->info.info;
1024 info[epidx].es_status;
1026 info[epidx].zone;
1034 if ((info[epidx].zone !=
1036 (info[epidx].es_status ==
1038 (info[epidx].zone ==
1039 info[hw->my_epid].zone))
1047 if ((info[epidx].zone ==
1049 (info[epidx].es_status !=
1051 (info[epidx].zone !=
1052 info[hw->my_epid].zone)) {
1061 if ((info[epidx].zone ==
1063 (info[epidx].es_status !=
1065 (info[epidx].zone !=
1066 info[hw->my_epid].zone))
1072 info[epidx].es_status;
1073 hw->ep_shm_info[epidx].zone = info[epidx].zone;
1157 info->v1i.rx_status |=
1185 tx.info->v1i.rx_status |=