/linux-4.1.27/arch/powerpc/perf/ |
H A D | hv-common.c | 15 struct p arg = { hv_perf_caps_get() local 25 virt_to_phys(&arg), sizeof(arg)); hv_perf_caps_get() 30 pr_devel("capability_mask: 0x%x\n", arg.caps.capability_mask); hv_perf_caps_get() 32 caps->version = arg.params.counter_info_version_out; hv_perf_caps_get() 33 caps->collect_privileged = !!arg.caps.perf_collect_privileged; hv_perf_caps_get() 34 caps->ga = !!(arg.caps.capability_mask & HV_GPCI_CM_GA); hv_perf_caps_get() 35 caps->expanded = !!(arg.caps.capability_mask & HV_GPCI_CM_EXPANDED); hv_perf_caps_get() 36 caps->lab = !!(arg.caps.capability_mask & HV_GPCI_CM_LAB); hv_perf_caps_get()
|
/linux-4.1.27/arch/ia64/kernel/ |
H A D | unwind_decoder.c | 30 * UNW_DEC_ABI(fmt,abi,context,arg) 31 * UNW_DEC_BR_GR(fmt,brmask,gr,arg) 32 * UNW_DEC_BR_MEM(fmt,brmask,arg) 33 * UNW_DEC_COPY_STATE(fmt,label,arg) 34 * UNW_DEC_EPILOGUE(fmt,t,ecount,arg) 35 * UNW_DEC_FRGR_MEM(fmt,grmask,frmask,arg) 36 * UNW_DEC_FR_MEM(fmt,frmask,arg) 37 * UNW_DEC_GR_GR(fmt,grmask,gr,arg) 38 * UNW_DEC_GR_MEM(fmt,grmask,arg) 39 * UNW_DEC_LABEL_STATE(fmt,label,arg) 40 * UNW_DEC_MEM_STACK_F(fmt,t,size,arg) 41 * UNW_DEC_MEM_STACK_V(fmt,t,arg) 42 * UNW_DEC_PRIUNAT_GR(fmt,r,arg) 43 * UNW_DEC_PRIUNAT_WHEN_GR(fmt,t,arg) 44 * UNW_DEC_PRIUNAT_WHEN_MEM(fmt,t,arg) 45 * UNW_DEC_PRIUNAT_WHEN_PSPREL(fmt,pspoff,arg) 46 * UNW_DEC_PRIUNAT_WHEN_SPREL(fmt,spoff,arg) 47 * UNW_DEC_PROLOGUE(fmt,body,rlen,arg) 48 * UNW_DEC_PROLOGUE_GR(fmt,rlen,mask,grsave,arg) 49 * UNW_DEC_REG_PSPREL(fmt,reg,pspoff,arg) 50 * UNW_DEC_REG_REG(fmt,src,dst,arg) 51 * UNW_DEC_REG_SPREL(fmt,reg,spoff,arg) 52 * UNW_DEC_REG_WHEN(fmt,reg,t,arg) 53 * UNW_DEC_RESTORE(fmt,t,abreg,arg) 54 * UNW_DEC_RESTORE_P(fmt,qp,t,abreg,arg) 55 * UNW_DEC_SPILL_BASE(fmt,pspoff,arg) 56 * UNW_DEC_SPILL_MASK(fmt,imaskp,arg) 57 * UNW_DEC_SPILL_PSPREL(fmt,t,abreg,pspoff,arg) 58 * UNW_DEC_SPILL_PSPREL_P(fmt,qp,t,abreg,pspoff,arg) 59 * UNW_DEC_SPILL_REG(fmt,t,abreg,x,ytreg,arg) 60 * UNW_DEC_SPILL_REG_P(fmt,qp,t,abreg,x,ytreg,arg) 61 * UNW_DEC_SPILL_SPREL(fmt,t,abreg,spoff,arg) 62 * UNW_DEC_SPILL_SPREL_P(fmt,qp,t,abreg,pspoff,arg) 85 unw_decode_x1 (unsigned char *dp, unsigned char code, void *arg) unw_decode_x1() argument 95 UNW_DEC_SPILL_SPREL(X1, t, abreg, off, arg); unw_decode_x1() 97 UNW_DEC_SPILL_PSPREL(X1, t, abreg, off, arg); unw_decode_x1() 102 unw_decode_x2 (unsigned char *dp, unsigned char code, void *arg) unw_decode_x2() argument 113 UNW_DEC_RESTORE(X2, t, abreg, arg); unw_decode_x2() 115 UNW_DEC_SPILL_REG(X2, t, abreg, x, ytreg, arg); unw_decode_x2() 120 unw_decode_x3 (unsigned char *dp, unsigned char code, void *arg) unw_decode_x3() argument 133 UNW_DEC_SPILL_SPREL_P(X3, qp, t, abreg, off, arg); unw_decode_x3() 135 UNW_DEC_SPILL_PSPREL_P(X3, qp, t, abreg, off, arg); unw_decode_x3() 140 unw_decode_x4 (unsigned char *dp, unsigned char code, void *arg) unw_decode_x4() argument 154 UNW_DEC_RESTORE_P(X4, qp, t, abreg, arg); unw_decode_x4() 156 UNW_DEC_SPILL_REG_P(X4, qp, t, abreg, x, ytreg, arg); unw_decode_x4() 161 unw_decode_r1 (unsigned char *dp, unsigned char code, void *arg) unw_decode_r1() argument 167 UNW_DEC_PROLOGUE(R1, body, rlen, arg); unw_decode_r1() 172 unw_decode_r2 (unsigned char *dp, unsigned char code, void *arg) unw_decode_r2() argument 182 UNW_DEC_PROLOGUE_GR(R2, rlen, mask, grsave, arg); unw_decode_r2() 187 unw_decode_r3 (unsigned char *dp, unsigned char code, void *arg) unw_decode_r3() argument 192 UNW_DEC_PROLOGUE(R3, ((code & 0x3) == 1), rlen, arg); unw_decode_r3() 197 unw_decode_p1 (unsigned char *dp, unsigned char code, void *arg) unw_decode_p1() argument 201 UNW_DEC_BR_MEM(P1, brmask, arg); unw_decode_p1() 206 unw_decode_p2_p5 (unsigned char *dp, unsigned char code, void *arg) unw_decode_p2_p5() argument 213 (byte1 & 0x7f), arg); unw_decode_p2_p5() 223 case 0: UNW_DEC_REG_GR(P3, UNW_REG_PSP, dst, arg); break; unw_decode_p2_p5() 224 case 1: UNW_DEC_REG_GR(P3, UNW_REG_RP, dst, arg); break; unw_decode_p2_p5() 225 case 2: UNW_DEC_REG_GR(P3, UNW_REG_PFS, dst, arg); break; unw_decode_p2_p5() 226 case 3: UNW_DEC_REG_GR(P3, UNW_REG_PR, dst, arg); break; unw_decode_p2_p5() 227 case 4: UNW_DEC_REG_GR(P3, UNW_REG_UNAT, dst, arg); break; unw_decode_p2_p5() 228 case 5: UNW_DEC_REG_GR(P3, UNW_REG_LC, dst, arg); break; unw_decode_p2_p5() 229 case 6: UNW_DEC_RP_BR(P3, dst, arg); break; unw_decode_p2_p5() 230 case 7: UNW_DEC_REG_GR(P3, UNW_REG_RNAT, dst, arg); break; unw_decode_p2_p5() 231 case 8: UNW_DEC_REG_GR(P3, UNW_REG_BSP, dst, arg); break; unw_decode_p2_p5() 232 case 9: UNW_DEC_REG_GR(P3, UNW_REG_BSPSTORE, dst, arg); break; unw_decode_p2_p5() 233 case 10: UNW_DEC_REG_GR(P3, UNW_REG_FPSR, dst, arg); break; unw_decode_p2_p5() 234 case 11: UNW_DEC_PRIUNAT_GR(P3, dst, arg); break; unw_decode_p2_p5() 239 UNW_DEC_SPILL_MASK(P4, dp, arg); unw_decode_p2_p5() 247 UNW_DEC_FRGR_MEM(P5, grmask, frmask, arg); unw_decode_p2_p5() 255 unw_decode_p6 (unsigned char *dp, unsigned char code, void *arg) unw_decode_p6() argument 261 UNW_DEC_GR_MEM(P6, mask, arg); unw_decode_p6() 263 UNW_DEC_FR_MEM(P6, mask, arg); unw_decode_p6() 268 unw_decode_p7_p10 (unsigned char *dp, unsigned char code, void *arg) unw_decode_p7_p10() argument 281 UNW_DEC_MEM_STACK_F(P7, t, size, arg); unw_decode_p7_p10() 284 case 1: UNW_DEC_MEM_STACK_V(P7, t, arg); break; unw_decode_p7_p10() 285 case 2: UNW_DEC_SPILL_BASE(P7, t, arg); break; unw_decode_p7_p10() 286 case 3: UNW_DEC_REG_SPREL(P7, UNW_REG_PSP, t, arg); break; unw_decode_p7_p10() 287 case 4: UNW_DEC_REG_WHEN(P7, UNW_REG_RP, t, arg); break; unw_decode_p7_p10() 288 case 5: UNW_DEC_REG_PSPREL(P7, UNW_REG_RP, t, arg); break; unw_decode_p7_p10() 289 case 6: UNW_DEC_REG_WHEN(P7, UNW_REG_PFS, t, arg); break; unw_decode_p7_p10() 290 case 7: UNW_DEC_REG_PSPREL(P7, UNW_REG_PFS, t, arg); break; unw_decode_p7_p10() 291 case 8: UNW_DEC_REG_WHEN(P7, UNW_REG_PR, t, arg); break; unw_decode_p7_p10() 292 case 9: UNW_DEC_REG_PSPREL(P7, UNW_REG_PR, t, arg); break; unw_decode_p7_p10() 293 case 10: UNW_DEC_REG_WHEN(P7, UNW_REG_LC, t, arg); break; unw_decode_p7_p10() 294 case 11: UNW_DEC_REG_PSPREL(P7, UNW_REG_LC, t, arg); break; unw_decode_p7_p10() 295 case 12: UNW_DEC_REG_WHEN(P7, UNW_REG_UNAT, t, arg); break; unw_decode_p7_p10() 296 case 13: UNW_DEC_REG_PSPREL(P7, UNW_REG_UNAT, t, arg); break; unw_decode_p7_p10() 297 case 14: UNW_DEC_REG_WHEN(P7, UNW_REG_FPSR, t, arg); break; unw_decode_p7_p10() 298 case 15: UNW_DEC_REG_PSPREL(P7, UNW_REG_FPSR, t, arg); break; unw_decode_p7_p10() 312 case 1: UNW_DEC_REG_SPREL(P8, UNW_REG_RP, t, arg); break; unw_decode_p7_p10() 313 case 2: UNW_DEC_REG_SPREL(P8, UNW_REG_PFS, t, arg); break; unw_decode_p7_p10() 314 case 3: UNW_DEC_REG_SPREL(P8, UNW_REG_PR, t, arg); break; unw_decode_p7_p10() 315 case 4: UNW_DEC_REG_SPREL(P8, UNW_REG_LC, t, arg); break; unw_decode_p7_p10() 316 case 5: UNW_DEC_REG_SPREL(P8, UNW_REG_UNAT, t, arg); break; unw_decode_p7_p10() 317 case 6: UNW_DEC_REG_SPREL(P8, UNW_REG_FPSR, t, arg); break; unw_decode_p7_p10() 318 case 7: UNW_DEC_REG_WHEN(P8, UNW_REG_BSP, t, arg); break; unw_decode_p7_p10() 319 case 8: UNW_DEC_REG_PSPREL(P8, UNW_REG_BSP, t, arg); break; unw_decode_p7_p10() 320 case 9: UNW_DEC_REG_SPREL(P8, UNW_REG_BSP, t, arg); break; unw_decode_p7_p10() 321 case 10: UNW_DEC_REG_WHEN(P8, UNW_REG_BSPSTORE, t, arg); break; unw_decode_p7_p10() 322 case 11: UNW_DEC_REG_PSPREL(P8, UNW_REG_BSPSTORE, t, arg); break; unw_decode_p7_p10() 323 case 12: UNW_DEC_REG_SPREL(P8, UNW_REG_BSPSTORE, t, arg); break; unw_decode_p7_p10() 324 case 13: UNW_DEC_REG_WHEN(P8, UNW_REG_RNAT, t, arg); break; unw_decode_p7_p10() 325 case 14: UNW_DEC_REG_PSPREL(P8, UNW_REG_RNAT, t, arg); break; unw_decode_p7_p10() 326 case 15: UNW_DEC_REG_SPREL(P8, UNW_REG_RNAT, t, arg); break; unw_decode_p7_p10() 327 case 16: UNW_DEC_PRIUNAT_WHEN_GR(P8, t, arg); break; unw_decode_p7_p10() 328 case 17: UNW_DEC_PRIUNAT_PSPREL(P8, t, arg); break; unw_decode_p7_p10() 329 case 18: UNW_DEC_PRIUNAT_SPREL(P8, t, arg); break; unw_decode_p7_p10() 330 case 19: UNW_DEC_PRIUNAT_WHEN_MEM(P8, t, arg); break; unw_decode_p7_p10() 338 UNW_DEC_GR_GR(P9, (byte1 & 0xf), (byte2 & 0x7f), arg); unw_decode_p7_p10() 343 UNW_DEC_ABI(P10, byte1, byte2, arg); unw_decode_p7_p10() 347 return unw_decode_x1 (dp, code, arg); unw_decode_p7_p10() 350 return unw_decode_x2 (dp, code, arg); unw_decode_p7_p10() 353 return unw_decode_x3 (dp, code, arg); unw_decode_p7_p10() 356 return unw_decode_x4 (dp, code, arg); unw_decode_p7_p10() 367 unw_decode_b1 (unsigned char *dp, unsigned char code, void *arg) unw_decode_b1() argument 372 UNW_DEC_COPY_STATE(B1, label, arg); unw_decode_b1() 374 UNW_DEC_LABEL_STATE(B1, label, arg); unw_decode_b1() 379 unw_decode_b2 (unsigned char *dp, unsigned char code, void *arg) unw_decode_b2() argument 384 UNW_DEC_EPILOGUE(B2, t, (code & 0x1f), arg); unw_decode_b2() 389 unw_decode_b3_x4 (unsigned char *dp, unsigned char code, void *arg) unw_decode_b3_x4() argument 397 UNW_DEC_EPILOGUE(B3, t, ecount, arg); unw_decode_b3_x4() 403 UNW_DEC_COPY_STATE(B4, label, arg); unw_decode_b3_x4() 405 UNW_DEC_LABEL_STATE(B4, label, arg); unw_decode_b3_x4() 410 case 1: return unw_decode_x1 (dp, code, arg); unw_decode_b3_x4() 411 case 2: return unw_decode_x2 (dp, code, arg); unw_decode_b3_x4() 412 case 3: return unw_decode_x3 (dp, code, arg); unw_decode_b3_x4() 413 case 4: return unw_decode_x4 (dp, code, arg); unw_decode_b3_x4() 450 unw_decode (unsigned char *dp, int inside_body, void *arg) unw_decode() argument 457 dp = (*decoder) (dp, code, arg); unw_decode()
|
H A D | perfmon_default_smpl.c | 43 pfm_default_smpl_arg_t *arg = (pfm_default_smpl_arg_t*)data; default_validate() local 56 if (arg->buf_size < PFM_DEFAULT_SMPL_MIN_BUF_SIZE) return -EINVAL; default_validate() 58 DPRINT(("buf_size=%lu\n", arg->buf_size)); default_validate() 66 pfm_default_smpl_arg_t *arg = (pfm_default_smpl_arg_t *)data; default_get_size() local 71 *size = arg->buf_size; default_get_size() 80 pfm_default_smpl_arg_t *arg = (pfm_default_smpl_arg_t *)data; default_init() local 85 hdr->hdr_buf_size = arg->buf_size; default_init() 102 default_handler(struct task_struct *task, void *buf, pfm_ovfl_arg_t *arg, struct pt_regs *regs, unsigned long stamp) default_handler() argument 112 if (unlikely(buf == NULL || arg == NULL|| regs == NULL || task == NULL)) { default_handler() 113 DPRINT(("[%d] invalid arguments buf=%p arg=%p\n", task->pid, buf, arg)); default_handler() 120 ovfl_pmd = arg->ovfl_pmd; default_handler() 121 ovfl_notify = arg->ovfl_notify; default_handler() 128 npmds = hweight64(arg->smpl_pmds[0]); default_handler() 132 prefetch(arg->smpl_pmds_values); default_handler() 161 ent->last_reset_val = arg->pmd_last_reset; //pmd[0].reg_last_reset_val; default_handler() 170 ent->set = arg->active_set; default_handler() 177 unsigned long *val = arg->smpl_pmds_values; default_handler() 197 arg->ovfl_ctrl.bits.notify_user = 0; default_handler() 198 arg->ovfl_ctrl.bits.block_task = 0; default_handler() 199 arg->ovfl_ctrl.bits.mask_monitoring = 0; default_handler() 200 arg->ovfl_ctrl.bits.reset_ovfl_pmds = 1; /* reset before returning from interrupt handler */ default_handler() 216 arg->ovfl_ctrl.bits.notify_user = 0; default_handler() 217 arg->ovfl_ctrl.bits.block_task = 0; default_handler() 218 arg->ovfl_ctrl.bits.mask_monitoring = 1; default_handler() 219 arg->ovfl_ctrl.bits.reset_ovfl_pmds = 0; default_handler() 221 arg->ovfl_ctrl.bits.notify_user = 1; default_handler() 222 arg->ovfl_ctrl.bits.block_task = 1; /* ignored for non-blocking context */ default_handler() 223 arg->ovfl_ctrl.bits.mask_monitoring = 1; default_handler() 224 arg->ovfl_ctrl.bits.reset_ovfl_pmds = 0; /* no reset now */ default_handler()
|
H A D | stacktrace.c | 12 ia64_do_save_stack(struct unw_frame_info *info, void *arg) ia64_do_save_stack() argument 14 struct stack_trace *trace = arg; ia64_do_save_stack()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/ |
H A D | nouveau_ioctl.h | 4 long nouveau_compat_ioctl(struct file *, unsigned int cmd, unsigned long arg); 5 long nouveau_drm_ioctl(struct file *, unsigned int cmd, unsigned long arg);
|
H A D | nouveau_ioc32.c | 46 * \param arg user argument. 50 unsigned long arg) nouveau_compat_ioctl() 57 return drm_compat_ioctl(filp, cmd, arg); nouveau_compat_ioctl() 64 ret = (*fn)(filp, cmd, arg); nouveau_compat_ioctl() 66 ret = nouveau_drm_ioctl(filp, cmd, arg); nouveau_compat_ioctl() 49 nouveau_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) nouveau_compat_ioctl() argument
|
/linux-4.1.27/drivers/ide/ |
H A D | ide-devsets.c | 10 static int set_io_32bit(ide_drive_t *drive, int arg) set_io_32bit() argument 15 if (arg < 0 || arg > 1 + (SUPPORT_VLB_SYNC << 1)) set_io_32bit() 18 drive->io_32bit = arg; set_io_32bit() 25 static int set_ksettings(ide_drive_t *drive, int arg) set_ksettings() argument 27 if (arg < 0 || arg > 1) set_ksettings() 30 if (arg) set_ksettings() 40 static int set_using_dma(ide_drive_t *drive, int arg) set_using_dma() argument 45 if (arg < 0 || arg > 1) set_using_dma() 56 if (arg) { set_using_dma() 65 if (arg < 0 || arg > 1) set_using_dma() 96 static int set_pio_mode(ide_drive_t *drive, int arg) set_pio_mode() argument 101 if (arg < 0 || arg > 255) set_pio_mode() 108 if (set_pio_mode_abuse(drive->hwif, arg)) { set_pio_mode() 109 drive->pio_mode = arg + XFER_PIO_0; set_pio_mode() 111 if (arg == 8 || arg == 9) { set_pio_mode() 123 ide_set_pio(drive, arg); set_pio_mode() 136 static int set_unmaskirq(ide_drive_t *drive, int arg) set_unmaskirq() argument 141 if (arg < 0 || arg > 1) set_unmaskirq() 144 if (arg) set_unmaskirq() 159 int arg) ide_devset_execute() 166 return setting->set(drive, arg); ide_devset_execute() 172 *(int *)&rq->cmd[1] = arg; ide_devset_execute() 158 ide_devset_execute(ide_drive_t *drive, const struct ide_devset *setting, int arg) ide_devset_execute() argument
|
H A D | ide-disk_ioctl.c | 19 unsigned int cmd, unsigned long arg) ide_disk_ioctl() 24 err = ide_setting_ioctl(drive, bdev, cmd, arg, ide_disk_ioctl_settings); ide_disk_ioctl() 28 err = generic_ide_ioctl(drive, bdev, cmd, arg); ide_disk_ioctl() 18 ide_disk_ioctl(ide_drive_t *drive, struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long arg) ide_disk_ioctl() argument
|
H A D | ide-ioctls.c | 20 unsigned int cmd, unsigned long arg, ide_setting_ioctl() 39 return err >= 0 ? put_user(err, (long __user *)arg) : err; ide_setting_ioctl() 49 err = ide_devset_execute(drive, ds, arg); ide_setting_ioctl() 58 unsigned long arg) ide_get_identity_ioctl() 79 if (copy_to_user((void __user *)arg, id, size)) ide_get_identity_ioctl() 87 static int ide_get_nice_ioctl(ide_drive_t *drive, unsigned long arg) ide_get_nice_ioctl() argument 92 << IDE_NICE_1), (long __user *)arg); ide_get_nice_ioctl() 95 static int ide_set_nice_ioctl(ide_drive_t *drive, unsigned long arg) ide_set_nice_ioctl() argument 97 if (arg != (arg & ((1 << IDE_NICE_DSC_OVERLAP) | (1 << IDE_NICE_1)))) ide_set_nice_ioctl() 100 if (((arg >> IDE_NICE_DSC_OVERLAP) & 1) && ide_set_nice_ioctl() 104 if ((arg >> IDE_NICE_DSC_OVERLAP) & 1) ide_set_nice_ioctl() 109 if ((arg >> IDE_NICE_1) & 1) ide_set_nice_ioctl() 117 static int ide_cmd_ioctl(ide_drive_t *drive, unsigned long arg) ide_cmd_ioctl() argument 125 if (NULL == (void *) arg) { ide_cmd_ioctl() 136 if (copy_from_user(args, (void __user *)arg, 4)) ide_cmd_ioctl() 182 if (copy_to_user((void __user *)arg, &args, 4)) ide_cmd_ioctl() 185 if (copy_to_user((void __user *)(arg + 4), buf, bufsize)) ide_cmd_ioctl() 192 static int ide_task_ioctl(ide_drive_t *drive, unsigned long arg) ide_task_ioctl() argument 194 void __user *p = (void __user *)arg; ide_task_ioctl() 235 unsigned int cmd, unsigned long arg) generic_ide_ioctl() 239 err = ide_setting_ioctl(drive, bdev, cmd, arg, ide_ioctl_settings); generic_ide_ioctl() 248 return ide_get_identity_ioctl(drive, cmd, arg); generic_ide_ioctl() 250 return ide_get_nice_ioctl(drive, arg); generic_ide_ioctl() 254 return ide_set_nice_ioctl(drive, arg); generic_ide_ioctl() 260 return ide_taskfile_ioctl(drive, arg); generic_ide_ioctl() 266 return ide_cmd_ioctl(drive, arg); generic_ide_ioctl() 270 return ide_task_ioctl(drive, arg); generic_ide_ioctl() 278 if (put_user(BUSSTATE_ON, (long __user *)arg)) generic_ide_ioctl() 19 ide_setting_ioctl(ide_drive_t *drive, struct block_device *bdev, unsigned int cmd, unsigned long arg, const struct ide_ioctl_devset *s) ide_setting_ioctl() argument 57 ide_get_identity_ioctl(ide_drive_t *drive, unsigned int cmd, unsigned long arg) ide_get_identity_ioctl() argument 234 generic_ide_ioctl(ide_drive_t *drive, struct block_device *bdev, unsigned int cmd, unsigned long arg) generic_ide_ioctl() argument
|
H A D | ide-floppy_ioctl.c | 38 int __user *arg) ide_floppy_get_format_capacities() 45 if (get_user(u_array_size, arg)) ide_floppy_get_format_capacities() 62 argp = arg + 1; ide_floppy_get_format_capacities() 91 if (put_user(u_index, arg)) ide_floppy_get_format_capacities() 139 int __user *arg) ide_floppy_format_unit() 168 if (get_user(blocks, arg) || ide_floppy_format_unit() 169 get_user(length, arg+1) || ide_floppy_format_unit() 170 get_user(flags, arg+2)) { ide_floppy_format_unit() 199 int __user *arg) ide_floppy_get_format_progress() 229 if (put_user(progress_indication, arg)) ide_floppy_get_format_progress() 236 unsigned long arg, unsigned int cmd) ide_floppy_lockdoor() 240 int prevent = (arg && cmd != CDROMEJECT) ? 1 : 0; ide_floppy_lockdoor() 274 fmode_t mode, unsigned int cmd, unsigned long arg) ide_floppy_ioctl() 277 void __user *argp = (void __user *)arg; ide_floppy_ioctl() 282 err = ide_floppy_lockdoor(drive, &pc, arg, cmd); ide_floppy_ioctl() 298 err = generic_ide_ioctl(drive, bdev, cmd, arg); ide_floppy_ioctl() 36 ide_floppy_get_format_capacities(ide_drive_t *drive, struct ide_atapi_pc *pc, int __user *arg) ide_floppy_get_format_capacities() argument 138 ide_floppy_format_unit(ide_drive_t *drive, struct ide_atapi_pc *pc, int __user *arg) ide_floppy_format_unit() argument 197 ide_floppy_get_format_progress(ide_drive_t *drive, struct ide_atapi_pc *pc, int __user *arg) ide_floppy_get_format_progress() argument 235 ide_floppy_lockdoor(ide_drive_t *drive, struct ide_atapi_pc *pc, unsigned long arg, unsigned int cmd) ide_floppy_lockdoor() argument 273 ide_floppy_ioctl(ide_drive_t *drive, struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long arg) ide_floppy_ioctl() argument
|
/linux-4.1.27/drivers/gpu/drm/sti/ |
H A D | sti_awg_utils.c | 24 long int arg, awg_generate_instr() 32 long int arg_tmp = arg; awg_generate_instr() 34 /* skip, repeat and replay arg should not exceed 1023. awg_generate_instr() 36 * duplicate and arg should be adjust for each duplicated instruction. awg_generate_instr() 40 arg = arg_tmp; awg_generate_instr() 48 /* leave 'arg' + 1 pixel elapsing without changing awg_generate_instr() 50 arg--; /* pixel adjustment */ awg_generate_instr() 53 if (arg < 0) { awg_generate_instr() 58 if (arg == 0) { awg_generate_instr() 68 arg = (arg << 22) >> 22; awg_generate_instr() 69 arg &= (0x3ff); awg_generate_instr() 73 if (arg == 0) { awg_generate_instr() 80 arg = (arg << 22) >> 22; awg_generate_instr() 81 arg &= (0x3ff); awg_generate_instr() 86 arg |= 0x40; /* for jump instruction 7th bit is 1 */ awg_generate_instr() 87 arg = (arg << 22) >> 22; awg_generate_instr() 88 arg &= 0x3ff; awg_generate_instr() 91 arg = 0; awg_generate_instr() 97 arg = (arg << 24) >> 24; awg_generate_instr() 98 arg &= (0x0ff); awg_generate_instr() 105 arg_tmp = arg_tmp - arg; awg_generate_instr() 107 arg = ((arg + mux) + data_enable); awg_generate_instr() 109 instruction = ((opcode) << AWG_OPCODE_OFFSET) | arg; awg_generate_instr() 23 awg_generate_instr(enum opcode opcode, long int arg, long int mux_sel, long int data_en, struct awg_code_generation_params *fwparams) awg_generate_instr() argument
|
/linux-4.1.27/arch/cris/include/asm/ |
H A D | etraxi2c.h | 19 #define I2C_ARGSLAVE(arg) ((arg) >> 16) 20 #define I2C_ARGREG(arg) (((arg) >> 8) & 0xff) 21 #define I2C_ARGVALUE(arg) ((arg) & 0xff)
|
/linux-4.1.27/arch/x86/tools/ |
H A D | relocs_common.c | 34 char *arg = argv[i]; main() local 35 if (*arg == '-') { main() 36 if (strcmp(arg, "--abs-syms") == 0) { main() 40 if (strcmp(arg, "--abs-relocs") == 0) { main() 44 if (strcmp(arg, "--reloc-info") == 0) { main() 48 if (strcmp(arg, "--text") == 0) { main() 52 if (strcmp(arg, "--realmode") == 0) { main() 58 fname = arg; main()
|
/linux-4.1.27/fs/ocfs2/ |
H A D | ioctl.h | 13 long ocfs2_ioctl(struct file *filp, unsigned int cmd, unsigned long arg); 14 long ocfs2_compat_ioctl(struct file *file, unsigned cmd, unsigned long arg);
|
/linux-4.1.27/tools/perf/util/ |
H A D | unwind-libdw.h | 9 bool libdw__arch_set_initial_registers(Dwfl_Thread *thread, void *arg); 17 void *arg; member in struct:unwind_info
|
H A D | parse-options.c | 19 int flags, const char **arg) get_arg() 22 *arg = p->opt; get_arg() 26 *arg = (const char *)opt->defval; get_arg() 29 *arg = *++p->argv; get_arg() 38 const char *s, *arg = NULL; get_value() local 149 if (get_arg(p, opt, flags, &arg)) get_value() 151 return (*opt->callback)(opt, arg, 0) ? (-1) : 0; get_value() 162 if (get_arg(p, opt, flags, &arg)) get_value() 164 *(int *)opt->value = strtol(arg, (char **)&s, 10); get_value() 178 if (get_arg(p, opt, flags, &arg)) get_value() 180 *(unsigned int *)opt->value = strtol(arg, (char **)&s, 10); get_value() 194 if (get_arg(p, opt, flags, &arg)) get_value() 196 *(long *)opt->value = strtol(arg, (char **)&s, 10); get_value() 210 if (get_arg(p, opt, flags, &arg)) get_value() 212 *(u64 *)opt->value = strtoull(arg, (char **)&s, 10); get_value() 236 static int parse_long_opt(struct parse_opt_ctx_t *p, const char *arg, parse_long_opt() argument 239 const char *arg_end = strchr(arg, '='); parse_long_opt() 244 arg_end = arg + strlen(arg); parse_long_opt() 253 rest = skip_prefix(arg, options->long_name); parse_long_opt() 261 p->out[p->cpidx++] = arg - 2; parse_long_opt() 272 rest = skip_prefix(arg, options->long_name + 3); parse_long_opt() 278 if (!prefixcmp(options->long_name + 3, arg)) { parse_long_opt() 284 if (!strncmp(options->long_name, arg, arg_end - arg)) { parse_long_opt() 303 if (!prefixcmp("no-", arg)) { parse_long_opt() 308 if (strncmp(arg, "no-", 3)) parse_long_opt() 311 rest = skip_prefix(arg + 3, options->long_name); parse_long_opt() 313 if (!rest && !prefixcmp(options->long_name, arg + 3)) parse_long_opt() 330 arg, parse_long_opt() 340 static void check_typos(const char *arg, const struct option *options) check_typos() argument 342 if (strlen(arg) < 3) check_typos() 345 if (!prefixcmp(arg, "no-")) { check_typos() 346 error ("did you mean `--%s` (with two dashes ?)", arg); check_typos() 353 if (!prefixcmp(options->long_name, arg)) { check_typos() 354 error ("did you mean `--%s` (with two dashes ?)", arg); check_typos() 383 const char *arg; parse_options_step() local 389 arg = ctx->argv[0]; parse_options_step() 390 if (*arg != '-' || !arg[1]) { parse_options_step() 397 if (arg[1] != '-') { parse_options_step() 398 ctx->opt = ++arg; parse_options_step() 403 return parse_options_usage(usagestr, options, arg, 1); parse_options_step() 412 check_typos(arg, options); parse_options_step() 416 arg = ctx->opt; parse_options_step() 419 return parse_options_usage(usagestr, options, arg, 1); parse_options_step() 438 if (!arg[2]) { /* "--" */ parse_options_step() 446 arg += 2; parse_options_step() 447 if (internal_help && !strcmp(arg, "help-all")) parse_options_step() 449 if (internal_help && !strcmp(arg, "help")) parse_options_step() 451 if (!strcmp(arg, "list-opts")) parse_options_step() 453 if (!strcmp(arg, "list-cmds")) parse_options_step() 455 switch (parse_long_opt(ctx, arg, options)) { parse_options_step() 457 return parse_options_usage(usagestr, options, arg, 0); parse_options_step() 476 parse_options_usage(usagestr, options, arg, excl_short_opt); parse_options_step() 724 const char *arg __maybe_unused, parse_opt_verbosity_cb() 18 get_arg(struct parse_opt_ctx_t *p, const struct option *opt, int flags, const char **arg) get_arg() argument
|
H A D | unwind.h | 15 typedef int (*unwind_entry_cb_t)(struct unwind_entry *entry, void *arg); 18 int unwind__get_entries(unwind_entry_cb_t cb, void *arg, 39 void *arg __maybe_unused, unwind__get_entries()
|
H A D | unwind-libdw.c | 73 return ui->cb(&e, ui->arg); entry() 76 static pid_t next_thread(Dwfl *dwfl, void *arg, void **thread_argp) next_thread() argument 82 *thread_argp = arg; next_thread() 109 void *arg) memory_read() 111 struct unwind_info *ui = arg; memory_read() 152 frame_callback(Dwfl_Frame *state, void *arg) frame_callback() argument 154 struct unwind_info *ui = arg; frame_callback() 166 int unwind__get_entries(unwind_entry_cb_t cb, void *arg, unwind__get_entries() argument 176 .arg = arg, unwind__get_entries() 108 memory_read(Dwfl *dwfl __maybe_unused, Dwarf_Addr addr, Dwarf_Word *result, void *arg) memory_read() argument
|
/linux-4.1.27/include/uapi/linux/netfilter_bridge/ |
H A D | ebt_vlan.h | 16 __u8 bitmask; /* Args bitmask bit 1=1 - ID arg, 17 bit 2=1 User-Priority arg, bit 3=1 encap*/ 18 __u8 invflags; /* Inverse bitmask bit 1=1 - inversed ID arg, 19 bit 2=1 - inversed Pirority arg */
|
/linux-4.1.27/tools/lib/traceevent/ |
H A D | parse-filter.c | 197 static void free_arg(struct filter_arg *arg) free_arg() argument 199 if (!arg) free_arg() 202 switch (arg->type) { free_arg() 208 free_arg(arg->num.left); free_arg() 209 free_arg(arg->num.right); free_arg() 213 free_arg(arg->exp.left); free_arg() 214 free_arg(arg->exp.right); free_arg() 218 free(arg->str.val); free_arg() 219 regfree(&arg->str.reg); free_arg() 220 free(arg->str.buffer); free_arg() 224 if (arg->value.type == FILTER_STRING || free_arg() 225 arg->value.type == FILTER_CHAR) free_arg() 226 free(arg->value.str); free_arg() 230 free_arg(arg->op.left); free_arg() 231 free_arg(arg->op.right); free_arg() 236 free(arg); free_arg() 352 struct filter_arg *arg; create_arg_item() local 354 arg = allocate_arg(); create_arg_item() 355 if (arg == NULL) { create_arg_item() 356 show_error(error_str, "failed to allocate filter arg"); create_arg_item() 364 arg->type = FILTER_ARG_VALUE; create_arg_item() 365 arg->value.type = create_arg_item() 367 arg->value.str = strdup(token); create_arg_item() 368 if (!arg->value.str) { create_arg_item() 369 free_arg(arg); create_arg_item() 370 show_error(error_str, "failed to allocate string filter arg"); create_arg_item() 377 arg->type = FILTER_ARG_VALUE; create_arg_item() 378 arg->value.type = FILTER_NUMBER; create_arg_item() 379 arg->value.val = strtoull(token, NULL, 0); create_arg_item() 387 arg->type = FILTER_ARG_BOOLEAN; create_arg_item() 388 arg->boolean.value = FILTER_FALSE; create_arg_item() 394 arg->type = FILTER_ARG_FIELD; create_arg_item() 395 arg->field.field = field; create_arg_item() 398 free_arg(arg); create_arg_item() 402 *parg = arg; create_arg_item() 409 struct filter_arg *arg; create_arg_op() local 411 arg = allocate_arg(); create_arg_op() 412 if (!arg) create_arg_op() 415 arg->type = FILTER_ARG_OP; create_arg_op() 416 arg->op.type = btype; create_arg_op() 418 return arg; create_arg_op() 424 struct filter_arg *arg; create_arg_exp() local 426 arg = allocate_arg(); create_arg_exp() 427 if (!arg) create_arg_exp() 430 arg->type = FILTER_ARG_EXP; create_arg_exp() 431 arg->op.type = etype; create_arg_exp() 433 return arg; create_arg_exp() 439 struct filter_arg *arg; create_arg_cmp() local 441 arg = allocate_arg(); create_arg_cmp() 442 if (!arg) create_arg_cmp() 446 arg->type = FILTER_ARG_NUM; create_arg_cmp() 447 arg->op.type = etype; create_arg_cmp() 449 return arg; create_arg_cmp() 453 add_right(struct filter_arg *op, struct filter_arg *arg, char *error_str) add_right() argument 464 op->exp.right = arg; add_right() 470 op->op.right = arg; add_right() 477 * The arg must be num, str, or field add_right() 479 switch (arg->type) { add_right() 492 switch (arg->value.type) { add_right() 499 if (strlen(arg->value.str) == 1 && add_right() 502 arg->value.type = FILTER_NUMBER; add_right() 508 /* convert op to a string arg */ add_right() 511 str = arg->value.str; add_right() 517 * If left arg was a field not found then add_right() 522 free_arg(arg); add_right() 528 /* Left arg must be a field */ add_right() 580 free_arg(arg); add_right() 600 op->num.right = arg; add_right() 620 struct filter_arg *arg; rotate_op_right() local 622 arg = a->op.right; rotate_op_right() 624 return arg; rotate_op_right() 627 static enum pevent_errno add_left(struct filter_arg *op, struct filter_arg *arg) add_left() argument 631 if (arg->type == FILTER_ARG_OP) add_left() 632 arg = rotate_op_right(arg, op); add_left() 633 op->exp.left = arg; add_left() 637 op->op.left = arg; add_left() 640 if (arg->type == FILTER_ARG_OP) add_left() 641 arg = rotate_op_right(arg, op); add_left() 643 /* left arg of compares must be a field */ add_left() 644 if (arg->type != FILTER_ARG_FIELD && add_left() 645 arg->type != FILTER_ARG_BOOLEAN) add_left() 647 op->num.left = arg; add_left() 732 static int check_op_done(struct filter_arg *arg) check_op_done() argument 734 switch (arg->type) { check_op_done() 736 return arg->exp.right != NULL; check_op_done() 739 return arg->op.right != NULL; check_op_done() 742 return arg->num.right != NULL; check_op_done() 765 struct filter_arg *arg, char *error_str) reparent_op_arg() 771 arg->type != FILTER_ARG_OP) { reparent_op_arg() 777 if (old_child->op.right == arg) { reparent_op_arg() 780 } else if (old_child->op.left == arg) { reparent_op_arg() 788 /* Detach arg from old_child */ reparent_op_arg() 794 *parent = *arg; reparent_op_arg() 795 /* Free arg without recussion */ reparent_op_arg() 796 free(arg); reparent_op_arg() 809 *ptr = arg; reparent_op_arg() 816 static int test_arg(struct filter_arg *parent, struct filter_arg *arg, test_arg() argument 821 switch (arg->type) { test_arg() 825 return FILTER_VAL_FALSE + arg->boolean.value; test_arg() 834 lval = test_arg(arg, arg->exp.left, error_str); test_arg() 837 rval = test_arg(arg, arg->exp.right, error_str); test_arg() 843 lval = test_arg(arg, arg->num.left, error_str); test_arg() 846 rval = test_arg(arg, arg->num.right, error_str); test_arg() 852 if (arg->op.type != FILTER_OP_NOT) { test_arg() 853 lval = test_arg(arg, arg->op.left, error_str); test_arg() 858 if (arg->op.type == FILTER_OP_OR) test_arg() 860 rval = test_arg(arg, arg->op.right, error_str); test_arg() 864 return reparent_op_arg(parent, arg, arg->op.right, test_arg() 868 if (arg->op.type == FILTER_OP_AND) test_arg() 870 rval = test_arg(arg, arg->op.right, error_str); test_arg() 874 return reparent_op_arg(parent, arg, arg->op.right, test_arg() 882 rval = test_arg(arg, arg->op.right, error_str); test_arg() 889 if (arg->op.type == FILTER_OP_OR) test_arg() 891 if (arg->op.type == FILTER_OP_NOT) test_arg() 894 return reparent_op_arg(parent, arg, arg->op.left, test_arg() 898 if (arg->op.type == FILTER_OP_AND) test_arg() 900 if (arg->op.type == FILTER_OP_NOT) test_arg() 903 return reparent_op_arg(parent, arg, arg->op.left, test_arg() 909 show_error(error_str, "bad arg in filter tree"); test_arg() 916 static int collapse_tree(struct filter_arg *arg, collapse_tree() argument 921 ret = test_arg(arg, arg, error_str); collapse_tree() 928 free_arg(arg); collapse_tree() 929 arg = allocate_arg(); collapse_tree() 930 if (arg) { collapse_tree() 931 arg->type = FILTER_ARG_BOOLEAN; collapse_tree() 932 arg->boolean.value = ret == FILTER_VAL_TRUE; collapse_tree() 934 show_error(error_str, "Failed to allocate filter arg"); collapse_tree() 941 free_arg(arg); collapse_tree() 942 arg = NULL; collapse_tree() 946 *arg_collapsed = arg; collapse_tree() 959 struct filter_arg *arg = NULL; process_filter() local 975 ret = create_arg_item(event, token, type, &arg, error_str); process_filter() 979 left_item = arg; process_filter() 981 ret = add_right(current_exp, arg, error_str); process_filter() 987 arg = NULL; process_filter() 996 arg = NULL; process_filter() 1020 ret = process_filter(event, &arg, error_str, 0); process_filter() 1035 *parg = arg; process_filter() 1040 ret = add_right(current_op, arg, error_str); process_filter() 1042 current_exp = arg; process_filter() 1069 /* All expect a left arg except for NOT */ process_filter() 1096 arg = create_arg_op(btype); process_filter() 1097 if (arg == NULL) process_filter() 1100 ret = add_left(arg, current_op); process_filter() 1102 ret = add_left(arg, current_exp); process_filter() 1103 current_op = arg; process_filter() 1108 arg = create_arg_op(btype); process_filter() 1109 if (arg == NULL) process_filter() 1112 ret = add_right(current_op, arg, error_str); process_filter() 1115 current_exp = arg; process_filter() 1116 ret = process_filter(event, &arg, error_str, 1); process_filter() 1119 ret = add_right(current_exp, arg, error_str); process_filter() 1127 arg = create_arg_exp(etype); process_filter() 1129 arg = create_arg_cmp(ctype); process_filter() 1130 if (arg == NULL) process_filter() 1134 ret = add_right(current_op, arg, error_str); process_filter() 1137 ret = add_left(arg, left_item); process_filter() 1139 arg = NULL; process_filter() 1142 current_exp = arg; process_filter() 1147 arg = NULL; process_filter() 1176 show_error(error_str, "failed to allocate filter arg"); process_filter() 1185 free_arg(arg); process_filter() 1220 struct filter_arg *arg; filter_event() local 1224 ret = process_event(event, filter_str, &arg, error_str); filter_event() 1229 /* just add a TRUE arg */ filter_event() 1230 arg = allocate_arg(); filter_event() 1231 if (arg == NULL) filter_event() 1234 arg->type = FILTER_ARG_BOOLEAN; filter_event() 1235 arg->boolean.value = FILTER_TRUE; filter_event() 1244 filter_type->filter = arg; filter_event() 1461 static char *arg_to_str(struct event_filter *filter, struct filter_arg *arg); 1467 struct filter_arg *arg; copy_filter_type() local 1486 arg = allocate_arg(); copy_filter_type() 1487 if (arg == NULL) copy_filter_type() 1490 arg->type = FILTER_ARG_BOOLEAN; copy_filter_type() 1492 arg->boolean.value = 1; copy_filter_type() 1494 arg->boolean.value = 0; copy_filter_type() 1500 filter_type->filter = arg; copy_filter_type() 1552 struct filter_arg *arg; pevent_update_trivial() local 1565 arg = filter_type->filter; pevent_update_trivial() 1566 if (arg->type != FILTER_ARG_BOOLEAN) pevent_update_trivial() 1568 if ((arg->boolean.value && type == FILTER_TRIVIAL_FALSE) || pevent_update_trivial() 1569 (!arg->boolean.value && type == FILTER_TRIVIAL_TRUE)) pevent_update_trivial() 1600 * Removes filters that only contain a TRUE or FALES boolean arg. 1693 static int test_filter(struct event_format *event, struct filter_arg *arg, 1740 get_arg_value(struct event_format *event, struct filter_arg *arg, 1744 get_exp_value(struct event_format *event, struct filter_arg *arg, get_exp_value() argument 1749 lval = get_arg_value(event, arg->exp.left, record, err); get_exp_value() 1750 rval = get_arg_value(event, arg->exp.right, record, err); get_exp_value() 1759 switch (arg->exp.type) { get_exp_value() 1799 get_arg_value(struct event_format *event, struct filter_arg *arg, get_arg_value() argument 1802 switch (arg->type) { get_arg_value() 1804 return get_value(event, arg->field.field, record); get_arg_value() 1807 if (arg->value.type != FILTER_NUMBER) { get_arg_value() 1811 return arg->value.val; get_arg_value() 1814 return get_exp_value(event, arg, record, err); get_arg_value() 1823 static int test_num(struct event_format *event, struct filter_arg *arg, test_num() argument 1828 lval = get_arg_value(event, arg->num.left, record, err); test_num() 1829 rval = get_arg_value(event, arg->num.right, record, err); test_num() 1838 switch (arg->num.type) { test_num() 1864 static const char *get_field_str(struct filter_arg *arg, struct pevent_record *record) get_field_str() argument 1873 if (arg->str.field->flags & FIELD_IS_STRING) { get_field_str() 1874 val = record->data + arg->str.field->offset; get_field_str() 1880 if (*(val + arg->str.field->size - 1)) { get_field_str() 1882 memcpy(arg->str.buffer, val, arg->str.field->size); get_field_str() 1884 val = arg->str.buffer; get_field_str() 1888 event = arg->str.field->event; get_field_str() 1890 addr = get_value(event, arg->str.field, record); get_field_str() 1892 if (arg->str.field->flags & (FIELD_IS_POINTER | FIELD_IS_LONG)) get_field_str() 1906 static int test_str(struct event_format *event, struct filter_arg *arg, test_str() argument 1911 if (arg->str.field == &comm) test_str() 1914 val = get_field_str(arg, record); test_str() 1916 switch (arg->str.type) { test_str() 1918 return strcmp(val, arg->str.val) == 0; test_str() 1921 return strcmp(val, arg->str.val) != 0; test_str() 1925 return !regexec(&arg->str.reg, val, 0, NULL, 0); test_str() 1928 return regexec(&arg->str.reg, val, 0, NULL, 0); test_str() 1937 static int test_op(struct event_format *event, struct filter_arg *arg, test_op() argument 1940 switch (arg->op.type) { test_op() 1942 return test_filter(event, arg->op.left, record, err) && test_op() 1943 test_filter(event, arg->op.right, record, err); test_op() 1946 return test_filter(event, arg->op.left, record, err) || test_op() 1947 test_filter(event, arg->op.right, record, err); test_op() 1950 return !test_filter(event, arg->op.right, record, err); test_op() 1959 static int test_filter(struct event_format *event, struct filter_arg *arg, test_filter() argument 1969 switch (arg->type) { test_filter() 1972 return arg->boolean.value; test_filter() 1975 return test_op(event, arg, record, err); test_filter() 1978 return test_num(event, arg, record, err); test_filter() 1981 return test_str(event, arg, record, err); test_filter() 1990 return !!get_arg_value(event, arg, record, err); test_filter() 2058 static char *op_to_str(struct event_filter *filter, struct filter_arg *arg) op_to_str() argument 2068 switch (arg->op.type) { op_to_str() 2076 left = arg_to_str(filter, arg->op.left); op_to_str() 2077 right = arg_to_str(filter, arg->op.right); op_to_str() 2093 if ((arg->op.type == FILTER_OP_AND && !left_val) || op_to_str() 2094 (arg->op.type == FILTER_OP_OR && left_val)) { op_to_str() 2103 switch (arg->op.type) { op_to_str() 2118 if ((arg->op.type == FILTER_OP_AND && !right_val) || op_to_str() 2119 (arg->op.type == FILTER_OP_OR && right_val)) { op_to_str() 2136 right = arg_to_str(filter, arg->op.right); op_to_str() 2162 static char *val_to_str(struct event_filter *filter, struct filter_arg *arg) val_to_str() argument 2166 asprintf(&str, "%lld", arg->value.val); val_to_str() 2171 static char *field_to_str(struct event_filter *filter, struct filter_arg *arg) field_to_str() argument 2173 return strdup(arg->field.field->name); field_to_str() 2176 static char *exp_to_str(struct event_filter *filter, struct filter_arg *arg) exp_to_str() argument 2183 lstr = arg_to_str(filter, arg->exp.left); exp_to_str() 2184 rstr = arg_to_str(filter, arg->exp.right); exp_to_str() 2188 switch (arg->exp.type) { exp_to_str() 2232 static char *num_to_str(struct event_filter *filter, struct filter_arg *arg) num_to_str() argument 2239 lstr = arg_to_str(filter, arg->num.left); num_to_str() 2240 rstr = arg_to_str(filter, arg->num.right); num_to_str() 2244 switch (arg->num.type) { num_to_str() 2282 static char *str_to_str(struct event_filter *filter, struct filter_arg *arg) str_to_str() argument 2287 switch (arg->str.type) { str_to_str() 2304 arg->str.field->name, op, arg->str.val); str_to_str() 2314 static char *arg_to_str(struct event_filter *filter, struct filter_arg *arg) arg_to_str() argument 2318 switch (arg->type) { arg_to_str() 2320 asprintf(&str, arg->boolean.value ? "TRUE" : "FALSE"); arg_to_str() 2324 return op_to_str(filter, arg); arg_to_str() 2327 return num_to_str(filter, arg); arg_to_str() 2330 return str_to_str(filter, arg); arg_to_str() 2333 return val_to_str(filter, arg); arg_to_str() 2336 return field_to_str(filter, arg); arg_to_str() 2339 return exp_to_str(filter, arg); arg_to_str() 764 reparent_op_arg(struct filter_arg *parent, struct filter_arg *old_child, struct filter_arg *arg, char *error_str) reparent_op_arg() argument
|
H A D | event-parse.c | 108 struct event_format *event, struct print_arg *arg); 742 static void free_arg(struct print_arg *arg) free_arg() argument 746 if (!arg) free_arg() 749 switch (arg->type) { free_arg() 751 free(arg->atom.atom); free_arg() 754 free(arg->field.name); free_arg() 757 free_arg(arg->flags.field); free_arg() 758 free(arg->flags.delim); free_arg() 759 free_flag_sym(arg->flags.flags); free_arg() 762 free_arg(arg->symbol.field); free_arg() 763 free_flag_sym(arg->symbol.symbols); free_arg() 766 free_arg(arg->hex.field); free_arg() 767 free_arg(arg->hex.size); free_arg() 770 free_arg(arg->int_array.field); free_arg() 771 free_arg(arg->int_array.count); free_arg() 772 free_arg(arg->int_array.el_size); free_arg() 775 free(arg->typecast.type); free_arg() 776 free_arg(arg->typecast.item); free_arg() 780 free(arg->string.string); free_arg() 783 free(arg->bitmask.bitmask); free_arg() 786 free(arg->dynarray.index); free_arg() 789 free(arg->op.op); free_arg() 790 free_arg(arg->op.left); free_arg() 791 free_arg(arg->op.right); free_arg() 794 while (arg->func.args) { free_arg() 795 farg = arg->func.args; free_arg() 796 arg->func.args = farg->next; free_arg() 806 free(arg); free_arg() 1620 process_arg_token(struct event_format *event, struct print_arg *arg, 1624 process_arg(struct event_format *event, struct print_arg *arg, char **tok) process_arg() argument 1632 return process_arg_token(event, arg, tok, type); process_arg() 1636 process_op(struct event_format *event, struct print_arg *arg, char **tok); 1643 process_field_arg(struct event_format *event, struct print_arg *arg, char **tok) process_field_arg() argument 1647 type = process_arg(event, arg, tok); process_field_arg() 1650 type = process_op(event, arg, tok); process_field_arg() 1659 struct print_arg *arg, *left, *right; process_cond() local 1663 arg = alloc_arg(); process_cond() 1667 if (!arg || !left || !right) { process_cond() 1669 /* arg will be freed at out_free */ process_cond() 1675 arg->type = PRINT_OP; process_cond() 1676 arg->op.left = left; process_cond() 1677 arg->op.right = right; process_cond() 1692 arg->op.op = token; process_cond() 1696 top->op.right = arg; process_cond() 1705 free_arg(arg); process_cond() 1712 struct print_arg *arg; process_array() local 1716 arg = alloc_arg(); process_array() 1717 if (!arg) { process_array() 1725 type = process_arg(event, arg, &token); process_array() 1729 top->op.right = arg; process_array() 1739 free_arg(arg); process_array() 1798 static int set_op_prio(struct print_arg *arg) set_op_prio() argument 1802 if (!arg->op.left || arg->op.left->type == PRINT_NULL) set_op_prio() 1803 arg->op.prio = 0; set_op_prio() 1805 arg->op.prio = get_op_prio(arg->op.op); set_op_prio() 1807 return arg->op.prio; set_op_prio() 1812 process_op(struct event_format *event, struct print_arg *arg, char **tok) process_op() argument 1821 if (arg->type == PRINT_OP && !arg->op.left) { process_op() 1845 arg->op.left = left; process_op() 1851 arg->op.right = right; process_op() 1863 /* copy the top arg to the left */ process_op() 1864 *left = *arg; process_op() 1866 arg->type = PRINT_OP; process_op() 1867 arg->op.op = token; process_op() 1868 arg->op.left = left; process_op() 1869 arg->op.prio = 0; process_op() 1871 /* it will set arg->op.right */ process_op() 1872 type = process_cond(event, arg, tok); process_op() 1896 /* copy the top arg to the left */ process_op() 1897 *left = *arg; process_op() 1899 arg->type = PRINT_OP; process_op() 1900 arg->op.op = token; process_op() 1901 arg->op.left = left; process_op() 1902 arg->op.right = NULL; process_op() 1904 if (set_op_prio(arg) == -1) { process_op() 1906 /* arg->op.op (= token) will be freed at out_free */ process_op() 1907 arg->op.op = NULL; process_op() 1915 if ((strcmp(arg->op.op, "*") == 0) && process_op() 1930 free(arg->op.op); process_op() 1931 *arg = *left; process_op() 1944 get_op_prio(arg->op.op) < get_op_prio(right->op.op)) { process_op() 1948 arg->op.right = right->op.left; process_op() 1950 tmp = *arg; process_op() 1951 *arg = *right; process_op() 1954 arg->op.left = right; process_op() 1956 arg->op.right = right; process_op() 1965 *left = *arg; process_op() 1967 arg->type = PRINT_OP; process_op() 1968 arg->op.op = token; process_op() 1969 arg->op.left = left; process_op() 1971 arg->op.prio = 0; process_op() 1973 /* it will set arg->op.right */ process_op() 1974 type = process_array(event, arg, tok); process_op() 1979 /* the arg is now the left side */ process_op() 1989 if (prio > arg->op.prio) process_op() 1990 return process_op(event, arg, tok); process_op() 2006 process_entry(struct event_format *event __maybe_unused, struct print_arg *arg, process_entry() argument 2020 arg->type = PRINT_FIELD; process_entry() 2021 arg->field.name = field; process_entry() 2024 arg->field.field = pevent_find_any_field(event, arg->field.name); process_entry() 2025 arg->field.field->flags |= FIELD_IS_FLAG; process_entry() 2028 arg->field.field = pevent_find_any_field(event, arg->field.name); process_entry() 2029 arg->field.field->flags |= FIELD_IS_SYMBOLIC; process_entry() 2077 static char *arg_eval (struct print_arg *arg); 2114 /* Try to figure out the arg size*/ eval_type_str() 2174 eval_type(unsigned long long val, struct print_arg *arg, int pointer) eval_type() argument 2176 if (arg->type != PRINT_TYPE) { eval_type() 2181 return eval_type_str(val, arg->typecast.type, pointer); eval_type() 2184 static int arg_num_eval(struct print_arg *arg, long long *val) arg_num_eval() argument 2189 switch (arg->type) { arg_num_eval() 2191 *val = strtoll(arg->atom.atom, NULL, 0); arg_num_eval() 2194 ret = arg_num_eval(arg->typecast.item, val); arg_num_eval() 2197 *val = eval_type(*val, arg, 0); arg_num_eval() 2200 switch (arg->op.op[0]) { arg_num_eval() 2202 ret = arg_num_eval(arg->op.left, &left); arg_num_eval() 2205 ret = arg_num_eval(arg->op.right, &right); arg_num_eval() 2208 if (arg->op.op[1]) arg_num_eval() 2214 ret = arg_num_eval(arg->op.left, &left); arg_num_eval() 2217 ret = arg_num_eval(arg->op.right, &right); arg_num_eval() 2220 if (arg->op.op[1]) arg_num_eval() 2226 ret = arg_num_eval(arg->op.left, &left); arg_num_eval() 2229 ret = arg_num_eval(arg->op.right, &right); arg_num_eval() 2232 switch (arg->op.op[1]) { arg_num_eval() 2243 do_warning("unknown op '%s'", arg->op.op); arg_num_eval() 2248 ret = arg_num_eval(arg->op.left, &left); arg_num_eval() 2251 ret = arg_num_eval(arg->op.right, &right); arg_num_eval() 2254 switch (arg->op.op[1]) { arg_num_eval() 2265 do_warning("unknown op '%s'", arg->op.op); arg_num_eval() 2270 ret = arg_num_eval(arg->op.left, &left); arg_num_eval() 2273 ret = arg_num_eval(arg->op.right, &right); arg_num_eval() 2277 if (arg->op.op[1] != '=') { arg_num_eval() 2278 do_warning("unknown op '%s'", arg->op.op); arg_num_eval() 2284 ret = arg_num_eval(arg->op.left, &left); arg_num_eval() 2287 ret = arg_num_eval(arg->op.right, &right); arg_num_eval() 2291 switch (arg->op.op[1]) { arg_num_eval() 2296 do_warning("unknown op '%s'", arg->op.op); arg_num_eval() 2302 if (arg->op.left->type == PRINT_NULL) arg_num_eval() 2305 ret = arg_num_eval(arg->op.left, &left); arg_num_eval() 2308 ret = arg_num_eval(arg->op.right, &right); arg_num_eval() 2314 if (arg->op.left->type == PRINT_NULL) arg_num_eval() 2317 ret = arg_num_eval(arg->op.left, &left); arg_num_eval() 2320 ret = arg_num_eval(arg->op.right, &right); arg_num_eval() 2326 do_warning("unknown op '%s'", arg->op.op); arg_num_eval() 2337 do_warning("invalid eval type %d", arg->type); arg_num_eval() 2344 static char *arg_eval (struct print_arg *arg) arg_eval() argument 2349 switch (arg->type) { arg_eval() 2351 return arg->atom.atom; arg_eval() 2353 return arg_eval(arg->typecast.item); arg_eval() 2355 if (!arg_num_eval(arg, &val)) arg_eval() 2366 do_warning("invalid eval type %d", arg->type); arg_eval() 2377 struct print_arg *arg = NULL; process_fields() local 2388 arg = alloc_arg(); process_fields() 2389 if (!arg) process_fields() 2393 type = process_arg(event, arg, &token); process_fields() 2396 type = process_op(event, arg, &token); process_fields() 2408 value = arg_eval(arg); process_fields() 2415 free_arg(arg); process_fields() 2416 arg = alloc_arg(); process_fields() 2417 if (!arg) process_fields() 2421 type = process_arg(event, arg, &token); process_fields() 2425 value = arg_eval(arg); process_fields() 2431 free_arg(arg); process_fields() 2432 arg = NULL; process_fields() 2447 free_arg(arg); process_fields() 2455 process_flags(struct event_format *event, struct print_arg *arg, char **tok) process_flags() argument 2461 memset(arg, 0, sizeof(*arg)); process_flags() 2462 arg->type = PRINT_FLAGS; process_flags() 2480 arg->flags.field = field; process_flags() 2484 arg->flags.delim = token; process_flags() 2491 type = process_fields(event, &arg->flags.flags, &token); process_flags() 2508 process_symbols(struct event_format *event, struct print_arg *arg, char **tok) process_symbols() argument 2514 memset(arg, 0, sizeof(*arg)); process_symbols() 2515 arg->type = PRINT_SYMBOL; process_symbols() 2528 arg->symbol.field = field; process_symbols() 2530 type = process_fields(event, &arg->symbol.symbols, &token); process_symbols() 2547 process_hex(struct event_format *event, struct print_arg *arg, char **tok) process_hex() argument 2549 memset(arg, 0, sizeof(*arg)); process_hex() 2550 arg->type = PRINT_HEX; process_hex() 2552 if (alloc_and_process_delim(event, ",", &arg->hex.field)) process_hex() 2555 if (alloc_and_process_delim(event, ")", &arg->hex.size)) process_hex() 2561 free_arg(arg->hex.field); process_hex() 2568 process_int_array(struct event_format *event, struct print_arg *arg, char **tok) process_int_array() argument 2570 memset(arg, 0, sizeof(*arg)); process_int_array() 2571 arg->type = PRINT_INT_ARRAY; process_int_array() 2573 if (alloc_and_process_delim(event, ",", &arg->int_array.field)) process_int_array() 2576 if (alloc_and_process_delim(event, ",", &arg->int_array.count)) process_int_array() 2579 if (alloc_and_process_delim(event, ")", &arg->int_array.el_size)) process_int_array() 2585 free_arg(arg->int_array.count); process_int_array() 2587 free_arg(arg->int_array.field); process_int_array() 2594 process_dynamic_array(struct event_format *event, struct print_arg *arg, char **tok) process_dynamic_array() argument 2600 memset(arg, 0, sizeof(*arg)); process_dynamic_array() 2601 arg->type = PRINT_DYNAMIC_ARRAY; process_dynamic_array() 2618 arg->dynarray.field = field; process_dynamic_array() 2619 arg->dynarray.index = 0; process_dynamic_array() 2631 arg = alloc_arg(); process_dynamic_array() 2632 if (!arg) { process_dynamic_array() 2638 type = process_arg(event, arg, &token); process_dynamic_array() 2650 free_arg(arg); process_dynamic_array() 2658 process_paren(struct event_format *event, struct print_arg *arg, char **tok) process_paren() argument 2664 type = process_arg(event, arg, &token); process_paren() 2670 type = process_op(event, arg, &token); process_paren() 2691 if (arg->type != PRINT_ATOM) { process_paren() 2703 arg->type = PRINT_TYPE; process_paren() 2704 arg->typecast.type = arg->atom.atom; process_paren() 2705 arg->typecast.item = item_arg; process_paren() 2721 process_str(struct event_format *event __maybe_unused, struct print_arg *arg, process_str() argument 2730 arg->type = PRINT_STRING; process_str() 2731 arg->string.string = token; process_str() 2732 arg->string.offset = -1; process_str() 2750 process_bitmask(struct event_format *event __maybe_unused, struct print_arg *arg, process_bitmask() argument 2759 arg->type = PRINT_BITMASK; process_bitmask() 2760 arg->bitmask.bitmask = token; process_bitmask() 2761 arg->bitmask.offset = -1; process_bitmask() 2812 struct print_arg *arg, char **tok) process_func_handler() 2820 arg->type = PRINT_FUNC; process_func_handler() 2821 arg->func.func = func; process_func_handler() 2825 next_arg = &(arg->func.args); process_func_handler() 2869 process_function(struct event_format *event, struct print_arg *arg, process_function() argument 2877 return process_flags(event, arg, tok); process_function() 2882 return process_symbols(event, arg, tok); process_function() 2886 return process_hex(event, arg, tok); process_function() 2890 return process_int_array(event, arg, tok); process_function() 2894 return process_str(event, arg, tok); process_function() 2898 return process_bitmask(event, arg, tok); process_function() 2902 return process_dynamic_array(event, arg, tok); process_function() 2908 return process_func_handler(event, func, arg, tok); process_function() 2917 process_arg_token(struct event_format *event, struct print_arg *arg, process_arg_token() argument 2929 type = process_entry(event, arg, &token); process_arg_token() 2944 type = process_function(event, arg, atom, &token); process_arg_token() 2965 arg->type = PRINT_ATOM; process_arg_token() 2966 arg->atom.atom = atom; process_arg_token() 2971 arg->type = PRINT_ATOM; process_arg_token() 2972 arg->atom.atom = token; process_arg_token() 2978 type = process_paren(event, arg, &token); process_arg_token() 2983 arg->type = PRINT_OP; process_arg_token() 2984 arg->op.op = token; process_arg_token() 2985 arg->op.left = NULL; process_arg_token() 2986 type = process_op(event, arg, &token); process_arg_token() 2990 arg->op.op = NULL; process_arg_token() 3008 struct print_arg *arg; event_read_print_args() local 3018 arg = alloc_arg(); event_read_print_args() 3019 if (!arg) { event_read_print_args() 3025 type = process_arg(event, arg, &token); event_read_print_args() 3029 free_arg(arg); event_read_print_args() 3033 *list = arg; event_read_print_args() 3037 type = process_op(event, arg, &token); event_read_print_args() 3041 free_arg(arg); event_read_print_args() 3044 list = &arg->next; event_read_print_args() 3050 *list = arg; event_read_print_args() 3051 list = &arg->next; event_read_print_args() 3085 /* ok to have no arg */ event_read_print() 3391 eval_num_arg(void *data, int size, struct event_format *event, struct print_arg *arg) eval_num_arg() argument 3401 switch (arg->type) { eval_num_arg() 3406 return strtoull(arg->atom.atom, NULL, 0); eval_num_arg() 3408 if (!arg->field.field) { eval_num_arg() 3409 arg->field.field = pevent_find_any_field(event, arg->field.name); eval_num_arg() 3410 if (!arg->field.field) eval_num_arg() 3415 val = pevent_read_number(pevent, data + arg->field.field->offset, eval_num_arg() 3416 arg->field.field->size); eval_num_arg() 3424 val = eval_num_arg(data, size, event, arg->typecast.item); eval_num_arg() 3425 return eval_type(val, arg, 0); eval_num_arg() 3433 val = process_defined_func(&s, data, size, event, arg); eval_num_arg() 3438 if (strcmp(arg->op.op, "[") == 0) { eval_num_arg() 3441 * to read the arg as is. eval_num_arg() 3443 right = eval_num_arg(data, size, event, arg->op.right); eval_num_arg() 3446 larg = arg->op.left; eval_num_arg() 3476 arg = larg; eval_num_arg() 3492 } else if (strcmp(arg->op.op, "?") == 0) { eval_num_arg() 3493 left = eval_num_arg(data, size, event, arg->op.left); eval_num_arg() 3494 arg = arg->op.right; eval_num_arg() 3496 val = eval_num_arg(data, size, event, arg->op.left); eval_num_arg() 3498 val = eval_num_arg(data, size, event, arg->op.right); eval_num_arg() 3502 left = eval_num_arg(data, size, event, arg->op.left); eval_num_arg() 3503 right = eval_num_arg(data, size, event, arg->op.right); eval_num_arg() 3504 switch (arg->op.op[0]) { eval_num_arg() 3506 switch (arg->op.op[1]) { eval_num_arg() 3521 if (arg->op.op[1]) eval_num_arg() 3527 if (arg->op.op[1]) eval_num_arg() 3533 switch (arg->op.op[1]) { eval_num_arg() 3548 switch (arg->op.op[1]) { eval_num_arg() 3563 if (arg->op.op[1] != '=') eval_num_arg() 3587 data + arg->dynarray.field->offset, eval_num_arg() 3588 arg->dynarray.field->size); eval_num_arg() 3603 do_warning_event(event, "%s: unknown op '%s'", __func__, arg->op.op); eval_num_arg() 3608 __func__, arg->field.name); eval_num_arg() 3717 int len_arg, struct print_arg *arg) print_str_arg() 3730 switch (arg->type) { print_str_arg() 3735 print_str_to_seq(s, format, len_arg, arg->atom.atom); print_str_arg() 3738 field = arg->field.field; print_str_arg() 3740 field = pevent_find_any_field(event, arg->field.name); print_str_arg() 3742 str = arg->field.name; print_str_arg() 3745 arg->field.field = field; print_str_arg() 3795 val = eval_num_arg(data, size, event, arg->flags.field); print_str_arg() 3797 for (flag = arg->flags.flags; flag; flag = flag->next) { print_str_arg() 3804 if (print && arg->flags.delim) print_str_arg() 3805 trace_seq_puts(s, arg->flags.delim); print_str_arg() 3813 val = eval_num_arg(data, size, event, arg->symbol.field); print_str_arg() 3814 for (flag = arg->symbol.symbols; flag; flag = flag->next) { print_str_arg() 3823 if (arg->hex.field->type == PRINT_DYNAMIC_ARRAY) { print_str_arg() 3826 data + arg->hex.field->dynarray.field->offset, print_str_arg() 3827 arg->hex.field->dynarray.field->size); print_str_arg() 3830 field = arg->hex.field->field.field; print_str_arg() 3832 str = arg->hex.field->field.name; print_str_arg() 3836 arg->hex.field->field.field = field; print_str_arg() 3840 len = eval_num_arg(data, size, event, arg->hex.size); print_str_arg() 3852 if (arg->int_array.field->type == PRINT_DYNAMIC_ARRAY) { print_str_arg() 3855 arg->int_array.field->dynarray.field; print_str_arg() 3861 field = arg->int_array.field->field.field; print_str_arg() 3863 str = arg->int_array.field->field.name; print_str_arg() 3867 arg->int_array.field->field.field = field; print_str_arg() 3871 len = eval_num_arg(data, size, event, arg->int_array.count); print_str_arg() 3873 arg->int_array.el_size); print_str_arg() 3901 if (arg->string.offset == -1) { print_str_arg() 3904 f = pevent_find_any_field(event, arg->string.string); print_str_arg() 3905 arg->string.offset = f->offset; print_str_arg() 3907 str_offset = data2host4(pevent, data + arg->string.offset); print_str_arg() 3913 print_str_to_seq(s, format, len_arg, arg->string.string); print_str_arg() 3919 if (arg->bitmask.offset == -1) { print_str_arg() 3922 f = pevent_find_any_field(event, arg->bitmask.bitmask); print_str_arg() 3923 arg->bitmask.offset = f->offset; print_str_arg() 3925 bitmask_offset = data2host4(pevent, data + arg->bitmask.offset); print_str_arg() 3936 if (arg->op.op[0] != '?') print_str_arg() 3938 val = eval_num_arg(data, size, event, arg->op.left); print_str_arg() 3941 format, len_arg, arg->op.right->op.left); print_str_arg() 3944 format, len_arg, arg->op.right->op.right); print_str_arg() 3947 process_defined_func(s, data, size, event, arg); print_str_arg() 3958 __func__, arg->field.name); print_str_arg() 3963 struct event_format *event, struct print_arg *arg) process_defined_func() 3965 struct pevent_function_handler *func_handle = arg->func.func; process_defined_func() 3982 farg = arg->func.args; process_defined_func() 4062 struct print_arg *args, *arg, **next; make_bprint_args() local 4089 * The first arg is the IP pointer. make_bprint_args() 4097 arg = args; make_bprint_args() 4098 arg->next = NULL; make_bprint_args() 4099 next = &arg->next; make_bprint_args() 4101 arg->type = PRINT_ATOM; make_bprint_args() 4103 if (asprintf(&arg->atom.atom, "%lld", ip) < 0) make_bprint_args() 4162 arg = alloc_arg(); make_bprint_args() 4163 if (!arg) { make_bprint_args() 4168 arg->next = NULL; make_bprint_args() 4169 arg->type = PRINT_ATOM; make_bprint_args() 4170 if (asprintf(&arg->atom.atom, "%lld", val) < 0) { make_bprint_args() 4171 free(arg); make_bprint_args() 4174 *next = arg; make_bprint_args() 4175 next = &arg->next; make_bprint_args() 4177 * The '*' case means that an arg is used as the length. make_bprint_args() 4185 arg = alloc_arg(); make_bprint_args() 4186 if (!arg) { make_bprint_args() 4191 arg->next = NULL; make_bprint_args() 4192 arg->type = PRINT_BSTRING; make_bprint_args() 4193 arg->string.string = strdup(bptr); make_bprint_args() 4194 if (!arg->string.string) make_bprint_args() 4197 *next = arg; make_bprint_args() 4198 next = &arg->next; make_bprint_args() 4249 struct event_format *event, struct print_arg *arg) print_mac_arg() 4254 if (arg->type == PRINT_FUNC) { print_mac_arg() 4255 process_defined_func(s, data, size, event, arg); print_mac_arg() 4259 if (arg->type != PRINT_FIELD) { print_mac_arg() 4261 arg->type); print_mac_arg() 4267 if (!arg->field.field) { print_mac_arg() 4268 arg->field.field = print_mac_arg() 4269 pevent_find_any_field(event, arg->field.name); print_mac_arg() 4270 if (!arg->field.field) { print_mac_arg() 4272 __func__, arg->field.name); print_mac_arg() 4276 if (arg->field.field->size != 6) { print_mac_arg() 4280 buf = data + arg->field.field->offset; print_mac_arg() 4403 struct print_arg *arg) print_ipv4_arg() 4407 if (arg->type == PRINT_FUNC) { print_ipv4_arg() 4408 process_defined_func(s, data, size, event, arg); print_ipv4_arg() 4412 if (arg->type != PRINT_FIELD) { print_ipv4_arg() 4413 trace_seq_printf(s, "ARG TYPE NOT FIELD BUT %d", arg->type); print_ipv4_arg() 4417 if (!arg->field.field) { print_ipv4_arg() 4418 arg->field.field = print_ipv4_arg() 4419 pevent_find_any_field(event, arg->field.name); print_ipv4_arg() 4420 if (!arg->field.field) { print_ipv4_arg() 4422 __func__, arg->field.name); print_ipv4_arg() 4427 buf = data + arg->field.field->offset; print_ipv4_arg() 4429 if (arg->field.field->size != 4) { print_ipv4_arg() 4440 struct print_arg *arg) print_ipv6_arg() 4453 if (arg->type == PRINT_FUNC) { print_ipv6_arg() 4454 process_defined_func(s, data, size, event, arg); print_ipv6_arg() 4458 if (arg->type != PRINT_FIELD) { print_ipv6_arg() 4459 trace_seq_printf(s, "ARG TYPE NOT FIELD BUT %d", arg->type); print_ipv6_arg() 4463 if (!arg->field.field) { print_ipv6_arg() 4464 arg->field.field = print_ipv6_arg() 4465 pevent_find_any_field(event, arg->field.name); print_ipv6_arg() 4466 if (!arg->field.field) { print_ipv6_arg() 4468 __func__, arg->field.name); print_ipv6_arg() 4473 buf = data + arg->field.field->offset; print_ipv6_arg() 4475 if (arg->field.field->size != 16) { print_ipv6_arg() 4490 struct print_arg *arg) print_ipsa_arg() 4511 if (arg->type == PRINT_FUNC) { print_ipsa_arg() 4512 process_defined_func(s, data, size, event, arg); print_ipsa_arg() 4516 if (arg->type != PRINT_FIELD) { print_ipsa_arg() 4517 trace_seq_printf(s, "ARG TYPE NOT FIELD BUT %d", arg->type); print_ipsa_arg() 4521 if (!arg->field.field) { print_ipsa_arg() 4522 arg->field.field = print_ipsa_arg() 4523 pevent_find_any_field(event, arg->field.name); print_ipsa_arg() 4524 if (!arg->field.field) { print_ipsa_arg() 4526 __func__, arg->field.name); print_ipsa_arg() 4531 sa = (struct sockaddr_storage *) (data + arg->field.field->offset); print_ipsa_arg() 4536 if (arg->field.field->size < sizeof(struct sockaddr_in)) { print_ipsa_arg() 4549 if (arg->field.field->size < sizeof(struct sockaddr_in6)) { print_ipsa_arg() 4572 struct print_arg *arg) print_ip_arg() 4587 rc += print_ipv4_arg(s, ptr, i, data, size, event, arg); print_ip_arg() 4590 rc += print_ipv6_arg(s, ptr, i, data, size, event, arg); print_ip_arg() 4593 rc += print_ipsa_arg(s, ptr, i, data, size, event, arg); print_ip_arg() 4687 struct print_arg *arg = print_fmt->args; pretty_print() local 4711 arg = args; pretty_print() 4761 if (!arg) { pretty_print() 4766 len_arg = eval_num_arg(data, size, event, arg); pretty_print() 4768 arg = arg->next; pretty_print() 4786 print_mac_arg(s, *(ptr+1), data, size, event, arg); pretty_print() 4788 arg = arg->next; pretty_print() 4793 n = print_ip_arg(s, ptr+1, data, size, event, arg); pretty_print() 4796 arg = arg->next; pretty_print() 4807 if (!arg) { pretty_print() 4826 val = eval_num_arg(data, size, event, arg); pretty_print() 4827 arg = arg->next; pretty_print() 4889 if (!arg) { pretty_print() 4912 format, len_arg, arg); pretty_print() 4916 arg = arg->next; pretty_print() 5788 struct print_arg *arg, **list; __pevent_parse_format() local 5793 arg = alloc_arg(); __pevent_parse_format() 5794 if (!arg) { __pevent_parse_format() 5798 arg->type = PRINT_FIELD; __pevent_parse_format() 5799 arg->field.name = strdup(field->name); __pevent_parse_format() 5800 if (!arg->field.name) { __pevent_parse_format() 5802 free_arg(arg); __pevent_parse_format() 5805 arg->field.field = field; __pevent_parse_format() 5806 *list = arg; __pevent_parse_format() 5807 list = &arg->next; __pevent_parse_format() 2811 process_func_handler(struct event_format *event, struct pevent_function_handler *func, struct print_arg *arg, char **tok) process_func_handler() argument 3715 print_str_arg(struct trace_seq *s, void *data, int size, struct event_format *event, const char *format, int len_arg, struct print_arg *arg) print_str_arg() argument 3962 process_defined_func(struct trace_seq *s, void *data, int size, struct event_format *event, struct print_arg *arg) process_defined_func() argument 4248 print_mac_arg(struct trace_seq *s, int mac, void *data, int size, struct event_format *event, struct print_arg *arg) print_mac_arg() argument 4401 print_ipv4_arg(struct trace_seq *s, const char *ptr, char i, void *data, int size, struct event_format *event, struct print_arg *arg) print_ipv4_arg() argument 4438 print_ipv6_arg(struct trace_seq *s, const char *ptr, char i, void *data, int size, struct event_format *event, struct print_arg *arg) print_ipv6_arg() argument 4488 print_ipsa_arg(struct trace_seq *s, const char *ptr, char i, void *data, int size, struct event_format *event, struct print_arg *arg) print_ipsa_arg() argument 4570 print_ip_arg(struct trace_seq *s, const char *ptr, void *data, int size, struct event_format *event, struct print_arg *arg) print_ip_arg() argument
|
/linux-4.1.27/drivers/media/firewire/ |
H A D | firedtv-ci.c | 48 static int fdtv_ca_get_caps(void *arg) fdtv_ca_get_caps() argument 50 struct ca_caps *cap = arg; fdtv_ca_get_caps() 59 static int fdtv_ca_get_slot_info(struct firedtv *fdtv, void *arg) fdtv_ca_get_slot_info() argument 62 struct ca_slot_info *slot = arg; fdtv_ca_get_slot_info() 77 static int fdtv_ca_app_info(struct firedtv *fdtv, void *arg) fdtv_ca_app_info() argument 79 struct ca_msg *reply = arg; fdtv_ca_app_info() 84 static int fdtv_ca_info(struct firedtv *fdtv, void *arg) fdtv_ca_info() argument 86 struct ca_msg *reply = arg; fdtv_ca_info() 91 static int fdtv_ca_get_mmi(struct firedtv *fdtv, void *arg) fdtv_ca_get_mmi() argument 93 struct ca_msg *reply = arg; fdtv_ca_get_mmi() 98 static int fdtv_ca_get_msg(struct firedtv *fdtv, void *arg) fdtv_ca_get_msg() argument 105 err = fdtv_ca_app_info(fdtv, arg); fdtv_ca_get_msg() 108 err = fdtv_ca_info(fdtv, arg); fdtv_ca_get_msg() 115 err = fdtv_ca_get_mmi(fdtv, arg); fdtv_ca_get_msg() 126 static int fdtv_ca_pmt(struct firedtv *fdtv, void *arg) fdtv_ca_pmt() argument 128 struct ca_msg *msg = arg; fdtv_ca_pmt() 145 static int fdtv_ca_send_msg(struct firedtv *fdtv, void *arg) fdtv_ca_send_msg() argument 147 struct ca_msg *msg = arg; fdtv_ca_send_msg() 155 err = fdtv_ca_pmt(fdtv, arg); fdtv_ca_send_msg() 176 static int fdtv_ca_ioctl(struct file *file, unsigned int cmd, void *arg) fdtv_ca_ioctl() argument 188 err = fdtv_ca_get_caps(arg); fdtv_ca_ioctl() 191 err = fdtv_ca_get_slot_info(fdtv, arg); fdtv_ca_ioctl() 194 err = fdtv_ca_get_msg(fdtv, arg); fdtv_ca_ioctl() 197 err = fdtv_ca_send_msg(fdtv, arg); fdtv_ca_ioctl()
|
/linux-4.1.27/drivers/net/wireless/ti/wlcore/ |
H A D | debug.h | 64 #define wl1271_error(fmt, arg...) \ 65 pr_err(DRIVER_PREFIX "ERROR " fmt "\n", ##arg) 67 #define wl1271_warning(fmt, arg...) \ 68 pr_warn(DRIVER_PREFIX "WARNING " fmt "\n", ##arg) 70 #define wl1271_notice(fmt, arg...) \ 71 pr_info(DRIVER_PREFIX fmt "\n", ##arg) 73 #define wl1271_info(fmt, arg...) \ 74 pr_info(DRIVER_PREFIX fmt "\n", ##arg) 78 #define wl1271_debug(level, fmt, arg...) \ 81 dynamic_pr_debug(DRIVER_PREFIX fmt "\n", ##arg); \ 84 #define wl1271_debug(level, fmt, arg...) \ 88 ##arg); \
|
/linux-4.1.27/arch/mips/dec/prom/ |
H A D | cmdline.c | 19 char *arg; prom_init_cmdline() local 30 arg = (void *)(long)(argv[i]); prom_init_cmdline() 31 strcat(arcs_cmdline, arg); prom_init_cmdline()
|
/linux-4.1.27/arch/arm/kernel/ |
H A D | reboot.h | 4 extern void call_with_stack(void (*fn)(void *), void *arg, void *sp);
|
H A D | smp_tlb.c | 33 static inline void ipi_flush_tlb_mm(void *arg) ipi_flush_tlb_mm() argument 35 struct mm_struct *mm = (struct mm_struct *)arg; ipi_flush_tlb_mm() 40 static inline void ipi_flush_tlb_page(void *arg) ipi_flush_tlb_page() argument 42 struct tlb_args *ta = (struct tlb_args *)arg; ipi_flush_tlb_page() 47 static inline void ipi_flush_tlb_kernel_page(void *arg) ipi_flush_tlb_kernel_page() argument 49 struct tlb_args *ta = (struct tlb_args *)arg; ipi_flush_tlb_kernel_page() 54 static inline void ipi_flush_tlb_range(void *arg) ipi_flush_tlb_range() argument 56 struct tlb_args *ta = (struct tlb_args *)arg; ipi_flush_tlb_range() 61 static inline void ipi_flush_tlb_kernel_range(void *arg) ipi_flush_tlb_kernel_range() argument 63 struct tlb_args *ta = (struct tlb_args *)arg; ipi_flush_tlb_kernel_range() 111 static void ipi_flush_tlb_a15_erratum(void *arg) ipi_flush_tlb_a15_erratum() argument
|
H A D | suspend.c | 17 int cpu_suspend(unsigned long arg, int (*fn)(unsigned long)) cpu_suspend() argument 32 ret = __cpu_suspend(arg, fn, __mpidr); cpu_suspend() 42 int cpu_suspend(unsigned long arg, int (*fn)(unsigned long)) cpu_suspend() argument 45 return __cpu_suspend(arg, fn, __mpidr); cpu_suspend()
|
/linux-4.1.27/tools/testing/selftests/user/ |
H A D | Makefile | 3 # No binaries, but make sure arg-less "make" doesn't trigger "run_tests"
|
/linux-4.1.27/include/linux/ |
H A D | atm.h | 12 compat_uptr_t arg; member in struct:compat_atmif_sioc
|
H A D | stop_machine.h | 19 typedef int (*cpu_stop_fn_t)(void *arg); 26 void *arg; member in struct:cpu_stop_work 30 int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg); 31 int stop_two_cpus(unsigned int cpu1, unsigned int cpu2, cpu_stop_fn_t fn, void *arg); 32 void stop_one_cpu_nowait(unsigned int cpu, cpu_stop_fn_t fn, void *arg, 34 int stop_cpus(const struct cpumask *cpumask, cpu_stop_fn_t fn, void *arg); 35 int try_stop_cpus(const struct cpumask *cpumask, cpu_stop_fn_t fn, void *arg); 44 void *arg; member in struct:cpu_stop_work 47 static inline int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg) stop_one_cpu() argument 52 ret = fn(arg); stop_one_cpu() 62 stwork->fn(stwork->arg); stop_one_cpu_nowait_workfn() 67 cpu_stop_fn_t fn, void *arg, stop_one_cpu_nowait() 73 work_buf->arg = arg; stop_one_cpu_nowait() 79 cpu_stop_fn_t fn, void *arg) stop_cpus() 82 return stop_one_cpu(raw_smp_processor_id(), fn, arg); stop_cpus() 87 cpu_stop_fn_t fn, void *arg) try_stop_cpus() 89 return stop_cpus(cpumask, fn, arg); try_stop_cpus() 66 stop_one_cpu_nowait(unsigned int cpu, cpu_stop_fn_t fn, void *arg, struct cpu_stop_work *work_buf) stop_one_cpu_nowait() argument 78 stop_cpus(const struct cpumask *cpumask, cpu_stop_fn_t fn, void *arg) stop_cpus() argument 86 try_stop_cpus(const struct cpumask *cpumask, cpu_stop_fn_t fn, void *arg) try_stop_cpus() argument
|
/linux-4.1.27/drivers/acpi/acpica/ |
H A D | dsfield.c | 69 union acpi_parse_object *arg); 152 union acpi_parse_object *arg; acpi_ds_create_buffer_field() local 168 arg = acpi_ps_get_arg(op, 3); acpi_ds_create_buffer_field() 172 arg = acpi_ps_get_arg(op, 2); acpi_ds_create_buffer_field() 175 if (!arg) { acpi_ds_create_buffer_field() 207 arg->common.value.string, ACPI_TYPE_ANY, acpi_ds_create_buffer_field() 211 ACPI_ERROR_NAMESPACE(arg->common.value.string, status); acpi_ds_create_buffer_field() 276 * arg - First parser arg for the field name list 288 union acpi_parse_object *arg) acpi_ds_get_field_names() 302 while (arg) { acpi_ds_get_field_names() 310 switch (arg->common.aml_opcode) { acpi_ds_get_field_names() 314 + (u64) arg->common.value.size; acpi_ds_get_field_names() 343 ((u8)((u32)(arg->common.value.integer & 0x07)))); acpi_ds_get_field_names() 348 (u8)((arg->common.value.integer >> 8) & 0xFF); acpi_ds_get_field_names() 353 (u8)((arg->common.value.integer >> 16) & 0xFF); acpi_ds_get_field_names() 369 child = arg->common.value.arg; acpi_ds_get_field_names() 398 (char *)&arg->named.name, acpi_ds_get_field_names() 404 ACPI_ERROR_NAMESPACE((char *)&arg->named.name, acpi_ds_get_field_names() 408 arg->common.node = info->field_node; acpi_ds_get_field_names() 409 info->field_bit_length = arg->common.value.size; acpi_ds_get_field_names() 429 + (u64) arg->common.value.size; acpi_ds_get_field_names() 448 arg->common.aml_opcode)); acpi_ds_get_field_names() 452 arg = arg->common.next; acpi_ds_get_field_names() 478 union acpi_parse_object *arg; acpi_ds_create_field() local 483 /* First arg is the name of the parent op_region (must already exist) */ acpi_ds_create_field() 485 arg = op->common.value.arg; acpi_ds_create_field() 490 arg->common.value.name, ACPI_TYPE_REGION, acpi_ds_create_field() 494 status = acpi_ds_create_external_region(status, arg, acpi_ds_create_field() 495 arg->common.value.name, acpi_ds_create_field() 500 ACPI_ERROR_NAMESPACE(arg->common.value.name, status); acpi_ds_create_field() 507 /* Second arg is the field flags */ acpi_ds_create_field() 509 arg = arg->common.next; acpi_ds_create_field() 510 info.field_flags = (u8) arg->common.value.integer; acpi_ds_create_field() 513 /* Each remaining arg is a Named Field */ acpi_ds_create_field() 518 status = acpi_ds_get_field_names(&info, walk_state, arg->common.next); acpi_ds_create_field() 542 union acpi_parse_object *arg = NULL; acpi_ds_init_field_objects() local 569 arg = acpi_ps_get_arg(op, 2); acpi_ds_init_field_objects() 575 arg = acpi_ps_get_arg(op, 4); acpi_ds_init_field_objects() 581 arg = acpi_ps_get_arg(op, 3); acpi_ds_init_field_objects() 608 while (arg) { acpi_ds_init_field_objects() 613 if (arg->common.aml_opcode == AML_INT_NAMEDFIELD_OP) { acpi_ds_init_field_objects() 615 (char *)&arg->named.name, type, acpi_ds_init_field_objects() 619 ACPI_ERROR_NAMESPACE((char *)&arg->named.name, acpi_ds_init_field_objects() 630 arg->common.node = node; acpi_ds_init_field_objects() 635 arg = arg->common.next; acpi_ds_init_field_objects() 661 union acpi_parse_object *arg; acpi_ds_create_bank_field() local 666 /* First arg is the name of the parent op_region (must already exist) */ acpi_ds_create_bank_field() 668 arg = op->common.value.arg; acpi_ds_create_bank_field() 672 arg->common.value.name, ACPI_TYPE_REGION, acpi_ds_create_bank_field() 676 status = acpi_ds_create_external_region(status, arg, acpi_ds_create_bank_field() 677 arg->common.value.name, acpi_ds_create_bank_field() 682 ACPI_ERROR_NAMESPACE(arg->common.value.name, status); acpi_ds_create_bank_field() 687 /* Second arg is the Bank Register (Field) (must already exist) */ acpi_ds_create_bank_field() 689 arg = arg->common.next; acpi_ds_create_bank_field() 691 acpi_ns_lookup(walk_state->scope_info, arg->common.value.string, acpi_ds_create_bank_field() 696 ACPI_ERROR_NAMESPACE(arg->common.value.string, status); acpi_ds_create_bank_field() 701 * Third arg is the bank_value acpi_ds_create_bank_field() 702 * This arg is a term_arg, not a constant acpi_ds_create_bank_field() 705 arg = arg->common.next; acpi_ds_create_bank_field() 707 /* Fourth arg is the field flags */ acpi_ds_create_bank_field() 709 arg = arg->common.next; acpi_ds_create_bank_field() 710 info.field_flags = (u8) arg->common.value.integer; acpi_ds_create_bank_field() 712 /* Each remaining arg is a Named Field */ acpi_ds_create_bank_field() 727 status = acpi_ds_get_field_names(&info, walk_state, arg->common.next); acpi_ds_create_bank_field() 751 union acpi_parse_object *arg; acpi_ds_create_index_field() local 756 /* First arg is the name of the Index register (must already exist) */ acpi_ds_create_index_field() 758 arg = op->common.value.arg; acpi_ds_create_index_field() 760 acpi_ns_lookup(walk_state->scope_info, arg->common.value.string, acpi_ds_create_index_field() 765 ACPI_ERROR_NAMESPACE(arg->common.value.string, status); acpi_ds_create_index_field() 769 /* Second arg is the data register (must already exist) */ acpi_ds_create_index_field() 771 arg = arg->common.next; acpi_ds_create_index_field() 773 acpi_ns_lookup(walk_state->scope_info, arg->common.value.string, acpi_ds_create_index_field() 778 ACPI_ERROR_NAMESPACE(arg->common.value.string, status); acpi_ds_create_index_field() 782 /* Next arg is the field flags */ acpi_ds_create_index_field() 784 arg = arg->common.next; acpi_ds_create_index_field() 785 info.field_flags = (u8) arg->common.value.integer; acpi_ds_create_index_field() 787 /* Each remaining arg is a Named Field */ acpi_ds_create_index_field() 792 status = acpi_ds_get_field_names(&info, walk_state, arg->common.next); acpi_ds_create_index_field() 286 acpi_ds_get_field_names(struct acpi_create_field_info *info, struct acpi_walk_state *walk_state, union acpi_parse_object *arg) acpi_ds_get_field_names() argument
|
H A D | pstree.c | 72 union acpi_parse_object *arg = NULL; acpi_ps_get_arg() local 104 arg = op->common.value.arg; acpi_ps_get_arg() 105 while (arg && argn) { acpi_ps_get_arg() 107 arg = arg->common.next; acpi_ps_get_arg() 110 return (arg); acpi_ps_get_arg() 118 * arg - Argument Op to append 122 * DESCRIPTION: Append an argument to an op's argument list (a NULL arg is OK) 127 acpi_ps_append_arg(union acpi_parse_object *op, union acpi_parse_object *arg) acpi_ps_append_arg() argument 161 if (op->common.value.arg) { acpi_ps_append_arg() 165 prev_arg = op->common.value.arg; acpi_ps_append_arg() 169 prev_arg->common.next = arg; acpi_ps_append_arg() 173 op->common.value.arg = arg; acpi_ps_append_arg() 176 /* Set the parent in this arg and any args linked after it */ acpi_ps_append_arg() 178 while (arg) { acpi_ps_append_arg() 179 arg->common.parent = op; acpi_ps_append_arg() 180 arg = arg->common.next; acpi_ps_append_arg() 206 union acpi_parse_object *arg; acpi_ps_get_depth_next() local 233 arg = acpi_ps_get_arg(parent, 0); acpi_ps_get_depth_next() 234 while (arg && (arg != origin) && (arg != op)) { acpi_ps_get_depth_next() 235 arg = arg->common.next; acpi_ps_get_depth_next() 238 if (arg == origin) { acpi_ps_get_depth_next()
|
H A D | psargs.c | 213 * arg - Where the namepath will be stored 232 union acpi_parse_object *arg, u8 possible_method_call) acpi_ps_get_next_namepath() 244 acpi_ps_init_op(arg, AML_INT_NAMEPATH_OP); acpi_ps_get_next_namepath() 249 arg->common.value.name = path; acpi_ps_get_next_namepath() 279 acpi_ps_init_op(arg, AML_INT_METHODCALL_OP); acpi_ps_get_next_namepath() 297 acpi_ps_init_op(arg, AML_INT_METHODCALL_OP); acpi_ps_get_next_namepath() 303 acpi_ps_append_arg(arg, name_op); acpi_ps_get_next_namepath() 347 else if ((arg->common.parent) && acpi_ps_get_next_namepath() 348 ((arg->common.parent->common.aml_opcode == acpi_ps_get_next_namepath() 350 || (arg->common.parent->common.aml_opcode == acpi_ps_get_next_namepath() 372 arg->common.value.name = path; acpi_ps_get_next_namepath() 382 * arg - Where the argument is returned 392 u32 arg_type, union acpi_parse_object *arg) acpi_ps_get_next_simple_arg() 406 arg->common.value.integer = (u64) *aml; acpi_ps_get_next_simple_arg() 415 ACPI_MOVE_16_TO_64(&arg->common.value.integer, aml); acpi_ps_get_next_simple_arg() 424 ACPI_MOVE_32_TO_64(&arg->common.value.integer, aml); acpi_ps_get_next_simple_arg() 433 ACPI_MOVE_64_TO_64(&arg->common.value.integer, aml); acpi_ps_get_next_simple_arg() 442 arg->common.value.string = ACPI_CAST_PTR(char, aml); acpi_ps_get_next_simple_arg() 456 acpi_ps_init_op(arg, AML_INT_NAMEPATH_OP); acpi_ps_get_next_simple_arg() 457 arg->common.value.name = acpi_ps_get_next_simple_arg() 467 acpi_ps_init_op(arg, opcode); acpi_ps_get_next_simple_arg() 489 union acpi_parse_object *arg = NULL; acpi_ps_get_next_field() local 619 arg = acpi_ps_alloc_op(AML_INT_BYTELIST_OP); acpi_ps_get_next_field() 620 if (!arg) { acpi_ps_get_next_field() 660 arg->named.value.size = buffer_length; acpi_ps_get_next_field() 661 arg->named.data = parser_state->aml; acpi_ps_get_next_field() 668 arg = acpi_ps_alloc_op(AML_INT_NAMEPATH_OP); acpi_ps_get_next_field() 669 if (!arg) { acpi_ps_get_next_field() 676 arg->common.value.name = acpi_ps_get_next_field() 682 acpi_ps_append_arg(field, arg); acpi_ps_get_next_field() 701 * return_arg - Where the next arg is returned 715 union acpi_parse_object *arg = NULL; acpi_ps_get_next_arg() local 733 arg = acpi_ps_alloc_op(AML_BYTE_OP); acpi_ps_get_next_arg() 734 if (!arg) { acpi_ps_get_next_arg() 737 acpi_ps_get_next_simple_arg(parser_state, arg_type, arg); acpi_ps_get_next_arg() 763 arg = field; acpi_ps_get_next_arg() 780 arg = acpi_ps_alloc_op(AML_INT_BYTELIST_OP); acpi_ps_get_next_arg() 781 if (!arg) { acpi_ps_get_next_arg() 787 arg->common.value.size = (u32) acpi_ps_get_next_arg() 790 arg->named.data = parser_state->aml; acpi_ps_get_next_arg() 810 arg = acpi_ps_alloc_op(AML_INT_NAMEPATH_OP); acpi_ps_get_next_arg() 811 if (!arg) { acpi_ps_get_next_arg() 815 /* To support super_name arg of Unload */ acpi_ps_get_next_arg() 820 parser_state, arg, acpi_ps_get_next_arg() 824 * If the super_name arg of Unload is a method call, acpi_ps_get_next_arg() 827 if (arg->common.aml_opcode == acpi_ps_get_next_arg() 829 acpi_ps_free_op(arg); acpi_ps_get_next_arg() 830 arg = NULL; acpi_ps_get_next_arg() 835 parser_state, arg, acpi_ps_get_next_arg() 872 *return_arg = arg; acpi_ps_get_next_arg() 230 acpi_ps_get_next_namepath(struct acpi_walk_state *walk_state, struct acpi_parse_state *parser_state, union acpi_parse_object *arg, u8 possible_method_call) acpi_ps_get_next_namepath() argument 391 acpi_ps_get_next_simple_arg(struct acpi_parse_state *parser_state, u32 arg_type, union acpi_parse_object *arg) acpi_ps_get_next_simple_arg() argument
|
/linux-4.1.27/block/ |
H A D | ioctl.c | 12 static int blkpg_ioctl(struct block_device *bdev, struct blkpg_ioctl_arg __user *arg) blkpg_ioctl() argument 25 if (copy_from_user(&a, arg, sizeof(struct blkpg_ioctl_arg))) blkpg_ioctl() 204 static int put_ushort(unsigned long arg, unsigned short val) put_ushort() argument 206 return put_user(val, (unsigned short __user *)arg); put_ushort() 209 static int put_int(unsigned long arg, int val) put_int() argument 211 return put_user(val, (int __user *)arg); put_int() 214 static int put_uint(unsigned long arg, unsigned int val) put_uint() argument 216 return put_user(val, (unsigned int __user *)arg); put_uint() 219 static int put_long(unsigned long arg, long val) put_long() argument 221 return put_user(val, (long __user *)arg); put_long() 224 static int put_ulong(unsigned long arg, unsigned long val) put_ulong() argument 226 return put_user(val, (unsigned long __user *)arg); put_ulong() 229 static int put_u64(unsigned long arg, u64 val) put_u64() argument 231 return put_user(val, (u64 __user *)arg); put_u64() 235 unsigned cmd, unsigned long arg) __blkdev_driver_ioctl() 240 return disk->fops->ioctl(bdev, mode, cmd, arg); __blkdev_driver_ioctl() 275 unsigned long arg) blkdev_ioctl() 288 ret = __blkdev_driver_ioctl(bdev, mode, cmd, arg); blkdev_ioctl() 297 ret = __blkdev_driver_ioctl(bdev, mode, cmd, arg); blkdev_ioctl() 302 if (get_user(n, (int __user *)(arg))) blkdev_ioctl() 314 if (copy_from_user(range, (void __user *)arg, sizeof(range))) blkdev_ioctl() 326 if (copy_from_user(range, (void __user *)arg, sizeof(range))) blkdev_ioctl() 335 if (!arg) blkdev_ioctl() 349 if (copy_to_user((struct hd_geometry __user *)arg, &geo, blkdev_ioctl() 356 if (!arg) blkdev_ioctl() 359 return put_long(arg, (bdi->ra_pages * PAGE_CACHE_SIZE) / 512); blkdev_ioctl() 361 return put_int(arg, bdev_read_only(bdev) != 0); blkdev_ioctl() 363 return put_int(arg, block_size(bdev)); blkdev_ioctl() 365 return put_int(arg, bdev_logical_block_size(bdev)); blkdev_ioctl() 367 return put_uint(arg, bdev_physical_block_size(bdev)); blkdev_ioctl() 369 return put_uint(arg, bdev_io_min(bdev)); blkdev_ioctl() 371 return put_uint(arg, bdev_io_opt(bdev)); blkdev_ioctl() 373 return put_int(arg, bdev_alignment_offset(bdev)); blkdev_ioctl() 375 return put_uint(arg, bdev_discard_zeroes_data(bdev)); blkdev_ioctl() 379 return put_ushort(arg, max_sectors); blkdev_ioctl() 381 return put_ushort(arg, !blk_queue_nonrot(bdev_get_queue(bdev))); blkdev_ioctl() 387 bdi->ra_pages = (arg * 512) / PAGE_CACHE_SIZE; blkdev_ioctl() 393 if (!arg) blkdev_ioctl() 395 if (get_user(n, (int __user *) arg)) blkdev_ioctl() 407 ret = blkpg_ioctl(bdev, (struct blkpg_ioctl_arg __user *) arg); blkdev_ioctl() 416 return put_ulong(arg, size >> 9); blkdev_ioctl() 418 return put_u64(arg, i_size_read(bdev->bd_inode)); blkdev_ioctl() 423 ret = blk_trace_ioctl(bdev, cmd, (char __user *) arg); blkdev_ioctl() 426 ret = __blkdev_driver_ioctl(bdev, mode, cmd, arg); blkdev_ioctl() 234 __blkdev_driver_ioctl(struct block_device *bdev, fmode_t mode, unsigned cmd, unsigned long arg) __blkdev_driver_ioctl() argument 274 blkdev_ioctl(struct block_device *bdev, fmode_t mode, unsigned cmd, unsigned long arg) blkdev_ioctl() argument
|
H A D | compat_ioctl.c | 14 static int compat_put_ushort(unsigned long arg, unsigned short val) compat_put_ushort() argument 16 return put_user(val, (unsigned short __user *)compat_ptr(arg)); compat_put_ushort() 19 static int compat_put_int(unsigned long arg, int val) compat_put_int() argument 21 return put_user(val, (compat_int_t __user *)compat_ptr(arg)); compat_put_int() 24 static int compat_put_uint(unsigned long arg, unsigned int val) compat_put_uint() argument 26 return put_user(val, (compat_uint_t __user *)compat_ptr(arg)); compat_put_uint() 29 static int compat_put_long(unsigned long arg, long val) compat_put_long() argument 31 return put_user(val, (compat_long_t __user *)compat_ptr(arg)); compat_put_long() 34 static int compat_put_ulong(unsigned long arg, compat_ulong_t val) compat_put_ulong() argument 36 return put_user(val, (compat_ulong_t __user *)compat_ptr(arg)); compat_put_ulong() 39 static int compat_put_u64(unsigned long arg, u64 val) compat_put_u64() argument 41 return put_user(val, (compat_u64 __user *)compat_ptr(arg)); compat_put_u64() 81 unsigned int cmd, unsigned long arg) compat_hdio_ioctl() 94 uvp = compat_ptr(arg); compat_hdio_ioctl() 121 unsigned int cmd, unsigned long arg) compat_cdrom_read_audio() 129 cdread_audio32 = compat_ptr(arg); compat_cdrom_read_audio() 148 unsigned int cmd, unsigned long arg) compat_cdrom_generic_command() 157 cgc32 = compat_ptr(arg); compat_cdrom_generic_command() 304 unsigned int cmd, unsigned long arg) compat_fd_ioctl() 328 uf = compat_ptr(arg); compat_fd_ioctl() 357 uf = compat_ptr(arg); compat_fd_ioctl() 416 struct compat_floppy_struct __user *uf = compat_ptr(arg); compat_fd_ioctl() 435 uf = compat_ptr(arg); compat_fd_ioctl() 463 uf = compat_ptr(arg); compat_fd_ioctl() 486 uf = compat_ptr(arg); compat_fd_ioctl() 504 uf = compat_ptr(arg); compat_fd_ioctl() 525 unsigned cmd, unsigned long arg) compat_blkdev_driver_ioctl() 539 return compat_hdio_ioctl(bdev, mode, cmd, arg); compat_blkdev_driver_ioctl() 549 return compat_fd_ioctl(bdev, mode, cmd, arg); compat_blkdev_driver_ioctl() 551 return compat_cdrom_read_audio(bdev, mode, cmd, arg); compat_blkdev_driver_ioctl() 553 return compat_cdrom_generic_command(bdev, mode, cmd, arg); compat_blkdev_driver_ioctl() 557 * convert arg to a 64 bit pointer. compat_blkdev_driver_ioctl() 621 arg = (unsigned long)compat_ptr(arg); compat_blkdev_driver_ioctl() 622 /* These intepret arg as an unsigned long, not as a pointer, compat_blkdev_driver_ioctl() 651 return __blkdev_driver_ioctl(bdev, mode, cmd, arg); compat_blkdev_driver_ioctl() 657 long compat_blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg) compat_blkdev_ioctl() argument 679 return compat_hdio_getgeo(disk, bdev, compat_ptr(arg)); compat_blkdev_ioctl() 681 return compat_put_uint(arg, bdev_physical_block_size(bdev)); compat_blkdev_ioctl() 683 return compat_put_uint(arg, bdev_io_min(bdev)); compat_blkdev_ioctl() 685 return compat_put_uint(arg, bdev_io_opt(bdev)); compat_blkdev_ioctl() 687 return compat_put_int(arg, bdev_alignment_offset(bdev)); compat_blkdev_ioctl() 689 return compat_put_uint(arg, bdev_discard_zeroes_data(bdev)); compat_blkdev_ioctl() 701 (unsigned long)compat_ptr(arg)); compat_blkdev_ioctl() 704 (unsigned long)compat_ptr(arg)); compat_blkdev_ioctl() 706 return compat_blkpg_ioctl(bdev, mode, cmd, compat_ptr(arg)); compat_blkdev_ioctl() 709 if (!arg) compat_blkdev_ioctl() 712 return compat_put_long(arg, compat_blkdev_ioctl() 715 return compat_put_int(arg, bdev_read_only(bdev) != 0); compat_blkdev_ioctl() 717 return compat_put_int(arg, block_size(bdev)); compat_blkdev_ioctl() 719 return compat_put_int(arg, bdev_logical_block_size(bdev)); compat_blkdev_ioctl() 723 return compat_put_ushort(arg, max_sectors); compat_blkdev_ioctl() 725 return compat_put_ushort(arg, compat_blkdev_ioctl() 732 bdi->ra_pages = (arg * 512) / PAGE_CACHE_SIZE; compat_blkdev_ioctl() 738 return compat_put_ulong(arg, size >> 9); compat_blkdev_ioctl() 741 return compat_put_u64(arg, i_size_read(bdev->bd_inode)); compat_blkdev_ioctl() 747 ret = blk_trace_ioctl(bdev, cmd, compat_ptr(arg)); compat_blkdev_ioctl() 751 ret = disk->fops->compat_ioctl(bdev, mode, cmd, arg); compat_blkdev_ioctl() 753 ret = compat_blkdev_driver_ioctl(bdev, mode, cmd, arg); compat_blkdev_ioctl() 80 compat_hdio_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long arg) compat_hdio_ioctl() argument 120 compat_cdrom_read_audio(struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long arg) compat_cdrom_read_audio() argument 147 compat_cdrom_generic_command(struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long arg) compat_cdrom_generic_command() argument 303 compat_fd_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long arg) compat_fd_ioctl() argument 524 compat_blkdev_driver_ioctl(struct block_device *bdev, fmode_t mode, unsigned cmd, unsigned long arg) compat_blkdev_driver_ioctl() argument
|
/linux-4.1.27/tools/include/asm/ |
H A D | bug.h | 6 #define __WARN_printf(arg...) do { fprintf(stderr, arg); } while (0)
|
/linux-4.1.27/tools/lib/symbol/ |
H A D | kallsyms.h | 20 int kallsyms__parse(const char *filename, void *arg, 21 int (*process_symbol)(void *arg, const char *name,
|
H A D | kallsyms.c | 5 int kallsyms__parse(const char *filename, void *arg, kallsyms__parse() argument 6 int (*process_symbol)(void *arg, const char *name, kallsyms__parse() 47 err = process_symbol(arg, symbol_name, symbol_type, start); kallsyms__parse()
|
/linux-4.1.27/arch/x86/boot/ |
H A D | early_serial_console.c | 44 char arg[32]; parse_earlyprintk() local 48 if (cmdline_find_option("earlyprintk", arg, sizeof arg) > 0) { parse_earlyprintk() 51 if (!strncmp(arg, "serial", 6)) { parse_earlyprintk() 56 if (arg[pos] == ',') parse_earlyprintk() 65 if (pos == 7 && !strncmp(arg + pos, "0x", 2)) { parse_earlyprintk() 66 port = simple_strtoull(arg + pos, &e, 16); parse_earlyprintk() 67 if (port == 0 || arg + pos == e) parse_earlyprintk() 70 pos = e - arg; parse_earlyprintk() 71 } else if (!strncmp(arg + pos, "ttyS", 4)) { parse_earlyprintk() 78 if (arg[pos++] == '1') parse_earlyprintk() 84 if (arg[pos] == ',') parse_earlyprintk() 87 baud = simple_strtoull(arg + pos, &e, 0); parse_earlyprintk() 88 if (baud == 0 || arg + pos == e) parse_earlyprintk()
|
/linux-4.1.27/sound/pci/emu10k1/ |
H A D | emu10k1_synth.c | 37 struct snd_emu10k1_synth_arg *arg; snd_emu10k1_synth_probe() local 40 arg = SNDRV_SEQ_DEVICE_ARGPTR(dev); snd_emu10k1_synth_probe() 41 if (arg == NULL) snd_emu10k1_synth_probe() 44 if (arg->seq_ports <= 0) snd_emu10k1_synth_probe() 46 if (arg->max_voices < 1) snd_emu10k1_synth_probe() 47 arg->max_voices = 1; snd_emu10k1_synth_probe() 48 else if (arg->max_voices > 64) snd_emu10k1_synth_probe() 49 arg->max_voices = 64; snd_emu10k1_synth_probe() 55 hw = arg->hwptr; snd_emu10k1_synth_probe() 57 emux->max_voices = arg->max_voices; snd_emu10k1_synth_probe() 58 emux->num_ports = arg->seq_ports; snd_emu10k1_synth_probe() 62 emux->midi_ports = arg->seq_ports < 2 ? arg->seq_ports : 2; snd_emu10k1_synth_probe() 68 if (snd_emux_register(emux, dev->card, arg->index, "Emu10k1") < 0) { snd_emu10k1_synth_probe()
|
/linux-4.1.27/arch/sparc/prom/ |
H A D | bootstr_32.c | 19 char *cp, *arg; prom_getbootargs() local 31 arg = (*(romvec->pv_v0bootargs))->argv[iter]; prom_getbootargs() 32 if (arg == NULL) prom_getbootargs() 34 while (*arg != 0) { prom_getbootargs() 39 *cp++ = *arg++; prom_getbootargs()
|
/linux-4.1.27/include/xen/interface/ |
H A D | version.h | 15 /* arg == NULL; returns major:minor (16:16). */ 18 /* arg == xen_extraversion_t. */ 25 /* arg == xen_compile_info_t. */ 60 /* arg == NULL; returns host memory page size. */ 63 /* arg == xen_domain_handle_t. */
|
H A D | sched.h | 16 * long sched_op_new(int cmd, void *arg) 18 * @arg == Operation-specific extra argument(s), as described below. 23 * long sched_op(int cmd, unsigned long arg) 25 * @arg == 0 (SCHEDOP_yield and SCHEDOP_block) 31 * @arg == NULL. 40 * @arg == NULL. 46 * @arg == pointer to sched_shutdown structure. 57 * @arg == pointer to sched_poll structure. 71 * @arg == pointer to sched_remote_shutdown structure. 82 * @arg == as for SCHEDOP_shutdown. 88 * @arg == pointer to sched_watchdog structure.
|
H A D | nmi.h | 29 * long nmi_op(unsigned int cmd, void *arg) 36 * arg == pointer to xennmi_callback structure. 47 * arg == NULL.
|
/linux-4.1.27/sound/drivers/opl3/ |
H A D | opl3_oss.c | 24 static int snd_opl3_open_seq_oss(struct snd_seq_oss_arg *arg, void *closure); 25 static int snd_opl3_close_seq_oss(struct snd_seq_oss_arg *arg); 26 static int snd_opl3_ioctl_seq_oss(struct snd_seq_oss_arg *arg, unsigned int cmd, unsigned long ioarg); 27 static int snd_opl3_load_patch_seq_oss(struct snd_seq_oss_arg *arg, int format, const char __user *buf, int offs, int count); 28 static int snd_opl3_reset_seq_oss(struct snd_seq_oss_arg *arg); 121 struct snd_seq_oss_reg *arg; snd_opl3_init_seq_oss() local 130 arg = SNDRV_SEQ_DEVICE_ARGPTR(dev); snd_opl3_init_seq_oss() 131 arg->type = SYNTH_TYPE_FM; snd_opl3_init_seq_oss() 133 arg->subtype = FM_TYPE_ADLIB; snd_opl3_init_seq_oss() 134 arg->nvoices = MAX_OPL2_VOICES; snd_opl3_init_seq_oss() 136 arg->subtype = FM_TYPE_OPL3; snd_opl3_init_seq_oss() 137 arg->nvoices = MAX_OPL3_VOICES; snd_opl3_init_seq_oss() 139 arg->oper = oss_callback; snd_opl3_init_seq_oss() 140 arg->private_data = opl3; snd_opl3_init_seq_oss() 160 static int snd_opl3_open_seq_oss(struct snd_seq_oss_arg *arg, void *closure) snd_opl3_open_seq_oss() argument 165 if (snd_BUG_ON(!arg)) snd_opl3_open_seq_oss() 172 arg->private_data = opl3; snd_opl3_open_seq_oss() 173 arg->addr.client = opl3->oss_chset->client; snd_opl3_open_seq_oss() 174 arg->addr.port = opl3->oss_chset->port; snd_opl3_open_seq_oss() 184 static int snd_opl3_close_seq_oss(struct snd_seq_oss_arg *arg) snd_opl3_close_seq_oss() argument 188 if (snd_BUG_ON(!arg)) snd_opl3_close_seq_oss() 190 opl3 = arg->private_data; snd_opl3_close_seq_oss() 203 static int snd_opl3_load_patch_seq_oss(struct snd_seq_oss_arg *arg, int format, snd_opl3_load_patch_seq_oss() argument 211 if (snd_BUG_ON(!arg)) snd_opl3_load_patch_seq_oss() 213 opl3 = arg->private_data; snd_opl3_load_patch_seq_oss() 247 static int snd_opl3_ioctl_seq_oss(struct snd_seq_oss_arg *arg, unsigned int cmd, snd_opl3_ioctl_seq_oss() argument 252 if (snd_BUG_ON(!arg)) snd_opl3_ioctl_seq_oss() 254 opl3 = arg->private_data; snd_opl3_ioctl_seq_oss() 276 static int snd_opl3_reset_seq_oss(struct snd_seq_oss_arg *arg) snd_opl3_reset_seq_oss() argument 280 if (snd_BUG_ON(!arg)) snd_opl3_reset_seq_oss() 282 opl3 = arg->private_data; snd_opl3_reset_seq_oss()
|
/linux-4.1.27/drivers/net/wireless/cw1200/ |
H A D | wsm.c | 86 void *arg, u16 cmd, long tmo); 95 void *arg, wsm_generic_confirm() 108 int wsm_configuration(struct cw1200_common *priv, struct wsm_configuration *arg) wsm_configuration() argument 115 WSM_PUT32(buf, arg->dot11MaxTransmitMsduLifeTime); wsm_configuration() 116 WSM_PUT32(buf, arg->dot11MaxReceiveLifeTime); wsm_configuration() 117 WSM_PUT32(buf, arg->dot11RtsThreshold); wsm_configuration() 120 WSM_PUT16(buf, arg->dpdData_size + 12); wsm_configuration() 122 WSM_PUT(buf, arg->dot11StationId, ETH_ALEN); wsm_configuration() 124 WSM_PUT(buf, arg->dpdData, arg->dpdData_size); wsm_configuration() 126 ret = wsm_cmd_send(priv, buf, arg, wsm_configuration() 138 struct wsm_configuration *arg, wsm_configuration_confirm() 148 WSM_GET(buf, arg->dot11StationId, ETH_ALEN); wsm_configuration_confirm() 149 arg->dot11FrequencyBandsSupported = WSM_GET8(buf); wsm_configuration_confirm() 151 arg->supportedRateMask = WSM_GET32(buf); wsm_configuration_confirm() 153 arg->txPowerRange[i].min_power_level = WSM_GET32(buf); wsm_configuration_confirm() 154 arg->txPowerRange[i].max_power_level = WSM_GET32(buf); wsm_configuration_confirm() 155 arg->txPowerRange[i].stepping = WSM_GET32(buf); wsm_configuration_confirm() 166 int wsm_reset(struct cw1200_common *priv, const struct wsm_reset *arg) wsm_reset() argument 170 u16 cmd = WSM_RESET_REQ_ID | WSM_TX_LINK_ID(arg->link_id); wsm_reset() 174 WSM_PUT32(buf, arg->reset_statistics ? 0 : 1); wsm_reset() 218 struct wsm_mib *arg, wsm_read_mib_confirm() 225 if (WARN_ON(WSM_GET16(buf) != arg->mib_id)) wsm_read_mib_confirm() 229 if (size > arg->buf_size) wsm_read_mib_confirm() 230 size = arg->buf_size; wsm_read_mib_confirm() 232 WSM_GET(buf, arg->buf, size); wsm_read_mib_confirm() 233 arg->buf_size = size; wsm_read_mib_confirm() 271 struct wsm_mib *arg, wsm_write_mib_confirm() 276 ret = wsm_generic_confirm(priv, arg, buf); wsm_write_mib_confirm() 280 if (arg->mib_id == WSM_MIB_ID_OPERATIONAL_POWER_MODE) { wsm_write_mib_confirm() 282 const char *p = arg->buf; wsm_write_mib_confirm() 290 int wsm_scan(struct cw1200_common *priv, const struct wsm_scan *arg) wsm_scan() argument 296 if (arg->num_channels > 48) wsm_scan() 299 if (arg->num_ssids > 2) wsm_scan() 302 if (arg->band > 1) wsm_scan() 307 WSM_PUT8(buf, arg->band); wsm_scan() 308 WSM_PUT8(buf, arg->type); wsm_scan() 309 WSM_PUT8(buf, arg->flags); wsm_scan() 310 WSM_PUT8(buf, arg->max_tx_rate); wsm_scan() 311 WSM_PUT32(buf, arg->auto_scan_interval); wsm_scan() 312 WSM_PUT8(buf, arg->num_probes); wsm_scan() 313 WSM_PUT8(buf, arg->num_channels); wsm_scan() 314 WSM_PUT8(buf, arg->num_ssids); wsm_scan() 315 WSM_PUT8(buf, arg->probe_delay); wsm_scan() 317 for (i = 0; i < arg->num_channels; ++i) { wsm_scan() 318 WSM_PUT16(buf, arg->ch[i].number); wsm_scan() 320 WSM_PUT32(buf, arg->ch[i].min_chan_time); wsm_scan() 321 WSM_PUT32(buf, arg->ch[i].max_chan_time); wsm_scan() 325 for (i = 0; i < arg->num_ssids; ++i) { wsm_scan() 326 WSM_PUT32(buf, arg->ssids[i].length); wsm_scan() 327 WSM_PUT(buf, &arg->ssids[i].ssid[0], wsm_scan() 328 sizeof(arg->ssids[i].ssid)); wsm_scan() 413 struct wsm_join_cnf *arg, wsm_join_confirm() 416 arg->status = WSM_GET32(buf); wsm_join_confirm() 417 if (WARN_ON(arg->status) != WSM_STATUS_SUCCESS) wsm_join_confirm() 420 arg->min_power_level = WSM_GET32(buf); wsm_join_confirm() 421 arg->max_power_level = WSM_GET32(buf); wsm_join_confirm() 430 int wsm_join(struct cw1200_common *priv, struct wsm_join *arg) wsm_join() argument 437 WSM_PUT8(buf, arg->mode); wsm_join() 438 WSM_PUT8(buf, arg->band); wsm_join() 439 WSM_PUT16(buf, arg->channel_number); wsm_join() 440 WSM_PUT(buf, &arg->bssid[0], sizeof(arg->bssid)); wsm_join() 441 WSM_PUT16(buf, arg->atim_window); wsm_join() 442 WSM_PUT8(buf, arg->preamble_type); wsm_join() 443 WSM_PUT8(buf, arg->probe_for_join); wsm_join() 444 WSM_PUT8(buf, arg->dtim_period); wsm_join() 445 WSM_PUT8(buf, arg->flags); wsm_join() 446 WSM_PUT32(buf, arg->ssid_len); wsm_join() 447 WSM_PUT(buf, &arg->ssid[0], sizeof(arg->ssid)); wsm_join() 448 WSM_PUT32(buf, arg->beacon_interval); wsm_join() 449 WSM_PUT32(buf, arg->basic_rate_set); wsm_join() 469 const struct wsm_set_bss_params *arg) wsm_set_bss_params() 476 WSM_PUT8(buf, (arg->reset_beacon_loss ? 0x1 : 0)); wsm_set_bss_params() 477 WSM_PUT8(buf, arg->beacon_lost_count); wsm_set_bss_params() 478 WSM_PUT16(buf, arg->aid); wsm_set_bss_params() 479 WSM_PUT32(buf, arg->operational_rate_set); wsm_set_bss_params() 494 int wsm_add_key(struct cw1200_common *priv, const struct wsm_add_key *arg) wsm_add_key() argument 501 WSM_PUT(buf, arg, sizeof(*arg)); wsm_add_key() 516 int wsm_remove_key(struct cw1200_common *priv, const struct wsm_remove_key *arg) wsm_remove_key() argument 523 WSM_PUT8(buf, arg->index); wsm_remove_key() 541 const struct wsm_set_tx_queue_params *arg, u8 id) wsm_set_tx_queue_params() 551 WSM_PUT8(buf, arg->ackPolicy); wsm_set_tx_queue_params() 553 WSM_PUT32(buf, arg->maxTransmitLifetime); wsm_set_tx_queue_params() 554 WSM_PUT16(buf, arg->allowedMediumTime); wsm_set_tx_queue_params() 570 const struct wsm_edca_params *arg) wsm_set_edca_params() 579 WSM_PUT16(buf, arg->params[3].cwmin); wsm_set_edca_params() 580 WSM_PUT16(buf, arg->params[2].cwmin); wsm_set_edca_params() 581 WSM_PUT16(buf, arg->params[1].cwmin); wsm_set_edca_params() 582 WSM_PUT16(buf, arg->params[0].cwmin); wsm_set_edca_params() 584 WSM_PUT16(buf, arg->params[3].cwmax); wsm_set_edca_params() 585 WSM_PUT16(buf, arg->params[2].cwmax); wsm_set_edca_params() 586 WSM_PUT16(buf, arg->params[1].cwmax); wsm_set_edca_params() 587 WSM_PUT16(buf, arg->params[0].cwmax); wsm_set_edca_params() 589 WSM_PUT8(buf, arg->params[3].aifns); wsm_set_edca_params() 590 WSM_PUT8(buf, arg->params[2].aifns); wsm_set_edca_params() 591 WSM_PUT8(buf, arg->params[1].aifns); wsm_set_edca_params() 592 WSM_PUT8(buf, arg->params[0].aifns); wsm_set_edca_params() 594 WSM_PUT16(buf, arg->params[3].txop_limit); wsm_set_edca_params() 595 WSM_PUT16(buf, arg->params[2].txop_limit); wsm_set_edca_params() 596 WSM_PUT16(buf, arg->params[1].txop_limit); wsm_set_edca_params() 597 WSM_PUT16(buf, arg->params[0].txop_limit); wsm_set_edca_params() 599 WSM_PUT32(buf, arg->params[3].max_rx_lifetime); wsm_set_edca_params() 600 WSM_PUT32(buf, arg->params[2].max_rx_lifetime); wsm_set_edca_params() 601 WSM_PUT32(buf, arg->params[1].max_rx_lifetime); wsm_set_edca_params() 602 WSM_PUT32(buf, arg->params[0].max_rx_lifetime); wsm_set_edca_params() 617 const struct wsm_switch_channel *arg) wsm_switch_channel() 624 WSM_PUT8(buf, arg->mode); wsm_switch_channel() 625 WSM_PUT8(buf, arg->switch_count); wsm_switch_channel() 626 WSM_PUT16(buf, arg->channel_number); wsm_switch_channel() 645 int wsm_set_pm(struct cw1200_common *priv, const struct wsm_set_pm *arg) wsm_set_pm() argument 653 WSM_PUT8(buf, arg->mode); wsm_set_pm() 654 WSM_PUT8(buf, arg->fast_psm_idle_period); wsm_set_pm() 655 WSM_PUT8(buf, arg->ap_psm_change_period); wsm_set_pm() 656 WSM_PUT8(buf, arg->min_auto_pspoll_period); wsm_set_pm() 671 int wsm_start(struct cw1200_common *priv, const struct wsm_start *arg) wsm_start() argument 678 WSM_PUT8(buf, arg->mode); wsm_start() 679 WSM_PUT8(buf, arg->band); wsm_start() 680 WSM_PUT16(buf, arg->channel_number); wsm_start() 681 WSM_PUT32(buf, arg->ct_window); wsm_start() 682 WSM_PUT32(buf, arg->beacon_interval); wsm_start() 683 WSM_PUT8(buf, arg->dtim_period); wsm_start() 684 WSM_PUT8(buf, arg->preamble); wsm_start() 685 WSM_PUT8(buf, arg->probe_delay); wsm_start() 686 WSM_PUT8(buf, arg->ssid_len); wsm_start() 687 WSM_PUT(buf, arg->ssid, sizeof(arg->ssid)); wsm_start() 688 WSM_PUT32(buf, arg->basic_rate_set); wsm_start() 705 const struct wsm_beacon_transmit *arg) wsm_beacon_transmit() 712 WSM_PUT32(buf, arg->enable_beaconing ? 1 : 0); wsm_beacon_transmit() 753 int wsm_map_link(struct cw1200_common *priv, const struct wsm_map_link *arg) wsm_map_link() argument 757 u16 cmd = 0x001C | WSM_TX_LINK_ID(arg->link_id); wsm_map_link() 761 WSM_PUT(buf, &arg->mac_addr[0], sizeof(arg->mac_addr)); wsm_map_link() 777 const struct wsm_update_ie *arg) wsm_update_ie() 784 WSM_PUT16(buf, arg->what); wsm_update_ie() 785 WSM_PUT16(buf, arg->count); wsm_update_ie() 786 WSM_PUT(buf, arg->ies, arg->length); wsm_update_ie() 982 static int wsm_scan_started(struct cw1200_common *priv, void *arg, wsm_scan_started() argument 1000 struct wsm_scan_complete arg; wsm_scan_complete_indication() local 1001 arg.status = WSM_GET32(buf); wsm_scan_complete_indication() 1002 arg.psm = WSM_GET8(buf); wsm_scan_complete_indication() 1003 arg.num_channels = WSM_GET8(buf); wsm_scan_complete_indication() 1004 cw1200_scan_complete_cb(priv, &arg); wsm_scan_complete_indication() 1015 struct wsm_join_complete arg; wsm_join_complete_indication() local 1016 arg.status = WSM_GET32(buf); wsm_join_complete_indication() 1017 pr_debug("[WSM] Join complete indication, status: %d\n", arg.status); wsm_join_complete_indication() 1018 cw1200_join_complete_cb(priv, &arg); wsm_join_complete_indication() 1059 struct wsm_suspend_resume arg; wsm_suspend_resume_indication() local 1062 arg.link_id = link_id; wsm_suspend_resume_indication() 1063 arg.stop = !(flags & 1); wsm_suspend_resume_indication() 1064 arg.multicast = !!(flags & 8); wsm_suspend_resume_indication() 1065 arg.queue = (flags >> 1) & 3; wsm_suspend_resume_indication() 1067 cw1200_suspend_resume(priv, &arg); wsm_suspend_resume_indication() 1081 void *arg, u16 cmd, long tmo) wsm_cmd_send() 1124 priv->wsm_cmd.arg = arg; wsm_cmd_send() 1331 wsm_arg = priv->wsm_cmd.arg; wsm_handle_rx() 94 wsm_generic_confirm(struct cw1200_common *priv, void *arg, struct wsm_buf *buf) wsm_generic_confirm() argument 137 wsm_configuration_confirm(struct cw1200_common *priv, struct wsm_configuration *arg, struct wsm_buf *buf) wsm_configuration_confirm() argument 217 wsm_read_mib_confirm(struct cw1200_common *priv, struct wsm_mib *arg, struct wsm_buf *buf) wsm_read_mib_confirm() argument 270 wsm_write_mib_confirm(struct cw1200_common *priv, struct wsm_mib *arg, struct wsm_buf *buf) wsm_write_mib_confirm() argument 412 wsm_join_confirm(struct cw1200_common *priv, struct wsm_join_cnf *arg, struct wsm_buf *buf) wsm_join_confirm() argument 468 wsm_set_bss_params(struct cw1200_common *priv, const struct wsm_set_bss_params *arg) wsm_set_bss_params() argument 540 wsm_set_tx_queue_params(struct cw1200_common *priv, const struct wsm_set_tx_queue_params *arg, u8 id) wsm_set_tx_queue_params() argument 569 wsm_set_edca_params(struct cw1200_common *priv, const struct wsm_edca_params *arg) wsm_set_edca_params() argument 616 wsm_switch_channel(struct cw1200_common *priv, const struct wsm_switch_channel *arg) wsm_switch_channel() argument 704 wsm_beacon_transmit(struct cw1200_common *priv, const struct wsm_beacon_transmit *arg) wsm_beacon_transmit() argument 776 wsm_update_ie(struct cw1200_common *priv, const struct wsm_update_ie *arg) wsm_update_ie() argument 1079 wsm_cmd_send(struct cw1200_common *priv, struct wsm_buf *buf, void *arg, u16 cmd, long tmo) wsm_cmd_send() argument
|
H A D | wsm.h | 655 struct wsm_configuration *arg); 665 int wsm_reset(struct cw1200_common *priv, const struct wsm_reset *arg); 740 int wsm_scan(struct cw1200_common *priv, const struct wsm_scan *arg); 792 struct wsm_tx_confirm *arg); 868 typedef void (*wsm_rx_cb) (struct cw1200_common *priv, struct wsm_rx *arg, 892 struct wsm_event *arg); 955 int wsm_join(struct cw1200_common *priv, struct wsm_join *arg); 980 int wsm_set_pm(struct cw1200_common *priv, const struct wsm_set_pm *arg); 1007 const struct wsm_set_bss_params *arg); 1070 int wsm_add_key(struct cw1200_common *priv, const struct wsm_add_key *arg); 1080 const struct wsm_remove_key *arg); 1112 const struct wsm_set_tx_queue_params *arg, u8 id); 1156 const struct wsm_edca_params *arg); 1159 const struct wsm_edca_params *arg); 1184 const struct wsm_switch_channel *arg); 1229 int wsm_start(struct cw1200_common *priv, const struct wsm_start *arg); 1240 const struct wsm_beacon_transmit *arg); 1263 struct wsm_suspend_resume *arg); 1275 const struct wsm_update_ie *arg); 1284 int wsm_map_link(struct cw1200_common *priv, const struct wsm_map_link *arg); 1324 struct wsm_rcpi_rssi_threshold *arg) wsm_set_rcpi_rssi_threshold() 1326 return wsm_write_mib(priv, WSM_MIB_ID_RCPI_RSSI_THRESHOLD, arg, wsm_set_rcpi_rssi_threshold() 1327 sizeof(*arg)); wsm_set_rcpi_rssi_threshold() 1356 struct wsm_mib_counters_table *arg) wsm_get_counters_table() 1359 arg, sizeof(*arg)); wsm_get_counters_table() 1375 const struct wsm_rx_filter *arg) wsm_set_rx_filter() 1378 if (arg->promiscuous) wsm_set_rx_filter() 1380 if (arg->bssid) wsm_set_rx_filter() 1382 if (arg->fcs) wsm_set_rx_filter() 1384 if (arg->probeResponder) wsm_set_rx_filter() 1426 struct wsm_beacon_filter_control *arg) wsm_beacon_filter_control() 1432 val.enabled = __cpu_to_le32(arg->enabled); wsm_beacon_filter_control() 1433 val.bcn_count = __cpu_to_le32(arg->bcn_count); wsm_beacon_filter_control() 1451 const struct wsm_operational_mode *arg) wsm_set_operational_mode() 1453 u8 val = arg->power_mode; wsm_set_operational_mode() 1454 if (arg->disable_more_flag_usage) wsm_set_operational_mode() 1456 if (arg->perform_ant_diversity) wsm_set_operational_mode() 1469 struct wsm_template_frame *arg) wsm_set_template_frame() 1472 u8 *p = skb_push(arg->skb, 4); wsm_set_template_frame() 1473 p[0] = arg->frame_type; wsm_set_template_frame() 1474 p[1] = arg->rate; wsm_set_template_frame() 1475 ((__le16 *)p)[1] = __cpu_to_le16(arg->skb->len - 4); wsm_set_template_frame() 1476 ret = wsm_write_mib(priv, WSM_MIB_ID_TEMPLATE_FRAME, p, arg->skb->len); wsm_set_template_frame() 1477 skb_pull(arg->skb, 4); wsm_set_template_frame() 1489 struct wsm_protected_mgmt_policy *arg) wsm_set_protected_mgmt_policy() 1493 if (arg->protectedMgmtEnable) wsm_set_protected_mgmt_policy() 1495 if (arg->unprotectedMgmtFramesAllowed) wsm_set_protected_mgmt_policy() 1497 if (arg->encryptionForAuthFrame) wsm_set_protected_mgmt_policy() 1532 struct wsm_mib_association_mode *arg) wsm_set_association_mode() 1534 return wsm_write_mib(priv, WSM_MIB_ID_SET_ASSOCIATION_MODE, arg, wsm_set_association_mode() 1535 sizeof(*arg)); wsm_set_association_mode() 1563 struct wsm_set_tx_rate_retry_policy *arg) wsm_set_tx_rate_retry_policy() 1565 size_t size = 4 + arg->num * sizeof(struct wsm_tx_rate_retry_policy); wsm_set_tx_rate_retry_policy() 1566 return wsm_write_mib(priv, WSM_MIB_ID_SET_TX_RATE_RETRY_POLICY, arg, wsm_set_tx_rate_retry_policy() 1583 struct wsm_ether_type_filter_hdr *arg) wsm_set_ether_type_filter() 1586 arg->num * sizeof(struct wsm_ether_type_filter); wsm_set_ether_type_filter() 1588 arg, size); wsm_set_ether_type_filter() 1604 struct wsm_udp_port_filter_hdr *arg) wsm_set_udp_port_filter() 1607 arg->num * sizeof(struct wsm_udp_port_filter); wsm_set_udp_port_filter() 1609 arg, size); wsm_set_udp_port_filter() 1686 struct wsm_keep_alive_period arg = { wsm_keep_alive_period() local 1690 &arg, sizeof(arg)); wsm_keep_alive_period() 1702 struct wsm_set_bssid_filtering arg = { wsm_set_bssid_filtering() local 1706 &arg, sizeof(arg)); wsm_set_bssid_filtering() 1766 __le32 arg = enabled ? __cpu_to_le32(1) : 0; wsm_use_multi_tx_conf() local 1769 &arg, sizeof(arg)); wsm_use_multi_tx_conf() 1782 struct wsm_uapsd_info *arg) wsm_set_uapsd_info() 1785 arg, sizeof(*arg)); wsm_set_uapsd_info() 1796 struct wsm_override_internal_txrate *arg) wsm_set_override_internal_txrate() 1799 arg, sizeof(*arg)); wsm_set_override_internal_txrate() 1837 void *arg; member in struct:wsm_cmd 1323 wsm_set_rcpi_rssi_threshold(struct cw1200_common *priv, struct wsm_rcpi_rssi_threshold *arg) wsm_set_rcpi_rssi_threshold() argument 1355 wsm_get_counters_table(struct cw1200_common *priv, struct wsm_mib_counters_table *arg) wsm_get_counters_table() argument 1374 wsm_set_rx_filter(struct cw1200_common *priv, const struct wsm_rx_filter *arg) wsm_set_rx_filter() argument 1425 wsm_beacon_filter_control(struct cw1200_common *priv, struct wsm_beacon_filter_control *arg) wsm_beacon_filter_control() argument 1450 wsm_set_operational_mode(struct cw1200_common *priv, const struct wsm_operational_mode *arg) wsm_set_operational_mode() argument 1468 wsm_set_template_frame(struct cw1200_common *priv, struct wsm_template_frame *arg) wsm_set_template_frame() argument 1488 wsm_set_protected_mgmt_policy(struct cw1200_common *priv, struct wsm_protected_mgmt_policy *arg) wsm_set_protected_mgmt_policy() argument 1531 wsm_set_association_mode(struct cw1200_common *priv, struct wsm_mib_association_mode *arg) wsm_set_association_mode() argument 1562 wsm_set_tx_rate_retry_policy(struct cw1200_common *priv, struct wsm_set_tx_rate_retry_policy *arg) wsm_set_tx_rate_retry_policy() argument 1582 wsm_set_ether_type_filter(struct cw1200_common *priv, struct wsm_ether_type_filter_hdr *arg) wsm_set_ether_type_filter() argument 1603 wsm_set_udp_port_filter(struct cw1200_common *priv, struct wsm_udp_port_filter_hdr *arg) wsm_set_udp_port_filter() argument 1781 wsm_set_uapsd_info(struct cw1200_common *priv, struct wsm_uapsd_info *arg) wsm_set_uapsd_info() argument 1795 wsm_set_override_internal_txrate(struct cw1200_common *priv, struct wsm_override_internal_txrate *arg) wsm_set_override_internal_txrate() argument
|
/linux-4.1.27/drivers/media/platform/s5p-mfc/ |
H A D | s5p_mfc_cmd_v5.c | 35 mfc_write(dev, args->arg[0], S5P_FIMV_HOST2RISC_ARG1); s5p_mfc_cmd_host2risc_v5() 36 mfc_write(dev, args->arg[1], S5P_FIMV_HOST2RISC_ARG2); s5p_mfc_cmd_host2risc_v5() 37 mfc_write(dev, args->arg[2], S5P_FIMV_HOST2RISC_ARG3); s5p_mfc_cmd_host2risc_v5() 38 mfc_write(dev, args->arg[3], S5P_FIMV_HOST2RISC_ARG4); s5p_mfc_cmd_host2risc_v5() 50 h2r_args.arg[0] = dev->fw_size; s5p_mfc_sys_init_cmd_v5() 87 h2r_args.arg[0] = S5P_FIMV_CODEC_H264_DEC; s5p_mfc_open_inst_cmd_v5() 90 h2r_args.arg[0] = S5P_FIMV_CODEC_VC1_DEC; s5p_mfc_open_inst_cmd_v5() 93 h2r_args.arg[0] = S5P_FIMV_CODEC_MPEG4_DEC; s5p_mfc_open_inst_cmd_v5() 96 h2r_args.arg[0] = S5P_FIMV_CODEC_MPEG2_DEC; s5p_mfc_open_inst_cmd_v5() 99 h2r_args.arg[0] = S5P_FIMV_CODEC_H263_DEC; s5p_mfc_open_inst_cmd_v5() 102 h2r_args.arg[0] = S5P_FIMV_CODEC_VC1RCV_DEC; s5p_mfc_open_inst_cmd_v5() 105 h2r_args.arg[0] = S5P_FIMV_CODEC_H264_ENC; s5p_mfc_open_inst_cmd_v5() 108 h2r_args.arg[0] = S5P_FIMV_CODEC_MPEG4_ENC; s5p_mfc_open_inst_cmd_v5() 111 h2r_args.arg[0] = S5P_FIMV_CODEC_H263_ENC; s5p_mfc_open_inst_cmd_v5() 114 h2r_args.arg[0] = S5P_FIMV_CODEC_NONE; s5p_mfc_open_inst_cmd_v5() 116 h2r_args.arg[1] = 0; /* no crc & no pixelcache */ s5p_mfc_open_inst_cmd_v5() 117 h2r_args.arg[2] = ctx->ctx.ofs; s5p_mfc_open_inst_cmd_v5() 118 h2r_args.arg[3] = ctx->ctx.size; s5p_mfc_open_inst_cmd_v5() 143 h2r_args.arg[0] = ctx->inst_no; s5p_mfc_close_inst_cmd_v5()
|
/linux-4.1.27/arch/cris/arch-v32/drivers/mach-fs/ |
H A D | gpio.c | 75 unsigned long arg); 77 static long gpio_ioctl(struct file *file, unsigned int cmd, unsigned long arg); 520 inline unsigned long setget_input(struct gpio_private *priv, unsigned long arg) setget_input() argument 530 dir_shadow &= ~(arg & changeable_dir[priv->minor]); setget_input() 546 inline unsigned long setget_output(struct gpio_private *priv, unsigned long arg) setget_output() argument 553 dir_shadow |= (arg & changeable_dir[priv->minor]); setget_output() 559 static int gpio_leds_ioctl(unsigned int cmd, unsigned long arg); 562 gpio_ioctl_unlocked(struct file *file, unsigned int cmd, unsigned long arg) gpio_ioctl_unlocked() argument 573 return virtual_gpio_ioctl(file, cmd, arg); gpio_ioctl_unlocked() 583 /* Set changeable bits with a 1 in arg. */ gpio_ioctl_unlocked() 585 shadow |= (arg & changeable_bits[priv->minor]); gpio_ioctl_unlocked() 591 /* Clear changeable bits with a 1 in arg. */ gpio_ioctl_unlocked() 593 shadow &= ~(arg & changeable_bits[priv->minor]); gpio_ioctl_unlocked() 598 /* Set alarm when bits with 1 in arg go high. */ gpio_ioctl_unlocked() 599 priv->highalarm |= arg; gpio_ioctl_unlocked() 603 gpio_pa_high_alarms |= arg; gpio_ioctl_unlocked() 607 /* Set alarm when bits with 1 in arg go low. */ gpio_ioctl_unlocked() 608 priv->lowalarm |= arg; gpio_ioctl_unlocked() 612 gpio_pa_low_alarms |= arg; gpio_ioctl_unlocked() 616 /* Clear alarm for bits with 1 in arg. */ gpio_ioctl_unlocked() 617 priv->highalarm &= ~arg; gpio_ioctl_unlocked() 618 priv->lowalarm &= ~arg; gpio_ioctl_unlocked() 621 if (gpio_pa_high_alarms & arg || gpio_ioctl_unlocked() 622 gpio_pa_low_alarms & arg) gpio_ioctl_unlocked() 635 return setget_input(priv, arg); gpio_ioctl_unlocked() 641 return setget_output(priv, arg); gpio_ioctl_unlocked() 648 priv->clk_mask = arg & 0xFF; gpio_ioctl_unlocked() 649 priv->data_mask = (arg >> 8) & 0xFF; gpio_ioctl_unlocked() 650 priv->write_msb = (arg >> 16) & 0x01; gpio_ioctl_unlocked() 665 /* *arg is result of reading the input pins */ gpio_ioctl_unlocked() 667 if (copy_to_user((unsigned long *)arg, &val, sizeof(val))) gpio_ioctl_unlocked() 672 /* *arg is result of reading the output shadow */ gpio_ioctl_unlocked() 674 if (copy_to_user((unsigned long *)arg, &val, sizeof(val))) gpio_ioctl_unlocked() 678 /* bits set in *arg is set to input, gpio_ioctl_unlocked() 679 * *arg updated with current input pins. gpio_ioctl_unlocked() 681 if (copy_from_user(&val, (unsigned long *)arg, sizeof(val))) gpio_ioctl_unlocked() 684 if (copy_to_user((unsigned long *)arg, &val, sizeof(val))) gpio_ioctl_unlocked() 688 /* bits set in *arg is set to output, gpio_ioctl_unlocked() 689 * *arg updated with current output pins. gpio_ioctl_unlocked() 691 if (copy_from_user(&val, (unsigned long *)arg, sizeof(val))) gpio_ioctl_unlocked() 694 if (copy_to_user((unsigned long *)arg, &val, sizeof(val))) gpio_ioctl_unlocked() 699 return gpio_leds_ioctl(cmd, arg); gpio_ioctl_unlocked() 707 static long gpio_ioctl(struct file *file, unsigned int cmd, unsigned long arg) gpio_ioctl() argument 712 ret = gpio_ioctl_unlocked(file, cmd, arg); gpio_ioctl() 720 virtual_gpio_ioctl(struct file *file, unsigned int cmd, unsigned long arg) virtual_gpio_ioctl() argument 730 /* Set changeable bits with a 1 in arg. */ virtual_gpio_ioctl() 733 shadow |= (arg & changeable_bits[priv->minor]); virtual_gpio_ioctl() 739 /* Clear changeable bits with a 1 in arg. */ virtual_gpio_ioctl() 742 shadow &= ~(arg & changeable_bits[priv->minor]); virtual_gpio_ioctl() 747 /* Set alarm when bits with 1 in arg go high. */ virtual_gpio_ioctl() 748 priv->highalarm |= arg; virtual_gpio_ioctl() 754 /* Set alarm when bits with 1 in arg go low. */ virtual_gpio_ioctl() 755 priv->lowalarm |= arg; virtual_gpio_ioctl() 761 /* Clear alarm for bits with 1 in arg. */ virtual_gpio_ioctl() 762 priv->highalarm &= ~arg; virtual_gpio_ioctl() 763 priv->lowalarm &= ~arg; virtual_gpio_ioctl() 772 priv->clk_mask = arg & 0xFF; virtual_gpio_ioctl() 773 priv->data_mask = (arg >> 8) & 0xFF; virtual_gpio_ioctl() 774 priv->write_msb = (arg >> 16) & 0x01; virtual_gpio_ioctl() 789 /* *arg is result of reading the input pins */ virtual_gpio_ioctl() 792 if (copy_to_user((unsigned long *)arg, &val, sizeof(val))) virtual_gpio_ioctl() 797 /* *arg is result of reading the output shadow */ virtual_gpio_ioctl() 800 if (copy_to_user((unsigned long *)arg, &val, sizeof(val))) virtual_gpio_ioctl() 805 /* bits set in *arg is set to input, virtual_gpio_ioctl() 806 * *arg updated with current input pins. virtual_gpio_ioctl() 809 if (copy_from_user(&val, (unsigned long *)arg, sizeof(val))) virtual_gpio_ioctl() 812 if (copy_to_user((unsigned long *)arg, &val, sizeof(val))) virtual_gpio_ioctl() 829 /* bits set in *arg is set to output, virtual_gpio_ioctl() 830 * *arg updated with current output pins. virtual_gpio_ioctl() 832 if (copy_from_user(&val, (unsigned long *)arg, sizeof(val))) virtual_gpio_ioctl() 835 if (copy_to_user((unsigned long *)arg, &val, sizeof(val))) virtual_gpio_ioctl() 846 gpio_leds_ioctl(unsigned int cmd, unsigned long arg) gpio_leds_ioctl() argument 853 green = ((unsigned char) arg) & 1; gpio_leds_ioctl() 854 red = (((unsigned char) arg) >> 1) & 1; gpio_leds_ioctl()
|
/linux-4.1.27/drivers/media/tuners/ |
H A D | tuner-i2c.h | 85 #define tuner_printk(kernlvl, i2cprops, fmt, arg...) do { \ 89 i2cprops.addr, ##arg); \ 95 #define __tuner_warn(i2cprops, fmt, arg...) do { \ 96 tuner_printk(KERN_WARNING, i2cprops, fmt, ##arg); \ 99 #define __tuner_info(i2cprops, fmt, arg...) do { \ 100 tuner_printk(KERN_INFO, i2cprops, fmt, ##arg); \ 103 #define __tuner_err(i2cprops, fmt, arg...) do { \ 104 tuner_printk(KERN_ERR, i2cprops, fmt, ##arg); \ 107 #define __tuner_dbg(i2cprops, fmt, arg...) do { \ 109 tuner_printk(KERN_DEBUG, i2cprops, fmt, ##arg); \ 112 #define tuner_warn(fmt, arg...) __tuner_warn(priv->i2c_props, fmt, ##arg) 113 #define tuner_info(fmt, arg...) __tuner_info(priv->i2c_props, fmt, ##arg) 114 #define tuner_err(fmt, arg...) __tuner_err(priv->i2c_props, fmt, ##arg) 115 #define tuner_dbg(fmt, arg...) __tuner_dbg(priv->i2c_props, fmt, ##arg)
|
H A D | fc0013-priv.h | 28 #define err(f, arg...) printk(KERN_ERR LOG_PREFIX": " f "\n" , ## arg) 30 #define info(f, arg...) printk(KERN_INFO LOG_PREFIX": " f "\n" , ## arg) 32 #define warn(f, arg...) printk(KERN_WARNING LOG_PREFIX": " f "\n" , ## arg)
|
H A D | tda18271-priv.h | 145 #define tda_printk(st, lvl, fmt, arg...) \ 146 _tda_printk(st, lvl, __func__, fmt, ##arg) 148 #define tda_dprintk(st, lvl, fmt, arg...) \ 151 tda_printk(st, KERN_DEBUG, fmt, ##arg); \ 154 #define tda_info(fmt, arg...) pr_info(fmt, ##arg) 155 #define tda_warn(fmt, arg...) tda_printk(priv, KERN_WARNING, fmt, ##arg) 156 #define tda_err(fmt, arg...) tda_printk(priv, KERN_ERR, fmt, ##arg) 157 #define tda_dbg(fmt, arg...) tda_dprintk(priv, DBG_INFO, fmt, ##arg) 158 #define tda_map(fmt, arg...) tda_dprintk(priv, DBG_MAP, fmt, ##arg) 159 #define tda_reg(fmt, arg...) tda_dprintk(priv, DBG_REG, fmt, ##arg) 160 #define tda_cal(fmt, arg...) tda_dprintk(priv, DBG_CAL, fmt, ##arg)
|
/linux-4.1.27/drivers/media/usb/dvb-usb-v2/ |
H A D | mxl111sf.h | 109 #define mxl_printk(kern, fmt, arg...) \ 110 printk(kern "%s: " fmt "\n", __func__, ##arg) 112 #define mxl_info(fmt, arg...) \ 113 mxl_printk(KERN_INFO, fmt, ##arg) 116 #define mxl_debug(fmt, arg...) \ 118 mxl_printk(KERN_DEBUG, fmt, ##arg) 122 #define mxl_debug_adv(fmt, arg...) \ 124 mxl_printk(KERN_DEBUG, fmt, ##arg) 126 #define mxl_i2c(fmt, arg...) \ 128 mxl_printk(KERN_DEBUG, fmt, ##arg) 130 #define mxl_i2c_adv(fmt, arg...) \ 133 mxl_printk(KERN_DEBUG, fmt, ##arg)
|
/linux-4.1.27/fs/jfs/ |
H A D | jfs_debug.h | 68 #define jfs_info(fmt, arg...) do { \ 70 printk(KERN_INFO fmt "\n", ## arg); \ 74 #define jfs_debug(fmt, arg...) do { \ 76 printk(KERN_DEBUG fmt "\n", ## arg); \ 80 #define jfs_warn(fmt, arg...) do { \ 82 printk(KERN_WARNING fmt "\n", ## arg); \ 86 #define jfs_err(fmt, arg...) do { \ 88 printk(KERN_ERR fmt "\n", ## arg); \ 97 #define jfs_info(fmt, arg...) do {} while (0) 98 #define jfs_debug(fmt, arg...) do {} while (0) 99 #define jfs_warn(fmt, arg...) do {} while (0) 100 #define jfs_err(fmt, arg...) do {} while (0)
|
H A D | ioctl.c | 59 long jfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) jfs_ioctl() argument 70 return put_user(flags, (int __user *) arg); jfs_ioctl() 83 if (get_user(flags, (int __user *) arg)) { jfs_ioctl() 146 if (copy_from_user(&range, (struct fstrim_range __user *)arg, jfs_ioctl() 157 if (copy_to_user((struct fstrim_range __user *)arg, &range, jfs_ioctl() 170 long jfs_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) jfs_compat_ioctl() argument 187 return jfs_ioctl(filp, cmd, arg); jfs_compat_ioctl()
|
/linux-4.1.27/net/wireless/ |
H A D | genregdb.awk | 92 for (arg in flagarray) { 93 if (flagarray[arg] == "NO-OFDM") { 95 } else if (flagarray[arg] == "NO-CCK") { 97 } else if (flagarray[arg] == "NO-INDOOR") { 99 } else if (flagarray[arg] == "NO-OUTDOOR") { 101 } else if (flagarray[arg] == "DFS") { 103 } else if (flagarray[arg] == "PTP-ONLY") { 105 } else if (flagarray[arg] == "PTMP-ONLY") { 107 } else if (flagarray[arg] == "PASSIVE-SCAN") { 109 } else if (flagarray[arg] == "NO-IBSS") { 111 } else if (flagarray[arg] == "NO-IR") { 113 } else if (flagarray[arg] == "AUTO-BW") {
|
/linux-4.1.27/sound/oss/ |
H A D | pas2_pcm.c | 47 static int pcm_set_speed(int arg) pcm_set_speed() argument 52 if (arg == 0) pcm_set_speed() 55 if (arg > 44100) pcm_set_speed() 56 arg = 44100; pcm_set_speed() 57 if (arg < 5000) pcm_set_speed() 58 arg = 5000; pcm_set_speed() 62 foo = ((PIT_TICK_RATE / 2) + (arg / 2)) / arg; pcm_set_speed() 63 arg = ((PIT_TICK_RATE / 2) + (foo / 2)) / foo; pcm_set_speed() 67 foo = (PIT_TICK_RATE + (arg / 2)) / arg; pcm_set_speed() 68 arg = (PIT_TICK_RATE + (foo / 2)) / foo; pcm_set_speed() 71 pcm_speed = arg; pcm_set_speed() 117 static int pcm_set_channels(int arg) pcm_set_channels() argument 120 if ((arg != 1) && (arg != 2)) pcm_set_channels() 123 if (arg != pcm_channels) pcm_set_channels() 127 pcm_channels = arg; pcm_set_channels() 133 static int pcm_set_bits(int arg) pcm_set_bits() argument 135 if (arg == 0) pcm_set_bits() 138 if ((arg & pcm_bitsok) != arg) pcm_set_bits() 141 if (arg != pcm_bits) pcm_set_bits() 145 pcm_bits = arg; pcm_set_bits() 150 static int pas_audio_ioctl(int dev, unsigned int cmd, void __user *arg) pas_audio_ioctl() argument 153 int __user *p = arg; pas_audio_ioctl()
|
/linux-4.1.27/drivers/net/wireless/ath/ath10k/ |
H A D | wmi.c | 853 const struct wmi_channel_arg *arg) ath10k_wmi_put_wmi_channel() 859 if (arg->passive) ath10k_wmi_put_wmi_channel() 861 if (arg->allow_ibss) ath10k_wmi_put_wmi_channel() 863 if (arg->allow_ht) ath10k_wmi_put_wmi_channel() 865 if (arg->allow_vht) ath10k_wmi_put_wmi_channel() 867 if (arg->ht40plus) ath10k_wmi_put_wmi_channel() 869 if (arg->chan_radar) ath10k_wmi_put_wmi_channel() 872 ch->mhz = __cpu_to_le32(arg->freq); ath10k_wmi_put_wmi_channel() 873 ch->band_center_freq1 = __cpu_to_le32(arg->band_center_freq1); ath10k_wmi_put_wmi_channel() 875 ch->min_power = arg->min_power; ath10k_wmi_put_wmi_channel() 876 ch->max_power = arg->max_power; ath10k_wmi_put_wmi_channel() 877 ch->reg_power = arg->max_reg_power; ath10k_wmi_put_wmi_channel() 878 ch->antenna_max = arg->max_antenna_gain; ath10k_wmi_put_wmi_channel() 881 ch->mode = arg->mode; ath10k_wmi_put_wmi_channel() 1249 struct wmi_scan_ev_arg *arg) ath10k_wmi_op_pull_scan_ev() 1257 arg->event_type = ev->event_type; ath10k_wmi_op_pull_scan_ev() 1258 arg->reason = ev->reason; ath10k_wmi_op_pull_scan_ev() 1259 arg->channel_freq = ev->channel_freq; ath10k_wmi_op_pull_scan_ev() 1260 arg->scan_req_id = ev->scan_req_id; ath10k_wmi_op_pull_scan_ev() 1261 arg->scan_id = ev->scan_id; ath10k_wmi_op_pull_scan_ev() 1262 arg->vdev_id = ev->vdev_id; ath10k_wmi_op_pull_scan_ev() 1269 struct wmi_scan_ev_arg arg = {}; ath10k_wmi_event_scan() local 1278 ret = ath10k_wmi_pull_scan(ar, skb, &arg); ath10k_wmi_event_scan() 1284 event_type = __le32_to_cpu(arg.event_type); ath10k_wmi_event_scan() 1285 reason = __le32_to_cpu(arg.reason); ath10k_wmi_event_scan() 1286 freq = __le32_to_cpu(arg.channel_freq); ath10k_wmi_event_scan() 1287 req_id = __le32_to_cpu(arg.scan_req_id); ath10k_wmi_event_scan() 1288 scan_id = __le32_to_cpu(arg.scan_id); ath10k_wmi_event_scan() 1289 vdev_id = __le32_to_cpu(arg.vdev_id); ath10k_wmi_event_scan() 1446 struct wmi_mgmt_rx_ev_arg *arg) ath10k_wmi_op_pull_mgmt_rx_ev() 1468 arg->channel = ev_hdr->channel; ath10k_wmi_op_pull_mgmt_rx_ev() 1469 arg->buf_len = ev_hdr->buf_len; ath10k_wmi_op_pull_mgmt_rx_ev() 1470 arg->status = ev_hdr->status; ath10k_wmi_op_pull_mgmt_rx_ev() 1471 arg->snr = ev_hdr->snr; ath10k_wmi_op_pull_mgmt_rx_ev() 1472 arg->phy_mode = ev_hdr->phy_mode; ath10k_wmi_op_pull_mgmt_rx_ev() 1473 arg->rate = ev_hdr->rate; ath10k_wmi_op_pull_mgmt_rx_ev() 1475 msdu_len = __le32_to_cpu(arg->buf_len); ath10k_wmi_op_pull_mgmt_rx_ev() 1489 struct wmi_mgmt_rx_ev_arg arg = {}; ath10k_wmi_event_mgmt_rx() local 1501 ret = ath10k_wmi_pull_mgmt_rx(ar, skb, &arg); ath10k_wmi_event_mgmt_rx() 1507 channel = __le32_to_cpu(arg.channel); ath10k_wmi_event_mgmt_rx() 1508 buf_len = __le32_to_cpu(arg.buf_len); ath10k_wmi_event_mgmt_rx() 1509 rx_status = __le32_to_cpu(arg.status); ath10k_wmi_event_mgmt_rx() 1510 snr = __le32_to_cpu(arg.snr); ath10k_wmi_event_mgmt_rx() 1511 phy_mode = __le32_to_cpu(arg.phy_mode); ath10k_wmi_event_mgmt_rx() 1512 rate = __le32_to_cpu(arg.rate); ath10k_wmi_event_mgmt_rx() 1622 struct wmi_ch_info_ev_arg *arg) ath10k_wmi_op_pull_ch_info_ev() 1630 arg->err_code = ev->err_code; ath10k_wmi_op_pull_ch_info_ev() 1631 arg->freq = ev->freq; ath10k_wmi_op_pull_ch_info_ev() 1632 arg->cmd_flags = ev->cmd_flags; ath10k_wmi_op_pull_ch_info_ev() 1633 arg->noise_floor = ev->noise_floor; ath10k_wmi_op_pull_ch_info_ev() 1634 arg->rx_clear_count = ev->rx_clear_count; ath10k_wmi_op_pull_ch_info_ev() 1635 arg->cycle_count = ev->cycle_count; ath10k_wmi_op_pull_ch_info_ev() 1642 struct wmi_ch_info_ev_arg arg = {}; ath10k_wmi_event_chan_info() local 1647 ret = ath10k_wmi_pull_ch_info(ar, skb, &arg); ath10k_wmi_event_chan_info() 1653 err_code = __le32_to_cpu(arg.err_code); ath10k_wmi_event_chan_info() 1654 freq = __le32_to_cpu(arg.freq); ath10k_wmi_event_chan_info() 1655 cmd_flags = __le32_to_cpu(arg.cmd_flags); ath10k_wmi_event_chan_info() 1656 noise_floor = __le32_to_cpu(arg.noise_floor); ath10k_wmi_event_chan_info() 1657 rx_clear_count = __le32_to_cpu(arg.rx_clear_count); ath10k_wmi_event_chan_info() 1658 cycle_count = __le32_to_cpu(arg.cycle_count); ath10k_wmi_event_chan_info() 2080 struct wmi_vdev_start_ev_arg *arg) ath10k_wmi_op_pull_vdev_start_ev() 2088 arg->vdev_id = ev->vdev_id; ath10k_wmi_op_pull_vdev_start_ev() 2089 arg->req_id = ev->req_id; ath10k_wmi_op_pull_vdev_start_ev() 2090 arg->resp_type = ev->resp_type; ath10k_wmi_op_pull_vdev_start_ev() 2091 arg->status = ev->status; ath10k_wmi_op_pull_vdev_start_ev() 2098 struct wmi_vdev_start_ev_arg arg = {}; ath10k_wmi_event_vdev_start_resp() local 2103 ret = ath10k_wmi_pull_vdev_start(ar, skb, &arg); ath10k_wmi_event_vdev_start_resp() 2109 if (WARN_ON(__le32_to_cpu(arg.status))) ath10k_wmi_event_vdev_start_resp() 2123 struct wmi_peer_kick_ev_arg *arg) ath10k_wmi_op_pull_peer_kick_ev() 2131 arg->mac_addr = ev->peer_macaddr.addr; ath10k_wmi_op_pull_peer_kick_ev() 2138 struct wmi_peer_kick_ev_arg arg = {}; ath10k_wmi_event_peer_sta_kickout() local 2142 ret = ath10k_wmi_pull_peer_kick(ar, skb, &arg); ath10k_wmi_event_peer_sta_kickout() 2150 arg.mac_addr); ath10k_wmi_event_peer_sta_kickout() 2154 sta = ieee80211_find_sta_by_ifaddr(ar->hw, arg.mac_addr, NULL); ath10k_wmi_event_peer_sta_kickout() 2157 arg.mac_addr); ath10k_wmi_event_peer_sta_kickout() 2385 struct wmi_swba_ev_arg *arg) ath10k_wmi_op_pull_swba_ev() 2395 arg->vdev_map = ev->vdev_map; ath10k_wmi_op_pull_swba_ev() 2404 if (WARN_ON_ONCE(i == ARRAY_SIZE(arg->tim_info))) ath10k_wmi_op_pull_swba_ev() 2407 arg->tim_info[i] = &ev->bcn_info[i].tim_info; ath10k_wmi_op_pull_swba_ev() 2408 arg->noa_info[i] = &ev->bcn_info[i].p2p_noa_info; ath10k_wmi_op_pull_swba_ev() 2417 struct wmi_swba_ev_arg arg = {}; ath10k_wmi_event_host_swba() local 2427 ret = ath10k_wmi_pull_swba(ar, skb, &arg); ath10k_wmi_event_host_swba() 2433 map = __le32_to_cpu(arg.vdev_map); ath10k_wmi_event_host_swba() 2449 tim_info = arg.tim_info[i]; ath10k_wmi_event_host_swba() 2450 noa_info = arg.noa_info[i]; ath10k_wmi_event_host_swba() 2789 struct wmi_phyerr_ev_arg *arg) ath10k_wmi_op_pull_phyerr_ev() 2796 arg->num_phyerrs = ev->num_phyerrs; ath10k_wmi_op_pull_phyerr_ev() 2797 arg->tsf_l32 = ev->tsf_l32; ath10k_wmi_op_pull_phyerr_ev() 2798 arg->tsf_u32 = ev->tsf_u32; ath10k_wmi_op_pull_phyerr_ev() 2799 arg->buf_len = __cpu_to_le32(skb->len - sizeof(*ev)); ath10k_wmi_op_pull_phyerr_ev() 2800 arg->phyerrs = ev->phyerrs; ath10k_wmi_op_pull_phyerr_ev() 2807 struct wmi_phyerr_ev_arg arg = {}; ath10k_wmi_event_phyerr() local 2815 ret = ath10k_wmi_pull_phyerr(ar, skb, &arg); ath10k_wmi_event_phyerr() 2821 left_len = __le32_to_cpu(arg.buf_len); ath10k_wmi_event_phyerr() 2824 count = __le32_to_cpu(arg.num_phyerrs); ath10k_wmi_event_phyerr() 2826 tsf = __le32_to_cpu(arg.tsf_u32); ath10k_wmi_event_phyerr() 2828 tsf |= __le32_to_cpu(arg.tsf_l32); ath10k_wmi_event_phyerr() 2834 phyerr = arg.phyerrs; ath10k_wmi_event_phyerr() 3038 struct wmi_svc_rdy_ev_arg *arg) ath10k_wmi_main_op_pull_svc_rdy_ev() 3048 arg->min_tx_power = ev->hw_min_tx_power; ath10k_wmi_main_op_pull_svc_rdy_ev() 3049 arg->max_tx_power = ev->hw_max_tx_power; ath10k_wmi_main_op_pull_svc_rdy_ev() 3050 arg->ht_cap = ev->ht_cap_info; ath10k_wmi_main_op_pull_svc_rdy_ev() 3051 arg->vht_cap = ev->vht_cap_info; ath10k_wmi_main_op_pull_svc_rdy_ev() 3052 arg->sw_ver0 = ev->sw_version; ath10k_wmi_main_op_pull_svc_rdy_ev() 3053 arg->sw_ver1 = ev->sw_version_1; ath10k_wmi_main_op_pull_svc_rdy_ev() 3054 arg->phy_capab = ev->phy_capability; ath10k_wmi_main_op_pull_svc_rdy_ev() 3055 arg->num_rf_chains = ev->num_rf_chains; ath10k_wmi_main_op_pull_svc_rdy_ev() 3056 arg->eeprom_rd = ev->hal_reg_capabilities.eeprom_rd; ath10k_wmi_main_op_pull_svc_rdy_ev() 3057 arg->num_mem_reqs = ev->num_mem_reqs; ath10k_wmi_main_op_pull_svc_rdy_ev() 3058 arg->service_map = ev->wmi_service_bitmap; ath10k_wmi_main_op_pull_svc_rdy_ev() 3059 arg->service_map_len = sizeof(ev->wmi_service_bitmap); ath10k_wmi_main_op_pull_svc_rdy_ev() 3061 n = min_t(size_t, __le32_to_cpu(arg->num_mem_reqs), ath10k_wmi_main_op_pull_svc_rdy_ev() 3062 ARRAY_SIZE(arg->mem_reqs)); ath10k_wmi_main_op_pull_svc_rdy_ev() 3064 arg->mem_reqs[i] = &ev->mem_reqs[i]; ath10k_wmi_main_op_pull_svc_rdy_ev() 3067 __le32_to_cpu(arg->num_mem_reqs) * sizeof(arg->mem_reqs[0])) ath10k_wmi_main_op_pull_svc_rdy_ev() 3075 struct wmi_svc_rdy_ev_arg *arg) ath10k_wmi_10x_op_pull_svc_rdy_ev() 3085 arg->min_tx_power = ev->hw_min_tx_power; ath10k_wmi_10x_op_pull_svc_rdy_ev() 3086 arg->max_tx_power = ev->hw_max_tx_power; ath10k_wmi_10x_op_pull_svc_rdy_ev() 3087 arg->ht_cap = ev->ht_cap_info; ath10k_wmi_10x_op_pull_svc_rdy_ev() 3088 arg->vht_cap = ev->vht_cap_info; ath10k_wmi_10x_op_pull_svc_rdy_ev() 3089 arg->sw_ver0 = ev->sw_version; ath10k_wmi_10x_op_pull_svc_rdy_ev() 3090 arg->phy_capab = ev->phy_capability; ath10k_wmi_10x_op_pull_svc_rdy_ev() 3091 arg->num_rf_chains = ev->num_rf_chains; ath10k_wmi_10x_op_pull_svc_rdy_ev() 3092 arg->eeprom_rd = ev->hal_reg_capabilities.eeprom_rd; ath10k_wmi_10x_op_pull_svc_rdy_ev() 3093 arg->num_mem_reqs = ev->num_mem_reqs; ath10k_wmi_10x_op_pull_svc_rdy_ev() 3094 arg->service_map = ev->wmi_service_bitmap; ath10k_wmi_10x_op_pull_svc_rdy_ev() 3095 arg->service_map_len = sizeof(ev->wmi_service_bitmap); ath10k_wmi_10x_op_pull_svc_rdy_ev() 3097 n = min_t(size_t, __le32_to_cpu(arg->num_mem_reqs), ath10k_wmi_10x_op_pull_svc_rdy_ev() 3098 ARRAY_SIZE(arg->mem_reqs)); ath10k_wmi_10x_op_pull_svc_rdy_ev() 3100 arg->mem_reqs[i] = &ev->mem_reqs[i]; ath10k_wmi_10x_op_pull_svc_rdy_ev() 3103 __le32_to_cpu(arg->num_mem_reqs) * sizeof(arg->mem_reqs[0])) ath10k_wmi_10x_op_pull_svc_rdy_ev() 3111 struct wmi_svc_rdy_ev_arg arg = {}; ath10k_wmi_event_service_ready() local 3115 ret = ath10k_wmi_pull_svc_rdy(ar, skb, &arg); ath10k_wmi_event_service_ready() 3122 ath10k_wmi_map_svc(ar, arg.service_map, ar->wmi.svc_map, ath10k_wmi_event_service_ready() 3123 arg.service_map_len); ath10k_wmi_event_service_ready() 3125 ar->hw_min_tx_power = __le32_to_cpu(arg.min_tx_power); ath10k_wmi_event_service_ready() 3126 ar->hw_max_tx_power = __le32_to_cpu(arg.max_tx_power); ath10k_wmi_event_service_ready() 3127 ar->ht_cap_info = __le32_to_cpu(arg.ht_cap); ath10k_wmi_event_service_ready() 3128 ar->vht_cap_info = __le32_to_cpu(arg.vht_cap); ath10k_wmi_event_service_ready() 3130 (__le32_to_cpu(arg.sw_ver0) & 0xff000000) >> 24; ath10k_wmi_event_service_ready() 3131 ar->fw_version_minor = (__le32_to_cpu(arg.sw_ver0) & 0x00ffffff); ath10k_wmi_event_service_ready() 3133 (__le32_to_cpu(arg.sw_ver1) & 0xffff0000) >> 16; ath10k_wmi_event_service_ready() 3134 ar->fw_version_build = (__le32_to_cpu(arg.sw_ver1) & 0x0000ffff); ath10k_wmi_event_service_ready() 3135 ar->phy_capability = __le32_to_cpu(arg.phy_capab); ath10k_wmi_event_service_ready() 3136 ar->num_rf_chains = __le32_to_cpu(arg.num_rf_chains); ath10k_wmi_event_service_ready() 3137 ar->ath_common.regulatory.current_rd = __le32_to_cpu(arg.eeprom_rd); ath10k_wmi_event_service_ready() 3140 arg.service_map, arg.service_map_len); ath10k_wmi_event_service_ready() 3165 num_mem_reqs = __le32_to_cpu(arg.num_mem_reqs); ath10k_wmi_event_service_ready() 3173 req_id = __le32_to_cpu(arg.mem_reqs[i]->req_id); ath10k_wmi_event_service_ready() 3174 num_units = __le32_to_cpu(arg.mem_reqs[i]->num_units); ath10k_wmi_event_service_ready() 3175 unit_size = __le32_to_cpu(arg.mem_reqs[i]->unit_size); ath10k_wmi_event_service_ready() 3176 num_unit_info = __le32_to_cpu(arg.mem_reqs[i]->num_unit_info); ath10k_wmi_event_service_ready() 3190 __le32_to_cpu(arg.mem_reqs[i]->num_units), ath10k_wmi_event_service_ready() 3203 __le32_to_cpu(arg.min_tx_power), ath10k_wmi_event_service_ready() 3204 __le32_to_cpu(arg.max_tx_power), ath10k_wmi_event_service_ready() 3205 __le32_to_cpu(arg.ht_cap), ath10k_wmi_event_service_ready() 3206 __le32_to_cpu(arg.vht_cap), ath10k_wmi_event_service_ready() 3207 __le32_to_cpu(arg.sw_ver0), ath10k_wmi_event_service_ready() 3208 __le32_to_cpu(arg.sw_ver1), ath10k_wmi_event_service_ready() 3209 __le32_to_cpu(arg.fw_build), ath10k_wmi_event_service_ready() 3210 __le32_to_cpu(arg.phy_capab), ath10k_wmi_event_service_ready() 3211 __le32_to_cpu(arg.num_rf_chains), ath10k_wmi_event_service_ready() 3212 __le32_to_cpu(arg.eeprom_rd), ath10k_wmi_event_service_ready() 3213 __le32_to_cpu(arg.num_mem_reqs)); ath10k_wmi_event_service_ready() 3219 struct wmi_rdy_ev_arg *arg) ath10k_wmi_op_pull_rdy_ev() 3227 arg->sw_version = ev->sw_version; ath10k_wmi_op_pull_rdy_ev() 3228 arg->abi_version = ev->abi_version; ath10k_wmi_op_pull_rdy_ev() 3229 arg->status = ev->status; ath10k_wmi_op_pull_rdy_ev() 3230 arg->mac_addr = ev->mac_addr.addr; ath10k_wmi_op_pull_rdy_ev() 3237 struct wmi_rdy_ev_arg arg = {}; ath10k_wmi_event_ready() local 3240 ret = ath10k_wmi_pull_rdy(ar, skb, &arg); ath10k_wmi_event_ready() 3248 __le32_to_cpu(arg.sw_version), ath10k_wmi_event_ready() 3249 __le32_to_cpu(arg.abi_version), ath10k_wmi_event_ready() 3250 arg.mac_addr, ath10k_wmi_event_ready() 3251 __le32_to_cpu(arg.status)); ath10k_wmi_event_ready() 3253 ether_addr_copy(ar->mac_addr, arg.mac_addr); ath10k_wmi_event_ready() 4002 int ath10k_wmi_start_scan_verify(const struct wmi_start_scan_arg *arg) ath10k_wmi_start_scan_verify() argument 4004 if (arg->ie_len && !arg->ie) ath10k_wmi_start_scan_verify() 4006 if (arg->n_channels && !arg->channels) ath10k_wmi_start_scan_verify() 4008 if (arg->n_ssids && !arg->ssids) ath10k_wmi_start_scan_verify() 4010 if (arg->n_bssids && !arg->bssids) ath10k_wmi_start_scan_verify() 4013 if (arg->ie_len > WLAN_SCAN_PARAMS_MAX_IE_LEN) ath10k_wmi_start_scan_verify() 4015 if (arg->n_channels > ARRAY_SIZE(arg->channels)) ath10k_wmi_start_scan_verify() 4017 if (arg->n_ssids > WLAN_SCAN_PARAMS_MAX_SSID) ath10k_wmi_start_scan_verify() 4019 if (arg->n_bssids > WLAN_SCAN_PARAMS_MAX_BSSID) ath10k_wmi_start_scan_verify() 4026 ath10k_wmi_start_scan_tlvs_len(const struct wmi_start_scan_arg *arg) ath10k_wmi_start_scan_tlvs_len() argument 4030 if (arg->ie_len) { ath10k_wmi_start_scan_tlvs_len() 4032 len += roundup(arg->ie_len, 4); ath10k_wmi_start_scan_tlvs_len() 4035 if (arg->n_channels) { ath10k_wmi_start_scan_tlvs_len() 4037 len += sizeof(__le32) * arg->n_channels; ath10k_wmi_start_scan_tlvs_len() 4040 if (arg->n_ssids) { ath10k_wmi_start_scan_tlvs_len() 4042 len += sizeof(struct wmi_ssid) * arg->n_ssids; ath10k_wmi_start_scan_tlvs_len() 4045 if (arg->n_bssids) { ath10k_wmi_start_scan_tlvs_len() 4047 len += sizeof(struct wmi_mac_addr) * arg->n_bssids; ath10k_wmi_start_scan_tlvs_len() 4054 const struct wmi_start_scan_arg *arg) ath10k_wmi_put_start_scan_common() 4060 scan_id |= arg->scan_id; ath10k_wmi_put_start_scan_common() 4063 scan_req_id |= arg->scan_req_id; ath10k_wmi_put_start_scan_common() 4067 cmn->vdev_id = __cpu_to_le32(arg->vdev_id); ath10k_wmi_put_start_scan_common() 4068 cmn->scan_priority = __cpu_to_le32(arg->scan_priority); ath10k_wmi_put_start_scan_common() 4069 cmn->notify_scan_events = __cpu_to_le32(arg->notify_scan_events); ath10k_wmi_put_start_scan_common() 4070 cmn->dwell_time_active = __cpu_to_le32(arg->dwell_time_active); ath10k_wmi_put_start_scan_common() 4071 cmn->dwell_time_passive = __cpu_to_le32(arg->dwell_time_passive); ath10k_wmi_put_start_scan_common() 4072 cmn->min_rest_time = __cpu_to_le32(arg->min_rest_time); ath10k_wmi_put_start_scan_common() 4073 cmn->max_rest_time = __cpu_to_le32(arg->max_rest_time); ath10k_wmi_put_start_scan_common() 4074 cmn->repeat_probe_time = __cpu_to_le32(arg->repeat_probe_time); ath10k_wmi_put_start_scan_common() 4075 cmn->probe_spacing_time = __cpu_to_le32(arg->probe_spacing_time); ath10k_wmi_put_start_scan_common() 4076 cmn->idle_time = __cpu_to_le32(arg->idle_time); ath10k_wmi_put_start_scan_common() 4077 cmn->max_scan_time = __cpu_to_le32(arg->max_scan_time); ath10k_wmi_put_start_scan_common() 4078 cmn->probe_delay = __cpu_to_le32(arg->probe_delay); ath10k_wmi_put_start_scan_common() 4079 cmn->scan_ctrl_flags = __cpu_to_le32(arg->scan_ctrl_flags); ath10k_wmi_put_start_scan_common() 4084 const struct wmi_start_scan_arg *arg) ath10k_wmi_put_start_scan_tlvs() 4093 if (arg->n_channels) { ath10k_wmi_put_start_scan_tlvs() 4096 channels->num_chan = __cpu_to_le32(arg->n_channels); ath10k_wmi_put_start_scan_tlvs() 4098 for (i = 0; i < arg->n_channels; i++) ath10k_wmi_put_start_scan_tlvs() 4100 __cpu_to_le16(arg->channels[i]); ath10k_wmi_put_start_scan_tlvs() 4103 ptr += sizeof(__le32) * arg->n_channels; ath10k_wmi_put_start_scan_tlvs() 4106 if (arg->n_ssids) { ath10k_wmi_put_start_scan_tlvs() 4109 ssids->num_ssids = __cpu_to_le32(arg->n_ssids); ath10k_wmi_put_start_scan_tlvs() 4111 for (i = 0; i < arg->n_ssids; i++) { ath10k_wmi_put_start_scan_tlvs() 4113 __cpu_to_le32(arg->ssids[i].len); ath10k_wmi_put_start_scan_tlvs() 4115 arg->ssids[i].ssid, ath10k_wmi_put_start_scan_tlvs() 4116 arg->ssids[i].len); ath10k_wmi_put_start_scan_tlvs() 4120 ptr += sizeof(struct wmi_ssid) * arg->n_ssids; ath10k_wmi_put_start_scan_tlvs() 4123 if (arg->n_bssids) { ath10k_wmi_put_start_scan_tlvs() 4126 bssids->num_bssid = __cpu_to_le32(arg->n_bssids); ath10k_wmi_put_start_scan_tlvs() 4128 for (i = 0; i < arg->n_bssids; i++) ath10k_wmi_put_start_scan_tlvs() 4130 arg->bssids[i].bssid, ath10k_wmi_put_start_scan_tlvs() 4134 ptr += sizeof(struct wmi_mac_addr) * arg->n_bssids; ath10k_wmi_put_start_scan_tlvs() 4137 if (arg->ie_len) { ath10k_wmi_put_start_scan_tlvs() 4140 ie->ie_len = __cpu_to_le32(arg->ie_len); ath10k_wmi_put_start_scan_tlvs() 4141 memcpy(ie->ie_data, arg->ie, arg->ie_len); ath10k_wmi_put_start_scan_tlvs() 4144 ptr += roundup(arg->ie_len, 4); ath10k_wmi_put_start_scan_tlvs() 4150 const struct wmi_start_scan_arg *arg) ath10k_wmi_op_gen_start_scan() 4157 ret = ath10k_wmi_start_scan_verify(arg); ath10k_wmi_op_gen_start_scan() 4161 len = sizeof(*cmd) + ath10k_wmi_start_scan_tlvs_len(arg); ath10k_wmi_op_gen_start_scan() 4168 ath10k_wmi_put_start_scan_common(&cmd->common, arg); ath10k_wmi_op_gen_start_scan() 4169 ath10k_wmi_put_start_scan_tlvs(&cmd->tlvs, arg); ath10k_wmi_op_gen_start_scan() 4179 const struct wmi_start_scan_arg *arg) ath10k_wmi_10x_op_gen_start_scan() 4186 ret = ath10k_wmi_start_scan_verify(arg); ath10k_wmi_10x_op_gen_start_scan() 4190 len = sizeof(*cmd) + ath10k_wmi_start_scan_tlvs_len(arg); ath10k_wmi_10x_op_gen_start_scan() 4197 ath10k_wmi_put_start_scan_common(&cmd->common, arg); ath10k_wmi_10x_op_gen_start_scan() 4198 ath10k_wmi_put_start_scan_tlvs(&cmd->tlvs, arg); ath10k_wmi_10x_op_gen_start_scan() 4205 struct wmi_start_scan_arg *arg) ath10k_wmi_start_scan_init() 4208 arg->scan_req_id = 1; ath10k_wmi_start_scan_init() 4209 arg->scan_priority = WMI_SCAN_PRIORITY_LOW; ath10k_wmi_start_scan_init() 4210 arg->dwell_time_active = 50; ath10k_wmi_start_scan_init() 4211 arg->dwell_time_passive = 150; ath10k_wmi_start_scan_init() 4212 arg->min_rest_time = 50; ath10k_wmi_start_scan_init() 4213 arg->max_rest_time = 500; ath10k_wmi_start_scan_init() 4214 arg->repeat_probe_time = 0; ath10k_wmi_start_scan_init() 4215 arg->probe_spacing_time = 0; ath10k_wmi_start_scan_init() 4216 arg->idle_time = 0; ath10k_wmi_start_scan_init() 4217 arg->max_scan_time = 20000; ath10k_wmi_start_scan_init() 4218 arg->probe_delay = 5; ath10k_wmi_start_scan_init() 4219 arg->notify_scan_events = WMI_SCAN_EVENT_STARTED ath10k_wmi_start_scan_init() 4224 arg->scan_ctrl_flags |= WMI_SCAN_ADD_OFDM_RATES; ath10k_wmi_start_scan_init() 4225 arg->scan_ctrl_flags |= WMI_SCAN_CHAN_STAT_EVENT; ath10k_wmi_start_scan_init() 4226 arg->n_bssids = 1; ath10k_wmi_start_scan_init() 4227 arg->bssids[0].bssid = "\xFF\xFF\xFF\xFF\xFF\xFF"; ath10k_wmi_start_scan_init() 4232 const struct wmi_stop_scan_arg *arg) ath10k_wmi_op_gen_stop_scan() 4239 if (arg->req_id > 0xFFF) ath10k_wmi_op_gen_stop_scan() 4241 if (arg->req_type == WMI_SCAN_STOP_ONE && arg->u.scan_id > 0xFFF) ath10k_wmi_op_gen_stop_scan() 4248 scan_id = arg->u.scan_id; ath10k_wmi_op_gen_stop_scan() 4251 req_id = arg->req_id; ath10k_wmi_op_gen_stop_scan() 4255 cmd->req_type = __cpu_to_le32(arg->req_type); ath10k_wmi_op_gen_stop_scan() 4256 cmd->vdev_id = __cpu_to_le32(arg->u.vdev_id); ath10k_wmi_op_gen_stop_scan() 4262 arg->req_id, arg->req_type, arg->u.scan_id); ath10k_wmi_op_gen_stop_scan() 4311 const struct wmi_vdev_start_request_arg *arg, ath10k_wmi_op_gen_vdev_start() 4319 if (WARN_ON(arg->ssid && arg->ssid_len == 0)) ath10k_wmi_op_gen_vdev_start() 4321 if (WARN_ON(arg->hidden_ssid && !arg->ssid)) ath10k_wmi_op_gen_vdev_start() 4323 if (WARN_ON(arg->ssid_len > sizeof(cmd->ssid.ssid))) ath10k_wmi_op_gen_vdev_start() 4335 if (arg->hidden_ssid) ath10k_wmi_op_gen_vdev_start() 4337 if (arg->pmf_enabled) ath10k_wmi_op_gen_vdev_start() 4341 cmd->vdev_id = __cpu_to_le32(arg->vdev_id); ath10k_wmi_op_gen_vdev_start() 4342 cmd->disable_hw_ack = __cpu_to_le32(arg->disable_hw_ack); ath10k_wmi_op_gen_vdev_start() 4343 cmd->beacon_interval = __cpu_to_le32(arg->bcn_intval); ath10k_wmi_op_gen_vdev_start() 4344 cmd->dtim_period = __cpu_to_le32(arg->dtim_period); ath10k_wmi_op_gen_vdev_start() 4346 cmd->bcn_tx_rate = __cpu_to_le32(arg->bcn_tx_rate); ath10k_wmi_op_gen_vdev_start() 4347 cmd->bcn_tx_power = __cpu_to_le32(arg->bcn_tx_power); ath10k_wmi_op_gen_vdev_start() 4349 if (arg->ssid) { ath10k_wmi_op_gen_vdev_start() 4350 cmd->ssid.ssid_len = __cpu_to_le32(arg->ssid_len); ath10k_wmi_op_gen_vdev_start() 4351 memcpy(cmd->ssid.ssid, arg->ssid, arg->ssid_len); ath10k_wmi_op_gen_vdev_start() 4354 ath10k_wmi_put_wmi_channel(&cmd->chan, &arg->channel); ath10k_wmi_op_gen_vdev_start() 4358 cmdname, arg->vdev_id, ath10k_wmi_op_gen_vdev_start() 4359 flags, arg->channel.freq, arg->channel.mode, ath10k_wmi_op_gen_vdev_start() 4360 cmd->chan.flags, arg->channel.max_power); ath10k_wmi_op_gen_vdev_start() 4453 const struct wmi_vdev_install_key_arg *arg) ath10k_wmi_op_gen_vdev_install_key() 4458 if (arg->key_cipher == WMI_CIPHER_NONE && arg->key_data != NULL) ath10k_wmi_op_gen_vdev_install_key() 4460 if (arg->key_cipher != WMI_CIPHER_NONE && arg->key_data == NULL) ath10k_wmi_op_gen_vdev_install_key() 4463 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd) + arg->key_len); ath10k_wmi_op_gen_vdev_install_key() 4468 cmd->vdev_id = __cpu_to_le32(arg->vdev_id); ath10k_wmi_op_gen_vdev_install_key() 4469 cmd->key_idx = __cpu_to_le32(arg->key_idx); ath10k_wmi_op_gen_vdev_install_key() 4470 cmd->key_flags = __cpu_to_le32(arg->key_flags); ath10k_wmi_op_gen_vdev_install_key() 4471 cmd->key_cipher = __cpu_to_le32(arg->key_cipher); ath10k_wmi_op_gen_vdev_install_key() 4472 cmd->key_len = __cpu_to_le32(arg->key_len); ath10k_wmi_op_gen_vdev_install_key() 4473 cmd->key_txmic_len = __cpu_to_le32(arg->key_txmic_len); ath10k_wmi_op_gen_vdev_install_key() 4474 cmd->key_rxmic_len = __cpu_to_le32(arg->key_rxmic_len); ath10k_wmi_op_gen_vdev_install_key() 4476 if (arg->macaddr) ath10k_wmi_op_gen_vdev_install_key() 4477 ether_addr_copy(cmd->peer_macaddr.addr, arg->macaddr); ath10k_wmi_op_gen_vdev_install_key() 4478 if (arg->key_data) ath10k_wmi_op_gen_vdev_install_key() 4479 memcpy(cmd->key_data, arg->key_data, arg->key_len); ath10k_wmi_op_gen_vdev_install_key() 4483 arg->key_idx, arg->key_cipher, arg->key_len); ath10k_wmi_op_gen_vdev_install_key() 4489 const struct wmi_vdev_spectral_conf_arg *arg) ath10k_wmi_op_gen_vdev_spectral_conf() 4499 cmd->vdev_id = __cpu_to_le32(arg->vdev_id); ath10k_wmi_op_gen_vdev_spectral_conf() 4500 cmd->scan_count = __cpu_to_le32(arg->scan_count); ath10k_wmi_op_gen_vdev_spectral_conf() 4501 cmd->scan_period = __cpu_to_le32(arg->scan_period); ath10k_wmi_op_gen_vdev_spectral_conf() 4502 cmd->scan_priority = __cpu_to_le32(arg->scan_priority); ath10k_wmi_op_gen_vdev_spectral_conf() 4503 cmd->scan_fft_size = __cpu_to_le32(arg->scan_fft_size); ath10k_wmi_op_gen_vdev_spectral_conf() 4504 cmd->scan_gc_ena = __cpu_to_le32(arg->scan_gc_ena); ath10k_wmi_op_gen_vdev_spectral_conf() 4505 cmd->scan_restart_ena = __cpu_to_le32(arg->scan_restart_ena); ath10k_wmi_op_gen_vdev_spectral_conf() 4506 cmd->scan_noise_floor_ref = __cpu_to_le32(arg->scan_noise_floor_ref); ath10k_wmi_op_gen_vdev_spectral_conf() 4507 cmd->scan_init_delay = __cpu_to_le32(arg->scan_init_delay); ath10k_wmi_op_gen_vdev_spectral_conf() 4508 cmd->scan_nb_tone_thr = __cpu_to_le32(arg->scan_nb_tone_thr); ath10k_wmi_op_gen_vdev_spectral_conf() 4509 cmd->scan_str_bin_thr = __cpu_to_le32(arg->scan_str_bin_thr); ath10k_wmi_op_gen_vdev_spectral_conf() 4510 cmd->scan_wb_rpt_mode = __cpu_to_le32(arg->scan_wb_rpt_mode); ath10k_wmi_op_gen_vdev_spectral_conf() 4511 cmd->scan_rssi_rpt_mode = __cpu_to_le32(arg->scan_rssi_rpt_mode); ath10k_wmi_op_gen_vdev_spectral_conf() 4512 cmd->scan_rssi_thr = __cpu_to_le32(arg->scan_rssi_thr); ath10k_wmi_op_gen_vdev_spectral_conf() 4513 cmd->scan_pwr_format = __cpu_to_le32(arg->scan_pwr_format); ath10k_wmi_op_gen_vdev_spectral_conf() 4514 cmd->scan_rpt_mode = __cpu_to_le32(arg->scan_rpt_mode); ath10k_wmi_op_gen_vdev_spectral_conf() 4515 cmd->scan_bin_scale = __cpu_to_le32(arg->scan_bin_scale); ath10k_wmi_op_gen_vdev_spectral_conf() 4516 cmd->scan_dbm_adj = __cpu_to_le32(arg->scan_dbm_adj); ath10k_wmi_op_gen_vdev_spectral_conf() 4517 cmd->scan_chn_mask = __cpu_to_le32(arg->scan_chn_mask); ath10k_wmi_op_gen_vdev_spectral_conf() 4702 const struct wmi_scan_chan_list_arg *arg) ath10k_wmi_op_gen_scan_chan_list() 4711 len = sizeof(*cmd) + arg->n_channels * sizeof(struct wmi_channel); ath10k_wmi_op_gen_scan_chan_list() 4718 cmd->num_scan_chans = __cpu_to_le32(arg->n_channels); ath10k_wmi_op_gen_scan_chan_list() 4720 for (i = 0; i < arg->n_channels; i++) { ath10k_wmi_op_gen_scan_chan_list() 4721 ch = &arg->channels[i]; ath10k_wmi_op_gen_scan_chan_list() 4732 const struct wmi_peer_assoc_complete_arg *arg) ath10k_wmi_peer_assoc_fill() 4736 cmd->vdev_id = __cpu_to_le32(arg->vdev_id); ath10k_wmi_peer_assoc_fill() 4737 cmd->peer_new_assoc = __cpu_to_le32(arg->peer_reassoc ? 0 : 1); ath10k_wmi_peer_assoc_fill() 4738 cmd->peer_associd = __cpu_to_le32(arg->peer_aid); ath10k_wmi_peer_assoc_fill() 4739 cmd->peer_flags = __cpu_to_le32(arg->peer_flags); ath10k_wmi_peer_assoc_fill() 4740 cmd->peer_caps = __cpu_to_le32(arg->peer_caps); ath10k_wmi_peer_assoc_fill() 4741 cmd->peer_listen_intval = __cpu_to_le32(arg->peer_listen_intval); ath10k_wmi_peer_assoc_fill() 4742 cmd->peer_ht_caps = __cpu_to_le32(arg->peer_ht_caps); ath10k_wmi_peer_assoc_fill() 4743 cmd->peer_max_mpdu = __cpu_to_le32(arg->peer_max_mpdu); ath10k_wmi_peer_assoc_fill() 4744 cmd->peer_mpdu_density = __cpu_to_le32(arg->peer_mpdu_density); ath10k_wmi_peer_assoc_fill() 4745 cmd->peer_rate_caps = __cpu_to_le32(arg->peer_rate_caps); ath10k_wmi_peer_assoc_fill() 4746 cmd->peer_nss = __cpu_to_le32(arg->peer_num_spatial_streams); ath10k_wmi_peer_assoc_fill() 4747 cmd->peer_vht_caps = __cpu_to_le32(arg->peer_vht_caps); ath10k_wmi_peer_assoc_fill() 4748 cmd->peer_phymode = __cpu_to_le32(arg->peer_phymode); ath10k_wmi_peer_assoc_fill() 4750 ether_addr_copy(cmd->peer_macaddr.addr, arg->addr); ath10k_wmi_peer_assoc_fill() 4753 __cpu_to_le32(arg->peer_legacy_rates.num_rates); ath10k_wmi_peer_assoc_fill() 4754 memcpy(cmd->peer_legacy_rates.rates, arg->peer_legacy_rates.rates, ath10k_wmi_peer_assoc_fill() 4755 arg->peer_legacy_rates.num_rates); ath10k_wmi_peer_assoc_fill() 4758 __cpu_to_le32(arg->peer_ht_rates.num_rates); ath10k_wmi_peer_assoc_fill() 4759 memcpy(cmd->peer_ht_rates.rates, arg->peer_ht_rates.rates, ath10k_wmi_peer_assoc_fill() 4760 arg->peer_ht_rates.num_rates); ath10k_wmi_peer_assoc_fill() 4763 __cpu_to_le32(arg->peer_vht_rates.rx_max_rate); ath10k_wmi_peer_assoc_fill() 4765 __cpu_to_le32(arg->peer_vht_rates.rx_mcs_set); ath10k_wmi_peer_assoc_fill() 4767 __cpu_to_le32(arg->peer_vht_rates.tx_max_rate); ath10k_wmi_peer_assoc_fill() 4769 __cpu_to_le32(arg->peer_vht_rates.tx_mcs_set); ath10k_wmi_peer_assoc_fill() 4774 const struct wmi_peer_assoc_complete_arg *arg) ath10k_wmi_peer_assoc_fill_main() 4778 ath10k_wmi_peer_assoc_fill(ar, buf, arg); ath10k_wmi_peer_assoc_fill_main() 4784 const struct wmi_peer_assoc_complete_arg *arg) ath10k_wmi_peer_assoc_fill_10_1() 4786 ath10k_wmi_peer_assoc_fill(ar, buf, arg); ath10k_wmi_peer_assoc_fill_10_1() 4791 const struct wmi_peer_assoc_complete_arg *arg) ath10k_wmi_peer_assoc_fill_10_2() 4804 ath10k_wmi_peer_assoc_fill(ar, buf, arg); ath10k_wmi_peer_assoc_fill_10_2() 4809 ath10k_wmi_peer_assoc_check_arg(const struct wmi_peer_assoc_complete_arg *arg) ath10k_wmi_peer_assoc_check_arg() argument 4811 if (arg->peer_mpdu_density > 16) ath10k_wmi_peer_assoc_check_arg() 4813 if (arg->peer_legacy_rates.num_rates > MAX_SUPPORTED_RATES) ath10k_wmi_peer_assoc_check_arg() 4815 if (arg->peer_ht_rates.num_rates > MAX_SUPPORTED_RATES) ath10k_wmi_peer_assoc_check_arg() 4823 const struct wmi_peer_assoc_complete_arg *arg) ath10k_wmi_op_gen_peer_assoc() 4829 ret = ath10k_wmi_peer_assoc_check_arg(arg); ath10k_wmi_op_gen_peer_assoc() 4837 ath10k_wmi_peer_assoc_fill_main(ar, skb->data, arg); ath10k_wmi_op_gen_peer_assoc() 4841 arg->vdev_id, arg->addr, ath10k_wmi_op_gen_peer_assoc() 4842 arg->peer_reassoc ? "reassociate" : "new"); ath10k_wmi_op_gen_peer_assoc() 4848 const struct wmi_peer_assoc_complete_arg *arg) ath10k_wmi_10_1_op_gen_peer_assoc() 4854 ret = ath10k_wmi_peer_assoc_check_arg(arg); ath10k_wmi_10_1_op_gen_peer_assoc() 4862 ath10k_wmi_peer_assoc_fill_10_1(ar, skb->data, arg); ath10k_wmi_10_1_op_gen_peer_assoc() 4866 arg->vdev_id, arg->addr, ath10k_wmi_10_1_op_gen_peer_assoc() 4867 arg->peer_reassoc ? "reassociate" : "new"); ath10k_wmi_10_1_op_gen_peer_assoc() 4873 const struct wmi_peer_assoc_complete_arg *arg) ath10k_wmi_10_2_op_gen_peer_assoc() 4879 ret = ath10k_wmi_peer_assoc_check_arg(arg); ath10k_wmi_10_2_op_gen_peer_assoc() 4887 ath10k_wmi_peer_assoc_fill_10_2(ar, skb->data, arg); ath10k_wmi_10_2_op_gen_peer_assoc() 4891 arg->vdev_id, arg->addr, ath10k_wmi_10_2_op_gen_peer_assoc() 4892 arg->peer_reassoc ? "reassociate" : "new"); ath10k_wmi_10_2_op_gen_peer_assoc() 4946 const struct wmi_wmm_params_arg *arg) ath10k_wmi_set_wmm_param() 4948 params->cwmin = __cpu_to_le32(arg->cwmin); ath10k_wmi_set_wmm_param() 4949 params->cwmax = __cpu_to_le32(arg->cwmax); ath10k_wmi_set_wmm_param() 4950 params->aifs = __cpu_to_le32(arg->aifs); ath10k_wmi_set_wmm_param() 4951 params->txop = __cpu_to_le32(arg->txop); ath10k_wmi_set_wmm_param() 4952 params->acm = __cpu_to_le32(arg->acm); ath10k_wmi_set_wmm_param() 4953 params->no_ack = __cpu_to_le32(arg->no_ack); ath10k_wmi_set_wmm_param() 4958 const struct wmi_wmm_params_all_arg *arg) ath10k_wmi_op_gen_pdev_set_wmm() 4968 ath10k_wmi_set_wmm_param(&cmd->ac_be, &arg->ac_be); ath10k_wmi_op_gen_pdev_set_wmm() 4969 ath10k_wmi_set_wmm_param(&cmd->ac_bk, &arg->ac_bk); ath10k_wmi_op_gen_pdev_set_wmm() 4970 ath10k_wmi_set_wmm_param(&cmd->ac_vi, &arg->ac_vi); ath10k_wmi_op_gen_pdev_set_wmm() 4971 ath10k_wmi_set_wmm_param(&cmd->ac_vo, &arg->ac_vo); ath10k_wmi_op_gen_pdev_set_wmm() 852 ath10k_wmi_put_wmi_channel(struct wmi_channel *ch, const struct wmi_channel_arg *arg) ath10k_wmi_put_wmi_channel() argument 1248 ath10k_wmi_op_pull_scan_ev(struct ath10k *ar, struct sk_buff *skb, struct wmi_scan_ev_arg *arg) ath10k_wmi_op_pull_scan_ev() argument 1445 ath10k_wmi_op_pull_mgmt_rx_ev(struct ath10k *ar, struct sk_buff *skb, struct wmi_mgmt_rx_ev_arg *arg) ath10k_wmi_op_pull_mgmt_rx_ev() argument 1621 ath10k_wmi_op_pull_ch_info_ev(struct ath10k *ar, struct sk_buff *skb, struct wmi_ch_info_ev_arg *arg) ath10k_wmi_op_pull_ch_info_ev() argument 2079 ath10k_wmi_op_pull_vdev_start_ev(struct ath10k *ar, struct sk_buff *skb, struct wmi_vdev_start_ev_arg *arg) ath10k_wmi_op_pull_vdev_start_ev() argument 2122 ath10k_wmi_op_pull_peer_kick_ev(struct ath10k *ar, struct sk_buff *skb, struct wmi_peer_kick_ev_arg *arg) ath10k_wmi_op_pull_peer_kick_ev() argument 2384 ath10k_wmi_op_pull_swba_ev(struct ath10k *ar, struct sk_buff *skb, struct wmi_swba_ev_arg *arg) ath10k_wmi_op_pull_swba_ev() argument 2788 ath10k_wmi_op_pull_phyerr_ev(struct ath10k *ar, struct sk_buff *skb, struct wmi_phyerr_ev_arg *arg) ath10k_wmi_op_pull_phyerr_ev() argument 3037 ath10k_wmi_main_op_pull_svc_rdy_ev(struct ath10k *ar, struct sk_buff *skb, struct wmi_svc_rdy_ev_arg *arg) ath10k_wmi_main_op_pull_svc_rdy_ev() argument 3074 ath10k_wmi_10x_op_pull_svc_rdy_ev(struct ath10k *ar, struct sk_buff *skb, struct wmi_svc_rdy_ev_arg *arg) ath10k_wmi_10x_op_pull_svc_rdy_ev() argument 3218 ath10k_wmi_op_pull_rdy_ev(struct ath10k *ar, struct sk_buff *skb, struct wmi_rdy_ev_arg *arg) ath10k_wmi_op_pull_rdy_ev() argument 4053 ath10k_wmi_put_start_scan_common(struct wmi_start_scan_common *cmn, const struct wmi_start_scan_arg *arg) ath10k_wmi_put_start_scan_common() argument 4083 ath10k_wmi_put_start_scan_tlvs(struct wmi_start_scan_tlvs *tlvs, const struct wmi_start_scan_arg *arg) ath10k_wmi_put_start_scan_tlvs() argument 4149 ath10k_wmi_op_gen_start_scan(struct ath10k *ar, const struct wmi_start_scan_arg *arg) ath10k_wmi_op_gen_start_scan() argument 4178 ath10k_wmi_10x_op_gen_start_scan(struct ath10k *ar, const struct wmi_start_scan_arg *arg) ath10k_wmi_10x_op_gen_start_scan() argument 4204 ath10k_wmi_start_scan_init(struct ath10k *ar, struct wmi_start_scan_arg *arg) ath10k_wmi_start_scan_init() argument 4231 ath10k_wmi_op_gen_stop_scan(struct ath10k *ar, const struct wmi_stop_scan_arg *arg) ath10k_wmi_op_gen_stop_scan() argument 4310 ath10k_wmi_op_gen_vdev_start(struct ath10k *ar, const struct wmi_vdev_start_request_arg *arg, bool restart) ath10k_wmi_op_gen_vdev_start() argument 4452 ath10k_wmi_op_gen_vdev_install_key(struct ath10k *ar, const struct wmi_vdev_install_key_arg *arg) ath10k_wmi_op_gen_vdev_install_key() argument 4488 ath10k_wmi_op_gen_vdev_spectral_conf(struct ath10k *ar, const struct wmi_vdev_spectral_conf_arg *arg) ath10k_wmi_op_gen_vdev_spectral_conf() argument 4701 ath10k_wmi_op_gen_scan_chan_list(struct ath10k *ar, const struct wmi_scan_chan_list_arg *arg) ath10k_wmi_op_gen_scan_chan_list() argument 4731 ath10k_wmi_peer_assoc_fill(struct ath10k *ar, void *buf, const struct wmi_peer_assoc_complete_arg *arg) ath10k_wmi_peer_assoc_fill() argument 4773 ath10k_wmi_peer_assoc_fill_main(struct ath10k *ar, void *buf, const struct wmi_peer_assoc_complete_arg *arg) ath10k_wmi_peer_assoc_fill_main() argument 4783 ath10k_wmi_peer_assoc_fill_10_1(struct ath10k *ar, void *buf, const struct wmi_peer_assoc_complete_arg *arg) ath10k_wmi_peer_assoc_fill_10_1() argument 4790 ath10k_wmi_peer_assoc_fill_10_2(struct ath10k *ar, void *buf, const struct wmi_peer_assoc_complete_arg *arg) ath10k_wmi_peer_assoc_fill_10_2() argument 4822 ath10k_wmi_op_gen_peer_assoc(struct ath10k *ar, const struct wmi_peer_assoc_complete_arg *arg) ath10k_wmi_op_gen_peer_assoc() argument 4847 ath10k_wmi_10_1_op_gen_peer_assoc(struct ath10k *ar, const struct wmi_peer_assoc_complete_arg *arg) ath10k_wmi_10_1_op_gen_peer_assoc() argument 4872 ath10k_wmi_10_2_op_gen_peer_assoc(struct ath10k *ar, const struct wmi_peer_assoc_complete_arg *arg) ath10k_wmi_10_2_op_gen_peer_assoc() argument 4945 ath10k_wmi_set_wmm_param(struct wmi_wmm_params *params, const struct wmi_wmm_params_arg *arg) ath10k_wmi_set_wmm_param() argument 4957 ath10k_wmi_op_gen_pdev_set_wmm(struct ath10k *ar, const struct wmi_wmm_params_all_arg *arg) ath10k_wmi_op_gen_pdev_set_wmm() argument
|
H A D | wmi-tlv.c | 430 struct wmi_scan_ev_arg *arg) ath10k_wmi_tlv_op_pull_scan_ev() 449 arg->event_type = ev->event_type; ath10k_wmi_tlv_op_pull_scan_ev() 450 arg->reason = ev->reason; ath10k_wmi_tlv_op_pull_scan_ev() 451 arg->channel_freq = ev->channel_freq; ath10k_wmi_tlv_op_pull_scan_ev() 452 arg->scan_req_id = ev->scan_req_id; ath10k_wmi_tlv_op_pull_scan_ev() 453 arg->scan_id = ev->scan_id; ath10k_wmi_tlv_op_pull_scan_ev() 454 arg->vdev_id = ev->vdev_id; ath10k_wmi_tlv_op_pull_scan_ev() 462 struct wmi_mgmt_rx_ev_arg *arg) ath10k_wmi_tlv_op_pull_mgmt_rx_ev() 485 arg->channel = ev->channel; ath10k_wmi_tlv_op_pull_mgmt_rx_ev() 486 arg->buf_len = ev->buf_len; ath10k_wmi_tlv_op_pull_mgmt_rx_ev() 487 arg->status = ev->status; ath10k_wmi_tlv_op_pull_mgmt_rx_ev() 488 arg->snr = ev->snr; ath10k_wmi_tlv_op_pull_mgmt_rx_ev() 489 arg->phy_mode = ev->phy_mode; ath10k_wmi_tlv_op_pull_mgmt_rx_ev() 490 arg->rate = ev->rate; ath10k_wmi_tlv_op_pull_mgmt_rx_ev() 492 msdu_len = __le32_to_cpu(arg->buf_len); ath10k_wmi_tlv_op_pull_mgmt_rx_ev() 511 struct wmi_ch_info_ev_arg *arg) ath10k_wmi_tlv_op_pull_ch_info_ev() 530 arg->err_code = ev->err_code; ath10k_wmi_tlv_op_pull_ch_info_ev() 531 arg->freq = ev->freq; ath10k_wmi_tlv_op_pull_ch_info_ev() 532 arg->cmd_flags = ev->cmd_flags; ath10k_wmi_tlv_op_pull_ch_info_ev() 533 arg->noise_floor = ev->noise_floor; ath10k_wmi_tlv_op_pull_ch_info_ev() 534 arg->rx_clear_count = ev->rx_clear_count; ath10k_wmi_tlv_op_pull_ch_info_ev() 535 arg->cycle_count = ev->cycle_count; ath10k_wmi_tlv_op_pull_ch_info_ev() 543 struct wmi_vdev_start_ev_arg *arg) ath10k_wmi_tlv_op_pull_vdev_start_ev() 563 arg->vdev_id = ev->vdev_id; ath10k_wmi_tlv_op_pull_vdev_start_ev() 564 arg->req_id = ev->req_id; ath10k_wmi_tlv_op_pull_vdev_start_ev() 565 arg->resp_type = ev->resp_type; ath10k_wmi_tlv_op_pull_vdev_start_ev() 566 arg->status = ev->status; ath10k_wmi_tlv_op_pull_vdev_start_ev() 574 struct wmi_peer_kick_ev_arg *arg) ath10k_wmi_tlv_op_pull_peer_kick_ev() 593 arg->mac_addr = ev->peer_macaddr.addr; ath10k_wmi_tlv_op_pull_peer_kick_ev() 605 struct wmi_swba_ev_arg *arg; member in struct:wmi_tlv_swba_parse 616 if (swba->n_tim >= ARRAY_SIZE(swba->arg->tim_info)) ath10k_wmi_tlv_swba_tim_parse() 619 swba->arg->tim_info[swba->n_tim++] = ptr; ath10k_wmi_tlv_swba_tim_parse() 631 if (swba->n_noa >= ARRAY_SIZE(swba->arg->noa_info)) ath10k_wmi_tlv_swba_noa_parse() 634 swba->arg->noa_info[swba->n_noa++] = ptr; ath10k_wmi_tlv_swba_noa_parse() 673 struct wmi_swba_ev_arg *arg) ath10k_wmi_tlv_op_pull_swba_ev() 675 struct wmi_tlv_swba_parse swba = { .arg = arg }; ath10k_wmi_tlv_op_pull_swba_ev() 690 arg->vdev_map = swba.ev->vdev_map; ath10k_wmi_tlv_op_pull_swba_ev() 692 for (map = __le32_to_cpu(arg->vdev_map), n_vdevs = 0; map; map >>= 1) ath10k_wmi_tlv_op_pull_swba_ev() 705 struct wmi_phyerr_ev_arg *arg) ath10k_wmi_tlv_op_pull_phyerr_ev() 727 arg->num_phyerrs = ev->num_phyerrs; ath10k_wmi_tlv_op_pull_phyerr_ev() 728 arg->tsf_l32 = ev->tsf_l32; ath10k_wmi_tlv_op_pull_phyerr_ev() 729 arg->tsf_u32 = ev->tsf_u32; ath10k_wmi_tlv_op_pull_phyerr_ev() 730 arg->buf_len = ev->buf_len; ath10k_wmi_tlv_op_pull_phyerr_ev() 731 arg->phyerrs = phyerrs; ath10k_wmi_tlv_op_pull_phyerr_ev() 752 struct wmi_svc_rdy_ev_arg *arg = data; ath10k_wmi_tlv_parse_mem_reqs() local 758 for (i = 0; i < ARRAY_SIZE(arg->mem_reqs); i++) { ath10k_wmi_tlv_parse_mem_reqs() 759 if (!arg->mem_reqs[i]) { ath10k_wmi_tlv_parse_mem_reqs() 760 arg->mem_reqs[i] = ptr; ath10k_wmi_tlv_parse_mem_reqs() 770 struct wmi_svc_rdy_ev_arg *arg) ath10k_wmi_tlv_op_pull_svc_rdy_ev() 816 arg->min_tx_power = ev->hw_min_tx_power; ath10k_wmi_tlv_op_pull_svc_rdy_ev() 817 arg->max_tx_power = ev->hw_max_tx_power; ath10k_wmi_tlv_op_pull_svc_rdy_ev() 818 arg->ht_cap = ev->ht_cap_info; ath10k_wmi_tlv_op_pull_svc_rdy_ev() 819 arg->vht_cap = ev->vht_cap_info; ath10k_wmi_tlv_op_pull_svc_rdy_ev() 820 arg->sw_ver0 = ev->abi.abi_ver0; ath10k_wmi_tlv_op_pull_svc_rdy_ev() 821 arg->sw_ver1 = ev->abi.abi_ver1; ath10k_wmi_tlv_op_pull_svc_rdy_ev() 822 arg->fw_build = ev->fw_build_vers; ath10k_wmi_tlv_op_pull_svc_rdy_ev() 823 arg->phy_capab = ev->phy_capability; ath10k_wmi_tlv_op_pull_svc_rdy_ev() 824 arg->num_rf_chains = ev->num_rf_chains; ath10k_wmi_tlv_op_pull_svc_rdy_ev() 825 arg->eeprom_rd = reg->eeprom_rd; ath10k_wmi_tlv_op_pull_svc_rdy_ev() 826 arg->num_mem_reqs = ev->num_mem_reqs; ath10k_wmi_tlv_op_pull_svc_rdy_ev() 827 arg->service_map = svc_bmap; ath10k_wmi_tlv_op_pull_svc_rdy_ev() 828 arg->service_map_len = ath10k_wmi_tlv_len(svc_bmap); ath10k_wmi_tlv_op_pull_svc_rdy_ev() 831 ath10k_wmi_tlv_parse_mem_reqs, arg); ath10k_wmi_tlv_op_pull_svc_rdy_ev() 844 struct wmi_rdy_ev_arg *arg) ath10k_wmi_tlv_op_pull_rdy_ev() 863 arg->sw_version = ev->abi.abi_ver0; ath10k_wmi_tlv_op_pull_rdy_ev() 864 arg->abi_version = ev->abi.abi_ver1; ath10k_wmi_tlv_op_pull_rdy_ev() 865 arg->status = ev->status; ath10k_wmi_tlv_op_pull_rdy_ev() 866 arg->mac_addr = ev->mac_addr.addr; ath10k_wmi_tlv_op_pull_rdy_ev() 1214 const struct wmi_start_scan_arg *arg) ath10k_wmi_tlv_op_gen_start_scan() 1226 ret = ath10k_wmi_start_scan_verify(arg); ath10k_wmi_tlv_op_gen_start_scan() 1230 chan_len = arg->n_channels * sizeof(__le32); ath10k_wmi_tlv_op_gen_start_scan() 1231 ssid_len = arg->n_ssids * sizeof(struct wmi_ssid); ath10k_wmi_tlv_op_gen_start_scan() 1232 bssid_len = arg->n_bssids * sizeof(struct wmi_mac_addr); ath10k_wmi_tlv_op_gen_start_scan() 1233 ie_len = roundup(arg->ie_len, 4); ath10k_wmi_tlv_op_gen_start_scan() 1235 (arg->n_channels ? sizeof(*tlv) + chan_len : 0) + ath10k_wmi_tlv_op_gen_start_scan() 1236 (arg->n_ssids ? sizeof(*tlv) + ssid_len : 0) + ath10k_wmi_tlv_op_gen_start_scan() 1237 (arg->n_bssids ? sizeof(*tlv) + bssid_len : 0) + ath10k_wmi_tlv_op_gen_start_scan() 1238 (arg->ie_len ? sizeof(*tlv) + ie_len : 0); ath10k_wmi_tlv_op_gen_start_scan() 1250 ath10k_wmi_put_start_scan_common(&cmd->common, arg); ath10k_wmi_tlv_op_gen_start_scan() 1252 cmd->num_channels = __cpu_to_le32(arg->n_channels); ath10k_wmi_tlv_op_gen_start_scan() 1253 cmd->num_ssids = __cpu_to_le32(arg->n_ssids); ath10k_wmi_tlv_op_gen_start_scan() 1254 cmd->num_bssids = __cpu_to_le32(arg->n_bssids); ath10k_wmi_tlv_op_gen_start_scan() 1255 cmd->ie_len = __cpu_to_le32(arg->ie_len); ath10k_wmi_tlv_op_gen_start_scan() 1270 for (i = 0; i < arg->n_channels; i++) ath10k_wmi_tlv_op_gen_start_scan() 1271 chans[i] = __cpu_to_le32(arg->channels[i]); ath10k_wmi_tlv_op_gen_start_scan() 1280 for (i = 0; i < arg->n_ssids; i++) { ath10k_wmi_tlv_op_gen_start_scan() 1281 ssids[i].ssid_len = __cpu_to_le32(arg->ssids[i].len); ath10k_wmi_tlv_op_gen_start_scan() 1282 memcpy(ssids[i].ssid, arg->ssids[i].ssid, arg->ssids[i].len); ath10k_wmi_tlv_op_gen_start_scan() 1292 for (i = 0; i < arg->n_bssids; i++) ath10k_wmi_tlv_op_gen_start_scan() 1293 ether_addr_copy(addrs[i].addr, arg->bssids[i].bssid); ath10k_wmi_tlv_op_gen_start_scan() 1301 memcpy(tlv->value, arg->ie, arg->ie_len); ath10k_wmi_tlv_op_gen_start_scan() 1312 const struct wmi_stop_scan_arg *arg) ath10k_wmi_tlv_op_gen_stop_scan() 1320 if (arg->req_id > 0xFFF) ath10k_wmi_tlv_op_gen_stop_scan() 1322 if (arg->req_type == WMI_SCAN_STOP_ONE && arg->u.scan_id > 0xFFF) ath10k_wmi_tlv_op_gen_stop_scan() 1329 scan_id = arg->u.scan_id; ath10k_wmi_tlv_op_gen_stop_scan() 1332 req_id = arg->req_id; ath10k_wmi_tlv_op_gen_stop_scan() 1339 cmd->req_type = __cpu_to_le32(arg->req_type); ath10k_wmi_tlv_op_gen_stop_scan() 1340 cmd->vdev_id = __cpu_to_le32(arg->u.vdev_id); ath10k_wmi_tlv_op_gen_stop_scan() 1399 const struct wmi_vdev_start_request_arg *arg, ath10k_wmi_tlv_op_gen_vdev_start() 1411 if (WARN_ON(arg->ssid && arg->ssid_len == 0)) ath10k_wmi_tlv_op_gen_vdev_start() 1413 if (WARN_ON(arg->hidden_ssid && !arg->ssid)) ath10k_wmi_tlv_op_gen_vdev_start() 1415 if (WARN_ON(arg->ssid_len > sizeof(cmd->ssid.ssid))) ath10k_wmi_tlv_op_gen_vdev_start() 1425 if (arg->hidden_ssid) ath10k_wmi_tlv_op_gen_vdev_start() 1427 if (arg->pmf_enabled) ath10k_wmi_tlv_op_gen_vdev_start() 1436 cmd->vdev_id = __cpu_to_le32(arg->vdev_id); ath10k_wmi_tlv_op_gen_vdev_start() 1437 cmd->bcn_intval = __cpu_to_le32(arg->bcn_intval); ath10k_wmi_tlv_op_gen_vdev_start() 1438 cmd->dtim_period = __cpu_to_le32(arg->dtim_period); ath10k_wmi_tlv_op_gen_vdev_start() 1440 cmd->bcn_tx_rate = __cpu_to_le32(arg->bcn_tx_rate); ath10k_wmi_tlv_op_gen_vdev_start() 1441 cmd->bcn_tx_power = __cpu_to_le32(arg->bcn_tx_power); ath10k_wmi_tlv_op_gen_vdev_start() 1442 cmd->disable_hw_ack = __cpu_to_le32(arg->disable_hw_ack); ath10k_wmi_tlv_op_gen_vdev_start() 1444 if (arg->ssid) { ath10k_wmi_tlv_op_gen_vdev_start() 1445 cmd->ssid.ssid_len = __cpu_to_le32(arg->ssid_len); ath10k_wmi_tlv_op_gen_vdev_start() 1446 memcpy(cmd->ssid.ssid, arg->ssid, arg->ssid_len); ath10k_wmi_tlv_op_gen_vdev_start() 1456 ath10k_wmi_put_wmi_channel(ch, &arg->channel); ath10k_wmi_tlv_op_gen_vdev_start() 1570 const struct wmi_vdev_install_key_arg *arg) ath10k_wmi_tlv_op_gen_vdev_install_key() 1578 if (arg->key_cipher == WMI_CIPHER_NONE && arg->key_data != NULL) ath10k_wmi_tlv_op_gen_vdev_install_key() 1580 if (arg->key_cipher != WMI_CIPHER_NONE && arg->key_data == NULL) ath10k_wmi_tlv_op_gen_vdev_install_key() 1584 sizeof(*tlv) + roundup(arg->key_len, sizeof(__le32)); ath10k_wmi_tlv_op_gen_vdev_install_key() 1594 cmd->vdev_id = __cpu_to_le32(arg->vdev_id); ath10k_wmi_tlv_op_gen_vdev_install_key() 1595 cmd->key_idx = __cpu_to_le32(arg->key_idx); ath10k_wmi_tlv_op_gen_vdev_install_key() 1596 cmd->key_flags = __cpu_to_le32(arg->key_flags); ath10k_wmi_tlv_op_gen_vdev_install_key() 1597 cmd->key_cipher = __cpu_to_le32(arg->key_cipher); ath10k_wmi_tlv_op_gen_vdev_install_key() 1598 cmd->key_len = __cpu_to_le32(arg->key_len); ath10k_wmi_tlv_op_gen_vdev_install_key() 1599 cmd->key_txmic_len = __cpu_to_le32(arg->key_txmic_len); ath10k_wmi_tlv_op_gen_vdev_install_key() 1600 cmd->key_rxmic_len = __cpu_to_le32(arg->key_rxmic_len); ath10k_wmi_tlv_op_gen_vdev_install_key() 1602 if (arg->macaddr) ath10k_wmi_tlv_op_gen_vdev_install_key() 1603 ether_addr_copy(cmd->peer_macaddr.addr, arg->macaddr); ath10k_wmi_tlv_op_gen_vdev_install_key() 1610 tlv->len = __cpu_to_le16(roundup(arg->key_len, sizeof(__le32))); ath10k_wmi_tlv_op_gen_vdev_install_key() 1611 if (arg->key_data) ath10k_wmi_tlv_op_gen_vdev_install_key() 1612 memcpy(tlv->value, arg->key_data, arg->key_len); ath10k_wmi_tlv_op_gen_vdev_install_key() 1615 ptr += roundup(arg->key_len, sizeof(__le32)); ath10k_wmi_tlv_op_gen_vdev_install_key() 1622 const struct wmi_sta_uapsd_auto_trig_arg *arg) ath10k_wmi_tlv_put_uapsd_ac() 1632 ac->wmm_ac = __cpu_to_le32(arg->wmm_ac); ath10k_wmi_tlv_put_uapsd_ac() 1633 ac->user_priority = __cpu_to_le32(arg->user_priority); ath10k_wmi_tlv_put_uapsd_ac() 1634 ac->service_interval = __cpu_to_le32(arg->service_interval); ath10k_wmi_tlv_put_uapsd_ac() 1635 ac->suspend_interval = __cpu_to_le32(arg->suspend_interval); ath10k_wmi_tlv_put_uapsd_ac() 1636 ac->delay_interval = __cpu_to_le32(arg->delay_interval); ath10k_wmi_tlv_put_uapsd_ac() 1694 const struct wmi_wmm_params_arg *arg) ath10k_wmi_tlv_put_wmm() 1703 ath10k_wmi_set_wmm_param(wmm, arg); ath10k_wmi_tlv_put_wmm() 1710 const struct wmi_wmm_params_all_arg *arg) ath10k_wmi_tlv_op_gen_vdev_wmm_conf() 1730 ath10k_wmi_set_wmm_param(&cmd->vdev_wmm_params[0].params, &arg->ac_be); ath10k_wmi_tlv_op_gen_vdev_wmm_conf() 1731 ath10k_wmi_set_wmm_param(&cmd->vdev_wmm_params[1].params, &arg->ac_bk); ath10k_wmi_tlv_op_gen_vdev_wmm_conf() 1732 ath10k_wmi_set_wmm_param(&cmd->vdev_wmm_params[2].params, &arg->ac_vi); ath10k_wmi_tlv_op_gen_vdev_wmm_conf() 1733 ath10k_wmi_set_wmm_param(&cmd->vdev_wmm_params[3].params, &arg->ac_vo); ath10k_wmi_tlv_op_gen_vdev_wmm_conf() 1741 const struct wmi_sta_keepalive_arg *arg) ath10k_wmi_tlv_op_gen_sta_keepalive() 1761 cmd->vdev_id = __cpu_to_le32(arg->vdev_id); ath10k_wmi_tlv_op_gen_sta_keepalive() 1762 cmd->enabled = __cpu_to_le32(arg->enabled); ath10k_wmi_tlv_op_gen_sta_keepalive() 1763 cmd->method = __cpu_to_le32(arg->method); ath10k_wmi_tlv_op_gen_sta_keepalive() 1764 cmd->interval = __cpu_to_le32(arg->interval); ath10k_wmi_tlv_op_gen_sta_keepalive() 1774 arp->src_ip4_addr = arg->src_ip4_addr; ath10k_wmi_tlv_op_gen_sta_keepalive() 1775 arp->dest_ip4_addr = arg->dest_ip4_addr; ath10k_wmi_tlv_op_gen_sta_keepalive() 1776 ether_addr_copy(arp->dest_mac_addr.addr, arg->dest_mac_addr); ath10k_wmi_tlv_op_gen_sta_keepalive() 1779 arg->vdev_id, arg->enabled, arg->method, arg->interval); ath10k_wmi_tlv_op_gen_sta_keepalive() 1883 const struct wmi_peer_assoc_complete_arg *arg) ath10k_wmi_tlv_op_gen_peer_assoc() 1892 if (arg->peer_mpdu_density > 16) ath10k_wmi_tlv_op_gen_peer_assoc() 1894 if (arg->peer_legacy_rates.num_rates > MAX_SUPPORTED_RATES) ath10k_wmi_tlv_op_gen_peer_assoc() 1896 if (arg->peer_ht_rates.num_rates > MAX_SUPPORTED_RATES) ath10k_wmi_tlv_op_gen_peer_assoc() 1899 legacy_rate_len = roundup(arg->peer_legacy_rates.num_rates, ath10k_wmi_tlv_op_gen_peer_assoc() 1901 ht_rate_len = roundup(arg->peer_ht_rates.num_rates, sizeof(__le32)); ath10k_wmi_tlv_op_gen_peer_assoc() 1916 cmd->vdev_id = __cpu_to_le32(arg->vdev_id); ath10k_wmi_tlv_op_gen_peer_assoc() 1917 cmd->new_assoc = __cpu_to_le32(arg->peer_reassoc ? 0 : 1); ath10k_wmi_tlv_op_gen_peer_assoc() 1918 cmd->assoc_id = __cpu_to_le32(arg->peer_aid); ath10k_wmi_tlv_op_gen_peer_assoc() 1919 cmd->flags = __cpu_to_le32(arg->peer_flags); ath10k_wmi_tlv_op_gen_peer_assoc() 1920 cmd->caps = __cpu_to_le32(arg->peer_caps); ath10k_wmi_tlv_op_gen_peer_assoc() 1921 cmd->listen_intval = __cpu_to_le32(arg->peer_listen_intval); ath10k_wmi_tlv_op_gen_peer_assoc() 1922 cmd->ht_caps = __cpu_to_le32(arg->peer_ht_caps); ath10k_wmi_tlv_op_gen_peer_assoc() 1923 cmd->max_mpdu = __cpu_to_le32(arg->peer_max_mpdu); ath10k_wmi_tlv_op_gen_peer_assoc() 1924 cmd->mpdu_density = __cpu_to_le32(arg->peer_mpdu_density); ath10k_wmi_tlv_op_gen_peer_assoc() 1925 cmd->rate_caps = __cpu_to_le32(arg->peer_rate_caps); ath10k_wmi_tlv_op_gen_peer_assoc() 1926 cmd->nss = __cpu_to_le32(arg->peer_num_spatial_streams); ath10k_wmi_tlv_op_gen_peer_assoc() 1927 cmd->vht_caps = __cpu_to_le32(arg->peer_vht_caps); ath10k_wmi_tlv_op_gen_peer_assoc() 1928 cmd->phy_mode = __cpu_to_le32(arg->peer_phymode); ath10k_wmi_tlv_op_gen_peer_assoc() 1929 cmd->num_legacy_rates = __cpu_to_le32(arg->peer_legacy_rates.num_rates); ath10k_wmi_tlv_op_gen_peer_assoc() 1930 cmd->num_ht_rates = __cpu_to_le32(arg->peer_ht_rates.num_rates); ath10k_wmi_tlv_op_gen_peer_assoc() 1931 ether_addr_copy(cmd->mac_addr.addr, arg->addr); ath10k_wmi_tlv_op_gen_peer_assoc() 1939 memcpy(tlv->value, arg->peer_legacy_rates.rates, ath10k_wmi_tlv_op_gen_peer_assoc() 1940 arg->peer_legacy_rates.num_rates); ath10k_wmi_tlv_op_gen_peer_assoc() 1948 memcpy(tlv->value, arg->peer_ht_rates.rates, ath10k_wmi_tlv_op_gen_peer_assoc() 1949 arg->peer_ht_rates.num_rates); ath10k_wmi_tlv_op_gen_peer_assoc() 1959 vht_rate->rx_max_rate = __cpu_to_le32(arg->peer_vht_rates.rx_max_rate); ath10k_wmi_tlv_op_gen_peer_assoc() 1960 vht_rate->rx_mcs_set = __cpu_to_le32(arg->peer_vht_rates.rx_mcs_set); ath10k_wmi_tlv_op_gen_peer_assoc() 1961 vht_rate->tx_max_rate = __cpu_to_le32(arg->peer_vht_rates.tx_max_rate); ath10k_wmi_tlv_op_gen_peer_assoc() 1962 vht_rate->tx_mcs_set = __cpu_to_le32(arg->peer_vht_rates.tx_mcs_set); ath10k_wmi_tlv_op_gen_peer_assoc() 2049 const struct wmi_scan_chan_list_arg *arg) ath10k_wmi_tlv_op_gen_scan_chan_list() 2060 chans_len = arg->n_channels * (sizeof(*tlv) + sizeof(*ci)); ath10k_wmi_tlv_op_gen_scan_chan_list() 2073 cmd->num_scan_chans = __cpu_to_le32(arg->n_channels); ath10k_wmi_tlv_op_gen_scan_chan_list() 2083 for (i = 0; i < arg->n_channels; i++) { ath10k_wmi_tlv_op_gen_scan_chan_list() 2084 ch = &arg->channels[i]; ath10k_wmi_tlv_op_gen_scan_chan_list() 2147 const struct wmi_wmm_params_all_arg *arg) ath10k_wmi_tlv_op_gen_pdev_set_wmm() 2174 ptr = ath10k_wmi_tlv_put_wmm(ptr, &arg->ac_be); ath10k_wmi_tlv_op_gen_pdev_set_wmm() 2175 ptr = ath10k_wmi_tlv_put_wmm(ptr, &arg->ac_bk); ath10k_wmi_tlv_op_gen_pdev_set_wmm() 2176 ptr = ath10k_wmi_tlv_put_wmm(ptr, &arg->ac_vi); ath10k_wmi_tlv_op_gen_pdev_set_wmm() 2177 ptr = ath10k_wmi_tlv_put_wmm(ptr, &arg->ac_vo); ath10k_wmi_tlv_op_gen_pdev_set_wmm() 428 ath10k_wmi_tlv_op_pull_scan_ev(struct ath10k *ar, struct sk_buff *skb, struct wmi_scan_ev_arg *arg) ath10k_wmi_tlv_op_pull_scan_ev() argument 460 ath10k_wmi_tlv_op_pull_mgmt_rx_ev(struct ath10k *ar, struct sk_buff *skb, struct wmi_mgmt_rx_ev_arg *arg) ath10k_wmi_tlv_op_pull_mgmt_rx_ev() argument 509 ath10k_wmi_tlv_op_pull_ch_info_ev(struct ath10k *ar, struct sk_buff *skb, struct wmi_ch_info_ev_arg *arg) ath10k_wmi_tlv_op_pull_ch_info_ev() argument 542 ath10k_wmi_tlv_op_pull_vdev_start_ev(struct ath10k *ar, struct sk_buff *skb, struct wmi_vdev_start_ev_arg *arg) ath10k_wmi_tlv_op_pull_vdev_start_ev() argument 572 ath10k_wmi_tlv_op_pull_peer_kick_ev(struct ath10k *ar, struct sk_buff *skb, struct wmi_peer_kick_ev_arg *arg) ath10k_wmi_tlv_op_pull_peer_kick_ev() argument 671 ath10k_wmi_tlv_op_pull_swba_ev(struct ath10k *ar, struct sk_buff *skb, struct wmi_swba_ev_arg *arg) ath10k_wmi_tlv_op_pull_swba_ev() argument 703 ath10k_wmi_tlv_op_pull_phyerr_ev(struct ath10k *ar, struct sk_buff *skb, struct wmi_phyerr_ev_arg *arg) ath10k_wmi_tlv_op_pull_phyerr_ev() argument 768 ath10k_wmi_tlv_op_pull_svc_rdy_ev(struct ath10k *ar, struct sk_buff *skb, struct wmi_svc_rdy_ev_arg *arg) ath10k_wmi_tlv_op_pull_svc_rdy_ev() argument 842 ath10k_wmi_tlv_op_pull_rdy_ev(struct ath10k *ar, struct sk_buff *skb, struct wmi_rdy_ev_arg *arg) ath10k_wmi_tlv_op_pull_rdy_ev() argument 1213 ath10k_wmi_tlv_op_gen_start_scan(struct ath10k *ar, const struct wmi_start_scan_arg *arg) ath10k_wmi_tlv_op_gen_start_scan() argument 1311 ath10k_wmi_tlv_op_gen_stop_scan(struct ath10k *ar, const struct wmi_stop_scan_arg *arg) ath10k_wmi_tlv_op_gen_stop_scan() argument 1398 ath10k_wmi_tlv_op_gen_vdev_start(struct ath10k *ar, const struct wmi_vdev_start_request_arg *arg, bool restart) ath10k_wmi_tlv_op_gen_vdev_start() argument 1569 ath10k_wmi_tlv_op_gen_vdev_install_key(struct ath10k *ar, const struct wmi_vdev_install_key_arg *arg) ath10k_wmi_tlv_op_gen_vdev_install_key() argument 1621 ath10k_wmi_tlv_put_uapsd_ac(struct ath10k *ar, void *ptr, const struct wmi_sta_uapsd_auto_trig_arg *arg) ath10k_wmi_tlv_put_uapsd_ac() argument 1693 ath10k_wmi_tlv_put_wmm(void *ptr, const struct wmi_wmm_params_arg *arg) ath10k_wmi_tlv_put_wmm() argument 1709 ath10k_wmi_tlv_op_gen_vdev_wmm_conf(struct ath10k *ar, u32 vdev_id, const struct wmi_wmm_params_all_arg *arg) ath10k_wmi_tlv_op_gen_vdev_wmm_conf() argument 1740 ath10k_wmi_tlv_op_gen_sta_keepalive(struct ath10k *ar, const struct wmi_sta_keepalive_arg *arg) ath10k_wmi_tlv_op_gen_sta_keepalive() argument 1882 ath10k_wmi_tlv_op_gen_peer_assoc(struct ath10k *ar, const struct wmi_peer_assoc_complete_arg *arg) ath10k_wmi_tlv_op_gen_peer_assoc() argument 2048 ath10k_wmi_tlv_op_gen_scan_chan_list(struct ath10k *ar, const struct wmi_scan_chan_list_arg *arg) ath10k_wmi_tlv_op_gen_scan_chan_list() argument 2146 ath10k_wmi_tlv_op_gen_pdev_set_wmm(struct ath10k *ar, const struct wmi_wmm_params_all_arg *arg) ath10k_wmi_tlv_op_gen_pdev_set_wmm() argument
|
H A D | wmi-ops.h | 29 struct wmi_scan_ev_arg *arg); 31 struct wmi_mgmt_rx_ev_arg *arg); 33 struct wmi_ch_info_ev_arg *arg); 35 struct wmi_vdev_start_ev_arg *arg); 37 struct wmi_peer_kick_ev_arg *arg); 39 struct wmi_swba_ev_arg *arg); 41 struct wmi_phyerr_ev_arg *arg); 43 struct wmi_svc_rdy_ev_arg *arg); 45 struct wmi_rdy_ev_arg *arg); 58 const struct wmi_start_scan_arg *arg); 60 const struct wmi_stop_scan_arg *arg); 67 const struct wmi_vdev_start_request_arg *arg, 76 const struct wmi_vdev_install_key_arg *arg); 78 const struct wmi_vdev_spectral_conf_arg *arg); 82 const struct wmi_wmm_params_all_arg *arg); 95 const struct wmi_peer_assoc_complete_arg *arg); 106 const struct wmi_scan_chan_list_arg *arg); 112 const struct wmi_wmm_params_all_arg *arg); 150 const struct wmi_sta_keepalive_arg *arg); 178 struct wmi_scan_ev_arg *arg) ath10k_wmi_pull_scan() 183 return ar->wmi.ops->pull_scan(ar, skb, arg); ath10k_wmi_pull_scan() 188 struct wmi_mgmt_rx_ev_arg *arg) ath10k_wmi_pull_mgmt_rx() 193 return ar->wmi.ops->pull_mgmt_rx(ar, skb, arg); ath10k_wmi_pull_mgmt_rx() 198 struct wmi_ch_info_ev_arg *arg) ath10k_wmi_pull_ch_info() 203 return ar->wmi.ops->pull_ch_info(ar, skb, arg); ath10k_wmi_pull_ch_info() 208 struct wmi_vdev_start_ev_arg *arg) ath10k_wmi_pull_vdev_start() 213 return ar->wmi.ops->pull_vdev_start(ar, skb, arg); ath10k_wmi_pull_vdev_start() 218 struct wmi_peer_kick_ev_arg *arg) ath10k_wmi_pull_peer_kick() 223 return ar->wmi.ops->pull_peer_kick(ar, skb, arg); ath10k_wmi_pull_peer_kick() 228 struct wmi_swba_ev_arg *arg) ath10k_wmi_pull_swba() 233 return ar->wmi.ops->pull_swba(ar, skb, arg); ath10k_wmi_pull_swba() 238 struct wmi_phyerr_ev_arg *arg) ath10k_wmi_pull_phyerr() 243 return ar->wmi.ops->pull_phyerr(ar, skb, arg); ath10k_wmi_pull_phyerr() 248 struct wmi_svc_rdy_ev_arg *arg) ath10k_wmi_pull_svc_rdy() 253 return ar->wmi.ops->pull_svc_rdy(ar, skb, arg); ath10k_wmi_pull_svc_rdy() 258 struct wmi_rdy_ev_arg *arg) ath10k_wmi_pull_rdy() 263 return ar->wmi.ops->pull_rdy(ar, skb, arg); ath10k_wmi_pull_rdy() 383 const struct wmi_start_scan_arg *arg) ath10k_wmi_start_scan() 390 skb = ar->wmi.ops->gen_start_scan(ar, arg); ath10k_wmi_start_scan() 398 ath10k_wmi_stop_scan(struct ath10k *ar, const struct wmi_stop_scan_arg *arg) ath10k_wmi_stop_scan() argument 405 skb = ar->wmi.ops->gen_stop_scan(ar, arg); ath10k_wmi_stop_scan() 447 const struct wmi_vdev_start_request_arg *arg) ath10k_wmi_vdev_start() 454 skb = ar->wmi.ops->gen_vdev_start(ar, arg, false); ath10k_wmi_vdev_start() 464 const struct wmi_vdev_start_request_arg *arg) ath10k_wmi_vdev_restart() 471 skb = ar->wmi.ops->gen_vdev_start(ar, arg, true); ath10k_wmi_vdev_restart() 543 const struct wmi_vdev_install_key_arg *arg) ath10k_wmi_vdev_install_key() 550 skb = ar->wmi.ops->gen_vdev_install_key(ar, arg); ath10k_wmi_vdev_install_key() 560 const struct wmi_vdev_spectral_conf_arg *arg) ath10k_wmi_vdev_spectral_conf() 565 skb = ar->wmi.ops->gen_vdev_spectral_conf(ar, arg); ath10k_wmi_vdev_spectral_conf() 612 const struct wmi_wmm_params_all_arg *arg) ath10k_wmi_vdev_wmm_conf() 617 skb = ar->wmi.ops->gen_vdev_wmm_conf(ar, vdev_id, arg); ath10k_wmi_vdev_wmm_conf() 743 const struct wmi_scan_chan_list_arg *arg) ath10k_wmi_scan_chan_list() 750 skb = ar->wmi.ops->gen_scan_chan_list(ar, arg); ath10k_wmi_scan_chan_list() 759 const struct wmi_peer_assoc_complete_arg *arg) ath10k_wmi_peer_assoc() 766 skb = ar->wmi.ops->gen_peer_assoc(ar, arg); ath10k_wmi_peer_assoc() 802 const struct wmi_wmm_params_all_arg *arg) ath10k_wmi_pdev_set_wmm_params() 809 skb = ar->wmi.ops->gen_pdev_set_wmm(ar, arg); ath10k_wmi_pdev_set_wmm_params() 1047 const struct wmi_sta_keepalive_arg *arg) ath10k_wmi_sta_keepalive() 1055 skb = ar->wmi.ops->gen_sta_keepalive(ar, arg); ath10k_wmi_sta_keepalive() 177 ath10k_wmi_pull_scan(struct ath10k *ar, struct sk_buff *skb, struct wmi_scan_ev_arg *arg) ath10k_wmi_pull_scan() argument 187 ath10k_wmi_pull_mgmt_rx(struct ath10k *ar, struct sk_buff *skb, struct wmi_mgmt_rx_ev_arg *arg) ath10k_wmi_pull_mgmt_rx() argument 197 ath10k_wmi_pull_ch_info(struct ath10k *ar, struct sk_buff *skb, struct wmi_ch_info_ev_arg *arg) ath10k_wmi_pull_ch_info() argument 207 ath10k_wmi_pull_vdev_start(struct ath10k *ar, struct sk_buff *skb, struct wmi_vdev_start_ev_arg *arg) ath10k_wmi_pull_vdev_start() argument 217 ath10k_wmi_pull_peer_kick(struct ath10k *ar, struct sk_buff *skb, struct wmi_peer_kick_ev_arg *arg) ath10k_wmi_pull_peer_kick() argument 227 ath10k_wmi_pull_swba(struct ath10k *ar, struct sk_buff *skb, struct wmi_swba_ev_arg *arg) ath10k_wmi_pull_swba() argument 237 ath10k_wmi_pull_phyerr(struct ath10k *ar, struct sk_buff *skb, struct wmi_phyerr_ev_arg *arg) ath10k_wmi_pull_phyerr() argument 247 ath10k_wmi_pull_svc_rdy(struct ath10k *ar, struct sk_buff *skb, struct wmi_svc_rdy_ev_arg *arg) ath10k_wmi_pull_svc_rdy() argument 257 ath10k_wmi_pull_rdy(struct ath10k *ar, struct sk_buff *skb, struct wmi_rdy_ev_arg *arg) ath10k_wmi_pull_rdy() argument 382 ath10k_wmi_start_scan(struct ath10k *ar, const struct wmi_start_scan_arg *arg) ath10k_wmi_start_scan() argument 446 ath10k_wmi_vdev_start(struct ath10k *ar, const struct wmi_vdev_start_request_arg *arg) ath10k_wmi_vdev_start() argument 463 ath10k_wmi_vdev_restart(struct ath10k *ar, const struct wmi_vdev_start_request_arg *arg) ath10k_wmi_vdev_restart() argument 542 ath10k_wmi_vdev_install_key(struct ath10k *ar, const struct wmi_vdev_install_key_arg *arg) ath10k_wmi_vdev_install_key() argument 559 ath10k_wmi_vdev_spectral_conf(struct ath10k *ar, const struct wmi_vdev_spectral_conf_arg *arg) ath10k_wmi_vdev_spectral_conf() argument 611 ath10k_wmi_vdev_wmm_conf(struct ath10k *ar, u32 vdev_id, const struct wmi_wmm_params_all_arg *arg) ath10k_wmi_vdev_wmm_conf() argument 742 ath10k_wmi_scan_chan_list(struct ath10k *ar, const struct wmi_scan_chan_list_arg *arg) ath10k_wmi_scan_chan_list() argument 758 ath10k_wmi_peer_assoc(struct ath10k *ar, const struct wmi_peer_assoc_complete_arg *arg) ath10k_wmi_peer_assoc() argument 801 ath10k_wmi_pdev_set_wmm_params(struct ath10k *ar, const struct wmi_wmm_params_all_arg *arg) ath10k_wmi_pdev_set_wmm_params() argument 1046 ath10k_wmi_sta_keepalive(struct ath10k *ar, const struct wmi_sta_keepalive_arg *arg) ath10k_wmi_sta_keepalive() argument
|
/linux-4.1.27/arch/um/drivers/ |
H A D | ubd.h | 11 extern int io_thread(void *arg);
|
H A D | cow.h | 10 extern int file_reader(__u64 offset, char *buf, int len, void *arg); 12 void *arg, __u32 *version_out,
|
H A D | net_user.c | 172 static void change_pre_exec(void *arg) change_pre_exec() argument 174 struct change_pre_exec_data *data = arg; change_pre_exec() 240 void open_addr(unsigned char *addr, unsigned char *netmask, void *arg) open_addr() argument 242 change(arg, "add", addr, netmask); open_addr() 245 void close_addr(unsigned char *addr, unsigned char *netmask, void *arg) close_addr() argument 247 change(arg, "del", addr, netmask); close_addr() 252 char **arg, *end; split_if_spec() local 256 while ((arg = va_arg(ap, char **)) != NULL) { split_if_spec() 261 *arg = str; split_if_spec()
|
H A D | port_user.c | 114 int fd, err, arg; port_listen_fd() local 120 arg = 1; port_listen_fd() 121 if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &arg, sizeof(arg)) < 0) { port_listen_fd() 154 static void port_pre_exec(void *arg) port_pre_exec() argument 156 struct port_pre_exec_data *data = arg; port_pre_exec()
|
/linux-4.1.27/drivers/usb/atm/ |
H A D | usbatm.h | 43 #define usb_err(instance, format, arg...) \ 44 dev_err(&(instance)->usb_intf->dev , format , ## arg) 45 #define usb_info(instance, format, arg...) \ 46 dev_info(&(instance)->usb_intf->dev , format , ## arg) 47 #define usb_warn(instance, format, arg...) \ 48 dev_warn(&(instance)->usb_intf->dev , format , ## arg) 49 #define usb_dbg(instance, format, arg...) \ 50 dev_dbg(&(instance)->usb_intf->dev , format , ## arg) 53 #define atm_printk(level, instance, format, arg...) \ 55 (instance)->atm_dev->number , ## arg) 57 #define atm_err(instance, format, arg...) \ 58 atm_printk(KERN_ERR, instance , format , ## arg) 59 #define atm_info(instance, format, arg...) \ 60 atm_printk(KERN_INFO, instance , format , ## arg) 61 #define atm_warn(instance, format, arg...) \ 62 atm_printk(KERN_WARNING, instance , format , ## arg)
|
/linux-4.1.27/arch/arm/mach-highbank/ |
H A D | core.h | 15 extern void highbank_smc1(int fn, int arg);
|
/linux-4.1.27/tools/testing/selftests/firmware/ |
H A D | Makefile | 3 # No binaries, but make sure arg-less "make" doesn't trigger "run_tests"
|
/linux-4.1.27/tools/testing/selftests/sysctl/ |
H A D | Makefile | 4 # No binaries, but make sure arg-less "make" doesn't trigger "run_tests".
|
/linux-4.1.27/fs/ext2/ |
H A D | ioctl.c | 20 long ext2_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) ext2_ioctl() argument 28 ext2_debug ("cmd = %u, arg = %lu\n", cmd, arg); ext2_ioctl() 34 return put_user(flags, (int __user *) arg); ext2_ioctl() 47 if (get_user(flags, (int __user *) arg)) { ext2_ioctl() 91 return put_user(inode->i_generation, (int __user *) arg); ext2_ioctl() 100 if (get_user(generation, (int __user *) arg)) { ext2_ioctl() 120 return put_user(rsv_window_size, (int __user *)arg); ext2_ioctl() 131 if (get_user(rsv_window_size, (int __user *)arg)) ext2_ioctl() 167 long ext2_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) ext2_compat_ioctl() argument 186 return ext2_ioctl(file, cmd, (unsigned long) compat_ptr(arg)); ext2_compat_ioctl()
|
/linux-4.1.27/sound/synth/emux/ |
H A D | emux_hwdep.c | 34 snd_emux_hwdep_load_patch(struct snd_emux *emu, void __user *arg) snd_emux_hwdep_load_patch() argument 39 if (copy_from_user(&patch, arg, sizeof(patch))) snd_emux_hwdep_load_patch() 44 err = snd_soundfont_load(emu->sflist, arg, patch.len + sizeof(patch), TMP_CLIENT_ID); snd_emux_hwdep_load_patch() 49 return emu->ops.load_fx(emu, patch.type, patch.optarg, arg, patch.len + sizeof(patch)); snd_emux_hwdep_load_patch() 60 snd_emux_hwdep_misc_mode(struct snd_emux *emu, void __user *arg) snd_emux_hwdep_misc_mode() argument 65 if (copy_from_user(&info, arg, sizeof(info))) snd_emux_hwdep_misc_mode() 86 unsigned int cmd, unsigned long arg) snd_emux_hwdep_ioctl() 92 return put_user(SNDRV_EMUX_VERSION, (unsigned int __user *)arg); snd_emux_hwdep_ioctl() 94 return snd_emux_hwdep_load_patch(emu, (void __user *)arg); snd_emux_hwdep_ioctl() 104 return put_user(size, (unsigned int __user *)arg); snd_emux_hwdep_ioctl() 108 return snd_emux_hwdep_misc_mode(emu, (void __user *)arg); snd_emux_hwdep_ioctl() 85 snd_emux_hwdep_ioctl(struct snd_hwdep * hw, struct file *file, unsigned int cmd, unsigned long arg) snd_emux_hwdep_ioctl() argument
|
H A D | emux_oss.c | 34 static int snd_emux_open_seq_oss(struct snd_seq_oss_arg *arg, void *closure); 35 static int snd_emux_close_seq_oss(struct snd_seq_oss_arg *arg); 36 static int snd_emux_ioctl_seq_oss(struct snd_seq_oss_arg *arg, unsigned int cmd, 38 static int snd_emux_load_patch_seq_oss(struct snd_seq_oss_arg *arg, int format, 40 static int snd_emux_reset_seq_oss(struct snd_seq_oss_arg *arg); 69 struct snd_seq_oss_reg *arg; snd_emux_init_seq_oss() local 79 arg = SNDRV_SEQ_DEVICE_ARGPTR(dev); snd_emux_init_seq_oss() 80 arg->type = SYNTH_TYPE_SAMPLE; snd_emux_init_seq_oss() 81 arg->subtype = SAMPLE_TYPE_AWE32; snd_emux_init_seq_oss() 82 arg->nvoices = emu->max_voices; snd_emux_init_seq_oss() 83 arg->oper = oss_callback; snd_emux_init_seq_oss() 84 arg->private_data = emu; snd_emux_init_seq_oss() 111 snd_emux_open_seq_oss(struct snd_seq_oss_arg *arg, void *closure) snd_emux_open_seq_oss() argument 119 if (snd_BUG_ON(!arg || !emu)) snd_emux_open_seq_oss() 139 arg->private_data = p; snd_emux_open_seq_oss() 140 arg->addr.client = p->chset.client; snd_emux_open_seq_oss() 141 arg->addr.port = p->chset.port; snd_emux_open_seq_oss() 142 p->oss_arg = arg; snd_emux_open_seq_oss() 144 reset_port_mode(p, arg->seq_mode); snd_emux_open_seq_oss() 177 snd_emux_close_seq_oss(struct snd_seq_oss_arg *arg) snd_emux_close_seq_oss() argument 182 if (snd_BUG_ON(!arg)) snd_emux_close_seq_oss() 184 p = arg->private_data; snd_emux_close_seq_oss() 205 snd_emux_load_patch_seq_oss(struct snd_seq_oss_arg *arg, int format, snd_emux_load_patch_seq_oss() argument 212 if (snd_BUG_ON(!arg)) snd_emux_load_patch_seq_oss() 214 p = arg->private_data; snd_emux_load_patch_seq_oss() 250 snd_emux_ioctl_seq_oss(struct snd_seq_oss_arg *arg, unsigned int cmd, unsigned long ioarg) snd_emux_ioctl_seq_oss() argument 255 if (snd_BUG_ON(!arg)) snd_emux_ioctl_seq_oss() 257 p = arg->private_data; snd_emux_ioctl_seq_oss() 284 snd_emux_reset_seq_oss(struct snd_seq_oss_arg *arg) snd_emux_reset_seq_oss() argument 288 if (snd_BUG_ON(!arg)) snd_emux_reset_seq_oss() 290 p = arg->private_data; snd_emux_reset_seq_oss()
|
/linux-4.1.27/arch/x86/mm/ |
H A D | pgtable_32.c | 70 static int __init parse_vmalloc(char *arg) parse_vmalloc() argument 72 if (!arg) parse_vmalloc() 76 __VMALLOC_RESERVE = memparse(arg, &arg) + VMALLOC_OFFSET; parse_vmalloc() 86 static int __init parse_reservetop(char *arg) parse_reservetop() argument 90 if (!arg) parse_reservetop() 93 address = memparse(arg, &arg); parse_reservetop()
|
H A D | pat_internal.h | 6 #define dprintk(fmt, arg...) \ 7 do { if (pat_debug_enable) printk(KERN_INFO fmt, ##arg); } while (0)
|
/linux-4.1.27/include/net/ |
H A D | netevent.h | 25 NETEVENT_NEIGH_UPDATE = 1, /* arg is struct neighbour ptr */ 26 NETEVENT_REDIRECT, /* arg is struct netevent_redirect ptr */
|
H A D | wext.h | 10 void __user *arg); 12 unsigned long arg); 18 void __user *arg) wext_handle_ioctl() 23 unsigned long arg) compat_wext_handle_ioctl() 17 wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd, void __user *arg) wext_handle_ioctl() argument 22 compat_wext_handle_ioctl(struct net *net, unsigned int cmd, unsigned long arg) compat_wext_handle_ioctl() argument
|
/linux-4.1.27/drivers/media/v4l2-core/ |
H A D | v4l2-ioctl.c | 171 static void v4l_print_querycap(const void *arg, bool write_only) v4l_print_querycap() argument 173 const struct v4l2_capability *p = arg; v4l_print_querycap() 183 static void v4l_print_enuminput(const void *arg, bool write_only) v4l_print_enuminput() argument 185 const struct v4l2_input *p = arg; v4l_print_enuminput() 194 static void v4l_print_enumoutput(const void *arg, bool write_only) v4l_print_enumoutput() argument 196 const struct v4l2_output *p = arg; v4l_print_enumoutput() 204 static void v4l_print_audio(const void *arg, bool write_only) v4l_print_audio() argument 206 const struct v4l2_audio *p = arg; v4l_print_audio() 216 static void v4l_print_audioout(const void *arg, bool write_only) v4l_print_audioout() argument 218 const struct v4l2_audioout *p = arg; v4l_print_audioout() 228 static void v4l_print_fmtdesc(const void *arg, bool write_only) v4l_print_fmtdesc() argument 230 const struct v4l2_fmtdesc *p = arg; v4l_print_fmtdesc() 241 static void v4l_print_format(const void *arg, bool write_only) v4l_print_format() argument 243 const struct v4l2_format *p = arg; v4l_print_format() 338 static void v4l_print_framebuffer(const void *arg, bool write_only) v4l_print_framebuffer() argument 340 const struct v4l2_framebuffer *p = arg; v4l_print_framebuffer() 355 static void v4l_print_buftype(const void *arg, bool write_only) v4l_print_buftype() argument 357 pr_cont("type=%s\n", prt_names(*(u32 *)arg, v4l2_type_names)); v4l_print_buftype() 360 static void v4l_print_modulator(const void *arg, bool write_only) v4l_print_modulator() argument 362 const struct v4l2_modulator *p = arg; v4l_print_modulator() 373 static void v4l_print_tuner(const void *arg, bool write_only) v4l_print_tuner() argument 375 const struct v4l2_tuner *p = arg; v4l_print_tuner() 389 static void v4l_print_frequency(const void *arg, bool write_only) v4l_print_frequency() argument 391 const struct v4l2_frequency *p = arg; v4l_print_frequency() 397 static void v4l_print_standard(const void *arg, bool write_only) v4l_print_standard() argument 399 const struct v4l2_standard *p = arg; v4l_print_standard() 409 static void v4l_print_std(const void *arg, bool write_only) v4l_print_std() argument 411 pr_cont("std=0x%08Lx\n", *(const long long unsigned *)arg); v4l_print_std() 414 static void v4l_print_hw_freq_seek(const void *arg, bool write_only) v4l_print_hw_freq_seek() argument 416 const struct v4l2_hw_freq_seek *p = arg; v4l_print_hw_freq_seek() 424 static void v4l_print_requestbuffers(const void *arg, bool write_only) v4l_print_requestbuffers() argument 426 const struct v4l2_requestbuffers *p = arg; v4l_print_requestbuffers() 434 static void v4l_print_buffer(const void *arg, bool write_only) v4l_print_buffer() argument 436 const struct v4l2_buffer *p = arg; v4l_print_buffer() 473 static void v4l_print_exportbuffer(const void *arg, bool write_only) v4l_print_exportbuffer() argument 475 const struct v4l2_exportbuffer *p = arg; v4l_print_exportbuffer() 482 static void v4l_print_create_buffers(const void *arg, bool write_only) v4l_print_create_buffers() argument 484 const struct v4l2_create_buffers *p = arg; v4l_print_create_buffers() 492 static void v4l_print_streamparm(const void *arg, bool write_only) v4l_print_streamparm() argument 494 const struct v4l2_streamparm *p = arg; v4l_print_streamparm() 521 static void v4l_print_queryctrl(const void *arg, bool write_only) v4l_print_queryctrl() argument 523 const struct v4l2_queryctrl *p = arg; v4l_print_queryctrl() 532 static void v4l_print_query_ext_ctrl(const void *arg, bool write_only) v4l_print_query_ext_ctrl() argument 534 const struct v4l2_query_ext_ctrl *p = arg; v4l_print_query_ext_ctrl() 546 static void v4l_print_querymenu(const void *arg, bool write_only) v4l_print_querymenu() argument 548 const struct v4l2_querymenu *p = arg; v4l_print_querymenu() 553 static void v4l_print_control(const void *arg, bool write_only) v4l_print_control() argument 555 const struct v4l2_control *p = arg; v4l_print_control() 560 static void v4l_print_ext_controls(const void *arg, bool write_only) v4l_print_ext_controls() argument 562 const struct v4l2_ext_controls *p = arg; v4l_print_ext_controls() 578 static void v4l_print_cropcap(const void *arg, bool write_only) v4l_print_cropcap() argument 580 const struct v4l2_cropcap *p = arg; v4l_print_cropcap() 593 static void v4l_print_crop(const void *arg, bool write_only) v4l_print_crop() argument 595 const struct v4l2_crop *p = arg; v4l_print_crop() 603 static void v4l_print_selection(const void *arg, bool write_only) v4l_print_selection() argument 605 const struct v4l2_selection *p = arg; v4l_print_selection() 613 static void v4l_print_jpegcompression(const void *arg, bool write_only) v4l_print_jpegcompression() argument 615 const struct v4l2_jpegcompression *p = arg; v4l_print_jpegcompression() 623 static void v4l_print_enc_idx(const void *arg, bool write_only) v4l_print_enc_idx() argument 625 const struct v4l2_enc_idx *p = arg; v4l_print_enc_idx() 631 static void v4l_print_encoder_cmd(const void *arg, bool write_only) v4l_print_encoder_cmd() argument 633 const struct v4l2_encoder_cmd *p = arg; v4l_print_encoder_cmd() 639 static void v4l_print_decoder_cmd(const void *arg, bool write_only) v4l_print_decoder_cmd() argument 641 const struct v4l2_decoder_cmd *p = arg; v4l_print_decoder_cmd() 652 static void v4l_print_dbg_chip_info(const void *arg, bool write_only) v4l_print_dbg_chip_info() argument 654 const struct v4l2_dbg_chip_info *p = arg; v4l_print_dbg_chip_info() 665 static void v4l_print_dbg_register(const void *arg, bool write_only) v4l_print_dbg_register() argument 667 const struct v4l2_dbg_register *p = arg; v4l_print_dbg_register() 679 static void v4l_print_dv_timings(const void *arg, bool write_only) v4l_print_dv_timings() argument 681 const struct v4l2_dv_timings *p = arg; v4l_print_dv_timings() 708 static void v4l_print_enum_dv_timings(const void *arg, bool write_only) v4l_print_enum_dv_timings() argument 710 const struct v4l2_enum_dv_timings *p = arg; v4l_print_enum_dv_timings() 716 static void v4l_print_dv_timings_cap(const void *arg, bool write_only) v4l_print_dv_timings_cap() argument 718 const struct v4l2_dv_timings_cap *p = arg; v4l_print_dv_timings_cap() 735 static void v4l_print_frmsizeenum(const void *arg, bool write_only) v4l_print_frmsizeenum() argument 737 const struct v4l2_frmsizeenum *p = arg; v4l_print_frmsizeenum() 765 static void v4l_print_frmivalenum(const void *arg, bool write_only) v4l_print_frmivalenum() argument 767 const struct v4l2_frmivalenum *p = arg; v4l_print_frmivalenum() 799 static void v4l_print_event(const void *arg, bool write_only) v4l_print_event() argument 801 const struct v4l2_event *p = arg; v4l_print_event() 833 static void v4l_print_event_subscription(const void *arg, bool write_only) v4l_print_event_subscription() argument 835 const struct v4l2_event_subscription *p = arg; v4l_print_event_subscription() 841 static void v4l_print_sliced_vbi_cap(const void *arg, bool write_only) v4l_print_sliced_vbi_cap() argument 843 const struct v4l2_sliced_vbi_cap *p = arg; v4l_print_sliced_vbi_cap() 854 static void v4l_print_freq_band(const void *arg, bool write_only) v4l_print_freq_band() argument 856 const struct v4l2_frequency_band *p = arg; v4l_print_freq_band() 865 static void v4l_print_edid(const void *arg, bool write_only) v4l_print_edid() argument 867 const struct v4l2_edid *p = arg; v4l_print_edid() 873 static void v4l_print_u32(const void *arg, bool write_only) v4l_print_u32() argument 875 pr_cont("value=%u\n", *(const u32 *)arg); v4l_print_u32() 878 static void v4l_print_newline(const void *arg, bool write_only) v4l_print_newline() argument 883 static void v4l_print_default(const void *arg, bool write_only) v4l_print_default() argument 1012 struct file *file, void *fh, void *arg) v4l_querycap() 1014 struct v4l2_capability *cap = (struct v4l2_capability *)arg; v4l_querycap() 1034 struct file *file, void *fh, void *arg) v4l_s_input() 1036 return ops->vidioc_s_input(file, fh, *(unsigned int *)arg); v4l_s_input() 1040 struct file *file, void *fh, void *arg) v4l_s_output() 1042 return ops->vidioc_s_output(file, fh, *(unsigned int *)arg); v4l_s_output() 1046 struct file *file, void *fh, void *arg) v4l_g_priority() 1049 u32 *p = arg; v4l_g_priority() 1057 struct file *file, void *fh, void *arg) v4l_s_priority() 1061 u32 *p = arg; v4l_s_priority() 1071 struct file *file, void *fh, void *arg) v4l_enuminput() 1074 struct v4l2_input *p = arg; v4l_enuminput() 1089 struct file *file, void *fh, void *arg) v4l_enumoutput() 1092 struct v4l2_output *p = arg; v4l_enumoutput() 1107 struct file *file, void *fh, void *arg) v4l_enum_fmt() 1109 struct v4l2_fmtdesc *p = arg; v4l_enum_fmt() 1120 return ops->vidioc_enum_fmt_vid_cap(file, fh, arg); v4l_enum_fmt() 1124 return ops->vidioc_enum_fmt_vid_cap_mplane(file, fh, arg); v4l_enum_fmt() 1128 return ops->vidioc_enum_fmt_vid_overlay(file, fh, arg); v4l_enum_fmt() 1132 return ops->vidioc_enum_fmt_vid_out(file, fh, arg); v4l_enum_fmt() 1136 return ops->vidioc_enum_fmt_vid_out_mplane(file, fh, arg); v4l_enum_fmt() 1140 return ops->vidioc_enum_fmt_sdr_cap(file, fh, arg); v4l_enum_fmt() 1146 struct file *file, void *fh, void *arg) v4l_g_fmt() 1148 struct v4l2_format *p = arg; v4l_g_fmt() 1185 ret = ops->vidioc_g_fmt_vid_cap(file, fh, arg); v4l_g_fmt() 1192 return ops->vidioc_g_fmt_vid_cap_mplane(file, fh, arg); v4l_g_fmt() 1196 return ops->vidioc_g_fmt_vid_overlay(file, fh, arg); v4l_g_fmt() 1200 return ops->vidioc_g_fmt_vbi_cap(file, fh, arg); v4l_g_fmt() 1204 return ops->vidioc_g_fmt_sliced_vbi_cap(file, fh, arg); v4l_g_fmt() 1209 ret = ops->vidioc_g_fmt_vid_out(file, fh, arg); v4l_g_fmt() 1216 return ops->vidioc_g_fmt_vid_out_mplane(file, fh, arg); v4l_g_fmt() 1220 return ops->vidioc_g_fmt_vid_out_overlay(file, fh, arg); v4l_g_fmt() 1224 return ops->vidioc_g_fmt_vbi_out(file, fh, arg); v4l_g_fmt() 1228 return ops->vidioc_g_fmt_sliced_vbi_out(file, fh, arg); v4l_g_fmt() 1232 return ops->vidioc_g_fmt_sdr_cap(file, fh, arg); v4l_g_fmt() 1238 struct file *file, void *fh, void *arg) v4l_s_fmt() 1240 struct v4l2_format *p = arg; v4l_s_fmt() 1255 ret = ops->vidioc_s_fmt_vid_cap(file, fh, arg); v4l_s_fmt() 1263 return ops->vidioc_s_fmt_vid_cap_mplane(file, fh, arg); v4l_s_fmt() 1268 return ops->vidioc_s_fmt_vid_overlay(file, fh, arg); v4l_s_fmt() 1273 return ops->vidioc_s_fmt_vbi_cap(file, fh, arg); v4l_s_fmt() 1278 return ops->vidioc_s_fmt_sliced_vbi_cap(file, fh, arg); v4l_s_fmt() 1283 ret = ops->vidioc_s_fmt_vid_out(file, fh, arg); v4l_s_fmt() 1291 return ops->vidioc_s_fmt_vid_out_mplane(file, fh, arg); v4l_s_fmt() 1296 return ops->vidioc_s_fmt_vid_out_overlay(file, fh, arg); v4l_s_fmt() 1301 return ops->vidioc_s_fmt_vbi_out(file, fh, arg); v4l_s_fmt() 1306 return ops->vidioc_s_fmt_sliced_vbi_out(file, fh, arg); v4l_s_fmt() 1311 return ops->vidioc_s_fmt_sdr_cap(file, fh, arg); v4l_s_fmt() 1317 struct file *file, void *fh, void *arg) v4l_try_fmt() 1319 struct v4l2_format *p = arg; v4l_try_fmt() 1334 ret = ops->vidioc_try_fmt_vid_cap(file, fh, arg); v4l_try_fmt() 1342 return ops->vidioc_try_fmt_vid_cap_mplane(file, fh, arg); v4l_try_fmt() 1347 return ops->vidioc_try_fmt_vid_overlay(file, fh, arg); v4l_try_fmt() 1352 return ops->vidioc_try_fmt_vbi_cap(file, fh, arg); v4l_try_fmt() 1357 return ops->vidioc_try_fmt_sliced_vbi_cap(file, fh, arg); v4l_try_fmt() 1362 ret = ops->vidioc_try_fmt_vid_out(file, fh, arg); v4l_try_fmt() 1370 return ops->vidioc_try_fmt_vid_out_mplane(file, fh, arg); v4l_try_fmt() 1375 return ops->vidioc_try_fmt_vid_out_overlay(file, fh, arg); v4l_try_fmt() 1380 return ops->vidioc_try_fmt_vbi_out(file, fh, arg); v4l_try_fmt() 1385 return ops->vidioc_try_fmt_sliced_vbi_out(file, fh, arg); v4l_try_fmt() 1390 return ops->vidioc_try_fmt_sdr_cap(file, fh, arg); v4l_try_fmt() 1396 struct file *file, void *fh, void *arg) v4l_streamon() 1398 return ops->vidioc_streamon(file, fh, *(unsigned int *)arg); v4l_streamon() 1402 struct file *file, void *fh, void *arg) v4l_streamoff() 1404 return ops->vidioc_streamoff(file, fh, *(unsigned int *)arg); v4l_streamoff() 1408 struct file *file, void *fh, void *arg) v4l_g_tuner() 1411 struct v4l2_tuner *p = arg; v4l_g_tuner() 1423 struct file *file, void *fh, void *arg) v4l_s_tuner() 1426 struct v4l2_tuner *p = arg; v4l_s_tuner() 1434 struct file *file, void *fh, void *arg) v4l_g_modulator() 1436 struct v4l2_modulator *p = arg; v4l_g_modulator() 1446 struct file *file, void *fh, void *arg) v4l_g_frequency() 1449 struct v4l2_frequency *p = arg; v4l_g_frequency() 1460 struct file *file, void *fh, void *arg) v4l_s_frequency() 1463 const struct v4l2_frequency *p = arg; v4l_s_frequency() 1479 struct file *file, void *fh, void *arg) v4l_enumstd() 1482 struct v4l2_standard *p = arg; v4l_enumstd() 1516 struct file *file, void *fh, void *arg) v4l_s_std() 1519 v4l2_std_id id = *(v4l2_std_id *)arg, norm; v4l_s_std() 1530 struct file *file, void *fh, void *arg) v4l_querystd() 1533 v4l2_std_id *p = arg; v4l_querystd() 1544 return ops->vidioc_querystd(file, fh, arg); v4l_querystd() 1548 struct file *file, void *fh, void *arg) v4l_s_hw_freq_seek() 1551 struct v4l2_hw_freq_seek *p = arg; v4l_s_hw_freq_seek() 1566 struct file *file, void *fh, void *arg) v4l_overlay() 1568 return ops->vidioc_overlay(file, fh, *(unsigned int *)arg); v4l_overlay() 1572 struct file *file, void *fh, void *arg) v4l_reqbufs() 1574 struct v4l2_requestbuffers *p = arg; v4l_reqbufs() 1586 struct file *file, void *fh, void *arg) v4l_querybuf() 1588 struct v4l2_buffer *p = arg; v4l_querybuf() 1595 struct file *file, void *fh, void *arg) v4l_qbuf() 1597 struct v4l2_buffer *p = arg; v4l_qbuf() 1604 struct file *file, void *fh, void *arg) v4l_dqbuf() 1606 struct v4l2_buffer *p = arg; v4l_dqbuf() 1613 struct file *file, void *fh, void *arg) v4l_create_bufs() 1615 struct v4l2_create_buffers *create = arg; v4l_create_bufs() 1633 struct file *file, void *fh, void *arg) v4l_prepare_buf() 1635 struct v4l2_buffer *b = arg; v4l_prepare_buf() 1642 struct file *file, void *fh, void *arg) v4l_g_parm() 1644 struct v4l2_streamparm *p = arg; v4l_g_parm() 1663 struct file *file, void *fh, void *arg) v4l_s_parm() 1665 struct v4l2_streamparm *p = arg; v4l_s_parm() 1672 struct file *file, void *fh, void *arg) v4l_queryctrl() 1675 struct v4l2_queryctrl *p = arg; v4l_queryctrl() 1689 struct file *file, void *fh, void *arg) v4l_query_ext_ctrl() 1692 struct v4l2_query_ext_ctrl *p = arg; v4l_query_ext_ctrl() 1706 struct file *file, void *fh, void *arg) v4l_querymenu() 1709 struct v4l2_querymenu *p = arg; v4l_querymenu() 1723 struct file *file, void *fh, void *arg) v4l_g_ctrl() 1726 struct v4l2_control *p = arg; v4l_g_ctrl() 1757 struct file *file, void *fh, void *arg) v4l_s_ctrl() 1760 struct v4l2_control *p = arg; v4l_s_ctrl() 1786 struct file *file, void *fh, void *arg) v4l_g_ext_ctrls() 1789 struct v4l2_ext_controls *p = arg; v4l_g_ext_ctrls() 1805 struct file *file, void *fh, void *arg) v4l_s_ext_ctrls() 1808 struct v4l2_ext_controls *p = arg; v4l_s_ext_ctrls() 1824 struct file *file, void *fh, void *arg) v4l_try_ext_ctrls() 1827 struct v4l2_ext_controls *p = arg; v4l_try_ext_ctrls() 1843 struct file *file, void *fh, void *arg) v4l_g_crop() 1845 struct v4l2_crop *p = arg; v4l_g_crop() 1870 struct file *file, void *fh, void *arg) v4l_s_crop() 1872 struct v4l2_crop *p = arg; v4l_s_crop() 1892 struct file *file, void *fh, void *arg) v4l_cropcap() 1894 struct v4l2_cropcap *p = arg; v4l_cropcap() 1934 struct file *file, void *fh, void *arg) v4l_log_status() 1950 struct file *file, void *fh, void *arg) v4l_dbg_g_register() 1953 struct v4l2_dbg_register *p = arg; v4l_dbg_g_register() 1978 struct file *file, void *fh, void *arg) v4l_dbg_s_register() 1981 const struct v4l2_dbg_register *p = arg; v4l_dbg_s_register() 2006 struct file *file, void *fh, void *arg) v4l_dbg_g_chip_info() 2010 struct v4l2_dbg_chip_info *p = arg; v4l_dbg_g_chip_info() 2022 return ops->vidioc_g_chip_info(file, fh, arg); v4l_dbg_g_chip_info() 2049 struct file *file, void *fh, void *arg) v4l_dqevent() 2051 return v4l2_event_dequeue(fh, arg, file->f_flags & O_NONBLOCK); v4l_dqevent() 2055 struct file *file, void *fh, void *arg) v4l_subscribe_event() 2057 return ops->vidioc_subscribe_event(fh, arg); v4l_subscribe_event() 2061 struct file *file, void *fh, void *arg) v4l_unsubscribe_event() 2063 return ops->vidioc_unsubscribe_event(fh, arg); v4l_unsubscribe_event() 2067 struct file *file, void *fh, void *arg) v4l_g_sliced_vbi_cap() 2069 struct v4l2_sliced_vbi_cap *p = arg; v4l_g_sliced_vbi_cap() 2082 struct file *file, void *fh, void *arg) v4l_enum_freq_bands() 2085 struct v4l2_frequency_band *p = arg; v4l_enum_freq_bands() 2153 void (*debug)(const void *arg, bool write_only); 2333 unsigned int cmd, void *arg) __video_do_ioctl() 2379 ret = (*vidioc)(file, fh, arg); __video_do_ioctl() 2381 ret = info->u.func(ops, file, fh, arg); __video_do_ioctl() 2387 cmd, arg); __video_do_ioctl() 2402 info->debug(arg, write_only); __video_do_ioctl() 2405 info->debug(arg, write_only); __video_do_ioctl() 2478 video_usercopy(struct file *file, unsigned int cmd, unsigned long arg, video_usercopy() argument 2483 void *parg = (void *)arg; video_usercopy() 2519 if (copy_from_user(parg, (void __user *)arg, n)) video_usercopy() 2580 if (copy_to_user((void __user *)arg, parg, _IOC_SIZE(cmd))) video_usercopy() 2592 unsigned int cmd, unsigned long arg) video_ioctl2() 2594 return video_usercopy(file, cmd, arg, __video_do_ioctl); video_ioctl2() 1011 v4l_querycap(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_querycap() argument 1033 v4l_s_input(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_s_input() argument 1039 v4l_s_output(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_s_output() argument 1045 v4l_g_priority(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_g_priority() argument 1056 v4l_s_priority(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_s_priority() argument 1070 v4l_enuminput(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_enuminput() argument 1088 v4l_enumoutput(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_enumoutput() argument 1106 v4l_enum_fmt(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_enum_fmt() argument 1145 v4l_g_fmt(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_g_fmt() argument 1237 v4l_s_fmt(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_s_fmt() argument 1316 v4l_try_fmt(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_try_fmt() argument 1395 v4l_streamon(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_streamon() argument 1401 v4l_streamoff(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_streamoff() argument 1407 v4l_g_tuner(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_g_tuner() argument 1422 v4l_s_tuner(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_s_tuner() argument 1433 v4l_g_modulator(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_g_modulator() argument 1445 v4l_g_frequency(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_g_frequency() argument 1459 v4l_s_frequency(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_s_frequency() argument 1478 v4l_enumstd(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_enumstd() argument 1515 v4l_s_std(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_s_std() argument 1529 v4l_querystd(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_querystd() argument 1547 v4l_s_hw_freq_seek(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_s_hw_freq_seek() argument 1565 v4l_overlay(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_overlay() argument 1571 v4l_reqbufs(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_reqbufs() argument 1585 v4l_querybuf(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_querybuf() argument 1594 v4l_qbuf(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_qbuf() argument 1603 v4l_dqbuf(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_dqbuf() argument 1612 v4l_create_bufs(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_create_bufs() argument 1632 v4l_prepare_buf(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_prepare_buf() argument 1641 v4l_g_parm(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_g_parm() argument 1662 v4l_s_parm(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_s_parm() argument 1671 v4l_queryctrl(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_queryctrl() argument 1688 v4l_query_ext_ctrl(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_query_ext_ctrl() argument 1705 v4l_querymenu(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_querymenu() argument 1722 v4l_g_ctrl(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_g_ctrl() argument 1756 v4l_s_ctrl(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_s_ctrl() argument 1785 v4l_g_ext_ctrls(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_g_ext_ctrls() argument 1804 v4l_s_ext_ctrls(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_s_ext_ctrls() argument 1823 v4l_try_ext_ctrls(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_try_ext_ctrls() argument 1842 v4l_g_crop(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_g_crop() argument 1869 v4l_s_crop(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_s_crop() argument 1891 v4l_cropcap(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_cropcap() argument 1933 v4l_log_status(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_log_status() argument 1949 v4l_dbg_g_register(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_dbg_g_register() argument 1977 v4l_dbg_s_register(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_dbg_s_register() argument 2005 v4l_dbg_g_chip_info(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_dbg_g_chip_info() argument 2048 v4l_dqevent(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_dqevent() argument 2054 v4l_subscribe_event(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_subscribe_event() argument 2060 v4l_unsubscribe_event(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_unsubscribe_event() argument 2066 v4l_g_sliced_vbi_cap(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_g_sliced_vbi_cap() argument 2081 v4l_enum_freq_bands(const struct v4l2_ioctl_ops *ops, struct file *file, void *fh, void *arg) v4l_enum_freq_bands() argument 2332 __video_do_ioctl(struct file *file, unsigned int cmd, void *arg) __video_do_ioctl() argument 2591 video_ioctl2(struct file *file, unsigned int cmd, unsigned long arg) video_ioctl2() argument
|
H A D | v4l2-subdev.c | 179 static long subdev_do_ioctl(struct file *file, unsigned int cmd, void *arg) subdev_do_ioctl() argument 191 return v4l2_queryctrl(vfh->ctrl_handler, arg); subdev_do_ioctl() 194 return v4l2_query_ext_ctrl(vfh->ctrl_handler, arg); subdev_do_ioctl() 197 return v4l2_querymenu(vfh->ctrl_handler, arg); subdev_do_ioctl() 200 return v4l2_g_ctrl(vfh->ctrl_handler, arg); subdev_do_ioctl() 203 return v4l2_s_ctrl(vfh, vfh->ctrl_handler, arg); subdev_do_ioctl() 206 return v4l2_g_ext_ctrls(vfh->ctrl_handler, arg); subdev_do_ioctl() 209 return v4l2_s_ext_ctrls(vfh, vfh->ctrl_handler, arg); subdev_do_ioctl() 212 return v4l2_try_ext_ctrls(vfh->ctrl_handler, arg); subdev_do_ioctl() 218 return v4l2_event_dequeue(vfh, arg, file->f_flags & O_NONBLOCK); subdev_do_ioctl() 221 return v4l2_subdev_call(sd, core, subscribe_event, vfh, arg); subdev_do_ioctl() 224 return v4l2_subdev_call(sd, core, unsubscribe_event, vfh, arg); subdev_do_ioctl() 229 struct v4l2_dbg_register *p = arg; subdev_do_ioctl() 237 struct v4l2_dbg_register *p = arg; subdev_do_ioctl() 258 struct v4l2_subdev_format *format = arg; subdev_do_ioctl() 268 struct v4l2_subdev_format *format = arg; subdev_do_ioctl() 278 struct v4l2_subdev_crop *crop = arg; subdev_do_ioctl() 299 struct v4l2_subdev_crop *crop = arg; subdev_do_ioctl() 321 struct v4l2_subdev_mbus_code_enum *code = arg; subdev_do_ioctl() 335 struct v4l2_subdev_frame_size_enum *fse = arg; subdev_do_ioctl() 349 struct v4l2_subdev_frame_interval *fi = arg; subdev_do_ioctl() 354 return v4l2_subdev_call(sd, video, g_frame_interval, arg); subdev_do_ioctl() 358 struct v4l2_subdev_frame_interval *fi = arg; subdev_do_ioctl() 363 return v4l2_subdev_call(sd, video, s_frame_interval, arg); subdev_do_ioctl() 367 struct v4l2_subdev_frame_interval_enum *fie = arg; subdev_do_ioctl() 381 struct v4l2_subdev_selection *sel = arg; subdev_do_ioctl() 392 struct v4l2_subdev_selection *sel = arg; subdev_do_ioctl() 403 struct v4l2_subdev_edid *edid = arg; subdev_do_ioctl() 413 struct v4l2_subdev_edid *edid = arg; subdev_do_ioctl() 423 struct v4l2_dv_timings_cap *cap = arg; subdev_do_ioctl() 432 struct v4l2_enum_dv_timings *dvt = arg; subdev_do_ioctl() 441 return v4l2_subdev_call(sd, video, query_dv_timings, arg); subdev_do_ioctl() 444 return v4l2_subdev_call(sd, video, g_dv_timings, arg); subdev_do_ioctl() 447 return v4l2_subdev_call(sd, video, s_dv_timings, arg); subdev_do_ioctl() 450 return v4l2_subdev_call(sd, core, ioctl, cmd, arg); subdev_do_ioctl() 457 unsigned long arg) subdev_ioctl() 459 return video_usercopy(file, cmd, arg, subdev_do_ioctl); subdev_ioctl() 464 unsigned long arg) subdev_compat_ioctl32() 469 return v4l2_subdev_call(sd, core, compat_ioctl32, cmd, arg); subdev_compat_ioctl32() 456 subdev_ioctl(struct file *file, unsigned int cmd, unsigned long arg) subdev_ioctl() argument 463 subdev_compat_ioctl32(struct file *file, unsigned int cmd, unsigned long arg) subdev_compat_ioctl32() argument
|
/linux-4.1.27/drivers/thunderbolt/ |
H A D | tb.h | 188 #define tb_err(tb, fmt, arg...) dev_err(&(tb)->nhi->pdev->dev, fmt, ## arg) 189 #define tb_WARN(tb, fmt, arg...) dev_WARN(&(tb)->nhi->pdev->dev, fmt, ## arg) 190 #define tb_warn(tb, fmt, arg...) dev_warn(&(tb)->nhi->pdev->dev, fmt, ## arg) 191 #define tb_info(tb, fmt, arg...) dev_info(&(tb)->nhi->pdev->dev, fmt, ## arg) 194 #define __TB_SW_PRINT(level, sw, fmt, arg...) \ 198 tb_route(__sw), ## arg); \ 200 #define tb_sw_WARN(sw, fmt, arg...) __TB_SW_PRINT(tb_WARN, sw, fmt, ##arg) 201 #define tb_sw_warn(sw, fmt, arg...) __TB_SW_PRINT(tb_warn, sw, fmt, ##arg) 202 #define tb_sw_info(sw, fmt, arg...) __TB_SW_PRINT(tb_info, sw, fmt, ##arg) 205 #define __TB_PORT_PRINT(level, _port, fmt, arg...) \ 209 tb_route(__port->sw), __port->port, ## arg); \ 211 #define tb_port_WARN(port, fmt, arg...) \ 212 __TB_PORT_PRINT(tb_WARN, port, fmt, ##arg) 213 #define tb_port_warn(port, fmt, arg...) \ 214 __TB_PORT_PRINT(tb_warn, port, fmt, ##arg) 215 #define tb_port_info(port, fmt, arg...) \ 216 __TB_PORT_PRINT(tb_info, port, fmt, ##arg)
|
/linux-4.1.27/drivers/xen/ |
H A D | fallback.c | 8 int xen_event_channel_op_compat(int cmd, void *arg) xen_event_channel_op_compat() argument 14 memcpy(&op.u, arg, sizeof(op.u)); xen_event_channel_op_compat() 27 memcpy(arg, &op.u.eop, sizeof(op.u.eop)); \ xen_event_channel_op_compat() 47 int xen_physdev_op_compat(int cmd, void *arg) xen_physdev_op_compat() argument 53 memcpy(&op.u, arg, sizeof(op.u)); xen_physdev_op_compat() 66 memcpy(arg, &op.u.fld, sizeof(op.u.fld)); \ xen_physdev_op_compat()
|
/linux-4.1.27/arch/um/kernel/skas/ |
H A D | uaccess.c | 60 int (*op)(unsigned long addr, int len, void *arg), void *arg) do_op_one_page() 79 n = (*op)(addr, len, arg); do_op_one_page() 91 int (*op)(unsigned long, int, void *), void *arg) buffer_op() 98 n = do_op_one_page(addr, size, is_write, op, arg); buffer_op() 110 n = do_op_one_page(addr, PAGE_SIZE, is_write, op, arg); buffer_op() 122 n = do_op_one_page(addr, remain, is_write, op, arg); buffer_op() 133 static int copy_chunk_from_user(unsigned long from, int len, void *arg) copy_chunk_from_user() argument 135 unsigned long *to_ptr = arg, to = *to_ptr; copy_chunk_from_user() 155 static int copy_chunk_to_user(unsigned long to, int len, void *arg) copy_chunk_to_user() argument 157 unsigned long *from_ptr = arg, from = *from_ptr; copy_chunk_to_user() 177 static int strncpy_chunk_from_user(unsigned long from, int len, void *arg) strncpy_chunk_from_user() argument 179 char **to_ptr = arg, *to = *to_ptr; strncpy_chunk_from_user() 235 static int strnlen_chunk(unsigned long str, int len, void *arg) strnlen_chunk() argument 237 int *len_ptr = arg, n; strnlen_chunk() 59 do_op_one_page(unsigned long addr, int len, int is_write, int (*op)(unsigned long addr, int len, void *arg), void *arg) do_op_one_page() argument 90 buffer_op(unsigned long addr, int len, int is_write, int (*op)(unsigned long, int, void *), void *arg) buffer_op() argument
|
/linux-4.1.27/arch/cris/arch-v10/drivers/ |
H A D | gpio.c | 47 static long gpio_ioctl(struct file *file, unsigned int cmd, unsigned long arg); 402 unsigned long inline setget_input(struct gpio_private *priv, unsigned long arg) setget_input() argument 408 ~((unsigned char)arg & priv->changeable_dir); setget_input() 416 if (((arg & dir_g_in_bits) != arg) && setget_input() 417 (arg & changeable_dir_g)) { setget_input() 418 arg &= changeable_dir_g; setget_input() 420 if (arg & (1<<0)) { setget_input() 425 if ((arg & 0x0000FF00) == 0x0000FF00) { setget_input() 430 if ((arg & 0x00FF0000) == 0x00FF0000) { setget_input() 435 if (arg & (1<<24)) { setget_input() 453 unsigned long inline setget_output(struct gpio_private *priv, unsigned long arg) setget_output() argument 457 ((unsigned char)arg & priv->changeable_dir); setget_output() 464 if (((arg & dir_g_out_bits) != arg) && setget_output() 465 (arg & changeable_dir_g)) { setget_output() 467 if (arg & (1<<0)) { setget_output() 472 if ((arg & 0x0000FF00) == 0x0000FF00) { setget_output() 477 if ((arg & 0x00FF0000) == 0x00FF0000) { setget_output() 482 if (arg & (1<<24)) { setget_output() 500 gpio_leds_ioctl(unsigned int cmd, unsigned long arg); 502 static long gpio_ioctl(struct file *file, unsigned int cmd, unsigned long arg) gpio_ioctl() argument 525 // set changeable bits with a 1 in arg gpio_ioctl() 530 ((unsigned char)arg & priv->changeable_bits); gpio_ioctl() 532 *R_PORT_G_DATA = port_g_data_shadow |= (arg & dir_g_out_bits); gpio_ioctl() 538 // clear changeable bits with a 1 in arg gpio_ioctl() 542 ~((unsigned char)arg & priv->changeable_bits); gpio_ioctl() 544 *R_PORT_G_DATA = port_g_data_shadow &= ~((unsigned long)arg & dir_g_out_bits); gpio_ioctl() 549 // set alarm when bits with 1 in arg go high gpio_ioctl() 551 priv->highalarm |= arg; gpio_ioctl() 556 // set alarm when bits with 1 in arg go low gpio_ioctl() 558 priv->lowalarm |= arg; gpio_ioctl() 563 /* clear alarm for bits with 1 in arg */ gpio_ioctl() 565 priv->highalarm &= ~arg; gpio_ioctl() 566 priv->lowalarm &= ~arg; gpio_ioctl() 602 ret = setget_input(priv, arg) & 0x7FFFFFFF; gpio_ioctl() 610 ret = setget_output(priv, arg) & 0x7FFFFFFF; gpio_ioctl() 629 priv->clk_mask = arg & 0xFF; gpio_ioctl() 630 priv->data_mask = (arg >> 8) & 0xFF; gpio_ioctl() 631 priv->write_msb = (arg >> 16) & 0x01; gpio_ioctl() 647 /* *arg is result of reading the input pins */ gpio_ioctl() 655 if (copy_to_user((void __user *)arg, &val, sizeof(val))) gpio_ioctl() 659 /* *arg is result of reading the output shadow */ gpio_ioctl() 667 if (copy_to_user((void __user *)arg, &val, sizeof(val))) gpio_ioctl() 671 /* bits set in *arg is set to input, gpio_ioctl() 672 * *arg updated with current input pins. gpio_ioctl() 674 if (copy_from_user(&val, (void __user *)arg, sizeof(val))) gpio_ioctl() 682 if (copy_to_user((void __user *)arg, &val, sizeof(val))) gpio_ioctl() 686 /* bits set in *arg is set to output, gpio_ioctl() 687 * *arg updated with current output pins. gpio_ioctl() 689 if (copy_from_user(&val, (void __user *)arg, sizeof(val))) { gpio_ioctl() 696 if (copy_to_user((void __user *)arg, &val, sizeof(val))) gpio_ioctl() 702 ret = gpio_leds_ioctl(cmd, arg); gpio_ioctl() 712 gpio_leds_ioctl(unsigned int cmd, unsigned long arg) gpio_leds_ioctl() argument 719 green = ((unsigned char)arg) & 1; gpio_leds_ioctl() 720 red = (((unsigned char)arg) >> 1) & 1; gpio_leds_ioctl() 726 CRIS_LED_BIT_SET(arg); gpio_leds_ioctl() 730 CRIS_LED_BIT_CLR(arg); gpio_leds_ioctl()
|
/linux-4.1.27/sound/pci/hda/ |
H A D | hda_hwdep.c | 34 struct hda_verb_ioctl __user *arg) verb_write_ioctl() 38 if (get_user(verb, &arg->verb)) verb_write_ioctl() 42 if (put_user(res, &arg->res)) verb_write_ioctl() 48 struct hda_verb_ioctl __user *arg) get_wcap_ioctl() 52 if (get_user(verb, &arg->verb)) get_wcap_ioctl() 55 if (put_user(res, &arg->res)) get_wcap_ioctl() 64 unsigned int cmd, unsigned long arg) hda_hwdep_ioctl() 67 void __user *argp = (void __user *)arg; hda_hwdep_ioctl() 82 unsigned int cmd, unsigned long arg) hda_hwdep_ioctl_compat() 84 return hda_hwdep_ioctl(hw, file, cmd, (unsigned long)compat_ptr(arg)); hda_hwdep_ioctl_compat() 33 verb_write_ioctl(struct hda_codec *codec, struct hda_verb_ioctl __user *arg) verb_write_ioctl() argument 47 get_wcap_ioctl(struct hda_codec *codec, struct hda_verb_ioctl __user *arg) get_wcap_ioctl() argument 63 hda_hwdep_ioctl(struct snd_hwdep *hw, struct file *file, unsigned int cmd, unsigned long arg) hda_hwdep_ioctl() argument 81 hda_hwdep_ioctl_compat(struct snd_hwdep *hw, struct file *file, unsigned int cmd, unsigned long arg) hda_hwdep_ioctl_compat() argument
|
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_sriov_pf.c | 42 cmd.req.arg[1] = (vport_id << 16) | 0x1; qlcnic_sriov_pf_set_vport_info() 43 cmd.req.arg[2] = npar_info->bit_offsets; qlcnic_sriov_pf_set_vport_info() 44 cmd.req.arg[2] |= npar_info->min_tx_bw << 16; qlcnic_sriov_pf_set_vport_info() 45 cmd.req.arg[3] = npar_info->max_tx_bw | (npar_info->max_tx_ques << 16); qlcnic_sriov_pf_set_vport_info() 46 cmd.req.arg[4] = npar_info->max_tx_mac_filters; qlcnic_sriov_pf_set_vport_info() 47 cmd.req.arg[4] |= npar_info->max_rx_mcast_mac_filters << 16; qlcnic_sriov_pf_set_vport_info() 48 cmd.req.arg[5] = npar_info->max_rx_ucast_mac_filters | qlcnic_sriov_pf_set_vport_info() 50 cmd.req.arg[6] = npar_info->max_rx_lro_flow | qlcnic_sriov_pf_set_vport_info() 52 cmd.req.arg[7] = npar_info->max_rx_buf_rings | qlcnic_sriov_pf_set_vport_info() 54 cmd.req.arg[8] = npar_info->max_tx_vlan_keys; qlcnic_sriov_pf_set_vport_info() 55 cmd.req.arg[8] |= npar_info->max_local_ipv6_addrs << 16; qlcnic_sriov_pf_set_vport_info() 56 cmd.req.arg[9] = npar_info->max_remote_ipv6_addrs; qlcnic_sriov_pf_set_vport_info() 183 cmd.req.arg[1] = 0x2; qlcnic_sriov_get_pf_info() 191 npar_info->total_pf = cmd.rsp.arg[2] & 0xff; qlcnic_sriov_get_pf_info() 192 npar_info->total_rss_engines = (cmd.rsp.arg[2] >> 8) & 0xff; qlcnic_sriov_get_pf_info() 193 npar_info->max_vports = MSW(cmd.rsp.arg[2]); qlcnic_sriov_get_pf_info() 194 npar_info->max_tx_ques = LSW(cmd.rsp.arg[3]); qlcnic_sriov_get_pf_info() 195 npar_info->max_tx_mac_filters = MSW(cmd.rsp.arg[3]); qlcnic_sriov_get_pf_info() 196 npar_info->max_rx_mcast_mac_filters = LSW(cmd.rsp.arg[4]); qlcnic_sriov_get_pf_info() 197 npar_info->max_rx_ucast_mac_filters = MSW(cmd.rsp.arg[4]); qlcnic_sriov_get_pf_info() 198 npar_info->max_rx_ip_addr = LSW(cmd.rsp.arg[5]); qlcnic_sriov_get_pf_info() 199 npar_info->max_rx_lro_flow = MSW(cmd.rsp.arg[5]); qlcnic_sriov_get_pf_info() 200 npar_info->max_rx_status_rings = LSW(cmd.rsp.arg[6]); qlcnic_sriov_get_pf_info() 201 npar_info->max_rx_buf_rings = MSW(cmd.rsp.arg[6]); qlcnic_sriov_get_pf_info() 202 npar_info->max_rx_ques = LSW(cmd.rsp.arg[7]); qlcnic_sriov_get_pf_info() 203 npar_info->max_tx_vlan_keys = MSW(cmd.rsp.arg[7]); qlcnic_sriov_get_pf_info() 204 npar_info->max_local_ipv6_addrs = LSW(cmd.rsp.arg[8]); qlcnic_sriov_get_pf_info() 205 npar_info->max_remote_ipv6_addrs = MSW(cmd.rsp.arg[8]); qlcnic_sriov_get_pf_info() 299 cmd.req.arg[3] = func << 8; qlcnic_sriov_pf_config_vport() 306 cmd.req.arg[3] = ((vpid & 0xffff) << 8) | 1; qlcnic_sriov_pf_config_vport() 318 vpid = cmd.rsp.arg[2] & 0xffff; qlcnic_sriov_pf_config_vport() 339 cmd.req.arg[1] = 0x4; qlcnic_sriov_pf_cfg_vlan_filtering() 342 cmd.req.arg[1] |= BIT_16; qlcnic_sriov_pf_cfg_vlan_filtering() 344 cmd.req.arg[1] |= QLC_SRIOV_ALLOW_VLAN0; qlcnic_sriov_pf_cfg_vlan_filtering() 368 cmd.req.arg[1] = QLC_FLOOD_MODE | QLC_VF_FLOOD_BIT; qlcnic_sriov_pf_cfg_flood() 389 cmd.req.arg[0] |= (3 << 29); qlcnic_sriov_pf_cfg_eswitch() 390 cmd.req.arg[1] = ((func & 0xf) << 2) | BIT_6 | BIT_1; qlcnic_sriov_pf_cfg_eswitch() 392 cmd.req.arg[1] |= BIT_0; qlcnic_sriov_pf_cfg_eswitch() 698 cmd.req.arg[1] = 0x3 | func << 16; qlcnic_sriov_set_vf_acl() 701 cmd.req.arg[2] |= BIT_1 | BIT_3 | BIT_8; qlcnic_sriov_set_vf_acl() 702 cmd.req.arg[4] = mac[5] | mac[4] << 8 | mac[3] << 16 | qlcnic_sriov_set_vf_acl() 704 cmd.req.arg[5] = mac[1] | mac[0] << 8; qlcnic_sriov_set_vf_acl() 708 cmd.req.arg[2] |= BIT_6; qlcnic_sriov_set_vf_acl() 709 cmd.req.arg[3] |= vp->pvid << 8; qlcnic_sriov_set_vf_acl() 772 cmd->rsp.arg[0] |= (1 << 25); qlcnic_sriov_pf_channel_cfg_cmd() 782 cmd->rsp.arg[0] |= (2 << 25); qlcnic_sriov_pf_channel_cfg_cmd() 819 cmd->req.arg[1] = op | (1 << 8) | (3 << 6); qlcnic_sriov_cfg_vf_def_mac() 820 cmd->req.arg[1] |= ((vpid & 0xffff) << 16) | BIT_31; qlcnic_sriov_cfg_vf_def_mac() 830 buf = &cmd->req.arg[2]; qlcnic_sriov_cfg_vf_def_mac() 847 if ((cmd->req.arg[0] >> 29) != 0x3) qlcnic_sriov_validate_create_rx_ctx() 892 cmd->rsp.arg[0] |= (0x6 << 25); qlcnic_sriov_pf_create_rx_ctx_cmd() 896 cmd->req.arg[6] = vf->vp->handle; qlcnic_sriov_pf_create_rx_ctx_cmd() 900 mbx_out = (struct qlcnic_rcv_mbx_out *)&cmd->rsp.arg[1]; qlcnic_sriov_pf_create_rx_ctx_cmd() 916 type = cmd->req.arg[1]; qlcnic_sriov_pf_mac_address_cmd() 920 cmd->rsp.arg[0] = (2 << 25); qlcnic_sriov_pf_mac_address_cmd() 923 cmd->rsp.arg[0] = (1 << 25); qlcnic_sriov_pf_mac_address_cmd() 925 cmd->rsp.arg[2] = mac[1] | ((mac[0] << 8) & 0xff00); qlcnic_sriov_pf_mac_address_cmd() 926 cmd->rsp.arg[1] = mac[5] | ((mac[4] << 8) & 0xff00) | qlcnic_sriov_pf_mac_address_cmd() 936 if ((cmd->req.arg[0] >> 29) != 0x3) qlcnic_sriov_validate_create_tx_ctx() 952 cmd->rsp.arg[0] |= (0x6 << 25); qlcnic_sriov_pf_create_tx_ctx_cmd() 956 cmd->req.arg[5] |= vf->vp->handle << 16; qlcnic_sriov_pf_create_tx_ctx_cmd() 959 mbx_out = (struct qlcnic_tx_mbx_out *)&cmd->rsp.arg[2]; qlcnic_sriov_pf_create_tx_ctx_cmd() 971 if ((cmd->req.arg[0] >> 29) != 0x3) qlcnic_sriov_validate_del_rx_ctx() 974 if ((cmd->req.arg[1] & 0xffff) != vf->rx_ctx_id) qlcnic_sriov_validate_del_rx_ctx() 989 cmd->rsp.arg[0] |= (0x6 << 25); qlcnic_sriov_pf_del_rx_ctx_cmd() 994 cmd->req.arg[1] |= vf->vp->handle << 16; qlcnic_sriov_pf_del_rx_ctx_cmd() 1006 if ((cmd->req.arg[0] >> 29) != 0x3) qlcnic_sriov_validate_del_tx_ctx() 1009 if ((cmd->req.arg[1] & 0xffff) != vf->tx_ctx_id) qlcnic_sriov_validate_del_tx_ctx() 1024 cmd->rsp.arg[0] |= (0x6 << 25); qlcnic_sriov_pf_del_tx_ctx_cmd() 1028 cmd->req.arg[1] |= vf->vp->handle << 16; qlcnic_sriov_pf_del_tx_ctx_cmd() 1040 if ((cmd->req.arg[1] >> 16) != vf->rx_ctx_id) qlcnic_sriov_validate_cfg_lro() 1055 cmd->rsp.arg[0] |= (0x6 << 25); qlcnic_sriov_pf_cfg_lro_cmd() 1071 op = cmd->req.arg[1] & 0xff; qlcnic_sriov_pf_cfg_ip_cmd() 1073 cmd->req.arg[1] |= vf->vp->handle << 16; qlcnic_sriov_pf_cfg_ip_cmd() 1074 cmd->req.arg[1] |= BIT_31; qlcnic_sriov_pf_cfg_ip_cmd() 1083 if (((cmd->req.arg[1] >> 8) & 0xff) != vf->pci_func) qlcnic_sriov_validate_cfg_intrpt() 1086 if (!(cmd->req.arg[1] & BIT_16)) qlcnic_sriov_validate_cfg_intrpt() 1089 if ((cmd->req.arg[1] & 0xff) != 0x1) qlcnic_sriov_validate_cfg_intrpt() 1104 cmd->rsp.arg[0] |= (0x6 << 25); qlcnic_sriov_pf_cfg_intrpt_cmd() 1115 if (cmd->req.arg[1] != vf->rx_ctx_id) qlcnic_sriov_validate_mtu() 1118 if (cmd->req.arg[2] > adapter->ahw->max_mtu) qlcnic_sriov_validate_mtu() 1133 cmd->rsp.arg[0] |= (0x6 << 25); qlcnic_sriov_pf_set_mtu_cmd() 1143 if (cmd->req.arg[1] & BIT_31) { qlcnic_sriov_validate_get_nic_info() 1144 if (((cmd->req.arg[1] >> 16) & 0x7fff) != vf->pci_func) qlcnic_sriov_validate_get_nic_info() 1147 cmd->req.arg[1] |= vf->vp->handle << 16; qlcnic_sriov_validate_get_nic_info() 1162 cmd->rsp.arg[0] |= (0x6 << 25); qlcnic_sriov_pf_get_nic_info_cmd() 1173 if (cmd->req.arg[1] != vf->rx_ctx_id) qlcnic_sriov_validate_cfg_rss() 1188 cmd->rsp.arg[0] |= (0x6 << 25); qlcnic_sriov_pf_cfg_rss_cmd() 1204 type = cmd->req.arg[1] & QLC_INTR_COAL_TYPE_MASK; qlcnic_sriov_validate_cfg_intrcoal() 1205 ctx_id = cmd->req.arg[1] >> 16; qlcnic_sriov_validate_cfg_intrcoal() 1206 pkts = cmd->req.arg[2] & 0xffff; qlcnic_sriov_validate_cfg_intrcoal() 1207 time = cmd->req.arg[2] >> 16; qlcnic_sriov_validate_cfg_intrcoal() 1247 cmd->rsp.arg[0] |= (0x6 << 25); qlcnic_sriov_pf_cfg_intrcoal_cmd() 1262 if (!(cmd->req.arg[1] & BIT_8)) qlcnic_sriov_validate_cfg_macvlan() 1265 cmd->req.arg[1] |= (vf->vp->handle << 16); qlcnic_sriov_validate_cfg_macvlan() 1266 cmd->req.arg[1] |= BIT_31; qlcnic_sriov_validate_cfg_macvlan() 1269 op = cmd->req.arg[1] & 0x7; qlcnic_sriov_validate_cfg_macvlan() 1270 cmd->req.arg[1] &= ~0x7; qlcnic_sriov_validate_cfg_macvlan() 1273 cmd->req.arg[3] |= vp->pvid << 16; qlcnic_sriov_validate_cfg_macvlan() 1274 cmd->req.arg[1] |= new_op; qlcnic_sriov_validate_cfg_macvlan() 1289 cmd->rsp.arg[0] |= (0x6 << 25); qlcnic_sriov_pf_cfg_macvlan_cmd() 1300 if ((cmd->req.arg[1] >> 16) != vf->rx_ctx_id) qlcnic_sriov_validate_linkevent() 1315 cmd->rsp.arg[0] |= (0x6 << 25); qlcnic_sriov_pf_linkevent_cmd() 1330 cmd->req.arg[1] |= vf->vp->handle << 16; qlcnic_sriov_pf_cfg_promisc_cmd() 1331 cmd->req.arg[1] |= BIT_31; qlcnic_sriov_pf_cfg_promisc_cmd() 1349 cmd->rsp.arg[0] |= 1 << 25; qlcnic_sriov_pf_get_acl_cmd() 1359 cmd->rsp.arg[1] = mode | 1 << 8; qlcnic_sriov_pf_get_acl_cmd() 1360 cmd->rsp.arg[2] = sriov->num_allowed_vlans << 16; qlcnic_sriov_pf_get_acl_cmd() 1363 cmd->rsp.arg[1] = mode | 1 << 8 | vp->pvid << 16; qlcnic_sriov_pf_get_acl_cmd() 1380 vlan = cmd->req.arg[1] >> 16; qlcnic_sriov_pf_del_guest_vlan() 1406 vlan = cmd->req.arg[1] >> 16; qlcnic_sriov_pf_add_guest_vlan() 1443 cmd->rsp.arg[0] |= 2 << 25; qlcnic_sriov_pf_cfg_guest_vlan_cmd() 1447 op = cmd->req.arg[1] & 0xf; qlcnic_sriov_pf_cfg_guest_vlan_cmd() 1454 cmd->rsp.arg[0] |= err ? 2 << 25 : 1 << 25; qlcnic_sriov_pf_cfg_guest_vlan_cmd() 1524 cmd->rsp.arg[0] |= (0x9 << 25); qlcnic_sriov_pf_process_bc_cmd() 1611 cmd.req.arg[1] = vf->rx_ctx_id | (vpid & 0xffff) << 16; qlcnic_sriov_del_rx_ctx() 1637 cmd.req.arg[1] |= vf->tx_ctx_id | (vpid & 0xffff) << 16; qlcnic_sriov_del_tx_ctx()
|
H A D | qlcnic_ctx.c | 65 mbx->req.arg = kcalloc(mbx->req.num, qlcnic_82xx_alloc_mbx_args() 67 if (!mbx->req.arg) qlcnic_82xx_alloc_mbx_args() 69 mbx->rsp.arg = kcalloc(mbx->rsp.num, qlcnic_82xx_alloc_mbx_args() 71 if (!mbx->rsp.arg) { qlcnic_82xx_alloc_mbx_args() 72 kfree(mbx->req.arg); qlcnic_82xx_alloc_mbx_args() 73 mbx->req.arg = NULL; qlcnic_82xx_alloc_mbx_args() 76 memset(mbx->req.arg, 0, sizeof(u32) * mbx->req.num); qlcnic_82xx_alloc_mbx_args() 77 memset(mbx->rsp.arg, 0, sizeof(u32) * mbx->rsp.num); qlcnic_82xx_alloc_mbx_args() 78 mbx->req.arg[0] = type; qlcnic_82xx_alloc_mbx_args() 88 kfree(cmd->req.arg); qlcnic_free_mbx_args() 89 cmd->req.arg = NULL; qlcnic_free_mbx_args() 90 kfree(cmd->rsp.arg); qlcnic_free_mbx_args() 91 cmd->rsp.arg = NULL; qlcnic_free_mbx_args() 127 cmd->rsp.arg[0] = QLCNIC_RCODE_TIMEOUT; qlcnic_82xx_issue_cmd() 128 return cmd->rsp.arg[0]; qlcnic_82xx_issue_cmd() 133 QLCWR32(adapter, QLCNIC_CDRP_ARG(i), cmd->req.arg[i]); qlcnic_82xx_issue_cmd() 135 QLCNIC_CDRP_FORM_CMD(cmd->req.arg[0])); qlcnic_82xx_issue_cmd() 140 cmd->rsp.arg[0] = QLCNIC_RCODE_TIMEOUT; qlcnic_82xx_issue_cmd() 142 cmd->rsp.arg[0] = QLCRD32(adapter, QLCNIC_CDRP_ARG(1), &err); qlcnic_82xx_issue_cmd() 143 switch (cmd->rsp.arg[0]) { qlcnic_82xx_issue_cmd() 164 dev_err(&pdev->dev, fmt, cmd->rsp.arg[0]); qlcnic_82xx_issue_cmd() 167 cmd->rsp.arg[0] = QLCNIC_RCODE_SUCCESS; qlcnic_82xx_issue_cmd() 170 cmd->rsp.arg[i] = QLCRD32(adapter, QLCNIC_CDRP_ARG(i), &err); qlcnic_82xx_issue_cmd() 174 return cmd->rsp.arg[0]; qlcnic_82xx_issue_cmd() 197 cmd.req.arg[1] = arg1; qlcnic_fw_cmd_set_drv_version() 198 cmd.req.arg[2] = arg2; qlcnic_fw_cmd_set_drv_version() 199 cmd.req.arg[3] = arg3; qlcnic_fw_cmd_set_drv_version() 224 cmd.req.arg[1] = recv_ctx->context_id; qlcnic_fw_cmd_set_mtu() 225 cmd.req.arg[2] = mtu; qlcnic_fw_cmd_set_mtu() 344 cmd.req.arg[1] = MSD(phys_addr); qlcnic_82xx_fw_cmd_create_rx_ctx() 345 cmd.req.arg[2] = LSD(phys_addr); qlcnic_82xx_fw_cmd_create_rx_ctx() 346 cmd.req.arg[3] = rq_size; qlcnic_82xx_fw_cmd_create_rx_ctx() 405 cmd.req.arg[1] = recv_ctx->context_id; qlcnic_82xx_fw_cmd_del_rx_ctx() 490 cmd.req.arg[1] = MSD(phys_addr); qlcnic_82xx_fw_cmd_create_tx_ctx() 491 cmd.req.arg[2] = LSD(phys_addr); qlcnic_82xx_fw_cmd_create_tx_ctx() 492 cmd.req.arg[3] = rq_size; qlcnic_82xx_fw_cmd_create_tx_ctx() 536 cmd.req.arg[1] = tx_ring->ctx_id; qlcnic_82xx_fw_cmd_del_tx_ctx() 553 cmd.req.arg[1] = config; qlcnic_fw_cmd_set_port() 783 cmd.req.arg[1] = val; qlcnic_82xx_config_intrpt() 792 val = cmd.rsp.arg[1]; qlcnic_82xx_config_intrpt() 802 ahw->intr_tbl[i].src = cmd.rsp.arg[2]; qlcnic_82xx_config_intrpt() 825 cmd.req.arg[1] = function | BIT_8; qlcnic_82xx_get_mac_address() 829 mac_low = cmd.rsp.arg[1]; qlcnic_82xx_get_mac_address() 830 mac_high = cmd.rsp.arg[2]; qlcnic_82xx_get_mac_address() 867 cmd.req.arg[1] = MSD(nic_dma_t); qlcnic_82xx_get_nic_info() 868 cmd.req.arg[2] = LSD(nic_dma_t); qlcnic_82xx_get_nic_info() 869 cmd.req.arg[3] = (func_id << 16 | nic_size); qlcnic_82xx_get_nic_info() 932 cmd.req.arg[1] = MSD(nic_dma_t); qlcnic_82xx_set_nic_info() 933 cmd.req.arg[2] = LSD(nic_dma_t); qlcnic_82xx_set_nic_info() 934 cmd.req.arg[3] = ((nic->pci_func << 16) | nic_size); qlcnic_82xx_set_nic_info() 975 cmd.req.arg[1] = MSD(pci_info_dma_t); qlcnic_82xx_get_pci_info() 976 cmd.req.arg[2] = LSD(pci_info_dma_t); qlcnic_82xx_get_pci_info() 977 cmd.req.arg[3] = pci_size; qlcnic_82xx_get_pci_info() 1044 cmd.req.arg[1] = arg1; qlcnic_config_port_mirroring() 1092 cmd.req.arg[1] = arg1; qlcnic_get_port_stats() 1093 cmd.req.arg[2] = MSD(stats_dma_t); qlcnic_get_port_stats() 1094 cmd.req.arg[3] = LSD(stats_dma_t); qlcnic_get_port_stats() 1144 cmd.req.arg[1] = stats_size << 16; qlcnic_get_mac_stats() 1145 cmd.req.arg[2] = MSD(stats_dma_t); qlcnic_get_mac_stats() 1146 cmd.req.arg[3] = LSD(stats_dma_t); qlcnic_get_mac_stats() 1269 cmd.req.arg[1] = arg1; qlcnic_clear_esw_stats() 1294 cmd.req.arg[1] = *arg1; __qlcnic_get_eswitch_port_config() 1296 *arg1 = cmd.rsp.arg[1]; __qlcnic_get_eswitch_port_config() 1297 *arg2 = cmd.rsp.arg[2]; __qlcnic_get_eswitch_port_config() 1383 cmd.req.arg[1] = arg1; qlcnic_config_switch_port() 1384 cmd.req.arg[2] = arg2; qlcnic_config_switch_port()
|
H A D | qlcnic_83xx_hw.c | 455 cmd->rsp.arg[i] = readl(QLCNIC_MBX_FW(adapter->ahw, i)); qlcnic_83xx_get_mbx_data() 808 pr_info("%08x ", cmd->req.arg[i]); qlcnic_dump_mbx() 816 pr_info("%08x ", cmd->rsp.arg[i]); qlcnic_dump_mbx() 825 int opcode = LSW(cmd->req.arg[0]); qlcnic_83xx_poll_for_mbx_completion() 856 opcode = LSW(cmd->req.arg[0]); qlcnic_83xx_issue_cmd() 908 mbx->req.arg = kcalloc(mbx->req.num, sizeof(u32), qlcnic_83xx_alloc_mbx_args() 910 if (!mbx->req.arg) qlcnic_83xx_alloc_mbx_args() 912 mbx->rsp.arg = kcalloc(mbx->rsp.num, sizeof(u32), qlcnic_83xx_alloc_mbx_args() 914 if (!mbx->rsp.arg) { qlcnic_83xx_alloc_mbx_args() 915 kfree(mbx->req.arg); qlcnic_83xx_alloc_mbx_args() 916 mbx->req.arg = NULL; qlcnic_83xx_alloc_mbx_args() 919 memset(mbx->req.arg, 0, sizeof(u32) * mbx->req.num); qlcnic_83xx_alloc_mbx_args() 920 memset(mbx->rsp.arg, 0, sizeof(u32) * mbx->rsp.num); qlcnic_83xx_alloc_mbx_args() 922 mbx->req.arg[0] = (type | (mbx->req.num << 16) | temp); qlcnic_83xx_alloc_mbx_args() 945 cmd.req.arg[i] = adapter->ahw->mbox_aen[i]; qlcnic_83xx_idc_aen_work() 1081 cmd.req.arg[1] = 0 | (num_sds << 8) | (context_id << 16); qlcnic_83xx_add_rings() 1104 buf = &cmd.req.arg[index]; qlcnic_83xx_add_rings() 1117 mbx_out = (struct qlcnic_add_rings_mbx_out *)&cmd.rsp.arg[1]; qlcnic_83xx_add_rings() 1148 cmd.req.arg[0] |= (0x3 << 29); qlcnic_83xx_del_rx_ctx() 1153 cmd.req.arg[1] = recv_ctx->context_id | temp; qlcnic_83xx_del_rx_ctx() 1197 cmd.req.arg[0] |= (0x3 << 29); qlcnic_83xx_create_rx_ctx() 1199 cmd.req.arg[1] = cap; qlcnic_83xx_create_rx_ctx() 1200 cmd.req.arg[5] = 1 | (num_rds << 5) | (num_sds << 8) | qlcnic_83xx_create_rx_ctx() 1205 &cmd.req.arg[6]); qlcnic_83xx_create_rx_ctx() 1225 buf = &cmd.req.arg[index]; qlcnic_83xx_create_rx_ctx() 1245 buf = &cmd.req.arg[index]; qlcnic_83xx_create_rx_ctx() 1255 mbx_out = (struct qlcnic_rcv_mbx_out *)&cmd.rsp.arg[1]; qlcnic_83xx_create_rx_ctx() 1299 cmd.req.arg[0] |= (0x3 << 29); qlcnic_83xx_del_tx_ctx() 1304 cmd.req.arg[1] = tx_ring->ctx_id | temp; qlcnic_83xx_del_tx_ctx() 1357 cmd.req.arg[0] |= (0x3 << 29); qlcnic_83xx_create_tx_ctx() 1362 cmd.req.arg[1] = QLCNIC_CAP0_LEGACY_CONTEXT; qlcnic_83xx_create_tx_ctx() 1363 cmd.req.arg[5] = QLCNIC_SINGLE_RING | temp; qlcnic_83xx_create_tx_ctx() 1365 buf = &cmd.req.arg[6]; qlcnic_83xx_create_tx_ctx() 1374 mbx_out = (struct qlcnic_tx_mbx_out *)&cmd.rsp.arg[2]; qlcnic_83xx_create_tx_ctx() 1492 beacon_state = cmd.rsp.arg[4]; qlcnic_83xx_get_beacon_state() 1529 adapter->ahw->mbox_reg[i] = cmd.rsp.arg[i+1]; qlcnic_83xx_config_led() 1540 cmd.req.arg[1] = mbx_in; qlcnic_83xx_config_led() 1541 cmd.req.arg[2] = mbx_in; qlcnic_83xx_config_led() 1542 cmd.req.arg[3] = mbx_in; qlcnic_83xx_config_led() 1544 cmd.req.arg[4] = QLC_83XX_ENABLE_BEACON; qlcnic_83xx_config_led() 1561 cmd.req.arg[1] = adapter->ahw->mbox_reg[0]; qlcnic_83xx_config_led() 1562 cmd.req.arg[2] = adapter->ahw->mbox_reg[1]; qlcnic_83xx_config_led() 1563 cmd.req.arg[3] = adapter->ahw->mbox_reg[2]; qlcnic_83xx_config_led() 1565 cmd.req.arg[4] = adapter->ahw->mbox_reg[3]; qlcnic_83xx_config_led() 1638 cmd.req.arg[1] = QLC_REGISTER_LB_IDC | QLC_INIT_FW_RESOURCES; qlcnic_83xx_initialize_nic() 1641 cmd.req.arg[1] |= QLC_REGISTER_DCB_AEN; qlcnic_83xx_initialize_nic() 1661 cmd.req.arg[1] = adapter->ahw->port_config; qlcnic_83xx_set_port_config() 1682 adapter->ahw->port_config = cmd.rsp.arg[1]; qlcnic_83xx_get_port_config() 1698 cmd.req.arg[1] = (enable ? 1 : 0) | BIT_8 | temp; qlcnic_83xx_setup_link_event() 1744 cmd->req.arg[1] = mode | temp; qlcnic_83xx_nic_set_promisc() 1986 cmd.req.arg[1] = 1 | temp; qlcnic_83xx_config_ipaddr() 1988 cmd.req.arg[1] = 2 | temp; qlcnic_83xx_config_ipaddr() 1999 memcpy(&cmd.req.arg[2], &temp_ip, sizeof(u32)); qlcnic_83xx_config_ipaddr() 2027 cmd.req.arg[1] = arg1; qlcnic_83xx_config_hw_lro() 2062 cmd.req.arg[1] = (adapter->recv_ctx->context_id); qlcnic_83xx_config_rss() 2063 cmd.req.arg[2] = word; qlcnic_83xx_config_rss() 2064 memcpy(&cmd.req.arg[4], key, sizeof(key)); qlcnic_83xx_config_rss() 2112 cmd->req.arg[1] = op | (1 << 8); qlcnic_83xx_sre_macaddr_change() 2114 cmd->req.arg[1] |= temp; qlcnic_83xx_sre_macaddr_change() 2122 buf = &cmd->req.arg[2]; qlcnic_83xx_sre_macaddr_change() 2148 memcpy(&cmd->req.arg[2], mac, sizeof(u32)); qlcnic_83xx_configure_mac() 2149 memcpy(&cmd->req.arg[3], &mac[4], sizeof(u16)); qlcnic_83xx_configure_mac() 2152 cmd->req.arg[1] = type; qlcnic_83xx_configure_mac() 2171 mac_low = cmd.rsp.arg[1]; qlcnic_83xx_get_mac_address() 2172 mac_high = cmd.rsp.arg[2]; qlcnic_83xx_get_mac_address() 2199 cmd.req.arg[1] = QLCNIC_INTR_COAL_TYPE_RX | temp << 16; qlcnic_83xx_set_rx_intr_coal() 2201 cmd.req.arg[2] = coal->rx_packets | temp << 16; qlcnic_83xx_set_rx_intr_coal() 2202 cmd.req.arg[3] = coal->flag; qlcnic_83xx_set_rx_intr_coal() 2226 cmd.req.arg[1] = QLCNIC_INTR_COAL_TYPE_TX | temp << 16; qlcnic_83xx_set_tx_intr_coal() 2228 cmd.req.arg[2] = coal->tx_packets | temp << 16; qlcnic_83xx_set_tx_intr_coal() 2229 cmd.req.arg[3] = coal->flag; qlcnic_83xx_set_tx_intr_coal() 2382 cmd.req.arg[1] = (nic->pci_func << 16); qlcnic_83xx_set_nic_info() 2383 cmd.req.arg[2] = 0x1 << 16; qlcnic_83xx_set_nic_info() 2384 cmd.req.arg[3] = nic->phys_port | (nic->switch_mode << 16); qlcnic_83xx_set_nic_info() 2385 cmd.req.arg[4] = nic->capabilities; qlcnic_83xx_set_nic_info() 2386 cmd.req.arg[5] = (nic->max_mac_filters & 0xFF) | ((nic->max_mtu) << 16); qlcnic_83xx_set_nic_info() 2387 cmd.req.arg[6] = (nic->max_tx_ques) | ((nic->max_rx_ques) << 16); qlcnic_83xx_set_nic_info() 2388 cmd.req.arg[7] = (nic->min_tx_bw) | ((nic->max_tx_bw) << 16); qlcnic_83xx_set_nic_info() 2390 cmd.req.arg[i] = 0; qlcnic_83xx_set_nic_info() 2420 cmd.req.arg[1] = op | BIT_31 | temp; qlcnic_83xx_get_nic_info() 2422 cmd.req.arg[1] = ahw->pci_func << 16; qlcnic_83xx_get_nic_info() 2431 npar_info->op_type = cmd.rsp.arg[1]; qlcnic_83xx_get_nic_info() 2432 npar_info->pci_func = cmd.rsp.arg[2] & 0xFFFF; qlcnic_83xx_get_nic_info() 2433 npar_info->op_mode = (cmd.rsp.arg[2] & 0xFFFF0000) >> 16; qlcnic_83xx_get_nic_info() 2434 npar_info->phys_port = cmd.rsp.arg[3] & 0xFFFF; qlcnic_83xx_get_nic_info() 2435 npar_info->switch_mode = (cmd.rsp.arg[3] & 0xFFFF0000) >> 16; qlcnic_83xx_get_nic_info() 2436 npar_info->capabilities = cmd.rsp.arg[4]; qlcnic_83xx_get_nic_info() 2437 npar_info->max_mac_filters = cmd.rsp.arg[5] & 0xFF; qlcnic_83xx_get_nic_info() 2438 npar_info->max_mtu = (cmd.rsp.arg[5] & 0xFFFF0000) >> 16; qlcnic_83xx_get_nic_info() 2439 npar_info->max_tx_ques = cmd.rsp.arg[6] & 0xFFFF; qlcnic_83xx_get_nic_info() 2440 npar_info->max_rx_ques = (cmd.rsp.arg[6] & 0xFFFF0000) >> 16; qlcnic_83xx_get_nic_info() 2441 npar_info->min_tx_bw = cmd.rsp.arg[7] & 0xFFFF; qlcnic_83xx_get_nic_info() 2442 npar_info->max_tx_bw = (cmd.rsp.arg[7] & 0xFFFF0000) >> 16; qlcnic_83xx_get_nic_info() 2443 if (cmd.rsp.arg[8] & 0x1) qlcnic_83xx_get_nic_info() 2444 npar_info->max_bw_reg_offset = (cmd.rsp.arg[8] & 0x7FFE) >> 1; qlcnic_83xx_get_nic_info() 2445 if (cmd.rsp.arg[8] & 0x10000) { qlcnic_83xx_get_nic_info() 2446 temp = (cmd.rsp.arg[8] & 0x7FFE0000) >> 17; qlcnic_83xx_get_nic_info() 2450 memcpy(ahw->extra_capability, &cmd.rsp.arg[16], qlcnic_83xx_get_nic_info() 2501 ahw->max_pci_func = cmd.rsp.arg[1] & 0xFF; qlcnic_83xx_get_pci_info() 2503 pci_info->id = cmd.rsp.arg[i] & 0xFFFF; qlcnic_83xx_get_pci_info() 2504 pci_info->active = (cmd.rsp.arg[i] & 0xFFFF0000) >> 16; qlcnic_83xx_get_pci_info() 2510 pci_info->type = cmd.rsp.arg[i] & 0xFFFF; qlcnic_83xx_get_pci_info() 2513 temp = (cmd.rsp.arg[i] & 0xFFFF0000) >> 16; qlcnic_83xx_get_pci_info() 2516 pci_info->tx_min_bw = cmd.rsp.arg[i] & 0xFFFF; qlcnic_83xx_get_pci_info() 2517 temp = (cmd.rsp.arg[i] & 0xFFFF0000) >> 16; qlcnic_83xx_get_pci_info() 2520 memcpy(pci_info->mac, &cmd.rsp.arg[i], ETH_ALEN - 2); qlcnic_83xx_get_pci_info() 2522 memcpy(pci_info->mac + sizeof(u32), &cmd.rsp.arg[i], 2); qlcnic_83xx_get_pci_info() 2554 cmd.req.arg[1] = max_ints; qlcnic_83xx_config_intrpt() 2557 cmd.req.arg[1] |= (adapter->ahw->pci_func << 8) | BIT_16; qlcnic_83xx_config_intrpt() 2564 cmd.req.arg[index++] = val; qlcnic_83xx_config_intrpt() 2573 max_ints = cmd.rsp.arg[1]; qlcnic_83xx_config_intrpt() 2575 val = cmd.rsp.arg[index]; qlcnic_83xx_config_intrpt() 2585 temp = cmd.rsp.arg[index + 1]; qlcnic_83xx_config_intrpt() 3197 config = cmd.rsp.arg[1]; qlcnic_83xx_test_link() 3215 config = cmd.rsp.arg[3]; qlcnic_83xx_test_link() 3413 low = cmd->rsp.arg[index]; qlcnic_83xx_copy_stats() 3414 hi = cmd->rsp.arg[index + 1]; qlcnic_83xx_copy_stats() 3486 cmd.req.arg[1] = BIT_1 | (adapter->tx_ring->ctx_id << 16); qlcnic_83xx_get_stats() 3495 cmd.req.arg[1] = BIT_2 | (adapter->portnum << 16); qlcnic_83xx_get_stats() 3497 memset(cmd.rsp.arg, 0, sizeof(u32) * cmd.rsp.num); qlcnic_83xx_get_stats() 3505 cmd.req.arg[1] = adapter->recv_ctx->context_id << 16; qlcnic_83xx_get_stats() 3507 memset(cmd.rsp.arg, 0, sizeof(u32) * cmd.rsp.num); qlcnic_83xx_get_stats() 3589 cmd.req.arg[1] = 1; qlcnic_83xx_interrupt_test() 3590 cmd.req.arg[2] = intrpt_id; qlcnic_83xx_interrupt_test() 3591 cmd.req.arg[3] = BIT_0; qlcnic_83xx_interrupt_test() 3594 data = cmd.rsp.arg[2]; qlcnic_83xx_interrupt_test() 3889 mbx_cmd = cmd->req.arg[0]; qlcnic_83xx_encode_mbx_cmd() 3892 writel(cmd->req.arg[i], QLCNIC_MBX_HOST(ahw, i)); qlcnic_83xx_encode_mbx_cmd()
|
/linux-4.1.27/drivers/isdn/sc/ |
H A D | command.c | 30 static int setl2(int card, unsigned long arg); 31 static int setl3(int card, unsigned long arg); 112 return dial(card, cmd->arg, cmd->parm.setup); command() 114 return hangup(card, cmd->arg); command() 116 return answer(card, cmd->arg); command() 118 return acceptb(card, cmd->arg); command() 120 return clreaz(card, cmd->arg); command() 122 return seteaz(card, cmd->arg, cmd->parm.num); command() 124 return setl2(card, cmd->arg); command() 126 return setl3(card, cmd->arg); command() 235 static int setl2(int card, unsigned long arg) setl2() argument 244 protocol = arg >> 8; setl2() 245 channel = arg & 0xff; setl2() 299 static int clreaz(int card, unsigned long arg) clreaz() argument 306 strcpy(sc_adapter[card]->channel[arg].eazlist, ""); clreaz() 307 sc_adapter[card]->channel[arg].eazclear = 1; clreaz() 309 sc_adapter[card]->devicename, arg + 1); clreaz() 313 static int seteaz(int card, unsigned long arg, char *num) seteaz() argument 320 strcpy(sc_adapter[card]->channel[arg].eazlist, num); seteaz() 321 sc_adapter[card]->channel[arg].eazclear = 0; seteaz() 323 sc_adapter[card]->devicename, arg + 1, seteaz() 324 sc_adapter[card]->channel[arg].eazlist); seteaz()
|
/linux-4.1.27/include/media/ |
H A D | v4l2-common.h | 34 #define v4l_printk(level, name, adapter, addr, fmt, arg...) \ 35 printk(level "%s %d-%04x: " fmt, name, i2c_adapter_id(adapter), addr , ## arg) 37 #define v4l_client_printk(level, client, fmt, arg...) \ 39 (client)->addr, fmt , ## arg) 41 #define v4l_err(client, fmt, arg...) \ 42 v4l_client_printk(KERN_ERR, client, fmt , ## arg) 44 #define v4l_warn(client, fmt, arg...) \ 45 v4l_client_printk(KERN_WARNING, client, fmt , ## arg) 47 #define v4l_info(client, fmt, arg...) \ 48 v4l_client_printk(KERN_INFO, client, fmt , ## arg) 52 #define v4l_dbg(level, debug, client, fmt, arg...) \ 55 v4l_client_printk(KERN_DEBUG, client, fmt , ## arg); \ 61 #define v4l2_printk(level, dev, fmt, arg...) \ 62 printk(level "%s: " fmt, (dev)->name , ## arg) 64 #define v4l2_err(dev, fmt, arg...) \ 65 v4l2_printk(KERN_ERR, dev, fmt , ## arg) 67 #define v4l2_warn(dev, fmt, arg...) \ 68 v4l2_printk(KERN_WARNING, dev, fmt , ## arg) 70 #define v4l2_info(dev, fmt, arg...) \ 71 v4l2_printk(KERN_INFO, dev, fmt , ## arg) 75 #define v4l2_dbg(level, debug, dev, fmt, arg...) \ 78 v4l2_printk(KERN_DEBUG, dev, fmt , ## arg); \
|
H A D | videobuf2-memops.h | 23 * @arg: argument for @put callback 27 void (*put)(void *arg); 28 void *arg; member in struct:vb2_vmarea_handler
|
/linux-4.1.27/drivers/net/wireless/ath/wcn36xx/ |
H A D | debug.c | 111 u32 arg[WCN36xx_MAX_DUMP_ARGS]; write_file_dump() local 115 memset(arg, 0, sizeof(arg)); write_file_dump() 129 if (kstrtou32(begin, 0, &arg[i]) != 0) write_file_dump() 133 wcn36xx_info("DUMP args is %d %d %d %d %d\n", arg[0], arg[1], arg[2], write_file_dump() 134 arg[3], arg[4]); write_file_dump() 135 wcn36xx_smd_dump_cmd_req(wcn, arg[0], arg[1], arg[2], arg[3], arg[4]); write_file_dump()
|
/linux-4.1.27/drivers/infiniband/hw/ehca/ |
H A D | ehca_tools.h | 69 #define ehca_dbg(ib_dev, format, arg...) \ 75 ## arg); \ 78 #define ehca_info(ib_dev, format, arg...) \ 80 raw_smp_processor_id(), __func__, ## arg) 82 #define ehca_warn(ib_dev, format, arg...) \ 84 raw_smp_processor_id(), __func__, ## arg) 86 #define ehca_err(ib_dev, format, arg...) \ 88 raw_smp_processor_id(), __func__, ## arg) 91 #define ehca_gen_dbg(format, arg...) \ 95 raw_smp_processor_id(), __func__, ## arg); \ 98 #define ehca_gen_warn(format, arg...) \ 100 raw_smp_processor_id(), __func__, ## arg) 102 #define ehca_gen_err(format, arg...) \ 104 raw_smp_processor_id(), __func__, ## arg)
|
/linux-4.1.27/sound/core/seq/oss/ |
H A D | seq_oss_ioctl.c | 31 static int snd_seq_oss_synth_info_user(struct seq_oss_devinfo *dp, void __user *arg) snd_seq_oss_synth_info_user() argument 35 if (copy_from_user(&info, arg, sizeof(info))) snd_seq_oss_synth_info_user() 39 if (copy_to_user(arg, &info, sizeof(info))) snd_seq_oss_synth_info_user() 44 static int snd_seq_oss_midi_info_user(struct seq_oss_devinfo *dp, void __user *arg) snd_seq_oss_midi_info_user() argument 48 if (copy_from_user(&info, arg, sizeof(info))) snd_seq_oss_midi_info_user() 52 if (copy_to_user(arg, &info, sizeof(info))) snd_seq_oss_midi_info_user() 57 static int snd_seq_oss_oob_user(struct seq_oss_devinfo *dp, void __user *arg) snd_seq_oss_oob_user() argument 62 if (copy_from_user(ev, arg, 8)) snd_seq_oss_oob_user() 77 void __user *arg = (void __user *)carg; snd_seq_oss_ioctl() local 78 int __user *p = arg; snd_seq_oss_ioctl() 90 return snd_seq_oss_timer_ioctl(dp->timer, cmd, arg); snd_seq_oss_ioctl() 152 return snd_seq_oss_synth_info_user(dp, arg); snd_seq_oss_ioctl() 155 return snd_seq_oss_oob_user(dp, arg); snd_seq_oss_ioctl() 158 return snd_seq_oss_midi_info_user(dp, arg); snd_seq_oss_ioctl()
|
/linux-4.1.27/net/sched/ |
H A D | sch_drr.c | 66 struct nlattr **tca, unsigned long *arg) drr_change_class() 69 struct drr_class *cl = (struct drr_class *)*arg; drr_change_class() 136 *arg = (unsigned long)cl; drr_change_class() 147 static int drr_delete_class(struct Qdisc *sch, unsigned long arg) drr_delete_class() argument 150 struct drr_class *cl = (struct drr_class *)arg; drr_delete_class() 180 static void drr_put_class(struct Qdisc *sch, unsigned long arg) drr_put_class() argument 182 struct drr_class *cl = (struct drr_class *)arg; drr_put_class() 210 static void drr_unbind_tcf(struct Qdisc *sch, unsigned long arg) drr_unbind_tcf() argument 212 struct drr_class *cl = (struct drr_class *)arg; drr_unbind_tcf() 217 static int drr_graft_class(struct Qdisc *sch, unsigned long arg, drr_graft_class() argument 220 struct drr_class *cl = (struct drr_class *)arg; drr_graft_class() 237 static struct Qdisc *drr_class_leaf(struct Qdisc *sch, unsigned long arg) drr_class_leaf() argument 239 struct drr_class *cl = (struct drr_class *)arg; drr_class_leaf() 244 static void drr_qlen_notify(struct Qdisc *csh, unsigned long arg) drr_qlen_notify() argument 246 struct drr_class *cl = (struct drr_class *)arg; drr_qlen_notify() 252 static int drr_dump_class(struct Qdisc *sch, unsigned long arg, drr_dump_class() argument 255 struct drr_class *cl = (struct drr_class *)arg; drr_dump_class() 274 static int drr_dump_class_stats(struct Qdisc *sch, unsigned long arg, drr_dump_class_stats() argument 277 struct drr_class *cl = (struct drr_class *)arg; drr_dump_class_stats() 293 static void drr_walk(struct Qdisc *sch, struct qdisc_walker *arg) drr_walk() argument 299 if (arg->stop) drr_walk() 304 if (arg->count < arg->skip) { drr_walk() 305 arg->count++; drr_walk() 308 if (arg->fn(sch, (unsigned long)cl, arg) < 0) { drr_walk() 309 arg->stop = 1; drr_walk() 312 arg->count++; drr_walk() 65 drr_change_class(struct Qdisc *sch, u32 classid, u32 parentid, struct nlattr **tca, unsigned long *arg) drr_change_class() argument
|
H A D | cls_cgroup.c | 93 unsigned long *arg, bool ovr) cls_cgroup_change() 160 static int cls_cgroup_delete(struct tcf_proto *tp, unsigned long arg) cls_cgroup_delete() argument 165 static void cls_cgroup_walk(struct tcf_proto *tp, struct tcf_walker *arg) cls_cgroup_walk() argument 169 if (arg->count < arg->skip) cls_cgroup_walk() 172 if (arg->fn(tp, (unsigned long) head, arg) < 0) { cls_cgroup_walk() 173 arg->stop = 1; cls_cgroup_walk() 177 arg->count++; cls_cgroup_walk() 90 cls_cgroup_change(struct net *net, struct sk_buff *in_skb, struct tcf_proto *tp, unsigned long base, u32 handle, struct nlattr **tca, unsigned long *arg, bool ovr) cls_cgroup_change() argument
|
H A D | sch_multiq.c | 297 static int multiq_graft(struct Qdisc *sch, unsigned long arg, struct Qdisc *new, multiq_graft() argument 301 unsigned long band = arg - 1; multiq_graft() 317 multiq_leaf(struct Qdisc *sch, unsigned long arg) multiq_leaf() argument 320 unsigned long band = arg - 1; multiq_leaf() 370 static void multiq_walk(struct Qdisc *sch, struct qdisc_walker *arg) multiq_walk() argument 375 if (arg->stop) multiq_walk() 379 if (arg->count < arg->skip) { multiq_walk() 380 arg->count++; multiq_walk() 383 if (arg->fn(sch, band + 1, arg) < 0) { multiq_walk() 384 arg->stop = 1; multiq_walk() 387 arg->count++; multiq_walk()
|
H A D | sch_prio.c | 262 static int prio_graft(struct Qdisc *sch, unsigned long arg, struct Qdisc *new, prio_graft() argument 266 unsigned long band = arg - 1; prio_graft() 282 prio_leaf(struct Qdisc *sch, unsigned long arg) prio_leaf() argument 285 unsigned long band = arg - 1; prio_leaf() 334 static void prio_walk(struct Qdisc *sch, struct qdisc_walker *arg) prio_walk() argument 339 if (arg->stop) prio_walk() 343 if (arg->count < arg->skip) { prio_walk() 344 arg->count++; prio_walk() 347 if (arg->fn(sch, prio + 1, arg) < 0) { prio_walk() 348 arg->stop = 1; prio_walk() 351 arg->count++; prio_walk()
|
H A D | cls_fw.c | 158 static int fw_delete(struct tcf_proto *tp, unsigned long arg) fw_delete() argument 161 struct fw_filter *f = (struct fw_filter *)arg; fw_delete() 240 unsigned long *arg, bool ovr) fw_change() 243 struct fw_filter *f = (struct fw_filter *) *arg; fw_change() 292 *arg = (unsigned long)fnew; fw_change() 327 *arg = (unsigned long)f; fw_change() 335 static void fw_walk(struct tcf_proto *tp, struct tcf_walker *arg) fw_walk() argument 341 arg->stop = 1; fw_walk() 343 if (arg->stop) fw_walk() 351 if (arg->count < arg->skip) { fw_walk() 352 arg->count++; fw_walk() 355 if (arg->fn(tp, (unsigned long)f, arg) < 0) { fw_walk() 356 arg->stop = 1; fw_walk() 359 arg->count++; fw_walk() 236 fw_change(struct net *net, struct sk_buff *in_skb, struct tcf_proto *tp, unsigned long base, u32 handle, struct nlattr **tca, unsigned long *arg, bool ovr) fw_change() argument
|
/linux-4.1.27/arch/cris/arch-v32/drivers/mach-a3/ |
H A D | gpio.c | 73 unsigned long arg); 75 static long gpio_ioctl(struct file *file, unsigned int cmd, unsigned long arg); 99 static int gpio_leds_ioctl(unsigned int cmd, unsigned long arg); 101 unsigned long arg); 478 inline unsigned long setget_input(struct gpio_private *priv, unsigned long arg) setget_input() argument 489 ~(arg & changeable_dir[priv->minor]); setget_input() 508 unsigned long arg) setget_output() 516 (arg & changeable_dir[priv->minor]); setget_output() 524 unsigned int cmd, unsigned long arg) gpio_ioctl_unlocked() 538 return virtual_gpio_ioctl(file, cmd, arg); gpio_ioctl_unlocked() 542 return gpio_leds_ioctl(cmd, arg); gpio_ioctl_unlocked() 546 return gpio_pwm_ioctl(priv, cmd, arg); gpio_ioctl_unlocked() 554 /* Set changeable bits with a 1 in arg. */ gpio_ioctl_unlocked() 556 (arg & changeable_bits[priv->minor]); gpio_ioctl_unlocked() 562 /* Clear changeable bits with a 1 in arg. */ gpio_ioctl_unlocked() 564 ~(arg & changeable_bits[priv->minor]); gpio_ioctl_unlocked() 569 /* Set alarm when bits with 1 in arg go high. */ gpio_ioctl_unlocked() 570 priv->highalarm |= arg; gpio_ioctl_unlocked() 574 /* Set alarm when bits with 1 in arg go low. */ gpio_ioctl_unlocked() 575 priv->lowalarm |= arg; gpio_ioctl_unlocked() 579 /* Clear alarm for bits with 1 in arg. */ gpio_ioctl_unlocked() 580 priv->highalarm &= ~arg; gpio_ioctl_unlocked() 581 priv->lowalarm &= ~arg; gpio_ioctl_unlocked() 592 return setget_input(priv, arg); gpio_ioctl_unlocked() 598 return setget_output(priv, arg); gpio_ioctl_unlocked() 605 clk_mask = arg & 0xFF; gpio_ioctl_unlocked() 606 data_mask = (arg >> 8) & 0xFF; gpio_ioctl_unlocked() 607 write_msb = (arg >> 16) & 0x01; gpio_ioctl_unlocked() 628 /* *arg is result of reading the input pins */ gpio_ioctl_unlocked() 630 if (copy_to_user((void __user *)arg, &val, sizeof(val))) gpio_ioctl_unlocked() 634 /* *arg is result of reading the output shadow */ gpio_ioctl_unlocked() 636 if (copy_to_user((void __user *)arg, &val, sizeof(val))) gpio_ioctl_unlocked() 640 /* bits set in *arg is set to input, gpio_ioctl_unlocked() 641 * *arg updated with current input pins. gpio_ioctl_unlocked() 643 if (copy_from_user(&val, (void __user *)arg, sizeof(val))) gpio_ioctl_unlocked() 646 if (copy_to_user((void __user *)arg, &val, sizeof(val))) gpio_ioctl_unlocked() 650 /* bits set in *arg is set to output, gpio_ioctl_unlocked() 651 * *arg updated with current output pins. gpio_ioctl_unlocked() 653 if (copy_from_user(&val, (void __user *)arg, sizeof(val))) gpio_ioctl_unlocked() 656 if (copy_to_user((void __user *)arg, &val, sizeof(val))) gpio_ioctl_unlocked() 666 static long gpio_ioctl(struct file *file, unsigned int cmd, unsigned long arg) gpio_ioctl() argument 671 ret = gpio_ioctl_unlocked(file, cmd, arg); gpio_ioctl() 679 unsigned long arg) virtual_gpio_ioctl() 689 /* Set changeable bits with a 1 in arg. */ virtual_gpio_ioctl() 692 (arg & changeable_bits[priv->minor]); virtual_gpio_ioctl() 698 /* Clear changeable bits with a 1 in arg. */ virtual_gpio_ioctl() 701 ~(arg & changeable_bits[priv->minor]); virtual_gpio_ioctl() 706 /* Set alarm when bits with 1 in arg go high. */ virtual_gpio_ioctl() 707 priv->highalarm |= arg; virtual_gpio_ioctl() 710 /* Set alarm when bits with 1 in arg go low. */ virtual_gpio_ioctl() 711 priv->lowalarm |= arg; virtual_gpio_ioctl() 714 /* Clear alarm for bits with 1 in arg. */ virtual_gpio_ioctl() 715 priv->highalarm &= ~arg; virtual_gpio_ioctl() 716 priv->lowalarm &= ~arg; virtual_gpio_ioctl() 723 priv->clk_mask = arg & 0xFF; virtual_gpio_ioctl() 724 priv->data_mask = (arg >> 8) & 0xFF; virtual_gpio_ioctl() 725 priv->write_msb = (arg >> 16) & 0x01; virtual_gpio_ioctl() 740 /* *arg is result of reading the input pins */ virtual_gpio_ioctl() 742 if (copy_to_user((void __user *)arg, &val, sizeof(val))) virtual_gpio_ioctl() 747 /* *arg is result of reading the output shadow */ virtual_gpio_ioctl() 750 if (copy_to_user((void __user *)arg, &val, sizeof(val))) virtual_gpio_ioctl() 755 /* bits set in *arg is set to input, virtual_gpio_ioctl() 756 * *arg updated with current input pins. virtual_gpio_ioctl() 759 if (copy_from_user(&val, (void __user *)arg, sizeof(val))) virtual_gpio_ioctl() 762 if (copy_to_user((void __user *)arg, &val, sizeof(val))) virtual_gpio_ioctl() 779 /* bits set in *arg is set to output, virtual_gpio_ioctl() 780 * *arg updated with current output pins. virtual_gpio_ioctl() 782 if (copy_from_user(&val, (void __user *)arg, sizeof(val))) virtual_gpio_ioctl() 785 if (copy_to_user((void __user *)arg, &val, sizeof(val))) virtual_gpio_ioctl() 795 static int gpio_leds_ioctl(unsigned int cmd, unsigned long arg) gpio_leds_ioctl() argument 802 green = ((unsigned char) arg) & 1; gpio_leds_ioctl() 803 red = (((unsigned char) arg) >> 1) & 1; gpio_leds_ioctl() 815 static int gpio_pwm_set_mode(unsigned long arg, int pwm_port) gpio_pwm_set_mode() argument 826 if (get_user(mode, &((struct io_pwm_set_mode *) arg)->mode)) gpio_pwm_set_mode() 840 static int gpio_pwm_set_period(unsigned long arg, int pwm_port) gpio_pwm_set_period() argument 845 if (copy_from_user(&periods, (void __user *)arg, sizeof(periods))) gpio_pwm_set_period() 856 static int gpio_pwm_set_duty(unsigned long arg, int pwm_port) gpio_pwm_set_duty() argument 861 if (get_user(duty, &((struct io_pwm_set_duty *) arg)->duty)) gpio_pwm_set_duty() 872 unsigned long arg) gpio_pwm_ioctl() 878 return gpio_pwm_set_mode(arg, pwm_port); gpio_pwm_ioctl() 880 return gpio_pwm_set_period(arg, pwm_port); gpio_pwm_ioctl() 882 return gpio_pwm_set_duty(arg, pwm_port); gpio_pwm_ioctl() 507 setget_output(struct gpio_private *priv, unsigned long arg) setget_output() argument 523 gpio_ioctl_unlocked(struct file *file, unsigned int cmd, unsigned long arg) gpio_ioctl_unlocked() argument 678 virtual_gpio_ioctl(struct file *file, unsigned int cmd, unsigned long arg) virtual_gpio_ioctl() argument 871 gpio_pwm_ioctl(struct gpio_private *priv, unsigned int cmd, unsigned long arg) gpio_pwm_ioctl() argument
|
/linux-4.1.27/fs/nfs/ |
H A D | nfs3proc.c | 124 struct nfs3_sattrargs arg = { nfs3_proc_setattr() local 130 .rpc_argp = &arg, nfs3_proc_setattr() 151 struct nfs3_diropargs arg = { nfs3_proc_lookup() local 162 .rpc_argp = &arg, nfs3_proc_lookup() 188 struct nfs3_accessargs arg = { nfs3_proc_access() local 194 .rpc_argp = &arg, nfs3_proc_access() 204 arg.access |= NFS3_ACCESS_READ; nfs3_proc_access() 207 arg.access |= NFS3_ACCESS_MODIFY | NFS3_ACCESS_EXTEND | NFS3_ACCESS_DELETE; nfs3_proc_access() 209 arg.access |= NFS3_ACCESS_LOOKUP; nfs3_proc_access() 212 arg.access |= NFS3_ACCESS_MODIFY | NFS3_ACCESS_EXTEND; nfs3_proc_access() 214 arg.access |= NFS3_ACCESS_EXECUTE; nfs3_proc_access() 275 } arg; member in struct:nfs3_createdata 288 data->msg.rpc_argp = &data->arg; nfs3_alloc_createdata() 333 data->arg.create.fh = NFS_FH(dir); nfs3_proc_create() 334 data->arg.create.name = dentry->d_name.name; nfs3_proc_create() 335 data->arg.create.len = dentry->d_name.len; nfs3_proc_create() 336 data->arg.create.sattr = sattr; nfs3_proc_create() 338 data->arg.create.createmode = NFS3_CREATE_UNCHECKED; nfs3_proc_create() 340 data->arg.create.createmode = NFS3_CREATE_EXCLUSIVE; nfs3_proc_create() 341 data->arg.create.verifier[0] = cpu_to_be32(jiffies); nfs3_proc_create() 342 data->arg.create.verifier[1] = cpu_to_be32(current->pid); nfs3_proc_create() 356 switch (data->arg.create.createmode) { nfs3_proc_create() 358 data->arg.create.createmode = NFS3_CREATE_GUARDED; nfs3_proc_create() 362 data->arg.create.createmode = NFS3_CREATE_UNCHECKED; nfs3_proc_create() 377 if (data->arg.create.createmode == NFS3_CREATE_EXCLUSIVE) { nfs3_proc_create() 409 struct nfs_removeargs arg = { nfs3_proc_remove() local 416 .rpc_argp = &arg, nfs3_proc_remove() 485 struct nfs3_linkargs arg = { nfs3_proc_link() local 494 .rpc_argp = &arg, nfs3_proc_link() 531 data->arg.symlink.fromfh = NFS_FH(dir); nfs3_proc_symlink() 532 data->arg.symlink.fromname = dentry->d_name.name; nfs3_proc_symlink() 533 data->arg.symlink.fromlen = dentry->d_name.len; nfs3_proc_symlink() 534 data->arg.symlink.pages = &page; nfs3_proc_symlink() 535 data->arg.symlink.pathlen = len; nfs3_proc_symlink() 536 data->arg.symlink.sattr = sattr; nfs3_proc_symlink() 564 data->arg.mkdir.fh = NFS_FH(dir); nfs3_proc_mkdir() 565 data->arg.mkdir.name = dentry->d_name.name; nfs3_proc_mkdir() 566 data->arg.mkdir.len = dentry->d_name.len; nfs3_proc_mkdir() 567 data->arg.mkdir.sattr = sattr; nfs3_proc_mkdir() 588 struct nfs3_diropargs arg = { nfs3_proc_rmdir() local 595 .rpc_argp = &arg, nfs3_proc_rmdir() 628 struct nfs3_readdirargs arg = { nfs3_proc_readdir() local 642 .rpc_argp = &arg, nfs3_proc_readdir() 690 data->arg.mknod.fh = NFS_FH(dir); nfs3_proc_mknod() 691 data->arg.mknod.name = dentry->d_name.name; nfs3_proc_mknod() 692 data->arg.mknod.len = dentry->d_name.len; nfs3_proc_mknod() 693 data->arg.mknod.sattr = sattr; nfs3_proc_mknod() 694 data->arg.mknod.rdev = rdev; nfs3_proc_mknod() 698 data->arg.mknod.type = NF3BLK; nfs3_proc_mknod() 701 data->arg.mknod.type = NF3CHR; nfs3_proc_mknod() 704 data->arg.mknod.type = NF3FIFO; nfs3_proc_mknod() 707 data->arg.mknod.type = NF3SOCK; nfs3_proc_mknod()
|
/linux-4.1.27/tools/testing/selftests/ptrace/ |
H A D | peeksiginfo.c | 45 struct ptrace_peeksiginfo_args arg; check_error_paths() local 67 arg.nr = SIGNR; check_error_paths() 68 arg.off = 0; check_error_paths() 71 arg.flags = ~0; check_error_paths() 72 ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg, addr_rw); check_error_paths() 79 arg.flags = 0; check_error_paths() 82 ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg, check_error_paths() 90 ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg, addr_ro); check_error_paths() 106 struct ptrace_peeksiginfo_args arg = {.flags = 0, .nr = nr, .off = 0}; check_direct_path() local 112 arg.flags = PTRACE_PEEKSIGINFO_SHARED; check_direct_path() 115 arg.flags = 0; check_direct_path() 120 arg.off = i; check_direct_path() 121 ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg, siginfo); check_direct_path()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | vmap.c | 93 info->arg[0] = nv_ro32(bios, vmap + 0x08); nvbios_vmap_entry_parse() 94 info->arg[1] = nv_ro32(bios, vmap + 0x0c); nvbios_vmap_entry_parse() 95 info->arg[2] = nv_ro32(bios, vmap + 0x10); nvbios_vmap_entry_parse() 102 info->arg[0] = nv_ro32(bios, vmap + 0x0a); nvbios_vmap_entry_parse() 103 info->arg[1] = nv_ro32(bios, vmap + 0x0e); nvbios_vmap_entry_parse() 104 info->arg[2] = nv_ro32(bios, vmap + 0x12); nvbios_vmap_entry_parse() 105 info->arg[3] = nv_ro32(bios, vmap + 0x16); nvbios_vmap_entry_parse() 106 info->arg[4] = nv_ro32(bios, vmap + 0x1a); nvbios_vmap_entry_parse() 107 info->arg[5] = nv_ro32(bios, vmap + 0x1e); nvbios_vmap_entry_parse()
|
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_common.h | 190 #define hw_dbg(hw, format, arg...) \ 191 netdev_dbg(ixgbe_hw_to_netdev(hw), format, ## arg) 192 #define hw_err(hw, format, arg...) \ 193 netdev_err(ixgbe_hw_to_netdev(hw), format, ## arg) 194 #define e_dev_info(format, arg...) \ 195 dev_info(&adapter->pdev->dev, format, ## arg) 196 #define e_dev_warn(format, arg...) \ 197 dev_warn(&adapter->pdev->dev, format, ## arg) 198 #define e_dev_err(format, arg...) \ 199 dev_err(&adapter->pdev->dev, format, ## arg) 200 #define e_dev_notice(format, arg...) \ 201 dev_notice(&adapter->pdev->dev, format, ## arg) 202 #define e_info(msglvl, format, arg...) \ 203 netif_info(adapter, msglvl, adapter->netdev, format, ## arg) 204 #define e_err(msglvl, format, arg...) \ 205 netif_err(adapter, msglvl, adapter->netdev, format, ## arg) 206 #define e_warn(msglvl, format, arg...) \ 207 netif_warn(adapter, msglvl, adapter->netdev, format, ## arg) 208 #define e_crit(msglvl, format, arg...) \ 209 netif_crit(adapter, msglvl, adapter->netdev, format, ## arg)
|
/linux-4.1.27/drivers/isdn/hisax/ |
H A D | l3_1tr6.c | 44 l3_1tr6_release_req(struct l3_process *pc, u_char pr, void *arg) l3_1tr6_release_req() argument 53 l3_1tr6_invalid(struct l3_process *pc, u_char pr, void *arg) l3_1tr6_invalid() argument 55 struct sk_buff *skb = arg; l3_1tr6_invalid() 71 l3_1tr6_setup_req(struct l3_process *pc, u_char pr, void *arg) l3_1tr6_setup_req() argument 160 l3_1tr6_setup(struct l3_process *pc, u_char pr, void *arg) l3_1tr6_setup() argument 164 struct sk_buff *skb = arg; l3_1tr6_setup() 227 l3_1tr6_setup_ack(struct l3_process *pc, u_char pr, void *arg) l3_1tr6_setup_ack() argument 230 struct sk_buff *skb = arg; l3_1tr6_setup_ack() 255 l3_1tr6_call_sent(struct l3_process *pc, u_char pr, void *arg) l3_1tr6_call_sent() argument 258 struct sk_buff *skb = arg; l3_1tr6_call_sent() 287 l3_1tr6_alert(struct l3_process *pc, u_char pr, void *arg) l3_1tr6_alert() argument 289 struct sk_buff *skb = arg; l3_1tr6_alert() 298 l3_1tr6_info(struct l3_process *pc, u_char pr, void *arg) l3_1tr6_info() argument 303 struct sk_buff *skb = arg; l3_1tr6_info() 327 l3_1tr6_info_s2(struct l3_process *pc, u_char pr, void *arg) l3_1tr6_info_s2() argument 329 struct sk_buff *skb = arg; l3_1tr6_info_s2() 335 l3_1tr6_connect(struct l3_process *pc, u_char pr, void *arg) l3_1tr6_connect() argument 337 struct sk_buff *skb = arg; l3_1tr6_connect() 351 l3_1tr6_rel(struct l3_process *pc, u_char pr, void *arg) l3_1tr6_rel() argument 353 struct sk_buff *skb = arg; l3_1tr6_rel() 382 l3_1tr6_rel_ack(struct l3_process *pc, u_char pr, void *arg) l3_1tr6_rel_ack() argument 384 struct sk_buff *skb = arg; l3_1tr6_rel_ack() 395 l3_1tr6_disc(struct l3_process *pc, u_char pr, void *arg) l3_1tr6_disc() argument 397 struct sk_buff *skb = arg; l3_1tr6_disc() 450 l3_1tr6_connect_ack(struct l3_process *pc, u_char pr, void *arg) l3_1tr6_connect_ack() argument 452 struct sk_buff *skb = arg; l3_1tr6_connect_ack() 466 l3_1tr6_alert_req(struct l3_process *pc, u_char pr, void *arg) l3_1tr6_alert_req() argument 473 l3_1tr6_setup_rsp(struct l3_process *pc, u_char pr, void *arg) l3_1tr6_setup_rsp() argument 507 l3_1tr6_reset(struct l3_process *pc, u_char pr, void *arg) l3_1tr6_reset() argument 513 l3_1tr6_disconnect_req(struct l3_process *pc, u_char pr, void *arg) l3_1tr6_disconnect_req() argument 552 l3_1tr6_t303(struct l3_process *pc, u_char pr, void *arg) l3_1tr6_t303() argument 557 l3_1tr6_setup_req(pc, pr, arg); l3_1tr6_t303() 566 l3_1tr6_t304(struct l3_process *pc, u_char pr, void *arg) l3_1tr6_t304() argument 575 l3_1tr6_t305(struct l3_process *pc, u_char pr, void *arg) l3_1tr6_t305() argument 611 l3_1tr6_t310(struct l3_process *pc, u_char pr, void *arg) l3_1tr6_t310() argument 620 l3_1tr6_t313(struct l3_process *pc, u_char pr, void *arg) l3_1tr6_t313() argument 629 l3_1tr6_t308_1(struct l3_process *pc, u_char pr, void *arg) l3_1tr6_t308_1() argument 638 l3_1tr6_t308_2(struct l3_process *pc, u_char pr, void *arg) l3_1tr6_t308_2() argument 646 l3_1tr6_dl_reset(struct l3_process *pc, u_char pr, void *arg) l3_1tr6_dl_reset() argument 654 l3_1tr6_dl_release(struct l3_process *pc, u_char pr, void *arg) l3_1tr6_dl_release() argument 742 up1tr6(struct PStack *st, int pr, void *arg) up1tr6() argument 746 struct sk_buff *skb = arg; up1tr6() 756 l3_msg(st, pr, arg); up1tr6() 848 down1tr6(struct PStack *st, int pr, void *arg) down1tr6() argument 858 chan = arg; down1tr6() 870 proc = arg; down1tr6() 887 downstl[i].rout(proc, pr, arg); down1tr6() 892 man1tr6(struct PStack *st, int pr, void *arg) man1tr6() argument 895 struct l3_process *proc = arg; man1tr6() 915 manstatelist[i].rout(proc, pr, arg); man1tr6()
|
H A D | isdnl2.c | 516 l2_mdl_error_ua(struct FsmInst *fi, int event, void *arg) l2_mdl_error_ua() argument 518 struct sk_buff *skb = arg; l2_mdl_error_ua() 528 l2_mdl_error_dm(struct FsmInst *fi, int event, void *arg) l2_mdl_error_dm() argument 530 struct sk_buff *skb = arg; l2_mdl_error_dm() 543 l2_st8_mdl_error_dm(struct FsmInst *fi, int event, void *arg) l2_st8_mdl_error_dm() argument 545 struct sk_buff *skb = arg; l2_st8_mdl_error_dm() 558 l2_go_st3(struct FsmInst *fi, int event, void *arg) l2_go_st3() argument 564 l2_mdl_assign(struct FsmInst *fi, int event, void *arg) l2_mdl_assign() argument 573 l2_queue_ui_assign(struct FsmInst *fi, int event, void *arg) l2_queue_ui_assign() argument 576 struct sk_buff *skb = arg; l2_queue_ui_assign() 584 l2_queue_ui(struct FsmInst *fi, int event, void *arg) l2_queue_ui() argument 587 struct sk_buff *skb = arg; l2_queue_ui() 608 l2_send_ui(struct FsmInst *fi, int event, void *arg) l2_send_ui() argument 611 struct sk_buff *skb = arg; l2_send_ui() 618 l2_got_ui(struct FsmInst *fi, int event, void *arg) l2_got_ui() argument 621 struct sk_buff *skb = arg; l2_got_ui() 633 l2_establish(struct FsmInst *fi, int event, void *arg) l2_establish() argument 642 l2_discard_i_setl3(struct FsmInst *fi, int event, void *arg) l2_discard_i_setl3() argument 652 l2_l3_reestablish(struct FsmInst *fi, int event, void *arg) l2_l3_reestablish() argument 662 l2_release(struct FsmInst *fi, int event, void *arg) l2_release() argument 670 l2_pend_rel(struct FsmInst *fi, int event, void *arg) l2_pend_rel() argument 678 l2_disconnect(struct FsmInst *fi, int event, void *arg) l2_disconnect() argument 692 l2_start_multi(struct FsmInst *fi, int event, void *arg) l2_start_multi() argument 695 struct sk_buff *skb = arg; l2_start_multi() 711 l2_send_UA(struct FsmInst *fi, int event, void *arg) l2_send_UA() argument 714 struct sk_buff *skb = arg; l2_send_UA() 720 l2_send_DM(struct FsmInst *fi, int event, void *arg) l2_send_DM() argument 723 struct sk_buff *skb = arg; l2_send_DM() 729 l2_restart_multi(struct FsmInst *fi, int event, void *arg) l2_restart_multi() argument 732 struct sk_buff *skb = arg; l2_restart_multi() 764 l2_stop_multi(struct FsmInst *fi, int event, void *arg) l2_stop_multi() argument 767 struct sk_buff *skb = arg; l2_stop_multi() 781 l2_connected(struct FsmInst *fi, int event, void *arg) l2_connected() argument 784 struct sk_buff *skb = arg; l2_connected() 788 l2_mdl_error_ua(fi, event, arg); l2_connected() 794 l2_disconnect(fi, event, arg); l2_connected() 820 l2_released(struct FsmInst *fi, int event, void *arg) l2_released() argument 823 struct sk_buff *skb = arg; l2_released() 826 l2_mdl_error_ua(fi, event, arg); l2_released() 837 l2_reestablish(struct FsmInst *fi, int event, void *arg) l2_reestablish() argument 840 struct sk_buff *skb = arg; l2_reestablish() 849 l2_st5_dm_release(struct FsmInst *fi, int event, void *arg) l2_st5_dm_release() argument 852 struct sk_buff *skb = arg; l2_st5_dm_release() 866 l2_st6_dm_release(struct FsmInst *fi, int event, void *arg) l2_st6_dm_release() argument 869 struct sk_buff *skb = arg; l2_st6_dm_release() 965 l2_st7_got_super(struct FsmInst *fi, int event, void *arg) l2_st7_got_super() argument 968 struct sk_buff *skb = arg; l2_st7_got_super() 1026 l2_feed_i_if_reest(struct FsmInst *fi, int event, void *arg) l2_feed_i_if_reest() argument 1029 struct sk_buff *skb = arg; l2_feed_i_if_reest() 1040 l2_feed_i_pull(struct FsmInst *fi, int event, void *arg) l2_feed_i_pull() argument 1043 struct sk_buff *skb = arg; l2_feed_i_pull() 1052 l2_feed_iqueue(struct FsmInst *fi, int event, void *arg) l2_feed_iqueue() argument 1055 struct sk_buff *skb = arg; l2_feed_iqueue() 1063 l2_got_iframe(struct FsmInst *fi, int event, void *arg) l2_got_iframe() argument 1066 struct sk_buff *skb = arg; l2_got_iframe() 1132 l2_got_tei(struct FsmInst *fi, int event, void *arg) l2_got_tei() argument 1136 st->l2.tei = (long) arg; l2_got_tei() 1148 l2_st5_tout_200(struct FsmInst *fi, int event, void *arg) l2_st5_tout_200() argument 1172 l2_st6_tout_200(struct FsmInst *fi, int event, void *arg) l2_st6_tout_200() argument 1193 l2_st7_tout_200(struct FsmInst *fi, int event, void *arg) l2_st7_tout_200() argument 1211 l2_st8_tout_200(struct FsmInst *fi, int event, void *arg) l2_st8_tout_200() argument 1232 l2_st7_tout_203(struct FsmInst *fi, int event, void *arg) l2_st7_tout_203() argument 1247 l2_pull_iqueue(struct FsmInst *fi, int event, void *arg) l2_pull_iqueue() argument 1310 l2_st8_got_super(struct FsmInst *fi, int event, void *arg) l2_st8_got_super() argument 1313 struct sk_buff *skb = arg; l2_st8_got_super() 1366 l2_got_FRMR(struct FsmInst *fi, int event, void *arg) l2_got_FRMR() argument 1369 struct sk_buff *skb = arg; l2_got_FRMR() 1383 l2_st24_tei_remove(struct FsmInst *fi, int event, void *arg) l2_st24_tei_remove() argument 1393 l2_st3_tei_remove(struct FsmInst *fi, int event, void *arg) l2_st3_tei_remove() argument 1404 l2_st5_tei_remove(struct FsmInst *fi, int event, void *arg) l2_st5_tei_remove() argument 1418 l2_st6_tei_remove(struct FsmInst *fi, int event, void *arg) l2_st6_tei_remove() argument 1430 l2_tei_remove(struct FsmInst *fi, int event, void *arg) l2_tei_remove() argument 1445 l2_st14_persistent_da(struct FsmInst *fi, int event, void *arg) l2_st14_persistent_da() argument 1456 l2_st5_persistent_da(struct FsmInst *fi, int event, void *arg) l2_st5_persistent_da() argument 1469 l2_st6_persistent_da(struct FsmInst *fi, int event, void *arg) l2_st6_persistent_da() argument 1480 l2_persistent_da(struct FsmInst *fi, int event, void *arg) l2_persistent_da() argument 1494 l2_set_own_busy(struct FsmInst *fi, int event, void *arg) l2_set_own_busy() argument 1505 l2_clear_own_busy(struct FsmInst *fi, int event, void *arg) l2_clear_own_busy() argument 1516 l2_frame_error(struct FsmInst *fi, int event, void *arg) l2_frame_error() argument 1520 st->ma.layer(st, MDL_ERROR | INDICATION, arg); l2_frame_error() 1524 l2_frame_error_reest(struct FsmInst *fi, int event, void *arg) l2_frame_error_reest() argument 1528 st->ma.layer(st, MDL_ERROR | INDICATION, arg); l2_frame_error_reest() 1626 isdnl2_l1l2(struct PStack *st, int pr, void *arg) isdnl2_l1l2() argument 1628 struct sk_buff *skb = arg; isdnl2_l1l2() 1682 FsmEvent(&st->l2.l2m, EV_L2_ACK_PULL, arg); isdnl2_l1l2() 1694 FsmEvent(&st->l2.l2m, EV_L2_DL_ESTABLISH_REQ, arg); isdnl2_l1l2() 1699 FsmEvent(&st->l2.l2m, EV_L1_DEACTIVATE, arg); isdnl2_l1l2() 1708 isdnl2_l3l2(struct PStack *st, int pr, void *arg) isdnl2_l3l2() argument 1712 if (FsmEvent(&st->l2.l2m, EV_L2_DL_DATA, arg)) { isdnl2_l3l2() 1713 dev_kfree_skb((struct sk_buff *) arg); isdnl2_l3l2() 1717 if (FsmEvent(&st->l2.l2m, EV_L2_DL_UNIT_DATA, arg)) { isdnl2_l3l2() 1718 dev_kfree_skb((struct sk_buff *) arg); isdnl2_l3l2() 1725 FsmEvent(&st->l2.l2m, EV_L2_DL_ESTABLISH_REQ, arg); isdnl2_l3l2() 1739 FsmEvent(&st->l2.l2m, EV_L2_DL_RELEASE_REQ, arg); isdnl2_l3l2() 1742 FsmEvent(&st->l2.l2m, EV_L2_MDL_ASSIGN, arg); isdnl2_l3l2() 1745 FsmEvent(&st->l2.l2m, EV_L2_MDL_REMOVE, arg); isdnl2_l3l2() 1748 FsmEvent(&st->l2.l2m, EV_L2_MDL_ERROR, arg); isdnl2_l3l2() 1802 transl2_l3l2(struct PStack *st, int pr, void *arg) transl2_l3l2() argument 1807 st->l2.l2l1(st, PH_DATA | REQUEST, arg); transl2_l3l2()
|
H A D | isdnl1.h | 28 void l1_msg(struct IsdnCardState *cs, int pr, void *arg); 29 void l1_msg_b(struct PStack *st, int pr, void *arg);
|
H A D | callc.c | 180 ic.arg = chanp->chan; HL_LL() 195 ic.arg = chanp->chan; lli_deliver_cause() 216 lli_leased_in(struct FsmInst *fi, int event, void *arg) lli_leased_in() argument 230 ic.arg = chanp->chan; lli_leased_in() 251 lli_init_bchan_out(struct FsmInst *fi, int event, void *arg) lli_init_bchan_out() argument 264 lli_prep_dialout(struct FsmInst *fi, int event, void *arg) lli_prep_dialout() argument 274 lli_init_bchan_out(fi, event, arg); lli_prep_dialout() 282 lli_resume(struct FsmInst *fi, int event, void *arg) lli_resume() argument 292 lli_init_bchan_out(fi, event, arg); lli_resume() 300 lli_go_active(struct FsmInst *fi, int event, void *arg) lli_go_active() argument 316 ic.arg = chanp->chan; lli_go_active() 329 lli_deliver_call(struct FsmInst *fi, int event, void *arg) lli_deliver_call() argument 348 ic.arg = chanp->chan; lli_deliver_call() 394 lli_send_dconnect(struct FsmInst *fi, int event, void *arg) lli_send_dconnect() argument 403 lli_send_alert(struct FsmInst *fi, int event, void *arg) lli_send_alert() argument 412 lli_send_redir(struct FsmInst *fi, int event, void *arg) lli_send_redir() argument 420 lli_init_bchan_in(struct FsmInst *fi, int event, void *arg) lli_init_bchan_in() argument 435 lli_setup_rsp(struct FsmInst *fi, int event, void *arg) lli_setup_rsp() argument 440 lli_init_bchan_in(fi, event, arg); lli_setup_rsp() 453 lli_suspend(struct FsmInst *fi, int event, void *arg) lli_suspend() argument 469 ic.arg = chanp->chan; lli_leased_hup() 479 lli_disconnect_req(struct FsmInst *fi, int event, void *arg) lli_disconnect_req() argument 495 lli_disconnect_reject(struct FsmInst *fi, int event, void *arg) lli_disconnect_reject() argument 511 lli_dhup_close(struct FsmInst *fi, int event, void *arg) lli_dhup_close() argument 527 lli_reject_req(struct FsmInst *fi, int event, void *arg) lli_reject_req() argument 539 lli_dhup_close(fi, event, arg); lli_reject_req() 548 lli_disconn_bchan(struct FsmInst *fi, int event, void *arg) lli_disconn_bchan() argument 558 lli_start_disc(struct FsmInst *fi, int event, void *arg) lli_start_disc() argument 565 lli_disconnect_req(fi, event, arg); lli_start_disc() 570 lli_rel_b_disc(struct FsmInst *fi, int event, void *arg) lli_rel_b_disc() argument 575 lli_start_disc(fi, event, arg); lli_rel_b_disc() 579 lli_bhup_disc(struct FsmInst *fi, int event, void *arg) lli_bhup_disc() argument 586 lli_rel_b_disc(fi, event, arg); lli_bhup_disc() 590 lli_bhup_rel_b(struct FsmInst *fi, int event, void *arg) lli_bhup_rel_b() argument 603 lli_release_bchan(struct FsmInst *fi, int event, void *arg) lli_release_bchan() argument 614 lli_rel_b_dhup(struct FsmInst *fi, int event, void *arg) lli_rel_b_dhup() argument 619 lli_dhup_close(fi, event, arg); lli_rel_b_dhup() 623 lli_bhup_dhup(struct FsmInst *fi, int event, void *arg) lli_bhup_dhup() argument 630 lli_rel_b_dhup(fi, event, arg); lli_bhup_dhup() 634 lli_abort(struct FsmInst *fi, int event, void *arg) lli_abort() argument 640 lli_bhup_dhup(fi, event, arg); lli_abort() 644 lli_release_req(struct FsmInst *fi, int event, void *arg) lli_release_req() argument 658 lli_rel_b_release_req(struct FsmInst *fi, int event, void *arg) lli_rel_b_release_req() argument 663 lli_release_req(fi, event, arg); lli_rel_b_release_req() 667 lli_bhup_release_req(struct FsmInst *fi, int event, void *arg) lli_bhup_release_req() argument 674 lli_rel_b_release_req(fi, event, arg); lli_bhup_release_req() 680 lli_charge_info(struct FsmInst *fi, int event, void *arg) lli_charge_info() argument 687 ic.arg = chanp->chan; lli_charge_info() 695 lli_dchan_not_ready(struct FsmInst *fi, int event, void *arg) lli_dchan_not_ready() argument 705 lli_no_setup_rsp(struct FsmInst *fi, int event, void *arg) lli_no_setup_rsp() argument 716 lli_error(struct FsmInst *fi, int event, void *arg) lli_error() argument 722 lli_failure_l(struct FsmInst *fi, int event, void *arg) lli_failure_l() argument 730 ic.arg = chanp->chan; lli_failure_l() 739 lli_rel_b_fail(struct FsmInst *fi, int event, void *arg) lli_rel_b_fail() argument 744 lli_failure_l(fi, event, arg); lli_rel_b_fail() 748 lli_bhup_fail(struct FsmInst *fi, int event, void *arg) lli_bhup_fail() argument 755 lli_rel_b_fail(fi, event, arg); lli_bhup_fail() 759 lli_failure_a(struct FsmInst *fi, int event, void *arg) lli_failure_a() argument 765 lli_bhup_fail(fi, event, arg); lli_failure_a() 918 ic.arg = chan; stat_redir_result() 924 dchan_l3l4(struct PStack *st, int pr, void *arg) dchan_l3l4() argument 926 struct l3_process *pc = arg; dchan_l3l4() 1009 dummy_pstack(struct PStack *st, int pr, void *arg) { dummy_pstack() argument 1010 printk(KERN_WARNING"call to dummy_pstack pr=%04x arg %lx\n", pr, (long)arg); dummy_pstack() 1184 lldata_handler(struct PStack *st, int pr, void *arg) lldata_handler() argument 1187 struct sk_buff *skb = arg; lldata_handler() 1216 lltrans_handler(struct PStack *st, int pr, void *arg) lltrans_handler() argument 1219 struct sk_buff *skb = arg; lltrans_handler() 1257 ic.arg = chanp->chan; lli_writewakeup() 1335 leased_l4l3(struct PStack *st, int pr, void *arg) leased_l4l3() argument 1338 struct sk_buff *skb = arg; leased_l4l3() 1358 leased_l1l2(struct PStack *st, int pr, void *arg) leased_l1l2() argument 1361 struct sk_buff *skb = arg; leased_l1l2() 1481 ic.arg = ii; set_channel_limit() 1511 chanp = csta->channel + ic->arg; HiSax_command() 1514 chanp = csta->channel + (ic->arg & 0xff); HiSax_command() 1517 csta->cardnr + 1, ic->arg >> 8); HiSax_command() 1518 chanp->l2_protocol = ic->arg >> 8; HiSax_command() 1521 chanp = csta->channel + (ic->arg & 0xff); HiSax_command() 1524 csta->cardnr + 1, ic->arg >> 8); HiSax_command() 1525 chanp->l3_protocol = ic->arg >> 8; HiSax_command() 1528 chanp = csta->channel + (ic->arg & 0xff); HiSax_command() 1546 chanp = csta->channel + ic->arg; HiSax_command() 1552 chanp = csta->channel + ic->arg; HiSax_command() 1559 chanp = csta->channel + ic->arg; HiSax_command() 1565 chanp = csta->channel + ic->arg; HiSax_command() 1584 switch (ic->arg) { HiSax_command() 1697 (int) ic->arg); HiSax_command() 1703 chanp = csta->channel + ic->arg; HiSax_command() 1710 chanp = csta->channel + ic->arg; HiSax_command() 1717 chanp = csta->channel + ic->arg; HiSax_command() 1727 if (st->protocol == (ic->arg & 0xFF)) HiSax_command()
|
H A D | fsm.h | 47 void *arg; member in struct:FsmTimer 52 int FsmEvent(struct FsmInst *fi, int event, void *arg); 56 void *arg, int where); 58 void *arg, int where);
|
H A D | isdnl1.c | 458 l1_reset(struct FsmInst *fi, int event, void *arg) l1_reset() argument 464 l1_deact_cnf(struct FsmInst *fi, int event, void *arg) l1_deact_cnf() argument 474 l1_deact_req_s(struct FsmInst *fi, int event, void *arg) l1_deact_req_s() argument 484 l1_power_up_s(struct FsmInst *fi, int event, void *arg) l1_power_up_s() argument 498 l1_go_F5(struct FsmInst *fi, int event, void *arg) l1_go_F5() argument 504 l1_go_F8(struct FsmInst *fi, int event, void *arg) l1_go_F8() argument 510 l1_info2_ind(struct FsmInst *fi, int event, void *arg) l1_info2_ind() argument 524 l1_info4_ind(struct FsmInst *fi, int event, void *arg) l1_info4_ind() argument 546 l1_timer3(struct FsmInst *fi, int event, void *arg) l1_timer3() argument 564 l1_timer_act(struct FsmInst *fi, int event, void *arg) l1_timer_act() argument 574 l1_timer_deact(struct FsmInst *fi, int event, void *arg) l1_timer_deact() argument 585 l1_activate_s(struct FsmInst *fi, int event, void *arg) l1_activate_s() argument 593 l1_activate_no(struct FsmInst *fi, int event, void *arg) l1_activate_no() argument 653 l1_deact_req_u(struct FsmInst *fi, int event, void *arg) l1_deact_req_u() argument 664 l1_power_up_u(struct FsmInst *fi, int event, void *arg) l1_power_up_u() argument 673 l1_info0_ind(struct FsmInst *fi, int event, void *arg) l1_info0_ind() argument 679 l1_activate_u(struct FsmInst *fi, int event, void *arg) l1_activate_u() argument 711 l1b_activate(struct FsmInst *fi, int event, void *arg) l1b_activate() argument 720 l1b_deactivate(struct FsmInst *fi, int event, void *arg) l1b_deactivate() argument 729 l1b_timer_act(struct FsmInst *fi, int event, void *arg) l1b_timer_act() argument 738 l1b_timer_deact(struct FsmInst *fi, int event, void *arg) l1b_timer_deact() argument 801 dch_l2l1(struct PStack *st, int pr, void *arg) dch_l2l1() argument 809 st->l1.l1hw(st, pr, arg); dch_l2l1() 819 FsmEvent(&st->l1.l1m, EV_PH_ACTIVATE, arg); dch_l2l1() 823 if (1 & (long) arg) dch_l2l1() 825 if (2 & (long) arg) dch_l2l1() 827 if (!(3 & (long) arg)) dch_l2l1() 829 st->l1.l1hw(st, HW_TESTLOOP | REQUEST, arg); dch_l2l1() 839 l1_msg(struct IsdnCardState *cs, int pr, void *arg) { l1_msg() argument 847 FsmEvent(&st->l1.l1m, EV_RESET_IND, arg); l1_msg() 850 FsmEvent(&st->l1.l1m, EV_DEACT_CNF, arg); l1_msg() 853 FsmEvent(&st->l1.l1m, EV_DEACT_IND, arg); l1_msg() 856 FsmEvent(&st->l1.l1m, EV_POWER_UP, arg); l1_msg() 859 FsmEvent(&st->l1.l1m, EV_RSYNC_IND, arg); l1_msg() 862 FsmEvent(&st->l1.l1m, EV_INFO2_IND, arg); l1_msg() 866 FsmEvent(&st->l1.l1m, EV_INFO4_IND, arg); l1_msg() 878 l1_msg_b(struct PStack *st, int pr, void *arg) { l1_msg_b() argument
|
H A D | fsm.c | 52 FsmEvent(struct FsmInst *fi, int event, void *arg) FsmEvent() argument 67 r(fi, event, arg); FsmEvent() 94 FsmEvent(ft->fi, ft->event, ft->arg); FsmExpireTimer() 122 int millisec, int event, void *arg, int where) FsmAddTimer() 138 ft->arg = arg; FsmAddTimer() 146 int millisec, int event, void *arg, int where) FsmRestartTimer() 159 ft->arg = arg; FsmRestartTimer() 121 FsmAddTimer(struct FsmTimer *ft, int millisec, int event, void *arg, int where) FsmAddTimer() argument 145 FsmRestartTimer(struct FsmTimer *ft, int millisec, int event, void *arg, int where) FsmRestartTimer() argument
|
H A D | hisax_if.h | 40 void (*l1l2)(struct hisax_if *, int pr, void *arg); 41 void (*l2l1)(struct hisax_if *, int pr, void *arg);
|
H A D | lmgr.c | 29 hisax_manager(struct PStack *st, int pr, void *arg) hisax_manager() argument 35 Code = (long) arg; hisax_manager()
|
/linux-4.1.27/drivers/gpu/drm/radeon/ |
H A D | atom.c | 180 uint32_t idx, val = 0xCDCDCDCD, align, arg; atom_get_src_int() local 182 arg = attr & 7; atom_get_src_int() 184 switch (arg) { atom_get_src_int() 367 uint32_t align = (attr >> 3) & 7, arg = attr & 7; atom_skip_src_int() local 368 switch (arg) { atom_skip_src_int() 432 static uint32_t atom_get_dst(atom_exec_context *ctx, int arg, uint8_t attr, atom_get_dst() argument 436 arg | atom_dst_to_src[(attr >> 3) & atom_get_dst() 441 static void atom_skip_dst(atom_exec_context *ctx, int arg, uint8_t attr, int *ptr) atom_skip_dst() argument 444 arg | atom_dst_to_src[(attr >> 3) & 7][(attr >> 6) & atom_skip_dst() 448 static void atom_put_dst(atom_exec_context *ctx, int arg, uint8_t attr, atom_put_dst() argument 460 switch (arg) { atom_put_dst() 587 static void atom_op_add(atom_exec_context *ctx, int *ptr, int arg) atom_op_add() argument 593 dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); atom_op_add() 598 atom_put_dst(ctx, arg, attr, &dptr, dst, saved); atom_op_add() 601 static void atom_op_and(atom_exec_context *ctx, int *ptr, int arg) atom_op_and() argument 607 dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); atom_op_and() 612 atom_put_dst(ctx, arg, attr, &dptr, dst, saved); atom_op_and() 615 static void atom_op_beep(atom_exec_context *ctx, int *ptr, int arg) atom_op_beep() argument 620 static void atom_op_calltable(atom_exec_context *ctx, int *ptr, int arg) atom_op_calltable() argument 636 static void atom_op_clear(atom_exec_context *ctx, int *ptr, int arg) atom_op_clear() argument 643 atom_get_dst(ctx, arg, attr, ptr, &saved, 0); atom_op_clear() 645 atom_put_dst(ctx, arg, attr, &dptr, 0, saved); atom_op_clear() 648 static void atom_op_compare(atom_exec_context *ctx, int *ptr, int arg) atom_op_compare() argument 653 dst = atom_get_dst(ctx, arg, attr, ptr, NULL, 1); atom_op_compare() 662 static void atom_op_delay(atom_exec_context *ctx, int *ptr, int arg) atom_op_delay() argument 666 if (arg == ATOM_UNIT_MICROSEC) atom_op_delay() 674 static void atom_op_div(atom_exec_context *ctx, int *ptr, int arg) atom_op_div() argument 679 dst = atom_get_dst(ctx, arg, attr, ptr, NULL, 1); atom_op_div() 691 static void atom_op_eot(atom_exec_context *ctx, int *ptr, int arg) atom_op_eot() argument 696 static void atom_op_jump(atom_exec_context *ctx, int *ptr, int arg) atom_op_jump() argument 702 switch (arg) { atom_op_jump() 725 if (arg != ATOM_COND_ALWAYS) atom_op_jump() 749 static void atom_op_mask(atom_exec_context *ctx, int *ptr, int arg) atom_op_mask() argument 755 dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); atom_op_mask() 763 atom_put_dst(ctx, arg, attr, &dptr, dst, saved); atom_op_mask() 766 static void atom_op_move(atom_exec_context *ctx, int *ptr, int arg) atom_op_move() argument 772 atom_get_dst(ctx, arg, attr, ptr, &saved, 0); atom_op_move() 774 atom_skip_dst(ctx, arg, attr, ptr); atom_op_move() 780 atom_put_dst(ctx, arg, attr, &dptr, src, saved); atom_op_move() 783 static void atom_op_mul(atom_exec_context *ctx, int *ptr, int arg) atom_op_mul() argument 788 dst = atom_get_dst(ctx, arg, attr, ptr, NULL, 1); atom_op_mul() 794 static void atom_op_nop(atom_exec_context *ctx, int *ptr, int arg) atom_op_nop() argument 799 static void atom_op_or(atom_exec_context *ctx, int *ptr, int arg) atom_op_or() argument 805 dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); atom_op_or() 810 atom_put_dst(ctx, arg, attr, &dptr, dst, saved); atom_op_or() 813 static void atom_op_postcard(atom_exec_context *ctx, int *ptr, int arg) atom_op_postcard() argument 819 static void atom_op_repeat(atom_exec_context *ctx, int *ptr, int arg) atom_op_repeat() argument 824 static void atom_op_restorereg(atom_exec_context *ctx, int *ptr, int arg) atom_op_restorereg() argument 829 static void atom_op_savereg(atom_exec_context *ctx, int *ptr, int arg) atom_op_savereg() argument 834 static void atom_op_setdatablock(atom_exec_context *ctx, int *ptr, int arg) atom_op_setdatablock() argument 848 static void atom_op_setfbbase(atom_exec_context *ctx, int *ptr, int arg) atom_op_setfbbase() argument 855 static void atom_op_setport(atom_exec_context *ctx, int *ptr, int arg) atom_op_setport() argument 858 switch (arg) { atom_op_setport() 882 static void atom_op_setregblock(atom_exec_context *ctx, int *ptr, int arg) atom_op_setregblock() argument 889 static void atom_op_shift_left(atom_exec_context *ctx, int *ptr, int arg) atom_op_shift_left() argument 897 dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); atom_op_shift_left() 902 atom_put_dst(ctx, arg, attr, &dptr, dst, saved); atom_op_shift_left() 905 static void atom_op_shift_right(atom_exec_context *ctx, int *ptr, int arg) atom_op_shift_right() argument 913 dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); atom_op_shift_right() 918 atom_put_dst(ctx, arg, attr, &dptr, dst, saved); atom_op_shift_right() 921 static void atom_op_shl(atom_exec_context *ctx, int *ptr, int arg) atom_op_shl() argument 928 dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); atom_op_shl() 937 atom_put_dst(ctx, arg, attr, &dptr, dst, saved); atom_op_shl() 940 static void atom_op_shr(atom_exec_context *ctx, int *ptr, int arg) atom_op_shr() argument 947 dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); atom_op_shr() 956 atom_put_dst(ctx, arg, attr, &dptr, dst, saved); atom_op_shr() 959 static void atom_op_sub(atom_exec_context *ctx, int *ptr, int arg) atom_op_sub() argument 965 dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); atom_op_sub() 970 atom_put_dst(ctx, arg, attr, &dptr, dst, saved); atom_op_sub() 973 static void atom_op_switch(atom_exec_context *ctx, int *ptr, int arg) atom_op_switch() argument 1000 static void atom_op_test(atom_exec_context *ctx, int *ptr, int arg) atom_op_test() argument 1005 dst = atom_get_dst(ctx, arg, attr, ptr, NULL, 1); atom_op_test() 1012 static void atom_op_xor(atom_exec_context *ctx, int *ptr, int arg) atom_op_xor() argument 1018 dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); atom_op_xor() 1023 atom_put_dst(ctx, arg, attr, &dptr, dst, saved); atom_op_xor() 1026 static void atom_op_debug(atom_exec_context *ctx, int *ptr, int arg) atom_op_debug() argument 1033 int arg; member in struct:__anon4335 1204 opcode_table[op].arg); atom_execute_table_locked()
|
H A D | radeon_ioc32.c | 60 unsigned long arg) compat_radeon_cp_init() 65 if (copy_from_user(&init32, (void __user *)arg, sizeof(init32))) compat_radeon_cp_init() 107 unsigned long arg) compat_radeon_cp_clear() 112 if (copy_from_user(&clr32, (void __user *)arg, sizeof(clr32))) compat_radeon_cp_clear() 134 unsigned long arg) compat_radeon_cp_stipple() 136 drm_radeon_stipple32_t __user *argp = (void __user *)arg; compat_radeon_cp_stipple() 168 unsigned long arg) compat_radeon_cp_texture() 175 if (copy_from_user(&req32, (void __user *)arg, sizeof(req32))) compat_radeon_cp_texture() 216 unsigned long arg) compat_radeon_cp_vertex2() 221 if (copy_from_user(&req32, (void __user *)arg, sizeof(req32))) compat_radeon_cp_vertex2() 247 unsigned long arg) compat_radeon_cp_cmdbuf() 252 if (copy_from_user(&req32, (void __user *)arg, sizeof(req32))) compat_radeon_cp_cmdbuf() 274 unsigned long arg) compat_radeon_cp_getparam() 279 if (copy_from_user(&req32, (void __user *)arg, sizeof(req32))) compat_radeon_cp_getparam() 300 unsigned long arg) compat_radeon_mem_alloc() 305 if (copy_from_user(&req32, (void __user *)arg, sizeof(req32))) compat_radeon_mem_alloc() 325 unsigned long arg) compat_radeon_irq_emit() 330 if (copy_from_user(&req32, (void __user *)arg, sizeof(req32))) compat_radeon_irq_emit() 350 unsigned long arg) compat_radeon_cp_setparam() 355 if (copy_from_user(&req32, (void __user *) arg, sizeof(req32))) compat_radeon_cp_setparam() 390 * \param arg user argument. 393 long radeon_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) radeon_compat_ioctl() argument 400 return drm_compat_ioctl(filp, cmd, arg); radeon_compat_ioctl() 406 ret = (*fn) (filp, cmd, arg); radeon_compat_ioctl() 408 ret = drm_ioctl(filp, cmd, arg); radeon_compat_ioctl() 413 long radeon_kms_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) radeon_kms_compat_ioctl() argument 419 return drm_compat_ioctl(filp, cmd, arg); radeon_kms_compat_ioctl() 421 ret = radeon_drm_ioctl(filp, cmd, arg); radeon_kms_compat_ioctl() 59 compat_radeon_cp_init(struct file *file, unsigned int cmd, unsigned long arg) compat_radeon_cp_init() argument 106 compat_radeon_cp_clear(struct file *file, unsigned int cmd, unsigned long arg) compat_radeon_cp_clear() argument 133 compat_radeon_cp_stipple(struct file *file, unsigned int cmd, unsigned long arg) compat_radeon_cp_stipple() argument 167 compat_radeon_cp_texture(struct file *file, unsigned int cmd, unsigned long arg) compat_radeon_cp_texture() argument 215 compat_radeon_cp_vertex2(struct file *file, unsigned int cmd, unsigned long arg) compat_radeon_cp_vertex2() argument 246 compat_radeon_cp_cmdbuf(struct file *file, unsigned int cmd, unsigned long arg) compat_radeon_cp_cmdbuf() argument 273 compat_radeon_cp_getparam(struct file *file, unsigned int cmd, unsigned long arg) compat_radeon_cp_getparam() argument 299 compat_radeon_mem_alloc(struct file *file, unsigned int cmd, unsigned long arg) compat_radeon_mem_alloc() argument 324 compat_radeon_irq_emit(struct file *file, unsigned int cmd, unsigned long arg) compat_radeon_irq_emit() argument 349 compat_radeon_cp_setparam(struct file *file, unsigned int cmd, unsigned long arg) compat_radeon_cp_setparam() argument
|
/linux-4.1.27/drivers/s390/net/ |
H A D | ctcm_fsms.c | 131 static void ctcm_action_nop(fsm_instance *fi, int event, void *arg); 137 static void chx_txdone(fsm_instance *fi, int event, void *arg); 138 static void chx_rx(fsm_instance *fi, int event, void *arg); 139 static void chx_rxidle(fsm_instance *fi, int event, void *arg); 140 static void chx_firstio(fsm_instance *fi, int event, void *arg); 141 static void ctcm_chx_setmode(fsm_instance *fi, int event, void *arg); 142 static void ctcm_chx_start(fsm_instance *fi, int event, void *arg); 143 static void ctcm_chx_haltio(fsm_instance *fi, int event, void *arg); 144 static void ctcm_chx_stopped(fsm_instance *fi, int event, void *arg); 145 static void ctcm_chx_stop(fsm_instance *fi, int event, void *arg); 146 static void ctcm_chx_fail(fsm_instance *fi, int event, void *arg); 147 static void ctcm_chx_setuperr(fsm_instance *fi, int event, void *arg); 148 static void ctcm_chx_restart(fsm_instance *fi, int event, void *arg); 149 static void ctcm_chx_rxiniterr(fsm_instance *fi, int event, void *arg); 150 static void ctcm_chx_rxinitfail(fsm_instance *fi, int event, void *arg); 151 static void ctcm_chx_rxdisc(fsm_instance *fi, int event, void *arg); 152 static void ctcm_chx_txiniterr(fsm_instance *fi, int event, void *arg); 153 static void ctcm_chx_txretry(fsm_instance *fi, int event, void *arg); 154 static void ctcm_chx_iofatal(fsm_instance *fi, int event, void *arg); 160 static void ctcmpc_chx_txdone(fsm_instance *fi, int event, void *arg); 161 static void ctcmpc_chx_rx(fsm_instance *fi, int event, void *arg); 162 static void ctcmpc_chx_firstio(fsm_instance *fi, int event, void *arg); 164 static void ctcm_chx_setmode(fsm_instance *fi, int event, void *arg); 165 static void ctcm_chx_start(fsm_instance *fi, int event, void *arg); 166 static void ctcm_chx_haltio(fsm_instance *fi, int event, void *arg); 167 static void ctcm_chx_stopped(fsm_instance *fi, int event, void *arg); 168 static void ctcm_chx_stop(fsm_instance *fi, int event, void *arg); 169 static void ctcm_chx_fail(fsm_instance *fi, int event, void *arg); 170 static void ctcm_chx_setuperr(fsm_instance *fi, int event, void *arg); 171 static void ctcm_chx_restart(fsm_instance *fi, int event, void *arg); 172 static void ctcm_chx_rxiniterr(fsm_instance *fi, int event, void *arg); 173 static void ctcm_chx_rxinitfail(fsm_instance *fi, int event, void *arg); 174 static void ctcm_chx_rxdisc(fsm_instance *fi, int event, void *arg); 175 static void ctcm_chx_txiniterr(fsm_instance *fi, int event, void *arg); 176 static void ctcm_chx_txretry(fsm_instance *fi, int event, void *arg); 177 static void ctcm_chx_iofatal(fsm_instance *fi, int event, void *arg); 179 static void ctcmpc_chx_attn(fsm_instance *fsm, int event, void *arg); 182 static void ctcmpc_chx_send_sweep(fsm_instance *fsm, int event, void *arg); 228 static void ctcm_action_nop(fsm_instance *fi, int event, void *arg) ctcm_action_nop() argument 243 * arg Generic pointer, casted from channel * upon call. 245 static void chx_txdone(fsm_instance *fi, int event, void *arg) chx_txdone() argument 247 struct channel *ch = arg; chx_txdone() 332 * arg Generic pointer, casted from channel * upon call. 334 void ctcm_chx_txidle(fsm_instance *fi, int event, void *arg) ctcm_chx_txidle() argument 336 struct channel *ch = arg; ctcm_chx_txidle() 353 * arg Generic pointer, casted from channel * upon call. 355 static void chx_rx(fsm_instance *fi, int event, void *arg) chx_rx() argument 357 struct channel *ch = arg; chx_rx() 430 * arg Generic pointer, casted from channel * upon call. 432 static void chx_firstio(fsm_instance *fi, int event, void *arg) chx_firstio() argument 435 struct channel *ch = arg; chx_firstio() 457 chx_rxidle(fi, event, arg); chx_firstio() 509 * arg Generic pointer, casted from channel * upon call. 511 static void chx_rxidle(fsm_instance *fi, int event, void *arg) chx_rxidle() argument 513 struct channel *ch = arg; chx_rxidle() 540 chx_firstio(fi, event, arg); chx_rxidle() 549 * arg Generic pointer, casted from channel * upon call. 551 static void ctcm_chx_setmode(fsm_instance *fi, int event, void *arg) ctcm_chx_setmode() argument 553 struct channel *ch = arg; ctcm_chx_setmode() 590 * arg Generic pointer, casted from channel * upon call. 592 static void ctcm_chx_start(fsm_instance *fi, int event, void *arg) ctcm_chx_start() argument 594 struct channel *ch = arg; ctcm_chx_start() 653 * arg Generic pointer, casted from channel * upon call. 655 static void ctcm_chx_haltio(fsm_instance *fi, int event, void *arg) ctcm_chx_haltio() argument 657 struct channel *ch = arg; ctcm_chx_haltio() 741 * arg Generic pointer, casted from channel * upon call. 743 static void ctcm_chx_stopped(fsm_instance *fi, int event, void *arg) ctcm_chx_stopped() argument 745 ctcm_chx_cleanup(fi, CTC_STATE_STOPPED, arg); ctcm_chx_stopped() 754 * arg Generic pointer, casted from channel * upon call. 756 static void ctcm_chx_stop(fsm_instance *fi, int event, void *arg) ctcm_chx_stop() argument 768 * arg Generic pointer, casted from channel * upon call. 770 static void ctcm_chx_fail(fsm_instance *fi, int event, void *arg) ctcm_chx_fail() argument 772 ctcm_chx_cleanup(fi, CTC_STATE_NOTOP, arg); ctcm_chx_fail() 780 * arg Generic pointer, casted from channel * upon call. 782 static void ctcm_chx_setuperr(fsm_instance *fi, int event, void *arg) ctcm_chx_setuperr() argument 784 struct channel *ch = arg; ctcm_chx_setuperr() 829 * arg Generic pointer, casted from channel * upon call. 831 static void ctcm_chx_restart(fsm_instance *fi, int event, void *arg) ctcm_chx_restart() argument 833 struct channel *ch = arg; ctcm_chx_restart() 871 * arg Generic pointer, casted from channel * upon call. 873 static void ctcm_chx_rxiniterr(fsm_instance *fi, int event, void *arg) ctcm_chx_rxiniterr() argument 875 struct channel *ch = arg; ctcm_chx_rxiniterr() 884 ctcm_chx_restart(fi, event, arg); ctcm_chx_rxiniterr() 906 * arg Generic pointer, casted from channel * upon call. 908 static void ctcm_chx_rxinitfail(fsm_instance *fi, int event, void *arg) ctcm_chx_rxinitfail() argument 910 struct channel *ch = arg; ctcm_chx_rxinitfail() 926 * arg Generic pointer, casted from channel * upon call. 928 static void ctcm_chx_rxdisc(fsm_instance *fi, int event, void *arg) ctcm_chx_rxdisc() argument 930 struct channel *ch = arg; ctcm_chx_rxdisc() 958 * arg Generic pointer, casted from channel * upon call. 960 static void ctcm_chx_txiniterr(fsm_instance *fi, int event, void *arg) ctcm_chx_txiniterr() argument 962 struct channel *ch = arg; ctcm_chx_txiniterr() 969 ctcm_chx_restart(fi, event, arg); ctcm_chx_txiniterr() 990 * arg Generic pointer, casted from channel * upon call. 992 static void ctcm_chx_txretry(fsm_instance *fi, int event, void *arg) ctcm_chx_txretry() argument 994 struct channel *ch = arg; ctcm_chx_txretry() 1012 ctcm_chx_restart(fi, event, arg); ctcm_chx_txretry() 1030 ctcm_chx_restart(fi, event, arg); ctcm_chx_txretry() 1063 * arg Generic pointer, casted from channel * upon call. 1065 static void ctcm_chx_iofatal(fsm_instance *fi, int event, void *arg) ctcm_chx_iofatal() argument 1067 struct channel *ch = arg; ctcm_chx_iofatal() 1213 * arg Generic pointer, casted from channel * upon call. 1215 static void ctcmpc_chx_txdone(fsm_instance *fi, int event, void *arg) ctcmpc_chx_txdone() argument 1217 struct channel *ch = arg; ctcmpc_chx_txdone() 1383 * arg Generic pointer, casted from channel * upon call. 1385 static void ctcmpc_chx_rx(fsm_instance *fi, int event, void *arg) ctcmpc_chx_rx() argument 1387 struct channel *ch = arg; ctcmpc_chx_rx() 1486 * arg Generic pointer, casted from channel * upon call. 1488 static void ctcmpc_chx_firstio(fsm_instance *fi, int event, void *arg) ctcmpc_chx_firstio() argument 1490 struct channel *ch = arg; ctcmpc_chx_firstio() 1514 ctcmpc_chx_rxidle(fi, event, arg); ctcmpc_chx_firstio() 1540 * arg Generic pointer, casted from channel * upon call. 1542 void ctcmpc_chx_rxidle(fsm_instance *fi, int event, void *arg) ctcmpc_chx_rxidle() argument 1544 struct channel *ch = arg; ctcmpc_chx_rxidle() 1597 static void ctcmpc_chx_attn(fsm_instance *fsm, int event, void *arg) ctcmpc_chx_attn() argument 1599 struct channel *ch = arg; ctcmpc_chx_attn() 1656 static void ctcmpc_chx_attnbusy(fsm_instance *fsm, int event, void *arg) ctcmpc_chx_attnbusy() argument 1658 struct channel *ch = arg; ctcmpc_chx_attnbusy() 1741 static void ctcmpc_chx_resend(fsm_instance *fsm, int event, void *arg) ctcmpc_chx_resend() argument 1743 struct channel *ch = arg; ctcmpc_chx_resend() 1757 static void ctcmpc_chx_send_sweep(fsm_instance *fsm, int event, void *arg) ctcmpc_chx_send_sweep() argument 1759 struct channel *ach = arg; ctcmpc_chx_send_sweep() 2066 * arg Generic pointer, casted from struct net_device * upon call. 2068 static void dev_action_start(fsm_instance *fi, int event, void *arg) dev_action_start() argument 2070 struct net_device *dev = arg; dev_action_start() 2091 * arg Generic pointer, casted from struct net_device * upon call. 2093 static void dev_action_stop(fsm_instance *fi, int event, void *arg) dev_action_stop() argument 2096 struct net_device *dev = arg; dev_action_stop() 2113 static void dev_action_restart(fsm_instance *fi, int event, void *arg) dev_action_restart() argument 2116 struct net_device *dev = arg; dev_action_restart() 2128 dev_action_stop(fi, event, arg); dev_action_restart() 2146 * arg Generic pointer, casted from struct net_device * upon call. 2148 static void dev_action_chup(fsm_instance *fi, int event, void *arg) dev_action_chup() argument 2150 struct net_device *dev = arg; dev_action_chup() 2207 * arg Generic pointer, casted from struct net_device * upon call. 2209 static void dev_action_chdown(fsm_instance *fi, int event, void *arg) dev_action_chdown() argument 2212 struct net_device *dev = arg; dev_action_chdown()
|
/linux-4.1.27/kernel/trace/ |
H A D | trace_probe.c | 320 static int parse_probe_vars(char *arg, const struct fetch_type *t, parse_probe_vars() argument 327 if (strcmp(arg, "retval") == 0) { parse_probe_vars() 332 } else if (strncmp(arg, "stack", 5) == 0) { parse_probe_vars() 333 if (arg[5] == '\0') { parse_probe_vars() 341 } else if (isdigit(arg[5])) { parse_probe_vars() 342 ret = kstrtoul(arg + 5, 10, ¶m); parse_probe_vars() 358 static int parse_probe_arg(char *arg, const struct fetch_type *t, parse_probe_arg() argument 367 switch (arg[0]) { parse_probe_arg() 369 ret = parse_probe_vars(arg + 1, t, f, is_return, is_kprobe); parse_probe_arg() 373 ret = regs_query_register_offset(arg + 1); parse_probe_arg() 382 if (isdigit(arg[1])) { parse_probe_arg() 383 ret = kstrtoul(arg + 1, 0, ¶m); parse_probe_arg() 389 } else if (arg[1] == '+') { parse_probe_arg() 394 ret = kstrtol(arg + 2, 0, &offset); parse_probe_arg() 405 ret = traceprobe_split_symbol_offset(arg + 1, &offset); parse_probe_arg() 409 f->data = alloc_symbol_cache(arg + 1, offset); parse_probe_arg() 416 arg++; /* Skip '+', because kstrtol() rejects it. */ parse_probe_arg() 418 tmp = strchr(arg, '('); parse_probe_arg() 423 ret = kstrtol(arg, 0, &offset); parse_probe_arg() 428 arg = tmp + 1; parse_probe_arg() 429 tmp = strrchr(arg, ')'); parse_probe_arg() 446 ret = parse_probe_arg(arg, t2, &dprm->orig, is_return, parse_probe_arg() 504 int traceprobe_parse_probe_arg(char *arg, ssize_t *size, traceprobe_parse_probe_arg() argument 511 if (strlen(arg) > MAX_ARGSTR_LEN) { traceprobe_parse_probe_arg() 512 pr_info("Argument is too long.: %s\n", arg); traceprobe_parse_probe_arg() 515 parg->comm = kstrdup(arg, GFP_KERNEL); traceprobe_parse_probe_arg() 517 pr_info("Failed to allocate memory for command '%s'.\n", arg); traceprobe_parse_probe_arg() 522 arg[t - parg->comm] = '\0'; traceprobe_parse_probe_arg() 532 ret = parse_probe_arg(arg, parg->type, &parg->fetch, is_return, traceprobe_parse_probe_arg() 565 void traceprobe_update_arg(struct probe_arg *arg) traceprobe_update_arg() argument 567 if (CHECK_FETCH_FUNCS(bitfield, arg->fetch.fn)) traceprobe_update_arg() 568 update_bitfield_fetch_param(arg->fetch.data); traceprobe_update_arg() 569 else if (CHECK_FETCH_FUNCS(deref, arg->fetch.fn)) traceprobe_update_arg() 570 update_deref_fetch_param(arg->fetch.data); traceprobe_update_arg() 571 else if (CHECK_FETCH_FUNCS(symbol, arg->fetch.fn)) traceprobe_update_arg() 572 update_symbol_cache(arg->fetch.data); traceprobe_update_arg() 575 void traceprobe_free_probe_arg(struct probe_arg *arg) traceprobe_free_probe_arg() argument 577 if (CHECK_FETCH_FUNCS(bitfield, arg->fetch.fn)) traceprobe_free_probe_arg() 578 free_bitfield_fetch_param(arg->fetch.data); traceprobe_free_probe_arg() 579 else if (CHECK_FETCH_FUNCS(deref, arg->fetch.fn)) traceprobe_free_probe_arg() 580 free_deref_fetch_param(arg->fetch.data); traceprobe_free_probe_arg() 581 else if (CHECK_FETCH_FUNCS(symbol, arg->fetch.fn)) traceprobe_free_probe_arg() 582 free_symbol_cache(arg->fetch.data); traceprobe_free_probe_arg() 584 kfree(arg->name); traceprobe_free_probe_arg() 585 kfree(arg->comm); traceprobe_free_probe_arg() 669 const char *fmt, *arg; __set_print_fmt() local 673 arg = "REC->" FIELD_STRING_IP; __set_print_fmt() 676 arg = "REC->" FIELD_STRING_FUNC ", REC->" FIELD_STRING_RETIP; __set_print_fmt() 689 pos += snprintf(buf + pos, LEN_OR_ZERO, "\", %s", arg); __set_print_fmt()
|
/linux-4.1.27/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_overlay.c | 98 struct drm_vmw_control_stream_arg *arg, vmw_overlay_send_put() 139 cmds->header.streamId = arg->stream_id; vmw_overlay_send_put() 146 ptr.offset += arg->offset; vmw_overlay_send_put() 149 items[SVGA_VIDEO_FLAGS].value = arg->flags; vmw_overlay_send_put() 151 items[SVGA_VIDEO_FORMAT].value = arg->format; vmw_overlay_send_put() 152 items[SVGA_VIDEO_COLORKEY].value = arg->color_key; vmw_overlay_send_put() 153 items[SVGA_VIDEO_SIZE].value = arg->size; vmw_overlay_send_put() 154 items[SVGA_VIDEO_WIDTH].value = arg->width; vmw_overlay_send_put() 155 items[SVGA_VIDEO_HEIGHT].value = arg->height; vmw_overlay_send_put() 156 items[SVGA_VIDEO_SRC_X].value = arg->src.x; vmw_overlay_send_put() 157 items[SVGA_VIDEO_SRC_Y].value = arg->src.y; vmw_overlay_send_put() 158 items[SVGA_VIDEO_SRC_WIDTH].value = arg->src.w; vmw_overlay_send_put() 159 items[SVGA_VIDEO_SRC_HEIGHT].value = arg->src.h; vmw_overlay_send_put() 160 items[SVGA_VIDEO_DST_X].value = arg->dst.x; vmw_overlay_send_put() 161 items[SVGA_VIDEO_DST_Y].value = arg->dst.y; vmw_overlay_send_put() 162 items[SVGA_VIDEO_DST_WIDTH].value = arg->dst.w; vmw_overlay_send_put() 163 items[SVGA_VIDEO_DST_HEIGHT].value = arg->dst.h; vmw_overlay_send_put() 164 items[SVGA_VIDEO_PITCH_1].value = arg->pitch[0]; vmw_overlay_send_put() 165 items[SVGA_VIDEO_PITCH_2].value = arg->pitch[1]; vmw_overlay_send_put() 166 items[SVGA_VIDEO_PITCH_3].value = arg->pitch[2]; vmw_overlay_send_put() 172 fill_flush(flush, arg->stream_id); vmw_overlay_send_put() 301 struct drm_vmw_control_stream_arg *arg, vmw_overlay_update_stream() 305 struct vmw_stream *stream = &overlay->stream[arg->stream_id]; vmw_overlay_update_stream() 315 ret = vmw_overlay_stop(dev_priv, arg->stream_id, vmw_overlay_update_stream() 323 ret = vmw_overlay_send_put(dev_priv, buf, arg, interruptible); vmw_overlay_update_stream() 325 stream->saved = *arg; vmw_overlay_update_stream() 339 ret = vmw_overlay_send_put(dev_priv, buf, arg, interruptible); vmw_overlay_update_stream() 351 stream->saved = *arg; vmw_overlay_update_stream() 467 struct drm_vmw_control_stream_arg *arg = vmw_overlay_ioctl() local 476 ret = vmw_user_stream_lookup(dev_priv, tfile, &arg->stream_id, &res); vmw_overlay_ioctl() 482 if (!arg->enabled) { vmw_overlay_ioctl() 483 ret = vmw_overlay_stop(dev_priv, arg->stream_id, false, true); vmw_overlay_ioctl() 487 ret = vmw_user_dmabuf_lookup(tfile, arg->handle, &buf, NULL); vmw_overlay_ioctl() 491 ret = vmw_overlay_update_stream(dev_priv, buf, arg, true); vmw_overlay_ioctl() 96 vmw_overlay_send_put(struct vmw_private *dev_priv, struct vmw_dma_buffer *buf, struct drm_vmw_control_stream_arg *arg, bool interruptible) vmw_overlay_send_put() argument 299 vmw_overlay_update_stream(struct vmw_private *dev_priv, struct vmw_dma_buffer *buf, struct drm_vmw_control_stream_arg *arg, bool interruptible) vmw_overlay_update_stream() argument
|
H A D | vmwgfx_ioctl.c | 153 struct drm_vmw_get_3d_cap_arg *arg = vmw_get_cap_3d_ioctl() local 158 void __user *buffer = (void __user *)((unsigned long)(arg->buffer)); vmw_get_cap_3d_ioctl() 164 if (unlikely(arg->pad64 != 0)) { vmw_get_cap_3d_ioctl() 177 if (arg->max_size < size) vmw_get_cap_3d_ioctl() 178 size = arg->max_size; vmw_get_cap_3d_ioctl() 226 struct drm_vmw_present_arg *arg = vmw_present_ioctl() local 237 num_clips = arg->num_clips; vmw_present_ioctl() 238 clips_ptr = (struct drm_vmw_rect *)(unsigned long)arg->clips_ptr; vmw_present_ioctl() 265 fb = drm_framebuffer_lookup(dev, arg->fb_id); vmw_present_ioctl() 277 ret = vmw_user_resource_lookup_handle(dev_priv, tfile, arg->sid, vmw_present_ioctl() 285 vfb, surface, arg->sid, vmw_present_ioctl() 286 arg->dest_x, arg->dest_y, vmw_present_ioctl() 308 struct drm_vmw_present_readback_arg *arg = vmw_present_readback_ioctl() local 312 (unsigned long)arg->fence_rep; vmw_present_readback_ioctl() 320 num_clips = arg->num_clips; vmw_present_readback_ioctl() 321 clips_ptr = (struct drm_vmw_rect *)(unsigned long)arg->clips_ptr; vmw_present_readback_ioctl() 348 fb = drm_framebuffer_lookup(dev, arg->fb_id); vmw_present_readback_ioctl()
|
/linux-4.1.27/drivers/char/agp/ |
H A D | compat_ioctl.c | 38 static int compat_agpioc_info_wrap(struct agp_file_private *priv, void __user *arg) compat_agpioc_info_wrap() argument 55 if (copy_to_user(arg, &userinfo, sizeof(userinfo))) compat_agpioc_info_wrap() 61 static int compat_agpioc_reserve_wrap(struct agp_file_private *priv, void __user *arg) compat_agpioc_reserve_wrap() argument 69 if (copy_from_user(&ureserve, arg, sizeof(ureserve))) compat_agpioc_reserve_wrap() 148 static int compat_agpioc_allocate_wrap(struct agp_file_private *priv, void __user *arg) compat_agpioc_allocate_wrap() argument 154 if (copy_from_user(&alloc, arg, sizeof(alloc))) compat_agpioc_allocate_wrap() 165 if (copy_to_user(arg, &alloc, sizeof(alloc))) { compat_agpioc_allocate_wrap() 172 static int compat_agpioc_bind_wrap(struct agp_file_private *priv, void __user *arg) compat_agpioc_bind_wrap() argument 178 if (copy_from_user(&bind_info, arg, sizeof(bind_info))) compat_agpioc_bind_wrap() 189 static int compat_agpioc_unbind_wrap(struct agp_file_private *priv, void __user *arg) compat_agpioc_unbind_wrap() argument 195 if (copy_from_user(&unbind, arg, sizeof(unbind))) compat_agpioc_unbind_wrap() 206 long compat_agp_ioctl(struct file *file, unsigned int cmd, unsigned long arg) compat_agp_ioctl() argument 239 ret_val = compat_agpioc_info_wrap(curr_priv, (void __user *) arg); compat_agp_ioctl() 251 ret_val = agpioc_setup_wrap(curr_priv, (void __user *) arg); compat_agp_ioctl() 255 ret_val = compat_agpioc_reserve_wrap(curr_priv, (void __user *) arg); compat_agp_ioctl() 263 ret_val = compat_agpioc_allocate_wrap(curr_priv, (void __user *) arg); compat_agp_ioctl() 267 ret_val = agpioc_deallocate_wrap(curr_priv, (int) arg); compat_agp_ioctl() 271 ret_val = compat_agpioc_bind_wrap(curr_priv, (void __user *) arg); compat_agp_ioctl() 275 ret_val = compat_agpioc_unbind_wrap(curr_priv, (void __user *) arg); compat_agp_ioctl()
|
/linux-4.1.27/kernel/irq/ |
H A D | msi.c | 85 unsigned int nr_irqs, void *arg) msi_domain_alloc() 89 irq_hw_number_t hwirq = ops->get_hwirq(info, arg); msi_domain_alloc() 95 ret = irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, arg); msi_domain_alloc() 100 ret = ops->msi_init(domain, info, virq + i, hwirq + i, arg); msi_domain_alloc() 136 msi_alloc_info_t *arg) msi_domain_ops_get_hwirq() 138 return arg->hwirq; msi_domain_ops_get_hwirq() 142 int nvec, msi_alloc_info_t *arg) msi_domain_ops_prepare() 144 memset(arg, 0, sizeof(*arg)); msi_domain_ops_prepare() 148 static void msi_domain_ops_set_desc(msi_alloc_info_t *arg, msi_domain_ops_set_desc() argument 151 arg->desc = desc; msi_domain_ops_set_desc() 162 msi_alloc_info_t *arg) msi_domain_ops_init() 256 msi_alloc_info_t arg; msi_domain_alloc_irqs() local 262 ret = ops->msi_prepare(domain, dev, nvec, &arg); msi_domain_alloc_irqs() 267 ops->set_desc(&arg, desc); for_each_msi_entry() 269 virq = (int)ops->get_hwirq(info, &arg); for_each_msi_entry() 274 dev_to_node(dev), &arg, false); for_each_msi_entry() 280 ops->msi_finish(&arg, ret); for_each_msi_entry() 289 ops->msi_finish(&arg, 0); 84 msi_domain_alloc(struct irq_domain *domain, unsigned int virq, unsigned int nr_irqs, void *arg) msi_domain_alloc() argument 135 msi_domain_ops_get_hwirq(struct msi_domain_info *info, msi_alloc_info_t *arg) msi_domain_ops_get_hwirq() argument 141 msi_domain_ops_prepare(struct irq_domain *domain, struct device *dev, int nvec, msi_alloc_info_t *arg) msi_domain_ops_prepare() argument 159 msi_domain_ops_init(struct irq_domain *domain, struct msi_domain_info *info, unsigned int virq, irq_hw_number_t hwirq, msi_alloc_info_t *arg) msi_domain_ops_init() argument
|
/linux-4.1.27/drivers/isdn/capi/ |
H A D | kcapi.h | 19 #define DBG(format, arg...) do { \ 20 printk(KERN_DEBUG "%s: " format "\n" , __func__ , ## arg); \ 23 #define DBG(format, arg...) /* */
|
/linux-4.1.27/drivers/mmc/core/ |
H A D | sdio_ops.c | 30 cmd.arg = ocr; mmc_send_io_op_cond() 82 cmd.arg = write ? 0x80000000 : 0x00000000; mmc_io_rw_direct_host() 83 cmd.arg |= fn << 28; mmc_io_rw_direct_host() 84 cmd.arg |= (write && out) ? 0x08000000 : 0x00000000; mmc_io_rw_direct_host() 85 cmd.arg |= addr << 9; mmc_io_rw_direct_host() 86 cmd.arg |= in; mmc_io_rw_direct_host() 144 cmd.arg = write ? 0x80000000 : 0x00000000; mmc_io_rw_extended() 145 cmd.arg |= fn << 28; mmc_io_rw_extended() 146 cmd.arg |= incr_addr ? 0x04000000 : 0x00000000; mmc_io_rw_extended() 147 cmd.arg |= addr << 9; mmc_io_rw_extended() 149 cmd.arg |= (blksz == 512) ? 0 : blksz; /* byte mode */ mmc_io_rw_extended() 151 cmd.arg |= 0x08000000 | blocks; /* block mode */ mmc_io_rw_extended()
|
H A D | sd_ops.c | 36 cmd.arg = card->rca << 16; mmc_app_cmd() 39 cmd.arg = 0; mmc_app_cmd() 134 cmd.arg = SD_BUS_WIDTH_1; mmc_app_set_bus_width() 137 cmd.arg = SD_BUS_WIDTH_4; mmc_app_set_bus_width() 159 cmd.arg = ocr & (1 << 30); /* SPI only defines one bit */ mmc_send_app_op_cond() 161 cmd.arg = ocr; mmc_send_app_op_cond() 209 cmd.arg = ((ocr & 0xFF8000) != 0) << 8 | test_pattern; mmc_send_if_cond() 236 cmd.arg = 0; mmc_send_relative_addr() 278 cmd.arg = 0; mmc_app_send_scr() 327 cmd.arg = mode << 31 | 0x00FFFFFF; mmc_sd_switch() 328 cmd.arg &= ~(0xF << (group * 4)); mmc_sd_switch() 329 cmd.arg |= value << (group * 4); mmc_sd_switch() 374 cmd.arg = 0; mmc_app_sd_status()
|
/linux-4.1.27/net/bridge/ |
H A D | br_stp_timer.c | 34 static void br_hello_timer_expired(unsigned long arg) br_hello_timer_expired() argument 36 struct net_bridge *br = (struct net_bridge *)arg; br_hello_timer_expired() 48 static void br_message_age_timer_expired(unsigned long arg) br_message_age_timer_expired() argument 50 struct net_bridge_port *p = (struct net_bridge_port *) arg; br_message_age_timer_expired() 81 static void br_forward_delay_timer_expired(unsigned long arg) br_forward_delay_timer_expired() argument 83 struct net_bridge_port *p = (struct net_bridge_port *) arg; br_forward_delay_timer_expired() 106 static void br_tcn_timer_expired(unsigned long arg) br_tcn_timer_expired() argument 108 struct net_bridge *br = (struct net_bridge *) arg; br_tcn_timer_expired() 120 static void br_topology_change_timer_expired(unsigned long arg) br_topology_change_timer_expired() argument 122 struct net_bridge *br = (struct net_bridge *) arg; br_topology_change_timer_expired() 131 static void br_hold_timer_expired(unsigned long arg) br_hold_timer_expired() argument 133 struct net_bridge_port *p = (struct net_bridge_port *) arg; br_hold_timer_expired()
|
/linux-4.1.27/drivers/media/dvb-frontends/ |
H A D | stv6110x_priv.h | 32 #define dprintk(__y, __z, format, arg...) do { \ 35 printk(KERN_ERR "%s: " format "\n", __func__ , ##arg); \ 37 printk(KERN_NOTICE "%s: " format "\n", __func__ , ##arg); \ 39 printk(KERN_INFO "%s: " format "\n", __func__ , ##arg); \ 41 printk(KERN_DEBUG "%s: " format "\n", __func__ , ##arg); \ 44 printk(format, ##arg); \
|
/linux-4.1.27/arch/mn10300/include/uapi/asm/ |
H A D | ptrace.h | 48 unsigned long a3; /* syscall arg 3 */ 49 unsigned long a2; /* syscall arg 4 */ 50 unsigned long d3; /* syscall arg 5 */ 51 unsigned long d2; /* syscall arg 6 */ 69 unsigned long a0; /* syscall arg 1 */ 70 unsigned long d1; /* syscall arg 2 */
|
/linux-4.1.27/drivers/pci/hotplug/ |
H A D | rpaphp.h | 50 #define dbg(format, arg...) \ 54 MY_NAME , ## arg); \ 56 #define err(format, arg...) printk(KERN_ERR "%s: " format, MY_NAME , ## arg) 57 #define info(format, arg...) printk(KERN_INFO "%s: " format, MY_NAME , ## arg) 58 #define warn(format, arg...) printk(KERN_WARNING "%s: " format, MY_NAME , ## arg)
|
H A D | pciehp.h | 47 #define dbg(format, arg...) \ 50 printk(KERN_DEBUG "%s: " format, MY_NAME , ## arg); \ 52 #define err(format, arg...) \ 53 printk(KERN_ERR "%s: " format, MY_NAME , ## arg) 54 #define info(format, arg...) \ 55 printk(KERN_INFO "%s: " format, MY_NAME , ## arg) 56 #define warn(format, arg...) \ 57 printk(KERN_WARNING "%s: " format, MY_NAME , ## arg) 59 #define ctrl_dbg(ctrl, format, arg...) \ 63 format, ## arg); \ 65 #define ctrl_err(ctrl, format, arg...) \ 66 dev_err(&ctrl->pcie->device, format, ## arg) 67 #define ctrl_info(ctrl, format, arg...) \ 68 dev_info(&ctrl->pcie->device, format, ## arg) 69 #define ctrl_warn(ctrl, format, arg...) \ 70 dev_warn(&ctrl->pcie->device, format, ## arg)
|
H A D | shpchp.h | 50 #define dbg(format, arg...) \ 53 printk(KERN_DEBUG "%s: " format, MY_NAME , ## arg); \ 55 #define err(format, arg...) \ 56 printk(KERN_ERR "%s: " format, MY_NAME , ## arg) 57 #define info(format, arg...) \ 58 printk(KERN_INFO "%s: " format, MY_NAME , ## arg) 59 #define warn(format, arg...) \ 60 printk(KERN_WARNING "%s: " format, MY_NAME , ## arg) 62 #define ctrl_dbg(ctrl, format, arg...) \ 66 format, ## arg); \ 68 #define ctrl_err(ctrl, format, arg...) \ 69 dev_err(&ctrl->pci_dev->dev, format, ## arg) 70 #define ctrl_info(ctrl, format, arg...) \ 71 dev_info(&ctrl->pci_dev->dev, format, ## arg) 72 #define ctrl_warn(ctrl, format, arg...) \ 73 dev_warn(&ctrl->pci_dev->dev, format, ## arg)
|
/linux-4.1.27/arch/x86/kvm/ |
H A D | assigned-dev.h | 14 unsigned long arg); 24 unsigned long arg) kvm_vm_ioctl_assigned_device() 23 kvm_vm_ioctl_assigned_device(struct kvm *kvm, unsigned ioctl, unsigned long arg) kvm_vm_ioctl_assigned_device() argument
|
/linux-4.1.27/drivers/video/fbdev/ |
H A D | sbuslib.h | 21 int sbusfb_ioctl_helper(unsigned long cmd, unsigned long arg, 25 unsigned long arg);
|
H A D | sbuslib.c | 99 int sbusfb_ioctl_helper(unsigned long cmd, unsigned long arg, sbusfb_ioctl_helper() argument 105 struct fbtype __user *f = (struct fbtype __user *) arg; sbusfb_ioctl_helper() 117 struct fbcmap __user *c = (struct fbcmap __user *) arg; sbusfb_ioctl_helper() 158 struct fbcmap __user *c = (struct fbcmap __user *) arg; sbusfb_ioctl_helper() 194 static int fbiogetputcmap(struct fb_info *info, unsigned int cmd, unsigned long arg) fbiogetputcmap() argument 196 struct fbcmap32 __user *argp = (void __user *)arg; fbiogetputcmap() 216 static int fbiogscursor(struct fb_info *info, unsigned long arg) fbiogscursor() argument 219 struct fbcursor32 __user *argp = (void __user *)arg; fbiogscursor() 242 int sbusfb_compat_ioctl(struct fb_info *info, unsigned int cmd, unsigned long arg) sbusfb_compat_ioctl() argument 255 return info->fbops->fb_ioctl(info, cmd, arg); sbusfb_compat_ioctl() 257 return fbiogetputcmap(info, cmd, arg); sbusfb_compat_ioctl() 259 return fbiogetputcmap(info, cmd, arg); sbusfb_compat_ioctl() 261 return fbiogscursor(info, arg); sbusfb_compat_ioctl()
|
/linux-4.1.27/arch/mips/mm/ |
H A D | uasm.c | 71 static inline u32 build_rs(u32 arg) build_rs() argument 73 WARN(arg & ~RS_MASK, KERN_WARNING "Micro-assembler field overflow\n"); build_rs() 75 return (arg & RS_MASK) << RS_SH; build_rs() 78 static inline u32 build_rt(u32 arg) build_rt() argument 80 WARN(arg & ~RT_MASK, KERN_WARNING "Micro-assembler field overflow\n"); build_rt() 82 return (arg & RT_MASK) << RT_SH; build_rt() 85 static inline u32 build_rd(u32 arg) build_rd() argument 87 WARN(arg & ~RD_MASK, KERN_WARNING "Micro-assembler field overflow\n"); build_rd() 89 return (arg & RD_MASK) << RD_SH; build_rd() 92 static inline u32 build_re(u32 arg) build_re() argument 94 WARN(arg & ~RE_MASK, KERN_WARNING "Micro-assembler field overflow\n"); build_re() 96 return (arg & RE_MASK) << RE_SH; build_re() 99 static inline u32 build_simm(s32 arg) build_simm() argument 101 WARN(arg > 0x7fff || arg < -0x8000, build_simm() 104 return arg & 0xffff; build_simm() 107 static inline u32 build_uimm(u32 arg) build_uimm() argument 109 WARN(arg & ~IMM_MASK, KERN_WARNING "Micro-assembler field overflow\n"); build_uimm() 111 return arg & IMM_MASK; build_uimm() 114 static inline u32 build_scimm(u32 arg) build_scimm() argument 116 WARN(arg & ~SCIMM_MASK, build_scimm() 119 return (arg & SCIMM_MASK) << SCIMM_SH; build_scimm() 122 static inline u32 build_scimm9(s32 arg) build_scimm9() argument 124 WARN((arg > 0xff || arg < -0x100), build_scimm9() 127 return (arg & SIMM9_MASK) << SIMM9_SH; build_scimm9() 130 static inline u32 build_func(u32 arg) build_func() argument 132 WARN(arg & ~FUNC_MASK, KERN_WARNING "Micro-assembler field overflow\n"); build_func() 134 return arg & FUNC_MASK; build_func() 137 static inline u32 build_set(u32 arg) build_set() argument 139 WARN(arg & ~SET_MASK, KERN_WARNING "Micro-assembler field overflow\n"); build_set() 141 return arg & SET_MASK; build_set()
|
/linux-4.1.27/tools/perf/arch/arm/util/ |
H A D | unwind-libdw.c | 5 bool libdw__arch_set_initial_registers(Dwfl_Thread *thread, void *arg) libdw__arch_set_initial_registers() argument 7 struct unwind_info *ui = arg; libdw__arch_set_initial_registers()
|
/linux-4.1.27/drivers/atm/ |
H A D | uPD98402.c | 40 static int fetch_stats(struct atm_dev *dev,struct sonet_stats __user *arg,int zero) fetch_stats() argument 47 if (arg) error = copy_to_user(arg,&tmp,sizeof(tmp)); fetch_stats() 86 static int get_sense(struct atm_dev *dev,u8 __user *arg) get_sense() argument 96 return (put_user(s[0], arg) || put_user(s[1], arg+1) || get_sense() 97 put_user(s[2], arg+2) || put_user(0xff, arg+3) || get_sense() 98 put_user(0xff, arg+4) || put_user(0xff, arg+5)) ? -EFAULT : 0; get_sense() 135 static int uPD98402_ioctl(struct atm_dev *dev,unsigned int cmd,void __user *arg) uPD98402_ioctl() argument 141 return fetch_stats(dev,arg, cmd == SONET_GETSTATZ); uPD98402_ioctl() 143 return set_framing(dev, (int)(unsigned long)arg); uPD98402_ioctl() 145 return put_user(PRIV(dev)->framing,(int __user *)arg) ? uPD98402_ioctl() 148 return get_sense(dev,arg); uPD98402_ioctl() 150 return set_loopback(dev, (int)(unsigned long)arg); uPD98402_ioctl() 152 return put_user(PRIV(dev)->loop_mode,(int __user *)arg) ? uPD98402_ioctl() 156 ATM_LM_RMT_PHY,(int __user *)arg) ? -EFAULT : 0; uPD98402_ioctl()
|
H A D | suni.c | 95 static int fetch_stats(struct atm_dev *dev,struct sonet_stats __user *arg,int zero) fetch_stats() argument 101 if (arg) error = copy_to_user(arg,&tmp,sizeof(tmp)); fetch_stats() 115 static int change_diag(struct atm_dev *dev,void __user *arg,int set) change_diag() argument 119 if (get_user(todo,(int __user *)arg)) return -EFAULT; change_diag() 128 return put_user(todo,(int __user *)arg) ? -EFAULT : 0; change_diag() 135 static int get_diag(struct atm_dev *dev,void __user *arg) get_diag() argument 148 return put_user(set,(int __user *)arg) ? -EFAULT : 0; get_diag() 224 static int get_framing(struct atm_dev *dev, void __user *arg) get_framing() argument 236 return put_user(framing, (int __user *) arg) ? -EFAULT : 0; get_framing() 239 static int set_framing(struct atm_dev *dev, void __user *arg) set_framing() argument 243 if (get_user(mode, (int __user *) arg)) set_framing() 255 static int suni_ioctl(struct atm_dev *dev,unsigned int cmd,void __user *arg) suni_ioctl() argument 260 return fetch_stats(dev, arg, cmd == SONET_GETSTATZ); suni_ioctl() 262 return change_diag(dev,arg,1); suni_ioctl() 264 return change_diag(dev,arg,0); suni_ioctl() 266 return get_diag(dev,arg); suni_ioctl() 270 return set_framing(dev, arg); suni_ioctl() 272 return get_framing(dev, arg); suni_ioctl() 278 return set_loopback(dev,(int)(unsigned long)arg); suni_ioctl() 280 return put_user(PRIV(dev)->loop_mode,(int __user *)arg) ? suni_ioctl() 284 (int __user *) arg) ? -EFAULT : 0; suni_ioctl()
|
/linux-4.1.27/net/atm/ |
H A D | ioctl.c | 51 unsigned long arg, int compat) do_vcc_ioctl() 57 void __user *argp = (void __user *)arg; do_vcc_ioctl() 169 error = ic->ioctl(sock, cmd, arg); do_vcc_ioctl() 186 int vcc_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) vcc_ioctl() argument 188 return do_vcc_ioctl(sock, cmd, arg, 0); vcc_ioctl() 246 unsigned long arg) do_atm_iobuf() 255 iobuf32 = compat_ptr(arg); do_atm_iobuf() 277 unsigned long arg) do_atmif_sioc() 286 sioc32 = compat_ptr(arg); do_atmif_sioc() 289 get_user(data, &sioc32->arg)) do_atmif_sioc() 292 if (put_user(datap, &sioc->arg)) do_atmif_sioc() 306 unsigned long arg) do_atm_ioctl() 320 return do_atmif_sioc(sock, cmd32, arg); do_atm_ioctl() 334 return do_atm_iobuf(sock, cmd, arg); do_atm_ioctl() 352 return do_atmif_sioc(sock, cmd, arg); do_atm_ioctl() 359 unsigned long arg) vcc_compat_ioctl() 363 ret = do_vcc_ioctl(sock, cmd, arg, 1); vcc_compat_ioctl() 367 return do_atm_ioctl(sock, cmd, arg); vcc_compat_ioctl() 50 do_vcc_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg, int compat) do_vcc_ioctl() argument 245 do_atm_iobuf(struct socket *sock, unsigned int cmd, unsigned long arg) do_atm_iobuf() argument 276 do_atmif_sioc(struct socket *sock, unsigned int cmd, unsigned long arg) do_atmif_sioc() argument 305 do_atm_ioctl(struct socket *sock, unsigned int cmd32, unsigned long arg) do_atm_ioctl() argument 358 vcc_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) vcc_compat_ioctl() argument
|
/linux-4.1.27/fs/ |
H A D | fcntl.c | 32 static int setfl(int fd, struct file * filp, unsigned long arg) setfl() argument 41 if (((arg ^ filp->f_flags) & O_APPEND) && IS_APPEND(inode)) setfl() 45 if ((arg & O_NOATIME) && !(filp->f_flags & O_NOATIME)) setfl() 51 if (arg & O_NDELAY) setfl() 52 arg |= O_NONBLOCK; setfl() 54 if (arg & O_DIRECT) { setfl() 61 error = filp->f_op->check_flags(arg); setfl() 68 if (((arg ^ filp->f_flags) & FASYNC) && filp->f_op->fasync) { setfl() 69 error = filp->f_op->fasync(fd, filp, (arg & FASYNC) != 0); setfl() 76 filp->f_flags = (arg & SETFL_MASK) | (filp->f_flags & ~SETFL_MASK); setfl() 109 void f_setown(struct file *filp, unsigned long arg, int force) f_setown() argument 113 int who = arg; f_setown() 142 static int f_setown_ex(struct file *filp, unsigned long arg) f_setown_ex() argument 144 struct f_owner_ex __user *owner_p = (void __user *)arg; f_setown_ex() 182 static int f_getown_ex(struct file *filp, unsigned long arg) f_getown_ex() argument 184 struct f_owner_ex __user *owner_p = (void __user *)arg; f_getown_ex() 219 static int f_getowner_uids(struct file *filp, unsigned long arg) f_getowner_uids() argument 222 uid_t __user *dst = (void __user *)arg; f_getowner_uids() 237 static int f_getowner_uids(struct file *filp, unsigned long arg) f_getowner_uids() argument 243 static long do_fcntl(int fd, unsigned int cmd, unsigned long arg, do_fcntl() argument 250 err = f_dupfd(arg, filp, 0); do_fcntl() 253 err = f_dupfd(arg, filp, O_CLOEXEC); do_fcntl() 260 set_close_on_exec(fd, arg & FD_CLOEXEC); do_fcntl() 266 err = setfl(fd, filp, arg); do_fcntl() 273 err = fcntl_getlk(filp, cmd, (struct flock __user *) arg); do_fcntl() 283 err = fcntl_setlk(fd, filp, cmd, (struct flock __user *) arg); do_fcntl() 297 f_setown(filp, arg, 1); do_fcntl() 301 err = f_getown_ex(filp, arg); do_fcntl() 304 err = f_setown_ex(filp, arg); do_fcntl() 307 err = f_getowner_uids(filp, arg); do_fcntl() 313 /* arg == 0 restores default behaviour. */ do_fcntl() 314 if (!valid_signal(arg)) { do_fcntl() 318 filp->f_owner.signum = arg; do_fcntl() 324 err = fcntl_setlease(fd, filp, arg); do_fcntl() 327 err = fcntl_dirnotify(fd, filp, arg); do_fcntl() 331 err = pipe_fcntl(filp, cmd, arg); do_fcntl() 335 err = shmem_fcntl(filp, cmd, arg); do_fcntl() 356 SYSCALL_DEFINE3(fcntl, unsigned int, fd, unsigned int, cmd, unsigned long, arg) SYSCALL_DEFINE3() 369 err = security_file_fcntl(f.file, cmd, arg); SYSCALL_DEFINE3() 371 err = do_fcntl(fd, cmd, arg, f.file); SYSCALL_DEFINE3() 381 unsigned long, arg) SYSCALL_DEFINE3() 394 err = security_file_fcntl(f.file, cmd, arg); SYSCALL_DEFINE3() 401 err = fcntl_getlk64(f.file, cmd, (struct flock64 __user *) arg); SYSCALL_DEFINE3() 408 (struct flock64 __user *) arg); SYSCALL_DEFINE3() 411 err = do_fcntl(fd, cmd, arg, f.file); SYSCALL_DEFINE3()
|
/linux-4.1.27/drivers/staging/android/ion/ |
H A D | compat_ion.c | 35 compat_ulong_t arg; member in struct:compat_ion_custom_data 113 compat_ulong_t arg; compat_get_ion_custom_data() local 118 err |= get_user(arg, &data32->arg); compat_get_ion_custom_data() 119 err |= put_user(arg, &data->arg); compat_get_ion_custom_data() 124 long compat_ion_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) compat_ion_ioctl() argument 138 data32 = compat_ptr(arg); compat_ion_ioctl() 157 data32 = compat_ptr(arg); compat_ion_ioctl() 174 data32 = compat_ptr(arg); compat_ion_ioctl() 191 (unsigned long)compat_ptr(arg)); compat_ion_ioctl()
|
/linux-4.1.27/arch/x86/math-emu/ |
H A D | wm_shrx.S | 26 | Shifts the 64 bit quantity pointed to by the first arg (arg1) | 27 | right by the number of bits specified by the second arg (arg2). | 28 | Forms a 96 bit quantity from the 64 bit arg and eax: | 29 | [ 64 bit arg ][ eax ] | 32 | Results returned in the 64 bit arg and eax. | 102 | Shifts the 64 bit quantity pointed to by the first arg (arg1) | 103 | right by the number of bits specified by the second arg (arg2). | 104 | Forms a 96 bit quantity from the 64 bit arg and eax: | 105 | [ 64 bit arg ][ eax ] | 110 | part which has been shifted out of the arg. | 111 | Results returned in the 64 bit arg and eax. |
|
H A D | shr_Xsig.S | 12 | void shr_Xsig(Xsig *arg, unsigned nr) | 16 | Shifts the 12 byte quantity pointed to by the first arg (arg) | 17 | right by the number of bits specified by the second arg (nr). |
|
H A D | poly_tan.c | 133 /* Multiply by arg^2 */ poly_tan() 152 /* Multiply by 1/3 * arg^3 */ poly_tan() 159 /* tan(arg) = arg + accum */ poly_tan() 163 /* We now have the value of tan(pi_2 - arg) where pi_2 is an poly_tan() 197 /* accum now contains tan(pi/2 - arg). poly_tan() 198 Use tan(arg) = 1.0 / tan(pi/2 - arg) poly_tan()
|
/linux-4.1.27/arch/mips/netlogic/xlr/ |
H A D | setup.c | 105 char *arg; build_arcs_cmdline() local 110 arg = (char *)(long)argv[i]; build_arcs_cmdline() 111 len = strlen(arg); build_arcs_cmdline() 114 strcat(arcs_cmdline, arg); build_arcs_cmdline() 121 arg = "console=ttyS0,38400 "; build_arcs_cmdline() 122 len = strlen(arg); build_arcs_cmdline() 125 strcat(arcs_cmdline, arg); build_arcs_cmdline() 130 arg = "rdinit=/sbin/init "; build_arcs_cmdline() 131 len = strlen(arg); build_arcs_cmdline() 134 strcat(arcs_cmdline, arg); build_arcs_cmdline() 140 panic("Cannot add %s, command line too big!", arg); build_arcs_cmdline()
|
/linux-4.1.27/net/sunrpc/xprtrdma/ |
H A D | svc_rdma_recvfrom.c | 155 head->arg.pages[pg_no] = rqstp->rq_arg.pages[pg_no]; rdma_read_chunk_lcl() 156 head->arg.page_len += len; rdma_read_chunk_lcl() 157 head->arg.len += len; rdma_read_chunk_lcl() 164 head->arg.pages[pg_no], pg_off, rdma_read_chunk_lcl() 261 head->arg.pages[pg_no] = rqstp->rq_arg.pages[pg_no]; rdma_read_chunk_frmr() 262 head->arg.page_len += len; rdma_read_chunk_frmr() 263 head->arg.len += len; rdma_read_chunk_frmr() 270 head->arg.pages[pg_no], 0, rdma_read_chunk_frmr() 369 /* If there was additional inline content, append it to the end of arg.pages. 381 srcp = head->arg.head[0].iov_base + position; rdma_copy_tail() 382 byte_count = head->arg.head[0].iov_len - position; rdma_copy_tail() 412 byte_count = head->arg.head[0].iov_len - position; rdma_copy_tail() 413 head->arg.page_len += byte_count; rdma_copy_tail() 414 head->arg.len += byte_count; rdma_copy_tail() 415 head->arg.buflen += byte_count; rdma_copy_tail() 443 head->arg.head[0] = rqstp->rq_arg.head[0]; rdma_read_chunks() 444 head->arg.tail[0] = rqstp->rq_arg.tail[0]; rdma_read_chunks() 446 head->arg.page_base = 0; rdma_read_chunks() 447 head->arg.page_len = 0; rdma_read_chunks() 448 head->arg.len = rqstp->rq_arg.len; rdma_read_chunks() 449 head->arg.buflen = rqstp->rq_arg.buflen; rdma_read_chunks() 456 head->arg.pages = &head->pages[0]; rdma_read_chunks() 459 head->arg.pages = &head->pages[head->count]; rdma_read_chunks() 484 head->arg.buflen += ret; rdma_read_chunks() 492 head->arg.page_len += pad; rdma_read_chunks() 493 head->arg.len += pad; rdma_read_chunks() 494 head->arg.buflen += pad; rdma_read_chunks() 499 if (position && position < head->arg.head[0].iov_len) rdma_read_chunks() 502 head->arg.head[0].iov_len = position; rdma_read_chunks() 506 /* Detach arg pages. svc_recv will replenish them */ rdma_read_chunks() 528 if (head->arg.len <= head->sge[0].length) { rdma_read_complete() 529 head->arg.head[0].iov_len = head->arg.len - rdma_read_complete() 531 head->arg.page_len = 0; rdma_read_complete() 533 head->arg.head[0].iov_len = head->sge[0].length - rdma_read_complete() 535 head->arg.page_len = head->arg.len - rdma_read_complete() 542 rqstp->rq_arg.page_len = head->arg.page_len; rdma_read_complete() 543 rqstp->rq_arg.page_base = head->arg.page_base; rdma_read_complete() 545 /* rq_respages starts after the last arg page */ rdma_read_complete() 550 rqstp->rq_arg.head[0] = head->arg.head[0]; rdma_read_complete() 551 rqstp->rq_arg.tail[0] = head->arg.tail[0]; rdma_read_complete() 552 rqstp->rq_arg.len = head->arg.len; rdma_read_complete() 553 rqstp->rq_arg.buflen = head->arg.buflen; rdma_read_complete()
|
/linux-4.1.27/drivers/scsi/ |
H A D | scsi_ioctl.c | 70 * dev is the SCSI device struct ptr, *(int *) arg is the length of the 72 * *((int *)arg + 1) is the output buffer size in bytes. 74 * *(char *) ((int *) arg)[2] the actual command byte. 163 * The scsi_ioctl_get_pci() function places into arg the value 172 static int scsi_ioctl_get_pci(struct scsi_device *sdev, void __user *arg) scsi_ioctl_get_pci() argument 184 return copy_to_user(arg, name, min(strlen(name), (size_t)20)) scsi_ioctl_get_pci() 193 * @arg: data associated with ioctl 199 int scsi_ioctl(struct scsi_device *sdev, int cmd, void __user *arg) scsi_ioctl() argument 221 if (!access_ok(VERIFY_WRITE, arg, sizeof(struct scsi_idlun))) scsi_ioctl() 228 &((struct scsi_idlun __user *)arg)->dev_id); scsi_ioctl() 230 &((struct scsi_idlun __user *)arg)->host_unique_id); scsi_ioctl() 233 return put_user(sdev->host->host_no, (int __user *)arg); scsi_ioctl() 235 return ioctl_probe(sdev->host, arg); scsi_ioctl() 239 return sg_scsi_ioctl(sdev->request_queue, NULL, 0, arg); scsi_ioctl() 262 return scsi_ioctl_get_pci(sdev, arg); scsi_ioctl() 264 return scsi_ioctl_reset(sdev, arg); scsi_ioctl() 267 return sdev->host->hostt->ioctl(sdev, cmd, arg); scsi_ioctl()
|
/linux-4.1.27/drivers/input/serio/ |
H A D | i8042.h | 70 #define dbg(format, arg...) \ 74 (int) (jiffies - i8042_start_time), ##arg); \ 78 #define dbg(format, arg...) \ 81 printk(KERN_DEBUG pr_fmt(format), ##arg); \
|
/linux-4.1.27/arch/mips/emma/common/ |
H A D | prom.c | 44 char **arg = (char **)fw_arg1; prom_init() local 51 /* arg[0] is "g", the rest is boot parameters */ prom_init() 53 if (strlen(arcs_cmdline) + strlen(arg[i]) + 1 prom_init() 56 strcat(arcs_cmdline, arg[i]); prom_init()
|
/linux-4.1.27/kernel/ |
H A D | crash_dump.c | 34 static int __init setup_elfcorehdr(char *arg) setup_elfcorehdr() argument 37 if (!arg) setup_elfcorehdr() 39 elfcorehdr_addr = memparse(arg, &end); setup_elfcorehdr() 44 return end > arg ? 0 : -EINVAL; setup_elfcorehdr()
|
H A D | stop_machine.c | 96 * @arg: argument to @fn 98 * Execute @fn(@arg) on @cpu. @fn is run in a process context with 113 * -ENOENT if @fn(@arg) was not executed because @cpu was offline; 116 int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg) stop_one_cpu() argument 119 struct cpu_stop_work work = { .fn = fn, .arg = arg, .done = &done }; stop_one_cpu() 226 static void irq_cpu_stop_queue_work(void *arg) irq_cpu_stop_queue_work() argument 228 struct irq_cpu_stop_queue_work_info *info = arg; irq_cpu_stop_queue_work() 238 * @arg: argument to @fn 244 int stop_two_cpus(unsigned int cpu1, unsigned int cpu2, cpu_stop_fn_t fn, void *arg) stop_two_cpus() argument 254 .data = arg, stop_two_cpus() 261 .arg = &msdata, stop_two_cpus() 309 * @arg: argument to @fn 319 void stop_one_cpu_nowait(unsigned int cpu, cpu_stop_fn_t fn, void *arg, stop_one_cpu_nowait() argument 322 *work_buf = (struct cpu_stop_work){ .fn = fn, .arg = arg, }; stop_one_cpu_nowait() 331 cpu_stop_fn_t fn, void *arg, queue_stop_cpus_work() 341 work->arg = arg; for_each_cpu() 357 cpu_stop_fn_t fn, void *arg) __stop_cpus() 362 queue_stop_cpus_work(cpumask, fn, arg, &done); __stop_cpus() 371 * @arg: argument to @fn 373 * Execute @fn(@arg) on online cpus in @cpumask. On each target cpu, 391 * -ENOENT if @fn(@arg) was not executed at all because all cpus in 395 int stop_cpus(const struct cpumask *cpumask, cpu_stop_fn_t fn, void *arg) stop_cpus() argument 401 ret = __stop_cpus(cpumask, fn, arg); stop_cpus() 410 * @arg: argument to @fn 420 * @fn(@arg) was not executed at all because all cpus in @cpumask were 424 int try_stop_cpus(const struct cpumask *cpumask, cpu_stop_fn_t fn, void *arg) try_stop_cpus() argument 431 ret = __stop_cpus(cpumask, fn, arg); try_stop_cpus() 466 void *arg = work->arg; cpu_stopper_thread() local 473 ret = fn(arg); cpu_stopper_thread() 482 ksym_buf), arg); cpu_stopper_thread() local 330 queue_stop_cpus_work(const struct cpumask *cpumask, cpu_stop_fn_t fn, void *arg, struct cpu_stop_done *done) queue_stop_cpus_work() argument 356 __stop_cpus(const struct cpumask *cpumask, cpu_stop_fn_t fn, void *arg) __stop_cpus() argument
|
/linux-4.1.27/fs/ceph/ |
H A D | ioctl.c | 16 static long ceph_ioctl_get_layout(struct file *file, void __user *arg) ceph_ioctl_get_layout() argument 29 if (copy_to_user(arg, &l, sizeof(l))) ceph_ioctl_get_layout() 63 static long ceph_ioctl_set_layout(struct file *file, void __user *arg) ceph_ioctl_set_layout() argument 73 if (copy_from_user(&l, arg, sizeof(l))) ceph_ioctl_set_layout() 135 static long ceph_ioctl_set_layout_policy (struct file *file, void __user *arg) ceph_ioctl_set_layout_policy() argument 144 if (copy_from_user(&l, arg, sizeof(l))) ceph_ioctl_set_layout_policy() 178 static long ceph_ioctl_get_dataloc(struct file *file, void __user *arg) ceph_ioctl_get_dataloc() argument 193 if (copy_from_user(&dl, arg, sizeof(dl))) ceph_ioctl_get_dataloc() 236 if (copy_to_user(arg, &dl, sizeof(dl))) ceph_ioctl_get_dataloc() 271 long ceph_ioctl(struct file *file, unsigned int cmd, unsigned long arg) ceph_ioctl() argument 273 dout("ioctl file %p cmd %u arg %lu\n", file, cmd, arg); ceph_ioctl() 276 return ceph_ioctl_get_layout(file, (void __user *)arg); ceph_ioctl() 279 return ceph_ioctl_set_layout(file, (void __user *)arg); ceph_ioctl() 282 return ceph_ioctl_set_layout_policy(file, (void __user *)arg); ceph_ioctl() 285 return ceph_ioctl_get_dataloc(file, (void __user *)arg); ceph_ioctl()
|
/linux-4.1.27/net/ceph/ |
H A D | msgpool.c | 10 static void *msgpool_alloc(gfp_t gfp_mask, void *arg) msgpool_alloc() argument 12 struct ceph_msgpool *pool = arg; msgpool_alloc() 25 static void msgpool_free(void *element, void *arg) msgpool_free() argument 27 struct ceph_msgpool *pool = arg; msgpool_free()
|
/linux-4.1.27/tools/build/feature/ |
H A D | test-libunwind.c | 8 int need_unwind_info, void *arg);
|
/linux-4.1.27/drivers/gpu/drm/ |
H A D | drm_ioc32.c | 88 unsigned long arg) compat_drm_version() 94 if (copy_from_user(&v32, (void __user *)arg, sizeof(v32))) compat_drm_version() 124 if (copy_to_user((void __user *)arg, &v32, sizeof(v32))) compat_drm_version() 135 unsigned long arg) compat_drm_getunique() 141 if (copy_from_user(&uq32, (void __user *)arg, sizeof(uq32))) compat_drm_getunique() 158 if (copy_to_user((void __user *)arg, &uq32, sizeof(uq32))) compat_drm_getunique() 164 unsigned long arg) compat_drm_setunique() 169 if (copy_from_user(&uq32, (void __user *)arg, sizeof(uq32))) compat_drm_setunique() 193 unsigned long arg) compat_drm_getmap() 195 drm_map32_t __user *argp = (void __user *)arg; compat_drm_getmap() 230 unsigned long arg) compat_drm_addmap() 232 drm_map32_t __user *argp = (void __user *)arg; compat_drm_addmap() 272 unsigned long arg) compat_drm_rmmap() 274 drm_map32_t __user *argp = (void __user *)arg; compat_drm_rmmap() 300 unsigned long arg) compat_drm_getclient() 303 drm_client32_t __user *argp = (void __user *)arg; compat_drm_getclient() 342 unsigned long arg) compat_drm_getstats() 345 drm_stats32_t __user *argp = (void __user *)arg; compat_drm_getstats() 379 unsigned long arg) compat_drm_addbufs() 381 drm_buf_desc32_t __user *argp = (void __user *)arg; compat_drm_addbufs() 409 unsigned long arg) compat_drm_markbufs() 412 drm_buf_desc32_t __user *argp = (void __user *)arg; compat_drm_markbufs() 436 unsigned long arg) compat_drm_infobufs() 439 drm_buf_info32_t __user *argp = (void __user *)arg; compat_drm_infobufs() 500 unsigned long arg) compat_drm_mapbufs() 502 drm_buf_map32_t __user *argp = (void __user *)arg; compat_drm_mapbufs() 558 unsigned long arg) compat_drm_freebufs() 562 drm_buf_free32_t __user *argp = (void __user *)arg; compat_drm_freebufs() 584 unsigned long arg) compat_drm_setsareactx() 588 drm_ctx_priv_map32_t __user *argp = (void __user *)arg; compat_drm_setsareactx() 605 unsigned long arg) compat_drm_getsareactx() 608 drm_ctx_priv_map32_t __user *argp = (void __user *)arg; compat_drm_getsareactx() 640 unsigned long arg) compat_drm_resctx() 642 drm_ctx_res32_t __user *argp = (void __user *)arg; compat_drm_resctx() 683 unsigned long arg) compat_drm_dma() 686 drm_dma32_t __user *argp = (void __user *)arg; compat_drm_dma() 730 unsigned long arg) compat_drm_agp_enable() 732 drm_agp_mode32_t __user *argp = (void __user *)arg; compat_drm_agp_enable() 761 unsigned long arg) compat_drm_agp_info() 763 drm_agp_info32_t __user *argp = (void __user *)arg; compat_drm_agp_info() 801 unsigned long arg) compat_drm_agp_alloc() 803 drm_agp_buffer32_t __user *argp = (void __user *)arg; compat_drm_agp_alloc() 832 unsigned long arg) compat_drm_agp_free() 834 drm_agp_buffer32_t __user *argp = (void __user *)arg; compat_drm_agp_free() 853 unsigned long arg) compat_drm_agp_bind() 855 drm_agp_binding32_t __user *argp = (void __user *)arg; compat_drm_agp_bind() 872 unsigned long arg) compat_drm_agp_unbind() 874 drm_agp_binding32_t __user *argp = (void __user *)arg; compat_drm_agp_unbind() 894 unsigned long arg) compat_drm_sg_alloc() 896 drm_scatter_gather32_t __user *argp = (void __user *)arg; compat_drm_sg_alloc() 921 unsigned long arg) compat_drm_sg_free() 923 drm_scatter_gather32_t __user *argp = (void __user *)arg; compat_drm_sg_free() 947 unsigned long arg) compat_drm_update_draw() 953 if (copy_from_user(&update32, (void __user *)arg, sizeof(update32))) compat_drm_update_draw() 988 unsigned long arg) compat_drm_wait_vblank() 990 drm_wait_vblank32_t __user *argp = (void __user *)arg; compat_drm_wait_vblank() 1034 unsigned long arg) compat_drm_mode_addfb2() 1036 struct drm_mode_fb_cmd232 __user *argp = (void __user *)arg; compat_drm_mode_addfb2() 1119 * \param arg user argument. 1122 long drm_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) drm_compat_ioctl() argument 1133 return drm_ioctl(filp, cmd, arg); drm_compat_ioctl() 1138 ret = (*fn) (filp, cmd, arg); drm_compat_ioctl() 1140 ret = drm_ioctl(filp, cmd, arg); drm_compat_ioctl() 87 compat_drm_version(struct file *file, unsigned int cmd, unsigned long arg) compat_drm_version() argument 134 compat_drm_getunique(struct file *file, unsigned int cmd, unsigned long arg) compat_drm_getunique() argument 163 compat_drm_setunique(struct file *file, unsigned int cmd, unsigned long arg) compat_drm_setunique() argument 192 compat_drm_getmap(struct file *file, unsigned int cmd, unsigned long arg) compat_drm_getmap() argument 229 compat_drm_addmap(struct file *file, unsigned int cmd, unsigned long arg) compat_drm_addmap() argument 271 compat_drm_rmmap(struct file *file, unsigned int cmd, unsigned long arg) compat_drm_rmmap() argument 299 compat_drm_getclient(struct file *file, unsigned int cmd, unsigned long arg) compat_drm_getclient() argument 341 compat_drm_getstats(struct file *file, unsigned int cmd, unsigned long arg) compat_drm_getstats() argument 378 compat_drm_addbufs(struct file *file, unsigned int cmd, unsigned long arg) compat_drm_addbufs() argument 408 compat_drm_markbufs(struct file *file, unsigned int cmd, unsigned long arg) compat_drm_markbufs() argument 435 compat_drm_infobufs(struct file *file, unsigned int cmd, unsigned long arg) compat_drm_infobufs() argument 499 compat_drm_mapbufs(struct file *file, unsigned int cmd, unsigned long arg) compat_drm_mapbufs() argument 557 compat_drm_freebufs(struct file *file, unsigned int cmd, unsigned long arg) compat_drm_freebufs() argument 583 compat_drm_setsareactx(struct file *file, unsigned int cmd, unsigned long arg) compat_drm_setsareactx() argument 604 compat_drm_getsareactx(struct file *file, unsigned int cmd, unsigned long arg) compat_drm_getsareactx() argument 639 compat_drm_resctx(struct file *file, unsigned int cmd, unsigned long arg) compat_drm_resctx() argument 682 compat_drm_dma(struct file *file, unsigned int cmd, unsigned long arg) compat_drm_dma() argument 729 compat_drm_agp_enable(struct file *file, unsigned int cmd, unsigned long arg) compat_drm_agp_enable() argument 760 compat_drm_agp_info(struct file *file, unsigned int cmd, unsigned long arg) compat_drm_agp_info() argument 800 compat_drm_agp_alloc(struct file *file, unsigned int cmd, unsigned long arg) compat_drm_agp_alloc() argument 831 compat_drm_agp_free(struct file *file, unsigned int cmd, unsigned long arg) compat_drm_agp_free() argument 852 compat_drm_agp_bind(struct file *file, unsigned int cmd, unsigned long arg) compat_drm_agp_bind() argument 871 compat_drm_agp_unbind(struct file *file, unsigned int cmd, unsigned long arg) compat_drm_agp_unbind() argument 893 compat_drm_sg_alloc(struct file *file, unsigned int cmd, unsigned long arg) compat_drm_sg_alloc() argument 920 compat_drm_sg_free(struct file *file, unsigned int cmd, unsigned long arg) compat_drm_sg_free() argument 946 compat_drm_update_draw(struct file *file, unsigned int cmd, unsigned long arg) compat_drm_update_draw() argument 987 compat_drm_wait_vblank(struct file *file, unsigned int cmd, unsigned long arg) compat_drm_wait_vblank() argument 1033 compat_drm_mode_addfb2(struct file *file, unsigned int cmd, unsigned long arg) compat_drm_mode_addfb2() argument
|
/linux-4.1.27/arch/sparc/kernel/ |
H A D | apc.c | 90 __u8 inarg, __user *arg = (__u8 __user *) __arg; apc_ioctl() local 94 if (put_user(apc_readb(APC_FANCTL_REG) & APC_REGMASK, arg)) apc_ioctl() 99 if (put_user(apc_readb(APC_CPOWER_REG) & APC_REGMASK, arg)) apc_ioctl() 104 if (put_user(apc_readb(APC_BPORT_REG) & APC_BPMASK, arg)) apc_ioctl() 109 if (get_user(inarg, arg)) apc_ioctl() 115 if (get_user(inarg, arg)) apc_ioctl() 121 if (get_user(inarg, arg)) apc_ioctl()
|
/linux-4.1.27/arch/arm/include/asm/xen/ |
H A D | hypercall.h | 42 int HYPERVISOR_xen_version(int cmd, void *arg); 45 int HYPERVISOR_sched_op(int cmd, void *arg); 46 int HYPERVISOR_event_channel_op(int cmd, void *arg); 47 unsigned long HYPERVISOR_hvm_op(int op, void *arg); 48 int HYPERVISOR_memory_op(unsigned int cmd, void *arg); 49 int HYPERVISOR_physdev_op(int cmd, void *arg); 51 int HYPERVISOR_tmem_op(void *arg);
|
/linux-4.1.27/fs/efivarfs/ |
H A D | file.c | 108 efivarfs_ioc_getxflags(struct file *file, void __user *arg) efivarfs_ioc_getxflags() argument 118 if (copy_to_user(arg, &flags, sizeof(flags))) efivarfs_ioc_getxflags() 124 efivarfs_ioc_setxflags(struct file *file, void __user *arg) efivarfs_ioc_setxflags() argument 134 if (copy_from_user(&flags, arg, sizeof(flags))) efivarfs_ioc_setxflags() 163 void __user *arg = (void __user *)p; efivarfs_file_ioctl() local 167 return efivarfs_ioc_getxflags(file, arg); efivarfs_file_ioctl() 169 return efivarfs_ioc_setxflags(file, arg); efivarfs_file_ioctl()
|
/linux-4.1.27/arch/xtensa/kernel/ |
H A D | smp.c | 447 static void ipi_flush_tlb_all(void *arg) ipi_flush_tlb_all() argument 457 static void ipi_flush_tlb_mm(void *arg) ipi_flush_tlb_mm() argument 459 local_flush_tlb_mm(arg); ipi_flush_tlb_mm() 467 static void ipi_flush_tlb_page(void *arg) ipi_flush_tlb_page() argument 469 struct flush_data *fd = arg; ipi_flush_tlb_page() 482 static void ipi_flush_tlb_range(void *arg) ipi_flush_tlb_range() argument 484 struct flush_data *fd = arg; ipi_flush_tlb_range() 499 static void ipi_flush_tlb_kernel_range(void *arg) ipi_flush_tlb_kernel_range() argument 501 struct flush_data *fd = arg; ipi_flush_tlb_kernel_range() 516 static void ipi_flush_cache_all(void *arg) ipi_flush_cache_all() argument 526 static void ipi_flush_cache_page(void *arg) ipi_flush_cache_page() argument 528 struct flush_data *fd = arg; ipi_flush_cache_page() 543 static void ipi_flush_cache_range(void *arg) ipi_flush_cache_range() argument 545 struct flush_data *fd = arg; ipi_flush_cache_range() 560 static void ipi_flush_icache_range(void *arg) ipi_flush_icache_range() argument 562 struct flush_data *fd = arg; ipi_flush_icache_range() 578 static void ipi_invalidate_dcache_range(void *arg) ipi_invalidate_dcache_range() argument 580 struct flush_data *fd = arg; ipi_invalidate_dcache_range() 594 static void ipi_flush_invalidate_dcache_range(void *arg) ipi_flush_invalidate_dcache_range() argument 596 struct flush_data *fd = arg; ipi_flush_invalidate_dcache_range()
|
/linux-4.1.27/drivers/gpu/drm/i915/ |
H A D | i915_ioc32.c | 48 unsigned long arg) compat_i915_batchbuffer() 54 (&batchbuffer32, (void __user *)arg, sizeof(batchbuffer32))) compat_i915_batchbuffer() 83 unsigned long arg) compat_i915_cmdbuffer() 89 (&cmdbuffer32, (void __user *)arg, sizeof(cmdbuffer32))) compat_i915_cmdbuffer() 113 unsigned long arg) compat_i915_irq_emit() 118 if (copy_from_user(&req32, (void __user *)arg, sizeof(req32))) compat_i915_irq_emit() 136 unsigned long arg) compat_i915_getparam() 141 if (copy_from_user(&req32, (void __user *)arg, sizeof(req32))) compat_i915_getparam() 163 unsigned long arg) compat_i915_alloc() 168 if (copy_from_user(&req32, (void __user *)arg, sizeof(req32))) compat_i915_alloc() 198 * \param arg user argument. 201 long i915_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) i915_compat_ioctl() argument 208 return drm_compat_ioctl(filp, cmd, arg); i915_compat_ioctl() 214 ret = (*fn) (filp, cmd, arg); i915_compat_ioctl() 216 ret = drm_ioctl(filp, cmd, arg); i915_compat_ioctl() 47 compat_i915_batchbuffer(struct file *file, unsigned int cmd, unsigned long arg) compat_i915_batchbuffer() argument 82 compat_i915_cmdbuffer(struct file *file, unsigned int cmd, unsigned long arg) compat_i915_cmdbuffer() argument 112 compat_i915_irq_emit(struct file *file, unsigned int cmd, unsigned long arg) compat_i915_irq_emit() argument 135 compat_i915_getparam(struct file *file, unsigned int cmd, unsigned long arg) compat_i915_getparam() argument 162 compat_i915_alloc(struct file *file, unsigned int cmd, unsigned long arg) compat_i915_alloc() argument
|
/linux-4.1.27/arch/powerpc/platforms/44x/ |
H A D | warp.c | 108 void (*func)(void *arg); 109 void *arg; member in struct:dtm_shutdown 113 int pika_dtm_register_shutdown(void (*func)(void *arg), void *arg) pika_dtm_register_shutdown() argument 122 shutdown->arg = arg; pika_dtm_register_shutdown() 129 int pika_dtm_unregister_shutdown(void (*func)(void *arg), void *arg) pika_dtm_unregister_shutdown() argument 134 if (shutdown->func == func && shutdown->arg == arg) { pika_dtm_unregister_shutdown() 154 shutdown->func(shutdown->arg); temp_isr() 305 int pika_dtm_register_shutdown(void (*func)(void *arg), void *arg) pika_dtm_register_shutdown() argument 310 int pika_dtm_unregister_shutdown(void (*func)(void *arg), void *arg) pika_dtm_unregister_shutdown() argument
|
/linux-4.1.27/arch/ia64/include/asm/sn/sn2/ |
H A D | sn_hwperf.h | 74 u64 arg; /* argument, usually an object id */ member in struct:sn_hwperf_ioctl_args 82 * sn_hwperf_ioctl_args.arg can be used to specify a CPU on which 101 * arg don't care 109 * arg don't care 117 * arg don't care 129 * arg bitmap of IPI flag, cpu number and object id 138 * arg don't care 147 * arg object id 159 * arg bitmap of ipi flag, cpu number and object id 168 * arg object id 176 * arg object id 184 * arg object id 200 * arg don't care 208 * arg object id 216 * arg ordinal node number (aka cnodeid)
|
/linux-4.1.27/fs/ext3/ |
H A D | ioctl.c | 15 long ext3_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) ext3_ioctl() argument 22 ext3_debug ("cmd = %u, arg = %lu\n", cmd, arg); ext3_ioctl() 28 return put_user(flags, (int __user *) arg); ext3_ioctl() 39 if (get_user(flags, (int __user *) arg)) ext3_ioctl() 113 return put_user(inode->i_generation, (int __user *) arg); ext3_ioctl() 127 if (get_user(generation, (int __user *) arg)) { ext3_ioctl() 157 return put_user(rsv_window_size, (int __user *)arg); ext3_ioctl() 175 if (get_user(rsv_window_size, (int __user *)arg)) { ext3_ioctl() 212 if (get_user(n_blocks_count, (__u32 __user *)arg)) { ext3_ioctl() 238 if (copy_from_user(&input, (struct ext3_new_group_input __user *)arg, ext3_ioctl() 263 if (copy_from_user(&range, (struct fstrim_range __user *)arg, ext3_ioctl() 271 if (copy_to_user((struct fstrim_range __user *)arg, &range, ext3_ioctl() 284 long ext3_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) ext3_compat_ioctl() argument 325 return ext3_ioctl(file, cmd, (unsigned long) compat_ptr(arg)); ext3_compat_ioctl()
|
/linux-4.1.27/net/netfilter/ |
H A D | nft_hash.c | 47 const struct nft_hash_cmp_arg *arg = data; nft_hash_key() local 49 return jhash(arg->key, len, seed); nft_hash_key() 59 static inline int nft_hash_cmp(struct rhashtable_compare_arg *arg, nft_hash_cmp() argument 62 const struct nft_hash_cmp_arg *x = arg->key; nft_hash_cmp() 79 struct nft_hash_cmp_arg arg = { nft_hash_lookup() local 85 he = rhashtable_lookup_fast(&priv->ht, &arg, nft_hash_params); nft_hash_lookup() 102 struct nft_hash_cmp_arg arg = { nft_hash_update() local 108 he = rhashtable_lookup_fast(&priv->ht, &arg, nft_hash_params); nft_hash_update() 115 if (rhashtable_lookup_insert_key(&priv->ht, &arg, &he->node, nft_hash_update() 133 struct nft_hash_cmp_arg arg = { nft_hash_insert() local 139 return rhashtable_lookup_insert_key(&priv->ht, &arg, &he->node, nft_hash_insert() 157 struct nft_hash_cmp_arg arg = { nft_hash_deactivate() local 164 he = rhashtable_lookup_fast(&priv->ht, &arg, nft_hash_params); nft_hash_deactivate() 323 static void nft_hash_elem_destroy(void *ptr, void *arg) nft_hash_elem_destroy() argument 325 nft_set_elem_destroy((const struct nft_set *)arg, ptr); nft_hash_elem_destroy()
|
/linux-4.1.27/net/sunrpc/auth_gss/ |
H A D | gss_rpc_upcall.c | 214 static void gssp_free_receive_pages(struct gssx_arg_accept_sec_context *arg) gssp_free_receive_pages() argument 218 for (i = 0; i < arg->npages && arg->pages[i]; i++) gssp_free_receive_pages() 219 __free_page(arg->pages[i]); gssp_free_receive_pages() 221 kfree(arg->pages); gssp_free_receive_pages() 224 static int gssp_alloc_receive_pages(struct gssx_arg_accept_sec_context *arg) gssp_alloc_receive_pages() argument 226 arg->npages = DIV_ROUND_UP(NGROUPS_MAX * 4, PAGE_SIZE); gssp_alloc_receive_pages() 227 arg->pages = kzalloc(arg->npages * sizeof(struct page *), GFP_KERNEL); gssp_alloc_receive_pages() 232 if (!arg->pages) gssp_alloc_receive_pages() 255 struct gssx_arg_accept_sec_context arg = { gssp_accept_sec_context_upcall() local 273 .rpc_argp = &arg, gssp_accept_sec_context_upcall() 281 arg.context_handle = &ctxh; gssp_accept_sec_context_upcall() 284 ret = gssp_alloc_receive_pages(&arg); gssp_accept_sec_context_upcall() 292 gssp_free_receive_pages(&arg); gssp_accept_sec_context_upcall()
|
/linux-4.1.27/drivers/isdn/mISDN/ |
H A D | layer2.c | 164 l2up_create(struct layer2 *l2, u_int prim, int len, void *arg) l2up_create() argument 179 memcpy(skb_put(skb, len), arg, len); l2up_create() local 225 l2down_create(struct layer2 *l2, u_int prim, u_int id, int len, void *arg) l2down_create() argument 238 memcpy(skb_put(skb, len), arg, len); l2down_create() local 287 l2_timeout(struct FsmInst *fi, int event, void *arg) l2_timeout() argument 312 l2mgr(struct layer2 *l2, u_int prim, void *arg) { l2mgr() argument 313 long c = (long)arg; l2mgr() 324 l2_tei(l2, prim, (u_long)arg); l2mgr() 723 l2_mdl_error_ua(struct FsmInst *fi, int event, void *arg) l2_mdl_error_ua() argument 725 struct sk_buff *skb = arg; l2_mdl_error_ua() 736 l2_mdl_error_dm(struct FsmInst *fi, int event, void *arg) l2_mdl_error_dm() argument 738 struct sk_buff *skb = arg; l2_mdl_error_dm() 751 l2_st8_mdl_error_dm(struct FsmInst *fi, int event, void *arg) l2_st8_mdl_error_dm() argument 753 struct sk_buff *skb = arg; l2_st8_mdl_error_dm() 765 l2_go_st3(struct FsmInst *fi, int event, void *arg) l2_go_st3() argument 767 dev_kfree_skb((struct sk_buff *)arg); l2_go_st3() 772 l2_mdl_assign(struct FsmInst *fi, int event, void *arg) l2_mdl_assign() argument 777 dev_kfree_skb((struct sk_buff *)arg); l2_mdl_assign() 782 l2_queue_ui_assign(struct FsmInst *fi, int event, void *arg) l2_queue_ui_assign() argument 785 struct sk_buff *skb = arg; l2_queue_ui_assign() 793 l2_queue_ui(struct FsmInst *fi, int event, void *arg) l2_queue_ui() argument 796 struct sk_buff *skb = arg; l2_queue_ui() 819 l2_send_ui(struct FsmInst *fi, int event, void *arg) l2_send_ui() argument 822 struct sk_buff *skb = arg; l2_send_ui() 829 l2_got_ui(struct FsmInst *fi, int event, void *arg) l2_got_ui() argument 832 struct sk_buff *skb = arg; l2_got_ui() 845 l2_establish(struct FsmInst *fi, int event, void *arg) l2_establish() argument 847 struct sk_buff *skb = arg; l2_establish() 856 l2_discard_i_setl3(struct FsmInst *fi, int event, void *arg) l2_discard_i_setl3() argument 858 struct sk_buff *skb = arg; l2_discard_i_setl3() 868 l2_l3_reestablish(struct FsmInst *fi, int event, void *arg) l2_l3_reestablish() argument 870 struct sk_buff *skb = arg; l2_l3_reestablish() 880 l2_release(struct FsmInst *fi, int event, void *arg) l2_release() argument 883 struct sk_buff *skb = arg; l2_release() 890 l2_pend_rel(struct FsmInst *fi, int event, void *arg) l2_pend_rel() argument 892 struct sk_buff *skb = arg; l2_pend_rel() 900 l2_disconnect(struct FsmInst *fi, int event, void *arg) l2_disconnect() argument 903 struct sk_buff *skb = arg; l2_disconnect() 917 l2_start_multi(struct FsmInst *fi, int event, void *arg) l2_start_multi() argument 920 struct sk_buff *skb = arg; l2_start_multi() 937 l2_send_UA(struct FsmInst *fi, int event, void *arg) l2_send_UA() argument 940 struct sk_buff *skb = arg; l2_send_UA() 946 l2_send_DM(struct FsmInst *fi, int event, void *arg) l2_send_DM() argument 949 struct sk_buff *skb = arg; l2_send_DM() 955 l2_restart_multi(struct FsmInst *fi, int event, void *arg) l2_restart_multi() argument 958 struct sk_buff *skb = arg; l2_restart_multi() 990 l2_stop_multi(struct FsmInst *fi, int event, void *arg) l2_stop_multi() argument 993 struct sk_buff *skb = arg; l2_stop_multi() 1008 l2_connected(struct FsmInst *fi, int event, void *arg) l2_connected() argument 1011 struct sk_buff *skb = arg; l2_connected() 1015 l2_mdl_error_ua(fi, event, arg); l2_connected() 1045 l2_released(struct FsmInst *fi, int event, void *arg) l2_released() argument 1048 struct sk_buff *skb = arg; l2_released() 1051 l2_mdl_error_ua(fi, event, arg); l2_released() 1063 l2_reestablish(struct FsmInst *fi, int event, void *arg) l2_reestablish() argument 1066 struct sk_buff *skb = arg; l2_reestablish() 1075 l2_st5_dm_release(struct FsmInst *fi, int event, void *arg) l2_st5_dm_release() argument 1078 struct sk_buff *skb = arg; l2_st5_dm_release() 1095 l2_st6_dm_release(struct FsmInst *fi, int event, void *arg) l2_st6_dm_release() argument 1098 struct sk_buff *skb = arg; l2_st6_dm_release() 1193 l2_st7_got_super(struct FsmInst *fi, int event, void *arg) l2_st7_got_super() argument 1196 struct sk_buff *skb = arg; l2_st7_got_super() 1254 l2_feed_i_if_reest(struct FsmInst *fi, int event, void *arg) l2_feed_i_if_reest() argument 1257 struct sk_buff *skb = arg; l2_feed_i_if_reest() 1266 l2_feed_i_pull(struct FsmInst *fi, int event, void *arg) l2_feed_i_pull() argument 1269 struct sk_buff *skb = arg; l2_feed_i_pull() 1276 l2_feed_iqueue(struct FsmInst *fi, int event, void *arg) l2_feed_iqueue() argument 1279 struct sk_buff *skb = arg; l2_feed_iqueue() 1285 l2_got_iframe(struct FsmInst *fi, int event, void *arg) l2_got_iframe() argument 1288 struct sk_buff *skb = arg; l2_got_iframe() 1354 l2_got_tei(struct FsmInst *fi, int event, void *arg) l2_got_tei() argument 1359 l2->tei = (signed char)(long)arg; l2_got_tei() 1373 l2_st5_tout_200(struct FsmInst *fi, int event, void *arg) l2_st5_tout_200() argument 1400 l2_st6_tout_200(struct FsmInst *fi, int event, void *arg) l2_st6_tout_200() argument 1423 l2_st7_tout_200(struct FsmInst *fi, int event, void *arg) l2_st7_tout_200() argument 1440 l2_st8_tout_200(struct FsmInst *fi, int event, void *arg) l2_st8_tout_200() argument 1461 l2_st7_tout_203(struct FsmInst *fi, int event, void *arg) l2_st7_tout_203() argument 1476 l2_pull_iqueue(struct FsmInst *fi, int event, void *arg) l2_pull_iqueue() argument 1540 l2_st8_got_super(struct FsmInst *fi, int event, void *arg) l2_st8_got_super() argument 1543 struct sk_buff *skb = arg; l2_st8_got_super() 1594 l2_got_FRMR(struct FsmInst *fi, int event, void *arg) l2_got_FRMR() argument 1597 struct sk_buff *skb = arg; l2_got_FRMR() 1611 l2_st24_tei_remove(struct FsmInst *fi, int event, void *arg) l2_st24_tei_remove() argument 1621 l2_st3_tei_remove(struct FsmInst *fi, int event, void *arg) l2_st3_tei_remove() argument 1632 l2_st5_tei_remove(struct FsmInst *fi, int event, void *arg) l2_st5_tei_remove() argument 1646 l2_st6_tei_remove(struct FsmInst *fi, int event, void *arg) l2_st6_tei_remove() argument 1658 l2_tei_remove(struct FsmInst *fi, int event, void *arg) l2_tei_remove() argument 1677 l2_st14_persistent_da(struct FsmInst *fi, int event, void *arg) l2_st14_persistent_da() argument 1680 struct sk_buff *skb = arg; l2_st14_persistent_da() 1691 l2_st5_persistent_da(struct FsmInst *fi, int event, void *arg) l2_st5_persistent_da() argument 1694 struct sk_buff *skb = arg; l2_st5_persistent_da() 1708 l2_st6_persistent_da(struct FsmInst *fi, int event, void *arg) l2_st6_persistent_da() argument 1711 struct sk_buff *skb = arg; l2_st6_persistent_da() 1722 l2_persistent_da(struct FsmInst *fi, int event, void *arg) l2_persistent_da() argument 1725 struct sk_buff *skb = arg; l2_persistent_da() 1739 l2_set_own_busy(struct FsmInst *fi, int event, void *arg) l2_set_own_busy() argument 1742 struct sk_buff *skb = arg; l2_set_own_busy() 1753 l2_clear_own_busy(struct FsmInst *fi, int event, void *arg) l2_clear_own_busy() argument 1756 struct sk_buff *skb = arg; l2_clear_own_busy() 1767 l2_frame_error(struct FsmInst *fi, int event, void *arg) l2_frame_error() argument 1771 l2mgr(l2, MDL_ERROR_IND, arg); l2_frame_error() 1775 l2_frame_error_reest(struct FsmInst *fi, int event, void *arg) l2_frame_error_reest() argument 1779 l2mgr(l2, MDL_ERROR_IND, arg); l2_frame_error_reest() 2060 tei_l2(struct layer2 *l2, u_int cmd, u_long arg) tei_l2() argument 2069 ret = mISDN_FsmEvent(&l2->l2m, EV_L2_MDL_ASSIGN, (void *)arg); tei_l2() 2106 l2_ctrl(struct mISDNchannel *ch, u_int cmd, void *arg) l2_ctrl() argument
|
H A D | fsm.c | 59 mISDN_FsmEvent(struct FsmInst *fi, int event, void *arg) mISDN_FsmEvent() argument 77 r(fi, event, arg); mISDN_FsmEvent() 106 mISDN_FsmEvent(ft->fi, ft->event, ft->arg); FsmExpireTimer() 137 int millisec, int event, void *arg, int where) mISDN_FsmAddTimer() 157 ft->arg = arg; mISDN_FsmAddTimer() 166 int millisec, int event, void *arg, int where) mISDN_FsmRestartTimer() 179 ft->arg = arg; mISDN_FsmRestartTimer() 136 mISDN_FsmAddTimer(struct FsmTimer *ft, int millisec, int event, void *arg, int where) mISDN_FsmAddTimer() argument 165 mISDN_FsmRestartTimer(struct FsmTimer *ft, int millisec, int event, void *arg, int where) mISDN_FsmRestartTimer() argument
|
/linux-4.1.27/fs/nfs/blocklayout/ |
H A D | extent_tree.c | 465 static void ext_tree_free_commitdata(struct nfs4_layoutcommit_args *arg, ext_tree_free_commitdata() argument 468 if (arg->layoutupdate_pages != &arg->layoutupdate_page) { ext_tree_free_commitdata() 472 put_page(arg->layoutupdate_pages[i]); ext_tree_free_commitdata() 473 kfree(arg->layoutupdate_pages); ext_tree_free_commitdata() 475 put_page(arg->layoutupdate_page); ext_tree_free_commitdata() 513 ext_tree_prepare_commit(struct nfs4_layoutcommit_args *arg) ext_tree_prepare_commit() argument 515 struct pnfs_block_layout *bl = BLK_LO2EXT(NFS_I(arg->inode)->layout); ext_tree_prepare_commit() 522 arg->layoutupdate_page = alloc_page(GFP_NOFS); ext_tree_prepare_commit() 523 if (!arg->layoutupdate_page) ext_tree_prepare_commit() 525 start_p = page_address(arg->layoutupdate_page); ext_tree_prepare_commit() 526 arg->layoutupdate_pages = &arg->layoutupdate_page; ext_tree_prepare_commit() 531 ext_tree_free_commitdata(arg, buffer_size); ext_tree_prepare_commit() 536 arg->layoutupdate_pages = ext_tree_prepare_commit() 539 if (!arg->layoutupdate_pages) ext_tree_prepare_commit() 544 kfree(arg->layoutupdate_pages); ext_tree_prepare_commit() 552 arg->layoutupdate_len = sizeof(__be32) + BL_EXTENT_SIZE * count; ext_tree_prepare_commit() 554 if (unlikely(arg->layoutupdate_pages != &arg->layoutupdate_page)) { ext_tree_prepare_commit() 559 p < start_p + arg->layoutupdate_len; ext_tree_prepare_commit() 561 arg->layoutupdate_pages[i++] = vmalloc_to_page(p); ext_tree_prepare_commit() 570 ext_tree_mark_committed(struct nfs4_layoutcommit_args *arg, int status) ext_tree_mark_committed() argument 572 struct pnfs_block_layout *bl = BLK_LO2EXT(NFS_I(arg->inode)->layout); ext_tree_mark_committed() 578 ext_tree_free_commitdata(arg, arg->layoutupdate_len); ext_tree_mark_committed()
|
/linux-4.1.27/arch/mn10300/kernel/ |
H A D | kgdb.c | 157 unsigned long arg; kgdb_arch_do_singlestep() local 176 ret = probe_kernel_read(&arg, pc + 1, 1); kgdb_arch_do_singlestep() 180 if (arg >= 0 && arg <= 2) kgdb_arch_do_singlestep() 182 y = pc + (s8)arg; kgdb_arch_do_singlestep() 202 ret = probe_kernel_read(&arg, pc + 1, 2); kgdb_arch_do_singlestep() 205 x = pc + (s16)arg; kgdb_arch_do_singlestep() 211 ret = probe_kernel_read(&arg, pc + 1, 4); kgdb_arch_do_singlestep() 214 x = pc + (s32)arg; kgdb_arch_do_singlestep() 224 ret = probe_kernel_read(&arg, pc + 2, 1); kgdb_arch_do_singlestep() 227 ret = probe_kernel_read(&x, sp + (s8)arg, 4); kgdb_arch_do_singlestep() 272 ret = probe_kernel_read(&arg, pc + 2, 1); kgdb_arch_do_singlestep() 275 if (arg >= 0 && arg <= 3) kgdb_arch_do_singlestep() 277 y = pc + (s8)arg; kgdb_arch_do_singlestep() 289 ret = probe_kernel_read(&arg, pc + 2, 2); kgdb_arch_do_singlestep() 292 x = pc + (s16)arg; kgdb_arch_do_singlestep() 306 ret = probe_kernel_read(&arg, pc + 2, 4); kgdb_arch_do_singlestep() 309 x = pc + (s32)arg; kgdb_arch_do_singlestep()
|
/linux-4.1.27/drivers/staging/comedi/ |
H A D | comedi_compat32.c | 91 unsigned long arg) translated_ioctl() 94 return file->f_op->unlocked_ioctl(file, cmd, arg); translated_ioctl() 100 static int compat_chaninfo(struct file *file, unsigned long arg) compat_chaninfo() argument 110 chaninfo32 = compat_ptr(arg); compat_chaninfo() 134 static int compat_rangeinfo(struct file *file, unsigned long arg) compat_rangeinfo() argument 144 rangeinfo32 = compat_ptr(arg); compat_rangeinfo() 267 static int compat_cmd(struct file *file, unsigned long arg) compat_cmd() argument 273 cmd32 = compat_ptr(arg); compat_cmd() 292 static int compat_cmdtest(struct file *file, unsigned long arg) compat_cmdtest() argument 298 cmd32 = compat_ptr(arg); compat_cmdtest() 346 static int compat_insnlist(struct file *file, unsigned long arg) compat_insnlist() argument 358 insnlist32 = compat_ptr(arg); compat_insnlist() 396 static int compat_insn(struct file *file, unsigned long arg) compat_insn() argument 402 insn32 = compat_ptr(arg); compat_insn() 417 long comedi_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) comedi_compat_ioctl() argument 428 arg = (unsigned long)compat_ptr(arg); comedi_compat_ioctl() 429 rc = translated_ioctl(file, cmd, arg); comedi_compat_ioctl() 438 rc = translated_ioctl(file, cmd, arg); comedi_compat_ioctl() 441 rc = compat_chaninfo(file, arg); comedi_compat_ioctl() 444 rc = compat_rangeinfo(file, arg); comedi_compat_ioctl() 447 rc = compat_cmd(file, arg); comedi_compat_ioctl() 450 rc = compat_cmdtest(file, arg); comedi_compat_ioctl() 453 rc = compat_insnlist(file, arg); comedi_compat_ioctl() 456 rc = compat_insn(file, arg); comedi_compat_ioctl() 90 translated_ioctl(struct file *file, unsigned int cmd, unsigned long arg) translated_ioctl() argument
|
/linux-4.1.27/fs/reiserfs/ |
H A D | ioctl.c | 18 * and prevent packing file (argument arg has t 23 long reiserfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) reiserfs_ioctl() argument 34 if (arg) reiserfs_ioctl() 51 err = put_user(flags, (int __user *)arg); reiserfs_ioctl() 67 if (get_user(flags, (int __user *)arg)) { reiserfs_ioctl() 104 err = put_user(inode->i_generation, (int __user *)arg); reiserfs_ioctl() 114 if (get_user(inode->i_generation, (int __user *)arg)) { reiserfs_ioctl() 134 unsigned long arg) reiserfs_compat_ioctl() 160 return reiserfs_ioctl(file, cmd, (unsigned long) compat_ptr(arg)); reiserfs_compat_ioctl() 133 reiserfs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) reiserfs_compat_ioctl() argument
|
/linux-4.1.27/arch/ia64/hp/common/ |
H A D | aml_nfw.c | 49 u64 arg[8]; member in struct:ia64_nfw_context 75 c->arg[0], c->arg[1], c->arg[2], c->arg[3], aml_nfw_execute() 76 c->arg[4], c->arg[5], c->arg[6], c->arg[7]); aml_nfw_execute()
|
/linux-4.1.27/scripts/dtc/ |
H A D | fdtput.c | 65 * @param arg List of arguments from command line 70 static int encode_value(struct display_info *disp, char **arg, int arg_count, encode_value() argument 89 for (; arg_count > 0; arg++, arg_count--, upto += len) { encode_value() 92 len = strlen(*arg) + 1; encode_value() 109 memcpy(ptr, *arg, len); encode_value() 114 sscanf(*arg, fmt, &ival); encode_value() 236 char **arg, int arg_count) do_fdtput() 253 if (disp->auto_path && create_paths(blob, *arg)) do_fdtput() 255 if (encode_value(disp, arg + 2, arg_count - 2, &value, &len) || do_fdtput() 256 store_key_value(blob, *arg, arg[1], value, len)) do_fdtput() 260 for (; ret >= 0 && arg_count--; arg++) { do_fdtput() 262 ret = create_paths(blob, *arg); do_fdtput() 264 ret = create_node(blob, *arg); do_fdtput() 235 do_fdtput(struct display_info *disp, const char *filename, char **arg, int arg_count) do_fdtput() argument
|
/linux-4.1.27/drivers/pinctrl/qcom/ |
H A D | pinctrl-msm.c | 225 unsigned arg; msm_config_group_get() local 237 arg = (val >> bit) & mask; msm_config_group_get() 242 arg = arg == MSM_NO_PULL; msm_config_group_get() 245 arg = arg == MSM_PULL_DOWN; msm_config_group_get() 248 arg = arg == MSM_KEEPER; msm_config_group_get() 251 arg = arg == MSM_PULL_UP; msm_config_group_get() 254 arg = msm_regval_to_drive(arg); msm_config_group_get() 258 if (!arg) msm_config_group_get() 262 arg = !!(val & BIT(g->in_bit)); msm_config_group_get() 266 if (arg) msm_config_group_get() 268 arg = 1; msm_config_group_get() 274 *config = pinconf_to_config_packed(param, arg); msm_config_group_get() 289 unsigned arg; msm_config_group_set() local 299 arg = pinconf_to_config_argument(configs[i]); msm_config_group_set() 308 arg = MSM_NO_PULL; msm_config_group_set() 311 arg = MSM_PULL_DOWN; msm_config_group_set() 314 arg = MSM_KEEPER; msm_config_group_set() 317 arg = MSM_PULL_UP; msm_config_group_set() 321 if (arg > 16 || arg < 2 || (arg % 2) != 0) msm_config_group_set() 322 arg = -1; msm_config_group_set() 324 arg = (arg / 2) - 1; msm_config_group_set() 330 if (arg) msm_config_group_set() 338 arg = 1; msm_config_group_set() 342 arg = 0; msm_config_group_set() 351 if (arg & ~mask) { msm_config_group_set() 352 dev_err(pctrl->dev, "config %x: %x is invalid\n", param, arg); msm_config_group_set() 359 val |= arg << bit; msm_config_group_set()
|
/linux-4.1.27/drivers/net/wireless/ath/ar5523/ |
H A D | ar5523.h | 137 #define ar5523_dbg(ar, format, arg...) \ 138 dev_dbg(&(ar)->dev->dev, format, ## arg) 144 #define ar5523_err(ar, format, arg...) \ 147 dev_err(&(ar)->dev->dev, format, ## arg); \ 150 #define ar5523_info(ar, format, arg...) \ 151 dev_info(&(ar)->dev->dev, format, ## arg)
|
/linux-4.1.27/arch/x86/kernel/ |
H A D | check.c | 28 static __init int set_corruption_check(char *arg) set_corruption_check() argument 33 ret = kstrtoul(arg, 10, &val); set_corruption_check() 42 static __init int set_corruption_check_period(char *arg) set_corruption_check_period() argument 47 ret = kstrtoul(arg, 10, &val); set_corruption_check_period() 56 static __init int set_corruption_check_size(char *arg) set_corruption_check_size() argument 61 size = memparse(arg, &end); set_corruption_check_size()
|
/linux-4.1.27/drivers/watchdog/ |
H A D | ixp4xx_wdt.c | 102 unsigned long arg) ixp4xx_wdt_ioctl() 109 ret = copy_to_user((struct watchdog_info *)arg, &ident, ixp4xx_wdt_ioctl() 114 ret = put_user(0, (int *)arg); ixp4xx_wdt_ioctl() 118 ret = put_user(boot_status, (int *)arg); ixp4xx_wdt_ioctl() 127 ret = get_user(time, (int *)arg); ixp4xx_wdt_ioctl() 141 ret = put_user(heartbeat, (int *)arg); ixp4xx_wdt_ioctl() 101 ixp4xx_wdt_ioctl(struct file *file, unsigned int cmd, unsigned long arg) ixp4xx_wdt_ioctl() argument
|
/linux-4.1.27/sound/firewire/bebob/ |
H A D | bebob_hwdep.c | 75 hwdep_get_info(struct snd_bebob *bebob, void __user *arg) hwdep_get_info() argument 88 if (copy_to_user(arg, &info, sizeof(info))) hwdep_get_info() 147 unsigned int cmd, unsigned long arg) hwdep_ioctl() 153 return hwdep_get_info(bebob, (void __user *)arg); hwdep_ioctl() 166 unsigned int cmd, unsigned long arg) hwdep_compat_ioctl() 169 (unsigned long)compat_ptr(arg)); hwdep_compat_ioctl() 146 hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file, unsigned int cmd, unsigned long arg) hwdep_ioctl() argument 165 hwdep_compat_ioctl(struct snd_hwdep *hwdep, struct file *file, unsigned int cmd, unsigned long arg) hwdep_compat_ioctl() argument
|
/linux-4.1.27/sound/firewire/dice/ |
H A D | dice-hwdep.c | 73 static int hwdep_get_info(struct snd_dice *dice, void __user *arg) hwdep_get_info() argument 86 if (copy_to_user(arg, &info, sizeof(info))) hwdep_get_info() 141 unsigned int cmd, unsigned long arg) hwdep_ioctl() 147 return hwdep_get_info(dice, (void __user *)arg); hwdep_ioctl() 159 unsigned int cmd, unsigned long arg) hwdep_compat_ioctl() 162 (unsigned long)compat_ptr(arg)); hwdep_compat_ioctl() 140 hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file, unsigned int cmd, unsigned long arg) hwdep_ioctl() argument 158 hwdep_compat_ioctl(struct snd_hwdep *hwdep, struct file *file, unsigned int cmd, unsigned long arg) hwdep_compat_ioctl() argument
|
/linux-4.1.27/sound/firewire/oxfw/ |
H A D | oxfw-hwdep.c | 73 static int hwdep_get_info(struct snd_oxfw *oxfw, void __user *arg) hwdep_get_info() argument 86 if (copy_to_user(arg, &info, sizeof(info))) hwdep_get_info() 141 unsigned int cmd, unsigned long arg) hwdep_ioctl() 147 return hwdep_get_info(oxfw, (void __user *)arg); hwdep_ioctl() 159 unsigned int cmd, unsigned long arg) hwdep_compat_ioctl() 162 (unsigned long)compat_ptr(arg)); hwdep_compat_ioctl() 140 hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file, unsigned int cmd, unsigned long arg) hwdep_ioctl() argument 158 hwdep_compat_ioctl(struct snd_hwdep *hwdep, struct file *file, unsigned int cmd, unsigned long arg) hwdep_compat_ioctl() argument
|
/linux-4.1.27/drivers/xen/xenbus/ |
H A D | xenbus_dev_backend.c | 33 struct evtchn_alloc_unbound arg; xenbus_alloc() local 54 arg.dom = DOMID_SELF; xenbus_alloc() 55 arg.remote_dom = domid; xenbus_alloc() 57 err = HYPERVISOR_event_channel_op(EVTCHNOP_alloc_unbound, &arg); xenbus_alloc() 64 xen_store_evtchn = arg.port; xenbus_alloc() 68 return arg.port; xenbus_alloc()
|
/linux-4.1.27/drivers/gpu/drm/r128/ |
H A D | r128_ioc32.c | 63 unsigned long arg) compat_r128_init() 68 if (copy_from_user(&init32, (void __user *)arg, sizeof(init32))) compat_r128_init() 111 unsigned long arg) compat_r128_depth() 116 if (copy_from_user(&depth32, (void __user *)arg, sizeof(depth32))) compat_r128_depth() 140 unsigned long arg) compat_r128_stipple() 145 if (copy_from_user(&stipple32, (void __user *)arg, sizeof(stipple32))) compat_r128_stipple() 163 unsigned long arg) compat_r128_getparam() 168 if (copy_from_user(&getparam32, (void __user *)arg, sizeof(getparam32))) compat_r128_getparam() 194 * \param arg user argument. 197 long r128_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) r128_compat_ioctl() argument 204 return drm_compat_ioctl(filp, cmd, arg); r128_compat_ioctl() 210 ret = (*fn) (filp, cmd, arg); r128_compat_ioctl() 212 ret = drm_ioctl(filp, cmd, arg); r128_compat_ioctl() 62 compat_r128_init(struct file *file, unsigned int cmd, unsigned long arg) compat_r128_init() argument 110 compat_r128_depth(struct file *file, unsigned int cmd, unsigned long arg) compat_r128_depth() argument 139 compat_r128_stipple(struct file *file, unsigned int cmd, unsigned long arg) compat_r128_stipple() argument 162 compat_r128_getparam(struct file *file, unsigned int cmd, unsigned long arg) compat_r128_getparam() argument
|
/linux-4.1.27/kernel/power/ |
H A D | user.c | 198 unsigned long arg) snapshot_ioctl() 258 error = put_user(in_suspend, (int __user *)arg); snapshot_ioctl() 290 image_size = arg; snapshot_ioctl() 300 error = put_user(size, (loff_t __user *)arg); snapshot_ioctl() 306 error = put_user(size, (loff_t __user *)arg); snapshot_ioctl() 317 error = put_user(offset, (loff_t __user *)arg); snapshot_ioctl() 345 data->platform_support = !!arg; snapshot_ioctl() 360 error = copy_from_user(&swap_area, (void __user *)arg, snapshot_ioctl() 403 snapshot_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) snapshot_compat_ioctl() argument 411 compat_loff_t __user *uoffset = compat_ptr(arg); snapshot_compat_ioctl() 427 (unsigned long) compat_ptr(arg)); snapshot_compat_ioctl() 431 compat_ptr(arg); snapshot_compat_ioctl() 449 return snapshot_ioctl(file, cmd, arg); snapshot_compat_ioctl() 197 snapshot_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) snapshot_ioctl() argument
|
/linux-4.1.27/drivers/isdn/gigaset/ |
H A D | interface.c | 21 static int if_lock(struct cardstate *cs, int *arg) if_lock() argument 23 int cmd = *arg; if_lock() 31 *arg = cs->mstate == MS_LOCKED; if_lock() 53 *arg = cs->cmd_result; if_lock() 60 static int if_version(struct cardstate *cs, unsigned arg[4]) if_version() argument 64 unsigned cmd = arg[0]; if_version() 70 memcpy(arg, version, sizeof version); if_version() 73 memcpy(arg, compat, sizeof compat); if_version() 78 NULL, 0, arg)) { if_version() 95 static int if_config(struct cardstate *cs, int *arg) if_config() argument 97 gig_dbg(DEBUG_IF, "%u: if_config (%d)", cs->minor_index, *arg); if_config() 99 if (*arg != 1) if_config() 110 *arg = 0; if_config() 170 unsigned int cmd, unsigned long arg) if_ioctl() 190 retval = get_user(int_arg, (int __user *) arg); if_ioctl() 194 retval = put_user(int_arg, (int __user *) arg); if_ioctl() 197 retval = get_user(int_arg, (int __user *) arg); if_ioctl() 201 retval = put_user(int_arg, (int __user *) arg); if_ioctl() 205 (const unsigned char __user *) arg, 6) if_ioctl() 209 6, (const unsigned char *) arg); if_ioctl() 215 (unsigned __user *) arg, sizeof version) if_ioctl() 220 retval = copy_to_user((unsigned __user *) arg, if_ioctl() 225 gig_dbg(DEBUG_IF, "%s: arg not supported - 0x%04x", if_ioctl() 169 if_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) if_ioctl() argument
|
/linux-4.1.27/drivers/tty/vt/ |
H A D | vt_ioctl.c | 160 * @arg: argument to ioctl 335 unsigned int cmd, unsigned long arg) vt_ioctl() 342 void __user *up = (void __user *)arg; vt_ioctl() 365 ret = tioclinux(tty, arg); vt_ioctl() 376 if (arg) vt_ioctl() 377 arg = PIT_TICK_RATE / arg; vt_ioctl() 378 kd_mksound(arg, 0); vt_ioctl() 391 ticks = msecs_to_jiffies((arg >> 16) & 0xffff); vt_ioctl() 392 count = ticks ? (arg & 0xffff) : 0; vt_ioctl() 404 ret = put_user(ucval, (char __user *)arg); vt_ioctl() 422 if (arg < GPFIRST || arg > GPLAST) { vt_ioctl() 426 ret = sys_ioperm(arg, 1, (cmd == KDADDIO)) ? -ENXIO : 0; vt_ioctl() 468 switch (arg) { vt_ioctl() 473 arg = KD_TEXT; vt_ioctl() 481 if (vc->vc_mode == (unsigned char) arg) vt_ioctl() 483 vc->vc_mode = (unsigned char) arg; vt_ioctl() 490 if (arg == KD_TEXT) vt_ioctl() 513 ret = vt_do_kdskbmode(console, arg); vt_ioctl() 520 ret = put_user(uival, (int __user *)arg); vt_ioctl() 526 ret = vt_do_kdskbmeta(console, arg); vt_ioctl() 533 ret = put_user(uival, (int __user *)arg); vt_ioctl() 568 ret = vt_do_kdskled(console, cmd, arg, perm); vt_ioctl() 582 if (!valid_signal(arg) || arg < 1 || arg == SIGKILL) vt_ioctl() 588 vt_spawn_con.sig = arg; vt_ioctl() 678 if (arg == 0 || arg > MAX_NR_CONSOLES) vt_ioctl() 681 arg--; vt_ioctl() 683 ret = vc_allocate(arg); vt_ioctl() 687 set_console(arg); vt_ioctl() 698 if (copy_from_user(&vsa, (struct vt_setactivate __user *)arg, vt_ioctl() 736 if (arg == 0 || arg > MAX_NR_CONSOLES) vt_ioctl() 739 ret = vt_waitactive(arg); vt_ioctl() 766 if (arg == 0) vt_ioctl() 800 if (arg != VT_ACKACQ) vt_ioctl() 810 if (arg > MAX_NR_CONSOLES) { vt_ioctl() 814 if (arg == 0) vt_ioctl() 817 ret = vt_disallocate(--arg); vt_ioctl() 1037 (unsigned short __user *)arg); vt_ioctl() 1040 ret = vt_event_wait_ioctl((struct vt_event __user *)arg); vt_ioctl() 1197 unsigned int cmd, unsigned long arg) vt_compat_ioctl() 1202 void __user *up = (void __user *)arg; vt_compat_ioctl() 1240 * all these treat 'arg' as an integer vt_compat_ioctl() 1265 * the rest has a compatible data structure behind arg, vt_compat_ioctl() 1269 arg = (unsigned long)compat_ptr(arg); vt_compat_ioctl() 1276 return vt_ioctl(tty, cmd, arg); vt_compat_ioctl() 334 vt_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) vt_ioctl() argument 1196 vt_compat_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) vt_compat_ioctl() argument
|
/linux-4.1.27/drivers/scsi/lpfc/ |
H A D | lpfc_nportdisc.c | 813 void *arg, uint32_t evt) lpfc_disc_illegal() 816 LPFC_MBOXQ_t *pmb = (LPFC_MBOXQ_t *) arg; lpfc_disc_illegal() 839 void *arg, uint32_t evt) lpfc_cmpl_plogi_illegal() 860 void *arg, uint32_t evt) lpfc_rcv_plogi_unused_node() 864 cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_plogi_unused_node() 874 void *arg, uint32_t evt) lpfc_rcv_els_unused_node() 882 void *arg, uint32_t evt) lpfc_rcv_logo_unused_node() 885 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_logo_unused_node() 897 void *arg, uint32_t evt) lpfc_cmpl_logo_unused_node() 904 void *arg, uint32_t evt) lpfc_device_rm_unused_node() 912 void *arg, uint32_t evt) lpfc_device_recov_unused_node() 919 void *arg, uint32_t evt) lpfc_rcv_plogi_plogi_issue() 923 struct lpfc_iocbq *cmdiocb = arg; lpfc_rcv_plogi_plogi_issue() 970 void *arg, uint32_t evt) lpfc_rcv_prli_plogi_issue() 972 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_prli_plogi_issue() 984 void *arg, uint32_t evt) lpfc_rcv_logo_plogi_issue() 986 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_logo_plogi_issue() 997 void *arg, uint32_t evt) lpfc_rcv_els_plogi_issue() 1001 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_els_plogi_issue() 1027 void *arg, lpfc_cmpl_plogi_plogi_issue() 1039 cmdiocb = (struct lpfc_iocbq *) arg; lpfc_cmpl_plogi_plogi_issue() 1175 void *arg, uint32_t evt) lpfc_cmpl_logo_plogi_issue() 1182 struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_cmpl_reglogin_plogi_issue() 1185 LPFC_MBOXQ_t *pmb = (LPFC_MBOXQ_t *) arg; lpfc_cmpl_reglogin_plogi_issue() 1201 void *arg, uint32_t evt) lpfc_device_rm_plogi_issue() 1222 void *arg, lpfc_device_recov_plogi_issue() 1248 void *arg, uint32_t evt) lpfc_rcv_plogi_adisc_issue() 1257 cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_plogi_adisc_issue() 1278 void *arg, uint32_t evt) lpfc_rcv_prli_adisc_issue() 1280 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_prli_adisc_issue() 1288 void *arg, uint32_t evt) lpfc_rcv_logo_adisc_issue() 1293 cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_logo_adisc_issue() 1305 void *arg, uint32_t evt) lpfc_rcv_padisc_adisc_issue() 1309 cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_padisc_adisc_issue() 1317 void *arg, uint32_t evt) lpfc_rcv_prlo_adisc_issue() 1321 cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_prlo_adisc_issue() 1331 void *arg, uint32_t evt) lpfc_cmpl_adisc_adisc_issue() 1340 cmdiocb = (struct lpfc_iocbq *) arg; lpfc_cmpl_adisc_adisc_issue() 1387 void *arg, uint32_t evt) lpfc_device_rm_adisc_issue() 1408 void *arg, lpfc_device_recov_adisc_issue() 1435 void *arg, lpfc_rcv_plogi_reglogin_issue() 1438 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_plogi_reglogin_issue() 1447 void *arg, lpfc_rcv_prli_reglogin_issue() 1450 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_prli_reglogin_issue() 1459 void *arg, lpfc_rcv_logo_reglogin_issue() 1463 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_logo_reglogin_issue() 1468 cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_logo_reglogin_issue() 1504 void *arg, lpfc_rcv_padisc_reglogin_issue() 1507 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_padisc_reglogin_issue() 1516 void *arg, lpfc_rcv_prlo_reglogin_issue() 1521 cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_prlo_reglogin_issue() 1529 void *arg, lpfc_cmpl_reglogin_reglogin_issue() 1533 LPFC_MBOXQ_t *pmb = (LPFC_MBOXQ_t *) arg; lpfc_cmpl_reglogin_reglogin_issue() 1590 void *arg, lpfc_device_rm_reglogin_issue() 1609 void *arg, lpfc_device_recov_reglogin_issue() 1632 void *arg, uint32_t evt) lpfc_rcv_plogi_prli_issue() 1636 cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_plogi_prli_issue() 1644 void *arg, uint32_t evt) lpfc_rcv_prli_prli_issue() 1646 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_prli_prli_issue() 1654 void *arg, uint32_t evt) lpfc_rcv_logo_prli_issue() 1656 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_logo_prli_issue() 1667 void *arg, uint32_t evt) lpfc_rcv_padisc_prli_issue() 1669 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_padisc_prli_issue() 1682 void *arg, uint32_t evt) lpfc_rcv_prlo_prli_issue() 1684 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_prlo_prli_issue() 1692 void *arg, uint32_t evt) lpfc_cmpl_prli_prli_issue() 1700 cmdiocb = (struct lpfc_iocbq *) arg; lpfc_cmpl_prli_prli_issue() 1759 * \param arg 1773 void *arg, uint32_t evt) lpfc_device_rm_prli_issue() 1798 * \param arg 1811 void *arg, lpfc_device_recov_prli_issue() 1837 void *arg, uint32_t evt) lpfc_rcv_plogi_logo_issue() 1839 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *)arg; lpfc_rcv_plogi_logo_issue() 1851 void *arg, uint32_t evt) lpfc_rcv_prli_logo_issue() 1853 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *)arg; lpfc_rcv_prli_logo_issue() 1865 void *arg, uint32_t evt) lpfc_rcv_logo_logo_issue() 1868 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *)arg; lpfc_rcv_logo_logo_issue() 1879 void *arg, uint32_t evt) lpfc_rcv_padisc_logo_issue() 1881 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *)arg; lpfc_rcv_padisc_logo_issue() 1893 void *arg, uint32_t evt) lpfc_rcv_prlo_logo_issue() 1895 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *)arg; lpfc_rcv_prlo_logo_issue() 1907 void *arg, uint32_t evt) lpfc_cmpl_logo_logo_issue() 1922 void *arg, uint32_t evt) lpfc_device_rm_logo_issue() 1936 void *arg, uint32_t evt) lpfc_device_recov_logo_issue() 1948 void *arg, uint32_t evt) lpfc_rcv_plogi_unmap_node() 1950 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_plogi_unmap_node() 1958 void *arg, uint32_t evt) lpfc_rcv_prli_unmap_node() 1960 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_prli_unmap_node() 1969 void *arg, uint32_t evt) lpfc_rcv_logo_unmap_node() 1971 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_logo_unmap_node() 1979 void *arg, uint32_t evt) lpfc_rcv_padisc_unmap_node() 1981 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_padisc_unmap_node() 1989 void *arg, uint32_t evt) lpfc_rcv_prlo_unmap_node() 1991 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_prlo_unmap_node() 2000 void *arg, lpfc_device_recov_unmap_node() 2017 void *arg, uint32_t evt) lpfc_rcv_plogi_mapped_node() 2019 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_plogi_mapped_node() 2027 void *arg, uint32_t evt) lpfc_rcv_prli_mapped_node() 2029 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_prli_mapped_node() 2037 void *arg, uint32_t evt) lpfc_rcv_logo_mapped_node() 2039 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_logo_mapped_node() 2048 void *arg, uint32_t evt) lpfc_rcv_padisc_mapped_node() 2050 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_padisc_mapped_node() 2058 void *arg, uint32_t evt) lpfc_rcv_prlo_mapped_node() 2061 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_prlo_mapped_node() 2075 void *arg, lpfc_device_recov_mapped_node() 2091 void *arg, uint32_t evt) lpfc_rcv_plogi_npr_node() 2094 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_plogi_npr_node() 2117 void *arg, uint32_t evt) lpfc_rcv_prli_npr_node() 2120 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_prli_npr_node() 2147 void *arg, uint32_t evt) lpfc_rcv_logo_npr_node() 2149 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_logo_npr_node() 2157 void *arg, uint32_t evt) lpfc_rcv_padisc_npr_node() 2159 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_padisc_npr_node() 2185 void *arg, uint32_t evt) lpfc_rcv_prlo_npr_node() 2188 struct lpfc_iocbq *cmdiocb = (struct lpfc_iocbq *) arg; lpfc_rcv_prlo_npr_node() 2214 void *arg, uint32_t evt) lpfc_cmpl_plogi_npr_node() 2220 cmdiocb = (struct lpfc_iocbq *) arg; lpfc_cmpl_plogi_npr_node() 2235 void *arg, uint32_t evt) lpfc_cmpl_prli_npr_node() 2240 cmdiocb = (struct lpfc_iocbq *) arg; lpfc_cmpl_prli_npr_node() 2253 void *arg, uint32_t evt) lpfc_cmpl_logo_npr_node() 2269 void *arg, uint32_t evt) lpfc_cmpl_adisc_npr_node() 2274 cmdiocb = (struct lpfc_iocbq *) arg; lpfc_cmpl_adisc_npr_node() 2288 void *arg, uint32_t evt) lpfc_cmpl_reglogin_npr_node() 2290 LPFC_MBOXQ_t *pmb = (LPFC_MBOXQ_t *) arg; lpfc_cmpl_reglogin_npr_node() 2309 void *arg, uint32_t evt) lpfc_device_rm_npr_node() 2325 void *arg, uint32_t evt) lpfc_device_recov_npr_node() 2531 void *arg, uint32_t evt) lpfc_disc_state_machine() 2554 rc = (func) (vport, ndlp, arg, evt); lpfc_disc_state_machine() 812 lpfc_disc_illegal(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_disc_illegal() argument 838 lpfc_cmpl_plogi_illegal(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_cmpl_plogi_illegal() argument 859 lpfc_rcv_plogi_unused_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_plogi_unused_node() argument 873 lpfc_rcv_els_unused_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_els_unused_node() argument 881 lpfc_rcv_logo_unused_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_logo_unused_node() argument 896 lpfc_cmpl_logo_unused_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_cmpl_logo_unused_node() argument 903 lpfc_device_rm_unused_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_device_rm_unused_node() argument 910 lpfc_device_recov_unused_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_device_recov_unused_node() argument 918 lpfc_rcv_plogi_plogi_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_plogi_plogi_issue() argument 969 lpfc_rcv_prli_plogi_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_prli_plogi_issue() argument 983 lpfc_rcv_logo_plogi_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_logo_plogi_issue() argument 996 lpfc_rcv_els_plogi_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_els_plogi_issue() argument 1025 lpfc_cmpl_plogi_plogi_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_cmpl_plogi_plogi_issue() argument 1174 lpfc_cmpl_logo_plogi_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_cmpl_logo_plogi_issue() argument 1181 lpfc_cmpl_reglogin_plogi_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_cmpl_reglogin_plogi_issue() argument 1200 lpfc_device_rm_plogi_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_device_rm_plogi_issue() argument 1220 lpfc_device_recov_plogi_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_device_recov_plogi_issue() argument 1247 lpfc_rcv_plogi_adisc_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_plogi_adisc_issue() argument 1277 lpfc_rcv_prli_adisc_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_prli_adisc_issue() argument 1287 lpfc_rcv_logo_adisc_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_logo_adisc_issue() argument 1303 lpfc_rcv_padisc_adisc_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_padisc_adisc_issue() argument 1316 lpfc_rcv_prlo_adisc_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_prlo_adisc_issue() argument 1329 lpfc_cmpl_adisc_adisc_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_cmpl_adisc_adisc_issue() argument 1386 lpfc_device_rm_adisc_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_device_rm_adisc_issue() argument 1406 lpfc_device_recov_adisc_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_device_recov_adisc_issue() argument 1433 lpfc_rcv_plogi_reglogin_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_plogi_reglogin_issue() argument 1445 lpfc_rcv_prli_reglogin_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_prli_reglogin_issue() argument 1457 lpfc_rcv_logo_reglogin_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_logo_reglogin_issue() argument 1502 lpfc_rcv_padisc_reglogin_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_padisc_reglogin_issue() argument 1514 lpfc_rcv_prlo_reglogin_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_prlo_reglogin_issue() argument 1527 lpfc_cmpl_reglogin_reglogin_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_cmpl_reglogin_reglogin_issue() argument 1588 lpfc_device_rm_reglogin_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_device_rm_reglogin_issue() argument 1607 lpfc_device_recov_reglogin_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_device_recov_reglogin_issue() argument 1631 lpfc_rcv_plogi_prli_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_plogi_prli_issue() argument 1643 lpfc_rcv_prli_prli_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_prli_prli_issue() argument 1653 lpfc_rcv_logo_prli_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_logo_prli_issue() argument 1666 lpfc_rcv_padisc_prli_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_padisc_prli_issue() argument 1681 lpfc_rcv_prlo_prli_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_prlo_prli_issue() argument 1691 lpfc_cmpl_prli_prli_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_cmpl_prli_prli_issue() argument 1772 lpfc_device_rm_prli_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_device_rm_prli_issue() argument 1809 lpfc_device_recov_prli_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_device_recov_prli_issue() argument 1836 lpfc_rcv_plogi_logo_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_plogi_logo_issue() argument 1850 lpfc_rcv_prli_logo_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_prli_logo_issue() argument 1864 lpfc_rcv_logo_logo_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_logo_logo_issue() argument 1878 lpfc_rcv_padisc_logo_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_padisc_logo_issue() argument 1892 lpfc_rcv_prlo_logo_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_prlo_logo_issue() argument 1906 lpfc_cmpl_logo_logo_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_cmpl_logo_logo_issue() argument 1921 lpfc_device_rm_logo_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_device_rm_logo_issue() argument 1934 lpfc_device_recov_logo_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_device_recov_logo_issue() argument 1947 lpfc_rcv_plogi_unmap_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_plogi_unmap_node() argument 1957 lpfc_rcv_prli_unmap_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_prli_unmap_node() argument 1968 lpfc_rcv_logo_unmap_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_logo_unmap_node() argument 1978 lpfc_rcv_padisc_unmap_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_padisc_unmap_node() argument 1988 lpfc_rcv_prlo_unmap_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_prlo_unmap_node() argument 1998 lpfc_device_recov_unmap_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_device_recov_unmap_node() argument 2016 lpfc_rcv_plogi_mapped_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_plogi_mapped_node() argument 2026 lpfc_rcv_prli_mapped_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_prli_mapped_node() argument 2036 lpfc_rcv_logo_mapped_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_logo_mapped_node() argument 2046 lpfc_rcv_padisc_mapped_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_padisc_mapped_node() argument 2057 lpfc_rcv_prlo_mapped_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_prlo_mapped_node() argument 2073 lpfc_device_recov_mapped_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_device_recov_mapped_node() argument 2090 lpfc_rcv_plogi_npr_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_plogi_npr_node() argument 2116 lpfc_rcv_prli_npr_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_prli_npr_node() argument 2146 lpfc_rcv_logo_npr_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_logo_npr_node() argument 2156 lpfc_rcv_padisc_npr_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_padisc_npr_node() argument 2184 lpfc_rcv_prlo_npr_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_rcv_prlo_npr_node() argument 2213 lpfc_cmpl_plogi_npr_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_cmpl_plogi_npr_node() argument 2234 lpfc_cmpl_prli_npr_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_cmpl_prli_npr_node() argument 2252 lpfc_cmpl_logo_npr_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_cmpl_logo_npr_node() argument 2268 lpfc_cmpl_adisc_npr_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_cmpl_adisc_npr_node() argument 2286 lpfc_cmpl_reglogin_npr_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_cmpl_reglogin_npr_node() argument 2308 lpfc_device_rm_npr_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_device_rm_npr_node() argument 2324 lpfc_device_recov_npr_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_device_recov_npr_node() argument 2530 lpfc_disc_state_machine(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, void *arg, uint32_t evt) lpfc_disc_state_machine() argument
|
H A D | lpfc_logmsg.h | 43 #define lpfc_printf_vlog(vport, level, mask, fmt, arg...) \ 47 fmt, (vport)->phba->brd_no, vport->vpi, ##arg); } \ 50 #define lpfc_printf_log(phba, level, mask, fmt, arg...) \ 57 fmt, phba->brd_no, ##arg); \
|
/linux-4.1.27/drivers/staging/android/ |
H A D | sw_sync.c | 165 unsigned long arg) sw_sync_ioctl_create_fence() 176 if (copy_from_user(&data, (void __user *)arg, sizeof(data))) { sw_sync_ioctl_create_fence() 196 if (copy_to_user((void __user *)arg, &data, sizeof(data))) { sw_sync_ioctl_create_fence() 211 static long sw_sync_ioctl_inc(struct sw_sync_timeline *obj, unsigned long arg) sw_sync_ioctl_inc() argument 215 if (copy_from_user(&value, (void __user *)arg, sizeof(value))) sw_sync_ioctl_inc() 224 unsigned long arg) sw_sync_ioctl() 230 return sw_sync_ioctl_create_fence(obj, arg); sw_sync_ioctl() 233 return sw_sync_ioctl_inc(obj, arg); sw_sync_ioctl() 164 sw_sync_ioctl_create_fence(struct sw_sync_timeline *obj, unsigned long arg) sw_sync_ioctl_create_fence() argument 223 sw_sync_ioctl(struct file *file, unsigned int cmd, unsigned long arg) sw_sync_ioctl() argument
|
/linux-4.1.27/drivers/infiniband/ulp/isert/ |
H A D | ib_isert.h | 10 #define isert_dbg(fmt, arg...) \ 14 __func__ , ## arg); \ 17 #define isert_warn(fmt, arg...) \ 21 __func__ , ## arg); \ 24 #define isert_info(fmt, arg...) \ 28 __func__ , ## arg); \ 31 #define isert_err(fmt, arg...) \ 32 pr_err(PFX "%s: " fmt, __func__ , ## arg)
|
/linux-4.1.27/arch/um/os-Linux/ |
H A D | tty.c | 19 static void grantpt_cb(void *arg) grantpt_cb() argument 21 struct grantpt_info *info = arg; grantpt_cb()
|
/linux-4.1.27/drivers/char/ipmi/ |
H A D | ipmi_devintf.c | 240 void __user *arg = (void __user *)data; ipmi_ioctl() local 248 if (copy_from_user(&req, arg, sizeof(req))) { ipmi_ioctl() 264 if (copy_from_user(&req, arg, sizeof(req))) { ipmi_ioctl() 287 if (copy_from_user(&rsp, arg, sizeof(rsp))) { ipmi_ioctl() 354 if (copy_to_user(arg, &rsp, sizeof(rsp))) { ipmi_ioctl() 381 if (copy_from_user(&val, arg, sizeof(val))) { ipmi_ioctl() 395 if (copy_from_user(&val, arg, sizeof(val))) { ipmi_ioctl() 409 if (copy_from_user(&val, arg, sizeof(val))) { ipmi_ioctl() 423 if (copy_from_user(&val, arg, sizeof(val))) { ipmi_ioctl() 437 if (copy_from_user(&val, arg, sizeof(val))) { ipmi_ioctl() 451 if (copy_from_user(&val, arg, sizeof(val))) { ipmi_ioctl() 471 if (copy_to_user(arg, &val, sizeof(val))) { ipmi_ioctl() 482 if (copy_from_user(&val, arg, sizeof(val))) { ipmi_ioctl() 502 if (copy_to_user(arg, &val, sizeof(val))) { ipmi_ioctl() 513 if (copy_from_user(&val, arg, sizeof(val))) { ipmi_ioctl() 526 if (copy_from_user(&val, arg, sizeof(val))) { ipmi_ioctl() 535 if (copy_to_user(arg, &val, sizeof(val))) { ipmi_ioctl() 546 if (copy_from_user(&val, arg, sizeof(val))) { ipmi_ioctl() 559 if (copy_from_user(&val, arg, sizeof(val))) { ipmi_ioctl() 568 if (copy_to_user(arg, &val, sizeof(val))) { ipmi_ioctl() 579 if (copy_from_user(&parms, arg, sizeof(parms))) { ipmi_ioctl() 597 if (copy_to_user(arg, &parms, sizeof(parms))) { ipmi_ioctl() 611 if (copy_to_user(arg, &mode, sizeof(mode))) { ipmi_ioctl() 623 if (copy_from_user(&mode, arg, sizeof(mode))) { ipmi_ioctl() 784 unsigned long arg) compat_ipmi_ioctl() 794 if (get_compat_ipmi_req(&rp, compat_ptr(arg))) compat_ipmi_ioctl() 805 if (get_compat_ipmi_req_settime(&sp, compat_ptr(arg))) compat_ipmi_ioctl() 818 if (get_compat_ipmi_recv(&recv64, compat_ptr(arg))) compat_ipmi_ioctl() 836 if (put_compat_ipmi_recv(&recv64, compat_ptr(arg))) compat_ipmi_ioctl() 842 return ipmi_ioctl(filep, cmd, arg); compat_ipmi_ioctl() 847 unsigned long arg) unlocked_compat_ipmi_ioctl() 852 ret = compat_ipmi_ioctl(filep, cmd, arg); unlocked_compat_ipmi_ioctl() 783 compat_ipmi_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) compat_ipmi_ioctl() argument 846 unlocked_compat_ipmi_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) unlocked_compat_ipmi_ioctl() argument
|
/linux-4.1.27/drivers/char/ |
H A D | uv_mmtimer.c | 42 unsigned long arg); 61 * @arg: optional argument to command 75 * specified by @arg 82 * in the address specified by @arg. 85 unsigned long arg) uv_mmtimer_ioctl() 106 if (copy_to_user((unsigned long __user *)arg, uv_mmtimer_ioctl() 112 if (copy_to_user((unsigned long __user *)arg, uv_mmtimer_ioctl() 127 if (copy_to_user((unsigned long __user *)arg, uv_mmtimer_ioctl() 84 uv_mmtimer_ioctl(struct file *file, unsigned int cmd, unsigned long arg) uv_mmtimer_ioctl() argument
|
/linux-4.1.27/include/trace/events/ |
H A D | context_tracking.h | 28 * @dummy: dummy arg to make trace event macro happy 42 * @dummy: dummy arg to make trace event macro happy
|
/linux-4.1.27/include/uapi/linux/ |
H A D | gigaset_dev.h | 31 /* get version information selected by arg[0] */ 33 /* values for GIGASET_VERSION arg[0] */
|
/linux-4.1.27/arch/arm/mach-shmobile/ |
H A D | platsmp.c | 22 void shmobile_smp_hook(unsigned int cpu, unsigned long fn, unsigned long arg) shmobile_smp_hook() argument 29 shmobile_smp_arg[cpu] = arg; shmobile_smp_hook()
|
/linux-4.1.27/tools/perf/arch/x86/util/ |
H A D | unwind-libdw.c | 5 bool libdw__arch_set_initial_registers(Dwfl_Thread *thread, void *arg) libdw__arch_set_initial_registers() argument 7 struct unwind_info *ui = arg; libdw__arch_set_initial_registers()
|
/linux-4.1.27/include/asm-generic/ |
H A D | bug.h | 74 #define __WARN_printf(arg...) warn_slowpath_fmt(__FILE__, __LINE__, arg) 75 #define __WARN_printf_taint(taint, arg...) \ 76 warn_slowpath_fmt_taint(__FILE__, __LINE__, taint, arg) 79 #define __WARN_printf(arg...) do { printk(arg); __WARN(); } while (0) 80 #define __WARN_printf_taint(taint, arg...) \ 81 do { printk(arg); __WARN_TAINT(taint); } while (0)
|
/linux-4.1.27/drivers/net/ethernet/intel/e1000/ |
H A D | e1000.h | 338 #define e_dbg(format, arg...) \ 339 netdev_dbg(e1000_get_hw_dev(hw), format, ## arg) 340 #define e_err(msglvl, format, arg...) \ 341 netif_err(adapter, msglvl, adapter->netdev, format, ## arg) 342 #define e_info(msglvl, format, arg...) \ 343 netif_info(adapter, msglvl, adapter->netdev, format, ## arg) 344 #define e_warn(msglvl, format, arg...) \ 345 netif_warn(adapter, msglvl, adapter->netdev, format, ## arg) 346 #define e_notice(msglvl, format, arg...) \ 347 netif_notice(adapter, msglvl, adapter->netdev, format, ## arg) 348 #define e_dev_info(format, arg...) \ 349 dev_info(&adapter->pdev->dev, format, ## arg) 350 #define e_dev_warn(format, arg...) \ 351 dev_warn(&adapter->pdev->dev, format, ## arg) 352 #define e_dev_err(format, arg...) \ 353 dev_err(&adapter->pdev->dev, format, ## arg)
|
/linux-4.1.27/drivers/edac/ |
H A D | mv64x60_edac.h | 18 #define mv64x60_printk(level, fmt, arg...) \ 19 edac_printk(level, "MV64x60", fmt, ##arg) 21 #define mv64x60_mc_printk(mci, level, fmt, arg...) \ 22 edac_mc_chipset_printk(mci, level, "MV64x60", fmt, ##arg)
|
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/ |
H A D | vmap.h | 15 s32 arg[6]; member in struct:nvbios_vmap_entry
|
/linux-4.1.27/fs/jffs2/ |
H A D | ioctl.c | 16 long jffs2_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) jffs2_ioctl() argument
|
/linux-4.1.27/arch/arm64/include/asm/ |
H A D | suspend.h | 24 extern int cpu_suspend(unsigned long arg, int (*fn)(unsigned long));
|
/linux-4.1.27/arch/ia64/include/asm/ |
H A D | meminit.h | 37 extern int filter_rsvd_memory (u64 start, u64 end, void *arg); 38 extern int filter_memory (u64 start, u64 end, void *arg); 65 extern int find_largest_hole(u64 start, u64 end, void *arg); 66 extern int create_mem_map_page_table(u64 start, u64 end, void *arg);
|
/linux-4.1.27/include/drm/ |
H A D | drm_fb_cma_helper.h | 27 int drm_fb_cma_debugfs_show(struct seq_file *m, void *arg);
|