/linux-2.4.37.9/drivers/isdn/act2000/ |
D | capi.c | 147 m->msg.listen_req.controller = 0; in actcapi_listen_req() 148 m->msg.listen_req.infomask = 0x3f; /* All information */ in actcapi_listen_req() 149 m->msg.listen_req.eazmask = eazmask; in actcapi_listen_req() 150 m->msg.listen_req.simask = (eazmask)?0x86:0; /* All SI's */ in actcapi_listen_req() 168 m->msg.connect_req.controller = 0; in actcapi_connect_req() 169 m->msg.connect_req.bchan = 0x83; in actcapi_connect_req() 170 m->msg.connect_req.infomask = 0x3f; in actcapi_connect_req() 171 m->msg.connect_req.si1 = si1; in actcapi_connect_req() 172 m->msg.connect_req.si2 = si2; in actcapi_connect_req() 173 m->msg.connect_req.eaz = eaz?eaz:'0'; in actcapi_connect_req() [all …]
|
/linux-2.4.37.9/fs/reiserfs/ |
D | hashes.c | 53 u32 keyed_hash(const signed char *msg, int len) in keyed_hash() argument 69 a = (u32)msg[ 0] | in keyed_hash() 70 (u32)msg[ 1] << 8 | in keyed_hash() 71 (u32)msg[ 2] << 16| in keyed_hash() 72 (u32)msg[ 3] << 24; in keyed_hash() 73 b = (u32)msg[ 4] | in keyed_hash() 74 (u32)msg[ 5] << 8 | in keyed_hash() 75 (u32)msg[ 6] << 16| in keyed_hash() 76 (u32)msg[ 7] << 24; in keyed_hash() 77 c = (u32)msg[ 8] | in keyed_hash() [all …]
|
/linux-2.4.37.9/net/sctp/ |
D | chunk.c | 54 static void sctp_datamsg_init(struct sctp_datamsg *msg) in sctp_datamsg_init() argument 56 atomic_set(&msg->refcnt, 1); in sctp_datamsg_init() 57 msg->send_failed = 0; in sctp_datamsg_init() 58 msg->send_error = 0; in sctp_datamsg_init() 59 msg->can_abandon = 0; in sctp_datamsg_init() 60 msg->expires_at = 0; in sctp_datamsg_init() 61 INIT_LIST_HEAD(&msg->chunks); in sctp_datamsg_init() 67 struct sctp_datamsg *msg; in sctp_datamsg_new() local 68 msg = kmalloc(sizeof(struct sctp_datamsg), gfp); in sctp_datamsg_new() 69 if (msg) in sctp_datamsg_new() [all …]
|
/linux-2.4.37.9/drivers/usb/serial/ |
D | keyspan.c | 514 struct keyspan_usa26_portStatusMessage *msg; in usa26_instat_callback() local 531 msg = (struct keyspan_usa26_portStatusMessage *)data; in usa26_instat_callback() 535 __FUNCTION__, msg->port, msg->hskia_cts, msg->gpia_dcd, msg->dsr, msg->ri, msg->_txOff, in usa26_instat_callback() 536 msg->_txXoff, msg->rxEnabled, msg->controlResponse); in usa26_instat_callback() 543 if (msg->port >= serial->num_ports) { in usa26_instat_callback() 544 dbg ("%s - Unexpected port number %d", __FUNCTION__, msg->port); in usa26_instat_callback() 547 port = &serial->port[msg->port]; in usa26_instat_callback() 552 p_priv->cts_state = ((msg->hskia_cts) ? 1 : 0); in usa26_instat_callback() 553 p_priv->dsr_state = ((msg->dsr) ? 1 : 0); in usa26_instat_callback() 554 p_priv->dcd_state = ((msg->gpia_dcd) ? 1 : 0); in usa26_instat_callback() [all …]
|
/linux-2.4.37.9/net/khttpd/ |
D | misc.c | 62 struct msghdr msg; in ReadRest() local 82 msg.msg_name = 0; in ReadRest() 83 msg.msg_namelen = 0; in ReadRest() 84 msg.msg_iov = &iov; in ReadRest() 85 msg.msg_iovlen = 1; in ReadRest() 86 msg.msg_control = NULL; in ReadRest() 87 msg.msg_controllen = 0; in ReadRest() 88 msg.msg_flags = MSG_DONTWAIT; in ReadRest() 90 msg.msg_iov->iov_base = &Buffer[0]; in ReadRest() 91 msg.msg_iov->iov_len = (__kernel_size_t)1024; in ReadRest() [all …]
|
D | rfc.c | 171 struct msghdr msg; in SendHTTPHeader() local 179 msg.msg_name = 0; in SendHTTPHeader() 180 msg.msg_namelen = 0; in SendHTTPHeader() 181 msg.msg_iov = &iov[0]; in SendHTTPHeader() 182 msg.msg_iovlen = 6; in SendHTTPHeader() 183 msg.msg_control = NULL; in SendHTTPHeader() 184 msg.msg_controllen = 0; in SendHTTPHeader() 185 msg.msg_flags = 0; /* Synchronous for now */ in SendHTTPHeader() 211 len = sock_sendmsg(Request->sock,&msg,len2); in SendHTTPHeader() 220 struct msghdr msg; in SendHTTPHeader() local [all …]
|
/linux-2.4.37.9/drivers/char/ipmi/ |
D | ipmi_msghandler.c | 329 static void deliver_response(struct ipmi_recv_msg *msg) in deliver_response() argument 331 msg->user->handler->ipmi_recv_hndl(msg, msg->user->handler_data); in deliver_response() 396 struct ipmi_recv_msg *msg = intf->seq_table[seq].recv_msg; in intf_find_seq() local 398 if ((msg->addr.channel == channel) in intf_find_seq() 399 && (msg->msg.cmd == cmd) in intf_find_seq() 400 && (msg->msg.netfn == netfn) in intf_find_seq() 401 && (ipmi_addr_equal(addr, &(msg->addr)))) in intf_find_seq() 403 *recv_msg = msg; in intf_find_seq() 610 struct ipmi_recv_msg *msg; in ipmi_set_gets_events() local 619 msg = list_entry(e, struct ipmi_recv_msg, link); in ipmi_set_gets_events() [all …]
|
D | ipmi_devintf.c | 58 static void file_receive_handler(struct ipmi_recv_msg *msg, in file_receive_handler() argument 68 list_add_tail(&(msg->link), &(priv->recv_msgs)); in file_receive_handler() 197 if (req.msg.data != NULL) { in ipmi_ioctl() 198 if (req.msg.data_len > IPMI_MAX_MSG_LENGTH) { in ipmi_ioctl() 204 req.msg.data, in ipmi_ioctl() 205 req.msg.data_len)) in ipmi_ioctl() 211 req.msg.data_len = 0; in ipmi_ioctl() 214 req.msg.data = msgdata; in ipmi_ioctl() 219 &(req.msg), in ipmi_ioctl() 230 struct ipmi_recv_msg *msg; in ipmi_ioctl() local [all …]
|
D | ipmi_kcs_intf.c | 144 static void deliver_recv_msg(struct kcs_info *kcs_info, struct ipmi_smi_msg *msg) in deliver_recv_msg() argument 149 ipmi_smi_msg_received(kcs_info->intf, msg); in deliver_recv_msg() 155 struct ipmi_smi_msg *msg = kcs_info->curr_msg; in return_hosed_msg() local 158 msg->rsp[0] = msg->data[0] | 4; in return_hosed_msg() 159 msg->rsp[1] = msg->data[1]; in return_hosed_msg() 160 msg->rsp[2] = 0xFF; /* Unknown error. */ in return_hosed_msg() 161 msg->rsp_size = 3; in return_hosed_msg() 164 deliver_recv_msg(kcs_info, msg); in return_hosed_msg() 216 unsigned char msg[2]; in start_enable_irq() local 220 msg[0] = (IPMI_NETFN_APP_REQUEST << 2); in start_enable_irq() [all …]
|
/linux-2.4.37.9/net/atm/ |
D | signaling.c | 68 static void modify_qos(struct atm_vcc *vcc,struct atmsvc_msg *msg) in modify_qos() argument 75 msg->type = as_error; in modify_qos() 76 if (!vcc->dev->ops->change_qos) msg->reply = -EOPNOTSUPP; in modify_qos() 79 msg->reply = vcc->dev->ops->change_qos(vcc,&msg->qos, in modify_qos() 80 msg->reply); in modify_qos() 81 if (!msg->reply) msg->type = as_okay; in modify_qos() 89 *(struct atmsvc_msg *) skb_put(skb,sizeof(struct atmsvc_msg)) = *msg; in modify_qos() 96 struct atmsvc_msg *msg; in sigd_send() local 99 msg = (struct atmsvc_msg *) skb->data; in sigd_send() 101 DPRINTK("sigd_send %d (0x%lx)\n",(int) msg->type, in sigd_send() [all …]
|
/linux-2.4.37.9/drivers/message/i2o/ |
D | i2o_lan.c | 77 static void i2o_lan_release_buckets(struct net_device *dev, u32 *msg); 80 static void i2o_lan_handle_event(struct net_device *dev, u32 *msg); 131 static void i2o_lan_handle_failure(struct net_device *dev, u32 *msg) in i2o_lan_handle_failure() argument 137 u32 *preserved_msg = (u32*)(iop->mem_offset + msg[7]); in i2o_lan_handle_failure() 142 i2o_report_status(KERN_INFO, dev->name, msg); in i2o_lan_handle_failure() 146 if (msg[1] >> 24 == LAN_PACKET_SEND) { in i2o_lan_handle_failure() 163 if (msg[1] >> 24 == LAN_RECEIVE_POST) { in i2o_lan_handle_failure() 180 i2o_post_message(iop, msg[7]); in i2o_lan_handle_failure() 187 static void i2o_lan_handle_transaction_error(struct net_device *dev, u32 *msg) in i2o_lan_handle_transaction_error() argument 192 i2o_report_status(KERN_INFO, dev->name, msg); in i2o_lan_handle_transaction_error() [all …]
|
D | i2o_core.c | 160 u32 msg[MSG_FRAME_SIZE]; member 211 u32 *msg=(u32 *)m; in i2o_core_reply() local 213 u32 context = msg[2]; in i2o_core_reply() 215 if (msg[0] & MSG_FAIL) // Fail bit is set in i2o_core_reply() 217 u32 *preserved_msg = (u32*)(c->mem_offset + msg[7]); in i2o_core_reply() 219 i2o_report_status(KERN_INFO, "i2o_core", msg); in i2o_core_reply() 230 i2o_post_message(c, msg[7]); in i2o_core_reply() 238 i2o_report_status(KERN_INFO, "i2o_core", msg); in i2o_core_reply() 241 if(msg[2]&0x80000000) // Post wait message in i2o_core_reply() 243 if (msg[4] >> 24) in i2o_core_reply() [all …]
|
D | i2o_config.c | 86 u32 *msg = (u32 *)m; in i2o_cfg_reply() local 88 if (msg[0] & MSG_FAIL) { in i2o_cfg_reply() 89 u32 *preserved_msg = (u32*)(c->mem_offset + msg[7]); in i2o_cfg_reply() 98 i2o_post_message(c, msg[7]); in i2o_cfg_reply() 101 if (msg[4] >> 24) // ReqStatus != SUCCESS in i2o_cfg_reply() 102 i2o_report_status(KERN_INFO,"i2o_config", msg); in i2o_cfg_reply() 109 if(inf->q_id == msg[3]) in i2o_cfg_reply() 135 inf->event_q[inf->q_in].id.evt_mask = msg[4]; in i2o_cfg_reply() 143 (unsigned char *)(msg + 5), in i2o_cfg_reply() 450 u32 msg[MSG_FRAME_SIZE]; in ioctl_html() local [all …]
|
D | i2o_block.c | 272 unsigned long msg; in i2ob_send() local 283 msg = c->mem_offset + m; in i2ob_send() 288 __raw_writel(i2ob_context|(unit<<8), msg+8); in i2ob_send() 289 __raw_writel(ireq->num, msg+12); in i2ob_send() 290 __raw_writel(req->nr_sectors << 9, msg+20); in i2ob_send() 300 __raw_writel( offset & 0xFFFFFFFF, msg+24); in i2ob_send() 301 __raw_writel(offset>>32, msg+28); in i2ob_send() 302 mptr=msg+32; in i2ob_send() 307 __raw_writel(I2O_CMD_BLOCK_READ<<24|HOST_TID<<12|tid, msg+4); in i2ob_send() 336 __raw_writel(0, msg+16);break; in i2ob_send() [all …]
|
/linux-2.4.37.9/arch/m68k/mac/ |
D | iop.c | 232 static void iop_free_msg(struct iop_msg *msg) in iop_free_msg() argument 234 msg->status = IOP_MSGSTATUS_UNUSED; in iop_free_msg() 363 void iop_complete_message(struct iop_msg *msg) in iop_complete_message() argument 365 int iop_num = msg->iop_num; in iop_complete_message() 366 int chan = msg->channel; in iop_complete_message() 370 printk("iop_complete(%p): iop %d chan %d\n", msg, msg->iop_num, msg->channel); in iop_complete_message() 373 offset = IOP_ADDR_RECV_MSG + (msg->channel * IOP_MSG_LEN); in iop_complete_message() 376 iop_writeb(iop_base[iop_num], offset, msg->reply[i]); in iop_complete_message() 381 iop_interrupt(iop_base[msg->iop_num]); in iop_complete_message() 383 iop_free_msg(msg); in iop_complete_message() [all …]
|
/linux-2.4.37.9/drivers/sound/ |
D | midi_synth.c | 44 do_midi_msg(int synthno, unsigned char *msg, int mlen) in do_midi_msg() argument 46 switch (msg[0] & 0xf0) in do_midi_msg() 49 if (msg[2] != 0) in do_midi_msg() 51 STORE(SEQ_START_NOTE(synthno, msg[0] & 0x0f, msg[1], msg[2])); in do_midi_msg() 54 msg[2] = 64; in do_midi_msg() 57 STORE(SEQ_STOP_NOTE(synthno, msg[0] & 0x0f, msg[1], msg[2])); in do_midi_msg() 61 STORE(SEQ_KEY_PRESSURE(synthno, msg[0] & 0x0f, msg[1], msg[2])); in do_midi_msg() 65 STORE(SEQ_CONTROL(synthno, msg[0] & 0x0f, in do_midi_msg() 66 msg[1], msg[2])); in do_midi_msg() 70 STORE(SEQ_SET_PATCH(synthno, msg[0] & 0x0f, msg[1])); in do_midi_msg() [all …]
|
/linux-2.4.37.9/drivers/isdn/pcbit/ |
D | layer2.h | 91 #define SET_MSG_SCMD(msg, ch) (msg = (msg & 0xffffff00) | (((ch) & 0xff))) argument 92 #define SET_MSG_CMD(msg, ch) (msg = (msg & 0xffff00ff) | (((ch) & 0xff) << 8)) argument 93 #define SET_MSG_PROC(msg, ch) (msg = (msg & 0xff00ffff) | (((ch) & 0xff) << 16)) argument 94 #define SET_MSG_CPU(msg, ch) (msg = (msg & 0x00ffffff) | (((ch) & 0xff) << 24)) argument 96 #define GET_MSG_SCMD(msg) ((msg) & 0xFF) argument 97 #define GET_MSG_CMD(msg) ((msg) >> 8 & 0xFF) argument 98 #define GET_MSG_PROC(msg) ((msg) >> 16 & 0xFF) argument 99 #define GET_MSG_CPU(msg) ((msg) >> 24) argument 113 ulong msg; member 122 extern int pcbit_l2_write(struct pcbit_dev * dev, ulong msg, ushort refnum,
|
/linux-2.4.37.9/net/netlink/ |
D | netlink_dev.c | 60 struct msghdr msg; in netlink_write() local 65 msg.msg_name=NULL; in netlink_write() 66 msg.msg_namelen=0; in netlink_write() 67 msg.msg_controllen=0; in netlink_write() 68 msg.msg_flags=0; in netlink_write() 69 msg.msg_iov=&iov; in netlink_write() 70 msg.msg_iovlen=1; in netlink_write() 72 return sock_sendmsg(sock, &msg, count); in netlink_write() 84 struct msghdr msg; in netlink_read() local 89 msg.msg_name=NULL; in netlink_read() [all …]
|
/linux-2.4.37.9/drivers/scsi/ |
D | dpt_i2o.c | 279 u32 msg[14]; in adpt_inquiry() local 290 memset(msg, 0, sizeof(msg)); in adpt_inquiry() 304 msg[0] = reqlen<<16 | SGL_OFFSET_12; in adpt_inquiry() 305 msg[1] = (0xff<<24|HOST_TID<<12|ADAPTER_TID); in adpt_inquiry() 306 msg[2] = 0; in adpt_inquiry() 307 msg[3] = 0; in adpt_inquiry() 309 msg[4] = I2O_CMD_SCSI_EXEC|DPT_ORGANIZATION_ID<<16; in adpt_inquiry() 310 msg[5] = ADAPTER_TID | 1<<16 /* Interpret*/; in adpt_inquiry() 315 msg[6] = scsidir|0x20a00000| 6 /* cmd len*/; in adpt_inquiry() 317 mptr=msg+7; in adpt_inquiry() [all …]
|
/linux-2.4.37.9/ipc/ |
D | msg.c | 146 static void free_msg(struct msg_msg* msg) in free_msg() argument 149 seg = msg->next; in free_msg() 150 kfree(msg); in free_msg() 160 struct msg_msg* msg; in load_msg() local 169 msg = (struct msg_msg *) kmalloc (sizeof(*msg) + alen, GFP_KERNEL); in load_msg() 170 if(msg==NULL) in load_msg() 173 msg->next = NULL; in load_msg() 175 if (copy_from_user(msg+1, src, alen)) { in load_msg() 182 pseg = &msg->next; in load_msg() 203 return msg; in load_msg() [all …]
|
/linux-2.4.37.9/drivers/cdrom/ |
D | sbpcd.c | 807 static void msg(int level, const char *fmt, ...) in msg() function 855 msg(DBG_TIM,"delay timer expired.\n"); in mark_timeout_delay() 863 msg(DBG_TIM,"data timer expired.\n"); in mark_timeout_data() 872 msg(DBG_TIM,"audio timer expired.\n"); 1056 msg(DBG_TEA, "CDi_stat_loop_T: long sleep active.\n"); in CDi_stat_loop_T() 1090 msg(DBG_LCS,"CDi_stat_loop failed in line %d\n", __LINE__); in CDi_stat_loop() 1152 if (j>0) msg(DBG_INF,"ResponseInfo: got %d trailing bytes.\n",j); in ResponseInfo() 1157 msg(DBG_CMD,"ResponseInfo:%s (%d,%d)\n",msgbuf,response_count,i); in ResponseInfo() 1225 msg(DBG_TEA,"get_state_T error %d\n", i); in get_state_T() 1264 msg(DBG_STA,"doing ResponseStatus...\n"); in ResponseStatus() [all …]
|
/linux-2.4.37.9/net/core/ |
D | scm.c | 127 int __scm_send(struct socket *sock, struct msghdr *msg, struct scm_cookie *p) in __scm_send() argument 132 for (cmsg = CMSG_FIRSTHDR(msg); cmsg; cmsg = CMSG_NXTHDR(msg, cmsg)) in __scm_send() 144 if (!CMSG_OK(msg, cmsg)) in __scm_send() 182 int put_cmsg(struct msghdr * msg, int level, int type, int len, void *data) in put_cmsg() argument 184 struct cmsghdr *cm = (struct cmsghdr*)msg->msg_control; in put_cmsg() 189 if (cm==NULL || msg->msg_controllen < sizeof(*cm)) { in put_cmsg() 190 msg->msg_flags |= MSG_CTRUNC; in put_cmsg() 193 if (msg->msg_controllen < cmlen) { in put_cmsg() 194 msg->msg_flags |= MSG_CTRUNC; in put_cmsg() 195 cmlen = msg->msg_controllen; in put_cmsg() [all …]
|
/linux-2.4.37.9/net/ipv6/ |
D | icmp.c | 126 struct icmpv6_msg *msg = (struct icmpv6_msg *) data; in icmpv6_getfrag() local 131 csum = skb_copy_and_csum_bits(msg->skb, msg->offset + in icmpv6_getfrag() 133 buff, len, msg->csum); in icmpv6_getfrag() 134 msg->csum = csum; in icmpv6_getfrag() 138 csum = csum_partial_copy_nocheck((void *) &msg->icmph, buff, in icmpv6_getfrag() 139 sizeof(struct icmp6hdr), msg->csum); in icmpv6_getfrag() 141 csum = skb_copy_and_csum_bits(msg->skb, msg->offset, in icmpv6_getfrag() 147 icmph->icmp6_cksum = csum_ipv6_magic(saddr, msg->daddr, msg->len, in icmpv6_getfrag() 266 struct icmpv6_msg msg; in icmpv6_send() local 346 msg.icmph.icmp6_type = type; in icmpv6_send() [all …]
|
/linux-2.4.37.9/include/net/ |
D | scm.h | 23 extern void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm); 24 extern int __scm_send(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm); 34 static __inline__ int scm_send(struct socket *sock, struct msghdr *msg, in scm_send() argument 41 if (msg->msg_controllen <= 0) in scm_send() 43 return __scm_send(sock, msg, scm); in scm_send() 46 static __inline__ void scm_recv(struct socket *sock, struct msghdr *msg, in scm_recv() argument 49 if (!msg->msg_control) in scm_recv() 52 msg->msg_flags |= MSG_CTRUNC; in scm_recv() 58 put_cmsg(msg, SOL_SOCKET, SCM_CREDENTIALS, sizeof(scm->creds), &scm->creds); in scm_recv() 63 scm_detach_fds(msg, scm); in scm_recv()
|
/linux-2.4.37.9/drivers/atm/ |
D | atmtcp.c | 41 const struct atmtcp_control *msg,int flag) in atmtcp_send_control() argument 52 skb = alloc_skb(sizeof(*msg),GFP_KERNEL); in atmtcp_send_control() 62 *new_msg = *msg; in atmtcp_send_control() 86 static int atmtcp_recv_control(const struct atmtcp_control *msg) in atmtcp_recv_control() argument 88 struct atm_vcc *vcc = *(struct atm_vcc **) &msg->vcc; in atmtcp_recv_control() 90 vcc->vpi = msg->addr.sap_addr.vpi; in atmtcp_recv_control() 91 vcc->vci = msg->addr.sap_addr.vci; in atmtcp_recv_control() 92 vcc->qos = msg->qos; in atmtcp_recv_control() 93 vcc->reply = msg->result; in atmtcp_recv_control() 94 switch (msg->type) { in atmtcp_recv_control() [all …]
|