Lines Matching refs:data
252 * lock while it is performing data accesses. This ensures that the
253 * function will not be preempted and end up reading data from a
277 u8 data[252];
288 u8 data[14];
572 /* switch to the data page, copy the data */
603 /* switch to the data page, copy the data */
711 msg.data[0] = addr & 0xff;
712 msg.data[1] = (addr >> 8) & 0xff;
713 msg.data[2] = (addr >> 16) & 0xff;
714 msg.data[3] = (addr >> 24) & 0xff;
718 msg.data[4] = addr & 0xff;
719 msg.data[5] = (addr >> 8) & 0xff;
720 msg.data[6] = (addr >> 16) & 0xff;
721 msg.data[7] = (addr >> 24) & 0xff;
742 msg.data[0] = 0x00; /* IDLo LSB */
743 msg.data[1] = 0x00; /* IDLo MSB */
744 msg.data[2] = 0xff; /* IDHi LSB */
745 msg.data[3] = 0x07; /* IDHi MSB */
748 msg.data[4] = accept ? SETAFILMASK_FASTIF : SETAFILMASK_REJECT;
758 msg.data[0] = 0; /* MUX = 0 */
759 msg.data[1] = 0x00; /* IDLo LSB */
760 msg.data[2] = 0x00;
761 msg.data[3] = 0x00;
762 msg.data[4] = 0x20; /* IDLo MSB */
763 msg.data[5] = 0xff; /* IDHi LSB */
764 msg.data[6] = 0xff;
765 msg.data[7] = 0xff;
766 msg.data[8] = 0x3f; /* IDHi MSB */
769 msg.data[9] = accept ? SETAFILMASK_FASTIF : SETAFILMASK_REJECT;
799 msg.data[0] = 0x00;
800 msg.data[1] = 0x00;
801 msg.data[2] = btr0;
802 msg.data[3] = btr1;
822 msg.data[0] = LMTS_BUSON_REQ;
823 msg.data[1] = 0;
824 msg.data[2] = btr0;
825 msg.data[3] = btr1;
828 msg.data[0] = LMTS_BUSOFF_REQ;
829 msg.data[1] = 0;
844 msg.data[0] = NMTS_CREATE_NODE_REQ;
845 msg.data[1] = 0;
846 msg.data[2] = 2; /* node class */
847 msg.data[3] = 1; /* node id */
848 strcpy(msg.data + 4, "locnod1"); /* node name */
863 msg.data[0] = 0x00;
864 msg.data[1] = on ? HWCONF_TERMINATE_ON : HWCONF_TERMINATE_OFF;
876 msg.data[0] = subspec;
877 msg.data[1] = 0x00;
890 msg.data[0] = 0x00;
891 msg.data[1] = quota;
896 msg.data[0] = LMTS_CAN_CONF_REQ;
897 msg.data[1] = 0x00;
898 msg.data[2] = 0x00;
899 msg.data[3] = quota;
915 if (desc->data[1] & ICAN3_SFF_RTR)
918 cf->can_id |= desc->data[0] << 3;
919 cf->can_id |= (desc->data[1] & 0xe0) >> 5;
920 cf->len = can_cc_dlc2len(desc->data[1] & ICAN3_CAN_DLC_MASK);
921 memcpy(cf->data, &desc->data[2], cf->len);
923 cf->len = can_cc_dlc2len(desc->data[0] & ICAN3_CAN_DLC_MASK);
924 if (desc->data[0] & ICAN3_EFF_RTR)
927 if (desc->data[0] & ICAN3_EFF) {
929 cf->can_id |= desc->data[2] << 21; /* 28-21 */
930 cf->can_id |= desc->data[3] << 13; /* 20-13 */
931 cf->can_id |= desc->data[4] << 5; /* 12-5 */
932 cf->can_id |= (desc->data[5] & 0xf8) >> 3;
934 cf->can_id |= desc->data[2] << 3; /* 10-3 */
935 cf->can_id |= desc->data[3] >> 5; /* 2-0 */
938 memcpy(cf->data, &desc->data[6], cf->len);
946 /* clear out any stale data in the descriptor */
947 memset(desc->data, 0, sizeof(desc->data));
951 desc->data[0] |= cf->len;
952 desc->data[1] |= ICAN3_ECHO;
956 desc->data[1] |= ICAN3_SNGL;
959 desc->data[0] |= ICAN3_EFF_RTR;
963 desc->data[0] |= ICAN3_EFF;
964 desc->data[2] = (cf->can_id & 0x1fe00000) >> 21; /* 28-21 */
965 desc->data[3] = (cf->can_id & 0x001fe000) >> 13; /* 20-13 */
966 desc->data[4] = (cf->can_id & 0x00001fe0) >> 5; /* 12-5 */
967 desc->data[5] = (cf->can_id & 0x0000001f) << 3; /* 4-0 */
969 desc->data[2] = (cf->can_id & 0x7F8) >> 3; /* bits 10-3 */
970 desc->data[3] = (cf->can_id & 0x007) << 5; /* bits 2-0 */
973 /* copy the data bits into the descriptor */
974 memcpy(&desc->data[6], cf->data, cf->len);
988 netdev_dbg(mod->ndev, "IDVERS response: %s\n", msg->data);
1004 netdev_err(mod->ndev, "lost %d control messages\n", msg->data[0]);
1019 cf->data[1] = CAN_ERR_CRTL_RX_OVERFLOW;
1043 if (msg->data[1] != CEVTIND_CHIP_SJA1000) {
1054 isrc = msg->data[0];
1055 ecc = msg->data[2];
1056 status = msg->data[3];
1057 rxerr = msg->data[4];
1058 txerr = msg->data[5];
1101 /* data overrun interrupt */
1103 netdev_dbg(mod->ndev, "data overrun interrupt\n");
1105 cf->data[1] = CAN_ERR_CRTL_RX_OVERFLOW;
1135 cf->data[2] |= CAN_ERR_PROT_BIT;
1138 cf->data[2] |= CAN_ERR_PROT_FORM;
1141 cf->data[2] |= CAN_ERR_PROT_STUFF;
1144 cf->data[3] = ecc & ECC_SEG;
1149 cf->data[2] |= CAN_ERR_PROT_TX;
1151 cf->data[6] = txerr;
1152 cf->data[7] = rxerr;
1160 cf->data[1] = (txerr > rxerr) ?
1165 cf->data[1] = (txerr > rxerr) ?
1170 cf->data[6] = txerr;
1171 cf->data[7] = rxerr;
1181 switch (msg->data[0]) {
1184 mod->bec.rxerr = msg->data[5];
1185 mod->bec.txerr = msg->data[6];
1189 mod->termination_enabled = msg->data[6] & HWCONF_TERMINATE_ON;
1203 subspec = msg->data[0] + msg->data[1] * 0x100;
1205 switch (msg->data[2]) {
1209 * shift the data at the same place and call this method
1212 memmove(msg->data, msg->data + 3, le16_to_cpu(msg->len));
1221 msg->data[2]);
1299 cf = (struct can_frame *)skb->data;
1328 struct can_frame *cf = (struct can_frame *)skb->data;
1335 echo_cf = (struct can_frame *)echo_skb->data;
1342 return memcmp(cf->data, echo_cf->data, cf->len) == 0;
1691 struct can_frame *cf = (struct can_frame *)skb->data;
1908 /* allocate the CAN device and private data */