Home
last modified time | relevance | path

Searched refs:data (Results 1 – 25 of 2207) sorted by relevance

12345678910>>...89

/linux-2.4.37.9/arch/ia64/kernel/
Dsalinfo.c44 static int salinfo_read(char *page, char **start, off_t off, int count, int *eof, void *data);
188 shift1_data_saved (struct salinfo_data *data, int shift) in shift1_data_saved() argument
190 if (data->data_saved[shift].kmalloced) in shift1_data_saved()
191 kfree(data->data_saved[shift].buffer); in shift1_data_saved()
192 memcpy(data->data_saved+shift, data->data_saved+shift+1, in shift1_data_saved()
193 (ARRAY_SIZE(data->data_saved) - (shift+1)) * sizeof(data->data_saved[0])); in shift1_data_saved()
194 memset(data->data_saved + ARRAY_SIZE(data->data_saved) - 1, 0, in shift1_data_saved()
195 sizeof(data->data_saved[0])); in shift1_data_saved()
212 struct salinfo_data *data = salinfo_data + type; in salinfo_log_wakeup() local
216 int saved_size = ARRAY_SIZE(data->data_saved); in salinfo_log_wakeup()
[all …]
/linux-2.4.37.9/fs/nfs/
Dunlink.c34 nfs_detach_unlinkdata(struct nfs_unlinkdata *data) in nfs_detach_unlinkdata() argument
39 if (*q == data) { in nfs_detach_unlinkdata()
40 *q = data->next; in nfs_detach_unlinkdata()
51 nfs_put_unlinkdata(struct nfs_unlinkdata *data) in nfs_put_unlinkdata() argument
53 if (--data->count == 0) { in nfs_put_unlinkdata()
54 nfs_detach_unlinkdata(data); in nfs_put_unlinkdata()
55 if (data->name.name != NULL) in nfs_put_unlinkdata()
56 kfree(data->name.name); in nfs_put_unlinkdata()
57 kfree(data); in nfs_put_unlinkdata()
68 nfs_copy_dname(struct dentry *dentry, struct nfs_unlinkdata *data) in nfs_copy_dname() argument
[all …]
/linux-2.4.37.9/drivers/acpi/resources/
Drsaddr.c119 output_struct->data.address16.resource_type = temp8 & 0x03; in acpi_rs_address16_resource()
129 output_struct->data.address16.producer_consumer = temp8 & 0x01; in acpi_rs_address16_resource()
133 output_struct->data.address16.decode = (temp8 >> 1) & 0x01; in acpi_rs_address16_resource()
137 output_struct->data.address16.min_address_fixed = (temp8 >> 2) & 0x01; in acpi_rs_address16_resource()
141 output_struct->data.address16.max_address_fixed = (temp8 >> 3) & 0x01; in acpi_rs_address16_resource()
149 if (ACPI_MEMORY_RANGE == output_struct->data.address16.resource_type) { in acpi_rs_address16_resource()
150 output_struct->data.address16.attribute.memory.read_write_attribute = in acpi_rs_address16_resource()
152 output_struct->data.address16.attribute.memory.cache_attribute = in acpi_rs_address16_resource()
156 if (ACPI_IO_RANGE == output_struct->data.address16.resource_type) { in acpi_rs_address16_resource()
157 output_struct->data.address16.attribute.io.range_attribute = in acpi_rs_address16_resource()
[all …]
Drsirq.c106 output_struct->data.irq.number_of_interrupts = 0; in acpi_rs_irq_resource()
112 output_struct->data.irq.interrupts[i] = index; in acpi_rs_irq_resource()
119 output_struct->data.irq.number_of_interrupts = i; in acpi_rs_irq_resource()
139 output_struct->data.irq.edge_level = ACPI_EDGE_SENSITIVE; in acpi_rs_irq_resource()
140 output_struct->data.irq.active_high_low = ACPI_ACTIVE_HIGH; in acpi_rs_irq_resource()
144 output_struct->data.irq.edge_level = ACPI_LEVEL_SENSITIVE; in acpi_rs_irq_resource()
145 output_struct->data.irq.active_high_low = ACPI_ACTIVE_LOW; in acpi_rs_irq_resource()
162 output_struct->data.irq.shared_exclusive = (temp8 >> 3) & 0x01; in acpi_rs_irq_resource()
169 output_struct->data.irq.edge_level = ACPI_EDGE_SENSITIVE; in acpi_rs_irq_resource()
170 output_struct->data.irq.active_high_low = ACPI_ACTIVE_HIGH; in acpi_rs_irq_resource()
[all …]
/linux-2.4.37.9/drivers/char/joystick/
Da3d.c72 static int a3d_read_packet(struct gameport *gameport, int length, char *data) in a3d_read_packet() argument
92 data[i++] = v >> 5; in a3d_read_packet()
106 static int a3d_csum(char *data, int count) in a3d_csum() argument
109 for (i = 0; i < count - 2; i++) csum += data[i]; in a3d_csum()
110 return (csum & 0x3f) != ((data[count - 2] << 3) | data[count - 1]); in a3d_csum()
113 static void a3d_read(struct a3d *a3d, unsigned char *data) in a3d_read() argument
123 … input_report_rel(dev, REL_X, ((data[5] << 6) | (data[6] << 3) | data[ 7]) - ((data[5] & 4) << 7)); in a3d_read()
124 … input_report_rel(dev, REL_Y, ((data[8] << 6) | (data[9] << 3) | data[10]) - ((data[8] & 4) << 7)); in a3d_read()
126 input_report_key(dev, BTN_RIGHT, data[2] & 1); in a3d_read()
127 input_report_key(dev, BTN_LEFT, data[3] & 2); in a3d_read()
[all …]
Ddb9.c110 int data, i; in db9_timer() local
115 data = parport_read_data(port) >> 3; in db9_timer()
117 input_report_abs(dev + 1, ABS_X, (data & DB9_RIGHT ? 0 : 1) - (data & DB9_LEFT ? 0 : 1)); in db9_timer()
118 input_report_abs(dev + 1, ABS_Y, (data & DB9_DOWN ? 0 : 1) - (data & DB9_UP ? 0 : 1)); in db9_timer()
119 input_report_key(dev + 1, BTN_TRIGGER, ~data & DB9_FIRE1); in db9_timer()
123 data = parport_read_status(port) >> 3; in db9_timer()
125 input_report_abs(dev, ABS_X, (data & DB9_RIGHT ? 0 : 1) - (data & DB9_LEFT ? 0 : 1)); in db9_timer()
126 input_report_abs(dev, ABS_Y, (data & DB9_DOWN ? 0 : 1) - (data & DB9_UP ? 0 : 1)); in db9_timer()
127 input_report_key(dev, BTN_TRIGGER, data & DB9_FIRE1); in db9_timer()
132 data = parport_read_data(port); in db9_timer()
[all …]
Dgrip.c85 static int grip_gpp_read_packet(struct gameport *gameport, int shift, unsigned int *data) in grip_gpp_read_packet() argument
94 data[0] = 0; in grip_gpp_read_packet()
107 data[0] |= (v >> 1) << i++; in grip_gpp_read_packet()
116 for (i = 0; i < GRIP_LENGTH_GPP && (data[0] & 0xfe4210) ^ 0x7c0000; i++) in grip_gpp_read_packet()
117 data[0] = data[0] >> 1 | (data[0] & 1) << (GRIP_LENGTH_GPP - 1); in grip_gpp_read_packet()
126 static int grip_xt_read_packet(struct gameport *gameport, int shift, unsigned int *data) in grip_xt_read_packet() argument
136 data[0] = data[1] = data[2] = data[3] = 0; in grip_xt_read_packet()
161 data[buf >> 18] = buf >> 4; in grip_xt_read_packet()
188 unsigned int data[GRIP_LENGTH_XT]; in grip_timer() local
201 if (grip_gpp_read_packet(grip->gameport, (i << 1) + 4, data)) { in grip_timer()
[all …]
Dspaceorb.c61 unsigned char data[SPACEORB_MAX_LENGTH]; member
77 unsigned char *data = spaceorb->data; in spaceorb_process_packet() local
83 for (i = 0; i < spaceorb->idx; i++) c ^= data[i]; in spaceorb_process_packet()
86 switch (data[0]) { in spaceorb_process_packet()
89 spaceorb->data[spaceorb->idx - 1] = 0; in spaceorb_process_packet()
90 for (i = 1; i < spaceorb->idx && spaceorb->data[i] == ' '; i++); in spaceorb_process_packet()
92 spaceorb->dev.number, spaceorb_name, spaceorb->data + i, spaceorb->serio->number); in spaceorb_process_packet()
97 for (i = 0; i < 9; i++) spaceorb->data[i+2] ^= spaceorb_xor[i]; in spaceorb_process_packet()
98 axes[0] = ( data[2] << 3) | (data[ 3] >> 4); in spaceorb_process_packet()
99 axes[1] = ((data[3] & 0x0f) << 6) | (data[ 4] >> 1); in spaceorb_process_packet()
[all …]
Dwarrior.c55 unsigned char data[WARRIOR_MAX_LENGTH]; member
66 unsigned char *data = warrior->data; in warrior_process_packet() local
70 switch ((data[0] >> 4) & 7) { in warrior_process_packet()
72 input_report_key(dev, BTN_TRIGGER, data[3] & 1); in warrior_process_packet()
73 input_report_key(dev, BTN_THUMB, (data[3] >> 1) & 1); in warrior_process_packet()
74 input_report_key(dev, BTN_TOP, (data[3] >> 2) & 1); in warrior_process_packet()
75 input_report_key(dev, BTN_TOP2, (data[3] >> 3) & 1); in warrior_process_packet()
78 input_report_abs(dev, ABS_X, ((data[0] & 8) << 5) - (data[2] | ((data[0] & 4) << 5))); in warrior_process_packet()
79 input_report_abs(dev, ABS_Y, (data[1] | ((data[0] & 1) << 7)) - ((data[0] & 2) << 7)); in warrior_process_packet()
82 input_report_abs(dev, ABS_THROTTLE, (data[1] | ((data[0] & 1) << 7)) - ((data[0] & 2) << 7)); in warrior_process_packet()
[all …]
/linux-2.4.37.9/drivers/scsi/
Dnsp32.c411 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_build_identify() local
412 int pos = data->msgout_len; in nsp32_build_identify()
420 data->msgoutbuf[pos] = IDENTIFY(mode, SCpnt->device->lun); pos++; in nsp32_build_identify()
422 data->msgout_len = pos; in nsp32_build_identify()
432 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; in nsp32_build_sdtr() local
433 int pos = data->msgout_len; in nsp32_build_sdtr()
435 data->msgoutbuf[pos] = EXTENDED_MESSAGE; pos++; in nsp32_build_sdtr()
436 data->msgoutbuf[pos] = EXTENDED_SDTR_LEN; pos++; in nsp32_build_sdtr()
437 data->msgoutbuf[pos] = EXTENDED_SDTR; pos++; in nsp32_build_sdtr()
438 data->msgoutbuf[pos] = period; pos++; in nsp32_build_sdtr()
[all …]
/linux-2.4.37.9/drivers/acpi/
Dpci_bind.c81 struct acpi_pci_data *data = NULL; in acpi_os_get_pci_id() local
96 status = acpi_get_data(handle, acpi_pci_data_handler, (void**) &data); in acpi_os_get_pci_id()
97 if (ACPI_FAILURE(status) || !data || !data->dev) { in acpi_os_get_pci_id()
104 *id = data->id; in acpi_os_get_pci_id()
128 struct acpi_pci_data *data = NULL; in acpi_pci_bind() local
139 data = kmalloc(sizeof(struct acpi_pci_data), GFP_KERNEL); in acpi_pci_bind()
140 if (!data) in acpi_pci_bind()
142 memset(data, 0, sizeof(struct acpi_pci_data)); in acpi_pci_bind()
162 data->id.segment = pdata->id.segment; in acpi_pci_bind()
163 data->id.bus = pdata->bus->number; in acpi_pci_bind()
[all …]
/linux-2.4.37.9/drivers/usb/
Dwacom.c107 signed char data[10]; member
120 unsigned char *data = wacom->data; in wacom_pl_irq() local
126 if (data[0] != 2) { in wacom_pl_irq()
127 printk(KERN_ERR "wacom_pl_irq: received unknown report #%d\n", data[0]); in wacom_pl_irq()
131 prox = data[1] & 0x20; in wacom_pl_irq()
136 int pressure = (data[4] & 0x04) >> 2 | ((__u32)(data[7] & 0x7f) << 1); in wacom_pl_irq()
138 input_report_abs(dev, ABS_X, data[3] | ((__u32)data[2] << 8) | ((__u32)(data[1] & 0x03) << 16)); in wacom_pl_irq()
139 input_report_abs(dev, ABS_Y, data[6] | ((__u32)data[5] << 8) | ((__u32)(data[4] & 0x03) << 8)); in wacom_pl_irq()
140 input_report_abs(dev, ABS_PRESSURE, (data[7] & 0x80) ? (255 - pressure) : (pressure + 255)); in wacom_pl_irq()
141 input_report_key(dev, BTN_TOUCH, data[4] & 0x08); in wacom_pl_irq()
[all …]
/linux-2.4.37.9/include/linux/
Di2c-dev.h39 union i2c_smbus_data *data; member
53 int size, union i2c_smbus_data *data) in i2c_smbus_access() argument
60 args.data = data; in i2c_smbus_access()
72 union i2c_smbus_data data; in i2c_smbus_read_byte() local
73 if (i2c_smbus_access(file,I2C_SMBUS_READ,0,I2C_SMBUS_BYTE,&data)) in i2c_smbus_read_byte()
76 return 0x0FF & data.byte; in i2c_smbus_read_byte()
87 union i2c_smbus_data data; in i2c_smbus_read_byte_data() local
89 I2C_SMBUS_BYTE_DATA,&data)) in i2c_smbus_read_byte_data()
92 return 0x0FF & data.byte; in i2c_smbus_read_byte_data()
98 union i2c_smbus_data data; in i2c_smbus_write_byte_data() local
[all …]
/linux-2.4.37.9/drivers/sound/dmasound/
Dtrans_16.c79 u_char data; in pmac_ct_law() local
80 if (get_user(data, userPtr++)) in pmac_ct_law()
82 val = table[data]; in pmac_ct_law()
85 if (get_user(data, userPtr++)) in pmac_ct_law()
87 val = table[data]; in pmac_ct_law()
110 u_char data; in pmac_ct_s8() local
111 if (get_user(data, userPtr++)) in pmac_ct_s8()
113 val = data << 8; in pmac_ct_s8()
116 if (get_user(data, userPtr++)) in pmac_ct_s8()
118 val = data << 8; in pmac_ct_s8()
[all …]
Dtas3001c.c106 struct tas_data_t *data; in tumbler_get_volume() local
111 data = (struct tas_data_t *) (tumbler_client->data); in tumbler_get_volume()
112 *left_vol = data->left_vol; in tumbler_get_volume()
113 *right_vol = data->right_vol; in tumbler_get_volume()
131 struct tas_data_t *data; in tumbler_get_pcm_lvl() local
136 data = (struct tas_data_t *) (tumbler_client->data); in tumbler_get_pcm_lvl()
137 *pcm_lvl = data->pcm_level; in tumbler_get_pcm_lvl()
145 struct tas_data_t *data; in tumbler_get_treble() local
150 data = (struct tas_data_t *) (tumbler_client->data); in tumbler_get_treble()
151 *treble = data->treble; in tumbler_get_treble()
[all …]
/linux-2.4.37.9/net/lapb/
Dlapb_subr.c117 …(%p) S%d RX %02X %02X %02X\n", lapb->token, lapb->state, skb->data[0], skb->data[1], skb->data[2]); in lapb_decode()
122 if (skb->data[0] == LAPB_ADDR_D) in lapb_decode()
124 if (skb->data[0] == LAPB_ADDR_C) in lapb_decode()
127 if (skb->data[0] == LAPB_ADDR_C) in lapb_decode()
129 if (skb->data[0] == LAPB_ADDR_D) in lapb_decode()
134 if (skb->data[0] == LAPB_ADDR_B) in lapb_decode()
136 if (skb->data[0] == LAPB_ADDR_A) in lapb_decode()
139 if (skb->data[0] == LAPB_ADDR_A) in lapb_decode()
141 if (skb->data[0] == LAPB_ADDR_B) in lapb_decode()
149 if ((skb->data[0] & LAPB_S) == 0) { in lapb_decode()
[all …]
/linux-2.4.37.9/drivers/sound/emu10k1/
Dcardmi.c148 midiq->midibyte = midihdr->data; in emu10k1_mpuin_add_buffer()
272 int emu10k1_mpuin_callback(struct emu10k1_mpuin *card_mpuin, u32 msg, unsigned long data, u32 bytes… in emu10k1_mpuin_callback() argument
291 callback_msg[1] = data; in emu10k1_mpuin_callback()
293 DPD(2, "emu10k1_mpuin_callback: midimsg = %#lx\n", data); in emu10k1_mpuin_callback()
295 midiq = (struct midi_queue *) data; in emu10k1_mpuin_callback()
314 u8 data; in emu10k1_mpuin_bh() local
322 data = card_mpuin->midiq[idx].data; in emu10k1_mpuin_bh()
328 sblive_miStateEntry(card_mpuin, data); in emu10k1_mpuin_bh()
355 card_mpuin->midiq[idx].data = MPUIvalue; in emu10k1_mpuin_irqhandler()
383 card_mpuin->data = 0; in sblive_miStateInit()
[all …]
/linux-2.4.37.9/drivers/net/
Datari_bionet.c228 bionet_intr(int irq, void *data, struct pt_regs *fp) { in bionet_intr() argument
428 bionet_timer.data = (long)dev; in bionet_open()
451 unsigned long buf = virt_to_phys(skb->data); in bionet_send_packet()
457 memcpy(nic_packet->buffer, skb->data, length); in bionet_send_packet()
462 u_char *data = nic_packet->buffer, *p; in bionet_send_packet() local
466 ((u_short *)data)[6]); in bionet_send_packet()
468 for( p = &data[6], i = 0; i < 6; i++ ) in bionet_send_packet()
472 for( p = data, i = 0; i < 6; i++ ) in bionet_send_packet()
478 data[12], data[13], data[14], data[15], data[16], data[17], data[18], data[19], in bionet_send_packet()
479 data[20], data[21], data[22], data[23], data[24], data[25], data[26], data[27], in bionet_send_packet()
[all …]
/linux-2.4.37.9/drivers/macintosh/
Dmac_keyb.c313 keyboard_input(unsigned char *data, int nb, struct pt_regs *regs, int apoll) in keyboard_input() argument
316 if (nb != 3 || (data[0] & 3) != KEYB_KEYREG) in keyboard_input()
319 input_keycode(data[1], 0); in keyboard_input()
320 if (!(data[2] == 0xff || (data[2] == 0x7f && data[1] == 0x7f))) in keyboard_input()
321 input_keycode(data[2], 0); in keyboard_input()
361 static unsigned char data[4] = { 0, 0x80, 0x80, 0x80 }; in input_keycode() local
364 if (data[button] != up_flag) { in input_keycode()
366 data[button] = up_flag; in input_keycode()
369 data[1], data[2], data[3]); in input_keycode()
371 adb_mouse_interrupt_hook(data, 4); in input_keycode()
[all …]
/linux-2.4.37.9/drivers/isdn/tpam/
Dtpam_crcpc.c98 register u8 data; in hdlc_encode_modem() local
108 #define ESCAPE_CHAR(data_out, data) \ in hdlc_encode_modem() argument
109 if (ap_t_ctrl_char_complemented[data]) { \ in hdlc_encode_modem()
111 *data_out++ = data ^ 0x20; \ in hdlc_encode_modem()
114 *data_out++ = data; in hdlc_encode_modem()
117 data = *buffer_in++; in hdlc_encode_modem()
122 fcs = (fcs>>8) ^ t_ap_hdlc_like_fcs[((u8)(fcs^data)) & 0xff]; in hdlc_encode_modem()
124 ESCAPE_CHAR(p_data_out, data); in hdlc_encode_modem()
132 data = (u8)(fcs & 0xff); /* LSB */ in hdlc_encode_modem()
133 ESCAPE_CHAR(p_data_out, data); in hdlc_encode_modem()
[all …]
/linux-2.4.37.9/fs/nfsd/
Dnfsctl.c37 static int nfsctl_svc(struct nfsctl_svc *data);
38 static int nfsctl_addclient(struct nfsctl_client *data);
39 static int nfsctl_delclient(struct nfsctl_client *data);
40 static int nfsctl_export(struct nfsctl_export *data);
41 static int nfsctl_unexport(struct nfsctl_export *data);
46 static int nfsctl_ugidupdate(struct nfsctl_ugidmap *data);
72 nfsctl_svc(struct nfsctl_svc *data) in nfsctl_svc() argument
74 return nfsd_svc(data->svc_port, data->svc_nthreads); in nfsctl_svc()
78 nfsctl_addclient(struct nfsctl_client *data) in nfsctl_addclient() argument
80 return exp_addclient(data); in nfsctl_addclient()
[all …]
/linux-2.4.37.9/arch/mips/au1000/common/
Dpci_ops.c92 unsigned char where, u32 * data) in config_access() argument
99 *data = 0xffffffff; in config_access()
106 au_writel(*data, config); in config_access()
108 *data = au_readl(config); in config_access()
113 access_type, bus, dev_fn, where, *data, config); in config_access()
115 DBG("bridge config reg: %x (%x)\n", au_readl(PCI_BRIDGE_CONFIG), *data); in config_access()
118 *data = 0xffffffff; in config_access()
163 unsigned char where, u32 * data) in config_access() argument
177 *data = 0xffffffff; in config_access()
214 *data = 0xffffffff; in config_access()
[all …]
/linux-2.4.37.9/include/asm-mips/
Dtitan_dep.h25 #define TITAN_WRITE(ofs, data) \ argument
26 *(volatile u32 *)(TITAN_PCI_BASE+(ofs)) = cpu_to_le32(data)
27 #define TITAN_READ(ofs, data) \ argument
28 *(data) = le32_to_cpu(*(volatile u32 *)(TITAN_PCI_BASE+(ofs)))
32 #define TITAN_WRITE_16(ofs, data) \ argument
33 *(volatile u16 *)(TITAN_PCI_BASE+(ofs)) = cpu_to_le16(data)
34 #define TITAN_READ_16(ofs, data) \ argument
35 *(data) = le16_to_cpu(*(volatile u16 *)(TITAN_PCI_BASE+(ofs)))
37 #define TITAN_WRITE_8(ofs, data) \ argument
38 *(volatile u8 *)(TITAN_PCI_BASE+(ofs)) = data
[all …]
/linux-2.4.37.9/include/asm-mips64/
Dtitan_dep.h25 #define TITAN_WRITE(ofs, data) \ argument
26 *(volatile u32 *)(TITAN_PCI_BASE+(ofs)) = cpu_to_le32(data)
27 #define TITAN_READ(ofs, data) \ argument
28 *(data) = le32_to_cpu(*(volatile u32 *)(TITAN_PCI_BASE+(ofs)))
32 #define TITAN_WRITE_16(ofs, data) \ argument
33 *(volatile u16 *)(TITAN_PCI_BASE+(ofs)) = cpu_to_le16(data)
34 #define TITAN_READ_16(ofs, data) \ argument
35 *(data) = le16_to_cpu(*(volatile u16 *)(TITAN_PCI_BASE+(ofs)))
37 #define TITAN_WRITE_8(ofs, data) \ argument
38 *(volatile u8 *)(TITAN_PCI_BASE+(ofs)) = data
[all …]
/linux-2.4.37.9/drivers/isdn/pcbit/
Dcapi.c311 *((u16 *) (skb->data)) = chan->callref; in capi_tdata_req()
312 skb->data[2] = chan->layer2link; in capi_tdata_req()
313 *((u16 *) (skb->data + 3)) = data_len; in capi_tdata_req()
316 *((u32 *) (skb->data + 5)) = chan->s_refnum; in capi_tdata_req()
318 skb->data[9] = 0; /* HDLC frame number */ in capi_tdata_req()
390 chan->callref = *((ushort*) skb->data); in capi_decode_conn_ind()
404 CIlen = skb->data[0]; in capi_decode_conn_ind()
408 if ( ((skb->data[1]) & 0xFC) == 0x48 ) in capi_decode_conn_ind()
410 printk(KERN_DEBUG "phyChan = %d\n", skb->data[1] & 0x03); in capi_decode_conn_ind()
420 len = skb->data[0]; in capi_decode_conn_ind()
[all …]

12345678910>>...89