Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 10 files:
- drivers/block/xen-blkfront.c, line 738
- drivers/net/xen-netfront.c
- drivers/scsi/xen-scsifront.c, line 504
- drivers/tty/hvc/hvc_xen.c, line 468
- drivers/usb/host/xen-hcd.c, line 666
- drivers/xen/gntdev-dmabuf.c, line 485
- drivers/xen/grant-table.c, line 660
- drivers/xen/pvcalls-front.c, line 1280
- drivers/xen/xen-front-pgdir-shbuf.c, line 434
- drivers/xen/xenbus/xenbus_client.c, line 410
Smatch caller information:
drivers/tty/hvc/hvc_xen.c xencons_connect_backend() -> gnttab_alloc_grant_references()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | count | 1 |
| PARAM_VALUE | 1 | head | 7021613506302054400 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->reclaim_sem |
drivers/net/xen-netfront.c xennet_init_queue() -> gnttab_alloc_grant_references()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | count | 256 |
| PARAM_VALUE | 1 | head | 4096-ptr_max |
| TASK_NOT_RUNNING | |||
| LOCK2 | global &rtnl_mutex | ||
| LOCK2 | global &xenwatch_mutex |
drivers/net/xen-netfront.c xennet_init_queue() -> gnttab_alloc_grant_references()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | count | 256 |
| PARAM_VALUE | 1 | head | 4096-ptr_max |
| TASK_NOT_RUNNING | |||
| LOCK2 | global &rtnl_mutex | ||
| LOCK2 | global &xenwatch_mutex |
drivers/xen/pvcalls-front.c pvcalls_front_probe() -> gnttab_alloc_grant_references()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | count | 1 |
| PARAM_VALUE | 1 | head | 3943318879016566784 |
| PARAM_VALUE | 1 | *head | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &dev->reclaim_sem | ||
| TYPE_LOCK | (struct xenbus_device)->reclaim_sem |
drivers/scsi/xen-scsifront.c map_data_for_request() -> gnttab_alloc_grant_references()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | head | 1205600205648855040 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | flags | ||
| LOCK2 | shost->host_lock | ||
| HALF_LOCKED2 | &sdev->state_mutex |
drivers/xen/xenbus/xenbus_client.c xenbus_setup_ring() -> gnttab_alloc_grant_references()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | count | 1 |
| PARAM_VALUE | 1 | head | 4716445786958929920 |
| DATA_SOURCE | 0 | count | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->reclaim_sem | ||
| HALF_LOCKED2 | global &xenwatch_mutex |
drivers/xen/xen-front-pgdir-shbuf.c grant_references() -> gnttab_alloc_grant_references()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | head | 894427278399983616 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | count | |
| UNITS | 0 | count | unit_array_size |
| HALF_LOCKED2 | &runtime->buffer_mutex |
drivers/usb/host/xen-hcd.c xenhcd_map_urb_for_request() -> gnttab_alloc_grant_references()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | head | 649852107327262720 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &info->lock | ||
| LOCK2 | flags | ||
| TYPE_LOCK | (struct xenhcd_info)->lock |
drivers/block/xen-blkfront.c blkif_queue_rw_req() -> gnttab_alloc_grant_references()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | head | 6368949812057554976 |
| PARAM_VALUE | 1 | *head | 0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &rinfo->ring_lock | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | __tag_set->srcu | ||
| HALF_LOCKED2 | rcu_read | ||
| TYPE_LOCK | (struct blkfront_ring_info)->ring_lock |
drivers/xen/gntdev-dmabuf.c dmabuf_imp_grant_foreign_access() -> gnttab_alloc_grant_references()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | head | 8944738852544634880 |
| CAPPED_DATA | 0 | count | 1 |
| DATA_SOURCE | 0 | count | $2 |
| NOSPEC | 0 | count | |
| NOSPEC | 0 | count | |
| USER_DATA | 0 | count | 0-u16max[c] |
| NO_OVERFLOW_SIMPLE | 0 | count | |
| UNITS | 0 | count | unit_array_size |