Lines Matching defs:arg
1085 static int nbd_add_socket(struct nbd_device *nbd, unsigned long arg,
1094 sock = nbd_get_socket(nbd, arg, &err);
1152 static int nbd_reconnect_socket(struct nbd_device *nbd, unsigned long arg)
1160 sock = nbd_get_socket(nbd, arg, &err);
1450 unsigned int cmd, unsigned long arg)
1462 return nbd_add_socket(nbd, arg, false);
1464 if (!arg)
1465 arg = NBD_DEF_BLKSIZE;
1466 if (!nbd_is_valid_blksize(arg))
1468 nbd_size_set(nbd, arg,
1469 div_s64(config->bytesize, arg));
1473 div_s64(arg, config->blksize));
1476 if (check_mul_overflow((loff_t)arg, config->blksize, &bytesize))
1478 nbd_size_set(nbd, config->blksize, arg);
1481 nbd_set_cmd_timeout(nbd, arg);
1485 config->flags = arg;
1506 unsigned int cmd, unsigned long arg)
1528 error = __nbd_ioctl(bdev, nbd, cmd, arg);