| /kernel/linux/linux-4.19/ipc/ |
| D | util.c | 38 * The ids->rwsem must be taken when: 75 int ids; member 110 * @ids: ipc identifier set 113 * below IPCMNI) then initialise the keys hashtable and ids idr. 115 void ipc_init_ids(struct ipc_ids *ids) in ipc_init_ids() argument 117 ids->in_use = 0; in ipc_init_ids() 118 ids->seq = 0; in ipc_init_ids() 119 init_rwsem(&ids->rwsem); in ipc_init_ids() 120 rhashtable_init(&ids->key_ht, &ipc_kht_params); in ipc_init_ids() 121 idr_init(&ids->ipcs_idr); in ipc_init_ids() [all …]
|
| D | util.h | 86 void ipc_init_ids(struct ipc_ids *ids); 89 int ids, int (*show)(struct seq_file *, void *)); 92 #define ipc_init_proc_interface(path, header, ids, show) do {} while (0) argument 103 /* must be called with ids->rwsem acquired for writing */ 117 * @ids: ipc identifier set 121 static inline int ipc_get_maxidx(struct ipc_ids *ids) in ipc_get_maxidx() argument 123 if (ids->in_use == 0) in ipc_get_maxidx() 126 if (ids->in_use == IPCMNI) in ipc_get_maxidx() 129 return ids->max_idx; in ipc_get_maxidx() 145 struct kern_ipc_perm *ipc_obtain_object_idr(struct ipc_ids *ids, int id); [all …]
|
| /kernel/linux/linux-5.10/ipc/ |
| D | util.c | 38 * The ids->rwsem must be taken when: 75 int ids; member 109 * @ids: ipc identifier set 112 * below ipc_mni) then initialise the keys hashtable and ids idr. 114 void ipc_init_ids(struct ipc_ids *ids) in ipc_init_ids() argument 116 ids->in_use = 0; in ipc_init_ids() 117 ids->seq = 0; in ipc_init_ids() 118 init_rwsem(&ids->rwsem); in ipc_init_ids() 119 rhashtable_init(&ids->key_ht, &ipc_kht_params); in ipc_init_ids() 120 idr_init(&ids->ipcs_idr); in ipc_init_ids() [all …]
|
| D | util.h | 115 void ipc_init_ids(struct ipc_ids *ids); 118 int ids, int (*show)(struct seq_file *, void *)); 121 #define ipc_init_proc_interface(path, header, ids, show) do {} while (0) argument 132 /* must be called with ids->rwsem acquired for writing */ 146 * @ids: ipc identifier set 150 static inline int ipc_get_maxidx(struct ipc_ids *ids) in ipc_get_maxidx() argument 152 if (ids->in_use == 0) in ipc_get_maxidx() 155 if (ids->in_use == ipc_mni) in ipc_get_maxidx() 158 return ids->max_idx; in ipc_get_maxidx() 174 struct kern_ipc_perm *ipc_obtain_object_idr(struct ipc_ids *ids, int id); [all …]
|
| /kernel/linux/linux-4.19/drivers/dio/ |
| D | dio-driver.c | 20 * @ids: array of DIO device id structures to search in 29 dio_match_device(const struct dio_device_id *ids, in dio_match_device() argument 32 while (ids->id) { in dio_match_device() 33 if (ids->id == DIO_WILDCARD) in dio_match_device() 34 return ids; in dio_match_device() 35 if (DIO_NEEDSSECID(ids->id & 0xff)) { in dio_match_device() 36 if (ids->id == d->id) in dio_match_device() 37 return ids; in dio_match_device() 39 if ((ids->id & 0xff) == (d->id & 0xff)) in dio_match_device() 40 return ids; in dio_match_device() [all …]
|
| /kernel/linux/linux-5.10/drivers/dio/ |
| D | dio-driver.c | 20 * @ids: array of DIO device id structures to search in 29 dio_match_device(const struct dio_device_id *ids, in dio_match_device() argument 32 while (ids->id) { in dio_match_device() 33 if (ids->id == DIO_WILDCARD) in dio_match_device() 34 return ids; in dio_match_device() 35 if (DIO_NEEDSSECID(ids->id & 0xff)) { in dio_match_device() 36 if (ids->id == d->id) in dio_match_device() 37 return ids; in dio_match_device() 39 if ((ids->id & 0xff) == (d->id & 0xff)) in dio_match_device() 40 return ids; in dio_match_device() [all …]
|
| /kernel/linux/linux-5.10/arch/arm/boot/dts/ |
| D | imx28.dtsi | 220 fsl,pinmux-ids = < 231 fsl,pinmux-ids = < 242 fsl,pinmux-ids = < 255 fsl,pinmux-ids = < 279 fsl,pinmux-ids = < 289 fsl,pinmux-ids = < 302 fsl,pinmux-ids = < 313 fsl,pinmux-ids = < 326 fsl,pinmux-ids = < 337 fsl,pinmux-ids = < [all …]
|
| D | imx23.dtsi | 146 fsl,pinmux-ids = < 157 fsl,pinmux-ids = < 170 fsl,pinmux-ids = < 181 fsl,pinmux-ids = < 192 fsl,pinmux-ids = < 218 fsl,pinmux-ids = < 228 fsl,pinmux-ids = < 243 fsl,pinmux-ids = < 263 fsl,pinmux-ids = < 272 fsl,pinmux-ids = < [all …]
|
| /kernel/linux/linux-4.19/arch/arm/boot/dts/ |
| D | imx28.dtsi | 222 fsl,pinmux-ids = < 233 fsl,pinmux-ids = < 244 fsl,pinmux-ids = < 257 fsl,pinmux-ids = < 281 fsl,pinmux-ids = < 291 fsl,pinmux-ids = < 304 fsl,pinmux-ids = < 315 fsl,pinmux-ids = < 328 fsl,pinmux-ids = < 339 fsl,pinmux-ids = < [all …]
|
| /kernel/linux/linux-4.19/drivers/zorro/ |
| D | zorro-driver.c | 23 * @ids: array of Zorro device id structures to search in 32 zorro_match_device(const struct zorro_device_id *ids, in zorro_match_device() argument 35 while (ids->id) { in zorro_match_device() 36 if (ids->id == ZORRO_WILDCARD || ids->id == z->id) in zorro_match_device() 37 return ids; in zorro_match_device() 38 ids++; in zorro_match_device() 120 * @ids: array of Zorro device id structures to search in 132 const struct zorro_device_id *ids = zorro_drv->id_table; in zorro_bus_match() local 134 if (!ids) in zorro_bus_match() 137 while (ids->id) { in zorro_bus_match() [all …]
|
| /kernel/linux/linux-4.19/net/openvswitch/ |
| D | vport.c | 340 * @ids: new configuration, an array of port ids. 342 * Sets the vport's upcall_portids to @ids. 344 * Returns 0 if successful, -EINVAL if @ids is zero length or cannot be parsed 349 int ovs_vport_set_upcall_portids(struct vport *vport, const struct nlattr *ids) in ovs_vport_set_upcall_portids() argument 353 if (!nla_len(ids) || nla_len(ids) % sizeof(u32)) in ovs_vport_set_upcall_portids() 358 vport_portids = kmalloc(sizeof(*vport_portids) + nla_len(ids), in ovs_vport_set_upcall_portids() 363 vport_portids->n_ids = nla_len(ids) / sizeof(u32); in ovs_vport_set_upcall_portids() 365 nla_memcpy(vport_portids->ids, ids, nla_len(ids)); in ovs_vport_set_upcall_portids() 391 struct vport_portids *ids; in ovs_vport_get_upcall_portids() local 393 ids = rcu_dereference_ovsl(vport->upcall_portids); in ovs_vport_get_upcall_portids() [all …]
|
| /kernel/linux/linux-5.10/net/openvswitch/ |
| D | vport.c | 327 * @ids: new configuration, an array of port ids. 329 * Sets the vport's upcall_portids to @ids. 331 * Returns 0 if successful, -EINVAL if @ids is zero length or cannot be parsed 336 int ovs_vport_set_upcall_portids(struct vport *vport, const struct nlattr *ids) in ovs_vport_set_upcall_portids() argument 340 if (!nla_len(ids) || nla_len(ids) % sizeof(u32)) in ovs_vport_set_upcall_portids() 345 vport_portids = kmalloc(sizeof(*vport_portids) + nla_len(ids), in ovs_vport_set_upcall_portids() 350 vport_portids->n_ids = nla_len(ids) / sizeof(u32); in ovs_vport_set_upcall_portids() 352 nla_memcpy(vport_portids->ids, ids, nla_len(ids)); in ovs_vport_set_upcall_portids() 378 struct vport_portids *ids; in ovs_vport_get_upcall_portids() local 380 ids = rcu_dereference_ovsl(vport->upcall_portids); in ovs_vport_get_upcall_portids() [all …]
|
| /kernel/linux/linux-5.10/drivers/regulator/ |
| D | stpmic1_regulator.c | 197 #define REG_LDO(ids, base) { \ argument 198 .name = #ids, \ 199 .id = STPMIC1_##ids, \ 206 .vsel_reg = ids##_ACTIVE_CR, \ 208 .enable_reg = ids##_ACTIVE_CR, \ 217 #define REG_LDO3(ids, base) { \ argument 218 .name = #ids, \ 219 .id = STPMIC1_##ids, \ 241 #define REG_LDO4(ids, base) { \ argument 242 .name = #ids, \ [all …]
|
| D | max8907-regulator.c | 46 #define REG_LDO(ids, supply, base, min, max, step) \ argument 47 [MAX8907_##ids] = { \ 48 .name = #ids, \ 50 .id = MAX8907_##ids, \ 63 #define REG_FIXED(ids, supply, voltage) \ argument 64 [MAX8907_##ids] = { \ 65 .name = #ids, \ 67 .id = MAX8907_##ids, \ 75 #define REG_OUT5V(ids, supply, base, voltage) \ argument 76 [MAX8907_##ids] = { \ [all …]
|
| /kernel/linux/linux-4.19/drivers/pci/ |
| D | pci-stub.c | 22 static char ids[1024] __initdata; variable 24 module_param_string(ids, ids, sizeof(ids), 0); 25 MODULE_PARM_DESC(ids, "Initial PCI IDs to add to the stub driver, format is " 50 /* no ids passed actually */ in pci_stub_init() 51 if (ids[0] == '\0') in pci_stub_init() 54 /* add ids specified in the module parameter */ in pci_stub_init() 55 p = ids; in pci_stub_init()
|
| /kernel/linux/linux-5.10/drivers/pci/ |
| D | pci-stub.c | 22 static char ids[1024] __initdata; variable 24 module_param_string(ids, ids, sizeof(ids), 0); 25 MODULE_PARM_DESC(ids, "Initial PCI IDs to add to the stub driver, format is " 50 /* no ids passed actually */ in pci_stub_init() 51 if (ids[0] == '\0') in pci_stub_init() 54 /* add ids specified in the module parameter */ in pci_stub_init() 55 p = ids; in pci_stub_init()
|
| /kernel/linux/linux-5.10/drivers/zorro/ |
| D | zorro-driver.c | 23 * @ids: array of Zorro device id structures to search in 32 zorro_match_device(const struct zorro_device_id *ids, in zorro_match_device() argument 35 while (ids->id) { in zorro_match_device() 36 if (ids->id == ZORRO_WILDCARD || ids->id == z->id) in zorro_match_device() 37 return ids; in zorro_match_device() 38 ids++; in zorro_match_device() 119 * @ids: array of Zorro device id structures to search in 131 const struct zorro_device_id *ids = zorro_drv->id_table; in zorro_bus_match() local 133 if (!ids) in zorro_bus_match() 136 return !!zorro_match_device(ids, z); in zorro_bus_match()
|
| /kernel/linux/linux-4.19/Documentation/RCU/ |
| D | arrayRCU.txt | 52 to map from semaphore, message-queue, and shared-memory IDs to the data 55 ids->sem semaphore. 59 the remainder of the new, updates the ids->entries pointer to point to 61 Note that rcu_assign_pointer() is used to update the ids->entries pointer, 65 static int grow_ary(struct ipc_ids* ids, int newsize) 70 int size = ids->entries->size; 82 memcpy(new->p, ids->entries->p, 88 old = ids->entries; 95 rcu_assign_pointer(ids->entries, new); 117 struct kern_ipc_perm* ipc_lock(struct ipc_ids* ids, int id) [all …]
|
| /kernel/linux/linux-5.10/Documentation/RCU/ |
| D | arrayRCU.rst | 62 to map from semaphore, message-queue, and shared-memory IDs to the data 65 ids->sem semaphore. 69 the remainder of the new, updates the ids->entries pointer to point to 71 Note that rcu_assign_pointer() is used to update the ids->entries pointer, 75 static int grow_ary(struct ipc_ids* ids, int newsize) 80 int size = ids->entries->size; 92 memcpy(new->p, ids->entries->p, 98 old = ids->entries; 105 rcu_assign_pointer(ids->entries, new); 127 struct kern_ipc_perm* ipc_lock(struct ipc_ids* ids, int id) [all …]
|
| /kernel/linux/linux-5.10/Documentation/driver-api/usb/ |
| D | bulk-streams.rst | 38 allocate memory so the driver can use up to num_streams stream IDs. They must 40 IDs. This is to ensure that a UASP driver will be able to use the same stream 46 declares how many stream IDs it can support, and each bulk endpoint on a 47 SuperSpeed device will say how many stream IDs it can handle. Therefore, 48 drivers should be able to deal with being allocated less stream IDs than they 60 Picking new Stream IDs to use 69 driver supports secondary stream IDs. 82 All stream IDs will be deallocated when the driver releases the interface, to
|
| /kernel/linux/linux-4.19/Documentation/driver-api/usb/ |
| D | bulk-streams.rst | 38 allocate memory so the driver can use up to num_streams stream IDs. They must 40 IDs. This is to ensure that a UASP driver will be able to use the same stream 46 declares how many stream IDs it can support, and each bulk endpoint on a 47 SuperSpeed device will say how many stream IDs it can handle. Therefore, 48 drivers should be able to deal with being allocated less stream IDs than they 60 Picking new Stream IDs to use 69 driver supports secondary stream IDs. 82 All stream IDs will be deallocated when the driver releases the interface, to
|
| /kernel/linux/linux-4.19/drivers/regulator/ |
| D | max8907-regulator.c | 49 #define REG_LDO(ids, supply, base, min, max, step) \ argument 50 [MAX8907_##ids] = { \ 51 .name = #ids, \ 53 .id = MAX8907_##ids, \ 66 #define REG_FIXED(ids, supply, voltage) \ argument 67 [MAX8907_##ids] = { \ 68 .name = #ids, \ 70 .id = MAX8907_##ids, \ 78 #define REG_OUT5V(ids, supply, base, voltage) \ argument 79 [MAX8907_##ids] = { \ [all …]
|
| /kernel/linux/linux-5.10/tools/perf/util/ |
| D | metricgroup.c | 138 static struct expr_id *expr_ids__alloc(struct expr_ids *ids) in expr_ids__alloc() argument 140 if (ids->cnt >= RECURSION_ID_MAX) in expr_ids__alloc() 142 return &ids->id[ids->cnt++]; in expr_ids__alloc() 145 static void expr_ids__exit(struct expr_ids *ids) in expr_ids__exit() argument 149 for (i = 0; i < ids->cnt; i++) in expr_ids__exit() 150 free(ids->id[i].id); in expr_ids__exit() 193 const int idnum = (int)hashmap__size(&pctx->ids); in find_evsel_group() 201 hashmap__find(&pctx->ids, "duration_time", (void **)&val_ptr)) in find_evsel_group() 237 if (hashmap__find(&pctx->ids, ev->name, (void **)&val_ptr)) in find_evsel_group() 316 hashmap__size(&m->pctx.ids) + 1); in metricgroup__setup_events() [all …]
|
| /kernel/linux/linux-5.10/Documentation/core-api/ |
| D | idr.rst | 12 A common problem to solve is allocating identifiers (IDs); generally 14 process IDs, packet identifiers in networking protocols, SCSI tags 37 Some users need to allocate IDs larger than ``INT_MAX``. So far all of 39 idr_alloc_u32(). If you need IDs that will not fit in a u32, 42 If you need to allocate IDs sequentially, you can use 44 with larger IDs, so using this function comes at a slight cost. 58 IDs currently allocated.
|
| /kernel/linux/linux-4.19/Documentation/core-api/ |
| D | idr.rst | 12 A common problem to solve is allocating identifiers (IDs); generally 14 process IDs, packet identifiers in networking protocols, SCSI tags 37 Some users need to allocate IDs larger than ``INT_MAX``. So far all of 39 :c:func:`idr_alloc_u32`. If you need IDs that will not fit in a u32, 42 If you need to allocate IDs sequentially, you can use 44 with larger IDs, so using this function comes at a slight cost. 58 IDs currently allocated.
|