/kernel/linux/linux-5.10/net/netfilter/ipset/ |
H A D | ip_set_bitmap_ip.c | 44 u32 hosts; /* number of hosts in a subnet */ member 61 return ((ip & ip_set_hostmask(m->netmask)) - m->first_ip) / m->hosts; in ip_to_id() 97 htonl(map->first_ip + id * map->hosts)); in bitmap_ip_do_list() 184 for (; !before(ip_to, ip); ip += map->hosts) { in bitmap_ip_uadt() 221 u32 elements, u32 hosts, u8 netmask) in init_map_ip() 229 map->hosts = hosts; in init_map_ip() 257 u32 first_ip = 0, last_ip = 0, hosts; in bitmap_ip_create() local 298 hosts in bitmap_ip_create() 219 init_map_ip(struct ip_set *set, struct bitmap_ip *map, u32 first_ip, u32 last_ip, u32 elements, u32 hosts, u8 netmask) init_map_ip() argument [all...] |
H A D | ip_set_hash_ip.c | 104 u32 ip = 0, ip_to = 0, hosts, i = 0; in hash_ip4_uadt() local 147 hosts = h->netmask == 32 ? 1 : 2 << (32 - h->netmask - 1); in hash_ip4_uadt() 161 ip += hosts; in hash_ip4_uadt()
|
/kernel/linux/linux-6.6/net/netfilter/ipset/ |
H A D | ip_set_bitmap_ip.c | 44 u32 hosts; /* number of hosts in a subnet */ member 61 return ((ip & ip_set_hostmask(m->netmask)) - m->first_ip) / m->hosts; in ip_to_id() 97 htonl(map->first_ip + id * map->hosts)); in bitmap_ip_do_list() 184 for (; !before(ip_to, ip); ip += map->hosts) { in bitmap_ip_uadt() 221 u32 elements, u32 hosts, u8 netmask) in init_map_ip() 229 map->hosts = hosts; in init_map_ip() 257 u32 first_ip = 0, last_ip = 0, hosts; in bitmap_ip_create() local 298 hosts in bitmap_ip_create() 219 init_map_ip(struct ip_set *set, struct bitmap_ip *map, u32 first_ip, u32 last_ip, u32 elements, u32 hosts, u8 netmask) init_map_ip() argument [all...] |
H A D | ip_set_hash_ip.c | 107 u32 ip = 0, ip_to = 0, hosts, i = 0; in hash_ip4_uadt() local 150 hosts = h->netmask == 32 ? 1 : 2 << (32 - h->netmask - 1); in hash_ip4_uadt() 164 ip += hosts; in hash_ip4_uadt()
|
/kernel/linux/linux-6.6/drivers/memstick/host/ |
H A D | jmb38x_ms.c | 69 struct memstick_host *hosts[]; member 803 if (!jm->hosts[cnt]) in jmb38x_ms_suspend() 805 memstick_suspend_host(jm->hosts[cnt]); in jmb38x_ms_suspend() 821 if (!jm->hosts[rc]) in jmb38x_ms_resume() 823 memstick_resume_host(jm->hosts[rc]); in jmb38x_ms_resume() 824 memstick_detect_change(jm->hosts[rc]); in jmb38x_ms_resume() 930 jm = kzalloc(struct_size(jm, hosts, cnt), GFP_KERNEL); in jmb38x_ms_probe() 941 jm->hosts[cnt] = jmb38x_ms_alloc_host(jm, cnt); in jmb38x_ms_probe() 942 if (!jm->hosts[cnt]) in jmb38x_ms_probe() 945 rc = memstick_add_host(jm->hosts[cn in jmb38x_ms_probe() [all...] |
/kernel/linux/linux-5.10/drivers/memstick/host/ |
H A D | jmb38x_ms.c | 69 struct memstick_host *hosts[]; member 803 if (!jm->hosts[cnt]) in jmb38x_ms_suspend() 805 memstick_suspend_host(jm->hosts[cnt]); in jmb38x_ms_suspend() 821 if (!jm->hosts[rc]) in jmb38x_ms_resume() 823 memstick_resume_host(jm->hosts[rc]); in jmb38x_ms_resume() 824 memstick_detect_change(jm->hosts[rc]); in jmb38x_ms_resume() 942 jm->hosts[cnt] = jmb38x_ms_alloc_host(jm, cnt); in jmb38x_ms_probe() 943 if (!jm->hosts[cnt]) in jmb38x_ms_probe() 946 rc = memstick_add_host(jm->hosts[cnt]); in jmb38x_ms_probe() 949 jmb38x_ms_free_host(jm->hosts[cn in jmb38x_ms_probe() [all...] |
/kernel/linux/linux-5.10/drivers/soc/qcom/ |
H A D | smsm.c | 29 * in updates of the entry for each of the N hosts. Upon updating a state bit 73 * @hosts: context for each of the hosts 90 struct smsm_host *hosts; member 170 /* Iterate over all hosts to check whom wants a kick */ in smsm_update_bits() 172 hostp = &smsm->hosts[host]; in smsm_update_bits() 352 struct smsm_host *host = &smsm->hosts[host_id]; in smsm_parse_ipc() 422 * Attempt to acquire the number of hosts and entries from the optional shared 455 "found custom size of smsm: %d entries %d hosts\n", in smsm_get_size_info() 490 smsm->hosts in qcom_smsm_probe() [all...] |
/kernel/linux/linux-6.6/drivers/soc/qcom/ |
H A D | smsm.c | 29 * in updates of the entry for each of the N hosts. Upon updating a state bit 73 * @hosts: context for each of the hosts 90 struct smsm_host *hosts; member 170 /* Iterate over all hosts to check whom wants a kick */ in smsm_update_bits() 172 hostp = &smsm->hosts[host]; in smsm_update_bits() 367 struct smsm_host *host = &smsm->hosts[host_id]; in smsm_parse_ipc() 437 * Attempt to acquire the number of hosts and entries from the optional shared 469 "found custom size of smsm: %d entries %d hosts\n", in smsm_get_size_info() 504 smsm->hosts in qcom_smsm_probe() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/ |
H A D | nouveau_chan.c | 260 const struct nvif_mclass hosts[] = { in nouveau_channel_ctor() local 291 cid = nvif_mclass(&device->object, hosts); in nouveau_channel_ctor() 295 if (hosts[cid].oclass < NV50_CHANNEL_GPFIFO) in nouveau_channel_ctor() 313 if (hosts[cid].oclass < NV50_CHANNEL_GPFIFO) { in nouveau_channel_ctor() 320 if (hosts[cid].oclass < FERMI_CHANNEL_GPFIFO) in nouveau_channel_ctor() 331 if (hosts[cid].oclass >= VOLTA_CHANNEL_GPFIFO_A) { in nouveau_channel_ctor() 349 ret = nvif_object_ctor(&device->object, "abi16ChanUser", 0, hosts[cid].oclass, in nouveau_channel_ctor()
|
/kernel/linux/linux-5.10/net/sched/ |
H A D | sch_cake.c | 154 struct cake_host hosts[CAKE_QUEUES]; /* for triple isolation */ member 789 q->hosts[q->flows[reduced_hash].srchost].srchost_bulk_flow_count--; in cake_hash() 790 q->hosts[q->flows[reduced_hash].dsthost].dsthost_bulk_flow_count--; in cake_hash() 805 if (q->hosts[outer_hash + k].srchost_tag == in cake_hash() 811 if (!q->hosts[outer_hash + k].srchost_bulk_flow_count) in cake_hash() 814 q->hosts[outer_hash + k].srchost_tag = srchost_hash; in cake_hash() 818 q->hosts[srchost_idx].srchost_bulk_flow_count++; in cake_hash() 828 if (q->hosts[outer_hash + k].dsthost_tag == in cake_hash() 834 if (!q->hosts[outer_hash + k].dsthost_bulk_flow_count) in cake_hash() 837 q->hosts[outer_has in cake_hash() [all...] |
/kernel/linux/linux-6.6/net/sched/ |
H A D | sch_cake.c | 155 struct cake_host hosts[CAKE_QUEUES]; /* for triple isolation */ member 790 q->hosts[q->flows[reduced_hash].srchost].srchost_bulk_flow_count--; in cake_hash() 791 q->hosts[q->flows[reduced_hash].dsthost].dsthost_bulk_flow_count--; in cake_hash() 806 if (q->hosts[outer_hash + k].srchost_tag == in cake_hash() 812 if (!q->hosts[outer_hash + k].srchost_bulk_flow_count) in cake_hash() 815 q->hosts[outer_hash + k].srchost_tag = srchost_hash; in cake_hash() 819 q->hosts[srchost_idx].srchost_bulk_flow_count++; in cake_hash() 829 if (q->hosts[outer_hash + k].dsthost_tag == in cake_hash() 835 if (!q->hosts[outer_hash + k].dsthost_bulk_flow_count) in cake_hash() 838 q->hosts[outer_has in cake_hash() [all...] |
/kernel/linux/linux-5.10/fs/nfsd/ |
H A D | export.h | 23 char *hosts; /* colon separated list of hosts */ member
|
H A D | export.c | 327 kfree(locations[i].hosts); in nfsd4_fslocs_free() 448 fsloc->locations[i].hosts = kstrdup(buf, GFP_KERNEL); in fsloc_parse() 449 if (!fsloc->locations[i].hosts) in fsloc_parse() 1227 seq_escape(m, fsloc->locations[0].hosts, ",;@ \t\n\\"); in exp_flags() 1232 seq_escape(m, fsloc->locations[i].hosts, ",;@ \t\n\\"); in exp_flags()
|
/kernel/linux/linux-5.10/drivers/scsi/isci/ |
H A D | host.h | 298 struct isci_host *hosts[SCI_MAX_CONTROLLERS]; member 314 (ihost = to_pci_info(pdev)->hosts[id]); id++)
|
H A D | init.c | 353 ihost = pci_info->hosts[id]; in isci_setup_interrupts() 368 ihost = pci_info->hosts[id]; in isci_setup_interrupts() 677 pci_info->hosts[i] = h; in isci_pci_probe()
|
/kernel/linux/linux-6.6/drivers/scsi/isci/ |
H A D | host.h | 298 struct isci_host *hosts[SCI_MAX_CONTROLLERS]; member 314 (ihost = to_pci_info(pdev)->hosts[id]); id++)
|
H A D | init.c | 351 ihost = pci_info->hosts[id]; in isci_setup_interrupts() 366 ihost = pci_info->hosts[id]; in isci_setup_interrupts() 675 pci_info->hosts[i] = h; in isci_pci_probe()
|
/kernel/linux/linux-6.6/fs/nfsd/ |
H A D | export.h | 24 char *hosts; /* colon separated list of hosts */ member
|
H A D | export.c | 327 kfree(locations[i].hosts); in nfsd4_fslocs_free() 477 fsloc->locations[i].hosts = kstrdup(buf, GFP_KERNEL); in fsloc_parse() 478 if (!fsloc->locations[i].hosts) in fsloc_parse() 1329 seq_escape(m, fsloc->locations[0].hosts, ",;@ \t\n\\"); in exp_flags() 1334 seq_escape(m, fsloc->locations[i].hosts, ",;@ \t\n\\"); in exp_flags()
|
/kernel/linux/linux-5.10/drivers/nvme/target/ |
H A D | configfs.c | 854 pr_err("can only link hosts into the allowed_hosts directory!\n"); in nvmet_allowed_hosts_allow_link() 867 pr_err("can't add hosts when allow_any_host is set!\n"); in nvmet_allowed_hosts_allow_link() 872 list_for_each_entry(p, &subsys->hosts, entry) { in nvmet_allowed_hosts_allow_link() 876 list_add_tail(&link->entry, &subsys->hosts); in nvmet_allowed_hosts_allow_link() 895 list_for_each_entry(p, &subsys->hosts, entry) { in nvmet_allowed_hosts_drop_link() 938 if (allow_any_host && !list_empty(&subsys->hosts)) { in nvmet_subsys_attr_allow_any_host_store() 939 pr_err("Can't set allow_any_host when explicit hosts are set!\n"); in nvmet_subsys_attr_allow_any_host_store() 1643 "hosts", &nvmet_hosts_type); in nvmet_init_configfs()
|
/kernel/linux/linux-5.10/drivers/scsi/cxlflash/ |
H A D | sislite.h | 476 } hosts[CXLFLASH_MAX_CONTEXT]; member
|
/kernel/linux/linux-6.6/drivers/scsi/cxlflash/ |
H A D | sislite.h | 476 } hosts[CXLFLASH_MAX_CONTEXT]; member
|
/kernel/linux/linux-6.6/drivers/nvme/target/ |
H A D | configfs.c | 921 pr_err("can only link hosts into the allowed_hosts directory!\n"); in nvmet_allowed_hosts_allow_link() 934 pr_err("can't add hosts when allow_any_host is set!\n"); in nvmet_allowed_hosts_allow_link() 939 list_for_each_entry(p, &subsys->hosts, entry) { in nvmet_allowed_hosts_allow_link() 943 list_add_tail(&link->entry, &subsys->hosts); in nvmet_allowed_hosts_allow_link() 962 list_for_each_entry(p, &subsys->hosts, entry) { in nvmet_allowed_hosts_drop_link() 1005 if (allow_any_host && !list_empty(&subsys->hosts)) { in nvmet_subsys_attr_allow_any_host_store() 1006 pr_err("Can't set allow_any_host when explicit hosts are set!\n"); in nvmet_subsys_attr_allow_any_host_store() 2043 "hosts", &nvmet_hosts_type); in nvmet_init_configfs()
|
H A D | auth.c | 141 list_for_each_entry(p, &ctrl->subsys->hosts, entry) { in nvmet_setup_auth()
|
/kernel/linux/linux-5.10/drivers/scsi/ |
H A D | Makefile | 159 scsi_mod-y += scsi.o hosts.o scsi_ioctl.o \
|