p->offset = htons(ix); 
p->offset = cpu_to_be16(ix); 
static int yealink_set_ringtone(struct yealink_dev *yld, u8 *buf, size_t size){	struct yld_ctl_packet *p = yld->ctl_data;	int	ix, len;	if (size <= 0)		return -EINVAL;	/* Set the ringtone volume */	memset(yld->ctl_data, 0, sizeof(*(yld->ctl_data)));	yld->ctl_data->cmd	= CMD_RING_VOLUME;	yld->ctl_data->size	= 1;	yld->ctl_data->data[0]	= buf[0];	yealink_cmd(yld, p);	buf++;	size--;	p->cmd = CMD_RING_NOTE;	ix = 0;	while (size != ix) {		len = size - ix;		if (len > sizeof(p->data))			len = sizeof(p->data);		p->size	  = len;		p->offset = htons(ix);		memcpy(p->data, &buf[ix], len);		yealink_cmd(yld, p);		ix += len;	}	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/b71e318cdb1dc301d734fdd4983dfc6dc167235a/yealink.c/buggy/drivers/usb/input/yealink.c