Lines Matching refs:ix
234 struct iwffff_xinstrument ix;
244 if (len < (long)sizeof(ix))
246 if (copy_from_user(&ix, instr_data, sizeof(ix)))
248 if (ix.stype != IWFFFF_STRU_INSTR)
250 instr_data += sizeof(ix);
251 len -= sizeof(ix);
253 ip->exclusion = le16_to_cpu(ix.exclusion);
254 ip->layer_type = le16_to_cpu(ix.layer_type);
255 ip->exclusion_group = le16_to_cpu(ix.exclusion_group);
256 ip->effect1 = ix.effect1;
257 ip->effect1_depth = ix.effect1_depth;
258 ip->effect2 = ix.effect2;
259 ip->effect2_depth = ix.effect2_depth;
454 struct iwffff_xinstrument ix;
462 if (len < (long)sizeof(ix))
464 memset(&ix, 0, sizeof(ix));
466 ix.stype = IWFFFF_STRU_INSTR;
467 ix.exclusion = cpu_to_le16(ip->exclusion);
468 ix.layer_type = cpu_to_le16(ip->layer_type);
469 ix.exclusion_group = cpu_to_le16(ip->exclusion_group);
470 ix.effect1 = cpu_to_le16(ip->effect1);
471 ix.effect1_depth = cpu_to_le16(ip->effect1_depth);
472 ix.effect2 = ip->effect2;
473 ix.effect2_depth = ip->effect2_depth;
474 if (copy_to_user(instr_data, &ix, sizeof(ix)))
476 instr_data += sizeof(ix);
477 len -= sizeof(ix);