Lines Matching defs:data
251 * lock while it is performing data accesses. This ensures that the
252 * function will not be preempted and end up reading data from a
276 u8 data[252];
287 u8 data[14];
571 /* switch to the data page, copy the data */
602 /* switch to the data page, copy the data */
710 msg.data[0] = addr & 0xff;
711 msg.data[1] = (addr >> 8) & 0xff;
712 msg.data[2] = (addr >> 16) & 0xff;
713 msg.data[3] = (addr >> 24) & 0xff;
717 msg.data[4] = addr & 0xff;
718 msg.data[5] = (addr >> 8) & 0xff;
719 msg.data[6] = (addr >> 16) & 0xff;
720 msg.data[7] = (addr >> 24) & 0xff;
741 msg.data[0] = 0x00; /* IDLo LSB */
742 msg.data[1] = 0x00; /* IDLo MSB */
743 msg.data[2] = 0xff; /* IDHi LSB */
744 msg.data[3] = 0x07; /* IDHi MSB */
747 msg.data[4] = accept ? SETAFILMASK_FASTIF : SETAFILMASK_REJECT;
757 msg.data[0] = 0; /* MUX = 0 */
758 msg.data[1] = 0x00; /* IDLo LSB */
759 msg.data[2] = 0x00;
760 msg.data[3] = 0x00;
761 msg.data[4] = 0x20; /* IDLo MSB */
762 msg.data[5] = 0xff; /* IDHi LSB */
763 msg.data[6] = 0xff;
764 msg.data[7] = 0xff;
765 msg.data[8] = 0x3f; /* IDHi MSB */
768 msg.data[9] = accept ? SETAFILMASK_FASTIF : SETAFILMASK_REJECT;
798 msg.data[0] = 0x00;
799 msg.data[1] = 0x00;
800 msg.data[2] = btr0;
801 msg.data[3] = btr1;
821 msg.data[0] = LMTS_BUSON_REQ;
822 msg.data[1] = 0;
823 msg.data[2] = btr0;
824 msg.data[3] = btr1;
827 msg.data[0] = LMTS_BUSOFF_REQ;
828 msg.data[1] = 0;
843 msg.data[0] = NMTS_CREATE_NODE_REQ;
844 msg.data[1] = 0;
845 msg.data[2] = 2; /* node class */
846 msg.data[3] = 1; /* node id */
847 strcpy(msg.data + 4, "locnod1"); /* node name */
862 msg.data[0] = 0x00;
863 msg.data[1] = on ? HWCONF_TERMINATE_ON : HWCONF_TERMINATE_OFF;
875 msg.data[0] = subspec;
876 msg.data[1] = 0x00;
889 msg.data[0] = 0x00;
890 msg.data[1] = quota;
895 msg.data[0] = LMTS_CAN_CONF_REQ;
896 msg.data[1] = 0x00;
897 msg.data[2] = 0x00;
898 msg.data[3] = quota;
914 if (desc->data[1] & ICAN3_SFF_RTR)
917 cf->can_id |= desc->data[0] << 3;
918 cf->can_id |= (desc->data[1] & 0xe0) >> 5;
919 cf->can_dlc = get_can_dlc(desc->data[1] & ICAN3_CAN_DLC_MASK);
920 memcpy(cf->data, &desc->data[2], cf->can_dlc);
922 cf->can_dlc = get_can_dlc(desc->data[0] & ICAN3_CAN_DLC_MASK);
923 if (desc->data[0] & ICAN3_EFF_RTR)
926 if (desc->data[0] & ICAN3_EFF) {
928 cf->can_id |= desc->data[2] << 21; /* 28-21 */
929 cf->can_id |= desc->data[3] << 13; /* 20-13 */
930 cf->can_id |= desc->data[4] << 5; /* 12-5 */
931 cf->can_id |= (desc->data[5] & 0xf8) >> 3;
933 cf->can_id |= desc->data[2] << 3; /* 10-3 */
934 cf->can_id |= desc->data[3] >> 5; /* 2-0 */
937 memcpy(cf->data, &desc->data[6], cf->can_dlc);
945 /* clear out any stale data in the descriptor */
946 memset(desc->data, 0, sizeof(desc->data));
950 desc->data[0] |= cf->can_dlc;
951 desc->data[1] |= ICAN3_ECHO;
955 desc->data[1] |= ICAN3_SNGL;
958 desc->data[0] |= ICAN3_EFF_RTR;
962 desc->data[0] |= ICAN3_EFF;
963 desc->data[2] = (cf->can_id & 0x1fe00000) >> 21; /* 28-21 */
964 desc->data[3] = (cf->can_id & 0x001fe000) >> 13; /* 20-13 */
965 desc->data[4] = (cf->can_id & 0x00001fe0) >> 5; /* 12-5 */
966 desc->data[5] = (cf->can_id & 0x0000001f) << 3; /* 4-0 */
968 desc->data[2] = (cf->can_id & 0x7F8) >> 3; /* bits 10-3 */
969 desc->data[3] = (cf->can_id & 0x007) << 5; /* bits 2-0 */
972 /* copy the data bits into the descriptor */
973 memcpy(&desc->data[6], cf->data, cf->can_dlc);
987 netdev_dbg(mod->ndev, "IDVERS response: %s\n", msg->data);
1003 netdev_err(mod->ndev, "lost %d control messages\n", msg->data[0]);
1018 cf->data[1] = CAN_ERR_CRTL_RX_OVERFLOW;
1042 if (msg->data[1] != CEVTIND_CHIP_SJA1000) {
1053 isrc = msg->data[0];
1054 ecc = msg->data[2];
1055 status = msg->data[3];
1056 rxerr = msg->data[4];
1057 txerr = msg->data[5];
1100 /* data overrun interrupt */
1102 netdev_dbg(mod->ndev, "data overrun interrupt\n");
1104 cf->data[1] = CAN_ERR_CRTL_RX_OVERFLOW;
1134 cf->data[2] |= CAN_ERR_PROT_BIT;
1137 cf->data[2] |= CAN_ERR_PROT_FORM;
1140 cf->data[2] |= CAN_ERR_PROT_STUFF;
1143 cf->data[3] = ecc & ECC_SEG;
1148 cf->data[2] |= CAN_ERR_PROT_TX;
1150 cf->data[6] = txerr;
1151 cf->data[7] = rxerr;
1159 cf->data[1] = (txerr > rxerr) ?
1164 cf->data[1] = (txerr > rxerr) ?
1169 cf->data[6] = txerr;
1170 cf->data[7] = rxerr;
1180 switch (msg->data[0]) {
1183 mod->bec.rxerr = msg->data[5];
1184 mod->bec.txerr = msg->data[6];
1188 mod->termination_enabled = msg->data[6] & HWCONF_TERMINATE_ON;
1202 subspec = msg->data[0] + msg->data[1] * 0x100;
1204 switch (msg->data[2]) {
1208 * shift the data at the same place and call this method
1211 memmove(msg->data, msg->data + 3, le16_to_cpu(msg->len));
1220 msg->data[2]);
1296 cf = (struct can_frame *)skb->data;
1324 struct can_frame *cf = (struct can_frame *)skb->data;
1331 echo_cf = (struct can_frame *)echo_skb->data;
1338 return memcmp(cf->data, echo_cf->data, cf->can_dlc) == 0;
1686 struct can_frame *cf = (struct can_frame *)skb->data;
1900 /* allocate the CAN device and private data */